/* amceagle.com
   Same look as the car-show posters: deep navy, cream type, a tan accent, and
   AMC's own red, white and blue as the stripe. */
:root {
  --bg: #131c32;
  --bg-2: #1a2440;
  --bg-3: #24304f;
  --ink: #f1e4c7;
  --ink-2: #cbbd9c;
  --muted: #9a9c9f;
  --line: rgba(241, 228, 199, 0.2);
  --amber: #dcb479;          /* tan accent (kept the old name so every rule follows) */
  --red: #cf3a2e;
  --white: #ffffff;
  --blue: #1f78b8;
  --paper: #f1e4c7;
  --paper-ink: #131c32;
  --paper-muted: #5b6273;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --text: 40rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg) var(--grain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
body { overflow-wrap: break-word; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-stretch: 112%; line-height: 1.08; margin: 0; }
h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 900; font-style: italic; font-stretch: 125%;
  letter-spacing: -0.012em;
  max-width: 20ch;
  margin-bottom: 0.6em;
}
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35em; }
h4 { font-size: 1rem; font-weight: 700; color: var(--ink-2); margin-bottom: 0.8em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 10vw, 128px); }
.section-lede { max-width: var(--text); color: var(--ink-2); font-size: 1.2rem; margin-bottom: 2.2em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: var(--bg); padding: 8px 14px; font-family: var(--display); }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(19, 28, 50, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
}
.bar-mark {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 800; font-style: italic; font-stretch: 125%; font-size: 1.05rem;
  white-space: nowrap;
}
.mini-stripe {
  width: 26px; height: 12px; flex: none;
  background: linear-gradient(var(--red) 0 33.3%, var(--white) 0 66.6%, var(--blue) 0);
  transform: skewX(-18deg);
}
.bar nav { display: flex; gap: 4px; margin-left: auto; }
.bar nav a {
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
  font-size: 0.92rem; font-weight: 500; padding: 6px 10px; border-radius: 4px;
}
.bar nav a:hover { color: var(--ink); background: var(--bg-3); }
.bar nav a.is-current { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 4px 4px 0 0; }
.menu-btn { display: none; }

/* Narrow screens: a Menu button opens a panel with every section, so nothing
   scrolls sideways and it's obvious there is more. */
@media (max-width: 820px) {
  .bar { flex-wrap: wrap; padding-block: 8px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 14px; border-radius: 22px;
    border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
    font-family: var(--display); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  }
  .menu-icon { display: grid; gap: 3px; width: 20px; transform: skewX(-18deg); }
  .menu-icon span { display: block; height: 3px; transition: transform .2s, opacity .2s; }
  .menu-icon span:nth-child(1) { background: var(--red); }
  .menu-icon span:nth-child(2) { background: var(--white); }
  .menu-icon span:nth-child(3) { background: var(--blue); }
  .bar.open .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .bar.open .menu-icon span:nth-child(2) { opacity: 0; }
  .bar.open .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .bar nav {
    display: none; flex-basis: 100%; margin: 8px 0 4px;
    grid-template-columns: 1fr 1fr; gap: 6px;
  }
  .bar.open nav { display: grid; }
  .bar nav a {
    font-size: 1.05rem; padding: 12px 14px; background: var(--bg-2);
    border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  }
  .bar nav a.is-current { box-shadow: inset 3px 0 0 var(--amber); border-radius: 8px; }
}
@media (max-width: 300px) { .bar nav { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: 0; position: relative; }
/* Desktop: the whole photo at its own 16:9 shape, inside the content width and
   short enough to leave the title on screen. Nothing is cropped. */
.hero-photo {
  position: relative;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 28px) var(--gutter) 0;
  max-width: min(var(--max), calc(68vh * 16 / 9 + 2 * var(--gutter)));
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}
/* short fade so the title can sit on the ground below the car, never on it */
.hero-photo::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 16%;
  background: linear-gradient(to bottom, rgba(19, 28, 50, 0), var(--bg));
  pointer-events: none;
}
@media (max-width: 700px) {
  .hero-type { max-width: none; }
  /* phones: edge to edge; 3:2 keeps the whole car with room around the grille */
  .hero-photo { padding: 0; max-width: none; }
  .hero-photo::after { left: 0; right: 0; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 22% 70%; border-radius: 0; }
}

