/* Maravegias and Sons Roofing and Solar · v2 private concept
 * Hallmark · macrostructure: photo-led fold + trade sequence + long-form reader
 * tone: family roofer job sheet · anchor: roof umber with safety-gold action
 * pre-emit critique: P4 H5 E4 S4 R4 V4 (see design-review.md)
 */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('work-sans-400-700.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #261A13;
  --roof: #2E211A;
  --roof-deep: #1E1510;
  --gold: #F5B92E;
  --gold-hover: #FFD36B;
  --clay: #A3471F;
  --clay-dark: #82381A;
  --stone: #ECE6DD;
  --stone-2: #D9CFC3;
  --paper: #FBFAF7;
  --white: #FFFDFA;
  --white-0: rgb(255 253 250 / 0);
  --shade: rgb(38 26 19 / .38);
  --muted: #5E5047;
  --rule: #CFC4B6;
  --focus: #1F5FD6;
  --wash-strong: rgb(30 21 16 / .94);
  --wash-mid: rgb(30 21 16 / .78);
  --wash-none: rgb(30 21 16 / .08);
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'Work Sans', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 80rem;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 1.25rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-text);
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 800; font-style: normal; line-height: 1; letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
button, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -10rem; z-index: 50;
  padding: .75rem 1rem; background: var(--gold); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 1rem; }

/* Buttons: one dominant action colour, used only for the quote */
.btn-quote, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: .7rem 1.25rem;
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
}
.btn-quote { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-quote:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-outline { border-color: currentColor; color: var(--paper); background: transparent; }
.btn-outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-quote:active, .btn-outline:active, .button:active, .button-secondary:active { transform: translateY(1px); }
.button:disabled, .button-secondary:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.btn-plain { color: var(--ink); border-color: var(--ink); }
.btn-plain:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Concept notice */
.notice { background: var(--stone); color: var(--ink); font-size: .875rem; }
.notice p { padding-block: .45rem; }

/* Header */
.site-head { background: var(--ink); color: var(--paper); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-height: var(--tap); }
.mark { position: relative; flex: 0 0 40px; width: 40px; height: 36px; background: var(--clay); overflow: hidden; }
.mark::before, .mark::after {
  content: ''; position: absolute; left: 10px; width: 19px; height: 19px;
  border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); transform: rotate(45deg);
}
.mark::before { top: 12px; }
.mark::after { top: 20px; opacity: .6; }
.brand-type { display: grid; line-height: 1; }
.brand-name { font: 800 1.6rem/.95 var(--font-display); letter-spacing: .005em; }
.brand-trade { margin-top: .2rem; font-size: .78rem; font-weight: 600; color: var(--stone-2); }
.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; list-style: none; padding: 0; }
.main-nav a:not(.btn-quote) { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; font-size: .95rem; }

/* Town navigation */
.towns { background: var(--roof-deep); color: var(--paper); border-top: 1px solid var(--roof); }
.towns-row { display: flex; align-items: stretch; gap: 0 1.25rem; }
.towns-label { display: flex; align-items: center; font-size: .82rem; color: var(--stone-2); white-space: nowrap; }
.towns ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.towns a {
  display: flex; align-items: center; min-height: var(--tap); padding: .35rem .9rem;
  font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent;
}
.towns a:hover { border-bottom-color: var(--stone-2); }
.towns a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }

/* Fold */
.fold { position: relative; isolation: isolate; color: var(--paper); background: var(--roof); }
.fold-photo { position: absolute; inset: 0; z-index: -1; }
.fold-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
.fold-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--wash-strong) 0%, var(--wash-strong) 34%, var(--wash-mid) 55%, var(--wash-none) 82%);
}
.fold-photo figcaption {
  position: absolute; right: var(--gutter); bottom: .75rem; z-index: 1;
  padding: .2rem .55rem; background: var(--roof-deep); color: var(--paper); font-size: .78rem;
}
.fold-inner { display: grid; align-content: center; min-height: clamp(560px, 46vw, 680px); padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(3.5rem, 6.5vw, 5.75rem); }
.fold-copy { max-width: 40rem; }
.kicker { font-weight: 600; color: var(--gold); margin-bottom: .75rem; }
.fold h1 { font-size: clamp(2.7rem, 5.2vw, 5rem); line-height: .95; max-width: 14ch; text-wrap: balance; }
.fold .lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; max-width: 46ch; }
.proposition { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: .45rem; font-weight: 600; }
.proposition li { position: relative; padding-left: 1.75rem; }
.proposition li::before {
  content: ''; position: absolute; left: .2rem; top: .55em; width: .62rem; height: .62rem;
  border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); transform: rotate(45deg);
}
.fold-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.fold-actions .btn-quote { font-size: 1.08rem; padding-inline: 1.6rem; }
.fold-town .fold-inner { min-height: clamp(470px, 38vw, 560px); }
.fold-town .fold-photo img { object-position: 60% 60%; }

