:root { --ink: #1f2430; --muted: #5d6676; --line: #e3e7ee; --soft: #f6f8fb; --brand: #0f766e; --brand-2: #14b8a6; --warn: #b45309; --bad: #b91c1c; --good: #15803d; --radius: 14px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .row/.field set display:flex, which would otherwise beat the hidden attribute */
html, body { margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.top nav a { font-size: 14px; text-decoration: none; }
h1 { font-size: clamp(24px, 6vw, 32px); line-height: 1.2; margin: 18px 0 6px; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: 0 0 14px; font-size: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
input, select { font: inherit; font-size: 16px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
input[type=number] { width: 84px; }
input:focus, select:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 9px 14px; font-weight: 600; color: var(--ink); }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.ghost { background: var(--soft); }
button.small { padding: 6px 10px; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.result { margin-top: 14px; }
.verdict { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.verdict.good { color: var(--good); } .verdict.warn { color: var(--warn); } .verdict.bad { color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.stat { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; }
.stat span { font-size: 13px; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.t th, table.t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font-weight: 600; font-size: 13px; }
.figure { margin-top: 12px; background: var(--soft); border-radius: 12px; padding: 10px; overflow-x: auto; }
.figure svg, .figure canvas { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hint { font-size: 13px; color: var(--muted); }
.err { color: var(--bad); font-size: 14px; margin-top: 8px; }
section.more { margin: 28px 0; }
section.more h2 { font-size: 20px; margin: 22px 0 8px; }
section.more p, section.more li { color: #374151; }
details { border-bottom: 1px solid var(--line); padding: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
.tools-list { display: grid; gap: 10px; margin: 16px 0 30px; padding: 0; list-style: none; }
.tools-list a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tools-list a b { display: block; font-size: 17px; }
.tools-list a span { color: var(--muted); font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer ul { padding-left: 18px; margin: 6px 0 0; }
.lab-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 50; max-width: 90vw; }
.list-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: none; }
.swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); padding: 0; }
@media (max-width: 420px) { input[type=number] { width: 72px; } .card { padding: 14px; } }

/* TurfLocal project workbench. Keep the calculator classes/IDs above stable. */
:root { --ink: #23362f; --muted: #52655d; --line: #d7e1d8; --soft: #edf2e8; --paper: #f0dfbd; --brand: #0f766e; --brand-2: #178577; --radius: 16px; }
body { background: #fbf8f0; }
.wrap { max-width: 1120px; padding-inline: 24px; }
.top { background: #fbf8f0; border-bottom: 1px solid var(--line); }
.top .wrap { min-height: 70px; height: auto; gap: 24px; padding-block: 14px; }
.brand { font-size: 24px; font-weight: 750; letter-spacing: -.8px; }
.top nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--ink); font-weight: 600; padding: 8px 0; }
a { text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; left: 16px; top: -100px; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 14px; color: var(--brand); font-size: 13px; line-height: 1.4; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-main { padding-top: 48px; }
.home-intro { max-width: 800px; margin-bottom: 36px; }
.home-intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6.8vw, 72px); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; margin: 0 0 20px; }
.home-intro .lead { font-size: 19px; line-height: 1.5; max-width: 550px; margin: 0; }
.tools-list.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin: 0; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fffef9; min-width: 0; list-style: none; }
.tools-list .project-card > a { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); height: 100%; color: var(--ink); padding: 0; border: 0; border-radius: 0; text-decoration: none; }
.project-card > a:hover { background: #f7f9f1; }
.project-card > a:focus-visible { outline-offset: -5px; }
.project-copy { padding: 28px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.project-copy h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.project-copy p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.project-copy .eyebrow { color: var(--brand); font-size: 12px; line-height: 1.4; }
.tools-list a .project-action { display: inline-flex; gap: 18px; align-items: center; justify-content: space-between; margin-top: auto; padding: 10px 0 0; color: var(--brand); font-weight: 700; font-size: 14px; }
.tools-list a .project-action > span { color: inherit; font-size: 20px; }
.project-card.project-featured { grid-column: 1 / -1; }
.project-featured .project-copy { padding: 38px; justify-content: center; }
.project-featured .project-copy h2 { font-size: clamp(30px, 3.8vw, 42px); }
.project-featured .project-copy p { max-width: 340px; }
.tools-list a .project-action-primary { padding: 12px 18px; border-radius: 9px; color: #fff; background: var(--brand); margin-top: 4px; }
.project-preview { margin: 0; min-width: 0; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 18px; }
.project-preview figcaption { color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; max-width: 240px; }
.wrapping-preview { padding: 24px; background: #e7ede1; }
.wrapping-preview svg { display: block; max-width: 100%; width: auto; height: auto; max-height: 300px; }
.wrapping-preview .paper-roll { fill: #fffef9; }
.wrapping-preview .paper-piece { fill: #d6e6d3; stroke: #8da98c; stroke-width: 1; }
.wrapping-preview .piece-2 { fill: #f0dfbd; stroke: #c2ab77; }
.wrapping-preview .piece-3 { fill: #0f766e; stroke: #0f766e; }
.wrapping-preview text { fill: #244735; font-family: inherit; font-size: 15px; font-weight: 700; }
.wrapping-preview .piece-3 + text { fill: #fff; }
.roll-label { width: 182px; max-width: 100%; display: flex; justify-content: space-between; gap: 12px; }
.tools-list a .roll-label span { font-size: 11px; color: var(--muted); }
.sample-room { width: 180px; max-width: 100%; aspect-ratio: 1; border: 2px solid #8da98c; position: relative; background: #fffef9; }
.sample-bed { position: absolute; top: 0; left: 25%; width: 50%; height: 66.666%; border-radius: 0 0 7px 7px; background: var(--brand); display: grid; place-items: center; }
.sample-bed::before { content: ""; position: absolute; top: 7px; left: 7px; right: 7px; height: 16%; border-radius: 4px; background: #e3efdf; }
.project-preview .sample-bed span { color: #fff; font-size: 12px; }
.tools-list a .room-side { position: absolute; left: 2%; top: 43%; font-size: 11px; color: var(--muted); }
.tools-list a .room-foot { position: absolute; left: 0; width: 100%; bottom: 8%; text-align: center; font-size: 12px; color: var(--muted); }
.sample-blanket { width: 170px; max-width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.project-preview .sample-blanket span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid #c5d2bd; border-radius: 5px; font-size: 13px; color: var(--ink); background: var(--paper); }
.project-preview .sample-blanket .square-a { color: #fff; background: var(--brand); border-color: var(--brand); }
.project-preview .sample-blanket .square-c { background: #fffef9; }
.home-promise { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 24px 0 0; color: var(--muted); font-size: 13px; }
.home-promise span::before { content: "✓"; color: var(--brand); margin-right: 8px; }
.other-project { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 22px; }
.other-project h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 16px; }
.other-project > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.other-project p { margin: 0; }
.other-project b { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.other-project p span { display: block; color: var(--muted); margin-top: 5px; font-size: 14px; }
.other-project > div > a { white-space: nowrap; font-size: 14px; font-weight: 600; }
.directory-main { padding-top: 42px; }
.directory-main > h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.03em; }
.directory-main > .lead { max-width: 620px; }
.tools-list.directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.directory-grid .project-card > a { display: flex; flex-direction: column-reverse; }
.directory-grid .project-copy { padding: 24px; flex: 1; }
.directory-grid .project-preview { min-height: 220px; }
.directory-grid .wrapping-preview svg { max-height: 180px; }
.directory-grid .project-copy h2 { font-size: 28px; }
.tool-main { max-width: 850px; padding-top: 20px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.tool-main > h1 { font-size: clamp(25px, 5vw, 34px); margin: 0 0 10px; line-height: 1.15; letter-spacing: -.035em; }
.tool-main > .lead { margin-bottom: 20px; }
.tool-main .card { background: #fffef9; box-shadow: none; }
.tool-main section.more { max-width: 720px; margin-top: 36px; padding-top: 4px; }
.tool-main section.more h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.tool-main section.more p, .tool-main section.more li { color: var(--muted); }
.tool-main .verdict { font-size: 21px; line-height: 1.35; }
.chart-wrap { overflow-x: auto; margin-top: 4px; }
table.room-chart { font-size: 13px; table-layout: fixed; }
table.room-chart th, table.room-chart td { padding: 6px 2px; vertical-align: top; }
table.room-chart thead th { font-size: 12px; line-height: 1.25; }
table.room-chart thead th:first-child { width: 50px; }
table.room-chart td b { font-size: 12px; }
table.room-chart tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
table.room-chart td b { display: block; font-weight: 600; }
table.room-chart td span { display: block; font-size: 12px; color: var(--muted); }
table.room-chart td.good b { color: var(--good); } table.room-chart td.warn b { color: var(--warn); } table.room-chart td.bad b { color: var(--bad); }
.tool-main .figure { background: #f0f4ed; }
.tool-main .field, .tool-main .list-row { min-width: 0; }
input, select, button { min-height: 42px; }
button:hover { border-color: #92afa0; }
.document-main { max-width: 760px; padding-top: 42px; padding-bottom: 10px; }
.document-main > h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0 0 20px; letter-spacing: -.03em; }
.document-main > p, .document-main li { color: var(--muted); line-height: 1.7; }
.document-main > .lead { font-size: 18px; color: var(--ink); }
.document-main h2 { font-size: 23px; line-height: 1.3; font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin: 30px 0 12px; }
.document-main .updated { font-size: 13px; }
.contact-channel, .text-action { font-weight: 600; overflow-wrap: anywhere; }
footer { margin-top: 48px; padding: 28px 0 34px; }
.footer-related { margin-bottom: 28px; }
.footer-related > p { font-size: 13px; color: var(--muted); }
.footer-related ul { display: flex; flex-wrap: wrap; gap: 12px 24px; list-style: none; padding: 0; }
.footer-bottom { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-bottom p { margin: 0; }
.footer-brand { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-bottom p span { display: block; margin-top: 5px; }
.footer-bottom nav { display: flex; gap: 16px 24px; flex-wrap: wrap; }
.footer-bottom nav a { color: var(--muted); padding: 4px 0; }
@media (max-width: 760px) {
  .wrap { padding-inline: 18px; }
  .home-main, .directory-main { padding-top: 32px; }
  .home-intro { margin-bottom: 28px; }
  .home-intro h1 { font-size: clamp(39px, 8.2vw, 60px); }
  .tools-list.project-grid { gap: 18px; grid-template-columns: 1fr; }
  .project-card.project-featured { grid-column: auto; }
  .project-featured .project-copy { padding: 28px; }
  .tools-list.directory-grid { grid-template-columns: 1fr; }
  .directory-grid .project-card > a { display: grid; grid-template-columns: 1.2fr 1fr; }
  .directory-grid .project-preview { min-height: 220px; }
  .footer-bottom { flex-direction: column; gap: 18px; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 12px; min-height: 64px; }
  .top nav { gap: 18px; }
  .top nav a { font-size: 13px; }
  .brand { font-size: 22px; }
  .home-intro .lead { font-size: 17px; }
  .project-featured > a { grid-template-columns: 1fr !important; }
  .project-featured .project-copy { padding: 26px; }
  .project-featured .wrapping-preview { padding: 20px; }
  .project-featured .wrapping-preview svg { max-height: 260px; }
  .project-copy { padding: 20px 16px; }
  .project-copy h2 { font-size: 25px; }
  .project-copy p { font-size: 14px; }
  .project-preview { padding: 20px 12px; }
  .sample-room { width: 135px; }
  .sample-blanket { width: 130px; gap: 5px; }
  .tools-list a .room-side { font-size: 11px; left: 1%; }
  .project-preview figcaption { font-size: 11px; }
  .tools-list a .project-action { gap: 8px; font-size: 13px; }
  .directory-grid .project-copy { padding: 20px 16px; }
  .directory-grid .project-copy h2 { font-size: 25px; }
  .other-project > div { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tool-main { padding-top: 16px; }
  .tool-main > .lead { font-size: 15px; }
  input, select, button, button.small { min-height: 44px; }
  .footer-related ul { flex-direction: column; gap: 8px; }
  .document-main { padding-top: 30px; }
}
@media print {
  .top, footer, .actions, .breadcrumbs, .skip-link, section.more { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { width: 100%; max-width: none; padding: 0; }
  .card { box-shadow: none; border-color: #bbb; }
  .figure { break-inside: avoid; }
}

/* Retained tools listed beside the lab tools (production build only: HVAC Quote Check). */
.project-card.project-wide { grid-column: 1 / -1; }
.tools-list.directory-grid.directory-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote-preview { background: #e8eef2; }
.sample-quote { width: 214px; max-width: 100%; background: #fffef9; border: 1px solid #c8d3dc; border-radius: 8px; padding: 12px 12px 6px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.tools-list .sample-quote p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 7px; font-size: 12px; line-height: 1.4; color: var(--ink); }
.tools-list .sample-quote span { color: var(--ink); font-size: 12px; }
.tools-list .sample-quote b { display: inline; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tools-list .sample-quote .quote-ok b { color: var(--brand); }
.tools-list .sample-quote .quote-ask b { color: #b45309; }
@media (max-width: 760px) { .tools-list.directory-grid.directory-even { grid-template-columns: 1fr; } }
.lights-preview { background: #e6ece4; }
.lights-preview svg { display: block; max-width: 100%; height: auto; }
.lights-preview .tree-body { fill: #2f5d46; }
.lights-preview .tree-trunk { fill: #8a6a45; }
.lights-preview .tree-light { fill: #f5c542; stroke: #a8811f; stroke-width: .6; }
.treesize-preview { background: #e8ebf0; }
.treesize-preview svg { display: block; max-width: 100%; height: auto; }
.treesize-preview .room-line { stroke: #475569; stroke-width: 2; }
.treesize-preview .tree-body { fill: #2f5d46; }
.treesize-preview .tree-star { fill: #f5c542; stroke: #a8811f; stroke-width: .6; }
.gallery-preview { background: #ece9e2; }
.gallery-preview svg { display: block; max-width: 100%; height: auto; }
.gallery-preview .room-line { stroke: #475569; stroke-width: 2; }
.gallery-preview .gw-sofa { fill: #b9b2a4; }
.gallery-preview .gw-frame { fill: #fff; stroke: #334155; stroke-width: 1.2; }
.gallery-preview .gw-nail { fill: #dc2626; }
table.gallery-chart { font-size: 13px; }
table.gallery-chart th, table.gallery-chart td { padding: 6px 4px; vertical-align: top; }
table.gallery-chart tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.list-row.compact { padding-top: 4px; }
.list-row.compact label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.more-settings { margin-top: 10px; }
details.more-settings summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 0; line-height: 1.4; }
.count-line { margin: 10px 0 0; padding: 10px 12px; background: var(--soft); border-radius: 10px; font-size: 15px; line-height: 1.45; }
.count-line b { font-size: 17px; color: var(--ink); }
table.squares-chart { font-size: 13px; table-layout: fixed; }
table.squares-chart th, table.squares-chart td { padding: 6px 3px; vertical-align: top; }
table.squares-chart thead th { font-size: 12px; line-height: 1.25; }
table.squares-chart thead th:first-child { width: 78px; }
table.squares-chart tbody th { color: var(--ink); font-weight: 600; line-height: 1.25; }
table.squares-chart tbody th span, table.squares-chart td span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
table.squares-chart td b { display: block; font-weight: 600; }
