/* ============================================================
   1. RESET AND BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-parchment);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--color-navy);
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   2. CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Colors */
  --color-parchment:   #F5F0E8;
  --color-text:        #2C2C2C;
  --color-text-light:  #555555;
  --color-gold:        #C9A84C;
  --color-navy:        #1F3864;
  --color-rust:        #8B3A2A;
  --color-border:      #D4C9B0;

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Serif 4', Georgia, serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  /* Layout */
  --max-width:     900px;
  --gutter:        2rem;
  --section-gap:   3.5rem;

  /* Nav */
  --nav-height:    64px;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-top: var(--section-gap);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1.3em;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3em;
}

li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.1em;
}

blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.75rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px;
  border-radius: 2px;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  background: #2C2C2C;
  color: #F5F0E8;
  padding: 1.25rem 1.5rem;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1.5rem 0;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--section-gap) 0;
}

/* ============================================================
   4. LAYOUT — PAGE SHELL, NAV, MAIN, FOOTER
   ============================================================ */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-navy);
  display: flex;
  align-items: center;
}

.site-main {
  flex: 1;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1.5rem var(--gutter);
}

.site-footer a {
  color: var(--color-gold);
}

.content-wrap {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ============================================================
   5. NAVIGATION (STICKY HEADER, HAMBURGER)
   ============================================================ */

.nav-inner {
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-brand:hover,
.nav-brand:focus {
  color: var(--color-gold);
}

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links a[aria-current="page"] {
  color: var(--color-gold);
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu open state */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-navy);
  padding: 0.5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav-open .nav-links a {
  padding: 0.65rem 1.5rem;
  border-radius: 0;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Make nav a flex row so lang-switcher and nav-links sit side by side */
#main-nav {
  display: flex;
  align-items: center;
}

/* Language switcher (nav bar) */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 4px 0;
  border-bottom: 2px solid var(--color-gold);
  transition: color 0.15s;
}

.lang-toggle:hover {
  color: #fff;
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.lang-notice {
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  padding: 6px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

/* ============================================================
   6. HOME PAGE — HERO, NAVIGATION CARDS
   ============================================================ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem var(--gutter);
  overflow: hidden;
  background: var(--color-navy);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  margin-top: -2.5rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-intro {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-epigraph {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding-top: 2rem;
}

.hero-epigraph blockquote {
  border-left-color: var(--color-gold);
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

.nav-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: var(--section-gap);
}

.nav-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: 2px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: border-top-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.nav-card:hover,
.nav-card:focus {
  border-top-color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: var(--color-text);
}

.nav-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.nav-card h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}

.nav-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   7. LETTER VIEWER — TWO-COLUMN GRID, THUMBNAILS
   ============================================================ */

.letter-viewer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.letter-image-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.letter-active-image {
  position: relative;
  background: var(--color-navy);
  border-radius: 2px;
  overflow: hidden;
}

.letter-active-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.letter-active-image a {
  display: block;
}

.thumbnail-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.thumb-btn {
  flex-shrink: 0;
  width: 72px;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s;
}

.thumb-btn img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.thumb-btn:hover img,
.thumb-btn:focus img {
  opacity: 1;
}

.thumb-btn[aria-current="true"],
.thumb-btn.active {
  border-color: var(--color-gold);
}

.thumb-btn[aria-current="true"] img,
.thumb-btn.active img {
  opacity: 1;
}

.thumb-btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.letter-text-panel {
  display: flex;
  flex-direction: column;
}

.transcription-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  border-left: 2px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.letter-text {
  font-size: 1rem;
  line-height: 1.85;
}

.letter-text[lang="fr"] {
  font-style: italic;
}

/* ============================================================
   8. LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover,
.lightbox-close:focus {
  background: rgba(255,255,255,0.3);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   9. LANGUAGE TABS
   ============================================================ */

.lang-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.lang-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--color-text-light);
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.lang-tab:hover {
  color: var(--color-navy);
}

.lang-tab[aria-selected="true"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
  font-weight: 600;
}

.lang-tab:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.tabpanel {
  display: block;
}

.tabpanel[hidden] {
  display: none;
}

/* ============================================================
   10. HISTORICAL CONTEXT — PULL-QUOTES, TIMELINE ASIDE
   ============================================================ */

.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--color-navy);
  border-top: 2px solid var(--color-gold);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  margin: 2.5rem 0;
  line-height: 1.45;
}

.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-style: normal;
  margin-top: 0.75rem;
}

.context-section {
  margin-bottom: var(--section-gap);
}

.timeline-aside {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-navy);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 2px;
}

.timeline-aside-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.75rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.timeline-list li:last-child {
  border-bottom: none;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-gold);
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 1px;
}

/* ============================================================
   11. CAMPAIGN PAGE
   ============================================================ */

.highlight-passage {
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 0.97rem;
  line-height: 1.7;
}

.highlight-passage cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.6rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.download-card:hover,
.download-card:focus {
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--color-text);
}

.download-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--color-navy);
}

.download-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.25rem;
}

.download-card h3 {
  font-size: 1rem;
  color: var(--color-navy);
  margin: 0 0 0.2rem;
}

.download-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================================
   12. RESEARCH GUIDE — INFO BOXES, PRE BLOCK
   ============================================================ */

.info-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 2px 2px 0;
}

.info-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-navy);
  display: block;
  margin-bottom: 0.6rem;
}

.info-box p:last-child,
.info-box ul:last-child {
  margin-bottom: 0;
}

.research-step {
  counter-increment: research-steps;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.research-step:last-of-type {
  border-bottom: none;
}

.research-steps {
  counter-reset: research-steps;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-number::before {
  content: counter(research-steps, decimal-leading-zero);
}

/* ============================================================
   13. DOWNLOADS PAGE
   ============================================================ */

.downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* (reuses .download-card from §11) */

/* ============================================================
   14. ABOUT PAGE
   ============================================================ */

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--section-gap);
}

/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-small {
  font-size: 0.85rem;
}

.text-muted {
  color: var(--color-text-light);
}

.text-gold {
  color: var(--color-gold);
}

.text-navy {
  color: var(--color-navy);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.page-title-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-gap);
}

.page-title-block h1 {
  margin-bottom: 0.4rem;
}

/* ============================================================
   16. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* 700px: two-column letter viewer activates, nav links visible */
@media (min-width: 700px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: static;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  /* nav-open class has no effect at this width */
  .nav-open .nav-links {
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav-open .nav-links a {
    padding: 0.4rem 0.75rem;
  }

  .nav-cards {
    grid-template-columns: 1fr 1fr;
  }

  .letter-viewer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .letter-image-panel,
  .letter-text-panel {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    max-height: calc(100vh - var(--nav-height) - 3rem);
    overflow-y: auto;
  }

  .thumbnail-strip {
    flex-direction: column;
    overflow-x: visible;
    gap: 0.5rem;
  }

  .thumb-btn {
    width: 100%;
  }

  .timeline-aside {
    float: right;
    width: 240px;
    margin-left: 1.5rem;
    margin-right: 0;
  }
}

/* 900px: full max-width layout */
@media (min-width: 900px) {
  body {
    font-size: 19px;
  }

  .nav-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    min-height: 80vh;
  }
}

/* Mobile (<600px): remove extra margin on lang switcher */
@media (max-width: 600px) {
  .lang-switcher {
    margin-left: 0.75rem;
  }
}

/* Print: hide language switcher and notice; enforce hidden data-lang elements */
@media print {
  .lang-switcher,
  .lang-notice,
  [data-lang][hidden] { display: none !important; }
}
