/* ============================================================================
   Quick Kitchen Tools — the Test Kitchen layer
   Direction A from Stitch (2026-09-25): a calm product-forward catalog on
   white — hairline cards with 8px corners, framed 16:9 photos, the logo
   rust #9C4A24 as the only accent, Manrope headlines over an 18px Inter
   reading face. Structure inherited from tfm-theme (the broadsheet); the
   A-layer at the END of this file turns rules into cards, squares into
   8px corners and text-only labels into warm-paper chips. Bump
   QKT_CSS_VER on every change.
   ========================================================================= */

/* --- Base ---------------------------------------------------------------- */

body {
    background: var(--qkt-paper);
    color: var(--qkt-ink);
    font-family: var(--qkt-text);
    font-size: var(--qkt-size-body);
    line-height: var(--qkt-lh-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--qkt-display);
    color: var(--qkt-ink);
    line-height: var(--qkt-lh-head);
    letter-spacing: var(--qkt-track-head);
    font-weight: 700;
}

a { color: var(--qkt-primary); }
a:hover { color: var(--qkt-primary-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--qkt-primary); outline-offset: 2px; }

button, input, select, textarea { font-family: var(--qkt-ui); }

/* The off-canvas mobile drawer doubles scrollWidth — without this, touch
   devices pan sideways into a void. Also absorbs the 50vw full-bleed maths
   below, which overshoots by the scrollbar width on desktop. */
html { overflow-x: clip; }

.site-container {
    max-width: var(--qkt-page-max);
    margin: 0 auto;
    padding-left: var(--qkt-gutter);
    padding-right: var(--qkt-gutter);
}

/* main.css gives .site-main 3rem top padding, which stacks with each
   template's own head padding. The templates own their top spacing. */
.site-main { padding-top: 0; }

/* Full-bleed helper: a band that runs edge to edge while its content stays
   on the page grid. */
.qkt-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.qkt-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--qkt-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 2000;
}
.qkt-skip-link:focus { left: 0; color: #fff; }

/* Small caps — the broadsheet's one utility voice: meta, labels, nav, counts. */
.qkt-meta,
.qkt-label,
.qkt-kicker {
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 500;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-meta);
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.qkt-meta .sep { color: var(--qkt-rule); padding: 0 0.4em; }
.qkt-kicker { color: var(--qkt-primary); font-weight: 600; margin: 0 0 0.5rem; }

/* Category label — text only, blue small caps, thin underline. Never a pill. */
.qkt-chip {
    display: inline-block;
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 600;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-primary);
    text-decoration: none;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid currentColor;
    line-height: 1.3;
}
a.qkt-chip:hover { color: var(--qkt-primary-dark); }

/* Numerals — the design element. */
.qkt-num {
    font-family: var(--qkt-display);
    font-weight: 700;
    color: var(--qkt-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* --- Masthead -------------------------------------------------------------
   Thin ink rule on top, paper bar, hairline under: logo | small-caps nav |
   search on ONE row (user call, 2026-09-02 — the two-row variant read as
   "menu under the logo"). Seven links fit beside the logo at 1200px only
   with 12px small caps, 0.06em tracking and a 40px logo; below that the
   row wraps centred until the ≤1024px drawer takes over. The nav hooks
   menu.js needs are preserved; main.css supplies the drawer. */

.qkt-masthead {
    background: var(--qkt-paper);
    border-top: 3px solid var(--qkt-ink);
    border-bottom: 1px solid var(--qkt-rule);
}

.qkt-masthead-inner {
    max-width: var(--qkt-page-max);
    margin: 0 auto;
    padding: 0 var(--qkt-gutter);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "brand nav actions"
        "search search search";
    align-items: center;
    column-gap: 1rem;
    min-height: 72px;
    position: relative;
}
.qkt-brand { grid-area: brand; }
.qkt-masthead .header-actions { grid-area: actions; }
.qkt-masthead .main-navigation { grid-area: nav; justify-self: center; min-width: 0; }

.qkt-brand { display: flex; align-items: center; }
.qkt-brand a { display: flex; align-items: center; text-decoration: none; }
.qkt-brand-h1 { margin: 0; line-height: 1; display: flex; align-items: center; }
.qkt-brand-logo { height: 56px; width: auto; display: block; }   /* 754×442 mark + stacked wordmark: needs the height the wide tfm wordmark did not */

/* Desktop: the clip wrapper vanishes from layout; the nav stays a grid child. */
.qkt-drawer-clip { display: contents; }

.qkt-masthead .primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.qkt-masthead .main-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: var(--qkt-tap);
    padding: 0 0.45rem;
    font-family: var(--qkt-ui);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--qkt-ink);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}
.qkt-masthead .main-navigation a:hover { color: var(--qkt-primary); }
/* Underline as a positioned ::after, never a real border — a border adds
   height and shifts the whole row on hover. */
.qkt-masthead .main-navigation a::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.6rem;
    height: 1px;
    background: var(--qkt-primary);
    opacity: 0;
}
.qkt-masthead .main-navigation a:hover::after { opacity: 0.4; }
.qkt-masthead .main-navigation .current-menu-item > a,
.qkt-masthead .main-navigation .current_page_item > a,
.qkt-masthead .main-navigation .current-post-ancestor > a,
.qkt-masthead .main-navigation .current-cat > a { color: var(--qkt-primary); font-weight: 600; }
.qkt-masthead .main-navigation .current-menu-item > a::after,
.qkt-masthead .main-navigation .current_page_item > a::after,
.qkt-masthead .main-navigation .current-post-ancestor > a::after,
.qkt-masthead .main-navigation .current-cat > a::after { opacity: 1; }

.qkt-masthead .header-actions { display: flex; align-items: center; gap: 0.25rem; }
.qkt-masthead .desktop-search-toggle,
.qkt-masthead .mobile-search-toggle,
.qkt-masthead .mobile-menu-toggle {
    width: var(--qkt-tap);
    height: var(--qkt-tap);
    min-width: var(--qkt-tap);
    color: var(--qkt-ink);
}
.qkt-masthead .desktop-search-toggle svg,
.qkt-masthead .mobile-search-toggle svg { color: var(--qkt-ink); }
.qkt-masthead .desktop-search-toggle:hover svg,
.qkt-masthead .mobile-search-toggle:hover svg { color: var(--qkt-primary); }
.qkt-masthead .hamburger-line { background: var(--qkt-ink); }

