/* M-201 — Warren Publishing section (/warren-publishing/...) and the Forry bio
   block on his personality hub. Site tokens from fmf-global.css; body font is
   inherited from the theme. Loaded only where fmf_warren_on_page() is true. */

/* Dark page surface across Kadence's containers — the same list the reel
   watch pages use (reel-watch.php). Without it the theme's light paper shows
   through and the bone-colored text disappears. */
body.fmf-warren-page,
body.fmf-warren-page .site,
body.fmf-warren-page .site-container,
body.fmf-warren-page #inner-wrap,
body.fmf-warren-page .content-area,
body.fmf-warren-page .site-main { background: #0d0d0d; }

.fmf-wp-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3.5rem;
    background: #0d0d0d;
    color: var(--fm-bone, #E8DCC8);
}
.fmf-wp-crumbs { font-size: .85rem; color: var(--fm-muted, #B5AC9C); margin: 0 0 1.5rem; }
.fmf-wp-crumbs a { color: var(--fm-amber, #E0A020); text-decoration: none; }
.fmf-wp-crumbs a:hover, .fmf-wp-crumbs a:focus-visible { text-decoration: underline; }
.fmf-wp-crumbs span[aria-hidden] { margin: 0 .35rem; }

.fmf-wp-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-wp-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 1.25rem; text-wrap: balance;
}

/* Running text, shared by the section pages and the Forry bio block. */
.fmf-wp-body, .fmf-wp-bio { font-size: 1.08rem; line-height: 1.75; }
.fmf-wp-body p, .fmf-wp-bio p { margin: 0 0 1.1rem; }
.fmf-wp-body h2, .fmf-wp-bio h2 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500;
    font-size: 1.6rem; letter-spacing: .02em; color: var(--fm-red-bright, #e8362a);
    margin: 2.4rem 0 .8rem; text-wrap: balance; scroll-margin-top: 90px;
}
.fmf-wp-body h3, .fmf-wp-bio h3 {
    font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500;
    font-size: 1.25rem; color: var(--fm-amber, #E0A020);
    margin: 1.8rem 0 .5rem; text-wrap: balance; scroll-margin-top: 90px;
}
.fmf-wp-body ul, .fmf-wp-bio ul { margin: 0 0 1.2rem; padding-left: 1.25rem; }
.fmf-wp-body li, .fmf-wp-bio li { margin-bottom: .55rem; }
.fmf-wp-body a, .fmf-wp-bio a { color: var(--fm-amber, #E0A020); text-underline-offset: 3px; }
.fmf-wp-body a:hover, .fmf-wp-bio a:hover { color: var(--fm-red-hover, #ff5a4d); }
.fmf-wp-body strong, .fmf-wp-bio strong { color: #fff4e0; }
.fmf-wp-xlink { font-size: .95rem; }

/* Figures: covers, cover grids, the cover strip. */
.fmf-wp-fig { margin: 1.6rem 0; }
.fmf-wp-fig-row { display: grid; gap: .6rem; }
.fmf-wp-fig.is-single .fmf-wp-fig-row { grid-template-columns: minmax(0, 340px); justify-content: center; }
.fmf-wp-fig.is-pair .fmf-wp-fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
.fmf-wp-fig.is-grid .fmf-wp-fig-row { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.fmf-wp-fig.is-strip .fmf-wp-fig-row { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.fmf-wp-fig-a { display: block; border: 1px solid var(--fm-border, #2A2015); border-radius: 3px; overflow: hidden; background: #000; }
.fmf-wp-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.fmf-wp-fig.is-single .fmf-wp-img { aspect-ratio: auto; }
.fmf-wp-fig figcaption, .fmf-wp-reel figcaption, .fmf-wp-yt figcaption {
    font-size: .88rem; color: var(--fm-muted, #B5AC9C); margin-top: .5rem; text-align: center; line-height: 1.5;
}
.fmf-wp-fig figcaption a, .fmf-wp-reel figcaption a, .fmf-wp-yt figcaption a { color: var(--fm-amber, #E0A020); }

/* Section cards on the hub. */
.fmf-wp-card { float: right; width: 128px; margin: .3rem 0 .8rem 1.1rem; border: 1px solid var(--fm-border, #2A2015); border-radius: 3px; overflow: hidden; }
.fmf-wp-card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.fmf-wp-body h3 + .fmf-wp-card, .fmf-wp-body h2, .fmf-wp-body h3 { clear: both; }

/* Our reels, inline. Stage/player/badge styles come from fmf-reels.php. */
.fmf-wp-reel { margin: 1.8rem auto; max-width: 360px; }
.fmf-wp-reel .fmf-id-reel-player { width: 100%; height: auto; background: #000; border-radius: 4px; }
.fmf-wp-dur { opacity: .8; }
/* Source credit under sourced images (scans, licensed photos). */
.fmf-wp-credit { display: block; font-size: .75rem; opacity: .75; margin-top: .2rem; }
.fmf-wp-credit a { color: inherit; }
/* Interior pages: show the whole page, never crop to 3:4. */
.fmf-wp-fig.is-page .fmf-wp-fig-row { grid-template-columns: minmax(0, 520px); justify-content: center; }
.fmf-wp-fig.is-page .fmf-wp-img, .fmf-wp-fig.is-pages .fmf-wp-img { aspect-ratio: auto; }
.fmf-wp-fig.is-pages .fmf-wp-fig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 0 auto; }

/* YouTube: thumbnail until clicked, then a youtube-nocookie iframe. */
.fmf-wp-yt { margin: 1.8rem 0; }
.fmf-wp-yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.fmf-wp-yt-btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.fmf-wp-yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmf-wp-yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.fmf-wp-yt-play path:first-child { fill: #c00; opacity: .9; transition: opacity .15s; }
.fmf-wp-yt-btn:hover .fmf-wp-yt-play path:first-child, .fmf-wp-yt-btn:focus-visible .fmf-wp-yt-play path:first-child { opacity: 1; }
.fmf-wp-yt-btn:focus-visible { outline: 3px solid var(--fm-amber, #E0A020); outline-offset: -3px; }
.fmf-wp-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fmf-wp-vlink { font-size: .95rem; }
.fmf-wp-by { color: var(--fm-muted, #B5AC9C); }

/* The titles table on the hub. */
.fmf-wp-table { overflow-x: auto; margin: 0 0 1.4rem; }
.fmf-wp-table table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.fmf-wp-table th, .fmf-wp-table td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--fm-border, #2A2015); vertical-align: top; }
.fmf-wp-table th { font-family: 'Oswald', 'Arial Narrow', sans-serif; font-weight: 500; color: var(--fm-amber, #E0A020); letter-spacing: .03em; }

/* "More from Warren Publishing" footer list on each page. */
.fmf-wp-sections { margin-top: 2.5rem; 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); }

/* Forry's bio block on the personality hub. */
.fmf-wp-bio { max-width: 860px; margin: 0 auto; padding: 1rem 1.5rem 2rem; color: var(--fm-bone, #E8DCC8); }

@media (max-width: 560px) {
    .fmf-wp-card { width: 96px; margin-left: .8rem; }
    .fmf-wp-body, .fmf-wp-bio { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fmf-wp-yt-play path:first-child { transition: none; }
}
