/* BuyRight Calc: "workshop" look. Paper ground, ink type, tape-measure yellow.
   The one signature move: every result prints as a shopping-list slip. */
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2-variations'), url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f4f1e9;
  --surface: #fffdf8;
  --text: #1a1d21;
  --muted: #50575f;
  --line: #ddd5c4;
  --field-line: #857e72;
  --ink: #1a1d21;
  --ink-text: #f4f1e9;
  --tape: #f5b301;
  --tape-soft: #fbedc2;
  --link: #1c4fa0;
  --focus: #1c4fa0;
  --slip: #fffef9;
  --slip-ink: #1a1d21;
  --slip-muted: #5a5f66;
  --slip-rule: #c9c2b2;
  --error: #b42318;
  --radius: 10px;
  --wrap: 1120px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1b1e22;
    --text: #ebe7df;
    --muted: #a9afb6;
    --line: #2e3339;
    --field-line: #747a82;
    --ink: #0b0c0e;
    --ink-text: #ebe7df;
    --tape-soft: #2c2512;
    --link: #93b6ff;
    --focus: #f5b301;
    --slip: #f1ecdf;
    --slip-muted: #4f545b;
    --slip-rule: #b9b1a0;
    --error: #ff8a7a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
::selection { background: var(--tape); color: #1a1d21; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.icon { width: 24px; height: 24px; flex: none; }
.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; }

/* Header: ink bar finished with a tape-measure edge */
.site-header { background: var(--ink); color: var(--ink-text); position: relative; }
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px) top left / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 48px) top left / 100% 7px no-repeat,
    var(--tape);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-stretch: 88%; font-size: 21px; letter-spacing: -0.01em; color: var(--ink-text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.main-nav { display: flex; gap: 4px; margin-right: -12px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-text); opacity: .82; text-decoration: none; font-weight: 600; }
.main-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
.main-nav a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (max-width: 560px) { .main-nav { margin: 0 0 4px -12px; width: 100%; } }

main.wrap { padding-top: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); display: inline-block; padding: 10px 0; }
.crumbs span { margin: 0 6px; }

h1, h2, h3 { font-stretch: 90%; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; font-weight: 800; margin: 14px 0 10px; }
h2 { font-size: 25px; line-height: 1.2; font-weight: 750; margin: 44px 0 10px; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 28px 0 6px; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.5; margin: 0 0 24px; max-width: 62ch; }
code { font-size: .9em; background: var(--tape-soft); padding: 1px 5px; border-radius: 4px; }

/* Calculator */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 28px;
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; padding: 16px; margin-inline: -4px; } }
.fields { display: grid; gap: 16px; align-content: start; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.row > .field { display: flex; flex-direction: column; }
.row > .field small { min-height: 0; }
label { display: block; font-size: 15px; font-weight: 650; margin-bottom: 5px; line-height: 1.3; }
.field small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 5px; }
.row:has(small) { align-items: start; }
input, select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  caret-color: var(--link);
}
input::placeholder { color: var(--muted); opacity: .9; }
input:focus, select:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[aria-invalid='true'] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field .err { color: var(--error); font-weight: 600; }
input[type='checkbox'] { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--text); flex: none; }
label:has(> input[type='checkbox']) { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 15px; font-weight: 650; padding: 0; margin-bottom: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs label { margin: 0; }
.tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--surface); }
.tabs span:hover { border-color: var(--text); }
.tabs input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
/* US / metric switch: a quiet setting above the form, styled apart from the question tabs */
.units { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.units-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.units-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.units-seg label { margin: 0; }
.units-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.units-seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.units-seg span:hover { color: var(--text); }
.units-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .14), inset 0 0 0 1px var(--field-line); }
.units-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: inherit; font-size: 15px; font-weight: 650; padding: 0 16px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--surface); color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
[hidden] { display: none !important; }

