/* ==========================================================================
   BaseboardCalculator.com — Baseboard & Cove Base Estimator
   Design system: manila paper + drafting-ink + walnut/brass accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders:wght@500;600;700;800&family=Libre+Franklin:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* ---- palette ---- */
  --paper: #f1ead9;
  --paper-2: #e8dfc9;
  --paper-3: #ded2b4;
  --white: #fbf8f1;
  --ink: #22282b;
  --ink-soft: #52585a;
  --ink-faint: #7a7d76;
  --blueprint: #2b4c55;
  --blueprint-2: #3c6b75;
  --blueprint-tint: #dfe9e8;
  --walnut: #9a5230;
  --walnut-2: #7c3f22;
  --brass: #b08d57;
  --line: #c9bfa4;
  --line-strong: #a99d7c;
  --good: #3f6b4a;
  --good-tint: #e3ead9;
  --bad: #9c4b3e;
  --bad-tint: #f1ded9;

  /* ---- type ---- */
  --font-display: 'Big Shoulders', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ---- misc ---- */
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 0 rgba(34,40,43,0.04), 0 6px 16px -8px rgba(34,40,43,0.25);
  --shadow-pop: 0 12px 30px -10px rgba(34,40,43,0.35);
  --max-width: 1180px;
}

/* ---- reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, select { font-family: inherit; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

:focus-visible {
  outline: 2.5px solid var(--blueprint);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Ruler / tick-mark motif — used as section dividers
   ========================================================================== */
.ruler {
  height: 18px;
  background-image:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--line-strong) 0 1.5px, transparent 1.5px 40px);
  background-size: 100% 9px, 100% 18px;
  background-position: bottom, bottom;
  background-repeat: repeat-x;
  opacity: 0.55;
}
.ruler--dark {
  background-image:
    repeating-linear-gradient(90deg, var(--paper-3) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--paper-3) 0 1.5px, transparent 1.5px 40px);
  opacity: 0.3;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241,234,217,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.86;
}
.brand__mark .brand__l1, .brand__mark .brand__l2 { display: block; font-size: 18px; }
.brand__mark .brand__l1 { color: var(--ink); }
.brand__mark .brand__l2 { color: var(--walnut); }
.brand__mark .brand__dotcom { font-size: 11px; font-weight: 700; color: var(--blueprint); margin-left: 1px; }
.brand__rule {
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px);
  width: 100%;
}
.brand__tag { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: var(--radius-s);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.is-current { color: var(--blueprint); }
.nav .badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  background: var(--brass);
  color: var(--white);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  vertical-align: 2px;
}
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand__tag { display: none; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; height: 0; overflow: hidden;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transition: height .22s ease;
  }
  .nav.is-open { height: calc(100vh - 66px); overflow-y: auto; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--paper-2); border-radius: 0; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px; justify-content: center;
    width: 38px; height: 34px; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius-s);
    cursor: pointer; align-items: center;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 34px 0 26px; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blueprint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.hero__eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--walnut); display: inline-block; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 0.96;
  max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--walnut); }
.hero__sub {
  margin-top: 12px;
  max-width: 54ch;
  font-size: 16px;
  color: var(--ink-soft);
}
.hero__stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.hero__stat { font-family: var(--font-mono); }
.hero__stat b { display: block; font-size: 20px; color: var(--blueprint); }
.hero__stat span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* page (non-home) header banner */
.page-hero { padding: 30px 0 22px; border-bottom: 1px solid var(--line); }
.page-hero__eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--blueprint); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); }
.page-hero p { margin-top: 10px; max-width: 62ch; color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  margin-bottom: 10px;
}
.calc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--paper);
}
.calc__head h2 { font-size: 20px; color: var(--white); }
.calc__head-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--paper-3); text-transform: uppercase; letter-spacing: .06em; }

.calc__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .calc__body { grid-template-columns: minmax(0, 1fr); } }

.calc__inputs { padding: 20px 22px 22px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .calc__inputs { border-right: none; border-bottom: 1px solid var(--line); } }