.hero-type {
  position: relative; z-index: 2;
  max-width: min(var(--max), calc(68vh * 16 / 9 + 2 * var(--gutter))); margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
  margin-top: clamp(-2.5rem, -2.5vw, -0.5rem);
}
.hero-kicker {
  font-family: var(--display); font-weight: 600; font-stretch: 112%;
  color: var(--ink); font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  margin: 0 0 0.2em 0.4em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.wordmark {
  font-size: min(19rem, calc((100vw - 2 * var(--gutter)) / 3.7));
  white-space: nowrap;
  font-weight: 900; font-style: italic; font-stretch: 125%;
  line-height: 0.78; letter-spacing: -0.035em;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(8, 12, 24, 0.55);
  margin-left: -0.04em;
}
.stripes { display: grid; gap: 0; margin-top: clamp(14px, 2vw, 24px); }
.stripes span { display: block; height: clamp(8px, 1.1vw, 14px); transform-origin: left; }
.stripes span:nth-child(1) { background: var(--red); }
.stripes span:nth-child(2) { background: var(--white); }
.stripes span:nth-child(3) { background: var(--blue); }
/* run the stripe to the right edge of the screen; html clips the scrollbar sliver */
.hero .stripes { margin-right: calc(50% - 50vw); }
@media (prefers-reduced-motion: no-preference) {
  .hero .stripes span { animation: run 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .hero .stripes span:nth-child(2) { animation-delay: .09s; }
  .hero .stripes span:nth-child(3) { animation-delay: .18s; }
  @keyframes run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.hero-lede {
  max-width: 34rem; margin-top: 1.6em;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink);
}

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-top: clamp(24px, 4vw, 48px); }
.story-text p { max-width: var(--text); }
.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%;
  font-size: 4.1em; line-height: 0.82; margin: 0.06em 0.1em 0 0; color: var(--amber);
}
.story-aside { align-self: start; position: sticky; top: 96px; }
blockquote { margin: 0 0 40px; }
blockquote p {
  font-family: var(--display); font-weight: 700; font-style: italic; font-stretch: 112%;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-bottom: 0.4em;
}
blockquote footer { color: var(--muted); font-size: 0.95rem; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-size: 0.9rem; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-size: 1.02rem; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-aside { position: static; }
}

/* ---------- timeline ---------- */
.timeline-sec { background: var(--bg-2); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 24px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.yr {
  font-family: var(--display); font-weight: 800; font-style: italic; font-stretch: 125%;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--amber);
}
.timeline p { max-width: var(--text); color: var(--ink-2); margin: 0; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- drivetrain ---------- */
.diagram { margin: 0 0 48px; background: var(--bg-2); border-radius: 10px; padding: clamp(12px, 3vw, 32px); }
.diagram svg { width: 100%; height: auto; display: block; }
.d-axle { stroke: var(--ink-2); stroke-width: 5; fill: none; stroke-linecap: round; }
.d-wheel rect { fill: #0b1122; stroke: var(--muted); stroke-width: 2; }
.d-part rect { fill: var(--bg-3); stroke: var(--ink-2); stroke-width: 2; }
.d-key rect { fill: rgba(220, 180, 121, 0.18); stroke: var(--amber); stroke-width: 2.5; }
.d-wave { fill: none; stroke: var(--amber); stroke-width: 2; }
.d-label text { fill: var(--ink); font-family: var(--display); font-size: 15px; font-weight: 600; }
.d-label .sub { fill: var(--muted); font-size: 13px; font-weight: 500; }
.d-label .key { fill: var(--amber); font-weight: 800; font-size: 16px; }

/* ---------- animated drive modes ---------- */
.dg-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dg-controls button {
  min-height: 44px; padding: 0 16px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink-2);
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
}
.dg-controls button:hover { color: var(--ink); }
.dg-controls button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--paper-ink); }
.dg-caption { margin-top: 14px; min-height: 4.8em; max-width: 46rem; color: var(--ink-2); font-size: 1.02rem; }
.dg-caption strong { color: var(--ink); font-family: var(--display); font-weight: 700; }

