/* ============================================================================
   Today on Politics — "Broadsheet Index" (tdp-theme 1.0.0, 2026-10-13)
   Loads after theme-variables.css and main.css. All site styling lives here.
   A newspaper front page set for the screen: paper ground, ink text, ONE navy
   (links, rules that matter, buttons, footer); Bodoni Moda headlines over
   Libre Franklin text; double rules (2px over 1px) between sections, 1px
   hairlines between rows; photos in their own white-matted frames, never
   text on them. Flat — no shadows. 4px corners.
   ========================================================================= */

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

html { overflow-x: clip; background: var(--tp-paper); }
body {
    background: var(--tp-paper);
    color: var(--tp-ink);
    font-family: var(--tp-text);
    font-size: var(--tp-size-body);
    line-height: var(--tp-lh-body);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--tp-display); color: var(--tp-ink); line-height: var(--tp-lh-head); font-weight: 700; letter-spacing: 0; }
a { color: var(--tp-navy); }
a:hover { color: var(--tp-navy-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--tp-navy); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--tp-text); }
::selection { background: var(--tp-navy); color: var(--tp-on-navy); }
img { background: var(--tp-rule); }

.site-container { max-width: var(--tp-page-max); margin: 0 auto; padding-left: var(--tp-gutter); padding-right: var(--tp-gutter); }
.site-main { padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 0; }

.tdp-skip-link { position: absolute; left: -9999px; top: 0; background: var(--tp-navy); color: var(--tp-on-navy); padding: 0.75rem 1rem; z-index: 2000; font-weight: 700; }
.tdp-skip-link:focus { left: 1rem; top: 1rem; }

/* The double rule: 2px over 1px, navy, 2px apart. */
.tdp-masthead::after, .tdp-front-index::before, .tdp-cols::before, .tdp-archive-head::after, .tdp-related::before, .tdp-newsletter-inner::before {
    content: ""; display: block; height: 5px;
    background: linear-gradient(var(--tp-navy), var(--tp-navy)) top / 100% 2px no-repeat, linear-gradient(var(--tp-navy), var(--tp-navy)) bottom / 100% 1px no-repeat;
}

/* Labels: Libre Franklin small caps, tracked. */
.tdp-label, .tdp-meta, .tdp-kicker, .tdp-breadcrumb, .tdp-archive-count, .tdp-dhead-title, .tdp-dhead-aside,
.tdp-newsletter-label, .tdp-fhead, .tdp-drawer-label, .tdp-toc-count, .tdp-contents-cat, .tdp-count, .tdp-pager-count, .tdp-strip {
    font-family: var(--tp-text); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.tdp-label { margin: 0; font-size: var(--tp-label); color: var(--tp-meta); }
.tdp-meta { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--tp-meta); letter-spacing: 0.06em; }
.tdp-meta a { color: inherit; text-decoration: none; }
.tdp-dot { color: var(--tp-meta); padding: 0 0.15em; }
.tdp-kicker { margin: 0; font-size: var(--tp-label); line-height: 1.4; }
.tdp-kicker a { color: var(--tp-navy); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.tdp-kicker a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Framed photo: a white mat inside a hairline, like a print pasted on the page. */
.tdp-frame { display: block; background: var(--tp-panel); border: 1px solid var(--tp-rule); padding: 5px; border-radius: 0; overflow: hidden; }
.tdp-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tdp-frame--wide img { aspect-ratio: 16 / 9; }
.tdp-frame--photo img { aspect-ratio: 3 / 2; }
.tdp-frame--four img { aspect-ratio: 4 / 3; }
.tdp-frame--square { padding: 3px; }
.tdp-frame--square img { aspect-ratio: 1 / 1; }
.tdp-frame--lead img { aspect-ratio: 3 / 2; }
.tdp-frame--hero img { aspect-ratio: 3 / 2; height: auto; }

/* --- Masthead: utility strip, wordmark + nav, double rule -------------------------- */

.tdp-masthead { position: relative; z-index: 100; max-width: var(--tp-page-max); margin: 0 auto; padding: 0 var(--tp-gutter); }
.tdp-masthead::after { margin: 0; }
.tdp-strip { border-bottom: 1px solid var(--tp-rule); }
.tdp-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: 36px; }
.tdp-strip p { margin: 0; font-size: 0.75rem; color: var(--tp-ink); }
.tdp-strip .tdp-strip-line { font-family: var(--tp-display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0.01em; font-size: 0.9375rem; color: var(--tp-meta); }
.tdp-mast-inner { padding: 1.1rem 0 0.9rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.tdp-brand { min-width: 0; flex: none; }
.tdp-brand-name { margin: 0; font-size: inherit; line-height: 1; font-weight: inherit; letter-spacing: inherit; }
.tdp-wordmark { display: inline-flex; text-decoration: none; }
.tdp-logo { display: block; font-family: var(--tp-display); font-weight: 800; font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 0.95; letter-spacing: -0.01em; color: var(--tp-navy); white-space: nowrap; }
.tdp-wordmark:hover .tdp-logo { color: var(--tp-navy-dark); }

.tdp-mast-nav { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding-bottom: 0.25rem; }
.tdp-drawer-clip { display: contents; }
.tdp-mast-nav .main-navigation { min-width: 0; display: flex; }
.tdp-mast-nav .primary-menu { display: flex; align-items: stretch; flex-wrap: nowrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.tdp-mast-nav .main-navigation li { margin: 0; }
.tdp-mast-nav .main-navigation a {
    display: inline-flex; align-items: center; min-height: 44px; position: relative; white-space: nowrap;
    font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-ink); text-decoration: none;
}
.tdp-mast-nav .main-navigation .tdp-nav-news a { color: var(--tp-navy); font-weight: 700; }
.tdp-mast-nav .main-navigation a:hover { color: var(--tp-navy); }
.tdp-mast-nav .main-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--tp-navy); opacity: 0; }
.tdp-mast-nav .main-navigation a:hover::after, .tdp-mast-nav .main-navigation .current-cat > a::after { opacity: 1; }
.tdp-mast-nav .main-navigation .current-cat > a { color: var(--tp-navy); }
.tdp-mast-nav .main-navigation .tdp-drawer-label, .tdp-mast-nav .main-navigation .tdp-drawer-sub { display: none; }

