/* public/css/extension_calculator.css — the public Extension Calculator
 * (extension-calculator.php). Stand-alone: the page does NOT load styles.css,
 * so every rule it needs is here (prefix ec-). Colors are the site defaults:
 * navy, red and newspaper cream. Design came from the UX lab mockup (2026-11-21):
 * no small-text explainers; help lives in "?" dots (hover on desktop, tap on phone).
 */
:root {
    --ec-bg: #f5f0e8; --ec-surface: #fbf6ea; --ec-surface-2: #efe6d0; --ec-line: #d8cdb4; --ec-field: #fdfaf0;
    --ec-text: #2b1d12; --ec-muted: #6e5d4e; --ec-navy: #1f3a5f; --ec-cream: #fbf6ea; --ec-red: #8b1a1a;
    --ec-good: #2e7d32; --ec-close: #b07a00; --ec-bad: #c0392b;
    --ec-shadow: 0 10px 30px rgba(43, 29, 18, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ec-body { margin: 0; background: var(--ec-bg); color: var(--ec-text);
    font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums; }
.ec-wrap button, .ec-wrap input, .ec-wrap select { font: inherit; color: inherit; }
.ec-wrap button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ec-wrap :focus-visible { outline: 2px solid var(--ec-navy); outline-offset: 2px; }
.ec-wrap [hidden] { display: none !important; }

.ec-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 120px; }

/* ── top bar ── */
.ec-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.ec-brand { font-weight: 900; font-size: 20px; letter-spacing: .08em; color: var(--ec-text); text-decoration: none; }
.ec-brand span { color: var(--ec-red); }
.ec-top nav { display: flex; align-items: center; gap: 4px; }
.ec-top nav a { padding: 8px 10px; border-radius: 8px; color: var(--ec-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.ec-top nav a:hover { color: var(--ec-text); background: var(--ec-surface-2); }
.ec-top nav a.ec-signin { color: var(--ec-text); border: 1px solid var(--ec-line); margin-left: 4px; }

.ec-h1 { margin: 18px 0 22px; font-size: clamp(28px, 6vw, 44px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.ec-h1 small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ec-red); margin-bottom: 8px; }

/* ── layout ── */
.ec-grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
    .ec-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
    .ec-verdict { position: sticky; top: 16px; grid-column: 2; grid-row: 1 / span 2; }
    .ec-wrap { padding-bottom: 60px; }
}
.ec-card { background: var(--ec-surface); border: 1px solid var(--ec-line); border-radius: 16px; padding: 18px; }
.ec-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: var(--ec-muted); }
.ec-card h2 b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--ec-navy); color: var(--ec-cream); font-size: 13px; letter-spacing: 0; }
.ec-label { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; }
.ec-label:first-of-type { margin-top: 0; }

/* ── help dot + tooltip ── */
.ec-help { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border-radius: 50%;
    border: 1px solid var(--ec-line); background: var(--ec-surface-2); color: var(--ec-muted); font-size: 12px; font-weight: 800; line-height: 1; }
.ec-help:hover, .ec-help[aria-expanded="true"] { color: var(--ec-cream); background: var(--ec-navy); border-color: var(--ec-navy); }
.ec-tip { position: fixed; z-index: 50; max-width: min(280px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 10px;
    background: var(--ec-text); color: var(--ec-bg); font: 500 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    box-shadow: var(--ec-shadow); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.ec-tip.ec-on { opacity: 1; transform: none; }

/* ── position chips ── */
.ec-pos-group { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 8px; margin-bottom: 8px; }
.ec-pos-group > span { padding-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ec-muted); }
.ec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-chip { min-width: 52px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--ec-line);
    background: var(--ec-surface-2); font-weight: 700; font-size: 14px; }
.ec-chip:hover, .ec-round:hover, .ec-step:hover, .ec-pct:hover { border-color: var(--ec-navy); }
.ec-wrap .ec-chip[aria-checked="true"] { background: var(--ec-navy); border-color: var(--ec-navy); color: var(--ec-cream); }

/* ── overall ── */
.ec-ovr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.ec-ovr-num { display: flex; align-items: center; gap: 6px; }
.ec-ovr-num input { width: 76px; height: 56px; text-align: center; font-size: 30px; font-weight: 900; border-radius: 12px;
    border: 1px solid var(--ec-line); background: var(--ec-surface-2); -moz-appearance: textfield; appearance: textfield; }
.ec-wrap input::-webkit-outer-spin-button, .ec-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ec-round { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ec-line); background: var(--ec-surface-2); font-size: 20px; font-weight: 700; padding: 0; }
.ec-wrap input[type=range] { width: 100%; accent-color: var(--ec-navy); height: 32px; }

