/* ============================================================
   pages.css — page-specific composition only.
   ============================================================ */

/* ============================================================
   ARTICLE
   ============================================================ */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--c-accent);
    z-index: calc(var(--z-header) + 1);
    transition: width 80ms linear;
}

.article-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    color: var(--c-white);
    background: var(--c-ink);
    isolation: isolate;
    overflow: hidden;
}
.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .9) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .6) 100%);
}
.article-hero__inner { padding-block: var(--s-12) var(--s-9); width: 100%; }
.article-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-5);
    margin-bottom: var(--s-5);
}
.article-hero__title { color: var(--c-white); max-width: 900px; margin: var(--s-5) 0; }
.article-hero__meta { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.article-hero__actions { display: flex; gap: var(--s-2); flex-shrink: 0; }
.article-hero .author-line__name { color: var(--c-white); }
.article-hero .author-line__role { color: var(--c-on-dark-soft); }

/* Action rail | the article | the sidebar. Losing the old reading-width
   cap is deliberate: the shell now fills the container so there is room
   for a third column, and .prose already holds the measure at 68ch. */
.article-shell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 320px);
    gap: var(--s-8);
    /* The hero above is a --container-narrow block. Widening the shell by
       exactly one rail-plus-gap on each side puts the article column's
       left edge on the hero title's, so the headline and the story it
       belongs to share a margin at every desktop width. */
    max-width: calc(var(--container-narrow) + (56px + var(--s-8)) * 2);
    margin-inline: auto;
    padding-block: 72px;
    align-items: start;
}
.article-rail {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    align-items: center;
}
.article-rail__group { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.article-rail__count { font-size: 12px; color: var(--c-text-meta); }

/* The featured photograph, boxed at the head of the article rather than
   bled behind the title. */
.article-figure { margin: 0 0 var(--s-8); }
.article-figure__media {
    border-radius: var(--r-lg);
    background: var(--c-grey-100);
    box-shadow: var(--c-shadow-md);
}
.article-figure__caption {
    margin-top: var(--s-3);
    font-size: var(--fs-xs);
    line-height: 1.6;
    color: var(--c-text-meta);
}

/* --- Article body typography ------------------------------ */
.prose {
    font-size: var(--fs-article);
    line-height: var(--lh-article);
    color: var(--c-ink);
}
.prose > p { margin: 0 0 28px; max-width: 68ch; }
.prose h2 { font-size: var(--fs-h3); margin: 48px 0 20px; }
.prose h3 { font-size: var(--fs-h4); margin: 40px 0 16px; }
.prose h4 { font-size: var(--fs-h5); margin: 32px 0 14px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; font-weight: var(--fw-medium); }
@media (hover: hover) { .prose a:hover { color: var(--c-grey-600); } }
.prose img, .prose figure img {
    border-radius: var(--r-md);
    width: 100%;
    filter: var(--img-filter);
}
/* No hover effect on body images on purpose: they sit directly in the text
   with nothing to clip them, so a zoom would spill over the column. */
.prose figure { margin: 40px 0; }
.prose figcaption {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--c-text-meta);
    text-align: center;
    margin-top: 12px;
}
.prose blockquote {
    margin: 40px 0;
    padding-left: 28px;
    border-left: 4px solid var(--c-accent);
    font-size: 20px;
    font-weight: var(--fw-medium);
    font-style: italic;
    line-height: 1.6;
}
.prose ul, .prose ol { margin: 0 0 28px; padding-left: 26px; max-width: 68ch; }
.prose li { list-style: none; position: relative; margin-bottom: 12px; }
.prose ul > li::before {
    content: '';
    position: absolute;
    left: -20px; top: .7em;
    width: 6px; height: 6px;
    border-radius: var(--r-circle);
    background: var(--c-accent);
}
.prose ol { counter-reset: prose-ol; }
.prose ol > li { counter-increment: prose-ol; }
.prose ol > li::before {
    content: counter(prose-ol) '.';
    position: absolute;
    left: -26px;
    font-weight: var(--fw-bold);
}
.prose hr { margin: 48px 0; }
.prose code {
    background: var(--c-grey-100);
    border-radius: var(--r-xs);
    padding: 2px 6px;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre {
    background: var(--c-black);
    color: var(--c-white);
    border-radius: var(--r-md);
    padding: var(--s-6);
    overflow-x: auto;
    margin: 32px 0;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose table { margin: 32px 0; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--c-grey-50); font-weight: var(--fw-semibold); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-md); margin: 32px 0; }