.tdp-nav-tools { display: flex; align-items: center; gap: 0.25rem; }
.tdp-search-toggle {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--tp-ink); cursor: pointer; border-radius: var(--tp-radius);
}
.tdp-search-toggle svg { color: currentColor; width: 20px; height: 20px; }
.tdp-search-toggle:hover, .tdp-search-toggle[aria-expanded="true"] { color: var(--tp-navy); background: var(--tp-panel); }
.tdp-masthead .mobile-menu-toggle { display: none; }
/* Search opens as a row under the masthead, pushing the page down (main.css made it a fixed overlay). */
.tdp-masthead .mobile-search-form { position: static; transform: none; box-shadow: none; z-index: auto; padding: 0.9rem 0; background: transparent; border-top: 1px solid var(--tp-rule); }
.tdp-masthead .mobile-search-form form { max-width: 100%; margin: 0 auto; }
.tdp-masthead .search-field { font-size: 1.0625rem; min-height: 48px; border-radius: var(--tp-radius); border: 1px solid var(--tp-ink); background: var(--tp-panel); color: var(--tp-ink); }
.tdp-masthead .mobile-search-form button[type="submit"] { min-height: 48px; border-radius: var(--tp-radius); font-weight: 700; background: var(--tp-navy); color: var(--tp-on-navy); border: 0; }
.tdp-masthead .mobile-search-close { background: transparent !important; color: var(--tp-ink) !important; min-width: 44px; min-height: 44px; }

/* --- Breadcrumb -------------------------------------------------------------------- */

.tdp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0 0 0.5rem; font-size: 0.75rem; color: var(--tp-meta); }
.tdp-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tp-meta); text-decoration: none; }
.tdp-breadcrumb a:hover { color: var(--tp-navy); text-decoration: underline; }
.tdp-breadcrumb [aria-current], .tdp-breadcrumb a:last-of-type:not(:first-child) { color: var(--tp-navy); }
.tdp-breadcrumb .sep { color: var(--tp-meta); }

/* --- Section heads: small caps name + count, navy line under ------------------------- */

.tdp-dhead { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; flex-wrap: wrap; margin: 0 0 0.25rem; padding: 0 0 0.6rem; border-bottom: 1px solid var(--tp-navy); }
.tdp-dhead-title { margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--tp-navy); line-height: 1.3; }
.tdp-dhead-aside { font-size: 0.75rem; font-weight: 600; color: var(--tp-meta); text-decoration: none; }
a.tdp-dhead-aside { display: inline-flex; align-items: center; min-height: 32px; color: var(--tp-navy); }
a.tdp-dhead-aside:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* In the rails the head is a Bodoni title, as on the paper's "Most read" box. */
.tdp-rail .tdp-dhead-title, .tdp-sidebar .tdp-dhead-title { font-family: var(--tp-display); font-size: 1.5rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--tp-ink); }

/* --- Front: the hero ------------------------------------------------------------------ */

.tdp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(1.75rem, 3.5vw, 3rem); margin: 0 0 clamp(2rem, 4vw, 2.75rem); }
.tdp-hero-lead { display: flex; min-width: 0; }
.tdp-hero-side { min-width: 0; display: flex; flex-direction: column; position: relative; }
.tdp-hero-side::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * clamp(1.75rem, 3.5vw, 3rem) / 2); width: 1px; background: var(--tp-rule); }

.tdp-hstory { min-width: 0; display: flex; flex-direction: column; }
.tdp-hstory-body { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.9rem; min-width: 0; }
.tdp-hstory-title { margin: 0; font-weight: 700; text-wrap: balance; }
.tdp-hstory-title a { color: var(--tp-ink); text-decoration: none; }
.tdp-hstory-title a:hover { color: var(--tp-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.tdp-hstory-dek { margin: 0.2rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--tp-meta); }

/* Lead: the photo grows to fill the column height set by the stack beside it. */
.tdp-hstory--lead { flex: 1 1 auto; }
.tdp-hstory--lead .tdp-frame { flex: 1 1 auto; min-height: 320px; display: flex; }
.tdp-hstory--lead .tdp-frame img { aspect-ratio: auto; height: auto; min-height: 100%; flex: 1 1 auto; }
.tdp-hstory--lead .tdp-hstory-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.08; }
.tdp-hstory--lead .tdp-hstory-dek { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); color: var(--tp-ink); }
.tdp-hstory--lead .tdp-meta { margin-top: 0.4rem; }