/* Result: the shopping-list slip */
.results { align-self: start; position: sticky; top: 18px; scroll-margin-top: 18px; }
.results .hint {
  margin: 0;
  padding: 22px 20px;
  border: 1.5px dashed var(--field-line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 16px;
}
.results .hint strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 2px; }
.slip-wrap { filter: drop-shadow(0 1px 1px rgb(26 29 33 / .12)) drop-shadow(0 10px 18px rgb(26 29 33 / .14)); }
.slip {
  background: var(--slip);
  color: var(--slip-ink);
  padding: 18px 20px 30px;
  border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  font-variant-numeric: tabular-nums;
  transition: opacity .2s;
}
.slip a { color: #1c4fa0; }
.results.stale .slip { opacity: .45; }
.results .stale-msg { margin: 0 0 10px; color: var(--error); font-weight: 650; font-size: 15px; }
.slip h2 {
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--slip-ink);
  font-size: 15px;
  font-stretch: 100%;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stats { display: block; }
.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--slip-rule);
}
.stat-label { font-size: 16px; font-weight: 600; }
.stat-value { grid-column: 2; grid-row: 1; font-size: 20px; font-weight: 750; line-height: 1.2; text-align: right; }
.stat-sub { grid-column: 1 / -1; font-size: 14px; color: var(--slip-muted); }
.stat.primary { display: block; padding: 12px 0 14px; border-bottom: 2px solid var(--slip-ink); }
.stat.primary .stat-label { font-size: 15px; color: var(--slip-muted); font-weight: 650; }
.stat.primary .stat-value {
  display: inline;
  font-size: 44px;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: left;
  background: linear-gradient(transparent 58%, var(--tape) 58% 92%, transparent 92%);
  padding: 0 2px;
}
.stat.primary .stat-sub { margin-top: 2px; }
.slip .note { font-size: 14px; line-height: 1.45; color: var(--slip-muted); margin: 10px 0 0; }
.slip .hint { border: 0; padding: 8px 0 0; color: var(--slip-ink); }
.slip-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.slip-actions .btn { background: transparent; color: var(--slip-ink); border-color: var(--slip-ink); }
.slip-actions .btn:hover { background: var(--slip-ink); color: var(--slip); }
.slip-actions .icon { width: 18px; height: 18px; }

