/* design: v2 */
/* desktopcncrouter.com, design v2: board A, "The cutting list" (design/home-v2-A.png, James's pick, 2 Dec 2026).
   A woodworker's plan drawn as a picture book: a birch plywood sheet on a sage-green workshop floor with the projects
   nested on it, each with its pencil dimension line; the answer is a pencil cutting list on a clipboard clipped to the
   sheet's edge. Flat vector drawings (src/art/) in the board's colours: #95B38A sage, #EAC37D birch, #795238 walnut,
   #A53229 pencil red, #19362B green-black. Patua One for headings (as the board), Signika for text: the board's Cabin
   is carregistrationcheck.com's already (packages/site-kit/tests/distinct-designs.test.ts), and Signika is the nearest
   free humanist sans no other ai-site uses. Both OFL, self-hosted.
   A plan on a workshop floor doesn't invert, so the page keeps its colours in dark mode (color-scheme: light); every
   text colour on its background is checked in tests/design.test.ts (root rule 4). Pencil red is too light for text
   on sage, so links on sage are a deeper red (--link) and the board's red stays for buttons, ticks and text on paper. */

@font-face { font-family: "Patua One"; src: url("/fonts/patua-one-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Signika"; src: url("/fonts/signika-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --brand: #95b38a;        /* sage: the workshop floor, header and hero */
  --bg: #a3bd97;           /* a lighter sage: the reading pages and the notes under the hero */
  --text: #19362b;         /* green-black */
  --muted: #29432f;
  --line: #7f9c74;
  --card: #f6e6b4;         /* paper */
  --paper: #faecbe;        /* the clipboard's paper */
  --paper-head: #e9d095;   /* a table's head on paper */
  --paper-line: #b99a5e;
  --link: #701c15;         /* deep pencil red for links on sage */
  --link-paper: #a53229;   /* the board's pencil red, on paper */
  --red: #a53229;
  --red-dark: #7e231c;
  --on-red: #ffffff;
  --birch: #eac37d;
  --birch-edge: #c48f45;
  --walnut: #795238;
  --walnut-dark: #5b3b27;
  --clipboard: #d79a52;
  --good: #19362b;
  --warn: #5b3b27;
  --bad: #5b3b27;
  --display: "Patua One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Signika", "Segoe UI", system-ui, sans-serif;
  --accent: #a53229;
  --on-accent: #ffffff;
  --radius: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  /* the kit's dark tokens come first in the cascade; these keep the board's colours */
  :root { --bg: #a3bd97; --text: #19362b; --muted: #29432f; --line: #7f9c74; --card: #f6e6b4; --link: #701c15; color-scheme: light; }
  .callout { background: var(--paper); color: var(--text); }
  .callout a { color: var(--link-paper); }
  .warning { background: var(--paper); color: var(--text); }
  .warning a { color: var(--link-paper); }
}

/* ---------- type ---------- */
body { font-family: var(--body); font-size: 18px; line-height: 1.6; background: var(--bg); color: var(--text); }
h1, h2, h3, .wordmark, .cl-title, .toc-title { font-family: var(--display); font-weight: 400; letter-spacing: 0; color: var(--text); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.15; margin: 1.6em 0 0.45em; }
h3 { font-size: 1.25rem; line-height: 1.2; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2.5px; }
strong { font-weight: 650; }
.wrap { max-width: 1380px; padding: 0 clamp(16px, 3vw, 40px); }
.note, .small { color: var(--muted); font-size: 0.88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
::selection { background: var(--birch); color: var(--text); }

/* ---------- header: the logo and the menu on the workshop floor, over a pencil rule ---------- */
.site-header { background: var(--brand); border-bottom: 0; }
.site-header .header-row { padding-top: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.brand { gap: 12px; color: var(--text); }
.brand .logo-mark { height: 44px; width: auto; }
.wordmark { font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1; color: var(--text); }
.main-nav { gap: 4px clamp(18px, 3vw, 44px); }
.main-nav a { color: var(--text); font-size: 1.12rem; font-weight: 500; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
@media (max-width: 760px) {
  .site-header .header-row { flex-wrap: wrap; }
  .brand .logo-mark { height: 34px; }
  .menu-btn { width: 44px; height: 40px; padding: 0; border: 0; text-indent: -999px; overflow: hidden; cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 24'%3E%3Cpath d='M3 4h24M3 12h24M3 20h24' stroke='%23a53229' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px 22px no-repeat; }
  .menu-open .menu-btn { border: 0; }
  .has-menu.menu-open .main-nav a { border-top: 1px solid var(--line); }
}

/* ---------- the hero: headline on the sage floor, then the workbench ---------- */
.hero { background: var(--brand); padding: clamp(14px, 2vw, 22px) 0 clamp(28px, 3.4vw, 44px); }
.hero h1 { margin: 0 0 8px; }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 68rem; margin: 0 0 clamp(16px, 2vw, 26px); }
.hero-after { margin: 26px 0 0; }

.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 31%); align-items: start; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.workbench > script { display: none; }

/* the birch sheet: plywood seen from above, its edge showing at the bottom and right */
.sheet {
  position: relative; border: 2px solid #a8763a; border-radius: 16px; padding: clamp(10px, 1.6vw, 22px) clamp(12px, 2vw, 26px) clamp(18px, 2vw, 28px);
  background-color: var(--birch);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160' viewBox='0 0 420 160'%3E%3Cg fill='none' stroke='%23d9a85f' stroke-width='1.3' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M0 18 C70 10 140 28 210 18 S350 8 420 18'/%3E%3Cpath d='M0 58 C90 50 150 70 240 58 S360 52 420 58'/%3E%3Cpath d='M0 96 C60 104 150 86 220 98 S340 106 420 96'/%3E%3Cpath d='M0 136 C80 128 170 146 250 136 S370 128 420 136'/%3E%3Cpath d='M150 70 C170 62 196 64 210 74 C196 80 172 80 150 70 Z'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: 5px 7px 0 var(--birch-edge), 5px 7px 0 2px #a8763a, 0 22px 34px rgba(25, 54, 43, 0.28);
}
.nest svg { display: block; width: 100%; height: auto; }
.nest { margin: 0 0 4px; }
.sheet-tools { position: absolute; right: clamp(12px, 2vw, 30px); bottom: 14px; width: clamp(180px, 22%, 290px); height: auto; pointer-events: none; }

/* the form, lying on the sheet: labels on the left, controls on the right */
.fit { background: none; border: 0; padding: 0; max-width: 720px; position: relative; z-index: 1; }
.frow { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 4px 14px; align-items: start; margin: 0 0 10px; }
.flabel { font-family: var(--display); font-weight: 400; font-size: 1.08rem; padding-top: 5px; color: var(--text); }
.fctl label { display: block; margin: 2px 0; font-size: 1rem; }
.fctl .note { font-size: 0.84rem; color: #3d3524; }
.fctl.inline, .fctl .inline { display: flex; flex-wrap: wrap; gap: 2px 22px; padding-top: 4px; }
.fctl .inline label { display: inline-block; }
.fctl.size { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.times { font-weight: 600; color: var(--walnut-dark); }
.fit select, .fit input[type="number"] {
  font: inherit; font-size: 1rem; color: var(--text); background-color: #fbf1d6; border: 1.5px solid #9a6d36; border-radius: 4px; padding: 5px 10px;
  box-shadow: inset 0 1px 0 rgba(121, 82, 56, 0.18);
}
.fit select { appearance: none; -webkit-appearance: none; padding-right: 34px; min-width: 15rem; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1h10L6 7z' fill='%23a53229'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; }
/* the kit's .tool rules make every control full width; the sheet lays them out itself */
.workbench .fit select, .workbench .fit input { width: auto; margin-top: 0; }
.workbench .fit label { display: inline; font-weight: 400; font-size: 1rem; }
.workbench .fit .fctl > label, .workbench .fit .flabel { display: block; }
.workbench .fit .flabel { font-weight: 400; font-size: 1.08rem; }
.workbench .fit .inline label { display: inline-block; }
.fit select.units { min-width: 0; }
.fit select.mat { min-width: 9.5rem; }
.fit input[type="number"] { width: 4.6rem; }
.fit input[type="radio"], .fit input[type="checkbox"], .filters input { accent-color: var(--red); width: 1.05em; height: 1.05em; vertical-align: -0.12em; }
.fsubmit { margin: 16px 0 0 11.5rem; }
.pencil-btn, .share-button {
  font-family: var(--display); font-size: 1.28rem; line-height: 1.2; color: var(--on-red); background: var(--red); border: 2px solid var(--red-dark);
  border-radius: 9px; padding: 9px 38px; cursor: pointer; box-shadow: 0 3px 0 var(--red-dark), 0 6px 12px rgba(25, 54, 43, 0.22);
}
.pencil-btn:hover, .share-button:hover { background: var(--red-dark); }
.pencil-btn:active, .share-button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-dark); }

/* the clipboard, clipped to the sheet's right edge */
.clipboard {
  position: relative; z-index: 2; margin: -12px 0 0 -38px; background: var(--clipboard); border: 2px solid #6e4524; border-radius: 16px;
  padding: 30px 14px 16px; box-shadow: inset 0 0 0 5px #e0aa66, 4px 6px 0 #a8692f, 0 20px 32px rgba(25, 54, 43, 0.3);
}
.clipboard .clip { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 118px; height: auto; }
.paper { background: var(--paper); border: 1.5px solid #c9ad74; border-radius: 3px; padding: 16px 16px 14px; box-shadow: 0 2px 0 rgba(110, 69, 36, 0.25); }
.cl-title { font-size: clamp(1.5rem, 2vw, 1.9rem); margin: 0 0 10px; }
.cl-title span { font-size: 0.66em; }
.paper a { color: var(--link-paper); }
.paper .note { color: #4d4430; }
.fit-result { background: none; border: 0; padding: 0; }
.fit-answer .headline { margin: 0 0 6px; font-size: 1rem; }
.fit-answer .lead { font-size: 1rem; line-height: 1.5; margin: 0 0 12px; }
.paper .table-wrap { margin: 0 0 10px; }
.paper .small { font-size: 0.82rem; color: #4d4430; }
.paper .share-row { margin: 14px 0 0; }
.paper .share-button { width: 100%; }
@media (min-width: 1000px) {
  /* the list on the clipboard scrolls, so the clipboard stays the sheet's length; every row is still there */
  .hero .paper .table-wrap { max-height: 23rem; overflow: auto; border: 1.5px solid var(--paper-line); }
  .hero .paper .fit-table { border: 0; }
  .hero .paper .fit-table thead th { position: sticky; top: 0; z-index: 1; }
}

/* ---------- tables: ruled paper ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--card); border: 1.5px solid var(--paper-line); }
th, td { border: 1px solid var(--paper-line); padding: 6px 9px; text-align: left; vertical-align: top; color: var(--text); }
thead th { background: var(--paper-head); font-weight: 650; font-size: 0.9rem; color: var(--text); }
tbody th { background: none; font-weight: 600; }
table a { color: var(--link-paper); }
table .note { color: #4d4430; font-size: 0.84rem; }
.fit-table { font-size: 0.9rem; }
.fit-table tr.cheapest th { font-weight: 700; }
.fit-table tr.row-no th, .fit-table tr.row-no td { color: #4d4430; }
.fit-table details { margin-top: 3px; }
.fit-table details summary, .faqs summary { cursor: pointer; color: var(--link-paper); font-size: 0.85rem; list-style: none; }
.fit-table details summary::-webkit-details-marker { display: none; }
.fit-table details summary::before { content: ""; display: inline-block; border: 5px solid transparent; border-left: 7px solid var(--red); margin: 0 4px -1px 0; }
.fit-table details[open] summary::before { transform: rotate(90deg); transform-origin: 3px 5px; }
.lines { padding-left: 1.1rem; margin: 0.35rem 0; }
.lines li { margin-bottom: 0.25rem; }
.lines .what { font-weight: 600; }
.flag { display: block; color: var(--walnut-dark); font-size: 0.84rem; font-style: italic; }
/* a red pencil tick beside every "fits in one go" */
td.fit-yes::after { content: ""; display: inline-block; width: 20px; height: 17px; margin-left: 6px; vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 17'%3E%3Cpath d='M2 9.5 C4 11 6 13 7.5 15.5 C10 9 13.5 4.5 18.5 1.5' fill='none' stroke='%23a53229' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fit-yes { color: var(--good); font-weight: 600; }
.fit-maybe { color: var(--walnut-dark); }
.fit-no { color: #4d4430; }
/* wide tables keep readable columns and scroll sideways on a phone, rather than squeezing a word to a line */
.specs, .compare, .versus { min-width: 600px; }
.page-body .fit-table { min-width: 520px; }
.matrix td { text-align: center; font-weight: 600; white-space: nowrap; }
.specs th { width: auto; }

/* ---------- under the hero: the board's four columns ---------- */
.bench-notes { background: var(--bg); padding: clamp(18px, 2.4vw, 30px) 0 clamp(26px, 3vw, 40px); }
.cols { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 0; }
.col { padding: 0 clamp(14px, 1.6vw, 26px); border-left: 2px solid rgba(25, 54, 43, 0.55); position: relative; }
.col:first-child { padding-left: 0; border-left: 0; }
.col:last-child { padding-right: 0; }
.col h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 1.9vw, 1.75rem); }
.col p, .col li { font-size: 1rem; line-height: 1.5; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { position: relative; padding-left: 20px; margin-bottom: 0.65rem; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.project-list { list-style: none; padding: 0; margin: 0; }
.project-list li { margin: 0 0 0.6rem; line-height: 1.3; }
.project-list a { font-weight: 600; }
.project-list .note { display: block; font-size: 0.85rem; margin-top: 1px; }
.col-machines table { font-size: 0.86rem; }
.col-machines th, .col-machines td { padding: 4px 7px; }
.col-machines tbody th { font-weight: 500; }
.col-machines .note { font-size: 0.82rem; }
.deco { display: block; height: auto; margin-top: 10px; }
.deco-tile { margin-left: auto; }
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .col:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; gap: 22px; }
  .col { padding: 18px 0 0; border-left: 0; border-top: 2px solid rgba(25, 54, 43, 0.55); }
  .col:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- the workbench on smaller screens ---------- */
@media (max-width: 999px) {
  .workbench { grid-template-columns: 1fr; }
  .clipboard { margin: 30px 0 0; }
  .sheet-tools { display: none; }
}
@media (max-width: 640px) {
  .sheet { border-radius: 12px; padding: 8px 12px 16px; }
  .frow { grid-template-columns: 1fr; gap: 2px; margin-bottom: 12px; }
  .flabel { padding-top: 0; }
  .fsubmit { margin-left: 0; }
  .pencil-btn { width: 100%; }
  .fit select { min-width: 0; width: 100%; }
  .fit select.units, .fit select.mat { width: auto; }
  .fit input[type="number"] { width: 4.2rem; }
  .clipboard { padding: 28px 8px 10px; }
  .paper { padding: 14px 10px 12px; }
}

/* ---------- inner pages: the head on the sage floor with its drawing ---------- */
.article-wrap { max-width: 1380px; padding-top: 16px; }
.crumbs { color: var(--muted); font-size: 0.92rem; }
.crumbs a { color: var(--link); }
.page-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.page-head.has-art { max-width: none; align-items: center; gap: clamp(16px, 3vw, 48px); }
.page-head h1 { margin: 0.05em 0 0.25em; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.page-head .lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.45; }
.page-head-art { width: clamp(150px, 26vw, 320px); }
.byline { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }
.page-body { max-width: 860px; }
.page-body > p, .page-body li { max-width: 46rem; }
.page-body ul, .page-body ol { padding-left: 1.2em; }
.page-body ul li::marker { color: var(--red); }
.page-body h2 { border-top: 0; }
.toc { background: var(--card); border: 1.5px solid var(--paper-line); border-radius: 4px; box-shadow: 3px 4px 0 rgba(25, 54, 43, 0.25); }
.toc a { color: var(--link-paper); }
.toc-title { font-size: 1.15rem; }
.callout { background: var(--paper); color: var(--text); border: 1.5px solid var(--paper-line); }
.callout a { color: var(--link-paper); }
.filters { background: var(--card); border: 1.5px solid var(--paper-line); border-radius: 4px; padding: 0.75rem 1rem; margin: 1rem 0; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-family: var(--display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.filters .row label { display: inline-block; margin: 0 0.9rem 0.25rem 0; }
.filters input[type="number"] { width: 5rem; font: inherit; padding: 3px 8px; border: 1.5px solid #9a6d36; border-radius: 4px; background: #fbf1d6; color: var(--text); }
.filters .note { color: #4d4430; }
.page-body .fit-answer { background: var(--paper); border: 1.5px solid var(--paper-line); border-radius: 4px; padding: 14px 16px; }
.page-body .fit-answer a { color: var(--link-paper); }
.page-body .fit-answer .note, .page-body .fit-answer .small { color: #4d4430; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin: 1.6rem 0 0.5rem; }
.share-note { color: var(--text); font-weight: 600; }
.share-link { width: 100%; max-width: 32rem; padding: 0.35rem; font: inherit; border: 1.5px solid #9a6d36; border-radius: 4px; background: #fbf1d6; color: var(--text); }
.paper .share-plain { font-size: 0.9rem; }
@media (max-width: 560px) {
  /* the phone page as the board draws it: the name, then the drawing, then the words */
  .page-head.has-art { flex-direction: column; align-items: stretch; gap: 0; }
  .page-head.has-art .page-head-text { display: contents; }
  .page-head.has-art h1 { order: 1; }
  .page-head.has-art .page-head-art { order: 2; width: min(100%, 320px); margin: 6px auto 10px; }
  .page-head.has-art .lede { order: 3; }
  .page-head.has-art .byline { order: 4; }
  .page-body .share-button { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg); color: var(--text); margin-top: 0; padding-top: 8px; border-top: 0; }
.site-footer .footer-grid { border-top: 2px solid var(--text); padding-top: 24px; }
.site-footer a { color: var(--link); }
.site-footer .brand { color: var(--text); }
.footer-brand p { color: var(--muted); }
.footer-col h2 { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 1.15rem; color: var(--text); }
.footer-legal { color: var(--muted); }
.footer-legal::before { border-top: 1px solid var(--line); }
.page-home .site-footer, .page-fit .site-footer { background: var(--bg); }

/* ---------- the 404: the router, looking for the page ---------- */
body:not([class]) .article-wrap .page { padding-top: 220px; background: url("/art/router.svg") left top / 280px auto no-repeat; min-height: 50vh; }

/* ---------- cookie banner in the world ---------- */
.cookie-banner { background: var(--text); color: #ffffff; }
.cookie-banner a { color: var(--birch); }
.cookie-banner .accept { background: var(--birch); color: var(--text); }
