/* The standards pages — editorial standards, AI disclosure, privacy,
   corrections.

   These four are real files, not SPA routes. A policy page has to be readable
   with scripts off, has to carry its own head for a crawler without going
   through prerender.py, and almost never changes: a static file is the honest
   shape for it. They load /styles.css first for the tokens, the reset, the
   header, the buttons and the footer, so they are the same site rather than a
   copy of it; everything below is only what a page of prose adds.

   The site is printed on paper now, and these pages came with it: they take
   the serif for headings, full ink for the short lines and one step back for
   running text, and nothing here has a rounded corner, because the front page
   has none either. The one filled block is the ask, inked the way the rate
   card is.

   The four reference each other constantly, so they share a tab bar. The
   current one is marked with aria-current in that page's own markup. */

/* ---------- the tab bar ------------------------------------------------- */
.tabs { border-bottom: 1px solid var(--rule); }
.tabs .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tab {
  white-space: nowrap; padding: 14px 2px; margin-right: 22px; margin-bottom: -1px;
  color: var(--dim); font-size: 15px; border-bottom: 2px solid transparent;
}
.tab:last-child { margin-right: 0; }
.tab:hover { color: var(--fg); }
.tab[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 500; }

/* ---------- the masthead of the page ------------------------------------ */
.phead .wrap { padding-block: clamp(28px, 5vw, 58px) clamp(20px, 3vw, 32px); }
.phead h1 {
  font: 600 clamp(31px, 5.6vw, 60px)/1 var(--serif);
  letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance;
}
.standfirst {
  font: 400 clamp(16px, 1.6vw, 20px)/1.48 var(--display); color: var(--mid);
  max-width: 54ch; margin: 18px 0 0;
}

/* An undated policy is worth very little, so the date is furniture, not a
   line of small print at the bottom. */
.stamp {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.stamp > span { display: block; }
.stamp b {
  display: block; font: 400 9px/1 var(--mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); font-weight: 400;
}
.stamp b + span { display: block; font-size: 15px; margin-top: 6px; }

/* ---------- prose, with a contents rail at desk width -------------------- */
.pbody .wrap {
  padding-block: clamp(18px, 3vw, 28px) clamp(38px, 6vw, 70px);
  display: grid; gap: clamp(24px, 4vw, 52px);
}
@media (min-width: 980px) { .pbody .wrap { grid-template-columns: 210px 1fr; align-items: start; } }
/* A page with no table of contents — the 404 — would otherwise drop its
   text into the sidebar's 210px column. Keep it in the reading column. */
@media (min-width: 980px) { .pbody .wrap > .prose:only-child { grid-column: 2; } }

.toc { position: sticky; top: 74px; }
.toc p { margin: 0 0 12px; }
.toc a { display: block; font-size: 14px; color: var(--dim); padding-block: 5px; }
.toc a:hover { color: var(--fg); }
@media (max-width: 979px) { .toc { display: none; } }

.prose { max-width: 66ch; min-width: 0; color: var(--mid); }
.prose h2, .prose h3, .prose strong { color: var(--fg); }
.prose h2 {
  font: 600 clamp(22px, 2.4vw, 29px)/1.14 var(--serif); letter-spacing: -0.024em;
  margin: 44px 0 0; scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 17.5px/1.25 var(--serif); letter-spacing: -0.014em; margin: 26px 0 0; }
.prose p { margin: 14px 0 0; }
.prose strong { font-weight: 500; }
.prose a.in { border-bottom: 1px solid var(--rule-2); }
.prose a.in:hover { border-bottom-color: var(--plum); color: var(--plum); }
.prose ul.bul { margin: 14px 0 0; }
.prose ul.bul li { position: relative; padding-left: 20px; margin-top: 9px; }
.prose ul.bul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--plum);
}

/* The one claim the page exists to make, lifted out of the prose. */
.pull {
  background: var(--panel); border: 1px solid var(--rule); padding: clamp(20px, 3vw, 28px);
  margin: 30px 0 0; color: var(--fg);
  font: 400 clamp(18px, 1.9vw, 23px)/1.32 var(--display); letter-spacing: -0.015em;
}

/* The AI-voiced shows, written in by stamp.py from data.js. A disclosure page
   that lists them by hand is one catalogue edit away from being false. */
.whos { margin: 20px 0 0; border-top: 1px solid var(--rule); }
.whos li { border-bottom: 1px solid var(--rule); }
.whos a { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding-block: 13px; }
.whos img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--rule); background: var(--panel2); }
.whos b { display: block; font: 600 16px/1.25 var(--serif); letter-spacing: -0.014em; }
.whos b + span {
  display: block; font: 400 10px/1.5 var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: var(--dim); margin-top: 3px;
}
.whos em {
  font-style: normal; font: 400 9px/1 var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--bg); background: var(--plum);
  padding: 6px 8px;
}
.whos a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* A dated list of what we changed. Empty is a fine state for it to be in. */
.corr { margin: 22px 0 0; border-top: 1px solid var(--rule); }
.corr li { border-bottom: 1px solid var(--rule); padding-block: 15px; }
.corr time {
  display: block; font: 400 10px/1 var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}
.corr b { display: block; font: 600 17px/1.25 var(--serif); letter-spacing: -0.014em; margin-top: 8px; }
.corr p { margin: 7px 0 0; color: var(--mid); }
.corr--none { border: 0; margin-top: 18px; }
.corr--none p { color: var(--mid); margin: 0; }

/* The ask, inked: the same block the rate card is printed as, so the one
   place on a policy page that wants something from you looks like the one
   place on the front page that does. */
.askbox {
  background: var(--fg); color: var(--bg);
  padding: clamp(22px, 4vw, 34px); margin-top: clamp(32px, 5vw, 54px);
}
.askbox h2 {
  font: 600 clamp(21px, 2.4vw, 27px)/1.1 var(--serif); letter-spacing: -0.024em;
  margin: 0; color: var(--bg);
}
.askbox p { color: #B8AE9C; margin: 12px 0 0; }
.askbox .mail { color: var(--bg); font-family: var(--mono); font-size: .92em; -webkit-user-select: all; user-select: all; }
.askbox .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); margin-top: 20px; }
.askbox .btn:hover { background: var(--red); color: var(--bg); border-color: var(--red); }
.askbox :focus-visible { outline-color: var(--bg); }
