/* design: v2 */
/* waterfedpolesystem.com, design v2 B (James's pick, 2 Dec 2026): "the meter on the bench" (design/home-v2-B.png).
   A Blender still life of the trade on a slate bench (renders/bench.py): the home sits on the slate teal of the wall, the
   tool is the meter's own dark display with pale green number boxes, the answer is a big pale green readout, and the
   tables are ruled on mist panels. Inner pages are mist with a slate teal head holding a spot render.
   Fonts: Saira Condensed (headings) and PT Sans (text); the board's Barlow Condensed and Cabin are other sites'.
   Colours from the board: slate teal #183c40 (the wall), ink #12201f, LCD green #a9c77a, resin amber #dda451, mist.
   --brand is a lighter slate teal (#325a5a) so it stays clear of two other sites' deep blues and greens.
   The light surfaces are kept in dark mode (color-scheme: light): the dark parts are already the design. */

@font-face { font-family: "Saira Condensed"; src: url(/fonts/saira-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url(/fonts/saira-condensed-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(/fonts/pt-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(/fonts/pt-sans-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(/fonts/pt-sans-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --brand: #325a5a;
  --wall: #183c40;
  --wall-deep: #12302f;
  --ink-deep: #12201f;
  --lcd: #a9c77a;
  --lcd-pale: #d7e6c2;
  --amber: #dda451;
  --amber-light: #f0c47e;
  --mist: #e2ebea;
  --panel: #f3f7f6;
  --on-dark: #e8f0ee;
  --on-dark-muted: #bfd0cc;
  --bg: #d4e3e6;
  --text: #12201f;
  --muted: #3e5251;
  --line: #b4c6c3;
  --card: #f3f7f6;
  --link: #1b5755;
  --np: #8a3510;
  --no: #6b2222; --no-bg: #f6e2df;
  --pick: #d7e6c2;
}

body { background: var(--bg); color: var(--text); font-family: "PT Sans", "Trebuchet MS", sans-serif; font-size: 1.0625rem; }
h1, h2, h3, .wordmark { font-family: "Saira Condensed", "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: 0; }
h1 { line-height: 1.02; }
h2 { line-height: 1.1; }
strong { font-weight: 700; }
a { color: var(--link); }

/* ---------- header and footer: the dark of the meter ---------- */
.site-header { background: var(--ink-deep); color: var(--on-dark); border-bottom: 0; }
.site-header .wrap, .site-footer .wrap { max-width: 1240px; }
.site-header .brand { color: var(--on-dark); gap: 10px; display: inline-flex; align-items: center; text-decoration: none; }
.brand svg.logo-mark { height: 32px; width: auto; flex: none; }
.wordmark { font-size: 1.45rem; line-height: 1; color: var(--on-dark); }
.main-nav a { color: var(--on-dark); font-weight: 400; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--lcd); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu-btn { color: var(--on-dark) !important; border-color: rgba(232, 240, 238, 0.5) !important; }
.has-menu.menu-open .main-nav a { border-top-color: rgba(232, 240, 238, 0.18); }
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); border-top: 0; margin-top: 0; }
.site-footer a, .site-footer .footer-note, .site-footer p, .site-footer h2, .site-footer h3 { color: var(--on-dark-muted); }
.site-footer .wordmark { color: var(--on-dark); }
.site-footer a:hover { color: var(--lcd); }

/* ---------- buttons, share, the market switch ---------- */
.btn { background: var(--amber); color: var(--ink-deep); font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1.25rem; border-radius: 8px; border: 0; }
.btn:hover { background: var(--amber-light); color: var(--ink-deep); }
.share-btn { background: transparent; color: var(--ink-deep); border: 2px solid var(--ink-deep); font-size: 1.05rem; padding: 6px 16px; }
.share-btn:hover { background: var(--ink-deep); color: var(--lcd); }
.share { margin: 14px 0 0; }
.share-box { display: block; width: 100%; margin-top: 0.4rem; font: inherit; }

.market-switch { margin: 18px 0 0; color: var(--on-dark); font-size: 1rem; }
.market-switch a { display: inline-block; padding: 3px 14px; border: 1.5px solid rgba(232, 240, 238, 0.7); border-radius: 6px; margin-left: 6px; text-decoration: none; color: var(--on-dark); font-family: "Saira Condensed", sans-serif; font-weight: 600; font-size: 1.1rem; }
.market-switch a[aria-pressed="true"] { background: var(--lcd); color: var(--ink-deep); border-color: var(--lcd); }

.np { color: var(--np); font-weight: 700; }
.fit-no { color: var(--no); background: var(--no-bg); padding: 0.6rem 0.8rem; border-radius: 8px; }
.hint, .note, .source, .uk-line, .example-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- home: the bench ---------- */
.bench { background: var(--wall); color: var(--on-dark); padding-bottom: 64px; }
.bench a { color: var(--amber-light); }
.hero { position: relative; background: var(--wall); }
.hero-render img { display: block; width: 100%; height: clamp(440px, 41.7vw, 700px); object-fit: cover; object-position: 50% 100%; }
.hero::before { content: ""; position: absolute; inset: 0 0 40% 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 32, 31, 0.55) 0%, rgba(18, 32, 31, 0.25) 60%, rgba(18, 32, 31, 0) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 60, 64, 0) 0%, var(--wall) 100%); }
.hero-text { position: absolute; z-index: 2; top: 0; left: 0; right: 0; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 3.2vw, 48px) 20px 0; }
.hero h1 { color: #f1f6f4; font-size: clamp(2.5rem, 4.9vw, 4.6rem); margin: 0 0 0.25em; max-width: 17em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero .lede { color: var(--on-dark); font-size: clamp(1.05rem, 1.25vw, 1.2rem); max-width: 40em; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }

.tool-row, .price-row, .workings-panel, .spot-row, .systems-panel { max-width: 1240px; margin-left: auto; margin-right: auto; }
.tool-row, .price-row, .spot-row { padding-left: 20px; padding-right: 20px; }
.tool-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; margin-top: 4px; position: relative; z-index: 2; }

