/* ============================================================================
   paper.css — the flat paper design, for the pages outside the app shell
   ============================================================================
   The homepage got redrawn (live.css) and left /radio/, the article template and
   the FAQ behind: dark plates, rounded cards, gradient buttons, drop shadows.
   Following a link from the app landed you in what looked like a different site.

   Loaded AFTER each page's own <style>, the same way live.css loads after
   styles.css. Their layout skeletons are left alone; what is restated here is
   the surface — colour, type, borders, chrome — because that is what makes the
   pages look like each other, and because rewriting three inline stylesheets
   from scratch would be three chances to lose a layout rule nobody remembers.

   One file for all three pages, so the grammar cannot drift between them.
   ============================================================================ */

:root {
    --p:  #f2efe6;   /* paper — the page   */
    --w:  #fffdf7;   /* raised — cards     */
    --s:  #e7e2d6;   /* sunken — hover     */
    --i:  #171714;   /* ink                */
    --m:  #5f5c54;   /* metadata grey      */
    --m2: #45423b;   /* metadata, small    */
    --r:  #b8b2a5;   /* hairline           */
    --pk: #e91e8c;
    --b:  #1747d1;
    --y:  #f2d522;
    --red:#e13b2d;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --paper-shadow: 6px 6px 0 var(--i);
}

/* ---------------------------------------------------------------- ground --- */

body,
body[style] {                       /* faq.html sets background inline */
    background: var(--p) !important;
    color: var(--i);
    font-family: Inter, system-ui, sans-serif;
}

::selection { background: var(--y); color: var(--i); }

/* ---------------------------------------------------------------- header --- */

