:root {
  --brief-paper: #fffdf7;
  --brief-ink: #111827;
  --brief-muted: #5e6878;
  --brief-line: #d9d5ca;
  --brief-accent: #176b5b;
  --brief-accent-soft: #e8f2ee;
  --brief-signal: #f2b233;
  --brief-card: #ffffff;
}

html[data-theme="dark"] {
  --brief-paper: #141515;
  --brief-ink: #f5f1e7;
  --brief-muted: #bbb5aa;
  --brief-line: #45433e;
  --brief-accent-soft: #173a33;
  --brief-card: #1d1e1f;
}

body.single-post.category-weekly-briefing .reading-page {
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 640px), color-mix(in srgb, var(--brief-accent) 7%, transparent) calc(50% - 640px), color-mix(in srgb, var(--brief-accent) 7%, transparent) calc(50% - 630px), transparent calc(50% - 630px)),
    var(--brief-paper);
  color: var(--brief-ink);
}

body.single-post.category-weekly-briefing .reading-article {
  padding-bottom: 48px;
}

body.single-post.category-weekly-briefing .article-header {
  max-width: 1180px;
  margin-top: 28px;
  padding: 32px 34px 28px;
  border-top: 8px solid var(--brief-accent);
  border-bottom: 1px solid var(--brief-line);
  background: var(--brief-card);
}

body.single-post.category-weekly-briefing .article-header .breadcrumbs,
body.single-post.category-weekly-briefing .article-header .kicker {
  display: none;
}

body.single-post.category-weekly-briefing .article-header::before {
  content: attr(data-issue-label);
  display: block;
  margin-bottom: 14px;
  color: var(--brief-accent);
  font: 850 12px/1.1 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

body.single-post.category-weekly-briefing .article-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body.single-post.category-weekly-briefing .article-header .standfirst {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--brief-muted);
  font: 500 clamp(18px, 2vw, 23px)/1.45 Georgia, serif;
}

body.single-post.category-weekly-briefing .article-meta {
  margin-top: 22px;
  color: var(--brief-muted);
  font: 700 12px/1.3 system-ui, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.single-post.category-weekly-briefing .article-hero {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--brief-card);
}

body.single-post.category-weekly-briefing .article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

body.single-post.category-weekly-briefing .article-hero-credit {
  padding: 9px 14px;
  border-bottom: 1px solid var(--brief-line);
  color: var(--brief-muted);
  font: 600 11px/1.4 system-ui, sans-serif;
}

.briefing-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 0 0;
}

.briefing-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr);
  gap: 38px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--brief-line);
}

.briefing-intro {
  margin: 0;
  font-size: 21px;
  line-height: 1.62;
}

.briefing-contents {
  padding: 20px 22px;
  border-top: 4px solid var(--brief-signal);
  background: var(--brief-card);
  box-shadow: 0 10px 30px #1118270b;
}

.briefing-contents strong {
  display: block;
  margin-bottom: 12px;
  font: 850 11px/1 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.briefing-contents a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--brief-line);
  color: var(--brief-ink);
  font: 750 14px/1.25 system-ui, sans-serif;
  text-decoration: none;
}

.briefing-contents a span:last-child {
  color: var(--brief-muted);
  font-variant-numeric: tabular-nums;
}

.briefing-section {
  margin-top: 48px;
  scroll-margin-top: 120px;
}

.briefing-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--brief-accent);
}

.briefing-section-head h2 {
  margin: 0 !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  line-height: 1.05;
}

.briefing-section-head span {
  color: var(--brief-muted);
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.briefing-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--brief-line);
  border: 1px solid var(--brief-line);
}

.briefing-story {
  min-width: 0;
  padding: 24px 26px 22px;
  background: var(--brief-card);
}

.briefing-story:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .65fr);
  column-gap: 40px;
  align-items: start;
  padding: 30px 34px;
  border-left: 6px solid var(--brief-signal);
}

.briefing-story:first-child::after {
  content: "Lead story";
  grid-column: 2;
  grid-row: 1 / span 4;
  min-height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--brief-line);
  background: var(--brief-accent-soft);
  color: var(--brief-accent);
  font: 850 12px/1 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.briefing-story.has-briefing-image {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .65fr);
  column-gap: 30px;
  align-items: start;
}