.d-flow path { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 7 11; transition: opacity .3s, stroke-width .3s; }
.d-ice rect { fill: #9fc9e6; opacity: 0; transition: opacity .3s; }
.d-label .ice-lbl { fill: #9fc9e6; opacity: 0; transition: opacity .3s; }
.d-label .off-lbl { fill: var(--muted); font-size: 13px; opacity: 0; transition: opacity .3s; }
.d-wheel rect { transition: stroke .3s; }
.d-front-prop { transition: opacity .3s; }

/* driven wheels get an amber rim */
[data-mode="awd"] .d-wheel rect, [data-mode="slip"] .d-wheel rect, [data-mode="rwd"] .d-wheel .w-rear { stroke: var(--amber); }
/* slip: rear wheels on ice, more power to the front, coupling working hard */
[data-mode="slip"] .d-ice rect { opacity: 0.35; }
[data-mode="slip"] .d-label .ice-lbl { opacity: 1; }
[data-mode="slip"] .d-flow .f-rear { opacity: 0.45; stroke-width: 3; }
[data-mode="slip"] .d-flow .f-front { stroke-width: 6; }
[data-mode="slip"] .d-key rect { fill: rgba(220, 180, 121, 0.45); }
/* 2WD: front propshaft and axle disconnected */
[data-mode="rwd"] .d-flow .f-front { opacity: 0; }
[data-mode="rwd"] .d-front-prop { opacity: 0.35; }
[data-mode="rwd"] .d-label .off-lbl { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .d-flow path { animation: flow .7s linear infinite; }
  [data-mode="slip"] .d-flow .f-front { animation-duration: .35s; }
  [data-mode="slip"] .d-flow .f-rear { animation-duration: .3s; }
  @keyframes flow { to { stroke-dashoffset: -18; } }
  .d-wheel rect { stroke-dasharray: 10 6; animation: roll .8s linear infinite; }
  [data-mode="slip"] .d-wheel .w-rear { animation-duration: .25s; }
  @keyframes roll { to { stroke-dashoffset: -32; } }
  .d-plates { animation: shear 1.6s ease-in-out infinite alternate; }
  [data-mode="slip"] .d-plates { animation-duration: .25s; }
  [data-mode="rwd"] .d-plates { animation: none; }
  @keyframes shear { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
}

.drive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 64px); margin-bottom: 48px; }
.drive-grid p { color: var(--ink-2); margin: 0; }
.drive-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drive-photos figure { margin: 0; }
.drive-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
@media (max-width: 700px) {
  .drive-grid, .drive-photos { grid-template-columns: 1fr; }
}

/* ---------- credits under photos ---------- */
.credit { display: block; margin-top: 6px; font-family: var(--display); font-size: 0.74rem; color: var(--muted); line-height: 1.35; }
.credit a { color: var(--muted); }
.credit a:hover { color: var(--ink); }

/* ---------- lineup ---------- */
.lineup-sec { background: var(--bg-2); }
.lineup {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}
.model img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.model h3 { margin-top: 14px; font-size: 1.45rem; font-stretch: 125%; font-style: italic; font-weight: 800; }
.model .yrs { font-family: var(--display); color: var(--amber); font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5em; }
.model p:last-child { color: var(--ink-2); font-size: 1.02rem; }
.m-wide { grid-column: span 2; grid-row: span 2; }
.m-wide img { aspect-ratio: 4 / 3; }
.m-wide h3 { font-size: 2rem; }
@media (max-width: 900px) {
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-wide { grid-row: auto; }
}
@media (max-width: 560px) {
  .lineup { grid-template-columns: 1fr; }
  .m-wide { grid-column: auto; }
}

/* ---------- production chart ---------- */
.chart {
  position: relative;
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px;
  height: 300px; padding-left: 44px; margin-bottom: 44px;
  border-bottom: 1px solid var(--ink-2);
}
.chart .grid {
  position: absolute; left: 44px; right: 0; border-top: 1px solid var(--line); pointer-events: none;
}
.chart .grid span {
  position: absolute; right: calc(100% + 8px); top: -0.6em;
  font-family: var(--display); font-size: 0.75rem; color: var(--muted); white-space: nowrap;
}
.chart .col {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  height: 100%; background: none; border: 0; padding: 0 6px; cursor: default; color: inherit; font: inherit;
}
.chart .fill {
  width: 100%; max-width: 64px; background: var(--amber); border-radius: 4px 4px 0 0;
  transition: background .15s;
}
.chart .col:hover .fill, .chart .col:focus-visible .fill { background: var(--ink); }
.chart .yr-lbl {
  position: absolute; top: calc(100% + 8px);
  font-family: var(--display); font-size: 0.85rem; color: var(--ink-2);
}
.chart .val {
  font-family: var(--display); font-size: 0.85rem; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; white-space: nowrap;
}
.chart .tip {
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  background: var(--paper); color: var(--paper-ink); border-radius: 6px;
  padding: 6px 10px; font-family: var(--display); font-size: 0.85rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 3;
}
.chart .col:hover .tip, .chart .col:focus-visible .tip { opacity: 1; }
.chart .tip-l { left: 0; transform: none; }
.chart .tip-r { left: auto; right: 0; transform: none; }
.prod, .hero { overflow-x: clip; }
.chart-table summary { cursor: pointer; font-family: var(--display); color: var(--amber); font-size: 0.95rem; }
.chart-table table { border-collapse: collapse; margin: 16px 0; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 24px 6px 0; border-bottom: 1px solid var(--line); }
.chart-table td + td, .chart-table th + th { text-align: right; }
.note { color: var(--muted); font-size: 0.92rem; max-width: var(--text); }
@media (max-width: 560px) {
  .chart { height: 220px; padding-left: 36px; }
  .chart .grid { left: 36px; }
  .chart .col { padding: 0 2px; }
  .chart .yr-lbl { font-size: 0.7rem; transform: rotate(-45deg); transform-origin: top center; top: calc(100% + 14px); }
  .chart .val { font-size: 0.72rem; }
}

/* ---------- ads ---------- */
.ads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ads figure { margin: 0; }
.ads img { width: 100%; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); cursor: zoom-in; }
@media (max-width: 860px) { .ads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- rally ---------- */
.rally { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.rally-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.rally-text p { color: var(--ink-2); }
@media (max-width: 800px) { .rally { grid-template-columns: 1fr; } }

/* ---------- my eagle ---------- */
.mine { background: var(--bg-2); position: relative; }
.mine::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: linear-gradient(var(--red) 0 33.3%, var(--white) 0 66.6%, var(--blue) 0);
}
.mine h2 { max-width: none; margin-bottom: 0.15em; }
.mine-nick {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--amber); margin-bottom: 1.2em;
}
.mine-intro p { max-width: var(--text); color: var(--ink-2); }
.mine-intro { margin-bottom: 40px; }

