/* Dawnwalker Guide — warm black, tarnished gold, blood-red eclipse */
:root {
  --bg-void: #070706;
  --bg-primary: #0d0c0a;
  --bg-secondary: #15110e;
  --bg-card: #1b1511;
  --bg-card-hover: #251914;
  --blood-dark: #3a0707;
  --blood: #7d120d;
  --blood-bright: #b52a16;
  --ember-red: #d7471c;
  --sun-orange: #f06a21;
  --amber: #e89a45;
  --gold: #d8a158;
  --gold-light: #f4c177;
  --tarnished-gold: #9a7040;
  --text-primary: #f0e8dc;
  --text-secondary: #b8aa9a;
  --text-muted: #7d7267;
  --border: rgba(216, 161, 88, .24);
  --border-strong: rgba(232, 154, 69, .55);
  --shadow-deep: 0 18px 44px rgba(0,0,0,.32);
  --font-display: 'Cinzel', Georgia, serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  /* legacy aliases retained for base/template compatibility */
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --ink-faint: var(--text-muted);
  --paper-edge: var(--border);
  --font-head: var(--font-display);
  --font-body: var(--font-sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse at 76% -12%, rgba(125,18,13,.16), transparent 36rem),
    radial-gradient(ellipse at -10% 45%, rgba(216,161,88,.05), transparent 30rem),
    var(--bg-void);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 19; box-shadow: inset 0 0 150px rgba(0,0,0,.5); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-color: rgba(232,154,69,.5); text-underline-offset: 3px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
a:hover { color: var(--gold-light); text-decoration-color: var(--gold-light); }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-wrap { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow, .label, .tag, .meta-label, .primary-nav a, .search-panel label, .footer-col h2, .toc-title {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,7,6,.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(9px); }
.nav-shell { width: min(1360px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text-primary); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--gold-light); }
.eclipse-mark { position: relative; display: inline-block; width: 34px; height: 34px; border: 2px solid var(--gold); border-radius: 50%; overflow: hidden; background: linear-gradient(90deg, rgba(216,161,88,.16) 0 50%, rgba(125,18,13,.22) 50% 100%); box-shadow: 0 0 0 1px rgba(7,7,6,.75) inset; }
.eclipse-mark::before { content: ''; position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: var(--blood-bright); transform: translateX(-50%); }
.eclipse-mark span { position: absolute; width: 5px; height: 5px; top: 5px; right: 4px; background: var(--gold-light); border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; font: 700 .86rem/1 var(--font-display); letter-spacing: .15em; }
.brand-copy b { color: var(--gold); font: 700 .64rem/1.6 var(--font-condensed); letter-spacing: .33em; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; color: var(--text-secondary); text-decoration: none; font-size: .84rem; font-weight: 600; }
.primary-nav a::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--blood-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--gold-light); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.search-toggle { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--border); background: transparent; color: var(--gold); cursor: pointer; font: 600 .78rem var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0; }
.search-toggle:hover { border-color: var(--border-strong); color: var(--gold-light); background: rgba(181,42,22,.12); }
.search-toggle > span, .search-icon { position: relative; display: inline-block; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-toggle > span::after, .search-icon::after { content: ''; position: absolute; width: 7px; height: 1.5px; right: -5px; bottom: -3px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border); background: transparent; cursor: pointer; padding: 10px; flex-shrink: 0; }
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: var(--gold); }