/* ---- quick whole-project (sq ft based) estimate ---- */
.quick-est {
  border: 1.5px solid var(--blueprint-2); border-radius: var(--radius-m);
  padding: 16px 18px; background: var(--blueprint-tint); margin-bottom: 16px;
}
.quick-est__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.quick-est__head h3 { font-size: 16px; color: var(--blueprint-2); }
.quick-est__badge {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--blueprint); color: var(--white); padding: 3px 8px; border-radius: 20px; white-space: nowrap;
}
.quick-est__note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.5; max-width: 60ch; }
.quick-est__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-est__result { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--blueprint-2); display: flex; flex-direction: column; }
.quick-est__result > div { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; gap: 10px; }
.quick-est__result dt { font-size: 12px; color: var(--ink-soft); }
.quick-est__result dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 15.5px; color: var(--blueprint-2); }
.quick-est__result div:first-child dd { font-size: 19px; color: var(--walnut); }
.quick-est__foot { margin-top: 12px; font-size: 11.5px; color: var(--ink-faint); line-height: 1.45; }

.or-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.or-divider span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); white-space: nowrap; }

.rooms { display: flex; flex-direction: column; gap: 14px; }

.room {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  background: var(--paper);
}
.room__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.room__name {
  flex: 1; border: none; background: transparent; font-family: var(--font-display);
  font-weight: 700; font-size: 18px; color: var(--ink); padding: 2px 4px; border-radius: var(--radius-s);
}
.room__name:hover, .room__name:focus { background: var(--paper-2); }
.icon-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink-soft); cursor: pointer; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.icon-btn:hover { background: var(--bad-tint); color: var(--bad); border-color: var(--bad); }

.room__mode { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 12px; }
.mode-btn {
  border: none; background: var(--white); color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; cursor: pointer; border-right: 1px solid var(--line-strong);
}
.mode-btn:last-child { border-right: none; }
.mode-btn.is-active { background: var(--blueprint); color: var(--white); }

.room__dims { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.dim { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.dim__inputs { display: flex; align-items: center; gap: 5px; }
.dim__inputs input {
  width: 56px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 7px 8px; font-family: var(--font-mono); font-size: 14px; color: var(--ink); background: var(--white);
}
.dim__inputs input:focus { border-color: var(--blueprint); }
.dim__inputs .unit { font-size: 11px; color: var(--ink-faint); font-weight: 500; text-transform: none; }

.openings__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 700; margin-bottom: 8px; }
.openings__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.opening { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.opening span:first-child { width: 40px; }
.opening input {
  width: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 5px 6px; font-family: var(--font-mono); font-size: 13px; background: var(--white);
}
.opening .unit { font-size: 10.5px; color: var(--ink-faint); }
.opening .icon-btn { margin-left: auto; width: 22px; height: 22px; font-size: 11px; }

.btn-line {
  border: 1px dashed var(--line-strong); background: transparent; color: var(--blueprint);
  font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: var(--radius-s);
  cursor: pointer; width: 100%; text-align: center; transition: all .15s ease;
}
.btn-line:hover { background: var(--blueprint-tint); border-color: var(--blueprint); }

.calc__add-room { margin-top: 4px; }

.calc__settings {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 700; }
.field select, .field .num-input {
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 8px 10px;
  background: var(--white); font-family: var(--font-mono); font-size: 13.5px; color: var(--ink);
}
.field .num-input { display: flex; align-items: center; gap: 4px; }
.field .num-input input { border: none; width: 100%; font-family: var(--font-mono); font-size: 13.5px; }
.field .num-input input:focus { outline: none; }
.field .num-input span { color: var(--ink-faint); font-size: 12px; }

.profiles { grid-column: 1 / -1; }
.profiles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) and (max-width: 900px) { .profiles__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.profile-btn {
  border: 1.5px solid var(--line-strong); background: var(--white); border-radius: var(--radius-m);
  padding: 14px 6px 11px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: all .15s ease;
}
.profile-btn svg { width: 48px; height: 68px; }
.profile-btn .p-fill { fill: var(--ink-soft); }
.profile-btn span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-faint); text-align: center; line-height: 1.2; }
.profile-btn:hover { border-color: var(--blueprint); }
.profile-btn.is-active { border-color: var(--blueprint); background: var(--blueprint-tint); box-shadow: 0 0 0 1px var(--blueprint); }
.profile-btn.is-active .p-fill { fill: var(--blueprint); }
.profile-btn.is-active .p-band { fill: var(--blueprint); opacity: 0.25; }
.profile-btn.is-active span { color: var(--blueprint); }

