/* Inside DIY site styles, brand version 2 (brand/inside-diy/ README and tokens.css; David, 29 Nov 2026 20:38).
   Charcoal #16171A, plate grey #DADDE1, signal yellow #FFC400, white, pale grey #EEF0F2, graphite #34373C, secondary text #5F646B.
   Instrument Sans 600 for titles and labels, 400 for text. Clean and minimal, with a lot of white space (David's direction).
   Yellow is for small marks on charcoal or grey only (play button, tags, dots, marks on dark panels): never text or thin lines on white or pale grey.
   Links are charcoal, hover #5F646B. The variable names are kept from the first site so the templates are unchanged. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --green: #16171A;          /* charcoal: dark panels, buttons, steppers */
  --green-deep: #16171A;     /* charcoal: footer, player backgrounds */
  --graphite: #34373C;         /* graphite: hover on charcoal */
  --line-green: #34373C;     /* graphite: hairlines on charcoal */
  --yellow: #FFC400;         /* signal yellow: small marks on charcoal or grey only */
  --brass: #16171A;          /* marks, rules and focus rings on white: charcoal */
  --brass-hover: #5F646B;
  --brass-ink: #16171A;
  --accent-on-dark: #FFC400; /* yellow: small tags and labels on charcoal */
  --paper: #FFFFFF;          /* page ground, and text on charcoal */
  --card: #FFFFFF;
  --tint: #EEF0F2;           /* pale grey: light panels and section tints */
  --line: #DADDE1;           /* plate grey */
  --line-soft: #EEF0F2;
  --ink: #16171A;
  --ink-2: #34373C;
  --muted: #5F646B;
  --muted-light: #DADDE1;    /* secondary text on charcoal */
  --soft-light: #EEF0F2;
  --red: #C8323A;            /* wrong, and nothing else */
  --display: "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; font-variant-numeric: tabular-nums; }
a { color: var(--ink); }
a:hover { color: var(--muted); text-decoration-color: var(--muted); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.site-footer :focus-visible, .panel-dark :focus-visible { outline-color: var(--yellow); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(32px, 4.6vw, 52px); }
h2 { font-size: 26px; margin-top: 8px; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--white); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 16px; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }
/* .dark was the green band; it is now a white band with a hairline, and the light-on-dark variables are re-pointed inside it. */
.dark { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); --paper: #16171A; --muted-light: #5F646B; --soft-light: #34373C; --line-green: #DADDE1; --accent-on-dark: #16171A; }
.dark a { color: var(--ink); }
.dark a:hover { color: var(--muted); }
.muted { color: var(--muted); }
.muted-light { color: var(--muted-light); font-size: 15px; margin-top: 14px; }
.small { font-size: 13px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.eyebrow.light { color: var(--muted-light); }
.rule { display: block; width: 36px; height: 4px; background: var(--brass-ink); margin-bottom: 12px; }
.dark .rule { background: var(--brass); }
.eyebrow .rule { width: 28px; margin: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--soft-light); max-width: 620px; margin-top: 16px; }
.lead-dark { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-top: 12px; }
.h-display { font-size: 36px; font-weight: 600; }
.h-display.small { font-size: 28px; }
.h-display a { text-decoration: none; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 5px; padding: 6px 0; display: inline-block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.2; min-height: 44px; }
/* Main button: charcoal with white text, graphite on hover. Yellow is never a button fill with text on white pages. */
.btn-brass, .dark .btn-brass { background: var(--green); color: var(--white); }
.btn-brass:hover, .dark .btn-brass:hover { background: var(--graphite); color: var(--white); }
.panel-dark .btn-brass, .site-footer .btn-brass { background: var(--white); color: var(--ink); }
.panel-dark .btn-brass:hover, .site-footer .btn-brass:hover { background: var(--tint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--ink); }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--graphite); color: var(--white); }
.btn.block { justify-content: center; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* header */
.site-header { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 136px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 400; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); font-weight: 600; }
.site-header .nav { margin-left: auto; }
.head-sub { padding: 11px 18px; font-size: 15px; min-height: 44px; }