/* Coordination strip (homepage template) */
.trades { background: var(--paper); padding-block: clamp(2.75rem, 6vw, 5rem); border-bottom: 1px solid var(--rule); }
.trades-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.25rem; }
.trades-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); max-width: 15ch; }
.trades-head p { color: var(--muted); max-width: 52ch; }
.trade-steps { list-style: none; padding: 0; border-top: 3px solid var(--ink); }
.trade-steps li {
  position: relative; display: grid; align-items: start;
  grid-template-columns: 2.5rem 6.5rem minmax(9rem, 15rem) minmax(0, 1fr) minmax(12rem, 17rem);
  gap: .75rem 1.75rem; padding-block: 1.5rem; border-bottom: 1px solid var(--rule);
}
.trade-steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 1.15rem; top: 4.1rem; bottom: -1.5rem; width: 3px;
  background: repeating-linear-gradient(180deg, var(--clay) 0 8px, transparent 8px 14px);
}
.step-no {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  background: var(--clay); color: var(--white); font: 800 1.5rem/1 var(--font-display);
}
.trade-steps svg { width: 6.5rem; height: 4.3rem; color: var(--ink); margin-top: -.5rem; }
.trade-steps h3 { font: 800 1.85rem/1 var(--font-display); }
.trade-steps p { max-width: 60ch; }
.trade-owner { padding-left: 1rem; border-left: 1px solid var(--rule); font-size: .95rem; font-weight: 600; }
.trades-foot { margin-top: 2rem; font-size: .92rem; color: var(--muted); }

/* Reading layout */
.reading { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; font-size: .92rem; }
.toc summary { font: 800 1.35rem/1.1 var(--font-display); list-style: none; padding-bottom: .6rem; border-bottom: 3px solid var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; margin: .5rem 0 0; }
.toc li a { display: flex; align-items: center; min-height: var(--tap); padding: .45rem 0 .45rem .75rem; border-left: 3px solid transparent; text-decoration: none; line-height: 1.3; color: var(--muted); }
.toc li a:hover { color: var(--ink); text-decoration: underline; }
.toc li a[aria-current="location"] { border-left-color: var(--clay); color: var(--ink); font-weight: 600; }
.toc-quote { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.toc-quote p { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }

/* Editorial body */
.editorial { max-width: 70ch; min-width: 0; }
.editorial > * + * { margin-top: 1.05rem; }
.editorial h2 {
  font-size: clamp(1.95rem, 3vw, 2.85rem); line-height: 1.02; text-wrap: balance;
  margin-top: 3.25rem; padding-top: 1rem; border-top: 3px solid var(--ink); scroll-margin-top: 1rem;
}
.editorial > h2:first-child { margin-top: 0; }
.editorial h3 { font: 700 1.28rem/1.25 var(--font-text); margin-top: 1.9rem; }
.editorial h2 + *, .editorial h3 + * { margin-top: .7rem; }
.editorial a { color: var(--clay-dark); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.editorial a:hover { text-decoration-thickness: 2px; }
.editorial ul, .editorial ol { padding-left: 1.4rem; }
.editorial li + li { margin-top: .4rem; }
.editorial ul > li::marker { color: var(--clay); }
.editorial ol > li::marker { color: var(--clay); font-weight: 700; }
.editorial strong { font-weight: 700; }
.editorial blockquote {
  padding: 1.1rem 1.25rem 1.2rem; background: var(--stone); border-top: 4px solid var(--clay);
}
.editorial blockquote > * + * { margin-top: .7rem; }
.editorial hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }
.editorial code { font-size: .92em; background: var(--stone); padding: .05em .3em; }
.table-scroll {
  overflow-x: auto; border: 1px solid var(--rule);
  background:
    linear-gradient(90deg, var(--white) 30%, var(--white-0)) left / 2.5rem 100% no-repeat local,
    linear-gradient(270deg, var(--white) 30%, var(--white-0)) right / 2.5rem 100% no-repeat local,
    linear-gradient(90deg, var(--shade), var(--white-0)) left / 1.1rem 100% no-repeat scroll,
    linear-gradient(270deg, var(--shade), var(--white-0)) right / 1.1rem 100% no-repeat scroll,
    var(--white);
}
.table-scroll:focus-visible { outline-offset: 2px; }
.editorial table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; line-height: 1.45; }
.editorial th, .editorial td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--rule); }
.editorial thead th { background: var(--ink); color: var(--paper); font-weight: 700; }

