/* Hardwood refinishing page v3: board cross-section, refinish week, finish table.
   Scoped under #coastal-redesign with html:root body so it beats the kit and the page's inline styles. */
html:root body #coastal-redesign .r3{
  --r3-ink:#141D2B; --r3-body:#3D4655; --r3-muted:#596170; --r3-navy:#0F2D59; --r3-navy2:#0B2246;
  --r3-oak:#C39A68; --r3-oakd:#8A6234; --r3-paper:#F8F4ED; --r3-line:#E6DDD0;
  padding:96px 0; background:#fff; color:var(--r3-body);
}
html:root body #coastal-redesign .r3.r3-paper{background:var(--r3-paper)}
html:root body #coastal-redesign .r3 h2{font-family:'Source Serif 4',Georgia,serif;font-weight:600;color:var(--r3-ink);
  font-size:clamp(30px,3.4vw,44px);line-height:1.12;letter-spacing:-.01em;margin:0 0 16px;max-width:20ch;text-align:left}
html:root body #coastal-redesign .r3 .r3-lead{font-size:18px;line-height:1.65;color:var(--r3-body);max-width:60ch;margin:0;text-align:left}
html:root body #coastal-redesign .r3 a{color:var(--r3-oakd);text-decoration:underline;text-underline-offset:3px}
html:root body #coastal-redesign .r3 a:hover{color:var(--r3-navy)}
html:root body #coastal-redesign .r3 :focus-visible{outline:3px solid var(--r3-oak);outline-offset:3px}

/* ---------- 1. Depth tool ---------- */
html:root body #coastal-redesign .r3-depth-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;margin-top:48px;align-items:start}
html:root body #coastal-redesign .r3-opts{display:flex;flex-direction:column;border-top:1px solid var(--r3-line)}
html:root body #coastal-redesign .r3-opt{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:4px 16px;
  padding:18px 4px 18px 20px;border-bottom:1px solid var(--r3-line);position:relative}
html:root body #coastal-redesign .r3-opt::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:2px;background:transparent;transition:background .2s}
html:root body #coastal-redesign .r3-opt b{font-family:'Source Serif 4',Georgia,serif;font-size:21px;font-weight:600;color:var(--r3-ink)}
html:root body #coastal-redesign .r3-opt span{grid-column:1/-1;font-size:15px;color:var(--r3-muted);line-height:1.45}
html:root body #coastal-redesign .r3-opt i{font-style:normal;font-size:14px;color:var(--r3-muted);align-self:center;white-space:nowrap}
html:root body #coastal-redesign .r3-opt:hover b{color:var(--r3-navy)}
html:root body #coastal-redesign .r3-opt[aria-checked="true"]::before{background:var(--r3-oak)}
html:root body #coastal-redesign .r3-opt[aria-checked="true"] b{color:var(--r3-navy)}
html:root body #coastal-redesign .r3-opt:focus-visible{outline:3px solid var(--r3-oak);outline-offset:-3px}

html:root body #coastal-redesign .r3-board{margin:0;background:var(--r3-paper);border:1px solid var(--r3-line);border-radius:6px;padding:28px 28px 22px}
html:root body #coastal-redesign .r3-board svg{display:block;width:100%;max-width:440px;height:auto;margin:0 auto}
html:root body #coastal-redesign .r3-board svg text{font-family:Inter,system-ui,sans-serif;font-size:15.5px;fill:var(--r3-muted)}
html:root body #coastal-redesign .r3-board svg .lbl-strong{fill:var(--r3-ink);font-weight:600}
/* layers that come off or go on, per option */
html:root body #coastal-redesign .r3-board .cut,
html:root body #coastal-redesign .r3-board .add{opacity:0;transition:opacity .35s ease}
html:root body #coastal-redesign .r3-board[data-k="clean"] .cut-clean,
html:root body #coastal-redesign .r3-board[data-k="recoat"] .cut-recoat,
html:root body #coastal-redesign .r3-board[data-k="recoat"] .add-recoat,
html:root body #coastal-redesign .r3-board[data-k="sand"] .cut-sand,
html:root body #coastal-redesign .r3-board[data-k="sand"] .add-sand,
html:root body #coastal-redesign .r3-board[data-k="repair"] .cut-sand,
html:root body #coastal-redesign .r3-board[data-k="repair"] .add-sand,
html:root body #coastal-redesign .r3-board[data-k="repair"] .cut-repair{opacity:1}
html:root body #coastal-redesign .r3-legend{display:flex;flex-wrap:wrap;gap:8px 22px;margin:16px 0 0;padding:0;list-style:none;font-size:14px;color:var(--r3-muted)}
html:root body #coastal-redesign .r3-legend li{display:flex;align-items:center;gap:8px;margin:0}
html:root body #coastal-redesign .r3-legend .sw{width:22px;height:12px;border-radius:2px;display:inline-block}
html:root body #coastal-redesign .r3-legend .sw-cut{background:repeating-linear-gradient(135deg,#B33A2E 0 2px,transparent 2px 6px);border:1.5px solid #B33A2E}
html:root body #coastal-redesign .r3-legend .sw-add{background:#2F7D5B;opacity:.85}

