/* ============================================================================
   The Focused Method — the Deep Work layer
   Loads LAST, after theme-variables.css and main.css. This file is the only
   place site styling lives; main.css is the shared core and is never edited.

   Design source: house-design.md (broadsheet treatment, no cards, one hue)
   + Stitch project 12788853676311251838 direction B (2026-09-02): paper
   ground, near-black ink, electric-blue numerals and labels, Space Grotesk
   headlines over a 19px Source Serif 4 reading face, hairlines and column
   rules for all separation, square corners, no shadows.
   ========================================================================= */

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

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

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

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

button, input, select, textarea { font-family: var(--tfm-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(--tfm-page-max);
    margin: 0 auto;
    padding-left: var(--tfm-gutter);
    padding-right: var(--tfm-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. */
.tfm-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

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

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

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

/* Numerals — the design element. */
.tfm-num {
    font-family: var(--tfm-display);
    font-weight: 700;
    color: var(--tfm-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. */

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

.tfm-masthead-inner {
    max-width: var(--tfm-page-max);
    margin: 0 auto;
    padding: 0 var(--tfm-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;
}
.tfm-brand { grid-area: brand; }
.tfm-masthead .header-actions { grid-area: actions; }
.tfm-masthead .main-navigation { grid-area: nav; justify-self: center; min-width: 0; }

.tfm-brand { display: flex; align-items: center; }
.tfm-brand a { display: flex; align-items: center; text-decoration: none; }
.tfm-brand-h1 { margin: 0; line-height: 1; display: flex; align-items: center; }
.tfm-brand-logo { height: 40px; width: auto; display: block; }

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

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

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

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

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

.tfm-lead-figure,
.tfm-card-figure,
.tfm-lead-photo {
    display: block;
    overflow: hidden;
    border: 1px solid var(--tfm-rule);
    background: var(--tfm-band);
}
.tfm-lead-figure,
.tfm-card-figure { aspect-ratio: 16 / 9; }
.tfm-lead-figure img,
.tfm-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. */

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

.tfm-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--tfm-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;
}
.tfm-lead-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}
.tfm-lead-title {
    font-size: var(--tfm-h1-lead);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.tfm-lead-title a { color: var(--tfm-ink); text-decoration: none; }
.tfm-lead-title a:hover { color: var(--tfm-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). */
.tfm-lead > .tfm-lead-figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 380px;
}
.tfm-lead-text { justify-content: center; }

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

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

.tfm-section { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.tfm-section + .tfm-section { padding-top: 0; }
.tfm-lead-section + .tfm-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. */
.tfm-section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
}
.tfm-section-head::after {
    content: "";
    flex: 1 1 2rem;
    height: 1px;
    background: var(--tfm-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. */
.tfm-section-head > :not(.tfm-section-name):not(.tfm-section-link):not(.tfm-section-count) {
    flex-basis: 100%;
    order: 4;
}
.tfm-section-name {
    order: 1;
    margin: 0;
    font-family: var(--tfm-ui);
    font-size: var(--tfm-size-meta);
    font-weight: 600;
    letter-spacing: var(--tfm-track-meta);
    text-transform: uppercase;
    color: var(--tfm-ink);
    line-height: 1.4;
}
.tfm-section-count { order: 1; }
.tfm-section-link {
    order: 3;
    font-family: var(--tfm-ui);
    font-size: var(--tfm-size-meta);
    font-weight: 600;
    letter-spacing: var(--tfm-track-meta);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    min-height: var(--tfm-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. */
.tfm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 0;
    margin: 0 calc(-1 * var(--tfm-grid-gap));
}
.tfm-grid-3 > * {
    padding: 0 var(--tfm-grid-gap);
    min-width: 0;
}
.tfm-grid-3 > *:not(:nth-child(3n + 1)) { border-left: 1px solid var(--tfm-rule); }
.tfm-grid-3 > *:nth-child(n + 4) {
    border-top: 1px solid var(--tfm-rule);
    padding-top: var(--tfm-grid-gap);
    margin-top: var(--tfm-grid-gap);
}

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

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

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

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

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

.tfm-numbered {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: tfm-item;
}
.tfm-numbered li {
    counter-increment: tfm-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(--tfm-rule);
}
.tfm-numbered li:first-child { padding-top: 0.25rem; }
.tfm-numbered li::before {
    content: counter(tfm-item, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: var(--tfm-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tfm-primary);
    font-variant-numeric: tabular-nums;
    padding-top: 0.1rem;
}
.tfm-numbered-title {
    font-family: var(--tfm-display);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--tfm-ink);
    text-decoration: none;
}
.tfm-numbered-title:hover { color: var(--tfm-primary); }

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

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

/* --- Footer (ink) ------------------------------------------------------------------ */

.tfm-footer {
    background: var(--tfm-footer-bg);
    color: var(--tfm-footer-text);
    padding: clamp(3rem, 6vw, 4rem) 0 2.25rem;
}
.tfm-footer-inner { max-width: var(--tfm-page-max); margin: 0 auto; padding: 0 var(--tfm-gutter); }
.tfm-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.tfm-footer-brand a { color: #fff; text-decoration: none; font-family: var(--tfm-display); font-weight: 700; font-size: 1.125rem; }
.tfm-footer-brand img { height: 44px; width: auto; display: block; }
.tfm-footer-tagline {
    font-family: var(--tfm-display);
    font-weight: 700;
    color: #fff;
    margin: 1.25rem 0 0.75rem;
    letter-spacing: -0.01em;
}
.tfm-footer-owner { font-family: var(--tfm-ui); font-size: 0.9375rem; line-height: 1.65; color: var(--tfm-footer-muted); margin: 0 0 1rem; }
.tfm-footer-owner a { color: var(--tfm-footer-text); font-family: var(--tfm-ui); font-weight: 400; font-size: 0.9375rem; }
.tfm-footer-owner a:hover { color: #fff; }
.tfm-footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.tfm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tfm-tap);
    height: var(--tfm-tap);
    color: var(--tfm-footer-muted);
}
.tfm-footer-social a:hover { color: #fff; }
.tfm-footer h3 {
    font-family: var(--tfm-ui);
    font-size: var(--tfm-size-meta);
    letter-spacing: var(--tfm-track-meta);
    text-transform: uppercase;
    color: var(--tfm-footer-muted);
    margin: 0 0 1rem;
    font-weight: 600;
}
.tfm-footer .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tfm-footer .footer-menu a {
    color: var(--tfm-footer-text);
    text-decoration: none;
    font-family: var(--tfm-ui);
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}
.tfm-footer .footer-menu a:hover { color: #fff; text-decoration: underline; }
.tfm-footer-bottom {
    border-top: 1px solid var(--tfm-footer-rule);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
}
.tfm-footer-bottom p { margin: 0; font-family: var(--tfm-ui); font-size: 0.875rem; color: var(--tfm-footer-muted); }

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

.tfm-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--tfm-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. */
.tfm-article { min-width: 0; padding-right: var(--tfm-side-gap); }

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

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

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

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

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

/* Pull quote — large serif italic, blue left rule. */
.tfm-article .entry-content blockquote {
    border-left: 3px solid var(--tfm-primary);
    background: transparent;
    border-radius: 0;
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    font-family: var(--tfm-text);
    font-size: 1.375rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--tfm-ink);
}
.tfm-article .entry-content blockquote p { margin: 0; }
.tfm-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; }
.tfm-article .entry-content th { background: var(--tfm-band); color: var(--tfm-ink); font-family: var(--tfm-ui); font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tfm-article .entry-content td, .tfm-article .entry-content th { border-color: var(--tfm-rule); }

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

.tfm-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(--tfm-rule);
    border-bottom: 1px solid var(--tfm-rule);
}
.tfm-share a {
    font-family: var(--tfm-ui);
    font-weight: 600;
    font-size: var(--tfm-size-meta);
    letter-spacing: var(--tfm-track-meta);
    text-transform: uppercase;
    text-decoration: none;
    min-height: var(--tfm-tap);
    display: inline-flex;
    align-items: center;
}
.tfm-related { margin-top: 3rem; }
.tfm-related .tfm-card-title { font-size: 1.0625rem; }

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

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

.tfm-mostread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tfm-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(--tfm-rule);
}
.tfm-mostread li:last-child { border-bottom: none; }
.tfm-mostread-num {
    font-family: var(--tfm-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tfm-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    padding-top: 0.1rem;
}
.tfm-mostread-text { min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.tfm-mostread-title {
    font-family: var(--tfm-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--tfm-ink);
    text-decoration: none;
}
.tfm-mostread-title:hover { color: var(--tfm-primary); }

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

/* Newsletter block — on the band, ruled. Not sticky (user, 2026-09-02). */
.tfm-widget-news {
    background: var(--tfm-band);
    border: 1px solid var(--tfm-rule);
    padding: 1.5rem;
    text-align: left;
}
.tfm-widget-news .tfm-widget-title { border-bottom: none; padding-bottom: 0; margin-bottom: 0.5rem; }
.tfm-widget-news p { font-family: var(--tfm-text); color: var(--tfm-ink); font-size: 1rem; line-height: 1.5; margin: 0 0 1rem; }
.tfm-widget-news .tfm-newsletter-note { font-family: var(--tfm-ui); color: var(--tfm-meta); font-size: 0.75rem; margin: 0.75rem 0 0; }
.tfm-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.tfm-widget-news .newsletter-form input[type="email"] {
    min-height: var(--tfm-tap);
    border: 1px solid var(--tfm-ink);
    border-radius: 0;
    padding: 0 0.9rem;
    font-family: var(--tfm-ui);
    font-size: 0.9375rem;
    background: var(--tfm-paper);
    color: var(--tfm-ink);
}
.tfm-widget-news .newsletter-form button {
    min-height: var(--tfm-tap);
    border: 1px solid var(--tfm-primary);
    border-radius: 0;
    background: var(--tfm-primary);
    color: #fff;
    font-family: var(--tfm-ui);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.tfm-widget-news .newsletter-form button:hover { background: var(--tfm-primary-dark); }
.tfm-widget-news .newsletter-message.success { color: var(--tfm-primary-dark); }
.tfm-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). */
.tfm-ad {
    text-align: center;
    border: 1px solid var(--tfm-rule);
    padding: 0.75rem 0;   /* 304px sidebar − 2px borders = 302px ≥ a 300px unit */
    background: var(--tfm-paper);
}
.tfm-ad::before {
    content: "Advertisement";
    display: block;
    font-family: var(--tfm-ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tfm-meta);
    margin-bottom: 0.5rem;
}
.tfm-ad:has(ins[data-ad-status="unfill-optimized"]),
.tfm-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.tfm-ad-placeholder {
    border: 1px dashed var(--tfm-rule);
    padding: 2rem 1rem;
    color: var(--tfm-meta);
    font-family: var(--tfm-ui);
    font-size: 0.875rem;
}

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

/* Masthead on the band, full bleed, hairline under. */
.tfm-archive-head {
    background: var(--tfm-band);
    border-bottom: 1px solid var(--tfm-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);
}
.tfm-archive-head-inner { max-width: var(--tfm-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. */
.tfm-archive-head.has-backdrop .tfm-archive-head-inner { position: relative; min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.tfm-archive-head.has-backdrop .tfm-archive-head-text { max-width: 58%; position: relative; z-index: 1; }
.tfm-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;
}
.tfm-archive-art img { height: 100%; width: 100%; object-fit: contain; object-position: right center; display: block; }
.tfm-archive-head .tfm-breadcrumb { margin-bottom: 0.9rem; }
.tfm-archive-title {
    font-size: var(--tfm-h1);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
}
.tfm-archive-description {
    font-family: var(--tfm-text);
    color: var(--tfm-ink);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 46rem;
    margin-top: 1rem;
}
.tfm-archive-description p { margin: 0; }
.tfm-archive-count {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--tfm-rule);
    color: var(--tfm-primary);
    font-weight: 600;
}

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

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

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

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

.tfm-empty { max-width: 38rem; margin: 0 auto; text-align: center; padding: 4rem 0 3rem; }
.tfm-empty h1 { font-size: var(--tfm-h1); margin: 0.5rem 0 1rem; }
.tfm-empty p { color: var(--tfm-meta); margin-bottom: 1.5rem; }
.tfm-empty .search-form { display: flex; gap: 0; max-width: 26rem; margin: 0 auto; }
.tfm-empty .search-field,
.tfm-widget .search-field {
    flex: 1;
    min-width: 0;
    min-height: var(--tfm-tap);
    border: 1px solid var(--tfm-ink);
    border-right: none;
    border-radius: 0;
    padding: 0 0.9rem;
    background: var(--tfm-paper);
    font-family: var(--tfm-ui);
}
.tfm-empty .search-submit,
.tfm-widget .search-submit {
    min-height: var(--tfm-tap);
    padding: 0 1.1rem;
    border: 1px solid var(--tfm-primary);
    border-radius: 0;
    background: var(--tfm-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(--tfm-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(--tfm-rule); font-family: var(--tfm-ui); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--tfm-primary); outline: none; }
.comments-area .comment-form input[type="submit"],
.comments-area #submit { border-radius: 0 !important; }
.comments-area .submit {
    background: var(--tfm-primary);
    border: none;
    border-radius: 0;
    color: #fff;
    font-weight: 600;
    min-height: var(--tfm-tap);
    padding: 0 1.5rem;
    cursor: pointer;
}
.comments-area .submit:hover { background: var(--tfm-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) {
    .tfm-masthead .main-navigation a { font-size: 0.6875rem; padding: 0 0.35rem; letter-spacing: 0.05em; }
    .tfm-masthead .main-navigation a::after { left: 0.35rem; right: 0.35rem; }
    .tfm-brand-logo { height: 36px; }
    .tfm-masthead-inner { column-gap: 0.75rem; }
}

@media (max-width: 1024px) {
    .tfm-masthead-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "brand actions" "search search";
        min-height: 64px;
    }
    .tfm-brand-logo { height: 36px; }
    .tfm-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. */
    .tfm-drawer-clip {
        display: block;
        position: fixed;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 1000;
    }
    .tfm-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. */
    .tfm-masthead .main-navigation { display: block; justify-self: auto; }
    .tfm-masthead .primary-menu { gap: 0; }
    .tfm-masthead .primary-menu,
    .tfm-masthead .main-navigation ul { display: block; text-align: left; }
    .tfm-masthead .main-navigation li { border-bottom: 1px solid var(--tfm-rule); }
    .tfm-masthead .main-navigation a { min-height: var(--tfm-nav-tap); padding: 0 1.5rem; font-size: 0.875rem; }
    .tfm-masthead .main-navigation a::after { display: none; }
    .tfm-masthead .header-actions { margin-left: auto; grid-column: 2; }
    .tfm-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; right: 0.75rem; z-index: 1002; }

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

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

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

    .tfm-single { grid-template-columns: minmax(0, 1fr); }
    .tfm-article { max-width: none; padding-right: 0; }
    .tfm-sidebar {
        border-left: none;
        border-top: 1px solid var(--tfm-rule);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2.5rem;
    }
    /* Brand block on its own full row, then the four link groups in a 2×2 so
       none sits alone (QA 2026-09-02). */
    .tfm-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tfm-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    /* One column: hairlines between stories only. */
    .tfm-grid-3 { grid-template-columns: minmax(0, 1fr); margin: 0; }
    .tfm-grid-3 > * { padding-left: 0; padding-right: 0; border-left: none !important; }
    .tfm-grid-3 > *:nth-child(n + 2) {
        border-top: 1px solid var(--tfm-rule);
        padding-top: var(--tfm-grid-gap);
        margin-top: var(--tfm-grid-gap);
    }
    .tfm-archive-grid > .tfm-card { border-left: none !important; }
    .tfm-archive-grid > .tfm-card:nth-child(n + 2) {
        border-top: 1px solid var(--tfm-rule);
        padding-top: var(--tfm-grid-gap);
        margin-top: var(--tfm-grid-gap);
    }
    .tfm-lead-section { padding-top: 1.5rem; }
    .tfm-lead-standfirst { font-size: 1.125rem; }
    .tfm-section-head { gap: 0.5rem 1rem; }
    .tfm-section-head::after { display: none; }
    .tfm-section-head .tfm-section-link { margin-left: auto; }
    .tfm-article .entry-content .toc ul,
    .tfm-article .entry-content .toc ol { grid-template-columns: minmax(0, 1fr); }
    .tfm-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .tfm-footer-bottom { flex-direction: column; }
    .tfm-newsletter .newsletter-form { flex-direction: column; gap: 0.6rem; }
    .tfm-newsletter .newsletter-form input[type="email"] { border-right: 1px solid var(--tfm-ink); }
    .tfm-share { gap: 0.75rem 1rem; }
    .tfm-article-meta { gap: 0.35rem; }
    .tfm-article-meta .sep { display: none; }
    .tfm-article-meta > * { flex-basis: 100%; }
    .tfm-archive-head { padding-top: 1.75rem; padding-bottom: 1.75rem; }
    .tfm-archive-art { display: none; }
}
