/* What's New design layer.
 *
 * The presentation layer for Components/Pages/ReleaseNotesIndex.razor and
 * ReleaseNotePage.razor. Global CSS, linked from App.razor, so the same two
 * rules pages/blog-index.css calls out apply here:
 *
 * 1. Nothing confines these rules to these two pages, so every selector is
 *    qr- prefixed or a descendant of one. No bare element selector.
 * 2. The Tailwind bundle this site serves is a prebuilt Next.js artefact — a
 *    utility class the page invents would not exist at runtime, so the whole
 *    design lives here rather than in class soup on the markup.
 *
 * These rules are unlayered and Tailwind v4's utilities live inside @layer, so
 * they win regardless of specificity.
 *
 * Palette is the logo ramp shared with the pricing and blog pages — #a22dea →
 * #7b5ee5 → #5b5de2, with #4f46e5 → #7c3aed as the primary — plus one colour
 * per change type, which is the only place this page spends a hue from outside
 * the ramp:
 *
 *     new       #7c3aed   violet
 *     improved  #0d9488   teal
 *     fixed     #d97706   amber
 *     breaking  #e11d48   rose
 *
 * Those four are semantic, not decorative: the type of a change reads before
 * the words do, and the same four colours mean the same four things on the
 * list, on the release page and in the admin grid.
 *
 * Layout: everything is a card. The list has no side rail and no timeline —
 * the release date sits on the card itself, so the full page width goes to
 * content. The newest release takes a wide card carrying its screenshot; the
 * rest sit two up, text-only, which keeps row heights even however long the
 * titles run. Filters are one chip row above the grid, driven by the query
 * string so the page stays static SSR and every filtered view is a real URL.
 */

/* ── hero ───────────────────────────────────────────────────────────── */

.qr-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 340px at 12% -10%, rgba(162, 45, 234, .30), transparent 62%),
        radial-gradient(700px 300px at 88% 0%, rgba(59, 130, 246, .26), transparent 60%),
        linear-gradient(135deg, #3b1a72 0%, #4432a8 48%, #2f3aa8 100%);
}

.qr-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(600px 260px at 30% 20%, #000, transparent 75%);
    mask-image: radial-gradient(600px 260px at 30% 20%, #000, transparent 75%);
}

.qr-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: 52px 56px;
}

/* The hero is a two-column band: the page's own copy on the left, the newest
   release on the right. The right column used to be empty, which on a 1440px
   screen is half a hero spent on a gradient — and the one thing a visitor
   opening What's New wants is the thing that shipped last. */
.qr-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

.qr-hero__copy { min-width: 0; }

.qr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .74);
}

.qr-crumbs a { color: inherit; }
.qr-crumbs a:hover { color: #fff; }
.qr-crumbs__here { color: #fff; }

.qr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .10);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #e9d9ff;
}

.qr-eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}

.qr-hero__title {
    margin: 18px 0 0;
    max-width: 16ch;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.06;
    letter-spacing: -.03em;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}

.qr-hero__title .qr-accent {
    background: linear-gradient(100deg, #f0abfc, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-hero__lede {
    margin: 16px 0 0;
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .87);
}

.qr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.qr-stats b {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.qr-stats span {
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .68);
}

/* ── hero image ─────────────────────────────────────────────────────── */

.qr-hero__shot {
    display: block;
    width: 100%;
    height: auto;
    /* 16:9 matches the shape the release screenshots are stored in, so the
       frame crops nothing. `contain` keeps a differently-shaped upload whole
       rather than slicing its edges off. */
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 34px 70px -34px rgba(8, 3, 34, .95);
}

/* .qh-hero__actions already carries the 36px top margin every other hero uses;
   this only adds the room the stats row above needs. */
.qr-hero__cta { margin-top: 30px; }

