/* CHL:PUBLISHING T9 / ROUND 2 — shared reader styles for the three new formats.
   Scoped under .pubfmt-page so nothing here can reach the frozen v1.1 blog reader
   (⛔ publishing_article.php carries its own inline identity — never restyled
   from outside). Tokens are local to this file: no global custom properties. */

.pubfmt-page {
    --pubfmt-ink:        #1c1917;
    --pubfmt-ink-soft:   #57534e;
    --pubfmt-rule:       #e7e5e4;
    --pubfmt-accent:     #6d28d9;
    --pubfmt-surface:    #ffffff;
    --pubfmt-surface-alt:#faf9f8;
    --pubfmt-measure:    68ch;

    color: var(--pubfmt-ink);
    background: var(--pubfmt-surface);
    padding: 32px 16px 64px;
}
.pubfmt-wrap { max-width: var(--pubfmt-measure); margin: 0 auto; }
.pubfmt-wrap--wide { max-width: 1100px; }

.pubfmt-eyebrow {
    font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--pubfmt-accent); margin: 0 0 10px; font-weight: 600;
}
.pubfmt-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; }
.pubfmt-byline { color: var(--pubfmt-ink-soft); font-size: 15px; margin: 0 0 24px; }
.pubfmt-meta { color: var(--pubfmt-ink-soft); font-size: 14px; }
.pubfmt-sep { opacity: .5; padding: 0 6px; }

.pubfmt-preview-banner {
    display: flex; gap: 10px; align-items: center;
    border: 1px solid #fbbf24; background: #fffbeb; color: #78350f;
    border-radius: 10px; padding: 10px 14px; margin: 0 auto 24px;
    max-width: var(--pubfmt-measure); font-size: 14px;
}

.pubfmt-prose { font-size: 17px; line-height: 1.7; }
.pubfmt-prose p { margin: 0 0 1.1em; }
.pubfmt-prose h2 { font-size: 24px; margin: 1.8em 0 .6em; }
.pubfmt-prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.pubfmt-prose img { max-width: 100%; height: auto; }

.pubfmt-empty {
    border: 1px dashed var(--pubfmt-rule); border-radius: 12px;
    padding: 32px; text-align: center; color: var(--pubfmt-ink-soft);
}

/* ── Podcast ─────────────────────────────────────────────────────────────── */
.pubfmt-pod-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.pubfmt-pod-art {
    width: 140px; height: 140px; flex: 0 0 140px; border-radius: 12px;
    object-fit: cover; background: var(--pubfmt-surface-alt);
}
.pubfmt-pod-player { margin: 0 0 20px; }
.pubfmt-pod-audio { width: 100%; }
.pubfmt-pod-player--link { border: 1px solid var(--pubfmt-rule); border-radius: 12px; padding: 16px; }
.pubfmt-pod-launch {
    display: inline-flex; align-items: baseline; gap: 10px;
    font-weight: 600; color: var(--pubfmt-accent); text-decoration: none;
}
.pubfmt-pod-launch:hover { text-decoration: underline; }
.pubfmt-pod-launch-host { font-weight: 400; font-size: 13px; color: var(--pubfmt-ink-soft); }
.pubfmt-pod-launch-note { margin: 8px 0 0; font-size: 13px; color: var(--pubfmt-ink-soft); }

.pubfmt-ep-list { list-style: none; margin: 0; padding: 0; }
.pubfmt-ep-item { border-top: 1px solid var(--pubfmt-rule); padding: 18px 0; }
.pubfmt-ep-item:last-child { border-bottom: 1px solid var(--pubfmt-rule); }
.pubfmt-ep-link { font-size: 19px; font-weight: 600; color: var(--pubfmt-ink); text-decoration: none; }
.pubfmt-ep-link:hover { color: var(--pubfmt-accent); }
.pubfmt-ep-meta { margin: 6px 0 0; font-size: 13px; color: var(--pubfmt-ink-soft); }
.pubfmt-pod-chapter { margin: 0 0 .4em; }
.pubfmt-pod-chapter-at, .pubfmt-pod-cue-at {
    font-variant-numeric: tabular-nums; font-size: 13px;
    color: var(--pubfmt-accent); font-weight: 600;
}
.pubfmt-pod-cue { margin: 0 0 .5em; }
.pubfmt-pod-cue-speaker { color: var(--pubfmt-ink); }
.pubfmt-pod-divider { border: 0; border-top: 1px solid var(--pubfmt-rule); margin: 1.6em 0; }