.tdp-hstory--side + .tdp-hstory--side { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-rule); }
.tdp-hstory--side .tdp-hstory-title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; }
.tdp-hstory--side .tdp-hstory-dek { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Front: index + rail -------------------------------------------------------------- */

.tdp-front-index { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 3.5rem); margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.tdp-front-index::before { grid-column: 1 / -1; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.tdp-index { min-width: 0; }
.tdp-rail { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }

/* Index row: square thumb, kicker, Bodoni headline, one-line standfirst. */
.tdp-irow { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 1.25rem; align-items: start; padding: 1.15rem 0; border-bottom: 1px solid var(--tp-rule); min-width: 0; }
.tdp-irow--text { grid-template-columns: minmax(0, 1fr); }
.tdp-irow-body { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.tdp-irow-title { margin: 0; font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.4375rem); font-weight: 700; line-height: 1.2; text-wrap: balance; }
.tdp-irow-title a { color: var(--tp-ink); text-decoration: none; }
.tdp-irow-title a:hover { color: var(--tp-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.tdp-irow-dek { margin: 0.15rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--tp-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tdp-irow .tdp-meta { margin-top: 0.3rem; }
.tdp-irow .tdp-meta--top { order: -1; margin: 0 0 0.15rem; color: var(--tp-navy); font-weight: 700; }

/* Lists (archive, search): bigger thumbs. */
.tdp-index--list .tdp-irow { grid-template-columns: 120px minmax(0, 1fr); gap: 0 1.5rem; padding: 1.4rem 0; }
.tdp-index--list .tdp-irow--text { grid-template-columns: minmax(0, 1fr); }

/* Most read: big Bodoni numerals. */
.tdp-contents { list-style: none; margin: 0; padding: 0; }
.tdp-contents li { display: flex; gap: 1rem; align-items: flex-start; margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--tp-rule); }
.tdp-contents li:last-child { border-bottom: 0; }
.tdp-contents-num { flex: none; min-width: 1.5rem; font-family: var(--tp-display); font-weight: 700; font-size: 2.25rem; line-height: 0.9; color: var(--tp-navy); font-variant-numeric: tabular-nums lining-nums; }
.tdp-contents-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.tdp-contents-cat { font-size: 0.6875rem; color: var(--tp-meta); }
.tdp-contents-title { font-family: var(--tp-display); font-weight: 700; font-size: 1.125rem; line-height: 1.25; color: var(--tp-ink); text-decoration: none; }
.tdp-contents-title:hover { color: var(--tp-navy); text-decoration: underline; text-decoration-thickness: 1px; }

/* --- Front: the section columns ----------------------------------------------------- */

.tdp-cols { display: grid; grid-template-columns: repeat(var(--tdp-cols, 3), minmax(0, 1fr)); gap: 0 clamp(1.75rem, 3.5vw, 3rem); margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.tdp-cols::before { grid-column: 1 / -1; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.tdp-col { min-width: 0; display: flex; flex-direction: column; }
.tdp-col-list { list-style: none; margin: 0; padding: 0; }
.tdp-col-list li { margin: 0; border-bottom: 1px solid var(--tp-rule); }
.tdp-col-list a { display: block; padding: 0.85rem 0; font-family: var(--tp-display); font-size: 1.1875rem; font-weight: 700; line-height: 1.25; color: var(--tp-ink); text-decoration: none; text-wrap: balance; }
.tdp-col-list a:hover { color: var(--tp-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.tdp-col-more { display: inline-flex; align-items: center; align-self: flex-start; gap: 0.35rem; min-height: 44px; margin-top: auto; padding-top: 0.35rem; font-size: 0.875rem; font-weight: 600; color: var(--tp-navy); text-decoration: none; }
.tdp-col-more:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* --- Ad frames: labelled, reserved; nothing for readers when unfilled ----------------- */

.tdp-ad { text-align: center; background: var(--tp-panel); border: 1px solid var(--tp-rule); padding: 0.6rem 0.5rem 1rem; min-height: 290px; }
.tdp-ad::before { content: "Advertisement"; display: block; font-family: var(--tp-text); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-meta); margin-bottom: 0.6rem; }
.tdp-ad:has(ins[data-ad-status="unfill-optimized"]), .tdp-ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.tdp-ad-placeholder { border: 1px dashed var(--tp-rule); padding: 2rem 1rem; color: var(--tp-meta); font-size: 0.875rem; margin: 0 0.5rem; }

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

.tdp-archive-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: end; margin: 0 0 clamp(1.25rem, 3vw, 1.75rem); }
.tdp-archive-head::after { grid-column: 1 / -1; margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.tdp-archive-text { min-width: 0; }
.tdp-archive-title { margin: 0; font-size: clamp(2.5rem, 1.8rem + 2.8vw, 3.5rem); font-weight: 700; line-height: 1; text-wrap: balance; }
.tdp-archive-count { margin: 0 0 0.35rem; display: inline-flex; align-items: center; min-height: 34px; padding: 0 0.75rem; border: 1px solid var(--tp-navy); background: var(--tp-panel); font-size: 0.8125rem; font-weight: 700; color: var(--tp-navy); white-space: nowrap; }
.tdp-archive-line { margin: 0.8rem 0 0; max-width: 44em; font-size: 1.125rem; line-height: 1.6; color: var(--tp-meta); }
.tdp-archive-head--search .search-form { display: flex; gap: 0.5rem; max-width: 520px; margin: 1.1rem 0 0; }
.tdp-archive-head--search .search-field, .tdp-empty .search-field { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 0.9rem; border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-ink); font-size: 1.0625rem; }
.tdp-archive-head--search .search-submit, .tdp-empty .search-submit { min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-navy); color: var(--tp-on-navy); font-weight: 700; cursor: pointer; }
.tdp-archive-head--search .tdp-archive-count { margin-top: 0.75rem; }

/* The wide first story of a section. */
.tdp-alead { padding: 0 0 1.5rem; border-bottom: 1px solid var(--tp-rule); }
.tdp-hstory--archive { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.75rem; align-items: start; }
.tdp-hstory--archive .tdp-hstory-body { padding-top: 0.25rem; }
.tdp-hstory--archive .tdp-hstory-title { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); line-height: 1.12; }

/* Pager: square 44px boxes, centred. */
.tdp-pager { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 1.75rem 0 0; }
.tdp-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.tdp-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 0.6rem; border: 1px solid var(--tp-navy); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-navy); font-family: var(--tp-text); font-size: 1rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.tdp-pager a.page-numbers:hover { background: var(--tp-paper); color: var(--tp-navy-dark); }
.tdp-pager .page-numbers.current { background: var(--tp-navy); border-color: var(--tp-navy); color: var(--tp-on-navy); }
.tdp-pager .page-numbers.dots { border: 0; background: transparent; min-width: 24px; }
.tdp-pager-count { margin: 0; font-size: 0.75rem; color: var(--tp-meta); }

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

.tdp-article-head { max-width: 880px; margin: 0 0 1.5rem; }
.tdp-title { margin: 0.35rem 0 0; font-size: var(--tp-title); font-weight: 700; line-height: 1.08; text-wrap: balance; }
.tdp-standfirst { margin: 0.85rem 0 0; max-width: 44em; font-family: var(--tp-text); font-size: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem); line-height: 1.55; color: var(--tp-meta); }
.tdp-article-meta { margin: 1.1rem 0 0; padding: 0.55rem 0; border-top: 1px solid var(--tp-rule); border-bottom: 1px solid var(--tp-rule); font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-meta); }
.tdp-byline a { color: var(--tp-ink); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.tdp-byline a:hover { color: var(--tp-navy); text-decoration: underline; }

/* Reading column + sidebar, with a hairline between them. */
.tdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--tp-sidebar); gap: var(--tp-side-gap); align-items: start; }
.tdp-layout-main { min-width: 0; }
.tdp-layout > .tdp-sidebar { position: relative; }
.tdp-layout > .tdp-sidebar::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--tp-side-gap) / 2); width: 1px; background: var(--tp-rule); }
.tdp-hero { margin: 0 0 1.75rem; }
.tdp-caption { font-size: 0.9375rem; line-height: 1.5; color: var(--tp-meta); padding: 0.55rem 0.1rem 0; }

