/* ============================================================================
   draft-order.css  —  ✉️ The Draft Lottery (draft order generator) styling (.dor-*)
   A broadcast draft set: sealed envelopes, an order board, and a strip of names
   still in play. Self-contained. Navy hall, brass seals, cream paper.
   ============================================================================ */

.dor-stage { position: relative; }

/* ⚠️ site.css applies a broad `transition: all` — an engine that animates SVG
   elements with per-frame setAttribute('transform') will have that CSS
   transition FIGHT the JS (elements slide in from the SVG origin and smear on
   the first move). Kill it on the whole scene. */
.dor-svg, .dor-svg * { transition: none !important; }
.dor-svg { display: block; width: 100%; height: auto; border-radius: 14px; }

/* ---- SVG type ---- */
.dor-title { font-size: 15px; font-weight: 800; letter-spacing: .18em; fill: #e8b34a; }
.dor-label { font-size: 9.5px; font-weight: 700; letter-spacing: .17em; fill: #7e93a8; }
.dor-rank  { font-weight: 800; fill: #6b85a0; font-variant-numeric: tabular-nums; }
.dor-chip  { font-weight: 700; fill: #f4efe4; }
.dor-pick  { font-size: 9px; font-weight: 800; letter-spacing: .14em; fill: #8a7a5c; }
.dor-card  { font-weight: 800; fill: #16283a; }
.dor-mini  { font-size: 8px; font-weight: 800; fill: #8a7a5c; font-variant-numeric: tabular-nums; }
.dor-rname { font-weight: 600; fill: #4e6478; }
.dor-rname.is-filled { fill: #f4efe4; }
.dor-rname.is-top { fill: #e8b34a; font-weight: 800; }

/* ---- controls ---- */
.dor-count { display: block; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); margin: 0 0 10px; min-height: 15px; }
.dor-count.is-warn { color: #c0392b; }

.dor-drawbtn-wrap { text-align: center; }
.dor-drawbtn-main { display: inline-flex; align-items: center; gap: 8px; margin: 16px auto 0; font-size: 15px; font-weight: 800; color: #fff;
    padding: 13px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--dor-grad-a, #2a6d9c), var(--dor-grad-b, #14395a));
    box-shadow: 0 12px 24px -8px var(--dor-accent, #1d4e73), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, filter .15s; }
.dor-drawbtn-main:hover { transform: translateY(-2px); filter: brightness(1.08); }
.dor-drawbtn-main:disabled, .dor-drawbtn-main.is-busy { opacity: .6; cursor: default; transform: none; filter: grayscale(.2); }
.dor-drawbtn-main:focus-visible { outline: 3px solid color-mix(in srgb, var(--dor-accent, #1d4e73) 55%, transparent); outline-offset: 3px; }

/* the exposed pace knob — the user owns the trade-off between ceremony and speed */
.dor-pace-wrap { max-width: 330px; margin: 18px auto 0; }
.dor-pace-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--theme-muted, #6b7280); margin: 0 0 6px; text-align: center; }
.dor-range { width: 100%; accent-color: var(--dor-accent, #1d4e73); }
.dor-range-ends { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--theme-muted, #6b7280); margin-top: 2px; }

.dor-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.dor-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.dor-items-ta { width: 100%; min-height: 220px; font-family: monospace; font-size: .9rem; line-height: 1.55; border-radius: 10px;
    border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); padding: 10px 12px; resize: vertical; }
.dor-items-ta:focus { outline: 2px solid var(--dor-accent, #1d4e73); outline-offset: 1px; border-color: transparent; }

/* the plain-text order — the copyable answer, and what a screen reader gets */
.dor-out { margin: 14px 0 0; font-family: monospace; font-size: .86rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
    color: var(--theme-muted, #5b6470); background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef);
    border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.dor-out:empty { display: none; }

.page-dor-scope {
    --wsp-result-accent: var(--dor-accent, #1d4e73);
    --wsp-result-grad: linear-gradient(135deg, var(--dor-grad-a, #2a6d9c), var(--dor-grad-b, #14395a));
    --wsp-result-plate: color-mix(in srgb, var(--dor-accent, #1d4e73) 13%, #fff);
}

/* ── SEO content (.dor-content) — type scale from .content-guide; colour only ── */
.dor-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.dor-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.dor-content h2, .dor-content h3 { color: var(--theme-text, #1a1a2e); }
.dor-content p, .dor-content li { color: var(--theme-muted, #5b6470); }
.dor-content strong { color: var(--theme-text, #1a1a2e); }
.dor-content a { color: #1d4e73; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.dor-kicker-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff;
    background: linear-gradient(135deg, #2a6d9c, #14395a); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.dor-content .dor-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.25rem; }
.dor-section { margin-top: 2.9rem; }
.dor-content .table { font-size: 1rem; }
.dor-content .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; font-weight: 800; color: #fff; background: #1d4e73; padding: .7rem 1rem; }
.dor-content .table tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--theme-border, #e9ecef); vertical-align: top; }
.dor-content .table tbody td:first-child { font-weight: 700; color: var(--theme-text, #1a1a2e); white-space: nowrap; }
.dor-step { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; align-items: start; margin-top: 1.15rem; }
.dor-step-n { font-size: .8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2a6d9c, #14395a); border-radius: 9px; text-align: center; padding: .3rem 0; font-variant-numeric: tabular-nums; }
.dor-step p { margin: 0; }
.dor-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.dor-pair-card { background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; border-top: 3px solid #2a6d9c; }
.dor-pair-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; } .dor-pair-card p:last-child { margin-bottom: 0; font-size: .92rem; }
.dor-faq { margin-top: 1.4rem; }
.dor-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--theme-border, #e9ecef); }
.dor-faq .accordion-button { background: transparent; color: var(--theme-text, #1a1a2e); font-weight: 600; padding-left: 0; padding-right: 2.5rem; box-shadow: none; }
.dor-faq .accordion-button:not(.collapsed) { color: #1d4e73; background: transparent; }
.dor-faq .accordion-button:focus { box-shadow: none; }
.dor-faq .accordion-body { padding-left: 0; color: var(--theme-muted, #5b6470); }
@media (max-width: 767.98px) { .dor-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .dor-content p, body[data-theme="high-contrast"] .dor-content li, body[data-theme="high-contrast"] .dor-content .dor-lead { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .dor-content h2, body[data-theme="high-contrast"] .dor-content h3 { color: #fff; }
