/* Socrates reference page — page-scoped selectors only. */
.sr-hero {
  overflow: hidden;
  border-bottom: 1px solid rgba(184, 138, 68, .25);
  background: radial-gradient(circle at 80% 20%, rgba(184, 138, 68, .16), transparent 34%), linear-gradient(135deg, rgba(248, 242, 229, .98), rgba(236, 225, 204, .92))
}

.sr-hero-inner,
.sr-page {
  width: min(1240px, calc(100% - 40px));
  margin: auto
}

.sr-hero-inner {
  padding: 24px 0 56px
}

.sr-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72
}

.sr-breadcrumb a {
  color: inherit;
  text-decoration: none
}

.sr-breadcrumb a:hover {
  color: #b88a44
}

.sr-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 60px;
  align-items: center
}

.sr-profile-copy {
  max-width: 700px
}

.sr-kicker,
.sr-section-label {
  display: block;
  margin-bottom: 12px;
  color: #9b6f2e;
  font-size: .50rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase
}

.sr-section p+p {
  margin-top: 1.1rem;
}



.sr-profile h1 {
  margin: 0 0 14px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.7rem, 4vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.03em;
}

.sr-lede {
  max-width: 700px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.45
}

.sr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px
}

.sr-tags span {
  padding: 7px 11px;
  border: 1px solid rgba(184, 138, 68, .4);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase
}

.sr-portrait {
  margin: 0;
  padding: 9px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(184, 138, 68, .3);
  box-shadow: 0 18px 50px rgba(45, 31, 15, .12)
}

.sr-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover
}

.sr-portrait figcaption {
  padding: 9px 5px 1px;
  font-size: .72rem;
  line-height: 1.4;
  opacity: .68
}

.sr-page {
  padding: 55px 0 90px
}

.sr-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 820px);
  gap: 65px;
  justify-content: center
}

.sr-sidebar-card {
  position: sticky;
  top: 24px;
  padding: 18px 0;
  border-top: 2px solid #b88a44
}

.sr-sidebar-heading {
  margin-bottom: 13px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}

.sr-sidebar nav {
  display: grid;
  gap: 3px
}

.sr-sidebar nav a {
  padding: 7px 9px;
  border-left: 2px solid transparent;
  color: inherit;
  font-size: .82rem;
  line-height: 1.35;
  text-decoration: none;
  opacity: .68;
  transition: .18s ease
}

.sr-sidebar nav a:hover,
.sr-sidebar nav a.is-active {
  border-left-color: #b88a44;
  color: #8c6227;
  opacity: 1;
  background: rgba(184, 138, 68, .07)
}

.sr-content {
  min-width: 0
}

.sr-section,
.sr-related {
  scroll-margin-top: 30px;
  margin-bottom: 68px
}

.sr-section h2,
.sr-related h2 {
  margin: 0 0 20px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.15
}

.sr-section h3,
.sr-related h3 {
  font-family: "Cormorant Garamond", Georgia, serif
}

.sr-section p,
.sr-related p {
  max-width: 78ch;
  font-size: 1.03rem;
  line-height: 1.78
}

.sr-section-intro {
  opacity: .82
}

.sr-answer,
.sr-caution,
.sr-term {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid #b88a44;
  background: rgba(184, 138, 68, .08);
  line-height: 1.65
}

.sr-answer strong {
  color: #8c6227
}

.sr-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(120, 90, 45, .2)
}

.sr-facts div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(120, 90, 45, .16)
}

.sr-facts dt {
  font-weight: 700;
  font-size: .86rem
}

.sr-facts dd {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45
}

.sr-idea-grid,
.sr-source-grid,
.sr-legacy-grid,
.sr-certainty {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 28px
}

.sr-card,
.sr-source,
.sr-legacy-grid>div,
.sr-certainty>div {
  padding: 21px;
  border: 1px solid rgba(120, 90, 45, .18);
  background: rgba(255, 255, 255, .34)
}

.sr-card h3,
.sr-source h3,
.sr-legacy-grid h3,
.sr-certainty h3 {
  margin: 0 0 7px;
  font-size: 1.28rem
}

.sr-card p,
.sr-source p,
.sr-legacy-grid p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.62
}

.sr-process {
  margin: 28px 0;
  border-top: 1px solid rgba(120, 90, 45, .2)
}

.sr-process div {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(120, 90, 45, .15)
}

.sr-process b {
  color: #b88a44;
  font-size: .78rem;
  letter-spacing: .08em
}

.sr-process span {
  line-height: 1.55
}

.sr-term {
  display: grid;
  gap: 5px
}

.sr-term strong {
  font-family: "Cinzel", Georgia, serif
}