.article--dropcap > p:first-of-type::first-letter {
    float: left;
    font-size: 64px;
    line-height: .9;
    font-weight: var(--fw-black);
    margin: 4px 8px 0 0;
}

/* Author card */
.author-card {
    background: var(--c-bg-alt);
    border-radius: var(--r-lg);
    padding: var(--s-7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
    position: relative;
    margin-top: var(--s-8);
}
.author-card__bio { font-size: 15px; line-height: 1.8; color: var(--c-text-soft); max-width: 520px; }
.author-card__follow { position: absolute; top: var(--s-6); right: var(--s-6); }

/* Share row */
.share-row {
    margin-top: var(--s-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}
.share-row__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.share-row__link {
    width: 48px; height: 48px;
    border-radius: var(--r-circle);
    border: 1px solid var(--c-border);
    display: grid;
    place-items: center;
    font-size: 16px;
    transition: all var(--t-fast) var(--e-out);
}
@media (hover: hover) { .share-row__link:hover { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); } }

/* Comments */
.comments { margin-top: var(--s-11); }
.comments__composer { display: flex; gap: var(--s-4); margin-bottom: var(--s-8); }
.comments__composer .textarea { min-height: 120px; }
.comment { display: flex; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--c-border); }
.comment__body { min-width: 0; flex: 1; }
.comment__head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: 6px; }
.comment__name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.comment__time { font-size: 12px; color: var(--c-text-meta); }
.comment__text { font-size: 15px; line-height: 1.7; color: var(--c-text); }
.comment__actions { display: flex; gap: var(--s-4); margin-top: var(--s-3); }
.comment__replies { margin-left: 56px; padding-left: var(--s-5); border-left: 1px solid var(--c-border); }
.comments__prompt {
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--s-7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
}

/* Prev / next strip */
.prevnext {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: var(--s-6);
    margin-top: var(--s-11);
    padding-top: var(--s-7);
    border-top: 1px solid var(--c-border);
}
.prevnext__rule { background: var(--c-border); }
.prevnext__label { font-size: var(--fs-xs); color: var(--c-text-meta); margin-bottom: var(--s-2); display: inline-flex; align-items: center; gap: 6px; }
.prevnext__title { font-size: 16px; font-weight: var(--fw-semibold); line-height: 1.45; }
.prevnext__next { text-align: right; }

/* ============================================================
   LISTING / SIDEBAR
   ============================================================ */
.results-count { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-soft); margin-bottom: var(--s-6); }

.view-toggle { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: 3px; }
.view-toggle__btn {
    width: 38px; height: 38px;
    border-radius: var(--r-pill);
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--c-grey-500);
}
.view-toggle__btn.is-active { background: var(--c-accent); color: var(--c-on-accent); }

.results.is-list { grid-template-columns: 1fr; }

.widget { min-width: 0; }
.widget__title { color: var(--c-heading); }
.widget__title {
    font-size: var(--fs-h5);
    margin-bottom: var(--s-5);
    padding-bottom: var(--s-3);
    border-bottom: 2px solid var(--c-accent);
}
.ad-slot {
    border: 1.5px dashed var(--c-grey-300);
    border-radius: var(--r-md);
    min-height: 250px;
    display: grid;
    place-items: center;
    font-size: var(--fs-xs);
    color: var(--c-grey-500);
    text-align: center;
    background: var(--c-grey-50);
    opacity: .8;
}

