.observatory-report-page {
  --obs-ink: #142a35;
  --obs-muted: #536a73;
  --obs-paper: #f4f6f1;
  --obs-surface: #fbfcf8;
  --obs-line: #d6e0da;
  --obs-teal: #087f78;
  --obs-coral: #bd6252;
  --obs-coral-soft: #f5e6df;
  --obs-chart-bg: #f8faf6;
  color: var(--obs-ink);
}

.observatory-report-page .container { max-width: 1120px; }

.article-header.observatory-report-page {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 78px) 0 clamp(38px, 5vw, 64px);
  color: #f5f5ed;
  background:
    radial-gradient(ellipse at 84% 16%, rgba(58, 157, 145, .18), transparent 38%),
    linear-gradient(118deg, #172e38 0%, #203f48 64%, #28534f 100%);
}

.article-header.observatory-report-page::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .13;
  background-image: radial-gradient(rgba(223, 238, 228, .7) .65px, transparent .65px);
  background-size: 13px 13px;
  mask-image: linear-gradient(105deg, transparent 30%, #000 100%);
}

.article-header.observatory-report-page .container { position: relative; z-index: 1; }
.article-header.observatory-report-page .date {
  color: #b5d5cb;
  font: 500 .76rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.article-header.observatory-report-page h1 {
  max-width: 880px;
  margin: 0;
  color: #f6f4e9;
  font: 800 clamp(2.15rem, 5vw, 4.35rem)/1.03 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -.055em;
}

.observatory-report-page .article-provenance {
  color: #d0ded8;
  border-color: rgba(217, 235, 226, .28);
  background: rgba(12, 35, 39, .2);
}
.observatory-report-page .article-provenance a { color: #b8e3d4; }

.article-section.observatory-report-page {
  padding: clamp(26px, 5vw, 56px) 0 76px;
  background: linear-gradient(180deg, #edf2ed 0, var(--obs-paper) 240px, var(--obs-paper) 100%);
}

.observatory-report-page .article-layout--observatory {
  max-width: 1060px;
  margin-inline: auto;
}

.observatory-report-page .observatory-report-content {
  padding: clamp(22px, 5vw, 58px);
  overflow: visible;
  border: 1px solid rgba(133, 159, 149, .24);
  border-radius: 4px;
  background: var(--obs-surface);
  box-shadow: 0 20px 55px rgba(34, 67, 61, .08);
  color: var(--obs-ink);
  font: 400 clamp(.97rem, 1.3vw, 1.045rem)/1.78 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -.008em;
}

.observatory-report-content > p:first-child {
  max-width: 68ch;
  margin: 0 0 22px;
  color: var(--obs-muted);
  font-size: .88rem;
  line-height: 1.6;
}
.observatory-report-content > p:nth-of-type(2) {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--obs-ink);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.035em;
}
.observatory-report-page .observatory-report-content p { max-width: 78ch; margin: 0 0 1.2em; }
.observatory-report-page .observatory-report-content strong { color: #173a3d; font-weight: 800; }
.observatory-report-page .observatory-report-content a {
  color: #08766f;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.observatory-report-content a:hover { color: #a84f42; }
.observatory-report-content :focus-visible {
  outline: 3px solid #bf6754;
  outline-offset: 4px;
  border-radius: 3px;
}
.observatory-report-page .observatory-report-content h2 {
  margin: 2.6em 0 .72em;
  padding-top: .8em;
  border-top: 1px solid var(--obs-line);
  color: #17343d;
  font: 800 clamp(1.45rem, 2.8vw, 2rem)/1.2 "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -.045em;
  scroll-margin-top: 24px;
}
.observatory-report-content h2:first-of-type { margin-top: 2em; }
.observatory-report-content > a[id] { scroll-margin-top: 100px; }
.observatory-report-content ul,
.observatory-report-content ol { margin: 1rem 0 1.5rem; padding-left: 1.4rem; }
.observatory-report-content li { margin-bottom: .45rem; }

.observatory-report-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .45rem 1.1rem;
  margin: 28px 0 26px;
  padding: 14px 0;
  border-top: 1px solid rgba(108, 140, 129, .3);
  border-bottom: 1px solid rgba(108, 140, 129, .3);
  font-size: .78rem;
}
.observatory-report-nav-label {
  margin-right: .3rem;
  color: #687d7b;
  font: 500 .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.observatory-report-nav a { color: #255850; font-weight: 700; text-decoration: none; }
.observatory-report-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.observatory-metric-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  margin: 30px 0 20px;
  border: 1px solid var(--obs-line);
  background: #f0f5f0;
}
.observatory-metric {
  min-width: 0;
  padding: 19px 22px 17px;
  border-right: 1px solid var(--obs-line);
}
.observatory-metric:last-child { border-right: 0; }
.observatory-metric-label,
.observatory-metric-note { display: block; color: var(--obs-muted); font-size: .74rem; line-height: 1.45; }
.observatory-metric-label { margin-bottom: .5rem; font-weight: 700; }
.observatory-report-content .observatory-metric strong {
  display: block;
  margin-bottom: .35rem;
  color: #126e69;
  font: 800 clamp(1.35rem, 2.7vw, 2.1rem)/1.15 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.observatory-report-content .observatory-metric--finding strong { color: #a85749; font-size: clamp(1.1rem, 2vw, 1.55rem); }

.observatory-reading-note {
  margin: 0 0 36px;
  padding: 17px 20px 15px;
  border-left: 3px solid var(--obs-coral);
  background: var(--obs-coral-soft);
  color: #543f3b;
  font-size: .9rem;
  line-height: 1.65;
}
.observatory-report-content .observatory-reading-note strong { display: block; margin-bottom: .25rem; color: #613f37; }
.observatory-reading-note p { margin: 0; }

.observatory-chart {
  min-width: 0;
  margin: 24px 0 28px;
  padding: clamp(12px, 2.3vw, 22px);
  overflow: hidden;
  border: 1px solid var(--obs-line);
  background: var(--obs-chart-bg);
}
.observatory-chart-canvas { width: 100%; height: 400px; min-width: 0; }
.observatory-chart[data-observatory-chart="tools"] .observatory-chart-canvas { min-height: 560px; }
.observatory-report-content figure { margin-inline: 0; }
.observatory-report-content figcaption { margin-top: 10px; color: var(--obs-muted); font-size: .8rem; line-height: 1.55; }

.observatory-table-wrap {
  max-width: 100%;
  margin: 22px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--obs-line);
  background: #fffefa;
  -webkit-overflow-scrolling: touch;
}
.observatory-table-wrap table {
  width: 100%;
  min-width: 540px;
  margin: 0;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.5;
}
.observatory-table-wrap th,
.observatory-table-wrap td { padding: 11px 15px; border-bottom: 1px solid #e4eae4; text-align: left; }
.observatory-table-wrap thead th {
  background: #eaf2ed;
  color: #25464a;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.observatory-table-wrap tbody tr:last-child td { border-bottom: 0; }
.observatory-table-wrap tbody tr:nth-child(even) { background: #f7f8f3; }
.observatory-table-wrap th:not(:first-child),
.observatory-table-wrap td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.observatory-table-wrap td:first-child { font-weight: 600; }
.observatory-report-content > p:last-child { margin-bottom: 0; }

html[data-theme="dark"] .observatory-report-page,
body.dark .observatory-report-page,
html.dark .observatory-report-page {
  --obs-ink: #e4ece5;
  --obs-muted: #b1c4bd;
  --obs-paper: #172a2d;
  --obs-surface: #203437;
  --obs-line: #3b5553;
  --obs-teal: #71c4b3;
  --obs-coral: #e09a83;
  --obs-coral-soft: #493836;
  --obs-chart-bg: #192e31;
}
html[data-theme="dark"] .article-section.observatory-report-page,
body.dark .article-section.observatory-report-page,
html.dark .article-section.observatory-report-page {
  background: linear-gradient(180deg, #182d30 0, var(--obs-paper) 240px);
}
html[data-theme="dark"] .observatory-report-content,
body.dark .observatory-report-content,
html.dark .observatory-report-content { border-color: #3b5553; background: var(--obs-surface); }
html[data-theme="dark"] .observatory-report-content h2,
body.dark .observatory-report-content h2,
html.dark .observatory-report-content h2,
html[data-theme="dark"] .observatory-report-content strong,
body.dark .observatory-report-content strong,
html.dark .observatory-report-content strong { color: #e4eee6; }
html[data-theme="dark"] .observatory-report-content a,
body.dark .observatory-report-content a,
html.dark .observatory-report-content a { color: #83d1bd; }
html[data-theme="dark"] .observatory-report-nav,
body.dark .observatory-report-nav,
html.dark .observatory-report-nav { border-color: #3c5a57; }
html[data-theme="dark"] .observatory-report-nav a,
body.dark .observatory-report-nav a,
html.dark .observatory-report-nav a { color: #b1e0d2; }
html[data-theme="dark"] .observatory-metric-strip,
body.dark .observatory-metric-strip,
html.dark .observatory-metric-strip { border-color: var(--obs-line); background: #263e3e; }
html[data-theme="dark"] .observatory-metric strong,
body.dark .observatory-metric strong,
html.dark .observatory-metric strong { color: #84d4c0; }
html[data-theme="dark"] .observatory-metric--finding strong,
body.dark .observatory-metric--finding strong,
html.dark .observatory-metric--finding strong { color: #e5a18b; }
html[data-theme="dark"] .observatory-reading-note,
body.dark .observatory-reading-note,
html.dark .observatory-reading-note { color: #ead7ce; background: #453634; }
html[data-theme="dark"] .observatory-reading-note strong,
body.dark .observatory-reading-note strong,
html.dark .observatory-reading-note strong { color: #f1c1ad; }
html[data-theme="dark"] .observatory-table-wrap,
body.dark .observatory-table-wrap,
html.dark .observatory-table-wrap { border-color: var(--obs-line); background: #203437; }
html[data-theme="dark"] .observatory-table-wrap thead th,
body.dark .observatory-table-wrap thead th,
html.dark .observatory-table-wrap thead th { color: #d8e9df; background: #294342; }
html[data-theme="dark"] .observatory-table-wrap th,
html[data-theme="dark"] .observatory-table-wrap td,
body.dark .observatory-table-wrap th,
body.dark .observatory-table-wrap td,
html.dark .observatory-table-wrap th,
html.dark .observatory-table-wrap td { border-color: #3a5250; }
html[data-theme="dark"] .observatory-table-wrap tbody tr:nth-child(even),
body.dark .observatory-table-wrap tbody tr:nth-child(even),
html.dark .observatory-table-wrap tbody tr:nth-child(even) { background: #263c3e; }

@media (max-width: 680px) {
  .observatory-report-page .observatory-report-content { padding: 22px 18px 30px; }
  .observatory-metric-strip { grid-template-columns: 1fr 1fr; }
  .observatory-metric { padding: 15px 14px; }
  .observatory-metric:nth-child(2) { border-right: 0; }
  .observatory-metric:last-child { grid-column: 1 / -1; border-top: 1px solid var(--obs-line); }
  .observatory-report-nav { gap: .55rem .9rem; }
  .observatory-report-nav-label { flex-basis: 100%; }
  .observatory-chart { margin-inline: -4px; padding: 10px; }
  .observatory-chart-canvas { height: 360px; }
  .observatory-chart[data-observatory-chart="tools"] .observatory-chart-canvas { min-height: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .observatory-report-page *,
  .observatory-report-page *::before,
  .observatory-report-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
