/* Auction calculator (calculator.html). */

.calc-main { max-width: 72rem; }
.c-dim { color: var(--muted); font-weight: 400; }

/* settings */
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.c-field { display: grid; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.c-field input, .c-field select, .c-slot input, .c-filters select, .c-filters input[type="search"] {
    font: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; color: var(--ink);
    padding: 0.4rem 0.5rem; border: 1px solid var(--line-strong); background: var(--card); border-radius: var(--r-sm); min-width: 0;
}
.c-field input[type="number"] { width: 100%; }
.c-inline { display: flex; align-items: center; gap: 0.4rem; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 0.9rem; color: var(--ink); }
.c-inline input { width: 4.5rem !important; }
.c-inline select { flex: 1; min-width: 0; }
.c-money { position: relative; display: block; }
.c-money::before { content: "$"; position: absolute; left: 0.55rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; text-transform: none; }
.c-money input { padding-left: 1.2rem; }
.c-set { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.5rem 0.8rem 0.8rem; margin: 0 0 0.8rem; }
.c-set legend { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 0 0.3rem; }
.c-set legend .c-dim { text-transform: none; letter-spacing: normal; }
.c-slots { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.c-slot { display: flex; align-items: center; gap: 0.35rem; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.85rem; font-weight: 500; }
.c-slot input { width: 3.6rem; }
.c-cats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.c-cats label, .c-check { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; cursor: pointer; min-height: 1.8rem; }
.c-cats input, .c-check input { width: 1rem; height: 1rem; accent-color: var(--green); }
.c-roster { margin: -0.2rem 0 0.8rem; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.8rem; color: var(--green-dark); }

/* how it works */
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.c-step { min-width: 0; }
.c-step h4 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; font-family: "Outfit", system-ui, sans-serif; font-size: 1.1rem; }
.c-num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--green); color: var(--on-accent); font-size: 0.85rem; flex: none; }
.c-step p { margin: 0 0 0.5rem; line-height: 1.5; max-width: 52rem; }
.c-step h5 { margin: 0.7rem 0 0.2rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.c-cat-table, .c-repl-table { max-width: 52rem; }
.c-cat-table td:first-child .c-dim { font-size: 0.78rem; }
.c-bar { display: flex; height: 1.4rem; border-radius: var(--r-sm); overflow: hidden; margin: 0.4rem 0 0.3rem; max-width: 52rem; border: 1px solid var(--line); }
.c-bar span { flex-basis: 0; min-width: 3px; }
.c-bar-bench, .c-lg-bench::before { background: var(--faint); }
.c-bar-min, .c-lg-min::before { background: var(--amber); }
.c-bar-var, .c-lg-var::before { background: var(--green); }
.c-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0 0 0.6rem; padding: 0; font-size: 0.82rem; color: var(--muted); }
.c-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.c-legend li::before { content: ""; width: 0.75rem; height: 0.75rem; border-radius: 2px; }

/* player table */
.c-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-bottom: 0.4rem; }
.c-filters input[type="search"] { width: 14rem; max-width: 100%; }
.c-hint { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted); }
.c-table td { font-variant-numeric: tabular-nums; }
.c-row { cursor: pointer; }
.c-row:hover td, .c-row:focus-visible td { background-color: var(--hover); }
.c-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.c-drafted td:first-child, .c-drafted td:nth-child(2) { background: var(--green-soft); }
.c-name { font-weight: 600; }
.c-team { margin-left: 0.4rem; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.68rem; color: var(--muted); font-weight: 400; }
.c-pos { font-family: "DM Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--muted); }
.c-pos b { color: var(--ink); }
.c-dollar { font-weight: 700; font-family: "DM Mono", ui-monospace, monospace; }
.c-neg { color: var(--red); font-weight: 400; }
.c-open td { border-bottom-color: transparent; }
.c-detail > td { background: var(--tint); padding: 0.6rem 0.8rem 0.9rem; white-space: normal; }
.c-explain .game-table { max-width: 46rem; background: var(--card); }
.c-math { margin: 0.6rem 0 0.2rem; font-family: "DM Mono", ui-monospace, monospace; font-size: 0.82rem; line-height: 1.7; }
.c-sum td { font-weight: 700; border-top: 2px solid var(--line-strong); }
.c-more { margin-top: 0.8rem; }

@media (max-width: 700px) {
    .c-grid { grid-template-columns: 1fr 1fr; }
    .c-filters input[type="search"] { width: 100%; }
    .c-slot input, .c-inline input { min-height: 2.2rem; }
}
.c-price td { font-size: 1rem; }
