/*
 * atelier.css — the Atelier design grammar (The Quiet Corner, DESIGN.md):
 * page shell, cards, featured panel, action cards, newsletter, chips,
 * section rows, vote poll. Shared by any page that wants the look —
 * the home page is built entirely from it, and articles/gallery link it
 * so the grammar can be reused anywhere.
 *
 * Load order: base.css → components.css → atelier.css → page sheet.
 * Surface tokens (--card, --card-edge, --r-card, …) live in css/base.css.
 * Interactive pieces (<news-signup>, <vote-poll>, <action-card>) are web
 * components in components/atelier/ that render this grammar's markup.
 */

@layer components {
    /* custom-element wrappers must be invisible to grid/flex parents */
    news-signup, action-card, vote-poll { display: contents; }

    /* continuous "squircle" corners where supported; falls back to round.
       corner-shape doesn't inherit — the gradient pseudos need it too,
       or the wash and the border render with different corner geometry. */
    @supports (corner-shape: squircle) {
        :root { --r-card: 30px; --r-panel: 34px; }
        .at-card, .at-act, .at-feature, .at-news, .at-poll-modal, .at-poll-card,
        .at-card::before, .at-act::before, .at-feature::before,
        .callout, .callout-border, .card, .toast, .grey-background-article,
        .article-figure img, .article-video, .ref-inline,
        .checklist, .checklist-box { corner-shape: squircle; }
    }

    /* ---- Page shell ---- */
    body:has(main.at) { max-width: 1080px; }

    .at {
        padding: clamp(3rem, 8vh, 6rem) 0 var(--space-3xl);
        animation: at-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    @keyframes at-rise { from { opacity: 0; transform: translateY(10px); } }

    .at-top {
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: clamp(2.5rem, 8vh, 5rem);
    }
    .at-top[hidden] { display: none; }
    .at-back {
        display: inline-flex; align-items: center; gap: var(--space-sm);
        color: var(--text-tertiary); font-size: var(--font-size-sm);
        transition: color 0.25s ease, gap 0.25s ease;
    }
    .at-back:hover { color: var(--text-primary); gap: 0.6rem; }
    .at-handle { font-family: "Inter", sans-serif; font-size: var(--font-size-sm); color: var(--text-muted); }

    /* sliding-arrow motif: one masked glyph instead of inline SVG copies.
       background-color: currentColor keeps every hover color transition
       working exactly as it did when the SVG used stroke="currentColor". */
    .ar { display: inline-flex; align-items: center; flex: none; }
    .ar::before {
        content: ""; width: 18px; height: 18px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12H19M19 12L12 19M19 12L12 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12H19M19 12L12 19M19 12L12 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    }

    /* ---- Hero ---- */
    .at-hero { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
    .at-title {
        font-family: "Big Shoulders Display", sans-serif;
        font-size: clamp(2.8rem, 6.2vw, 4.4rem);
        font-weight: 650; letter-spacing: -0.01em; line-height: 0.96;
        margin: 0; max-width: 24ch; color: var(--text-bold); text-wrap: balance;
    }
    .at-title .soft { color: var(--text-tertiary); }

    .at-actions {
        display: grid; grid-template-columns: 1fr 230px;
        gap: var(--space-md); margin-top: clamp(2rem, 5vh, 3rem);
    }
    .at-act {
        position: relative; isolation: isolate; overflow: hidden;
        display: flex; flex-direction: column; gap: var(--space-lg);
        justify-content: space-between;
        padding: var(--space-lg);
        background: var(--card); border: 1px solid var(--card-edge);
        border-radius: var(--r-card); color: inherit;
        transition: border-color 0.25s ease;
    }
    .at-act[data-accent="red"] { --cat: var(--red); }
    .at-act[data-accent="blue"] { --cat: var(--primary); }
    .at-act::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        border-radius: calc(var(--r-card) - 1px); /* concentric with the 1px border */
        background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 8%, transparent), transparent 55%);
        opacity: 0; transition: opacity 0.3s ease;
    }
    .at-act:hover { border-color: var(--card-edge-hi); }
    .at-act:hover::before { opacity: 1; }
    .at-act[data-accent="red"]:hover .at-act-main .ar { color: var(--red); }
    .at-act[data-accent="blue"]:hover .at-act-main .ar { color: var(--primary); }
    .at-act-top {
        display: flex; align-items: center; gap: var(--space-sm);
        font-size: var(--font-size-sm); color: var(--text-tertiary); font-weight: 500;
    }
    .at-act-main {
        display: flex; align-items: center; gap: var(--space-sm);
        font-size: var(--font-size-lg); font-weight: 500; color: var(--text-secondary);
        letter-spacing: -0.01em; transition: color 0.25s ease;
    }
    .at-act:hover .at-act-main { color: var(--text-bold); }
    .at-act-main .ar { color: var(--text-muted); transition: transform 0.25s ease, color 0.25s ease; }
    .at-act:hover .at-act-main .ar { transform: translateX(4px); color: var(--text-secondary); }

    /* ---- Newsletter ask ---- */
    .at-news {
        display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
        padding: var(--space-md) var(--space-lg);
        background: var(--card); border: 1px solid var(--card-edge);
        border-radius: var(--r-card);
    }
    .at-news-copy { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
    .at-news-h { margin: 0; font-size: var(--font-size-md); font-weight: 500; letter-spacing: -0.01em; color: var(--text-bold); }
    .at-news-sub { margin: 0; font-size: var(--font-size-xs); line-height: 1.45; color: var(--text-secondary); max-width: 38ch; }
    .at-news-form { display: flex; gap: var(--space-sm); flex: none; }
    .at-news-field { position: relative; display: inline-flex; width: clamp(215px, 22vw, 274px); }
    .at-news-form input {
        width: 100%; padding: 0.55rem 0.85rem;
        background: var(--background); color: var(--text-primary);
        border: 1px solid var(--card-edge); border-radius: 12px;
        font-family: "Inter", sans-serif; font-size: var(--font-size-sm);
        transition: border-color 0.2s ease;
    }
    .at-news-form input::placeholder { font-size: 0.78rem; }
    .at-news-ghost {
        position: absolute; inset: 0; display: flex; align-items: center;
        padding: 0.55rem 0.85rem; border: 1px solid transparent;
        font-family: "Inter", sans-serif; font-size: var(--font-size-sm);
        white-space: pre; overflow: hidden; pointer-events: none;
    }
    .at-news-ghost .g-typed { color: transparent; }
    .at-news-ghost .g-sug, .at-news-ghost .g-kbd { color: var(--text-muted); pointer-events: auto; cursor: pointer; }
    .at-news-ghost .g-kbd {
        margin-left: 0.5rem; padding: 0 0.4rem;
        font-size: 0.65rem; line-height: 1.6;
        border: 1px solid var(--card-edge); border-radius: 5px;
    }
    @media (hover: none) { .at-news-ghost .g-kbd { display: none; } } /* no Tab key on touch — tap the suggestion instead */
    .at-news-form input::placeholder { color: var(--text-muted); }
    .at-news-form input:focus { outline: none; border-color: var(--text-tertiary); }
    .at-news-form button {
        padding: 0.55rem 0.95rem; background: var(--text-bold); color: var(--background);
        border: none; border-radius: 12px; cursor: pointer; white-space: nowrap;
        font-family: "Inter", sans-serif; font-size: var(--font-size-sm); font-weight: 600;
        transition: opacity 0.2s ease;
    }
    .at-news-form button:hover { opacity: 0.85; }

    /* ---- Featured: title left, excerpt right ---- */
    .at-feature {
        --cat: var(--red);
        position: relative; isolation: isolate; overflow: hidden;
        display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
        margin-top: var(--space-md);
        padding: clamp(1.75rem, 3.5vw, 2.75rem);
        background: var(--card); border: 1px solid var(--card-edge);
        border-radius: var(--r-panel); color: inherit;
        transition: border-color 0.25s ease;
    }
    .at-feature::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        border-radius: calc(var(--r-panel) - 1px); /* concentric with the 1px border */
        background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 7%, transparent), transparent 55%);
        opacity: 0; transition: opacity 0.3s ease;
    }
    .at-feature:hover { border-color: var(--card-edge-hi); }
    .at-feature:hover::before { opacity: 1; }

    .at-feat-label {
        display: inline-flex; align-items: center; gap: var(--space-sm);
        font-size: var(--font-size-sm); line-height: 1.2; color: var(--text-tertiary); margin-bottom: var(--space-xl);
    }
    .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: at-pulse 2.4s ease-in-out infinite; flex: none; }
    @keyframes at-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
    .at-feat-title {
        font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500;
        letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--text-bold); text-wrap: balance;
    }
    .at-feat-meta {
        display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
        margin-top: var(--space-lg); font-size: var(--font-size-sm); color: var(--text-secondary);
    }
    .at-feat-meta .sep { color: var(--card-edge-hi); }

    /* drop the excerpt to the title's level: clear the label row on the left
       (its line box + margin) so header and body start on the same line */
    .at-feat-side { display: flex; flex-direction: column; padding-top: calc(var(--font-size-sm) * 1.2 + var(--space-xl)); }
    .at-feat-ex {
        margin: 0; font-size: var(--font-size-md); line-height: 1.65;
        color: var(--text-secondary); text-wrap: pretty;
    }
    .at-feat-cta {
        display: inline-flex; align-items: center; gap: var(--space-sm);
        margin-top: auto; padding-top: var(--space-lg);
        font-size: var(--font-size-sm); font-weight: 500; color: var(--text-primary);
    }
    .at-feat-cta .ar { transition: transform 0.25s ease, color 0.25s ease; }
    .at-feature:hover .at-feat-cta .ar { transform: translateX(4px); color: var(--red); }

    /* ---- Section label ---- */
    .at-section {
        display: flex; align-items: baseline; justify-content: space-between;
        flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
        margin: clamp(2.5rem, 6vh, 4rem) 0 var(--space-lg);
    }
    .at-section h2 { margin: 0; font-size: var(--font-size-md); font-weight: 500; color: var(--text-primary); }
    .at-section .meta { font-family: var(--mono); font-size: var(--font-size-xs); color: var(--text-tertiary); }

    /* ---- Filter chips ---- */
    .at-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
    .at-chip {
        padding: 0.3rem 0.8rem;
        background: none; border: 1px solid transparent; border-radius: 999px;
        font-family: "Inter", sans-serif; font-size: var(--font-size-xs); font-weight: 500;
        color: var(--text-tertiary); cursor: pointer;
        transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }
    .at-chip:hover { color: var(--text-primary); }
    .at-chip:focus-visible { outline: 2px solid var(--text-tertiary); outline-offset: 2px; }
    .at-chip[aria-pressed="true"] { background: var(--card); border-color: var(--card-edge-hi); color: var(--text-bold); }
    /* active border picks up the grid's semantic colour: red = opinion, blue = analysis/research */
    .at-chip[data-filter="Analytical Essay"][aria-pressed="true"],
    .at-chip[data-filter="Research Brief"][aria-pressed="true"] { border-color: color-mix(in srgb, var(--primary) 24%, var(--card-edge-hi)); }
    .at-chip[data-filter="Opinion"][aria-pressed="true"] { border-color: color-mix(in srgb, var(--red) 24%, var(--card-edge-hi)); }
    .at-card[hidden] { display: none; }

    /* ---- Grid with excerpts ---- */
    .at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--space-md); }
    .at-card {
        position: relative; isolation: isolate; overflow: hidden;
        display: flex; flex-direction: column; min-height: 168px;
        padding: var(--space-lg);
        background: var(--card); border: 1px solid var(--card-edge);
        border-radius: var(--r-card); color: inherit;
        transition: border-color 0.25s ease;
    }
    .at-card::before {
        content: ""; position: absolute; inset: 0; z-index: -1;
        border-radius: calc(var(--r-card) - 1px); /* concentric with the 1px border */
        background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 9%, transparent), transparent 55%);
        opacity: 0; transition: opacity 0.3s ease;
    }
    .at-card:hover::before { opacity: 1; }
    /* semantic colour: red = opinion, blue = analysis/research */
    .at-card { --cat: var(--primary); }
    .at-card[data-cat="Opinion"] { --cat: var(--red); }
    .at-card:hover { border-color: color-mix(in srgb, var(--cat) 24%, var(--card-edge-hi)); }
    .at-card-top {
        display: flex; align-items: center; gap: var(--space-sm);
        font-size: var(--font-size-xs); color: var(--text-tertiary); font-weight: 500;
        transition: color 0.25s ease;
    }
    .at-card:hover .at-card-top { color: var(--cat); }
    .at-card-title {
        margin: var(--space-md) 0 0;
        font-size: var(--font-size-xl); font-weight: 500; line-height: 1.25;
        letter-spacing: -0.01em; color: var(--card-title, var(--text-secondary)); text-wrap: balance;
        transition: color 0.25s ease;
    }
    .at-card:hover .at-card-title { color: var(--text-bold); }
    .at-card-foot {
        display: flex; align-items: center; gap: var(--space-sm);
        margin-top: auto; padding-top: var(--space-lg);
        font-family: "Inter", sans-serif; font-size: var(--font-size-sm);
        color: var(--text-tertiary);
    }
    .at-card-foot .sep { color: var(--card-edge-hi); }
    .at-card-foot .ar { margin-left: auto; color: var(--text-muted); opacity: 0; transform: translateX(-4px); transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease; }
    .at-card:hover .at-card-foot .ar { opacity: 1; transform: translateX(0); color: var(--cat); }

    /* ---- Footer ---- */
    .at-footer {
        margin-top: clamp(3rem, 8vh, 5rem); padding-top: var(--space-lg);
        border-top: 1px solid var(--card-edge);
        font-family: var(--mono); font-size: var(--font-size-xs); color: var(--text-muted);
    }
    .at-footer a { color: var(--text-tertiary); }
    .at-footer a:hover { color: var(--primary); }

    /* ---- Vote pill & poll modal ----
       A labelled pill in the theme-toggle's material sits to its left
       (phones swap it for an action card via [data-vote-trigger]) and opens
       a <dialog>: idea cards in the archive grammar on a stage panel, the
       ask below as a section row. Monochrome throughout — voting reads as
       border step + ink + filled ring, never color. Rendered by <vote-poll>. */
    .at-vote-pill {
        position: fixed; bottom: 20px; right: 72px; z-index: 195;
        isolation: isolate; overflow: hidden;
        display: inline-flex; align-items: center; justify-content: center;
        height: 42px; padding: 0 1.1rem;
        border-radius: 999px;
        background: var(--background); color: var(--text-primary);
        border: 1px solid var(--border-light);
        font-family: "Inter", sans-serif; font-size: var(--font-size-xs); font-weight: 500;
        cursor: pointer;
    }
    .at-vote-pill:hover { background: var(--background-grey); }
    .at-vote-pill:active { transform: scale(0.97); }
    .at-vote-pill:focus-visible { outline: 2px solid var(--text-tertiary); outline-offset: 2px; }
    /* one-time arrival shimmer: the card wash gradient as a moving
       monochrome glint (3 sweeps ≈ 5s), once per session via JS */
    .at-vote-pill::before {
        content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px;
        background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--text-primary) 14%, transparent) 50%, transparent 70%);
        background-size: 250% 100%; background-position: 200% 0;
        opacity: 0;
    }
    .at-vote-pill.at-vote-shimmer::before { opacity: 1; animation: at-shine 1.7s ease-in-out 3; }
    @keyframes at-shine { from { background-position: 200% 0; } to { background-position: -150% 0; } }
    @media (prefers-reduced-motion: reduce) { .at-vote-pill.at-vote-shimmer::before { animation: none; opacity: 0; } }

    /* phone trigger: hidden until the 560px media query swaps it in */
    .at-vote-card { display: none; appearance: none; width: 100%; font-family: "Inter", sans-serif; text-align: left; cursor: pointer; }

    .at-poll-modal {
        margin: auto; width: min(940px, calc(100vw - 2rem)); max-width: none;
        padding: 0; background: var(--background); color: var(--text-primary);
        border: 1px solid var(--card-edge-hi); border-radius: var(--r-panel);
        opacity: 1; transform: none;
        /* same exponential ease-out as the page's at-rise entrance */
        transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @starting-style { .at-poll-modal[open] { opacity: 0; transform: translateY(18px) scale(0.985); } }
    .at-poll-modal::backdrop {
        background: rgba(0, 0, 0, 0.35);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
        transition: background 0.45s ease, backdrop-filter 0.45s ease, -webkit-backdrop-filter 0.45s ease;
    }
    @starting-style { .at-poll-modal[open]::backdrop { background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
    .at-poll-in { position: relative; padding: clamp(1.25rem, 3vw, 1.75rem); }
    .at-poll-x {
        position: absolute; top: var(--space-sm); right: var(--space-sm);
        display: inline-flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; padding: 0;
        background: none; border: none; border-radius: 50%;
        font-family: "Inter", sans-serif; font-size: 1.05rem; line-height: 1;
        color: var(--text-muted); cursor: pointer;
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    .at-poll-x:hover { color: var(--text-primary); background: var(--background-grey); }
    .at-poll-x:focus-visible { outline: 2px solid var(--text-tertiary); outline-offset: 2px; }
    .at-poll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
    .at-poll-card {
        display: flex; flex-direction: column; min-height: 168px;
        padding: var(--space-lg);
        background: var(--card); border: 1px solid var(--card-edge);
        border-radius: var(--r-card);
        font-family: "Inter", sans-serif; text-align: left; color: inherit; cursor: pointer;
        transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.2s ease;
    }
    /* state ladder: rest → hover (lift + ghost check) → press (settle) → voted (filled ring) */
    .at-poll-card:hover { border-color: var(--card-edge-hi); background: color-mix(in srgb, var(--text-primary) 3%, var(--card)); }
    .at-poll-card:active { transform: scale(0.99); }
    .at-poll-card[aria-pressed="true"]:active { transform: none; }
    .at-poll-card:focus-visible { outline: 2px solid var(--text-tertiary); outline-offset: 2px; }
    .at-poll-card-top { font-size: var(--font-size-xs); color: var(--text-tertiary); font-weight: 500; }
    .at-poll-card-title {
        margin: var(--space-md) 0 0;
        font-size: var(--font-size-lg); font-weight: 500; line-height: 1.3;
        letter-spacing: -0.01em; color: var(--card-title, var(--text-secondary));
        text-wrap: balance; transition: color 0.25s ease;
    }
    .at-poll-card:hover .at-poll-card-title { color: var(--text-bold); }
    .at-poll-card-teaser { margin-top: var(--space-sm); font-size: var(--font-size-sm); line-height: 1.5; color: var(--text-tertiary); text-wrap: pretty; }
    .at-poll-card-foot {
        display: inline-flex; align-items: center; gap: var(--space-sm);
        margin-top: auto; padding-top: var(--space-lg);
        font-size: var(--font-size-sm); font-weight: 500; color: var(--text-muted);
        transition: color 0.25s ease;
    }
    .at-poll-card:hover .at-poll-card-foot { color: var(--text-primary); }
    .at-poll-ring {
        flex: none; display: inline-flex; align-items: center; justify-content: center;
        width: 18px; height: 18px; border: 1.5px solid var(--text-muted); border-radius: 50%;
        transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    .at-poll-ring svg { opacity: 0; color: var(--text-primary); transition: opacity 0.2s ease; }
    .at-poll-card:hover .at-poll-ring { border-color: var(--text-primary); }
    .at-poll-card:hover .at-poll-ring svg { opacity: 0.4; }
    .at-poll-done { display: none; }
    .at-poll-card[aria-pressed="true"] { border-color: var(--card-edge-hi); background: color-mix(in srgb, var(--text-primary) 4%, var(--card)); cursor: default; }
    .at-poll-card[aria-pressed="true"] .at-poll-card-title { color: var(--text-bold); }
    .at-poll-card[aria-pressed="true"] .at-poll-card-foot { color: var(--text-secondary); }
    .at-poll-card[aria-pressed="true"] .at-poll-ring { background: var(--text-bold); border-color: var(--text-bold); }
    .at-poll-card[aria-pressed="true"] .at-poll-ring svg { opacity: 1; color: var(--card); }
    .at-poll-card[aria-pressed="true"] .at-poll-cta { display: none; }
    .at-poll-card[aria-pressed="true"] .at-poll-done { display: inline; }
    /* staggered card entrance on every open, trailing the panel's rise */
    @keyframes at-poll-card-in { from { opacity: 0; transform: translateY(10px); } }
    .at-poll-modal[open] .at-poll-card { animation: at-poll-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards; }
    .at-poll-modal[open] .at-poll-card:nth-child(2) { animation-delay: 0.15s; }
    .at-poll-modal[open] .at-poll-card:nth-child(3) { animation-delay: 0.22s; }
    @media (prefers-reduced-motion: reduce) { .at-poll-modal[open] .at-poll-card { animation: none; } }
    .at-poll-caption {
        display: flex; align-items: baseline; justify-content: space-between;
        flex-wrap: wrap; gap: var(--space-sm) var(--space-md);
        margin-top: clamp(1.75rem, 4vw, 2.5rem); padding: 0 var(--space-xs) var(--space-xs);
    }
    .at-poll-title {
        margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 500;
        letter-spacing: -0.02em; line-height: 1.15; color: var(--text-bold); text-wrap: balance;
    }
    .at-poll-meta { font-family: var(--mono); font-size: var(--font-size-xs); color: var(--text-tertiary); }
    @media only screen and (max-width: 900px) {
        .at-poll-modal { width: min(560px, calc(100vw - 2rem)); }
        .at-poll-grid { grid-template-columns: 1fr; }
        .at-poll-card { min-height: 0; }
    }

    @media (hover: none) { .at-card-foot .ar { opacity: 1; transform: none; } }

    /* ---- Responsive composition ---- */
    @media only screen and (max-width: 860px) {
        .at-actions { grid-template-columns: 1fr; }
        .at-feature { grid-template-columns: 1fr; gap: var(--space-lg); }
        /* stacked: the excerpt no longer sits beside the label, so the
           title-alignment offset would just be dead space — drop it */
        .at-feat-side { padding-top: 0; }
    }
    @media only screen and (max-width: 560px) { .at-grid { grid-template-columns: 1fr; } .at-news { flex-direction: column; align-items: stretch; } .at-news-form { flex-direction: column; } .at-news-field { width: 100%; } }
    @media only screen and (max-width: 560px) {
        /* phones: the floating pill yields to a full action card via
           [data-vote-trigger], and the modal becomes a bottom sheet */
        .at-vote-pill { display: none; }
        .at-vote-card { display: flex; }
        .at-actions { grid-template-columns: 1fr 1fr; }
        .at-news { grid-column: 1 / -1; }
        .at-poll-modal { margin: auto 0 0; width: 100vw; border-radius: 20px 20px 0 0; border-left: none; border-right: none; border-bottom: none; }
        .at-poll-in { padding: var(--space-md) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom, 0px)); }
    }
}
