/* v2.css — shared styling for the server-rendered Directus pages
   (articles-v2.html, get-closer-glossary-v2.html). Reuses the site's brand
   tokens and chrome (nav/footer/toggle) so the v2 pages match the rest of the
   site. Light mode is driven by nav.js, which overrides these vars on
   body.gc-light. */

:root {
  --charcoal: #2A2520;
  --charcoal-deep: #1e1a16;
  --gold: #C9A96E;
  --gold-light: #E8D4A0;
  --muted: #7A7267;
  --off-white: #F7F4EE;
  --warm: #EDE8DF;
  --border: #DDD8CE;
  --border-dark: #3d3830;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  background: var(--charcoal);
  color: var(--off-white);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* HERO */
.page-hero { padding: 8rem 3rem 4rem; max-width: 1200px; margin: 0 auto; border-bottom: 1px solid var(--border-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: end; }
.hero-eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 1.2rem; }
.hero-body { font-size: 0.95rem; color: var(--muted); line-height: 1.85; }
.hero-headline { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; line-height: 1.1; color: var(--gold-light); margin-bottom: 1rem; opacity: 0; animation: fadeUp 0.9s ease forwards 0.5s; }
.hero-headline em { font-style: italic; color: var(--off-white); display: block; }
.section-headline { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 400; line-height: 1.15; color: var(--gold-light); margin-bottom: 2.5rem; }
.section-headline em { font-style: italic; color: var(--off-white); }

/* BUTTONS */
.btn-primary { display: inline-block; font-family: 'Epilogue', sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; background: var(--gold); color: var(--charcoal); padding: 1.1rem 2.4rem; text-decoration: none; transition: background 0.25s; }
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary { display: inline-block; font-family: 'Epilogue', sans-serif; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border-dark); padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.btn-secondary:hover { color: var(--gold-light); border-color: var(--gold); }

/* REVEAL ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* NAV (markup injected by nav.js) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 3rem; background: rgba(42, 37, 32, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-dark); }
.nav-left { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.nav-logo img { height: 36px; width: auto; display: block; max-width: 180px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; flex-shrink: 0; }
.nav-links a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.25s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta { color: var(--charcoal) !important; background: var(--gold); padding: 0.52rem 0.9rem; line-height: 1; transition: background 0.25s !important; }
.nav-cta:hover { background: var(--gold-light) !important; }
.oh-shit-btn { background: none; border: 1px solid var(--border-dark); color: var(--muted); font-family: 'Epilogue', sans-serif; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.57rem 0.8rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; flex-shrink: 0; }
.oh-shit-btn:hover { background: rgba(201, 169, 110, 0.08); color: var(--gold); border-color: var(--gold); }
.oh-shit-icon { display: none; }

/* LAYOUT */
main { max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 4rem; }
.content-hero { text-align: center; padding: 2rem 0 3rem; border-bottom: 1px solid var(--border-dark); margin-bottom: 3rem; }
.content-hero .eyebrow { font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.content-hero h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 3rem; margin: 0.8rem 0; line-height: 1.1; }
.content-hero p { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ARTICLE GRID */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { text-decoration: none; display: flex; flex-direction: column; border: 1px solid var(--border-dark); transition: background 0.25s, transform 0.25s; background: var(--charcoal-deep); }
.card:hover { background: rgba(201,169,110,0.05); transform: translateY(-3px); }
.card-img, .card-img-ph { width: 100%; height: 200px; object-fit: cover; object-position: center; display: block; border-bottom: 1px solid var(--border-dark); }
.card-img-ph { background: linear-gradient(135deg, var(--charcoal), var(--charcoal-deep)); }
.card-body { padding: 1.6rem; flex: 1; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--gold-light); line-height: 1.3; margin-bottom: 0.7rem; }
.card-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.card-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; background: rgba(201,169,110,0.5); padding: 0 1.2rem; height: 2.2rem; }
.card-bar span { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); white-space: nowrap; }

