/* ============================================================
   Top of The Hill Restaurant — "The Line"
   Palette, named jobs:
     --ground  near-black       the site's ground
     --paper   bone             prose panels + whole paper bands
     --pine    #046A38          saturated accent, used as a whole band ground
     --oxblood #7A1F2B          saturated secondary, used as a whole band ground
     --pine-tint / --ox-tint    readable tints of each for small type on dark
   ============================================================ */

:root {
  --ground:     #12140F;
  --ground-2:   #1B1E17;
  --paper:      #EDE9DF;
  --paper-2:    #DFDACD;
  --paper-3:    #CFC9B9;
  --ink:        #12140F;
  --ink-2:      #3A3B33;
  --pine:       #046A38;
  --pine-deep:  #0B3D25;
  --pine-tint:  #5FC08A;
  --oxblood:    #7A1F2B;
  --ox-tint:    #E38A97;
  --mute-dark:  #AFA99C;   /* on dark */
  --mute-light: #6A6559;   /* on paper */
  --hair-dark:  rgba(237,233,223,.22);
  --hair-light: rgba(18,20,15,.18);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --panel: 900px;
  --breakout: 1440px;
  --gutter: clamp(18px, 5vw, 48px);
  --numcol: 200px;

  --fs-body: 18px;
  --fs-panel: 19px;
  --fs-cap: 16px;
  --fs-credit: 13px;
  --fs-label: 12.5px;
  --unit-gap: 44px;
}

@media (min-width: 900px)  { :root { --fs-body: 18.5px; --fs-panel: 20px; --unit-gap: 56px; --numcol: 220px; } }
@media (min-width: 1200px) { :root { --unit-gap: 64px; --numcol: 240px; } }
@media (min-width: 1500px) { :root { --panel: 1000px; --fs-panel: 21px; --fs-body: 19px; } }
@media (min-width: 1600px) { :root { --numcol: 300px; --fs-cap: 17px; --gutter: 64px; } }
@media (min-width: 1920px) { :root { --panel: 1040px; --breakout: 1600px; --fs-panel: 22px; --fs-body: 19.5px; --fs-credit: 14px; --gutter: 88px; --unit-gap: 76px; } }
@media (min-width: 2400px) { :root { --panel: 1180px; --breakout: 1900px; --fs-panel: 23px; --fs-body: 20.5px; --numcol: 420px; --gutter: 120px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: clip;
}

a { color: var(--pine-tint); text-decoration: none; }
a:hover { color: var(--ox-tint); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -0.033em; margin: 0; text-wrap: pretty; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--pine-tint); }

/* ---------- page grid: three widths, no 100vw ---------- */
.page {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [break-start] minmax(0, var(--breakout))
    [break-end] minmax(var(--gutter), 1fr)
    [full-end];
}
.page > * { grid-column: break-start / break-end; }
.page > .bleed { grid-column: full-start / full-end; }

/* the paper reading panel */
.panel {
  background: var(--paper);
  color: var(--ink);
  max-width: var(--panel);
  margin-inline: auto;
  padding: clamp(26px, 3.2vw, 52px) clamp(20px, 3.4vw, 56px);
  font-size: var(--fs-panel);
  line-height: 1.6;
}
.panel > p { margin: 0 0 1.05em; }
.panel > p:last-child { margin-bottom: 0; }
.panel h2 { font-size: clamp(23px, 2.2vw, 32px); margin: 1.5em 0 .5em; color: var(--ink); }
.panel h2:first-child { margin-top: 0; }
.panel a { color: var(--oxblood); border-bottom: 1px solid rgba(122,31,43,.35); }
.panel a:hover { color: var(--pine); border-bottom-color: currentColor; }
.panel .first-letter::first-letter {
  font-family: var(--display); font-weight: 800; float: left;
  font-size: 3.1em; line-height: .82; padding: .06em .12em 0 0; color: var(--oxblood);
}

/* ---------- the drawn device: outlined numerals ---------- */
.num { display: block; width: 100%; height: auto; color: var(--ox-tint); }
.num path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.num--pine { color: var(--pine-tint); }
.num--ink { color: var(--oxblood); }

/* a rule that steps around the numeral */
.stepped { display: grid; gap: 0 26px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 900px) { .stepped { grid-template-columns: var(--numcol) minmax(0, 1fr); gap: 0 40px; } }
.stepped > .stepped-num { position: relative; padding-top: 6px; }
.stepped > .stepped-num::after {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 1px; background: currentColor; opacity: .4;
}
.stepped-body { border-top: 1px solid var(--hair-dark); padding-top: 22px; }
.band--paper .stepped-body { border-top-color: var(--hair-light); }