/* Search */
.search-panel { position: fixed; top: 78px; left: 0; right: 0; z-index: 49; border-bottom: 1px solid var(--border-strong); background: rgba(13,12,10,.98); box-shadow: var(--shadow-deep); }
.search-panel-inner { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 32px; }
.search-panel-heading { display: flex; justify-content: space-between; align-items: center; }
.search-panel-heading button { border: 0; background: transparent; color: var(--text-muted); font-size: 2rem; cursor: pointer; line-height: 1; }
.search-panel-heading button:hover { color: var(--gold-light); }
.search-panel label { display: block; margin: 17px 0 9px; color: var(--text-secondary); font-size: .76rem; }
.search-input-wrap { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border-strong); background: var(--bg-card); padding: 0 16px; }
.search-input-wrap:focus-within { box-shadow: inset 0 0 25px rgba(181,42,22,.14); border-color: var(--gold-light); }
.search-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-primary); padding: 14px 0; }
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-results { display: grid; gap: 7px; max-height: 45vh; overflow: auto; margin-top: 13px; }
.search-empty { margin: 0; color: var(--text-muted); font-size: .94rem; }
.search-result { display: grid; gap: 1px; border-left: 2px solid transparent; padding: 8px 12px; text-decoration: none; background: rgba(216,161,88,.04); }
.search-result:hover { border-left-color: var(--blood-bright); background: rgba(181,42,22,.11); }
.search-result span { color: var(--gold); font: 700 .68rem var(--font-condensed); letter-spacing: .16em; text-transform: uppercase; }
.search-result strong { color: var(--text-primary); font: 600 1.02rem var(--font-display); }
.search-result small { color: var(--text-secondary); font-size: .85rem; }

/* Shared typography and article frame */
h1, h2, h3, h4 { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; line-height: 1.25; }
h1 { margin: 0 0 17px; color: var(--gold-light); font-size: clamp(2.45rem, 5vw, 4.65rem); letter-spacing: .015em; text-shadow: 0 2px 0 rgba(58,7,7,.55); }
h2 { position: relative; margin: 52px 0 19px; padding-left: 17px; font-size: clamp(1.65rem, 3vw, 2.3rem); }
h2::before { content: ''; position: absolute; top: .16em; bottom: .12em; left: 0; width: 3px; background: var(--blood-bright); }
h3 { margin: 28px 0 9px; color: var(--gold-light); font-size: clamp(1.22rem, 2vw, 1.52rem); }
h4 { margin: 20px 0 7px; font-size: 1.05rem; color: var(--text-primary); }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 20px; padding-left: 22px; }
li { margin-bottom: 7px; }
strong { color: var(--text-primary); font-weight: 700; }
blockquote { margin: 26px 0; padding: 16px 20px; border-left: 3px solid var(--blood-bright); background: rgba(58,7,7,.36); color: var(--text-secondary); font-style: italic; }
code { color: var(--gold-light); background: rgba(216,161,88,.1); padding: 2px 5px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; padding: 22px 0 0; color: var(--text-muted); font: 600 .76rem var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span:last-child { color: var(--text-secondary); }
.page-intro { max-width: 770px; color: var(--text-secondary); font-size: 1.16rem; line-height: 1.72; }
.last-updated { color: var(--text-muted); font: 600 .77rem var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; }
.article-layout { width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 790px) 270px; gap: 58px; align-items: start; padding: 34px 0 74px; }
.article-main { min-width: 0; }
.article-main > .article-header { margin-bottom: 28px; }
.article-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.article-header .eyebrow { margin-bottom: 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--text-muted); font: 600 .78rem var(--font-condensed); letter-spacing: .08em; text-transform: uppercase; }
.article-meta .meta-sep { color: var(--blood-bright); }
.article-hero { margin: 24px 0 30px; border: 1px solid var(--border-strong); padding: 5px; background: var(--bg-secondary); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.82); }
.figure { margin: 28px 0; }
.figure img { width: 100%; border: 1px solid var(--border); filter: saturate(.86); }
.figure figcaption { margin-top: 7px; color: var(--text-muted); font-size: .82rem; line-height: 1.45; }
.article-main a { color: var(--amber); }
.article-main > p, .article-main > ul, .article-main > ol, .article-main > blockquote, .article-main > table, .article-main > .scroll-table, .article-main > .callout, .article-main > .steps, .article-main > .choice-grid, .article-main > .source-note { max-width: 790px; }

