/* Shared masthead: the supplied company mark and an editorial wordmark. */
.site-header { border-bottom: 0; }
.header-inner.wrap { width: min(1380px, calc(100% - 96px)); }
.header-inner { display: grid; grid-template-columns: minmax(300px, 1fr) auto auto; min-height: 140px; gap: 30px; position: relative; }
.brand { margin: 0; gap: 24px; min-width: 0; flex-shrink: 1; }
.brand img { width: 114px; height: auto; flex: 0 0 114px; filter: none; mix-blend-mode: multiply; }
[data-theme=dark] .brand img { filter: invert(1); mix-blend-mode: screen; }
.brand-wordmark { min-width: 0; }
.brand strong { font: 400 36px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.03em; white-space: nowrap; }
.brand small { font-size: 12px; line-height: 1.45; letter-spacing: 0; max-width: 330px; margin-top: 3px; }
.desktop-nav { justify-content: flex-end; gap: 16px; font: 15px/1.3 Georgia, 'Times New Roman', serif; }
.desktop-nav a { padding-block: 12px; border-bottom: 2px solid transparent; }
.desktop-nav a[aria-current] { border-color: #951a22; color: #951a22; }
.header-controls { display: flex; gap: 12px; align-items: center; margin: 0; }
.language-picker { position: relative; z-index: 40; font-size: 13px; }
.language-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; min-height: 44px; list-style: none; cursor: pointer; border: 1px solid transparent; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { border-color: var(--line); background: var(--panel); }
.language-picker[open] summary { border-color: var(--accent); }
.language-options { position: absolute; top: calc(100% + 5px); left: 0; min-width: 100%; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 9px 24px #00000012; padding: 5px; }
.language-options a { display: block; min-height: 42px; padding: 8px 12px; white-space: nowrap; }
.language-options a[aria-current] { background: var(--panel); color: var(--ink); }
.language-options a:hover { background: var(--panel); }
.control-icon { display: block; flex-shrink: 0; }
.theme-toggle { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); }
.theme-toggle:after { content: none; }
.theme-toggle:hover { border-color: var(--accent); background: var(--panel); }
.theme-toggle img { width: 23px; height: 23px; }
[data-theme=dark] .control-icon { filter: invert(1); }
[data-theme=dark] .desktop-nav a[aria-current] { color: #eca6a9; border-color: #eca6a9; }

/* History is an editorial opening followed by the complete searchable record. */
@media (min-width: 1201px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 6px 30px; padding-block: 18px 4px; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-controls { grid-column: 2; grid-row: 1; }
  .desktop-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; gap: 30px; }
}
.history-page { --accent: #951a22; --accent-hover: #75131a; }
[data-theme=dark] .history-page { --accent: #eca6a9; --accent-hover: #f4bfc1; }
.history-page .wrap { width: min(1380px, calc(100% - 96px)); }
.history-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; align-items: center; padding-block: 10px 35px; }
.history-date { display: flex; align-items: center; gap: 13px; font: 16px Georgia, serif; letter-spacing: .12em; margin-bottom: 17px; }
.history-date:before { content: ''; width: 45px; height: 1px; background: var(--muted); }
.history-date span { color: var(--muted); }
.history-hero h1 { font: 400 clamp(3.1rem, 5.2vw, 5.2rem)/.96 Georgia, 'Times New Roman', serif; letter-spacing: -.045em; }
.history-hero h1 em { display: block; font-style: normal; color: var(--accent); }
.history-lead { margin-top: 28px; max-width: 500px; font: 21px/1.35 Georgia, 'Times New Roman', serif; color: var(--muted); }
.history-hero .actions { align-items: center; gap: 30px; margin-top: 26px; }
.history-hero .button { background: var(--accent); border-color: var(--accent); color: var(--paper); font: 18px Georgia, serif; padding: 13px 24px; gap: 35px; }
.history-contact { border-bottom: 1px solid var(--ink); padding-bottom: 5px; font: 16px Georgia, serif; }
.history-hero-art { min-width: 0; }
.history-hero-art img { mix-blend-mode: multiply; }
.history-hero-art figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 8px 12px 0; font: 11px/1.5 'Segoe UI', sans-serif; text-align: left; }
.handwritten { font: 20px/1.2 'Segoe Print', 'Comic Sans MS', cursive; transform: rotate(-5deg); }
[data-theme=dark] .history-hero-art img { mix-blend-mode: screen; }
.history-chapters { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; padding: 0 0 30px; }
.history-chapter { display: flex; align-items: start; gap: 24px; border-top: 1px solid var(--muted); padding: 22px 22px 0 0; position: relative; }
.history-chapter:before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); outline: 5px solid var(--paper); }
.history-chapter:first-child:before, .history-chapter[aria-current]:before { background: var(--accent); }
.chapter-year { font: 32px/1.1 Georgia, serif; letter-spacing: -.035em; }
.history-chapter:first-child .chapter-year, .history-chapter[aria-current] .chapter-year { color: var(--accent); }
.chapter-copy { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 185px; padding-top: 3px; }
.chapter-copy strong { display: block; font-weight: 400; }
.chapter-copy>span { display: block; }
.history-spotlight { display: grid; grid-template-columns: 1.1fr .9fr; gap: 45px; border-top: 1px solid var(--line); padding-block: 34px 45px; }
.spotlight-heading .eyebrow { border-left: 4px solid var(--accent); padding-left: 16px; letter-spacing: .18em; font-weight: 400; margin-bottom: 18px; }
.spotlight-heading>div { display: flex; align-items: start; gap: 25px; }
.spotlight-year { font: 400 clamp(4rem, 6.3vw, 6.2rem)/.95 Georgia, serif; color: var(--accent); letter-spacing: -.06em; }
.spotlight-heading h2 { font: 400 48px/1 Georgia, serif; letter-spacing: -.035em; margin: 0 0 8px; }
.spotlight-heading>div>div { min-width: 0; }
.spotlight-heading h2 { overflow-wrap: anywhere; }
.spotlight-heading p:not(.eyebrow) { font: 18px/1.3 Georgia, serif; color: var(--muted); max-width: 350px; }
.spotlight-description { border-left: 1px solid var(--line); padding-left: 45px; font: 17px/1.5 Georgia, serif; color: var(--muted); }
.spotlight-description .text-link { font: 16px Georgia, serif; }
.chronology-heading { border-top: 1px solid var(--line); padding-block: 40px 30px; }
.chronology-heading h2 { font: 400 38px/1.1 Georgia, serif; }
.chronology-heading .source-note { margin-top: 13px; }
.history-page .year-group h2 { color: var(--accent); }