.kicker {
  font-family: var(--body); font-weight: 700; font-size: var(--fs-label); letter-spacing: .2em;
  text-transform: uppercase; color: var(--pine-tint); margin: 0 0 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
}
.kicker a { color: inherit; }
.kicker a:hover { color: var(--paper); }
.band--pine .kicker { color: #BFEBD2; }
.band--ox .kicker { color: #F3C9CF; }
.band--paper .kicker, .panel .kicker { color: var(--oxblood); }

/* ---------- header ---------- */
.masthead { background: var(--ground); border-bottom: 3px solid var(--oxblood); }
.masthead-inner { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .masthead-inner { grid-template-columns: 300px minmax(0, 1fr); } }
@media (min-width: 1920px) { .masthead-inner { grid-template-columns: 360px minmax(0, 1fr); } }

.rail { padding: 20px var(--gutter) 18px; border-bottom: 1px solid var(--hair-dark); }
@media (min-width: 900px) { .rail { border-bottom: 0; border-right: 1px solid var(--hair-dark); } }
.rail .wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2.1vw, 30px); line-height: .95; letter-spacing: -0.035em; color: var(--paper); display: block; }
.rail .rail-sub { font-size: 13px; color: var(--mute-dark); margin: 9px 0 0; letter-spacing: .02em; }

.masthead-right { display: flex; flex-direction: column; justify-content: space-between; }
.strapline { padding: 14px var(--gutter) 10px; font-size: 13.5px; color: var(--mute-dark); letter-spacing: .04em; display: none; }
@media (min-width: 900px) { .strapline { display: block; } }