.mine-photos {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 17vw, 230px); gap: 10px; margin-bottom: 64px;
}
.mine-photos button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.mine-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mine-photos button:hover img { transform: scale(1.03); }
.mine-photos button:nth-child(1) { grid-column: 1 / 9; grid-row: span 2; }
.mine-photos button:nth-child(2),
.mine-photos button:nth-child(3) { grid-column: 9 / 13; }
.mine-photos button:nth-child(n+4) { grid-column: span 4; }
@media (max-width: 640px) {
  /* stacked full width so each car stays uncropped */
  .mine-photos { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .mine-photos button:nth-child(n) { grid-column: auto; grid-row: auto; }
  .mine-photos img { aspect-ratio: 16 / 9; height: auto; }
}

/* the build sheet reads as a paper document */
.sheet {
  background: var(--paper); color: var(--paper-ink);
  border-radius: 4px; padding: clamp(20px, 4vw, 48px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.sheet h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-stretch: 125%; font-style: italic; font-weight: 900; margin-bottom: 20px; }
.sheet h4 { color: var(--paper-muted); }
.sheet-head { border-bottom: 3px solid var(--paper-ink); padding-bottom: 24px; margin-bottom: 28px; }
.bs-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 28px; margin: 0; }
.bs-specs dt { font-family: var(--display); font-size: 0.8rem; color: var(--paper-muted); }
.bs-specs dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.bs-specs .total dd { color: var(--red); font-size: 1.3rem; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
.bs-options { width: 100%; border-collapse: collapse; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.bs-options th { text-align: left; font-family: var(--display); font-size: 0.8rem; font-weight: 600; color: var(--paper-muted); padding: 0 12px 8px 0; border-bottom: 1px solid rgba(19, 28, 50, 0.3); }
.bs-options td { padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(19, 28, 50, 0.14); vertical-align: top; line-height: 1.4; }
.bs-options td:first-child { font-family: var(--display); font-size: 0.85rem; color: var(--paper-muted); white-space: nowrap; padding-top: 11px; }
.bs-options .num { text-align: right; padding-right: 0; white-space: nowrap; font-family: var(--display); font-weight: 600; }
.bs-options tfoot td { border-bottom: 0; border-top: 2px solid var(--paper-ink); font-family: var(--display); font-weight: 800; padding-top: 12px; }
.bs-standard { list-style: none; margin: 0; padding: 0; columns: 1; font-size: 0.96rem; }
.bs-standard li { padding: 6px 0; border-bottom: 1px solid rgba(19, 28, 50, 0.14); line-height: 1.35; }
@media (max-width: 860px) {
  .sheet-body { grid-template-columns: 1fr; }
  .bs-standard { columns: 2; column-gap: 24px; }
  .bs-standard li { break-inside: avoid; }
}
@media (max-width: 480px) {
  .bs-standard { columns: 1; }
  .bs-options td:first-child, .bs-options th:first-child { display: none; }
}

/* ---------- gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; }
.gallery img { width: 100%; }
.gallery figcaption { font-size: 0.92rem; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }

/* ---------- footer ---------- */
.foot { background: #0e1527; padding-bottom: 64px; font-size: 0.95rem; color: var(--ink-2); }
.foot .stripes { margin-top: 0; margin-bottom: 56px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); }
.foot-mark { font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 1.6rem; color: var(--ink); }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--amber); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--ink); }

/* photo credits dialog */
.credits-dlg {
  width: min(720px, calc(100vw - 24px)); max-height: min(80vh, 760px);
  padding: 0 clamp(18px, 4vw, 32px) 24px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-2); color: var(--ink-2); font-size: 0.95rem; overflow-y: auto;
}
.credits-dlg::backdrop { background: rgba(6, 9, 18, 0.8); }
.credits-head {
  position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.credits-head h2 { font-size: 1.4rem; margin: 0; color: var(--ink); }
.dlg-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink); font-size: 1.4rem; line-height: 1;
}
.credits { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.credits li { padding: 8px 0; border-bottom: 1px solid var(--line); line-height: 1.45; overflow-wrap: anywhere; }
.credits a { color: var(--ink); }
@media (max-width: 800px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } }
.foot { overflow-wrap: anywhere; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 9, 18, 0.92); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 4px; }
.lb-cap { color: var(--ink-2); text-align: center; font-size: 0.9rem; margin: 10px 0 0; font-family: var(--display); }
.lb-cap a { color: var(--ink-2); }
.lb-close {
  position: fixed; top: 14px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* read by screen readers and search engines, not shown */
.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;
}

/* ---------- sub-pages (specs, VIN decoder) ---------- */
.page-head { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 48px); }
.crumbs { font-family: var(--display); font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2em; }
.crumbs a { color: var(--ink-2); }
.page-head h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 900; font-style: italic; font-stretch: 125%;
  letter-spacing: -0.03em; line-height: 0.92;
}
.page-head .stripes { max-width: 520px; margin-top: 18px; }
.page-lede { max-width: var(--text); margin-top: 1.4em; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink); }

.year-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.year-filter button {
  min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 22px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2);
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
.year-filter button:hover { color: var(--ink); }
.year-filter button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--paper-ink); }
.flag-key { max-width: 46rem; color: var(--ink-2); font-size: 0.98rem; margin-bottom: 40px; }

