/* ── Publications (/guides, /news, /experts, listings, tags, authors) ────────
   Server-rendered by resources/views/publications. The frame, hero type and
   rail bands are borrowed from selection-page.css + home.css, which these
   pages load; authored prose uses the shared .cms-content block
   (components.css). Only the article's own furniture lives here. */

/* One frame for everything — crumbs, hero, text, rails — the live /a/{slug}
   page's 1200px. Text runs the full frame like the rails (owner, 2026-12-01:
   a narrower text column read as a page of two widths). */
.pub-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.pub-kicker {
    margin: 0 0 10px;
    color: var(--pink-highlight);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pub-draft-banner {
    max-width: 1200px;
    margin: 12px auto 0;
    padding: 0 16px;
}

.pub-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 16px 0 0;
    color: var(--text-light);
    font-size: var(--fs-md);
}
.pub-byline a { color: var(--text-color); font-weight: 600; text-decoration: none; }
.pub-byline a:hover { color: var(--pink-highlight); }
.pub-byline-sep { color: var(--border-color); }

/* An initials circle or the person's photo: sized off the text it sits in. */
.pub-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.4em;
    height: 2.4em;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pink-highlight-pale);
    color: var(--pink-highlight);
    font-weight: 700;
    font-size: var(--fs-sm);
}
.pub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-avatar-lg { font-size: var(--fs-xl); }
/* The person card's photo: ~110px, not the byline's 48; the initials stay
   display size inside it. */
.pub-author-box .pub-avatar-lg { font-size: var(--fs-3xl); width: 3.6em; height: 3.6em; }

/* Publication crumbs are grey and plain, not the catalogue's underlined pink
   (.filter-breadcrumb). */
.sel-hub-crumbs .filter-crumb-back,
.sel-hub-crumbs .filter-crumb-current { color: var(--text-light); text-decoration: none; }
@media (hover: hover) {
    .sel-hub-crumbs .filter-crumb-back:hover { color: var(--text-color); }
}

.pub-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 16px 0 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);   /* the product card's .separator-line */
}
/* The date and views glyphs are decoration beside their text: the pale icon token. */
.page-publication .product-seen-meta > svg { color: var(--icon-faint); }
.pub-figure { margin: 24px 0; }
.pub-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}
.pub-figure figcaption {
    margin-top: 8px;
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.pub-credit { white-space: normal; }
.sel-page-hero-media figcaption {
    margin-top: 6px;
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.pub-body > * + * { margin-top: 20px; }
.pub-body h2 { margin: 32px 0 0; font-size: var(--fs-xl); font-weight: 600; line-height: 1.3; scroll-margin-top: 80px; }
.pub-body h3 { margin: 24px 0 0; font-size: 1.125em; font-weight: 600; line-height: 1.35; scroll-margin-top: 80px; }
/* Body text as the live /a page's copy (.sel-page-intro): 16px on 1.6, 18px on
   a phone. h2 matches the rail headings (.sel-page-actions-title, 20px/600);
   h3 sits between them — 18px, 19px on a phone — never below the body text.
   The FAQ's questions and answers follow the body size, not FaqList's smaller
   homepage scale. */
.pub-body .cms-content { line-height: 1.6; }
.pub-faq .faq-item p { font-size: inherit; line-height: inherit; color: var(--text-color); }
@media (max-width: 820px) {
    .pub-body .cms-content,
    .pub-faq .faq-q { font-size: 1.125em; }
    .pub-body h3 { font-size: 1.1875em; }
    .pub-body .cms-content h3 { font-size: 1.0625em; }
}
.pub-body .cms-content > :last-child { margin-bottom: 0; }

/* A numbered question: the number on the question's first line, the question
   hanging beside it so a wrapped line starts under its first word. */
.pub-qa-q {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
}
.pub-qa-num {
    flex: 0 0 auto;
    min-width: 1.4em;
    color: var(--pink-highlight);
    font-weight: 700;
}

.pub-toc {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-sunken);
}
.pub-toc-title { margin: 0 0 6px; font-weight: 700; }
.pub-toc ol { margin: 0; padding-left: 20px; }
.pub-toc li { margin: 4px 0; }
.pub-toc .pub-toc-sub { margin-left: 16px; list-style: circle; }
.pub-toc a { color: var(--text-color); }
.pub-toc a:hover { color: var(--pink-highlight); }

.pub-proscons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.pub-proscons-title { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xl); }
.pub-proscons-col {
    padding: 14px 18px;
    border-radius: var(--radius-md);
}
.pub-proscons-col h3 { margin: 0 0 8px; font-size: var(--fs-lg); }
.pub-proscons-col ul { margin: 0; padding-left: 20px; }
.pub-proscons-col li { margin: 4px 0; }
.pub-pros { background: var(--pill-green-bg); color: var(--pill-green-text); }
.pub-cons { background: var(--pill-red-bg); color: var(--pill-red-text); }