.labelrow { background: var(--oxblood); }
.labelrow ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 2.4vw, 40px); padding: 12px var(--gutter); }
.labelrow a { color: #F7F3EA; font-size: var(--fs-label); font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.labelrow li:nth-child(1) a { color: #EDE9DF; }
.labelrow li:nth-child(2) a { color: #BFEBD2; }
.labelrow li:nth-child(3) a { color: #5FC08A; }
.labelrow li:nth-child(4) a { color: #F0C9CE; }
.labelrow li:nth-child(5) a { color: #DFDACD; }
.labelrow li:nth-child(6) a { color: #A8DCBE; }
.labelrow li a:hover { color: #FFFFFF; }
.labelrow li a[aria-current="page"] { color: #FFFFFF; border-bottom: 2px solid #FFFFFF; padding-bottom: 2px; }

/* narrow: the row collapses behind a Sections control, the rail stays */
.secs-toggle { position: absolute; opacity: 0; pointer-events: none; }
.secs-label {
  display: block; cursor: pointer; background: var(--oxblood); color: #F7F3EA;
  padding: 13px var(--gutter); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase;
}
.secs-label::after { content: " +"; }
.secs-toggle:checked ~ .secs-label::after { content: " \2013"; }
.secs-toggle:focus-visible ~ .secs-label { outline: 2px solid var(--pine-tint); outline-offset: -4px; }
@media (max-width: 899px) {
  .labelrow { display: none; }
  .secs-toggle:checked ~ .labelrow { display: block; }
  .labelrow ul { flex-direction: column; gap: 0; padding-top: 0; }
  .labelrow li { border-top: 1px solid rgba(247,243,234,.2); }
  .labelrow a { display: block; padding: 12px 0; }
}
@media (min-width: 900px) { .secs-label { display: none; } }

/* second level: sections within sections */
.sublevel {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline;
  padding: 12px var(--gutter); border-bottom: 1px solid var(--hair-dark);
  font-size: 13.5px; color: var(--mute-dark);
}
.sublevel strong { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--pine-tint); font-weight: 700; }

/* ---------- bands ---------- */
.band { padding: clamp(38px, 5.2vw, 88px) 0; }
.band--tight { padding: clamp(26px, 3vw, 46px) 0; }
.band--pine { background: var(--pine); color: #F7F3EA; }
.band--ox { background: var(--oxblood); color: #F7F3EA; }
.band--paper { background: var(--paper); color: var(--ink); }
.band--raise { background: var(--ground-2); }
.band--pine a, .band--ox a { color: #FFFFFF; border-bottom: 1px solid rgba(255,255,255,.4); }
.band--paper a { color: var(--oxblood); }

.h-hero { font-size: clamp(44px, 11.4vw, 190px); line-height: .82; letter-spacing: -0.05em; }
.h-band { font-size: clamp(32px, 4.4vw, 68px); line-height: .92; letter-spacing: -0.04em; }
.h-sub  { font-size: clamp(26px, 3vw, 44px); line-height: .95; }
.h-small{ font-size: clamp(21px, 1.9vw, 28px); line-height: 1.02; }

.deck { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.44; color: var(--mute-dark); margin: 22px 0 0; max-width: 56ch; }
.band--pine .deck, .band--ox .deck { color: #E9F3ED; }
.band--paper .deck { color: var(--ink-2); }

.readon { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; letter-spacing: .18em; text-transform: uppercase; margin-top: 22px; border-bottom: 0; }
.readon::after { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- plates (fixed-size photographs) ---------- */
.plate { margin: 0; }
.plate img { width: 100%; height: auto; }
.plate--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.plate--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.plate--bleed { grid-column: full-start / full-end; }
.plate--bleed img { aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .plate--bleed img { aspect-ratio: 4 / 3; } }
.plate--framed img { border: 8px solid var(--paper); }
.band--paper .plate--framed img { border-color: var(--ground); }

/* caption typography: caption leads, credit quieter, one row where there is room */
.cap { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: baseline; margin-top: 12px; }
.cap .cap-text { flex: 1 1 24ch; min-width: 0; max-width: 74ch; font-size: var(--fs-cap); line-height: 1.4; color: var(--mute-dark); border-left: 2px solid var(--pine-tint); padding-left: 12px; }
.cap .cap-credit { flex: 0 1 auto; font-size: var(--fs-credit); color: #9A9488; letter-spacing: .03em; }
@media (min-width: 1100px) { .cap .cap-credit { margin-left: auto; text-align: right; } }
.band--paper .cap .cap-text, .panel .cap .cap-text { color: var(--ink-2); border-left-color: var(--oxblood); }
.band--paper .cap .cap-credit, .panel .cap .cap-credit { color: var(--mute-light); }
.band--pine .cap .cap-text, .band--ox .cap .cap-text { color: #EAF2EC; border-left-color: #FFFFFF; }
.band--pine .cap .cap-credit, .band--ox .cap .cap-credit { color: rgba(247,243,234,.72); }
.plate--bleed .cap { max-width: var(--breakout); margin-inline: auto; padding: 0 var(--gutter); }

/* ---------- article figures: three treatments ---------- */
.fig { margin: var(--unit-gap) 0; }
.fig--plate { grid-column: full-start / full-end; }
.fig--plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .fig--plate img { aspect-ratio: 4 / 3; } }
.fig--plate .cap { max-width: var(--breakout); margin-inline: auto; padding: 12px var(--gutter) 0; }

.fig--offset { display: grid; gap: 16px 36px; align-items: start; }
@media (min-width: 900px) { .fig--offset { grid-template-columns: 62% minmax(0, 1fr); } }
.fig--offset img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--hair-dark); }
.fig--offset .cap { display: block; margin-top: 0; }
.fig--offset .cap .cap-text { display: block; max-width: 42ch; }
.fig--offset .cap .cap-credit { display: block; margin: 10px 0 0; text-align: left; }
@media (min-width: 900px) { .fig--offset .cap { padding-top: 4px; } }

/* inset — sits inside the paper panel, indented from the measure */
.fig--inset { max-width: var(--panel); margin-inline: auto; background: var(--paper); padding: 0 clamp(20px, 3.4vw, 56px) clamp(22px, 2.4vw, 34px); }
.fig--inset .inset-media { max-width: 62%; }
@media (max-width: 700px) { .fig--inset .inset-media { max-width: 100%; } }
.fig--inset img { border: 6px solid var(--paper-2); outline: 1px solid var(--paper-3); }
.fig--inset .cap .cap-text { color: var(--ink-2); border-left-color: var(--oxblood); }
.fig--inset .cap .cap-credit { color: var(--mute-light); }

.gallery { display: grid; gap: 16px; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 24px; } }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--hair-dark); }

/* ---------- inserted units ---------- */
.unit { margin: var(--unit-gap) 0; }
.unit--bleed { grid-column: full-start / full-end; padding: clamp(30px, 3.6vw, 60px) 0; }
.unit-inner { max-width: var(--breakout); margin-inline: auto; padding-inline: var(--gutter); }
.unit-head { font-size: var(--fs-label); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 20px; font-family: var(--body); }
.band--pine .unit-head, .band--ox .unit-head { color: #F7F3EA; }
.unit-head { color: var(--pine-tint); }

.statrow { display: grid; gap: 2px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .statrow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .statrow { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.statblock { background: rgba(247,243,234,.08); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid currentColor; }
.statblock .stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.03em; color: var(--paper); }
.statblock .stat-label { font-size: 15px; line-height: 1.35; color: var(--mute-dark); }
.band--pine .statblock .stat-num, .band--ox .statblock .stat-num { color: #FFFFFF; }
.band--pine .statblock .stat-label, .band--ox .statblock .stat-label { color: #E4F1E9; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 3px 30px; padding: 15px 0; border-top: 1px solid var(--hair-dark); }
@media (min-width: 760px) { .timeline li { grid-template-columns: minmax(150px, 26%) minmax(0, 1fr); align-items: baseline; } }
.timeline .t-when { font-weight: 700; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--pine-tint); }
.timeline .t-what { font-size: 17px; line-height: 1.45; color: var(--paper); }
.band--pine .timeline li, .band--ox .timeline li { border-top-color: rgba(247,243,234,.28); }
.band--pine .timeline .t-when, .band--ox .timeline .t-when { color: #FFFFFF; }
.band--pine .timeline .t-what, .band--ox .timeline .t-what { color: #EAF3EE; }

.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: grid; gap: 3px 30px; padding: 14px 0; border-top: 1px solid var(--hair-dark); }
@media (min-width: 760px) { .spec-list li { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); align-items: baseline; } }
.spec-list .s-key { font-weight: 700; font-size: 15px; color: var(--pine-tint); }
.spec-list .s-val { font-size: 17px; line-height: 1.45; color: var(--paper); }
.band--pine .spec-list li, .band--ox .spec-list li { border-top-color: rgba(247,243,234,.28); }
.band--pine .spec-list .s-key, .band--ox .spec-list .s-key { color: #FFFFFF; }
.band--pine .spec-list .s-val, .band--ox .spec-list .s-val { color: #EAF3EE; }

/* ---------- styleguide components ---------- */
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.42; color: var(--mute-dark); margin: 0 0 1em; }
.panel .lead, .band--paper .lead { color: var(--ink-2); }
.pullquote { margin: var(--unit-gap) 0; padding-left: 22px; border-left: 5px solid var(--oxblood); }
.pullquote p { font-family: var(--display); font-weight: 800; font-size: clamp(23px, 2.3vw, 34px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; }
.blockquote { margin: var(--unit-gap) 0; padding: 20px 24px; background: var(--ground-2); border-left: 5px solid var(--pine); }
.band--paper .blockquote, .panel .blockquote { background: var(--paper-2); }
.blockquote p { margin: 0 0 10px; }
.blockquote cite { font-style: normal; font-size: 14px; color: var(--mute-dark); letter-spacing: .04em; }
.band--paper .blockquote cite, .panel .blockquote cite { color: var(--mute-light); }
.callout { margin: var(--unit-gap) 0; padding: 22px 24px; background: var(--pine); color: #F7F3EA; }
.callout p { margin: 0; line-height: 1.5; }
.note { font-size: 15.5px; line-height: 1.5; color: var(--mute-dark); border-top: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark); padding: 13px 0; margin: 28px 0; }
.band--paper .note, .panel .note { color: var(--ink-2); border-color: var(--hair-light); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.versus, table.datatable { width: 100%; border-collapse: collapse; font-size: 16.5px; min-width: 480px; }
table.versus th, table.versus td, table.datatable th, table.datatable td { text-align: left; padding: 13px 18px 13px 0; border-top: 1px solid var(--hair-dark); vertical-align: top; }
table.versus thead th, table.datatable thead th { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pine-tint); border-top: 0; border-bottom: 2px solid var(--pine-tint); }
table.versus tbody th { font-weight: 600; font-size: 15px; color: var(--mute-dark); }
.band--paper table.versus th, .band--paper table.versus td, .band--paper table.datatable th, .band--paper table.datatable td { border-top-color: var(--hair-light); }
.band--paper table thead th { color: var(--oxblood); border-bottom-color: var(--oxblood); }

.chart svg { width: 100%; height: auto; }
.chart .c-bar { fill: var(--pine-tint); }
.chart .c-bar-alt { fill: var(--ox-tint); }
.chart .c-axis { stroke: var(--hair-dark); }
.chart .c-lab { font-family: var(--body); font-size: 11px; fill: var(--mute-dark); }

.profile-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .profile-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } }
.profile-card { background: var(--ground-2); padding: 20px; display: flex; flex-direction: column; gap: 9px; border-top: 3px solid var(--pine); }
.profile-card .p-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 6px; }
.profile-card h3 { font-size: 22px; }
.profile-card .p-role { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-tint); margin: 0; }
.profile-card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute-dark); }
.profile-card.no-photo { border-top-color: var(--oxblood); }

.org-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.org-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 3px 14px; align-items: center; padding: 14px 16px; background: var(--ground-2); color: var(--paper); }
.org-card:hover { background: var(--pine-deep); }
.org-card .org-logo { grid-row: span 2; width: 44px; height: 44px; object-fit: contain; }
.org-card .org-name { font-weight: 600; font-size: 16px; }
.org-card .org-host { font-size: 13px; color: var(--mute-dark); }
.org-card.no-logo { grid-template-columns: minmax(0,1fr); }
.org-card.no-logo .org-logo { display: none; }
.entity-ref { border-bottom: 1px solid currentColor; }

.further-grid, .related-links { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; grid-template-columns: 1fr; }
@media (min-width: 760px) { .further-grid, .related-links { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } }
.related-links li { display: flex; }
.further-grid a, .related-links a {
  display: flex; flex-direction: column; gap: 10px; height: 100%; width: 100%;
  background: var(--ground-2); padding: 18px 20px 22px; color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.04; letter-spacing: -0.03em;
  border-top: 3px solid var(--oxblood); border-bottom: 0;
}
.further-grid a:hover, .related-links a:hover { background: var(--pine-deep); color: #FFFFFF; }
.related-links .rl-sec { font-family: var(--body); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--pine-tint); }

/* ---------- map: full-width band, key at the left ---------- */
.map-band { padding: clamp(34px, 4.4vw, 72px) 0; }
.map-band-inner { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); align-items: start; }

@media (min-width: 1000px) { .map-band-inner { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } }
@media (min-width: 1920px) { .map-band-inner { grid-template-columns: 380px minmax(0, 1fr); gap: 56px; } }
.map-side .h-small { margin-bottom: 18px; }
.map-key { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--hair-dark); }
.map-key li { border-bottom: 1px solid var(--hair-dark); }
.map-key a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 11px 0; color: var(--paper); border-bottom: 0; }
.map-key a:hover { color: var(--pine-tint); }
.map-key a:hover .mk-note { color: var(--paper); }
.mk-no { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--ox-tint); padding-top: 2px; }
.mk-body { display: grid; gap: 3px; }
.mk-name { font-weight: 600; font-size: 16.5px; letter-spacing: .01em; }
.mk-note { font-size: 14.5px; line-height: 1.42; color: var(--mute-dark); }
.map-frame { position: relative; }
.map-locator { position: absolute; top: clamp(14px, 1.6vw, 26px); right: clamp(14px, 1.6vw, 26px); z-index: 1;
  margin: 0; width: clamp(120px, 13vw, 200px); background: rgba(18,20,15,.88); border: 1px solid var(--hair-dark); padding: 10px 12px 9px; }
.map-locator svg { width: 100%; height: auto; display: block; }
.map-panel-lab { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute-dark); margin-top: 8px; }
.map-figure { margin: 0; }
.map-frame { background: var(--ground); border: 1px solid var(--hair-dark); padding: clamp(10px, 1.2vw, 18px); }
.map-frame svg { width: 100%; height: auto; display: block; }
.map-field { fill: #161A14; }
.map-grat-line { stroke: rgba(95,192,138,.16); stroke-width: .5; }
.map-grat-line.is-major { stroke: rgba(95,192,138,.34); stroke-width: .8; }
.map-grat-lab { font-family: var(--body); font-size: 7.4px; letter-spacing: .06em; fill: #7FA891; }
.map-hull { fill: rgba(122,31,43,.14); stroke: var(--ox-tint); stroke-width: 1.6; }
.map-legend-row { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.map-legend-row li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--mute-dark); }
.map-legend-row svg { width: 26px; height: 10px; flex: 0 0 auto; overflow: visible; }
.map-legend-row .map-hull { fill: none; stroke-width: 1.6; }
.map-legend-row .map-link { stroke-width: 1.6; stroke-dasharray: 5 4; }
.map-legend-row .map-grat-line.is-major { stroke-width: 1.2; }
.map-north-line { stroke: var(--paper); stroke-width: 1.1; }
.map-north-head { fill: var(--paper); }
.map-north-lab { font-family: var(--display); font-weight: 800; font-size: 9px; fill: var(--paper); }
.map-state { fill: #1D2620; stroke: var(--pine-tint); stroke-width: 16; stroke-linejoin: round; }
.map-frame-mark { fill: none; stroke: var(--ox-tint); stroke-width: 40; }
.map-link { stroke: var(--ox-tint); stroke-width: 1.4; stroke-dasharray: 5 4; }
.map-scale { stroke: var(--paper); stroke-width: 1.2; }
.map-dot { fill: var(--ox-tint); }
.map-leader { stroke: var(--ox-tint); stroke-width: .6; opacity: .7; }
.map-pin { fill: var(--oxblood); stroke: var(--ox-tint); stroke-width: .9; }
.map-pin--big { fill: var(--oxblood); stroke: #F3C9CF; stroke-width: 1.2; }
.map-pin-no { font-family: var(--display); font-weight: 800; font-size: 6px; fill: #FFE9EC; }
.map-pin-no--loc { font-size: 250px; }
.map-lab { font-family: var(--body); font-size: 10.4px; font-weight: 600; fill: #F1ECE0; }
.map-lab--dim { fill: #C9C3B6; font-weight: 400; font-size: 9px; }

/* ---------- article page ---------- */
.piece-head { padding: clamp(30px, 4vw, 72px) 0 clamp(20px, 2.4vw, 34px); }
.piece-head h1 { font-size: clamp(34px, 6.4vw, 104px); line-height: .86; letter-spacing: -0.045em; }
.piece-head .lead { margin-top: 22px; max-width: 52ch; }
@media (min-width: 1100px) {
  .piece-head { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(300px, .88fr); gap: 16px 60px; align-items: end; }
  .piece-head .kicker { grid-column: 1 / -1; }
  .piece-head .lead { margin-top: 0; border-top: 1px solid var(--hair-dark); padding-top: 18px; }
}
.piece-foot { padding: clamp(32px, 4vw, 60px) 0 clamp(44px, 5vw, 84px); border-top: 1px solid var(--hair-dark); margin-top: var(--unit-gap); }
.piece-foot h2 { font-size: clamp(20px, 1.8vw, 26px); margin-bottom: 18px; }

/* ---------- category pages ---------- */
.cat-head { padding: clamp(32px, 4.4vw, 76px) 0 clamp(24px, 2.8vw, 40px); }
.cat-head h1 { font-size: clamp(40px, 7vw, 116px); line-height: .84; letter-spacing: -0.05em; }
@media (min-width: 1100px) {
  .cat-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr); gap: 16px 60px; align-items: end; }
  .cat-head .kicker { grid-column: 1 / -1; }
}
.cat-count { font-size: 13px; letter-spacing: .17em; text-transform: uppercase; color: var(--mute-dark); margin: 18px 0 0; }

.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
@media (min-width: 820px)  { .cat-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px 34px; } }
@media (min-width: 1500px) { .cat-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px 36px; } }
.cat-list > li { display: flex; }
.cat-list .entry { display: flex; flex-direction: column; gap: 14px; width: 100%; background: var(--ground-2); padding-bottom: 24px; border-top: 3px solid var(--pine); color: var(--paper); }
.cat-list .entry:hover { background: var(--pine-deep); }
.cat-list .entry img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cat-list .entry .e-body { padding: 0 22px; display: flex; flex-direction: column; gap: 10px; }
.cat-list .entry .e-num { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .18em; color: var(--ox-tint); }
.cat-list .entry h2 { font-size: clamp(21px, 1.7vw, 27px); }
.cat-list .entry p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--mute-dark); }
@media (min-width: 820px) {
  .cat-list > li.lead-entry { grid-column: span 2; }
  .cat-list > li.lead-entry .entry { display: grid; grid-template-columns: 54% minmax(0,1fr); gap: 0 28px; padding-bottom: 0; }
  .cat-list > li.lead-entry .entry img { aspect-ratio: 4/3; height: 100%; }
  .cat-list > li.lead-entry .entry .e-body { padding: 26px 26px 28px 0; gap: 13px; }
  .cat-list > li.lead-entry .entry h2 { font-size: clamp(27px, 2.8vw, 46px); }
  .cat-list > li.lead-entry .entry p { font-size: 17.5px; }
}
@media (min-width: 1500px) { .cat-list > li.lead-entry { grid-column: span 3; } }

/* ---------- register ---------- */
.register { width: 100%; border-collapse: collapse; }
.register td, .register th { text-align: left; padding: 14px 20px 14px 0; border-top: 1px solid var(--hair-dark); vertical-align: top; }
.register thead th { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pine-tint); border-top: 0; border-bottom: 2px solid var(--pine-tint); }
.register .r-thumb { width: 116px; padding-right: 20px; }
.register .r-thumb img { width: 116px; aspect-ratio: 3/2; object-fit: cover; }
.register .r-title { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.04; letter-spacing: -0.03em; color: var(--paper); }
.register .r-title:hover { color: var(--pine-tint); }
.register .r-sec { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute-dark); white-space: nowrap; }
@media (max-width: 700px) { .register .r-thumb, .register .r-thumb img { width: 80px; } .register .r-title { font-size: 17px; } }

