/* otr26.css — On the record site design, Nov 20 2026 (F6). Loaded after each page's own styles by the otr-newsgate
   Worker, which also swaps in the new masthead (header.mast.m26). Everything here is scoped to body[data-d26] so a page
   served without the Worker is unchanged. Rollback: drop the injection in the Worker (OTR_D26=false). */

body[data-d26] {
  --ink: #0F1B2D;          /* record navy: text, masthead, footer */
  --paper: #FFFFFF;
  --wash: #F1F4F9;
  --rail: #D8DFEA;
  --quiet: #586377;        /* 5.9:1 on white */
  --cite: #1F4FD1;         /* citation blue: links, the active section, the wordmark's ¹ */
  --brk: #C8102E;          /* Breaking only */
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --m26-band: 64px;
}

/* ------------------------------------------------------------- masthead: navy band + section bar */
body[data-d26] .mast.m26 { position: relative; background: none; border: 0; padding: 0; z-index: 40; }
body[data-d26] .m26-band { background: var(--ink); color: #fff; }
body[data-d26] .m26-band .wrap {
  display: flex; align-items: center; gap: 28px; min-height: var(--m26-band); padding-top: 10px; padding-bottom: 10px;
}
body[data-d26] .m26 .logo { flex: none; display: block; line-height: 0; }
body[data-d26] .m26 .logo img { height: 28px; width: auto; }
body[data-d26] .m26-ed { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; line-height: 1.3; color: #C3CEDF; }
body[data-d26] .m26-ed time { color: #fff; font-weight: 600; }
body[data-d26] .m26-tools { flex: none; display: flex; align-items: center; gap: 14px; }
body[data-d26] .m26 .acct-link { color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
body[data-d26] .m26 .acct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
body[data-d26] .m26 .srch-btn, body[data-d26] .m26-menu {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; cursor: pointer;
  font: 600 14.5px/1 var(--sans); color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.55); border-radius: 0;
}
body[data-d26] .m26 .srch-btn:hover, body[data-d26] .m26-menu:hover { border-color: #fff; background: rgba(255,255,255,.08); }
body[data-d26] .m26-menu { display: none; }
body[data-d26] .m26-menu svg { width: 16px; height: 16px; }

body[data-d26] .m26-nav { position: sticky; top: 0; z-index: 39; background: var(--paper); border-bottom: 1px solid var(--rail); }
body[data-d26] .m26-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
body[data-d26] .m26-nav a {
  position: relative; display: block; padding: 15px 12px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
body[data-d26] .m26-nav li:first-child a { padding-left: 0; }
body[data-d26] .m26-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: transparent; }
body[data-d26] .m26-nav li:first-child a::after { left: 0; }
body[data-d26] .m26-nav a:hover::after { background: var(--rail); }
body[data-d26] .m26-nav a[aria-current]::after { background: var(--cite); }
body[data-d26] .m26-nav a[aria-current] { color: var(--cite); }
body[data-d26] .m26-nav .m26-brk { color: var(--brk); }
body[data-d26] .m26-nav .m26-brk.is-live::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--brk);
  vertical-align: 1px; animation: m26-pulse 2s ease-in-out infinite;
}
@keyframes m26-pulse { 50% { opacity: .35; } }


/* the pages' own .mast rules (flex/space-between wrap, 22px padding, nav underline, article pages hiding the nav on
   phones) would leak into the new header: neutralise them at higher specificity */
body[data-d26] .mast.m26 .wrap { justify-content: flex-start; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; gap: 0; }
body[data-d26] .mast.m26 .m26-band .wrap { gap: 28px; padding-top: 10px; padding-bottom: 10px; }
body[data-d26] .mast.m26 .m26-nav .wrap, body[data-d26] .mast.m26 .m26-panel .wrap { display: block; }
body[data-d26] .mast.m26 nav { display: block; gap: 0; font-size: inherit; overflow: visible; max-width: none; padding-bottom: 0; }
body[data-d26] .mast.m26 nav a:hover, body[data-d26] .mast.m26 nav a[aria-current] { text-decoration: none; }
body[data-d26] .mast.m26 .srch-btn { margin-left: 0; }

/* the full section list (phones: the "Sections" button) */
body[data-d26] .m26-panel { background: var(--paper); border-bottom: 1px solid var(--rail); box-shadow: 0 12px 24px rgba(15,27,45,.12); }
body[data-d26] .m26-panel[hidden] { display: none; }
body[data-d26] .m26-panel ul { list-style: none; margin: 0; padding: 8px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
body[data-d26] .m26-panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rail); font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
body[data-d26] .m26-panel a[aria-current] { color: var(--cite); }
body[data-d26] .m26-panel .m26-brk { color: var(--brk); }

/* search panel (search.js inserts it after the masthead): match the band */
body[data-d26] .srch-panel { border-bottom: 1px solid var(--rail); background: var(--wash); }

/* ------------------------------------------------------------- reading: serif prose, calmer meta, citation blue */
body[data-d26] a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
body[data-d26] .prose p, body[data-d26] .prose li {
  font-family: var(--serif); font-size: 19px; line-height: 1.62; font-optical-sizing: auto;
}
body[data-d26] .prose { max-width: 68ch; }
body[data-d26] .prose h2, body[data-d26] .prose h3 { font-family: var(--sans); letter-spacing: -.01em; }
body[data-d26] .dek, body[data-d26] #lead-dek { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: #2A3649; }
body[data-d26] .a-head .meta, body[data-d26] .cov { color: var(--quiet); }
body[data-d26] .sect-label { color: var(--cite); text-decoration: none; font-weight: 700; }
body[data-d26] .sect-label:hover { text-decoration: underline; }
body[data-d26] sup.c a { color: var(--cite); }
body[data-d26] .btn { background: var(--ink); border-radius: 0; }
body[data-d26] .btn:hover { background: var(--cite); }

/* headline lists on the front and section pages: date in quiet, title in ink, a hairline between items */
body[data-d26] .hl-grid b, body[data-d26] #hm-latest b, body[data-d26] #rows b { letter-spacing: -.005em; }
body[data-d26] .hl-grid a:hover b, body[data-d26] #hm-latest a:hover b, body[data-d26] #rows a:hover b { color: var(--cite); }
body[data-d26] .lead-img { border-radius: 0 !important; }

/* footer: navy, generous */
body[data-d26] .foot { background: var(--ink); }
body[data-d26] .foot a { color: #fff; }

/* ------------------------------------------------------------- Politics: the records panel on /news/politics/ */
body[data-d26] .pp { background: var(--wash); border-bottom: 1px solid var(--rail); padding: 28px 0 32px; margin-bottom: 8px; }
body[data-d26] .pp-h { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
body[data-d26] .pp-note { margin: 0 0 18px; font-size: 14px; color: var(--quiet); }
body[data-d26] .pp-note a { color: var(--cite); font-weight: 600; margin-left: 6px; }
body[data-d26] .pp-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 16px; }
body[data-d26] .pp-card { background: var(--paper); border: 1px solid var(--rail); padding: 16px 18px; min-width: 0; }
body[data-d26] .pp-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
body[data-d26] .pp-card .pp-gap { margin-top: 18px; }
body[data-d26] .pp-tot { margin: 0 0 6px; font-size: 13px; color: var(--quiet); }
body[data-d26] .pp-bar { display: flex; height: 14px; gap: 2px; }
body[data-d26] .pp-bar span { display: block; min-width: 3px; }
body[data-d26] .pp-d { background: #2457C5; color: #2457C5; }
body[data-d26] .pp-r { background: #C23B3B; color: #C23B3B; }
body[data-d26] .pp-i { background: #8A8F98; color: #6B717A; }
body[data-d26] .pp-leg { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
body[data-d26] .pp-leg li { background: none; color: var(--ink); }
body[data-d26] .pp-leg li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: currentColor; }
body[data-d26] .pp-leg li.pp-d::before { background: #2457C5; } body[data-d26] .pp-leg li.pp-r::before { background: #C23B3B; }
body[data-d26] .pp-leg li.pp-i::before { background: #8A8F98; }
body[data-d26] .pp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
body[data-d26] .pp-t td { padding: 7px 0; border-top: 1px solid var(--rail); vertical-align: top; }
body[data-d26] .pp-t tr:first-child td { border-top: 0; }
body[data-d26] .pp-t a { color: var(--ink); font-weight: 600; text-decoration: none; }
body[data-d26] .pp-t a:hover { color: var(--cite); text-decoration: underline; }
body[data-d26] .pp-sub { display: block; font-size: 12.5px; color: var(--quiet); }
body[data-d26] .pp-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }

/* ------------------------------------------------------------- focus, motion */
body[data-d26] a:focus-visible, body[data-d26] button:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }
body[data-d26] .m26-band a:focus-visible, body[data-d26] .m26-band button:focus-visible { outline-color: #9DB8FF; }
@media (prefers-reduced-motion: reduce) { body[data-d26] .m26-brk.is-live::before { animation: none; } }

body[data-d26] .m26-panel .m26-acct { display: none; }

/* ------------------------------------------------------------- phones and small tablets */
@media (max-width: 900px) {
  body[data-d26] .pp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body[data-d26] { --m26-band: 56px; }
  body[data-d26] .mast.m26 .m26-band .wrap { gap: 12px; }
  body[data-d26] .m26 .logo img { height: 22px; }
  body[data-d26] .m26-ed span { display: none; }
  body[data-d26] .m26-ed { font-size: 12.5px; }
  body[data-d26] .m26 .acct-link { display: none; }
  body[data-d26] .m26 .srch-btn span { display: none; }
  body[data-d26] .m26 .srch-btn { padding: 0 10px; }
  body[data-d26] .m26-menu { display: inline-flex; padding: 0 10px; }
  body[data-d26] .mast.m26 .m26-nav .wrap { padding-left: 0; padding-right: 0; }
  body[data-d26] .m26-nav ul {
    overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; padding: 0 16px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  body[data-d26] .m26-nav ul::-webkit-scrollbar { display: none; }
  body[data-d26] .m26-nav li { scroll-snap-align: start; }
  body[data-d26] .m26-nav a { padding: 13px 10px 12px; font-size: 14.5px; }
  body[data-d26] .prose p, body[data-d26] .prose li { font-size: 18px; }
  body[data-d26] .m26-panel .m26-acct { display: block; }
}
@media (max-width: 400px) {
  body[data-d26] .m26-ed { display: none; }
}