/* TOC */
.article-aside { position: sticky; top: 108px; max-height: calc(100vh - 135px); overflow: auto; }
.toc, .aside-card { border: 1px solid var(--border); background: rgba(27,21,17,.74); }
.toc { padding: 17px 17px 14px; }
.toc-title { display: block; color: var(--gold); font-size: .73rem; font-weight: 700; margin-bottom: 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 8px; border-left: 2px solid transparent; color: var(--text-secondary); font-size: .9rem; line-height: 1.3; text-decoration: none; }
.toc a:hover { color: var(--gold-light); border-left-color: var(--blood-bright); background: rgba(181,42,22,.08); }
.aside-card { margin-top: 15px; padding: 15px 17px; color: var(--text-secondary); font-size: .87rem; }
.aside-card strong { display: block; margin-bottom: 5px; color: var(--gold-light); font: 700 .75rem var(--font-condensed); letter-spacing: .11em; text-transform: uppercase; }
.toc-mobile { display: none; }

/* Hero */
.hero { position: relative; min-height: 625px; overflow: hidden; background-color: var(--bg-void); background-image: linear-gradient(90deg, rgba(7,7,6,.98) 0%, rgba(7,7,6,.88) 30%, rgba(7,7,6,.36) 65%, rgba(7,7,6,.12) 100%), linear-gradient(0deg, var(--bg-void) 0%, rgba(7,7,6,.1) 32%, transparent 75%), url('/assets/hero-background.jpg'); background-position: center, center, center; background-size: cover; border-bottom: 1px solid var(--border); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(0deg, var(--bg-void), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: min(1320px, calc(100% - 48px)); min-height: 625px; min-width: 0; margin: 0 auto; display: flex; align-items: center; }
.hero-content { width: min(690px, 100%); min-width: 0; padding: 66px 0 92px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.hero .eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--blood-bright); }
.hero h1 { max-width: 690px; min-width: 0; overflow-wrap: anywhere; font-size: clamp(2.8rem, 6.3vw, 5.55rem); line-height: 1.03; }
.hero h1 span { display: block; color: var(--text-primary); font-size: .54em; letter-spacing: .12em; }
.hero-lead { max-width: 565px; margin-bottom: 26px; color: var(--text-secondary); font-size: 1.17rem; overflow-wrap: anywhere; }
.hero-quote { max-width: 520px; margin: 0 0 28px; color: var(--gold); font: italic 1.08rem/1.45 Georgia, serif; overflow-wrap: anywhere; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 0 19px; border: 1px solid var(--border-strong); text-decoration: none; font: 700 .82rem var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; }
.btn-primary { color: var(--text-primary); border-color: var(--ember-red); background: linear-gradient(110deg, #a52214, #6d0d09); }
.btn-primary:hover { color: var(--text-primary); border-color: var(--gold-light); background: linear-gradient(110deg, #c0361e, #86140d); }
.btn-secondary { color: var(--gold-light); background: rgba(7,7,6,.55); }
.btn-secondary:hover { color: var(--text-primary); background: rgba(216,161,88,.14); }
.hero-search { display: flex; width: 100%; max-width: 590px; min-width: 0; margin-top: 35px; border: 1px solid rgba(232,154,69,.46); background: rgba(7,7,6,.74); }
.hero-search:focus-within { border-color: var(--gold-light); box-shadow: inset 0 0 30px rgba(181,42,22,.13); }
.hero-search .search-icon { align-self: center; margin-left: 16px; color: var(--gold); flex-shrink: 0; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); padding: 14px 13px; }
.hero-search button { border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--gold); padding: 0 15px; cursor: pointer; font: 700 .78rem var(--font-condensed); text-transform: uppercase; letter-spacing: .1em; }
.hero-search button:hover { color: var(--gold-light); background: rgba(181,42,22,.14); }

/* Home sections */
.home-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 70px 0 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.section-heading h2 { margin: 0; padding-left: 15px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-heading h2::after { content: ''; position: absolute; left: 0; right: auto; bottom: -15px; width: 82px; height: 1px; background: var(--gold); }
.section-heading p { max-width: 420px; margin: 0; color: var(--text-muted); font-size: .96rem; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.quick-card { position: relative; min-height: 143px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(27,21,17,.9), rgba(13,12,10,.9)); color: var(--text-primary); text-decoration: none; overflow: hidden; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.quick-card::after { content: ''; position: absolute; width: 145px; height: 145px; right: -60px; bottom: -90px; border-radius: 50%; background: rgba(125,18,13,.18); filter: blur(8px); }
.quick-card:hover { color: var(--text-primary); transform: translateY(-3px); border-color: var(--amber); background: linear-gradient(135deg, rgba(37,25,20,.98), rgba(27,21,17,.95)); }
.quick-card .card-top { display: flex; align-items: center; justify-content: space-between; }
.quick-card .card-mark { color: var(--gold); font-size: 1.35rem; line-height: 1; }
.quick-card .tag { color: var(--text-muted); font-size: .65rem; }
.quick-card h3 { margin: 14px 0 4px; color: var(--text-primary); font-size: 1.12rem; }
.quick-card p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; margin-top: 22px; }
.feature-card { position: relative; min-height: 270px; display: flex; align-items: end; overflow: hidden; border: 1px solid var(--border); color: var(--text-primary); text-decoration: none; background: var(--bg-card); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.72); transition: transform .35s ease, filter .35s ease; }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,7,6,.98) 0%, rgba(7,7,6,.58) 48%, rgba(7,7,6,.05) 100%); }
.feature-card:hover { color: var(--text-primary); border-color: var(--amber); }
.feature-card:hover img { transform: scale(1.02); filter: saturate(.9) brightness(.8); }
.feature-copy { position: relative; z-index: 1; padding: 23px; }
.feature-copy .tag { color: var(--gold-light); font-size: .69rem; }
.feature-copy h3 { margin: 8px 0 5px; color: var(--text-primary); font-size: 1.45rem; }
.feature-copy p { margin: 0; color: var(--text-secondary); font-size: .94rem; }
.archive-note { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--border); background: rgba(216,161,88,.045); }
.archive-note .eclipse-mini { width: 28px; height: 28px; border: 1px solid var(--gold); border-radius: 50%; background: linear-gradient(90deg, rgba(216,161,88,.18) 0 50%, rgba(125,18,13,.25) 50%); }
.archive-note p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.archive-note strong { display: block; color: var(--gold-light); font: 700 .76rem var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; }
.archive-note a { white-space: nowrap; font: 700 .78rem var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 22px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 27px 16px 0; color: var(--text-primary); font: 600 1rem/1.4 var(--font-display); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 3px; color: var(--gold); font: 1.35rem var(--font-sans); }
.faq-item[open] summary { color: var(--gold-light); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 20px 13px 0; color: var(--text-secondary); font-size: .94rem; }
.faq-answer p { margin: 0; }
.home-disclaimer { max-width: 680px; margin: 66px auto 0; padding-bottom: 38px; color: var(--text-muted); text-align: center; font-size: .82rem; }
.home-disclaimer a { color: var(--text-secondary); }