.qkt-masthead .desktop-search-form,
.qkt-masthead .mobile-search-form {
    grid-area: search;
    background: var(--qkt-band);
    border-top: 1px solid var(--qkt-rule);
    margin-bottom: 0;
}
.qkt-masthead .search-field {
    font-family: var(--qkt-ui);
    font-size: 1rem;
    min-height: var(--qkt-tap);
    border-radius: 0;
    border: 1px solid var(--qkt-rule);
    background: var(--qkt-paper);
}
.qkt-masthead .desktop-search-form button,
.qkt-masthead .mobile-search-form button {
    min-height: var(--qkt-tap);
    border-radius: 0;
    font-family: var(--qkt-ui);
    font-weight: 600;
}

/* --- Framed image: 1px rule, square ------------------------------------------ */

.qkt-lead-figure,
.qkt-card-figure,
.qkt-lead-photo {
    display: block;
    overflow: hidden;
    border: 1px solid var(--qkt-rule);
    background: var(--qkt-band);
}
.qkt-lead-figure,
.qkt-card-figure { aspect-ratio: 16 / 9; }
.qkt-lead-figure img,
.qkt-card-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Lead story (home + archive page 1) ------------------------------------
   Ruled block: 7-column headline stack left, 5-column framed photo right. */

.qkt-lead-section { padding: clamp(2rem, 4vw, 3.5rem) 0 0; }

.qkt-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--qkt-col-gap);
    align-items: stretch;
    /* No rule under the lead: the next section head draws the rule that
       closes it (two stacked hairlines read as a mistake — user, 2026-09-02). */
    padding-bottom: 0;
}
.qkt-lead-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}
.qkt-lead-title {
    font-size: var(--qkt-h1-lead);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.qkt-lead-title a { color: var(--qkt-ink); text-decoration: none; }
.qkt-lead-title a:hover { color: var(--qkt-primary); }
/* The lead's frame fills the block's height (cover crop of the 16:9
   original) instead of sitting as a small 16:9 tile beside a tall headline
   stack (user feedback 2026-09-02). */
.qkt-lead > .qkt-lead-figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
}
.qkt-lead-text { justify-content: center; }

.qkt-lead-standfirst {
    font-family: var(--qkt-text);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--qkt-ink);
    margin: 0;
    max-width: 36rem;
}

/* --- Sections, section heads, ruled grid ------------------------------------ */

.qkt-section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.qkt-section + .qkt-section { padding-top: 0; }
.qkt-lead-section + .qkt-section { padding-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Section head: small-caps name left, hairline filling the width, count/link
   right in blue. The title is an H2 for structure but wears the label voice. */
.qkt-section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
}
.qkt-section-head::after {
    content: "";
    flex: 1 1 2rem;
    height: 1px;
    background: var(--qkt-rule);
    order: 2;
}
/* Auto ads like to insert a unit as this flex row's first child, shoving the
   title to the right edge. Give any injected element its own full-width
   row below the title instead. */
.qkt-section-head > :not(.qkt-section-name):not(.qkt-section-link):not(.qkt-section-count) {
    flex-basis: 100%;
    order: 4;
}
.qkt-section-name {
    order: 1;
    margin: 0;
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 600;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-ink);
    line-height: 1.4;
}
.qkt-section-count { order: 1; }
.qkt-section-link {
    order: 3;
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 600;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    min-height: var(--qkt-tap);
    display: inline-flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
}

/* Three columns, one vertical rule per gutter, a hairline between rows. The
   grid is pulled out by half a gutter so the first and last columns still
   sit on the page edge. */
.qkt-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    margin: 0 calc(-1 * var(--qkt-grid-gap));
}
.qkt-grid-3 > * {
    padding: 0 var(--qkt-grid-gap);
    min-width: 0;
}
.qkt-grid-3 > *:not(:nth-child(3n + 1)) { border-left: 1px solid var(--qkt-rule); }
.qkt-grid-3 > *:nth-child(n + 4) {
    border-top: 1px solid var(--qkt-rule);
    padding-top: var(--qkt-grid-gap);
    margin-top: var(--qkt-grid-gap);
}

/* Story — no box. Framed image, label, headline, serif one-liner, meta. */
.qkt-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}
.qkt-card-figure { width: 100%; }
.qkt-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    flex: 1;
}
.qkt-card-title {
    font-size: var(--qkt-card-title);
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.qkt-card-title a { color: var(--qkt-ink); text-decoration: none; }
.qkt-card-title a:hover { color: var(--qkt-primary); }
.qkt-card-excerpt {
    font-family: var(--qkt-text);
    color: var(--qkt-ink);
    font-size: 1.0625rem;
    line-height: 1.55;
    margin: 0;
}
.qkt-card-body .qkt-meta { margin-top: auto; }

/* --- Band (kept for 404 / search heads) --------------------------------------- */

.qkt-band {
    background: var(--qkt-band);
    border-top: 1px solid var(--qkt-rule);
    border-bottom: 1px solid var(--qkt-rule);
    padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
}
.qkt-band-flush { margin-top: 2rem; }
.qkt-band-inner { max-width: var(--qkt-page-max); margin: 0 auto; }

/* --- Category sections: feature + numbered list ------------------------------ */

.qkt-cat-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
}
.qkt-cat-grid > .qkt-feature { padding-right: var(--qkt-col-gap); }
.qkt-cat-grid > .qkt-numbered {
    border-left: 1px solid var(--qkt-rule);
    padding-left: var(--qkt-col-gap);
}
.qkt-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.qkt-feature .qkt-lead-figure { width: 100%; }
.qkt-feature-title { font-size: var(--qkt-h3); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.qkt-feature-title a { color: var(--qkt-ink); text-decoration: none; }
.qkt-feature-title a:hover { color: var(--qkt-primary); }
.qkt-feature-standfirst { font-family: var(--qkt-text); color: var(--qkt-ink); margin: 0; font-size: 1.0625rem; line-height: 1.55; }

.qkt-numbered {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: qkt-item;
}
.qkt-numbered li {
    counter-increment: qkt-item;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.4rem 0.75rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--qkt-rule);
}
.qkt-numbered li:first-child { padding-top: 0.25rem; }
.qkt-numbered li::before {
    content: counter(qkt-item, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: var(--qkt-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--qkt-primary);
    font-variant-numeric: tabular-nums;
    padding-top: 0.1rem;
}
.qkt-numbered-title {
    font-family: var(--qkt-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--qkt-ink);
    text-decoration: none;
}
.qkt-numbered-title:hover { color: var(--qkt-primary); }

/* --- Newsletter band ------------------------------------------------------------ */

.qkt-newsletter {
    background: var(--qkt-band);
    border-top: 1px solid var(--qkt-rule);
    padding: clamp(3rem, 6vw, 4.5rem) var(--qkt-gutter);
}
.qkt-newsletter-inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.qkt-newsletter h2 { font-size: var(--qkt-h2); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.qkt-newsletter p { font-family: var(--qkt-text); color: var(--qkt-ink); margin: 0; }
.qkt-newsletter .qkt-newsletter-note { font-family: var(--qkt-ui); color: var(--qkt-meta); }
.qkt-newsletter .newsletter-form {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 30rem;
    margin-top: 0.5rem;
    position: relative;
}
.qkt-newsletter .newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--qkt-ink);
    border-right: none;
    border-radius: 0;
    padding: 0 1rem;
    font-family: var(--qkt-ui);
    font-size: 1rem;
    background: var(--qkt-paper);
    color: var(--qkt-ink);
}
.qkt-newsletter .newsletter-form button,
.qkt-btn {
    min-height: 48px;
    padding: 0 1.5rem;
    border: 1px solid var(--qkt-primary);
    border-radius: 0;
    background: var(--qkt-primary);
    color: #fff;
    font-family: var(--qkt-ui);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}