.sr-quote {
  margin: 34px 0;
  padding: 30px;
  text-align: center;
  border-top: 1px solid rgba(184, 138, 68, .4);
  border-bottom: 1px solid rgba(184, 138, 68, .4)
}

.sr-quote blockquote {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-style: italic;
  line-height: 1.2
}

.sr-quote cite {
  font-size: .8rem;
  opacity: .7
}

.sr-caution p {
  margin: 6px 0 0
}

.sr-timeline {
  margin: 30px 0;
  padding-left: 26px;
  border-left: 1px solid rgba(184, 138, 68, .5)
}

.sr-timeline>div {
  position: relative;
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 18px;
  padding: 0 0 27px
}

.sr-timeline>div::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid #b88a44;
  border-radius: 50%;
  background: #f5eddf
}

.sr-year {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9b6f2e
}

.sr-timeline h3 {
  margin: 0 0 4px;
  font-size: 1.25rem
}

.sr-timeline p {
  margin: 0
}

.sr-dialogues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px
}

.sr-dialogues a {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid rgba(120, 90, 45, .18);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease
}

.sr-dialogues a:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 138, 68, .65);
  background: rgba(184, 138, 68, .07)
}

.sr-dialogues span {
  font-size: .84rem;
  opacity: .68
}

.sr-closing {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(184, 138, 68, .35);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem !important
}

.sr-certainty ul {
  margin: 0;
  padding-left: 19px
}

.sr-certainty li {
  margin: 8px 0;
  line-height: 1.55;
  font-size: .92rem
}

.sr-faq {
  border-top: 1px solid rgba(120, 90, 45, .2)
}

.sr-faq details {
  border-bottom: 1px solid rgba(120, 90, 45, .16)
}

.sr-faq summary {
  cursor: pointer;
  padding: 17px 3px;
  font-weight: 700;
  line-height: 1.45
}

.sr-faq summary::marker {
  color: #b88a44
}

.sr-faq details p {
  margin: -2px 0 18px;
  padding-right: 20px;
  font-size: .94rem;
  line-height: 1.7
}

.sr-related {
  padding: 30px 0 0;
  border-top: 1px solid rgba(184, 138, 68, .4)
}

.sr-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px
}

.sr-related-links a {
  padding: 9px 13px;
  border: 1px solid rgba(120, 90, 45, .22);
  color: inherit;
  text-decoration: none;
  font-size: .82rem
}

.sr-related-links a:hover {
  border-color: #b88a44;
  color: #8c6227
}

@media(max-width:980px) {
  .sr-profile {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 35px
  }

  .sr-layout {
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 35px
  }
}

@media(max-width:760px) {

  .sr-hero-inner,
  .sr-page {
    width: min(100% - 28px, 700px)
  }

  .sr-hero-inner {
    padding-bottom: 38px
  }

  .sr-profile {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .sr-portrait {
    width: min(100%, 330px)
  }

  .sr-layout {
    display: block
  }

  .sr-sidebar {
    margin-bottom: 35px
  }

  .sr-sidebar-card {
    position: static;
    padding: 0;
    border-top: 0
  }

  .sr-sidebar-heading {
    padding: 12px 14px;
    border: 1px solid rgba(120, 90, 45, .18);
    cursor: pointer
  }

  .sr-sidebar nav {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 6px;
    border: 1px solid rgba(120, 90, 45, .18)
  }

  .sr-sidebar-card.is-open nav {
    display: grid
  }

  .sr-facts,
  .sr-idea-grid,
  .sr-source-grid,
  .sr-legacy-grid,
  .sr-certainty,
  .sr-dialogues {
    grid-template-columns: 1fr
  }

  .sr-facts div {
    grid-template-columns: 115px 1fr
  }

  .sr-timeline>div {
    grid-template-columns: 1fr;
    gap: 5px
  }

  .sr-page {
    padding-top: 35px
  }
}

@media(prefers-reduced-motion:reduce) {

  .sr-dialogues a,
  .sr-sidebar nav a {
    transition: none
  }
}

@media print {

  .sr-sidebar,
  .sr-tags {
    display: none
  }

  .sr-layout {
    display: block
  }

  .sr-profile {
    grid-template-columns: 1fr 220px
  }

  .sr-section {
    break-inside: avoid
  }
}

/* =========================================================
   SOCRATES HERO — IMAGE FIX
   Keep hero image completely isolated from global styles
   ========================================================= */

.sr-hero {
  position: relative;
  overflow: hidden;
}

.sr-hero-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.sr-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 60px;
  align-items: center;
}

/* Hero text */
.sr-profile-copy {
  min-width: 0;
  max-width: 760px;
}