.flag { display: inline; font-family: var(--display); font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.flag b { font-weight: 700; }
.flag-third b { color: var(--ink-2); }
.flag-differ b { color: var(--amber); }

.yr-block {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 28px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.yr-block[hidden] { display: none; }
.yr-side h2 {
  font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-style: italic; font-weight: 900; font-stretch: 125%; white-space: nowrap;
  color: var(--amber); margin: 0; position: sticky; top: 84px;
}
.yr-sum { font-size: 1.15rem; color: var(--ink); max-width: 44rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 18px; }
.spec-grid h3 { font-size: 0.95rem; color: var(--ink-2); font-weight: 700; margin-bottom: 8px; }
.spec-grid ul { list-style: none; margin: 0; padding: 0; }
.spec-grid li { padding: 7px 0; border-bottom: 1px solid var(--line); line-height: 1.45; font-size: 1rem; }
.spec-grid li .flag { display: block; margin-top: 2px; }
.spec-wide { grid-column: 1 / -1; }
.prod-t, .epa-t, .dims-t { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.98rem; }
.prod-t { min-width: min(100%, 22rem); }
.prod-t th, .prod-t td, .epa-t th, .epa-t td, .dims-t th, .dims-t td { text-align: left; padding: 7px 18px 7px 0; border-bottom: 1px solid var(--line); }
.prod-t th, .epa-t th, .dims-t thead th { font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.prod-t .num, .epa-t .num, .dims-t .num { text-align: right; }
.prod-t tfoot td { font-family: var(--display); font-weight: 800; border-top: 2px solid var(--ink-2); border-bottom: 0; }
.t-scroll { overflow-x: auto; max-width: 100%; }
.yr-src { margin-top: 18px; font-size: 0.85rem; color: var(--muted); }
.yr-src a { color: var(--ink-2); }
.dims, .sources { padding-top: 56px; border-top: 1px solid var(--line); margin-top: 20px; }
.dims-t { min-width: 900px; }
.dims-t tbody th { font-weight: 400; font-family: var(--serif); padding-right: 18px; }
.sources ul { columns: 2 280px; padding-left: 1.1em; }
.sources li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 700px) {
  .yr-block { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 28px 0; }
  .yr-side h2 { position: static; }
  .spec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- VIN decoder ---------- */
.vin-form { max-width: 44rem; margin-bottom: 32px; }
.vin-form label { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 8px; }
.vin-row { display: flex; gap: 10px; }
.vin-row input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--muted); background: var(--bg-2); color: var(--ink);
  font-family: var(--display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.vin-row input::placeholder { color: var(--muted); letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.vin-row input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.vin-row button {
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--amber); color: var(--paper-ink); font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.vin-help { margin-top: 10px; font-size: 0.92rem; color: var(--ink-2); }
.vin-count { font-family: var(--display); color: var(--amber); white-space: nowrap; }
.vin-examples { font-size: 0.92rem; color: var(--muted); }
.vin-examples .link-btn { margin-right: 10px; font-size: 0.92rem; }

.vin-result { background: var(--paper); color: var(--paper-ink); border-radius: 8px; padding: clamp(18px, 3.5vw, 36px); margin-bottom: 56px; }
.vin-summary { font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 112%; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin: 0 0 8px; }
.vin-badge { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.9rem; padding: 4px 10px; border-radius: 6px; margin: 0 0 20px; }
.vin-badge.is-ok { background: #d9e8cf; color: #24461a; }
.vin-badge.is-warn { background: #f6d9c9; color: #7a2512; }
.vin-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.vin-share button {
  min-height: 40px; padding: 0 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(19, 28, 50, 0.35); background: transparent; color: var(--paper-ink);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
}
.vin-share button:hover { border-color: var(--paper-ink); }
.vin-share button:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 2px; }
.vin-share .vin-share-main { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.vin-share-note { font-size: 0.82rem; color: var(--paper-muted); }
.vin-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.vin-grp { display: flex; gap: 2px; padding-bottom: 5px; border-bottom: 4px solid var(--paper-muted); }
.vin-grp.g2, .vin-grp.g7 { border-color: var(--amber); }
.vin-grp.g3, .vin-grp.g8 { border-color: var(--blue); }
.vin-grp.g4, .vin-grp.g5 { border-color: var(--red); }
.vin-ch {
  display: grid; place-items: center; width: clamp(20px, 4.4vw, 34px); height: clamp(30px, 6vw, 44px);
  background: #fff8ec; border: 1px solid rgba(19, 28, 50, 0.2); border-radius: 4px;
  font-family: var(--display); font-weight: 800; font-size: clamp(0.85rem, 2.4vw, 1.25rem);
}
.vin-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.vin-table th { text-align: left; font-family: var(--display); font-size: 0.8rem; font-weight: 600; color: var(--paper-muted); padding: 0 10px 8px 0; border-bottom: 1px solid rgba(19, 28, 50, 0.3); }
.vin-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid rgba(19, 28, 50, 0.14); vertical-align: top; }
.vin-pos { font-family: var(--display); color: var(--paper-muted); white-space: nowrap; width: 4.5rem; }
.vin-code { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; }
.vin-label { display: block; font-family: var(--display); font-size: 0.8rem; color: var(--paper-muted); }
.vin-val { display: block; font-weight: 600; }
.vin-note { display: block; font-size: 0.88rem; color: var(--paper-muted); margin-top: 2px; }
.vin-st { font-family: var(--display); font-weight: 700; font-size: 0.8rem; white-space: nowrap; text-align: right; }
.st-warn .vin-st, .st-unknown .vin-st { color: #8a5a00; }
.st-bad .vin-st { color: var(--red); }
.st-bad .vin-val { color: var(--red); }
.vin-error { color: var(--red); font-family: var(--display); font-weight: 700; margin: 0; }
.vin-ref h3 { margin-top: 32px; }
.ref-t { border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.ref-t th, .ref-t td { text-align: left; padding: 9px 16px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-t thead th { font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.ref-t tbody th { font-family: var(--display); font-weight: 700; white-space: nowrap; }
.ref-t td b, .vin-ref p b, .vin-open b { color: var(--amber); font-family: var(--display); }
.ref-t td.num { font-family: var(--display); color: var(--muted); }
.vin-open { padding-left: 1.2em; max-width: var(--text); }
.vin-open li { margin-bottom: 6px; }
.vin-sources { padding-left: 1.2em; font-size: 0.92rem; }
@media (max-width: 520px) {
  .vin-row { flex-direction: column; }
  .vin-pos { width: auto; }
  .vin-st { display: none; }
  .st-warn .vin-val::after, .st-unknown .vin-val::after { content: " (check)"; color: #8a5a00; font-weight: 700; }
  .st-bad .vin-val::after { content: " (problem)"; }
}

/* ---------- article pages (wagon, SX/4, brand) ---------- */
.art { padding-bottom: 80px; }
.art-fig { margin: 0 0 12px; }
.art-fig img { width: 100%; height: auto; border-radius: 8px; }
.art-fig figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }
.art-fig .credit { display: inline; margin: 0 0 0 4px; }
.art-lead { max-width: 1000px; margin-bottom: 44px; }
.art-lead img { aspect-ratio: 16 / 9; object-fit: cover; }
.prose { max-width: var(--text); }
.prose h2, .art-sec h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); max-width: 24ch; }
.art-sec { margin-top: 56px; }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
.art-grid .art-fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.art-ads { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.art-ads .art-fig img { aspect-ratio: auto; object-fit: initial; border-radius: 2px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
@media (max-width: 860px) { .art-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .art-grid:not(.art-ads) { grid-template-columns: minmax(0, 1fr); } }

.bars { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.bars li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 7.5rem; gap: 12px; align-items: center; padding: 5px 0; }
.b-lbl { font-family: var(--display); font-weight: 700; color: var(--ink-2); }
.b-bar { height: 18px; background: var(--bg-2); border-radius: 0 4px 4px 0; }
.b-bar span { display: block; height: 100%; background: var(--amber); border-radius: 0 4px 4px 0; }
.b-val { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
@media (max-width: 420px) { .bars li { grid-template-columns: 2.8rem minmax(0, 1fr) 6.2rem; gap: 8px; } }

.yr-list { margin: 0; }
.yr-list div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.yr-list dt { font-family: var(--display); font-weight: 800; font-style: italic; font-stretch: 125%; color: var(--amber); font-size: 1.25rem; }
.yr-list dd { margin: 0; color: var(--ink-2); }

.glance-t { min-width: 0; width: 100%; max-width: 760px; }
.glance-t tbody th { font-family: var(--serif); font-weight: 400; }
.brand-t { min-width: 640px; width: 100%; }
.brand-t tbody th { font-family: var(--display); font-weight: 700; white-space: nowrap; padding-right: 18px; }
.brand-t td { color: var(--ink-2); }

.art-callout { background: var(--bg-2); border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; padding: 22px clamp(18px, 3vw, 32px); max-width: 48rem; }
.art-callout h2 { font-size: 1.35rem; margin-bottom: 0.5em; }
.art-callout p:last-child, .art-callout ul { margin-bottom: 0; }
.art-answer ul { padding-left: 1.2em; }
.art-answer li { margin-bottom: 8px; }
.art-answer b { color: var(--ink); }
.art-answer { margin-bottom: 48px; }
.model-link { color: inherit; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.art section.art-sec { padding-block: 0; }
.plain-list { max-width: var(--text); padding-left: 1.2em; }
.plain-list li { margin-bottom: 10px; color: var(--ink-2); }

/* ---------- poster theme ---------- */
/* warm the car photos the way the posters do */
.hero-photo img, .mine-photos img, .art-lead img, .model img, .gallery img, .rally-photo img, .drive-photos img {
  filter: sepia(.22) saturate(1.2) contrast(1.06) hue-rotate(-5deg);
}
/* hero: small AMC accent over the big italic Eagle, facts block on the right */
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: .25em; }
.hero-kicker { display: flex; align-items: center; gap: .55em; margin: 0; }
.hero-kicker .amc-mk { width: 2.4em; flex: none; outline: 2px solid var(--ink); line-height: 0; }
.hero-kicker .amc-mk svg { display: block; width: 100%; height: auto; }
.hero-kicker b { font-weight: 900; font-style: italic; font-stretch: 125%; font-size: 1.9em; letter-spacing: -.02em; }
.hero-facts { text-align: right; }
.hero-facts b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(1.15rem, 2.2vw, 1.7rem); line-height: 1; }
.hero-facts span { display: block; margin-top: .45em; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 600px) { .hero-facts { text-align: left; } }
/* the poster's letter-spaced labels */
.label { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
/* footer emblem: eagle head over the Eagle wordmark */
.foot-emblem { color: var(--ink); width: min(260px, 60%); }
.foot-emblem svg { display: block; width: 100%; height: auto; }
.foot-emblem .eh { width: 62%; margin: 0 auto 14px; }
.foot-flag { display: grid; width: 140px; margin-top: 14px; } .foot-flag i { display: block; height: 5px; }
.foot-flag i:nth-child(1) { background: var(--red); } .foot-flag i:nth-child(2) { background: var(--white); } .foot-flag i:nth-child(3) { background: var(--blue); }
/* boxed tables with a cream header, like the poster spec sheet */
.glance-t, .dims-t, .brand-t, .ref-t { border: 2px solid rgba(241, 228, 199, .75); }
.glance-t th, .glance-t td, .dims-t th, .dims-t td, .brand-t th, .brand-t td, .ref-t th, .ref-t td { padding-left: 16px; }
.dims-t thead th, .brand-t thead th, .ref-t thead th { background: var(--paper); color: var(--paper-ink); letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.glance-t tbody tr:nth-child(even), .dims-t tbody tr:nth-child(even), .brand-t tbody tr:nth-child(even), .ref-t tbody tr:nth-child(even) { background: rgba(241, 228, 199, .05); }
.hero-type { margin-top: clamp(14px, 2vw, 26px); }
@media (max-width: 600px) { .hero-facts { display: none; } }

/* ---------- service history ---------- */
.sv { padding-bottom: 80px; }
.sv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid rgba(241, 228, 199, .75); margin-bottom: 36px; }
.sv-stats div { padding: 18px 20px; border-left: 1px solid var(--line); }
.sv-stats div:first-child { border-left: 0; }
.sv-stats b { display: block; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1; }
.sv-stats span { display: block; margin-top: 6px; font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 640px) { .sv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sv-stats div:nth-child(3) { border-left: 0; } .sv-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.sv-intro p { color: var(--ink); }
.sv-gloss { margin: 8px 0 40px; max-width: 46rem; border: 1px solid var(--line); padding: 14px 18px; }
.sv-gloss summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--amber); }
.sv-gloss dl { margin: 14px 0 0; }
.sv-gloss dl div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.sv-gloss dt { font-family: var(--display); font-weight: 800; }
.sv-gloss dd { margin: 0; color: var(--ink-2); }
.sv-year { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.sv-year h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--amber); margin: 0; position: sticky; top: 84px; align-self: start; }
.sv-list { list-style: none; margin: 0; padding: 0; }
.sv-row { display: grid; grid-template-columns: 7.5rem 6.5rem minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(241, 228, 199, .1); line-height: 1.45; }
.sv-date, .sv-mi { font-family: var(--display); font-size: .88rem; color: var(--ink-2); padding-top: 2px; font-variant-numeric: tabular-nums; }
.sv-mi { text-align: right; }
.sv-note { display: block; margin-top: 3px; font-family: var(--display); font-size: .78rem; color: var(--muted); }
.sv-hl { background: rgba(220, 180, 121, .08); border-left: 3px solid var(--amber); padding-left: 12px; margin-left: -15px; }
.sv-hl .sv-work { color: var(--ink); }
@media (max-width: 700px) {
  .sv-year { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sv-year h2 { position: static; }
  .sv-row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .sv-work { grid-column: 1 / -1; }
}
/* link from My Eagle to the service log */
.sv-cta { display: block; margin-top: 28px; padding: 22px clamp(18px, 3vw, 30px); border: 2px solid rgba(241, 228, 199, .75);
  color: var(--ink); text-decoration: none; background: rgba(241, 228, 199, .03); transition: background .15s; }
.sv-cta:hover { background: rgba(220, 180, 121, .1); color: var(--ink); }
.sv-cta b { display: block; margin: 8px 0 6px; font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.1; }
.sv-cta-sub { color: var(--ink-2); }
.sv-cta-go { color: var(--amber); font-family: var(--display); font-weight: 700; white-space: nowrap; margin-left: 6px; }
.sv-cta-go::after { content: " ›"; }
section.mine { padding-bottom: clamp(36px, 4vw, 52px); }

/* the real AMC mark in the top bar (a tiny tri-stripe read as the Dutch flag) */
.mini-amc { display: block; width: 30px; height: 20px; outline: 1.5px solid var(--ink); flex: none; }
.menu-icon span:nth-child(n) { background: var(--ink); }

/* ---------- tighter rhythm (less empty space between sections) ---------- */
section { padding-block: clamp(40px, 5.5vw, 72px); }
.hero-type { padding-bottom: clamp(28px, 4vw, 52px); }
.story { padding-top: clamp(16px, 2.5vw, 28px); }
.section-lede { margin-bottom: 1.5em; }
h2 { margin-bottom: .45em; }
.diagram { margin-bottom: 32px; }
.drive-grid { margin-bottom: 32px; }
.mine-photos { margin-bottom: 40px; }
section.mine { padding-bottom: clamp(28px, 3vw, 40px); }
.foot { padding-top: 0; padding-bottom: 44px; }
.foot .stripes { margin-bottom: 36px; }
.page-head { padding-top: clamp(28px, 4.5vw, 56px); padding-bottom: clamp(16px, 2.5vw, 28px); }
.yr-block { padding: 26px 0; }
.dims, .sources { padding-top: 36px; }
.vin-result { margin-bottom: 40px; }
.art { padding-bottom: 52px; }
.art-sec { margin-top: 38px; }
.art-lead { margin-bottom: 30px; }
.art-answer { margin-bottom: 32px; }
.sv { padding-bottom: 52px; }
.sv-stats { margin-bottom: 26px; }
.sv-year { padding: 18px 0; }
section { padding-block: clamp(30px, 4vw, 52px); }
.timeline li { padding: 15px 0; }
.lineup { gap: 30px 24px; }
/* models: even 3 x 2 grid so every card lines up */
.lineup .m-wide { grid-column: auto; grid-row: auto; }
.lineup .m-wide h3 { font-size: 1.45rem; }
.lineup { align-items: start; }

/* maker credit: full-width band at the bottom of the footer, larger than the fine print above */
.foot-maker { margin-top: 44px; padding-top: 28px; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; }
.foot-maker::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.foot-maker p { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink); line-height: 1.35; }
.foot-maker p a { color: var(--amber); font-weight: 700; }
.foot-maker-url { font-family: var(--display); font-weight: 900; font-style: italic; font-stretch: 125%; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--red); }
.foot-maker-url:hover, .foot-maker-url:focus-visible { color: var(--amber); border-bottom-color: var(--amber); }
.vin-api-note { font-size: 0.92rem; color: var(--muted); }
.vin-api-note code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.api-doc section { margin-bottom: 44px; }
.api-doc code { font-family: ui-monospace, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.api-out, .api-code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; line-height: 1.5; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 0 0 14px; }
.api-out { max-height: 520px; overflow-y: auto; }

/* VIN layout table on phones: one stacked card per position instead of a
   640px table that has to be scrolled sideways (nobody noticed it could). */
@media (max-width: 700px) {
  .vin-ref .t-scroll { overflow: visible; }
  .ref-t { min-width: 0; width: 100%; border: 0; }
  .ref-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ref-t tbody { display: grid; gap: 10px; }
  .ref-t tbody tr {
    display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(241, 228, 199, .04);
  }
  .ref-t tbody tr:nth-child(even) { background: rgba(241, 228, 199, .04); }
  .ref-t tbody th, .ref-t tbody td { display: block; padding: 0; border: 0; }
  .ref-t td.num { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .12em; }
  .ref-t td.num::before { content: "Position "; }
  .ref-t tbody th { white-space: normal; font-size: 1.05rem; }
  .ref-t tbody td:last-child { grid-column: 1 / -1; margin-top: 8px; line-height: 1.55; color: var(--ink-2); }
  .ref-t .sep { display: none; }
  .ref-t .c { display: block; padding: 3px 0; }
}

/* ---------- /my-eagle/ (the car's own page) ---------- */
.page-lede .nick { display: block; font-family: var(--serif); font-style: italic; color: var(--amber); font-size: 1.25em; margin-bottom: .3em; }
.car { display: grid; gap: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.car-photo { display: block; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.car-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.car-photo:hover img { transform: scale(1.02); }
.car-hero-photo img { aspect-ratio: 16 / 10; }
.award { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border: 2px solid var(--amber); position: relative; }
.award::before { content: ""; position: absolute; left: 24px; right: 24px; top: -2px; height: 6px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--white) 0 66.6%, var(--blue) 0); }
.award-kicker { font-family: var(--display); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.award h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 6px; max-width: none; }
.award-show { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.award-text p:not(.award-kicker):not(.award-show) { color: var(--ink-2); }
.award-photo img { aspect-ratio: 4 / 3; }
.car-story h2 { margin-bottom: .5em; }
.car-story p { max-width: var(--text); color: var(--ink-2); }
.car-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.car-photos .car-photo:first-child { grid-column: 1 / -1; }
.car-photos img { aspect-ratio: 16 / 9; }
.car-log h2 { margin-bottom: .4em; }
.car-log .section-lede { margin-bottom: 28px; }
.car-log-h { color: var(--amber); margin: 8px 0 4px; }
.car-log .sv-row { grid-template-columns: 7.5rem 6.5rem minmax(0, 1fr); }
@media (max-width: 860px) { .award { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .car-photos { grid-template-columns: 1fr; } .car-log .sv-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; } }

/* the home page teaser for the car */
.mine-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mine-teaser-photo { display: block; border-radius: 6px; overflow: hidden; }
.mine-teaser-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.mine-teaser-photo:hover img { transform: scale(1.02); }
.mine-teaser p { color: var(--ink-2); }
.mine-award { border-left: 3px solid var(--amber); padding-left: 14px; color: var(--ink) !important; font-family: var(--display); }
.mine-award b { display: block; font-size: 1.15rem; }
.mine-links { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 24px; }
.mine-links .go { display: inline-block; padding: 12px 22px; background: var(--amber); color: var(--bg); font-family: var(--display); font-weight: 700; text-decoration: none; border-radius: 4px; }
.mine-links .go:hover { background: var(--ink); }
.mine-links a:not(.go) { color: var(--amber); font-family: var(--display); font-weight: 700; }
@media (max-width: 760px) { .mine-teaser { grid-template-columns: 1fr; } }