/* SINGLE ARTICLE / TERM */
.back-link { display: inline-block; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-bottom: 2rem; }
.back-link:hover { color: var(--gold); }
.article { max-width: 760px; margin: 0 auto; }
.article .tag { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.article a.tag:hover { color: var(--gold-light); }
.article h1 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 2.6rem; line-height: 1.15; margin: 0.8rem 0 1rem; }
.article .standfirst { font-size: 1.15rem; color: var(--gold-light); font-style: italic; line-height: 1.6; margin-bottom: 1.5rem; }
.article .standfirst p { margin-bottom: 0.8rem; }
.article .standfirst p:last-child { margin-bottom: 0; }
.article .meta { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.article .hero-img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 2.5rem; }
/* Risk notice — the red border is the reserved site-wide risk signal. Body text
   stays in the normal readable colour so the message is easy to read first time;
   the border carries the signal, not the text. Red is used only here (+ the
   matching list flag) and nowhere else as an error/badge colour. */
.risk-notice { border: 1px solid #d12b2b; border-radius: 0; padding: 1.1rem 1.4rem; margin: 0 0 2.5rem; }
.risk-notice p { font-size: 0.98rem; line-height: 1.75; color: var(--off-white); margin: 0 0 0.9rem; }
.risk-notice p:last-child { margin-bottom: 0; }
.risk-notice .risk-notice-lead { color: var(--off-white); }
.risk-notice a { color: var(--gold-light); }
.risk-notice .risk-notice-note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--border-dark); padding-top: 0.9rem; margin-top: 0.2rem; }
.prose { font-size: 1.02rem; line-height: 1.9; color: var(--off-white); }
.prose h2, .prose h3, .prose h4 { font-family: 'Playfair Display', serif; font-weight: 400; color: var(--gold-light); margin: 2rem 0 2rem; line-height: 1.25; }
.prose h3 { font-size: 0.72rem; font-family: 'Epilogue', sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 2.4rem; }
.prose h4 { font-size: 1.5rem; }
.prose p { margin-bottom: 1.2rem; }
.prose a { color: var(--gold-light); }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose hr, .article-body hr { border: none; border-top: 1px solid var(--gold); opacity: 0.4; margin: 1.5rem 0; }


.empty { text-align: center; color: var(--muted); padding: 4rem 1rem; font-style: italic; }

/* RELATED TERMS */
.term-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-dark); display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.term-related.no-border { border-top: none; padding-top: 0; margin-top: 0.8rem; }
.term-related-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-right: 0.4rem; flex-shrink: 0; }
.term-related-link { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--border-dark); padding: 0.3rem 0.8rem; text-decoration: none; transition: border-color 0.2s, color 0.2s; letter-spacing: 0.04em; text-transform: none; }
.term-related-link:hover { border-color: var(--gold); color: var(--gold-light); }
/* Compact chip rows (metadata above main content) */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.chip-row-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); flex-shrink: 0; }