/* ============================================================
   AUTHOR PROFILE HEAD
   ============================================================ */

/* A flex column with one gap, rather than a margin on each child: that is
   what stops the meta line from sitting flush against the name when one
   utility class happens to be missing. */
.author-head {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--s-3);
    padding-bottom: var(--s-9);
}
.author-head__avatar {
    border: 4px solid var(--c-bg);
    box-shadow: var(--c-shadow-sm);
    margin-bottom: var(--s-2);
}
.author-head__name {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    letter-spacing: var(--ls-h2);
}
.author-head__bio {
    color: var(--c-text-soft);
    max-width: 560px;
    margin: 0;
}
.author-head__stats {
    display: flex;
    justify-content: center;
    gap: var(--s-8);
    margin-top: var(--s-3);
}
.author-head__stat-value {
    font-size: 20px;
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin: 0;
}
.author-head__stat-label {
    font-size: 12px;
    color: var(--c-text-meta);
    margin: 0;
}
.author-head__socials { justify-content: center; margin-top: var(--s-2); }

@media (max-width: 575px) {
    .author-head { margin-top: -48px; }
    .author-head__stats { gap: var(--s-6); }
}

/* Category hero band */
.cat-hero {
    position: relative;
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--c-white);
    background: var(--c-ink);
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--s-9);
}
.cat-hero__media { position: absolute; inset: 0; z-index: -2; }
.cat-hero__media .photo { width: 100%; height: 100%; object-fit: cover; }
.cat-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .62); }
.cat-hero__title { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); color: var(--c-white); }
.cat-hero__desc { margin-top: var(--s-4); color: var(--c-on-dark-soft); max-width: 640px; margin-inline: auto; }

/* Filter panel */
.filter-wrap { position: relative; }
.filter-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 720px;
    max-width: calc(100vw - 32px);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--c-shadow-lg);
    padding: var(--s-7);
    z-index: var(--z-dropdown);
    display: none;
    text-align: left;
}
.filter-panel.is-open { display: block; }
.filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    margin-bottom: var(--s-6);
}
.filter-group + .filter-group { margin-top: 28px; }
.filter-group__label { margin-bottom: var(--s-3); }
.filter-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-border);
}
.filter-count { font-size: var(--fs-xs); color: var(--c-text-meta); }
.applied-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }

/* Search page card */
.search-band { position: relative; min-height: 320px; background: var(--c-ink); isolation: isolate; overflow: hidden; }
.search-band__media { position: absolute; inset: 0; z-index: -2; }
.search-band__media .photo { width: 100%; height: 100%; object-fit: cover; }
.search-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .6); }
.search-card {
    background: var(--c-white);
    border-radius: var(--r-xl);
    box-shadow: var(--c-shadow-lg);
    padding: var(--s-7);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.search-card__title { font-size: var(--fs-h5); margin-bottom: var(--s-5); }
.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    box-shadow: var(--c-shadow-md);
    padding: var(--s-2);
    z-index: var(--z-dropdown);
    display: none;
    max-height: 380px;
    overflow-y: auto;
}
.search-suggest.is-open { display: block; }
.search-suggest__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--r-xs);
    width: 100%;
    text-align: left;
}
.search-suggest__item:hover, .search-suggest__item.is-highlighted { background: var(--c-accent-soft); }

/* ============================================================
   STATIC / LEGAL PAGES
   ============================================================ */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-9); padding-block: 72px; align-items: start; }
.legal__toc { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 2px; }
.legal__toc a {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    padding: 8px 0 8px 14px;
    border-left: 2px solid var(--c-border);
}
.legal__toc a.is-active { color: var(--c-accent); font-weight: var(--fw-bold); border-left-color: var(--c-accent); }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; padding-block: var(--s-14); display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.notfound__code {
    font-size: clamp(84px, 12vw, 140px);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: var(--ls-display);
}
.notfound__flourish { width: 96px; height: 4px; background: var(--c-accent); border-radius: 2px; margin-bottom: var(--s-4); }
.notfound__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }

/* ============================================================
   STYLE GUIDE
   ============================================================ */
.sg { padding-block: var(--s-9); }
.sg__section { padding-block: var(--s-8); border-top: 1px solid var(--c-border); }
.sg__section:first-of-type { border-top: 0; }
.sg__title { font-size: var(--fs-h3); margin-bottom: var(--s-6); }
.sg__row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.sg__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.sg__swatch { border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; font-size: 12px; }
.sg__swatch-chip { height: 72px; }
.sg__swatch-label { padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; }
.sg__icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sg__bar { background: var(--c-accent); height: 12px; border-radius: 2px; }
.sg__viewport {
    position: fixed;
    right: 16px; bottom: 16px;
    z-index: var(--z-toast);
    background: var(--c-black);
    color: var(--c-white);
    border-radius: var(--r-pill);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: var(--fw-semibold);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .header, .footer, .article-rail, .comments, .share-row, .back-to-top,
    .progress, .toast-stack, .section--subscribe, .prevnext, .drawer,
    .overlay, .search-overlay, .chip-strip,
    .listing__aside { display: none !important; }
    body { background: #fff; color: #000; }
    .article-hero { min-height: auto; color: #000; background: none; }
    .article-hero::before { display: none; }
    .article-hero__title, .article-hero .author-line__name { color: #000; }
    .article-shell { display: block; padding: 0; max-width: none; }
    .prose img, .photo { filter: none !important; transform: none !important; width: 100% !important; }
    .prose a::after { content: ' (' attr(href) ')'; font-size: 12px; word-break: break-all; }
}

/* ============================================================
   CONTRIBUTE  (/contribute - the public "write for us" area)
   Built on the shared .field / .input / .btn parts so these
   pages look like the rest of the site rather than a bolt-on.
   ============================================================ */
.contrib-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    flex-wrap: wrap;
    padding-bottom: var(--s-5);
    margin-bottom: var(--s-6);
    border-bottom: 1px solid var(--c-grey-200);
}
.contrib-nav__brand {
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--c-ink);
}
.contrib-nav__links { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.contrib-nav__link { font-size: var(--fs-sm); color: var(--c-text-soft); }
.contrib-nav__link:hover, .contrib-nav__link.is-active { color: var(--c-accent); }
.contrib-nav__who { font-size: var(--fs-xs); color: var(--c-grey-400); }

.contrib-title { font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 var(--s-3); }
.contrib-lede { font-size: 16px; line-height: 1.7; color: var(--c-text-soft); margin: 0 0 var(--s-5); }
.contrib-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-4);
    flex-wrap: wrap;
}

.contrib-panel {
    border: 1px solid var(--c-grey-200);
    border-radius: var(--r-md);
    padding: var(--s-6);
    background: var(--c-white);
}
.contrib-panel--center { text-align: center; }
.contrib-panel--center .contrib-lede { max-width: 46ch; margin-inline: auto; }

.contrib-form { margin-top: var(--s-5); }
.contrib-fieldset { border: 0; padding: 0; margin: 0 0 var(--s-7); }
.contrib-legend {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-grey-400);
    padding: 0 0 var(--s-4);
}
.contrib-hint { font-size: var(--fs-xs); line-height: 1.65; color: var(--c-text-soft); margin: var(--s-2) 0 0; }
.contrib-optional { font-weight: var(--fw-regular); color: var(--c-grey-400); }
.contrib-file { height: auto; padding: 14px 18px; }
.contrib-body { min-height: 340px; line-height: 1.75; }
.contrib-actions { margin-top: var(--s-6); }
.contrib-foot { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--c-text-soft); }
.contrib-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: var(--s-4);
}