.briefing-story.has-briefing-image:first-child::after {
  display: none;
}

.briefing-story-image {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--brief-line);
  background: var(--brief-accent-soft);
}

.briefing-story-image a {
  display: block;
  height: 100%;
}

.briefing-story-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.briefing-story:nth-child(2) {
  grid-column: 1 / -1;
}

.briefing-story:nth-child(2) p {
  max-width: 780px;
}

.briefing-story h3 {
  margin: 0 0 10px !important;
  font-size: clamp(21px, 2.2vw, 29px) !important;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.briefing-story h3 a {
  color: var(--brief-ink);
  text-decoration-color: color-mix(in srgb, var(--brief-accent) 45%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.briefing-story h3 a:hover,
.briefing-story h3 a:focus-visible {
  color: var(--brief-accent);
  text-decoration-color: currentColor;
}

.briefing-story p {
  margin: 0;
  color: var(--brief-muted);
  font-size: 17px;
  line-height: 1.52;
}

.briefing-story .briefing-story-meta {
  margin-top: 16px;
  color: var(--brief-accent);
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.briefing-more {
  grid-column: 1 / -1;
  padding: 6px 26px 14px;
  background: var(--brief-card);
}

.briefing-more h3 {
  margin: 12px 0 4px !important;
  color: var(--brief-muted);
  font: 850 11px/1 system-ui, sans-serif !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.briefing-more ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.briefing-more li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--brief-line);
}

.briefing-more-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--brief-line);
}

.briefing-more-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.briefing-more a {
  color: var(--brief-ink);
  font: 750 17px/1.3 Georgia, serif;
  text-decoration: none;
}

.briefing-more a:hover,
.briefing-more a:focus-visible {
  color: var(--brief-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.briefing-more span {
  color: var(--brief-muted);
  font: 800 10px/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.briefing-closure {
  margin-top: 48px;
  padding: 28px 30px;
  border: 1px solid var(--brief-line);
  background: var(--brief-card);
}

.briefing-closure h2 {
  margin-top: 0 !important;
}

body.single-post.category-weekly-briefing .tock-receipts {
  margin-top: 36px;
}

body.brief-hk {
  --brief-accent: #c9302c;
  --brief-accent-soft: #fff0ec;
}

html[data-theme="dark"] body.brief-hk {
  --brief-accent: #ff746b;
  --brief-accent-soft: #3b201d;
}

@media (max-width: 760px) {
  body.single-post.category-weekly-briefing .article-header {
    margin-top: 16px;
    padding: 24px 18px 22px;
  }
  body.single-post.category-weekly-briefing .article-header h1 {
    font-size: clamp(36px, 12vw, 50px);
  }
  body.single-post.category-weekly-briefing .article-hero img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #fff;
  }
  .briefing-shell {
    padding: 26px 16px 0;
  }
  .briefing-intro-grid,
  .briefing-stories,
  .briefing-story:first-child {
    display: block;
  }
  .briefing-contents {
    margin-top: 24px;
  }
  .briefing-story,
  .briefing-story:first-child {
    padding: 22px 20px;
  }
  .briefing-story:first-child::after {
    display: inline-block;
    min-height: 0;
    margin-bottom: 12px;
    padding: 7px 9px;
    border: 0;
  }
  .briefing-story.has-briefing-image,
  .briefing-story.has-briefing-image:first-child {
    display: block;
  }
  .briefing-story.has-briefing-image:first-child::after {
    display: none;
  }
  .briefing-story-image {
    display: block;
    margin: 0 0 18px;
  }
  .briefing-story-image img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .briefing-more {
    padding: 4px 20px 12px;
  }
  .briefing-more li {
    display: block;
  }
  .briefing-more-image {
    margin-bottom: 12px;
  }
  .briefing-more span {
    display: block;
    margin-top: 6px;
  }
  .briefing-section {
    margin-top: 38px;
  }
  .briefing-section-head span {
    display: none;
  }
}

@media print {
  .briefing-story { break-inside: avoid; }
}
