/* Fence calculator: David's design layout (briefs/design/fence-calculator-v2/README.md) in brand v2 colours and type
   (D155, 30 Nov 2026). Yellow only as small marks on charcoal or grey, never text or thin lines on white or pale grey.
   Kalam stays for the handwritten list. Only the calculator pages load this. */
@font-face { font-family: "Kalam"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/kalam-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Kalam"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/kalam-700-latin.woff2") format("woff2"); }

.fc {
  --fc-ink: #16171A; --fc-yellow: #FFC400; --fc-hl: #16171A;
  --fc-hero: #16171A; --fc-band: #16171A; --fc-g3a: #34373C; --fc-g4a: #34373C; --fc-g5a: #5F646B; --fc-muted: #5F646B;
  --fc-g-a9: #DADDE1; --fc-g-c9: #DADDE1; --fc-g-d6: #EEF0F2;
  --fc-page: #EEF0F2; --fc-card: #fff; --fc-quiet: #EEF0F2; --fc-sel: #EEF0F2; --fc-part-hl: #EEF0F2;
  --fc-line: #DADDE1; --fc-div: #EEF0F2; --fc-input: #5F646B;
  --fc-paper: #fff; --fc-grid: #E3E6EA; --fc-pen: #16171A; --fc-pen-muted: #5F646B; --fc-pen-2: #34373C; --fc-uline: #DADDE1; --fc-tip: #34373C; --fc-sticky: #DADDE1;
  --fc-font: "Instrument Sans", system-ui, sans-serif; --fc-hand: "Kalam", cursive;
  --fc-pad: 24px;
  background: var(--fc-page); color: var(--fc-ink); font-family: var(--fc-font); -webkit-font-smoothing: antialiased;
}
@media (max-width: 999px) { .fc { --fc-pad: 16px; } }
.fc a { color: var(--fc-ink); text-underline-offset: 3px; }
.fc a:hover { color: var(--fc-muted); }
:where(.fc) button { font: inherit; color: var(--fc-ink); cursor: pointer; }
.fc input::-webkit-outer-spin-button, .fc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fc :focus-visible { outline: 3px solid var(--fc-ink); outline-offset: 2px; }
.fc [hidden] { display: none !important; }
.fc-wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--fc-pad); padding-right: var(--fc-pad); }

/* Hero */
.fc-hero {
  background-color: var(--fc-hero);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.045) 0, rgba(255,255,255,0.045) 1px, transparent 1px, transparent 14px);
  color: #fff;
}
.fc-hero .fc-wrap { padding-top: 36px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 12px; }
.fc .fc-eyebrow-link { font-size: 13px; color: var(--fc-yellow); text-decoration: none; letter-spacing: 0.04em; align-self: flex-start; }
.fc .fc-eyebrow-link:hover { color: var(--fc-yellow); text-decoration: underline; }
.fc-hero h1 { margin: 0; font-family: var(--fc-font); font-size: clamp(30px, 5vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; color: #fff; text-wrap: balance; }
.fc-lead { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--fc-g-d6); text-wrap: pretty; }
.fc-scope { margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--fc-g-a9); max-width: 620px; }
.fc-scope > span:first-child { flex: none; margin-top: 5px; width: 8px; height: 8px; border-radius: 2px; background: var(--fc-yellow); }
.fc-noscript { padding: 16px 0 0; }

/* Main */
.fc-main { padding-top: 24px; }
.fc-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.fc-inputs { flex: 1 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fc-aside { flex: 1 1 360px; max-width: 400px; min-width: 0; }
@media (max-width: 999px) { .fc-aside { max-width: 100%; } }

.fc-card { background: var(--fc-card); border: 1px solid var(--fc-line); border-radius: 14px; overflow: hidden; }
.fc-card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 20px 20px 0; }
.fc-titles { display: flex; flex-direction: column; gap: 4px; }
.fc-eyebrow { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fc-muted); }
.fc h2 { margin: 0; font-family: var(--fc-font); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--fc-ink); }

.fc-seg { display: flex; gap: 4px; padding: 4px; background: var(--fc-quiet); border-radius: 12px; }
.fc-seg button { height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--fc-g5a); display: flex; align-items: center; gap: 8px; }
.fc-seg .fc-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fc-yellow); }
.fc-seg button[aria-pressed="true"] { background: var(--fc-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--fc-yellow), 0 1px 3px rgba(22,23,26,0.25); }
.fc-seg button[aria-pressed="true"] .fc-dot { display: block; }