.ec-market { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 14px 16px;
    border-radius: 12px; background: var(--ec-surface-2); }
.ec-market .ec-k { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ec-muted); }
.ec-market .ec-v { font-size: 26px; font-weight: 900; }
.ec-market .ec-v i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ec-muted); }
.ec-wrap .ec-tag { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--ec-close); color: var(--ec-close); font-size: 11px; font-weight: 800;
    letter-spacing: .06em; text-transform: uppercase; background: none; }

/* ── contract details strip (mirrors the bar on top of Madden's contract screen) ── */
.ec-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--ec-line);
    border-radius: 12px; background: var(--ec-surface-2); }
.ec-strip div { padding: 10px 6px; text-align: center; border-left: 1px solid var(--ec-line); min-width: 0; }
.ec-strip div:first-child { border-left: none; }
.ec-strip b { display: block; font-size: clamp(16px, 4.6vw, 22px); font-weight: 900; color: var(--ec-navy); white-space: nowrap; }
.ec-strip span { display: block; margin-top: 2px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ec-muted); }

/* ── the offer (Length, Yearly Salary, Total Bonus: Madden's order) ── */
.ec-seg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ec-seg .ec-chip { min-width: 0; padding: 0; }
.ec-stepper { display: grid; grid-template-columns: 46px 46px minmax(0, 1fr) 46px 46px; gap: 6px; }
.ec-step { height: 48px; border-radius: 10px; border: 1px solid var(--ec-line); background: var(--ec-surface-2); font-weight: 700; font-size: 14px; padding: 0; }
.ec-money { position: relative; }
.ec-money input { width: 100%; height: 48px; padding: 0 30px 0 26px; text-align: center; font-size: 20px; font-weight: 800;
    border-radius: 10px; border: 1px solid var(--ec-line); background: var(--ec-field); -moz-appearance: textfield; appearance: textfield; }
.ec-money::before, .ec-money::after { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ec-muted); font-weight: 700; pointer-events: none; }
.ec-money::before { content: "$"; left: 12px; }
.ec-money::after { content: "M"; right: 12px; }
.ec-pcts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.ec-wrap .ec-pct { height: 36px; border-radius: 8px; border: 1px solid var(--ec-line); background: none; font-size: 13px; font-weight: 700; padding: 0; }
.ec-wrap .ec-pct.ec-dn { color: var(--ec-good); }
.ec-wrap .ec-pct.ec-up { color: var(--ec-bad); }
@media (min-width: 560px) {
    .ec-pcts { grid-template-columns: repeat(8, 1fr); }
    .ec-offer { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; }
    .ec-offer .ec-label { margin: 0; }
    .ec-offer .ec-pcts { grid-column: 2; margin: 0 0 10px; }
    .ec-offer .ec-seg { margin-bottom: 10px; }
}

/* ── verdict ── */
.ec-verdict { --ec-tone: var(--ec-muted); border-color: var(--ec-tone); }
.ec-verdict.ec-good { --ec-tone: var(--ec-good); }
.ec-verdict.ec-close { --ec-tone: var(--ec-close); }
.ec-verdict.ec-bad { --ec-tone: var(--ec-bad); }
.ec-v-word { font-size: clamp(34px, 9vw, 46px); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--ec-tone); }
.ec-verdict.ec-idle .ec-v-word { font-size: 26px; }
.ec-v-nums { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; min-height: 32px; }
.ec-v-pct { font-size: 26px; font-weight: 900; }
.ec-v-diff { font-size: 16px; font-weight: 700; color: var(--ec-muted); }
.ec-gauge { position: relative; margin: 22px 0 6px; height: 14px; border-radius: 999px;
    background: linear-gradient(90deg, var(--ec-good) 0 37.5%, var(--ec-close) 37.5% 62.5%, var(--ec-bad) 62.5% 100%); opacity: .9; }
.ec-gauge i { position: absolute; top: -7px; left: 50%; width: 6px; height: 28px; margin-left: -3px; border-radius: 3px;
    background: var(--ec-text); box-shadow: 0 0 0 3px var(--ec-surface); transition: left .25s ease; }