.qkt-newsletter .newsletter-form button:hover,
.qkt-btn:hover { background: var(--qkt-primary-dark); border-color: var(--qkt-primary-dark); color: #fff; }
.qkt-newsletter .newsletter-message.success { color: var(--qkt-primary-dark); }
.qkt-newsletter .newsletter-message.error { color: var(--color-error); }

/* --- Footer (espresso, stacked bands) ---------------------------------------------
   2026-09-27: no more ink slab with four link columns. Espresso-rust ground
   (from the logo rust, not the portfolio navy) under a rust rule, then four ruled bands in reader order: topics rail (with
   Fraunces counts) -> about-this-site + newsletter lines -> colophon -> legal
   fine print. Every link is a 44px target; inline lists separate with a
   middle dot drawn by CSS. */

.qkt-footer {
    background: var(--qkt-footer-bg);
    color: var(--qkt-footer-text);
    border-top: 3px solid var(--qkt-primary);
    padding: 0 0 2rem;
}
.qkt-footer-inner { max-width: var(--qkt-page-max); margin: 0 auto; padding: 0 var(--qkt-gutter); }
.qkt-footer-label {
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-footer-muted);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

/* 1. Topics rail */
.qkt-footer-topics { padding: 2rem 0 0; }
.qkt-footer-rail {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--qkt-footer-rule);
    border-bottom: 1px solid var(--qkt-footer-rule);
}
.qkt-footer-rail li { border-left: 1px solid var(--qkt-footer-rule); }
.qkt-footer-rail li:first-child { border-left: none; }
.qkt-footer-rail a {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: var(--qkt-tap);
    padding: 1.1rem 1rem;
    text-decoration: none;
    color: var(--qkt-footer-text);
}
.qkt-footer-rail li:first-child a { padding-left: 0; }
.qkt-footer-rail-num {
    font-family: var(--qkt-display);
    font-weight: 500;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--qkt-footer-accent);
    font-variant-numeric: tabular-nums;
}
.qkt-footer-rail-name { font-family: var(--qkt-ui); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.qkt-footer-rail a:hover .qkt-footer-rail-name { color: var(--qkt-footer-accent); text-decoration: underline; }

/* 2. About this site + newsletter, one line each */
.qkt-footer-line {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--qkt-footer-rule);
}
.qkt-footer-inline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.25rem;
}
.qkt-footer-inline li { display: inline-flex; align-items: center; }
.qkt-footer-inline li + li::before {
    content: "\00B7";
    color: var(--qkt-footer-muted);
    margin: 0 0.6rem 0 0.35rem;
}
.qkt-footer-inline a {
    display: inline-flex;
    align-items: center;
    min-height: var(--qkt-tap);
    font-family: var(--qkt-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--qkt-footer-text);
    text-decoration: none;
}
.qkt-footer-inline a:hover { color: var(--qkt-footer-accent); text-decoration: underline; }

/* 3. Colophon */
.qkt-footer-colophon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem 2.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--qkt-footer-rule);
}
.qkt-footer-logo { display: block; }
.qkt-footer-logo img { height: 48px; width: auto; display: block; }
.qkt-footer-owner, .qkt-footer-copy {
    font-family: var(--qkt-ui);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--qkt-footer-muted);
    margin: 0;
}
.qkt-footer-copy { text-align: right; }
.qkt-footer-owner a { color: var(--qkt-footer-text); font-family: var(--qkt-ui); font-weight: 400; font-size: 0.9375rem; text-decoration: none; display: inline-block; padding: 0.65rem 0; margin: -0.65rem 0; } /* 44px tap without moving the line */
.qkt-footer-owner a:hover { color: var(--qkt-footer-accent); text-decoration: underline; }

/* 4. Legal fine print, CCPA trio last */
.qkt-footer-legal { padding: 0.75rem 0 0; }
.qkt-footer-legal .qkt-footer-inline a { font-size: 0.875rem; font-weight: 400; color: var(--qkt-footer-muted); }
.qkt-footer-legal .qkt-footer-inline a:hover { color: var(--qkt-footer-accent); }

/* --- Single post ----------------------------------------------------------------- */

.qkt-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--qkt-sidebar);
    gap: 0;
    padding: 2rem 0 3.5rem;
    align-items: start;
}
/* The article fills its grid track; no 740px cap and no character cap on
   the body (user, 2026-09-02) — the body size steps up to 20px instead to
   keep the line length near 75 characters. */
.qkt-article { min-width: 0; padding-right: var(--qkt-side-gap); }

.qkt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 500;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-meta);
    margin-bottom: 1.25rem;
}
.qkt-breadcrumb a { color: var(--qkt-meta); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.qkt-breadcrumb a:hover { color: var(--qkt-primary); }
.qkt-breadcrumb .sep { color: var(--qkt-rule); }

.qkt-article-head { margin-bottom: 1.75rem; }
.qkt-title {
    font-size: var(--qkt-title);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.qkt-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--qkt-rule);
}

.qkt-lead-photo { margin: 0 0 1.75rem; }
.qkt-lead-photo img { width: 100%; height: auto; display: block; }
.qkt-caption,
.qkt-article .entry-content figcaption {
    font-family: var(--qkt-ui);
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qkt-meta);
    text-align: left;
    padding: 0.6rem 0 0;
}
.qkt-lead-photo .qkt-caption { padding: 0.6rem 0.75rem 0.7rem; border-top: 1px solid var(--qkt-rule); background: var(--qkt-paper); }