/* Hero portrait container */
.sr-portrait {
  display: block;
  position: relative;

  width: 310px;
  max-width: 310px;

  height: auto;
  max-height: none;

  margin: 0;
  padding: 9px;

  box-sizing: border-box;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(184, 138, 68, 0.3);
  box-shadow: 0 18px 50px rgba(45, 31, 15, 0.12);
}

/* IMPORTANT:
   Override any global img height/width rules */
.sr-hero .sr-portrait img {
  display: block;

  width: 100% !important;
  height: auto !important;

  max-width: 100% !important;
  max-height: none !important;

  aspect-ratio: 3 / 4;

  object-fit: cover;
  object-position: center top;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
}

/* Caption */
.sr-hero .sr-portrait figcaption {
  display: block;

  margin: 0;
  padding: 9px 5px 1px;

  font-size: 0.72rem;
  line-height: 1.4;

  opacity: 0.68;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

  .sr-profile {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 35px;
  }

  .sr-portrait {
    width: 245px;
    max-width: 245px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .sr-profile {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sr-portrait {
    width: min(100%, 330px);
    max-width: 330px;
  }

  .sr-hero .sr-portrait img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
  }

}

/* =========================================================
   SOCRATES REFERENCE PAGE — DARK MODE
   Detects the site's existing appearance-panel state
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-hero {
  background:
    radial-gradient(circle at 80% 20%,
      rgba(184, 138, 68, 0.12),
      transparent 34%),
    linear-gradient(135deg,
      #15161c,
      #1c1b1a);

  border-bottom-color: rgba(184, 138, 68, 0.28);
}


/* =========================================================
   HERO TEXT
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-profile h1 {
  color: #f3eee4;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-lede {
  color: #ddd6c9;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-breadcrumb {
  color: #c8c0b3;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-breadcrumb a {
  color: inherit;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-breadcrumb a:hover {
  color: #d0a15a;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-kicker {
  color: #d0a15a;
}


/* =========================================================
   HERO TAGS
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-tags span {
  color: #ddd6c9;

  border-color: rgba(208, 161, 90, 0.45);

  background: rgba(184, 138, 68, 0.05);
}


/* =========================================================
   HERO IMAGE FRAME
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-portrait {
  background: rgba(255, 255, 255, 0.055);

  border-color: rgba(208, 161, 90, 0.28);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   IMAGE CAPTION
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-portrait figcaption {
  color: #bdb5a8;
}


/* =========================================================
   REFERENCE PAGE BELOW HERO
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-page {
  background: #15161c;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-sidebar-card {
  border-top-color: #b88a44;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-sidebar-heading {
  color: #eee7da;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-sidebar nav a {
  color: #d0c8bb;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-sidebar nav a:hover,
body:has(.theme-options button[data-theme="dark"].active) .sr-sidebar nav a.is-active {
  color: #d0a15a;
  background: rgba(184, 138, 68, 0.08);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-section h2,
body:has(.theme-options button[data-theme="dark"].active) .sr-related h2 {
  color: #f3eee4;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-section h3,
body:has(.theme-options button[data-theme="dark"].active) .sr-related h3 {
  color: #eee7da;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-section p,
body:has(.theme-options button[data-theme="dark"].active) .sr-related p {
  color: #d0c8bb;
}


/* =========================================================
   DARK MODE CARDS
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-card,
body:has(.theme-options button[data-theme="dark"].active) .sr-source,
body:has(.theme-options button[data-theme="dark"].active) .sr-legacy-grid>div,
body:has(.theme-options button[data-theme="dark"].active) .sr-certainty>div,
body:has(.theme-options button[data-theme="dark"].active) .sr-dialogues a {
  background: rgba(255, 255, 255, 0.045);

  border-color: rgba(208, 161, 90, 0.18);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-card p,
body:has(.theme-options button[data-theme="dark"].active) .sr-source p,
body:has(.theme-options button[data-theme="dark"].active) .sr-legacy-grid p {
  color: #c9c1b5;
}


/* =========================================================
   DARK MODE ANSWER / CAUTION / TERM BOXES
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-answer,
body:has(.theme-options button[data-theme="dark"].active) .sr-caution,
body:has(.theme-options button[data-theme="dark"].active) .sr-term {
  background: rgba(184, 138, 68, 0.08);

  border-left-color: #b88a44;

  color: #d8d0c4;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-answer strong {
  color: #d0a15a;
}


/* =========================================================
   DARK MODE FACTS
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-facts {
  border-color: rgba(208, 161, 90, 0.2);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-facts div {
  border-color: rgba(208, 161, 90, 0.15);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-facts dt,
body:has(.theme-options button[data-theme="dark"].active) .sr-facts dd {
  color: #d0c8bb;
}


/* =========================================================
   DARK MODE TIMELINE
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-timeline {
  border-left-color: rgba(184, 138, 68, 0.45);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-timeline>div::before {
  background: #15161c;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-year {
  color: #d0a15a;
}


/* =========================================================
   DARK MODE QUOTE
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-quote {
  border-color: rgba(184, 138, 68, 0.4);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-quote blockquote {
  color: #eee7da;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-quote cite {
  color: #aaa195;
}


/* =========================================================
   DARK MODE FAQ
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-faq {
  border-top-color: rgba(208, 161, 90, 0.2);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-faq details {
  border-bottom-color: rgba(208, 161, 90, 0.15);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-faq summary {
  color: #eee7da;
}

body:has(.theme-options button[data-theme="dark"].active) .sr-faq details p {
  color: #c9c1b5;
}


/* =========================================================
   DARK MODE RELATED LINKS
   ========================================================= */

body:has(.theme-options button[data-theme="dark"].active) .sr-related {
  border-top-color: rgba(184, 138, 68, 0.4);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-related-links a {
  color: #d0c8bb;
  border-color: rgba(208, 161, 90, 0.2);
}

body:has(.theme-options button[data-theme="dark"].active) .sr-related-links a:hover {
  color: #d0a15a;
  border-color: #b88a44;
}

/* =========================================================
   SCROLLABLE ARTICLE TOC
   ========================================================= */

.article-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
}

.article-toc__list {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;

  /* Firefox */
  scrollbar-width: thin;
}

/* Chrome / Edge / Safari */
.article-toc__list::-webkit-scrollbar {
  width: 5px;
}

.article-toc__list::-webkit-scrollbar-track {
  background: transparent;
}

.article-toc__list::-webkit-scrollbar-thumb {
  background: rgba(184, 138, 68, 0.45);
  border-radius: 10px;
}

.article-toc__list::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 138, 68, 0.75);
}