.tdp-article { min-width: 0; }
.tdp-article .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); color: var(--tp-ink); }
.tdp-article .entry-content > * { max-width: 100%; }
.tdp-article .entry-content p { text-wrap: pretty; }
.tdp-article .entry-content h2 { font-size: var(--tp-h2); font-weight: 700; line-height: 1.15; margin: 2.75rem 0 1rem; padding: 0 0 0.6rem; border-top: 0; border-bottom: 1px solid var(--tp-rule); letter-spacing: 0; scroll-margin-top: 1.5rem; text-wrap: balance; }
.tdp-article .entry-content h3 { font-size: var(--tp-h3); margin: 2.25rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-rule); scroll-margin-top: 1.5rem; text-wrap: balance; }
.tdp-article .entry-content h2 + h3 { border-top: 0; padding-top: 0; }
.tdp-item-no { display: inline-block; margin-right: 0.3em; color: var(--tp-navy); font-size: 1.35em; line-height: 0.9; font-variant-numeric: lining-nums; vertical-align: -0.04em; }
.tdp-article .entry-content h4 { font-family: var(--tp-text); font-weight: 700; font-size: 1.125rem; }
.tdp-article .entry-content a { color: var(--tp-navy); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.tdp-article .entry-content a:hover { color: var(--tp-navy-dark); text-decoration-thickness: 2px; }
.tdp-article .entry-content strong { font-weight: 700; color: var(--tp-ink); }
.tdp-article .entry-content figure { margin: 2.25rem 0; }
.tdp-article .entry-content figure img, .tdp-article .entry-content p > img { display: block; background: var(--tp-panel); border: 1px solid var(--tp-rule); padding: 5px; height: auto; box-shadow: none; }
.tdp-article .entry-content figcaption { text-align: left; font-style: normal; font-size: 0.9375rem; line-height: 1.5; color: var(--tp-meta); padding-top: 0.55rem; }
.tdp-article .entry-content ol, .tdp-article .entry-content ul { padding-left: 1.5rem; }
.tdp-article .entry-content li { margin-bottom: 0.5rem; }
.tdp-article .entry-content li::marker { color: var(--tp-navy); font-weight: 700; }
.tdp-article .entry-content blockquote { border: 0; border-left: 3px solid var(--tp-navy); background: transparent; margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.25rem; font-family: var(--tp-display); font-size: 1.375rem; line-height: 1.45; color: var(--tp-ink); }
.tdp-article .entry-content blockquote p { margin: 0; }
.tdp-article .entry-content blockquote p + p { margin-top: 0.75rem; }
.tdp-article .entry-content hr { border: 0; border-top: 1px solid var(--tp-rule); }
.table-scroll { overflow-x: auto; margin: 1.75rem 0; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--tp-navy); border-bottom: 1px solid var(--tp-navy); }
.table-scroll table { min-width: 560px; margin: 0; }
.tdp-article .entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95em; background: transparent; }
.tdp-article .entry-content th { background: var(--tp-panel); color: var(--tp-ink); font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--tp-rule); }
.tdp-article .entry-content td, .tdp-article .entry-content th { border-bottom: 1px solid var(--tp-rule); padding: 0.75rem 0.9rem; vertical-align: top; min-width: 9rem; }
.tdp-article .entry-content tr:last-child td { border-bottom: 0; }
.tdp-article .entry-content td:first-child, .tdp-article .entry-content th:first-child { position: sticky; left: 0; z-index: 1; }
.tdp-article .entry-content td:first-child { background: var(--tp-paper); font-weight: 600; }