@media (max-width: 1200px) {
  .header-inner { gap: 20px; grid-template-columns: minmax(275px, 1fr) auto auto; }
  .brand { gap: 16px; }
  .brand img { width: 92px; flex-basis: 92px; }
  .brand strong { font-size: 29px; }
  .brand small { font-size: 10px; max-width: 250px; }
  .desktop-nav { gap: 20px; font-size: 15px; }
  .header-controls { gap: 5px; }
  .history-lead { font-size: 19px; }
  .history-chapter { gap: 16px; padding-right: 18px; }
  .chapter-copy { font-size: 11px; }
  .history-hero .actions { gap: 20px; }
  .history-hero .button { font-size: 16px; padding-inline: 18px; }
}
@media (max-width: 1200px) {
  .header-inner.wrap, .history-page .wrap { width: calc(100% - 64px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 18px; min-height: 130px; padding-block: 22px 16px; }
  .brand { grid-column: 1; grid-row: 1; }
  .desktop-nav { display: none; }
  .header-controls { grid-column: 2; grid-row: 1; }
  .mobile-nav { display: block; grid-column: 1 / -1; grid-row: 2; padding: 0; border: 0; width: auto; font-size: 14px; }
  .mobile-nav summary { padding: 10px 0; min-height: 44px; width: max-content; }
  .mobile-nav nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
  .mobile-nav nav a { padding-block: 10px; }
  .history-hero { gap: 25px; }
  .history-hero h1 { font-size: clamp(3rem, 5.4vw, 4rem); }
  .history-chapter { display: block; }
  .chapter-copy { font-size: 12px; margin-top: 12px; }
  .spotlight-description { padding-left: 28px; }
  .history-spotlight { gap: 28px; }
  .spotlight-heading>div { gap: 18px; }
}
@media (max-width: 700px) {
  .header-inner.wrap, .history-page .wrap { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; padding-block: 20px 12px; }
  .brand { grid-column: 1 / -1; grid-row: 1; gap: 18px; }
  .brand img { width: 86px; flex-basis: 86px; }
  .brand strong { font-size: 29px; }
  .brand small { font-size: 11px; line-height: 1.35; max-width: 260px; }
  .header-controls { grid-column: 2; grid-row: 2; gap: 10px; }
  .mobile-nav { grid-column: 1; grid-row: 2; }
  .mobile-nav nav { position: absolute; z-index: 35; left: 0; right: 0; top: 100%; background: var(--paper); grid-template-columns: 1fr 1fr; padding: 14px 18px; border: 1px solid var(--line); box-shadow: 0 12px 20px #0000000c; }
  .language-picker { font-size: 13px; }
  .theme-toggle { width: 44px; font-size: inherit; padding: 0; }
  .history-hero { display: flex; flex-direction: column; gap: 30px; align-items: stretch; padding-top: 35px; }
  .history-hero h1 { font-size: clamp(2.85rem, 9.5vw, 4rem); max-width: 560px; }
  .history-date { font-size: 13px; }
  .history-lead { font-size: 19px; margin-top: 24px; }
  .history-hero .actions { gap: 22px; }
  .history-hero .button { font-size: 16px; }
  .history-contact { font-size: 15px; }
  .history-hero-art { margin-inline: -8px; }
  .history-hero-art figcaption { margin-inline: 10px; }
  .handwritten { font-size: 16px; }
  .history-chapters { grid-template-columns: 1fr; margin-top: 5px; padding-bottom: 30px; }
  .history-chapter { display: grid; grid-template-columns: 75px 1fr; gap: 18px; border-top: 0; border-left: 1px solid var(--muted); padding: 0 0 28px 23px; margin-left: 5px; }
  .history-chapter:last-child { padding-bottom: 0; }
  .history-chapter:before { top: 8px; left: -5px; }
  .chapter-year { font-size: 29px; }
  .chapter-copy { font-size: 13px; max-width: none; margin: 0; padding: 0; }
  .history-spotlight { display: block; padding-block: 28px 32px; }
  .spotlight-heading .eyebrow { font-size: 10px; }
  .spotlight-heading>div { gap: 24px; }
  .spotlight-year { font-size: 63px; }
  .spotlight-heading h2 { font-size: 35px; }
  .spotlight-heading>div { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; }
  .spotlight-heading h2 { font-size: clamp(25px, 6.5vw, 35px); }
  .spotlight-year { font-size: 48px; }
  .spotlight-heading p:not(.eyebrow) { font-size: 16px; }
  .spotlight-description { border: 0; border-top: 1px solid var(--line); padding: 23px 0 0; margin-top: 24px; font-size: 17px; }
  .chronology-heading { padding-top: 28px; }
  .chronology-heading h2 { font-size: 32px; }
}
@media (max-width: 380px) {
  .brand { gap: 13px; }
  .brand img { width: 70px; flex-basis: 70px; }
  .brand strong { font-size: 25px; }
  .brand small { font-size: 10px; }
  .history-hero h1 { font-size: 2.7rem; }
  .spotlight-heading>div { gap: 18px; }
  .spotlight-year { font-size: 44px; }
}