.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filterbar button { font-family: var(--body); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; background: transparent; border: 1px solid var(--hair-dark); color: var(--paper); padding: 9px 15px; cursor: pointer; }
.filterbar button:hover { border-color: var(--pine-tint); color: var(--pine-tint); }
.filterbar button[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: #F7F3EA; }

/* ---------- supporters: one line per band, label left, slots across ---------- */
.supporters {
  margin: clamp(20px, 2.4vw, 34px) 0;
  display: grid; grid-template-columns: 1fr; gap: 6px 40px; align-items: stretch;
  border-top: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark);
}
@media (min-width: 760px)  { .supporters { grid-template-columns: 190px minmax(0, 1fr); gap: 0 40px; } }
@media (min-width: 1920px) { .supporters { grid-template-columns: 240px minmax(0, 1fr); gap: 0 64px; } }
.supporters h2 {
  font-family: var(--body); font-weight: 700; font-size: 11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute-dark); margin: 0; padding: 18px 0 6px; align-self: center;
}
@media (min-width: 760px) { .supporters h2 { padding: 0; } }
.sponsor-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px;
}
@media (min-width: 620px)  { .sponsor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sponsor-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sponsor-list li { display: flex; }
.sponsor {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: center;
  width: 100%; padding: 16px 0 18px; color: var(--paper); border-bottom: 0;
}
@media (min-width: 760px) { .sponsor { padding: 20px 0 22px; } }
.sponsor img { width: 100%; height: 46px; object-fit: contain; object-position: left center; background: var(--ground-2); padding: 7px 12px; }
.sponsor .sponsor-name { font-size: 15px; letter-spacing: .02em; color: var(--mute-dark); }
.sponsor:hover .sponsor-name { color: var(--pine-tint); }
.sponsor:hover img { outline: 1px solid var(--pine-tint); }
.band--paper .sponsor img { background: var(--ground); }
.band--paper .supporters { border-color: var(--hair-light); }
.band--paper .sponsor .sponsor-name { color: var(--mute-light); }
.band--paper .supporters h2 { color: var(--mute-light); }

/* ---------- footer ---------- */
.sitefoot { border-top: 3px solid var(--oxblood); padding: clamp(32px, 3.6vw, 60px) 0 clamp(36px, 4vw, 70px); background: var(--ground); }
.sitefoot-grid { display: grid; gap: 28px 52px; }
@media (min-width: 860px)  { .sitefoot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1920px) { .sitefoot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); } }
.sitefoot .ft-name { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: .95; letter-spacing: -0.035em; }
.sitefoot p { color: var(--mute-dark); font-size: 16px; line-height: 1.5; margin: 14px 0 0; max-width: 46ch; }
.ft-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ft-links a { color: var(--paper); font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; }
.ft-links a:hover { color: var(--pine-tint); }
.ft-head { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--pine-tint); font-weight: 700; margin: 0 0 14px; }
.ft-meta { font-size: 13px; letter-spacing: .06em; color: var(--mute-dark); margin-top: 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--pine-tint); color: var(--ground); padding: 10px 14px; z-index: 20; }

