/* Sports Veritas — Newsprint design system */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --newsprint: #f0ebe0;
  --ink:       #1a1209;
  --ink-light: #4a3f2f;
  --rule:      #2c2416;
  --accent:    #8b1a1a;
  --box-bg:    #e4ddd0;
  --box-border:#9a8e7e;
  --mono:      'IBM Plex Mono', 'Courier New', monospace;
  --serif:     'Playfair Display', Georgia, serif;
  --body:      'Lora', Georgia, serif;
}

body {
  background: var(--newsprint);
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout wrappers ─────────────────────────────────────── */
.sv-wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ── Masthead ────────────────────────────────────────────── */
.masthead { background: var(--newsprint); padding-top: 14px; }
.masthead-meta {
  display: flex; justify-content: space-between; margin-bottom: 4px;
  font-family: var(--mono); font-size: 0.6rem; color: var(--ink-light);
}
.masthead-title {
  text-align: center; padding: 10px 0 8px;
}
.masthead-title h1 {
  font-family: var(--serif); font-weight: 900; font-size: 2.8rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0; color: var(--ink);
  position: relative;
}
.masthead-phoenix {
  display: inline-block;
  width: auto;
  height: 1.437em;
  vertical-align: bottom;
  position: relative;
  top: -0.18em;
  margin: 0 0.1em;
  z-index: 0;
  filter: brightness(0.3);
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.masthead-tagline {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-light); margin-top: 2px;
}
.masthead-rule      { border: none; border-top: 3px solid var(--rule); }
.masthead-rule-thin { border: none; border-top: 1px solid var(--rule); }
.masthead-nav {
  display: flex; justify-content: center; padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.masthead-nav a {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); padding: 0 12px;
}
.masthead-nav .nav-sep {
  font-family: var(--mono); font-size: 0.7rem; color: var(--box-border);
}

/* ── Typography utilities ────────────────────────────────── */
.section-label {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.dateline {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-light);
}
.byline {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-light);
}

/* ── Article body ────────────────────────────────────────── */
.article-body p { font-size: 0.87rem; line-height: 1.72; margin-bottom: 0.85em; color: var(--ink); }
.article-body p + p { text-indent: 1.2em; }
.article-body p:first-child { text-indent: 0; }

.drop-cap::first-letter {
  float: left; font-family: var(--serif); font-size: 4rem; font-weight: 900;
  line-height: 0.75; margin-right: 6px; margin-top: 4px; color: var(--ink);
}

/* ── Info box ────────────────────────────────────────────── */
.info-box {
  background: var(--box-bg); border: 1px solid var(--box-border);
  padding: 10px 12px; font-family: var(--mono); font-size: 0.68rem; margin-bottom: 14px;
}
.info-box-title {
  font-family: var(--serif); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--box-border); padding-bottom: 5px; margin-bottom: 7px; color: var(--ink);
}
.info-box-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 2px 0; border-bottom: 1px dotted #bbb; line-height: 1.5;
}
.info-box-key  { color: var(--ink-light); flex-shrink: 0; }
.info-box-val  { color: var(--ink); text-align: right; font-weight: 500; }
.info-box-desc { font-size: 0.67rem; line-height: 1.55; margin-bottom: 8px; }
.info-box-link { font-size: 0.65rem; color: var(--accent); margin-top: 8px; display: block; }

/* ── Pull quote ──────────────────────────────────────────── */
.pull-quote {
  border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule);
  margin: 18px 0; padding: 14px 8px; text-align: center;
}
.pull-quote-text {
  font-family: var(--serif); font-style: italic; font-size: 1.12rem;
  line-height: 1.45; color: var(--ink);
}
.pull-quote-attr {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-light); margin-top: 8px;
}

/* ── Photo treatment ─────────────────────────────────────── */
.np-photo {
  display: block; width: 100%;
  filter: grayscale(55%) sepia(18%) contrast(1.08) brightness(0.97);
  border: 1px solid #bbb;
}
.np-caption {
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.45; color: var(--ink-light);
  background: var(--box-bg); border: 1px solid #bbb; border-top: none;
  padding: 4px 6px; margin-bottom: 12px;
}

