/* BilgiKesfi v166 — homepage category-link focus and original v142 dark backgrounds.
   Scope all corrections to the homepage to protect article pages and administration. */

/* Mouse/touch clicks must not leave the grey/black outline on category-card links.
   Retain a distinct accessible focus ring for keyboard and assistive navigation. */
body[data-page="home"] #kategoriler .category-block .card .card-image > a:focus:not(:focus-visible),
body[data-page="home"] #kategoriler .category-block .card > a:last-child:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
body[data-page="home"] #kategoriler .category-block .card .card-image > a:focus-visible,
body[data-page="home"] #kategoriler .category-block .card > a:last-child:focus-visible {
  outline: 3px solid var(--topic-accent, #829de3) !important;
  outline-offset: -3px !important;
  border-radius: 3px;
}
/* Do not draw a browser-provided visited/click underline on card titles. */
body[data-page="home"] #kategoriler .category-block .card > a:is(:hover,:active,:focus,:visited) {
  text-decoration: none;
}

/* Original v142 dark-mode root canvas. v145 later replaced #0d1728 with #08162e. */
html:has(body[data-page="home"].dark-theme) {
  background: #0d1728 !important;
  color-scheme: dark;
}
body[data-page="home"].dark-theme[data-bnx-public="v145"] {
  background: #0d1728 !important;
  background-color: #0d1728 !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
/* v153 forced a nearly-white gradient over v142's colored dark heading. */
body[data-page="home"].dark-theme #kategoriler > section.category-block[data-home-category] .category-heading {
  background: linear-gradient(100deg, var(--topic-accent, #3568ba) 0%, #101b30 78%, #09101d 100%) !important;
  border-color: #29374c !important;
}
body[data-page="home"].dark-theme #kategoriler > section.category-block .category-heading h2 {
  color: #edf0f5 !important;
}
/* Restore the original category card surfaces, not the v153 paper tint. */
body[data-page="home"].dark-theme #kategoriler > section.category-block .category-cards article.card,
body[data-page="home"].dark-theme #kategoriler > section.category-block .category-cards article.card > a:last-child {
  background: #18243a !important;
  background-color: #18243a !important;
  border-color: #2a364b !important;
}