/* Callouts, labels, tables, steps */
.callout { position: relative; margin: 25px 0; padding: 17px 20px 15px 52px; border: 1px solid var(--border); background: rgba(27,21,17,.7); }
.callout::before { content: ''; position: absolute; left: 19px; top: 21px; width: 16px; height: 16px; border: 1px solid var(--gold); transform: rotate(45deg); }
.callout strong { display: block; margin-bottom: 3px; color: var(--gold-light); font: 700 .75rem var(--font-condensed); letter-spacing: .16em; text-transform: uppercase; }
.callout p:last-child { margin-bottom: 0; }
.callout.warning { border-color: rgba(181,42,22,.6); background: rgba(58,7,7,.35); }
.callout.warning::before { border-color: var(--blood-bright); }
.callout.warning strong { color: #df7254; }
.callout.day { border-color: rgba(232,154,69,.48); background: rgba(216,161,88,.08); }
.callout.night { border-color: rgba(125,18,13,.7); background: rgba(58,7,7,.33); }
.callout.choice { padding-left: 20px; border-color: var(--tarnished-gold); }
.callout.choice::before { display: none; }
.callout.choice strong { display: flex; align-items: center; gap: 10px; }
.callout.choice strong::before { content: '◐'; color: var(--blood-bright); font-size: 1.25rem; }
.tag { display: inline-block; margin-right: 6px; padding: 3px 7px; border: 1px solid var(--border); color: var(--text-secondary); font-size: .67rem; line-height: 1; }
.tag.day { color: var(--gold-light); border-color: rgba(232,154,69,.55); }
.tag.night { color: #db6a4d; border-color: rgba(181,42,22,.62); }
.tag.choice { color: var(--tarnished-gold); }
.scroll-table { overflow-x: auto; margin: 23px 0; border: 1px solid var(--border); }
table { width: 100%; min-width: 560px; border-collapse: collapse; margin: 0; background: var(--bg-card); font-size: .92rem; }
th { padding: 11px 13px; text-align: left; background: #241711; color: var(--gold-light); font: 700 .74rem var(--font-condensed); letter-spacing: .1em; text-transform: uppercase; }
td { padding: 11px 13px; border-top: 1px solid rgba(216,161,88,.13); color: var(--text-secondary); vertical-align: top; }
tr:nth-child(even) td { background: rgba(13,12,10,.42); }
tr:hover td { background: rgba(125,18,13,.12); color: var(--text-primary); }
.steps { counter-reset: dawn-step; margin: 26px 0; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 15px; padding: 0 0 27px; }
.step::before { content: ''; position: absolute; top: 42px; bottom: 0; left: 21px; width: 1px; background: linear-gradient(var(--tarnished-gold), rgba(154,112,64,.1)); }
.step:last-child::before { display: none; }
.step-number { position: relative; z-index: 1; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid var(--tarnished-gold); border-radius: 50%; background: var(--bg-secondary); color: var(--gold-light); font: 700 1rem var(--font-display); }
.step-content { padding-top: 2px; }
.step-content h3 { margin: 0 0 5px; }
.step-content p:last-child { margin-bottom: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin: 22px 0; }
.choice-card { border: 1px solid var(--border); padding: 17px; background: var(--bg-card); }
.choice-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.choice-card p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.source-note { margin-top: 38px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .82rem; }
.source-note strong { color: var(--text-secondary); font: 700 .72rem var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; }
.related-guides { margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-guides h2 { margin-top: 0; font-size: 1.55rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.related-card { display: block; padding: 14px; border: 1px solid var(--border); background: rgba(27,21,17,.65); text-decoration: none; }
.related-card:hover { border-color: var(--amber); background: rgba(125,18,13,.12); }
.related-card span { color: var(--gold); font: 700 .68rem var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; }
.related-card strong { display: block; margin-top: 6px; color: var(--text-primary); font: 600 1rem var(--font-display); }
.related-card small { display: block; margin-top: 3px; color: var(--text-muted); font-size: .82rem; line-height: 1.4; }

/* Footer */
.site-footer { margin-top: 18px; padding: 0 0 24px; background: #090807; }
.footer-rule { height: 25px; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.footer-rule::before { content: ''; position: absolute; top: -20px; left: 50%; width: 340px; height: 80px; border: 1px solid rgba(216,161,88,.12); border-radius: 50%; transform: translateX(-50%); }
.footer-rule span { position: absolute; top: -4px; left: 50%; width: 9px; height: 9px; border: 1px solid var(--gold); background: var(--bg-void); transform: translateX(-50%) rotate(45deg); }
.footer-grid { display: grid; grid-template-columns: 2.1fr repeat(3, 1fr); gap: 36px; padding-top: 30px; }
.footer-brand p { max-width: 275px; margin: 17px 0 0; color: var(--text-muted); font-size: .9rem; }
.footer-col h2 { margin: 4px 0 13px; padding: 0; color: var(--gold); font-size: .74rem; }
.footer-col h2::before { display: none; }
.footer-col a { display: block; width: fit-content; padding: 3px 0; color: var(--text-muted); font-size: .88rem; text-decoration: none; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 14px; border-top: 1px solid rgba(216,161,88,.13); color: var(--text-muted); font: .76rem var(--font-condensed); letter-spacing: .04em; }
.footer-bottom p { margin: 0; color: var(--gold); font-style: italic; }
.footer-bottom span { text-align: right; }

/* Utility pages / 404 */
.utility-wrap { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 78px; }
.utility-wrap h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
.utility-wrap h2 { font-size: 1.75rem; }
.not-found { width: min(700px, calc(100% - 48px)); min-height: 54vh; margin: 0 auto; padding: 90px 0; text-align: center; }
.not-found .eclipse-large { width: 92px; height: 92px; margin: 0 auto 25px; border: 2px solid var(--gold); border-radius: 50%; background: linear-gradient(90deg, rgba(216,161,88,.18) 0 50%, rgba(125,18,13,.3) 50%); position: relative; }
.not-found .eclipse-large::after { content: ''; position: absolute; top: -2px; bottom: -2px; left: 50%; border-left: 2px solid var(--blood-bright); }

@media (max-width: 980px) {
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: 9px; font-size: .78rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .article-aside { position: static; order: -1; max-height: none; overflow: visible; }
  .article-aside > .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--border); background: rgba(27,21,17,.7); }
  .toc-mobile summary { cursor: pointer; padding: 13px 16px; color: var(--gold); font: 700 .75rem var(--font-condensed); letter-spacing: .12em; text-transform: uppercase; }
  .toc-mobile ul { margin: 0; padding: 0 16px 12px 31px; }
  .toc-mobile a { color: var(--text-secondary); font-size: .9rem; }
  .aside-card { display: none; }
  .hero { min-height: 600px; background-image: linear-gradient(90deg, rgba(7,7,6,.98), rgba(7,7,6,.72) 55%, rgba(7,7,6,.28)), linear-gradient(0deg, var(--bg-void), transparent 48%), url('/assets/hero-background.jpg'); }
  .hero-inner { min-height: 600px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page-wrap, .home-section, .article-layout, .hero-inner { width: min(100% - 36px, 680px); }
  .nav-shell { width: calc(100% - 28px); min-height: 68px; gap: 13px; }
  .site-header { background: rgba(7,7,6,.97); }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 8px 18px 15px; border-bottom: 1px solid var(--border); background: rgba(13,12,10,.99); }
  .primary-nav.open { display: grid; }
  .primary-nav a { min-height: 46px; padding: 0 4px; border-bottom: 1px solid rgba(216,161,88,.1); }
  .primary-nav a::after { left: 0; right: auto; bottom: 0; width: 32px; }
  .search-toggle { padding-inline: 10px; }
  .search-toggle b { display: none; }
  .brand-copy { font-size: .78rem; }
  .hero { min-height: 560px; background-position: center, 59% center; background-image: linear-gradient(0deg, rgba(7,7,6,.98) 0%, rgba(7,7,6,.76) 43%, rgba(7,7,6,.26) 100%), url('/assets/hero-background.jpg'); }
  .hero-inner { min-height: 560px; align-items: end; }
  .hero-content { padding: 50px 0 70px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .hero-lead { font-size: 1.06rem; }
  .hero-search { margin-top: 27px; }
  .home-section { padding-top: 52px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .quick-grid, .featured-grid, .faq-list, .choice-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 125px; }
  .feature-card { min-height: 250px; }
  .archive-note { grid-template-columns: auto 1fr; }
  .archive-note a { grid-column: 2; }
  .article-layout { padding-top: 24px; padding-bottom: 56px; }
  .article-header h1 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  h2 { margin-top: 40px; }
  .article-hero { margin-top: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; text-align: left; }
}
@media (max-width: 430px) {
  .search-panel-inner { width: calc(100% - 36px); }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); letter-spacing: 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-search button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