/* ── Badges & tags ───────────────────────────────────────── */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #f0ebe0; padding: 1px 5px;
  margin-right: 4px; margin-top: 6px;
}
.badge-blue   { background: #1a3a5c; }
.badge-green  { background: #2c4a1a; }
/* Federation-specific badges (best-effort match to official identity colours) */
.badge-ioc    { background: #0081C8; } /* Olympic blue */
.badge-asoif  { background: #003B71; } /* Summer federations navy */
.badge-aiowf  { background: #00829B; } /* Winter federations teal */
.badge-arisf  { background: #1F6E3A; } /* Recognised federations green */
.badge-aims   { background: #C8881C; } /* AIMS amber */
.badge-link   { color: #f0ebe0; text-decoration: none; }
.badge-link:hover { opacity: 0.85; }
.tag-pill {
  display: inline-block; font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--box-border); padding: 1px 6px;
  margin-right: 4px; margin-top: 4px; color: var(--ink-light);
}

/* ── Related items ───────────────────────────────────────── */
.related-item {
  padding: 6px 0; border-bottom: 1px dotted #bbb;
  font-size: 0.78rem; line-height: 1.35;
}
.related-item:last-child { border-bottom: none; }
.related-item .section-label { display: block; margin-bottom: 2px; }
.related-item a { font-family: var(--serif); font-size: 0.78rem; color: var(--ink); }

/* ── Front-page 3-column grid ───────────────────────────── */
.fp-grid {
  display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 0;
  border-bottom: 1px solid var(--rule); padding-bottom: 22px; margin-bottom: 20px;
}
.fp-lead   { padding-right: 20px; border-right: 1px solid var(--rule); }
.fp-col2   { padding: 0 18px; border-right: 1px solid var(--rule); }
.fp-side   { padding-left: 18px; }

.fp-lead-headline {
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem;
  line-height: 1.2; margin-bottom: 10px; color: var(--ink); cursor: pointer;
}
.fp-lead-headline:hover { color: var(--accent); }
.fp-subhead {
  font-family: var(--body); font-style: italic; font-size: 0.9rem;
  line-height: 1.45; color: var(--ink-light);
  border-left: 3px solid var(--accent); padding-left: 10px; margin-bottom: 10px;
}
.fp-body-para { font-family: var(--body); font-size: 0.88rem; line-height: 1.7; }
.fp-read-more {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}

/* ── Article card (col2 / sidebar / bottom) ─────────────── */
.article-card {
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dotted var(--box-border);
}
.article-card:last-child { border-bottom: none; }
.card-headline {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  line-height: 1.25; margin-top: 4px; margin-bottom: 7px;
  color: var(--ink); cursor: pointer;
}
.card-headline:hover { color: var(--accent); }
.card-headline.small { font-size: 0.87rem; margin-bottom: 4px; }
.card-subhead {
  font-family: var(--body); font-style: italic; font-size: 0.82rem;
  line-height: 1.4; color: var(--ink-light); margin-bottom: 6px;
}
.card-summary { font-family: var(--body); font-size: 0.83rem; line-height: 1.6; margin-top: 5px; }

/* ── Bottom row ──────────────────────────────────────────── */
.fp-bottom-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
}

/* ── Article page 2-column ───────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 240px; gap: 28px; padding-top: 18px;
}
.article-breadcrumb {
  font-family: var(--mono); font-size: 0.62rem; padding: 8px 0;
  color: var(--ink-light); border-bottom: 1px solid var(--rule);
}
.article-breadcrumb a { color: var(--accent); }
.article-headline {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 10px; color: var(--ink);
}
.article-subhead {
  font-family: var(--body); font-style: italic; font-size: 1rem;
  line-height: 1.45; color: var(--ink-light);
  border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 12px;
}
.article-meta {
  display: flex; gap: 16px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.article-tags { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--box-border); }
.article-source {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.65rem; color: var(--ink-light);
}
.article-source a { color: var(--accent); }

/* ── Site footer ─────────────────────────────────────────── */
.sv-footer {
  margin-top: 32px; padding-top: 16px; border-top: 3px solid var(--rule);
}
.sv-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  padding-bottom: 24px;
}
.sv-footer-copy {
  margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--box-border);
  font-family: var(--mono); font-size: 0.58rem; color: var(--ink-light); text-align: center;
}
.sv-footer p { font-family: var(--body); font-size: 0.75rem; line-height: 1.6; color: var(--ink-light); margin-top: 0; margin-bottom: 8px; }
.sv-footer em { font-style: italic; }
.sv-footer-contact { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-light); margin-top: 10px; }

/* ── Sitemap path items ──────────────────────────────────── */
.sitemap-row {
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.7;
}
.sitemap-row.indent { padding-left: 12px; border-left: 1px solid var(--box-border); margin-left: 4px; }
.sitemap-row .path  { color: var(--accent); }
.sitemap-row .label { color: var(--ink-light); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .fp-grid          { grid-template-columns: 1fr; }
  .fp-lead          { padding-right: 0; border-right: none; border-bottom: 1px solid var(--rule); padding-bottom: 20px; margin-bottom: 20px; }
  .fp-col2          { padding: 0; border-right: none; }
  .fp-side          { padding-left: 0; display: none; }
  .fp-bottom-grid   { grid-template-columns: 1fr; }
  .article-layout   { grid-template-columns: 1fr; }
  .article-sidebar  { display: none; }
  .sv-footer-grid   { grid-template-columns: 1fr; }
}
