/* Live Archive v1.6.63 — WCAG 2.2 AA contrast token corrections.
   Loaded after the existing styles on all HTML entry points.
   --archive-accent and --acid are readable foreground colours where used for labels;
   --archive-action retains the original branded button/indicator colours where possible.
   Borders are raised to >=3:1 against their relevant panels, including controls.
   This is a source-palette correction, not a substitute for browser testing. */

/* Original / Nightlife: lift subdued control boundaries, retain the palette. */
html[data-theme="original"]{--line:#777f73;--archive-line:#777187}
html[data-theme="nightlife"]{--line:#817093;--archive-line:#79658d}

/* Signal: deep orange foreground text on light surfaces; vivid orange button fill. */
html[data-theme="signal"]{--archive-accent:#ac321c;--accent:#ac321c;--primary:#ac321c;--archive-action:#ff4e2f}

/* Hi-Fi: slightly lift walnut panel separators without changing the wood palette. */
html[data-theme="hifi"]{--line:#8a795e;--archive-line:#8a795e}

/* Retro: burnt orange text and button fill strengthened for small labels. */
html[data-theme="retro"]{--line:#9f805a;--archive-line:#9f805a;--archive-accent:#a63720;--archive-action:#a63720;--archive-action-ink:#fff4d9;--accent:#a63720;--primary:#a63720}

/* Manga: keep distinctive yellow for buttons, but never yellow for small text. */
html[data-theme="manga"]{--acid:#81500a;--archive-accent:#85510a;--archive-action:#f5b929;--archive-action-ink:#141923;--accent:#85510a;--primary:#85510a}

/* Gothic: brighter ruby text on black and charcoal, dark lettering on ruby buttons. */
html[data-theme="gothic"]{--acid:#ef6c74;--archive-accent:#ef6c74;--archive-action:#ef6c74;--archive-action-ink:#211e21;--accent:#ef6c74;--primary:#ef6c74}

/* Grunge: meaningful boundaries have at least 3:1 against archive cards. */
html[data-theme="grunge"]{--archive-line:#89736b}

/* Notification warnings: a single dark red is not legible on dark themes. */
html[data-theme="original"] .archive-alert-warning,
html[data-theme="nightlife"] .archive-alert-warning,
html[data-theme="hifi"] .archive-alert-warning,
html[data-theme="gothic"] .archive-alert-warning,
html[data-theme="grunge"] .archive-alert-warning,
html[data-theme="bristol"] .archive-alert-warning{color:#ffadb0}
html[data-theme="signal"] .archive-alert-warning,
html[data-theme="retro"] .archive-alert-warning,
html[data-theme="manga"] .archive-alert-warning{color:#a22432}

/* Shared notification controls follow action colours, not foreground accent ink.
   Required in Manga/Signal where accent is deliberately darker than the button. */
html[data-theme] .archive-alert-actions button{background:var(--archive-action);color:var(--archive-action-ink);border-color:var(--archive-line)}

/* Accessible archive focus rings maintain a clear outline on both surface tones. */
html[data-theme] :is(.archive-alert-actions button,.archive-alert-panel a,.discovery-primary):focus-visible{outline:3px solid var(--archive-line)!important;outline-offset:3px!important}