/* Mobile: the result follows the thumb */
.result-bar {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px 8px 16px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 12px;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .45);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s;
}
.result-bar[hidden] { display: flex !important; transform: translateY(140%); opacity: 0; pointer-events: none; }
.result-bar b { font-size: 22px; font-stretch: 85%; color: var(--tape); margin-right: 6px; font-variant-numeric: tabular-nums; }
.result-bar span { font-size: 15px; }
.result-bar em { font-style: normal; font-size: 14px; font-weight: 650; padding: 8px 12px; border-radius: 8px; background: var(--tape); color: #1a1d21; white-space: nowrap; }
@media (min-width: 761px) { .result-bar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .result-bar { transition: none; } }

/* Answer pages: the answer leads, marked like the tape */
.answer {
  background: var(--tape-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 22px;
  max-width: 68ch;
  font-size: 19px;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tape) 60%, transparent);
}
.answer p { margin: 0; }
.answer strong { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* Long-form content */
.content { max-width: 68ch; }
.content li { margin: 4px 0; }
.content table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 10px 10px; text-align: left; vertical-align: top; }
.content th { font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--text); }
.content tbody tr:hover { background: var(--tape-soft); }
.table-scroll { overflow-x: auto; }
.formula {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; min-height: 52px; padding: 8px 0; font-weight: 650; cursor: pointer; list-style: none; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 500; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 14px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.side h3 { margin: 0 0 8px; font-size: 15px; font-stretch: 100%; letter-spacing: 0; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.side li a:hover { color: var(--link); text-decoration: underline; }
.side li a .icon { color: var(--muted); width: 22px; height: 22px; }
.side li + li a { border-top: 1px solid var(--line); }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: sticky; top: 18px; }
.side-box h3 + ul + h3 { margin-top: 18px; }

/* Home */
.home-hero { padding: 18px 0 8px; }
.home-hero h1 { font-size: clamp(34px, 5.4vw, 58px); max-width: 19ch; margin-bottom: 14px; }
.home-hero .lede { font-size: 20px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.popular li:first-child { font-size: 15px; font-weight: 650; color: var(--muted); margin-right: 4px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 40px; margin: 28px 0 12px; }
.group h2 { font-size: 15px; font-stretch: 100%; letter-spacing: .02em; margin: 18px 0 2px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list a {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.tool-list .tool-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--tape-soft);
}
.tool-list .tool-name { font-weight: 700; font-size: 17px; line-height: 1.3; }
.tool-list .tool-blurb { color: var(--muted); font-size: 15px; line-height: 1.4; }
.tool-list a:hover .tool-name { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tool-list a:hover .tool-icon { background: var(--tape); color: #1a1d21; }

/* Guides list (home page) */
.guide-list { list-style: none; margin: 8px 0 32px; padding: 0; max-width: 820px; }
.guide-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.guide-list .guide-title { display: block; font-weight: 700; font-size: 18px; line-height: 1.3; }
.guide-list .guide-desc { display: block; color: var(--muted); font-size: 15px; margin-top: 3px; }
.guide-list time { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.guide-list a:hover .guide-title { color: var(--link); text-decoration: underline; }

/* Guides index. Guides have no photos: each one carries its calculator's line icon.
   Newest = magazine lead (one big story + two smaller) on a tape-soft wash; topics = hairline rows like the home page. */
.guide-jump ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 8px; padding: 0; }
.guide-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; background: var(--surface); }
.guide-jump a span { font-size: 13px; font-weight: 700; color: var(--muted); }
.guide-jump a:hover { border-color: var(--text); }
.guide-section { margin: 36px 0 0; scroll-margin-top: 16px; }
.guide-section h2 { font-size: 15px; font-stretch: 100%; letter-spacing: .02em; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.guide-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-content: start;
  height: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.guide-card > * { grid-column: 2; }
.guide-card .guide-icon { grid-column: 1; grid-row: 1 / span 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--tape-soft); }
.guide-card .guide-kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.guide-card .guide-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.guide-card .guide-desc { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.guide-card time { color: var(--muted); font-size: 14px; margin-top: 10px; }
.guide-card:hover .guide-title { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.guide-card:hover .guide-icon { background: var(--tape); color: #1a1d21; }
.guide-newest { background: var(--tape-soft); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.guide-newest h2 { border: 0; padding: 0; margin: 0 0 14px; }
.guide-newest .guide-grid { grid-template-columns: 1fr; gap: 12px; }
.guide-card.feature { grid-template-columns: 1fr; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card.feature > * { grid-column: 1; }
.guide-card.feature .guide-icon { grid-row: auto; margin-bottom: 12px; background: var(--tape-soft); }
.guide-card.feature .guide-desc { -webkit-line-clamp: 3; line-clamp: 3; }
.guide-card.feature:hover { border-color: var(--text); }
@media (min-width: 900px) {
  .guide-newest .guide-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .guide-newest li:first-child { grid-row: span 2; }
  .guide-newest li:first-child .guide-card { display: flex; flex-direction: column; padding: 26px 28px; }
  .guide-newest li:first-child .guide-kicker { margin-top: auto; }
  .guide-newest li:first-child .guide-icon { align-self: flex-start; background: var(--tape); color: #1a1d21; }
  .guide-newest li:first-child .guide-icon { width: 64px; height: 64px; margin-bottom: 24px; }
  .guide-newest li:first-child .guide-icon svg { width: 34px; height: 34px; }
  .guide-newest li:first-child .guide-title { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
  .guide-newest li:first-child .guide-desc { font-size: 17px; margin-top: 10px; -webkit-line-clamp: 4; line-clamp: 4; }
  .guide-newest li:not(:first-child) .guide-desc { -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (max-width: 560px) {
  .guide-jump ul { gap: 6px; }
  .guide-jump a { gap: 6px; padding: 0 11px; font-size: 14px; }
  .guide-newest { margin-inline: -8px; padding: 14px; }
  .guide-card.feature { padding: 16px; }
}
/* Cards rise in once on load, staggered; transform/opacity only so nothing shifts layout. */
@keyframes guide-rise { from { opacity: 0; transform: translateY(10px); } }
.guide-grid li { animation: guide-rise .4s cubic-bezier(.2, .7, .3, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
/* Topic chips glide to their section (guides.js), then the heading flashes tape-yellow. The highlight is a colour fade, not motion, so it also shows under reduced motion. */
@keyframes guide-flash { from { background: var(--tape); box-shadow: -8px 0 0 var(--tape), 8px 0 0 var(--tape); color: #1a1d21; } }
.guide-section.flash > h2 { animation: guide-flash 1.6s ease-out; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .guide-grid li { animation: none; } }

.ad { margin: 24px 0; min-height: 100px; text-align: center; }

.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 32px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; max-width: 60ch; }
.footer-inner nav { display: flex; flex-wrap: wrap; margin-left: -10px; }
.footer-inner nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.post-meta { color: var(--muted); font-size: 15px; margin-top: -2px; }

.chips { list-style: none; padding: 0; margin: 10px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .chips span, .popular a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.chips a:hover, .popular a:hover { border-color: var(--text); background: var(--tape-soft); }
.chips span { background: var(--text); color: var(--bg); border-color: var(--text); }
.fields [data-mode]:not([hidden]), .fields .section { display: grid; gap: 16px; }