/* hero */
.hero .wrap { padding-top: 88px; padding-bottom: 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--green-deep); overflow: hidden; }
.thumb-large { border-radius: 16px; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb .badge { position: absolute; left: 12px; top: 12px; }
.duration { position: absolute; right: 10px; bottom: 10px; background: var(--green-deep); color: var(--white); font-family: var(--mono); font-size: 12px; padding: 4px 7px; border-radius: 8px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding: 6px 8px; line-height: 1; border-radius: 8px; }
.badge-brass { background: var(--green); color: var(--yellow); }
.badge-white { background: var(--white); color: var(--ink); }
.badge-dark { background: var(--green); color: var(--white); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.play svg { width: 26px; height: 26px; margin-left: 3px; }

/* home: the three pillars, then the calculators (positioning, 1 Dec 2026) */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.pillars { background: var(--tint); }
.pillars .wrap { padding-top: 64px; padding-bottom: 64px; }
.pillars .h-display { margin: 8px 0 24px; }
.pillar { display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 22px; }
a.pillar:hover { border-color: var(--ink); }
.pillar-planned { border-style: dashed; }
.pillar h3 { font-size: 28px; margin: 0 0 10px; }
.pillar p { color: var(--muted); margin: 0 0 16px; }
.pillar-go { margin-top: auto; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
a.pillar:hover h3, a.pillar:focus-visible h3 { text-decoration: underline; text-underline-offset: 4px; }
a.pillar:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.pillar-badge { margin-top: auto; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.calcs-section .wrap { padding-top: 72px; padding-bottom: 40px; }
.calcs-section .h-display { margin: 8px 0 24px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.calc-grid .calc-card { margin: 0; max-width: none; background: var(--card); }
.calc-grid .calc-card-text { text-wrap: pretty; }

/* series and cards */
.series-section .wrap, .list-section .wrap { padding-top: 80px; padding-bottom: 88px; }
.section-head { align-items: flex-end; margin-bottom: 28px; margin-top: 8px; }
.cards { gap: 24px; margin-bottom: 48px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); min-width: 0; }
a.card:hover { border-color: var(--ink); color: var(--ink); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-body p { font-size: 15px; color: var(--muted); }
.card.pad { padding: 20px; gap: 10px; }
.thumb-planned { background: var(--tint); }
.thumb-planned::after { content: ""; position: absolute; left: 0; right: 0; top: 58.5%; height: 1.5%; background: var(--line); }

/* materials teaser */
.panel-dark { background: var(--green); color: var(--white); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-on-dark); padding-bottom: 10px; border-bottom: 1px solid var(--line-green); }
.panel-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-green); font-size: 15px; }
.panel-row:last-child { border-bottom: none; padding-bottom: 0; }
.panel-note { color: var(--muted-light); font-size: 14px; margin: 0; }
.panel-dark .panel-row span { color: var(--soft-light); }
.panel-dark .panel-row strong { white-space: nowrap; font-family: var(--mono); font-weight: 600; }

/* video page */
.video-top .wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted-light); }
.crumbs a { color: var(--muted-light); text-decoration: none; }
.crumbs span:last-child { color: var(--paper); }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--green-deep); border-radius: 16px; overflow: hidden; }
.player img, .player iframe, .player .thumb-img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player .badge, .player .duration { display: none; }
.play-btn { width: 84px; height: 84px; }
.video-title { align-items: flex-start; gap: 24px; }
.video-title h1 { font-size: clamp(30px, 4vw, 46px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted-light); margin-top: 10px; }
.video-body .wrap, .materials-body .wrap { padding-top: 64px; padding-bottom: 88px; }
.two-col { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 300px; min-width: 0; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.two-col.reverse .side-col { order: -1; max-width: 380px; }
.main-col h2 { margin-top: 24px; }
.chapters, .steps { margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chapters li { border-bottom: 1px solid var(--line-soft); }
.chapters li:last-child { border-bottom: none; }
.chapters li > a, .chapters li > .ch { display: flex; gap: 20px; padding: 13px 18px; text-decoration: none; }
.chapters time { font-family: var(--mono); font-weight: 600; font-size: 14px; min-width: 44px; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); counter-increment: step; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1; color: var(--ink); }
.steps li:last-child { border-bottom: none; }
.mistakes { margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mistakes li { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 15px; }
.mistakes li strong { color: var(--ink); }
.mistakes li:last-child { border-bottom: none; }
@media screen { .mistakes a { display: inline-block; padding: 14px 0; margin: -14px 0; } }
.steps li span { color: var(--muted); font-size: 15px; }
.article { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.article h2 { font-size: 26px; margin-top: 20px; color: var(--ink); }
.article h3 { font-size: 21px; margin-top: 8px; }
.article ul, .article ol { margin: 0; padding-left: 22px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article blockquote { margin: 0; padding: 14px 20px; border-left: 4px solid var(--brass); background: var(--tint); border-radius: 0 12px 12px 0; }
.answer { font-size: 20px; line-height: 1.55; font-weight: 400; color: var(--ink); max-width: 680px; padding-left: 16px; border-left: 4px solid var(--brass-ink); }
table.facts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts th { text-align: left; font-weight: 600; width: 38%; padding: 12px 16px; vertical-align: top; }
table.facts td { padding: 12px 16px; vertical-align: top; font-family: var(--mono); font-size: 15px; }
table.facts tr + tr th, table.facts tr + tr td { border-top: 1px solid var(--line-soft); }
.sources { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.source-link { display: block; font-size: 14px; line-height: 1.5; margin-top: 4px; text-decoration: underline; text-decoration-color: var(--brass); overflow-wrap: anywhere; }
.source { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.source .claim { font-weight: 600; margin-bottom: 4px; }
.source .cite, td.cite { font-size: 14px; color: var(--muted); line-height: 1.5; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.faq summary::marker { color: var(--brass); }
.faq p { padding: 0 0 16px; color: var(--ink-2); }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.bullets li { padding-left: 18px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.card .bullets li::before { background: var(--brass-ink); }
.panel-dark .bullets li::before { background: var(--yellow); }
.shopping-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ad-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* materials page */
.materials-top .wrap { padding-top: 40px; padding-bottom: 48px; align-items: flex-end; }
.materials-top h1 { font-size: clamp(30px, 4vw, 50px); margin-top: 12px; }
.materials-top .lead { font-size: 17px; }
.calc label { font-weight: 600; display: block; margin-bottom: 8px; }
.stepper { display: flex; gap: 8px; }
.stepper button { width: 48px; height: 48px; background: var(--green); color: var(--white); border: none; border-radius: 12px; font-size: 22px; cursor: pointer; font-family: var(--body); }
.stepper button:hover { background: var(--graphite); }
.stepper input { flex: 1 1 60px; min-width: 0; height: 48px; border: 1px solid var(--muted); border-radius: 12px; font-size: 20px; font-weight: 600; text-align: center; font-family: var(--mono); color: var(--ink); background: var(--card); }
.stepper input:focus { outline: 3px solid var(--brass); outline-offset: 1px; }
.assumptions { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.assumptions .panel-row { border-bottom: none; padding: 0; }
.assumptions .panel-row span { color: var(--muted); }
.assumptions .panel-row strong { font-family: var(--mono); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-light); }
.panel-dark .tile-label { color: var(--accent-on-dark); }
.tile-num { font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--white); }
.tile-sub { font-size: 14px; color: var(--soft-light); }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table.materials { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.materials th { text-align: left; padding: 12px 16px; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
table.materials td { padding: 14px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.q-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.q-table caption { caption-side: top; text-align: left; padding: 10px 8px; font-size: 13px; color: var(--muted); }
table.q-table th[scope=row], table.q-table td { white-space: nowrap; }
table.q-table td[colspan] { white-space: normal; }
ol.numbered { margin: 0; padding-left: 22px; }
ol.numbered li { margin: 6px 0; }
table.q-table th, table.q-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.q-table thead th { border-top: none; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
table.q-table td[colspan] { color: var(--muted); }
table.materials .check { width: 40px; }
table.materials .num { text-align: right; font-family: var(--mono); font-weight: 600; white-space: nowrap; }
table.materials input[type="checkbox"], .tools input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
table.materials.shopping .cite { width: 42%; }
/* Shopping lists are a tick box and the item (no sources column since 11 Nov 2026), so they wrap on a phone instead of scrolling. */
table.materials.shopping { min-width: 0; }
.materials-body .table-wrap + h2 { margin-top: 36px; }
.materials-note { margin-top: 16px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; padding: 8px 16px; }
.tool { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.print-only { display: none; }
.print-logo { display: none; }

/* pages */
.page-top .wrap { padding-top: 64px; padding-bottom: 64px; }
.link-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.link-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; text-decoration: none; }

/* footer */
.site-footer { background: var(--green-deep); color: var(--muted-light); }
.site-footer a:focus-visible { outline-color: var(--white); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.site-footer .row { align-items: flex-start; gap: 40px; }
.footer-brand { flex: 1 1 360px; min-width: 0; }
.footer-brand img { width: 158px; height: auto; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 480px; margin-top: 18px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 0; }
.footer-cols a { color: var(--muted-light); text-decoration: none; font-size: 15px; padding: 10px 0; }
.footer-cols a:hover { color: var(--white); }
.footer-cols .eyebrow { color: var(--accent-on-dark); margin-bottom: 0; }
.footer-legal { border-top: 1px solid var(--line-green); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* responsive */
/* series page as the compilation's page: chapters as rows, each linking to its own video */
.series-body { max-width: 860px; display: flex; flex-direction: column; gap: 20px; }
.series-body h2 + .lead-dark { margin-top: -8px; }
.chapter-cards li > a, .chapter-cards li > .ch { align-items: center; gap: 18px; padding: 12px; color: var(--ink); }
.chapter-cards li > a:hover { background: var(--tint); }
.chapter-cards .thumb { flex: 0 0 224px; border-radius: 12px; }
.chapter-cards .ch-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chapter-cards .ch-head { display: flex; align-items: baseline; gap: 12px; }
.chapter-cards time { flex: none; min-width: 0; }
.chapter-cards .ch-label { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.chapter-cards .ch-title { font-size: 16px; color: var(--ink-2); }
.chapter-cards .ch-video { font-size: 14px; color: var(--muted); }
.series-body .source .claim a { text-decoration-color: var(--brass); }
@media (max-width: 640px) {
  .chapter-cards li > a, .chapter-cards li > .ch { align-items: flex-start; gap: 12px; padding: 10px; }
  .chapter-cards .thumb { flex-basis: 128px; }
  .chapter-cards .ch-label { font-size: 19px; }
  .chapter-cards .ch-title { font-size: 15px; }
  .chapter-cards .ch-video { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .tiles, .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars .wrap { padding-top: 40px; padding-bottom: 40px; }
  .pillar-grid { gap: 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .two-col.reverse .side-col { order: 0; max-width: none; }
  .side-col { max-width: none; }
  .tools { grid-template-columns: minmax(0, 1fr); }
  .shopping-lists { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .brand img { width: 120px; }
  .site-header .wrap { row-gap: 8px; }
  .head-sub { margin-left: auto; padding: 10px 12px; font-size: 14px; }
  .site-header .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 4px 18px; }
  .h-display { font-size: 32px; }
}

@media (max-width: 400px) {
  .sub-long { display: none; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .nav { gap: 4px 14px; }
  .site-header .nav a { font-size: 14px; }
}

/* print: the materials list is meant to be printed */
@media print {
  .site-header, .site-footer, .no-print, .stepper button, .tiles, .crumbs { display: none !important; }
  .print-logo { display: block; width: 34mm; height: auto; margin-bottom: 16px; }
  .dark { background: none !important; color: #000 !important; }
  .dark .lead, .dark a { color: #000 !important; }
  .print-only { display: block; }
  .two-col { display: block; }
  .card, .table-wrap, .panel-dark { border: 1px solid #999; box-shadow: none; background: #fff; }
  .stepper input { border: 1px solid #999; }
  body { font-size: 12pt; background: #fff; }
}

/* Cookie consent bar (only in the page when site.yml has a ga4_id). Charcoal with a yellow rule on top so it
   reads as a bar, not page furniture. Accept and Reject are the same button: same class, size, colour and
   weight, side by side, neither one picked out on its own. It never blocks the page: consent.js pads the body and the
   scroll padding by its height, so nothing at the bottom stays covered. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--green); color: var(--paper); border-top: 4px solid var(--yellow); box-shadow: 0 -6px 20px rgba(22, 23, 26, 0.3); }
.consent[hidden] { display: none; }
.consent:focus { outline: 2px solid var(--yellow); outline-offset: -6px; }
.consent-inner { display: flex; align-items: center; justify-content: center; gap: 14px 32px; padding-top: 18px; padding-bottom: 18px; }
.consent p { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 400; }
.consent a { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; white-space: nowrap; margin-left: 6px; }
.consent a:hover { color: var(--white); }
.consent-btns { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-btn { min-width: 140px; min-height: 48px; justify-content: center; padding: 12px 22px; font-size: 17px; font-weight: 600; background: var(--paper); color: var(--green-deep); border: 2px solid var(--paper); }
.consent-btn:hover { background: var(--tint); border-color: var(--tint); color: var(--green-deep); }
.consent-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 640px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; }
  .consent p { font-size: 16px; }
  .consent-btns .consent-btn { flex: 1 1 0; min-width: 0; }
}
@media print { .consent { display: none !important; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Before you start box and step checklist on a video page */
.before-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.before-box h2 { margin: 0; }
.before-box ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.before-box summary { cursor: pointer; padding: 10px 0; }
.before-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; font-weight: 600; }
.before-links a { padding: 11px 0; }
.steps-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-plain { background: transparent; color: var(--ink); border-color: var(--line); }
.step-name { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.step-name input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.step-at { font-weight: 600; white-space: nowrap; }
.print-steps-only { display: none; }
@media screen {
  .step-name { min-height: 44px; }
  .step-at { display: flex; align-items: center; min-height: 44px; }
}
@page steps { size: A4; margin: 12mm; }
@media print {
  .before-links { display: none; }
  .print-steps .video-top, .print-steps .side-col, .print-steps .main-col > *:not(.steps):not(.steps-head):not(.print-steps-only) { display: none !important; }
  .print-steps { font-size: 9pt; }
  .print-steps .video-body { page: steps; padding: 0; }
  .print-steps .video-body .wrap, .print-steps .main-col { padding: 0; gap: 4px; display: block; }
  .print-steps h2 { font-size: 15pt; margin: 0; }
  .print-steps .print-steps-only { display: block; margin: 2px 0 4px; font-size: 8.5pt; line-height: 1.25; }
  .print-steps .steps { border: none; background: none; overflow: visible; }
  .print-steps .steps li { padding: 2px 0; gap: 0 10px; grid-template-columns: 24px 1fr; break-inside: avoid; }
  .print-steps .steps li::before { font-size: 12pt; color: #000; }
  .print-steps .steps li span, .print-steps .step-at { font-size: 8.5pt; line-height: 1.2; color: #000; padding: 0; text-decoration: none; }
  .print-steps .step-name input { width: 11px; height: 11px; }
}

/* Fence calculator page and the links to it */
.job-cta { margin-bottom: 32px; }
.job-intro .wrap { padding-bottom: 0; }
@media screen { .link-list a { padding: 11px 0; } }
@media print { .materials-top .wrap { padding-top: 0; padding-bottom: 8px; } .job-intro .wrap { padding-top: 0; } }

/* Gate calculator card (30 Nov 2026): one small linked card, pale grey, even radius, no side bar (the side bar marks
   the short answer only). The arrow in a charcoal circle says it can be tapped. */
.calc-card { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; align-items: center; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 0 0 28px; color: var(--ink); text-decoration: none; max-width: 640px; }
.calc-card-label { grid-column: 1; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.calc-card strong { grid-column: 1; font-size: 18px; font-weight: 600; text-wrap: balance; }
.calc-card-text { grid-column: 1; font-size: 15px; color: var(--muted); }
.calc-card-go { grid-column: 2; grid-row: 1 / span 3; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.calc-card:hover strong, .calc-card:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
.calc-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.list-section > .wrap > .calc-card { margin-top: -40px; margin-bottom: 40px; }