/* The three change-type hues, lifted to read on the hero's violet ground. */
.qr-dot--new-dark { background: #c4b5fd; }
.qr-dot--imp-dark { background: #5eead4; }
.qr-dot--fix-dark { background: #fcd34d; }
.qr-dot--breaking { background: #fb7185; }

/* ── hero facts panel: one release, at a glance ──────────────────────── */

.qr-facts {
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .20);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 34px 70px -34px rgba(8, 3, 34, .95);
}

.qr-facts__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
}

.qr-facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.qr-facts__row:first-child { padding-top: 0; }

.qr-facts__row dt {
    color: rgba(255, 255, 255, .64);
    font-size: 12.5px;
}

.qr-facts__row dd {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.qr-facts__count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.qr-facts__count i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

/* ── list body ──────────────────────────────────────────────────────── */

.qr-body {
    padding-block: 36px 64px;
    background: linear-gradient(#faf9fe, #ffffff 320px);
}

.qr-listhead {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.018em;
    color: #16123a;
}

.qr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.qr-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid #e8e6f2;
    background: #fff;
    font-size: 13.5px;
    font-weight: 550;
    color: #475569;
    transition: border-color .2s, background .2s, color .2s;
}

.qr-chip:hover { border-color: #d6cff0; color: #4338ca; }

.qr-chip i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.qr-chip em {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    color: #a5a1bb;
    font-variant-numeric: tabular-nums;
}

.qr-chip--on,
.qr-chip--on:hover {
    background: #ede9fe;
    border-color: #ddd3fb;
    color: #5b21b6;
    font-weight: 650;
}

.qr-chip--on em { color: #7c3aed; }

.qr-toolbar__note {
    margin-left: auto;
    font-size: 12.5px;
    color: #a5a1bb;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qr-grid > li { display: flex; }

.qr-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid #e8e6f2;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 12, 48, .04);
    transition: box-shadow .25s, border-color .25s, transform .25s;
}

.qr-card:hover {
    border-color: #d6cff0;
    box-shadow: 0 22px 44px -28px rgba(79, 70, 229, .55);
    transform: translateY(-1px);
}

.qr-card--latest {
    border-color: #ddd3fb;
    background: linear-gradient(180deg, #fbf9ff, #ffffff 120px);
}

.qr-card__main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* the release date lives on the card, not in a side column */
.qr-when {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    font-size: 13px;
    font-weight: 650;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.qr-when__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.qr-when__ago {
    font-weight: 400;
    color: #a5a1bb;
}

.qr-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.qr-ver {
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #e4d9fd;
    background: #f1ebfe;
    font-size: 12.5px;
    font-weight: 650;
    color: #5b21b6;
    font-variant-numeric: tabular-nums;
}

.qr-flag {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.qr-flag--latest {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.qr-flag--breaking {
    color: #9f1239;
    background: #ffe4e9;
    border: 1px solid #fecdd6;
}

.qr-card__title {
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.28;
    letter-spacing: -.017em;
    font-weight: 650;
    color: #16123a;
    text-wrap: balance;
    transition: color .2s;
}

.qr-card:hover .qr-card__title { color: #5b21b6; }

.qr-card__lede {
    margin: 0;
    max-width: 62ch;
    font-size: 14.5px;
    line-height: 1.62;
    color: #55506e;
}

.qr-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
}

.qr-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.qr-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px 4px 8px;
    border-radius: 999px;
    border: 1px solid #ebeaf3;
    background: #f7f7fb;
    font-size: 12px;
    font-weight: 550;
    color: #475569;
}

.qr-count i {
    width: 6px;
    height: 6px;
    border-radius: 2px;
}

.qr-count em {
    font-style: normal;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.qr-dot--new { background: #7c3aed; }
.qr-dot--imp { background: #0d9488; }
.qr-dot--fix { background: #d97706; }

.qr-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 650;
    color: #4f46e5;
}

.qr-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e0ee;
    background: #fbfbfe;
    box-shadow: 0 12px 26px -18px rgba(20, 12, 48, .5);
}

.qr-empty {
    padding: 40px 24px;
    border: 1px dashed #ddd9ee;
    border-radius: 14px;
    background: #fdfcff;
    text-align: center;
    color: #6b6787;
    font-size: 14.5px;
}

/* ── release page ───────────────────────────────────────────────────── */

.qr-detail {
    padding-block: 40px 64px;
    background: linear-gradient(#faf9fe, #ffffff 260px);
}

.qr-detail__cols {
    display: grid;
    grid-template-columns: 186px 1fr;
    gap: 48px;
    align-items: start;
}

.qr-toc { position: sticky; top: 20px; }

.qr-toc__label {
    margin-bottom: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #94a3b8;
}

.qr-toc__list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    border-left: 2px solid #ece9f7;
}

.qr-toc__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-left: -2px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    font-size: 13.5px;
    color: #64748b;
    transition: color .2s, border-color .2s;
}

.qr-toc__list a:hover {
    color: #4f46e5;
    border-left-color: #c4b5fd;
}

.qr-toc__list em {
    font-style: normal;
    font-size: 11.5px;
    color: #b3b9c6;
    font-variant-numeric: tabular-nums;
}

.qr-aside {
    padding-top: 16px;
    border-top: 1px solid #eceaf4;
    font-size: 12.5px;
    line-height: 1.6;
    color: #94a3b8;
}

.qr-aside b {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    font-weight: 650;
    color: #475569;
}

.qr-main { min-width: 0; }

.qr-figure { margin: 0 0 30px; }

.qr-figure .qr-shot { border-radius: 14px; }

.qr-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-top: 10px;
    font-size: 12.5px;
    color: #94a3b8;
}

.qr-figure figcaption b {
    font-weight: 650;
    color: #64748b;
}

/* ── the overview: the editor's body copy ───────────────────────────── */

/* Full width of the column, in two parts. The measure a paragraph can hold
   before it stops being readable is around 75 characters, and the column is
   wider than that — so instead of leaving the remainder empty, the label rail
   takes it and the prose fills what is left. */
.qr-overview {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    margin: 0 -26px 34px;
    padding: 24px 26px 26px;
    border: 1px solid #eae7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfaff, #ffffff 150px);
}

.qr-overview__rail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding-top: 4px;
    border-right: 1px solid #eeebf8;
    min-height: 62px;
}

.qr-overview__label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8e89a8;
}

.qr-overview__ver {
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #e4d9fd;
    background: #f1ebfe;
    font-size: 12.5px;
    font-weight: 650;
    color: #5b21b6;
    font-variant-numeric: tabular-nums;
}

.qr-overview__date {
    font-size: 12px;
    color: #a5a1bb;
    font-variant-numeric: tabular-nums;
}

/* CMS body HTML: arbitrary markup, so it is styled by descendant. */
.qr-prose {
    max-width: none;
    font-size: 15.5px;
    line-height: 1.72;
    color: #45415c;
}

/* The opening paragraph is set as a lead, so the block opens rather than
   simply starts. Only the first — a release with six paragraphs of notes
   should not have all six shouting. */
.qr-prose > p:first-child {
    font-size: 17.5px;
    line-height: 1.62;
    color: #2f2b49;
    letter-spacing: -.008em;
}

.qr-prose p,
.qr-prose ul,
.qr-prose ol { margin: 0 0 16px; }

.qr-prose ul,
.qr-prose ol { padding-left: 22px; }

.qr-prose li { margin-bottom: 6px; }

.qr-prose strong,
.qr-prose b {
    font-weight: 650;
    color: #1e1b33;
}

.qr-prose h2,
.qr-prose h3 {
    margin: 28px 0 10px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -.018em;
    color: #16123a;
}

.qr-prose a {
    color: #4f46e5;
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.qr-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.qr-sec { margin-top: 38px; }

.qr-sec__head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 4px;
}

.qr-sec__badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
}

.qr-sec__title {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.018em;
    color: #16123a;
}

.qr-sec__count {
    margin-left: auto;
    font-size: 12.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.qr-sec__rule {
    height: 1px;
    margin: 12px 0 16px;
    background: #ece9f7;
}

.qr-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qr-items li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 14.5px;
    line-height: 1.6;
    color: #45415c;
}

.qr-items li > i {
    justify-self: center;
    margin-top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.qr-sec--new .qr-sec__badge { color: #6d28d9; background: #f3ecfe; }
.qr-sec--imp .qr-sec__badge { color: #0f766e; background: #e4f6f3; }
.qr-sec--fix .qr-sec__badge { color: #b45309; background: #fdf3e2; }

.qr-sec--new .qr-items li > i { background: #7c3aed; }
.qr-sec--imp .qr-items li > i { background: #0d9488; }
.qr-sec--fix .qr-items li > i { background: #d97706; }

/* ── a section paired with its screenshot ───────────────────────────── */

/* A section only becomes a panel when a screenshot is bound to it. Everything
   else on the page keeps the plain rule-and-list treatment, so the panels mark
   the sections worth looking at rather than boxing every heading. */
.qr-sec--paired {
    margin-inline: -26px;
    padding: 20px 26px 24px;
    border: 1px solid #eae7f6;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfaff, #ffffff 130px);
}

.qr-sec--paired.qr-sec--imp { border-color: #ddeef0; background: linear-gradient(180deg, #f7fdfc, #ffffff 130px); }
.qr-sec--paired.qr-sec--fix { border-color: #f2e6cf; background: linear-gradient(180deg, #fffcf5, #ffffff 130px); }

/* The screenshot takes half the panel rather than a side column: a product
   screen at 320px is a thumbnail, and a thumbnail of a payroll table is
   unreadable. Half of the main column still leaves the change list around 55
   characters, which is inside the comfortable range. */
.qr-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 50%);
    gap: 24px;
    align-items: start;
}

/* The picture alternates sides down the page. The list keeps DOM order, so the
   reading order never depends on which side the screenshot landed. */
.qr-pair--flip { grid-template-columns: minmax(340px, 50%) minmax(0, 1fr); }
.qr-pair--flip .qr-items { order: 2; }
.qr-pair--flip .qr-pair__shots { order: 1; }

.qr-pair__shots {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.qr-pane {
    margin: 0;
    border-radius: 12px;
    border: 1px solid #e4e1f0;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 34px -26px rgba(20, 12, 48, .5);
}

/* The tinted mat carries the section's own colour and stops a white product
   screenshot dissolving into a white page. */
.qr-pane__pad { padding: 9px; background: linear-gradient(135deg, #f0ecfd, #eaf2fd); }
.qr-sec--imp .qr-pane__pad { background: linear-gradient(135deg, #e8f7f4, #eaf2fd); }
.qr-sec--fix .qr-pane__pad { background: linear-gradient(135deg, #fdf3e2, #fdf0f0); }

.qr-pane__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ddd9ee;
    background: #fff;
}

.qr-pane figcaption {
    padding: 9px 13px;
    border-top: 1px solid #f1eff9;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b6787;
}

.qr-pane--breaking {
    margin-top: 16px;
    border-color: #fbd5dd;
}

.qr-pane--breaking .qr-pane__pad { background: linear-gradient(135deg, #fdeaee, #fdf1f3); }
.qr-pane--breaking figcaption { color: #7b3345; border-top-color: #fbd5dd; }

.qr-breaking {
    margin-top: 38px;
    padding: 20px 22px;
    border: 1px solid #fbd5dd;
    border-left: 4px solid #e11d48;
    border-radius: 12px;
    background: #fff7f8;
}

.qr-breaking__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 650;
    color: #9f1239;
}

.qr-breaking__body {
    max-width: 62ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: #7b3345;
}

.qr-breaking__body p { margin: 0 0 10px; }
.qr-breaking__body p:last-child { margin-bottom: 0; }

.qr-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 44px;
}

.qr-pn {
    display: block;
    padding: 15px 18px;
    border: 1px solid #e8e6f2;
    border-radius: 12px;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
}

.qr-pn:hover {
    border-color: #d6cff0;
    box-shadow: 0 18px 34px -26px rgba(79, 70, 229, .5);
}

.qr-pn span {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #a5a1bb;
}

.qr-pn b {
    display: block;
    margin-top: 5px;
    font-size: 14.5px;
    font-weight: 650;
    color: #16123a;
}

.qr-pn--next {
    text-align: right;
    grid-column: 2;
}

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
    .qr-detail__cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .qr-toc {
        position: static;
        padding: 16px 18px;
        border: 1px solid #ece9f7;
        border-radius: 12px;
        background: #fff;
    }

    .qr-toc__list { margin-bottom: 0; }
    .qr-aside { display: none; }

    .qr-pair,
    .qr-pair--flip {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Stacked, the screenshot always follows the list it belongs to. */
    .qr-pair--flip .qr-items { order: 1; }
    .qr-pair--flip .qr-pair__shots { order: 2; }

    .qr-sec--paired { margin-inline: 0; }

    .qr-overview {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-inline: 0;
    }

    .qr-overview__rail {
        flex-direction: row;
        align-items: center;
        gap: 11px;
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid #eeebf8;
        min-height: 0;
        width: 100%;
    }

    .qr-overview__date { margin-left: auto; }
}

@media (max-width: 980px) {
    .qr-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Copy first, then the spotlight — a card above the h1 reads as an advert. */
    .qr-hero__copy { order: -1; }
}

@media (max-width: 760px) {
    .qr-grid { grid-template-columns: 1fr; }
    .qr-hero__inner { padding-block: 40px 42px; }
    .qr-stats { gap: 22px; }
    .qr-card { padding: 20px; }
    .qr-sec--paired { padding: 16px 16px 18px; }
    .qr-overview { padding: 18px 18px 20px; }
    .qr-prose > p:first-child { font-size: 16.5px; }
    .qr-toolbar__note { display: none; }
    .qr-hero__cta { margin-top: 24px; }

    .qr-prevnext { grid-template-columns: 1fr; }
    .qr-pn--next { grid-column: 1; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .qr-card,
    .qr-pn,
    .qr-chip { transition: none; }

    .qr-card:hover { transform: none; }
}