/* Bay drawing and its height handle */
.fc-stage { position: relative; margin: 10px 8px 0; aspect-ratio: 640 / 520; }
.fc-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.fc-track { position: absolute; width: 60px; transform: translateX(-50%); touch-action: none; cursor: ns-resize; }
.fc-rail, .fc-fill { position: absolute; left: 50%; width: 6px; margin-left: -3px; border-radius: 3px; }
.fc-rail { top: 0; bottom: 0; background: var(--fc-line); }
.fc-fill { bottom: 0; background: var(--fc-ink); }
.fc-tick { position: absolute; left: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: var(--fc-ink); opacity: 0.35; }
.fc-handle { position: absolute; left: 50%; transform: translate(-50%, -50%); height: 34px; padding: 0 11px 0 8px; border-radius: 17px; background: var(--fc-ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,0.25); cursor: ns-resize; }
.fc-handle path { fill: var(--fc-yellow); }
.fc-handle:focus-visible { outline: 3px solid var(--fc-ink); outline-offset: 4px; }
.fc-bay-marker { cursor: pointer; }

.fc-under { padding: 6px 20px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-chip { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--fc-quiet); font-size: 14px; font-weight: 600; }
.fc-hint { font-size: 13px; color: var(--fc-muted); }
/* Panel heights as buttons on a phone, where the handle's stops sit close together (David, D156). */
.fc-hpicks { display: none; width: 100%; gap: 8px; flex-wrap: wrap; }
.fc-hpicks:not(:empty) { display: flex; }
@media (min-width: 600px) { .fc-hpicks:not(:empty) { display: none; } }
.fc-hpicks .fc-pick { flex: 1 1 0; min-width: 64px; padding: 0 6px; white-space: nowrap; }

.fc-controls { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 20px; }
.fc-field { display: flex; flex-direction: column; gap: 8px; }
.fc-row-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; }
.fc-row-label > span:last-child { font-size: 15px; }
.fc-label { font-size: 14px; font-weight: 600; }
.fc-help { font-size: 13px; color: var(--fc-muted); line-height: 1.4; font-weight: 400; }
.fc input[type="range"] { width: 100%; accent-color: var(--fc-ink); height: 28px; margin: 0; }