html:root body #coastal-redesign .r3-detail{margin-top:22px}
html:root body #coastal-redesign .r3-d[hidden]{display:none}
html:root body #coastal-redesign .r3-d p{font-size:17px;line-height:1.65;margin:0 0 14px;max-width:62ch}
html:root body #coastal-redesign .r3-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 0 0;border-top:1px solid var(--r3-line)}
html:root body #coastal-redesign .r3-facts div{padding:14px 16px 4px 0}
html:root body #coastal-redesign .r3-facts dt{font-size:14px;color:var(--r3-muted);margin:0 0 4px}
html:root body #coastal-redesign .r3-facts dd{margin:0;font-family:'Source Serif 4',Georgia,serif;font-size:20px;font-weight:600;color:var(--r3-ink);line-height:1.25}
html:root body #coastal-redesign .r3-tip{margin:36px 0 0;padding:22px 26px;border-left:3px solid var(--r3-navy);background:var(--r3-paper);
  font-size:17px;line-height:1.65;max-width:72ch;border-radius:0 6px 6px 0;font-size:16px}
html:root body #coastal-redesign .r3-tip strong{color:var(--r3-ink)}

/* ---------- 2. Refinish week ---------- */
html:root body #coastal-redesign .r3-week{list-style:none;margin:52px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;counter-reset:none}
html:root body #coastal-redesign .r3-week li{margin:0;padding:26px 24px 0 0;border-top:2px solid var(--r3-line);position:relative}
html:root body #coastal-redesign .r3-week li::before{content:"";position:absolute;top:-7px;left:0;width:12px;height:12px;border-radius:50%;background:var(--r3-paper);border:2px solid var(--r3-oakd)}
html:root body #coastal-redesign .r3-week li.on-site{border-top-color:var(--r3-oak)}
html:root body #coastal-redesign .r3-week li.on-site::before{background:var(--r3-oak);border-color:var(--r3-oak)}
html:root body #coastal-redesign .r3-week h3{font-family:'Source Serif 4',Georgia,serif;font-size:22px;font-weight:600;color:var(--r3-ink);margin:0 0 4px;line-height:1.2}
html:root body #coastal-redesign .r3-week .when{display:block;font-size:14px;color:var(--r3-oakd);margin:0 0 12px;font-weight:600}
html:root body #coastal-redesign .r3-week p{font-size:16px;line-height:1.6;margin:0}
html:root body #coastal-redesign .r3-week-note{margin:40px 0 0;font-size:16px;color:var(--r3-muted);max-width:70ch}

/* ---------- 3. Before / after ---------- */
html:root body #coastal-redesign .r3-ba-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:56px;align-items:center}
html:root body #coastal-redesign .r3-ba-grid .ck-ba{margin:0}
html:root body #coastal-redesign .r3-jobfacts{margin:24px 0 26px;padding:0;border-top:1px solid var(--r3-line)}
html:root body #coastal-redesign .r3-jobfacts div{display:grid;grid-template-columns:120px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--r3-line);font-size:16px}
html:root body #coastal-redesign .r3-jobfacts dt{color:var(--r3-muted);margin:0}
html:root body #coastal-redesign .r3-jobfacts dd{margin:0;color:var(--r3-ink)}

/* ---------- 4. Finish table ---------- */
html:root body #coastal-redesign .r3-table-wrap{margin-top:44px;overflow-x:auto}
html:root body #coastal-redesign .r3-table{width:100%;border-collapse:collapse;min-width:560px;font-size:16px}
html:root body #coastal-redesign .r3-table th,
html:root body #coastal-redesign .r3-table td{text-align:left;padding:16px 18px 16px 0;border-bottom:1px solid var(--r3-line);vertical-align:top;line-height:1.5}
html:root body #coastal-redesign .r3-table thead th{font-family:'Source Serif 4',Georgia,serif;font-size:22px;font-weight:600;color:var(--r3-ink);border-bottom:2px solid var(--r3-ink);padding-bottom:12px}
html:root body #coastal-redesign .r3-table tbody th{font-weight:600;color:var(--r3-muted);width:24%;font-size:15px}
html:root body #coastal-redesign .r3-table td{color:var(--r3-ink)}
html:root body #coastal-redesign .r3-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;margin-top:48px}
html:root body #coastal-redesign .r3-cols h3{font-family:'Source Serif 4',Georgia,serif;font-size:22px;font-weight:600;color:var(--r3-ink);margin:0 0 10px}
html:root body #coastal-redesign .r3-cols p{font-size:16px;line-height:1.65;margin:0;max-width:56ch}