.simple { padding: clamp(32px, 4vw, 68px) 0 clamp(44px, 5vw, 84px); }
.simple h1 { font-size: clamp(36px, 6vw, 88px); line-height: .88; letter-spacing: -0.045em; margin-bottom: 26px; }
.sg-set { margin: 0 0 clamp(36px, 4vw, 68px); }
.sg-set > h2 { font-size: clamp(22px, 2vw, 30px); margin: 0 0 6px; }
.sg-set > .sg-note { font-size: 14px; color: var(--mute-dark); margin: 0 0 22px; border-bottom: 1px solid var(--hair-dark); padding-bottom: 12px; }
.sg-rows { display: grid; gap: 28px; }
.expander { border-top: 1px solid var(--hair-dark); }
.expander summary { cursor: pointer; font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine-tint); padding: 12px 0; }
.plainlist { margin: 0 0 8px; padding-left: 1.15em; color: var(--mute-dark); }
.plainlist li { margin-bottom: 6px; }

/* homepage band splits */
.split { display: grid; gap: 30px 52px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); } }
@media (min-width: 1920px) { .split { gap: 40px 72px; } }
.two-plates { display: grid; gap: 30px 40px; grid-template-columns: minmax(0, 1fr); margin-top: 34px; }
@media (min-width: 820px) { .two-plates { grid-template-columns: 1fr 1fr; } }
.stillcut { max-width: 320px; }
@media (min-width: 900px) { .stillcut { max-width: 100%; } }

