    :root {
      color-scheme: light;
      --ink: #1b1a18;
      --paper: #f2efe9;
      --paper-light: #fbfaf7;
      --paper-alt: #e8e4dc;
      --white: #fff;
      --red: #a61f2b;
      --red-dark: #791a22;
      --muted: #555654;
      --line: #d3cec5;
      --serif: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
      --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --display: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
      font-family: var(--sans);
      scroll-behavior: smooth;
    }
    * { box-sizing: border-box; }
    html { scroll-padding-top: 10rem; }
    body {
      margin: 0;
      background-color: var(--paper);
      background-image: repeating-linear-gradient(0deg, rgba(32, 32, 32, .014) 0, rgba(32, 32, 32, .014) 1px, transparent 1px, transparent 4px);
      color: var(--ink);
      font-size: 1.0625rem;
      line-height: 1.65;
    }
    a { color: inherit; }
    .skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; padding: .7rem 1rem; background: var(--white); color: var(--ink); transform: translateY(-180%); }
    .skip-link:focus { transform: translateY(0); }
    .site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .4rem max(1.5rem, calc((100vw - 1200px) / 2)); background: rgba(242, 239, 233, .97); border-bottom: 1px solid var(--line); box-shadow: 0 3px 14px rgba(32, 28, 24, .035); backdrop-filter: blur(10px); }
    .brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
    .brand-mark { display: block; width: 3.25rem; height: 2.7rem; object-fit: contain; }
    .brand-copy { display: flex; flex-direction: column; align-items: flex-start; }
    .brand-signature { display: block; width: 7.2rem; height: 5.05rem; object-fit: contain; }
    .brand-caption { display: block; max-width: min(27rem, 46vw); margin-top: .06rem; padding-top: .26rem; border-top: 1px solid var(--red); color: #443b36; font-family: var(--serif); font-size: .9rem; font-weight: 500; letter-spacing: .005em; line-height: 1.35; }
    .main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 2vw, 1.65rem); }
    .main-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .32rem .08rem; color: #252525; font-size: .86rem; font-weight: 650; letter-spacing: .01em; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease, background .2s ease; white-space: nowrap; }
    .main-nav a:hover, .main-nav a:focus-visible { color: var(--red); border-color: var(--red); }
    .main-nav .nav-newsletter { padding: .55rem .9rem; border: 1px solid var(--red); background: var(--red); color: #fff; }
    .main-nav .nav-newsletter:hover, .main-nav .nav-newsletter:focus-visible { background: var(--red-dark); color: #fff; border-color: var(--red-dark); }
    .main-nav .nav-instagram { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; padding: .55rem; border: 1px solid #b9b9b5; color: #252525; }
    .main-nav .nav-instagram:hover, .main-nav .nav-instagram:focus-visible { background: var(--paper-light); border-color: var(--red); color: var(--red); }
    .instagram-icon { display: block; width: 1.2rem; height: 1.2rem; }
    .external-mark { margin-left: .18rem; font-size: .95em; }
    .hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(24rem, 1.12fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; min-height: 40rem; padding: clamp(3.5rem, 7vw, 6.5rem) max(1.5rem, calc((100vw - 1200px) / 2)); background: var(--paper); }
    .eyebrow, .section-kicker { margin: 1.1rem 0 .8rem; color: #444; font-size: .78rem; font-weight: 760; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
    .eyebrow::before { content: ""; display: inline-block; width: 1.8rem; height: 2px; margin: 0 .65rem .25rem 0; background: var(--red); }
    h1, h2, h3, p { margin-top: 0; }
    h1 { max-width: 11ch; margin-bottom: 1.25rem; font-family: var(--display); font-size: clamp(3.35rem, 6.1vw, 5.8rem); font-weight: 700; letter-spacing: -.035em; line-height: .99; text-wrap: balance; }
    h1 em { color: var(--red); font-style: normal; font-weight: inherit; }
    .hero-intro { max-width: 36rem; margin-bottom: 1.3rem; color: #343434; font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.7; }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.5rem 0 1.4rem; }
    .button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1rem; font-family: var(--sans); font-size: .9rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
    .button-red { border: 1px solid var(--red); background: var(--red); color: #fff; }
    .button-red:hover { border-color: var(--red-dark); background: var(--red-dark); }
    .button-red:disabled, .button-red:disabled:hover { border-color: #aa545b; background: #aa545b; color: #fff; cursor: not-allowed; }
    .button-outline { border: 1px solid #777; background: transparent; color: var(--ink); }
    .button-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
    .hero-note { max-width: 34rem; margin-bottom: 0; padding-left: .9rem; border-left: 2px solid var(--red); color: #555; font-size: .9rem; }
    .hero-visual { position: relative; margin: 0; padding: .65rem; border: 1px solid #c8c8c4; background: var(--paper-light); box-shadow: 1rem 1rem 0 rgba(32, 32, 32, .06); }
    .hero-visual img { display: block; width: 100%; height: clamp(23rem, 38vw, 34rem); object-fit: cover; object-position: 52% center; filter: grayscale(100%) contrast(1.06); }
    .hero-visual figcaption { padding: .65rem .25rem .1rem; color: #555; font-size: .76rem; line-height: 1.45; }
    .hero-visual figcaption a { color: var(--red-dark); text-underline-offset: .2em; }
    .section { padding: clamp(4.2rem, 7.5vw, 7rem) max(1.5rem, calc((100vw - 1120px) / 2)); scroll-margin-top: 10rem; }
    .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .7fr); gap: 2rem; align-items: end; margin-bottom: 2.4rem; }
    .section-kicker { margin-top: 0; margin-bottom: .6rem; color: var(--red); }
    h2 { margin-bottom: .55rem; font-family: var(--display); font-size: clamp(2.25rem, 4.1vw, 3.7rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
    .section-heading > p { max-width: 34rem; margin: 0; color: var(--muted); }
    .explore-index { background: var(--paper-alt); border-bottom: 1px solid #c8c8c4; }
    .explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .explore-card { position: relative; display: flex; min-height: 15rem; flex-direction: column; padding: 1.45rem; border: 1px solid #c8c8c4; background: var(--paper-light); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .explore-card::before { position: absolute; top: -1px; left: 1.45rem; width: 2.5rem; height: 3px; background: var(--red); content: ""; }
    .explore-card:hover, .explore-card:focus-visible { border-color: var(--red); box-shadow: .35rem .35rem 0 rgba(32, 32, 32, .08); transform: translateY(-2px); }
    .explore-label { display: block; margin-bottom: .9rem; color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
    .explore-card h3 { margin: 0 0 .65rem; font-family: var(--serif); font-size: 1.55rem; }
    .explore-card p { margin-bottom: 1.2rem; color: #414141; font-size: .94rem; line-height: 1.6; }
    .explore-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: #282828; font-size: .83rem; font-weight: 750; text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: .22em; }
    .explore-link::after { content: "→"; color: var(--red); }
    .reading-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.2rem; }
    .reading-route { padding: 1.15rem 1.25rem; border-top: 3px solid var(--red); background: #191919; color: #fff; }
    .reading-route span { display: block; margin-bottom: .4rem; color: #f08b91; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .reading-route p { margin: 0; color: #e0e0dd; font-size: .92rem; line-height: 1.55; }
    .territory-figure { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr); gap: 1rem; align-items: center; margin: 1.1rem 0 0; padding: .65rem; border: 1px solid #4a4a49; background: #222; }
    .territory-figure img { display: block; width: 100%; height: auto; }
    .territory-figure figcaption { padding: 1rem; color: #dededb; font-size: 1rem; line-height: 1.6; }
    .territory-figure strong { color: #fff; }
    .territory-figure a { color: #f2a2a6; text-underline-offset: .18em; }
    .chiefs { background: var(--paper-light); border-top: 1px solid #dfdfdc; border-bottom: 1px solid #dfdfdc; }
    .chief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .chief-card { position: relative; display: flex; min-height: 16.5rem; flex-direction: column; padding: 1.4rem 1.45rem 1.25rem; border: 1px solid var(--line); background: #fff; }
    .chief-card::before { position: absolute; top: -1px; left: 1.4rem; width: 2.5rem; height: 3px; background: var(--red); content: ""; }
    .chief-portrait { width: 100%; margin: 0 0 1rem; border: 1px solid #c8c8c4; background: #f2f0eb; }
    .chief-portrait img { display: block; width: 100%; height: 14rem; object-fit: contain; object-position: center; }
    .chief-portrait figcaption { padding: .45rem .55rem; color: #4a4a48; font-size: .72rem; line-height: 1.4; }
    .chief-portrait figcaption a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
    .chief-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .55rem; color: var(--muted); font-size: .78rem; }
    .chief-meta span:first-child { color: var(--red); font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
    h3 { margin-bottom: .65rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
    .chief-card p { margin-bottom: 1rem; color: #414141; font-size: .96rem; line-height: 1.6; }
    .source-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: #282828; font-size: .82rem; font-weight: 700; text-decoration-color: #aaa; text-underline-offset: .22em; }
    .source-link::after { content: "↗"; color: var(--red); font-size: .8rem; }
    .phases { background: var(--paper-alt); }
    .year-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
    .timeline-prelude { margin: 0 0 1.2rem; padding: 1.3rem 1.4rem; border: 1px solid #c8c8c4; background: rgba(250,250,248,.7); }
    .timeline-prelude-title { display: flex; flex-direction: column; margin-bottom: .8rem; }
    .timeline-prelude-title strong { color: var(--red); font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
    .timeline-prelude-title span { color: #414141; font-size: .95rem; }
    .timeline-events { margin: 0; padding: 0; list-style: none; }
    .timeline-event { display: grid; grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr); gap: .9rem; align-items: baseline; padding: .48rem 0; border-bottom: 1px solid #dededb; }
    .timeline-event:last-child { border-bottom: 0; }
    .timeline-date { color: var(--red-dark); font-size: .84rem; font-weight: 800; line-height: 1.4; }
    .timeline-event p { margin: 0; color: #414141; font-size: .93rem; line-height: 1.48; }
    .timeline-source-note { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid #dededb; color: #565653; font-size: .82rem; line-height: 1.5; }
    .timeline-source-note a { color: #282828; font-weight: 750; text-underline-offset: .15em; }
    .year-intro { margin: -.2rem 0 1rem; color: #4b4b49; line-height: 1.5; }
    .timeline-experience { margin-top: 2.2rem; }
    .timeline-tools { display: grid; grid-template-columns: 1fr minmax(8rem, .42fr); align-items: center; gap: 1rem; margin-bottom: 1rem; }
    .timeline-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #b9b9b5; background: #f8f8f6; }
    .timeline-tab { min-height: 4.3rem; padding: .7rem .55rem; border: 0; border-right: 1px solid #c8c8c4; background: transparent; color: #272727; font-family: var(--display); font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 700; cursor: pointer; transition: color .2s ease, background .2s ease; }
    .timeline-tab:last-child { border-right: 0; }
    .timeline-tab:hover { background: #e3e3e0; }
    .timeline-tab[aria-selected="true"] { background: var(--red); color: #fff; }
    .timeline-step { margin: 0; color: #484846; font-size: .83rem; font-weight: 750; text-align: right; }
    .timeline-progress { height: .32rem; overflow: hidden; background: #c9c9c5; }
    .timeline-progress span { display: block; width: 25%; height: 100%; background: var(--red); transition: width .3s ease; }
    .timeline-experience[data-enhanced="true"] .year-grid { display: block; }
    .timeline-experience[data-enhanced="true"] .year-group[hidden] { display: none; }
    .year-group[tabindex="0"]:focus-visible { outline-offset: 2px; }
    .year-group { padding: 1.3rem 1.4rem .55rem; border: 1px solid #c8c8c4; background: rgba(250,250,248,.7); }
    .year-title { margin: 0 0 1rem; color: var(--red); font-family: var(--display); font-size: clamp(2.1rem, 3.5vw, 3.3rem); font-weight: 700; letter-spacing: -.025em; line-height: 1; }

    .later-wars { margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid #bbb; }
    .later-wars > .section-kicker { margin: 0 0 .55rem; }
    .later-wars > h3 { margin-bottom: .6rem; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; }
    .later-wars-intro, .later-wars-note { max-width: 56rem; color: #4b4b49; }
    .later-war-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.35rem; }
    .later-war-card { padding: 1.25rem; background: #191919; color: #fff; }
    .later-war-date { display: block; margin-bottom: .85rem; color: #f08b91; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
    .later-war-card h4 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
    .later-war-card .timeline-event { grid-template-columns: minmax(7.5rem, 8.5rem) minmax(0, 1fr); gap: .7rem; border-color: #414141; align-items: start; }
    .later-war-card .timeline-date { color: #f08b91; }
    .later-war-card .timeline-event p { color: #e0e0dd; font-size: .88rem; }
    .later-war-card .timeline-source-note { color: #dededb; }
    .later-war-card .timeline-source-note a { color: #fff; }
    .later-war-card p { margin: 0; color: #dededb; font-size: .92rem; line-height: 1.55; }
    .later-wars-note { margin: 1rem 0 0; font-size: .88rem; }
    .battles { background: #191919; color: var(--white); }
    .battles .section-kicker { color: #ef7e85; }
    .battles .section-heading > p { color: #d4d4d1; }
    .battle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
    .battle-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(15rem, .85fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin: 0 0 1.2rem; padding: .65rem; border: 1px solid #494949; background: #222; }
    .battle-feature figure { margin: 0; }
    .battle-feature img { display: block; width: 100%; height: clamp(18rem, 33vw, 27rem); object-fit: cover; object-position: center; filter: grayscale(100%) contrast(1.04); }
    .battle-feature figcaption { padding: .55rem .35rem .05rem; color: #c9c9c6; font-size: .76rem; line-height: 1.45; }
    .battle-feature figcaption a { color: #f2a2a6; text-underline-offset: .18em; }
    .battle-feature-copy { padding: 1.4rem clamp(.65rem, 2vw, 1.6rem) 1.4rem 0; }
    .battle-feature-date { display: block; margin-bottom: .7rem; color: #f08b91; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .battle-feature-copy h3 { margin-bottom: .7rem; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
    .battle-feature-copy p { max-width: 32rem; margin-bottom: 1rem; color: #e0e0dd; line-height: 1.65; }
    .battle-feature-copy .source-link { color: #fff; }
    .battle-card { min-height: 13.2rem; padding: 1.25rem; border: 1px solid #4a4a49; background: #222; }
    .battle-date { display: block; margin-bottom: 1.2rem; color: #f08b91; font-size: .77rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
    .battle-card h3 { margin-bottom: .55rem; color: #fff; font-size: 1.42rem; }
    .battle-card p { margin: 0; color: #e0e0dd; font-size: .94rem; line-height: 1.55; }
    .quiz { background: var(--paper-alt); border-top: 1px solid #c8c8c4; }
    .quiz-card { max-width: 58rem; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.8rem); border: 1px solid #171717; border-top: .45rem solid var(--red); background: #191919; color: #fff; box-shadow: .7rem .7rem 0 rgba(32,32,32,.09); }
    .quiz-topline { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; color: #f08b91; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .quiz-progress { height: .35rem; margin-bottom: 1.55rem; overflow: hidden; background: #4d4d4b; }
    .quiz-progress span { display: block; width: 0; height: 100%; background: #f08b91; transition: width .25s ease; }
    .quiz-levels h3 { margin: 0 0 .55rem; color: #fff; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2rem); }
    .quiz-levels-intro { margin: 0 0 1.3rem; color: #e0e0dd; }
    .quiz-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
    .quiz-level { display: flex; min-height: 13rem; flex-direction: column; align-items: flex-start; padding: 1.15rem; border: 1px solid #686866; background: #222; color: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
    .quiz-level:hover, .quiz-level:focus-visible { border-color: #f08b91; background: #303030; transform: translateY(-2px); }
    .quiz-level-index { color: #f08b91; font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
    .quiz-level strong { margin: .45rem 0; color: #fff; font-size: 1.22rem; }
    .quiz-level-description { color: #e0e0dd; font-size: .94rem; line-height: 1.5; }
    .quiz-level-count { margin-top: auto; padding-top: 1rem; color: #f08b91; font-size: .8rem; font-weight: 800; }
    .quiz-level-start { margin-top: .35rem; font-weight: 800; }
    .quiz-question { max-width: 40rem; margin: 0 0 1.2rem; color: #fff; font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.25; }
    .quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .quiz-answer { min-height: 4.25rem; padding: .8rem 1rem; border: 1px solid #686866; background: #242424; color: #fff; font: 650 1rem/1.4 var(--sans); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
    .quiz-answer:hover:not(:disabled), .quiz-answer:focus-visible { border-color: #f08b91; background: #303030; }
    .quiz-answer:disabled { cursor: default; }
    .quiz-answer.is-correct { border-color: #9fc4a3; background: #28372b; }
    .quiz-answer.is-incorrect { border-color: #e58e92; background: #45292b; }
    .quiz-feedback { min-height: 1.7rem; margin: 1rem 0 .75rem; color: #f0efea; }
    .quiz-next { margin-top: .2rem; }
    .quiz-result { padding: .5rem 0; }
    .quiz-result h3 { margin-bottom: .6rem; color: #fff; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
    .quiz-result p { max-width: 38rem; color: #e0e0dd; }
    .quiz-result-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
    .quiz-result .button-outline { border-color: #777; color: #fff; }
    .quiz-result .button-outline:hover, .quiz-result .button-outline:focus-visible { border-color: #eee; background: #eee; color: #191919; }
    .quiz-source { display: inline-block; margin-left: .25rem; color: #f2a2a6; text-underline-offset: .18em; }
    .quiz-result strong { color: #f08b91; }
    .quiz-note { max-width: 58rem; margin: 1rem auto 0; color: #555; font-size: .86rem; }
    .origins { background: var(--paper-alt); border-top: 1px solid #d0d0cc; border-bottom: 1px solid #d0d0cc; }
    .origin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
    .origin-card { position: relative; display: flex; min-height: 17rem; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); background: var(--paper-light); }
    .origin-card::before { position: absolute; top: -1px; left: 1.4rem; width: 2.5rem; height: 3px; background: var(--red); content: ""; }
    .origin-label { display: block; margin-bottom: .75rem; color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
    .origin-card h3 { margin-bottom: .6rem; font-family: var(--serif); font-size: 1.4rem; }
    .origin-card p { margin-bottom: 1rem; color: #414141; font-size: .94rem; line-height: 1.6; }
    .origin-card .source-link { font-size: .8rem; }
    .origins-note { margin: 1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--red); background: rgba(250,250,248,.7); color: #414141; font-size: .92rem; }
    .origin-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1.2rem; }
    .origin-moment { padding: 1rem; border-top: 2px solid var(--red); background: rgba(250,250,248,.72); }
    .origin-moment strong { display: block; margin-bottom: .35rem; color: var(--red-dark); font-family: var(--serif); font-size: 1.15rem; }
    .origin-moment p { margin: 0; color: #414141; font-size: .9rem; line-height: 1.5; }
    .chief-reading-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .42fr); gap: 1.5rem; align-items: center; margin-top: 1.4rem; padding: 1.25rem 1.4rem; border-left: 3px solid var(--red); background: #f0f0ed; }
    .chief-reading-note p { margin: 0; color: #414141; }
    .chief-reading-note a { color: var(--red-dark); font-weight: 750; text-underline-offset: .2em; }
    .phase-note { margin: 1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--red); background: #f8f8f6; color: #414141; }
    .battle-reading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 1.2rem; }
    .battle-reading article { padding: 1rem 1.1rem; border: 1px solid #4a4a49; background: #222; }
    .battle-reading strong { display: block; margin-bottom: .3rem; color: #f08b91; font-size: .95rem; }
    .battle-reading p { margin: 0; color: #dededb; font-size: .9rem; line-height: 1.5; }
    .battles .battle-more-link { display: inline-block; margin-top: 1rem; color: #fff; font-weight: 750; text-underline-offset: .2em; }
    .glossary-section { background: #f8f8f6; }
    .glossary { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
    .glossary-section > .glossary { margin-top: 0; }
    .glossary h3, .faq h3 { margin-bottom: .9rem; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; }
    .glossary-intro { max-width: 58rem; margin: 0 0 1.4rem; color: #414141; font-size: 1rem; line-height: 1.6; }
    .glossary-groups { display: grid; gap: 1.4rem; }
    .glossary-group h4 { margin: 0 0 .7rem; font-family: var(--sans); font-size: .95rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .glossary-grid, .faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .glossary details, .faq details { padding: 1rem 1.1rem; border: 1px solid var(--line); background: #fff; }
    .glossary summary, .faq summary { color: #242424; font-weight: 780; cursor: pointer; }
    .glossary details p, .faq details p { margin: .65rem 0 0; color: #414141; font-size: 1rem; line-height: 1.6; }
    .glossary-source { display: inline-block; margin-top: .7rem; color: var(--red-dark); font-size: .875rem; font-weight: 750; line-height: 1.5; text-underline-offset: .18em; }
    .faq { margin-top: 2.5rem; }
    .newsletter-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.4rem) max(1.5rem, calc((100vw - 1120px) / 2)); background: var(--red); color: #fff; }
    .newsletter-cta .section-kicker { margin: 0 0 .45rem; color: #ffd8da; }
    .newsletter-cta h2 { max-width: 15ch; margin-bottom: .5rem; font-size: clamp(1.8rem, 3.5vw, 3rem); }
    .newsletter-cta p { max-width: 45rem; margin: 0; color: #fff; }
    .newsletter-cta .button { border-color: #fff; background: #fff; color: #252525; }
    .newsletter-cta .button:hover, .newsletter-cta .button:focus-visible { background: #191919; color: #fff; }
    .footer { border-top: 4px solid var(--red); background: #191919; color: #f5f3ee; }
    .footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 3rem; max-width: 1120px; margin: 0 auto; padding: 3rem 1.5rem 2.5rem; }
    .footer-brand { max-width: 25rem; }
    .footer-home { display: inline-flex; align-items: center; margin-bottom: .7rem; }
    .footer-emblem { display: block; width: 4.5rem; height: 4.5rem; object-fit: contain; object-position: left center; }
    .footer-tagline { margin: 0 0 .35rem; color: #fff; font-family: var(--serif); font-size: 1.08rem; }
    .footer-description { margin: 0; color: #d5d3ce; font-size: .97rem; line-height: 1.6; }
    .footer-heading { margin: .15rem 0 .85rem; color: #ef8b92; font-size: .78rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
    .footer-links { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
    .footer a { color: inherit; font-size: .96rem; font-weight: 700; text-underline-offset: .2em; }
    .footer a:hover, .footer a:focus-visible { color: #f29aa0; text-decoration-color: #f29aa0; }
    .footer-contact { display: inline-block; margin: 0 0 .95rem; overflow-wrap: anywhere; }
    .footer-social-row { display: flex; align-items: center; gap: .65rem; }
    .footer .instagram-link { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid #d2d0ca; border-radius: 50%; background: #f3f1eb; text-decoration: none; }
    .footer .instagram-link:hover, .footer .instagram-link:focus-visible { border-color: #fff; background: #fff; }
    .footer .instagram-link:hover .instagram-icon, .footer .instagram-link:focus-visible .instagram-icon { transform: scale(1.06); }
    .footer-bottom { display: flex; justify-content: space-between; gap: 1.5rem; padding: .95rem max(1.5rem, calc((100vw - 1120px) / 2)); border-top: 1px solid #4b4b49; color: #cfceca; font-size: .86rem; }
    .footer-bottom p { margin: 0; }
    .footer-bottom a { color: #fff; }
    :focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
    @media (max-width: 1200px) {
      .site-header { flex-wrap: wrap; }
      .main-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    }
    @media (max-width: 900px) {
      .site-header { flex-wrap: wrap; }
      .main-nav { gap: .9rem; }
      .hero { grid-template-columns: 1fr 1fr; gap: 2rem; min-height: 34rem; }
      .hero-visual img { height: 26rem; }
      .chief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .origin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .origin-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .timeline-event { grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr); }
      .territory-figure { grid-template-columns: 1fr; }
      .battle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .battle-feature { grid-template-columns: 1fr; }
      .battle-feature img { height: clamp(18rem, 55vw, 27rem); }
      .battle-feature-copy { padding: .5rem 1rem 1rem; }
      .later-war-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
      .footer-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 650px) {
      html { scroll-padding-top: 1rem; }
      .site-header { position: static; align-items: flex-start; gap: .6rem; padding: .55rem 1rem .7rem; }
      .brand { gap: .55rem; }
      .brand-mark { width: 2.7rem; height: 2.3rem; }
      .brand-signature { width: 6rem; height: 4.2rem; }
      .brand-caption { max-width: min(22rem, 57vw); font-size: .82rem; }
      .main-nav { width: 100%; justify-content: flex-start; flex-wrap: nowrap; gap: 1rem; overflow-x: auto; padding: .3rem 0 .4rem; scrollbar-width: thin; }
      .main-nav a { font-size: .8rem; }
      .main-nav .nav-newsletter { padding: .4rem .65rem; }
      .main-nav .nav-instagram { width: 2.75rem; height: 2.75rem; padding: .55rem; }
      .hero { grid-template-columns: 1fr; min-height: auto; gap: 1.7rem; padding: 3rem 1.2rem 2rem; }
      h1 { max-width: 11ch; font-size: clamp(3.15rem, 13.5vw, 4.8rem); }
      .hero-visual img { height: 18rem; }
      .section { padding: 4rem 1.2rem; scroll-margin-top: 1rem; }
      .section-heading { grid-template-columns: 1fr; gap: .85rem; margin-bottom: 1.8rem; }
      .explore-grid { grid-template-columns: 1fr; }
      .explore-card { min-height: 0; }
      .reading-routes, .origin-timeline, .territory-figure, .battle-reading, .glossary-grid, .faq-grid { grid-template-columns: 1fr; }
      .timeline-event, .later-war-card .timeline-event { grid-template-columns: 1fr; gap: .08rem; }
      .timeline-prelude { padding: 1rem; }
      .origin-grid { grid-template-columns: 1fr; }
      .origin-card { min-height: 0; }
      .chief-grid, .battle-grid { grid-template-columns: 1fr; }
      .chief-card { min-height: auto; }
      .year-grid, .later-war-grid { grid-template-columns: 1fr; }
      .timeline-tools { grid-template-columns: 1fr; gap: .6rem; }
      .timeline-step { text-align: left; }
      .battle-card { min-height: 0; }
      .battle-feature img { height: 17rem; }
      .chief-portrait { width: 100%; }
      .battle-date { margin-bottom: .7rem; }
      .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; margin: 0 1.2rem; padding: 2.25rem 0 1.7rem; }
      .footer-brand { grid-column: auto; }
      .footer-bottom { flex-direction: column; gap: .45rem; padding: 1rem 1.2rem; }
      .quiz-options { grid-template-columns: 1fr; }
      .quiz-level-grid { grid-template-columns: 1fr; }
      .quiz-level { min-height: auto; }
      .quiz-topline { font-size: .73rem; }
      .chief-reading-note, .newsletter-cta { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      :root { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; }
    }
    .main-nav a[aria-current="page"] { color: var(--red-dark); border-bottom-color: var(--red); }
    .main-nav .nav-instagram[aria-current="page"] { border-color: #b9b9b5; }
    .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; max-width: 1120px; margin: 1.25rem auto -1.4rem; padding: 0 1.5rem; color: #555654; font-size: .83rem; }
    .breadcrumbs a { color: #343434; font-weight: 700; text-underline-offset: .2em; }
    .breadcrumbs [aria-current="page"] { color: #555654; }
    .section.page-section { padding-top: clamp(2.9rem, 5.2vw, 4.4rem); }
    .section-heading h1 { max-width: 21ch; margin: 0 0 .55rem; font-family: var(--display); font-size: clamp(2.25rem, 4.1vw, 3.7rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
    .page-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem clamp(3.5rem, 6vw, 5.5rem); }
    .page-nav-card { display: flex; min-height: 9rem; flex-direction: column; justify-content: center; padding: 1.25rem 1.45rem; border: 1px solid var(--line); background: var(--paper-light); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .page-nav-card:hover, .page-nav-card:focus-visible { border-color: var(--red); box-shadow: .3rem .3rem 0 rgba(32, 32, 32, .07); transform: translateY(-2px); }
    .page-nav-card > span:last-child { margin-top: .28rem; color: var(--muted); font-size: .9rem; }
    .page-nav-card strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
    .page-nav-label { margin-bottom: .35rem; color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .page-nav-next { text-align: right; }
    .legal-main { max-width: 900px; min-height: 62vh; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 5rem; }
    .legal-kicker { margin: 0 0 .65rem; color: var(--red); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
    .legal-main h1 { max-width: 14ch; margin: 0 0 .8rem; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1.06; }
    .legal-intro { max-width: 55rem; margin: 0 0 2.1rem; color: var(--muted); font-size: 1.1rem; }
    .legal-card { margin: 0 0 .9rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--paper-light); }
    .legal-card h2 { margin: 0 0 .55rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; line-height: 1.25; }
    .legal-card p { margin: .45rem 0 0; color: #393a38; }
    .legal-card p:first-of-type { margin-top: 0; }
    .legal-card a { color: var(--red-dark); font-weight: 700; }
    .legal-back-row { margin-top: 1.5rem; }
    .legal-back-row a { display: inline-block; padding: .65rem .9rem; border: 1px solid #777; font-weight: 760; text-decoration: none; }
    .legal-back-row a:hover, .legal-back-row a:focus-visible { border-color: var(--red); background: var(--red); color: #fff; }
    @media (max-width: 650px) {
      .breadcrumbs { margin: .9rem auto -2rem; padding: 0 1.2rem; }
      .section.page-section { padding-top: 3rem; }
      .page-navigation { grid-template-columns: 1fr; gap: .7rem; padding: 0 1.2rem 3rem; }
      .page-nav-card { min-height: 7.5rem; }
      .legal-main { padding: 3rem 1.2rem 3.5rem; }
      .legal-card { padding: 1.1rem 1.15rem; }
    }

/* Cohesive editorial layout */
:root {
  --page-width: 110rem;
  --content-width: 110rem;
}
html {
  scroll-padding-top: 7rem;
}
body {
  font-size: 1rem;
  line-height: 1.65;
}

/* Brand and navigation */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: .55rem max(1rem, calc((100vw - var(--page-width)) / 2));
}
.brand {
  flex: 0 1 21.5rem;
  min-width: 0;
  gap: .65rem;
}
.brand-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.25rem;
}
.brand-signature {
  width: 5.9rem;
  height: 3.55rem;
}
.brand-caption {
  width: 100%;
  max-width: min(22rem, 58vw);
  font-size: .82rem;
  line-height: 1.25;
}
.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(.4rem, .65vw, .75rem);
  width: auto;
  min-width: 0;
}
.main-nav a {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding-inline: .06rem;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav .nav-newsletter {
  min-height: 2.75rem;
  padding-inline: .68rem;
}
.main-nav .nav-instagram {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
}

/* Home introduction */
.hero {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(1.5rem, 3.2vw, 3rem);
  min-height: min(35rem, calc(100vh - 6rem));
  padding-block: clamp(2rem, 3.8vw, 3.3rem);
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
}
.hero h1 {
  max-width: 12ch;
  margin-bottom: .9rem;
  font-size: clamp(2.7rem, 5vw, 4.15rem);
  line-height: 1.02;
}
.hero-intro {
  max-width: 35rem;
  margin-bottom: 1.05rem;
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-actions {
  gap: .7rem;
  margin: 1.2rem 0 1rem;
}
.hero .button {
  min-height: 3.1rem;
  padding: .72rem 1.05rem;
  font-size: .94rem;
}
.hero-note {
  max-width: 35rem;
  font-size: .9rem;
  line-height: 1.55;
}
.hero-visual {
  padding: .6rem;
  box-shadow: .8rem .8rem 0 rgba(32, 32, 32, .07);
}
.hero-visual img {
  height: clamp(19rem, 30vw, 28rem);
}
.hero-visual figcaption {
  font-size: .75rem;
}

/* Shared page rhythm and reading width */
.section {
  padding-block: clamp(3rem, 5vw, 4.8rem);
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
  scroll-margin-top: 7rem;
}
.section.page-section {
  padding-top: clamp(2.8rem, 4.5vw, 4rem);
}
.section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .82fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: 2.2rem;
}
.section-heading h1,
.section-heading h2 {
  max-width: 22ch;
  margin-bottom: .55rem;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
}
.section-heading > p {
  max-width: 36rem;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.6;
}
.legal-main h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
}

/* Balanced card grids */
.explore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.explore-card {
  min-height: 15rem;
  padding: 1.45rem;
}
.explore-card h3,
h3 {
  font-size: 1.45rem;
}
.explore-card p,
.chief-card p,
.battle-card p {
  font-size: 1rem;
  line-height: 1.6;
}
.explore-link,
.source-link {
  font-size: .875rem;
}
.reading-routes {
  gap: 1rem;
  margin-top: 1.4rem;
}
.reading-route {
  padding: 1.25rem 1.35rem;
}
.reading-route p {
  font-size: .96rem;
}
.origin-grid,
.chief-grid,
.battle-grid {
  gap: 1.1rem;
}
.origin-card {
  padding: 1.4rem;
}
.origin-card p {
  font-size: 1rem;
}
.chief-card {
  padding: 1.3rem;
}
.chief-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.chief-portrait figcaption {
  font-size: .75rem;
}
.timeline-event {
  grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: .58rem;
}
.timeline-date {
  font-size: .875rem;
}
.timeline-event p {
  font-size: .96rem;
  line-height: 1.55;
}
.year-grid,
.later-war-grid {
  gap: 1.1rem;
}
.year-group {
  padding: 1.4rem 1.5rem .7rem;
}
.battle-card {
  min-height: 14rem;
  padding: 1.4rem;
}
.battle-card:last-child:nth-child(3n + 1) {
  grid-column: 2;
}
.battle-reading {
  gap: 1rem;
}
.glossary-grid,
.faq-grid {
  gap: .9rem;
}
.glossary details,
.faq details {
  padding: 1.1rem 1.2rem;
}
.quiz-card {
  max-width: 72rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
}
.quiz-level-grid {
  gap: 1rem;
}
.quiz-level {
  min-height: 14rem;
  padding: 1.3rem;
}
.quiz-level-description {
  font-size: .98rem;
}
.quiz-level-count {
  font-size: .85rem;
}
.quiz-note {
  max-width: 72rem;
  margin: 1.1rem auto 0;
  font-size: .875rem;
}
.newsletter-cta {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.25rem;
  text-align: center;
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
  padding-block: clamp(2rem, 4vw, 3rem);
}
.newsletter-cta > div {
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
}
.newsletter-cta h2 {
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.newsletter-cta p {
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.6;
}
.newsletter-cta > .button {
  justify-self: center;
}

/* Align navigation, breadcrumbs and footer with the page grid */
.breadcrumbs,
.page-navigation,
.footer-inner {
  max-width: calc(var(--content-width) + 2.4rem);
}
.breadcrumbs {
  padding-inline: 1.2rem;
}
.page-navigation {
  gap: 1.1rem;
  padding-inline: 1.2rem;
}
.page-nav-card {
  min-height: 9.5rem;
  padding: 1.4rem 1.5rem;
}
.footer-inner {
  width: 100%;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 3rem 1.2rem 2.5rem;
}
.footer-bottom {
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
}

/* Footer: group the publication identity and give each reading path a clear home. */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background: linear-gradient(118deg, #1b1b1a 0%, #242321 100%);
}
.footer::before {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 17%, rgba(239, 139, 146, .22) 17% 100%);
  content: "";
}
.footer-inner {
  box-sizing: border-box;
  grid-template-columns: minmax(14rem, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.65vw, 1.55rem);
  padding: clamp(2.5rem, 4vw, 3.5rem) 1.2rem 2.7rem;
}
.footer-brand {
  max-width: none;
  padding: 1.25rem 1.3rem 1.2rem;
  border: 1px solid #45433f;
  border-top: 2px solid #d94c55;
  background: rgba(255, 255, 255, .035);
}
.footer-home {
  margin-bottom: .65rem;
}
.footer-emblem {
  width: 3.7rem;
  height: 3.7rem;
}
.footer-tagline {
  margin-bottom: .45rem;
  font-size: 1.28rem;
  line-height: 1.2;
}
.footer-description {
  max-width: 28ch;
  font-size: .92rem;
  line-height: 1.55;
}
.footer-follow {
  gap: .7rem;
  margin-top: 1.1rem;
}
.footer .footer-newsletter {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  gap: .45rem;
  padding: .55rem .75rem;
  border: 1px solid #f3eee6;
  background: #f3eee6;
  color: #22211f;
  font-size: .875rem;
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.footer .footer-newsletter span {
  color: #9d3038;
}
.footer .footer-newsletter:hover,
.footer .footer-newsletter:focus-visible {
  transform: translateY(-2px);
  border-color: #ef8b92;
  background: #ef8b92;
  color: #201f1d;
}
.footer .footer-newsletter:hover span,
.footer .footer-newsletter:focus-visible span {
  color: #201f1d;
}
.footer-contact {
  margin: 0;
  color: #e2dfd8 !important;
  font-size: .875rem !important;
  font-weight: 550 !important;
  overflow-wrap: anywhere;
}
.footer-social-row {
  gap: .55rem;
  color: #cfccc5;
  font-size: .875rem;
}
.footer .instagram-link {
  width: 2.15rem;
  height: 2.15rem;
}
.footer .instagram-icon {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform .18s ease;
}
.footer-column {
  min-width: 0;
  padding: .2rem 0 0 1rem;
  border-left: 1px solid #45433f;
}
.footer-heading {
  position: relative;
  width: fit-content;
  margin: 0 0 .9rem;
  padding-bottom: .7rem;
  color: #f2adb2;
  font-size: .875rem;
  line-height: 1.35;
  letter-spacing: .1em;
}
.footer-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.5rem;
  height: 2px;
  background: #d94c55;
  content: "";
}
.footer-links {
  gap: .55rem;
}
.footer-links a {
  position: relative;
  display: inline-block;
  color: #e7e5e0;
  font-size: .9rem;
  font-weight: 560;
  line-height: 1.45;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.footer-links a::after {
  position: absolute;
  right: 0;
  bottom: -.12em;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: #ef8b92;
  content: "";
  transition: transform .18s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: #ffb6bb;
}
.footer-links a:hover {
  transform: translateX(2px);
}
.footer-links a:hover::after,
.footer-links a:focus-visible::after,
.footer-links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.footer-bottom {
  box-sizing: border-box;
  max-width: calc(var(--content-width) + 2.4rem);
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 1.1rem;
  border-color: #45433f;
  color: #cbc8c1;
  font-size: .82rem;
}
.footer-bottom a {
  color: #f1eee8;
  font-weight: 600;
  text-underline-offset: .2em;
}
.footer :focus-visible {
  outline-color: #ffb6bb;
}

@media (max-width: 1180px) {
  .footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .footer-brand {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 4rem minmax(12rem, 1fr) minmax(17rem, 1.2fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 1.2rem;
    max-width: none;
    padding: 1rem 1.2rem;
  }
  .footer-home {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }
  .footer-tagline {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }
  .footer-description {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }
  .footer-follow {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-items: start;
    margin: 0;
  }
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.2rem;
  }
  .footer-brand {
    grid-template-columns: 3.7rem minmax(0, 1fr) minmax(15rem, 1.1fr);
    column-gap: 1rem;
  }
  .footer-column {
    padding-left: .9rem;
  }
}
@media (max-width: 650px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.45rem 1rem;
    padding: 2rem 1.15rem;
  }
  .footer-brand {
    display: block;
    padding: 1.1rem;
  }
  .footer-home {
    margin-bottom: .55rem;
  }
  .footer-follow {
    display: grid;
    justify-items: start;
    gap: .65rem;
    margin-top: 1rem;
  }
  .footer-column {
    padding: .2rem 0 0 .75rem;
  }
  .footer-heading {
    font-size: .875rem;
  }
  .footer-links a {
    font-size: .84rem;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    align-items: flex-start;
    padding-inline: 1.15rem;
    font-size: .76rem;
  }
}
@media (max-width: 400px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer .footer-newsletter,
  .footer-links a,
  .footer-links a::after,
  .footer .instagram-icon {
    transition: none;
  }
}

/* Laws and repression reference page */
.repression-method,
.repression-closing {
  border: 1px solid var(--line);
  background: #fff;
}
.repression-closing h2 {
  margin: .65rem 0 .5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}
.repression-method p,
.repression-closing p {
  color: #414141;
  line-height: 1.6;
}
.repression-method p:last-child,
.repression-closing p:last-child {
  margin-bottom: 0;
}
.repression-method {
  margin: 0 0 2rem;
  border-left: .3rem solid var(--red);
  background: #fff;
}
.repression-method > summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  color: #292929;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}
.repression-method > summary::-webkit-details-marker { display: none; }
.repression-method > summary::after {
  color: var(--red-dark);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}
.repression-method[open] > summary::after { content: "−"; }
.repression-method-body {
  padding: .15rem 1rem 1rem;
  border-top: 1px solid #e1e0db;
}
.repression-method-body p { margin: .85rem 0 0; }
.repression-method a,
.repression-closing a {
  color: var(--red-dark);
  font-weight: 750;
  text-underline-offset: .17em;
}
.repression-controls {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: clamp(.9rem, 2vw, 1.2rem);
  border: 1px solid var(--line);
  background: #fff;
}
.repression-search { display: grid; gap: .4rem; }
.repression-search label {
  color: #292929;
  font-size: .92rem;
  font-weight: 760;
}
.repression-search-field {
  display: flex;
  gap: .55rem;
}
.repression-search input {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: .6rem .8rem;
  border: 1px solid #999891;
  border-radius: 0;
  background: #fff;
  color: #252525;
  font: inherit;
}
.repression-search input::placeholder { color: #64645f; }
.repression-search input:focus-visible { outline-offset: 2px; }
.repression-search-field button,
.repression-control-footer button {
  min-height: 2.9rem;
  padding: .55rem .9rem;
  border: 1px solid #777670;
  background: #f4f3ef;
  color: #252525;
  font: inherit;
  font-size: .9rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}
.repression-search-field button:hover:not(:disabled),
.repression-control-footer button:hover:not(:disabled) { background: #e8e7e2; }
.repression-search-field button:disabled,
.repression-control-footer button:disabled { color: #777670; cursor: default; opacity: .7; }
.repression-search-help {
  margin: 0;
  color: #565653;
  font-size: .875rem;
}
.repression-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.repression-filters button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid #aaa9a3;
  border-radius: 999px;
  background: #fff;
  color: #292929;
  font: inherit;
  font-size: .9rem;
  font-weight: 730;
  cursor: pointer;
}
.repression-filters button[aria-pressed="true"] {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #fff;
}
.repression-filters button:focus-visible {
  outline: 3px solid #d6a443;
  outline-offset: 2px;
}
.repression-control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .75rem;
  border-top: 1px solid #e1e0db;
}
#repression-count {
  flex: 0 0 auto;
  margin: 0;
  color: #565653;
  font-size: .9rem;
  font-weight: 700;
}
.repression-list-heading { margin-bottom: 1rem; }
.repression-year {
  margin: 2rem 0 .65rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #252525;
  font-family: var(--display);
  font-size: 1.65rem;
}
.repression-events {
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}
.repression-record {
  display: block;
  padding: 0;
  border-bottom: 1px solid #d8d7d2;
}
.repression-record[hidden] { display: none; }
.repression-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) minmax(0, 1fr) auto;
  gap: .55rem 1rem;
  align-items: center;
  padding: 1rem .5rem;
  cursor: pointer;
  list-style: none;
}
.repression-disclosure > summary::-webkit-details-marker { display: none; }
.repression-disclosure > summary:hover { background: rgba(255, 255, 255, .62); }
.repression-disclosure > summary:focus-visible { outline-offset: -2px; }
.repression-summary-meta { display: grid; gap: .28rem; }
.repression-record .timeline-date {
  color: var(--red-dark);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.4;
}
.repression-kind {
  color: var(--red-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.4;
  text-transform: uppercase;
}
.repression-entry-title {
  color: #242424;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.repression-summary-action {
  color: var(--red-dark);
  font-size: .88rem;
  font-weight: 760;
  white-space: nowrap;
}
.repression-summary-action::before {
  display: inline-block;
  width: 1rem;
  margin-right: .25rem;
  content: "+";
  font-size: 1.15rem;
  text-align: center;
}
.repression-disclosure[open] .repression-summary-action::before { content: "−"; }
.repression-record-content {
  margin: 0 0 1rem calc(11rem + 1rem);
  padding: .15rem 1rem .2rem;
  border-left: 1px solid #cccac4;
}
.repression-record-content p { margin: .45rem 0; }
.repression-source {
  font-size: .9rem !important;
}
.repression-source a {
  color: #292929;
  font-weight: 750;
  text-underline-offset: .16em;
}
.repression-closing {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
}
.repression-closing h2 { margin-top: 0; }

@media (max-width: 800px) {
  .repression-disclosure > summary { grid-template-columns: minmax(8rem, 10rem) minmax(0, 1fr) auto; }
  .repression-record-content { margin-left: calc(10rem + 1rem); }
}
@media (max-width: 650px) {
  .repression-search-field { flex-direction: column; }
  .repression-search-field button { align-self: flex-start; }
  .repression-control-footer { align-items: flex-start; flex-direction: column; }
  .repression-disclosure > summary { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .8rem; padding-inline: .25rem; }
  .repression-summary-meta { grid-column: 1 / -1; }
  .repression-record-content { margin: 0 0 1rem; padding: .15rem .25rem .2rem .8rem; }
  .repression-method-body { padding: .15rem .85rem .9rem; }
  .repression-closing { padding: 1.15rem; }
}

/* Tablet layout */
@media (max-width: 1200px) and (min-width: 651px) {
  .site-header {
    flex-wrap: wrap;
    gap: .35rem 1rem;
  }
  .brand,
  .main-nav {
    flex: 1 1 100%;
  }
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: .25rem 1rem;
  }
}

@media (max-width: 900px) and (min-width: 651px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: auto;
    gap: 1.5rem;
    padding-block: 2rem;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  }
  .hero-visual img {
    height: clamp(17rem, 34vw, 22rem);
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-bottom: 1.6rem;
  }
  .explore-grid,
  .chief-grid,
  .battle-grid,
  .origin-grid,
  .later-war-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-routes,
  .battle-reading,
  .quiz-level-grid,
  .glossary-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chief-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(50% - .55rem));
  }
  .battle-card:last-child {
    grid-column: auto;
  }
  .timeline-event {
    grid-template-columns: minmax(8rem, 9rem) minmax(0, 1fr);
  }
  .battle-feature {
    grid-template-columns: 1fr;
  }
  .battle-feature-copy {
    padding: .5rem 1rem 1.2rem;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Phone layout */
@media (max-width: 650px) {
  html {
    scroll-padding-top: 1rem;
  }
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .4rem 1rem .55rem;
  }
  .brand {
    flex: 0 0 100%;
    gap: .55rem;
  }
  .brand-mark {
    flex-basis: 2.4rem;
    width: 2.4rem;
    height: 2rem;
  }
  .brand-signature {
    width: 5.2rem;
    height: 3.1rem;
  }
  .brand-caption {
    max-width: min(19rem, calc(100vw - 5rem));
    font-size: .78rem;
  }
  .main-nav {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: .7rem;
    overflow-x: auto;
    padding: .1rem 0 .25rem;
    scrollbar-width: thin;
  }
  .main-nav a {
    flex: 0 0 auto;
    min-height: 2.75rem;
    font-size: .875rem;
  }
  .main-nav .nav-instagram {
    width: 2.75rem;
    height: 2.75rem;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.15rem;
    padding: 1.8rem 1.15rem 1.35rem;
  }
  .hero h1 {
    max-width: 11ch;
    margin-bottom: .7rem;
    font-size: clamp(2.45rem, 9vw, 3.4rem);
  }
  .hero-intro {
    font-size: 1rem;
  }
  .hero-note {
    font-size: .875rem;
  }
  .hero-visual img {
    height: clamp(14rem, 62vw, 20rem);
  }
  .section {
    padding: 3rem 1.15rem;
    scroll-margin-top: 1rem;
  }
  .section.page-section {
    padding-top: 2.8rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: .7rem;
    margin-bottom: 1.45rem;
  }
  .section-heading h1,
  .section-heading h2 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
  .explore-grid,
  .reading-routes,
  .origin-grid,
  .origin-timeline,
  .territory-figure,
  .chief-grid,
  .battle-grid,
  .battle-reading,
  .year-grid,
  .later-war-grid,
  .glossary-grid,
  .faq-grid,
  .quiz-level-grid,
  .quiz-options {
    grid-template-columns: 1fr;
  }
  .explore-card {
    min-height: 0;
    padding: 1.2rem;
  }
  .chief-card:last-child:nth-child(3n + 1),
  .chief-card:last-child:nth-child(2n + 1),
  .battle-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
  .timeline-event,
  .later-war-card .timeline-event {
    grid-template-columns: 1fr;
    gap: .12rem;
  }
  .timeline-tools {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .timeline-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-tab {
    min-height: 3.5rem;
    border-bottom: 1px solid #c8c8c4;
  }
  .timeline-tab:nth-child(2n) {
    border-right: 0;
  }
  .timeline-tab:nth-child(n + 3) {
    border-bottom: 0;
  }
  .timeline-step {
    text-align: left;
  }
  .battle-feature {
    grid-template-columns: 1fr;
  }
  .battle-feature img {
    height: 17rem;
  }
  .battle-feature-copy {
    padding: .8rem .6rem 1rem;
  }
  .quiz-card {
    max-width: none;
    padding: 1.2rem;
  }
  .newsletter-cta {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.6rem 1.15rem;
  }
  .page-navigation {
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: 0 1.15rem 3rem;
  }
  .breadcrumbs {
    margin: .9rem auto -1rem;
    padding: 0 1.15rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding: 2.25rem 1.15rem 1.7rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    padding: 1rem 1.15rem;
  }
  .legal-main {
    padding: 3rem 1.15rem 3.5rem;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    gap: .55rem;
  }
  .hero-actions .button {
    flex: 1 1 100%;
  }
}


/* Artwork-led battle cards */
.battle-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.battle-card-art {
  margin: 0;
  background: #f5f3ee;
}
.battle-card-art img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #f5f3ee;
  filter: grayscale(100%) contrast(1.04);
}
.battle-card-art figcaption {
  min-height: 3.6rem;
  padding: .55rem .9rem .7rem;
  color: #252525;
  font-size: .76rem;
  line-height: 1.45;
}
.battle-card-art figcaption a {
  color: #a51d2d;
  text-underline-offset: .16em;
}
.battle-card-body {
  flex: 1;
  padding: 1rem 1.3rem 1.35rem;
}
.battle-card-body .battle-date {
  margin-bottom: .5rem;
}
.battle-card-body h3 {
  margin-bottom: .55rem;
}
.battle-card-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Organisation des armées */
.armies {
  background: var(--paper-alt);
}
.army-key {
  margin: 0 0 2rem;
  padding: 1.15rem 1.35rem 1.35rem;
  border-top: 3px solid var(--red);
  background: #191919;
  color: #fff;
}
.army-key-title {
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
}
.army-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.army-key-grid article {
  padding: .2rem 1rem .15rem 0;
  border-right: 1px solid #505050;
}
.army-key-grid article:last-child {
  border-right: 0;
}
.army-key-grid span,
.army-group-count,
.army-command-grid article > span,
.army-reading-grid article > span {
  display: block;
  margin-bottom: .35rem;
  color: #f08b91;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.army-key-grid p {
  margin: 0;
  color: #e0e0dd;
  font-size: .94rem;
  line-height: 1.55;
}
.army-period-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 1.9rem;
  padding-bottom: .3rem;
}
.army-period-nav a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  padding: .45rem .8rem;
  border: 1px solid #bdb8af;
  background: var(--paper-light);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.army-period-nav a:hover,
.army-period-nav a:focus-visible {
  border-color: var(--red);
  color: var(--red-dark);
}
.army-timeline {
  display: grid;
  gap: 1.1rem;
}
.army-period {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1rem;
  scroll-margin-top: 8rem;
}
.army-period::before {
  position: absolute;
  top: 3.2rem;
  bottom: -1.2rem;
  left: 1.55rem;
  width: 1px;
  background: #bdb8af;
  content: "";
}
.army-period:last-child::before {
  display: none;
}
.army-period-marker {
  position: relative;
  z-index: 1;
  display: flex;
  width: 3.1rem;
  height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  background: var(--paper);
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
}
.army-period-body {
  min-width: 0;
  padding: 1.35rem 1.45rem 1.3rem;
  border: 1px solid #c8c3bb;
  background: var(--paper-light);
}
.army-period-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, .95fr);
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid #dedad3;
}
.army-period-date {
  margin: 0 0 .25rem;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.army-period-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.35vw, 2.05rem);
  line-height: 1.15;
}
.army-period-heading > p {
  margin: 0;
  color: #4d4b47;
  font-size: .97rem;
  line-height: 1.55;
}
.army-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.army-group {
  min-width: 0;
  padding: 1.05rem 1rem 1rem;
  border: 1px solid #d6d1c9;
  background: #fff;
}
.army-group-count {
  margin-bottom: .45rem;
  color: var(--red-dark);
  font-size: .68rem;
  letter-spacing: .055em;
}
.army-group h3 {
  margin: 0 0 .45rem;
  font-size: 1.25rem;
}
.army-group > p {
  margin: 0 0 .65rem;
  color: #4d4b47;
  font-size: .9rem;
  line-height: 1.5;
}
.army-group-note {
  margin: .65rem 0 0 !important;
  padding-top: .65rem;
  border-top: 1px solid #e4e0d9;
}
.army-division-list {
  margin: 0;
}
.army-division-list > div {
  display: grid;
  grid-template-columns: minmax(6.5rem, .9fr) minmax(0, 1fr);
  gap: .55rem;
  padding: .34rem 0;
  border-top: 1px solid #e8e5df;
  font-size: .84rem;
  line-height: 1.4;
}
.army-division-list dt {
  color: #393733;
  font-weight: 750;
}
.army-division-list dd {
  margin: 0;
  color: #56534e;
}
.army-period-note {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  border-left: 2px solid var(--red);
  background: #f3f0eb;
  color: #484641;
  font-size: .92rem;
  line-height: 1.55;
}
.army-date-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.army-date-list li {
  display: grid;
  grid-template-columns: minmax(7rem, .27fr) minmax(0, 1fr);
  gap: .85rem;
  padding: .58rem 0;
  border-bottom: 1px solid #e2ded7;
  font-size: .94rem;
  line-height: 1.5;
}
.army-date-list time {
  color: var(--red-dark);
  font-weight: 800;
}
.army-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .9rem;
}
.army-command-grid article {
  padding: .8rem .95rem;
  border: 1px solid #d6d1c9;
  background: #fff;
}
.army-command-grid article > span {
  margin-bottom: .2rem;
  color: var(--red-dark);
  font-size: .67rem;
  letter-spacing: .055em;
}
.army-command-grid article > strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.17rem;
  line-height: 1.25;
}
.army-command-grid article > p {
  margin: .15rem 0 0;
  color: #56534e;
  font-size: .9rem;
}
.army-command-grid-five article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.army-offices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}
.army-offices span {
  padding: .65rem .75rem;
  border-top: 2px solid var(--red);
  background: #f3f0eb;
  color: #4d4b47;
  font-size: .88rem;
  line-height: 1.45;
}
.army-offices strong {
  color: var(--ink);
}
.army-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr);
  gap: .8rem;
}
.army-split-panel {
  padding: 1.1rem 1.15rem;
  border: 1px solid #d6d1c9;
  background: #fff;
}
.army-split-south {
  border-top: 3px solid var(--red);
  background: #f3f0eb;
}
.army-split-label {
  margin: 0 0 .4rem;
  color: var(--red-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.army-split-panel h3 {
  margin-bottom: .45rem;
  font-size: 1.3rem;
}
.army-split-panel > p:not(.army-split-label) {
  color: #4d4b47;
  font-size: .93rem;
  line-height: 1.55;
}
.army-small-note {
  margin: .55rem 0 0;
  color: #5a5752;
  font-size: .78rem !important;
}
.army-inline-link {
  color: var(--red-dark);
  font-size: .88rem;
  font-weight: 750;
  text-underline-offset: .2em;
}
.army-command-grid-four article:last-child:nth-child(odd) {
  grid-column: auto;
}
.army-reorganization {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(12rem, .72fr);
  gap: .75rem;
  align-items: stretch;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #d6d1c9;
  background: #f3f0eb;
}
.army-reorganization-heading {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  justify-content: center;
  padding: .45rem .75rem .45rem .1rem;
  border-right: 1px solid #d6d1c9;
}
.army-reorganization-heading p {
  margin: 0;
  color: #4d4b47;
  font-size: .9rem;
  line-height: 1.48;
}
.army-date-stamp {
  color: var(--red-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.army-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  align-items: center;
  text-align: center;
}
.army-counts div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.army-counts strong {
  color: var(--red);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}
.army-counts span {
  color: #4d4b47;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
}
.army-reading {
  margin-top: 2.2rem;
  padding: 1.4rem 1.5rem 1.25rem;
  border-top: 3px solid var(--red);
  background: #191919;
  color: #fff;
}
.army-reading .section-kicker {
  margin: 0 0 .35rem;
  color: #f08b91;
}
.army-reading h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.army-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.army-reading-grid article {
  padding: .85rem .9rem;
  border: 1px solid #444;
  background: #222;
}
.army-reading-grid article > span {
  color: #f08b91;
}
.army-reading-grid p {
  margin: 0;
  color: #e0e0dd;
  font-size: .9rem;
  line-height: 1.5;
}
.army-source-note {
  margin: .95rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid #444;
  color: #d6d6d2;
  font-size: .82rem;
  line-height: 1.55;
}
.army-source-note a {
  display: inline-block;
  margin-left: .3rem;
  color: #f2a2a6;
  font-weight: 750;
  text-underline-offset: .18em;
}

@media (max-width: 900px) and (min-width: 651px) {
  .army-groups-grid,
  .army-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .army-group:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .army-period-heading {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .army-split-grid {
    grid-template-columns: 1fr;
  }
  .army-reorganization {
    grid-template-columns: 1fr 1fr;
  }
  .army-counts {
    grid-column: 1 / -1;
    padding-top: .7rem;
    border-top: 1px solid #d6d1c9;
  }
}

@media (max-width: 650px) {
  .army-key-grid,
  .army-groups-grid,
  .army-command-grid,
  .army-offices,
  .army-reading-grid,
  .army-split-grid,
  .army-reorganization {
    grid-template-columns: 1fr;
  }
  .army-key-grid article {
    padding: .55rem 0;
    border-right: 0;
    border-bottom: 1px solid #505050;
  }
  .army-key-grid article:last-child {
    border-bottom: 0;
  }
  .army-period-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -1.15rem;
    padding-right: 1.15rem;
    scrollbar-width: thin;
  }
  .army-period {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: .65rem;
  }
  .army-period::before {
    top: 2.4rem;
    left: 1.1rem;
  }
  .army-period-marker {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
  .army-period-body {
    padding: 1rem .9rem;
  }
  .army-period-heading {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .army-date-list li {
    grid-template-columns: 1fr;
    gap: .12rem;
  }
  .army-command-grid-five article:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .army-reorganization-heading {
    padding: .5rem 0 .8rem;
    border-right: 0;
    border-bottom: 1px solid #d6d1c9;
  }
  .army-counts {
    padding-top: .25rem;
  }
  .army-reading {
    padding: 1.15rem 1rem;
  }
}

@media (min-width: 901px) {
  .explore-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (max-width: 900px) and (min-width: 651px) {
  .explore-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(50% - .55rem));
  }
}

/* Lecture guidée et respiration de la page Les armées */
.armies .section-heading {
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 3rem;
}
.armies .section-heading > p {
  max-width: 39rem;
  font-size: 1.08rem;
  line-height: 1.75;
}
.army-key {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.7rem 1.7rem;
}
.army-key-title {
  margin-bottom: 1.1rem;
  font-size: 1.45rem;
}
.army-key-grid {
  gap: 1.35rem;
}
.army-key-grid article {
  padding-right: 1.35rem;
}
.army-key-grid p {
  font-size: .98rem;
  line-height: 1.7;
}
.army-period-nav {
  gap: .65rem;
  margin-bottom: .9rem;
}
.army-period-nav a {
  min-height: 2.9rem;
  padding: .55rem 1rem;
  font-size: .92rem;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.army-period-nav a[aria-current="step"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.army-period-nav a[aria-current="step"]:hover,
.army-period-nav a[aria-current="step"]:focus-visible {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #fff;
}
.army-controls {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem .9rem;
  border: 1px solid #c8c3bb;
  background: var(--paper-light);
}
.army-controls[hidden] {
  display: none;
}
.army-controls-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.army-control-button,
.army-show-all {
  min-height: 2.8rem;
  border: 1px solid #bdb8af;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.army-control-button {
  padding: .55rem .85rem;
}
.army-control-previous {
  justify-self: start;
}
.army-control-next {
  justify-self: end;
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.army-control-button:hover:not(:disabled),
.army-show-all:hover {
  border-color: var(--red);
  color: var(--red-dark);
}
.army-control-next:hover:not(:disabled) {
  border-color: var(--red-dark);
  background: var(--red-dark);
  color: #fff;
}
.army-control-button:disabled {
  color: #68645e;
  cursor: not-allowed;
}
.army-controls-status {
  margin: 0;
  color: #393733;
  font-size: .9rem;
  font-weight: 750;
  text-align: center;
}
.army-progress-track {
  height: .25rem;
  overflow: hidden;
  margin: .8rem 0 .35rem;
  background: #dedad3;
}
.army-progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--red);
  transition: width .25s ease;
}
.army-show-all {
  display: block;
  min-height: auto;
  margin: .5rem auto 0;
  padding: .25rem .4rem;
  border-color: transparent;
  color: var(--red-dark);
  font-size: .86rem;
  text-decoration: underline;
  text-decoration-color: #b7a7a3;
  text-underline-offset: .2em;
}
.army-controls button:focus-visible,
.army-period-nav a:focus-visible,
.army-details summary:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}
.army-timeline {
  gap: 1.8rem;
}
.army-period {
  grid-template-columns: 3.3rem minmax(0, 1fr);
  gap: 1.3rem;
  scroll-margin-top: 7.5rem;
}
.army-period::before {
  bottom: -1.9rem;
}
.army-period-marker {
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.25rem;
}
.army-period-body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.army-period-heading {
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, .95fr);
  gap: clamp(1.5rem, 3vw, 2.7rem);
  align-items: center;
  margin-bottom: 1.7rem;
  padding-bottom: 1.35rem;
}
.army-period-date {
  margin-bottom: .55rem;
  font-size: .82rem;
}
.army-period-heading h2 {
  max-width: 23ch;
  font-size: clamp(1.8rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}
.army-period-heading > p {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.75;
}
.army-groups-grid {
  gap: 1.1rem;
}
.army-group {
  padding: 1.35rem 1.3rem 1.25rem;
}
.army-group-count {
  margin-bottom: .6rem;
  font-size: .72rem;
  line-height: 1.5;
}
.army-group h3 {
  margin-bottom: .65rem;
  font-size: 1.35rem;
  line-height: 1.3;
}
.army-group > p {
  margin-bottom: .9rem;
  font-size: .96rem;
  line-height: 1.7;
}
.army-details {
  margin-top: .55rem;
}
.army-details summary {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .05rem;
  border-top: 1px solid #e0dcd5;
  color: var(--red-dark);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.army-details summary::-webkit-details-marker {
  display: none;
}
.army-details summary::after {
  flex: 0 0 auto;
  color: var(--red);
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}
.army-details[open] summary::after {
  content: "−";
}
.army-division-list {
  margin-top: .2rem;
}
.army-division-list > div {
  grid-template-columns: minmax(7rem, .9fr) minmax(0, 1fr);
  gap: .7rem;
  padding: .55rem 0;
  font-size: .89rem;
  line-height: 1.55;
}
.army-group-note {
  margin-top: .7rem !important;
  padding-top: .7rem;
  line-height: 1.6 !important;
}
.army-period-note {
  margin-top: 1.45rem;
  padding: 1rem 1.15rem;
  font-size: .96rem;
  line-height: 1.75;
}
.army-date-list {
  margin-bottom: 1.3rem;
}
.army-date-list li {
  gap: 1rem;
  padding: .75rem 0;
  font-size: .98rem;
  line-height: 1.7;
}
.army-command-grid {
  gap: .85rem;
  margin-top: 1.2rem;
}
.army-command-grid article {
  padding: 1rem 1.1rem;
}
.army-command-grid article > p {
  margin-top: .3rem;
  line-height: 1.55;
}
.army-offices {
  gap: .75rem;
  margin-top: 1rem;
}
.army-offices span {
  padding: .85rem .95rem;
  line-height: 1.6;
}
.army-split-grid {
  gap: 1.1rem;
}
.army-split-panel {
  padding: 1.4rem 1.5rem;
}
.army-split-panel > p:not(.army-split-label) {
  font-size: .98rem;
  line-height: 1.75;
}
.army-reorganization {
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 1.25rem;
}
.army-reading {
  margin-top: 3rem;
  padding: 1.8rem 1.9rem 1.5rem;
}
.army-reading-grid {
  gap: 1rem;
}
.army-reading-grid article {
  padding: 1.05rem 1.1rem;
}
.army-reading-grid p {
  font-size: .96rem;
  line-height: 1.7;
}
.army-source-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: .88rem;
  line-height: 1.7;
}
.army-period[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .army-period-heading {
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .army-period-heading h2 {
    max-width: none;
  }
}

@media (max-width: 650px) {
  .armies .section-heading {
    margin-bottom: 2rem;
  }
  .armies .section-heading > p {
    font-size: 1rem;
  }
  .army-key {
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.1rem;
  }
  .army-period-nav {
    margin-right: -1.15rem;
    padding-right: 1.15rem;
  }
  .army-period-nav a {
    min-height: 2.7rem;
  }
  .army-controls {
    padding: .8rem .75rem .65rem;
  }
  .army-controls-row {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }
  .army-controls-status {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: .1rem 0 .2rem;
    font-size: .84rem;
  }
  .army-control-button {
    width: 100%;
    min-height: 2.75rem;
    padding: .45rem .4rem;
    font-size: .78rem;
  }
  .army-period {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: .65rem;
  }
  .army-period::before {
    bottom: -1.9rem;
  }
  .army-period-marker {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
  .army-period-body {
    padding: 1.25rem 1rem;
  }
  .army-period-heading {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
  }
  .army-group {
    padding: 1.15rem 1rem;
  }
  .army-division-list > div {
    grid-template-columns: minmax(6rem, .85fr) minmax(0, 1fr);
    gap: .55rem;
  }
  .army-reading {
    padding: 1.3rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .army-period-nav a,
  .army-control-button,
  .army-show-all,
  .army-progress-track span {
    scroll-behavior: auto;
    transition: none;
  }
}

/* A tighter, chronological reading experience for the illustrated battle index */
.battles {
  padding-block: clamp(2.8rem, 4.5vw, 4.6rem);
}
.battles .section-heading {
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
}
.battles .section-heading h1 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}
.battles .section-heading > p {
  max-width: 40rem;
  color: #dededb;
  font-size: 1.02rem;
  line-height: 1.6;
}
.battle-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: .85rem 1.05rem;
  border-left: 3px solid #f08b91;
  background: #222;
}
.battle-overview p {
  display: grid;
  gap: .08rem;
  margin: 0;
}
.battle-overview strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.08rem;
}
.battle-overview p span {
  color: #d4d4d1;
  font-size: .88rem;
  line-height: 1.45;
}
.battle-overview > a {
  flex: 0 0 auto;
  color: #fff;
  font-size: .84rem;
  font-weight: 750;
  text-underline-offset: .22em;
}
.battle-overview > a span {
  color: #f08b91;
}
.battle-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .15rem 0 .3rem;
}
.battle-filter {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: .55rem;
  padding: .43rem .72rem;
  border: 1px solid #565654;
  border-radius: 2px;
  background: #191919;
  color: #eee;
  font: 700 .8rem/1.25 var(--sans);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.battle-filter span {
  display: inline-grid;
  min-width: 1.3rem;
  min-height: 1.3rem;
  place-items: center;
  border-radius: 50%;
  background: #343432;
  color: #e0e0dd;
  font-size: .69rem;
}
.battle-filter:hover,
.battle-filter:focus-visible {
  border-color: #f08b91;
  outline-offset: 3px;
}
.battle-filter[aria-pressed="true"] {
  border-color: #f08b91;
  background: #a61f2b;
  color: #fff;
}
.battle-filter[aria-pressed="true"] span {
  background: rgba(0, 0, 0, .23);
  color: #fff;
}
.battle-results {
  min-height: 1.4rem;
  margin: .35rem 0 .7rem;
  color: #cccac6;
  font-size: .78rem;
}
.battle-filters[hidden],
.battle-results[hidden],
.battle-empty[hidden] {
  display: none;
}
.battle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  align-items: stretch;
}
.battle-card[hidden] {
  display: none;
}
.battle-card {
  min-width: 0;
  border-color: #41413f;
  background: #222;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.battle-card:hover,
.battle-card:focus-within {
  border-color: #8d5559;
  box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .16);
  transform: translateY(-2px);
}
.battle-card-art {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #282826;
}
.battle-art-open {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #33322f;
  color: #fff;
  text-decoration: none;
}
.battle-art-open img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: #33322f;
  filter: grayscale(100%) contrast(1.04);
  transition: filter .22s ease, transform .35s ease;
}
.battle-art-open[data-artwork-shape="portrait"] img {
  object-fit: contain;
  padding: .15rem 0;
  background: #292927;
}
.battle-card:hover .battle-art-open img,
.battle-art-open:focus-visible img {
  filter: grayscale(45%) contrast(1.03);
  transform: scale(1.035);
}
.battle-art-open:focus-visible {
  outline: 3px solid #f08b91;
  outline-offset: -3px;
}
.battle-art-zoom {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .48rem;
  background: rgba(20, 20, 19, .86);
  color: #fff;
  font-size: .68rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(.2rem);
  transition: opacity .18s ease, transform .18s ease;
}
.battle-art-zoom > span {
  color: #f08b91;
  font-size: .95rem;
  line-height: 1;
}
.battle-art-open:hover .battle-art-zoom,
.battle-art-open:focus-visible .battle-art-zoom {
  opacity: 1;
  transform: translateY(0);
}
.battle-card-art figcaption {
  display: -webkit-box;
  min-height: 2.65rem;
  overflow: hidden;
  padding: .4rem .65rem .48rem;
  background: #282826;
  color: #c9c9c6;
  font-size: .7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.battle-card-art figcaption a {
  color: #f2a2a6;
  font-weight: 700;
}
.battle-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: .8rem .9rem .95rem;
}
.battle-card-body .battle-date {
  margin-bottom: .38rem;
  color: #f2a2a6;
  font-size: .69rem;
  letter-spacing: .08em;
}
.battle-card-body h3 {
  margin-bottom: .36rem;
  font-size: 1.22rem;
  line-height: 1.18;
}
.battle-card-body p {
  margin: 0;
  color: #dededb;
  font-size: .85rem;
  line-height: 1.48;
}
.battle-card-source {
  margin-top: .5rem;
  color: #f2a2a6;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.35;
  text-underline-offset: .15em;
}
.battle-empty {
  margin: 1rem 0;
  color: #e0e0dd;
}
.battle-method {
  display: grid;
  grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.2fr);
  align-items: start;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  row-gap: .75rem;
  margin-top: clamp(2.3rem, 4vw, 3.2rem);
  padding: 1.35rem 1.4rem 1.15rem;
  border-top: 2px solid #a61f2b;
  background: #222;
}
.battle-method .section-kicker {
  margin-bottom: .35rem;
  font-size: .7rem;
}
.battle-method h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}
.battle-method > p {
  max-width: 52rem;
  margin: .35rem 0 0;
  color: #dededb;
  font-size: .9rem;
  line-height: 1.55;
}
.battle-related {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: .45rem 1.35rem;
  padding-top: .7rem;
  border-top: 1px solid #444;
}
.battle-related a {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-underline-offset: .2em;
}
.battle-related a span {
  color: #f08b91;
}
.battle-lightbox {
  width: min(94vw, 76rem);
  max-width: 94vw;
  max-height: 94svh;
  padding: .8rem;
  overflow: auto;
  border: 1px solid #5b5b58;
  background: #191919;
  color: #fff;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .5);
}
.battle-lightbox::backdrop {
  background: rgba(10, 10, 10, .88);
  backdrop-filter: blur(3px);
}
.battle-lightbox-head,
.battle-lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.battle-lightbox-head h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.battle-lightbox-close,
.battle-lightbox-step {
  min-height: 2.5rem;
  padding: .45rem .7rem;
  border: 1px solid #666;
  background: #252525;
  color: #fff;
  font: 700 .8rem var(--sans);
  cursor: pointer;
}
.battle-lightbox-close:hover,
.battle-lightbox-step:hover:not(:disabled),
.battle-lightbox-close:focus-visible,
.battle-lightbox-step:focus-visible {
  border-color: #f08b91;
  background: #34302f;
}
.battle-lightbox-close span {
  margin-left: .3rem;
  color: #f08b91;
  font-size: 1.2rem;
  vertical-align: -.06em;
}
.battle-lightbox figure {
  margin: .7rem 0;
  padding: .4rem;
  background: #262624;
}
.battle-lightbox-image {
  display: block;
  width: 100%;
  height: min(70svh, 52rem);
  object-fit: contain;
}
.battle-lightbox-caption {
  padding: .45rem .3rem .15rem;
  color: #dededb;
  font-size: .8rem;
  line-height: 1.4;
}
.battle-lightbox-caption a {
  color: #f2a2a6;
}
.battle-lightbox-foot {
  justify-content: center;
}
.battle-lightbox-step:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.battle-lightbox-count {
  min-width: 5rem;
  margin: 0;
  color: #cccac6;
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .battle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) and (min-width: 651px) {
  .battle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .battles .section-heading {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .battle-method {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}
@media (max-width: 650px) {
  .battles {
    padding: 2.5rem 1rem 3.25rem;
  }
  .battles .section-heading {
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-bottom: 1.1rem;
  }
  .battles .section-heading h1 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }
  .battles .section-heading > p {
    font-size: .94rem;
  }
  .battle-overview {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
    padding: .75rem .85rem;
  }
  .battle-filters {
    gap: .38rem;
  }
  .battle-filter {
    min-height: 2.35rem;
    padding: .35rem .55rem;
    font-size: .73rem;
  }
  .battle-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .battle-card {
    display: grid;
    grid-template-columns: minmax(7rem, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
  }
  .battle-card-art {
    min-width: 0;
  }
  .battle-art-open {
    flex: 1;
    aspect-ratio: auto;
    min-height: 8.75rem;
  }
  .battle-art-open img {
    position: absolute;
    inset: 0;
  }
  .battle-art-zoom {
    right: .3rem;
    bottom: .3rem;
    padding: .2rem .32rem;
    font-size: 0;
    opacity: 1;
    transform: none;
  }
  .battle-art-zoom > span {
    font-size: .9rem;
  }
  .battle-card-art figcaption {
    display: -webkit-box;
    min-height: 0;
    padding: .28rem .35rem .35rem;
    font-size: .59rem;
    line-height: 1.25;
    -webkit-line-clamp: 3;
  }
  .battle-card-body {
    padding: .75rem .8rem;
  }
  .battle-card-body h3 {
    font-size: 1.1rem;
  }
  .battle-card-body p {
    font-size: .81rem;
    line-height: 1.43;
  }
  .battle-card-source {
    font-size: .68rem;
  }
  .battle-method {
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-top: 2rem;
    padding: 1.05rem;
  }
  .battle-related {
    grid-column: auto;
    flex-direction: column;
    gap: .5rem;
  }
  .battle-lightbox {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    padding: .45rem;
  }
  .battle-lightbox-head h2 {
    font-size: .95rem;
  }
  .battle-lightbox-image {
    height: min(62svh, 36rem);
  }
  .battle-lightbox-foot {
    gap: .35rem;
  }
  .battle-lightbox-step,
  .battle-lightbox-close {
    min-height: 2.3rem;
    padding: .35rem .45rem;
    font-size: .7rem;
  }
}
@media (max-width: 390px) {
  .battle-card {
    grid-template-columns: minmax(6rem, .75fr) minmax(0, 1.25fr);
  }
  .battle-card-body {
    padding: .62rem .65rem;
  }
  .battle-card-body h3 {
    font-size: 1rem;
  }
  .battle-lightbox-head {
    align-items: flex-start;
  }
  .battle-lightbox-close {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .battle-filter,
  .battle-card,
  .battle-art-open img,
  .battle-art-zoom {
    transition: none;
  }
}

/* Bibliothèque */
.library-page {
  max-width: none;
}
.library-page .library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.7rem, 4vw, 3.6rem);
  border-top: 4px solid var(--red);
  background: var(--paper-light);
}
.library-hero-copy .section-kicker,
.library-section-heading .section-kicker {
  margin-bottom: .5rem;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.library-hero h1 {
  max-width: 14ch;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}
.library-hero-lede {
  max-width: 57rem;
  margin: 0;
  color: #454440;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}
.library-hero-aside {
  padding: 1.4rem 1.55rem;
  border-left: 3px solid var(--red);
  background: #20201f;
  color: #f7f5f0;
}
.library-hero-aside p {
  margin: 0 0 .9rem;
  color: #e2dfd8;
  line-height: 1.5;
}
.library-hero-aside p:last-child {
  margin-bottom: 0;
}
.library-hero-aside .library-aside-label {
  margin-bottom: .65rem;
  color: #ef9aa0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.library-hero-aside strong {
  color: #fff;
  font-size: 1.08rem;
}
.library-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.35rem;
  padding: .9rem 0;
  border-block: 1px solid var(--line);
}
.library-toc a {
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--red-dark);
  font-size: .87rem;
  font-weight: 720;
  text-decoration: none;
}
.library-toc a:hover,
.library-toc a:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.library-controls {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) minmax(12rem, .75fr) auto;
  gap: .8rem 1rem;
  align-items: end;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
}
.library-search-field,
.library-filter-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .3rem;
}
.library-controls label {
  color: #46443f;
  font-size: .8rem;
  font-weight: 780;
}
.library-controls input,
.library-controls select {
  width: 100%;
  min-height: 2.85rem;
  padding: .55rem .7rem;
  border: 1px solid #aaa49a;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.library-controls input:focus-visible,
.library-controls select:focus-visible,
.library-clear:focus-visible {
  outline: 3px solid rgba(166, 31, 43, .3);
  outline-offset: 2px;
  border-color: var(--red);
}
.library-clear {
  min-height: 2.85rem;
  padding: .55rem .85rem;
  border: 1px solid #76716a;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 740;
  cursor: pointer;
}
.library-clear:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.library-result-count {
  grid-column: 1 / -1;
  margin: -.2rem 0 0;
  color: var(--muted);
  font-size: .84rem;
}
.library-editorial-note {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, .85fr);
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--red);
  background: var(--paper-alt);
}
.library-editorial-note p {
  margin: 0;
  color: #44423e;
  font-size: .92rem;
  line-height: 1.6;
}
.library-reading-path {
  margin-top: clamp(2.7rem, 5vw, 4.2rem);
}
.library-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem 3rem;
  margin-bottom: 1.15rem;
}
.library-section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  text-wrap: balance;
}
.library-section-heading > p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}
.library-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.library-path-card {
  display: flex;
  min-height: 9.5rem;
  flex-direction: column;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: var(--paper-light);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.library-path-card:hover,
.library-path-card:focus-visible {
  border-color: var(--red);
  box-shadow: .3rem .3rem 0 rgba(32, 32, 32, .07);
  transform: translateY(-2px);
}
.library-path-card span {
  margin-bottom: .55rem;
  color: var(--red-dark);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.library-path-card strong {
  margin-bottom: .35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
}
.library-path-card small {
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.45;
}
.library-section {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  scroll-margin-top: 8rem;
}
.library-section[hidden] {
  display: none !important;
}
.library-section-heading > div {
  flex: 0 0 auto;
}
.library-section-heading .section-kicker {
  margin: 0 0 .4rem;
}
.library-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.library-book {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: var(--paper-light);
  box-shadow: 0 .2rem .7rem rgba(26, 24, 21, .025);
}
.library-book[hidden],
.library-text-card[hidden] {
  display: none !important;
}
.library-book-feature {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  align-items: start;
  gap: .85rem;
  min-height: 10.4rem;
}
.library-cover-link {
  display: block;
  width: 5.6rem;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid #d2ccc2;
  background: #e8e4dc;
  box-shadow: 0 .25rem .65rem rgba(24, 24, 24, .13);
}
.library-cover-link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.library-cover-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.library-book-feature.has-no-cover {
  grid-template-columns: minmax(0, 1fr);
}
.library-book-feature.has-no-cover .library-cover-link {
  display: none;
}
.library-book-intro {
  min-width: 0;
}
.library-tag {
  margin: 0 0 .4rem;
  color: var(--red-dark);
  font-size: .68rem;
  font-weight: 830;
  letter-spacing: .065em;
  line-height: 1.3;
  text-transform: uppercase;
}
.library-book h3 {
  margin: 0 0 .35rem;
  font-family: var(--serif);
  font-size: clamp(1.07rem, 1.15vw, 1.3rem);
  font-weight: 700;
  line-height: 1.16;
  text-wrap: pretty;
}
.library-byline {
  margin: 0 0 .4rem;
  color: #454440;
  font-size: .82rem;
  font-weight: 740;
  line-height: 1.35;
}
.library-summary {
  margin: 0;
  color: #4b4944;
  font-size: .84rem;
  line-height: 1.48;
}
.library-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .8rem;
  margin: .85rem 0 .15rem;
  padding: .7rem 0 .55rem;
  border-top: 1px solid var(--line);
}
.library-meta > div {
  min-width: 0;
}
.library-meta dt {
  margin-bottom: .08rem;
  color: #5e5a53;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.3;
  text-transform: uppercase;
}
.library-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.library-source-link {
  display: inline-flex;
  align-items: baseline;
  align-self: flex-start;
  gap: .25rem;
  margin-top: auto;
  padding-top: .45rem;
  color: var(--red-dark);
  font-size: .82rem;
  font-weight: 780;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.library-source-link:hover,
.library-source-link:focus-visible,
.library-text-card a:hover,
.library-text-card a:focus-visible {
  color: var(--red);
  text-decoration-thickness: 2px;
}
.library-no-results {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--red);
  background: var(--paper-alt);
  color: var(--ink);
}
.library-no-results[hidden] {
  display: none !important;
}
.library-primary-sources {
  padding-top: clamp(1.7rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.library-source-caution {
  margin: 0 0 1rem;
  padding: .8rem 1rem;
  border-left: 3px solid var(--red);
  background: var(--paper-alt);
  color: #454440;
  font-size: .91rem;
  line-height: 1.5;
}
.library-text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.library-text-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
}
.library-text-card .library-tag {
  margin-bottom: .45rem;
}
.library-text-card h3 {
  margin: 0 0 .45rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.2;
  text-wrap: pretty;
}
.library-text-meta {
  margin: 0 0 .55rem;
  color: #55534e;
  font-size: .8rem;
  font-weight: 680;
  line-height: 1.45;
}
.library-text-card > p:not(.library-tag):not(.library-text-meta) {
  margin: 0 0 .7rem;
  color: #454440;
  font-size: .88rem;
  line-height: 1.48;
}
.library-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .95rem;
  margin-top: auto;
  padding-top: .25rem;
}
.library-text-card a {
  color: var(--red-dark);
  font-size: .82rem;
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.library-text-card .library-pdf-link {
  color: var(--red);
}
.library-article-grid .library-text-card {
  border-top: 2px solid #777168;
}
.library-reading-note {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-top: 4px solid var(--red);
  background: #20201f;
  color: #f7f5f0;
  scroll-margin-top: 8rem;
}
.library-reading-note .section-kicker {
  margin-bottom: .4rem;
  color: #ef9aa0;
  font-size: .76rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.library-reading-note h2 {
  max-width: 24ch;
  margin: 0 0 .7rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.12;
}
.library-reading-note p:last-child {
  max-width: 72rem;
  margin: 0;
  color: #e2dfd8;
  line-height: 1.65;
}
.library-reading-note a {
  color: #fff;
  font-weight: 720;
  text-underline-offset: .22em;
}
@media (max-width: 1120px) {
  .library-book-grid,
  .library-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-book-feature {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
  .library-cover-link {
    width: 6rem;
  }
}
@media (max-width: 820px) {
  .library-page .library-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .library-hero h1 {
    max-width: 18ch;
  }
  .library-hero-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
  }
  .library-hero-aside .library-aside-label {
    grid-column: 1 / -1;
  }
  .library-editorial-note {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .library-section-heading {
    align-items: start;
    flex-direction: column;
    gap: .65rem;
  }
  .library-section-heading > p {
    max-width: 62rem;
  }
}
@media (max-width: 640px) {
  .library-page .library-hero {
    padding: 1.35rem;
  }
  .library-hero h1 {
    font-size: clamp(2.55rem, 11vw, 4rem);
  }
  .library-hero-aside {
    grid-template-columns: 1fr;
  }
  .library-hero-aside .library-aside-label {
    grid-column: auto;
  }
  .library-toc {
    gap: .42rem;
  }
  .library-toc a {
    padding: .4rem .55rem;
    font-size: .8rem;
  }
  .library-controls {
    grid-template-columns: 1fr;
  }
  .library-result-count {
    grid-column: auto;
  }
  .library-path-grid,
  .library-book-grid,
  .library-text-grid {
    grid-template-columns: 1fr;
  }
  .library-path-card {
    min-height: 0;
  }
  .library-book {
    padding: .95rem;
  }
  .library-book-feature {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    min-height: 0;
    gap: .8rem;
  }
  .library-cover-link {
    width: 5.6rem;
  }
  .library-book h3 {
    font-size: 1.17rem;
  }
  .library-meta {
    gap: .45rem .65rem;
  }
}
@media (max-width: 390px) {
  .library-meta {
    grid-template-columns: 1fr;
  }
  .library-book-feature {
    grid-template-columns: 5rem minmax(0, 1fr);
  }
  .library-cover-link {
    width: 5rem;
  }
  .library-hero h1 {
    font-size: 2.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .library-path-card {
    transition: none;
  }
}

/* Carte historique interactive */
.war-map-page {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.75rem) clamp(1.2rem, 3vw, 2.5rem) clamp(3rem, 5vw, 4.5rem);
}
.war-map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .82fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 1.35rem;
}
.war-map-heading .section-kicker { margin: 0 0 .65rem; }
.war-map-heading h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.04;
}
.war-map-heading > p {
  max-width: 43rem;
  margin: 0 0 .25rem;
  color: #44423e;
  font-size: 1.06rem;
  line-height: 1.7;
}
.war-map-principle {
  max-width: 78rem;
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--red);
  background: #e9e5de;
  color: #373431;
  font-size: .91rem;
  line-height: 1.55;
}
.war-map-explorer {
  overflow: hidden;
  border: 1px solid #c8c3bb;
  background: var(--paper-light);
  box-shadow: .5rem .55rem 0 rgba(32, 32, 32, .055);
}
.war-map-controls {
  padding: 1rem 1rem .8rem;
  border-bottom: 1px solid #d3cec5;
  background: #f8f6f1;
}
.war-map-periods {
  display: flex;
  gap: .48rem;
  overflow-x: auto;
  padding: .05rem .05rem .55rem;
  scrollbar-width: thin;
}
.war-map-periods button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: .48rem .78rem;
  border: 1px solid #bdb8b0;
  border-radius: 2px;
  background: #fffdfa;
  color: #292724;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.war-map-periods button:hover,
.war-map-periods button:focus-visible { border-color: var(--red); color: var(--red-dark); }
.war-map-periods button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.war-map-filter-row {
  display: grid;
  grid-template-columns: minmax(14rem, .68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 1rem;
  padding-top: .4rem;
}
.war-map-search {
  display: grid;
  gap: .35rem;
  color: #484540;
  font-size: .8rem;
  font-weight: 750;
}
.war-map-search input {
  width: 100%;
  min-height: 2.65rem;
  padding: .55rem .7rem;
  border: 1px solid #aaa69f;
  border-radius: 1px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
}
.war-map-search input:focus-visible { outline: 3px solid rgba(166, 31, 43, .22); border-color: var(--red); }
.war-map-types {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .85rem;
  min-width: 0;
  margin: 0;
  padding: .2rem 0 0;
  border: 0;
}
.war-map-types legend {
  width: 100%;
  margin: 0 0 .18rem;
  color: #484540;
  font-size: .8rem;
  font-weight: 750;
}
.war-map-types label {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: #36332f;
  font-size: .78rem;
  line-height: 1.4;
  cursor: pointer;
}
.war-map-types input { accent-color: var(--red); }
.war-map-type-swatch { display: inline-block; width: .52rem; height: .52rem; flex: 0 0 auto; border-radius: 50%; background: var(--event-color, var(--red)); }
.war-map-status {
  min-height: 1.25rem;
  margin: .62rem 0 0;
  color: #5a554e;
  font-size: .78rem;
  font-weight: 650;
}
.war-map-legend-note { margin: .05rem 0 0; color: #686157; font-size: .68rem; line-height: 1.4; }
.war-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19.5rem, .78fr);
  align-items: stretch;
  min-height: 42rem;
}
.war-map-frame {
  position: relative;
  min-width: 0;
  min-height: 42rem;
  background: #e6e4de;
  isolation: isolate;
}
#war-map {
  position: absolute;
  inset: 0;
  min-height: 100%;
  background: #e6e4de;
}
#war-map .leaflet-tile { filter: grayscale(.55) sepia(.09) contrast(.96); }
#war-map .leaflet-control-attribution { font-size: .68rem; }
#war-map .leaflet-control a { color: #36322d; }
.war-map-marker-wrap { border: 0; background: transparent; }
.war-map-marker {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--marker-background, var(--marker-color, var(--red)));
  box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
}
.war-map-marker.is-group {
  width: 34px;
  height: 34px;
  border-width: 2px;
  color: white;
  font-size: .76rem;
  font-weight: 800;
}
.war-map-message {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  width: min(29rem, calc(100% - 2rem));
  margin: 0;
  padding: .8rem 1rem;
  transform: translate(-50%, -50%);
  border: 1px solid #c6c2bb;
  background: rgba(255, 253, 249, .96);
  color: #332f2a;
  font-size: .86rem;
  line-height: 1.45;
  box-shadow: 0 .3rem 1.1rem rgba(0, 0, 0, .12);
}
.war-map-message.is-hidden { display: none; }
.war-map-recenter {
  position: absolute;
  z-index: 500;
  top: .8rem;
  right: .8rem;
  min-height: 2.35rem;
  padding: .42rem .72rem;
  border: 1px solid #86817a;
  border-radius: 2px;
  background: rgba(255, 253, 249, .96);
  color: #292724;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}
.war-map-recenter:hover,
.war-map-recenter:focus-visible { border-color: var(--red); color: var(--red-dark); }
.war-map-route-key {
  position: absolute;
  z-index: 400;
  bottom: .7rem;
  left: .7rem;
  max-width: min(28rem, calc(100% - 1.4rem));
  margin: 0;
  padding: .38rem .58rem;
  background: rgba(255, 253, 249, .94);
  color: #47423d;
  font-size: .68rem;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
  pointer-events: none;
}
.war-map-route-key span { margin-right: .25rem; color: var(--red); font-size: 1.4rem; font-weight: 900; vertical-align: -.11em; }
.war-map-route-key[hidden] { display: none; }
.war-map-panel {
  display: flex;
  min-width: 0;
  max-height: 42rem;
  flex-direction: column;
  border-left: 1px solid #d3cec5;
  background: #fbfaf7;
}
.war-map-detail {
  flex: 0 0 auto;
  max-height: 21rem;
  overflow-y: auto;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid #d3cec5;
  scrollbar-width: thin;
}
.war-map-panel-kicker {
  margin: 0 0 .42rem;
  color: var(--red-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.45;
  text-transform: uppercase;
}
.war-map-detail h2,
.war-map-results-heading h2 {
  max-width: none;
  margin: 0 0 .42rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.75rem);
  line-height: 1.2;
}
.war-map-detail > p:not(.war-map-panel-kicker) { margin: 0 0 .7rem; color: #49453f; font-size: .83rem; line-height: 1.55; }
.war-map-detail .war-map-detail-place { margin-bottom: .15rem !important; color: #706a61 !important; font-size: .79rem !important; font-weight: 750; }
.war-map-detail .war-map-detail-summary { color: #26231f !important; font-weight: 700; }
.war-map-detail .war-map-precision {
  padding: .55rem .65rem;
  border-left: 2px solid #90877a;
  background: #f0ede7;
  font-size: .73rem !important;
}
.war-map-detail-source-heading { margin: .8rem 0 .25rem; font-size: .74rem; font-weight: 800; }
.war-map-detail-sources { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: 0 0 .7rem; padding: 0; list-style: none; }
.war-map-detail-sources a,
.war-map-timeline-link { color: var(--red-dark); font-size: .72rem; font-weight: 700; text-underline-offset: .18em; }
.war-map-timeline-link { display: inline-block; margin-top: .2rem; }
.war-map-results-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: .7rem 1.15rem .5rem;
}
.war-map-results-heading h2 { margin: 0; font-family: var(--sans); font-size: .95rem; font-weight: 800; }
.war-map-results-heading > span { color: #716b62; font-size: .68rem; text-align: right; }
.war-map-event-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0 .55rem .6rem;
  list-style: none;
  scrollbar-color: #bbb4aa transparent;
  scrollbar-width: thin;
}
.war-map-event-list > li { margin: 0; }
.war-map-event-list > li > button {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: flex-start;
  gap: .6rem;
  padding: .58rem .55rem;
  border: 0;
  border-top: 1px solid #e4e0da;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.war-map-event-list > li > a {
  display: grid;
  min-height: 4rem;
  gap: .06rem;
  padding: .58rem .7rem;
  border-top: 1px solid #e4e0da;
  color: var(--ink);
  text-decoration: none;
}
.war-map-event-list > li > a:hover,
.war-map-event-list > li > a:focus-visible { background: #f0ede7; }
.war-map-event-list > li > button:hover,
.war-map-event-list > li > button:focus-visible,
.war-map-event-list > li > button[aria-pressed="true"] { background: #f0ede7; }
.war-map-list-marker { flex: 0 0 auto; width: .58rem; height: .58rem; margin-top: .28rem; border: 1.5px solid white; border-radius: 50%; background: var(--event-color, var(--red)); box-shadow: 0 0 0 1px var(--event-color, var(--red)); }
.war-map-list-info { display: grid; min-width: 0; gap: .06rem; }
.war-map-list-date { color: var(--red-dark); font-size: .67rem; font-weight: 780; line-height: 1.35; }
.war-map-list-title { font-size: .8rem; line-height: 1.35; }
.war-map-list-summary { color: #5e5952; font-size: .71rem; line-height: 1.42; }
.war-map-event-list .war-map-empty { padding: 1rem .7rem; color: #5b554e; font-size: .85rem; line-height: 1.55; }
.war-map-method,
.war-map-sources { margin-top: 1.5rem; }
.war-map-method {
  border: 1px solid #cbc5bb;
  background: #f8f6f1;
}
.war-map-method summary { padding: .8rem 1rem; color: #302c28; font-weight: 780; cursor: pointer; }
.war-map-method > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0 1rem 1rem; }
.war-map-method > div p { margin: 0; color: #514c45; font-size: .82rem; line-height: 1.6; }
.war-map-sources { padding: clamp(1.1rem, 2vw, 1.7rem); border-top: 2px solid var(--red); background: #e9e5de; }
.war-map-sources .section-kicker { margin-bottom: .45rem; }
.war-map-sources h2 { max-width: none; margin-bottom: .45rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.war-map-sources > p:not(.section-kicker):not(.war-map-basemap-credit) { max-width: 65rem; margin-bottom: 1rem; color: #4c4842; font-size: .9rem; }
.war-map-source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.war-map-source-list li { min-width: 0; padding: .8rem; border: 1px solid #d1cbc1; background: #fbfaf7; }
.war-map-source-list li > a { display: block; color: #292622; font-size: .81rem; font-weight: 780; line-height: 1.4; text-underline-offset: .17em; }
.war-map-source-list .war-map-source-institution { display: block; margin-top: .22rem; color: var(--red-dark); font-size: .68rem; font-weight: 750; line-height: 1.35; }
.war-map-source-list li p { margin: .45rem 0 0; color: #5a554e; font-size: .72rem; line-height: 1.5; }
.war-map-basemap-credit { margin: 1rem 0 0; color: #5b554e; font-size: .7rem; }
.war-map-basemap-credit a { color: #423d36; text-underline-offset: .16em; }
.war-map-noscript { margin: 1rem; padding: .9rem; border-left: 2px solid var(--red); background: #eeeae3; font-size: .87rem; }

@media (max-width: 1040px) {
  .war-map-layout { grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .85fr); }
  .war-map-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .war-map-method > div { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .war-map-heading { grid-template-columns: 1fr; gap: .75rem; }
  .war-map-heading h1 { max-width: 19ch; }
  .war-map-heading > p { max-width: 55rem; }
  .war-map-filter-row { grid-template-columns: 1fr; gap: .7rem; }
  .war-map-layout { grid-template-columns: 1fr; }
  .war-map-frame { min-height: min(68vh, 39rem); }
  .war-map-panel { max-height: none; border-top: 1px solid #d3cec5; border-left: 0; }
  .war-map-detail { max-height: none; }
  .war-map-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 23rem; }
  .war-map-event-list > li:nth-child(odd) > button { border-right: 1px solid #e4e0da; }
}
@media (max-width: 560px) {
  .war-map-page { padding: 1.45rem 1rem 2.5rem; }
  .war-map-heading h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .war-map-heading > p { font-size: .97rem; }
  .war-map-controls { padding: .75rem .7rem .55rem; }
  .war-map-periods button { min-height: 2.35rem; padding: .42rem .62rem; font-size: .76rem; }
  .war-map-types { gap: .35rem .7rem; }
  .war-map-types label { font-size: .74rem; }
  .war-map-frame { min-height: 62vh; }
  .war-map-route-key { max-width: calc(100% - 1rem); bottom: .5rem; left: .5rem; font-size: .62rem; }
  .war-map-recenter { top: .55rem; right: .55rem; min-height: 2.15rem; font-size: .7rem; }
  .war-map-event-list { grid-template-columns: 1fr; max-height: 26rem; }
  .war-map-event-list > li:nth-child(odd) > button { border-right: 0; }
  .war-map-source-list { grid-template-columns: 1fr; }
  .war-map-sources { padding: 1rem; }
  .war-map-method > div { padding-inline: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .war-map-periods button,
  .war-map-recenter { scroll-behavior: auto; transition: none; }
}

/* Récit cartographique de la Virée de Galerne */
.galerne-page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.6rem) clamp(1rem, 3vw, 2.4rem) clamp(3rem, 5vw, 4.5rem);
}
.galerne-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .75fr);
  align-items: end;
  gap: clamp(1.4rem, 4vw, 4.3rem);
  margin: 0 0 1.35rem;
}
.galerne-heading .section-kicker { margin: 0 0 .6rem; }
.galerne-heading h1 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 5.5vw, 5rem);
  line-height: .99;
  letter-spacing: -.025em;
}
.galerne-heading > p {
  max-width: 42rem;
  margin: 0 0 .15rem;
  color: #45413b;
  font-size: clamp(1rem, 1.4vw, 1.17rem);
  line-height: 1.7;
}
.galerne-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(13rem, .9fr);
  gap: .65rem;
  margin: 1.7rem 0 1rem;
}
.galerne-facts > div,
.galerne-facts > p {
  min-width: 0;
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid #d0cbc2;
  background: rgba(251, 250, 247, .82);
}
.galerne-facts > div { display: grid; align-content: center; gap: .05rem; }
.galerne-facts > div > span {
  color: var(--red-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.galerne-facts strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; }
.galerne-facts small { color: #5c5750; font-size: .75rem; line-height: 1.4; }
.galerne-facts > p { display: flex; align-items: center; color: #504b44; font-size: .8rem; line-height: 1.5; }
.galerne-intro-note {
  max-width: 78rem;
  margin: 0 0 1.45rem;
  padding: .72rem .95rem;
  border-left: 3px solid var(--red);
  background: #e9e5de;
  color: #37332e;
  font-size: .87rem;
  line-height: 1.6;
}
.galerne-explorer {
  overflow: hidden;
  border: 1px solid #c8c3bb;
  background: var(--paper-light);
  box-shadow: .42rem .48rem 0 rgba(32, 32, 32, .055);
}
.galerne-player { padding: .9rem 1rem .72rem; border-bottom: 1px solid #d4cfc6; background: #f8f6f1; }
.galerne-player-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.galerne-player-kicker { margin: 0; color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.galerne-current-date { margin: .05rem 0 0; font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.3; }
.galerne-step-controls { display: flex; gap: .45rem; }
.galerne-step-controls button,
.galerne-map-reset {
  min-height: 2.35rem;
  padding: .4rem .7rem;
  border: 1px solid #89837b;
  background: #fffefa;
  color: #282521;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}
.galerne-step-controls button:hover,
.galerne-step-controls button:focus-visible,
.galerne-map-reset:hover,
.galerne-map-reset:focus-visible { border-color: var(--red); color: var(--red-dark); }
.galerne-step-controls button:disabled { border-color: #d0cbc2; color: #918b82; cursor: default; }
.galerne-slider-label { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: .6rem 0 .15rem; color: #6b665e; font-size: .75rem; font-weight: 750; }
.galerne-slider-label .galerne-slider-current { color: #37332e; font-size: .75rem; }
.galerne-slider {
  display: block;
  width: 100%;
  height: .72rem;
  margin: .2rem 0 .65rem;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(to right, var(--red) 0 var(--galerne-progress, 0%), #d8d2c8 var(--galerne-progress, 0%) 100%);
  cursor: pointer;
}
.galerne-slider::-webkit-slider-thumb { width: 1.15rem; height: 1.15rem; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red-dark), 0 1px 3px #0003; }
.galerne-slider::-moz-range-thumb { width: .78rem; height: .78rem; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 1px var(--red-dark), 0 1px 3px #0003; }
.galerne-slider:focus-visible { outline: 3px solid #a61f2b55; outline-offset: 4px; }
.galerne-stage-strip {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  margin: 0;
  padding: .1rem 0 .35rem;
  list-style: none;
  scrollbar-color: #bcb5aa transparent;
  scrollbar-width: thin;
}
.galerne-stage-strip li { flex: 0 0 auto; margin: 0; }
.galerne-stage-strip button {
  display: grid;
  min-width: 7.1rem;
  min-height: 3.25rem;
  align-content: center;
  gap: .05rem;
  padding: .37rem .55rem;
  border: 1px solid #d1ccc3;
  background: #fbfaf7;
  color: #302d29;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.galerne-stage-strip button:hover,
.galerne-stage-strip button:focus-visible { border-color: var(--red); }
.galerne-stage-strip button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: white; }
.galerne-stage-strip time { font-size: .75rem; font-weight: 800; line-height: 1.25; }
.galerne-stage-strip button > span { max-width: 11rem; overflow: hidden; font-size: .75rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.galerne-map-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(20rem, .75fr); min-height: 39rem; }
.galerne-map-frame { position: relative; min-width: 0; min-height: 39rem; background: #e6e4de; isolation: isolate; }
#galerne-map { position: absolute; inset: 0; min-height: 100%; background: #e6e4de; }
#galerne-map .leaflet-tile { filter: grayscale(.42) sepia(.08) contrast(.97); }
#galerne-map .leaflet-control-attribution { font-size: .75rem; }
#galerne-map .leaflet-control a { color: #36322d; }
.galerne-map-message {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  width: min(30rem, calc(100% - 2rem));
  margin: 0;
  padding: .8rem 1rem;
  transform: translate(-50%, -50%);
  border: 1px solid #c6c2bb;
  background: rgba(255, 253, 249, .96);
  color: #332f2a;
  font-size: .83rem;
  line-height: 1.5;
  box-shadow: 0 .3rem 1.1rem #0002;
}
.galerne-map-message.is-hidden { display: none; }
.galerne-map-reset { position: absolute; z-index: 500; top: .8rem; right: .8rem; background: rgba(255, 253, 249, .97); }
.galerne-map-legend {
  position: absolute;
  z-index: 450;
  bottom: .7rem;
  left: .7rem;
  display: grid;
  gap: .25rem;
  max-width: calc(100% - 1.4rem);
  padding: .5rem .65rem;
  border: 1px solid #d5d0c7;
  background: rgba(255, 253, 249, .96);
  color: #413d37;
  font-size: .75rem;
  line-height: 1.35;
  box-shadow: 0 1px 4px #0002;
  pointer-events: none;
}
.galerne-map-legend span { display: flex; align-items: center; gap: .4rem; }
.galerne-key { display: inline-block; width: 1.35rem; height: 0; border-top: 3px solid; }
.galerne-key-out { border-color: #a61f2b; }
.galerne-key-back { border-color: #a66a20; border-top-style: dashed; }
.galerne-key-end { border-color: #405c64; }
.galerne-marker-wrap { border: 0; background: transparent; overflow: visible; }
.galerne-marker { position: relative; display: block; width: 34px; height: 34px; overflow: visible; }
.galerne-marker-dot { position: absolute; top: 9px; left: 9px; display: block; width: 16px; height: 16px; border: 2px solid white; border-radius: 50%; background: var(--marker-color, var(--red)); box-shadow: 0 1px 5px #0006; transition: width .15s ease, height .15s ease, top .15s ease, left .15s ease, box-shadow .15s ease; }
.galerne-marker.is-future .galerne-marker-dot { opacity: .6; }
.galerne-marker.is-current .galerne-marker-dot { top: 6px; left: 6px; width: 22px; height: 22px; border-width: 3px; box-shadow: 0 0 0 4px #a61f2b55, 0 1px 6px #0007; }
.galerne-marker-name { position: absolute; top: 2px; left: 22px; z-index: 2; display: block; max-width: 11rem; overflow: hidden; padding: .14rem .42rem; border: 1px solid var(--red); background: #fffefa; color: #292521; font-family: var(--sans); font-size: .75rem; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 4px #0003; }
.galerne-tooltip { border: 1px solid #a8a197 !important; border-radius: 2px !important; background: #fffefa !important; color: #282521 !important; font-family: var(--sans); font-size: .75rem !important; font-weight: 750; }
.galerne-story {
  display: flex;
  min-width: 0;
  max-height: 39rem;
  flex-direction: column;
  overflow: auto;
  padding: clamp(1rem, 2vw, 1.45rem);
  border-left: 1px solid #d3cec5;
  background: #fbfaf7;
  scrollbar-color: #bbb4aa transparent;
  scrollbar-width: thin;
}
.galerne-story-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-bottom: .55rem; border-bottom: 1px solid #ded9d0; color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.galerne-story-top > span:last-child { flex: 0 0 auto; color: #716b62; text-align: right; }
.galerne-story-date { margin: .85rem 0 .15rem; color: #676158; font-size: .77rem; font-weight: 750; }
.galerne-story h2 { margin: 0; font-family: var(--display); font-size: clamp(1.7rem, 2.2vw, 2.25rem); line-height: 1.08; }
.galerne-story h3 { margin: .38rem 0 .65rem; color: var(--red-dark); font-family: var(--serif); font-size: 1.14rem; font-weight: 700; line-height: 1.3; }
.galerne-story > p:not(.galerne-story-date):not(.galerne-story-precision) { margin: 0 0 .7rem; color: #49453f; font-size: .85rem; line-height: 1.62; }
.galerne-story > [data-galerne-summary] { color: #24211e !important; font-size: .94rem !important; font-weight: 690; line-height: 1.58 !important; }
.galerne-story-precision { display: grid; gap: .12rem; margin: .15rem 0 .8rem; padding: .55rem .65rem; border-left: 2px solid #b7afa3; background: #f1eee8; }
.galerne-story-precision strong { color: #575148; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.galerne-story-precision span { color: #514c44; font-size: .75rem; line-height: 1.45; }
.galerne-story-sources { margin-top: .05rem; }
.galerne-story-sources h4 { margin: 0 0 .28rem; font-size: .72rem; }
.galerne-story-sources ul { display: flex; flex-wrap: wrap; gap: .15rem .7rem; margin: 0; padding: 0; list-style: none; }
.galerne-story-sources a { color: var(--red-dark); font-size: .75rem; font-weight: 750; line-height: 1.5; text-underline-offset: .16em; }
.galerne-story-chronology { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin-top: auto; padding-top: .85rem; color: #3f3932; font-size: .75rem; font-weight: 750; text-underline-offset: .18em; }
.galerne-story-chronology span { color: var(--red); }
.galerne-status { margin: 0; padding: .43rem .8rem; border-top: 1px solid #d8d2c8; background: #f8f6f1; color: #605b53; font-size: .75rem; line-height: 1.4; }
.galerne-noscript { margin: .8rem; padding: .8rem; border-left: 2px solid var(--red); background: #eeeae3; font-size: .82rem; line-height: 1.5; }
.galerne-noscript a { color: var(--red-dark); font-weight: 750; }
.galerne-reading { margin: clamp(2rem, 4vw, 3.5rem) 0 0; }
.galerne-reading > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.galerne-reading .section-kicker { flex: 0 0 auto; margin: 0; }
.galerne-reading h2,
.galerne-sources h2 { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.14; }
.galerne-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.galerne-reading-grid article { min-width: 0; padding: 1rem 1.05rem; border: 1px solid #d0cbc2; background: #fbfaf7; }
.galerne-reading-grid article > span { color: var(--red-dark); font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.galerne-reading-grid h3 { margin: .3rem 0 .42rem; font-family: var(--display); font-size: 1.32rem; line-height: 1.2; }
.galerne-reading-grid p { margin: 0; color: #514c45; font-size: .82rem; line-height: 1.57; }
.galerne-method { margin: 1.4rem 0 0; border: 1px solid #cbc5bb; background: #f8f6f1; }
.galerne-method summary { padding: .78rem 1rem; color: #302c28; font-weight: 780; cursor: pointer; }
.galerne-method > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0 1rem 1rem; }
.galerne-method > div p { margin: 0; color: #514c45; font-size: .79rem; line-height: 1.58; }
.galerne-sources { margin-top: 1.6rem; padding: clamp(1.1rem, 2vw, 1.7rem); border-top: 2px solid var(--red); background: #e9e5de; }
.galerne-sources .section-kicker { margin: 0 0 .42rem; }
.galerne-sources > p:not(.section-kicker):not(.galerne-map-credit) { max-width: 68rem; margin: .5rem 0 1rem; color: #4c4842; font-size: .86rem; line-height: 1.55; }
.galerne-source-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; list-style: none; }
.galerne-source-list li { min-width: 0; padding: .8rem; border: 1px solid #d1cbc1; background: #fbfaf7; }
.galerne-source-list li > a { display: block; color: #292622; font-size: .8rem; font-weight: 780; line-height: 1.4; text-underline-offset: .17em; }
.galerne-source-list li > span { display: block; margin-top: .22rem; color: var(--red-dark); font-size: .75rem; font-weight: 750; line-height: 1.4; }
.galerne-source-list li > p { margin: .42rem 0 0; color: #5a554e; font-size: .75rem; line-height: 1.48; }
.galerne-map-credit { margin: .9rem 0 0; color: #5b554e; font-size: .68rem; }
.galerne-map-credit a { color: #423d36; text-underline-offset: .16em; }

@media (max-width: 1100px) {
  .galerne-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galerne-facts > p { grid-column: 1 / -1; }
  .galerne-map-layout { grid-template-columns: minmax(0, 1.2fr) minmax(19rem, .85fr); }
  .galerne-source-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerne-method > div { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .galerne-heading { grid-template-columns: 1fr; gap: .8rem; }
  .galerne-heading h1 { max-width: 19ch; }
  .galerne-heading > p { max-width: 55rem; }
  .galerne-map-layout { grid-template-columns: 1fr; }
  .galerne-map-frame { min-height: min(68vh, 39rem); }
  .galerne-story { max-height: none; min-height: 0; border-top: 1px solid #d3cec5; border-left: 0; }
  .galerne-story-chronology { margin-top: .25rem; }
}
@media (max-width: 620px) {
  .galerne-page { padding: 1.4rem 1rem 2.5rem; }
  .galerne-heading h1 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .galerne-facts { grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: 1.2rem; }
  .galerne-facts > div { min-height: 5.3rem; }
  .galerne-facts > p { grid-column: 1 / -1; }
  .galerne-player { padding: .75rem .65rem .55rem; }
  .galerne-current-date { font-size: 1.17rem; }
  .galerne-step-controls { gap: .25rem; }
  .galerne-step-controls button { min-height: 2.1rem; padding: .32rem .48rem; font-size: .68rem; }
  .galerne-slider-label { font-size: .75rem; }
  .galerne-slider-label .galerne-slider-current { font-size: .75rem; }
  .galerne-stage-strip button { min-width: 6.2rem; min-height: 3rem; padding: .34rem .45rem; }
  .galerne-map-frame { min-height: 62vh; }
  .galerne-map-reset { top: .5rem; right: .5rem; min-height: 2.05rem; padding: .32rem .48rem; font-size: .68rem; }
  .galerne-map-legend { bottom: .45rem; left: .45rem; gap: .2rem; padding: .4rem .48rem; font-size: .75rem; }
  .galerne-map-legend .galerne-key { width: 1.05rem; }
  .galerne-story { padding: .95rem; }
  .galerne-reading > div:first-child { display: block; }
  .galerne-reading h2 { margin-top: .25rem; }
  .galerne-reading-grid,
  .galerne-source-list { grid-template-columns: 1fr; }
  .galerne-reading-grid article { padding: .85rem; }
  .galerne-sources { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .galerne-stage-strip button,
  .galerne-marker-dot { transition: none; }
}

/* Site-wide redesign: one clear directory, calmer reading widths, and grouped routes. */
:root {
  --page-width: 96rem;
  --content-width: 90rem;
}
html {
  scroll-padding-top: 1.25rem;
}
body {
  background-image: none;
  font-size: 1.03rem;
  line-height: 1.68;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .5rem max(1.15rem, calc((100vw - var(--page-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 233, .97);
  box-shadow: 0 4px 18px rgba(32, 28, 24, .055);
  backdrop-filter: blur(12px);
}
.brand {
  flex: 0 1 19rem;
  min-width: 0;
  gap: .65rem;
}
.brand-mark {
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.25rem;
}
.brand-signature {
  width: 5.9rem;
  height: 3.35rem;
}
.brand-caption {
  width: 100%;
  max-width: 19rem;
  font-size: .8rem;
  line-height: 1.25;
}
.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .12rem;
  width: auto;
  min-width: 0;
}
.main-nav > .nav-home,
.nav-group > summary {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  padding: .5rem .62rem;
  border: 1px solid transparent;
  color: #252525;
  font-size: .88rem;
  font-weight: 690;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav-group > summary {
  list-style: none;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-caret {
  width: .42rem;
  height: .42rem;
  margin-top: -.18rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.nav-group[open] > summary .nav-caret {
  margin-top: .2rem;
  transform: rotate(225deg);
}
.main-nav > .nav-home:hover,
.main-nav > .nav-home:focus-visible,
.nav-group > summary:hover,
.nav-group > summary:focus-visible,
.nav-group[open] > summary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .55);
  color: var(--red-dark);
}
.main-nav > .nav-home[aria-current="page"],
.nav-group--current > summary {
  color: var(--red-dark);
}
.nav-group {
  position: relative;
  flex: 0 0 auto;
}
.nav-panel {
  position: absolute;
  top: calc(100% + .55rem);
  left: 0;
  z-index: 40;
  width: min(25rem, calc(100vw - 2rem));
  padding: .42rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 18px 40px rgba(32, 28, 24, .16);
}
.nav-group:not([open]) > .nav-panel {
  display: none;
}
.nav-group[open] > .nav-panel {
  display: grid;
  gap: .15rem;
}
.main-nav .nav-panel-link {
  display: flex;
  min-height: 3.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem;
  border: 0;
  color: var(--ink);
  text-decoration: none;
  white-space: normal;
  transition: background .16s ease, color .16s ease;
}
.main-nav .nav-panel-link:hover,
.main-nav .nav-panel-link:focus-visible,
.main-nav .nav-panel-link[aria-current="page"] {
  background: #f0ece5;
  color: var(--red-dark);
}
.main-nav .nav-panel-link:hover,
.main-nav .nav-panel-link:focus-visible {
  border-bottom-color: transparent;
}
.nav-panel-copy {
  display: grid;
  gap: .1rem;
}
.nav-panel-copy strong {
  font-size: .94rem;
  line-height: 1.35;
}
.nav-panel-copy small {
  color: #60605d;
  font-size: .77rem;
  line-height: 1.35;
}
.nav-panel-arrow {
  color: var(--red);
  font-size: 1.05rem;
}
.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
  margin-left: .4rem;
}
.main-nav .nav-instagram {
  width: 2.65rem;
  height: 2.65rem;
  padding: .55rem;
}
.main-nav .nav-newsletter {
  min-height: 2.65rem;
  padding: .55rem .8rem;
  font-size: .85rem;
}
.hero {
  min-height: min(43rem, calc(100vh - 5rem));
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
  gap: clamp(2rem, 4.2vw, 4.4rem);
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.2vw, 5.7rem);
  line-height: 1.02;
}
.hero-intro {
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.3vw, 1.16rem);
  line-height: 1.75;
}
.hero-visual img {
  height: clamp(25rem, 43vw, 39rem);
}
.section {
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
}
.section.page-section {
  padding-top: clamp(3.2rem, 5.4vw, 5.3rem);
  padding-bottom: clamp(3.8rem, 6.5vw, 6.3rem);
}
.section-heading {
  gap: clamp(1.6rem, 4vw, 4rem);
  margin-bottom: clamp(1.7rem, 3vw, 2.6rem);
}
.section-heading > p {
  max-width: 43rem;
  font-size: 1.03rem;
  line-height: 1.7;
}
.breadcrumbs,
.page-navigation,
.footer-inner {
  max-width: calc(var(--content-width) + 2.4rem);
}
.breadcrumbs {
  margin-top: 1.05rem;
  margin-bottom: -1.1rem;
  padding-inline: 1.2rem;
  font-size: .82rem;
}
.galerne-page {
  max-width: calc(var(--content-width) + 2.4rem);
  margin-inline: auto;
  padding-inline: 1.2rem;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: var(--content-width);
  margin-inline: auto;
}
.journey-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 2.3vw, 1.9rem);
  border: 1px solid #c8c8c4;
  background: var(--paper-light);
  box-shadow: 0 .3rem 1.2rem rgba(35, 31, 28, .025);
}
.journey-card::before {
  position: absolute;
  top: -1px;
  left: 1.35rem;
  width: 2.8rem;
  height: 3px;
  background: var(--red);
  content: "";
}
.journey-card .explore-label {
  margin-bottom: .45rem;
  font-size: .72rem;
}
.journey-card h3 {
  margin-bottom: .5rem;
  font-size: clamp(1.4rem, 2.15vw, 1.8rem);
}
.journey-card > p {
  max-width: 48rem;
  margin-bottom: 1rem;
  color: #4c4b48;
  font-size: .96rem;
  line-height: 1.6;
}
.journey-links {
  display: grid;
  margin: auto 0 0;
  padding: .2rem 0 0;
  border-top: 1px solid #dedbd4;
  list-style: none;
}
.journey-links li + li {
  border-top: 1px solid #e7e4de;
}
.journey-links a {
  display: flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .35rem;
  color: var(--ink);
  text-decoration: none;
}
.journey-links a:hover,
.journey-links a:focus-visible {
  color: var(--red-dark);
}
.journey-links a > span:first-child {
  display: grid;
  gap: .08rem;
}
.journey-links strong {
  font-size: .94rem;
  line-height: 1.4;
}
.journey-links small {
  color: #5d5c58;
  font-size: .79rem;
  line-height: 1.4;
}
.journey-arrow {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 1.08rem;
}
.reading-routes {
  max-width: var(--content-width);
  gap: .8rem;
  margin: 1.2rem auto 0;
}
.reading-route {
  padding: 1.1rem 1.2rem;
  border: 1px solid #d2cec6;
  border-top: 3px solid var(--red);
  background: rgba(251, 250, 247, .72);
  color: var(--ink);
}
.reading-route span {
  color: var(--red-dark);
  font-size: .73rem;
}
.reading-route p {
  color: #484744;
  font-size: .89rem;
  line-height: 1.55;
}
.reading-route a {
  color: var(--ink);
  font-weight: 720;
  text-underline-offset: .18em;
}
.newsletter-cta {
  padding-inline: max(1.2rem, calc((100vw - var(--content-width)) / 2));
}
.page-navigation {
  gap: 1rem;
  padding-inline: 1.2rem;
}
.footer-inner {
  grid-template-columns: minmax(15rem, 1.45fr) repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  padding: 3rem 1.2rem 2.5rem;
}
.footer-brand {
  max-width: 26rem;
}
.footer-follow {
  display: grid;
  justify-items: start;
  gap: .8rem;
  margin-top: 1.25rem;
}
.footer-newsletter {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: .35rem;
  padding: .55rem .7rem;
  border: 1px solid #77736e;
  background: #272625;
  text-decoration: none;
}
.footer-newsletter span {
  color: #f08b92;
}
.footer-contact {
  margin: 0;
  font-size: .85rem !important;
}
.footer .footer-column {
  min-width: 0;
}
.footer-heading {
  margin-bottom: .75rem;
}
.footer-links {
  gap: .42rem;
}
.footer-links a {
  display: inline-block;
  line-height: 1.45;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}
.footer-links a[aria-current="page"] {
  color: #f29aa0;
  text-decoration: underline;
}
.footer-bottom {
  max-width: calc(var(--content-width) + 2.4rem);
  margin-inline: auto;
  padding-inline: 1.2rem;
}
:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .site-header {
    flex-wrap: wrap;
    gap: .25rem 1rem;
    padding-block: .45rem;
  }
  .brand {
    flex: 1 1 100%;
  }
  .main-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav-actions {
    margin-left: auto;
  }
  .footer-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    min-height: auto;
    padding-block: 2.7rem;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.1rem);
  }
  .hero-visual img {
    height: clamp(20rem, 45vw, 29rem);
  }
  .journey-grid {
    gap: .85rem;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: .75rem;
  }
  .site-header {
    position: static;
    gap: .25rem;
    padding: .45rem 1rem .65rem;
  }
  .brand {
    flex: 1 1 100%;
  }
  .brand-mark {
    flex-basis: 2.35rem;
    width: 2.35rem;
    height: 2rem;
  }
  .brand-signature {
    width: 5rem;
    height: 2.9rem;
  }
  .brand-caption {
    max-width: min(20rem, calc(100vw - 4.5rem));
    font-size: .75rem;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    width: 100%;
  }
  .main-nav > .nav-home,
  .nav-group > summary {
    width: 100%;
    min-height: 2.65rem;
    justify-content: center;
    gap: .35rem;
    padding: .4rem .3rem;
    border-color: #d8d3ca;
    background: rgba(255, 255, 255, .32);
    font-size: .81rem;
  }
  .nav-caret {
    width: .35rem;
    height: .35rem;
  }
  .nav-panel {
    top: calc(100% + .35rem);
    width: min(23rem, calc(100vw - 2rem));
  }
  .nav-group[data-nav-group="comprendre"] > .nav-panel,
  .nav-group[data-nav-group="acteurs"] > .nav-panel,
  .nav-group[data-nav-group="ressources"] > .nav-panel {
    right: 0;
    left: auto;
  }
  .nav-group[data-nav-group="terrain"] > .nav-panel {
    right: auto;
    left: 0;
  }
  .nav-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2.8rem minmax(0, 1fr);
    gap: .5rem;
    margin: .1rem 0 0;
  }
  .main-nav .nav-instagram {
    width: 2.65rem;
    height: 2.65rem;
  }
  .main-nav .nav-newsletter {
    width: 100%;
    justify-content: center;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 2rem 1.15rem 1.5rem;
  }
  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.65rem, 11vw, 3.65rem);
  }
  .hero-visual img {
    height: clamp(16rem, 75vw, 25rem);
  }
  .section {
    padding-inline: 1.15rem;
  }
  .section.page-section {
    padding-top: 2.7rem;
    padding-bottom: 3.5rem;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: .65rem;
    margin-bottom: 1.45rem;
  }
  .journey-grid {
    grid-template-columns: 1fr;
    gap: .7rem;
  }
  .journey-card {
    padding: 1.2rem;
  }
  .journey-links a {
    min-height: 3.5rem;
  }
  .reading-routes {
    grid-template-columns: 1fr;
  }
  .newsletter-cta {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.15rem;
  }
  .newsletter-cta h2 {
    max-width: 18ch;
  }
  .newsletter-cta > .button {
    justify-self: start;
  }
  .breadcrumbs {
    margin: .8rem auto -.8rem;
    padding-inline: 1.15rem;
  }
  .galerne-page {
    padding: 1.3rem 1rem 2.5rem;
  }
  .page-navigation {
    grid-template-columns: 1fr;
    padding-inline: 1.15rem;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
    padding: 2rem 1.15rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-column {
    min-width: 0;
  }
  .footer-heading {
    font-size: .7rem;
  }
  .footer-links a {
    font-size: .86rem;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    align-items: flex-start;
    padding-inline: 1.15rem;
    font-size: .78rem;
  }
}

.nav-search-trigger {
  display: inline-flex;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: .55rem;
  border: 1px solid #b9b9b5;
  border-radius: 0;
  background: transparent;
  color: #252525;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-search-trigger:hover,
.nav-search-trigger:focus-visible {
  border-color: var(--red);
  background: var(--paper-light);
  color: var(--red);
}
.nav-search-trigger svg,
.site-search-input-wrap svg,
.site-search-close svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.site-search-dialog {
  width: min(48rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(44rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #bcb7ae;
  border-top: 4px solid var(--red);
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, .28);
}
.site-search-dialog::backdrop {
  background: rgba(22, 20, 18, .64);
  backdrop-filter: blur(2px);
}
.site-search-shell {
  display: flex;
  max-height: inherit;
  flex-direction: column;
  padding: clamp(1.15rem, 3vw, 1.85rem);
}
.site-search-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.site-search-kicker {
  margin: 0 0 .18rem;
  color: var(--red-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-search-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.1;
}
.site-search-close {
  display: inline-flex;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.site-search-close:hover,
.site-search-close:focus-visible {
  border-color: var(--red);
  color: var(--red);
}
.site-search-form {
  display: grid;
  gap: .4rem;
}
.site-search-form label {
  color: #42413e;
  font-size: .82rem;
  font-weight: 700;
}
.site-search-input-wrap {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: .7rem;
  padding: 0 .85rem;
  border: 1px solid #96928a;
  background: #fff;
  color: #45433f;
}
.site-search-input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(166, 31, 43, .14);
}
.site-search-input-wrap svg {
  flex: 0 0 1.2rem;
}
.site-search-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: .72rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1.4 var(--sans);
}
.site-search-input-wrap input::placeholder {
  color: #77736c;
  opacity: 1;
}
.site-search-hint {
  margin: .12rem 0 0;
  color: #66635d;
  font-size: .74rem;
  line-height: 1.4;
}
.site-search-status {
  margin: 1.15rem 0 .4rem;
  color: #494741;
  font-size: .83rem;
  font-weight: 650;
}
.site-search-results {
  display: grid;
  gap: .5rem;
  min-height: 2rem;
  max-height: min(52vh, 27rem);
  margin: 0;
  padding: .05rem .25rem .25rem 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}
.site-search-results:empty {
  min-height: 0;
}
.site-search-result {
  display: grid;
  gap: .12rem;
  padding: .7rem .8rem;
  border: 1px solid #dedad2;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.site-search-result:hover,
.site-search-result:focus-visible {
  border-color: var(--red);
  background: #fcf7f5;
  transform: translateX(2px);
}
.site-search-result-meta {
  color: var(--red-dark);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.4;
}
.site-search-result-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.3;
}
.site-search-result-excerpt {
  color: #57554f;
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .nav-actions {
    grid-template-columns: 2.65rem 2.65rem minmax(0, 1fr);
  }
  .site-search-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .site-search-shell {
    padding: 1rem;
  }
  .site-search-results {
    max-height: 42vh;
  }
  .site-search-result {
    padding: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-result,
  .nav-search-trigger {
    transition: none;
  }
}
@media (max-width: 370px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-group[data-nav-group="comprendre"] > .nav-panel,
  .nav-group[data-nav-group="terrain"] > .nav-panel {
    right: 0;
    left: auto;
  }
  .nav-group[data-nav-group="acteurs"] > .nav-panel,
  .nav-group[data-nav-group="ressources"] > .nav-panel {
    right: auto;
    left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-caret,
  .nav-panel-link,
  .journey-links a {
    transition: none;
  }
}

/* Cross-links between the map, dated events and chief profiles. */
.chief-card[id] { scroll-margin-top: 6rem; }
.chief-card[id]:target { outline: 2px solid var(--red); outline-offset: 3px; }
.chief-crossrefs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin: 0 0 .95rem;
  padding-top: .68rem;
  border-top: 1px solid var(--line);
}
.chief-crossrefs a {
  color: var(--red-dark);
  font-size: .76rem;
  font-weight: 720;
  line-height: 1.45;
  text-underline-offset: .17em;
}
.timeline-event[id] { scroll-margin-top: 6rem; }
.timeline-event[id]:target {
  padding-inline: .65rem;
  border-left: 3px solid var(--red);
  background: #f8f1e8;
}
.timeline-event a { color: var(--red-dark); text-underline-offset: .16em; }
.timeline-event a:hover,
.timeline-event a:focus-visible,
.chief-crossrefs a:hover,
.chief-crossrefs a:focus-visible { text-decoration-thickness: 2px; }
.timeline-crosslinks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  margin-top: .22rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.galerne-explorer { scroll-margin-top: 5.5rem; }
.galerne-story-figures { margin: 0 0 .65rem; padding: .55rem .65rem; border-left: 2px solid var(--red); background: #f1eee8; }
.galerne-story-figures h4 { margin: 0 0 .32rem; color: #575148; font-size: .72rem; letter-spacing: .035em; }
.galerne-story-figures ul { display: flex; flex-wrap: wrap; gap: .2rem .75rem; margin: 0; padding: 0; list-style: none; }
.galerne-story-figures a { color: var(--red-dark); font-size: .76rem; font-weight: 750; line-height: 1.45; text-underline-offset: .16em; }
@media (max-width: 620px) {
  .chief-crossrefs { gap: .28rem .65rem; }
  .timeline-crosslinks { display: flex; }
}

/* Archive gallery: visual first, source notes kept close to each image */
.repression-page {
  padding-top: clamp(2.5rem, 4.5vw, 4.2rem);
}
.repression-page > .section-heading {
  align-items: end;
  margin-bottom: 1.2rem;
}
.repression-page h1 {
  max-width: 15ch;
  margin-bottom: .65rem;
  font-size: clamp(2.8rem, 5.1vw, 4.4rem);
}
.repression-page > .section-heading > p {
  max-width: 35rem;
  font-size: 1.02rem;
  line-height: 1.6;
}
.repression-period {
  display: grid;
  grid-template-columns: auto minmax(4rem, 1fr) auto auto;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.4rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper-light);
}
.repression-period-date {
  color: var(--red-dark);
  font-size: .88rem;
  font-weight: 780;
  white-space: nowrap;
}
.repression-period-line {
  height: 2px;
  background: #c8c4bc;
}
.repression-period-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform-origin: left;
}
.repression-period-count {
  padding: .2rem .6rem;
  border-radius: 999px;
  background: #252321;
  color: #fff;
  font-size: .82rem;
  font-weight: 760;
  white-space: nowrap;
}
.repression-controls { margin-bottom: 1.5rem; }
.repression-list-heading {
  align-items: end;
  margin-bottom: .75rem;
}
.repression-list-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.repression-list-heading > p {
  max-width: 28rem;
  font-size: .96rem;
}
.repression-year {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin: 1.9rem 0 .85rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.75rem;
}
.repression-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin: 0 0 1.7rem;
}
.repression-record {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid #cbc7bf;
  background: #fff;
  box-shadow: 0 .2rem .7rem rgba(28, 25, 22, .045);
  scroll-margin-top: 9rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.repression-record:hover,
.repression-record:focus-within {
  border-color: #8d7772;
  box-shadow: 0 .55rem 1.2rem rgba(28, 25, 22, .1);
  transform: translateY(-2px);
}
.repression-record[hidden] { display: none !important; }
.repression-card { display: flex; height: 100%; flex-direction: column; }
.repression-image {
  margin: 0;
  padding: .6rem .6rem 0;
  background: #fff;
}
.repression-image-trigger {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.52;
  place-items: center;
  overflow: hidden;
  padding: .7rem;
  border: 0;
  background: linear-gradient(145deg, #292826, #4c4841);
  cursor: zoom-in;
}
.repression-image-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 .3rem .4rem rgba(0, 0, 0, .26));
  transition: transform .25s ease;
}
.repression-record:hover .repression-image-trigger img { transform: scale(1.035); }
.repression-image-trigger:focus-visible { outline: 3px solid #e4bd62; outline-offset: -4px; }
.repression-image-prompt {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .34rem .55rem;
  background: rgba(27, 26, 24, .9);
  color: #fff;
  font-size: .78rem;
  font-weight: 730;
  line-height: 1.3;
}
.repression-image-prompt span { color: #f0c66b; font-size: 1rem; }
.repression-image figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .55rem;
  min-height: 2.55rem;
  padding: .4rem .15rem .25rem;
  color: #55524d;
  font-size: .76rem;
  line-height: 1.35;
}
.repression-image figcaption a {
  flex: 0 0 auto;
  color: var(--red-dark);
  font-weight: 740;
  text-decoration: underline;
  text-underline-offset: .16em;
}
.repression-disclosure {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}
.repression-disclosure > summary {
  display: flex;
  min-height: 10.5rem;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
  padding: .85rem 1rem .7rem;
  cursor: pointer;
  list-style: none;
}
.repression-disclosure > summary::-webkit-details-marker { display: none; }
.repression-disclosure > summary:hover { background: #fbfaf7; }
.repression-disclosure > summary:focus-visible {
  outline: 3px solid #c18a26;
  outline-offset: -4px;
}
.repression-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem .55rem;
  margin-bottom: .28rem;
}
.repression-record .timeline-date {
  color: var(--red-dark);
  font-size: .85rem;
}
.repression-kind {
  padding: .12rem .45rem;
  border: 1px solid #dfd6cb;
  border-radius: 999px;
  background: #f5f0e8;
  color: #544239;
  font-size: .69rem;
  letter-spacing: .035em;
}
.repression-entry-title {
  display: block;
  color: #211f1d;
  font-size: 1.27rem;
  line-height: 1.27;
}
.repression-summary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  margin-top: auto;
  padding-top: .62rem;
  border-top: 1px solid #e3dfd8;
  color: var(--red-dark);
  font-size: .87rem;
  font-weight: 760;
}
.repression-summary-action::before { display: none; }
.repression-summary-action::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
}
.repression-disclosure[open] .repression-summary-action::after { content: "−"; }
.repression-record-content {
  margin: 0;
  padding: .25rem 1rem 1.1rem;
  border-top: 1px solid #e3dfd8;
  border-left: 0;
  background: #fbfaf7;
}
.repression-record-content p { margin: .55rem 0; font-size: .96rem; line-height: 1.58; }
.repression-source { padding-top: .35rem; border-top: 1px solid #e3dfd8; }
.repression-source a { color: var(--red-dark); }
.repression-image-dialog {
  width: min(74rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: clamp(.8rem, 2.4vw, 1.5rem);
  border: 1px solid #8d8981;
  background: var(--paper-light);
  color: var(--ink);
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, .35);
}
.repression-image-dialog:not([open]) { display: none; }
.repression-image-dialog[open] { display: block; }
.repression-image-dialog::backdrop { background: rgba(18, 17, 16, .86); }
.repression-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.repression-dialog-head .section-kicker { margin: 0 0 .2rem; }
.repression-dialog-head h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.repression-dialog-close {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  padding: .45rem .75rem;
  border: 1px solid #858078;
  background: #fff;
  color: #252321;
  font: inherit;
  font-size: .9rem;
  font-weight: 740;
  cursor: pointer;
}
.repression-dialog-close span { color: var(--red-dark); font-size: 1.25rem; }
.repression-dialog-close:focus-visible { outline: 3px solid #c18a26; outline-offset: 2px; }
.repression-dialog-figure { margin: 0; }
.repression-dialog-figure img {
  display: block;
  width: 100%;
  max-height: min(74vh, 56rem);
  object-fit: contain;
  background: #292826;
}
.repression-dialog-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .65rem;
  color: #45423e;
  font-size: .9rem;
}
.repression-dialog-figure a { color: var(--red-dark); font-weight: 750; }

@media (max-width: 980px) and (min-width: 651px) {
  .repression-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .repression-page > .section-heading { grid-template-columns: 1fr; gap: .7rem; }
  .repression-page > .section-heading > p { max-width: 44rem; }
  .repression-list-heading { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 650px) {
  .repression-page { padding-inline: 1rem; }
  .repression-page h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .repression-period { grid-template-columns: auto 1fr auto; gap: .45rem; padding: .7rem .65rem; }
  .repression-period-date { font-size: .78rem; }
  .repression-period-count { grid-column: 1 / -1; justify-self: start; }
  .repression-events { grid-template-columns: 1fr; gap: .8rem; }
  .repression-image-trigger { aspect-ratio: 1.55; }
  .repression-disclosure > summary { min-height: 0; padding: .8rem .9rem .65rem; }
  .repression-record-content { padding-inline: .9rem; }
  .repression-dialog-head { align-items: center; }
  .repression-dialog-figure img { max-height: 69vh; }
  .repression-dialog-figure figcaption { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .repression-record,
  .repression-image-trigger img { transition: none; }
}

/* Interactive biographies of the seven chiefs */
.portrait-page { overflow: clip; }
.portrait-page > .breadcrumbs,
.portrait-page > section,
.portrait-page > .portrait-pagination { width: min(100% - 3rem, 1200px); margin-inline: auto; }
.portrait-page > .breadcrumbs { padding-top: 1rem; }
.portrait-hero { display: grid; grid-template-columns: minmax(17rem, .74fr) minmax(0, 1.26fr); gap: clamp(1.6rem, 5vw, 5rem); align-items: center; padding-block: clamp(2rem, 4vw, 4.2rem) clamp(3.5rem, 7vw, 6.5rem); }
.portrait-art { position: relative; margin: 0; padding: .7rem; border: 1px solid #4a4640; background: #20201f; box-shadow: .8rem .8rem 0 rgba(166, 31, 43, .14); }
.portrait-art img { display: block; width: 100%; height: clamp(24rem, 48vw, 40rem); object-fit: contain; background: #282725; }
.portrait-art figcaption { padding: .6rem .2rem .05rem; color: #e4e1db; font-size: .78rem; line-height: 1.5; }
.portrait-art figcaption a { color: #f3a6aa; text-underline-offset: .16em; }
.portrait-intro .section-kicker { color: var(--red); }
.portrait-intro h1 { max-width: 13ch; margin-bottom: .65rem; font-size: clamp(3rem, 6vw, 5.7rem); }
.portrait-role { margin: 0 0 1rem; color: var(--red-dark); font-family: var(--serif); font-size: clamp(1.25rem, 2.25vw, 1.8rem); font-weight: 700; }
.portrait-lede { max-width: 46rem; margin-bottom: 1.25rem; color: #393632; font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.72; }
.portrait-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.portrait-facts span { padding: .4rem .65rem; border: 1px solid #c8c1b6; background: #fff; color: #393632; font-size: .82rem; font-weight: 730; }
.portrait-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; }
.portrait-actions .button { border: 1px solid var(--red); background: var(--red); color: #fff; }
.portrait-actions .button:hover, .portrait-actions .button:focus-visible { background: var(--red-dark); }
.portrait-text-link { color: #302c28; font-size: .92rem; font-weight: 750; text-underline-offset: .2em; }
.portrait-page > section:not(.portrait-hero) { padding-block: clamp(2.8rem, 5vw, 4.8rem); border-top: 1px solid var(--line); scroll-margin-top: 7rem; }
.portrait-map-section { width: 100% !important; max-width: none !important; padding-inline: max(1.5rem, calc((100vw - 1200px) / 2)); background: #e8e4dc; }
.portrait-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, .8fr); gap: 2rem; align-items: end; margin-bottom: 1.65rem; }
.portrait-section-heading .section-kicker { margin-bottom: .45rem; }
.portrait-section-heading h2 { margin: 0; }
.portrait-section-heading > p { max-width: 43rem; margin: 0; color: #514c45; line-height: 1.58; }
.portrait-map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); min-height: 29rem; border: 1px solid #c8c1b6; background: var(--paper-light); }
.portrait-map-frame { position: relative; min-height: 29rem; border-right: 1px solid #d3cec5; }
#portrait-map { position: absolute; inset: 0; min-height: 100%; background: #e7e2d9; }
#portrait-map .leaflet-tile { filter: grayscale(.45) sepia(.08) contrast(.96); }
#portrait-map .leaflet-control-attribution { font-size: .68rem; }
.portrait-map-message { position: absolute; z-index: 500; inset: auto .75rem .75rem; margin: 0; padding: .55rem .7rem; border: 1px solid #c8c1b6; background: rgba(251, 250, 247, .95); color: #393632; font-size: .86rem; }
.portrait-map-message.is-hidden { display: none; }
.portrait-map-recenter { position: absolute; z-index: 500; top: .75rem; right: .75rem; min-height: 2.5rem; padding: .45rem .7rem; border: 1px solid #736d64; background: #fff; color: #282522; font: inherit; font-size: .82rem; font-weight: 730; cursor: pointer; }
.portrait-map-recenter:hover, .portrait-map-recenter:focus-visible { border-color: var(--red); color: var(--red-dark); }
.portrait-map-aside { display: flex; max-height: 36rem; flex-direction: column; min-width: 0; }
.portrait-map-status { margin: 0; padding: .85rem 1rem; border-bottom: 1px solid #d3cec5; color: #4e4943; font-size: .84rem; font-weight: 700; line-height: 1.45; }
.portrait-map-list { overflow: auto; margin: 0; padding: 0; list-style: none; }
.portrait-map-list > li { padding: .45rem .65rem; border-bottom: 1px solid #e4e0da; }
.portrait-map-list > li:last-child { border-bottom: 0; }
.portrait-map-list button { display: grid; width: 100%; grid-template-columns: minmax(6.5rem, .34fr) minmax(0, 1fr); gap: .1rem .7rem; padding: .52rem .55rem; border: 1px solid transparent; background: transparent; color: #282522; font: inherit; text-align: left; cursor: pointer; }
.portrait-map-list button:hover, .portrait-map-list button:focus-visible, .portrait-map-list button[aria-pressed="true"] { border-color: #c4b8a6; background: #f0ede7; }
.portrait-map-date { grid-row: span 2; color: var(--red-dark); font-size: .75rem; font-weight: 780; line-height: 1.4; }
.portrait-map-list button strong { font-size: .91rem; line-height: 1.35; }
.portrait-map-list button > span:last-child { color: #5e5952; font-size: .82rem; line-height: 1.4; }
.portrait-map-list > li > p { margin: .05rem .55rem .55rem calc(34% + 1.25rem); color: #57524b; font-size: .78rem; line-height: 1.48; }
.portrait-map-popup { max-width: 18rem; color: #282522; font-family: var(--sans); font-size: .88rem; line-height: 1.45; }
.portrait-map-popup-date { margin: 0 0 .3rem; color: var(--red-dark); font-size: .77rem; font-weight: 750; }
.portrait-map-popup strong { display: block; margin-bottom: .15rem; }
.portrait-map-popup p:not(.portrait-map-popup-date) { margin: .3rem 0; }
.portrait-map-popup a { display: inline-block; margin-top: .35rem; color: var(--red-dark); font-weight: 750; text-underline-offset: .15em; }
.portrait-map-credit { margin: .65rem 0 .5rem; color: #57524b; font-size: .75rem; }
.portrait-map-credit a { color: #3e3934; }
.portrait-atlas-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: .35rem; color: var(--red-dark); font-weight: 780; text-underline-offset: .18em; }
.portrait-atlas-link span { font-size: 1.2rem; }
.portrait-network-section { background: #fbfaf7; }
.portrait-mindmap { position: relative; max-width: 76rem; min-height: 32.5rem; margin-inline: auto; border: 1px solid #d3cec5; background: radial-gradient(ellipse at center, rgba(166, 31, 43, .065) 0, rgba(166, 31, 43, .025) 25%, transparent 50%), linear-gradient(90deg, rgba(35, 32, 27, .035) 1px, transparent 1px), linear-gradient(rgba(35, 32, 27, .035) 1px, transparent 1px), #f5f2ec; background-size: auto, 32px 32px, 32px 32px, auto; }
.portrait-mindmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.portrait-mindmap-lines line { stroke: #b6afa4; stroke-width: 2; stroke-dasharray: 5 5; transition: stroke .2s ease, stroke-width .2s ease; }
.portrait-mindmap-lines line.is-active { stroke: var(--red); stroke-width: 4; stroke-dasharray: none; }
.portrait-mindmap-center { position: absolute; z-index: 1; top: 50%; left: 50%; display: flex; width: min(21%, 14rem); min-height: 7rem; flex-direction: column; align-items: center; justify-content: center; padding: .8rem; border: 2px solid var(--red); background: #201f1d; color: #fff; text-align: center; transform: translate(-50%, -50%); box-shadow: .3rem .3rem 0 rgba(166, 31, 43, .18); }
.portrait-mindmap-center span { color: #e6b5b7; font-size: .74rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.portrait-mindmap-center strong { margin-top: .25rem; font-family: var(--serif); font-size: 1.18rem; line-height: 1.18; }
.portrait-mind-node { position: absolute; z-index: 2; display: flex; width: min(29%, 18rem); min-height: 5rem; flex-direction: column; justify-content: center; padding: .75rem .9rem; border: 1px solid #c9c2b7; background: #fff; color: #282522; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease; }
.portrait-mind-node span { color: var(--red-dark); font-size: .72rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.portrait-mind-node strong { margin-top: .15rem; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; }
.portrait-mind-node:hover, .portrait-mind-node:focus-visible, .portrait-mind-node[aria-pressed="true"] { z-index: 3; border-color: var(--red); background: #fffaf7; box-shadow: .25rem .25rem 0 rgba(166, 31, 43, .16); transform: translateY(-2px); }
.portrait-mind-node--1 { top: 1%; left: 50%; transform: translateX(-50%); }
.portrait-mind-node--1:hover, .portrait-mind-node--1:focus-visible, .portrait-mind-node--1[aria-pressed="true"] { transform: translate(-50%, -2px); }
.portrait-mind-node--2 { top: 29%; left: 18%; transform: translate(-50%, -50%); }
.portrait-mind-node--3 { top: 29%; left: 82%; transform: translate(-50%, -50%); }
.portrait-mind-node--4 { top: 73%; left: 18%; transform: translate(-50%, -50%); }
.portrait-mind-node--5 { top: 73%; left: 82%; transform: translate(-50%, -50%); }
.portrait-mind-node--6 { top: 99%; left: 50%; transform: translate(-50%, -100%); }
.portrait-mind-node--2:hover, .portrait-mind-node--2:focus-visible, .portrait-mind-node--2[aria-pressed="true"], .portrait-mind-node--3:hover, .portrait-mind-node--3:focus-visible, .portrait-mind-node--3[aria-pressed="true"], .portrait-mind-node--4:hover, .portrait-mind-node--4:focus-visible, .portrait-mind-node--4[aria-pressed="true"], .portrait-mind-node--5:hover, .portrait-mind-node--5:focus-visible, .portrait-mind-node--5[aria-pressed="true"] { transform: translate(-50%, calc(-50% - 2px)); }
.portrait-mind-node--6:hover, .portrait-mind-node--6:focus-visible, .portrait-mind-node--6[aria-pressed="true"] { transform: translate(-50%, calc(-100% - 2px)); }
.portrait-mind-detail { display: grid; grid-template-columns: minmax(10rem, .28fr) minmax(12rem, .48fr) minmax(15rem, 1fr) auto; gap: .45rem 1rem; align-items: center; max-width: 76rem; margin: .75rem auto 0; padding: 1rem 1.15rem; border-left: 3px solid var(--red); background: #e9e5de; }
.portrait-mind-detail > p:first-child { margin: 0; color: var(--red-dark); font-size: .76rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.portrait-mind-detail h3 { margin: 0; font-size: 1.3rem; }
.portrait-mind-detail > p:nth-of-type(2) { margin: 0; color: #4e4943; font-size: .9rem; line-height: 1.48; }
.portrait-mind-detail a { color: var(--red-dark); font-weight: 780; text-underline-offset: .17em; }
.portrait-noscript { margin: .85rem 0 0; color: #514c45; font-size: .9rem; }
.portrait-timeline-section { background: #e8e4dc; }
.portrait-timeline, .portrait-command-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.portrait-milestone, .portrait-command-card { position: relative; min-width: 0; padding: 1.15rem 1.25rem 1.2rem; border: 1px solid #d0c9be; background: #fbfaf7; }
.portrait-milestone { padding-left: 4.25rem; }
.portrait-milestone-number { position: absolute; top: 1rem; left: 1.15rem; color: #c9bfb1; font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.portrait-milestone time, .portrait-command-date { display: block; margin-bottom: .35rem; color: var(--red-dark); font-size: .8rem; font-weight: 780; letter-spacing: .045em; }
.portrait-milestone h3, .portrait-command-card h3 { margin-bottom: .4rem; font-size: 1.35rem; }
.portrait-milestone p, .portrait-command-card p:not(.portrait-command-date) { margin-bottom: .7rem; color: #4e4943; font-size: .93rem; line-height: 1.56; }
.portrait-milestone a, .portrait-command-card a { color: var(--red-dark); font-size: .87rem; font-weight: 770; text-underline-offset: .18em; }
.portrait-command-section { background: #f5f2ec; }
.portrait-command-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portrait-command-card { border-top: 3px solid var(--red); }
.portrait-command-note { max-width: 60rem; margin: 1rem 0 0; padding: .75rem 1rem; border-left: 2px solid #8e887f; color: #514c45; font-size: .88rem; }
.portrait-sources-section { background: #242321; color: #f8f6f2; }
.portrait-sources-section .section-kicker { color: #f08b91; }
.portrait-sources-section .portrait-section-heading > p { color: #ddd9d2; }
.portrait-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.portrait-source-grid > li { padding: 1rem; border: 1px solid #56524c; background: #2d2c29; }
.portrait-source-grid > li > span { display: inline-block; margin-bottom: .45rem; color: #f08b91; font-size: .73rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.portrait-source-grid h3 { margin: 0 0 .4rem; font-size: 1.12rem; }
.portrait-source-grid h3 a { color: #fff; text-underline-offset: .17em; }
.portrait-source-grid p { margin: 0; color: #ddd9d2; font-size: .84rem; line-height: 1.5; }
.portrait-pagination { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding-block: 1.6rem 3rem; }
.portrait-pagination > a { display: flex; min-height: 6rem; flex-direction: column; justify-content: center; padding: .8rem 1rem; border: 1px solid #c8c1b6; background: #fbfaf7; text-decoration: none; }
.portrait-pagination > a:hover, .portrait-pagination > a:focus-visible { border-color: var(--red); }
.portrait-pagination > a span { color: var(--red-dark); font-size: .77rem; font-weight: 750; }
.portrait-pagination > a strong { font-family: var(--serif); font-size: 1.15rem; }
.portrait-pagination > a:nth-child(2) { text-align: center; background: #201f1d; color: #fff; }
.portrait-pagination > a:nth-child(2) span { color: #f08b91; }
.war-map-figure-filter { display: flex; min-width: 14rem; flex: .55 1 14rem; flex-direction: column; gap: .35rem; color: #3b3732; font-size: .8rem; font-weight: 750; }
.war-map-figure-filter select { min-height: 2.7rem; padding: .45rem .65rem; border: 1px solid #aaa399; border-radius: 0; background: #fff; color: #292622; font: inherit; font-weight: 580; }
.war-map-figure-filter select:focus-visible { outline: 3px solid rgba(166, 31, 43, .22); border-color: var(--red); }
.war-map-detail-figures ul { display: grid; gap: .4rem; margin: 0 0 .7rem; padding: 0; list-style: none; }
.war-map-detail-figures li { display: grid; gap: .08rem; padding: .42rem .5rem; border-left: 2px solid #c6b7a7; background: #f1eee8; }
.war-map-figure-link { color: var(--red-dark); font-size: .8rem; font-weight: 770; text-underline-offset: .15em; }
.war-map-figure-relation { color: #514c45; font-size: .74rem; line-height: 1.4; }
.chief-profile-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .25rem 0 .8rem; padding: .55rem .7rem; border: 1px solid #bcaea0; background: #f5f2ec; color: var(--red-dark); font-size: .84rem; font-weight: 780; text-decoration: none; }
.chief-profile-link:hover, .chief-profile-link:focus-visible { border-color: var(--red); background: #fff6f3; }
.chief-profile-link span { font-size: 1.1rem; }
.chief-card .chief-profile-link + .source-link { margin-top: 0; }

@media (max-width: 900px) {
  .portrait-section-heading { grid-template-columns: 1fr; gap: .55rem; }
  .portrait-map-layout { grid-template-columns: minmax(0, 1fr); }
  .portrait-map-frame { min-height: 25rem; border-right: 0; border-bottom: 1px solid #d3cec5; }
  .portrait-map-aside { max-height: 24rem; }
  .portrait-command-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait-mind-detail { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); }
  .portrait-mind-detail > p:nth-of-type(2) { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .portrait-page > .breadcrumbs, .portrait-page > section, .portrait-page > .portrait-pagination { width: calc(100% - 2rem); }
  .portrait-page > .breadcrumbs { padding-top: .8rem; }
  .portrait-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1rem 2.8rem; }
  .portrait-art { max-width: 27rem; }
  .portrait-art img { height: min(112vw, 31rem); }
  .portrait-intro h1 { max-width: 12ch; font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .portrait-map-section { width: 100% !important; padding-inline: 1rem; }
  .portrait-page > section:not(.portrait-hero) { padding-block: 2.55rem; }
  .portrait-map-frame { min-height: 21rem; }
  .portrait-map-aside { max-height: 25rem; }
  .portrait-mindmap { display: grid; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .65rem; }
  .portrait-mindmap-lines { display: none; }
  .portrait-mindmap-center { position: static; width: auto; min-height: 5rem; grid-column: 1 / -1; transform: none; }
  .portrait-mind-node { position: static; width: auto; min-height: 5rem; padding: .65rem; transform: none; }
  .portrait-mind-node--1:hover, .portrait-mind-node--1:focus-visible, .portrait-mind-node--1[aria-pressed="true"], .portrait-mind-node--2:hover, .portrait-mind-node--2:focus-visible, .portrait-mind-node--2[aria-pressed="true"], .portrait-mind-node--3:hover, .portrait-mind-node--3:focus-visible, .portrait-mind-node--3[aria-pressed="true"], .portrait-mind-node--4:hover, .portrait-mind-node--4:focus-visible, .portrait-mind-node--4[aria-pressed="true"], .portrait-mind-node--5:hover, .portrait-mind-node--5:focus-visible, .portrait-mind-node--5[aria-pressed="true"], .portrait-mind-node--6:hover, .portrait-mind-node--6:focus-visible, .portrait-mind-node--6[aria-pressed="true"] { transform: translateY(-2px); }
  .portrait-mind-node strong { font-size: .98rem; }
  .portrait-mind-detail { grid-template-columns: 1fr; gap: .35rem; padding: .85rem; }
  .portrait-mind-detail > p:nth-of-type(2) { grid-column: auto; }
  .portrait-timeline, .portrait-command-list, .portrait-source-grid { grid-template-columns: 1fr; }
  .portrait-pagination { grid-template-columns: 1fr; }
  .portrait-pagination > a:nth-child(2) { text-align: left; }
  .portrait-map-list button { grid-template-columns: minmax(5.5rem, .4fr) minmax(0, 1fr); gap: .1rem .55rem; }
  .portrait-map-list > li > p { margin-left: calc(40% + .6rem); }
  .war-map-figure-filter { min-width: 0; flex-basis: 100%; }
  .chief-profile-link { min-height: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-mind-node, .portrait-mindmap-lines line { transition: none; }
}