.fc-panelw { display: flex; gap: 8px; }
.fc-stepper { flex: none; display: flex; height: 48px; border: 1px solid var(--fc-input); border-radius: 10px; overflow: hidden; background: #fff; }
.fc-stepper button { width: 48px; border: 0; background: var(--fc-quiet); font-size: 20px; flex: none; }
.fc-stepper input { flex: 1; width: 0; min-width: 0; padding: 0; border: 0; text-align: center; font: inherit; font-size: 17px; font-weight: 600; outline: none; background: #fff; color: var(--fc-ink); }
.fc-stepper:focus-within { outline: 3px solid var(--fc-ink); outline-offset: 2px; }
.fc-stepper .fc-unit { display: flex; align-items: center; padding-right: 12px; color: var(--fc-muted); font-size: 14px; }
.fc-stepper[aria-invalid="true"], .fc-stepper.is-bad { border-color: #B3261E; box-shadow: inset 0 0 0 1px #B3261E; }
.fc-panelw .fc-stepper { flex: 1; min-width: 0; }
.fc-stepper-44 { height: 44px; }
.fc-stepper-44 button { width: 44px; }
.fc-stepper-44 input { font-size: 16px; }
.fc-stepper-44 .fc-unit { padding-right: 10px; }
.fc-pick { height: 44px; padding: 0 12px; border: 1.5px solid var(--fc-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; flex: none; }
.fc-pick[aria-pressed="true"] { border-color: var(--fc-ink); background: var(--fc-sel); }

.fc-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-check { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 10px; border: 2px solid var(--fc-line); background: #fff; font-size: 14px; font-weight: 600; }
.fc-check[aria-checked="true"] { border-color: var(--fc-ink); }
.fc-box { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--fc-ink); background: #fff; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.fc-box svg { display: none; }
.fc-box path { fill: none; stroke: var(--fc-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-check[aria-checked="true"] .fc-box { background: var(--fc-ink); }
.fc-check[aria-checked="true"] .fc-box path { stroke: #fff; }
.fc-check[aria-checked="true"] .fc-box svg { display: block; }

.fc-switch { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--fc-line); border-radius: 12px; text-align: left; align-self: start; }
.fc-switch-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fc-switch .fc-help { line-height: 1.35; }
.fc-track-sw { flex: none; width: 48px; height: 28px; border-radius: 14px; background: var(--fc-input); position: relative; }
.fc-track-sw span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: left 0.15s; }
.fc-switch[aria-checked="true"] .fc-track-sw { background: var(--fc-ink); }
.fc-switch[aria-checked="true"] .fc-track-sw span { left: 23px; }

.fc-parts { border-top: 1px solid var(--fc-div); padding: 14px 12px 16px; }
.fc-parts > .fc-eyebrow { display: block; padding: 0 8px 8px; }
.fc-parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 8px; }
.fc-part { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: default; }
.fc-part.is-hl { background: var(--fc-part-hl); }
.fc-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--fc-ink); border: 1.5px solid var(--fc-ink); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.fc-part.is-hl .fc-num { background: var(--fc-ink); color: var(--fc-yellow); }
.fc-part-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc-part-text b { font-size: 14px; font-weight: 600; }
.fc-part-text span { font-size: 13px; color: var(--fc-muted); line-height: 1.35; }

/* Step 2 */
.fc-card-2 { padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.fc-opts { display: flex; gap: 8px; }
.fc-opt { flex: 1 1 0; height: 46px; background: #fff; border: 2px solid var(--fc-line); border-radius: 10px; font-size: 15px; font-weight: 600; }
.fc-opt[aria-pressed="true"], .fc-tile[aria-pressed="true"] { border-color: var(--fc-ink); background: var(--fc-sel); }
.fc-measure { background: var(--fc-page); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.fc-measure > button { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; text-align: left; }
.fc-measure > button span:last-child { font-size: 18px; line-height: 1; }
#fc-measure-body { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--fc-g3a); text-wrap: pretty; }
.fc-sides { display: flex; flex-direction: column; gap: 14px; }
#fc-sides { display: flex; flex-direction: column; gap: 14px; }
.fc-side { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--fc-div); }
.fc-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fc-side-head b { font-size: 15px; font-weight: 600; }
.fc-side-head span { font-size: 13px; color: var(--fc-muted); }
.fc-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.fc-sub { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fc-sub label { font-size: 13px; color: var(--fc-muted); }
.fc-msg { font-size: 13px; line-height: 1.4; color: #B3261E; margin: 0; }
.fc-side-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-add { flex: 1 1 200px; height: 46px; background: #fff; border: 1.5px dashed var(--fc-ink); border-radius: 10px; font-size: 14px; font-weight: 600; }
.fc-remove { flex: 0 1 auto; height: 46px; padding: 0 16px; background: none; border: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.fc-ends { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fc-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; background: #fff; border: 2px solid var(--fc-line); border-radius: 12px; }
.fc-tile img { width: 100%; max-width: 52px; height: auto; aspect-ratio: 1; object-fit: contain; }
.fc-tile span { font-weight: 600; font-size: 13px; }
.fc-gate { gap: 12px; }
.fc-gate-body { display: flex; flex-direction: column; gap: 14px; }
.fc-gate-sides { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-gate-sides .fc-opt { flex: 1 1 90px; height: 44px; font-size: 14px; }
.fc-gate-note { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--fc-g3a); }
.fc-gate-note a { font-weight: 600; }
.fc-see { align-self: flex-start; min-width: 200px; height: 48px; padding: 0 22px; background: var(--fc-ink); color: #fff; box-shadow: inset 0 -3px 0 var(--fc-yellow); border: 0; border-radius: 10px; font-size: 15px; font-weight: 600; }
@media (max-width: 999px) { .fc-see { min-width: 100%; } }

/* The list: a graph-paper pad */
.fc-pad {
  background-color: var(--fc-paper);
  background-image: linear-gradient(var(--fc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fc-grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px; background-attachment: local;
  border-radius: 2px; box-shadow: 0 2px 0 #E3E6EA, 0 4px 0 #DADDE1, 0 10px 24px rgba(22,23,26,0.14);
  transition: box-shadow 0.4s; color: var(--fc-pen); scroll-margin-top: 12px;
}
.fc-pad.is-flash { box-shadow: 0 0 0 4px var(--fc-ink), 0 2px 0 #E3E6EA, 0 4px 0 #DADDE1, 0 10px 24px rgba(22,23,26,0.14); }
.fc-band { background: var(--fc-band); padding: 16px 20px; display: flex; align-items: baseline; justify-content: center; }
.fc .fc-band h2 { font-size: 22px; line-height: 1; color: #fff; }
.fc-pad-top { padding: 16px 20px 12px; display: flex; flex-direction: column; gap: 14px; }
.fc-updates { align-self: flex-end; margin-bottom: -6px; font-family: var(--fc-hand); font-size: 15px; color: var(--fc-pen-muted); }
.fc-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-family: var(--fc-hand); font-size: 19px; line-height: 1.3; }
.fc-stats b { font-size: 30px; font-weight: 700; }
.fc-plan { background-color: #fff; border: 1px solid #DADDE1; border-radius: 2px; padding: 8px; }
.fc-plan svg { display: block; width: 100%; height: auto; }
.fc-summary { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fc-pen-2); text-wrap: pretty; }
.fc-groups { padding: 0 20px 8px; }
.fc-group { display: flex; flex-direction: column; }
.fc-group > h3 { margin: 0; padding: 12px 0 2px; font-family: var(--fc-hand); font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--fc-pen); text-decoration: underline; text-decoration-color: var(--fc-uline); text-underline-offset: 4px; }
.fc-item { display: flex; gap: 10px; padding: 9px 6px; margin: 0 -6px; border-radius: 6px; }
.fc-item.is-hl { background: var(--fc-part-hl); }
.fc-item.is-done { opacity: 0.55; }
.fc-item.is-done .fc-item-name { text-decoration: line-through; text-decoration-color: var(--fc-pen); text-decoration-thickness: 1.5px; }
.fc-tick-box { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 5px 3px 6px 4px; border: 1.5px solid var(--fc-pen-2); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; transform: rotate(-2deg); position: relative; }
.fc-tick-box::after { content: ""; position: absolute; inset: -10px; }
.fc-tick-box svg { display: none; margin: -4px -2px 0 0; }
.fc-tick-box path { fill: none; stroke: var(--fc-pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc-item.is-done .fc-tick-box svg { display: block; }
.fc-qty { flex: none; width: 44px; text-align: right; font-family: var(--fc-hand); font-size: 22px; font-weight: 700; line-height: 1.15; }
.fc-qty.is-long { font-size: 17px; line-height: 1.5; }
.fc-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.fc-item-name { font-size: 15px; font-weight: 400; line-height: 1.35; }
.fc-item-spec { font-size: 13px; color: var(--fc-pen-muted); line-height: 1.35; }
.fc-tip { margin-top: 4px; font-family: var(--fc-hand); font-size: 16px; line-height: 1.35; color: var(--fc-tip); text-wrap: pretty; }
.fc .fc-tip a { color: var(--fc-tip); font-family: var(--fc-font); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fc-i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--fc-uline); background: transparent; font-family: var(--fc-hand); font-size: 16px; font-weight: 700; line-height: 1; padding: 0; color: var(--fc-pen-2); position: relative; }
.fc-i::after { content: ""; position: absolute; inset: -8px; }
.fc-extra { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--fc-pen-2); }
.fc-extra b { font-family: var(--fc-hand); font-size: 16px; color: var(--fc-pen); }
.fc-note { position: relative; margin: 14px 20px 4px; padding: 16px 18px 18px; background: var(--fc-sticky); box-shadow: 0 6px 12px -6px rgba(22,23,26,0.35); transform: rotate(-0.8deg); display: flex; flex-direction: column; gap: 8px; }
.fc-note::before { content: ""; position: absolute; top: -6px; left: 50%; width: 56px; height: 12px; margin-left: -28px; background: var(--fc-yellow); transform: rotate(1.5deg); }
.fc-note h3 { margin: 0; font-family: var(--fc-hand); font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--fc-pen); }
.fc-note p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--fc-pen); text-wrap: pretty; }
.fc-note.is-error h3 { color: #B3261E; }
.fc-safety { margin: 14px 20px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--fc-line); font-size: 13px; line-height: 1.5; color: var(--fc-pen-2); }
.fc-safety a { color: var(--fc-pen-2); }
.fc-actions { padding: 18px 20px 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.fc-actions button { flex: 1 1 120px; height: 46px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.fc-print { background: var(--fc-ink); color: #fff; border: 0; }
.fc-copy { background: #fff; border: 1.5px solid var(--fc-ink); }
.fc-status { margin: -12px 20px 0; padding-bottom: 14px; font-size: 13px; color: var(--fc-pen-2); }
.fc-status:empty { display: none; }

/* Phone: the list comes after the inputs, with a bar that shows while it's off screen */
.fc-bar { position: sticky; bottom: 0; z-index: 5; margin: 16px calc(-1 * var(--fc-pad)) 0; padding: 12px var(--fc-pad); background: var(--fc-ink); color: #fff; display: flex; align-items: center; gap: 12px; }
.fc-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-bar-text span:first-child { font-size: 15px; font-weight: 600; }
.fc-bar-text span:last-child { font-size: 12px; color: var(--fc-g-c9); }
.fc-bar button { flex: none; height: 44px; padding: 0 16px; background: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; }
.fc-bar :focus-visible { outline-color: var(--fc-yellow); }

.fc-how { padding: 56px 0 64px; display: flex; flex-direction: column; gap: 16px; }
.fc-how > a { font-size: 14px; align-self: flex-start; }
.fc .fc-how h2 { font-size: 26px; letter-spacing: -0.02em; }
.fc-how-rows { display: flex; flex-direction: column; border-top: 1px solid var(--fc-line); }
.fc-how-rows > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--fc-line); font-size: 15px; }
.fc .fc-how-video { font-weight: 600; text-decoration: none; }

@media print {
  .fc { background: #fff; }
  .fc-hero { background: none; color: var(--fc-ink); }
  .fc-hero .fc-wrap { padding: 0 0 12px; }
  .fc-hero h1 { color: var(--fc-ink); font-size: 24pt; }
  .fc-eyebrow-link, .fc-lead, .fc-scope { display: none; }
  .fc-cols { display: block; }
  .fc-aside { max-width: none; }
  .fc-pad { box-shadow: none; background: #fff; }
  .fc-band { background: none; padding: 0 0 8px; justify-content: flex-start; }
  .fc .fc-band h2 { color: var(--fc-ink); }
  .fc-item { break-inside: avoid; }
  .fc-note { transform: none; box-shadow: none; border: 1px solid #999; }
  .fc-tip { display: block !important; }
}

/* Posts and rail-method choices (David, 30 Nov 2026, 12:41 and 12:44) */
.fc-controls .fc-wide { grid-column: 1 / -1; }
.fc-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 599px) { .fc-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-tiles4 .fc-tile span { text-align: center; line-height: 1.25; }
/* Gate calculator (D157): the same design, with a gap handle along the foot of the drawing and the height locked
   (the gate uses 1.8 m boards only, D120). */
.fc-stage.gc-stage { aspect-ratio: 640 / 600; }
.gc-wtrack { position: absolute; height: 44px; transform: translateY(-50%); touch-action: none; cursor: ew-resize; }
.gc-wrail { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--fc-ink); }
.fc-handle.gc-whandle { top: 50%; cursor: ew-resize; }
.gc-whandle path, .gc-locked path { fill: var(--fc-yellow); }
.fc-handle.gc-locked { background: var(--fc-g5a); cursor: default; }
.gc-tiles3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gc-tiles3 .fc-tile span { text-align: center; line-height: 1.25; }
.gc-tiles3 .fc-tile img { max-width: 72px; }
.gc-htrack { cursor: default; }
.gc-htrack .fc-rail, .gc-htrack .fc-fill { width: 2px; margin-left: -1px; background: var(--fc-g5a); }
.gc-readings .fc-sub { flex-basis: 140px; }
.gc-box { background: #fff; border: 1px solid var(--fc-line); padding: 10px 12px; }
.gc-box h3 { margin: 0 0 4px; font-family: var(--fc-hand); font-size: 18px; font-weight: 700; color: var(--fc-pen); }
.gc-box ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--fc-pen-2); }
.fc-whole { margin: 12px 0 0; height: 44px; padding: 0 16px; background: #fff; border: 1.5px solid var(--fc-ink); border-radius: 10px; font-size: 14px; font-weight: 600; }
.fc-note a { color: var(--fc-pen); font-size: 13px; font-weight: 600; }
.fc-opts .fc-opt { height: auto; min-height: 46px; padding: 6px 10px; line-height: 1.25; }
.fc-wide .fc-tile { padding: 6px 4px 8px; }
.fc-wide .fc-tile img { max-width: 112px; }
.fc-wide .fc-tile[aria-pressed="true"] { background: #fff; }
.fc-sublabel { margin-top: 6px; }