/* ================= PHILOSOPHER REFERENCE LINKS ================= */

.fwd-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
}

/* Individual philosopher links */
.fwd-chip-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 1rem;

  border: 1px solid rgba(184, 138, 68, 0.45);
  border-radius: 4px;

  background: rgba(184, 138, 68, 0.07);

  color: inherit;
  text-decoration: none;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

/* Hover */
.fwd-chip-list a:hover {
  background: rgba(184, 138, 68, 0.16);
  border-color: rgba(184, 138, 68, 0.8);
  transform: translateY(-2px);
}

/* Keyboard accessibility */
.fwd-chip-list a:focus-visible {
  outline: 2px solid #b88a44;
  outline-offset: 3px;
}

/* ================= DARK MODE ================= */

body.dark-theme .fwd-chip-list a {
  background: rgba(184, 138, 68, 0.1);
  border-color: rgba(184, 138, 68, 0.5);
  color: #e8dcc7;
}

body.dark-theme .fwd-chip-list a:hover {
  background: rgba(184, 138, 68, 0.2);
  border-color: #b88a44;
  color: #f1e7d4;
}

/* ================= TABLET ================= */

@media (max-width: 700px) {
  .fwd-chip-list {
    gap: 0.6rem;
  }

  .fwd-chip-list a {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 480px) {
  .fwd-chip-list {
    gap: 0.5rem;
  }

  .fwd-chip-list a {
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
  }
}

/* =========================================================
   MISCONCEPTIONS + FAQ ACCORDION
   ========================================================= */

/* Container spacing */
#misconceptions .sr-related-links,
#faq .sr-related-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Individual accordion item */
#misconceptions details,
#faq details {
  border: 1px solid rgba(184, 138, 68, 0.35);
  border-radius: 5px;
  background: rgba(184, 138, 68, 0.035);
  overflow: hidden;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Hover */
#misconceptions details:hover,
#faq details:hover {
  border-color: rgba(184, 138, 68, 0.65);
  background: rgba(184, 138, 68, 0.06);
}

/* =========================================================
   QUESTION / SUMMARY
   ========================================================= */

#misconceptions summary,
#faq summary {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 3.4rem;
  padding: 0.9rem 3.25rem 0.9rem 1.15rem;

  cursor: pointer;
  list-style: none;

  color: inherit;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

/* Remove browser's default marker */
#misconceptions summary::-webkit-details-marker,
#faq summary::-webkit-details-marker {
  display: none;
}

#misconceptions summary::marker,
#faq summary::marker {
  display: none;
  content: "";
}

/* =========================================================
   PLUS / MINUS INDICATOR
   ========================================================= */

#misconceptions summary::after,
#faq summary::after {
  content: "+";

  position: absolute;
  right: 1.15rem;
  top: 50%;

  transform: translateY(-50%);

  width: 1.35rem;
  height: 1.35rem;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(184, 138, 68, 0.5);
  border-radius: 50%;

  color: #b88a44;

  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Open state */