/* TERM NAV (prev/next between glossary terms) */
.term-nav { margin: 1rem 0 0.5rem; border-top: 1px solid var(--border-dark); padding-top: 0.75rem; }
.term-nav--top { position: fixed; top: 74px; left: 0; right: 0; z-index: 99; background: var(--charcoal); border-top: none; padding: 0; border-bottom: 1px solid var(--border-dark); }
.term-nav--top .term-nav-arrows { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }.term-nav--top::before { content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 90px; background: var(--charcoal); }
.new-cat-banner { background: var(--gold); color: var(--charcoal); text-align: center; padding: 0.5rem 1rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.term-nav-arrows { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.term-nav-arrow { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--muted); font-size: 0.78rem; transition: color 0.2s; flex: 1; max-width: 45%; }
.term-nav-arrow:hover { color: var(--gold); }
.term-nav-arrow--next { margin-left: auto; flex-direction: row; justify-content: flex-end; }
.term-nav-arrow--empty { flex: 1; }
.term-nav-label { line-height: 1.3; }
.term-nav-all { display: block; text-align: center; margin-top: 1.25rem; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.term-nav-all:hover { color: var(--gold); }

/* TERM HEADER (title + kink counter two-column layout) */
.term-header { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; margin: 2rem 0 6rem; }
.term-header h1 { margin: 0; flex: 1; }
.term-aliases { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; margin: -1.75rem 0 2rem; }
#kink-counter { flex-shrink: 0; }

/* KINK COUNTER */
.kink-btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; }
.kink-counter-wrap { display: inline-flex; flex-direction: row; position: relative; }
.kink-hero-img { position: absolute; bottom: 60%; right: 0; width: 120px; height: auto; z-index: 0; }
.kink-btn { display: inline-flex; align-items: center; gap: 0.7rem; white-space: nowrap; background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 0.5rem 1.2rem; font-family: 'Epilogue', sans-serif; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; border-radius: 999px; position: relative; z-index: 1; }
.kink-btn.tapped { background: var(--gold); color: var(--charcoal); cursor: default; }
.kink-btn-icon { font-size: 0.9rem; line-height: 1; }
.kink-count { position: absolute; top: calc(100% + 0.3rem); left: 0; right: 0; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; font-style: italic; text-align: center; }

/* CONTENT GATE */
.gated { position: relative; pointer-events: none; max-height: 320px; overflow: hidden; }
.gated::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, var(--charcoal) 75%); pointer-events: none; }
.gate-overlay { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; background: rgba(30,26,22,0.88); backdrop-filter: blur(4px); }
.gate-overlay.show { display: flex; }
.gate-modal { background: var(--charcoal-deep); border: 1px solid var(--border-dark); padding: 2.5rem; max-width: 440px; width: 90%; position: relative; }
.gate-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--gold), var(--gold-light)); }
.gate-eyebrow { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.8rem; }
.gate-headline { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 400; line-height: 1.2; margin-bottom: 0.5rem; }
.gate-headline em { font-style: italic; }
.gate-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.5rem; }
.gate-perks { list-style: none; margin: 1rem 0; }
.gate-perks li { font-size: 0.82rem; color: var(--muted); padding: 0.35rem 0; border-bottom: 1px solid var(--border-dark); display: flex; align-items: center; gap: 0.6rem; }
.gate-perks li::before { content: '✓'; color: var(--gold); font-size: 0.72rem; flex-shrink: 0; }
.gate-form { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.2rem 0 1rem; }
.gate-input { background: var(--charcoal); border: 1px solid var(--border-dark); color: var(--off-white); font-family: 'Epilogue', sans-serif; font-size: 0.88rem; padding: 0.75rem 1rem; outline: none; width: 100%; }
.gate-input:focus { border-color: var(--gold); }
.gate-input::placeholder { color: var(--muted); }
.gate-submit { background: var(--gold); border: none; color: var(--charcoal-deep); font-family: 'Epilogue', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.9rem 1.5rem; cursor: pointer; transition: background 0.2s; }
.gate-submit:hover { background: var(--gold-light); }
.gate-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.gate-login { font-size: 0.78rem; color: var(--muted); text-align: center; margin-bottom: 0.5rem; }
.gate-login a { color: var(--gold); text-decoration: none; }
.gate-login a:hover { text-decoration: underline; }
.gate-privacy { font-size: 0.7rem; color: var(--muted); text-align: center; line-height: 1.5; }
.gate-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem; transition: color 0.2s; }
.gate-close:hover { color: var(--off-white); }
.gate-msg { font-size: 0.82rem; color: var(--gold-light); padding: 0.8rem; background: rgba(201,169,110,0.06); border-left: 2px solid var(--gold); display: none; margin-bottom: 1rem; line-height: 1.6; }
.gate-msg.show { display: block; }

/* ─── ACCESSIBILITY ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--charcoal);
  padding: 0.5rem 1rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ─── HAMBURGER ──────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted);
  transition: color 0.2s;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.nav-hamburger:hover { color: var(--gold); }

.nav-hamburger-icon,
.nav-hamburger-icon::before,
.nav-hamburger-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s, background 0.25s;
}
.nav-hamburger-icon { position: relative; margin: 5px 0; }
.nav-hamburger-icon::before,
.nav-hamburger-icon::after { content: ''; position: absolute; left: 0; }
.nav-hamburger-icon::before { top: -7px; }
.nav-hamburger-icon::after  { top:  7px; }

nav.nav-open .nav-hamburger { color: var(--gold-light); }
nav.nav-open .nav-hamburger-icon { background: transparent; }
nav.nav-open .nav-hamburger-icon::before { transform: rotate(45deg) translate(5px, 5px); }
nav.nav-open .nav-hamburger-icon::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* Dark mode toggle: reset button styles when it's a <button> */
button.gc-toggle-track { appearance: none; -webkit-appearance: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .page-hero { grid-template-columns: 1fr; gap: 2rem; padding: 6rem 1.5rem 3rem; }
}

