/* calculadora: usa as cores e fontes do style.css e só acrescenta as peças da ferramenta */
.top { background: rgba(18, 18, 18, .86); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--accent); opacity: 1; }

.calc-hero { position: relative; display: grid; gap: 22px; padding-block: calc(120px + env(safe-area-inset-top, 0px)) 0; }
.calc-hero h1 { font-size: clamp(56px, 9vw, 150px); }
.calc-hero .lead { color: var(--cream); opacity: .86; }
/* sem a linha só em cima do "/ calculadora" */
.calc-hero .sec-num { border-top: 0; padding-top: 0; }
.calc-star { position: absolute; right: var(--gutter); top: calc(130px + env(safe-area-inset-top, 0px)); width: clamp(140px, 20vw, 300px); transform: rotate(-6deg); pointer-events: none; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
@media (max-width: 700px) { .calc-star { display: none; } .calc-hero { padding-top: calc(112px + env(safe-area-inset-top, 0px)); } }

.unit { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.unit button { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 11px 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.unit button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.unit button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.unit-note { font-size: 13px; color: var(--muted); }

.tool-sec { padding-block: clamp(40px, 5vw, 72px) 0; }
.tool-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(18px, 2.2vw, 28px); }
.tool-head h2 { font-size: clamp(36px, 4.2vw, 68px); }
.tool-head .lead { justify-self: end; }
@media (max-width: 820px) { .tool-head { grid-template-columns: 1fr; } .tool-head .lead { justify-self: start; } }

.tool { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.fields { display: grid; gap: 12px; align-content: start; }

.field { min-width: 0; }
.flabel { display: flex; align-items: center; gap: 10px; min-height: 26px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tag { display: none; font-size: 10.5px; letter-spacing: .14em; padding: 3px 8px; background: var(--accent); color: var(--on-accent); }
.field.calc .tag { display: inline-block; }
.inrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.in { font: 800 clamp(28px, 2.8vw, 38px)/1 var(--display); color: var(--cream); background: transparent; border: 0; border-bottom: 2px solid var(--line); padding: 4px 2px; text-align: center; font-variant-numeric: tabular-nums; width: 3.2ch; min-width: 0; transition: border-color .2s, color .2s; }
.in.w3 { width: 3.8ch; }
.in.w4 { width: 5.2ch; }
.in::placeholder { color: rgba(238, 232, 216, .22); }
.in:focus { outline: none; border-bottom-color: var(--accent); }
.field.calc .in { color: var(--accent); border-bottom-color: var(--accent); cursor: default; }
.field.calc .chips { visibility: hidden; }
/* resultado da / 01: um dado embaixo do outro */
.result .facts.three { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
.result .facts.three > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.result .facts.three > div:last-child { border-bottom: 0; }
#c-out { align-content: stretch; grid-template-rows: auto auto 1fr auto; }
#c-out .big { font-size: clamp(64px, 7.2vw, 120px); }
#c-out .facts.three { align-content: space-evenly; }
#c-out .facts.three .mid { font-size: clamp(32px, 3.2vw, 48px); }
#c-out .facts.three > div { padding: 12px 0; }
.sep { font: 800 clamp(24px, 2.4vw, 32px)/1 var(--display); color: var(--muted); }
.u { font: 700 20px/1 var(--display); color: var(--muted); text-transform: lowercase; margin-left: 4px; }
.or { font-size: 13px; color: var(--muted); margin-inline: 10px 6px; }
.pair { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
/* seletores pequenos: o que descobrir / pace ou velocidade */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.seg button { font: 500 13px/1 var(--body); padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg.mini { padding: 2px; margin-left: 4px; }
.seg.mini button { font-size: 11px; letter-spacing: .08em; padding: 5px 10px; text-transform: none; }
.ask { display: grid; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font: 500 13px/1 var(--body); color: var(--cream); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: border-color .2s, color .2s; }
.chip:hover, .chip:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.clear { justify-self: start; font: 500 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 6px 0; cursor: pointer; }
.clear::before { content: "[ "; color: var(--accent); }
.clear::after { content: " ]"; color: var(--accent); }
.clear:hover { color: var(--cream); }

.result { background: var(--bg-2, #1A1A19); border: 1px solid var(--line); padding: clamp(18px, 2.2vw, 28px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.result .k { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.big { font: 800 clamp(46px, 5.2vw, 84px)/.9 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big small { font-size: .32em; color: var(--muted); margin-left: 6px; letter-spacing: .02em; }
.mid { font: 700 clamp(26px, 2.6vw, 36px)/1 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.mid small { font-size: .55em; color: var(--muted); margin-left: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.hint { font-size: 14px; color: var(--muted); max-width: 46ch; }
.hint b { color: var(--cream); font-weight: 500; }
.empty { color: var(--muted); font-size: 15px; }

.pred { width: 100%; border-collapse: collapse; }
.pred th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.pred td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.pred td:first-child { font-size: 15px; }
.pred td:first-child small { display: block; color: var(--muted); font-size: 12.5px; }
.pred .t { font: 800 clamp(24px, 2.4vw, 34px)/1 var(--display); font-variant-numeric: tabular-nums; }
.pred .p { font: 700 18px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pred tbody tr:last-child td { border-bottom: 0; }
.pred tr.same td { color: var(--accent); }
.pred tr.same .p { color: var(--accent); }
.table-wrap { overflow-x: auto; }

.foot-space { margin-top: clamp(64px, 8vw, 120px); }

/* / 05 zonas de treino */
.pred .zp { font: 700 clamp(22px, 2.2vw, 30px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pred .zp small { font-size: .6em; color: var(--muted); margin-left: 4px; }
.pred th.r { text-align: right; padding-right: 0; }
.pred td.zp { padding-right: 0; }
.zone-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--accent); vertical-align: middle; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.tips li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 52ch; }
.tips li::before { content: "/"; position: absolute; left: 0; color: var(--accent); }
.z-note { font-size: 14px; line-height: 1.5; color: var(--cream); opacity: .9; max-width: 52ch; }
.z-warn { font-size: 12px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
#z-out { gap: 8px; }
#z-out .pred th { padding-bottom: 6px; }
#z-out .pred td { padding: 7px 12px 7px 0; }
#z-out .pred td.zp { padding-right: 0; }
#z-out .pred .zp { font-size: clamp(20px, 2vw, 26px); }
#z-out .hint, #z-out .z-note { font-size: 13px; }