/* "In this article" (the article's own contents block, tdp_toc_panel): hairline box, navy numbers. */
.tdp-toc { margin: 1.5rem 0 2rem; background: var(--tp-panel); border: 1px solid var(--tp-rule); }
.tdp-toc summary { display: flex; align-items: center; gap: 1rem; min-height: 56px; padding: 0.5rem 1.25rem; cursor: pointer; list-style: none; }
.tdp-toc summary::-webkit-details-marker { display: none; }
.tdp-toc summary::after { content: "+"; font-size: 1.5rem; color: var(--tp-navy); margin-left: 0.25rem; }
.tdp-toc[open] summary::after { content: "−"; }
.tdp-toc-title { font-family: var(--tp-text); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-navy); }
.tdp-toc-count { margin-left: auto; font-size: 0.75rem; color: var(--tp-meta); }
.tdp-article .entry-content .tdp-toc-list { list-style: none; margin: 0; padding: 0.25rem 1.25rem 1rem; border-top: 1px solid var(--tp-rule); counter-reset: tdptoc; columns: 2; column-gap: 2rem; }
.tdp-article .entry-content .tdp-toc-list li { margin: 0; padding: 0; counter-increment: tdptoc; break-inside: avoid; }
.tdp-article .entry-content .tdp-toc-list li::marker { content: none; }
.tdp-article .entry-content .tdp-toc-list a { display: flex; gap: 0.7rem; align-items: baseline; min-height: 44px; padding: 0.45rem 0; color: var(--tp-ink); text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.tdp-article .entry-content .tdp-toc-list a::before { content: counter(tdptoc); flex: none; min-width: 1.25rem; font-family: var(--tp-display); font-size: 1.25rem; font-weight: 700; color: var(--tp-navy); }
.tdp-article .entry-content .tdp-toc-list a:hover { color: var(--tp-navy); text-decoration: underline; }

/* Article pager (posts split with <!--nextpage-->): numbers only. */
.tdp-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 2.25rem 0 0.5rem; }
.entry-content .tdp-page-links .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 0.75rem;
    border: 1px solid var(--tp-navy); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-navy);
    font-family: var(--tp-text); font-size: 1rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.entry-content .tdp-page-links a.post-page-numbers:hover { background: var(--tp-paper); }
.entry-content .tdp-page-links .post-page-numbers.current { background: var(--tp-navy); border-color: var(--tp-navy); color: var(--tp-on-navy); }

.tdp-team { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; background: var(--tp-panel); border: 1px solid var(--tp-rule); }
.tdp-team-title { margin: 0 0 0.5rem; font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-navy); }
.tdp-team p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--tp-ink); }
.tdp-team .tdp-team-more { margin-top: 0.5rem; }
.tdp-team-more a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }

.tdp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; margin: 2rem 0 0; padding: 0.3rem 0; border-top: 1px solid var(--tp-rule); border-bottom: 1px solid var(--tp-rule); }
.tdp-share .tdp-label { color: var(--tp-ink); }
.tdp-share a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.tdp-share a:hover { text-decoration: underline; }

/* Related: six index rows in two columns under a double rule. */
.tdp-related { margin: clamp(2.75rem, 5vw, 3.75rem) 0 0; }
.tdp-related::before { margin-bottom: 1.25rem; }
.tdp-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 3.5rem); }
.tdp-related .tdp-irow { grid-template-columns: 96px minmax(0, 1fr); }

/* main.css sets content-visibility:auto (500px placeholder) on the comments; the form is taller,
   so it painted late and shifted the page (visual QA 2026-10-08 on the fork). */