@media (max-width: 1000px) {
  nav { padding: 1rem 1.2rem; overflow: visible; }
  .nav-left { gap: 0.4rem; }
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-logo img { max-width: 140px; }
  .oh-shit-btn { padding: 0.5rem 0.6rem; letter-spacing: 0; font-size: 1rem; border-color: var(--gold); color: var(--gold); }
  .oh-shit-text { display: none; }
  .oh-shit-icon { display: inline; }
  #gc-admin-heart { display: none; }
  .nav-hamburger { display: flex; align-items: center; }

  nav .nav-links {
    display: none;
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: rgba(30, 26, 22, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem 1.5rem;
    z-index: 99;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  nav.nav-open .nav-links { display: flex; }

  nav .nav-links li { display: block !important; border-bottom: 1px solid var(--border-dark); }
  nav .nav-links .nav-li-cta  { border-bottom: none; padding: 0.75rem 0; order: -1; }
  nav .nav-links .nav-li-toggle { border-bottom: none; padding: 0.75rem 0; display: flex !important; align-items: center; }

  nav .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }
  nav .nav-links .nav-cta {
    display: block;
    width: 12rem;
    padding: 0.6rem 1rem;
    font-size: 0.72rem;
    margin: 0;
    text-align: center;
  }
  nav .nav-links .nav-li-auth { min-width: unset !important; text-align: left !important; }
}

@media (max-width: 600px) {
  main { padding: 7rem 1.2rem 3rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .grid { grid-template-columns: 1fr; }
  .term-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .kink-btn { padding: 0.8rem 1.4rem; }
  .kink-btn-group { flex-direction: column; }
  .kink-count { position: static; margin-left: 0.6rem; text-align: left; align-self: center; }
  #gc-admin-heart { display: none; }

  /* Term nav prev/next bar */
  .term-nav--top .term-nav-arrows { padding: 0 1rem; gap: 0.5rem; }
  .term-nav-label { display: none; }
  .term-nav-center { font-size: 0.6rem; letter-spacing: 0.06em; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
  span.term-nav-cat { display: none; }
  a.term-nav-cat { display: block; }
  .term-nav-arrow { max-width: none; flex: 0 0 auto; }
  .term-nav-arrow--empty { display: none; }
}


/* ── Currency switcher ──────────────────────────────────────────────────────── */
.price-val {
  color: var(--gold-light);
}
.price-currency {
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 0.2rem;
}
.gc-currency-row {
  margin-bottom: 1.2rem;
}
.gc-currency-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.gc-currency-inline {
  flex-shrink: 0;
  display: inline-block;
  width: fit-content;
  max-width: 8rem;
  border: 1px solid var(--border-dark) !important;
  padding: 0.35rem 0.7rem !important;
  transition: border-color 0.2s;
}
.gc-currency-inline:hover {
  border-color: var(--gold) !important;
}
.gc-currency-select {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  background: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237A7267'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  border: none;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  cursor: pointer;
  outline: none;
  display: block;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.gc-currency-select option {
  background: var(--charcoal);
}

/* Account settings currency row */
.currency-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.currency-pref-label {
  font-size: 0.88rem;
  color: var(--off-white);
}

/* Inline reference-image grid inside glossary/article prose, with click-to-enlarge */
.gc-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem auto;
  max-width: 640px;
}
.gc-img-grid figure { margin: 0; }
.gc-img-grid img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.gc-img-grid img:hover { opacity: 0.82; }
.gc-img-grid figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
@media (max-width: 560px) {
  .gc-img-grid { grid-template-columns: 1fr; max-width: 420px; }
}
.gc-img-grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}
.gc-img-grid--single img {
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
}

.gc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.gc-lightbox.show { display: flex; }
.gc-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 1.25rem;
  cursor: default;
}
.gc-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--off-white);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