/* hero tidy for this page */
html:root body #coastal-redesign .r3-hero-cap{margin:12px 2px 0;font-size:14px;color:rgba(255,255,255,.75)}

@media (max-width:1000px){
  html:root body #coastal-redesign .r3-week{grid-template-columns:1fr;gap:0;margin-left:6px}
  html:root body #coastal-redesign .r3-week li{border-top:0;border-left:2px solid var(--r3-line);padding:0 0 28px 26px}
  html:root body #coastal-redesign .r3-week li.on-site{border-left-color:var(--r3-oak)}
  html:root body #coastal-redesign .r3-week li::before{top:4px;left:-7px}
}
@media (max-width:900px){
  html:root body #coastal-redesign .r3-tip{margin-top:28px}
  html:root body #coastal-redesign .r3{padding:64px 0}
  html:root body #coastal-redesign .r3-depth-grid,
  html:root body #coastal-redesign .r3-ba-grid,
  html:root body #coastal-redesign .r3-cols{grid-template-columns:1fr;gap:32px}
  html:root body #coastal-redesign .r3-board{padding:16px 10px 14px}
  html:root body #coastal-redesign .r3-tip{margin-top:40px}
}
@media (max-width:560px){
  html:root body #coastal-redesign .r3-facts{grid-template-columns:1fr 1fr}
  html:root body #coastal-redesign .r3-facts div:last-child{grid-column:1/-1}
  html:root body #coastal-redesign .r3-opt b{font-size:19px}
  html:root body #coastal-redesign .r3-jobfacts div{grid-template-columns:96px 1fr}
}
@media (prefers-reduced-motion:reduce){
  html:root body #coastal-redesign .r3-board .cut,
  html:root body #coastal-redesign .r3-board .add,
  html:root body #coastal-redesign .r3-opt::before{transition:none}
}
html:root body #coastal-redesign .r3 .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* phones: options as a 2x2 control right above the drawing, tip after the details */
@media (max-width:900px){
  html:root body #coastal-redesign .r3-depth-grid{display:flex;flex-direction:column;gap:0;margin-top:32px}
  html:root body #coastal-redesign .r3-depth-grid > div{display:contents}
  html:root body #coastal-redesign .r3-opts{order:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:0;margin-bottom:16px}
  html:root body #coastal-redesign .r3-opt{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:10px 12px;
    border:1.5px solid var(--r3-line);border-radius:8px;background:#fff}
  html:root body #coastal-redesign .r3-opt::before{display:none}
  html:root body #coastal-redesign .r3-opt b{font-family:Inter,system-ui,sans-serif;font-size:15px;line-height:1.25;font-weight:600}
  html:root body #coastal-redesign .r3-opt span,
  html:root body #coastal-redesign .r3-opt i{display:none}
  html:root body #coastal-redesign .r3-opt[aria-checked="true"]{background:var(--r3-navy);border-color:var(--r3-navy)}
  html:root body #coastal-redesign .r3-opt[aria-checked="true"] b{color:#fff}
  html:root body #coastal-redesign .r3-board{order:2}
  html:root body #coastal-redesign .r3-detail{order:3}
  html:root body #coastal-redesign .r3-tip{order:4}
  html:root body #coastal-redesign .r3-legend{gap:6px 16px;font-size:13px}
}
html:root body #coastal-redesign .r3-week li:last-child{padding-bottom:0}
/* finish table on phones: label on top, the two finishes side by side */
@media (max-width:640px){
  html:root body #coastal-redesign .r3-table-wrap{overflow:visible;margin-top:28px}
  html:root body #coastal-redesign .r3-table{min-width:0;display:block}
  html:root body #coastal-redesign .r3-table thead{display:none}
  html:root body #coastal-redesign .r3-table tbody{display:block}
  html:root body #coastal-redesign .r3-table tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;padding:16px 0;border-bottom:1px solid var(--r3-line)}
  html:root body #coastal-redesign .r3-table tbody th{grid-column:1/-1;width:auto;padding:0;border:0;font-size:14px}
  html:root body #coastal-redesign .r3-table td{display:block;padding:0;border:0;font-size:16px}
  html:root body #coastal-redesign .r3-table td::before{content:attr(data-label);display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:17px;color:var(--r3-navy);margin-bottom:2px}
  html:root body #coastal-redesign .r3-table tr:first-child{border-top:2px solid var(--r3-ink)}
}
