* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: white; font: 1.0625rem/1.55 var(--font); }
a { color: var(--red-ink); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -8rem; background: white; padding: .6rem; }
.skip:focus { top: .4rem; }
.masthead { border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); }
.masthead nav, main { width: min(100% - 2.5rem, 42rem); margin: 0 auto; }
.masthead nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.masthead img { display: block; width: 6rem; height: auto; }
.library-link { color: var(--steel); font-size: .9375rem; font-weight: 600; }
main { padding: clamp(1.75rem, 5vw, 3.25rem) 0 3rem; }
h1, h2 { text-wrap: balance; line-height: 1.12; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -.048em; }
h2 { margin: 0 0 .5rem; font-size: 1.45rem; letter-spacing: -.025em; }
p { margin: 0; }
.intro { border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; }
.summary { margin-top: 1.25rem; font-size: clamp(1.125rem, 2.8vw, 1.3rem); line-height: 1.5; }
.intro-question { margin-top: .85rem; padding: .15rem 0 .15rem .8rem; border-left: 3px solid var(--red); font-size: 1rem; line-height: 1.4; }
.intro-question strong { display: block; margin-bottom: .15rem; }
.share { display: flex; align-items: center; gap: .5rem .9rem; flex-wrap: wrap; margin-top: 1rem; }
button { display: inline-flex; align-items: center; gap: .7rem; padding: .65rem 1rem; min-height: 44px; border: 0; border-radius: 5px; color: white; background: var(--ink); font: 650 .9375rem/1.3 var(--font); cursor: pointer; }
button:hover { background: var(--red-ink); }
.copy-icon { position: relative; width: .88rem; height: 1rem; }
.copy-icon::before, .copy-icon::after { content: ""; position: absolute; width: .55rem; height: .68rem; border: 1.5px solid currentColor; border-radius: 2px; }
.copy-icon::after { inset: 3px auto auto 3px; background: var(--ink); }
button:hover .copy-icon::after { background: var(--red-ink); }
#copy-status, #manual-copy { font-size: .9375rem; }
#manual-copy { width: 100%; font-weight: 600; }
input { display: block; width: 100%; padding: .6rem; margin-top: .3rem; font: inherit; }
article > section { margin-top: 1.45rem; }
.case { padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.case a { display: inline-block; margin-top: .6rem; font-size: .975rem; font-weight: 600; }
.case-illustration { margin: .85rem 0 .65rem; }
.case-illustration img { display: block; width: 100%; max-width: 30rem; height: auto; border-radius: 6px; background: #f2f6f5; }
.case-illustration figcaption, .case-illustration + p { margin-top: .65rem; font-size: 1rem; line-height: 1.45; }
.exhaust-layout { max-width: 32rem; margin: .9rem 0; padding: .65rem .6rem .8rem; border-radius: 6px; background: #f2f6f5; }
.exhaust-flow { display: flex; align-items: center; gap: .4rem; color: #344c51; font-size: .9375rem; font-weight: 600; }
.exhaust-flow span { font-size: 1.35em; line-height: 1; }
.exhaust-layout img { display: block; width: 100%; height: auto; }
.exhaust-layout ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
.exhaust-layout li { text-align: center; font-size: 1rem; font-weight: 650; line-height: 1.2; }
.case-findings { font-size: 1rem; line-height: 1.45; }
.case-findings p + p { margin-top: .55rem; }
.sensor-comparison { max-width: 32rem; margin: .75rem 0 .85rem; }
.sensor-comparison figcaption { margin-bottom: .55rem; font-size: 1rem; line-height: 1.4; }
.sensor-comparison dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; column-gap: .5rem; }
.sensor-comparison dl > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; padding: .6rem .65rem; background: #f2f6f5; border-radius: 5px; }
.sensor-comparison dt { font-weight: 650; line-height: 1.25; }
.sensor-comparison dd { margin: 0; font-size: 1rem; line-height: 1.35; }
.sensor-comparison svg { display: block; width: 100%; height: auto; margin: .35rem 0; border-block: 1px solid #c4d4d3; }
.diagnosis { margin: .85rem 0 0; color: var(--ink); }
.scan { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: #f3f5f5; border-radius: 6px; }
.part-icon { display: block; width: 5rem; height: auto; }
.scan .part-icon { flex: 0 0 4.5rem; }
.scan p, .findings p { font-size: 1rem; line-height: 1.4; }
.diagnosis h3 { margin: 0; text-align: center; font-size: 1.1rem; line-height: 1.4; }
.diagnosis h3::before { content: ""; display: block; width: 2px; height: .85rem; margin: 0 auto .2rem; background: #88949a; }
.findings { list-style: none; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 1rem 0 0; }
.findings::before { content: ""; position: absolute; inset: .55rem 25% auto; height: .45rem; border: solid #88949a; border-width: 2px 2px 0; border-radius: 4px 4px 0 0; }
.findings::after { content: ""; position: absolute; top: 0; left: calc(50% - 1px); height: .6rem; border-left: 2px solid #88949a; }
.findings li { padding: .5rem clamp(.5rem, 2vw, 1rem) .8rem; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.findings .part-icon { margin: 0 auto .2rem; }
.findings strong { display: block; font-size: 1.05rem; line-height: 1.3; margin-bottom: .3rem; }
.diagnosis figcaption { margin-top: .75rem; padding-left: .75rem; border-left: 3px solid var(--red); font-weight: 600; }
.follow-up { margin-top: 1.3rem; border-block: 1px solid var(--line); }
.follow-up summary { padding: .7rem 0; font-weight: 650; cursor: pointer; }
.follow-up p { padding-bottom: 1rem; }
.question { margin-bottom: .5rem; font-size: 1.15rem; font-weight: 600; }
.related-card { margin-top: .75rem; font-size: 1rem; }
.pad-photo { margin: .75rem 0 0; }
.pad-frame { position: relative; }
.pad-frame img { width: 100%; height: auto; display: block; border-radius: 5px; }
.pad-frame span { position: absolute; left: .5rem; background: #1c282c; color: white; padding: .15rem .55rem; border-radius: 3px; font-size: 1rem; font-weight: 650; }
.new-pads { top: 3%; }
.used-pads { top: 53%; }
.pad-photo figcaption { margin-top: .6rem; font-size: 1rem; line-height: 1.45; }
.pad-photo small { display: block; margin-top: .45rem; color: var(--steel); font-size: .875rem; }
.rotor-example { border: 1px solid var(--line); border-radius: 6px; margin-top: .8rem; overflow: hidden; font-size: 1rem; line-height: 1.45; }
.rotor-gauge { margin: 0; padding: .75rem 1rem; background: #f2f6f5; }
.rotor-gauge img { display: block; width: 100%; max-width: 25rem; height: auto; margin: 0 auto .65rem; }
.rotor-readings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .9rem 1rem .65rem; }
.rotor-readings > div { display: flex; flex-direction: column; gap: .2rem; }
.rotor-readings > div + div { border-left: 1px solid var(--line); padding-left: .85rem; }
.rotor-readings dt { font-size: .9375rem; line-height: 1.3; }
.rotor-readings a { color: inherit; }
.rotor-readings dd { order: -1; margin: 0; font-size: clamp(1.4rem, 5vw, 1.85rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.12; white-space: nowrap; }
.rotor-readings > div:first-child dd { color: #843b2a; }
.rotor-result { padding: 0 1rem .9rem; }
.rotor-inspection + .takeaway { margin-top: .8rem; padding-left: .8rem; border-left: 3px solid var(--red); }
.rotor-inspection + .takeaway h2 { font-size: 1rem; letter-spacing: 0; line-height: 1.35; margin-bottom: .2rem; }
.rotor-inspection + .takeaway .question { margin: 0; }
.pad-inspection > p { font-size: 1rem; line-height: 1.45; }
@media (min-width: 38em) {
  .rotor-gauge { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 1.1rem; }
  .rotor-gauge img { margin: 0; }
  .pad-photo { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 1.1rem; }
  .pad-photo figcaption { margin: 0; }
}
.photo-switch { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin: .8rem 0 0; padding: 0; border: 0; }
.photo-switch .photo-choice { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; clip-path: inset(50%); overflow: hidden; }
.photo-switch label { display: grid; place-items: center; min-height: 44px; padding: .45rem .3rem; border: 1px solid #718086; background: #f5f7f7; color: var(--ink); font-weight: 650; font-size: 1rem; cursor: pointer; }
.photo-switch label:first-of-type { border-radius: 5px 0 0 5px; }
.photo-switch label:last-of-type { border-radius: 0 5px 5px 0; }
.photo-choice:checked + label { border-color: var(--ink); background: var(--ink); color: white; }
.photo-choice:focus-visible + label { position: relative; z-index: 1; outline: 3px solid var(--red-ink); outline-offset: 2px; }
.repair-view { grid-column: 1 / -1; margin: .6rem 0 0; }
@media screen {
  #repair-photo-1:checked ~ #repair-photo-2-view,
  #repair-photo-2:checked ~ #repair-photo-1-view { display: none; }
}
.repair-frame { position: relative; }
.repair-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.repair-labor { padding: .6rem .8rem; border-left: 3px solid var(--red); background: #f4f6f6; font-size: 1rem; line-height: 1.4; }
.repair-labor strong { display: block; }
/* Crop the original Fusion reassembly frame around the pump and its chain drive. */
.fusion-chain-detail { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; }
.fusion-chain-detail img { position: absolute; width: 240%; max-width: none; left: -70%; top: -64%; }
.part-pin, .key-number { display: inline-grid; place-items: center; border-radius: 50%; color: white; background: #244950; font: 700 1rem/1 var(--font); }
.part-pin { position: absolute; width: 1.5em; height: 1.5em; transform: translate(-50%, -50%); border: 2px solid white; box-shadow: 0 0 0 1px #27393b; }
.pin-main-chain { left: 42%; top: 88%; }
.pin-left-guide { left: 39%; top: 59%; }
.pin-right-guide { left: 76%; top: 62%; }
.pin-tensioner { left: 24%; top: 70%; }
.photo-key { display: grid; gap: .4rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.photo-key li { display: grid; grid-template-columns: 1.5rem 1fr; align-items: baseline; gap: .5rem; font-size: 1rem; }
.photo-key strong { display: block; }
.key-number { width: 1.45rem; height: 1.45rem; }
/* Both Fusion shots share the same camera angle. The leader ends at the pump sprocket. */
.fusion-pump-marker { position: absolute; top: 42.2%; left: 3%; width: 47.7%; transform: translateY(-50%); line-height: 1.2; }
.fusion-chain-detail .fusion-pump-marker { top: 33%; width: 50%; }
.fusion-pump-marker::before { position: absolute; content: ""; left: 0; right: 6%; top: 50%; height: 2px; background: white; box-shadow: 0 1px 1px #171d21; }
.fusion-pump-marker::after { position: absolute; content: ""; right: 0; top: 50%; width: 12%; aspect-ratio: 1; transform: translate(50%, -50%); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #171d21; }
.fusion-pump-marker b { position: relative; display: inline-block; padding: .25rem .45rem; border-radius: 3px; background: #1f282d; color: white; font-size: .94rem; }
.repair-view figcaption { margin: .55rem 0 0; padding-left: .65rem; border-left: 3px solid var(--line); font-size: 1rem; line-height: 1.45; }
.repair-scope { margin: .8rem 0 0; }
.repair-scope > div { border-left: 3px solid #536770; background: #f2f5f6; padding: .65rem .9rem; }
.repair-scope > div + div { border-color: #708673; background: #f1f5f1; margin-top: .55rem; }
.repair-scope dt { font-weight: 700; }
.repair-scope dd { margin: .12rem 0 0; font-size: 1rem; line-height: 1.45; }
.visit-timeline { list-style: none; margin: .85rem 0 0; padding: 0; }
.visit-timeline li { position: relative; padding: 0 0 1rem 1.5rem; }
.visit-timeline li:not(:last-child)::before { content: ""; position: absolute; left: .32rem; top: .8rem; bottom: -.8rem; border-left: 2px solid #8b999f; }
.visit-timeline li::after { content: ""; position: absolute; top: .48rem; left: 0; width: .75rem; height: .75rem; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.visit-timeline li:last-child { padding-bottom: 0; }
.visit-timeline li:last-child::after { background: var(--ink); }
.visit-timeline h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.visit-reading { margin-bottom: .25rem; }
.visit-reading small { color: #475258; font-size: .875rem; white-space: nowrap; }
.visit-reading code { font-family: ui-monospace, Consolas, monospace; }
.visit-timeline p { font-size: 1rem; line-height: 1.45; }
.outcomes-heading { margin: 1rem 0 0; text-align: center; font-size: 1.1rem; line-height: 1.4; }
.visit-example .findings { gap: .55rem; }
.visit-example .findings .part-icon { width: 4rem; max-width: 100%; }
.visit-example .findings li { padding-inline: .55rem; }
@media (max-width: 22.5em) {
  .findings.stack-on-phone { grid-template-columns: 1fr; padding-top: .5rem; }
  .findings.stack-on-phone::before, .findings.stack-on-phone::after { display: none; }
  .findings.stack-on-phone li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .15rem .6rem; align-items: start; padding: .7rem; text-align: left; }
  .findings.stack-on-phone .part-icon { grid-row: span 2; width: 3rem; margin: 0; }
  .findings.stack-on-phone strong { margin: 0; }
}
.card-list { margin: 1.8rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.card-list a { display: block; padding: 1rem 0; font-weight: 650; border-bottom: 1px solid var(--line); }
.library-group { margin-top: 2rem; }
.library-group .card-list { margin-top: .75rem; }
.estimate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.estimate-cards li { background: #f2f6f5; border-radius: 5px; padding: .75rem 1rem; }
.estimate-cards a { display: flex; align-items: center; min-height: 44px; font-weight: 650; line-height: 1.3; }
.estimate-cards p { margin: .35rem 0 0; font-size: 1rem; }
.estimate { border: 1px solid #c7cdce; border-top: 4px solid var(--ink); border-radius: 4px; }
.estimate-header, .estimate-item, .estimate-total { padding: 1rem clamp(.85rem, 3vw, 1.5rem); }
.estimate-header { background: #f2f4f4; border-bottom: 1px solid #c7cdce; }
.estimate-heading-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.estimate-heading-line h2 { margin: 0; }
.estimate-heading-line span, .price { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.estimate-heading-line span { color: #475258; font-size: .9rem; }
.estimate-header p { margin-top: .6rem; font-size: 1rem; }
.estimate-header strong { display: inline-block; }
.estimate-items { list-style: none; padding: 0; margin: 0; }
.estimate-item + .estimate-item { border-top: 1px dashed #c7cdce; }
.estimate-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .5rem; }
.estimate-line h3 { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.price { font-size: 1.05rem; font-weight: 650; }
.finding { margin-top: .3rem; font-size: 1rem; line-height: 1.45; }
.estimate-priority { display: inline-block; padding: .1rem .55rem; margin-bottom: .4rem; border-inline-start: 3px solid var(--priority-color); background: var(--priority-tint); color: var(--priority-color); font-size: .94rem; line-height: 1.45; }
.priority-now { --priority-color: #922e24; --priority-tint: #fcf2ef; }
.priority-soon { --priority-color: #75530c; --priority-tint: #fbf6e8; }
.priority-later { --priority-color: #265b51; --priority-tint: #eef6f2; }
.tire-comparison, .delay-cost, .mileage-track { margin: .65rem 0 0; border-radius: 4px; background: #f3f5f5; }
.tire-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .55rem .25rem; }
.tire-comparison > div { display: grid; justify-items: center; align-content: start; text-align: center; }
.tire-comparison > div + div { border-inline-start: 1px solid #c7cdce; }
.tire-comparison svg { display: block; width: 6.8rem; max-width: 100%; }
.tire-comparison span, .cost-equation dt, .mileage-track dt { font-size: .9375rem; line-height: 1.35; }
.tire-comparison span { margin-top: .15rem; font-weight: 600; }
.delay-cost { padding: .7rem .85rem; }
.delay-cost figcaption { font-size: 1rem; font-weight: 650; }
.cost-equation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin: .5rem 0; }
.cost-equation dt { overflow-wrap: anywhere; }
.cost-equation dd, .mileage-track dd { margin: 0; font: 650 1.05rem/1.4 ui-monospace, Consolas, monospace; }
.cost-equation dd span { color: #53636a; font-weight: 400; }
.delay-cost p { border-top: 1px solid #c7cdce; padding-top: .4rem; color: #475258; font-size: .9375rem; line-height: 1.4; }
.mileage-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; padding: .6rem .85rem; position: relative; }
.mileage-track::before { content: ""; position: absolute; top: 1rem; inset-inline: 1.1rem; height: 2px; background: #68837b; }
.mileage-track > div { position: relative; }
.mileage-track > div:last-child { text-align: end; }
.mileage-track dt::before { display: block; content: ""; width: .52rem; height: .52rem; margin: .15rem 0 .3rem; border: 2px solid #265b51; border-radius: 50%; background: #265b51; }
.mileage-track > div:last-child dt::before { margin-left: auto; background: white; }
@media (max-width: 24em) {
  .mileage-track dd { font-size: .98rem; }
}
.estimate-total { background: #f7f8f8; border-top: 2px solid var(--ink); }
.estimate-total p { margin-top: .25rem; color: #475258; font-size: .9375rem; }
@media print {
  .photo-switch > label, .photo-switch > input { display: none; }
  .repair-view { break-inside: avoid; }
  .share, .skip { display: none; }
  .masthead nav, main { width: 100%; }
  main { padding: 1rem 0; }
  section { break-inside: avoid; }
  .estimate { break-inside: auto; }
  .estimate-header { break-after: avoid; }
  .estimate-item { break-inside: avoid; }
}
