/* Discovera History — editorial exploration layer
   Keeps the original ClassOS history dataset/timeline engine intact.
   Visual language: light canvas, ink-black typography, precise yellow accents. */
:root{
  color-scheme:light;
  --night:#f6f6f2;--night-2:#eaece7;
  --ink:#202723;--ink-soft:#495450;--muted:#76827b;
  --gold:#f8d21f;--gold-bright:#24312a;--cyan:#dfba11;
  --paper:#fff;--panel:#fff;--panel-solid:#fff;
  --line:rgba(35,48,40,.16);--line-soft:rgba(35,48,40,.11);
  --shadow:0 16px 45px rgba(24,35,29,.08);--header-h:76px;
  --discovera-green:#233f36;
}
html{background:#f6f6f2;scroll-padding-top:calc(var(--header-h) + 20px)}
body{
  color:var(--ink);background:#f6f6f2;
  background-image:radial-gradient(#cdd3c8 0.6px,transparent 0.6px);
  background-size:26px 26px;
  overflow-x:clip;
}
body::before,body::after,.noise{display:none}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c7a600;outline-offset:3px}
::selection{background:#f8d21f;color:#16231b}
.page-shell,.header-inner{width:min(1410px,calc(100% - 56px))}
img{max-width:100%}
.site-header{
  height:var(--header-h);position:sticky;top:0;
  background:rgba(252,252,248,.96);color:#1c2822;
  border-bottom:1px solid #e5e7df;z-index:80;box-shadow:none;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.brand{gap:11px;text-decoration:none;color:#19261f}
.brand-mark{
  border-radius:9px;background:#f8d21f;width:45px;height:45px;
  box-shadow:none;padding:0;transform:rotate(-2deg);color:#1b2722;
}
.brand-mark::after{display:none}
.d-mark{font:900 31px/1 Arial,sans-serif;letter-spacing:-4px;transform:translateX(-2px)}
.brand-title{font:800 21px/1.1 Arial,sans-serif;letter-spacing:-1.2px;direction:ltr;text-align:left}
.brand-title small{font-size:11px;font-weight:700;letter-spacing:.05em;margin-left:4px}
.brand-dot{color:#ddb405}
.brand-sub{margin-top:3px;text-align:left;color:#7d857e;font-size:10px}
.main-nav{display:flex;align-items:center;gap:4px;margin-inline:auto}
.main-nav a{
  padding:10px 15px;color:#606c64;text-decoration:none;
  border-radius:10px;font-size:12px;font-weight:600;transition:.18s ease;
}
.main-nav a:hover,.main-nav a.is-current{background:#edf0e9;color:#1c2a21}
.header-actions .text-btn{
  border:1px solid #dde1d8;background:#fff;color:#2c392f;
  font-size:11px;font-weight:700;min-height:42px;border-radius:10px;
}
.header-actions .header-surprise{background:#f8d21f;border-color:#f8d21f;color:#1c281f;gap:10px}
.header-surprise span{font-size:20px}
.header-actions .play-button{background:#f1f3ec;border-color:#e0e6dc;color:#273c30;border-radius:10px}
.header-actions .text-btn:hover,.header-actions .play-button:hover{border-color:#d8b919;background:#fff5b6}

/* Hero: generous editorial typography with a high-contrast photo composition */
.hero{min-height:0;padding:30px 0 34px}
.hero::before{
  inset:0;border-radius:22px;
  border:1px solid #e7e9df;box-shadow:0 18px 70px rgba(30,40,29,.055);
  background:linear-gradient(125deg,#fff 5%,#fbfcf8 55%,#f2f3eb);
}
.hero::after{
  display:block;content:"";position:absolute;right:0;top:32px;left:auto;
  width:5px;height:75px;border-radius:3px 0 0 3px;background:#f8d21f;
  opacity:1;animation:none;
}
.hero-aurora,.hero-visual .visual-orbit{display:none}
.hero-grid{
  grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);
  gap:clamp(20px,4vw,64px);padding:clamp(30px,5.2vw,76px);
  align-items:center;
}
.hero-copy{z-index:2}
.kicker{font-size:10px;letter-spacing:.09em;color:#65736a;font-weight:800;direction:ltr;justify-content:flex-end}
.kicker-line{height:3px;width:25px;background:#e8c817}
.kicker-sep{color:#bfc7b7;margin-inline:6px}
.hero h1{
  font-family:"Vazirmatn",sans-serif;font-size:clamp(36px,4.25vw,68px);
  font-weight:800;letter-spacing:-2.2px;line-height:1.52;margin:18px 0 16px;
}
.hero h1 em{color:#1f3026;text-shadow:none;font-weight:800}
.hero h1 em::after{display:none}
.hero h1 em{background:linear-gradient(transparent 77%,#f8d21f 77%,#f8d21f 93%,transparent 93%)}
.hero-lead{color:#647067;font-size:clamp(13px,1.1vw,16px);line-height:2.25;max-width:640px}
.hero-actions{margin-top:28px;gap:10px}
.text-btn,.icon-btn,.chip,.segment-btn{border-color:#e2e5dc;background:#fff;color:#26362b;border-radius:11px}
.hero-actions .text-btn{min-height:51px;font-size:12px;padding-inline:21px;font-weight:700}
.primary-btn,.hero-actions .primary-btn{background:#f8d21f;color:#1d291e;border-color:#f8d21f;box-shadow:0 10px 26px rgba(197,164,3,.18)}
.primary-btn:hover,.hero-actions .primary-btn:hover{background:#ffe15d}
.hero-actions .glass-btn{background:#f0f2eb;backdrop-filter:none}
.hero-proof{color:#3b493d;font-size:11px;margin-top:31px}
.proof-avatars span{background:#dfe6d7;color:#24392f;border-color:#fff}
.proof-avatars span:nth-child(2){background:#f8d21f;color:#24392f}
.proof-avatars span:nth-child(3){background:#c8d5c9;color:#24392f}
.hero-proof>div:last-child span{color:#8a9389}
.stats-row{margin-top:24px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.stat{padding:8px 14px 8px 0;background:transparent;border:0;border-left:1px solid #dce3d8;border-radius:0}
.stat:last-child{border:0}
.stat strong{font-family:"Vazirmatn";color:#22362a;font-weight:800;font-size:clamp(19px,2.4vw,30px)}
.stat span{color:#859087;font-size:11px}
.hero-visual{min-height:490px;direction:ltr}
.hero-main-shot{
  inset:13px 35px 13px 44px;border-radius:17px;background:#33483a;
  box-shadow:0 26px 72px rgba(17,35,20,.21);border:5px solid #fff;cursor:default;
}
.hero-main-shot .photo-shade{background:linear-gradient(180deg,transparent 35%,rgba(5,19,14,.12) 48%,rgba(6,17,14,.9) 100%)}
.hero-main-shot figcaption{text-align:right;direction:rtl;bottom:28px;left:28px;right:28px}
.hero-main-shot figcaption strong{color:#fff;font-size:clamp(19px,2vw,28px);font-weight:800;line-height:1.65}
.hero-main-shot figcaption small{color:#e4e9df;font-size:12px;line-height:1.8}
.visual-label{background:#f8d21f;color:#203026;padding:7px 11px;border-radius:5px;font-weight:800}
.visual-jump{background:#fff;color:#23362a;border:0;right:20px;top:21px;border-radius:9px;font-size:11px;font-weight:800}
.hero-map-card,.hero-artifact-card{border:4px solid white;border-radius:10px;box-shadow:0 13px 38px rgba(28,47,31,.24)}
.hero-map-card{width:190px;height:136px;right:0;top:0;transform:rotate(4deg)}
.hero-artifact-card{width:157px;height:193px;left:0;bottom:0;transform:rotate(-4deg)}
.hero-map-card figcaption,.hero-artifact-card figcaption{direction:rtl;text-align:right;color:#fff}
.hero-side-caption{
  position:absolute;right:42px;bottom:-13px;direction:ltr;display:flex;gap:12px;
  color:#88958a;font-size:9px;font-weight:800;letter-spacing:.07em;
}
.hero-side-caption span{color:#b39915}

/* General editorial sections */
.learning-path,.visual-atlas,.discovery-section,.story-stream-section,
.field-notes-section{margin-top:clamp(60px,7vw,100px)}
.section-heading{margin-bottom:25px;gap:25px;padding-inline:0}
.section-kicker{font-family:"Vazirmatn",sans-serif;font-size:10px;color:#9f8509;font-weight:900;letter-spacing:.08em}
.section-heading h2,.compact-heading h2{
  font-family:"Vazirmatn",sans-serif;font-weight:800;
  font-size:clamp(23px,2.8vw,38px);line-height:1.6;letter-spacing:-.7px;
}
.section-heading p{color:#79857a;font-size:12px;line-height:2;max-width:470px}
.path-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.path-card{
  text-decoration:none;color:#25362a;grid-template-columns:55px minmax(0,1fr) 20px;
  padding:22px 20px;background:#fff;border:1px solid #e6e9df;
  border-radius:15px;min-height:123px;
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
.path-card::after{display:none}
.path-card:hover{transform:translateY(-3px);border-color:#e3cb47;box-shadow:var(--shadow)}
.path-card strong{font-size:14px}
.path-card p{color:#8b968c;font-size:11px;line-height:1.8}
.path-icon{width:50px;height:50px;border-radius:12px;background:#fff6c9;color:#3c4631;font-size:24px}
.path-number{left:16px;top:8px;color:rgba(40,56,38,.08);font-size:34px}
.path-chevron{align-self:end;font-size:21px;color:#b4a02b}
.section-action{display:flex;align-items:center;gap:20px}
.shuffle-btn{
  cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:12px;
  color:#25372b;background:#f8d21f;border:1px solid #f8d21f;
  padding:11px 16px;border-radius:10px;font-weight:800;font-size:11px;
}
.shuffle-btn span{font-size:18px}
.shuffle-btn:hover{background:#ffdf53}

/* Randomized discovery mosaic */
.discovery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;grid-auto-flow:dense}
.discovery-card{
  position:relative;grid-column:span 5;min-height:259px;border:0;padding:0;
  overflow:hidden;text-align:right;color:#fff;cursor:pointer;border-radius:15px;
  background:#31483b;isolation:isolate;transition:transform .24s ease;
}
.discovery-card:first-child{grid-column:span 7;grid-row:span 2;min-height:533px}
.discovery-card:nth-child(n+4){grid-column:span 6;min-height:255px}
.discovery-card:hover{transform:translateY(-4px)}
.discovery-card img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .6s ease}
.discovery-card:hover img{transform:scale(1.055)}
.discovery-card::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(13,25,17,.06) 0%,rgba(9,22,17,.22) 35%,rgba(7,20,14,.9) 100%);
}
.discovery-card .discovery-index{
  position:absolute;top:17px;right:17px;z-index:2;background:#f8d21f;color:#1b2d22;
  font-size:10px;padding:7px 10px;border-radius:6px;font-weight:900;
}
.discovery-card .discovery-content{position:absolute;bottom:23px;right:22px;left:24px;z-index:2;display:grid;gap:7px}
.discovery-content small{color:#e5eee7;font-size:10px}
.discovery-content strong{font-size:clamp(18px,2.2vw,27px);font-weight:850;line-height:1.65}
.discovery-card:first-child .discovery-content strong{font-size:clamp(26px,2.8vw,39px)}
.discovery-content .discovery-desc{font-size:12px;color:#d6e1db;line-height:1.9;max-width:560px}
.discovery-content .discovery-more{font-size:11px;font-weight:800;color:#fce24d;margin-top:6px}

/* Blog-like magazine */
.story-stream{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.journal-card{
  display:flex;flex-direction:column;text-align:right;cursor:pointer;padding:0;
  background:white;border:1px solid #e6e9e0;border-radius:15px;overflow:hidden;
  color:#25372b;transition:border-color .2s,transform .2s,box-shadow .2s;
}
.journal-card:hover{transform:translateY(-4px);border-color:#dec949;box-shadow:var(--shadow)}
.journal-image{height:194px;position:relative;overflow:hidden;background:#cdd6cd}
.journal-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.journal-card:hover .journal-image img{transform:scale(1.04)}
.journal-image .journal-number{
  position:absolute;right:13px;top:13px;z-index:1;font-size:12px;font-weight:900;
  background:#f8d21f;color:#293629;padding:5px 10px;border-radius:7px;
}
.journal-copy{padding:21px;flex:1;display:flex;flex-direction:column}
.journal-meta{display:flex;flex-wrap:wrap;gap:8px;color:#829084;font-size:10px}
.journal-meta b{color:#aa8f0d;font-weight:900}
.journal-copy strong{margin-top:9px;font-size:17px;line-height:1.8}
.journal-copy p{font-size:12px;line-height:2;color:#7d8c80;flex:1;margin:10px 0 17px}
.journal-foot{border-top:1px solid #ecede7;padding-top:12px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#839087}
.journal-foot em{font-style:normal;font-weight:800;color:#344637}

/* Interactive year explorer */
.year-explorer-section{
  margin-top:clamp(75px,9vw,115px);padding:clamp(24px,4.5vw,65px);
  background:#1e332b;color:#f8f9f0;border-radius:20px;overflow:hidden;position:relative;
  isolation:isolate;
}
.year-explorer-section::before{
  content:"";position:absolute;inset:0;opacity:.13;pointer-events:none;z-index:-1;
  background-image:radial-gradient(#e4e8db 1px,transparent 1px);background-size:25px 25px;
}
.year-explorer-top{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:24px}
.year-explorer-section .section-kicker{color:#f8d21f}
.year-explorer-top h2{font-size:clamp(28px,3.4vw,47px);line-height:1.6;font-weight:800;margin:7px 0}
.year-explorer-top p{max-width:550px;font-size:12px;color:#c3d3c6;line-height:2}
.year-orbit{height:120px;width:120px;flex:0 0 120px;border:1px solid #718c79;border-radius:50%;display:grid;place-items:center;position:relative}
.year-orbit::before,.year-orbit::after{content:"";position:absolute;inset:13px;border:1px dashed #607e68;border-radius:50%}
.year-orbit::after{inset:37px;border-style:solid;background:#f8d21f}
.year-orbit span{font-size:40px;color:#f8d21f}
.year-orbit small{position:absolute;bottom:-19px;font-size:8px;letter-spacing:.1em;color:#b8c7bd}
.year-explorer-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:30px;align-items:stretch}
.year-controls{background:#2c4438;border:1px solid #486154;padding:clamp(20px,3vw,33px);border-radius:16px}
.year-current span{font-size:12px;color:#c2d1c6;display:block}
.year-current strong{display:block;font-weight:800;color:#f8d21f;font-size:clamp(24px,3vw,37px);line-height:1.8;margin-top:5px}
.year-range-label{display:block;margin-top:40px;font-size:11px;color:#b8c7ba}
.year-range{display:block;width:100%;height:18px;cursor:pointer;accent-color:#f8d21f;margin-top:19px;direction:ltr}
.year-range-ends{display:flex;justify-content:space-between;direction:ltr;gap:10px;font-size:10px;color:#b7c8bd;margin-top:10px}
.year-quick-stops{margin-top:34px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.year-stop{border:1px solid #60796a;background:#365143;border-radius:7px;color:#e1ece2;cursor:pointer;font-size:10px;padding:8px 3px}
.year-stop:hover{border-color:#f8d21f;color:#f8d21f}
.year-random{margin-top:25px;padding:11px 16px;border:0;background:#f8d21f;color:#1e3228;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer}
.year-random span{margin-inline-start:11px}
.year-result{min-height:370px;border:1px solid #5c7566;position:relative;border-radius:16px;overflow:hidden;background:#375346;cursor:pointer}
.year-result img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.year-result::after{content:"";inset:0;position:absolute;background:linear-gradient(180deg,rgba(8,20,14,.08),rgba(8,22,15,.87))}
.year-result-content{position:absolute;z-index:1;right:25px;left:25px;bottom:25px}
.year-result .year-tag{background:#f8d21f;color:#1d3025;font-size:10px;padding:6px 10px;border-radius:6px;font-weight:800}
.year-result h3{font-size:clamp(22px,2.5vw,34px);line-height:1.7;margin:15px 0 4px}
.year-result p{font-size:12px;line-height:2;color:#dbe7dd;margin:0 0 13px}
.year-result .year-explore{font-size:11px;color:#ffe45f;font-weight:800}
.year-result .image-fallback{background:#365244}

/* Short fragments */
.field-notes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.field-note{
  position:relative;min-height:268px;padding:24px 21px;text-align:right;display:flex;
  flex-direction:column;align-items:flex-start;border:1px solid #e2e7dc;border-radius:15px;
  background:#fff;cursor:pointer;color:#28382d;transition:transform .22s;
}
.field-note:nth-child(2){background:#f8d21f;border-color:#f8d21f}
.field-note:nth-child(4){background:#e4ebe3}
.field-note:hover{transform:translateY(-4px)}
.note-symbol{font-size:29px;color:#b7a21c;line-height:1}
.field-note:nth-child(2) .note-symbol{color:#34432f}
.note-category{color:#7b8a7b;font-size:10px;font-weight:800;margin-top:25px}
.field-note:nth-child(2) .note-category{color:#4a5036}
.field-note strong{font-size:16px;line-height:1.9;margin-top:6px;font-weight:850}
.field-note p{font-size:11px;line-height:2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;color:#7c8a7e;margin:8px 0 14px}
.field-note:nth-child(2) p{color:#465239}
.field-note .note-more{font-size:11px;margin-top:auto;font-weight:850}

/* Eight chapters and the source timeline */
.atlas-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.atlas-card{min-height:275px;border-radius:13px;border:4px solid #fff;box-shadow:0 12px 31px rgba(32,47,36,.1);background:#26382f}
.atlas-card:hover{border-color:#f8d21f;transform:translateY(-4px)}
.atlas-index{border-radius:5px;background:#f8d21f;color:#23352a}
.atlas-arrow{border-radius:8px;background:#fff;color:#24352b;border:0}
.atlas-content strong{font-size:14px}
.archive-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}
.archive-heading h2{font-size:clamp(23px,2.8vw,38px);font-weight:850;margin:2px 0 6px}
.archive-heading p{font-size:12px;color:#7c877e;margin:0}
.archive-marker{direction:ltr;white-space:nowrap;font-size:10px;letter-spacing:.08em;color:#adb5a9}
.workspace{padding-top:90px;padding-bottom:125px}
.control-deck{background:#fff;border:1px solid #e3e8de;border-radius:15px;box-shadow:0 10px 36px rgba(35,50,40,.06);backdrop-filter:none;position:relative;top:auto}
.search-input,.select-control{background:#f7f8f4;color:#293c2f;border-color:#e3e8de;border-radius:9px}
.search-wrap svg{color:#7d8a7e}
.select-control option{background:#fff;color:#25352b}
.zoom-segment{background:#f4f5ef;border-color:#e4e8de;border-radius:9px}
.segment-btn{color:#687569;border-radius:7px}
.segment-btn.is-active{color:#28382b;background:#f8d21f;box-shadow:none}
.chip{background:#fff;border-color:#e3e7df;color:#5d6c62;border-radius:20px}
.chip.is-active{color:#26382a;background:#fff1a7;border-color:#eacb22}
.era-river-wrap::before{background:linear-gradient(90deg,transparent,#d6ce92,transparent)}
.era-pill{border-color:#fff;border-width:3px;border-radius:11px;background:#23372b}
.era-pill.is-active{border-color:#f8d21f;box-shadow:none}
.timeline-section{background:white;border:1px solid #e5e8df;box-shadow:0 15px 45px rgba(30,45,35,.05);border-radius:15px}
.timeline-head{border-bottom:1px solid #ebeee7}
.timeline-head h2{color:#24362a}
.timeline-head p{color:#7d887e}
.result-meta{color:#8c7705}
.timeline-stage::before{background:linear-gradient(90deg,transparent,#dbd5a4,transparent)}
.center-needle{background:linear-gradient(transparent,#d3af12,transparent)}
.center-needle::before{background:#f8d21f;box-shadow:0 0 0 6px rgba(248,210,31,.2)}
.event-card{background:white;border-color:#e2e7dd;box-shadow:0 10px 27px rgba(28,46,31,.09);color:#24382c}
.event-card.is-active{background:#fffdf2;border:2px solid #e4c220;box-shadow:0 14px 35px rgba(135,114,12,.12)}
.event-card-media{background:#d0d9ce}
.event-card-media::after{background:linear-gradient(180deg,transparent 35%,rgba(26,37,24,.67))}
.event-year{color:#97800c}
.event-summary{color:#7b8a7d}
.event-foot{color:#879187}
.event-foot>span:first-child{color:#758375}
.event-card-type{background:rgba(27,39,29,.77)}
.timeline-progress{background:#f1f1e9}
.timeline-progress>span{background:linear-gradient(90deg,#9cac84,#f8d21f)}
.story-panel,.side-card{background:#fff;border-color:#e4e8de;box-shadow:0 14px 35px rgba(30,45,32,.05);color:#26392b;border-radius:16px}
.event-visual{background:#304537}
.event-visual::after{background:linear-gradient(180deg,rgba(13,25,16,.04),rgba(12,24,14,.18) 37%,rgba(9,23,15,.93))}
.event-visual-overlay .story-title{font-family:"Vazirmatn";font-weight:850;color:white}
.event-visual-overlay .story-one{color:#edf2ec}
.event-visual-overlay .story-kicker{color:#e8ebd7}
.event-visual-overlay .badge{color:#fff9c4;background:rgba(23,37,25,.4);border-color:rgba(255,255,255,.3)}
.tabs{border-color:#edf0e9}
.tab{color:#738074;font-size:12px}
.tab.is-active{color:#24392b;border-color:#e3bd11}
.story-body p{color:#596b5e;line-height:2.15}
.story-callout{background:#fff9d6;color:#354736;border-right-color:#efc917}
.event-nav{background:#fafbf7;border-color:#e7ebdf}
.event-position{color:#849187}
.side-item label,.mini-fact span{color:#92a094}
.side-item div{color:#56695b}
.token,.mini-fact{background:#f5f7f2;color:#617363;border-color:#e7eae3}
.gallery-head span{color:#829084}
.gallery-thumb{background:#d4ded4}
.question-card{background:#fffdf0;border-color:#eee5af}
.quiz-choice{background:white;color:#415345;border-color:#dce3d8}
.quiz-feedback{background:#f3f6ec;color:#49614f}
.answer-box{background:#f6f8ef;color:#56665a}
.footer-note{color:#8a968a;border-top-color:#e1e5dc}
.footer-note strong{color:#48594c}
.image-fallback{background:linear-gradient(145deg,#cbd8c7,#899f91)}
.image-fallback::before{color:#f7f8f1}

/* Modal and mobile controls */
.drawer-panel{background:#fbfcf8;border-left-color:#dce2d8;color:#29392c}
.drawer-head h2,.lightbox-copy h3{font-family:"Vazirmatn"}
.drawer-intro{color:#6d7f70}
.credit-item{background:#fff;border-color:#e5e9df}
.credit-item strong{color:#314335}
.credit-item span{color:#859389}
.credit-item>i{color:#a98b0a}
.lightbox-copy a{background:#f8d21f}
.mobile-dock{background:rgba(251,252,247,.97);border-color:#e0e5db;box-shadow:0 12px 50px rgba(30,44,34,.16)}
.mobile-dock button{color:#748276}
.mobile-dock button.is-active{background:#f8d21f;color:#273729}

@media(max-width:1180px){
  .main-nav{gap:0}
  .main-nav a{padding:8px 9px;font-size:11px}
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:40px}
  .hero-visual{min-height:420px}
  .hero-main-shot{inset:16px 20px 12px 25px}
  .hero-artifact-card{width:122px;height:157px}
  .hero-map-card{width:145px;height:106px}
  .field-notes-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:980px){
  .page-shell,.header-inner{width:calc(100% - 36px)}
  .main-nav{display:none}
  .hero-grid{grid-template-columns:1fr;gap:22px}
  .hero-visual{min-height:450px;max-width:780px}
  .path-grid{grid-template-columns:repeat(3,1fr)}
  .path-card{grid-template-columns:1fr;padding:16px;gap:8px}
  .path-icon{width:41px;height:41px;font-size:21px}
  .path-chevron{display:none}
  .discovery-card:first-child{grid-column:span 7}
  .story-stream{grid-template-columns:repeat(2,1fr)}
  .year-explorer-layout{grid-template-columns:1fr}
  .year-result{min-height:350px}
  .atlas-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  :root{--header-h:64px}
  html{scroll-padding-top:74px}
  .page-shell,.header-inner{width:calc(100% - 24px)}
  .brand-mark{width:38px;height:38px;border-radius:8px}
  .d-mark{font-size:27px}
  .brand-title{font-size:17px}
  .brand-title small{font-size:9px}
  .brand-sub{font-size:9px}
  .header-actions .compact-action,.header-actions .play-button{display:none}
  .header-actions #randomEvent{display:inline-flex;min-height:38px;padding:8px 10px;font-size:10px}
  .hero{padding:13px 0 22px}
  .hero::before{border-radius:16px;inset:0}
  .hero::after{top:24px;height:45px;width:4px}
  .hero-grid{padding:23px 19px 27px;gap:22px}
  .kicker{font-size:9px;justify-content:flex-start;direction:ltr}
  .hero h1{font-size:clamp(31px,8.2vw,45px);line-height:1.6;letter-spacing:-1px;margin:13px 0}
  .hero h1 br{display:block}
  .hero-lead{font-size:12px;line-height:2}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:23px}
  .hero-actions .text-btn{min-height:44px;padding:10px 6px;font-size:10px}
  .hero-proof{display:none}
  .stats-row{margin-top:24px}
  .stat{padding:0 9px 0 0}
  .stat strong{font-size:20px}
  .stat span{font-size:9px}
  .hero-visual{min-height:310px}
  .hero-main-shot{inset:8px 13px 8px 15px;border-width:3px;border-radius:12px}
  .hero-main-shot figcaption{left:17px;right:17px;bottom:15px}
  .hero-main-shot figcaption strong{font-size:18px}
  .hero-main-shot figcaption small{font-size:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .visual-jump{top:11px;right:12px;font-size:9px;padding:7px 8px}
  .hero-map-card{width:104px;height:77px;right:-7px;top:1px;border-width:2px}
  .hero-artifact-card{width:93px;height:123px;left:-6px;border-width:2px}
  .hero-map-card figcaption,.hero-artifact-card figcaption{left:6px;right:6px;bottom:6px}
  .hero-map-card figcaption strong,.hero-artifact-card figcaption strong{font-size:9px}
  .hero-map-card figcaption span,.hero-artifact-card figcaption span{display:none}
  .hero-side-caption{display:none}
  .learning-path,.visual-atlas,.discovery-section,.story-stream-section,.field-notes-section{margin-top:54px}
  .section-heading{display:block;margin-bottom:17px}
  .section-heading h2,.compact-heading h2{font-size:25px;margin:4px 0}
  .section-heading p{margin-top:5px;font-size:11px;line-height:1.9}
  .section-action{display:flex;align-items:end;justify-content:space-between;gap:9px}
  .section-action p{max-width:230px}
  .shuffle-btn{padding:9px;font-size:10px;gap:4px}
  .path-grid{grid-template-columns:1fr;gap:8px}
  .path-card{grid-template-columns:38px 1fr 15px;min-height:74px;padding:12px}
  .path-icon{width:38px;height:38px}
  .path-card strong{font-size:12px}
  .path-card p{font-size:10px;margin-top:2px}
  .path-chevron{display:block;font-size:16px}
  .path-number{font-size:25px}
  .discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .discovery-card:first-child{grid-column:span 2;grid-row:auto;min-height:325px}
  .discovery-card:nth-child(n){grid-column:span 1;min-height:255px;border-radius:10px}
  .discovery-card:first-child{grid-column:span 2}
  .discovery-card:last-child{grid-column:span 2;min-height:210px}
  .discovery-card .discovery-content{right:12px;left:12px;bottom:14px;gap:4px}
  .discovery-card .discovery-index{top:11px;right:11px;font-size:9px;padding:5px 7px}
  .discovery-content strong{font-size:14px;line-height:1.6}
  .discovery-card:first-child .discovery-content strong{font-size:23px}
  .discovery-content .discovery-desc{font-size:10px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .discovery-content small{font-size:9px}
  .discovery-content .discovery-more{font-size:10px}
  .story-stream{grid-template-columns:1fr;gap:10px}
  .journal-card{display:grid;grid-template-columns:114px minmax(0,1fr);min-height:150px;border-radius:11px}
  .journal-image{height:100%;min-height:150px}
  .journal-copy{padding:13px}
  .journal-copy strong{font-size:13px;line-height:1.75;margin-top:5px}
  .journal-copy p{font-size:10px;line-height:1.75;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 8px}
  .journal-meta{font-size:9px}
  .journal-foot{font-size:9px;padding-top:6px}
  .year-explorer-section{padding:23px 16px;border-radius:14px;margin-top:62px}
  .year-explorer-top h2{font-size:28px}
  .year-orbit{display:none}
  .year-explorer-top p{font-size:11px}
  .year-explorer-layout{gap:12px}
  .year-controls{padding:18px}
  .year-current strong{font-size:26px}
  .year-range-label{margin-top:17px}
  .year-quick-stops{grid-template-columns:repeat(4,1fr);margin-top:20px}
  .year-result{min-height:300px;border-radius:10px}
  .year-result-content{right:17px;left:17px;bottom:16px}
  .year-result h3{font-size:23px}
  .year-result p{font-size:11px}
  .field-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .field-note{padding:15px;min-height:260px;border-radius:11px}
  .field-note strong{font-size:13px}
  .field-note p{font-size:10px;line-height:1.8}
  .note-category{margin-top:19px}
  .atlas-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .atlas-card{min-height:225px;border-width:2px}
  .atlas-content strong{font-size:12px}
  .atlas-content span:last-child{display:none}
  .workspace{padding-top:65px;padding-bottom:115px}
  .archive-heading{display:block}
  .archive-heading h2{font-size:24px}
  .archive-heading p{font-size:11px}
  .archive-marker{display:none}
  .control-deck{padding:8px}
  .select-control{display:block}
  .timeline-stage{min-height:355px}
  .timeline{--card-width:min(82vw,320px)}
  .event-card{min-height:276px}
  .detail-layout{grid-template-columns:1fr}
  .side-stack{grid-template-columns:1fr}
  .event-visual{height:385px}
  .event-visual-overlay .story-title{font-size:23px}
  .event-visual-overlay .story-one{font-size:11px}
}
@media(max-width:380px){
  .brand-sub{display:none}
  .header-actions #randomEvent{font-size:9px}
  .hero h1{font-size:29px}
  .hero-visual{min-height:275px}
  .discovery-card:nth-child(n){min-height:205px}
  .discovery-card:first-child{min-height:295px}
  .field-notes-grid{grid-template-columns:1fr}
  .field-note{min-height:210px}
}
@media(prefers-reduced-motion:reduce){
  .discovery-card,.journal-card,.field-note,.path-card{transition:none}
}
