@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --ink: #222321;
  --muted: #676963;
  --line: #d8d8ce;
  --accent: #a82d43;
  --soft: #eeece5;
  --gutter: clamp(20px, 4vw, 72px);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #ead2d5; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; transform: translateY(-180%); padding: 10px 18px; color: var(--paper); background: var(--ink); }
.skip-link:focus { transform: none; }
.reading-progress { position: fixed; z-index: 40; top: 0; left: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--accent); pointer-events: none; }
.report-header { height: 82px; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 600 16px/1 "Space Grotesk", sans-serif; letter-spacing: .09em; text-decoration: none; }
.brand img { width: 24px; height: 24px; object-fit: contain; }
.header-label { font: 400 12px/1 "Space Grotesk", sans-serif; letter-spacing: .04em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 26px; }
.print-button { margin-left: auto; border: 1px solid var(--line); border-radius: 24px; padding: 7px 16px; font-size: 12px; color: var(--ink); background: transparent; cursor: pointer; }
.print-button span { margin-left: 10px; color: var(--accent); }
.print-button:hover { border-color: var(--ink); }
.page-shell { max-width: 1550px; margin-inline: auto; padding-inline: var(--gutter); }
.report-cover { max-width: 1080px; padding: 76px 0 52px; }
.cover-label { display: flex; gap: 10px; align-items: center; color: var(--accent); font: 500 11px/1.5 "Space Grotesk", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.label-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
h1 { max-width: 24ch; margin: 24px 0; font-size: clamp(38px, 4.7vw, 70px); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.cover-description { max-width: 780px; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--muted); }
.report-meta { display: flex; flex-wrap: wrap; gap: 22px 54px; margin: 36px 0 0; }
.report-meta div { display: grid; gap: 5px; }
.report-meta dt { font-size: 11px; color: var(--muted); }
.report-meta dd { margin: 0; font-size: 13px; line-height: 1.4; font-weight: 550; }
.report-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 40px; }
.report-sidebar { min-width: 0; }
.desktop-toc { position: sticky; top: 30px; max-height: calc(100vh - 60px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 12px 12px 0; }
.sidebar-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 19px; color: var(--muted); }
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 9px; padding: 8px 0; font-size: 12px; line-height: 1.55; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; }
.toc-list a[aria-current] { color: var(--accent); }
.toc-list a:hover { color: var(--ink); }
.toc-number { color: #898a81; font: 400 10px/1.85 "Space Grotesk", sans-serif; }
.toc-list a[aria-current] .toc-number { color: var(--accent); }
.sidebar-top { display: inline-block; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 11px; text-decoration: none; width: 100%; }
.sidebar-top span { float: right; }
.mobile-toc { display: none; }
.report-main { min-width: 0; max-width: 970px; }
.report-main:focus { outline: none; }
.editorial-note { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 22px 24px; margin-bottom: 40px; background: var(--soft); border-left: 2px solid var(--accent); font-size: 13px; line-height: 1.7; }
.note-label { color: var(--accent); font-weight: 600; }
.editorial-note p { margin: 0; color: #50524d; }
.report-body { overflow-wrap: break-word; }
.report-body > p, .report-body > ul, .report-body > ol { max-width: 76ch; }
.report-body p { margin: 0 0 22px; }
.report-body h2 { font-size: clamp(27px, 2.5vw, 35px); font-weight: 650; line-height: 1.25; letter-spacing: -.035em; margin: 72px 0 25px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 32px; }
.report-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.report-body h3 { font-size: 23px; font-weight: 620; line-height: 1.35; letter-spacing: -.02em; margin: 38px 0 18px; scroll-margin-top: 32px; }
.report-body h4 { margin: 32px 0 12px; font-size: 18px; line-height: 1.4; }
.report-body a { color: var(--accent); text-decoration-color: #caa4aa; overflow-wrap: anywhere; }
.report-body a:hover { text-decoration-color: var(--accent); }
.report-body ul, .report-body ol { padding-left: 24px; margin: 0 0 25px; }
.report-body li { margin-block: 8px; padding-left: 5px; }
.report-body li > p { margin-bottom: 10px; }
.report-body li::marker { color: var(--accent); }
.report-body li ul, .report-body li ol { margin-top: 12px; }
.report-body blockquote { margin: 28px 0; padding: 0 0 0 22px; border-left: 2px solid var(--accent); color: #55564f; }
.report-body hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.report-body strong { font-weight: 650; }
.report-body code { font: .84em/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eae8e1; padding: .13em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.report-body pre { padding: 22px; max-width: 100%; margin: 25px 0; overflow: auto; background: #eae8e1; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.75; }
.report-body pre code { padding: 0; background: transparent; font-size: inherit; overflow-wrap: normal; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 28px 0 32px; border: 1px solid var(--line); border-radius: 4px; scrollbar-width: thin; }
table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 13px; line-height: 1.65; text-align: left; }
th { background: #eae8e0; font-weight: 650; color: #393b36; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th + th, td + td { border-left: 1px solid #dfdfd6; }
tbody tr:nth-child(even) { background: #f0eee8; }
tbody tr:last-child td { border-bottom: 0; }
td { min-width: 130px; }
.report-end { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 30px 0 48px; margin-top: 64px; color: var(--muted); font-size: 11px; }
.report-end p { margin: 0; }
.report-end p span { margin-inline: 7px; color: var(--accent); }
.report-end a { text-decoration: none; }
.report-end a span { margin-left: 12px; }

@media (min-width: 1500px) {
  .report-layout { grid-template-columns: 270px minmax(0, 1fr); }
}

@media (max-width: 1050px) {
  .report-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .editorial-note { grid-template-columns: 1fr; gap: 7px; }
  body { font-size: 16px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 26px; }
  .report-header { height: 72px; gap: 18px; }
  .header-label { padding-left: 17px; font-size: 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand img { width: 22px; height: 22px; }
  .print-button { padding: 7px 12px; font-size: 11px; }
  .report-cover { padding: 52px 0 36px; }
  h1 { max-width: 22ch; font-size: clamp(36px, 6.5vw, 54px); }
  .report-meta { gap: 18px 30px; }
  .report-layout { display: block; padding-top: 0; }
  .desktop-toc { display: none; }
  .mobile-toc { display: block; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .mobile-toc summary { display: flex; list-style: none; gap: 20px; align-items: center; justify-content: space-between; padding: 19px 0; cursor: pointer; font-weight: 600; font-size: 14px; }
  .mobile-toc summary::-webkit-details-marker { display: none; }
  .mobile-toc summary span { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
  .mobile-toc summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; line-height: 1; }
  .mobile-toc[open] summary::after { content: "−"; }
  .mobile-toc nav { padding: 0 0 18px; }
  .mobile-toc .toc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .editorial-note { padding: 18px 20px; margin-bottom: 32px; }
  .report-body h2 { margin-top: 52px; padding-top: 24px; }
}

@media (max-width: 480px) {
  .header-label { display: none; }
  .report-cover { padding-top: 38px; }
  .cover-label { font-size: 9px; letter-spacing: .06em; }
  h1 { font-size: 36px; line-height: 1.13; margin-top: 21px; }
  .cover-description { font-size: 17px; }
  .report-meta { gap: 16px 25px; margin-top: 28px; }
  .report-meta div:first-child { flex-basis: 100%; }
  .mobile-toc .toc-list { grid-template-columns: 1fr; }
  .report-body h2 { font-size: 27px; }
  .report-body h3 { font-size: 21px; }
  .report-body pre { padding: 16px; font-size: 12px; }
  .report-end { align-items: flex-start; flex-direction: column; margin-top: 44px; }
}

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

@media print {
  @page { margin: 18mm 15mm; }
  :root { --paper: #fff; --ink: #111; --muted: #555; --line: #ccc; --soft: #f5f5f5; }
  body { font-size: 10pt; line-height: 1.55; }
  .report-header, .report-sidebar, .reading-progress, .skip-link, .report-end a { display: none !important; }
  .page-shell { max-width: none; padding: 0; }
  .report-cover { padding: 0 0 20px; }
  .cover-label { font-size: 8pt; }
  h1 { font-size: 30pt; max-width: 100%; }
  .cover-description { font-size: 12pt; }
  .report-meta { margin-top: 20px; gap: 30px; }
  .report-meta dt { font-size: 8pt; }
  .report-meta dd { font-size: 9pt; }
  .report-layout { display: block; padding-top: 20px; }
  .report-main { max-width: none; }
  .editorial-note { font-size: 9pt; padding: 12px; margin-bottom: 24px; }
  .report-body h2 { font-size: 19pt; margin-top: 30px; padding-top: 16px; }
  .report-body h3 { font-size: 13pt; margin-top: 24px; }
  .report-body h2, .report-body h3, .report-body h4 { break-after: avoid; }
  .report-body p, .report-body li { orphans: 3; widows: 3; }
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  table { min-width: 0; font-size: 8pt; table-layout: fixed; }
  th, td { padding: 7px; min-width: 0; overflow-wrap: anywhere; }
  tr, blockquote { break-inside: avoid; }
  thead { display: table-header-group; }
  .report-body a { color: inherit; }
  .report-body pre { font-size: 8pt; white-space: pre-wrap; overflow-wrap: anywhere; }
  .report-end { padding-bottom: 0; }
}