/* Next step band (town pages) */
.next-step { background: var(--stone); border-top: 1px solid var(--rule); }
.next-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.next-row h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); max-width: 18ch; }
.next-row p { margin-top: .6rem; color: var(--muted); max-width: 52ch; }
.next-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Roof planner (markup and script kept from the previous version) */
.workbench { background: var(--stone); border-top: 1px solid var(--rule); padding-block: clamp(2.75rem, 6vw, 5rem); }
.section-lede { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 3rem; align-items: end; margin-bottom: 1.75rem; }
.section-lede h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.section-lede p { color: var(--muted); max-width: 50ch; }
.workbench-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); border: 1px solid var(--rule); border-top: 6px solid var(--ink); }
.planner-inputs, .planner-result { padding: clamp(1.1rem, 3.5vw, 2.4rem); }
.planner-inputs h3, .planner-result h3 { font: 800 1.7rem/1.05 var(--font-display); }
.planner-inputs label { display: block; margin-top: 1.1rem; font-weight: 600; font-size: .95rem; }
.planner-inputs select, .quote-fields select {
  display: block; width: 100%; min-height: var(--tap); margin-top: .3rem; padding: .5rem .65rem;
  border: 1px solid var(--muted); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.planner-inputs select:hover, .quote-fields select:hover { border-color: var(--ink); }
.planner-inputs select[aria-invalid="true"] { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.planner-result { background: var(--paper); border-left: 1px solid var(--rule); }
.planner-result[data-state="ready"] { box-shadow: inset 0 4px 0 var(--clay); }
.result-label { font-size: .9rem; font-weight: 700; color: var(--clay-dark); margin-bottom: .3rem; }
.planner-result p:not(.result-label) { margin-top: .6rem; }
.planner-result h4 { margin: 1.1rem 0 .4rem; font-size: 1rem; }
.planner-result ul { padding-left: 1.2rem; }
.planner-result li + li { margin-top: .35rem; }
.planner-status { min-height: 1.5em; margin-top: .6rem; color: var(--clay-dark); font-size: .92rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.button, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap);
  padding: .65rem 1.1rem; border: 2px solid var(--ink); border-radius: 2px; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.button { background: var(--ink); color: var(--paper); }
.button:hover { background: var(--roof); }
.button-secondary { background: var(--white); color: var(--ink); }
.button-secondary:hover { background: var(--stone); }

/* Quote checklist */
.quote-band { background: var(--roof); color: var(--paper); padding-block: clamp(2.75rem, 6vw, 5rem); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.quote-band h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
.quote-band .quote-intro p { margin-top: .9rem; max-width: 46ch; color: var(--stone); }
.quote-fields { display: grid; gap: 1rem; }
.quote-fields label { display: block; font-weight: 600; }
.quote-fields select { background: var(--white); border-color: var(--white); }
.quote-fields .btn-quote { justify-self: start; }
.quote-result { margin-top: .5rem; padding: 1.1rem 1.25rem; background: var(--roof-deep); border-top: 4px solid var(--gold); }
.quote-result h3 { font: 800 1.5rem/1.1 var(--font-display); }
.quote-result ol { margin-top: .7rem; padding-left: 1.3rem; }
.quote-result li + li { margin-top: .35rem; }
.quote-result p { margin-top: .8rem; font-size: .9rem; color: var(--stone-2); }

/* Footer */
.site-foot { background: var(--ink); color: var(--stone); font-size: .9rem; border-top: 1px solid var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem 3rem; padding-block: 2.25rem; }
.foot-grid p + p { margin-top: .6rem; }
.foot-brand { font: 800 1.45rem/1 var(--font-display); color: var(--paper); }
.site-foot a { color: var(--paper); }

/* Responsive */
@media (max-width: 80rem) {
  .trade-steps li { grid-template-columns: 2.5rem 6.5rem minmax(9rem, 13rem) minmax(0, 1fr); }
  .trade-steps h3 { grid-column: 3; grid-row: 1 / span 2; }
  .trade-steps li > p:not(.trade-owner) { grid-column: 4; grid-row: 1; }
  .trade-owner { grid-column: 4; grid-row: 2; padding-left: 0; padding-top: .5rem; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 64rem) {
  .reading { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--rule); background: var(--white); }
  .toc summary { cursor: pointer; padding: .75rem 1rem; min-height: var(--tap); border-bottom: 0; display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; }
  .toc summary::after { content: ''; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin-right: .25rem; }
  .toc details[open] summary { border-bottom: 1px solid var(--rule); }
  .toc details[open] summary::after { transform: rotate(-135deg); }
  .toc ol { margin: 0; padding: .25rem 1rem .5rem; }
  .toc-quote { margin: 0; padding: .9rem 1rem 1rem; }
  .trade-steps li { grid-template-columns: 2.5rem minmax(0, 1fr); gap: .5rem 1rem; }
  .trade-steps svg { grid-column: 2; grid-row: 1; width: 5rem; height: 3.3rem; margin-top: -.4rem; }
  .trade-steps h3, .trade-steps li > p:not(.trade-owner), .trade-owner { grid-column: 2; grid-row: auto; }
  .trade-owner { padding-left: 0; padding-top: .5rem; border-left: 0; border-top: 1px solid var(--rule); }
  .trades-head, .section-lede, .quote-grid, .next-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99rem) {
  body { font-size: 1.03rem; }
  .towns-label { display: none; }
  .main-nav li:first-child { display: none; }
  .brand-name { font-size: 1.3rem; max-width: 5.3em; }
  .brand { gap: .55rem; }
  .brand-trade { font-size: .72rem; }
  .mark { flex-basis: 34px; width: 34px; height: 32px; }
  .mark::before, .mark::after { left: 8px; width: 17px; height: 17px; }
  .main-nav .btn-quote { padding: .55rem .75rem; font-size: .9rem; }
  .head-row { padding-block: .6rem; gap: .5rem .75rem; }
  .editorial table { font-size: .9rem; }
  .towns ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .towns a { justify-content: center; padding-inline: .25rem; font-size: .9rem; text-align: center; }
  .fold-photo { position: relative; height: clamp(170px, 46vw, 300px); z-index: 0; }
  .fold-photo::after { background: linear-gradient(0deg, var(--roof) 0%, var(--wash-none) 45%); }
  .fold-inner { min-height: 0; padding-block: 1.25rem 2.25rem; }
  .fold-town .fold-inner { min-height: 0; }
  .fold-photo figcaption { right: .5rem; top: .5rem; bottom: auto; font-size: .72rem; }
  .fold h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .fold-actions .btn-quote, .fold-actions .btn-outline { flex: 1 1 100%; }
  .workbench-panel { grid-template-columns: minmax(0, 1fr); }
  .planner-result { border-left: 0; border-top: 1px solid var(--rule); }
  .editorial h2 { margin-top: 2.6rem; }
}
@media (max-width: 26rem) {
  .head-row { gap: .5rem; }
  .brand-name { font-size: 1.4rem; }
  .btn-quote, .btn-outline { white-space: normal; text-align: center; }
}
/* ---------- brand record: dated evidence on the previous business */
.record {
  background: var(--stone);
  padding-block: clamp(2.75rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.record-head { display: grid; gap: .75rem; max-width: 60rem; margin-bottom: 2.25rem; }
.record-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay-dark);
}
.record-head h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); max-width: 24ch; }
.record-head p { color: var(--muted); max-width: 58ch; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.record-grid-lower { margin-top: 1.25rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
.record-stack { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.record-card {
  min-width: 0; padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--ink);
}
.record-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.record-card h3 { margin-top: .35rem; font: 800 clamp(1.35rem, 2vw, 1.7rem)/1.05 var(--font-display); color: var(--ink); }
.record-card h3 span {
  display: block; margin-top: .45rem; font: 500 .9rem/1.4 var(--font-text);
  letter-spacing: 0; color: var(--muted);
}
.record-card p { margin-top: .6rem; }
.record-card p.record-label { margin-top: 0; }
.record-status {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: .75rem;
  padding: .3rem .7rem; background: var(--stone); border-left: 3px solid var(--gold);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.record-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem; margin-top: 1rem; }
.record-stars { font-size: 1.3rem; line-height: 1; letter-spacing: .06em; }
.record-stars .star { color: var(--stone-2); }
.record-stars .star.on { color: var(--gold); }
.record-stars .star.half {
  background: linear-gradient(90deg, var(--gold) 50%, var(--stone-2) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.record-rating { font-size: .9rem; color: var(--muted); }
.record-rating b { font: 800 1.3rem/1 var(--font-display); color: var(--ink); }
.record-note { font-size: .88rem; color: var(--muted); }
.record-themes, .record-gaps, .record-order, .record-timeline, .record-sources {
  margin-top: .75rem; padding: 0; list-style: none;
}
.record-themes li {
  display: grid; gap: .2rem; padding: .7rem 0; border-top: 1px solid var(--stone-2);
  font-size: .92rem;
}
.record-themes li span {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--clay-dark);
}
.record-order { counter-reset: rec; }
.record-order li {
  position: relative; padding: .7rem 0 .7rem 1.9rem; border-top: 1px solid var(--stone-2);
  font-size: .92rem;
}
.record-order li::before {
  counter-increment: rec; content: counter(rec);
  position: absolute; left: 0; top: .75rem; width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center; background: var(--ink); color: var(--gold);
  font: 700 .68rem/1 var(--font-text);
}
.record-order b { display: block; font-weight: 700; color: var(--ink); }
.record-order p { margin-top: .2rem; color: var(--muted); }
.record-plain li { padding-left: 0; }
.record-plain li::before { display: none; }
.record-quote {
  margin: 1.25rem 0 0; padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--roof); color: var(--stone);
  border-left: 6px solid var(--gold);
}
.record-quote .record-label { color: var(--gold); }
.record-quote p + p { margin-top: .5rem; font: 500 1.15rem/1.5 var(--font-text); color: var(--white); }
.record-table { width: 100%; margin-top: .75rem; border-collapse: collapse; }
.record-table caption { text-align: left; }
.record-table th, .record-table td {
  padding: .7rem 0; text-align: left; vertical-align: top; border-top: 1px solid var(--stone-2);
}
.record-table th {
  width: 6rem; padding-right: .75rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.record-value { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.record-why { display: block; margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.record-gaps li, .record-timeline li {
  position: relative; padding: .7rem 0 .7rem 1.5rem; border-top: 1px solid var(--stone-2);
  font-size: .92rem;
}
.record-gaps li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: .5rem; height: .5rem; background: var(--clay);
}
.record-timeline li { padding-left: 1.6rem; }
.record-timeline li::before {
  content: ""; position: absolute; left: .28rem; top: 1.1rem; bottom: -.1rem;
  width: 2px; background: var(--stone-2);
}
.record-timeline li:last-child::before { display: none; }
.record-timeline li::after {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: .62rem; height: .62rem; background: var(--white); border: 2px solid var(--clay);
}
.record-timeline time {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--clay-dark);
}
.record-timeline p { margin-top: .2rem; color: var(--muted); }
.record-foot {
  margin-top: 1.25rem; padding: clamp(1.1rem, 2.4vw, 1.75rem);
  background: var(--white); border: 1px dashed var(--rule);
}
.record-foot > p:last-child { margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.record-sources { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
.record-sources a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 600; }
@media (max-width: 60rem) {
  .record-grid, .record-grid-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