.header {
    background: var(--p);
    border-bottom: 1px solid var(--i);
    box-shadow: none;
    backdrop-filter: none;
}
.header .logo-text,
.logo-link .logo-text {
    color: var(--i);
    font-size: 19px; font-weight: 800; letter-spacing: -.05em;
}
.nav-link {
    border-radius: 2px;
    color: var(--m2);
    font: 650 13px Inter, system-ui, sans-serif;
    background: none; border: 0;
}
.nav-link:hover { color: var(--i); background: var(--s); }
.nav-link.primary,
.nav-link.nav-link--primary {
    background: var(--i); color: #fff;
    border: 2px solid var(--i); border-radius: 2px;
    font-weight: 750;
}
.nav-link.primary:hover { background: #000; color: #fff; }

/* ------------------------------------------------------------------ type --- */

h1, h2, h3, h4 { color: var(--i); letter-spacing: -.03em; font-weight: 800; }

.article-title,
.hero h1,
.faq-header h1 {
    color: var(--i);
    font-weight: 800; letter-spacing: -.04em;
    background: none; -webkit-text-fill-color: currentColor;
}
.hero p, .faq-header p, .article-excerpt { color: var(--m2); }

.breadcrumb, .breadcrumb span { color: var(--m); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.breadcrumb a { color: var(--m); text-decoration: none; }
.breadcrumb a:hover { color: var(--pk); }

.article-eyebrow,
.article-station,
.article-meta,
.article-meta span,
.related-more { color: var(--m); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* -------------------------------------------------------------- the mark --- */
/* Tags are chips, not pills: square, hairline, lowercase. */
.article-tag,
.search-chip,
.chip-clear {
    background: var(--w); border: 1px solid var(--r); border-radius: 2px;
    color: var(--m2); font: 600 11px var(--mono); letter-spacing: .02em;
    text-transform: lowercase; box-shadow: none;
}
.article-tag:hover, .search-chip:hover { border-color: var(--i); color: var(--i); }

/* --------------------------------------------------------------- buttons --- */

.btn, .action-btn, .listen-btn, .search-btn, .station-cta-btn,
.faq-cta a, .empty-state .btn {
    border: 2px solid var(--i); border-radius: 2px;
    background: var(--w); color: var(--i);
    font: 750 13px/1 Inter, system-ui, sans-serif;
    box-shadow: none; text-transform: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .12s, color .12s;
}
.btn:hover, .action-btn:hover, .listen-btn:hover,
.search-btn:hover, .station-cta-btn:hover {
    background: var(--s); color: var(--i); transform: none; box-shadow: none;
}
.action-btn.play, .station-cta-btn, .search-btn, .btn.primary {
    background: var(--i); color: #fff;
}
.action-btn.play:hover, .station-cta-btn:hover, .search-btn:hover, .btn.primary:hover {
    background: #000; color: #fff;
}

/* ----------------------------------------------------------------- cards --- */

.article-card, .related-card, .faq-item, .faq-toc, .station-cta, .empty-state {
    background: var(--w);
    border: 1px solid var(--i); border-radius: 0;
    box-shadow: none;
}
.article-card:hover, .related-card:hover {
    transform: none; box-shadow: var(--paper-shadow); border-color: var(--i);
}
.article-card .article-image { background: var(--s); border-bottom: 1px solid var(--i); border-radius: 0; }
.article-card .article-image img { border-radius: 0; }
.article-card .article-title { font-size: 17px; line-height: 21px; }
.article-card .article-title a { color: var(--i); text-decoration: none; }
.article-card .article-title a:hover { color: var(--pk); }

.station-cta {
    background: var(--i); color: #fff;
    border: 0;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px,
                       100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.station-cta h3 { color: #fff; }
.station-cta p { color: rgba(255,255,255,.66); }
.station-cta-icon { background: rgba(255,255,255,.1); border-radius: 0; color: var(--y); }
.station-cta-btn { background: var(--y); border-color: var(--y); color: var(--i); }
.station-cta-btn:hover { background: #ffe83b; border-color: #ffe83b; color: var(--i); }

/* ------------------------------------------------------------- pagination --- */

.pagination a, .pagination span {
    border: 1px solid var(--r); border-radius: 2px;
    background: var(--w); color: var(--m2);
    font: 600 12px var(--mono);
}
.pagination a:hover { border-color: var(--i); color: var(--i); background: var(--s); }
.pagination .current { background: var(--i); border-color: var(--i); color: #fff; }
.pagination .disabled { opacity: .4; }

/* ------------------------------------------------------------------ form --- */

.search-box, .search-input {
    background: var(--w); border-radius: 2px; color: var(--i);
    box-shadow: none;
}
.search-box { border: 1px solid var(--i); }
.search-input { border: 0; font: 400 14px Inter, system-ui, sans-serif; }
.search-input::placeholder { color: var(--r); }

/* ---------------------------------------------------------------- footer --- */

.footer {
    background: var(--p); border-top: 3px solid var(--i);
    color: var(--m); font-size: 12px;
}
.footer a { color: var(--i); }

/* ============================================================================
   THE ARTICLE PAGE
   ============================================================================ */

/* The photo leads. Full-bleed inside the column, ink-framed like everything
   else on this site, and given a fixed height so a 4:3 station photo and a
   16:9 one do not change the shape of the page. */
.article-hero {
    margin: 0 0 26px;
    border: 1px solid var(--i);
    background: var(--s);
    overflow: hidden;
    line-height: 0;
}
.article-hero img {
    display: block; width: 100%; height: 340px;
    object-fit: cover;
}

.article-header {
    background: none; border: 0; border-bottom: 3px solid var(--i);
    box-shadow: none; border-radius: 0;
    padding: 0 0 24px; margin-bottom: 28px;
}
.article-title { font-size: 44px; line-height: 46px; }

/* ⚠️ `.article-prose`, NOT `.article-content`: /radio/ uses that same class for
   a CARD BODY, so prose rules under it underlined every title in the grid and
   painted it link-blue. The article template carries both classes. */
.article-prose { color: #3a382f; font-size: 16px; line-height: 26px; }
.article-prose h2 {
    margin: 34px 0 12px; padding-top: 10px;
    border-top: 3px solid var(--i);
    font-size: 26px; line-height: 30px; letter-spacing: -.025em;
}
.article-prose h3 { margin: 24px 0 8px; font-size: 18px; letter-spacing: -.02em; }
.article-prose a { color: var(--b); text-decoration: underline; }
.article-prose a:hover { color: var(--pk); }
.article-prose blockquote {
    border-left: 3px solid var(--pk); background: none;
    padding: 2px 0 2px 18px; margin: 22px 0;
    color: var(--m2); font-style: normal;
}
.article-prose img { border: 1px solid var(--i); border-radius: 0; }

.related-articles h2 {
    padding-top: 10px; border-top: 3px solid var(--i);
    font-size: 26px; letter-spacing: -.025em;
}
.related-card h3 { font-size: 15px; line-height: 19px; }
.related-card p { color: var(--m); font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.related-more a { color: var(--i); }

@media (max-width: 720px) {
    .article-hero img { height: 210px; }
    .article-title { font-size: 30px; line-height: 33px; }
}

/* ============================================================================
   THE FAQ
   ============================================================================ */

.back-link {
    background: none; border: 0; border-radius: 0; padding: 0;
    color: var(--m2); font: 600 12px Inter, system-ui, sans-serif;
    text-decoration: underline;
}
.back-link:hover { color: var(--pk); background: none; }

.faq-header { border-bottom: 3px solid var(--i); padding-bottom: 22px; }
.faq-header h1 { font-size: 44px; line-height: 46px; }

.faq-toc { background: var(--s); border: 1px solid var(--i); border-radius: 0; }
.faq-toc h2 {
    color: var(--i);            /* was --text-primary, i.e. near-white */
    font-size: 15px; letter-spacing: -.01em;
}
.faq-toc a {
    color: var(--m2); border-radius: 0; background: none;
    font: 650 13px Inter, system-ui, sans-serif;
}
.faq-toc a:hover { color: var(--i); background: none; text-decoration: underline; }

/* The section rule belongs to the whole header, not to the title: on the title
   alone it started to the right of the icon and left the row looking snapped. */
.category-header {
    border-bottom: 0; border-top: 3px solid var(--i);
    padding: 10px 0 0; margin-bottom: 18px;
    align-items: baseline;
}
.category-title {
    color: var(--i);            /* was --text-primary, i.e. near-white */
    font-size: 26px; letter-spacing: -.025em;
}
.category-icon { color: var(--pk); font-size: 18px; }

.faq-item {
    background: var(--w); border: 1px solid var(--i); border-radius: 0;
    margin-bottom: 10px; box-shadow: none;
}
.faq-item:hover { transform: none; box-shadow: none; border-color: var(--i); }
.faq-item.active { box-shadow: var(--paper-shadow); }
.faq-question {
    background: none; color: var(--i);
    font: 700 15px/21px Inter, system-ui, sans-serif; letter-spacing: -.01em;
}
.faq-question:hover { background: var(--s); }
.faq-toggle { color: var(--m); }
.faq-answer-content { color: #3a382f; font-size: 14px; line-height: 22px; }
.faq-answer-content strong { color: var(--i); }
.faq-answer-content a { color: var(--b); }
