/* BilgiKesfi v162 — targeted reader article fixes; no homepage or admin changes. */
/* Restore the label and tidy compact tag chips without overriding category accents. */
body .reader-v2.nexa-reader .reader-article-tags {
  display:flex; flex-wrap:wrap; align-items:center; gap:7px 8px;
}
body .reader-v2.nexa-reader .reader-article-tags > strong {
  display:inline-block; color:#60758a; margin-right:6px;
  font-size:.71rem; font-weight:750; letter-spacing:.06em;
}
body .reader-v2.nexa-reader .reader-article-tags > a {
  display:inline-flex; align-items:center; max-width:100%;
  white-space:normal; overflow-wrap:anywhere; text-decoration:none;
  border:1px solid #dce5ed; border-radius:8px;
  background:#f3f6f9; color:#365371; font-weight:700;
}
body .reader-v2.nexa-reader .reader-article-tags > a:hover,
body .reader-v2.nexa-reader .reader-article-tags > a:focus-visible {
  background:#e9f2f9; color:#244e70; border-color:#94b6cb;
}
body.dark-theme .reader-v2.nexa-reader .reader-article-tags > strong {color:#a5b9c9;}
body.dark-theme .reader-v2.nexa-reader .reader-article-tags > a {
  color:#d8e7f3; background:#233f55; border-color:#466077;
}
/* 2 related posts -> 2 columns on desktop; remove the empty third slot. */
@media (min-width:741px) {
  .reader-v2.nexa-reader .curiosity-windows:has(> .curiosity-window:nth-child(2):last-child) {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* On phones, the final (second) card must span both tracks, not just the left one. */
@media (max-width:740px) {
  .reader-v2.nexa-reader .curiosity-windows > .curiosity-window:nth-child(2):last-child {
    grid-column:1 / -1; height:245px;
  }
  .reader-v2.nexa-reader .curiosity-windows > .curiosity-window:nth-child(2):last-child .curiosity-window-copy {
    inset:auto 20px 20px; padding:0 28px 0 0;
  }
  .reader-v2.nexa-reader .curiosity-windows > .curiosity-window:nth-child(2):last-child h3 {
    font-size:21px; max-width:390px; line-height:1.33;
  }
}
