/* GHK-Cu DR — Timeline Horizontal Corporativo
   Palette: oxidized teal #134E5E primary, copper #B87333 accent,
   patina #3F8C8E secondary, cool oxide-paper #F4F7F8 ground.
*/

:root {
  --primary: #134E5E;
  --primary-50: #E4EEF1;
  --primary-100: #C2DAE0;
  --primary-300: #6FA0AE;
  --primary-500: #134E5E;
  --primary-700: #0B3543;
  --primary-900: #061F28;

  --copper: #B87333;
  --copper-50: #F6ECE1;
  --copper-100: #ECD3BD;
  --copper-300: #D49D6A;
  --copper-500: #B87333;
  --copper-700: #8A5424;
  --copper-900: #523014;

  --patina: #3F8C8E;
  --patina-50: #E7F1F1;
  --patina-300: #7FB3B5;
  --patina-500: #3F8C8E;
  --patina-700: #2A6062;

  --neutral-0: #FFFFFF;
  --neutral-50: #F4F7F8;
  --neutral-100: #E8EDEF;
  --neutral-200: #D3DBDE;
  --neutral-300: #B3BFC4;
  --neutral-500: #6A7780;
  --neutral-700: #3D484F;
  --neutral-900: #1F2933;

  --bg: #F4F7F8;
  --surface: #FFFFFF;
  --surface-subtle: #E8EDEF;
  --surface-inverse: #0B3543;
  --text: #1F2933;
  --text-muted: #3D484F;
  --text-dim: #6A7780;
  --text-on-dark: #F4F7F8;
  --text-on-primary: #FFFFFF;
  --text-on-copper: #FFFFFF;

  --rule: #D3DBDE;
  --rule-strong: #134E5E;
  --rule-copper: #B87333;

  --max-width: 78rem;
  --content-width: 44rem;
  --comparison-width: 68rem;
  --container-px: clamp(1rem, 3vw, 2.25rem);

  --font-heading: 'Space Grotesk', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  --radius-button: 4px;
  --radius-card: 4px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; }
button { font: inherit; cursor: pointer; }

/* Typography */
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: clamp(2rem, 4.25vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 2.75vw, 2.125rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.375rem;
  letter-spacing: -0.005em;
  font-weight: 500;
  margin-top: 1.75rem;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

p { margin: 0.85em 0; max-width: 60ch; }
.wide p { max-width: none; }

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
a:hover { color: var(--copper-700); border-bottom-color: var(--copper); }

ul, ol { padding-left: 1.5rem; }
li { margin: 0.35em 0; }

sup.cite { font-size: 0.7em; vertical-align: super; line-height: 0; }
sup.cite a { border-bottom: none; color: var(--primary); padding: 0 0.1em; }
sup.cite a:hover { color: var(--copper-700); }

em { font-style: italic; }
strong { font-weight: 600; }

code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--surface-subtle);
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  padding: 0.125rem 0.5rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container-reading { max-width: calc(var(--content-width) + 2 * var(--container-px)); }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 1rem 0;
}

.eyebrow-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--copper);
}

/* Header / masthead */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--neutral-200);
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--copper);
  flex-shrink: 0;
}

.brand-text { line-height: 1.1; }

.site-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--neutral-900);
  border-bottom: none;
}
.site-brand:hover { color: var(--primary); border-bottom: none; }

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-700);
  border-bottom: none;
  padding-bottom: 6px;
  position: relative;
}

.site-nav a:hover { color: var(--primary); border-bottom: none; }

.site-nav a.is-active {
  color: var(--neutral-900);
}
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--copper);
}

.masthead-chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  color: var(--neutral-900);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Horizontal timeline strip */
.timeline-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--neutral-200);
  padding: 0.5rem 0 1rem;
}

.timeline-track {
  position: relative;
  min-height: 56px;
  padding: 1rem 0 0.75rem;
}

.timeline-baseline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
}

.timeline-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-node {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-node-year {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--neutral-900);
  margin-bottom: 0.4rem;
}

.timeline-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--patina);
  border: none;
  padding: 0;
  display: block;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 240ms ease-out, transform 240ms ease-out, box-shadow 200ms ease-out;
}

.timeline-node-dot.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.timeline-node[data-kind="copper"] .timeline-node-dot { background: var(--copper); }

.timeline-node.is-current .timeline-node-dot {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-node-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.3;
  max-width: 7rem;
  transition: color 200ms ease-out;
}

.timeline-node a {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: none;
  text-decoration: none;
  color: inherit;
}
.timeline-node a:hover .timeline-node-label {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.timeline-node a:focus { outline: none; }
.timeline-node a:focus-visible .timeline-node-dot {
  outline: 2.5px solid var(--copper);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .timeline-node-dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* Main */
main { padding: 2.5rem 0 4rem; }

article > section + section { margin-top: 2.5rem; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.hero-lead { max-width: 36rem; }

.hero h1 { margin-bottom: 0.5rem; }

.hero-underline {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin: 1.25rem 0 1.5rem;
}

.hero-lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--neutral-700);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* KPI quadrant */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.1rem;
}

.kpi-year {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--neutral-900);
  line-height: 1.1;
}

.kpi-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin-top: 0.5rem;
}

.kpi-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 58% 1fr;
    gap: 2.5rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hero rule */
.hero-rule {
  border: 0;
  border-top: 2px solid var(--primary);
  margin: 2.5rem 0;
}

/* Section break with section number */
.section-break {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 3rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
}