.qkt-article .entry-content {
    font-size: var(--qkt-size-body);
    line-height: var(--qkt-lh-body);
}
.qkt-article .entry-content > * { max-width: 100%; }
.qkt-article .entry-content p { text-wrap: pretty; }
.qkt-article .entry-content h2 {
    font-size: var(--qkt-h2);
    font-weight: 700;
    margin: 3rem 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--qkt-rule);
    scroll-margin-top: 1.5rem;
    letter-spacing: -0.02em;
}
.qkt-article .entry-content h3 { font-size: var(--qkt-h3); margin: 2rem 0 0.8rem; letter-spacing: -0.015em; }
.qkt-article .entry-content a { text-decoration: underline; text-underline-offset: 0.15em; }
.qkt-article .entry-content img { border-radius: 0; border: 1px solid var(--qkt-rule); }
.qkt-article .entry-content figure { margin: 2rem 0; }
.qkt-article .entry-content figure img { border: 1px solid var(--qkt-rule); }

/* Contents (nav.toc from the content pipeline) — ruled box on the band,
   two columns, blue numerals. */
.qkt-article .entry-content .toc {
    background: var(--qkt-band);
    border: 1px solid var(--qkt-rule);
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.qkt-article .entry-content .toc h2 {
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 600;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--qkt-rule);
}
.qkt-article .entry-content .toc ul,
.qkt-article .entry-content .toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: qkt-toc;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 2rem;
}
.qkt-article .entry-content .toc li {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-increment: qkt-toc;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.5rem;
    align-items: baseline;
}
.qkt-article .entry-content .toc li::before {
    content: counter(qkt-toc, decimal-leading-zero);
    display: block;
    font-family: var(--qkt-display);
    font-weight: 700;
    color: var(--qkt-primary);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}
.qkt-article .entry-content .toc a {
    display: block;
    font-family: var(--qkt-ui);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.45rem 0;
    color: var(--qkt-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--qkt-rule);
}
.qkt-article .entry-content .toc a:hover { color: var(--qkt-primary); }

/* Pull quote — large serif italic, blue left rule. */
.qkt-article .entry-content blockquote {
    border-left: 3px solid var(--qkt-primary);
    background: transparent;
    border-radius: 0;
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    font-family: var(--qkt-text);
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--qkt-ink);
}
.qkt-article .entry-content blockquote p { margin: 0; }
.qkt-article .entry-content blockquote p + p { margin-top: 0.75rem; }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 560px; }
.qkt-article .entry-content th { background: var(--qkt-band); color: var(--qkt-ink); font-family: var(--qkt-ui); font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.qkt-article .entry-content td, .qkt-article .entry-content th { border-color: var(--qkt-rule); }

.qkt-page-links { margin: 1.75rem 0; display: flex; gap: 0.5rem; align-items: center; font-family: var(--qkt-ui); }
.qkt-page-links span { padding: 0.25rem 0.6rem; }

.qkt-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 2.5rem 0 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--qkt-rule);
    border-bottom: 1px solid var(--qkt-rule);
}
.qkt-share a {
    font-family: var(--qkt-ui);
    font-weight: 600;
    font-size: var(--qkt-size-meta);
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    text-decoration: none;
    min-height: var(--qkt-tap);
    display: inline-flex;
    align-items: center;
}
.qkt-related { margin-top: 3rem; }
.qkt-related .qkt-card-title { font-size: 1.0625rem; }

/* --- Sidebar (column rule to the left, ruled modules) ---------------------------- */

.qkt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    min-width: 0;
    border-left: 1px solid var(--qkt-rule);
    padding-left: var(--qkt-side-gap);
    align-self: stretch;
}
.qkt-widget { margin: 0; }
.qkt-widget-title {
    font-family: var(--qkt-ui);
    font-size: var(--qkt-size-meta);
    font-weight: 600;
    letter-spacing: var(--qkt-track-meta);
    text-transform: uppercase;
    color: var(--qkt-ink);
    margin: 0 0 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--qkt-rule);
}

