html { scrollbar-gutter:stable; }
/* Keep the shared navigation independent of calculator height and loading state. */
.gearing-page > .site-header { position:fixed; left:0; right:0; margin:0 auto; }
.gearing-loading { min-height:440px; }
@media (scripting: none) { .gearing-loading { display:none; } }
.gearing-page .chain-shell { max-width: 960px; padding-top: 132px; }
body[data-gearing-screen="landing"] { min-height:100svh; display:flex; flex-direction:column; }
body[data-gearing-screen="landing"] > .brand-footer { margin-top:auto; }
.gearing-page .chain-intro { margin-bottom: 32px; }
.gearing-page .chain-output,.gearing-page .error-box { scroll-margin-top:112px; }
.gearing-page .chain-intro h1 { font-size: 56px; }
.breadcrumb { display:inline-flex; align-items:center; gap:6px; min-height:36px; margin-bottom:14px; color:var(--ink); font-size:14px; font-weight:600; }
.breadcrumb svg,.chevron svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.gearing-page .chain-shell.landing { max-width:1120px; display:grid; grid-template-columns:240px minmax(0,1fr); align-items:start; gap:72px; padding-top:160px; padding-bottom:72px; }
.landing-intro { padding-top:24px; }
.landing-intro .brand-eyebrow { color:var(--muted); margin:0 0 12px; font-size:11px; }
.landing-intro h1 { margin:0; font:700 56px/1.05 var(--serif); letter-spacing:-.05em; }
.landing-intro > p { margin:20px 0 0; max-width:240px; color:var(--muted); font-size:17px; line-height:1.6; }
.tool-list { display:grid; gap:16px; }
.tool-row { position:relative; display:flex; align-items:center; gap:28px; min-width:0; min-height:168px; padding:24px 66px 24px 24px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.8); transition:background-color .18s ease; }
.tool-row h2 { margin:0 0 8px; font:600 24px/1.2 var(--sans); letter-spacing:-.035em; }
.tool-row p { color:var(--muted); font-size:15px; line-height:1.5; margin:0; }
.tool-visual { flex:0 0 156px; height:112px; display:flex; align-items:center; }
.tool-art { width:156px; height:112px; object-fit:contain; }
.tool-copy { min-width:0; }
.tool-row .chevron { position:absolute; top:50%; right:24px; margin-top:-17px; display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; color:var(--muted); }
.tool-row:hover { background:#fff8e5; }
.tool-row:hover .chevron { background:var(--yellow); border-color:var(--yellow); color:var(--ink); transform:translateX(2px); }
.tool-row:active { background:#fff0c0; }
.gearing-page .tool-row:focus-visible { outline-offset:-4px; border-radius:4px; }
.chevron { flex-shrink:0; transition:transform .15s ease; }
.tool-row:focus-visible,.gearing-page a:focus-visible,.gearing-page button:focus-visible { outline:3px solid var(--yellow); outline-offset:4px; }
.small-note { margin:16px 0; color:var(--muted); font-size:13px; line-height:1.55; }
.section-title { margin:0 0 20px; font:700 28px/1.1 var(--serif); letter-spacing:-.04em; }
.gearing-page select { width:100%; min-height:50px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font:500 15px/1.4 var(--sans); }
.custom-select { position:relative; min-width:0; }
.custom-select.is-open { z-index:30; }
.select-trigger { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-height:50px; padding:12px 14px; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font:500 15px/1.4 var(--sans); text-align:left; cursor:pointer; }
.select-trigger::after { content:''; flex:0 0 7px; width:7px; height:7px; margin-right:3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); }
.select-trigger:hover { border-color:#b5ae9f; }
.select-trigger[aria-expanded="true"] { border-color:#a58a36; }
.select-trigger:disabled { opacity:.6; cursor:default; }
.select-menu { position:absolute; inset:calc(100% + 6px) 0 auto; overflow-y:auto; overscroll-behavior:contain; padding:6px; border:1px solid var(--line); border-radius:10px; background:#fffefa; box-shadow:0 10px 30px #29251b1f; }
.opens-up .select-menu { top:auto; bottom:calc(100% + 6px); }
.select-menu [role="option"] { position:relative; display:flex; align-items:center; min-height:44px; padding:10px 32px 10px 10px; border-radius:5px; color:var(--ink); font:400 14px/1.4 var(--sans); cursor:pointer; }
.select-menu [aria-selected="true"] { font-weight:600; background:#fff4ce; }
.select-menu [aria-selected="true"]::after { content:'✓'; position:absolute; right:12px; }
.select-menu .is-active { background:#f0ece2; }
#engine-fields { margin-top:18px; }
#engine-fields > .chain-field { margin-top:16px; }
#series-scope { margin:12px 0 16px; font-size:12px; }
.gearing-page textarea { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; background:var(--paper); font:inherit; }
.field-help { margin:-8px 0 22px; color:var(--muted); font-size:12px; line-height:1.5; }
.disclosure { border-block:1px solid var(--line); margin:20px 0; }
.disclosure + .disclosure { border-top:0; margin-top:-20px; }
.disclosure summary { display:flex; align-items:center; gap:8px; min-height:48px; font-size:14px; cursor:pointer; list-style:none; }
.disclosure summary::-webkit-details-marker { display:none; }
.disclosure summary::after { content:'⌄'; margin-left:auto; font-size:19px; }
.disclosure[open] > summary::after { content:'⌃'; }
.disclosure-content { padding:10px 0 16px; font-size:14px; line-height:1.6; }
.disclosure-content p { margin:0 0 12px; }
.disclosure-content a,.profile-facts a { text-decoration:underline; text-underline-offset:3px; }
.profile-facts .small-note { margin:0 0 16px; font-size:12px; }
.profile-facts .disclosure { margin:0 0 22px; }
.profile-facts .disclosure summary { color:var(--muted); }
.secondary-button { display:flex; align-items:center; justify-content:center; min-height:46px; width:100%; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--ink); padding:10px 16px; font:600 14px var(--sans); cursor:pointer; }
.secondary-button:hover { background:var(--paper); }
.text-link { color:var(--muted); font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.result-card,.empty-state,.plain-result { padding:24px 0 0; border-top:1px solid var(--line); margin-top:24px; }
.plain-result p,.empty-state p { font-size:14px; line-height:1.6; }
.eyebrow { margin:0 0 12px; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.gear-number { margin:8px 0; font:650 54px/1.1 var(--sans); letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
.gear-number > span { color:var(--muted); font-weight:400; }
.gear-number > small { font-size:27px; letter-spacing:-.03em; }
.change { font-size:15px; font-weight:600; margin:8px 0 18px; }
.ratio-meta { font-size:13px; color:var(--muted); }
.metrics { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.metrics small { display:block; color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.metrics strong { display:block; font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.035em; margin-top:4px; }
.actions { display:grid; gap:10px; margin-top:24px; }
.inline-actions { display:flex; gap:10px; margin-top:14px; }
.inline-actions > * { flex:1; }
.example-notice,.limit-note { border-left:3px solid var(--yellow); padding:8px 0 8px 12px; font-size:12px; line-height:1.6; color:var(--muted); margin:16px 0; }
.context-strip { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; border-block:1px solid var(--line); margin:20px 0; }
.context-strip small { color:var(--muted); font-size:12px; }
.context-strip strong { display:block; font-size:16px; }
.segmented { display:flex; max-width:456px; margin-bottom:28px; }
.segmented a { display:flex; flex:1; align-items:center; justify-content:center; min-height:46px; background:rgba(255,255,255,.64); border:1px solid var(--line); font-size:14px; font-weight:600; color:var(--muted); }
.segmented a:first-child { border-radius:8px 0 0 8px; }
.segmented a:last-child { border-left:0; border-radius:0 8px 8px 0; }
.segmented a.active { background:var(--paper); box-shadow:inset 0 0 0 1px var(--ink); color:var(--ink); }
.comparison-head,.ratio-option { display:grid; grid-template-columns:minmax(0,1.3fr) 1fr 1fr; align-items:center; text-align:right; gap:8px; width:100%; }
.comparison-head { padding:0 12px 12px; font-size:11px; color:var(--muted); }
.comparison-head > :first-child,.ratio-name { text-align:left; }
.ratio-list { border-top:1px solid var(--line); }
.ratio-option { border:0; border-bottom:1px solid var(--line); background:transparent; padding:15px 12px; color:var(--ink); font:500 15px var(--sans); font-variant-numeric:tabular-nums; cursor:pointer; }
.ratio-option:hover { background:#fff2cd; }
.ratio-option.current { background:#eeece6; }
.ratio-option strong { font-size:17px; font-weight:650; }
.ratio-option small { display:block; font-size:10px; color:var(--muted); margin-top:5px; }
.ratio-option small.limit-exceeded { color:#8c391b; }
.comparison-card { padding:20px 0; border-bottom:1px solid var(--line); }
.ratio-top { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.ratio-top strong { font-size:26px; font-weight:600; letter-spacing:-.04em; }
.ratio-top span { font-size:13px; color:var(--muted); }
.history-note { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); font-size:14px; line-height:1.6; }
.history-note h3,.empty-state h2 { font:700 28px/1.1 var(--serif); letter-spacing:-.04em; margin:0 0 16px; }
.badge { font-size:11px; font-weight:600; padding:5px 8px; background:#eeece6; border-radius:4px; }
.check-label { display:flex; align-items:center; min-height:44px; gap:10px; font-size:14px; }
.check-label input { width:18px; height:18px; accent-color:var(--ink); }
.session-row { display:flex; justify-content:space-between; gap:18px; padding:14px 0; border-bottom:1px solid var(--line); font-size:14px; }
.session-row span { color:var(--muted); }
.session-row strong { font-weight:600; text-align:right; }
.error-box { color:#9b3021; border-left:3px solid #9b3021; font-size:13px; line-height:1.5; margin:16px 0; padding:8px 12px; }
.error-box:empty { display:none; }
.design-footer { max-width:960px; width:calc(100% - 64px); margin:48px auto 24px; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.6; }
.design-footer a { text-decoration:underline; text-underline-offset:3px; }
[hidden] { display:none!important; }
@media(min-width:701px) and (max-width:1000px) {
 .gearing-page .chain-shell.landing { grid-template-columns:200px minmax(0,1fr); gap:32px; }
 .landing-intro .brand-eyebrow { font-size:10px; letter-spacing:.08em; }
 .tool-row { gap:18px; padding-left:16px; padding-right:48px; }
 .tool-visual { flex-basis:112px; }
 .tool-art { width:112px; }
 .tool-row .chevron { right:14px; width:26px; height:26px; margin-top:-13px; }
}
@media(max-width:700px) {
 html { scrollbar-width:none; }
 .gearing-page .chain-shell { padding-top:104px; }
 .gearing-page .chain-intro { margin-bottom:28px; }
 .gearing-page .chain-intro h1 { font-size:42px; }
 .breadcrumb { margin-bottom:12px; min-height:30px; }
 .section-title { font-size:25px; margin-bottom:18px; }
 .gearing-page .chain-shell.landing { display:block; padding-top:112px; padding-bottom:40px; }
 .landing-intro { padding-top:0; margin-bottom:28px; }
 .landing-intro h1 { font-size:44px; }
 .landing-intro > p { margin:12px 0 0; max-width:none; font-size:15px; }
 .tool-list { gap:12px; }
 .tool-row { gap:16px; min-height:140px; padding:22px 38px 22px 14px; border-radius:12px; }
 .tool-row h2 { font-size:20px; margin-bottom:6px; }
 .tool-row p { font-size:14px; }
 .tool-visual { flex:0 0 88px; height:76px; }
 .tool-art { width:88px; height:76px; }
 .tool-row .chevron { top:50%; right:14px; margin-top:-9px; width:18px; height:18px; border:0; }
 .gear-number { font-size:46px; }
 .gear-number > small { font-size:23px; }
 .segmented { margin-bottom:24px; }
 .design-footer { width:calc(100% - 40px); margin-top:32px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .chevron,.tool-row { transition:none; } }



.ratio-option[aria-expanded="true"] { background:#fff4ce; box-shadow:inset 3px 0 var(--yellow); }
.selected-setup { margin-top:16px; padding:18px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.selection-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0; font-size:20px; font-weight:600; }
.selection-label span { color:var(--muted); font-size:13px; font-weight:400; }
.selected-setup .actions { margin-top:16px; }
