/* M-213 — the reading room (/read/...) plus its three entry points: the cover-page
   button, the Cover Library card link and the host-page box. Site tokens from
   fmf-global.css; type and colors mirror the Warren pages (fmf-warren.css). */

/* Dark page surface across Kadence's containers (same list as the Warren pages). */
body.fmf-read-page,
body.fmf-read-page .site,
body.fmf-read-page .site-container,
body.fmf-read-page #inner-wrap,
body.fmf-read-page .content-area,
body.fmf-read-page .site-main { background: #0d0d0d; }

.fmf-rd-wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3.5rem;
    color: var(--fm-bone, #E8DCC8);
}
/* Running text keeps the 780px reading measure; only the pages use the full width. */
.fmf-rd-head, .fmf-rd-inside, .fmf-rd-jump, .fmf-rd-rights, .fmf-rd-more, .fmf-rd-foot { max-width: 780px; margin-left: auto; margin-right: auto; }

.fmf-rd-eyebrow {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--fm-amber, #E0A020); margin: 0 0 .4rem;
}
.fmf-rd-title {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: .01em;
    color: var(--fm-red-bright, #e8362a); margin: 0 0 .6rem; text-wrap: balance;
}
.fmf-rd-meta { font-size: .95rem; color: var(--fm-muted, #B5AC9C); margin: 0 0 1rem; }
.fmf-rd-intro { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.25rem; }
.fmf-rd-intro a, .fmf-rd-rights a, .fmf-rd-more a, .fmf-rd-credit a, .fmf-rd-about a, .fmf-rd-pdf-login a {
    color: var(--fm-amber, #E0A020); text-underline-offset: 3px;
}
.fmf-rd-intro a:hover, .fmf-rd-rights a:hover, .fmf-rd-more a:hover, .fmf-rd-credit a:hover, .fmf-rd-about a:hover { color: var(--fm-red-hover, #ff5a4d); }

.fmf-rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 0 0 1rem; }
.fmf-rd-actions .fmf-btn { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.fmf-rd-pdf-login { font-size: .9rem; color: var(--fm-muted, #B5AC9C); }
.fmf-rd-about { margin: 0 0 1.5rem; font-size: .98rem; }

.fmf-rd-h2, .fmf-rd-rights h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500;
    font-size: 1.5rem; letter-spacing: .02em; color: var(--fm-red-bright, #e8362a);
    margin: 2rem 0 .8rem;
}
/* The pills block reuses .fmf-id-tags from the Cover Library CSS; drop its page padding. */
.fmf-rd-inside.fmf-id-tags { padding: 0; background: none; border: 0; }

/* Jump-to-page thumbnails. */
.fmf-rd-jump { margin: 1.5rem auto 2rem; border: 1px solid var(--fm-border, #2A2015); border-radius: 4px; }
.fmf-rd-jump summary {
    cursor: pointer; min-height: 44px; box-sizing: border-box; display: flex; align-items: center;
    padding: .5rem 1rem; font-family: 'Oswald', 'Arial Narrow', sans-serif; letter-spacing: .04em;
    text-transform: uppercase; color: var(--fm-amber, #E0A020);
}
.fmf-rd-jump summary:focus-visible { outline: 3px solid var(--fm-amber, #E0A020); outline-offset: -3px; }
.fmf-rd-jump-grid {
    list-style: none; margin: 0; padding: .75rem 1rem 1rem;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem;
}
.fmf-rd-jump-grid a { display: block; text-decoration: none; color: var(--fm-muted, #B5AC9C); font-size: .78rem; line-height: 1.3; text-align: center; }
.fmf-rd-jump-grid a:hover, .fmf-rd-jump-grid a:focus-visible { color: var(--fm-amber, #E0A020); }
.fmf-rd-jump-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--fm-border, #2A2015); border-radius: 2px; margin-bottom: .25rem; background: #000; }
/* A withheld page's square: says so in words (a bare dash read as a thumbnail still loading). */
.fmf-rd-jump-gap {
    display: grid; place-items: center; aspect-ratio: 3 / 4; margin-bottom: .25rem; padding: .3rem;
    border: 1px solid var(--fm-border, #2A2015); border-left: 3px solid var(--fm-amber, #E0A020); border-radius: 2px;
    background: rgba(201, 134, 10, 0.05); font-size: .68rem; line-height: 1.25; font-style: italic;
}

/* The pages. */
.fmf-rd-page { margin: 0 auto 2.25rem; max-width: 720px; scroll-margin-top: 90px; }
.fmf-rd-page.is-spread { max-width: 1000px; }
.fmf-rd-anchor { display: block; position: relative; top: -90px; }
.fmf-rd-img-a { display: block; background: #000; border: 1px solid var(--fm-border, #2A2015); border-radius: 3px; overflow: hidden; }
.fmf-rd-img-a:focus-visible { outline: 3px solid var(--fm-amber, #E0A020); outline-offset: 2px; }
.fmf-rd-img { display: block; width: 100%; height: auto; }
.fmf-rd-cap { text-align: center; font-size: .88rem; margin: .5rem 0 .3rem; }
.fmf-rd-cap a { color: var(--fm-muted, #B5AC9C); text-decoration: none; }
.fmf-rd-cap a:hover { color: var(--fm-amber, #E0A020); }
.fmf-rd-text { max-width: 720px; margin: 0 auto; font-size: .98rem; line-height: 1.7; }
.fmf-rd-text summary {
    cursor: pointer; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
    color: var(--fm-amber, #E0A020); font-size: .92rem;
}
.fmf-rd-text summary:focus-visible { outline: 3px solid var(--fm-amber, #E0A020); outline-offset: 2px; }
.fmf-rd-text p { margin: 0 0 .8rem; }
.fmf-rd-ocr, .fmf-rd-notext { font-size: .82rem; color: var(--fm-muted, #B5AC9C); font-style: italic; }
.fmf-rd-notext { text-align: center; margin: .2rem 0 0; }
/* Placeholder where a withheld page (or a run of them) would be: the site's note-box look
   (amber left rule + faint amber wash, as .fmf-hh-read / the Cover Library notes). */
.fmf-rd-withheld {
    display: grid; place-items: center; text-align: center; min-height: 160px; padding: 1.5rem;
    border: 1px solid var(--fm-border, #2A2015); border-left: 3px solid var(--fm-amber, #E0A020); border-radius: 3px;
    background: rgba(201, 134, 10, 0.05); color: var(--fm-muted, #B5AC9C);
}
.fmf-rd-withheld strong { color: var(--fm-bone, #E8DCC8); }

/* Footer: second PDF button, scan credit, more issues (reuses .fmf-wp-sections). */
.fmf-rd-foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--fm-border, #2A2015); }
.fmf-rd-credit { font-size: .9rem; color: var(--fm-muted, #B5AC9C); line-height: 1.6; }
.fmf-wp-sections { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--fm-border, #2A2015); }
.fmf-wp-sections-head { font-family: 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-muted, #B5AC9C); margin: 0 0 .6rem; }
.fmf-wp-sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fmf-wp-sections a {
    display: inline-block; min-height: 44px; box-sizing: border-box; line-height: 1.9;
    padding: .35rem .75rem; border: 1px solid var(--fm-border, #2A2015); border-radius: 4px;
    color: var(--fm-amber, #E0A020); text-decoration: none; font-size: .95rem;
}
.fmf-wp-sections a:hover, .fmf-wp-sections a:focus-visible { color: var(--fm-red-hover, #ff5a4d); border-color: var(--fm-red-hover, #ff5a4d); }
.fmf-rd-crumbs { max-width: 780px; margin-left: auto; margin-right: auto; font-size: .85rem; color: var(--fm-muted, #B5AC9C); margin-bottom: 1.5rem; }
.fmf-rd-crumbs a { color: var(--fm-amber, #E0A020); text-decoration: none; }
.fmf-rd-crumbs span[aria-hidden] { margin: 0 .35rem; }

/* Index page. */
.fmf-rd-grid { max-width: 780px; margin: 1rem auto 2rem; }
.fmf-rd-rights p, .fmf-rd-more { font-size: 1.02rem; line-height: 1.75; margin-top: 0; margin-bottom: 1rem; }
/* Cards match the live Cover Library, where the Kadence reset (body.post-type-archive-fm_issue article)
   makes them transparent on the dark page; without it they fell back to --fm-paper and the bone "FM #N" vanished. */
.fmf-read-page .fmf-rd-grid .fmf-cl-card { background: transparent; }
.fmf-read-page .fmf-rd-grid .fmf-cl-date { color: var(--fm-amber); }
.fmf-read-page .fmf-rd-grid .fmf-cl-artist { color: var(--fm-muted); }
/* 21 issues at one full-screen card each was 21 screens of scrolling on a phone: two across,
   like the Cover Library's 2-column view (.fmf-grid-2). */
@media (max-width: 600px) {
    .fmf-cl-grid.fmf-rd-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .75rem; }
}

/* Running count under the index intro (computed from the issue data). */
.fmf-rd-stats {
    font-family: 'Special Elite', 'Courier New', monospace; font-size: .9rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--fm-muted, #B5AC9C); margin: -.25rem 0 0;
}
.fmf-rd-stats span:not([aria-hidden]) { color: var(--fm-amber, #E0A020); }

/* Special issue spotlight (the 1962 Yearbook): a feature band under its magazine's grid, so it
   reads as the 100-page special it is rather than an orphan card at the end of the FM run. */
.fmf-rd-special {
    max-width: 780px; margin: .5rem auto 2.75rem; box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 230px) 1fr; gap: 1.75rem 2rem; align-items: center;
    padding: 1.6rem 1.75rem; border: 1px solid var(--fm-border, #2A2015);
    border-top: 3px solid var(--fm-red-bright, #e8362a); border-radius: 4px;
    background: radial-gradient(ellipse at 0% 0%, rgba(232, 54, 42, .12), transparent 55%),
                radial-gradient(ellipse at 100% 100%, rgba(201, 134, 10, .08), transparent 60%);
}
.fmf-rd-special-cover { position: relative; display: block; }
.fmf-rd-special-cover img {
    display: block; width: 100%; height: auto; border-radius: 2px; background: #000;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .75), 0 0 0 1px var(--fm-border, #2A2015);
    transform: rotate(-2.5deg); transition: transform .25s ease;
}
.fmf-rd-special-cover:hover img { transform: rotate(0) scale(1.02); }
.fmf-rd-special-stamp {
    position: absolute; right: -.6rem; bottom: 1.1rem; transform: rotate(-12deg);
    font-family: 'Special Elite', 'Courier New', monospace; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--fm-red-bright, #e8362a); background: rgba(12, 10, 8, .88);
    border: 2px solid var(--fm-red-bright, #e8362a); border-radius: 3px; padding: .2rem .55rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.fmf-rd-special-title {
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.15rem); line-height: 1.1; letter-spacing: .01em;
    color: var(--fm-red-bright, #e8362a); margin: 0 0 .7rem; text-wrap: balance;
}
.fmf-rd-special-intro { font-size: 1.02rem; line-height: 1.7; margin: 0 0 1.2rem; color: var(--fm-bone, #E8DCC8); }
.fmf-rd-special .fmf-btn { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .fmf-rd-special-cover img { transition: none; } }
@media (max-width: 600px) {
    .fmf-rd-special { grid-template-columns: 1fr; padding: 1.25rem 1.1rem 1.4rem; text-align: center; }
    .fmf-rd-special-cover { max-width: 200px; margin: 0 auto; }
}

/* Back to where the visitor came from (js/fmf-read.js reveals it). */
.fmf-rd-back { margin: .25rem 0 .75rem; font-size: .95rem; }
.fmf-rd-back[hidden] { display: none; }
.fmf-rd-back a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--fm-amber, #E0A020); font-weight: 700; letter-spacing: .03em; text-decoration: none; }
.fmf-rd-back a:hover, .fmf-rd-back a:focus-visible { color: var(--fm-bone, #E8DCC8); text-decoration: underline; text-underline-offset: 3px; }
.fmf-rd-foot .fmf-rd-back { text-align: center; margin: 0 0 1rem; }

/* ── Entry points ─────────────────────────────────────────────── */
/* Cover page hero (single-fm_issue.php). */
.fmf-id-read { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; }
.fmf-id-read-btn { min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; }
.fmf-id-read-note { font-size: .85rem; color: var(--fm-muted, #B5AC9C); }
/* Cover Library card. */
.fmf-cl-readfree {
    display: inline-block; margin-top: .55rem; font-size: .85rem; font-weight: 700; letter-spacing: .04em;
    color: var(--fm-amber, #E0A020); text-decoration: none; min-height: 24px;
}
.fmf-cl-readfree:hover, .fmf-cl-readfree:focus-visible { color: var(--fm-red-hover, #ff5a4d); text-decoration: underline; }
/* Host page box. */
.fmf-hh-read { margin: 1.5rem 0; padding: .9rem 1.1rem; border: 1px solid var(--fm-border, #2A2015); border-left: 3px solid var(--fm-amber, #E0A020); border-radius: 3px; }
.fmf-hh-read-head { font-family: 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--fm-amber, #E0A020); margin: 0 0 .4rem; }
.fmf-hh-read ul { list-style: none; margin: 0; padding: 0; }
.fmf-hh-read li { margin: .2rem 0; }
.fmf-hh-read a { color: var(--fm-bone, #E8DCC8); text-underline-offset: 3px; display: inline-block; min-height: 32px; line-height: 32px; }
.fmf-hh-read a:hover, .fmf-hh-read a:focus-visible { color: var(--fm-red-hover, #ff5a4d); }

@media (max-width: 560px) {
    .fmf-rd-wrap { padding-left: .75rem; padding-right: .75rem; }
    .fmf-rd-intro { font-size: 1.02rem; }
    .fmf-rd-page { margin-bottom: 1.75rem; }
}

/* Index foot: the other Warren magazines with free issues (each magazine has its own index). */
.fmf-rd-shelf { max-width: 780px; margin: 2.5rem auto 1.5rem; padding-top: .25rem; border-top: 1px solid var(--fm-border, #2A2015); }
.fmf-rd-shelf .fmf-rd-h2 { margin-top: 1.5rem; }
.fmf-cl-grid.fmf-rd-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin: 1rem 0 0; }
.fmf-read-page .fmf-rd-shelf-grid .fmf-cl-card { background: transparent; }
.fmf-read-page .fmf-rd-shelf-grid .fmf-cl-date { color: var(--fm-amber); }
/* Warren Vault pages: the free-issues box sits under the article body. */
.fmf-wp-read { margin: 0 0 1.75rem; }