.pub-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pub-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.pub-table caption { padding: 10px 12px 0; text-align: left; font-weight: 700; }
.pub-table th,
.pub-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.pub-table thead th { background: var(--surface-sunken); }
.pub-table tbody tr:last-child > * { border-bottom: 0; }

/* A pull quote on a tinted card with a large opening quote mark. The mark is
   generated text, not an icon (the block is server markup under v-pre, where
   <app-icon> cannot mount); the "/ ''" alt keeps screen readers from reading it.
   The border and the card are the editor's picks when set (--pub-quote-accent,
   --pub-quote-bg on the element). The attribution is the grey text token,
   never the accent: an accent picked pale would take the name below AA, and
   pink there shouted over the quote. Inset from both sides of
   the text column, on every width, so it reads as set apart from the prose. */
.pub-quote {
    margin: 32px clamp(16px, 8%, 96px);
    padding: 24px 32px 28px;
    background: var(--pub-quote-bg, var(--bg-light));
    border-left: 4px solid var(--pub-quote-accent, var(--pink-highlight));
    border-radius: var(--radius-lg);
}
.pub-quote::before {
    content: "\201C" / "";
    display: block;
    height: 0.5em;
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5em;
    font-weight: 700;
    line-height: 1;
    color: var(--pub-quote-accent, var(--pink-highlight));
    opacity: 0.3;
}
.pub-quote p { margin: 0; color: var(--text-color); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.35; }
.pub-quote footer { margin-top: 14px; color: var(--text-light); font-size: var(--fs-md); font-weight: 600; }
.pub-quote footer a { color: inherit; }

/* The FAQ block's Columns setting: side by side from the md step up; a phone
   always gets one column. Each .pub-faq-col is an independent stack. */
@media (min-width: 769px) {
    .pub-faq-list--cols2,
    .pub-faq-list--cols3 { display: grid; column-gap: 32px; align-items: start; }
    .pub-faq-list--cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pub-faq-list--cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pub-embed-yt {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--text-color);
    cursor: pointer;
}
.pub-embed-yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.pub-embed-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background: var(--pink-highlight);
    color: var(--surface);
    transform: translate(-50%, -50%);
}
.pub-embed-yt iframe { width: 100%; height: 100%; border: 0; }

.pub-author-box {
    display: grid;
    gap: 20px 32px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
}
/* With a bio (or credentials) the card splits: who they are on the left, their
   story on the right; the facts strip runs under both. */
