/* The history atlas extends the site's dark, botanical editorial palette. */
.history-document { scroll-behavior: auto; }
.history-page { --atlas-muted: #a5b2a7; }
.history-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.history-header nav { display: flex; gap: 30px; font-size: 14px; color: #bcc9bc; }
.history-header a:hover { color: var(--gold); }
.history-hero { position: relative; isolation: isolate; overflow: hidden; border-block: 1px solid var(--line); min-height: 660px; background: #0b1713; }
.history-hero-art { position: absolute; z-index: -2; inset: 0; background: url('/assets/hero.webp') 65% 48% / cover; opacity: .57; }
.history-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #08110ffa, #08110fbf 42%, #08110f0a 85%), linear-gradient(0deg, #08110f, transparent 55%); }
.history-hero-content { padding-block: 86px 75px; }
.history-hero h1 { font-size: clamp(48px, 5.4vw, 78px); margin-top: 26px; line-height: 1.5; }
.history-hero-subtitle { font-size: 17px; line-height: 2.05; color: #b6c4b9; margin-top: 22px; }
.history-hero .button { margin-top: 27px; }
.atlas-numbers { display: flex; gap: 46px; margin-top: 43px; }
.atlas-numbers > div { display: flex; align-items: baseline; gap: 12px; }
.atlas-numbers strong { font-family: var(--serif); font-weight: 400; font-size: 29px; color: #d1dbc8; }
.atlas-numbers span { font-size: 12px; color: #8ca18e; }
.hero-art-caption { position: absolute; bottom: 30px; right: 40px; color: #a1b19e; font-size: 10px; letter-spacing: .08em; }
.cycle-intro { display: grid; grid-template-columns: 1fr 3fr; gap: 45px; padding-block: 96px 85px; }
.cycle-intro .section-label { line-height: 2; }
.cycle-intro .section-label span { margin-left: 0; display: block; }
.cycle-intro h2 { font-size: clamp(29px, 3.4vw, 45px); }
.cycle-intro > div > p { color: var(--atlas-muted); line-height: 2; margin-top: 23px; }
.cycle-ribbon { margin-block: 32px 23px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cycle-ribbon > div { border-top: 2px solid #527068; background: #14221b; padding: 19px 14px 21px; }
.cycle-ribbon > div:nth-child(2) { border-color: #bfccaa; background: #263627; }
.cycle-ribbon > div:nth-child(3) { border-color: #b19b72; background: #242a20; }
.cycle-ribbon > div:nth-child(4) { border-color: #6b7563; background: #18211a; }
.cycle-ribbon span { display: block; color: #b2c2ab; font-size: 12px; }
.cycle-ribbon strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; margin-top: 12px; }
.cycle-ribbon small { display: block; font-size: 12px; color: #96a592; margin-top: 8px; }
.cycle-intro > div > p.model-note { font-size: 13px; color: #8d9e91; margin-top: 15px; }
.history-overview { border-top: 1px solid var(--line); padding-block: 52px 72px; }
.overview-heading { display: flex; gap: 30px; align-items: end; justify-content: space-between; }
.overview-heading h2 { font-size: 31px; margin-top: 16px; }
.overview-heading > p { color: #94a894; font-size: 14px; }
.overview-era { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.overview-era span { border-top: 1px solid var(--line); padding-top: 13px; color: #8fa58e; font-size: 12px; letter-spacing: .09em; }
.overview-grid { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; margin-top: 18px; }
.overview-period { display: block; background: #111e18; border: 1px solid #28382c; padding: 24px; transition: background .2s, border-color .2s; }
.overview-period:hover { background: #1c2b20; border-color: var(--period-color); }
.overview-code { display: flex; gap: 15px; align-items: center; color: var(--period-color); font-size: 13px; }
.trigram { display: inline-flex; flex-direction: column; width: 48px; gap: 6px; color: var(--period-color, var(--jade)); flex-shrink: 0; }
.trigram i { display: block; height: 5px; background: currentColor; }
.trigram i.yin { background: linear-gradient(90deg, currentColor 0 40%, transparent 40% 60%, currentColor 60%); }
.overview-code .trigram { width: 29px; gap: 4px; }
.overview-code .trigram i { height: 3px; }
.center-symbol { display: grid; place-items: center; width: 48px; height: 35px; color: var(--period-color); font-family: var(--serif); font-size: 29px; }
.overview-code .center-symbol { width: 29px; height: 17px; font-size: 20px; }
.overview-period strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.7; margin-top: 16px; min-height: 72px; color: #d5dfcf; }
.overview-years { display: flex; justify-content: space-between; font-size: 12px; color: #90a18e; margin-top: 13px; }
.overview-years > span { color: var(--period-color); font-size: 19px; }
.history-nav { position: sticky; top: 0; z-index: 20; border-block: 1px solid #304332; background: #0d1916f7; backdrop-filter: blur(14px); }
.history-nav > div { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.history-nav a { text-align: center; padding: 14px 2px 12px; border-bottom: 2px solid transparent; transition: background .2s; }
.history-nav a span { font-family: var(--serif); display: block; font-size: 17px; color: #b9c7b3; }
.history-nav a small { display: block; font-size: 11px; color: #8a9b88; margin-top: 2px; }
.history-nav a:hover, .history-nav a[aria-current="location"] { background: #203025; border-color: var(--period-color); }
.history-nav a[aria-current="location"] span { color: var(--period-color); }
.history-longform { background: radial-gradient(ellipse at 0% 18%, #17282059, transparent 30%), radial-gradient(ellipse at 100% 72%, #3026252e, transparent 30%); }
.history-chapter { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 72px; padding-block: 92px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.period-identity { color: var(--period-color); align-self: start; }
.identity-number { display: block; font-family: var(--serif); font-size: 84px; line-height: 1.2; opacity: .45; letter-spacing: -.04em; margin-bottom: 27px; }
.period-identity > p { font-family: var(--serif); font-size: 24px; margin-top: 19px; }
.period-identity > span:not(.identity-number):not(.trigram):not(.center-symbol) { display: block; font-size: 13px; margin-top: 8px; color: #9aaf9c; }
.period-identity > span.identity-years { font-size: 15px!important; margin-top: 24px!important; letter-spacing: .07em; }
.back-to-map { display: inline-block; font-size: 12px; margin-top: 32px; color: #90a28f; border-bottom: 1px solid #354b39; padding-bottom: 3px; }
.back-to-map:hover { color: var(--period-color); }
.history-theme { font-size: 12px; color: var(--period-color); letter-spacing: .11em; }
.history-body h2 { color: #e0e7d9; font-size: clamp(30px, 3.3vw, 43px); margin-top: 15px; line-height: 1.55; text-wrap: balance; }
.history-introduction { margin-top: 27px; color: #acbbae; font-size: 16px; line-height: 2.05; }
.history-introduction p + p { margin-top: 17px; }
.symbolism-note { margin-top: 27px; padding: 23px 26px; border-left: 2px solid var(--period-color); background: #18271e; }
.symbolism-label { color: #a0b59b; font-size: 11px; letter-spacing: .12em; }
.symbolism-chain { font-family: var(--serif); color: var(--period-color); font-size: 21px; line-height: 1.9; margin-top: 10px; text-wrap: pretty; }
.symbolism-explanation { color: #aab9aa; font-size: 14px; line-height: 2; margin-top: 13px; }
.period-symbolism { border-left: 2px solid #aabd94; margin-top: 24px; padding: 10px 17px; background: #203021; }
.period-symbolism[hidden] { display: none; }
.period-symbolism > span { display: block; font-size: 11px; letter-spacing: .08em; color: #9fb294; }
.period-symbolism > p { margin: 5px 0 0; color: #d4dfc8; font-size: 16px; line-height: 1.9; text-wrap: pretty; }
.period-window { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; gap: 6px; }
.window-phase { border-top: 2px solid #526558; background: #15211a; padding: 11px 12px 13px; }
.window-phase span { display: block; color: #b6c4b0; font-size: 13px; }
.window-phase small { display: block; font-size: 12px; color: #9bab94; margin-top: 3px; }
.window-1 { background: #243124; border-color: var(--period-color); }
.window-2 { border-color: #92866b; }
.window-3 { border-color: #434f40; }
.history-events { margin-top: 37px; }
.history-phase + .history-phase { margin-top: 33px; }
.history-phase h3 { display: flex; align-items: center; gap: 10px; color: var(--period-color); font-size: 13px; font-weight: 400; margin: 0 0 21px; padding-bottom: 12px; border-bottom: 1px solid #283b2d; }
.history-phase h3 > span:last-child { color: #8c9c86; font-size: 12px; margin-left: 5px; }
.phase-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--period-color); }
.phase-0, .phase-3 { background: transparent; border: 1px solid var(--period-color); }
.event-list { padding: 0; margin: 0; list-style: none; }
.event-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; position: relative; margin-bottom: 27px; }
.event-list li:last-child { margin-bottom: 0; }
.event-year { font-family: var(--serif); color: var(--period-color); font-size: 17px; line-height: 1.8; padding-top: 2px; }
.event-year small { display: block; font-family: var(--sans); font-size: 11px; color: #91a088; }
.event-list h4 { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.65; color: #d7e1ce; margin: 0; }
.event-list p { color: #9fb0a0; font-size: 15px; line-height: 1.95; margin-top: 9px; }
.source-ref { font-size: 12px; color: var(--period-color); white-space: nowrap; padding-inline: 2px; border-bottom: 1px solid #3a4b3b; }
.source-ref:hover { color: #edf0e8; border-color: currentColor; }
.history-quote { margin: 37px 0 0; padding: 27px 30px; border-left: 2px solid var(--period-color); background: #15221b; }
.history-quote p { font-family: var(--serif); font-size: 24px; line-height: 1.85; color: #c9d8c0; }
.history-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: .1em; color: #8c9d86; margin-top: 18px; }
.historical-note { margin-top: 23px; display: grid; grid-template-columns: 66px 1fr; gap: 14px; font-size: 13px; line-height: 1.9; }
.historical-note > span { color: #a2b499; }
.historical-note > p { color: #8b9d8e; }
.history-sources { margin-top: 26px; border-top: 1px solid #2d4031; }
.history-sources summary { cursor: pointer; list-style: none; color: #b1c3a8; font-size: 13px; padding: 17px 0 4px; }
.history-sources summary::-webkit-details-marker { display: none; }
.history-sources summary::before { content: '+'; display: inline-block; width: 24px; font-size: 18px; vertical-align: -1px; }
.history-sources[open] summary::before { content: '−'; }
.history-sources summary > span { float: right; color: #91a08b; font-size: 12px; padding-top: 4px; }
.history-sources ol { margin: 17px 0 0; padding-left: 23px; color: #8d9e87; font-size: 13px; }
.history-sources li { padding: 5px 0 5px 4px; }
.history-sources a { text-decoration: underline; text-decoration-color: #41503e; text-underline-offset: 5px; }
.history-sources a:hover { color: #d4decb; }
.future-note { margin-top: 30px; padding: 22px 26px; border: 1px dashed #665e45; background: #262419; }
.future-note span { color: #ccb78f; font-size: 12px; }
.future-note p { color: #bdbaa6; font-size: 14px; line-height: 1.95; margin-top: 9px; }
.history-ending { padding-block: 85px 72px; text-align: center; }
.history-ending .eyebrow { justify-content: center; }
.history-ending h2 { font-size: clamp(30px, 3.4vw, 45px); line-height: 1.65; margin-top: 25px; }
.history-ending > p:not(.eyebrow) { color: #a4b49d; font-size: 16px; line-height: 2.3; margin-top: 27px; }
.ending-links { display: flex; align-items: center; justify-content: center; gap: 28px; }
.framework-sources { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 20px; text-align: left; font-size: 13px; color: #94a38f; }
.framework-sources summary { cursor: pointer; }
.framework-sources p { margin-top: 16px; }
.framework-sources a { display: inline-block; margin: 0 18px 12px 0; text-decoration: underline; text-underline-offset: 4px; }
.period-readmore { display: inline-flex; gap: 15px; color: #d1dfc4; font-size: 14px; margin-top: 19px; border-bottom: 1px solid #6d855f; padding: 2px 0 5px; }
.period-readmore:hover { color: var(--gold); }
.home-history-link { margin-top: 29px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid #465d41; padding: 28px 34px; background: radial-gradient(ellipse at 85% 50%, #35462c, transparent 65%), #16241b; }
.home-history-link small { display: block; color: #9cb18f; font-size: 11px; letter-spacing: .12em; }
.home-history-link strong { display: block; font-family: var(--serif); font-size: 27px; font-weight: 400; color: #d4e0c8; margin-top: 8px; }
.home-history-link p { color: #9cad94; font-size: 14px; margin-top: 8px; }
.home-history-link > span { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #84966f; border-radius: 50%; font-size: 23px; flex-shrink: 0; color: #d1dbbf; }
.home-history-link:hover { border-color: #9db38e; }
.home-cycle-preview { display: flex; gap: 0; margin-top: 24px; }
.home-cycle-preview span { flex: 1; text-align: center; border-top: 2px solid #526e50; padding: 13px 4px; font-size: 13px; color: #a8b99c; }
.home-cycle-preview span:nth-child(2) { border-color: #beccaa; color: #d5dfc8; }
.home-cycle-preview span:nth-child(3) { border-color: #a8956f; }
.home-cycle-preview span:last-child { border-color: #454f40; }
@media (min-width: 1101px) { .period-identity { position: sticky; top: 124px; } }
@media (max-width: 1100px) {
  .history-chapter { grid-template-columns: 125px minmax(0, 1fr); gap: 40px; }
  .cycle-intro { grid-template-columns: 1fr 3fr; gap: 25px; }
  .cycle-ribbon strong { font-size: 15px; }
  .cycle-ribbon > div { padding-inline: 9px; }
  .overview-period { padding: 20px; }
  .overview-period strong { font-size: 19px; }
  .atlas-numbers { gap: 25px; }
  .event-list li { grid-template-columns: 95px minmax(0, 1fr); gap: 15px; }
}
@media (max-width: 700px) {
  .history-header { min-height: 74px; gap: 15px; }
  .history-header .brand { font-size: 11px; gap: 5px; }
  .history-header nav { gap: 15px; font-size: 12px; }
  .history-header nav a:first-child { display: none; }
  .history-hero { min-height: 620px; }
  .history-hero-content { padding-block: 55px 67px; }
  .history-hero-art { background-position: 65% center; opacity: .43; }
  .history-hero::after { background: linear-gradient(90deg, #08110fe8, #08110f55), linear-gradient(0deg, #08110f, transparent 65%); }
  .history-hero .eyebrow { font-size: 10px; letter-spacing: .05em; }
  .history-hero h1 { font-size: clamp(35px, 9.8vw, 60px); margin-top: 34px; line-height: 1.6; }
  .history-hero-subtitle { font-size: 14px; line-height: 2.1; margin-top: 24px; }
  .history-hero .button { margin-top: 27px; }
  .atlas-numbers { display: grid; grid-template-columns: .75fr .9fr 1.35fr; gap: 12px; margin-top: 36px; }
  .atlas-numbers > div { display: block; }
  .atlas-numbers strong { display: block; font-size: 28px; }
  .atlas-numbers span { display: block; font-size: 10px; margin-top: 5px; }
  .hero-art-caption { right: 20px; bottom: 17px; font-size: 9px; }
  .cycle-intro { display: block; padding-block: 52px 44px; }
  .cycle-intro .section-label { margin-bottom: 25px; font-size: 11px; }
  .cycle-intro .section-label span { display: inline; margin-left: 13px; font-size: 9px; }
  .cycle-intro h2 { font-size: 31px; }
  .cycle-intro > div > p { font-size: 15px; line-height: 2; }
  .cycle-ribbon { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  .cycle-ribbon > div { padding: 16px; }
  .cycle-ribbon strong { font-size: 17px; }
  .cycle-intro > div > p.model-note { font-size: 12px; }
  .history-overview { padding-block: 35px 38px; }
  .overview-heading { display: block; }
  .overview-heading h2 { font-size: 27px; margin-top: 15px; }
  .overview-heading > p { font-size: 13px; margin-top: 14px; }
  .overview-era { display: none; }
  .overview-grid { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; grid-template-rows: none; margin-top: 26px; gap: 9px; }
  .overview-period { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 5px 16px; padding: 17px 16px; align-items: center; }
  .overview-code { grid-row: span 2; gap: 11px; font-size: 12px; }
  .overview-period strong { min-height: 0; font-size: 17px; margin-top: 0; line-height: 1.7; }
  .overview-years { margin-top: 2px; font-size: 11px; }
  .overview-years > span { font-size: 15px; }
  .history-nav > div { width: calc(100% - 20px); grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  .history-nav a { padding: 12px 0 10px; min-height: 49px; }
  .history-nav a span { font-size: 13px; }
  .history-nav a small { display: none; }
  .history-chapter { display: block; padding-block: 44px 46px; scroll-margin-top: 32px; }
  .period-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; padding-bottom: 25px; }
  .identity-number { font-size: 37px; margin: 0; }
  .period-identity .trigram { width: 30px; gap: 4px; }
  .period-identity .trigram i { height: 3px; }
  .period-identity .center-symbol { width: 30px; height: 25px; font-size: 24px; }
  .period-identity > p { font-size: 20px; margin: 0; }
  .period-identity > span:not(.identity-number):not(.trigram):not(.center-symbol) { font-size: 11px; margin-top: 0; }
  .period-identity > span.identity-years { width: 100%; font-size: 12px!important; margin-top: 0!important; color: #859681; }
  .back-to-map { display: none; }
  .history-theme { font-size: 11px; letter-spacing: .05em; }
  .history-body h2 { font-size: 29px; margin-top: 15px; line-height: 1.6; }
  .history-introduction { font-size: 15px; margin-top: 23px; line-height: 2; }
  .symbolism-note { padding: 18px 19px; margin-top: 22px; }
  .symbolism-chain { font-size: 19px; }
  .symbolism-explanation { font-size: 13px; }
  .period-symbolism { padding: 10px 13px; margin-top: 20px; }
  .period-symbolism > p { font-size: 14px; }
  .period-window { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 26px; }
  .window-phase { padding: 9px 12px 11px; }
  .window-phase span { font-size: 12px; }
  .window-phase small { font-size: 12px; }
  .history-events { margin-top: 29px; }
  .history-phase h3 { margin-bottom: 19px; }
  .event-list li { display: block; margin-bottom: 26px; }
  .event-year { display: inline-block; font-size: 14px; padding: 0; margin-bottom: 6px; }
  .event-list h4 { font-size: 21px; }
  .event-list p { font-size: 15px; margin-top: 8px; }
  .history-quote { padding: 23px 20px; margin-top: 29px; }
  .history-quote p { font-size: 21px; line-height: 1.9; }
  .history-quote cite { font-size: 10px; }
  .historical-note { display: block; font-size: 12px; margin-top: 20px; }
  .historical-note p { margin-top: 8px; }
  .history-sources summary { font-size: 13px; }
  .history-sources summary > span { font-size: 11px; }
  .history-sources ol { font-size: 12px; line-height: 2; }
  .future-note { padding: 19px; }
  .future-note p { font-size: 13px; }
  .history-ending { padding-block: 55px 43px; }
  .history-ending h2 { font-size: 28px; }
  .history-ending > p:not(.eyebrow) { font-size: 14px; line-height: 2.2; }
  .history-ending > p br { display: none; }
  .ending-links { flex-direction: column; gap: 0; }
  .ending-links .text-link { margin-top: 21px; }
  .framework-sources { font-size: 12px; margin-top: 40px; }
  .home-history-link { gap: 15px; padding: 24px 22px; }
  .home-history-link strong { font-size: 23px; line-height: 1.6; }
  .home-history-link small { font-size: 10px; }
  .home-history-link p { font-size: 13px; }
  .home-history-link > span { width: 35px; height: 35px; font-size: 19px; }
  .home-cycle-preview { flex-wrap: wrap; }
  .home-cycle-preview span { flex-basis: 50%; font-size: 12px; }
}
@media print {
  .history-page { background: white; color: #111; }
  .history-nav, .history-header, .history-hero-art, .hero-art-caption, .ending-links, .back-to-map { display: none; }
  .history-hero, .history-longform { background: white; min-height: 0; }
  .history-hero::after { display: none; }
  .history-chapter { padding-block: 35px; grid-template-columns: 90px 1fr; gap: 25px; }
  .period-identity { position: static; }
  .history-page p, .history-page h1, .history-page h2, .history-page h5, .history-page span, .history-page strong { color: #222!important; }
  .event-list li { break-inside: avoid; }
  .history-sources { display: none; }
}
