/* EMIGRATLY polish layer: everyday-use additions that sit on top of app.css and visuals.css.
   Kept in its own file so it can grow without touching the two big sheets. */

/* ---------- Display controls: light theme and larger text ---------- */

.site-header__tools { display: flex; align-items: center; gap: 4px; }
.display-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--ink);
    cursor: pointer;
}
.display-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1399px) { .display-toggle { display: inline-flex; } }

.display-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.display-controls .link-button { font-size: 14px; }
.display-controls [aria-pressed="true"] { color: var(--accent); text-decoration: underline; }

/* Larger text scales the whole page the way browser zoom does, so nothing is left behind at the old size. */
html[data-text="large"] { zoom: 1.15; }

/* Light theme: the same layout with the colour tokens swapped. Gold darkens so it still reads as text on a pale page. */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #FAF8F3;
    --panel: #FFFFFF;
    --panel-raised: #F3F0E8;
    --ink: #1A1A1C;
    --muted: #55555B;
    --muted-dim: #5C5C62;
    --accent: #8F5F0C;
    --accent-ink: #FFFFFF;
    --accent-2: #0A6B7C;
    --success: #1E7B52;
    --border: rgba(0, 0, 0, 0.14);
    --border-strong: rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] .ticker { background: #EFEBE0; }
:root[data-theme="light"] .button--primary:hover { background: #A76F12; }
:root[data-theme="light"] .wizard-progress__step--active .wizard-progress__dot { color: #FFFFFF; }
:root[data-theme="light"] .consent-banner { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); }
:root[data-theme="light"] .locale-picker { background: rgba(250, 248, 243, 0.8); }
:root[data-theme="light"] .locale-picker__inner { box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2); }
:root[data-theme="light"] .sticky-cta { background: rgba(250, 248, 243, 0.96); }
:root[data-theme="light"] .site-notice { background: rgba(0, 0, 0, 0.04); }
:root[data-theme="light"] .site-notice--warn { background: rgba(143, 95, 12, 0.14); }
:root[data-theme="light"] .nav-badge { background: #1A1A1C; color: #FFFFFF; }
:root[data-theme="light"] .doc-pill--verified, :root[data-theme="light"] .result-badge--ready { background: rgba(30, 123, 82, 0.14); color: #14633F; }
:root[data-theme="light"] .doc-pill--rejected, :root[data-theme="light"] .result-badge--not_yet { background: rgba(214, 84, 64, 0.12); color: #A3321F; }
:root[data-theme="light"] .doc-pill--missing { background: rgba(0, 0, 0, 0.06); }
:root[data-theme="light"] .upload-live__text--ok, :root[data-theme="light"] .wizard-saved::before { color: #14633F; }
:root[data-theme="light"] .upload-live__text--error { color: #A3321F; }
:root[data-theme="light"] .form-error, :root[data-theme="light"] .form-errors { color: #7A1F12; }
:root[data-theme="light"] .hero__graphic { opacity: 0.55; }
:root[data-theme="light"] .hero__graphic line, :root[data-theme="light"] .hero__graphic g { stroke: rgba(0, 0, 0, 0.18); }

@media (min-width: 1400px) { .site-header__tools { display: none; } }

/* ---------- Phone numbers and the camera shortcut ---------- */
.field-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.upload-camera { margin-top: 8px; }

/* ---------- "What you pay, and what you never pay" ---------- */
.wyp-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .wyp-grid { grid-template-columns: 1fr 1fr; } }
.wyp-card { padding: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); }
.wyp-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 12px; }
.wyp-card--yes { border-top: 3px solid var(--success); }
.wyp-card--yes h3 svg { color: var(--success); }
.wyp-card--no { border-top: 3px solid #D65440; }
.wyp-card--no h3 svg { color: #E8806E; }
:root[data-theme="light"] .wyp-card--no h3 svg { color: #A3321F; }
.wyp-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.wyp-card li { padding-left: 0; line-height: 1.5; }
.wyp-card li a { white-space: nowrap; }

/* ---------- "On this page" strip for long reading pages (built by jump-strip.js) ---------- */
.jump-strip { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.jump-strip__list { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump-strip__list::-webkit-scrollbar { display: none; }
.jump-strip a { flex: 0 0 auto; padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap; }
.jump-strip a:hover, .jump-strip a:focus-visible { border-color: var(--accent); color: var(--accent); }
html { scroll-padding-top: 64px; }

/* ---------- Lite mode: fewer decorations and no motion, for slow connections and small phones ---------- */
html[data-lite="1"] *, html[data-lite="1"] *::before, html[data-lite="1"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-lite="1"] .ticker, html[data-lite="1"] .hero__graphic, html[data-lite="1"] .pixel-mosaic { display: none; }
html[data-lite="1"] .reveal-pending { opacity: 1; transform: none; }

/* ---------- Listen to this page ---------- */
.read-aloud { margin: 8px 0 16px; }
.read-aloud__button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