.comments-area { margin-top: 2rem; padding-top: 0; border-top: 0; content-visibility: visible; contain-intrinsic-size: none; }
.comments-area .comments-title, .comments-area .comment-reply-title { font-size: var(--tp-h3); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-respond { margin: 0; background: var(--tp-panel); border: 1px solid var(--tp-rule); border-radius: 0; }
.comments-area label, .comments-area .comment-notes, .comments-area .logged-in-as { color: var(--tp-meta); }
.comments-area input:not([type="checkbox"]):not([type="submit"]), .comments-area textarea { border-radius: var(--tp-radius); border: 1px solid var(--tp-ink); background: var(--tp-panel); color: var(--tp-ink); }
.comments-area input:focus, .comments-area textarea:focus { border-color: var(--tp-navy); outline: none; }
.comments-area .submit, .comments-area #submit { background: var(--tp-navy) !important; border: none; border-radius: var(--tp-radius) !important; color: var(--tp-on-navy) !important; font-weight: 700; min-height: 48px; padding: 0 1.5rem; cursor: pointer; }
.comments-area .submit:hover, .comments-area #submit:hover { background: var(--tp-navy-dark) !important; }
.comments-area .comment-body { background: transparent; border: 0; border-bottom: 1px solid var(--tp-rule); border-radius: 0; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form-cookies-consent input { flex: 0 0 auto; margin: 0.3rem 0 0; }
.comment-form-cookies-consent label { margin: 0; }

/* --- Sidebar --------------------------------------------------------------------------------- */

.tdp-sidebar { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.tdp-widget { background: transparent; border: 0; padding: 0; }
.tdp-widget-title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.tdp-deptlist { list-style: none; margin: 0; padding: 0; }
.tdp-deptlist li { margin: 0; border-bottom: 1px solid var(--tp-rule); }
.tdp-deptlist li:last-child { border-bottom: 0; }
.tdp-deptlist a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; color: var(--tp-ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.tdp-deptlist a:hover, .tdp-deptlist a.is-current { color: var(--tp-navy); }
.tdp-deptlist .tdp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 1.6rem; padding: 0 0.4rem; border: 1px solid var(--tp-navy); border-radius: 3px; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--tp-navy); font-variant-numeric: tabular-nums; }
.tdp-deptlist a.is-current .tdp-count { background: var(--tp-navy); color: var(--tp-on-navy); }
.tdp-widget-news { background: var(--tp-panel); border: 1px solid var(--tp-rule); padding: 1.25rem; text-align: center; }
.tdp-widget-news .tdp-widget-title { font-size: 1.4375rem; line-height: 1.15; margin: 0.25rem 0 0.9rem; text-wrap: balance; }
.tdp-widget-news .tdp-newsletter-label { margin: 0; font-size: 0.6875rem; color: var(--tp-navy); }
.tdp-widget-news .newsletter-form { display: flex; flex-direction: column; gap: 0.6rem; }
.tdp-widget-news input[type="email"] { min-height: 48px; padding: 0 0.85rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-paper); color: var(--tp-ink); font-size: 1rem; }
.tdp-widget-news button { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-navy); color: var(--tp-on-navy); font-family: var(--tp-text); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.tdp-widget-news button:hover { background: var(--tp-navy-dark); }
.tdp-newsletter-note { margin: 0.6rem 0 0 !important; font-size: 0.875rem !important; color: var(--tp-meta); }
.tdp-sidebar .tdp-ad { min-height: 290px; }

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

.tdp-newsletter { max-width: var(--tp-page-max); margin: clamp(1.5rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem); padding: 0 var(--tp-gutter); }
.tdp-newsletter-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: center; }
.tdp-newsletter-inner::before { grid-column: 1 / -1; }
.tdp-newsletter-label { margin: 0 0 0.35rem; font-size: 0.75rem; color: var(--tp-navy); }
.tdp-newsletter h2 { margin: 0 0 0.4rem; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.tdp-newsletter-dek { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--tp-meta); }
.tdp-newsletter .newsletter-form { display: flex; flex-direction: row; gap: 0.6rem; }
.tdp-newsletter input[type="email"] { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 1rem; border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-ink); font-size: 1.0625rem; }
.tdp-newsletter button { min-height: 52px; padding: 0 1.4rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-navy); color: var(--tp-on-navy); font-family: var(--tp-text); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; flex: none; cursor: pointer; }
.tdp-newsletter button:hover { background: var(--tp-navy-dark); }
.newsletter-message { margin-top: 0.75rem; font-weight: 600; }

/* --- Footer: navy, the back page --------------------------------------------------------------- */