.qkt-mostread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qkt-mostread li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--qkt-rule);
}
.qkt-mostread li:last-child { border-bottom: none; }
.qkt-mostread-num {
    font-family: var(--qkt-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--qkt-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    padding-top: 0.1rem;
}
.qkt-mostread-text { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.qkt-mostread-title {
    font-family: var(--qkt-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--qkt-ink);
    text-decoration: none;
}
.qkt-mostread-title:hover { color: var(--qkt-primary); }

.qkt-cat-list { list-style: none; margin: 0; padding: 0; }
.qkt-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--qkt-tap);
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--qkt-rule);
    color: var(--qkt-ink);
    text-decoration: none;
    font-family: var(--qkt-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.qkt-cat-list li:last-child a { border-bottom: none; }
.qkt-cat-list a:hover { color: var(--qkt-primary); }
.qkt-cat-count {
    font-family: var(--qkt-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--qkt-primary);
    font-variant-numeric: tabular-nums;
}

/* Newsletter block — on the band, ruled. Not sticky (user, 2026-09-02). */
.qkt-widget-news {
    background: var(--qkt-band);
    border: 1px solid var(--qkt-rule);
    padding: 1.5rem;
    text-align: left;
}
.qkt-widget-news .qkt-widget-title { border-bottom: none; padding-bottom: 0; margin-bottom: 0.5rem; }
.qkt-widget-news p { font-family: var(--qkt-text); color: var(--qkt-ink); font-size: 1rem; line-height: 1.5; margin: 0 0 1rem; }
.qkt-widget-news .qkt-newsletter-note { font-family: var(--qkt-ui); color: var(--qkt-meta); font-size: 0.75rem; margin: 0.75rem 0 0; }
.qkt-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.qkt-widget-news .newsletter-form input[type="email"] {
    min-height: var(--qkt-tap);
    border: 1px solid var(--qkt-ink);
    border-radius: 0;
    padding: 0 0.9rem;
    font-family: var(--qkt-ui);
    font-size: 0.9375rem;
    background: var(--qkt-paper);
    color: var(--qkt-ink);
}
.qkt-widget-news .newsletter-form button {
    min-height: var(--qkt-tap);
    border: 1px solid var(--qkt-primary);
    border-radius: 0;
    background: var(--qkt-primary);
    color: #fff;
    font-family: var(--qkt-ui);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.qkt-widget-news .newsletter-form button:hover { background: var(--qkt-primary-dark); }
.qkt-widget-news .newsletter-message.success { color: var(--qkt-primary-dark); }
.qkt-widget-news .newsletter-message.error { color: var(--color-error); }

/* Ad slots — rule-bordered frame, labelled, reserved height; an unfilled
   unit collapses the whole slot (Google permits collapsing unfilled units). */
.qkt-ad {
    text-align: center;
    border: 1px solid var(--qkt-rule);
    padding: 0.75rem 0;   /* 304px sidebar − 2px borders = 302px ≥ a 300px unit */
    background: var(--qkt-paper);
}
.qkt-ad::before {
    content: "Advertisement";
    display: block;
    font-family: var(--qkt-ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--qkt-meta);
    margin-bottom: 0.5rem;
}
.qkt-ad:has(ins[data-ad-status="unfill-optimized"]),
.qkt-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.qkt-ad-placeholder {
    border: 1px dashed var(--qkt-rule);
    padding: 2rem 1rem;
    color: var(--qkt-meta);
    font-family: var(--qkt-ui);
    font-size: 0.875rem;
}

/* --- Archive ---------------------------------------------------------------- */

/* Masthead on the band, full bleed, hairline under. */
.qkt-archive-head {
    background: var(--qkt-band);
    border-bottom: 1px solid var(--qkt-rule);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(2rem, 4.5vw, 3.25rem) calc(50vw - 50%) clamp(2rem, 4.5vw, 3rem);
}
.qkt-archive-head-inner { max-width: var(--qkt-page-max); margin: 0 auto; }
/* Category line art: a transparent drawing pinned to the right of the
   masthead, full band height, behind nothing — the text column stops at
   46rem so the two never overlap on desktop. */
.qkt-archive-head.has-backdrop .qkt-archive-head-inner { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.qkt-archive-head.has-backdrop .qkt-archive-head-text { max-width: 58%; position: relative; z-index: 1; }
.qkt-archive-art {
    position: absolute;
    top: calc(-1 * clamp(2rem, 4.5vw, 3.25rem));
    bottom: calc(-1 * clamp(2rem, 4.5vw, 3rem));
    right: 0;
    width: 38%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}
.qkt-archive-art img { height: 100%; width: 100%; object-fit: contain; object-position: right center; display: block; }
.qkt-archive-head .qkt-breadcrumb { margin-bottom: 0.9rem; }
.qkt-archive-title {
    font-size: var(--qkt-h1);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}
.qkt-archive-description {
    font-family: var(--qkt-text);
    color: var(--qkt-ink);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 46rem;
    margin-top: 1rem;
}
.qkt-archive-description p { margin: 0; }
.qkt-archive-count {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--qkt-rule);
    color: var(--qkt-primary);
    font-weight: 600;
}

.qkt-archive-grid { margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.qkt-archive-lead {
    grid-column: 1 / -1;
    border-left: none !important;
    margin-bottom: var(--qkt-grid-gap);
}
/* The lead occupies the first grid cell, so column/row rules shift by one. */
.qkt-archive-grid > .qkt-card:not(:nth-child(3n + 2)) { border-left: 1px solid var(--qkt-rule); }
.qkt-archive-grid > .qkt-card:nth-child(3n + 2) { border-left: none; }
.qkt-archive-grid > .qkt-card:nth-child(n + 2):nth-child(-n + 4) { border-top: none; padding-top: 0; margin-top: 0; }
.qkt-archive-grid > .qkt-card:nth-child(n + 5) {
    border-top: 1px solid var(--qkt-rule);
    padding-top: var(--qkt-grid-gap);
    margin-top: var(--qkt-grid-gap);
}
.qkt-archive-lead .qkt-lead { padding-bottom: 0; }

/* Pager — 44px square rule-bordered buttons, current filled blue. */
.qkt-pager {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    padding: 2.25rem 0 3.5rem;
    border-top: 1px solid var(--qkt-rule);
    margin-top: var(--qkt-grid-gap);
    font-family: var(--qkt-ui);
}
.qkt-pager .nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.qkt-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--qkt-tap);
    min-height: var(--qkt-tap);
    padding: 0 0.9rem;
    border: 1px solid var(--qkt-rule);
    background: var(--qkt-paper);
    color: var(--qkt-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}
.qkt-pager a.page-numbers:hover { border-color: var(--qkt-primary); color: var(--qkt-primary); }
.qkt-pager .page-numbers.current { background: var(--qkt-primary); border-color: var(--qkt-primary); color: #fff; }
.qkt-pager .page-numbers.dots { border: none; background: none; color: var(--qkt-meta); }
.qkt-pager-count { color: var(--qkt-meta); }

/* --- Static pages, empty states, comments ------------------------------------ */

.qkt-page { max-width: var(--qkt-content-max); margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.qkt-page-title { font-size: var(--qkt-h1); font-weight: 700; margin: 0 0 1.75rem; letter-spacing: -0.03em; }
.qkt-page .entry-content { max-width: var(--qkt-measure); }
.qkt-page .entry-content h2 { margin-top: 2.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--qkt-rule); }
.qkt-page .entry-content a { text-decoration: underline; }

.qkt-empty { max-width: 38rem; margin: 0 auto; text-align: center; padding: 4rem 0 3rem; }
.qkt-empty h1 { font-size: var(--qkt-h1); margin: 0.5rem 0 1rem; }
.qkt-empty p { color: var(--qkt-meta); margin-bottom: 1.5rem; }
.qkt-empty .search-form { display: flex; gap: 0; max-width: 26rem; margin: 0 auto; }
.qkt-empty .search-field,
.qkt-widget .search-field {
    flex: 1;
    min-width: 0;
    min-height: var(--qkt-tap);
    border: 1px solid var(--qkt-ink);
    border-right: none;
    border-radius: 0;
    padding: 0 0.9rem;
    background: var(--qkt-paper);
    font-family: var(--qkt-ui);
}
.qkt-empty .search-submit,
.qkt-widget .search-submit {
    min-height: var(--qkt-tap);
    padding: 0 1.1rem;
    border: 1px solid var(--qkt-primary);
    border-radius: 0;
    background: var(--qkt-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.comments-area { margin-top: 3rem; }
.comments-area .comments-title,
.comments-area .comment-reply-title { font-size: var(--qkt-h3); }
.comments-area .comment-list { list-style: none; padding: 0; }
/* Square corners on the comment form — main.css rounds them (QA 2026-09-02). */
.comments-area input:not([type="checkbox"]):not([type="submit"]),
.comments-area textarea { border-radius: 0; border: 1px solid var(--qkt-rule); font-family: var(--qkt-ui); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--qkt-primary); outline: none; }
.comments-area .comment-form input[type="submit"],
.comments-area #submit { border-radius: 0 !important; }
.comments-area .submit {
    background: var(--qkt-primary);
    border: none;
    border-radius: 0;
    color: #fff;
    font-weight: 600;
    min-height: var(--qkt-tap);
    padding: 0 1.5rem;
    cursor: pointer;
}
.comments-area .submit:hover { background: var(--qkt-primary-dark); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* --- Responsive ------------------------------------------------------------ */

/* 1025–1200px: the container shrinks with the gutters, so the seven links
   need one more notch down to stay on one row beside the logo. */
@media (max-width: 1200px) {
    .qkt-masthead .main-navigation a { font-size: 0.6875rem; padding: 0 0.35rem; letter-spacing: 0.05em; }
    .qkt-masthead .main-navigation a::after { left: 0.35rem; right: 0.35rem; }
    .qkt-brand-logo { height: 48px; }
    .qkt-masthead-inner { column-gap: 0.75rem; }
}

@media (max-width: 1024px) {
    .qkt-masthead-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "search search";
        min-height: 64px;
    }
    .qkt-brand-logo { height: 46px; }
    .qkt-masthead .main-navigation { grid-area: auto; }

    /* The drawer's parking spot (right: -100%) widens the page's scrollable
       area. Contain it: the wrapper becomes a fixed, full-viewport,
       overflow-hidden box and the drawer positions absolutely inside it. */
    .qkt-drawer-clip {
        display: block;
        position: fixed;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 1000;
    }
    .qkt-drawer-clip .main-navigation { position: absolute; pointer-events: auto; }

    /* main.css turns .main-navigation into a fixed drawer at this width and
       relied on `.header-main .main-navigation{display:block!important}`;
       this masthead has no .header-main, so supply it here. */
    .qkt-masthead .main-navigation { display: block; justify-self: auto; }
    .qkt-masthead .primary-menu { gap: 0; }
    .qkt-masthead .primary-menu,
    .qkt-masthead .main-navigation ul { display: block; text-align: left; }
    .qkt-masthead .main-navigation li { border-bottom: 1px solid var(--qkt-rule); }
    .qkt-masthead .main-navigation a { min-height: var(--qkt-nav-tap); padding: 0 1.5rem; font-size: 0.875rem; }
    .qkt-masthead .main-navigation a::after { display: none; }
    .qkt-masthead .header-actions { margin-left: auto; grid-column: 2; }
    .qkt-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; right: 0.75rem; z-index: 1002; }

    .qkt-lead { grid-template-columns: minmax(0, 1fr); }
    .qkt-lead-figure { order: -1; }
    .qkt-lead > .qkt-lead-figure { aspect-ratio: 16 / 9; height: auto; min-height: 0; }

    /* Two columns: one rule per gutter, hairline between rows. */
    .qkt-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qkt-grid-3 > * { border-left: none !important; border-top: none; padding-top: 0; margin-top: 0; }
    .qkt-grid-3 > *:nth-child(2n) { border-left: 1px solid var(--qkt-rule) !important; }
    .qkt-grid-3 > *:nth-child(n + 3) {
        border-top: 1px solid var(--qkt-rule);
        padding-top: var(--qkt-grid-gap);
        margin-top: var(--qkt-grid-gap);
    }
    .qkt-archive-grid > .qkt-card { border-left: none !important; border-top: none; padding-top: 0; margin-top: 0; }
    .qkt-archive-grid > .qkt-card:nth-child(2n + 1) { border-left: 1px solid var(--qkt-rule) !important; }
    .qkt-archive-grid > .qkt-card:nth-child(n + 4) {
        border-top: 1px solid var(--qkt-rule);
        padding-top: var(--qkt-grid-gap);
        margin-top: var(--qkt-grid-gap);
    }

    .qkt-archive-head.has-backdrop .qkt-archive-head-inner { min-height: 0; }
    .qkt-archive-head.has-backdrop .qkt-archive-head-text { max-width: 60%; }
    .qkt-archive-art { width: 36%; }
    .qkt-cat-grid { grid-template-columns: minmax(0, 1fr); }
    .qkt-cat-grid > .qkt-feature { padding-right: 0; }
    .qkt-cat-grid > .qkt-numbered { border-left: none; padding-left: 0; margin-top: 1.5rem; border-top: 1px solid var(--qkt-rule); padding-top: 0.5rem; }

    .qkt-single { grid-template-columns: minmax(0, 1fr); }
    .qkt-article { max-width: none; padding-right: 0; }
    .qkt-sidebar {
        border-left: none;
        border-top: 1px solid var(--qkt-rule);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2.5rem;
    }
    /* Footer rail 3x2; the about/newsletter lines stack. */
    .qkt-footer-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .qkt-footer-rail li:nth-child(3n + 1) { border-left: none; }
    .qkt-footer-rail li:nth-child(3n + 1) a { padding-left: 0; }
    .qkt-footer-rail li:nth-child(n + 4) { border-top: 1px solid var(--qkt-footer-rule); }
    .qkt-footer-line { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    /* One column: hairlines between stories only. */
    .qkt-grid-3 { grid-template-columns: minmax(0, 1fr); margin: 0; }
    .qkt-grid-3 > * { padding-left: 0; padding-right: 0; border-left: none !important; }
    .qkt-grid-3 > *:nth-child(n + 2) {
        border-top: 1px solid var(--qkt-rule);
        padding-top: var(--qkt-grid-gap);
        margin-top: var(--qkt-grid-gap);
    }
    .qkt-archive-grid > .qkt-card { border-left: none !important; }
    .qkt-archive-grid > .qkt-card:nth-child(n + 2) {
        border-top: 1px solid var(--qkt-rule);
        padding-top: var(--qkt-grid-gap);
        margin-top: var(--qkt-grid-gap);
    }
    .qkt-lead-section { padding-top: 1.5rem; }
    .qkt-lead-standfirst { font-size: 1.125rem; }
    .qkt-section-head { gap: 0.5rem 1rem; }
    .qkt-section-head::after { display: none; }
    .qkt-section-head .qkt-section-link { margin-left: auto; }
    .qkt-article .entry-content .toc ul,
    .qkt-article .entry-content .toc ol { grid-template-columns: minmax(0, 1fr); }
    /* Footer rail 2x3; colophon stacks left-aligned. */
    .qkt-footer-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qkt-footer-rail li:nth-child(3n + 1) { border-left: 1px solid var(--qkt-footer-rule); }
    .qkt-footer-rail li:nth-child(3n + 1) a { padding-left: 1rem; }
    .qkt-footer-rail li:nth-child(odd) { border-left: none; }
    .qkt-footer-rail li:nth-child(odd) a { padding-left: 0; }
    .qkt-footer-rail li:nth-child(n + 4) { border-top: none; }
    .qkt-footer-rail li:nth-child(n + 3) { border-top: 1px solid var(--qkt-footer-rule); }
    .qkt-footer-colophon { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
    .qkt-footer-copy { text-align: left; }
    /* Inline lists become two tidy columns, no dots at the start of a wrapped line. */
    .qkt-footer-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
    .qkt-footer-inline li + li::before { display: none; }
    .qkt-newsletter .newsletter-form { flex-direction: column; gap: 0.6rem; }
    .qkt-newsletter .newsletter-form input[type="email"] { border-right: 1px solid var(--qkt-ink); }
    .qkt-share { gap: 0.75rem 1rem; }
    .qkt-article-meta { gap: 0.35rem; }
    .qkt-article-meta .sep { display: none; }
    .qkt-article-meta > * { flex-basis: 100%; }
    .qkt-archive-head { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .qkt-archive-art { display: none; }
}


/* ============================================================================
   TEST KITCHEN A-LAYER — overrides on the broadsheet structure above.
   ========================================================================= */

/* Ground and masthead: white page, no heavy top rule, hairline under. */
body { background: var(--qkt-paper); }
.qkt-masthead { border-top: none; }

/* Corners: 8px on every framed image, box, button and field. */
.qkt-lead-figure, .qkt-card-figure, .qkt-lead-photo,
.qkt-article .entry-content img, .qkt-article .entry-content figure img,
.qkt-widget-news, .qkt-ad, .qkt-ad-placeholder,
.qkt-article .entry-content .toc, .qkt-newsletter .newsletter-form input[type="email"],
.qkt-newsletter .newsletter-form button, .qkt-widget-news .newsletter-form input[type="email"],
.qkt-widget-news .newsletter-form button, .qkt-btn, .qkt-pager .page-numbers,
.qkt-archive-count, .comments-area input[type="text"], .comments-area input[type="email"],
.comments-area input[type="url"], .comments-area textarea, .comments-area .submit,
.qkt-empty .search-field, .qkt-empty .search-submit { border-radius: var(--qkt-radius); }
.qkt-lead-photo .qkt-caption { border-radius: 0 0 var(--qkt-radius) var(--qkt-radius); }

/* Category label: rust text on a warm-paper pill (A), not an underlined
   small-caps word (B). */
.qkt-chip, a.qkt-chip {
    background: var(--qkt-band);
    border: 1px solid var(--qkt-band-border);
    border-radius: 999px;
    padding: 0.3rem 0.7rem 0.28rem;
    line-height: 1.2;
    font-size: 0.75rem;
}
a.qkt-chip:hover { background: var(--qkt-band-border); color: var(--qkt-primary-dark); }

/* Grids: real gaps instead of column rules; nothing draws a border between
   cells because the cards carry their own hairline. */
.qkt-grid-3 {
    margin: 0;
    column-gap: var(--qkt-grid-gap);
    row-gap: var(--qkt-grid-gap);
}
.qkt-grid-3 > * { padding: 0; }
.qkt-grid-3 > *:not(:nth-child(3n + 1)) { border-left: none; }
.qkt-grid-3 > *:nth-child(n + 4) { border-top: none; padding-top: 0; margin-top: 0; }

/* Card: a hairline box, photo flush to the top, 8px corners, body padded. */
.qkt-card {
    border: 1px solid var(--qkt-rule);
    border-radius: var(--qkt-radius);
    background: var(--qkt-paper);
    overflow: hidden;
    gap: 0;
    transition: border-color 0.2s;
}
.qkt-card:hover { border-color: var(--qkt-band-border); }
.qkt-card > .qkt-card-figure { border: none; border-radius: 0; border-bottom: 1px solid var(--qkt-rule); }
.qkt-card-body { padding: 1.1rem 1.15rem 1.2rem; gap: 0.65rem; width: 100%; }
.qkt-card-excerpt { color: var(--qkt-meta); font-size: 1rem; line-height: 1.55; }

/* Archive grid inherits the card look; undo the rule arithmetic. */
.qkt-archive-grid > .qkt-card:not(:nth-child(3n + 2)),
.qkt-archive-grid > .qkt-card:nth-child(n + 5) { border-left: 1px solid var(--qkt-rule); border-top: 1px solid var(--qkt-rule); padding-top: 0; margin-top: 0; }
.qkt-archive-lead { margin-bottom: 0; border: none !important; background: none; overflow: visible; }

/* Category sections: feature + list keep a hairline between them, list rows
   keep their hairlines — that is the one place rules survive in A. */
.qkt-feature .qkt-lead-figure { border-radius: var(--qkt-radius); }

/* Lead: text on flat white, photo in its own 8px frame. */
.qkt-lead > .qkt-lead-figure { border-radius: var(--qkt-radius); }
.qkt-lead-standfirst { color: var(--qkt-meta); font-size: 1.125rem; }

/* Section head: name in ink, hairline, count in rust — kept; the name loses
   the small caps and reads as a Manrope title. */
.qkt-section-name {
    text-transform: none;
    letter-spacing: -0.01em;
    font-family: var(--qkt-display);
    font-size: 1.375rem;
    font-weight: 800;
}

/* Sidebar: no column rule; modules are hairline boxes. */
.qkt-sidebar { border-left: none; padding-left: 0; }
.qkt-widget-title { text-transform: none; letter-spacing: -0.01em; font-family: var(--qkt-display); font-size: 1.0625rem; font-weight: 800; }
.qkt-widget-news { background: var(--qkt-band); border-color: var(--qkt-band-border); padding: 1.35rem; }
.qkt-widget-news .newsletter-form input[type="email"] { border-color: var(--qkt-band-border); background: var(--qkt-paper); }

/* Buttons: solid rust, white text, 8px corners, no uppercase shouting. */
.qkt-btn, .qkt-newsletter .newsletter-form button, .qkt-widget-news .newsletter-form button, .comments-area .submit {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Archive masthead on flat white with a hairline under; no line art in A. */
.qkt-archive-head { background: var(--qkt-paper); }
.qkt-archive-art { display: none; }
.qkt-archive-head.has-backdrop .qkt-archive-head-text { max-width: 46rem; }
.qkt-archive-description { color: var(--qkt-meta); }

/* Article: table heads on warm paper, TOC box on warm paper with a tinted
   border, pull quote keeps the rust rule. */
.qkt-article .entry-content th { background: var(--qkt-band); text-transform: none; letter-spacing: 0; font-size: 0.9375rem; }
.qkt-article .entry-content .toc { border-color: var(--qkt-band-border); }
.qkt-article .entry-content table { border-radius: var(--qkt-radius); overflow: hidden; }

/* Newsletter band: warm paper, not grey. */
.qkt-newsletter { background: var(--qkt-band); border-top: 1px solid var(--qkt-band-border); }
.qkt-newsletter .newsletter-form input[type="email"] { border-color: var(--qkt-band-border); }

/* Comment form fields: soft corners here too (the broadsheet squared them). */
.comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"], .comments-area textarea { border-radius: var(--qkt-radius); }

/* Tablet/mobile: the two-column fallbacks above drew rules — silence them. */
@media (max-width: 1024px) {
    .qkt-grid-3 > *:nth-child(2n) { border-left: none !important; }
    .qkt-grid-3 > *:nth-child(n + 3) { border-top: none; padding-top: 0; margin-top: 0; }
    .qkt-archive-grid > .qkt-card:nth-child(2n + 1) { border-left: 1px solid var(--qkt-rule) !important; }
}
@media (max-width: 640px) {
    .qkt-grid-3 > *:nth-child(n + 2) { border-top: none; padding-top: 0; margin-top: 0; }
}


/* ============================================================================
   REVIEW ROUND 1 (2026-09-26, live feedback)
   ========================================================================= */

/* Fraunces headings sit at 600, never 700 (700 goes soft and blobby). */
h1, h2, h3, .qkt-lead-title, .qkt-card-title, .qkt-feature-title, .qkt-section-name,
.qkt-archive-title, .qkt-title, .qkt-page-title, .qkt-widget-title, .qkt-newsletter h2 { font-weight: 600; }
.qkt-numbered li::before, .qkt-mostread-num, .qkt-cat-count, .qkt-num { font-weight: 600; }

/* Category label: a plain rust small-caps word — no pill, no box, no underline. */
.qkt-chip, a.qkt-chip {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: var(--qkt-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--qkt-primary);
    line-height: 1.3;
}
a.qkt-chip:hover { background: none; color: var(--qkt-primary-dark); text-decoration: underline; text-underline-offset: 0.2em; }

/* Cards keep all four edges — the broadsheet's column-rule arithmetic had
   removed the left edge of the 2nd and 3rd card in every row. */
.qkt-grid-3 > .qkt-card,
.qkt-archive-grid > .qkt-card { border: 1px solid var(--qkt-rule) !important; padding-top: 0 !important; margin-top: 0 !important; }
.qkt-archive-grid > .qkt-archive-lead { border: none !important; }

/* Related: nine cards, titles only. */
.qkt-related .qkt-card-body { padding-bottom: 1.15rem; }

/* Newsletter: no more centred band on a tint. A bordered panel inside the
   page width, text left, the form on the right, the eyebrow in Fraunces. */
.qkt-newsletter.qkt-newsletter {
    background: var(--qkt-paper);
    border-top: none;
    padding: clamp(2rem, 4vw, 3.5rem) var(--qkt-gutter);
}
.qkt-newsletter .qkt-newsletter-inner {
    max-width: var(--qkt-page-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    text-align: left;
    border: 1px solid var(--qkt-band-border);
    border-radius: var(--qkt-radius-lg);
    padding: clamp(1.75rem, 3.5vw, 3rem);
    background: var(--qkt-band);
}
.qkt-newsletter-eyebrow {
    font-family: var(--qkt-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.125rem;
    color: var(--qkt-primary);
    margin: 0 0 0.5rem;
    letter-spacing: 0;
    text-transform: none;
}
.qkt-newsletter .qkt-newsletter-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; margin: 0 0 0.75rem; text-wrap: balance; }
.qkt-newsletter .qkt-newsletter-text p { color: var(--qkt-meta); font-size: 1.0625rem; margin: 0; max-width: 34rem; }
.qkt-newsletter .qkt-newsletter-signup { display: flex; flex-direction: column; gap: 0.75rem; }
.qkt-newsletter .newsletter-form { max-width: none; margin: 0; gap: 0.6rem; flex-direction: column; }
.qkt-newsletter .newsletter-form input[type="email"] {
    border: 1px solid var(--qkt-band-border);
    border-right: 1px solid var(--qkt-band-border);
    border-radius: var(--qkt-radius);
    background: var(--qkt-paper);
    min-height: 50px;
    font-size: 1.0625rem;
}
.qkt-newsletter .newsletter-form input[type="email"]:focus { border-color: var(--qkt-primary); outline: none; }
.qkt-newsletter .newsletter-form button { border-radius: var(--qkt-radius); min-height: 50px; font-size: 1rem; }
.qkt-newsletter .qkt-newsletter-note { margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
@media (max-width: 900px) {
    .qkt-newsletter .qkt-newsletter-inner { grid-template-columns: minmax(0, 1fr); background: var(--qkt-band); }
}
@media (max-width: 1024px) {
    .qkt-newsletter .newsletter-form input[type="email"] { border-right: 1px solid var(--qkt-band-border); }
}


/* ============================================================================
   REVIEW ROUND 2 (2026-09-26)
   ========================================================================= */

/* Section head: title, count and link share a baseline; the hairline stays
   centred on the title's x-height. */
.qkt-section-head { align-items: baseline; }
.qkt-section-head::after { align-self: center; }
.qkt-section-count { position: relative; top: -0.05em; }

/* Contents box: entries flow down the left column first (01–04), then the
   right (05–08) — CSS columns instead of a row-first grid. */
.qkt-article .entry-content .toc ul,
.qkt-article .entry-content .toc ol {
    display: block;
    columns: 2;
    column-gap: 2rem;
}
.qkt-article .entry-content .toc li { break-inside: avoid; page-break-inside: avoid; }
@media (max-width: 640px) {
    .qkt-article .entry-content .toc ul,
    .qkt-article .entry-content .toc ol { columns: 1; }
}

/* Less air between the last category section and the newsletter panel. */
.qkt-cat-section:last-of-type { padding-bottom: 0.5rem; }
.qkt-newsletter.qkt-newsletter { padding-top: clamp(1.25rem, 2.5vw, 2rem); }

/* Newsletter panel ground: the whole box on warm paper with a faded rust
   line-art still life (gpt-image-2.5, 2026-09-26) behind both columns. The
   drawing drifts from the lower left to the upper right, so the copy sits
   on its emptiest region and the white fields cover the busiest. */
.qkt-newsletter .qkt-newsletter-inner {
    background: var(--qkt-band) url('../images/newsletter-lineart.webp') center / cover no-repeat;
}
.qkt-newsletter .qkt-newsletter-text p { color: var(--qkt-ink); }
@media (max-width: 900px) {
    .qkt-newsletter .qkt-newsletter-inner { background-position: right bottom; background-size: 140% auto; }
}