/* ---- results panel ---- */
.calc__results { padding: 20px 22px 22px; background: var(--blueprint); color: var(--paper); position: relative; }
@media (min-width: 901px) { .calc__results { position: sticky; top: 66px; align-self: flex-start; } }
.calc__results h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-3); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }

.results__grid { display: flex; flex-direction: column; gap: 0; }
.results__grid > div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed rgba(241,234,217,0.22); }
.results__grid dt { font-size: 12.5px; color: var(--paper-3); }
.results__grid dd { margin: 0; font-family: var(--font-mono); font-size: 14.5px; font-weight: 500; color: var(--white); }
.results__total { margin-top: 4px; border-bottom: none !important; padding-top: 12px !important; }
.results__total dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--white); }
.results__total dd { font-size: 27px; color: var(--brass); font-weight: 700; }

.results__profile {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(241,234,217,0.22);
  font-size: 12.5px; color: var(--paper-3); line-height: 1.5;
}
.results__profile b { color: var(--white); }

/* ==========================================================================
   Buttons (generic)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.01em; border-radius: var(--radius-s);
  padding: 11px 20px; cursor: pointer; border: 1.5px solid transparent; transition: all .15s ease;
}
.btn--primary { background: var(--walnut); color: var(--white); }
.btn--primary:hover { background: var(--walnut-2); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--on-dark { background: transparent; border-color: rgba(241,234,217,0.5); color: var(--white); }
.btn--on-dark:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--sm { padding: 8px 14px; font-size: 12.5px; }

.calc__print-btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ==========================================================================
   Section shell / cards
   ========================================================================== */
section.block { padding: 46px 0; }
section.block--tight { padding: 32px 0; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.block__head h2 { font-size: clamp(24px, 3.4vw, 32px); }
.block__head .eyebrow { font-family: var(--font-mono); font-size: 11.5px; color: var(--walnut); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; display: block; }
.block__head p { color: var(--ink-soft); max-width: 56ch; margin-top: 8px; }
.block__link { font-size: 13px; font-weight: 700; color: var(--blueprint); text-decoration: none; white-space: nowrap; }
.block__link:hover { text-decoration: underline; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-5 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 18px; box-shadow: var(--shadow-card);
}

/* material preview card (home) */
.mcard { display: flex; flex-direction: column; gap: 10px; }
.mcard__icon { width: 30px; height: 40px; }
.mcard__icon .p-fill { fill: var(--walnut); }
.mcard h3 { font-size: 18px; }
.mcard p { font-size: 13.5px; color: var(--ink-soft); }
.mcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 3px 7px; border-radius: 20px; background: var(--paper-2); color: var(--ink-soft); }

/* directory / retailer card */
.retailer { display: flex; flex-direction: column; gap: 8px; }
.retailer h3 { font-size: 17px; }
.retailer p { font-size: 13.5px; color: var(--ink-soft); }
.retailer__link { font-size: 12.5px; font-weight: 700; color: var(--blueprint); text-decoration: none; margin-top: 4px; }
.retailer__link:hover { text-decoration: underline; }

/* ==========================================================================
   Pros / cons
   ========================================================================== */
.proscons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin-top: 12px; }
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }
.proscons > div { background: var(--white); padding: 12px 14px; }
.proscons h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.proscons .pros h4 { color: var(--good); }
.proscons .cons h4 { color: var(--bad); }
.proscons ul { display: flex; flex-direction: column; gap: 6px; }
.proscons li { font-size: 13px; color: var(--ink-soft); padding-left: 15px; position: relative; }
.proscons .pros li::before { content: '+'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.proscons .cons li::before { content: '–'; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* ==========================================================================
   Material detail rows (materials.html)
   ========================================================================== */
.material {
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--white);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-card);
}
.material__top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; }
.material__id { display: flex; gap: 14px; align-items: center; }
.material__icon { width: 40px; height: 54px; flex-shrink: 0; }
.material__icon .p-fill { fill: var(--walnut); }
.material h3 { font-size: 24px; }
.material__sub { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); }
.material__stats { display: flex; gap: 20px; flex-wrap: wrap; }
.mstat { text-align: right; }
.mstat b { display: block; font-family: var(--font-mono); font-size: 14px; color: var(--blueprint); }
.mstat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.material__desc { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; max-width: 78ch; }
.material__best {
  margin-top: 12px; font-size: 13px; background: var(--paper-2); display: inline-block;
  padding: 7px 12px; border-radius: var(--radius-s); color: var(--ink-soft);
}
.material__best b { color: var(--ink); }