.ec-verdict.ec-idle .ec-gauge { opacity: .3; }
.ec-verdict.ec-idle .ec-gauge i { display: none; }
.ec-gauge-lab { display: grid; grid-template-columns: 37.5% 25% 37.5%; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ec-muted); text-align: center; }
.ec-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.ec-tile { padding: 12px 14px; border-radius: 12px; background: var(--ec-surface-2); }
.ec-tile .ec-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ec-muted); }
.ec-tile .ec-v { margin-top: 2px; font-size: 22px; font-weight: 900; }
.ec-tile.ec-locked { grid-column: 1 / -1; }
.ec-blur { filter: blur(7px); user-select: none; }
.ec-wrap .std-signup-cta-wrap { margin: 10px 0 0; }
.ec-wrap .std-signup-cta { font-family: inherit; }

/* ── shortlist + locked position group ── */
.ec-below { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .ec-below { grid-template-columns: 1fr 1fr; } }
.ec-save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.ec-field { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--ec-line); background: var(--ec-field); width: 100%; }
.ec-btn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ec-line); background: var(--ec-surface-2); font-weight: 700; }
.ec-wrap .ec-btn.ec-primary { background: var(--ec-navy); border-color: var(--ec-navy); color: var(--ec-cream); }
.ec-count { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; }
.ec-card details { margin-top: 10px; }
.ec-card summary { display: inline-block; padding: 6px 0; font-size: 14px; font-weight: 700; color: var(--ec-muted); cursor: pointer; }
.ec-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.ec-more label { font-size: 13px; font-weight: 700; color: var(--ec-muted); }
.ec-more .ec-field { margin-top: 4px; }
.ec-saved { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ec-saved:empty { display: none; }
.ec-pill { display: inline-flex; align-items: stretch; border-radius: 999px; border: 1px solid var(--ec-line); background: var(--ec-surface-2); overflow: hidden; }
.ec-pill.ec-on { border-color: var(--ec-navy); }
.ec-pill button { border: none; background: none; min-height: 40px; }
.ec-pill .ec-load { padding: 0 6px 0 14px; font-weight: 700; font-size: 14px; }
.ec-pill .ec-load em { font-style: normal; color: var(--ec-muted); font-weight: 600; margin-left: 6px; }
.ec-wrap .ec-pill .ec-del { padding: 0 12px 0 6px; color: var(--ec-muted); font-size: 18px; }
.ec-wrap .ec-pill .ec-del:hover { color: var(--ec-bad); }
.ec-unlock { position: relative; overflow: hidden; }
.ec-unlock table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ec-unlock td { padding: 9px 4px; border-bottom: 1px solid var(--ec-line); }
.ec-unlock td:last-child { text-align: right; font-weight: 800; }
.ec-unlock .ec-veil { position: absolute; inset: 52px 0 0; display: grid; place-items: center; }
.ec-unlock .ec-veil .std-signup-cta-wrap { margin: 0; }

/* ── phone dock: the verdict follows you while it is off screen ── */
.ec-dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ec-surface); border: 1px solid var(--ec-tone, var(--ec-line));
    box-shadow: var(--ec-shadow); color: var(--ec-text); text-decoration: none; transform: translateY(140%); transition: transform .2s ease;
    font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; }
.ec-dock.ec-show { transform: none; }
.ec-dock.ec-good { --ec-tone: var(--ec-good); }
.ec-dock.ec-close { --ec-tone: var(--ec-close); }
.ec-dock.ec-bad { --ec-tone: var(--ec-bad); }
.ec-dock b { font-size: 18px; font-weight: 900; color: var(--ec-tone, var(--ec-muted)); }
.ec-dock span { font-size: 14px; font-weight: 700; color: var(--ec-muted); }
@media (min-width: 900px) { .ec-dock { display: none; } }
.ec-toast { position: fixed; left: 50%; bottom: 84px; z-index: 40; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 10px;
    background: var(--ec-text); color: var(--ec-bg); font: 700 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    opacity: 0; transition: .2s; pointer-events: none; }
.ec-toast.ec-on { opacity: 1; transform: translate(-50%, 0); }

/* ── site-standard football cursors (site_standards.md §11; copied because styles.css is not loaded here) ── */
@media (hover: hover) and (pointer: fine) {
    html, body, body * { cursor: url("/assets/football-cursor-diagonal.png") 3 2, auto !important; }
    body a[href], body a[href] *, body button:not(:disabled), body button:not(:disabled) *, body select:not(:disabled),
    body input[type="range"], body summary, body summary * {
        cursor: url("/assets/football-cursor-vertical.png") 16 2, pointer !important;
    }
    body input[type="text"], body input[type="number"] { cursor: url("/assets/yard-marker-cursor.png") 16 16, text !important; }
    body :disabled, body :disabled * { cursor: url("/assets/flag-cursor.png") 3 28, not-allowed !important; }
}
