/* ============================================================================
   odometer.css  —  🔢 The Rolling Counter (random number picker) styling (.odo-*)
   A mechanical odometer: set a range, pull the handle, the reels roll and lock on
   one number. Self-contained. Brass / gunmetal identity.
   ============================================================================ */
.odo-stage { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 22px 55px -22px rgba(20, 16, 8, .7);
    background: radial-gradient(120% 100% at 50% 0%, #34302a, #17140f); padding: 26px 14px 18px; text-align: center; }

/* inline-flex + the stage's text-align:center keeps the counter CENTRED and, when
   leading zeros collapse (display:none), it re-centres and grows symmetrically. */
.odo-display { display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 14px; position: relative; max-width: 100%; overflow: hidden;
    background: linear-gradient(180deg, var(--odo-housing1, #3a4150), var(--odo-housing2, #232935));
    box-shadow: inset 0 2px 6px rgba(255,255,255,.14), inset 0 -6px 14px rgba(0,0,0,.5), 0 12px 26px rgba(0,0,0,.35);
    border: 2px solid var(--odo-frame, #8a6417); }
.odo-display::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, var(--odo-accent, #c9922e), transparent); opacity: .65; pointer-events: none; }

.odo-sign { flex: none; width: calc(var(--odo-cell-h, 84px) * .32); height: var(--odo-cell-h, 84px); display: none; align-items: center; justify-content: center;
    font-size: calc(var(--odo-cell-f, 50px) * .92); font-weight: 800; color: var(--odo-reel-ink, #f2ede0); }
.odo-sign.is-on { display: flex; }

.odo-reel { flex: none; width: var(--odo-cell-w, 54px); height: var(--odo-cell-h, 84px); overflow: hidden; border-radius: 7px; position: relative;
    background: linear-gradient(180deg, #0c0e13, var(--odo-reel-bg, #14171f) 22%, var(--odo-reel-bg, #14171f) 78%, #0c0e13);
    box-shadow: inset 0 8px 12px rgba(0,0,0,.7), inset 0 -8px 12px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.05); }
/* base transition:none so site.css's broad `transition: all` can't animate the
   reel between static positions; the ROLL transition is set inline by the engine
   (inline styles win), so the roll still animates. */
.odo-strip { display: flex; flex-direction: column; will-change: transform; transition: none; }
.odo-cell { height: var(--odo-cell-h, 84px); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--odo-cell-f, 50px);
    color: var(--odo-reel-ink, #f2ede0); font-variant-numeric: tabular-nums;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; text-shadow: 0 2px 3px rgba(0,0,0,.6); }
/* a leading-zero reel collapses away at the reveal so the number re-centres */
.odo-reel.is-hidden { display: none; }

.odo-caption { color: #e7d7ad; font-size: 12.5px; letter-spacing: .04em; margin-top: 14px; min-height: 16px; text-align: center; }

/* range controls */
.odo-controls { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 20px; }
.odo-field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.odo-field label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--theme-muted, #6b7280); }
.odo-field input { width: 120px; font-size: 18px; font-weight: 700; padding: 9px 12px; border-radius: 10px; font-variant-numeric: tabular-nums;
    border: 1.5px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); }
.odo-field input:focus { outline: 2px solid var(--odo-accent, #c9922e); outline-offset: 1px; border-color: transparent; }

.odo-presets { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 14px; }
.odo-preset { cursor: pointer; font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 999px; font-variant-numeric: tabular-nums;
    background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e); border: 1.5px solid var(--theme-border, #dfe4ee); transition: transform .12s ease, border-color .15s; }
.odo-preset:hover { transform: translateY(-2px); border-color: var(--odo-accent, #c9922e); }
.odo-preset.is-on { background: var(--odo-accent, #c9922e); border-color: var(--odo-accent, #c9922e); color: #2a1f07; }

.odo-pickbtn-wrap { text-align: center; }
.odo-pickbtn-main { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; font-size: 15px; font-weight: 800; color: #2a1f07;
    padding: 13px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, #e6bf6a, var(--odo-accent, #c9922e) 55%, var(--odo-accent2, #8a6417));
    box-shadow: 0 12px 24px -8px var(--odo-accent, #c9922e), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .12s ease, filter .15s; }
.odo-pickbtn-main:hover { transform: translateY(-2px); filter: brightness(1.05); }
.odo-pickbtn-main:disabled, .odo-pickbtn-main.is-busy { opacity: .6; cursor: default; transform: none; filter: grayscale(.2); }

.odo-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.odo-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.odo-range-side { display: flex; gap: 10px; margin-bottom: 8px; }
.odo-range-side .odo-field input { width: 100%; }

.page-odo-scope {
    --wsp-result-accent: var(--odo-accent, #c9922e);
    --wsp-result-grad: linear-gradient(135deg, #e6bf6a, var(--odo-accent2, #8a6417));
    --wsp-result-plate: color-mix(in srgb, var(--odo-accent, #c9922e) 14%, #fff);
    --wsp-result-btn-ink: #2a1f07;
}
.page-odo-scope .wsp-result-name { font-variant-numeric: tabular-nums; }

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