/* ==========================================================================
   GV88 — shared stylesheet (pure CSS, no JS)
   ========================================================================== */

:root {
  --gold: #f0b429;
  --gold-light: #ffe8a3;
  --gold-dark: #a9711a;
  --red: #a3121c;
  --red-light: #e5323f;
  --ink: #1c1214;
  --bg: #0f0a0b;
  --paper: #fffaf1;
  --paper-dim: #f4ece0;
  --text: #2a1c1a;
  --text-soft: #6b5750;
  --border: #e7dac6;
  --container: 1160px;
  --radius: 10px;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(163,18,28,.35); }
a:hover { color: var(--red-light); }

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: var(--red); }

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .95rem;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #3a2405;
  box-shadow: 0 6px 18px rgba(240, 180, 41, .35);
}
.btn-red {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff8ec;
  box-shadow: 0 6px 18px rgba(163, 18, 28, .35);
}
.btn-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-outline-light {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 232, 163, .7);
  color: #fff8ec;
}
.btn-outline-light:hover { color: var(--gold-light); }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }

/* Site header
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, #1a0d10, #0f0709);
  border-bottom: 2px solid var(--gold-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.logo img { height: 34px; width: auto; }

.site-nav {
  flex: 1 1 auto;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  justify-content: center;
}
.site-nav a {
  color: #f4e6cf;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: .3rem .1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(240, 180, 41, .5);
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, .04);
}
.burger span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--gold-light);
  border-radius: 2px;
}

/* Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .6rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  font-size: .85rem;
  color: var(--text-soft);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: .35rem;
  color: var(--gold-dark);
}
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs li[aria-current="page"] { color: var(--red); font-weight: 700; }

/* Hero
   ========================================================================== */
.hero {
  background-color: #0c0507;
  background-image: url("/assets/img/hero-banner.svg");
  background-size: cover;
  background-position: center;
  color: #fff8ec;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.2rem 1.25rem 3rem;
  max-width: 640px;
}
.hero h1 { color: #fff8ec; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero .updated-date {
  color: var(--gold-light);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero p:not(.updated-date) {
  color: #f1e4d3;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.3rem;
}

/* TOC accordion
   ========================================================================== */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper-dim);
  margin: 1.75rem 0 2.25rem;
  padding: 0;
}
.toc summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .9rem 1.1rem;
  color: var(--ink);
  position: relative;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--red);
}
.toc[open] summary::after { content: "\2212"; }
.toc summary:hover { color: var(--red); }
.toc nav { padding: 0 1.25rem 1.1rem; }
.toc ul {
  columns: 2;
  column-gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li { margin-bottom: .5rem; break-inside: avoid; }
.toc a { text-decoration: none; font-size: .93rem; }
.toc a:hover { text-decoration: underline; }

/* Article content
   ========================================================================== */
main { display: block; }
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3rem;
}
.page-content section { scroll-margin-top: 5.5rem; }
.page-content section + section { border-top: 1px solid var(--border); padding-top: .25rem; }

/* Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #170a0d, #0c0506);
  color: #ddc6b4;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.6rem;
}
.footer-logo img { height: 30px; margin-bottom: 1.2rem; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  padding: 0;
  margin: 0 0 1.4rem;
}
.footer-nav a {
  color: #f0e2cd;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--gold-light); }
.disclaimer {
  font-size: .8rem;
  color: #b39d8c;
  border-top: 1px solid rgba(240, 180, 41, .2);
  padding-top: 1.1rem;
  margin: 0;
}

/* ==========================================================================
   Responsive: mobile burger menu (checkbox hack, no JS)
   ========================================================================== */
@media (max-width: 900px) {
  .burger { display: flex; }

  .site-nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #150a0c;
    border-bottom: 2px solid var(--gold-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 1.25rem 1rem;
  }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }

  .nav-toggle:checked ~ .site-nav { max-height: 70vh; overflow-y: auto; }

  .header-inner { flex-wrap: wrap; }
  .header-actions { order: 3; }
}

@media (min-width: 901px) {
  .header-actions .btn-sm { padding: .5rem 1.1rem; }
}

@media (max-width: 640px) {
  .toc ul { columns: 1; }
  .hero-inner { padding: 2.2rem 1.1rem 2rem; }
  .header-actions .btn { padding: .5rem .8rem; font-size: .85rem; }
}

@media (max-width: 420px) {
  .header-actions .btn span.full { display: none; }
  .logo img { height: 28px; }
}