/* flattened footer */
.sitefoot-flat { display: grid; gap: 22px; }
.ft-top { display: grid; gap: 10px 48px; align-items: baseline; }
@media (min-width: 900px) { .ft-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sitefoot .ft-name { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.2vw, 34px); line-height: .98; letter-spacing: -0.035em; color: var(--paper); }
.sitefoot .ft-name:hover { color: var(--pine-tint); }
.ft-line { color: var(--mute-dark); font-size: 16px; line-height: 1.5; margin: 0; max-width: 52ch; }
.ft-sections ul { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.6vw, 44px); border-top: 1px solid var(--hair-dark); border-bottom: 1px solid var(--hair-dark); }
.ft-sections a { color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.ft-sections a:hover { color: var(--pine-tint); }
.ft-base { display: grid; gap: 12px 48px; align-items: baseline; }
@media (min-width: 900px) { .ft-base { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ft-standing { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft-standing a { color: var(--mute-dark); font-size: 13.5px; letter-spacing: .06em; }
.ft-standing a:hover { color: var(--pine-tint); }
.sitefoot .ft-meta { font-size: 13px; letter-spacing: .04em; color: var(--mute-dark); margin: 0; }

/* homepage plate variants */
.plate--bleed-wide img { aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .plate--bleed-wide img { aspect-ratio: 4 / 3; } }
.two-plates { align-items: start; }

/* ---------- homepage hero: the lead band on its photograph ---------- */
.hero { position: relative; background: var(--ground); overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 auto; height: 100%; margin: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(18,20,15,.95) 0%, rgba(18,20,15,.9) 42%, rgba(18,20,15,.62) 74%, rgba(18,20,15,.5) 100%); }
.hero-inner { padding: clamp(44px, 6vw, 104px) 0 clamp(36px, 4.4vw, 72px); }
.hero .num { color: var(--ox-tint); }
.hero .h-hero { color: var(--paper); }
.hero .deck { color: #E4DFD3; }
.hero-foot { padding: 0 0 clamp(20px, 2.4vw, 34px); }
.hero-foot .cap { margin-top: 0; }
.hero-foot .cap .cap-text { color: #D8D2C5; border-left-color: var(--ox-tint); }
.hero-foot .cap .cap-credit { color: #ADA69A; }
@media (min-width: 1100px) { .hero-media img { object-position: 70% 45%; } }

/* sp-mark-align: marks sit CENTRED in their box. Placement only — Design's size,
   padding, panel and object-fit are untouched. */
.sponsor img,.sponsor-box img,.sp-logo img{object-position:center!important;margin-left:auto!important;margin-right:auto!important;display:block}
.sponsor .sp-logo,.sponsor-box{display:flex;align-items:center;justify-content:center}

/* sp-tile-uniform: a slot never grows to fill its row — every tile the same width in
   every row, whatever the count. Only flex-grow is touched. */
.sponsor{flex-grow:0!important}
.sponsor.lead-line,.sponsor.feat.lead-line{flex-grow:1!important}
.sponsor:not(.lead-line){flex-basis:var(--sp-tile,232px)!important}
.sponsor-list li{flex-wrap:wrap!important}
.sponsor-list li > .sponsor{flex:1 1 var(--sp-min,220px)!important;min-width:min(220px,100%)!important}
.sponsor:not(.lead-line){grid-column:span 1!important;grid-row:span 1!important}

/* sp-grid-fill: fixed px columns leave a dead strip at wide widths — the tiles
   must stretch, and a tile with its own fixed width has to give that up too */
.supporters{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;justify-content:stretch!important}
.supporters>[data-partner],.supporters>*>[data-partner]{width:auto!important}

/* sp-blurb-stack: a slot holding BOTH a mark and our copy stacks them —
   a fixed-height row clips the mark once the copy is un-hidden. */
.sponsor:has(> img):has(> .sponsor-blurb:not(:empty)){flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;height:auto!important;min-height:0!important;overflow:visible!important;gap:8px}
.sponsor:has(> img):has(> .sponsor-blurb:not(:empty)) > img{align-self:flex-start}

/* sp-blurb-unhide: every supporter slot shows its text — no half-texted grids */
.sponsor-blurb:not(:empty){display:block!important;line-height:1.5}

/* sp-blurb-size: the design never sized .sponsor-blurb, so it inherited body copy.
   Relative, so it still follows the design's scale. */
.sponsor .sponsor-blurb{font-size:.8em;line-height:1.45}
.sponsor .sp-brand{font-weight:700}

/* sp-tile-fit: a slot fills its track, keeps a symmetric inset, and cannot be inflated
   by one long line of our copy. */
.sponsor.sponsor{width:100%!important;box-sizing:border-box!important;align-self:stretch!important;align-items:center!important;height:auto!important;min-height:0!important;overflow:hidden}
.sponsor.sponsor{justify-content:center!important}
:has(> .sponsor.sponsor){align-items:stretch!important}
.sponsor.sponsor .sponsor-name{min-width:0!important;overflow-wrap:anywhere}
.sponsor.sponsor > img{flex:0 0 auto!important;align-self:center!important}
.sponsor.sponsor > .sponsor-txt,.sponsor.sponsor > span:not(.sponsor-name):not(.sponsor-box):not(.sp-logo):not(.sponsor__logo){flex:1 1 auto!important;min-width:0!important}
.sponsor.sponsor .sponsor-blurb{display:-webkit-box!important;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin:0!important}
/* the mobile un-clamp is retired: the operator asked for "2-3 rows max" on phones, which is
   what the desktop rule above already does — so mobile simply keeps it. */
@media (max-width:640px){.sponsor.sponsor .sponsor-blurb{-webkit-line-clamp:3!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;overflow:hidden!important}}

/* sp-blurb-link: money-link anchors in blurbs must inherit the blurb colour (readable on dark OR light tiles) */
.sponsor-blurb a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* op-marks-bigger: operator: enlarge the logos. The plate filled its tile but stood only 46px
   tall with a 7px/12px inset, so the artwork read small in a band with room. Plate 64px. */
.sponsor-list .sponsor.sponsor img{height:64px!important;max-height:none!important}

/* op-img-dims — intrinsic width/height reserve image space; the proven height:auto guard (zero specificity) */
:where(article.page > figure.bleed.fig.fig--plate > img,
  article.page > figure.fig.fig--offset > img,
  div > figure.plate.plate--wide > img,
  div.fig.gallery > figure > img,
  div.split.stepped-body > figure.plate.plate--framed.plate--wide > img,
  div.split.stepped-body > figure.plate.plate--wide > img,
  div.two-plates > figure.plate.plate--framed.plate--tall > img,
  figure.fig.fig--inset > div.inset-media > img,
  li > a.entry > img,
  li.lead-entry > a.entry > img,
  section.bleed.hero > figure.hero-media > img,
  td.r-thumb > a > img){height:auto}
/* op-img-dims:end */
[data-partner] img{background:transparent!important}