/* ==========================================================================
   DIY steps
   ========================================================================== */
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.step:last-child { border-bottom: none; }
.step__num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--paper-3); line-height: 1; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 14px; max-width: 72ch; }
.step__tip {
  margin-top: 10px; display: flex; gap: 8px; font-size: 13px; color: var(--blueprint-2);
  background: var(--blueprint-tint); padding: 9px 12px; border-radius: var(--radius-s); max-width: 72ch;
}
.step__tools { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all .15s ease;
}
.tool::before { content: '—'; color: var(--walnut); font-weight: 700; }
.tool:hover { border-color: var(--blueprint); color: var(--ink); background: var(--blueprint-tint); }

.affiliate-disclosure { margin-top: 12px; font-size: 11.5px; color: var(--ink-faint); font-style: italic; }

/* ==========================================================================
   Cove base spec table
   ========================================================================== */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); font-weight: 700; }
.spec-table td { color: var(--ink-soft); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table .table-wrap { overflow-x: auto; }
.table-wrap { overflow-x: auto; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--walnut); flex-shrink: 0; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item p { padding: 14px 18px 18px; margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.faq-item p a { color: var(--blueprint); font-weight: 600; }

/* ==========================================================================
   Callouts / CTA band
   ========================================================================== */
.callout {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-l);
  padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.callout h2 { color: var(--white); font-size: 24px; }
.callout p { color: var(--paper-3); margin-top: 6px; max-width: 50ch; font-size: 14px; }

.directory-teaser {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); padding: 26px; text-align: center;
  background: var(--paper-2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper-3); padding: 40px 0 24px; margin-top: 40px; }
.site-footer .wrap { }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding-bottom: 26px; }
@media (max-width: 760px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer__brand .brand__mark .brand__l1 { color: var(--white); }
.footer__brand .brand__mark .brand__l2 { color: var(--brass); }
.footer__brand .brand__mark .brand__dotcom { color: var(--paper-3); }
.footer__brand p { margin-top: 10px; font-size: 13px; color: var(--paper-3); max-width: 30ch; }
.footer__col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-3); margin-bottom: 12px; }
.footer__col a { display: block; font-size: 13.5px; color: var(--paper); text-decoration: none; padding: 4px 0; opacity: 0.85; }
.footer__col a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(241,234,217,0.15); padding-top: 18px; display: flex; justify-content: space-between; font-size: 12px; color: var(--paper-3); flex-wrap: wrap; gap: 8px; }

/* profile icon: wall/floor backdrop band + outlined silhouette */
.p-band { fill: var(--line-strong); opacity: 0.3; }
.p-fill { stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }

/* utility */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ==========================================================================
   Printable estimate summary — off-screen by default, shown only when
   printing (or "saving as PDF", the same browser dialog on any device).
   ========================================================================== */
.print-summary {
  position: absolute; left: -99999px; top: 0; width: 800px;
  font-family: var(--font-body); color: #111;
}
.ps-title { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.ps-meta { font-size: 12px; color: #555; margin: 4px 0 22px; }
.ps-section { margin-bottom: 22px; }
.ps-section h2 {
  font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1.5px solid #999; padding-bottom: 6px; margin-bottom: 10px;
}
.ps-section > p { font-size: 13px; color: #333; margin-bottom: 8px; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ps-table th, .ps-table td { border: 1px solid #ccc; padding: 7px 9px; text-align: left; }
.ps-table th { background: #f2f2f2; font-weight: 700; }
.ps-totals { display: flex; flex-direction: column; gap: 0; font-size: 14px; max-width: 420px; }
.ps-totals > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dotted #ccc; gap: 16px; }
.ps-totals .ps-grand { border-bottom: none; border-top: 1.5px solid #111; margin-top: 4px; padding-top: 10px; font-size: 18px; font-weight: 700; }

@media print {
  body * { visibility: hidden; }
  .print-summary, .print-summary * { visibility: visible; }
  .print-summary { position: static; left: auto; top: auto; width: auto; }
}
