/* Cost to Replace. Swiss/International style, like a printed price sheet.
   Light only. Black on white, square corners, 2px/6px black rules, Helvetica set large.
   One accent: red #e30613, used for the brand mark and the parts share bar. Nothing else is coloured.
   No dark panels, no green, no pills or badges, no uppercase letter-spaced labels, no shadows, no rounded cards. */
:root {
  --bg: #ffffff; --ink: #000000; --ink-2: #222222; --muted: #666666; --line: #dddddd; --line-2: #bbbbbb; --tint: #f3f3f3;
  --red: #e30613;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.k { color: var(--muted); font-size: 15px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* header */
.top { background: #fff; border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.brand { text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 18px; height: 18px; background: var(--ink); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 8px; background: var(--red); }
.topnav { display: flex; margin-left: auto; align-items: center; }
.topnav a { text-decoration: none; padding: 8px 12px; font-size: 16px; white-space: nowrap; }
.topnav a:hover { background: var(--ink); color: #fff; }
.topnav a.cur { font-weight: 700; box-shadow: inset 0 -4px 0 var(--ink); }
.show-s { display: none; }
@media (max-width: 560px) {
  .topnav a { padding: 8px 8px; font-size: 15px; }
  .hide-s { display: none; } .show-s { display: inline; }
  .brand { font-size: 19px; }
}

/* type */
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 22px 0 6px; font-weight: 700; letter-spacing: -.01em; }
.lede { color: var(--ink-2); margin: 14px 0 0; font-size: 20px; line-height: 1.45; max-width: 62ch; }
.head { padding: 28px 0 26px; }
.home-head h1 { max-width: 16ch; }
.crumb { font-size: 15px; color: var(--muted); padding-top: 18px; }
.crumb a { color: var(--muted); }
@media (max-width: 700px) { .head { padding: 16px 0 18px; } h1 { font-size: 34px; } .lede { font-size: 17px; } h2 { font-size: 23px; } }

/* two-column top */
.grid2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* the tool panel */
.tool { border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0 20px; }
.est-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.fld { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld > span, .fld legend { font-size: 15px; font-weight: 700; padding: 0; }
.fld-wide { grid-column: 1 / -1; }
select, input { font: 17px/1.2 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; min-height: 46px; padding: 8px 10px; width: 100%; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.fld select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
.seg { display: flex; flex-wrap: wrap; grid-column: 1 / -1; }
.seg legend { width: 100%; margin-bottom: 4px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; border: 2px solid var(--ink); padding: 11px 10px; font-weight: 700; cursor: pointer; min-height: 46px; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.est-out { padding-top: 14px; }
.est-out .k { margin: 0; }
.est-label { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.big { font-size: clamp(40px, 7vw, 68px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 8px 0 12px; }
.note-diy { margin: -4px 0 12px; font-weight: 700; }
.est-rows { width: 100%; border-collapse: collapse; font-size: 16px; }
.est-rows th, .est-rows td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--line); }
.est-rows th { font-weight: 400; color: var(--ink-2); width: 50%; }
.est-rows td { font-weight: 700; }
.est-rows td .k { font-weight: 400; }
.hint { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

/* facts */
.facts { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; border-top: 2px solid var(--ink); }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; padding-right: 12px; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.scale { display: inline-flex; gap: 3px; vertical-align: -2px; }
.scale span { width: 14px; height: 14px; border: 2px solid var(--ink); }
.scale span.on { background: var(--ink); }

/* parts vs labor bar */
.split { height: 14px; border: 2px solid var(--ink); background: #fff; margin: 4px 0 8px; position: relative; }
.split-p { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }

/* content */
.copy { max-width: 760px; }
.copy p, .copy li { color: var(--ink-2); }
.block { margin: 56px 0 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.block ul, .block ol, .copy ul, .copy ol { padding-left: 22px; }
.block li { margin: 5px 0; }
.rows { list-style: none; padding: 0 !important; margin: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rows li a { font-weight: 700; }
.rows li .k { text-align: right; }
.rows-big li { display: grid; gap: 2px; justify-content: stretch; padding: 12px 0; }
.rows-big li a { font-size: 20px; letter-spacing: -.01em; }
.rows-big li .k { text-align: left; }
.grp { border-top: 6px solid var(--ink); padding-top: 8px; margin: 0 0 36px; }
.grp h2 { margin-bottom: 4px; }
@media (min-width: 900px) { #all { columns: 2; column-gap: 48px; } .grp { break-inside: avoid; } }
.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; }
.faq dd p { margin: 0; }
.src { font-size: 15px; }
.src li { margin: 8px 0; }
.ref { font-size: 13px; color: var(--muted); text-decoration: none; margin-left: 2px; }
.ref:hover { text-decoration: underline; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 8px 0; }
.block th, .block td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink) !important; font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; }
table.num td { white-space: nowrap; }
.wrapt { white-space: normal; display: inline-block; font-weight: 400; max-width: 34ch; }
.nw { white-space: nowrap; }
.states summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
@media (max-width: 700px) {
  #by-type table thead { display: none; }
  #by-type table, #by-type tbody, #by-type tr, #by-type th, #by-type td { display: block; width: 100%; }
  #by-type tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  #by-type th, #by-type td { border: 0; padding: 2px 0; white-space: normal; }
  #by-type td:nth-of-type(1)::before { content: "Hired: "; color: var(--muted); }
  #by-type td:nth-of-type(2)::before { content: "Parts retail: "; color: var(--muted); }
  #by-type td:nth-of-type(3)::before { content: "Labor: "; color: var(--muted); }
  #by-type td:nth-of-type(4)::before { content: "DIY parts: "; color: var(--muted); }
}

/* footer */
.foot { border-top: 6px solid var(--ink); margin-top: 80px; padding: 28px 0 36px; font-size: 15px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.foot-about { grid-column: 1 / -1; }
.foot-about p { margin: 0 0 8px; max-width: 70ch; }
.foot h2 { font-size: 15px; color: var(--ink); margin: 0 0 8px; letter-spacing: 0; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--ink-2); }
.foot-brand { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.legal { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* category hubs */
.hubnav { display: flex; flex-wrap: wrap; gap: 0; margin: 22px 0 0; border-top: 2px solid var(--ink); }
.hubnav a { text-decoration: none; font-weight: 700; padding: 10px 16px 10px 0; margin-right: 16px; border-bottom: 1px solid var(--line); }
.hubnav a:hover { text-decoration: underline; }
.grp h2 a { text-decoration: none; }
.grp h2 a:hover { text-decoration: underline; }
.foot-hubs { grid-column: 1 / -1; }
.foot-hubs ul { columns: 4; column-gap: 24px; }
@media (max-width: 700px) { .foot-hubs ul { columns: 2; } }
.hub-t th a { font-weight: 700; }
@media (max-width: 700px) {
  .hub-t thead { display: none; }
  .hub-t, .hub-t tbody, .hub-t tr, .hub-t th, .hub-t td { display: block; width: 100%; }
  .hub-t tr { border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .hub-t th, .hub-t td { border: 0 !important; padding: 2px 0 !important; white-space: normal; }
  .hub-t td:nth-of-type(1)::before { content: "Hired: "; color: var(--muted); }
  .hub-t td:nth-of-type(2)::before { content: "DIY parts: "; color: var(--muted); }
  .hub-t td:nth-of-type(3) { color: var(--muted); font-size: 15px; }
}

/* repair-or-replace check */
.rr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border-top: 6px solid var(--ink); padding-top: 14px; }
.rr-out { font-size: 19px; border-bottom: 2px solid var(--ink); padding: 14px 0; margin: 14px 0 10px; }
.rr-out strong { font-size: 26px; letter-spacing: -.02em; display: block; margin-bottom: 4px; }
@media (max-width: 420px) { .rr-form { grid-template-columns: 1fr; } }
.chk { display: flex; gap: 10px; align-items: center; font-size: 16px; cursor: pointer; }
.chk input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: #000; flex: none; }
.chk span { font-weight: 400 !important; }
