/* Sub-calculator pages: layout extras and one visual per page */
.crumbs { position: relative; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; opacity: .6; }
.hero-intro h1 { margin-bottom: 0; }
.sub-lede { position: relative; color: #c3cde0; max-width: 760px; margin: 12px 0 0; font-size: 1rem; }
.board .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.mini-total { display: flex; align-items: baseline; gap: 8px; }
.mini-total b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-total span { color: var(--muted); font-size: .85rem; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kv div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kv b { display: block; font-size: 1.25rem; color: #fff; font-variant-numeric: tabular-nums; }
.kv span { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.note-dark { font-size: .8rem; color: #cbd5e1; margin: 10px 0 0; }
.note-dark b { color: var(--d1); }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px 0; }
.field-row label { font-size: .8rem; color: var(--muted); }
.field-row input, .field-row select { background: rgba(2, 6, 23, .55); border: 1px solid rgba(148, 163, 184, .22); color: #fff; border-radius: 10px; padding: 8px 10px; outline: none; width: 110px; }
.field-row select option { color: #111; }

/* Related calculators */
.related { padding: 50px 0 10px; }
.related h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0 0 16px; color: #0b1222; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rel-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; text-decoration: none; color: #0b1222; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rel-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .4); }
.rel-card b { display: block; font-size: 1rem; margin-bottom: 4px; }
.rel-card span { font-size: .82rem; color: var(--paper-muted); line-height: 1.45; display: block; }
.rel-card.current { border-color: #84cc16; background: #f7fee7; pointer-events: none; }

/* ---------- heptathlon: donut ---------- */
.donut-wrap { position: relative; width: 100%; max-width: 300px; margin: 6px auto 0; }
.donut-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut-center b { font-size: 2.7rem; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; }
.donut-seg { transition: d .4s; stroke: var(--ink); stroke-width: 2; }
.donut-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; margin-top: 14px; font-size: .8rem; color: #cbd5e1; }
.donut-legend div { display: flex; justify-content: space-between; gap: 8px; }
.donut-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-legend b { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- high school: score ladder ---------- */
.ladder { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: stretch; height: 340px; margin-top: 8px; }
.ladder-col { position: relative; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column-reverse; }
.ladder-col i { display: block; width: 100%; transition: height .5s cubic-bezier(.2, .8, .2, 1); border-top: 1px solid rgba(10, 16, 32, .6); }
.ladder-scale { position: relative; }
.rung { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(148, 163, 184, .35); font-size: .74rem; color: var(--muted); padding-top: 2px; transition: color .3s; }
.rung.hit { color: var(--d1); border-top-color: var(--d1); }
.rung b { color: inherit; font-weight: 700; }
.ladder-you { position: absolute; left: -6px; right: 0; height: 2px; background: #fff; transition: bottom .5s; }
.ladder-you::after { content: attr(data-label); position: absolute; right: 0; top: -20px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 7px; border-radius: 999px; }
.ladder-key { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: .72rem; color: #cbd5e1; }
.ladder-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }

/* ---------- feet: rulers ---------- */
.rulers { display: grid; gap: 14px; margin-top: 6px; }
.ruler-head { display: flex; justify-content: space-between; font-size: .82rem; color: #e2e8f0; margin-bottom: 3px; }
.ruler-head b { color: var(--d1); font-variant-numeric: tabular-nums; }
.ruler-head small { color: var(--muted); }
.ruler svg { display: block; width: 100%; height: 46px; overflow: visible; }
.ruler .tape { fill: #facc15; opacity: .92; }
.ruler .tick { stroke: #1f2937; stroke-width: 1; }
.ruler .tick.major { stroke-width: 1.6; }
.ruler .tlbl { font-size: 8px; fill: #1f2937; font-weight: 700; }
.ruler .mlbl { font-size: 8px; fill: #94a3b8; }
.ruler .fill { fill: var(--accent); opacity: .3; transition: width .45s; }
.ruler .marker { fill: var(--accent); transition: transform .45s; }

/* ---------- excel: spreadsheet ---------- */
.xl { background: #fff; color: #111827; border-radius: 12px; overflow: hidden; font-family: 'Segoe UI', Calibri, Arial, sans-serif; font-size: .82rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.xl-ribbon { background: #107c41; color: #fff; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.xl-ribbon .dot { width: 18px; height: 18px; border-radius: 3px; background: #fff; color: #107c41; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.xl-fx { display: flex; align-items: center; border-bottom: 1px solid #d1d5db; background: #f9fafb; }
.xl-fx .ref { width: 64px; padding: 6px 8px; border-right: 1px solid #d1d5db; font-weight: 600; color: #374151; }
.xl-fx .fx { padding: 0 8px; color: #6b7280; font-style: italic; border-right: 1px solid #d1d5db; }
.xl-fx code { padding: 6px 10px; font-family: Consolas, 'Courier New', monospace; font-size: .78rem; color: #111827; white-space: nowrap; overflow-x: auto; flex: 1; }
.xl-grid { overflow-x: auto; }
.xl table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.xl th, .xl td { border: 1px solid #e5e7eb; padding: 4px 8px; white-space: nowrap; text-align: left; font-size: .8rem; }
.xl thead th { background: #f3f4f6; color: #6b7280; font-weight: 500; text-align: center; position: static; text-transform: none; letter-spacing: 0; }
.xl tbody th { background: #f3f4f6; color: #6b7280; font-weight: 500; text-align: center; width: 30px; }
.xl tr.hdr td { font-weight: 700; background: #e8f5ee; color: #0b5d30; }
.xl td.num { text-align: right; }
.xl td.sel { outline: 2px solid #107c41; outline-offset: -2px; background: #f0fdf4; }
.xl td input { width: 86px; border: 0; background: transparent; font: inherit; color: #111827; outline: none; text-align: right; }
.xl td input::placeholder { color: #9ca3af; }
.xl td.pts { position: relative; font-weight: 700; text-align: right; min-width: 90px; }
.xl td.pts i { position: absolute; left: 2px; top: 3px; bottom: 3px; background: linear-gradient(90deg, #63be7b, #c6efce); border-radius: 2px; z-index: 0; transition: width .4s; }
.xl td.pts span { position: relative; z-index: 1; }
.xl tr.tot td { font-weight: 800; background: #f3f4f6; border-top: 2px solid #111827; }
.xl-tabs { display: flex; gap: 2px; background: #f3f4f6; border-top: 1px solid #d1d5db; padding: 0 8px; }
.xl-tabs button { border: 0; background: transparent; padding: 6px 14px; font: inherit; font-size: .78rem; color: #374151; cursor: pointer; border-bottom: 3px solid transparent; }
.xl-tabs button.on { background: #fff; color: #107c41; font-weight: 700; border-bottom-color: #107c41; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; background: #107c41; color: #fff; padding: 11px 16px; border-radius: 10px; font-weight: 700; font-size: .88rem; }
.dl-btn.alt { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid var(--line); }
.dl-btn:hover { filter: brightness(1.1); }

/* ---------- u20: pace chart ---------- */
.pace svg { display: block; width: 100%; height: auto; overflow: visible; }
.pace .grid { stroke: rgba(148, 163, 184, .14); }
.pace .axis { font-size: 9px; fill: #64748b; }
.pace .pace-line { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 4; fill: none; }
.pace .you-line { stroke: var(--d1); stroke-width: 2.6; fill: none; stroke-linejoin: round; }
.pace .you-area { fill: url(#paceGrad); }
.pace .you-dot { fill: var(--d1); stroke: var(--ink); stroke-width: 2; }
.pace .lbl { font-size: 9px; font-weight: 600; }
.pace-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: .84rem; color: #cbd5e1; }
.pace-status b.ahead { color: var(--d1); }
.pace-status b.behind { color: #fdba74; }
.impl { display: grid; gap: 10px; margin-top: 6px; }
.impl-row { display: grid; grid-template-columns: 92px 1fr 70px; gap: 10px; align-items: center; font-size: .8rem; color: #cbd5e1; }
.impl-bars { display: grid; gap: 3px; }
.impl-bars i { display: block; height: 8px; border-radius: 4px; transition: width .4s; }
.impl-bars i.you { background: var(--d1); }
.impl-bars i.sen { background: rgba(148, 163, 184, .35); }
.impl-row b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- masters: dumbbell ---------- */
.factor-in { width: 74px; background: rgba(2, 6, 23, .55); border: 1px solid rgba(148, 163, 184, .22); color: #fff; border-radius: 8px; padding: 6px 7px; font-size: .82rem; outline: none; text-align: center; }
.factor-in:focus { border-color: var(--d2); }
.dumb { display: grid; gap: 9px; margin-top: 8px; }
.dumb-row { display: grid; grid-template-columns: 74px 1fr 46px; gap: 8px; align-items: center; font-size: .78rem; color: #cbd5e1; }
.dumb-track { position: relative; height: 14px; }
.dumb-track::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: rgba(148, 163, 184, .15); }
.dumb-link { position: absolute; top: 5px; height: 4px; background: linear-gradient(90deg, rgba(148, 163, 184, .6), var(--d2)); border-radius: 2px; transition: left .4s, width .4s; }
.dumb-raw, .dumb-age { position: absolute; top: 1px; width: 12px; height: 12px; border-radius: 50%; transform: translateX(-50%); transition: left .4s; border: 2px solid var(--ink); }
.dumb-raw { background: #94a3b8; }
.dumb-age { background: var(--d2); }
.dumb-row b { text-align: right; color: var(--d2); font-variant-numeric: tabular-nums; }
.dumb-key { display: flex; gap: 14px; font-size: .74rem; color: var(--muted); margin-top: 10px; }
.dumb-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.age-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(56, 189, 248, .12); color: var(--d2); border: 1px solid rgba(56, 189, 248, .4); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .82rem; }

/* ---------- double decathlon: heatmap ---------- */
.heat { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.heat-day { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 10px 0 2px; grid-column: 1 / -1; }
.tile { position: relative; aspect-ratio: 1 / .82; border-radius: 10px; padding: 6px 7px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: background .4s; overflow: hidden; }
.tile small { font-size: .62rem; color: rgba(255, 255, 255, .75); line-height: 1.15; }
.tile b { font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; }
.tile.manual::after { content: 'tables'; position: absolute; top: 5px; right: 6px; font-size: .5rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.tile.empty b { color: rgba(255, 255, 255, .25); }
.heat-scale { display: flex; align-items: center; gap: 8px; font-size: .7rem; color: var(--muted); margin-top: 10px; }
.heat-scale i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #1e293b, #0e7490, #38bdf8, #c6ff3d, #ff6b35); }
.rec-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); margin-top: 14px; }
.rec-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--d2), var(--d1)); transition: width .6s; }
.rec-bar span { position: absolute; right: 0; top: 14px; font-size: .68rem; color: var(--accent); font-weight: 700; }
.ev-row.manual-row .ev-num { color: var(--accent); border-color: rgba(255, 107, 53, .45); }

@media (max-width: 560px) {
  .heat { grid-template-columns: repeat(4, 1fr); }
  .ladder { height: 280px; }
  .kv { grid-template-columns: 1fr 1fr; }
}

/* ---------- about / terms / privacy ---------- */
.info-hero { padding: 40px 0 46px; }
.info-date { position: relative; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
article.info h3 a { color: inherit; text-decoration: none; border-bottom: 2px solid #ffb347; }
article.info h3 a:hover { color: var(--accent); }

/* ---------- contact form & sitemap ---------- */
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 10px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-weight: 600; font-size: .9rem; color: #0b1222; }
.form-row input, .form-row textarea { font: inherit; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0b1222; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid #2563eb; outline-offset: 1px; border-color: #2563eb; }
.form-row [aria-invalid="true"] { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cta-inline { justify-self: start; }
.contact-form .cta-inline:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.success { color: #15803d; }
.form-status.error { color: #b91c1c; }
.form-status.sending { color: #475569; }
.sitemap-list { columns: 2; column-gap: 32px; padding-inline-start: 1.1rem; }
.sitemap-list li { break-inside: avoid; }
.sitemap-langs { columns: 3; }
@media (max-width: 640px) { .sitemap-list, .sitemap-langs { columns: 1; } }
