/* On the ads (ads.otrecord.news): On the record's 2026 design (otr26.css, Nov 20 2026): record navy ink,
   citation blue for links and the active section, Public Sans for type, Source Serif 4 for standfirsts,
   square corners, thick navy rules over sections. The .otr-ad card at the bottom is the same markup and
   style site/ads.js puts on reader pages; keep the two in step. */
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-600.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --ink: #0F1B2D; --paper: #FFFFFF; --wash: #F1F4F9; --rail: #D8DFEA; --faint: #C4CCD8; --quiet: #586377;
  --cite: #1F4FD1; --hl: #FFE45C; --bad: #B3261E; --good: #1D6B3E;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
main a:not(.btn):not(.card) { text-decoration-color: var(--faint); }
main a:not(.btn):not(.card):hover { color: var(--cite); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--cite); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1256px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Masthead: navy band (wordmark, sister sites, account) + white section bar */
.mast { position: relative; z-index: 40; }
.mast .band { background: var(--ink); color: #fff; }
.mast .band .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.mast .logo { flex: none; line-height: 0; }
.mast .logo img { height: 28px; width: auto; }
.mast .ed { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.3; color: #C3CEDF; }
.mast .ed b { color: #fff; font-weight: 600; }
.mast .sister { display: flex; gap: 20px; font-size: 14.5px; }
.mast .sister a { color: #C3CEDF; text-decoration: none; font-weight: 500; }
.mast .sister a:hover { color: #fff; }
.mast .acct { display: flex; align-items: center; gap: 14px; font-size: 14.5px; white-space: nowrap; }
.mast .acct a, .mast .acct button { color: #fff; font: 600 14.5px var(--sans); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.mast .acct .me { color: #C3CEDF; font-weight: 400; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mast .acct .boxed { border: 1px solid rgba(255,255,255,.45); padding: 8px 14px; }
.mast .acct .boxed:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.mast .band a:focus-visible, .mast .band button:focus-visible { outline-color: #9DB8FF; }
.mast .bar { background: var(--paper); border-bottom: 1px solid var(--rail); }
.mast .bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.mast .bar ul::-webkit-scrollbar { display: none; }
.mast .bar a { position: relative; display: block; padding: 15px 12px 14px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mast .bar li:first-child a { padding-left: 0; }
.mast .bar a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: transparent; }
.mast .bar li:first-child a::after { left: 0; }
.mast .bar a:hover::after { background: var(--rail); }
.mast .bar a[aria-current] { color: var(--cite); }
.mast .bar a[aria-current]::after { background: var(--cite); }
.mast .bar .go { margin-left: auto; }
.mast .bar .go a { color: var(--cite); }
@media (max-width: 860px) { .mast .sister, .mast .ed { display: none; } .mast .band .wrap { justify-content: space-between; } }
@media (max-width: 480px) { .mast .acct .me { display: none; } .mast .logo img { height: 24px; } }

/* Type */
h1 { font: 800 clamp(34px, 5vw, 60px)/1.04 var(--sans); letter-spacing: -.035em; margin: 0 0 18px; }
h1.huge { font-size: clamp(40px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.12 var(--sans); letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font: 800 19px/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 8px; }
.dek { font: 400 clamp(18px, 1.6vw, 21px)/1.5 var(--serif); color: #2A3649; max-width: 38em; margin: 0 0 26px; }
.kicker { font: 700 12.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--quiet); margin: 0 0 12px; }
.kicker a { text-decoration: none; }
.quiet { color: var(--quiet); }
.small { font-size: 14px; }

main { padding: 44px 0 88px; }
section.band { padding: 18px 0 44px; border-top: 3px solid var(--ink); margin-top: 8px; }
section.band:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .cols, .cols.two { grid-template-columns: 1fr; gap: 24px; } }
.col { border-top: 1px solid var(--rail); padding-top: 14px; }
.col p { margin: 0; }
.big { font: 800 40px/1 var(--sans); letter-spacing: -.035em; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15.5px/1 var(--sans); padding: 14px 22px;
  background: var(--ink); color: #fff; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--cite); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { font-size: 13px; padding: 8px 12px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.hint { font-size: 13px; color: var(--quiet); margin: 4px 0 0; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); padding: 10px 12px; border: 1px solid var(--faint); background: var(--paper); color: var(--ink); border-radius: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.field { margin: 0 0 18px; }
.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .row, .row.two { grid-template-columns: 1fr; } }
.count { float: right; font-weight: 400; color: var(--quiet); }
.err { color: var(--bad); font-size: 14px; margin: 8px 0 0; }
.ok { color: var(--good); font-size: 14px; }
.problems { border-left: 4px solid var(--bad); padding: 12px 16px; background: #FCF3F2; margin: 0 0 18px; }
.problems ul { margin: 6px 0 0; padding-left: 18px; }
.note { border-left: 4px solid var(--cite); padding: 12px 16px; background: var(--wash); margin: 0 0 18px; font-size: 15px; }

/* Choice tiles (how you pay) and chips (audiences) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; border: 1px solid var(--faint); padding: 14px 16px; cursor: pointer; display: block; font-weight: 400; margin: 0; }
.tile input { position: absolute; opacity: 0; }
.tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.tile span { font-size: 14px; color: var(--quiet); }
.tile:hover { border-color: var(--ink); }
.tile:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; box-shadow: inset 0 3px 0 var(--cite); }
.tile:has(input:focus-visible) { outline: 3px solid var(--cite); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--faint); padding: 6px 12px; font: 600 14px/1.2 var(--sans); cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; }
.chip:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 3px solid var(--cite); outline-offset: 2px; }
.aud { border-top: 1px solid var(--rail); padding: 14px 0; }
.aud .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.aud .head b { font-size: 15px; }
.aud .only { font-size: 13px; font-weight: 400; display: inline-flex; gap: 6px; align-items: center; color: var(--quiet); margin: 0; }

/* Steps */
.steps { display: flex; gap: 0; margin: 0 0 28px; border-bottom: 1px solid var(--rail); overflow-x: auto; }
.steps li { list-style: none; padding: 10px 16px 10px 0; margin-right: 16px; font-weight: 600; font-size: 14px; color: var(--quiet); white-space: nowrap; }
.steps li[aria-current] { color: var(--cite); box-shadow: inset 0 -3px 0 var(--cite); }
.steps ol { display: contents; }
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 16px; }
.preview .frame { border: 1px solid var(--rail); padding: 18px 18px 6px; background: var(--paper); }
.preview .frame p.fake { color: #555; font-size: 15px; margin: 0 0 12px; }
.preview .fake-line { height: 10px; background: var(--wash); margin: 0 0 9px; }
.ai { border-top: 3px solid var(--ink); background: var(--wash); padding: 18px 20px 20px; margin: 0 0 30px; }
.ai h3 { margin-bottom: 4px; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font: 700 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--quiet); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
table.t td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rail); vertical-align: top; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.status { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border: 1px solid currentColor; }
.status.live { color: var(--good); }
.status.fix, .status.held, .status.rejected { color: var(--bad); }
.status.review, .status.unpaid, .status.draft, .status.paused, .status.ended { color: var(--quiet); }
.meter { height: 8px; background: var(--wash); position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 64px; border-bottom: 1px solid var(--ink); }
.spark i { flex: 1; background: var(--ink); min-height: 1px; }
.stat { border-top: 3px solid var(--ink); padding-top: 12px; }
.stat .big { font-size: 30px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }
@media (max-width: 800px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sign-in panel */
.gate { max-width: 440px; }
.gate .tabs { display: flex; gap: 20px; margin: 0 0 18px; border-bottom: 1px solid var(--rail); }
.gate .tabs button { background: none; border: 0; font: 700 15px var(--sans); padding: 8px 0; cursor: pointer; color: var(--quiet); }
.gate .tabs button[aria-selected=true] { color: var(--cite); box-shadow: inset 0 -3px 0 var(--cite); }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 48px 0 56px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: 1fr; gap: 28px; } }
.foot img { width: 150px; margin-bottom: 16px; }
.foot p { margin: 0; color: #C3CEDF; max-width: 40ch; }
.foot h4 { margin: 0 0 10px; font: 700 12.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #C3CEDF; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot :focus-visible { outline-color: #9DB8FF; }

/* ---- The ad card, exactly as readers see it (site/ads.js has the same rules) ---- */
.otr-ad { clear: both; margin: 40px auto; max-width: 720px; }
.otr-ad .in { border-top: 1px solid var(--rail); border-bottom: 1px solid var(--rail); padding: 10px 0 16px; }
.otr-ad .top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.otr-ad .lab { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.otr-ad .x { background: none; border: 0; padding: 2px 0; font: 400 12px/1 var(--sans); color: var(--quiet); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.otr-ad a.card { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; text-decoration: none; color: var(--ink); align-items: start; }
.otr-ad a.card.noimg { grid-template-columns: 1fr; }
.otr-ad .pic { aspect-ratio: 3 / 2; background: var(--wash); overflow: hidden; }
.otr-ad .pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) contrast(.96); }
.otr-ad .who { font: 600 13px/1.3 var(--sans); color: var(--quiet); margin: 0 0 4px; }
.otr-ad .hl { display: block; font: 700 19px/1.25 var(--sans); margin: 0 0 6px; }
.otr-ad .bd { font: 400 15px/1.45 var(--sans); color: #333; margin: 0 0 10px; }
.otr-ad .go { font: 700 14px/1 var(--sans); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.otr-ad a.card:hover .hl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 560px) {
  .otr-ad a.card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .otr-ad .hl { font-size: 17px; }
  .otr-ad .bd { font-size: 14px; margin-bottom: 8px; }
}
/* the house slot */
.otr-house .in { background: var(--wash); border: 0; padding: 18px 20px 20px; }
.otr-house .hl { font-size: 20px; }

/* In-page payment (Stripe Payment Element, themed in app.js APPEARANCE) */
.paybox { border-top: 3px solid var(--ink); box-shadow: inset 0 0 0 1px var(--rail); padding: 18px 20px 16px; margin: 16px 0 20px; background: var(--paper); max-width: 560px; }
.paybox h3 { margin: 0 0 6px; }
.paybox .pe { min-height: 120px; }

/* Builder: money fields, image upload, cost math */
.money { position: relative; }
.money span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--quiet); pointer-events: none; }
.money input { padding-left: 26px; font-variant-numeric: tabular-nums; }
.label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.upload { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.upload .thumb { aspect-ratio: 3 / 2; background: var(--wash) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--rail); }
.upload .thumb.has { filter: saturate(.55) contrast(.96); box-shadow: none; }
.upload .hint { margin-top: 8px; }
.upload label.btn { cursor: pointer; }
.upload input:focus-visible + .link, .upload:focus-within label.btn { outline: 3px solid var(--cite); outline-offset: 2px; }
.math { border-top: 3px solid var(--ink); background: var(--wash); padding: 14px 16px; margin: 4px 0 18px; font-size: 15px; }
.math dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 0; }
.math dt { font: 700 12px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin: 0 0 4px; }
.math dd { margin: 0; font: 800 22px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.math dd small { display: block; font: 400 13px/1.35 var(--sans); letter-spacing: 0; color: var(--quiet); margin-top: 4px; }
.math p { margin: 10px 0 0; font-size: 13.5px; color: var(--quiet); }
.math .warn { color: var(--bad); }

/* Campaign list filters */
.tabs-f { display: flex; gap: 22px; border-bottom: 1px solid var(--rail); margin: 0 0 4px; overflow-x: auto; scrollbar-width: none; }
.tabs-f button { background: none; border: 0; padding: 10px 0 12px; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; position: relative; }
.tabs-f button span { color: var(--quiet); font-weight: 400; margin-left: 2px; }
.tabs-f button[aria-selected=true] { color: var(--cite); box-shadow: inset 0 -3px 0 var(--cite); }
