/*
 * Shared stylesheet for the prerendered transparency pages:
 *   /about  /contact  /editorial-policy  /corrections  /authors  /authors/<slug>
 *
 * These pages are plain static HTML served directly by Firebase Hosting, ahead
 * of the SPA catch-all rewrite. They must be fully legible in raw HTML, so
 * nothing here is required for the content to make sense — this file only
 * styles it. Since 2026-11-08 the palette and type are the blog's (white
 * ground, navy ink, Bricolage / Instrument Serif / Space Mono); the shared
 * masthead and footer live in /site.css, loaded before this file.
 */

:root {
  --bg: #ffffff;
  --surface: #f7fafd;
  --surface-alt: #eef4fb;
  --text: #16243c;
  --text-soft: #2e3c56;
  --text-muted: #51617e;
  --accent: #365f9f;
  --accent-deep: #132a60;
  --line: rgba(18, 42, 96, 0.26);
  --line-soft: rgba(18, 42, 96, 0.09);
  --radius-sm: 0px;
  --radius-md: 0px;
  --head: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --read: 'Instrument Serif', Georgia, serif;
  --mono: 'Space Mono', 'Courier New', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--head);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.wrap,
.transparency-page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.transparency-page { padding-top: 44px; padding-bottom: 24px; }

/* ── Content ────────────────────────────────────────────── */

main {
  display: block;
  padding: 44px 0 24px;
}

.eyebrow,
.transparency-breadcrumb {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.standfirst,
.transparency-lede {
  margin: 0 0 34px;
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
}

h2 {
  margin: 44px 0 12px;
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin: 30px 0 8px;
  font-family: var(--head);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

main p,
main ul,
main ol {
  margin: 0 0 18px;
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

main ul,
main ol {
  padding-left: 22px;
}

main li {
  margin-bottom: 8px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-deep);
}

strong {
  font-weight: 700;
}

hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

/* ── Blocks ─────────────────────────────────────────────── */

.panel {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--text);
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel--quiet {
  background: var(--surface-alt);
  border-top-width: 1px;
  border-top-color: var(--line-soft);
}

/* Owner-completion markers. Deliberately loud: these are unfinished facts, and
   an unfinished fact must never be mistaken for a finished one. */
.todo {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: rgba(155, 106, 20, 0.14);
  color: #7a5310;
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.contact-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list .label {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
}

.contact-list .addr {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 500;
}

.contact-list p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.meta-row {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.person .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(29, 63, 134, 0.1);
  color: var(--accent-deep);
  font-family: var(--head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.person .role {
  margin: 0;
  font-weight: 600;
  color: var(--text-soft);
}

.log-empty {
  margin: 24px 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-soft);
}

.log-empty > :last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  main p,
  main ul,
  main ol {
    font-size: 16px;
  }

  .standfirst,
  .transparency-lede {
    font-size: 18px;
  }
}

/* Consent-withdrawal control on the cookie policy. Consent has to be as easy to
   take back as it was to give, so this is a real button, not a link that looks
   like one. #1d3f86 on white measures 8.6:1. */
.btn {
  display: inline-block;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
}
.btn:hover {
  background: var(--accent-deep);
}
.btn:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
}

.transparency-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

/* One typeface across the site, 2026-11-14: reading text and labels in the site sans. */
html body, html body * { --read: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; --mono: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; }
.eyebrow, .transparency-breadcrumb, [class*="eyebrow"] { letter-spacing: .02em; text-transform: none; font-size: 13px; font-weight: 600; }