/* ── Poetry (structure only; Designs own the typography) ─────────────────── */
/* THE VERSE FIDELITY FLOOR (Round 3). These four rules are the whole reason a
   poem survives the web, and they belong HERE, not in a Design, so that the
   plain reader and all three Designs are equally faithful:
     1. `white-space: pre-wrap` — the renderer escapes line text but HTML still
        collapses runs of spaces, so a caesura written as "he said    nothing"
        silently became one space before this rule existed. pre-wrap keeps
        interior spacing EXACTLY and still wraps an over-long line.
     2. the line stays `inline` — the <br> between lines is the single break
        authority (copy-paste, screen readers and CSS then agree). ⛔ A Design
        must NEVER set `display:block` on a line or hide the <br>: either one
        makes the break depend on CSS loading.
     3. `tab-size` is pinned so a tab that reached the text renders the same
        width everywhere.
     4. indentation is `padding-left` in `ch` so it scales with the type size
        of whichever Design is applied. */
.pubfmt-verse { margin: 0 0 1.6em; }
.pubfmt-verse-line { display: inline; white-space: pre-wrap; tab-size: 4; -moz-tab-size: 4; }
.pubfmt-verse-line--blank { display: inline-block; height: 0; white-space: normal; }
.pubfmt-verse-indent-1 { padding-left: 2ch; }
.pubfmt-verse-indent-2 { padding-left: 4ch; }
.pubfmt-verse-indent-3 { padding-left: 6ch; }
.pubfmt-verse-indent-4 { padding-left: 8ch; }
.pubfmt-verse-indent-5 { padding-left: 10ch; }
.pubfmt-verse-indent-6 { padding-left: 12ch; }
.pubfmt-verse-indent-7 { padding-left: 14ch; }
.pubfmt-verse-indent-8 { padding-left: 16ch; }
.pubfmt-epigraph { margin: 0 0 1.6em; padding-left: 1.2em; border-left: 2px solid var(--pubfmt-rule); font-style: italic; }
.pubfmt-epigraph-cite { font-style: normal; font-size: 14px; color: var(--pubfmt-ink-soft); }
.pubfmt-dedication { font-style: italic; color: var(--pubfmt-ink-soft); margin: 0 0 1.6em; }
.pubfmt-poem-note { font-size: 14px; color: var(--pubfmt-ink-soft); margin: 2em 0 0; }
.pubfmt-poem-section { border: 0; border-top: 1px solid var(--pubfmt-rule); width: 60px; margin: 2em auto; }
.pubfmt-poem-section-label { text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--pubfmt-ink-soft); }
.pubfmt-poem-figure { margin: 2em 0; }
.pubfmt-poem-figure img { max-width: 100%; height: auto; border-radius: 8px; }
.pubfmt-poem-figure figcaption { font-size: 13px; color: var(--pubfmt-ink-soft); margin-top: 8px; }

.pubfmt-poem-card { border-top: 1px solid var(--pubfmt-rule); padding: 18px 0; }
.pubfmt-poem-card:last-child { border-bottom: 1px solid var(--pubfmt-rule); }
.pubfmt-poem-card-title { font-size: 20px; margin: 0 0 4px; }
.pubfmt-poem-card-title a { color: var(--pubfmt-ink); text-decoration: none; }
.pubfmt-poem-card-title a:hover { color: var(--pubfmt-accent); }

/* ── Sequential Art ──────────────────────────────────────────────────────── */
.pubfmt-seq-stage {
    background: #0c0a09; border-radius: 12px; padding: 16px;
    display: flex; justify-content: center; align-items: center; min-height: 40vh;
}
.pubfmt-seq-stage img { max-width: 100%; max-height: 82vh; height: auto; display: block; }
.pubfmt-seq-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 14px auto 0; max-width: 1100px;
}
.pubfmt-seq-btn {
    border: 1px solid var(--pubfmt-rule); background: var(--pubfmt-surface);
    border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer;
    color: var(--pubfmt-ink); text-decoration: none;
}
.pubfmt-seq-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pubfmt-seq-count { font-variant-numeric: tabular-nums; color: var(--pubfmt-ink-soft); font-size: 14px; }
.pubfmt-seq-vertical { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pubfmt-seq-vertical img { max-width: 100%; height: auto; }
.pubfmt-seq-caption { max-width: var(--pubfmt-measure); margin: 14px auto 0; font-size: 14px; color: var(--pubfmt-ink-soft); }
.pubfmt-seq-issue-card { border: 1px solid var(--pubfmt-rule); border-radius: 12px; overflow: hidden; }
.pubfmt-seq-issue-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.pubfmt-seq-issue-body { padding: 14px; }
.pubfmt-seq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.pubfmt-seq-dir {
    display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--pubfmt-accent);
    border: 1px solid var(--pubfmt-rule); border-radius: 999px; padding: 3px 10px;
}

@media (max-width: 640px) {
    .pubfmt-pod-head { flex-direction: column; }
    .pubfmt-pod-art { width: 100%; height: auto; aspect-ratio: 1/1; flex: none; }
}