.section-break-mark {
  width: 10px;
  height: 10px;
  background: var(--copper);
  flex-shrink: 0;
}

.section-break-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* H2 with primary underbar */
.section-heading {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--primary);
  margin-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-button);
  padding: 0.875rem 1.75rem;
  text-decoration: none;
  border-bottom: none;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}
.btn-primary:hover { background: var(--primary-700); color: var(--text-on-primary); border-bottom: none; }
.btn-primary:active { background: var(--primary-900); }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--neutral-300);
  color: var(--neutral-900);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  border-bottom: 1.5px solid var(--primary);
}

.btn:focus { outline: none; }
.btn:focus-visible {
  outline: 2.5px solid var(--copper);
  outline-offset: 3px;
  box-shadow: 0 0 0 2.5px var(--bg);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

/* Milestone card */
.milestone {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  padding: 1.5rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: background-color 200ms ease-out;
  position: relative;
}

.milestone:hover { background: var(--primary-50); }

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.milestone-year-block {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.milestone-year {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--copper-700);
  text-transform: uppercase;
}
.milestone[data-kind="patina"] .milestone-year { color: var(--patina-700); }

.milestone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  display: inline-block;
}
.milestone[data-kind="patina"] .milestone-dot { background: var(--patina); }

.milestone-chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}

.milestone-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--neutral-900);
  letter-spacing: -0.005em;
  margin: 0 0 0.5rem;
}

.milestone-rule {
  border: 0;
  border-top: 1px solid var(--neutral-200);
  margin: 0.75rem 0 1rem;
}

.milestone-body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.milestone-body p { max-width: none; }

.milestone-citation {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--neutral-100);
}

/* Callouts */
.callout {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-left: 4px solid var(--copper);
  border-radius: 4px;
  padding: 1.1rem 1.25rem 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin-bottom: 0.5rem;
}

.callout p { margin: 0; max-width: none; }

.callout-method { border-left-color: var(--patina); }
.callout-method .callout-eyebrow { color: var(--patina-700); }

/* Tables */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.data-table-caption {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--primary);
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
}

.data-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--neutral-900);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--primary);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
  color: var(--text);
}

.data-table td.num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Figures */
figure {
  margin: 2rem 0;
}

figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  background: var(--surface);
}

figcaption {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  align-items: baseline;
}

.figure-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-700);
  flex-shrink: 0;
}

.figure-desc {
  line-height: 1.45;
}

/* FAQ */
.faq-list { margin-top: 1.5rem; }

.faq-item {
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--neutral-900);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--copper);
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }

.faq-item[open] summary { color: var(--primary); }

.faq-answer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--neutral-100);
  color: var(--text);
}
.faq-answer p { max-width: none; }

/* References list */
.references-list {
  list-style: none;
  padding: 0;
  counter-reset: ref;
  margin-top: 1.5rem;
}

.references-list li {
  counter-increment: ref;
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 0.9375rem;
  line-height: 1.55;
  scroll-margin-top: 9rem;
}

.references-list li::before {
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--copper-700);
  letter-spacing: 0.04em;
}

.references-list li:target {
  background: var(--copper-50);
}

.ref-meta {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.ref-meta a {
  color: var(--primary);
  border-bottom: 1px solid var(--neutral-200);
  word-break: break-all;
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: 4px;
  padding: 1.75rem;
  margin: 1.5rem 0;
  max-width: 36rem;
}

.contact-form label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--neutral-900);
  margin: 0.75rem 0 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.contact-form textarea { min-height: 8rem; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2.5px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--primary);
}

.contact-form .btn { margin-top: 1rem; }

/* Footer */
.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  margin-top: 4rem;
  border-top: 2px solid var(--copper);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin: 0 0 0.75rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.45rem 0; }

.footer-col a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-on-dark);
  border-bottom: 1px solid transparent;
}
.footer-col a:hover {
  color: var(--copper-300);
  border-bottom-color: var(--copper);
}

.footer-bottom {
  border-top: 1px solid var(--primary-900);
  padding: 1.25rem 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

@media (min-width: 768px) {
  .footer-bottom { grid-template-columns: 1fr auto; }
}

.footer-disclaimer {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-on-dark);
  max-width: 56rem;
  line-height: 1.55;
  margin: 0;
}

.footer-colophon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neutral-300);
  letter-spacing: 0.04em;
  text-align: left;
  margin: 0;
}
@media (min-width: 768px) {
  .footer-colophon { text-align: right; }
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--neutral-300);
  margin-top: 0.5rem;
}

/* Mobile responsive timeline */
@media (max-width: 900px) {
  .timeline-strip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-nodes {
    min-width: 720px;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    margin-top: 0.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .masthead-row {
    flex-wrap: wrap;
  }
  .masthead-chip { display: none; }
}

/* 404 */
.notfound {
  text-align: center;
  padding: 4rem 0;
}
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Utility */
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Tippy tooltip theme override */
.tippy-box[data-theme~='ghkcudr'] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--neutral-200);
  border-top: 4px solid var(--copper);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.25rem 0;
  box-shadow: 0 6px 24px rgba(11, 53, 67, 0.12);
}
.tippy-box[data-theme~='ghkcudr'] .tippy-content { padding: 0.5rem 0.75rem; }
.tippy-box[data-theme~='ghkcudr'][data-placement^='top'] > .tippy-arrow::before { border-top-color: var(--surface); }
.tippy-box[data-theme~='ghkcudr'][data-placement^='bottom'] > .tippy-arrow::before { border-bottom-color: var(--surface); }
