.rc-section { padding: 48px 0; border-top: 1px solid var(--dk-ln-d3d3d3, #d3d3d3); background: var(--dk-bg-fcfcfc, #fcfcfc); color: var(--dk-fg-171717, #171717); scroll-margin-top: 180px; }
.rc-section h2 { margin: 0 0 24px; font-size: clamp(27px,3.2vw,42px); letter-spacing: -.035em; line-height: 1.14; }
.rc-section p { max-width: 85ch; line-height: 1.65; }
.rc-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dk-fg-555555, #555); margin: 0 0 12px; }
.rc-lede { font-size: clamp(19px,2vw,24px); font-weight: 650; }
.rc-note, .rc-sources { font-size: 13px; color: var(--dk-fg-555555, #555); }
.rc-label { font-size: 12px; letter-spacing: .03em; color: var(--dk-fg-555555, #555); }
.rc-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.rc-links a { min-height: 44px; display: inline-flex; align-items: center; }
.rc-section a { text-decoration: underline; text-underline-offset: 4px; }
.rc-plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 16px; margin: 24px 0; align-items: start; }
.rc-plan { padding: 24px; border: 1px solid var(--dk-ln-cccccc, #ccc); border-radius: 10px; min-width: 0; }
.rc-plan h3 { margin: 0; font-size: 22px; }
.rc-plan p:last-child { margin-bottom: 0; }
.rc-detail { border-top: 1px solid var(--dk-ln-cccccc, #ccc); margin: 16px 0; padding: 8px 0; scroll-margin-top: 180px; }
.rc-detail summary { padding: 14px 0; min-height: 44px; cursor: pointer; font-weight: 600; line-height: 1.5; }
.rc-detail[open] { padding-bottom: 16px; }
.rc-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 16px 32px; margin: 24px 0; }
.rc-controls label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.rc-controls input { grid-column: 1/-1; width: 100%; min-height: 44px; margin: 0; accent-color: #9b3000; }
.rc-controls output { font-variant-numeric: tabular-nums; font-weight: 700; padding: 6px; background: var(--dk-bg-eeeeee, #eee); }
.rc-result { font-size: 21px; font-weight: 650; }
.rc-lab [role="status"] { position: sticky; top: 166px; z-index: 2; padding: 12px 16px; background: var(--dk-bg-fcfcfc, #fcfcfc); border: 1px solid #bbb; border-left: 4px solid #9b3000; border-radius: 4px; font-size: 17px; }
.rc-stint-row { margin: 20px 0; }
.rc-stints { display: flex; gap: 3px; margin: 10px 0; }
.rc-tyre { flex-basis: 0; padding: 12px 3px; text-align: center; border: 1px solid #777; font-size: 13px; border-radius: 4px; }
.rc-tyre-M { background: var(--dk-bg-ffe697, #ffe697); color: var(--dk-fg-171717, #171717); }
.rc-tyre-H { background: var(--dk-bg-ffffff, #fff); color: var(--dk-fg-171717, #171717); }
.rc-chart { display: block; width: 100%; max-width: 800px; margin: 20px 0; background: var(--dk-bg-f3f3f3, #f3f3f3); border-radius: 6px; }
.rc-chart text { font: 12px sans-serif; fill: var(--dk-fg-333333, #333); }
.rc-button { min-height: 44px; padding: 10px 16px; border: 1px solid #777; background: var(--dk-bg-ffffff, #fff); color: var(--dk-fg-171717, #171717); font: inherit; border-radius: 6px; cursor: pointer; }
.rc-cut, .rc-next-condition { padding: 20px; border-left: 4px solid #9b3000; background: var(--dk-bg-f2f2f2, #f2f2f2); }
.rc-cut h4 { margin: 0; font-size: 20px; }
.rc-pair { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.rc-pair label { display: grid; gap: 8px; flex: 1 1 220px; }
.rc-pair select { min-height: 44px; width: 100%; min-width: 0; font: inherit; padding: 8px; border: 1px solid #777; border-radius: 4px; background: var(--dk-bg-ffffff, #fff); color: var(--dk-fg-171717, #171717); }
.rc-impact-number { font-size: 28px; font-weight: 700; margin: 14px 0 0; }
.rc-section :focus-visible { outline: 3px solid #174ea6; outline-offset: 4px; }
[data-my-summary] .rc-section { margin-top: 20px; padding: 24px 0; }
[data-my-summary] .rc-section .wrap { width: 100%; padding: 0; }
[data-my-summary] > details > summary { cursor: pointer; min-height: 44px; padding: 14px 0; font-weight: 600; }
@media(max-width:480px) { .rc-section { padding: 32px 0; } .rc-plan { padding: 18px; } .rc-stints { flex-wrap: wrap; } .rc-tyre { min-width: 60px; font-size: 12px; } .rc-lab [role="status"] { top: 108px; } }
/* The strategy board leads with compound routes; prose stays in disclosures. */
.rc-strategy-intro { display:grid; grid-template-columns:minmax(220px,1fr) 2fr; gap:32px; align-items:start; margin-bottom:28px; }
.rc-strategy-intro p { margin:0; }
.rc-strategy-board { --board:#1c1d1d; background:var(--board); color:#fafafa; padding:32px 38px 22px; border-radius:14px; overflow:hidden; }
.rc-strategy-board h3 { font-size:clamp(24px,3vw,36px); margin:8px 0; letter-spacing:-.025em; }
.rc-board-eyebrow { color:#ff914d; letter-spacing:.13em; font-size:11px; font-weight:700; margin:0; }
.rc-board-note { color:#bbb; font-size:13px; margin:0 0 28px; }
.rc-board-row { display:grid; grid-template-columns:210px minmax(0,1fr); gap:40px; border-top:1px solid #414242; padding:26px 0 12px; }
.rc-board-row-label { display:flex; flex-direction:column; gap:8px; padding-top:6px; }
.rc-board-row-label strong { font-size:18px; }
.rc-board-row-label > span { font-size:12px; color:#bbb; max-width:25ch; }
.rc-timeline { height:108px; position:relative; margin:0 22px; min-width:0; }
.rc-segment { position:absolute; top:58px; border-top:4px solid var(--compound); }
.rc-compound-S { --compound:#ff5363; }
.rc-compound-M { --compound:#efc83c; }
.rc-compound-H { --compound:#eee; }
.rc-wheel { width:32px; height:32px; display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; border:3px solid var(--compound); border-radius:50%; color:var(--compound); background:#242626; font-size:11px; font-weight:800; box-shadow:0 0 0 4px #303232,inset 0 0 0 2px #303232; line-height:1; }
.rc-start { position:absolute; top:44px; left:0; transform:translateX(-50%); }
.rc-pit-marker { position:absolute; top:9px; width:44px; height:75px; padding:0; display:flex; flex-direction:column; align-items:center; justify-content:space-between; transform:translateX(-50%); border:0; background:transparent; color:inherit; z-index:1; font:inherit; }
button.rc-pit-marker { cursor:grab; touch-action:none; }
button.rc-pit-marker:active { cursor:grabbing; }
.rc-pit-label { font-size:11px; font-weight:700; background:var(--board,#1c1d1d); padding:3px 5px; color:white; border-radius:3px; white-space:nowrap; }
.rc-pit-marker .rc-wheel { margin-bottom:10px; }
.rc-finish { position:absolute; right:-18px; top:37px; writing-mode:vertical-rl; font-size:9px; letter-spacing:.08em; padding:2px 0; }
.rc-stint-count { position:absolute; top:14px; left:0; width:100%; text-align:center; font-size:10px; white-space:nowrap; }
.rc-board-legend { display:flex; align-items:center; flex-wrap:wrap; gap:22px; border-top:1px solid #414242; padding-top:24px; margin-top:10px; }
.rc-board-legend > span { display:flex; gap:10px; align-items:center; font-size:13px; }
.rc-board-legend a { color:white; margin-left:auto; min-height:44px; display:flex; align-items:center; font-size:14px; }
.rc-lab { padding-top:38px; margin-top:32px; border-top:1px solid var(--dk-ln-cccccc, #ccc); scroll-margin-top:180px; }
.rc-lab h3 { font-size:clamp(26px,3vw,38px); margin:8px 0 12px; letter-spacing:-.03em; }
.rc-plan-tabs { display:flex; gap:8px; margin:24px 0 16px; }
.rc-plan-tabs button { min-width:112px; font-weight:650; }
.rc-plan-tabs [aria-pressed="true"] { background:#222; color:white; border-color:#222; }
.rc-presets { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.rc-presets > span { margin-right:10px; }
.rc-editor { border:1px solid var(--dk-ln-cccccc, #ccc); border-radius:12px; padding:24px; background:var(--dk-bg-f7f7f5, #f7f7f5); }
.rc-editor-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.rc-editor > .rc-timeline { background:#252727; color:#f5f5f5; border-radius:8px; margin:22px 0 8px; border:24px solid #252727; border-top-width:0; border-bottom-width:0; }
.rc-stint-editors { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:14px; margin:22px 0; }
.rc-stint-editor { margin:0; min-width:0; border:1px solid var(--dk-ln-cccccc, #ccc); border-radius:8px; padding:14px; background:var(--dk-bg-fcfcfc, #fcfcfc); }
.rc-stint-editor legend { padding:0 6px; font-size:13px; font-weight:700; }
.rc-tyre-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.rc-tyre-choice { min-height:74px; padding:8px 3px; background:transparent; border:1px solid var(--dk-ln-dddddd, #ddd); border-radius:6px; display:flex; flex-direction:column; align-items:center; gap:9px; cursor:pointer; font:inherit; font-size:11px; }
.rc-tyre-choice .rc-wheel { width:26px; height:26px; }
.rc-tyre-choice[aria-pressed="true"] { border:2px solid #242424; background:var(--dk-bg-e9e9e6, #e9e9e6); padding:7px 2px; }
.rc-lap-input { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; }
.rc-lap-input input { width:76px; min-height:44px; background:var(--dk-bg-ffffff, white); border:1px solid #aaa; border-radius:5px; padding:8px; color:var(--dk-fg-171717, #171717); font:inherit; font-weight:700; }
.rc-text-button { border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; cursor:pointer; color:var(--dk-fg-555555, #555); font:inherit; font-size:12px; min-height:44px; padding:6px 0; }
.rc-finish-label { letter-spacing:.08em; font-size:11px; font-weight:700; }
.rc-warning { font-size:13px; border-left:3px solid #aa6500; padding:10px 14px; background:var(--dk-bg-fff0d6, #fff0d6); color:var(--dk-fg-533300, #533300); }
.rc-comparison { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.rc-compare-row { background:#252727; color:#fafafa; border-radius:8px; padding:18px 24px 4px; min-width:0; }
.rc-compare-row > span { display:block; color:#ccc; margin-top:6px; }
.rc-costs { width:100%; border-collapse:collapse; margin:24px 0; font-size:14px; }
.rc-costs caption { text-align:left; font-weight:650; margin-bottom:14px; }
.rc-costs th,.rc-costs td { padding:10px 8px; border-bottom:1px solid var(--dk-ln-dddddd, #ddd); text-align:right; font-variant-numeric:tabular-nums; }
.rc-costs th:first-child { text-align:left; }
.rc-costs tbody th { font-weight:400; }
.rc-lab [role="status"] { position:static; border:0; background:var(--dk-bg-eceee8, #eceee8); padding:18px; border-left:3px solid #536b30; margin:24px 0 16px; }
@media(max-width:768px) { .rc-strategy-intro { grid-template-columns:1fr; gap:12px; } .rc-board-row { grid-template-columns:1fr; gap:4px; padding:20px 0 0; } .rc-board-row-label { flex-direction:row; align-items:baseline; justify-content:space-between; gap:16px; } .rc-board-row-label > span { text-align:right; } .rc-comparison { grid-template-columns:1fr; } }
@media(max-width:480px) { .rc-strategy-board { padding:22px 18px 18px; border-radius:10px; } .rc-board-row-label strong { font-size:15px; } .rc-board-row-label > span { font-size:11px; max-width:18ch; } .rc-board-legend { gap:16px; } .rc-board-legend a { margin-left:0; width:100%; } .rc-editor { padding:14px; } .rc-presets > span { width:100%; } .rc-lab { scroll-margin-top:115px; } .rc-costs { font-size:12px; } }

.rc-lab > [role="status"] { position:sticky; top:var(--sx-sticky-offset,176px); z-index:3; max-width:none; box-shadow:0 3px 8px #0001; }
.rc-editor button,.rc-editor input { scroll-margin-top:270px; }
@media(max-width:480px) { .rc-lab > [role="status"] { top:var(--sx-sticky-offset,106px); font-size:15px; padding:12px; } .rc-editor button,.rc-editor input { scroll-margin-top:190px; } }

/* One row per stint: tyre, starting lap, and removal belong to that stint. */
.rc-tyre-profile { background:#252727; color:#ccc; border-radius:8px 8px 0 0; padding:18px 24px 0; margin-top:20px; }
.rc-profile-label { display:block; font-size:10px; letter-spacing:.13em; margin-bottom:10px; }
.rc-tyre-profile svg { display:block; width:100%; height:130px; overflow:hidden; }
.rc-profile-fill { fill:var(--compound); fill-opacity:.3; stroke:var(--compound); stroke-width:2; vector-effect:non-scaling-stroke; }
.rc-profile-boundary { stroke:#80c9bf; stroke-width:2; vector-effect:non-scaling-stroke; }
.rc-profile-axis { display:flex; justify-content:space-between; gap:4px; font-size:10px; padding-top:6px; border-top:1px solid #777; }
.rc-editor > .rc-timeline { margin:0; border-radius:0 0 8px 8px; }
.rc-stint-editors { display:block; margin:18px 0 0; }
.rc-stint-head,.rc-stint-editor { display:grid; grid-template-columns:minmax(100px,1fr) minmax(144px,1.3fr) 100px 44px; gap:16px; align-items:center; }
.rc-stint-head { padding:10px 12px; color:var(--dk-fg-666666, #666); font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.rc-stint-editor { border:0; border-top:1px solid var(--dk-ln-d6d6d2, #d6d6d2); border-radius:0; padding:12px; background:transparent; }
.rc-stint-name { display:flex; align-items:center; gap:16px; }
.rc-stint-name strong { font-size:19px; }
.rc-stint-name span { font-size:12px; color:var(--dk-fg-555555, #555); white-space:nowrap; }
.rc-tyre-choices { gap:4px; }
.rc-tyre-choice { min-height:44px; padding:7px; border:1px solid transparent; border-radius:5px; justify-content:center; }
.rc-tyre-choice[aria-pressed="true"] { border:1px solid #333; padding:7px; background:var(--dk-bg-e4e4df, #e4e4df); }
.rc-tyre-choice .rc-wheel { width:25px; height:25px; box-shadow:none; }
.rc-lap-input { justify-content:start; }
.rc-lap-input input { width:100%; text-align:center; padding:8px 3px; }
.rc-lap-input input[readonly] { border-color:transparent; background:transparent; }
.rc-remove-stint { width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--dk-ln-cccccc, #ccc); border-radius:5px; background:transparent; color:var(--dk-fg-555555, #555); cursor:pointer; }
.rc-remove-stint:hover { color:var(--dk-fg-a22222, #a22222); background:var(--dk-bg-fce8e6, #fce8e6); border-color:#a22222; }
.rc-remove-stint svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.rc-add-stint { width:100%; margin-top:8px; border-style:dashed; background:var(--dk-bg-eeeee9, #eeeee9); }
.rc-add-stint:disabled { opacity:.5; cursor:default; }
.rc-stint-help { margin-bottom:0; }
.rc-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.rc-input-error { grid-column:1/-1; margin:0; color:var(--dk-fg-a22222, #a22222); font-size:13px; }
.rc-lap-input input[aria-invalid="true"] { border-color:#a22222; }
.rc-timeline-list { display:flex; flex-wrap:wrap; gap:12px; padding:18px 12px; background:#252727; color:#fafafa; border-radius:0 0 8px 8px; }
.rc-timeline-list .rc-compact-stint { position:static; transform:none; display:flex; flex-direction:column; align-items:center; justify-content:space-between; flex:1 0 44px; height:84px; min-width:44px; padding:0; border:0; background:transparent; color:inherit; gap:8px; }
.rc-timeline-list .rc-pit-marker { cursor:default; touch-action:auto; }
.rc-timeline-list .rc-wheel { margin:0; }
.rc-compact-count { font-size:10px; white-space:nowrap; }
@media(max-width:620px) {
  .rc-stint-head,.rc-stint-editor { grid-template-columns:minmax(52px,1fr) 104px 58px 44px; gap:5px; padding:10px 0; }
  .rc-stint-head { font-size:9px; letter-spacing:0; }
  .rc-stint-name { display:grid; gap:4px; }
  .rc-stint-name span { font-size:10px; white-space:normal; }
  .rc-tyre-choice { padding:4px 0; }
  .rc-tyre-choice[aria-pressed="true"] { padding:4px 0; }
  .rc-tyre-profile { padding:14px 16px 0; }
  .rc-tyre-profile svg { height:90px; }
  .rc-lap-input input { font-size:14px; }
}
@media(max-width:360px) {
  .rc-editor { padding:10px; }
  .rc-stint-head,.rc-stint-editor { grid-template-columns:minmax(38px,1fr) 92px 48px 44px; gap:3px; }
  .rc-stint-head { font-size:8px; }
}
