:root {
  --paper: #f4eedf;
  --paper-light: #fffdf8;
  --ink: #20251f;
  --muted: #6c6c60;
  --olive: #55613a;
  --olive-dark: #303b26;
  --terra: #ad5138;
  --terra-dark: #743120;
  --blue: #285e78;
  --line: #b9b29f;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 8px 12px; }
.skip-link:focus { top: 12px; }

.top-rule { height: 7px; background: linear-gradient(90deg, var(--terra) 0 34%, var(--olive) 34% 72%, var(--blue) 72%); }
.masthead { border-bottom: 1px solid var(--ink); background: var(--paper-light); }
.masthead-inner { max-width: var(--max); margin: auto; padding: 16px 20px 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.issue { font-size: .72rem; line-height: 1.35; text-transform: uppercase; color: var(--muted); }
.brand { text-align: center; text-decoration: none; font-weight: 700; font-size: clamp(2rem, 4vw, 3.35rem); line-height: .9; color: var(--ink); }
.brand span { color: var(--terra); }
.tagline { display: block; margin-top: 7px; font-size: .68rem; line-height: 1; text-transform: uppercase; font-weight: 400; color: var(--olive); }
.search-open { justify-self: end; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 7px 12px; min-height: 38px; }
.search-open:hover, .search-open:focus-visible { background: var(--ink); color: white; }
.nav { border-bottom: 1px solid var(--line); background: var(--paper-light); }
.nav-inner { max-width: var(--max); margin: auto; padding: 0 20px; display: flex; justify-content: center; flex-wrap: wrap; }
.nav a { padding: 9px 18px 8px; text-decoration: none; font-size: .82rem; text-transform: uppercase; border-left: 1px solid var(--line); }
.nav a:last-child { border-right: 1px solid var(--line); }
.nav a:hover, .nav a[aria-current="page"] { color: white; background: var(--olive); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker { display: inline-block; margin: 0 0 8px; color: var(--terra-dark); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.meta { color: var(--muted); font-size: .79rem; line-height: 1.4; }
.meta strong { color: var(--ink); font-weight: 400; }
.arrow-link { font-size: .82rem; font-weight: 700; text-transform: uppercase; text-decoration: none; color: var(--olive-dark); }
.arrow-link::after { content: "  >"; color: var(--terra); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); border-bottom: 1px solid var(--ink); }
.lead-story { padding: 34px 28px 34px 0; border-right: 1px solid var(--ink); }
.lead-story a { text-decoration: none; }
.lead-story figure { margin: 0 0 20px; position: relative; }
.lead-story img { width: 100%; aspect-ratio: 16 / 8.8; object-fit: cover; }
.image-note { position: absolute; right: 0; bottom: 0; margin: 0; padding: 5px 9px; background: var(--paper-light); color: var(--muted); font-size: .68rem; }
.lead-story h1 { max-width: 880px; margin: 0 0 10px; font-size: clamp(2.15rem, 5vw, 4.35rem); line-height: .96; font-weight: 700; }
.lead-story .standfirst { max-width: 760px; margin: 0 0 14px; font-size: 1.12rem; line-height: 1.55; }
.dossier-rail { padding: 34px 0 34px 24px; }
.rail-title { margin: 0; padding-bottom: 9px; border-bottom: 3px solid var(--terra); font-size: .8rem; text-transform: uppercase; }
.dossier { padding: 17px 0; border-bottom: 1px solid var(--line); }
.dossier:last-child { border-bottom: 0; }
.dossier .number { display: block; color: var(--terra); font-size: .7rem; font-weight: 700; }
.dossier h2 { margin: 3px 0 5px; font-size: 1.18rem; line-height: 1.15; }
.dossier p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.section-head { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin: 32px 0 18px; }
.section-head h2 { margin: 0; font-size: 1.35rem; text-transform: uppercase; }
.section-head .rule { height: 1px; background: var(--ink); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; padding-bottom: 36px; border-bottom: 1px solid var(--ink); }
.story-card { grid-column: span 6; display: grid; grid-template-columns: 44% 1fr; min-width: 0; border-top: 4px solid var(--olive); background: var(--paper-light); }
.story-card:nth-child(2) { border-color: var(--blue); }
.story-card:nth-child(3) { border-color: var(--terra); }
.story-card:nth-child(4) { border-color: var(--olive-dark); }
.story-card > a { display: block; min-width: 0; }
.story-card img { width: 100%; height: 100%; min-height: 228px; object-fit: cover; }
.story-card-content { padding: 18px; }
.story-card h3 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.08; }
.story-card h3 a { text-decoration: none; }
.story-card p { margin: 0 0 15px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.data-band { margin: 0; padding: 27px 24px; background: var(--olive-dark); color: white; }
.data-band-inner { display: grid; grid-template-columns: .85fr 2fr; gap: 36px; align-items: center; }
.data-band h2 { margin: 0; color: #fff; font-size: 1.45rem; line-height: 1.12; }
.data-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #758069; }
.data-point { padding: 14px 16px; background: var(--olive-dark); }
.data-point strong { display: block; color: #f1b39d; font-size: 1.5rem; line-height: 1; }
.data-point span { display: block; margin-top: 5px; font-size: .78rem; line-height: 1.35; color: #e6e8df; }
.about-strip { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 32px 0; }
.about-strip h2 { margin: 0 0 7px; font-size: 1.25rem; }
.about-strip p { margin: 0; max-width: 750px; color: var(--muted); }
.about-strip .edition-note { border-left: 4px solid var(--blue); padding-left: 15px; color: var(--ink); font-size: .86rem; }

.page-head { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; padding: 35px 0 25px; border-bottom: 1px solid var(--ink); }
.page-head .label { color: var(--terra); font-size: .78rem; text-transform: uppercase; font-weight: 700; }
.page-head h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .95; }
.page-head p { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.category-list { padding-bottom: 50px; }
.category-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 190px; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.category-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.category-row h2 { margin: 0 0 5px; font-size: 1.75rem; line-height: 1.05; }
.category-row h2 a { text-decoration: none; }
.category-row p { margin: 0; color: var(--muted); font-size: .9rem; }
.category-row .row-meta { justify-self: end; font-size: .76rem; color: var(--muted); }

.article-wrap { max-width: 1180px; margin: auto; padding: 33px 20px 60px; }
.article-header { max-width: 970px; margin: auto; }
.article-header h1 { margin: 5px 0 14px; font-size: clamp(2.35rem, 6vw, 5rem); line-height: .94; }
.article-header .dek { max-width: 790px; margin: 0 0 18px; font-size: 1.18rem; line-height: 1.52; }
.article-header .byline { padding-top: 12px; border-top: 1px solid var(--line); }
.article-hero { margin: 26px 0 0; }
.article-hero img { width: 100%; max-height: 650px; aspect-ratio: 16/9; object-fit: cover; }
.article-hero figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; color: var(--muted); font-size: .72rem; }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: 45px; justify-content: center; margin-top: 35px; }
.article-aside { align-self: start; position: sticky; top: 20px; }
.article-aside .aside-box { padding: 13px 0; border-top: 4px solid var(--terra); border-bottom: 1px solid var(--line); }
.article-aside h2 { margin: 0 0 7px; font-size: .82rem; text-transform: uppercase; }
.article-aside p, .article-aside li { font-size: .77rem; line-height: 1.45; color: var(--muted); }
.article-aside ul { margin: 0; padding-left: 17px; }
.article-body { min-width: 0; }
.article-body > p:first-child::first-letter { float: left; padding: 7px 8px 0 0; color: var(--terra); font-size: 4.6rem; line-height: .7; }
.article-body h2 { margin: 2.1em 0 .45em; padding-top: 9px; border-top: 1px solid var(--ink); font-size: 2rem; line-height: 1.08; }
.article-body h3 { margin: 1.55em 0 .3em; color: var(--olive-dark); font-size: 1.35rem; line-height: 1.15; }
.article-body h4 { margin: 1.3em 0 .25em; color: var(--terra-dark); font-size: 1rem; text-transform: uppercase; }
.article-body p { margin: 0 0 1.05em; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li { margin-bottom: .45em; }
.article-body blockquote { margin: 28px 0; padding: 16px 20px; border-left: 5px solid var(--blue); background: #e9eee9; font-size: 1.1rem; line-height: 1.45; }
.article-body table { width: 100%; margin: 25px 0; border-collapse: collapse; font-size: .88rem; }
.article-body th { background: var(--olive-dark); color: white; text-align: left; }
.article-body th, .article-body td { padding: 10px; border: 1px solid var(--line); vertical-align: top; }
.article-end { max-width: 975px; margin: 45px auto 0; padding-top: 20px; border-top: 5px solid var(--terra); display: flex; justify-content: space-between; gap: 20px; align-items: center; }

.search-panel { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(32,37,31,.96); color: white; overflow-y: auto; }
.search-panel.is-open { display: block; }
.search-inner { width: min(790px, calc(100% - 40px)); margin: 9vh auto; }
.search-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #7b8177; }
.search-top h2 { margin: 0 0 10px; font-size: 1rem; text-transform: uppercase; }
.search-close { border: 1px solid #aeb4a9; background: transparent; color: white; padding: 5px 10px; }
.search-form { display: grid; grid-template-columns: 1fr auto; margin-top: 30px; }
.search-form input { min-width: 0; padding: 13px 14px; border: 0; border-radius: 0; background: white; color: var(--ink); }
.search-form button { border: 0; background: var(--terra); color: white; padding: 10px 18px; }
.search-status { min-height: 28px; margin: 14px 0; color: #ccd0c7; font-size: .85rem; }
.search-result { padding: 17px 0; border-top: 1px solid #687064; }
.search-result a { color: white; text-decoration: none; font-size: 1.35rem; line-height: 1.1; }
.search-result p { margin: 5px 0 0; color: #ccd0c7; font-size: .85rem; }

.site-footer { background: var(--ink); color: #e9e4d8; }
.footer-inner { max-width: var(--max); margin: auto; padding: 28px 20px; display: grid; grid-template-columns: 1.3fr 2fr; gap: 45px; }
.footer-brand { font-size: 2.1rem; line-height: 1; }
.footer-brand span { color: #e48161; }
.footer-inner p { margin: 7px 0 0; color: #b9bdb5; font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: white; font-size: .78rem; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .masthead-inner { grid-template-columns: 1fr auto; align-items: center; }
  .issue { display: none; }
  .brand { text-align: left; font-size: 2.35rem; }
  .tagline { font-size: .58rem; }
  .nav-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0; }
  .nav a { flex: 0 0 auto; padding: 8px 13px; }
  .container { width: min(100% - 28px, var(--max)); }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story { padding: 22px 0 28px; border-right: 0; }
  .lead-story h1 { font-size: 2.55rem; }
  .dossier-rail { padding: 24px 0; border-top: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .rail-title { grid-column: 1 / -1; }
  .dossier { padding: 0; border: 0; }
  .story-card { grid-column: 1 / -1; }
  .data-band-inner, .about-strip { grid-template-columns: 1fr; gap: 20px; }
  .page-head { grid-template-columns: 1fr; gap: 8px; }
  .category-row { grid-template-columns: 130px 1fr; gap: 16px; }
  .category-row .row-meta { grid-column: 2; justify-self: start; }
  .article-layout { grid-template-columns: 1fr; margin-top: 25px; }
  .article-aside { position: static; }
  .article-aside .aside-box { display: grid; grid-template-columns: 150px 1fr; gap: 15px; }
  .article-aside h2 { margin: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .masthead-inner { padding: 12px 14px 10px; gap: 10px; }
  .brand { font-size: 2rem; }
  .search-open { padding: 5px 8px; font-size: .8rem; }
  .lead-story img { aspect-ratio: 4 / 3; }
  .lead-story h1 { font-size: 2.25rem; }
  .dossier-rail { grid-template-columns: 1fr; }
  .dossier { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: auto 1fr; }
  .section-head .arrow-link { grid-column: 1 / -1; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { height: 190px; min-height: 0; }
  .data-list { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 105px 1fr; align-items: start; }
  .category-row h2 { font-size: 1.28rem; }
  .category-row p { display: none; }
  .article-wrap { padding-left: 14px; padding-right: 14px; }
  .article-header h1 { font-size: 2.55rem; }
  .article-header .dek { font-size: 1.05rem; }
  .article-hero { margin-left: -14px; margin-right: -14px; }
  .article-hero figcaption { padding: 7px 14px 0; }
  .article-aside .aside-box { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.65rem; }
  .article-body table { display: block; overflow-x: auto; }
  .article-end { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* visual-quality-baseline-v1 */
img {
  height: auto;
}

.visual-refresh-feed {
  margin-block: clamp(40px, 6vw, 84px);
}

.visual-refresh-feed > :is(
  ul,
  ol,
  [class*="grid"],
  [class*="list"],
  [class*="run"],
  [class*="feed"],
  [class*="articles"],
  [class*="stories"],
  [class*="cards"]
) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(16px, 2.2vw, 28px) !important;
}

.visual-refresh-feed > :is(
  ul,
  ol,
  [class*="grid"],
  [class*="list"],
  [class*="run"],
  [class*="feed"],
  [class*="articles"],
  [class*="stories"],
  [class*="cards"]
) > * {
  min-width: 0;
}

.visual-refresh-feed img {
  width: 100%;
  height: auto;
  max-height: 260px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 720px) {
  .visual-refresh-feed > :is(
    ul,
    ol,
    [class*="grid"],
    [class*="list"],
    [class*="run"],
    [class*="feed"],
    [class*="articles"],
    [class*="stories"],
    [class*="cards"]
  ) {
    grid-template-columns: 1fr !important;
  }
}

/* visual-quality-targeted-v2 */
:is(h1, h2, h3) {
  overflow-wrap: anywhere;
}

.visual-refresh-feed {
  overflow: hidden;
}

.visual-refresh-feed:has(> article) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.4vw, 32px) !important;
  align-items: start;
}

.visual-refresh-feed:has(> article) > :is(
  h1, h2, h3, p, header, .section-heading, .section-head, .heading
) {
  grid-column: 1 / -1;
}

.visual-refresh-feed:has(> article) > article {
  display: block !important;
  grid-column: auto !important;
  min-width: 0;
  min-height: 0 !important;
}

.visual-refresh-feed > .visual-refresh-feed {
  grid-column: 1 / -1 !important;
  width: 100%;
}

.visual-refresh-feed :is(
  .story-grid, .article-grid, .post-grid, .card-grid, .cards,
  [class*="article-list"], [class*="story-list"], [class*="post-list"]
) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.4vw, 32px) !important;
}

.visual-refresh-feed :is(article, li, [class*="card"]) {
  min-width: 0;
}

.visual-refresh-feed img {
  width: 100% !important;
  height: auto !important;
  max-height: 260px !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
}

@media (max-width: 720px) {
  .visual-refresh-feed:has(> article),
  .visual-refresh-feed :is(
    .story-grid, .article-grid, .post-grid, .card-grid, .cards,
    [class*="article-list"], [class*="story-list"], [class*="post-list"]
  ) {
    grid-template-columns: 1fr !important;
  }
}