#misconceptions details[open] summary::after,
#faq details[open] summary::after {
  content: "−";
  background: rgba(184, 138, 68, 0.12);
}

/* Open question */
#misconceptions details[open] summary,
#faq details[open] summary {
  color: #b88a44;
  background: rgba(184, 138, 68, 0.06);
}

/* =========================================================
   ANSWER
   ========================================================= */

#misconceptions details p,
#faq details p {
  margin: 0;

  padding: 0 1.25rem 1.15rem 1.25rem;

  border-top: 1px solid rgba(184, 138, 68, 0.18);

  font-size: 1rem;
  line-height: 1.75;
}

/* Give the answer a little breathing room when opened */
#misconceptions details[open] p,
#faq details[open] p {
  padding-top: 1rem;
}

/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

#misconceptions summary:focus-visible,
#faq summary:focus-visible {
  outline: 2px solid #b88a44;
  outline-offset: -2px;
}

/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-theme #misconceptions details,
body.dark-theme #faq details {
  border-color: rgba(184, 138, 68, 0.38);
  background: rgba(184, 138, 68, 0.055);
}

body.dark-theme #misconceptions details:hover,
body.dark-theme #faq details:hover {
  border-color: rgba(184, 138, 68, 0.7);
  background: rgba(184, 138, 68, 0.09);
}

body.dark-theme #misconceptions summary,
body.dark-theme #faq summary {
  color: #e8dcc7;
}

body.dark-theme #misconceptions details[open] summary,
body.dark-theme #faq details[open] summary {
  color: #d4aa68;
  background: rgba(184, 138, 68, 0.08);
}

body.dark-theme #misconceptions details p,
body.dark-theme #faq details p {
  border-top-color: rgba(184, 138, 68, 0.2);
  color: #d8d0c4;
}

body.dark-theme #misconceptions summary::after,
body.dark-theme #faq summary::after {
  color: #d4aa68;
  border-color: rgba(184, 138, 68, 0.55);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

  #misconceptions .sr-related-links,
  #faq .sr-related-links {
    gap: 0.65rem;
    margin-top: 1.25rem;
  }

  #misconceptions summary,
  #faq summary {
    min-height: 3.2rem;
    padding: 0.85rem 3rem 0.85rem 1rem;
    font-size: 1.05rem;
  }

  #misconceptions summary::after,
  #faq summary::after {
    right: 0.9rem;
  }

  #misconceptions details p,
  #faq details p {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  #misconceptions .sr-related-links,
  #faq .sr-related-links {
    gap: 0.55rem;
  }

  #misconceptions summary,
  #faq summary {
    min-height: 3rem;
    padding: 0.8rem 2.75rem 0.8rem 0.9rem;
    font-size: 1rem;
  }

  #misconceptions summary::after,
  #faq summary::after {
    right: 0.75rem;

    width: 1.25rem;
    height: 1.25rem;

    font-size: 0.9rem;
  }

  #misconceptions details p,
  #faq details p {
    padding: 0.85rem 0.9rem 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  #misconceptions details[open] p,
  #faq details[open] p {
    padding-top: 0.85rem;
  }
}

/* ================= RELATED LINK CARDS ================= */

.sr-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.sr-related-card {
  display: block;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(184, 138, 68, 0.28);
  border-radius: 8px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.sr-related-card h3 {
  margin: 0 0 0.45rem;
  color: #8b642d;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.sr-related-card p {
  margin: 0;
  color: #4f463b;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Hover */
.sr-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 138, 68, 0.65);
  background: rgba(243, 239, 239, 0.7);
  box-shadow: 0 6px 18px rgba(60, 45, 25, 0.1);
}

/* Keyboard accessibility */
.sr-related-card:focus-visible {
  outline: 2px solid #b88a44;
  outline-offset: 3px;
}

/* Prevent browser's default link colors */
.sr-related-card:visited {
  color: inherit;
}

