.bike-cost { --cost-stroke: 3px; }
.bike-cost .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bike-cost__intro { margin: 28px 0 32px; max-width: 920px; }
.bike-cost h1 { font-size: clamp(36px, 5.3vw, 66px); line-height: 1.02; margin: 0 0 20px; }
.bike-cost .lead { max-width: 650px; }
.bike-cost label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.bike-cost .input { width: 100%; min-width: 0; font-size: 16px; padding: 10px 12px; border: 2px solid #000; border-radius: 8px; height: 44px; }
.bike-cost__context { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(100px, .65fr) minmax(150px, 1fr); gap: 20px; padding-bottom: 24px; border-bottom: 3px solid #000; }
.bike-cost__garage { padding: 22px 0; margin-bottom: 22px; border-bottom: 3px solid #000; }
.bike-cost__garage > label { max-width: 500px; }
.bike-cost__garage-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.bike-cost__garage p { margin: 12px 0; }
.bike-cost__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.bike-cost__section-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bike-cost h2 { margin: 0; font-size: 25px; }
.bike-cost__section-heading button { border: 0; background: transparent; cursor: pointer; padding: 8px 0; }
.bike-cost__row { border: 0; border-top: 2px solid #000; padding: 18px 0; margin: 0; min-width: 0; }
.bike-cost__row-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.bike-cost__row-heading .bike-cost__name { flex: 1; border-color: transparent; font-weight: 900; padding-left: 0; }
.bike-cost__name:focus { border-color: #000; padding-left: 10px; }
.bike-cost__toggle input { accent-color: #FF4A00; width: 22px; height: 22px; cursor: pointer; }
.bike-cost__remove { background: none; border: 2px solid #000; border-radius: 8px; width: 44px; height: 44px; font-size: 24px; cursor: pointer; flex-shrink: 0; }
.bike-cost__row-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bike-cost [hidden] { display: none !important; }
.bike-cost__line-total { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 13px; }
.bike-cost__line-total output { font-size: 16px; font-weight: 900; white-space: nowrap; }
.bike-cost__row.is-disabled { opacity: .55; }
.bike-cost__result { position: sticky; top: 100px; scroll-margin-top: 110px; border: 4px solid #000; border-radius: 16px; box-shadow: 7px 7px 0 #000; padding: 24px 20px; }
.bike-cost__mobile-result { display: none; }
.bike-cost__result-label { font-size: 14px; font-weight: 900; }
.bike-cost__total { display: block; font-size: clamp(28px, 3vw, 38px); line-height: 1.25; font-weight: 900; margin: 10px 0 24px; overflow-wrap: anywhere; }
.bike-cost__metrics { margin: 0; font-size: 14px; }
.bike-cost__metrics > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; border-top: 1px solid #000; padding: 12px 0; }
.bike-cost__metrics dd { margin: 0; font-weight: 900; max-width: 100%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bike-cost__method { font-size: 14px; line-height: 1.5; border-top: 3px solid #000; padding-top: 16px; }
.bike-cost .hint { font-size: 13px; line-height: 1.5; color: rgba(0,0,0,.75); }
.bike-cost__result .button { width: 100%; margin-top: 12px; padding: 13px 12px; font-size: 13px; }
.bike-cost [data-cost-status] { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.bike-cost .button:disabled { opacity: .45; cursor: not-allowed; }
.bike-cost__explanation { border-top: 3px solid #000; margin-top: 40px; padding-top: 20px; max-width: 850px; }
.bike-cost__explanation summary { font-size: 20px; font-weight: 900; cursor: pointer; }
.bike-cost__explanation p { line-height: 1.6; }
.bike-cost input, .bike-cost output { font-variant-numeric: tabular-nums; }
.bike-cost :focus-visible { outline: 3px solid #FF4A00; outline-offset: 3px; }
@media (max-width: 1000px) {
  .bike-cost__layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; }
  .bike-cost__row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bike-cost { padding-bottom: 100px; }
  .bike-cost__mobile-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 15; background: #000; color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .bike-cost__mobile-result span { display: block; font-size: 11px; }
  .bike-cost__mobile-result > div { min-width: 0; }
  .bike-cost__mobile-result output { display: block; font-weight: 900; font-size: 23px; overflow-wrap: anywhere; }
  .bike-cost__mobile-result a { color: #fff; font-size: 13px; font-weight: 800; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; }
  .bike-cost__layout { display: flex; flex-direction: column; }
  .bike-cost__editor, .bike-cost__result { width: 100%; }
  .bike-cost__result { position: static; box-sizing: border-box; }
  .bike-cost__context { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 16px; }
  .bike-cost__context > label:first-child { grid-column: 1 / -1; }
  .bike-cost__intro { margin-top: 22px; }
  .bike-cost__total { font-size: 36px; }
}
