:root {
  --ink: #17211a;
  --muted: #667169;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #e9efeb;
  --line: #d8dfda;
  --forest: #155c49;
  --forest-dark: #103f34;
  --coral: #c54e39;
  --amber: #a96e0d;
  --blue: #3569a8;
  --focus: #2b70c9;
  --shadow: 0 8px 26px rgba(23, 33, 26, 0.07);
  --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
summary,
a,
input {
  outline-color: var(--focus);
  outline-offset: 3px;
}

svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.8;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  color: #fff;
  background: var(--forest-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 243, 0.96);
}

.header-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--forest);
  border-radius: 4px;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.header-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.intro {
  min-height: 350px;
  padding-block: 72px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #b8ddcf;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.28;
}

.intro-deck {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.edition-stamp {
  width: 126px;
  min-height: 126px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--forest);
  color: var(--forest-dark);
}

.edition-stamp span {
  font-size: 13px;
}

.edition-stamp strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.briefing-band {
  color: #fff;
  background: var(--forest-dark);
}

.briefing-inner {
  min-height: 282px;
  padding-block: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(360px, 1fr);
  align-items: center;
  gap: 68px;
}

.briefing-copy h2 {
  max-width: 700px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
}

.briefing-copy > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #d7e4de;
}

.metric-row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.metric-row div {
  min-height: 102px;
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.metric-row dt {
  color: #b8c9c1;
  font-size: 12px;
}

.metric-row dd {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.filter-section {
  padding-block: 32px 20px;
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
}

.search-box input::placeholder {
  color: #89928c;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-label {
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  height: 42px;
  padding: 3px;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.segmented button {
  min-width: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
}

.source-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  cursor: pointer;
}

.source-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 36px;
  height: 20px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #aeb8b1;
  border-radius: 10px;
  background: #dfe5e1;
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-track span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(23, 33, 26, 0.22);
  transition: transform 160ms ease;
}

.source-toggle input:checked + .toggle-track {
  border-color: var(--forest);
  background: var(--forest);
}

.source-toggle input:checked + .toggle-track span {
  transform: translateX(16px);
}

.source-toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.category-nav {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-nav button {
  min-height: 38px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}

.category-nav button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.category-nav button[aria-pressed="true"] {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.category-nav .count {
  color: var(--muted);
  font-size: 12px;
}

.content-grid {
  padding-block: 54px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 64px;
}

.feed-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.feed-heading h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
}

#result-count {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}

.section-block + .section-block {
  margin-top: 46px;
}

.section-heading {
  margin-bottom: 15px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
}

.section-heading svg {
  width: 19px;
  height: 19px;
  color: var(--forest);
}

.section-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.section-heading span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.policy-card {
  padding: 25px 26px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-card + .policy-card {
  margin-top: 14px;
}

.policy-card[data-relevance="high"] {
  border-left-color: var(--coral);
}

.policy-card[data-relevance="medium"] {
  border-left-color: var(--amber);
}

.policy-card[data-relevance="low"] {
  border-left-color: #8b9690;
}

.card-meta {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.item-number {
  min-width: 28px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.badge {
  min-height: 24px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge-high {
  color: #912f20;
  background: #f8ddd7;
}

.badge-medium {
  color: #775014;
  background: #f4e7ca;
}

.badge-low {
  color: #536058;
  background: #e5eae7;
}

.badge-primary {
  color: #0f5745;
  background: #d9eee6;
}

.badge-secondary {
  color: #315f91;
  background: #dfebf8;
}

.badge-pending {
  color: #804a14;
  background: #f7e4cf;
}

.date-chip {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.policy-card h4 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.policy-summary {
  margin-bottom: 20px;
  color: #38443d;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.decision-grid > div {
  padding: 16px 17px;
}

.decision-grid > div + div {
  border-left: 1px solid var(--line);
}

.decision-label {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 500;
}

.decision-label.action {
  color: var(--coral);
}

.decision-label svg {
  width: 14px;
  height: 14px;
}

.decision-grid p {
  margin-bottom: 0;
  color: #435048;
  font-size: 13px;
}

.card-footer {
  margin-top: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.team-list,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
}

.team-tag {
  color: var(--muted);
  font-size: 12px;
}

.team-tag::before {
  content: "#";
  color: var(--forest);
}

.source-links {
  justify-content: flex-end;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 12px;
  text-underline-offset: 3px;
}

.source-link svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.weekly-aside {
  position: sticky;
  top: 24px;
}

.aside-section {
  padding: 24px 0 28px;
  border-top: 3px solid var(--ink);
}

.aside-section + .aside-section {
  border-top-width: 1px;
}

.aside-title-row {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.aside-title-row svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}

.aside-title-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.priority-list,
.date-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

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

.priority-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.priority-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.date-list li {
  padding: 11px 0 11px 20px;
  position: relative;
  border-left: 1px solid #b6c0ba;
}

.date-list li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.date-list time {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.date-list span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.source-summary {
  display: grid;
  gap: 8px;
}

.source-summary a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3e4a43;
  font-size: 13px;
  text-decoration: none;
}

.source-summary a:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-summary svg {
  width: 13px;
  height: 13px;
  color: var(--blue);
  flex: 0 0 auto;
}

.coverage-details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.coverage-details summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--forest);
  font-size: 13px;
  cursor: pointer;
}

.coverage-details p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.editorial-note {
  margin: 8px 0 0;
  padding: 15px 16px;
  border-left: 3px solid var(--amber);
  color: #66552d;
  background: #f5ecd8;
  font-size: 12px;
}

.empty-state {
  min-height: 280px;
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.empty-state svg {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

.empty-state h3 {
  margin: 12px 0 4px;
  font-family: var(--serif);
  font-size: 18px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .briefing-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .weekly-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
  }

  .editorial-note {
    align-self: start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 58px;
  }

  .header-meta span:not(:first-child) {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .intro {
    min-height: 0;
    padding-block: 48px 40px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  h1 {
    font-size: 36px;
  }

  .intro-deck {
    font-size: 15px;
  }

  .edition-stamp {
    width: 100%;
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .briefing-inner {
    padding-block: 34px;
  }

  .briefing-copy h2 {
    font-size: 23px;
  }

  .metric-row div {
    min-height: 88px;
    padding: 15px;
  }

  .metric-row dd {
    font-size: 26px;
  }

  .filter-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-box {
    max-width: none;
    flex-basis: 100%;
  }

  .source-toggle {
    margin-left: auto;
  }

  .content-grid {
    padding-block: 42px 58px;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .card-footer {
    flex-direction: column;
  }

  .source-links {
    justify-content: flex-start;
  }

  .weekly-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 31px;
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .segmented {
    flex: 1;
  }

  .segmented button {
    flex: 1;
    min-width: 38px;
    padding-inline: 8px;
  }

  .source-toggle {
    margin-left: 0;
  }

  .policy-card {
    padding: 20px 17px 18px;
  }

  .date-chip {
    flex-basis: 100%;
    margin-left: 35px;
  }

  .feed-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    padding-block: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
