@font-face {
  font-family: Manrope;
  src: url("fonts/Manrope%5Bwght%5D.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("fonts/Montserrat%5Bwght%5D.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --bg: #f1f7f5;
  --paper: #fffdf8;
  --panel: #edf5f8;
  --ink: #172720;
  --muted: #43594d;
  --line: #bccec3;
  --link: #8b300f;
  --green: #10b742;
  --focus: #1a7043;
  --shadow: #1d392d;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0e1716;
  --paper: #17241f;
  --panel: #0e1716;
  --ink: #f0f8f2;
  --muted: #bdcec3;
  --line: #3d5148;
  --link: #ffb296;
  --green: #10b742;
  --focus: #8fe39c;
  --shadow: #000b06;
}
html { scroll-padding-top: 112px; }
body { margin: 0; font: 500 16px/1.58 Manrope,system-ui,sans-serif; background: var(--bg); color: var(--ink); }
h1,h2,h3,summary { font-family: Montserrat,system-ui,sans-serif; font-weight: 850; line-height: 1.16; }
h1 { margin: .35rem 0 1rem; max-width: 16ch; letter-spacing: -.045em; font-size: clamp(2.15rem, 5vw, 5.1rem); }
h2 { font-size: clamp(1.25rem, 3vw, 2.18rem); letter-spacing: -.035em; margin: .8rem 0 .55rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.45rem); margin: 0 0 .7rem; }
p { margin: .35rem 0 .85rem; }
a { color: var(--link); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; z-index: 4; background: var(--paper); padding: .65rem; top: 12px; left: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.bar { background: var(--green); border-bottom: 2px solid #130d0c; color: #130d0c; }
.bar-inner { width: min(100% - 44px,1370px); margin: auto; min-height: 80px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.identity { display: inline-flex; align-items: center; padding: 5px 0; }
.identity img { display: block; width: min(218px, 50vw); height: auto; }
.screen-controls,.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.screen-controls a,.theme-switch button { color: #130d0c; min-height: 38px; padding: 6px 12px; display: inline-flex; align-items: center; border: 1px solid #130d0c; border-radius: 6px; background: transparent; font-weight: 800; text-decoration: none; }
.screen-controls a:hover,.theme-switch button:hover,.theme-switch button[aria-pressed="true"] { background: #130d0c; color: #f6faf4; }
.theme-switch { display: flex; }
.theme-switch button:first-child { border-radius: 6px 0 0 6px; }
.theme-switch button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
main { width: min(100% - 44px,1370px); margin: auto; }
.hero { display: grid; grid-template-columns: minmax(0,4.6fr) minmax(0,7.4fr); align-items: center; gap: clamp(20px,4vw,58px); padding-block: clamp(28px,5vw,76px) clamp(28px,5vw,60px); }
.intro { min-width: 0; }
.edition { display: inline-block; font-size: .8rem; border-top: 2px solid var(--green); color: var(--muted); padding-top: .52rem; font-weight: 800; }
.lead { color: var(--muted); max-width: 43ch; margin-bottom: 1.4rem; }
.primary,.chip { padding: .65rem .92rem; display: inline-flex; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.primary { background: #10b742; color: #130d0c; border: 1px solid #130d0c; box-shadow: 3px 3px 0 var(--shadow); }
.chip { color: var(--ink); }
.chip:hover,.primary:hover { text-decoration: underline; }
.toc { margin-bottom: 28px; padding: 16px clamp(15px,2.2vw,32px); border-block: 1px solid var(--line); }
.toc summary { cursor: pointer; padding-block: 8px; font-size: 1.16rem; }
.toc small { margin-inline-start: .6rem; color: var(--muted); font: 700 .78em Manrope,sans-serif; }
.toc nav { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr)); gap: 2px 17px; padding-top: 8px; }
.toc nav a { display: flex; align-items: baseline; gap: 10px; padding: 7px 2px; min-width: 0; color: var(--ink); text-decoration: none; }
.toc nav a:hover { color: var(--link); text-decoration: underline; }
.toc nav span { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 800; }
.sheets { display: grid; gap: 22px; margin-bottom: 36px; }
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px,2.7vw,36px); min-width: 0; }
.sheet:target { border-color: var(--focus); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font: 750 .76rem Manrope,sans-serif; }
.sheet-top span { display: none; }
.sheet h2 a { font-variant-numeric: tabular-nums; color: var(--link); text-decoration: none; margin-inline-end: .3ch; }
.sheet > p:first-of-type { max-width: 87ch; color: var(--muted); margin-bottom: 1.05rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.34fr) minmax(0,1fr); gap: clamp(10px,1.8vw,24px); align-items: start; }
.model { margin: 0; min-width: 0; }
.model .zoom { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: zoom-in; }
.model img { width: 100%; height: auto; display: block; }
.model figcaption { color: var(--muted); font-size: .86rem; margin: .45rem 0 0; overflow-wrap: anywhere; }
.model img.print-frame { display: none; }
.single .model { max-width: 1160px; margin-inline: auto; }
.single figcaption { display: none; }
.single .model img { max-height: 660px; object-fit: contain; }
.detail-grid .model img { aspect-ratio: 1.9; object-fit: contain; }
.source { margin: .8rem 0 .15rem; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.note { color: var(--ink); border-left: 3px solid var(--green); padding-left: .75rem; margin: .85rem 0 .4rem; }
.graph { max-width: 1020px; }
.graph .screen-frame { aspect-ratio: 1560/760; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.metrics > div { padding: .62rem .85rem; border-top: 2px solid var(--green); background: var(--bg); }
.metrics strong { display: block; font: 850 clamp(1.35rem,3vw,2.3rem) Montserrat,sans-serif; }
.metrics span { display: block; margin-top: .3rem; color: var(--muted); }
table { margin: 1rem 0 .55rem; border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
th,td { padding: .46rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:first-child { width: 60%; }
td { white-space: nowrap; color: var(--ink); font-weight: 750; }
thead th { color: var(--muted); }
footer { width: min(100% - 44px,1370px); margin: auto; border-top: 1px solid var(--line); padding-block: 20px 34px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
dialog { width: min(1600px,95vw); max-height: 93vh; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #0e1614de; }
dialog img { display: block; margin: auto; max-width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.dialog-actions button { border: 1px solid var(--line); border-radius: 5px; background: var(--bg); padding: 5px 12px; }
@media (max-width: 820px) {
  html { scroll-padding-top: 18px; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  h1 { max-width: 21ch; }
}
@media (max-width: 600px) {
  .bar-inner,main,footer { width: calc(100% - 24px); }
  .bar-inner { gap: 4px; padding-bottom: 10px; }
  .screen-controls { gap: 6px; }
  .detail-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; gap: 7px; }
  th,td { padding: .4rem .28rem; }
  table { font-size: .83rem; }
}
@media print {
  @page { size: A4 landscape; margin: 11mm 13mm; }
  :root,:root[data-theme="night"] { color-scheme: light; --bg:#fff; --paper:#fff; --ink:#18251d; --muted:#46554d; --line:#adbbb1; --link:#842904; }
  body { font-size: 10.7pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .bar,.skip,.hero,.toc,footer,dialog { display:none !important; }
  main { width: 100%; }
  .sheets { display:block; margin:0; }
  .sheet { break-after:page; break-inside: avoid; padding: 0; border: 0; border-radius: 0; }
  .sheet:last-child { break-after:auto; }
  .sheet-top { padding: 0 0 2mm; border-bottom: 1px solid var(--line); }
  .sheet-top span { display: inline; }
  .sheet-top img { width: 29mm; height: auto; display: block; }
  .sheet h2 { font-size: 20pt; margin-top:3mm; }
  .sheet h3 { font-size:12pt; margin-bottom:2mm; }
  .sheet > p:first-of-type { margin-bottom:3mm; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5mm; }
  .model .zoom { border-radius: 3px; box-shadow: none; }
  .model img.screen-frame { display:none; }
  .model img.print-frame { display:block; width:100%; height:auto; max-height:75mm; object-fit:contain; }
  .single .model img.print-frame { max-height:108mm; }
  .detail-grid .model img.print-frame { max-height:87mm; }
  .detail-grid .model figcaption { margin-top:2mm; }
  .model figcaption { font-size: 8pt; margin-top:1mm; }
  table { margin-top:2mm; font-size:9pt; }
  th,td { padding:1mm 2mm; }
  .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:3mm; }
  .metrics strong { font-size:18pt; }
  .graph { max-width:95%; }
  .graph .model img.print-frame { max-height:80mm; }
  .note,.source { font-size:9pt; margin:.7mm 0; }
}
@media print {
  #sheet-21 .graph img.print-frame { max-height: 58mm; }
  #sheet-21 th,#sheet-21 td { padding-block: .75mm; }
  #sheet-24 > .detail-grid img.print-frame { max-height: 79mm; }
  #sheet-18 > .detail-grid img.print-frame { max-height: 89mm; }
}
@media print {
  :root,:root[data-theme="night"] { --panel:#edf5f8; }
  .sheet:focus { outline: none; }
  #sheet-21 { display:grid; grid-template-columns:minmax(0,1.28fr) minmax(0,1fr); column-gap:5mm; align-content:start; }
  #sheet-21 .sheet-top,#sheet-21 h2,#sheet-21 > p { grid-column: 1/-1; }
  #sheet-21 .graph { grid-column:1; align-self:start; max-width:100%; }
  #sheet-21 .graph img.print-frame { max-height:75mm; }
  #sheet-21 table { grid-column:2; margin-top:0; }
}

#sheet-04 .detail-grid .model img { aspect-ratio: 1.57; }