.sr-related-card:active {
  transform: translateY(-1px);
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {
  .sr-related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sr-related-card {
    padding: 1.15rem 1.2rem;
  }

  .sr-related-card h3 {
    font-size: 1rem;
  }

  .sr-related-card p {
    font-size: 0.92rem;
  }
}

/* =========================================================
   COMPARISON TABLE — LIGHT MODE
   ========================================================= */

.sr-comparison-wrap {
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sr-comparison {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;

  background: #fffdf8 !important;
  color: #40382f !important;

  border: 1px solid #c9a66b;
  border-radius: 8px;

  box-shadow: 0 4px 14px rgba(60, 45, 25, 0.08);
}

/* Caption */

.sr-comparison caption {
  caption-side: top;
  padding: 0 0 0.85rem;

  text-align: left;

  color: #765323 !important;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Header */

.sr-comparison thead th {
  background: #f1e7d3 !important;
  color: #5f421d !important;

  padding: 1rem 1.1rem;

  border-bottom: 2px solid #c9a66b;

  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}

/* Body */

.sr-comparison tbody td,
.sr-comparison tbody th {
  padding: 1rem 1.1rem;

  background: #fffdf8 !important;
  color: #40382f !important;

  border-bottom: 1px solid #dfcfb2;

  text-align: left;
  vertical-align: top;
}

/* Position names */

.sr-comparison tbody th[scope="row"] {
  color: #765323 !important;
  font-family: "Cinzel", serif;
  font-weight: 600;
}

/* Alternating rows */

.sr-comparison tbody tr:nth-child(even) td,
.sr-comparison tbody tr:nth-child(even) th {
  background: #faf5ea !important;
}

/* Hover */

.sr-comparison tbody tr:hover td,
.sr-comparison tbody tr:hover th {
  background: #f3ead9 !important;
}

/* Last row */

.sr-comparison tbody tr:last-child td,
.sr-comparison tbody tr:last-child th {
  border-bottom: none;
}


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark-mode .sr-comparison {
  background: #211e1a !important;
  color: #ddd5c8 !important;

  border-color: #8f6b38 !important;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

/* Dark caption */

body.dark-mode .sr-comparison caption {
  color: #d4a45e !important;
}

/* Dark header */

body.dark-mode .sr-comparison thead th {
  background: #302a23 !important;
  color: #e2b96f !important;

  border-bottom-color: #8f6b38 !important;
}

/* Dark body */

body.dark-mode .sr-comparison tbody td,
body.dark-mode .sr-comparison tbody th {
  background: #211e1a !important;
  color: #ddd5c8 !important;

  border-bottom-color: #4d402f !important;
}

/* Dark position names */

body.dark-mode .sr-comparison tbody th[scope="row"] {
  color: #d4a45e !important;
}

/* Dark alternating rows */

body.dark-mode .sr-comparison tbody tr:nth-child(even) td,
body.dark-mode .sr-comparison tbody tr:nth-child(even) th {
  background: #28231d !important;
}

/* Dark hover */

body.dark-mode .sr-comparison tbody tr:hover td,
body.dark-mode .sr-comparison tbody tr:hover th {
  background: #332b21 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {
  .sr-comparison {
    min-width: 680px;
    font-size: 0.9rem;
  }

  .sr-comparison thead th,
  .sr-comparison tbody td,
  .sr-comparison tbody th {
    padding: 0.85rem 0.9rem;
  }
}

/* =========================================================
   FREE WILL & DETERMINISM — EXAMPLES
   LIGHT MODE
   ========================================================= */

.fwd-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.fwd-example-card {
  position: relative;

  padding: 1.4rem 1.45rem;

  background: #fffdf8;
  color: #40382f;

  border: 1px solid #d8c39d;
  border-radius: 8px;

  box-shadow: 0 3px 12px rgba(60, 45, 25, 0.07);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Gold accent line */

.fwd-example-card::before {
  content: "";
  position: absolute;

  top: 0;
  left: 1.45rem;

  width: 38px;
  height: 2px;

  background: #b88a44;
}

/* Heading */

.fwd-example-card h3 {
  margin: 0 0 0.55rem;
  padding-top: 0.15rem;

  color: #765323;

  font-family: "Cinzel", serif;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Paragraph */

.fwd-example-card p {
  margin: 0;

  color: #51483d;

  font-size: 0.95rem;
  line-height: 1.7;
}

/* Light hover */

.fwd-example-card:hover {
  transform: translateY(-3px);

  background: #fffaf0;
  border-color: #b88a44;

  box-shadow: 0 7px 18px rgba(60, 45, 25, 0.11);
}





/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {
  .fwd-examples-grid {
    gap: 1rem;
  }

  .fwd-example-card {
    padding: 1.25rem 1.3rem;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .fwd-examples-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.4rem;
  }

  .fwd-example-card {
    padding: 1.2rem 1.25rem;
  }

  .fwd-example-card h3 {
    font-size: 0.98rem;
  }

  .fwd-example-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

/* =========================================================
   FREE WILL & DETERMINISM — EXAMPLES
   DARK MODE
   ========================================================= */

.fwd-examples-grid {
  /* Keeps the existing grid layout */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.fwd-example-card {
  background: #211e1a;
  border: 1px solid #594a35;
  color: #ddd5c8;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Small gold accent at top of each card */

.fwd-example-card::before {
  background: #c49a58;
}

/* Card headings */

.fwd-example-card h3 {
  color: #d7aa63;
}

/* Card descriptions */

.fwd-example-card p {
  color: #d0c8bc;
}

/* Hover */

.fwd-example-card:hover {
  background: #28231d;
  border-color: #b88a44;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   DARK MODE — TABLET
   ========================================================= */

@media (max-width: 800px) {
  .fwd-example-card {
    padding: 1.25rem 1.3rem;
  }
}


/* =========================================================
   DARK MODE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .fwd-examples-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fwd-example-card {
    padding: 1.2rem 1.25rem;
  }

  .fwd-example-card h3 {
    font-size: 0.98rem;
  }

  .fwd-example-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }
}

/* =========================================================
     FORMS / KEY POINTS GRID (reused component: fw-views)
     LIGHT / DEFAULT THEME
     ========================================================= */

.fw-views {
  width: 100%;
  margin: 34px 0;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(120, 88, 42, 0.2);
  background: rgba(184, 138, 68, 0.035);
}

.fw-views-title {
  margin: 0 0 22px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  color: #b88a44;
}

.fw-views-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fw-views-card {
  min-width: 0;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid rgba(120, 88, 42, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

.fw-views-card h3 {
  margin: 0 0 12px;
  font-family: "Cinzel", Georgia, serif;
  color: #b88a44;
}

.fw-views-card p {
  margin-bottom: 0;
}

.fw-views-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 88, 42, 0.16);
  font-size: 0.92rem;
}

.fw-views-note strong {
  color: #b88a44;
}

/* DARK THEME */

body.dark-theme .fw-views,
body.dark-mode .fw-views,
body.dark .fw-views,
body[data-theme="dark"] .fw-views {
  border-color: rgba(184, 138, 68, 0.22);
  background: rgba(184, 138, 68, 0.035);
}

body.dark-theme .fw-views-title,
body.dark-mode .fw-views-title,
body.dark .fw-views-title,
body[data-theme="dark"] .fw-views-title {
  color: #c9a45d;
}

body.dark-theme .fw-views-card,
body.dark-mode .fw-views-card,
body.dark .fw-views-card,
body[data-theme="dark"] .fw-views-card {
  border-color: rgba(184, 138, 68, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

body.dark-theme .fw-views-card h3,
body.dark-mode .fw-views-card h3,
body.dark .fw-views-card h3,
body[data-theme="dark"] .fw-views-card h3 {
  color: #d8b36a;
}

body.dark-theme .fw-views-note,
body.dark-mode .fw-views-note,
body.dark .fw-views-note,
body[data-theme="dark"] .fw-views-note {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .fw-views-note strong,
body.dark-mode .fw-views-note strong,
body.dark .fw-views-note strong,
body[data-theme="dark"] .fw-views-note strong {
  color: #c9a45d;
}

/* =========================================================
     INTERNAL LINK STYLE
     ========================================================= */

.sr-section a[href="free-will.html"],
.sr-section a[href="free-will-vs-determinism.html"] {
  color: #9a6f32;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(154, 111, 50, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-shadow: 0 0 5px rgba(184, 138, 68, 0.25);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    text-decoration-color 0.2s ease;
}

.sr-section a[href="free-will.html"]:hover,
.sr-section a[href="free-will-vs-determinism.html"]:hover {
  color: #b88a44;
  text-decoration-color: #b88a44;
  text-shadow:
    0 0 6px rgba(184, 138, 68, 0.4),
    0 0 12px rgba(184, 138, 68, 0.18);
}

/* =========================================================
     INTERNAL LINK STYLE
     ========================================================= */

.sr-section a[href="free-will.html"],
.sr-section a[href="determinism.html"] {
  color: #9a6f32;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(154, 111, 50, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-shadow: 0 0 5px rgba(184, 138, 68, 0.25);
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    text-decoration-color 0.2s ease;
}

.sr-section a[href="free-will.html"]:hover,
.sr-section a[href="free-will-vs-determinism.html"]:hover {
  color: #b88a44;
  text-decoration-color: #b88a44;
  text-shadow:
    0 0 6px rgba(184, 138, 68, 0.4),
    0 0 12px rgba(184, 138, 68, 0.18);
}


/* =========================================================
     TIMELINE
     ========================================================= */

.fw-timeline {
  margin: 30px 0;
  padding-left: 20px;
  border-left: 2px solid rgba(184, 138, 68, 0.42);
}

.fw-timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 22px;
}

.fw-timeline-item:last-child {
  margin-bottom: 0;
}

.fw-timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: 2px solid #b88a44;
  border-radius: 50%;
  background: #f8f4ec;
}

.fw-timeline-date {
  display: block;
  margin-bottom: 5px;
  color: #9b6f2e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fw-timeline-item h3 {
  margin-bottom: 7px;
  font-family: "Cinzel", Georgia, serif;
  color: #8f672e;
}

body.dark-theme .fw-timeline,
body.dark-mode .fw-timeline,
body.dark .fw-timeline,
body[data-theme="dark"] .fw-timeline {
  border-left-color: rgba(184, 138, 68, 0.42);
}

body.dark-theme .fw-timeline-item::before,
body.dark-mode .fw-timeline-item::before,
body.dark .fw-timeline-item::before,
body[data-theme="dark"] .fw-timeline-item::before {
  background: #15161b;
}

body.dark-theme .fw-timeline-date,
body.dark-mode .fw-timeline-date,
body.dark .fw-timeline-date,
body[data-theme="dark"] .fw-timeline-date {
  color: #c9a45d;
}

body.dark-theme .fw-timeline-item h3,
body.dark-mode .fw-timeline-item h3,
body.dark .fw-timeline-item h3,
body[data-theme="dark"] .fw-timeline-item h3 {
  color: #d8b36a;
}

/* =========================================================
     TABLET
     ========================================================= */

@media (max-width: 900px) {
  .fw-views-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
     MOBILE — 700px
     ========================================================= */

@media (max-width: 700px) {
  .sr-comparison-wrap {
    margin: 24px 0 30px;
    border-radius: 3px;
    max-width: 100%;
  }

  .sr-comparison {
    min-width: 640px;
    font-size: 0.9rem;
  }

  .sr-comparison caption {
    padding: 15px 16px;
    font-size: 0.95rem;
  }

  .sr-comparison th,
  .sr-comparison td {
    padding: 12px 14px;
  }

  .sr-comparison thead th {
    font-size: 0.7rem;
  }

  .fw-views {
    margin: 28px 0;
    padding: 18px;
  }

  .fw-views-title {
    margin-bottom: 18px;
    font-size: 1rem;
  }

  .fw-views-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fw-views-card {
    padding: 18px;
  }

  .fw-views-note {
    font-size: 0.88rem;
  }

  .fw-timeline {
    margin: 24px 0;
    padding-left: 15px;
  }

  .fw-timeline-item {
    margin-bottom: 24px;
    padding-left: 17px;
  }

  .fw-timeline-item::before {
    left: -22px;
    width: 9px;
    height: 9px;
  }
}

/* SMALL MOBILE — 480px */

@media (max-width: 480px) {
  .sr-comparison {
    min-width: 600px;
  }

  .sr-comparison th,
  .sr-comparison td {
    padding: 11px 12px;
  }

  .fw-views {
    margin: 24px 0;
    padding: 15px;
  }

  .fw-views-card {
    padding: 15px;
  }

  .fw-views-note {
    margin-top: 17px;
    padding-top: 15px;
    font-size: 0.84rem;
  }

  .fw-timeline {
    padding-left: 13px;
  }

  .fw-timeline-item {
    margin-bottom: 21px;
    padding-left: 13px;
  }

  .fw-timeline-item::before {
    left: -20px;
  }
}

/* VERY SMALL PHONES — 360px */

@media (max-width: 360px) {
  .fw-views {
    padding: 13px;
  }

  .fw-views-card {
    padding: 13px;
  }

  .sr-comparison {
    min-width: 580px;
  }
}

/* =========================================================
     SECTION LABEL
     ========================================================= */

.sr-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 11px;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8f672d;
  background: rgba(184, 138, 68, 0.08);
  border: 1px solid rgba(184, 138, 68, 0.28);
  border-radius: 3px;
}

.sr-section-label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #b88a44;
  border-radius: 50%;
  flex-shrink: 0;
}

.sr-section-label:hover {
  background: rgba(184, 138, 68, 0.12);
  border-color: rgba(184, 138, 68, 0.42);
}

/* ---------- BLACK THEME: side navigation ---------- */
.nav-reverse-inner,
body:not(.theme-dark) .nav-reverse-inner {
  background: rgba(8, 8, 10, 0.95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

body:not(.theme-dark) .category-nav.nav-reverse a {
  color: var(--ink-text, #e9e4d8);
}

body:not(.theme-dark) .category-nav.nav-reverse a:hover,
body:not(.theme-dark) .category-nav.nav-reverse a:focus-visible {
  background: rgba(201, 161, 90, 0.10);
  color: var(--gold-bright, #e0bb72);
}

body:not(.theme-dark) .category-nav.nav-reverse a.is-active,
body:not(.theme-dark) .category-nav.nav-reverse a[aria-current="location"] {
  color: var(--gold-bright, #e0bb72);
  background: rgba(201, 161, 90, 0.16);
}