.tdp-footer { background: var(--tp-navy); color: var(--tp-on-navy); }
.tdp-footer-inner { max-width: var(--tp-page-max); margin: 0 auto; padding: clamp(2rem, 4vw, 2.75rem) var(--tp-gutter) 1.5rem; }
.tdp-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.tdp-footer-word { display: inline-flex; text-decoration: none; }
.tdp-footer .tdp-logo--footer { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); color: var(--tp-on-navy); }
.tdp-footer-about { margin: 0.9rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.tdp-footer-owner { margin: 0.75rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.tdp-footer-owner a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; color: var(--tp-on-navy); }
.tdp-fhead { margin: 0 0 0.35rem; font-size: 0.75rem; color: var(--tp-on-navy-meta); }
.tdp-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.tdp-flist:empty { display: none; }
.tdp-flist li { margin: 0; }
.tdp-flist a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--tp-on-navy); font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.25em; }
.tdp-flist a:hover { color: var(--tp-on-navy); text-decoration-color: currentColor; }
.tdp-flist--sections { display: flex; flex-direction: column; }
.tdp-flist--sections li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.tdp-flist--sections li:last-child { border-bottom: 0; }
.tdp-flist--sections a { font-family: var(--tp-display); font-size: 1.375rem; font-weight: 700; text-decoration: none; }
.tdp-flist--sections a:hover { text-decoration: underline; }
.tdp-fcount { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--tp-on-navy-meta); font-variant-numeric: tabular-nums; }
.tdp-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.25rem 2.5rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.tdp-footer-links > nav { min-width: 0; }
.tdp-footer-links > nav:has(> ul:empty) { display: none; }
.tdp-footer-links > nav:last-child { flex: 1 0 100%; }
.tdp-flist--legal a { font-size: 0.875rem; color: var(--tp-on-navy-meta); }
.tdp-colophon { margin: 1rem 0 0; max-width: 64rem; font-size: 0.875rem; line-height: 1.6; color: var(--tp-on-navy-meta); }
.tdp-footer .tdp-footer-note { color: var(--tp-on-navy-meta); }

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

.tdp-page { max-width: 820px; margin: 0 auto 0.5rem; }
.tdp-empty { max-width: 680px; margin: 0 auto 2rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--tp-panel); border: 1px solid var(--tp-rule); }
.tdp-empty h1, .tdp-empty h2 { font-size: var(--tp-title); font-weight: 700; margin: 0.5rem 0 0.75rem; }
.tdp-empty .search-form { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.tdp-deptlist--chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.tdp-deptlist--chips li { border-bottom: 0; }
.tdp-deptlist--chips a { padding: 0 1rem; border: 1px solid var(--tp-rule); border-radius: var(--tp-radius); background: var(--tp-panel); }
.tdp-deptlist--chips a:hover { border-color: var(--tp-navy); color: var(--tp-navy); }

.tdp-page-head { text-align: left; margin: 0 0 2rem; padding: 0 0 1.5rem; border-bottom: 1px solid var(--tp-rule); }
.tdp-page-kicker { margin: 0 0 .4rem; font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-navy); }
.tdp-page-head .tdp-page-title { margin: 0; font-family: var(--tp-display); font-size: var(--tp-title); font-weight: 700; line-height: 1.08; color: var(--tp-ink); text-wrap: balance; }
.tdp-page-standfirst { margin: .75rem 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--tp-meta); max-width: 40rem; }
.tdp-page-updated { margin: .9rem 0 0; font-family: var(--tp-text); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-meta); }
.tdp-page .entry-content { font-size: var(--tp-size-body); line-height: var(--tp-lh-body); }
.tdp-page .entry-content h2 { font-family: var(--tp-display); font-size: clamp(1.625rem, 1.4rem + .6vw, 2rem); font-weight: 700; line-height: 1.15; margin: 2.25rem 0 .75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--tp-rule); scroll-margin-top: 1.25rem; }
.tdp-page .entry-content h2:first-child { margin-top: 0; }
.tdp-page .entry-content a { color: var(--tp-navy); }
.tdp-onpage { margin: 0 0 2rem; padding: 1rem 1.25rem; background: var(--tp-panel); border: 1px solid var(--tp-rule); }
.tdp-onpage-title { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tp-navy); font-family: var(--tp-text); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-navy); }
.tdp-page .entry-content .tdp-onpage ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.tdp-page .entry-content .tdp-onpage li { margin: 0; padding: 0; break-inside: avoid; }
.tdp-page .entry-content .tdp-onpage li::marker { content: none; }
.tdp-page .entry-content .tdp-onpage a { display: flex; gap: .6rem; align-items: baseline; min-height: 44px; padding: .45rem 0; color: var(--tp-ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.tdp-page .entry-content .tdp-onpage a:hover span:last-child { color: var(--tp-navy); text-decoration: underline; }
.tdp-onpage-num { flex: none; color: var(--tp-navy); font-family: var(--tp-display); font-weight: 700; }
.tdp-page-ask { margin: 2rem 0 0; padding: 1rem 0; border-top: 1px solid var(--tp-rule); }
.tdp-page-ask-title { margin: 0 0 .25rem; font-family: var(--tp-display); font-weight: 700; font-size: 1.375rem; }
.tdp-page-ask p { margin: 0; }
.tdp-page-ask a, .tdp-contact-email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tp-navy); font-weight: 600; }
.tdp-contact-intro { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--tp-rule); }
.tdp-contact-intro p { margin: 0 0 .5rem; }
.tdp-contact-email { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.tdp-page .inedit-form-group { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .35rem; }
.tdp-page .inedit-form-group label { font-weight: 600; }
.tdp-page .inedit-form-group input, .tdp-page .inedit-form-group textarea { font: inherit; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--tp-ink); border-radius: var(--tp-radius); background: var(--tp-panel); color: var(--tp-ink); }
.tdp-page .inedit-form-group textarea { min-height: 160px; }
.tdp-page .inedit-contact-submit { min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--tp-radius); background: var(--tp-navy); color: var(--tp-on-navy); font-weight: 700; cursor: pointer; }

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