@media (min-width: 769px) {
    .pub-author-box--bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .pub-author-box-facts { grid-column: 1 / -1; }
}
.pub-author-box-head { display: flex; gap: 18px; min-width: 0; }
.pub-author-box-body { min-width: 0; flex: 1; }
.pub-author-box-label { margin: 0 0 4px; color: var(--text-light); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.06em; }
.pub-author-box-name { margin: 0; font-size: var(--fs-xl); font-weight: 700; }
.pub-author-box-name a { color: var(--text-color); text-decoration: none; }
.pub-author-box-name a:hover { color: var(--pink-highlight); }
.pub-author-box-role { margin: 2px 0 0; color: var(--text-light); }
.pub-author-box-links,
.pub-author-box-creds { margin: 12px 0 0; padding: 0; list-style: none; }
.pub-author-box-more { margin: 12px 0 0; font-weight: 600; }
.pub-author-box-more a { color: var(--pink-highlight); text-decoration: none; }
.pub-author-box-more a:hover { text-decoration: underline; }
.pub-author-box-bio { min-width: 0; align-self: center; }
.pub-author-box-bio p { margin: 0; line-height: 1.6; }
.pub-author-box-bio p + .pub-author-box-creds { margin-top: 14px; }
.pub-author-box-bio > :first-child { margin-top: 0; }
/* The facts as a strip of cells, value over label, on white against the tint. */
.pub-author-box-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 0;
}
.pub-author-box-facts > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
}
.pub-author-box-facts dt { color: var(--text-light); font-size: var(--fs-sm); }
.pub-author-box-facts dd { margin: 0; color: var(--text-color); font-size: var(--fs-lg); font-weight: 700; }

.pub-catlinks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pub-catlinks a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
}
.pub-catlinks a:hover { border-color: var(--pink-highlight); }
.pub-catlinks-name { font-weight: 700; }
.pub-catlinks-count { color: var(--text-light); font-size: var(--fs-md); }
.pub-catlinks-go { margin-top: auto; color: var(--pink-highlight); font-weight: 600; font-size: var(--fs-md); }

.pub-banner {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--text-color);
    color: var(--surface);
}
.pub-banner-eyebrow { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.pub-banner-title { margin: 0; font-size: var(--fs-2xl); line-height: 1.25; }
.pub-banner-text { margin: 8px 0 16px; }

.pub-tags {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 28px;
    color: var(--text-light);
}
.pub-tags > svg { flex: none; align-self: center; color: var(--icon-faint); }
.pub-tags a { color: var(--text-color); }
.pub-tags a:hover { color: var(--pink-highlight); }

.pub-list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
}
.pub-tile-meta { color: var(--text-light); font-size: var(--fs-xs); }
/* On a card the category and the date are labels under the subtitle's 15px, not beside it. */
.sel-tile .pub-kicker { font-size: var(--fs-2xs); }

.pub-progress {
    position: fixed;
    top: 0;
    left: 0;
    /* `top` follows the sticky header's lower edge (selection-page.js). Layered
       above it too, so a header shadow never covers the bar; under every modal. */
    z-index: calc(var(--z-modal-backdrop) - 1);
    width: 100%;
    height: 3px;
    background: var(--pink-highlight);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .pub-progress { display: none; }
}

.pub-gate {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 16px;
    text-align: center;
}
.pub-gate form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

@media (max-width: 600px) {
    .pub-proscons { grid-template-columns: minmax(0, 1fr); }
    .pub-author-box { padding: 20px; }
    .pub-author-box-head { flex-direction: column; }
    .pub-quote { padding: 20px 20px 24px; }
    .pub-quote p { font-size: var(--fs-xl); }
    /* The share buttons split the row between them, centred. */
    .pub-share { justify-content: center; }
    .pub-share > .btn-neutral { flex: 1 1 0; }
}

/* A rail block with "Save to list": its heading already opens the band with a
   rule, so the count row under it does not draw a second one (the /a page has
   no heading there, which is why .sel-page-actions carries its own). */
.sel-page-section + .sel-page-actions {
    border-top: 0;
    margin-top: 0;
    padding-top: 6px;
}

/* A block's background band: the Selections section background (solid or
   gradient, set in the editor), boxed — a rounded panel on the 1200px frame —
   or full width, edge to edge with the text kept on the frame. */
.pub-band { margin: 28px 0; padding: 28px 0; }
.pub-band--boxed {
    max-width: 1168px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
}
.pub-band--boxed > .pub-article { padding: 0 24px; }
/* The band's padding is its top edge: a heading opening it drops its own margin. */
.pub-band .pub-body > :first-child,
.pub-band .pub-body > :first-child > :first-child { margin-top: 0; }
@media (max-width: 1200px) {
    .pub-band--boxed { margin-left: 16px; margin-right: 16px; }
}