/* Messages. Tone is carried by the left bar as well as the tint, so it
   still reads when the accent colour is changed in Appearance. */
.contrib-note {
    font-size: var(--fs-sm);
    line-height: 1.65;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border-left: 3px solid var(--c-grey-300);
    background: var(--c-grey-50);
    color: var(--c-ink);
    margin: 0 0 var(--s-5);
}
.contrib-note--success { border-left-color: #2e7d32; background: rgba(46,125,50,.08); }
.contrib-note--error   { border-left-color: #c62828; background: rgba(198,40,40,.08); }
.contrib-note--warning { border-left-color: #ef6c00; background: rgba(239,108,0,.08); }
.contrib-note--info    { border-left-color: var(--c-accent); background: var(--c-accent-soft); }

/* The list on "My articles" */
.contrib-list { list-style: none; margin: 0; padding: 0; }
.contrib-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-5) 0;
    border-bottom: 1px solid var(--c-grey-200);
}
.contrib-item__main { min-width: 0; }
.contrib-item__title { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.contrib-item__meta { font-size: var(--fs-xs); color: var(--c-text-soft); margin: 0; }
.contrib-item__note {
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin: var(--s-3) 0 0;
    padding-left: 12px;
    border-left: 2px solid var(--c-grey-300);
    color: var(--c-text-soft);
}
.contrib-state {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.contrib-state--ok   { background: rgba(46,125,50,.12); color: #2e7d32; }
.contrib-state--wait { background: rgba(239,108,0,.12);  color: #ef6c00; }
.contrib-state--no   { background: rgba(198,40,40,.12);  color: #c62828; }

@media (max-width: 640px) {
    .contrib-item { flex-direction: column; }
    .contrib-panel { padding: var(--s-5); }
}
/* ---- Writer account panel (header profile icon) ---- */
.story-auth__lede {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--c-text-soft);
    margin: 0 0 var(--s-5);
}
.story-auth__tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--c-grey-50);
    border-radius: var(--r-pill);
    margin-bottom: var(--s-6);
}
.story-auth__tab {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: var(--r-pill);
    background: transparent;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text-soft);
    cursor: pointer;
    transition: background var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.story-auth__tab[aria-selected="true"] {
    background: var(--c-white);
    color: var(--c-ink);
    box-shadow: var(--c-shadow-sm);
}
.story-auth__tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.story-auth__foot {
    margin-top: var(--s-5);
    font-size: var(--fs-xs);
    color: var(--c-text-soft);
    text-align: center;
}
/* The panel reuses .contrib-form, whose fieldsets carry page-sized spacing. */
.story-auth .contrib-form { margin-top: 0; }
.story-auth .contrib-fieldset { margin-bottom: var(--s-5); }
/* ---- Sign-in wall on the story form ---- */
/* The form stays on the page so a visitor can see what is being asked for,
   but it is blurred and inert - the real refusal happens on the server. */
.contrib-blurred {
    filter: blur(5px);
    opacity: .55;
    pointer-events: none;
    user-select: none;
}
@media (prefers-reduced-motion: reduce) { .contrib-blurred { filter: blur(3px); } }

.contrib-wall {
    border: 1px solid var(--c-grey-200);
    border-radius: var(--r-md);
    background: var(--c-grey-50);
    padding: var(--s-6);
    margin-bottom: var(--s-6);
    text-align: center;
}
.contrib-wall__title {
    font-size: var(--fs-h5);
    font-weight: var(--fw-semibold);
    margin: 0 0 var(--s-2);
}
.contrib-wall__text {
    font-size: var(--fs-sm);
    color: var(--c-text-soft);
    margin: 0 0 var(--s-5);
}
.contrib-wall__actions {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

/* Shown only when JS never ran. main.js puts .has-js on <html> at boot, so
   anything marked this way is the fallback for a browser that got no script. */
.has-js .u-nojs-only { display: none; }