/* TEMPLATE 9 — Print Newspaper 1950s Broadsheet
   Aged newsprint #f9f5eb + deep black #0a0a0a + crimson accent #8b0000.
   Playfair Display masthead + PT Serif body. Double-rule separators, drop caps.
   Required: global box-sizing border-box so offer_table renders correctly. */

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

:root {
  --t9-ink:        #0a0a0a;
  --t9-ink-soft:   #3a3a3a;
  --t9-muted:      #6a6a6a;
  --t9-paper:      #f9f5eb;
  --t9-paper-deep: #f1ead5;
  --t9-card:       #ffffff;
  --t9-rule:       #0a0a0a;
  --t9-crimson:    #8b0000;
  --t9-crimson-dk: #5a0000;
  --t9-serif:      "PT Serif", Georgia, "Times New Roman", serif;
  --t9-display:    "Playfair Display", "PT Serif", Georgia, serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--t9-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--t9-ink);
  background: var(--t9-paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--t9-crimson);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:visited { color: var(--t9-crimson-dk); }
a:hover { color: var(--t9-ink); background: var(--t9-paper-deep); }

.t9-container {
  width: 1100px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.t9-wrap { background: var(--t9-paper); min-height: 100vh; }

/* ——— Masthead / Nameplate ——— */
.t9-nameplate {
  background: var(--t9-paper);
  border-bottom: 3px double var(--t9-rule);
  padding: 28px 0 22px;
  text-align: center;
}
.t9-editions {
  font-family: var(--t9-serif);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--t9-crimson);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.t9-masthead {
  display: inline-block;
  font-family: var(--t9-display);
  font-weight: 900;
  font-size: 58px;
  color: var(--t9-ink) !important;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  line-height: 1.05;
  text-transform: uppercase;
}
.t9-masthead:visited { color: var(--t9-ink) !important; }
.t9-masthead:hover { background: transparent; text-decoration: none !important; }
.t9-motto {
  font-family: var(--t9-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--t9-muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ——— Navbar ——— */
.t9-navbar {
  border-top: 1px solid var(--t9-rule);
  border-bottom: 3px double var(--t9-rule);
  padding: 10px 0;
  background: var(--t9-paper);
  font-family: var(--t9-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.t9-navbar a {
  margin: 0 14px;
  color: var(--t9-ink);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  padding-bottom: 2px;
}
.t9-navbar a:hover {
  border-bottom-color: var(--t9-crimson);
  background: transparent;
  color: var(--t9-crimson);
}

/* ——— Main ——— */
.t9-main {
  background: var(--t9-paper);
  padding: 40px 0 20px;
}
.t9-main .t9-container { padding: 0 40px; }

/* ——— Article typography ——— */
.t9-article {
  font-family: var(--t9-serif);
  color: var(--t9-ink);
}

.t9-section-tag {
  font-family: var(--t9-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t9-crimson);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--t9-rule);
}

.t9-headline {
  font-family: var(--t9-display);
  font-weight: 900;
  font-size: 46px;
  line-height: 1.1;
  color: var(--t9-ink);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.t9-standfirst {
  font-family: var(--t9-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--t9-ink-soft);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--t9-rule);
}

.t9-byline {
  margin: 0 0 32px;
  padding-bottom: 18px;
  border-bottom: 3px double var(--t9-rule);
}
.t9-byline-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t9-byline-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--t9-rule);
}
.t9-byline-author {
  font-size: 14px;
  color: var(--t9-ink);
  letter-spacing: 0.04em;
}
.t9-byline-author strong { font-weight: 700; }
.t9-byline-meta {
  font-size: 12px;
  color: var(--t9-muted);
  font-style: italic;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

/* Kickers for h2 — section headings */
.t9-kicker {
  font-family: var(--t9-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--t9-ink);
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--t9-rule);
  letter-spacing: -0.005em;
}

.t9-sub {
  font-family: var(--t9-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--t9-ink);
  margin: 22px 0 10px;
  font-style: italic;
}

.t9-article p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--t9-ink);
}

/* Drop cap on the lede */
.t9-lede::first-letter {
  font-family: var(--t9-display);
  font-size: 64px;
  font-weight: 900;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--t9-crimson);
}

.t9-pullquote {
  font-family: var(--t9-display);
  font-size: 26px;
  font-style: italic;
  line-height: 1.35;
  color: var(--t9-ink);
  text-align: center;
  margin: 30px 40px;
  padding: 22px 0;
  border-top: 3px double var(--t9-rule);
  border-bottom: 3px double var(--t9-rule);
  font-weight: 400;
}

