/* Shared styles for /calculators/*.
   Class names are namespaced (.calc-*) on purpose: a bare .leg collided with styles.css
   and silently broke the layout. Keep new class names prefixed. */

.calc-page { padding-top: 104px; padding-bottom: 4.5rem; }
.calc-head { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }
.calc-eyebrow { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: #0F7A38; margin-bottom: .9rem; }
.calc-title { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 1rem; }
.calc-title em { font-style: normal; color: #15A34A; }
.calc-intro { font-size: 1.08rem; line-height: 1.6; color: #6C6C74; }

.calc-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid #E7E7EA; border-radius: 20px; padding: 1.9rem 1.7rem; box-shadow: 0 18px 44px -30px rgba(16,24,32,.22); }

/* mode toggle */
.calc-modes { display: flex; gap: .5rem; background: #F4F4F6; border-radius: 999px; padding: .3rem; margin-bottom: 1.6rem; }
.calc-mode { flex: 1; border: 0; background: transparent; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem; color: #6C6C74; padding: .6rem 1rem; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.calc-mode[aria-pressed="true"] { background: #fff; color: #0E0E12; box-shadow: 0 2px 8px -4px rgba(16,24,32,.25); }

/* odds-format selector */
.calc-fmt { display: flex; align-items: center; gap: .6rem; justify-content: flex-end; margin-bottom: 1rem; font-size: .85rem; color: #6C6C74; }
.calc-fmt select { font-family: inherit; font-size: .85rem; padding: .35rem .6rem; border: 1px solid #DADADE; border-radius: 999px; background: #fff; color: #0E0E12; }

/* fields */
.field { margin-bottom: .8rem; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: .8rem; color: #6C6C74; margin-bottom: .3rem; }
.field input, .field select { width: 100%; box-sizing: border-box; padding: .7rem .9rem; border: 1px solid #DADADE; border-radius: 12px; font-family: inherit; font-size: 1rem; color: #0E0E12; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid #15A34A; outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: .76rem; color: #9A9AA4; margin: .3rem 0 0; }
.calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* result banner */
.verdict { margin-top: 1.5rem; border-radius: 16px; padding: 1.2rem 1.3rem; border: 1px solid #E7E7EA; background: #F9F9FA; }
.verdict.is-arb { border-color: rgba(21,163,74,.32); background: rgba(21,163,74,.06); }
.verdict-line { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 .35rem; }
.verdict.is-arb .verdict-line { color: #0F7A38; }
.verdict-sub { margin: 0; font-size: .93rem; line-height: 1.55; color: #6C6C74; }

/* result tiles */
.splits { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.1rem; }
/* an explicit display beats the UA [hidden] rule, so stale results would otherwise stay on screen */
.splits[hidden], [hidden] { display: none !important; }
.split { background: #fff; border: 1px solid #E7E7EA; border-radius: 14px; padding: .9rem 1rem; }
.split .k { font-size: .78rem; color: #9A9AA4; text-transform: uppercase; letter-spacing: .06em; }
.split .v { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; margin-top: .15rem; }
.split .n { font-size: .8rem; color: #6C6C74; margin-top: .15rem; }
.split.accent .v { color: #15A34A; }
.split.warn .v { color: #9A6700; }

.calc-note { max-width: 760px; margin: 1rem auto 0; font-size: .82rem; line-height: 1.55; color: #9A9AA4; text-align: center; }
.calc-err { margin-top: 1rem; font-size: .88rem; color: #9A6700; background: #FEF9E7; border: 1px solid #F0E4A8; border-radius: 12px; padding: .7rem .9rem; }

/* product CTA */
.calc-cta { max-width: 760px; margin: 3rem auto 0; background: #fff; border: 1px solid #E7E7EA; border-radius: 20px; padding: 1.8rem 1.6rem; text-align: center; box-shadow: 0 14px 34px -26px rgba(16,24,32,.18); }
.calc-cta h2 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; margin: 0 0 .45rem; }
.calc-cta p { margin: 0 auto 1.2rem; max-width: 46ch; font-size: .97rem; line-height: 1.6; color: #6C6C74; }
.calc-btn { display: inline-block; background: #15A34A; color: #fff; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; padding: .85rem 2rem; border-radius: 999px; text-decoration: none; }
.calc-btn:hover { background: #128a3e; }

/* editorial */
.prose { max-width: 700px; margin: 3.2rem auto 0; }
.prose h2 { font-family: 'Outfit', sans-serif; font-size: 1.45rem; letter-spacing: -.02em; margin: 2.2rem 0 .8rem; }
.prose h3 { font-family: 'Outfit', sans-serif; font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.prose p { font-size: 1rem; line-height: 1.75; color: #2B2B33; margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.2rem 1.1rem; padding: 0; }
.prose li { font-size: 1rem; line-height: 1.7; color: #2B2B33; margin-bottom: .5rem; }
.prose a { color: #0F7A38; text-decoration: underline; }

.ref-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.5rem; font-size: .95rem; }
.ref-table th, .ref-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid #E7E7EA; }
.ref-table th { font-family: 'Outfit', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: #9A9AA4; font-weight: 600; }
.ref-table td { color: #2B2B33; font-variant-numeric: tabular-nums; }

.calc-more { max-width: 700px; margin: 2.5rem auto 0; display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.calc-more a { font-size: .9rem; padding: .55rem 1.1rem; border: 1px solid #E7E7EA; border-radius: 999px; color: #0E0E12; text-decoration: none; background: #fff; }
.calc-more a:hover { border-color: #DADADE; }

@media (max-width: 720px) {
    .calc-grid-2, .splits { grid-template-columns: 1fr; }
}
