/* Car Repair Range. Swiss/International style, like a printed workshop price sheet.
   Light only. Black on white, square corners, 2px/6px black rules, Helvetica set large.
   Colour has exactly two meanings: red #e30613 = "Don't drive it" (safety), yellow #ffc400 = warning / outside the range.
   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;
  --warn: #ffc400; --stop: #e30613;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::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(--warn); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.k { color: var(--muted); font-size: 15px; }
.mt-s { margin-top: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
code { font-family: var(--mono); font-size: .88em; background: var(--tint); padding: 1px 4px; }
[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; }
.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); }
.topnav a.nav-go { background: var(--ink); color: #fff; margin-left: 8px; font-weight: 700; }
.topnav a.nav-go.cur { box-shadow: none; }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 0; padding-top: 6px; }
  .topnav { margin: 0 -12px; width: calc(100% + 24px); overflow-x: auto; }
  .topnav a { padding: 10px 9px; font-size: 15px; }
  .hide-s { display: none; }
  .topnav a.nav-go { margin-left: auto; }
}

/* 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: 18ch; }
.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; } }

/* two-column top: tool + side */
.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; }
.tool-h { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 18px 0 8px; }
.tool-h:first-child { margin-top: 4px; }
.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; 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(--warn); outline-offset: 2px; }
.est-out { padding-top: 14px; }
.est-out .k { margin: 0; }
.big { font-size: clamp(44px, 7vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px; }
.unit { margin: 0 0 12px; color: var(--ink-2); }
.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: 46%; }
.est-rows td { font-weight: 700; }
.est-rows td .k { font-weight: 400; }
.quote { border-top: 2px solid var(--ink); margin-top: 16px; padding-top: 14px; }
.q-row { display: flex; align-items: stretch; max-width: 260px; margin-top: 6px; }
.q-cur { border: 2px solid var(--ink); border-right: 0; padding: 0 12px; display: flex; align-items: center; font-weight: 700; }
.qbar { position: relative; height: 30px; margin: 26px 0 8px; border-bottom: 2px solid var(--ink); }
.qrange { position: absolute; bottom: 0; height: 14px; background: var(--ink); }
.qmark { position: absolute; bottom: -8px; width: 3px; height: 30px; background: var(--ink); transform: translateX(-1px); }
.qmark-l { position: absolute; bottom: 32px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 700; }
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0 4px; }
.vh { display: block; font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.vt small { display: block; font-size: 16px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.dot { width: 16px; height: 16px; border: 2px solid var(--ink); flex: none; margin-top: 6px; background: #fff; }
.dot.good { background: var(--ink); }
.dot.warn { background: var(--warn); }
.hint { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* safety: the only red on the site */
.stop { border: 0; border-left: 6px solid var(--stop); padding: 4px 0 4px 16px; margin: 0 0 22px; }
.stop-h { color: var(--stop); font-weight: 700; font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.stop p { margin: 0; }
.urg { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.urg .sq { width: 12px; height: 12px; border: 2px solid var(--ink); display: inline-block; }
.urg-stop { color: var(--stop); }
.urg-stop .sq { background: var(--stop); border-color: var(--stop); }
.urg-soon .sq { background: var(--warn); }
.urg-watch .sq { background: #fff; }

/* facts list */
.facts { margin: 0; display: grid; grid-template-columns: 9.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; }
.facts-tool { border-top: 0; }
.code-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.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); }

/* wizard */
.wiz-steps { list-style: none; margin: 4px 0 0; padding: 0; }
.wiz-steps li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.wq { color: var(--muted); font-size: 15px; }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; font: 700 16px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wiz-q { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin: 16px 0 12px; line-height: 1.2; }
.wiz-q:focus { outline: none; }
.wiz-opts { display: grid; gap: 8px; }
.wiz-res .cause { border-top: 2px solid var(--ink); padding-top: 4px; margin-bottom: 14px; }

/* buttons */
.btn { appearance: none; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 17px/1.2 var(--sans); text-decoration: none; text-align: left;
       padding: 11px 16px; border-radius: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; touch-action: manipulation; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-go { background: var(--ink); color: #fff; }
.btn-go:hover { background: #fff; color: var(--ink); }
.btn-quiet { border-color: var(--line-2); font-weight: 400; }

/* 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; }
.also { font-size: 16px; }
.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: 14px 0; }
.rows-big li a { font-size: 21px; letter-spacing: -.01em; }
.rows-big li .k { text-align: left; }
.causes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 800px) { .causes { grid-template-columns: minmax(0, 1fr); } }
.cause { border-top: 1px solid var(--ink); padding: 4px 0 16px; }
.cause h3 { margin-top: 12px; }
.cause-meta { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; }
.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; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 8px 0; }
.block th, .block td, .list th, .list 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; }
td p { margin: 0; }
.home3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.home3 section { border-top: 6px solid var(--ink); padding-top: 8px; }
.home3 h2 a { text-decoration: none; }
@media (max-width: 900px) { .home3 { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.band p { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 19px; }

/* 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: 1.4fr 1fr .8fr 1.6fr; gap: 24px; }
.foot-about p { margin: 0 0 8px; max-width: 40ch; }
.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 .cols2 { columns: 2; column-gap: 16px; }
.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; } .foot-about { grid-column: 1 / -1; } }
.est-label { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.nw { white-space: nowrap; }