.t9-rule {
  border: 0;
  height: 0;
  border-top: 3px double var(--t9-rule);
  margin: 30px 0;
}

/* ——— Table ——— */
.t9-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-family: var(--t9-serif);
  font-size: 14px;
  border: 2px solid var(--t9-rule);
}
.t9-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--t9-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t9-crimson);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--t9-rule);
}
.t9-table th {
  background: var(--t9-ink);
  color: var(--t9-paper);
  font-family: var(--t9-display);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  letter-spacing: 0.04em;
  font-size: 13px;
  border: 1px solid var(--t9-rule);
}
.t9-table td {
  padding: 9px 12px;
  border: 1px solid #c8c0a8;
  background: var(--t9-card);
  vertical-align: top;
}
.t9-table tr:nth-child(even) td { background: var(--t9-paper-deep); }

/* ——— Disclosure aside ——— */
.t9-disclosure {
  background: var(--t9-paper-deep);
  border-top: 3px double var(--t9-rule);
  border-bottom: 3px double var(--t9-rule);
  padding: 16px 22px;
  margin: 22px 0;
  font-family: var(--t9-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--t9-ink-soft);
}
.t9-disclosure-tag {
  display: block;
  font-style: normal;
  font-family: var(--t9-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t9-crimson);
  margin-bottom: 6px;
}
.t9-disclosure p { margin: 0; }

/* ——— FAQ / Q&A ——— */
.t9-qa {
  margin: 18px 0;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--t9-rule);
}
.t9-qa:last-child { border-bottom: none; }
.t9-qa h3 {
  font-family: var(--t9-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--t9-crimson);
}
.t9-qa p { margin: 0; font-size: 15px; }

/* ——— Footer (colophon) ——— */
.t9-colophon {
  background: var(--t9-paper);
  border-top: 3px double var(--t9-rule);
  padding: 18px 0 22px;
  text-align: center;
  font-size: 12px;
  color: var(--t9-muted);
  margin-top: 40px;
  font-family: var(--t9-serif);
}
.t9-colophon p { margin: 4px 0; }
.t9-colophon a { color: var(--t9-crimson); }
.t9-imprint {
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--t9-muted);
}

/* ——— Responsive ——— */
@media (max-width: 1160px) {
  .t9-container { width: 100%; padding: 0 16px; }
  .t9-main .t9-container { padding: 0 24px; }
  .t9-masthead { font-size: 42px; }
  .t9-headline { font-size: 34px; }
  .t9-standfirst { font-size: 17px; }
  .t9-pullquote { font-size: 20px; margin: 24px 10px; }
  .t9-kicker { font-size: 24px; }
  .t9-table { font-size: 13px; }
  .t9-table th, .t9-table td { padding: 7px 8px; }
}
@media (max-width: 700px) {
  .t9-main .t9-container { padding: 0 14px; }
  .t9-masthead { font-size: 30px; }
  .t9-headline { font-size: 26px; }
  .t9-standfirst { font-size: 15px; }
  .t9-pullquote { font-size: 17px; margin: 20px 0; padding: 14px 0; }
  .t9-kicker { font-size: 20px; margin: 22px 0 10px; padding-top: 14px; }
  .t9-sub { font-size: 17px; }
  .t9-article p { font-size: 15px; line-height: 1.65; }
  .t9-article ul, .t9-article ol { padding-left: 22px; }
  .t9-lede::first-letter { font-size: 48px; padding: 4px 8px 0 0; }
  .t9-byline-row { flex-wrap: wrap; gap: 10px; }
  .t9-nameplate { padding: 20px 0 16px; }
  .t9-navbar { overflow-x: auto; white-space: nowrap; }
  .t9-navbar a { margin: 0 8px; }

  /* Generic content tables — horizontal scroll so long-column tables
     don't blow out the layout on mobile. */
  .t9-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    font-size: 12px;
  }
  .t9-table thead, .t9-table tbody { display: table; width: max-content; min-width: 100%; }
  .t9-table tr { display: table-row; }
  .t9-table th, .t9-table td { padding: 6px 8px; white-space: nowrap; }
  .t9-table caption { white-space: normal; }
  .t9-disclosure { padding: 12px 14px; font-size: 12px; }
  .t9-table + * { margin-top: 14px; }
}
