/* ============================================================
   Trivia 90s — "Saturday Morning" retro theme (TEST)
   Loaded only by layouts/master-retro.php (the /home-retro.php test page).
   Sticker look: ink outlines, hard offset shadows, tilted chips.
   The radio hero re-skins radio.css's .t90r-* markup over the boombox
   illustration (assets/images/boombox.webp, 1600x1023). Overlays are placed
   in cqw (percent of the boombox width) so they track the art at any size.
   ============================================================ */

:root {
    --t9-ink: #1a1033;
    --t9-teal: #19c3b4;
    --t9-pink: #e0136f;
    --t9-purple: #6c3bd1;
    --t9-yellow: #ffd23f;
    --t9-cream: #fff8ec;
    --t9-muted: #3b3355;
    --t9-display: 'Bungee', system-ui, sans-serif;
}

body:has(.t90-home) {
    background-color: var(--t9-cream);
    background-image: radial-gradient(rgba(26,16,51,.09) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
    color: var(--t9-ink);
}

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 3px solid var(--t9-ink); }
.t90-hnav { display: flex; align-items: center; gap: 10px; }
.t90-hbtn {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: .92rem; line-height: 1; white-space: nowrap;
    padding: 10px 14px; border-radius: 10px;
    background: var(--t9-yellow); color: var(--t9-ink);
    border: 2.5px solid var(--t9-ink); box-shadow: 3px 3px 0 var(--t9-ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.t90-hbtn:hover { color: var(--t9-ink); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--t9-ink); }
.t90-hbtn.is-radio, .t90-hbtn.is-radio:hover { background: var(--t9-pink); color: #fff; }
.t90-onair { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: t9-blink 1.2s steps(1) infinite; }
.header-search input { border: 2.5px solid var(--t9-ink); background: #fff; }
.header-search input:focus { border-color: var(--t9-ink); box-shadow: 3px 3px 0 var(--t9-ink); }
@media (max-width: 900px) { .t90-hnav { display: none; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--t9-ink); margin-top: 72px; }
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 16px;
    background:
        linear-gradient(-45deg, var(--t9-ink) 8px, transparent 0) 0 0 / 16px 16px repeat-x,
        linear-gradient(45deg, var(--t9-ink) 8px, transparent 0) 0 0 / 16px 16px repeat-x;
}

/* full-colour logo on the dark footer (layout.css turns it into a white silhouette) */
.site-footer .footer-logo img { filter: none; height: 64px; width: auto; }

/* ---------- "Sticker Stack" logo (CSS wordmark; scales with font-size) ---------- */
.t90-logo { display: inline-flex; align-items: center; font-family: var(--t9-display); line-height: 1; font-size: 21px; text-decoration: none; }
.t90-logo-t {
    position: relative; z-index: 1; background: var(--t9-teal); color: var(--t9-ink);
    border: .09em solid var(--t9-ink); border-radius: .28em; padding: .26em .42em .1em;
    box-shadow: .12em .12em 0 var(--t9-ink); transform: rotate(-3deg);
}
.t90-logo-n {
    position: relative; z-index: 2; box-sizing: border-box; width: 2.2em; height: 2.2em; margin-left: -.32em;
    border-radius: 50%; background: var(--t9-pink); color: #fff; border: .1em solid var(--t9-ink);
    display: flex; align-items: center; justify-content: center; padding-top: .1em; font-size: .95em;
    box-shadow: .12em .12em 0 var(--t9-ink); transform: rotate(9deg);
}
.site-logo a:hover .t90-logo-t { transform: rotate(-1deg); }
.t90-logo.is-dark { font-size: 30px; }
.t90-logo.is-dark .t90-logo-t { border-color: var(--t9-cream); box-shadow: .12em .12em 0 var(--t9-pink); }
.t90-logo.is-dark .t90-logo-n { border-color: var(--t9-cream); box-shadow: .12em .12em 0 var(--t9-teal); }
@media (max-width: 480px) { .site-header .t90-logo { font-size: 19px; } }

/* ---------- Section headings ---------- */
.t90-home .section-header { margin-bottom: 18px; }
.t90-home .section-title {
    font-family: var(--t9-display); font-weight: 400; font-size: 1.65rem; letter-spacing: 0;
    color: var(--t9-ink); display: flex; align-items: center; gap: 12px;
}
.t90-home .section-title::before {
    content: ""; flex: none; width: 15px; height: 15px;
    background: var(--t9-teal); border: 3px solid var(--t9-ink); transform: rotate(45deg);
}
.t90-home section:nth-of-type(3n) .section-title::before { background: var(--t9-pink); border-radius: 50%; transform: none; }
.t90-home section:nth-of-type(3n+1) .section-title::before { background: var(--t9-yellow); }

/* ---------- Topic chips (category pills) ---------- */
.t90-home .category-scroll { flex-wrap: wrap; overflow: visible; gap: 14px; padding: 4px 0 8px; }
.t90-home .category-pill {
    flex-direction: row; min-width: 0; gap: 9px;
    padding: 7px 15px 7px 7px; border-radius: 12px;
    background: var(--t9-teal); color: var(--t9-ink);
    border: 3px solid var(--t9-ink); box-shadow: 3px 3px 0 var(--t9-ink);
    transform: rotate(-2deg);
}
.t90-home .category-pill:nth-child(4n+2) { background: var(--t9-purple); color: #fff; transform: rotate(1.5deg); }
.t90-home .category-pill:nth-child(4n+3) { background: var(--t9-yellow); transform: rotate(-1deg); }
.t90-home .category-pill:nth-child(4n+4) { background: var(--t9-pink); color: #fff; transform: rotate(2deg); }
.t90-home .category-pill:hover { transform: rotate(0) translateY(-2px); box-shadow: 4px 4px 0 var(--t9-ink); }
.t90-home .category-pill > img,
.t90-home .category-pill > div {
    width: 32px !important; height: 32px !important; font-size: 1rem !important;
    background: #fff !important; border: 2px solid var(--t9-ink); border-radius: 50%; flex: none;
}
.t90-home .category-pill span { font-size: .95rem; font-weight: 900; color: inherit; -webkit-line-clamp: unset; }

/* ---------- Quiz cards ---------- */
.t90-home .card {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 16px;
    box-shadow: 6px 6px 0 var(--t9-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.t90-home .card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--t9-ink); }
.t90-home .card-image { border-bottom: 3px solid var(--t9-ink); }
.t90-home .card:hover .card-image img { transform: none; }
.t90-home .card-badge {
    font-family: var(--t9-display); font-weight: 400; font-size: .68rem; letter-spacing: .05em;
    border: 2.5px solid var(--t9-ink); border-radius: 8px; padding: 4px 8px 2px;
    box-shadow: 2px 2px 0 var(--t9-ink); transform: rotate(-4deg);
    background: var(--t9-yellow); color: var(--t9-ink);
}
.t90-home .card-badge.personality { background: var(--t9-purple); color: #fff; transform: rotate(3deg); }
.t90-home .card-badge.article { background: var(--t9-teal); }
.t90-home .card-badge.game { background: var(--t9-pink); color: #fff; }
.t90-home .card-title { font-weight: 800; }
.t90-home .card-title a { color: var(--t9-ink); }
.t90-home .card-title a:hover { color: var(--t9-purple); }
.t90-home .card-grid { gap: 26px; }

.t90-home .load-more-btn {
    font-family: var(--t9-display); font-weight: 400; font-size: 1.05rem;
    background: var(--t9-teal); color: var(--t9-ink);
    border: 3px solid var(--t9-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--t9-ink);
    padding: 14px 28px 11px;
}
.t90-home .load-more-btn:hover { background: var(--t9-yellow); color: var(--t9-ink); }

/* ============================================================
   Radio hero
   ============================================================ */
.t90-home .t90r-hero {
    --r-pink: var(--t9-pink);
    --r-pink-dark: #b80f5b;
    --r-teal: var(--t9-teal);
    --r-gold: var(--t9-yellow);
    --r-ink: var(--t9-ink);
    --r-muted: var(--t9-muted);
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 40px;
    margin: 8px 0 52px;
    padding: 40px 0 24px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
}
/* Memphis doodles */
.t90-home .t90r-hero::before,
.t90-home .t90r-hero::after { content: ""; position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: contain; }
.t90-home .t90r-hero::before {
    left: -6px; top: 4px; width: 130px; height: 36px; transform: rotate(-8deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 40'%3E%3Cpath d='M4 20c12-18 24 18 36 0s24 18 36 0 24 18 36 0 24 18 34 0' fill='none' stroke='%236c3bd1' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.t90-home .t90r-hero::after {
    left: 30%; top: 26px; width: 46px; height: 46px; transform: rotate(14deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 70'%3E%3Cpath d='M35 6 64 60H6z' fill='%23ffd23f' stroke='%231a1033' stroke-width='4' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.t90-home .t90r-hero > * { position: relative; z-index: 1; }

.t90-home .t90r-eyebrow {
    font-family: var(--t9-display); font-weight: 400; font-size: .8rem; letter-spacing: .06em;
    background: var(--t9-ink); color: var(--t9-yellow);
    padding: 6px 14px 4px; border-radius: 999px; transform: rotate(-2deg); margin-bottom: 16px;
}
.t90-home .t90r-eyebrow::before { background: var(--t9-pink); box-shadow: none; animation: t9-blink 1.2s steps(1) infinite; }
.t90-home .t90r-hero h1 {
    font-family: var(--t9-display); font-weight: 400; letter-spacing: 0;
    font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; color: var(--t9-ink); margin-bottom: 16px;
}
.t90-home .t90r-lead { font-size: 1.1rem; line-height: 1.55; color: var(--t9-muted); }

.t90-home .t90r-cta { gap: 12px; margin-bottom: 24px; }
.t90-home .t90r-btn,
.t90-home .t90r-btn.is-ghost {
    font-family: var(--t9-display); font-weight: 400; font-size: .9rem; line-height: 1;
    padding: 12px 15px 9px; border-radius: 14px;
    border: 3px solid var(--t9-ink); box-shadow: 5px 5px 0 var(--t9-ink);
    background: #fff; color: var(--t9-ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.t90-home .t90r-btn.is-random { background: var(--t9-yellow); }
.t90-home .t90r-btn.is-radio { background: var(--t9-pink); color: #fff; }
.t90-home .t90r-btn svg { flex: none; margin-top: -3px; }
.t90-home .t90r-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--t9-ink); color: inherit; }
.t90-home .t90r-btn.is-random:hover, .t90-home .t90r-btn.is-ghost:hover { color: var(--t9-ink); background-color: inherit; }
.t90-home .t90r-btn.is-radio:hover { color: #fff; background: var(--t9-pink); }
.t90-home .t90r-btn.is-ghost:hover { background: #fff; }

.t90-home .t90r-quizlink {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 14px;
    box-shadow: 4px 4px 0 var(--t9-ink); padding: 12px 16px;
}
.t90-home .t90r-quizlink small {
    justify-self: start; font-family: var(--t9-display); font-weight: 400; font-size: .68rem; letter-spacing: .05em;
    color: var(--t9-ink); background: var(--t9-teal); border: 2px solid var(--t9-ink); border-radius: 7px;
    padding: 3px 7px 1px; transform: rotate(-2deg); margin-bottom: 4px;
}
.t90-home .t90r-quizlink span { font-weight: 800; }

/* ---- the boombox: illustration + overlays ---- */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-box {
    display: block;
    container-type: inline-size;
    padding: 63.94% 0 0;            /* 1023 / 1600: room for the art; the deck flows below it */
    border: 0; border-radius: 0; box-shadow: none;
    background: url('../images/boombox.webp') center top / 100% auto no-repeat;
    color: #fff;
}

/* cassette reels (radio.css's handle pseudo-elements, repurposed) */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-box::before,
.t90-home :is(.t90r-hero, .t90r-page) .t90r-box::after {
    content: ""; position: absolute; top: 39.25cqw; width: 5.56cqw; height: 5.56cqw;
    right: auto; border: 0; border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%232b2b2b'/%3E%3Ccircle cx='20' cy='20' r='13' fill='none' stroke='%23d9d9d9' stroke-width='3'/%3E%3Cpath d='M20 7v8M20 25v8M7 20h8M25 20h8' stroke='%23d9d9d9' stroke-width='3.5'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23d9d9d9'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-box::before { left: 39.2cqw; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-box::after { left: 55cqw; }
.t90-home :is(.t90r-hero, .t90r-page).is-playing .t90r-box::before,
.t90-home :is(.t90r-hero, .t90r-page).is-playing .t90r-box::after { animation: t9-spin 2.4s linear infinite; }

/* speakers: sound-wave rings over the printed cones */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-spk {
    display: block; position: absolute; top: 29.67cqw; width: 26.2cqw;
    background: none; border: 0; box-shadow: none; pointer-events: none;
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-spk:first-child { left: 1.9cqw; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-spk:last-child { left: 72cqw; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-spk::after {
    inset: 0; background: none; box-shadow: none; opacity: 0;
    border: 4px solid var(--t9-yellow);
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-spk:last-child::after { border-color: var(--t9-teal); }
.t90-home :is(.t90r-hero, .t90r-page).is-playing .t90r-spk::after { animation: t9-wave 1.1s ease-out infinite; }
.t90-home :is(.t90r-hero, .t90r-page).is-playing .t90r-spk:last-child::after { animation-delay: -.4s; }

/* tuner dial → LCD */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-deck {
    position: static;
    display: grid; gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--t9-ink);
    border: 3px solid var(--t9-ink); border-radius: 18px;
    box-shadow: 6px 6px 0 var(--t9-pink);
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-lcd {
    position: absolute;
    left: 26.9cqw; top: 16.9cqw; width: 61.4cqw; height: 7.6cqw;
    padding: 0 1.4cqw;
    border: 2px solid #071518; border-radius: 4px;
    gap: 0; align-content: center;
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-lcd-top { font-size: clamp(8px, 1.75cqw, 13px); line-height: 1; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-status::before { width: .7em; height: .7em; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-lcd-station { font-size: clamp(11px, 2.7cqw, 20px); line-height: 1; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-marquee { font-size: clamp(10px, 2.2cqw, 16px); line-height: 1.05; min-height: 0; }
@container (max-width: 480px) {
    .t90-home :is(.t90r-hero, .t90r-page) .t90r-lcd-top { display: none; }
}

/* spectrum bars: moved onto the boombox's printed EQ strip (offsets are relative to the LCD) */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-eq {
    position: absolute;
    left: 8.4cqw; top: 12.7cqw; width: 29.3cqw; height: 4.09cqw;
    margin: 0; padding: 0 .5cqw; gap: .35cqw;
    background: #2a1670;
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-eq i { background: var(--t9-yellow); opacity: 1; border-radius: 0; }

/* control deck */
.t90-home :is(.t90r-hero, .t90r-page) .t90r-genre {
    font-weight: 800; font-size: .82rem; padding: 7px 12px;
    background: transparent; color: #fff; border: 2px solid #4b3d80;
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-genre:hover { border-color: #fff; background: transparent; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-genre[aria-pressed="true"] { background: var(--t9-yellow); border-color: var(--t9-yellow); color: var(--t9-ink); }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-ib { border-radius: 50%; background: #fff; color: var(--t9-ink); box-shadow: none; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-ib:hover { background: var(--t9-teal); }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-play {
    background: var(--t9-yellow); color: var(--t9-ink);
    border: 3px solid #fff; box-shadow: 4px 4px 0 var(--t9-teal);
}
.t90-home :is(.t90r-hero, .t90r-page) .t90r-play:hover { background: #ffe27a; }
.t90-home :is(.t90r-hero, .t90r-page) .t90r-vol input { accent-color: var(--t9-teal); }
.t90-home .t90-fullradio { justify-self: end; color: var(--t9-yellow); font-weight: 800; font-size: .9rem; }
.t90-home .t90-fullradio:hover { color: #fff; }

@media (max-width: 900px) {
    .t90-home .t90r-hero { grid-template-columns: 1fr; padding: 24px 0 8px; }
    .t90-home .t90r-hero::after { display: none; }
}
@media (max-width: 640px) {
    .t90-home :is(.t90r-hero, .t90r-page) .t90r-deck { padding: 12px; }
    .t90-home .t90-fullradio { justify-self: center; }
    .t90-home .category-pill span { font-size: .88rem; }
}

/* ============================================================
   Radio page (radio-retro.php): boombox + ads above the fold
   ============================================================ */
.t90-radio .t90r-page { margin: 18px 0 48px; gap: 26px; }
.t90-radio-top {
    display: grid;
    grid-template-columns: minmax(0, 570px) 400px;
    justify-content: center;
    gap: 56px;
    align-items: start;
}
.t90-radio-main { min-width: 0; display: grid; gap: 14px; }
.t90-radio .t90r-player { grid-area: auto; min-width: 0; }
.t90-radio .t90r-page-head h1 {
    font-family: var(--t9-display); font-weight: 400; letter-spacing: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; color: var(--t9-ink); margin: 0;
}
.t90-radio .t90r-page-head .t90r-eyebrow { margin-bottom: 10px; }

/* ad column: video on top, 300x250 under it. Space is reserved on the outer box,
   never on .ad-slot itself (UDM sizes its creative from that parent's height). */
.t90-radio-ads { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.t90-ad-box { width: 100%; display: flex; justify-content: center; }
.t90-ad-box > .ad-slot { width: 100%; margin: 0; }
.t90-ad-video { min-height: min(225px, calc((100vw - 32px) * .5625)); }
.t90-ad-300 { min-height: 250px; }
.t90-ad-300 > .ad-slot { width: auto; min-width: 300px; }

/* station screen on the dial: status row / station + song / artist */
.t90-home .t90r-page .t90r-lcd { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.4cqw; align-items: baseline; }
.t90-home .t90r-page .t90r-lcd-top,
.t90-home .t90r-page .t90r-lcd-artist { grid-column: 1 / -1; }
.t90-home .t90r-page .t90r-lcd-station { max-width: 26cqw; color: var(--r-lcd-fg); text-shadow: inherit; font-size: clamp(11px, 2.5cqw, 19px); }
.t90-home .t90r-page .t90r-lcd-songbig { font-size: clamp(11px, 2.5cqw, 19px); line-height: 1; }
.t90-home .t90r-page .t90r-lcd-artist { font-size: clamp(9px, 1.8cqw, 14px); line-height: 1.1; min-height: 0; }
.t90-home .t90r-page .t90r-fav { border-radius: 50%; color: #fff; }
.t90-home .t90r-page .t90r-fav[aria-pressed="true"] { color: var(--t9-pink); }

.t90-radio-intro { margin: 0; max-width: 72ch; font-size: 1.05rem; line-height: 1.55; color: var(--t9-muted); }

/* below the fold: history + quizzes beside the station list */
.t90-radio .t90r-layout { grid-template-areas: "rest stations"; }
.t90-radio .t90r-card {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 16px;
    box-shadow: 6px 6px 0 var(--t9-ink);
}
.t90-radio .t90r-card h2 { font-family: var(--t9-display); font-weight: 400; font-size: 1.2rem; letter-spacing: 0; line-height: 1.2; }
.t90-radio .t90r-tab[aria-pressed="true"] { background: var(--t9-yellow); border-color: var(--t9-ink); color: var(--t9-ink); }
.t90-radio .t90r-qgrid .card { box-shadow: 4px 4px 0 var(--t9-ink); }

@media (max-width: 1100px) {
    .t90-radio-top { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
    .t90-radio-main { width: 100%; max-width: 680px; }
    .t90-radio-ads { width: 100%; max-width: 640px; }
    .t90-ad-video { min-height: min(360px, calc((100vw - 32px) * .5625)); }
}
@media (max-width: 1024px) {
    .t90-radio .t90r-layout { grid-template-areas: "stations" "rest"; }
}

/* radio page, phones: the blinking "Trivia 90s Radio" pill replaces the logo in the header,
   and the page title moves up (no pill above it, less top space) */
.t90-radio-brand { display: none; }
@media (max-width: 640px) {
    .site-logo:has(.t90-radio-brand) img,
    .site-logo:has(.t90-radio-brand) .t90-logo { display: none; }
    .t90-radio-brand {
        display: inline-flex; align-items: center; gap: 8px;
        font-family: var(--t9-display); font-weight: 400; font-size: .95rem; letter-spacing: .05em; line-height: 1;
        background: var(--t9-ink); color: var(--t9-yellow);
        padding: 9px 15px 7px; border-radius: 999px; transform: rotate(-2deg);
    }
    .t90-radio-brand .t90-onair { background: var(--t9-pink); }
    body:has(.t90-radio) main { padding-top: 12px; }
    .t90-radio .t90r-page { margin-top: 0; }
    .t90-radio .t90r-page-head .t90r-eyebrow { display: none; }
}

/* radio page, phones: stations list right after the video ad, 300x250 where the stations were.
   The wrappers become display:contents so their children can be reordered in the page grid. */
@media (max-width: 640px) {
    .t90-radio .t90-radio-top,
    .t90-radio .t90-radio-ads,
    .t90-radio .t90r-layout { display: contents; }
    .t90-radio .t90r-rest,
    .t90-radio .t90r-layout > .t90r-stations { grid-area: auto; min-width: 0; }
    .t90-radio .t90-radio-main { order: 1; }
    .t90-radio .t90-ad-video { order: 2; }
    .t90-radio .t90r-stations { order: 3; }
    .t90-radio .t90-ad-300 { order: 4; }
    .t90-radio .t90-radio-intro { order: 5; }
    .t90-radio .t90r-rest { order: 6; }
    .t90-radio .t90r-about { order: 7; }
}

/* ============================================================
   Quiz page (.t90-quiz) — same markup/JS hooks as quiz.css; only the look changes.
   Keep .quiz-progress + .container adjacent (quiz.css spacing relies on it).
   ============================================================ */
.t90-quiz .quiz-progress {
    top: 67px;                                   /* retro header: 64px + 3px ink border */
    background: #fff;
    border-bottom: 3px solid var(--t9-ink);
    padding: 9px 0;
}
.t90-quiz .progress-bar-track {
    height: 16px; background: var(--t9-cream);
    border: 2.5px solid var(--t9-ink); border-radius: 999px;
}
.t90-quiz .progress-bar-fill {
    border-radius: 999px;
    background: repeating-linear-gradient(-45deg, var(--t9-pink) 0 10px, #ff5fa8 10px 20px);
}
.t90-quiz .progress-text { font-family: var(--t9-display); font-weight: 400; font-size: .85rem; color: var(--t9-ink); min-width: 92px; }
.t90-quiz .progress-text::before { content: "Side A · "; color: var(--t9-pink); }

.t90-quiz .quiz-title {
    font-family: var(--t9-display); font-weight: 400; letter-spacing: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.1; color: var(--t9-ink);
}
.t90-quiz .quiz-meta { color: var(--t9-muted); font-weight: 700; }
.t90-quiz .quiz-meta a { color: var(--t9-purple); }
.t90-quiz .quiz-feature-image {
    border: 3px solid var(--t9-ink); border-radius: 16px; overflow: hidden;
    box-shadow: 6px 6px 0 var(--t9-ink);
}
.t90-quiz .quiz-about { color: var(--t9-muted); }

.t90-quiz .resume-banner {
    background: var(--t9-yellow); color: var(--t9-ink);
    border: 3px solid var(--t9-ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--t9-ink);
}

/* question card */
.t90-quiz .question-card {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 18px;
    box-shadow: 7px 7px 0 var(--t9-ink);
}
.t90-quiz .question-number {
    width: 44px; height: 44px; font-family: var(--t9-display); font-weight: 400; font-size: 1.1rem;
    background: var(--t9-purple); color: #fff; border: 3px solid var(--t9-ink); transform: rotate(-6deg);
}
.t90-quiz .question-text { font-weight: 800; color: var(--t9-ink); }
.t90-quiz .question-image img { border: 3px solid var(--t9-ink); border-radius: 12px; }

/* answers */
.t90-quiz .option-btn {
    border: 3px solid var(--t9-ink); border-radius: 14px; background: #fff; color: var(--t9-ink);
    box-shadow: 4px 4px 0 var(--t9-ink); font-weight: 800;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.t90-quiz .option-btn:hover:not(.answered) {
    border-color: var(--t9-ink); background: #fffbe6;
    transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--t9-ink);
}
.t90-quiz .option-letter {
    font-family: var(--t9-display); font-weight: 400; font-size: .9rem; color: var(--t9-ink);
    background: var(--t9-yellow); border: 2.5px solid var(--t9-ink); border-radius: 9px;
}
.t90-quiz .option-btn:nth-child(2) .option-letter { background: var(--t9-teal); }
.t90-quiz .option-btn:nth-child(3) .option-letter { background: #ff8fc4; }
.t90-quiz .option-btn:nth-child(4) .option-letter { background: #b49cf0; }
.t90-quiz .option-btn.correct,
.t90-quiz .option-btn.answered.correct { background: #2fd17c; border-color: var(--t9-ink); color: var(--t9-ink); opacity: 1; box-shadow: 4px 4px 0 var(--t9-ink); }
.t90-quiz .option-btn.wrong,
.t90-quiz .option-btn.answered.wrong { background: #ff5a5f; border-color: var(--t9-ink); color: var(--t9-ink); opacity: 1; box-shadow: 4px 4px 0 var(--t9-ink); }
.t90-quiz .option-btn.correct .option-letter,
.t90-quiz .option-btn.wrong .option-letter { background: #fff; color: var(--t9-ink); }
.t90-quiz .option-btn.correct .option-icon,
.t90-quiz .option-btn.wrong .option-icon { color: var(--t9-ink); }
.t90-quiz .option-btn.answered:not(.correct):not(.wrong) { box-shadow: none; border-color: #b9b2cf; color: #6b6386; }
.t90-quiz .option-btn.answered:not(.correct):not(.wrong) .option-letter { background: #fff; border-color: #b9b2cf; color: #6b6386; }

/* feedback with a stamp */
.t90-quiz .answer-feedback.show {
    background: var(--t9-ink); color: #fff; border: 0; border-radius: 14px;
    font-size: .95rem; line-height: 1.55;
}
.t90-quiz .answer-feedback.show::before {
    display: inline-block; margin: 0 12px 6px 0; vertical-align: middle;
    font-family: var(--t9-display); font-size: 1.25rem; line-height: 1;
    padding: 5px 10px 2px; border: 3px solid currentColor; border-radius: 10px; transform: rotate(-4deg);
}
.t90-quiz .answer-feedback.correct::before { content: "BOOYAH!"; color: #2fd17c; }
.t90-quiz .answer-feedback.wrong::before { content: "NOT!"; color: #ff5a5f; }

/* buttons */
.t90-quiz .carousel-next-btn,
.t90-quiz .end-quiz-wrap .btn-primary {
    font-family: var(--t9-display); font-weight: 400; font-size: 1.05rem;
    background: var(--t9-yellow); color: var(--t9-ink);
    border: 3px solid var(--t9-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--t9-ink);
}
.t90-quiz .carousel-next-btn:hover,
.t90-quiz .end-quiz-wrap .btn-primary:hover { opacity: 1; background: #ffe27a; color: var(--t9-ink); }
.t90-quiz .carousel-nav .btn,
.t90-quiz .result-actions .btn,
.t90-quiz .resume-actions .btn {
    font-weight: 800; border: 2.5px solid var(--t9-ink); border-radius: 12px;
    box-shadow: 3px 3px 0 var(--t9-ink); background: #fff; color: var(--t9-ink);
}
.t90-quiz .carousel-nav .btn-primary,
.t90-quiz .result-actions .btn-primary { background: var(--t9-pink); color: #fff; }
.t90-quiz .carousel-counter { font-family: var(--t9-display); font-weight: 400; color: var(--t9-ink); }

/* results */
.t90-quiz .quiz-result {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 18px; box-shadow: 7px 7px 0 var(--t9-pink);
}
.t90-quiz .result-score-circle { background: var(--t9-yellow); border: 4px solid var(--t9-ink); box-shadow: 5px 5px 0 var(--t9-ink); }
.t90-quiz .result-score-inner { background: #fff; border: 3px solid var(--t9-ink); }
.t90-quiz .result-score-number { font-family: var(--t9-display); font-weight: 400; color: var(--t9-ink); }
.t90-quiz .result-title { font-family: var(--t9-display); font-weight: 400; letter-spacing: 0; color: var(--t9-ink); }
.t90-quiz .share-btn { border: 2.5px solid var(--t9-ink); box-shadow: 2px 2px 0 var(--t9-ink); }
.t90-quiz .review-item { border: 2.5px solid var(--t9-ink); border-radius: 14px; }
.t90-quiz .review-num { font-family: var(--t9-display); font-weight: 400; border: 2px solid var(--t9-ink); }

/* article + sidebar */
.t90-quiz .article-divider-label { font-family: var(--t9-display); font-weight: 400; color: var(--t9-pink); letter-spacing: .04em; }
.t90-quiz .quiz-article h2 { font-family: var(--t9-display); font-weight: 400; letter-spacing: 0; }
.t90-quiz .quotes-section { background: #fff; border: 3px solid var(--t9-ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--t9-ink); }
.t90-quiz .quotes-section h3 { font-family: var(--t9-display); font-weight: 400; }
.t90-quiz .sidebar-content .section-title { font-size: 1.25rem; }
.t90-quiz .sidebar-quiz-thumb { border: 2.5px solid var(--t9-ink); border-radius: 10px; overflow: hidden; }
.t90-quiz .sidebar-quiz-title { font-weight: 800; }
.t90-quiz .sidebar-quiz-title a { color: var(--t9-ink); }
.t90-quiz .sidebar-quiz-title a:hover { color: var(--t9-purple); }

/* Stacked quizzes: after an answer, quiz-trivia.js reveals the next card (opacity .4 "upcoming")
   with an inline `animation: fadeSlideUp`, which starts at opacity 0, so the card blinks 0.4 -> 0 -> 1.
   Start the reveal from where the card already is instead. Only matches cards the JS animated. */
.t90-quiz .question-card[style*="fadeSlideUp"] { animation-name: t9-reveal !important; }
@keyframes t9-reveal { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
    .t90-quiz .quiz-progress { top: 89px; }          /* header wraps to two rows here */
    .t90-quiz .progress-text { min-width: 0; }
    .t90-quiz .question-card { box-shadow: 5px 5px 0 var(--t9-ink); }
}

/* ============================================================
   Other pages (.t90-page): static pages (about/contact/privacy…), all categories,
   category, search, author, article, 404. Markup unchanged; cards/section titles
   come from the .t90-home rules above.
   ============================================================ */
.t90-page > .container { padding-bottom: 24px; }
.t90-page .section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }

/* static pages: content from the DB inside .quiz-about */
.t90-page .quiz-about {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 18px;
    box-shadow: 7px 7px 0 var(--t9-ink); padding: clamp(18px, 4vw, 34px);
    color: var(--t9-ink); font-size: 1.05rem; line-height: 1.7;
}
.t90-page .quiz-about h2, .t90-page .quiz-about h3 { font-family: var(--t9-display); font-weight: 400; letter-spacing: 0; margin: 1.4em 0 .5em; }
.t90-page .quiz-about h2:first-child, .t90-page .quiz-about h3:first-child { margin-top: 0; }
.t90-page .quiz-about a { color: var(--t9-purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.t90-page .quiz-about ul, .t90-page .quiz-about ol { list-style: revert; padding-left: 1.4em; margin-bottom: 1rem; }
/* contact form (inline-styled in the DB copy, hence !important) */
.t90-page .quiz-about form label { font-weight: 800 !important; }
.t90-page .quiz-about form input:not([type=hidden]):not([name=website]),
.t90-page .quiz-about form textarea {
    border: 3px solid var(--t9-ink) !important; border-radius: 12px !important;
    background: var(--t9-cream) !important; box-shadow: 3px 3px 0 var(--t9-ink);
}
.t90-page .quiz-about form input:focus, .t90-page .quiz-about form textarea:focus { outline: none; background: #fff !important; box-shadow: 4px 4px 0 var(--t9-pink); }
.t90-page .quiz-about form button, .t90-page .quiz-about form input[type=submit] {
    font-family: var(--t9-display) !important; font-weight: 400 !important; font-size: 1rem !important;
    background: var(--t9-yellow) !important; color: var(--t9-ink) !important;
    border: 3px solid var(--t9-ink) !important; border-radius: 14px !important;
    box-shadow: 5px 5px 0 var(--t9-ink) !important; padding: 12px 24px 9px !important; cursor: pointer;
}

/* all categories: big tilted topic tiles */
.t90-allcats .card-grid { gap: 22px; }
.t90-allcats .card-grid .category-pill {
    flex-direction: column; justify-content: center; gap: 12px;
    padding: 22px 14px 18px; text-align: center;
}
.t90-allcats .card-grid .category-pill > img,
.t90-allcats .card-grid .category-pill > div { width: 64px !important; height: 64px !important; font-size: 1.8rem !important; border-width: 3px; }
.t90-allcats .card-grid .category-pill span { font-family: var(--t9-display); font-weight: 400; font-size: 1rem; line-height: 1.2; }

/* load more on category/author pages (plain .btn link) */
.t90-page .load-more-wrap .btn {
    font-family: var(--t9-display); font-weight: 400; font-size: 1.05rem;
    background: var(--t9-teal); color: var(--t9-ink);
    border: 3px solid var(--t9-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--t9-ink); padding: 14px 28px 11px;
}
.t90-page .load-more-wrap .btn:hover { background: var(--t9-yellow); color: var(--t9-ink); }
.t90-page .text-muted { color: var(--t9-muted); }

/* author card */
.t90-page .author-card {
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--t9-ink);
}
.t90-page .author-avatar { width: 64px; height: 64px; border: 3px solid var(--t9-ink); }
.t90-page .author-name { font-family: var(--t9-display); font-weight: 400; font-size: 1.15rem; }
.t90-page .author-label { color: var(--t9-purple); font-weight: 700; }

/* 404 */
.t90-404-box {
    max-width: 640px; margin: 48px auto; text-align: center;
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--t9-pink);
    padding: 34px 24px 30px;
}
.t90-404-code {
    display: inline-block; font-family: var(--t9-display); font-size: clamp(4rem, 14vw, 6.5rem); line-height: 1;
    color: #fff; background: var(--t9-purple); border: 4px solid var(--t9-ink); border-radius: 18px;
    padding: 10px 22px 2px; box-shadow: 6px 6px 0 var(--t9-ink); transform: rotate(-3deg); margin-bottom: 22px;
}
.t90-404-box h1 { font-family: var(--t9-display); font-weight: 400; letter-spacing: 0; font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 10px; }
.t90-404-box p { color: var(--t9-muted); font-size: 1.05rem; }
.t90-404-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.t90-404-btn {
    font-family: var(--t9-display); font-size: 1rem; text-decoration: none; color: var(--t9-ink);
    background: #fff; border: 3px solid var(--t9-ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--t9-ink); padding: 12px 20px 9px;
}
.t90-404-btn.is-random { background: var(--t9-yellow); }
.t90-404-btn:hover { color: var(--t9-ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--t9-ink); }

@keyframes t9-blink { 50% { opacity: .2; } }
@keyframes t9-spin { to { transform: rotate(360deg); } }
@keyframes t9-wave { 0% { transform: scale(.92); opacity: .85; } 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .t90-onair, .t90-home :is(.t90r-hero, .t90r-page) .t90r-box::before, .t90-home :is(.t90r-hero, .t90r-page) .t90r-box::after,
    .t90-home :is(.t90r-hero, .t90r-page) .t90r-spk::after { animation: none !important; }
}