@media (max-width: 1180px) {
    .tdp-mast-nav .primary-menu { gap: 0.25rem 1.1rem; }
    .tdp-front-index { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

@media (max-width: 1024px) {
    /* Masthead: wordmark left; search + menu right; sections in the drawer. */
    .tdp-mast-inner { align-items: center; padding: 0.8rem 0 0.7rem; }
    .tdp-mast-nav { padding-bottom: 0; }
    .tdp-masthead .mobile-menu-toggle { display: inline-flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; border: 0; }
    .tdp-masthead .hamburger-line { background: var(--tp-ink); }
    .tdp-masthead .mobile-menu-toggle.active .hamburger-line { background: var(--tp-ink); }
    .tdp-drawer-clip { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1000; }
    .tdp-drawer-clip .main-navigation { position: absolute; pointer-events: auto; background: var(--tp-paper); overflow-y: auto; padding: 0; max-width: none; display: block; }
    .tdp-mast-nav .primary-menu, .tdp-mast-nav .main-navigation ul.primary-menu { display: block; text-align: left; margin: 0; }
    .tdp-mast-nav .main-navigation .primary-menu li { border-bottom: 1px solid var(--tp-rule); }
    .tdp-mast-nav .main-navigation a { min-height: 60px; width: 100%; padding: 0 1.5rem; font-family: var(--tp-display); font-size: 1.5rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--tp-ink); }
    .tdp-mast-nav .main-navigation a:hover { color: var(--tp-navy); }
    .tdp-mast-nav .main-navigation a::after { display: none; }
    .tdp-mast-nav .main-navigation .current-cat > a { background: var(--tp-panel); }
    .tdp-mast-nav .main-navigation .tdp-drawer-label { display: block; margin: 1.25rem 1.5rem 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--tp-navy); font-size: 0.75rem; color: var(--tp-navy); }
    .tdp-mast-nav .main-navigation .tdp-drawer-sub { display: flex; align-items: center; justify-content: center; width: auto; margin: 1.5rem; min-height: 52px; padding: 0 1rem; font-family: var(--tp-text); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--tp-navy); color: var(--tp-on-navy); border-radius: var(--tp-radius); text-decoration: none; }
    .tdp-masthead .mobile-menu-toggle.active { position: fixed; top: 0.75rem; left: auto; right: 0.75rem; z-index: 1002; }

    .tdp-layout { grid-template-columns: minmax(0, 1fr); }
    .tdp-layout > .tdp-sidebar { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--tp-rule); }
    .tdp-layout > .tdp-sidebar::before { display: none; }
    .tdp-sidebar .tdp-widget-news, .tdp-sidebar .tdp-widget-topics { display: none; }

    .tdp-front-index { grid-template-columns: minmax(0, 1fr); }
    .tdp-rail { margin-top: 2rem; }
}

@media (max-width: 900px) {
    /* Hero: the lead on top at a fixed 3:2, the two side stories under it. */
    .tdp-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .tdp-hstory--lead .tdp-frame { min-height: 0; display: block; }
    .tdp-hstory--lead .tdp-frame img { aspect-ratio: 3 / 2; min-height: 0; height: auto; }
    .tdp-hero-side { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--tp-rule); }
    .tdp-hero-side::before { display: none; }
    /* Side hero stories: image left, headline right — two 16:9 photos stacked run too long. */
    .tdp-hstory--side { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
    .tdp-hstory--side .tdp-hstory-body { padding-top: 0; }
    .tdp-cols { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .tdp-related-grid { grid-template-columns: minmax(0, 1fr); }
    .tdp-newsletter-inner { grid-template-columns: minmax(0, 1fr); }
    .tdp-footer-top { grid-template-columns: minmax(0, 1fr); }
    .tdp-footer-links { flex-direction: column; }
}

@media (max-width: 720px) {
    .tdp-strip .tdp-strip-line { display: none; }
    .tdp-archive-head { grid-template-columns: minmax(0, 1fr); }
    .tdp-archive-count { margin: 0; }
    .tdp-hstory--archive { grid-template-columns: minmax(0, 1fr); }
    .tdp-hstory--archive .tdp-hstory-body { padding-top: 0.9rem; }
    .tdp-hstory--side .tdp-hstory-dek { display: none; }
    .tdp-hstory--side .tdp-hstory-title { font-size: 1.25rem; }
    .tdp-hstory--lead .tdp-hstory-dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .tdp-index--list .tdp-irow { grid-template-columns: 30% minmax(0, 1fr); gap: 0 1rem; }
    .tdp-irow-dek { -webkit-line-clamp: 2; }
    .tdp-newsletter .newsletter-form { flex-direction: column; }
    .tdp-page .entry-content .tdp-onpage ol { columns: 1; }
    .tdp-article .entry-content .tdp-toc-list { columns: 1; }
}

@media (max-width: 480px) {
    .tdp-logo { font-size: clamp(1.75rem, 1rem + 4.6vw, 2.25rem); }
    .tdp-irow { grid-template-columns: 64px minmax(0, 1fr); gap: 0 0.9rem; }
    .tdp-index--list .tdp-irow-dek { display: none; }
}

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