:root {
  color-scheme: light;
  --bg: oklch(0.965 0.006 95);
  --surface: oklch(0.99 0.002 95);
  --surface-soft: oklch(0.975 0.004 95);
  --ink: oklch(0.22 0.016 248);
  --ink-soft: oklch(0.45 0.014 248);
  --line: oklch(0.84 0.008 95);
  --line-strong: oklch(0.44 0.05 248);
  --accent: oklch(0.37 0.055 248);
  --accent-soft: oklch(0.955 0.01 248);
  --serif:
    "Charter", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    Georgia, serif;
  --sans:
    "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:
    "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, oklch(0.975 0.005 95) 0, var(--bg) 220px),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

.page-shell {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 24px 0 72px;
}

.sidebar {
  align-self: start;
}

.sidebar-panel {
  position: sticky;
  top: 24px;
  padding-top: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.eyebrow {
  margin: 0;
  font: 600 0.72rem/1.2 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sidebar-title {
  margin: 10px 0 8px;
  font: 600 1.04rem/1.15 var(--sans);
  letter-spacing: -0.02em;
}

.sidebar-summary {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font: 0.92rem/1.55 var(--sans);
}

.sidebar-nav,
.sidebar-reading,
.sidebar-print,
.sidebar-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.sidebar-reading,
.sidebar-print,
.sidebar-actions {
  margin-top: 22px;
}

.sidebar-nav ol,
.sidebar-reading ul,
.sidebar-print ul {
  margin: 0;
  padding-left: 1.15rem;
}

.sidebar-nav li + li,
.sidebar-reading li + li,
.sidebar-print li + li {
  margin-top: 0.6rem;
}

.sidebar-nav a {
  color: var(--ink);
  text-decoration: none;
  font: 0.94rem/1.45 var(--sans);
}

.sidebar-nav a:hover {
  color: var(--accent);
}

.sidebar-reading li {
  color: var(--ink-soft);
  font: 0.89rem/1.5 var(--sans);
}

.sidebar-print li {
  color: var(--ink-soft);
  font: 0.86rem/1.5 var(--sans);
}

.print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.92rem/1 var(--sans);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.print-button:hover {
  background: var(--ink);
  color: var(--surface);
}

.report-frame {
  min-width: 0;
  max-width: 1020px;
}

.report-header {
  padding: 28px 0 18px;
  border-top: 5px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.78fr);
  gap: 40px;
  align-items: start;
  margin-top: 18px;
}

.header-main h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--sans);
  font-size: clamp(2.75rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.header-main::after {
  content: "";
  display: block;
  width: min(180px, 32%);
  margin-top: 24px;
  border-top: 2px solid var(--line);
}

.header-side {
  display: grid;
  gap: 20px;
}

.summary-panel {
  padding: 14px 0 0 14px;
  border-top: 2px solid var(--line-strong);
  border-left: 2px solid var(--line);
}

.summary-label {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font: 600 0.76rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-text {
  margin: 0;
  color: var(--ink);
  font: 0.98rem/1.68 var(--serif);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.meta-label {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font: 600 0.7rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  color: var(--ink);
  font: 0.95rem/1.45 var(--sans);
}

.print-only {
  display: none;
}

.print-contents {
  margin: 16px 0 8px;
  padding: 14px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.print-contents ol {
  column-count: 2;
  column-gap: 28px;
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.print-contents li + li {
  margin-top: 0.45rem;
}

.report-body {
  padding-top: 18px;
}

.report-body > * {
  max-width: 69ch;
}

.report-body > .table-wrap,
.report-body > blockquote,
.report-body > hr,
.report-body > pre {
  max-width: none;
}

.report-body p {
  margin: 0 0 1.1rem;
  font: 1.03rem/1.75 var(--serif);
  orphans: 3;
  widows: 3;
}

.report-body > h2:first-child + p {
  max-width: 62ch;
  color: var(--ink);
  font: 1.18rem/1.62 var(--serif);
}

.report-body ul,
.report-body ol {
  margin: 0 0 1.2rem 1.25rem;
  padding: 0;
}

.report-body li + li {
  margin-top: 0.42rem;
}

.report-body h2,
.report-body h3,
.report-body h4 {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.022em;
  line-height: 1.12;
  text-wrap: balance;
}

.report-body h2 {
  max-width: none;
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  font-size: clamp(1.52rem, 2vw, 1.82rem);
}

.report-body h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.12rem;
}

.report-body h4 {
  margin: 1.45rem 0 0.55rem;
  font-size: 0.98rem;
}

.report-body strong {
  color: var(--ink);
}

.report-body blockquote {
  margin: 1.5rem 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line-strong);
  background: var(--accent-soft);
}

.report-body blockquote p:last-child {
  margin-bottom: 0;
}

.report-body h2 + blockquote {
  margin-top: 0.85rem;
  background: transparent;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left-width: 2px;
  padding: 12px 16px;
}

.report-body h2 + blockquote p {
  font: 0.96rem/1.6 var(--sans);
  color: var(--ink);
}

.report-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.report-body code,
.report-body pre {
  font-family: var(--mono);
  font-size: 0.92em;
}

.report-body pre {
  overflow-x: auto;
  margin: 1.4rem 0;
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0 1.65rem;
}

.report-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--surface);
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.report-body thead th {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: bottom;
  color: var(--ink-soft);
  font: 600 0.77rem/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

.report-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.report-body tbody tr:nth-child(odd) td {
  background: oklch(0.983 0.003 95);
}

.report-body tbody tr:last-child td {
  border-bottom: 0;
}

.report-body tbody tr:hover td {
  background: oklch(0.965 0.008 248);
}

.report-body p > a[href^="http"],
.report-body li > a[href^="http"] {
  overflow-wrap: anywhere;
}

.report-body a[id] {
  display: block;
  position: relative;
  top: -24px;
  visibility: hidden;
}

@media (max-width: 1080px) {
  .page-shell {
    width: min(calc(100vw - 28px), 1040px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }

  .sidebar-panel {
    position: static;
    padding-top: 0;
    padding-left: 0;
    border-left: 0;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100vw - 22px);
  }

  .header-main h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .header-main::after {
    width: 120px;
  }

  .summary-text,
  .report-body p,
  .report-body li {
    font-size: 1rem;
  }

  .print-contents ol {
    column-count: 1;
  }
}

@media print {
  @page {
    size: A4;
    margin: 15mm 15mm 17mm;
  }

  body {
    background: white;
    color: black;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .screen-only {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .page-shell {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
  }

  .report-frame {
    max-width: none;
  }

  .report-header {
    padding: 0 0 6mm;
    border-top: 1.2mm solid #6f7b8c;
    border-bottom: 1px solid #d7d7d7;
  }

  .header-grid {
    grid-template-columns: 1fr;
    gap: 7mm;
    margin-top: 5mm;
  }

  .header-main h1 {
    max-width: none;
    font-size: 22pt;
  }

  .summary-panel {
    padding: 3.5mm 0 0 3mm;
    background: transparent;
    border-top: 1px solid #999;
    border-left: 1px solid #d0d0d0;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .meta-card {
    padding: 3mm 3.5mm;
    border: 1px solid #ddd;
    background: white;
  }

  .print-contents {
    margin: 4mm 0 3mm;
    padding: 3mm 0;
  }

  .print-contents ol {
    column-count: 1;
    margin-top: 3mm;
  }

  .report-body {
    padding-top: 3mm;
  }

  .report-body h2 {
    margin-top: 8mm;
    padding-top: 2.5mm;
    font-size: 15pt;
    break-before: page;
  }

  .report-body h2:first-of-type {
    break-before: auto;
  }

  .report-body h3 {
    font-size: 11pt;
  }

  .report-body h4 {
    font-size: 10pt;
  }

  .report-body p,
  .report-body li,
  .report-body td,
  .report-body th {
    font-size: 10pt;
  }

  .report-body blockquote,
  .report-body pre {
    background: transparent;
    border: 1px solid #d7d7d7;
  }

  .report-body blockquote {
    border-left: 1.5mm solid #aeb7c6;
    padding: 3mm 4mm;
  }

  .report-body h2 + blockquote {
    border-top: 1px solid #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    border-left: 1mm solid #aeb7c6;
    padding: 2.5mm 3.5mm;
    background: transparent;
  }

  .report-body tbody tr:hover td {
    background: transparent;
  }

  .report-body h2,
  .report-body h3,
  .report-body h4,
  .report-body blockquote,
  .report-body pre,
  .report-body table,
  .report-body img {
    break-inside: avoid;
  }

  .table-wrap {
    overflow: visible;
  }

  .report-body thead {
    display: table-header-group;
  }

  .report-body a {
    color: black;
    text-decoration-color: #666;
  }
}