/* the tool: the meter's own dark display, its number boxes pale green */
.meter-panel { background: var(--ink-deep); border-radius: 16px; padding: 22px 24px 24px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.tool-intro { color: var(--on-dark-muted); margin: 0 0 14px; font-size: 1rem; }
.cost-form { margin: 0; color: var(--on-dark); }
.cost-form fieldset { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.cost-form legend { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1.45rem; color: #fff; padding: 0; margin-bottom: 10px; }
.cost-form .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(232, 240, 238, 0.12); margin: 0; }
.cost-form .row label { font-size: 0.98rem; color: var(--on-dark); }
.cost-form .row.check { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
.cost-form .row.check label { color: var(--on-dark-muted); font-size: 0.92rem; }
.cost-form select, .cost-form input[type="number"] {
  font-family: "Saira Condensed", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--ink-deep);
  background: var(--lcd); border: 0; border-radius: 5px; padding: 5px 10px; box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.22); max-width: 100%;
}
.cost-form select { font-size: 1.02rem; padding: 7px 8px; width: 15.5rem; }
.cost-form input[type="number"] { width: 7rem; text-align: right; }
.cost-form #f-tds { font-size: 2.1rem; width: 7rem; padding: 2px 12px; font-weight: 700; }
.cost-form input::placeholder { color: #55713a; opacity: 1; }
.cost-form input:focus-visible, .cost-form select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.cost-form .hint { color: var(--on-dark-muted); font-size: 0.88rem; margin: 6px 0 2px; }
.cost-form input[type="checkbox"] { accent-color: var(--lcd); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.cost-form .btn { width: 100%; padding: 13px 18px; margin-top: 8px; }

/* the answer: a big pale green readout */
.readouts .example-label { color: var(--on-dark-muted); margin: 0 0 8px; }
.readouts .cost-answer { border: 0; margin: 0; padding: 0; }
.readout { background: var(--lcd); color: var(--ink-deep); border-radius: 16px; padding: 22px 26px 20px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.readout a { color: var(--ink-deep); }
.readout h2 { font-size: 1.6rem; margin: 0 0 4px; color: var(--ink-deep); }
.readout .headline { font-size: 1.3rem; line-height: 1.3; margin: 0 0 14px; }
.readout .headline strong { font-family: "Saira Condensed", sans-serif; font-size: clamp(2.3rem, 3.9vw, 3.5rem); line-height: 1; letter-spacing: -0.01em; }
.readout .note { color: #2b3f22; font-size: 0.92rem; margin: 10px 0 0; }
.readout .table-scroll { background: rgba(255, 255, 255, 0.35); border-radius: 8px; }
.readout table.cases th, .readout table.cases td { border-bottom-color: rgba(18, 32, 31, 0.22); }
.readout table.cases thead th { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1rem; }
.readout .share-status { color: var(--ink-deep); }

/* every system at the same reading, the other market beside it */
.price-row { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 22px; margin-top: 26px; align-items: start; }
.price-panel, .other-market, .workings-panel, .systems-panel { background: var(--mist); color: var(--text); border-radius: 16px; }
.price-panel a, .other-market a, .workings-panel a, .systems-panel a { color: var(--link); }
.price-panel { padding: 18px 22px 12px; }
.price-panel h3 { font-size: 1.75rem; margin: 0 0 8px; }
.price-panel .note { margin-top: 8px; }
.other-market { padding: 18px 22px; border-top: 6px solid var(--amber); }
.other-market h2 { font-size: 1.6rem; margin: 0 0 6px; }
.other-market strong { font-family: "Saira Condensed", sans-serif; font-size: 1.3rem; }
.other-market .market-btn { font-weight: 700; }
.workings-panel, .systems-panel { padding: 20px 26px; margin-top: 26px; width: calc(100% - 40px); max-width: 1200px; box-sizing: border-box; }
.workings-panel h2, .systems-panel h2 { font-size: 1.8rem; margin: 0 0 8px; }
.workings-panel h3, .systems-panel h3 { font-size: 1.3rem; margin: 18px 0 6px; }
.workings-panel .workings p:first-child { margin-top: 0; }

/* four spot cards on the wall */
.spot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.spot-card { border-top: 1px solid rgba(232, 240, 238, 0.25); padding-top: 8px; }
.spot-card .spot { display: block; width: 100%; height: 170px; object-fit: contain; margin: 0 0 6px; background: radial-gradient(ellipse 45% 50% at 50% 55%, rgba(226, 235, 234, 0.16), transparent 70%); }
.spot-card h2 { font-size: 1.5rem; margin: 0 0 6px; color: #fff; }
.spot-card p { margin: 0; color: var(--on-dark); }

/* ---------- tables: ruled, on mist ---------- */
table.cases, table.compare, table.systems, table.specs, table.running, table.versus, table.rule-rows, table.resin-hour,
table.poles, table.kit, table.bands { width: 100%; border-collapse: collapse; margin: 0.4rem 0; font-variant-numeric: tabular-nums; }
table.cases th, table.cases td, table.compare th, table.compare td, table.systems th, table.systems td, table.specs th,
table.specs td, table.running th, table.running td, table.versus th, table.versus td, table.rule-rows th, table.rule-rows td,
table.resin-hour th, table.resin-hour td, table.poles th, table.poles td, table.kit th, table.kit td, table.bands th,
table.bands td { text-align: left; padding: 0.42rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 1.02rem; border-bottom: 2px solid var(--ink-deep) !important; }
tbody th { font-weight: 700; }
tr.picked { background: var(--pick); }

/* ---------- inner pages: mist, a slate teal head with a spot render ---------- */
.article-wrap { max-width: 1180px; }
.crumbs { color: var(--muted); }
.page-head { background: var(--brand); color: var(--on-dark); border-radius: 16px; padding: 26px 30px; margin-bottom: 26px; }
.page-head.has-art { gap: 28px; }
.page-head h1 { color: #f3f8f6; font-size: clamp(2.1rem, 3.6vw, 3.1rem); margin: 0 0 8px; }
.page-head .lede { color: var(--on-dark); }
.page-head .byline, .page-head .byline a, .page-head .disclosure { color: var(--on-dark-muted); }
.page-head .disclosure a { color: var(--amber-light); }
.page-head-art { width: clamp(150px, 24vw, 280px); }
.page-head-art .head-spot { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25)); }
.page-body h2 { font-size: 2rem; margin-top: 1.4em; }
.page-body h3 { font-size: 1.4rem; }
.page-body .table-scroll { background: var(--panel); border-radius: 10px; padding: 4px 10px; }
.price-line strong { font-family: "Saira Condensed", sans-serif; font-size: 1.35rem; }
.toc { background: var(--panel); border-color: var(--line); }
.page-body .uk-line { background: var(--panel); border-left: 5px solid var(--amber); padding: 10px 14px; border-radius: 6px; color: var(--text); }

/* the tool on /cost: the same meter display and readout, in the article column */
.cost-page .cost-form { background: var(--ink-deep); border-radius: 16px; padding: 22px 24px 24px; margin-bottom: 22px; }
.cost-page .cost-answer { border: 0; margin: 0; padding: 0; }
.cost-page .workings, .cost-page .cost-answer > h3, .cost-page .cost-answer > .table-scroll, .cost-page .cost-answer > .note { margin-top: 18px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .tool-row, .price-row { grid-template-columns: minmax(0, 1fr); }
  .spot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; }
  .hero-text { position: static; order: -1; padding: 22px 16px 4px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 2.35rem; }
  .hero-render img { height: auto; aspect-ratio: 4 / 3; }
  .tool-row, .price-row, .spot-row { padding-left: 12px; padding-right: 12px; }
  .workings-panel, .systems-panel { width: calc(100% - 24px); padding: 16px; }
  .meter-panel, .readout { padding: 18px 16px; }
  .cost-form select { width: 100%; }
  .cost-form .row { grid-template-columns: minmax(0, 1fr); }
  .spot-row { grid-template-columns: minmax(0, 1fr); }
  .spot-card .spot { height: 150px; }
  .page-head { padding: 20px 18px; }
  .page-head.has-art .page-head-art { width: 100%; }
  .page-head-art .head-spot { height: 150px; width: auto; margin: 0 auto; }
  table { font-size: 0.92rem; }
}

/* the kit gives .tool forms a pale card; the meter display is its own dark panel */
.meter-panel .cost-form, .cost-page .cost-form.tool { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--on-dark); }
.cost-page .cost-form.tool { background: var(--ink-deep); padding: 22px 24px 24px; }
