.reference-sheets-page{max-width:1240px}.ref-page-header{margin-bottom:2rem}.ref-page-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:1.2rem 0}.ref-sheet-nav{display:grid;gap:.55rem;margin:1.4rem 0}.ref-print-hint{font-size:.85rem;color:var(--muted)}.ref-sheet-stack{display:grid;gap:2.25rem}.ref-sheet{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:clamp(1rem,3vw,2.2rem);min-width:0;scroll-margin-top:1rem;overflow-wrap:anywhere}.ref-kicker{font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 .55rem}.ref-sheet-heading h2{font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.2;margin:0 0 .6rem}.ref-sheet-heading>p:last-child{margin:0;color:var(--muted);line-height:1.5}.ref-definitions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding:1rem 0;margin:.7rem 0;border-block:1px solid var(--line)}.ref-definitions dt{font-size:.85rem;font-weight:700;margin-bottom:.3rem}.ref-definitions dd{margin:0;font-size:.8rem;line-height:1.45}.ref-table-wrap{overflow-x:auto;margin:1rem 0;max-width:100%;border-radius:3px}.ref-table-wrap:focus-visible,.ref-sheet:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.ref-sheet table{width:100%;border-collapse:collapse;font-size:.8rem;line-height:1.45;table-layout:fixed}.ref-sheet caption{text-align:left;font-weight:700;font-size:.82rem;padding:0 0 .5rem}.ref-sheet th,.ref-sheet td{padding:.6rem .65rem;border:1px solid var(--line);vertical-align:top;text-align:left;overflow-wrap:anywhere}.ref-sheet thead th{background:var(--paper);font-size:.75rem}.ref-sheet th:first-child{width:20%}.ref-sheet th:nth-child(2){width:30%}.ref-diagram{margin:1rem 0}.ref-diagram figcaption{font-weight:700;font-size:.82rem;margin-bottom:.55rem}.ref-diagram ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;list-style:none;margin:0;padding:0}.ref-diagram li{position:relative;border:1px solid var(--line);border-top:3px solid var(--accent);padding:.7rem .6rem;line-height:1.35;background:var(--paper)}.ref-diagram li:not(:last-child)::after{content:'→';position:absolute;right:-.85rem;top:35%;font-size:.9rem;font-weight:700;color:var(--ink)}.ref-diagram strong,.ref-diagram span{display:block}.ref-diagram strong{font-size:.8rem}.ref-diagram span{font-size:.75rem;margin-top:.3rem;color:var(--muted)}.ref-working h3{font-size:.9rem;margin:.85rem 0 .4rem}.ref-working ol{margin:.25rem 0 .7rem;padding-left:1.3rem;font-size:.8rem;line-height:1.5}.ref-working li+li{margin-top:.35rem}.ref-boundary{font-size:.76rem;line-height:1.5;padding:.65rem .8rem;border-left:3px solid var(--accent);background:var(--paper);margin:.8rem 0}.ref-sheet-footer{border-top:1px solid var(--line);padding-top:.65rem;font-size:.72rem;line-height:1.45}.ref-module-links{margin:0 0 .4rem}.ref-review{margin:.35rem 0;color:var(--muted)}.ref-source-links{display:flex;flex-wrap:wrap;column-gap:1rem;row-gap:.2rem;list-style:none;padding:0;margin:.4rem 0 0;font-size:.7rem}.ref-source-links li{max-width:100%}.ref-print-url{display:none}
@media(max-width:600px){.ref-definitions{grid-template-columns:1fr;gap:.65rem}.ref-definitions>div{display:grid;grid-template-columns:7.25rem 1fr;gap:.5rem}.ref-definitions dt{margin:0}.ref-diagram ol{grid-template-columns:1fr;gap:.75rem}.ref-diagram li{padding:.6rem .8rem}.ref-diagram li:not(:last-child)::after{content:'↓';right:50%;top:auto;bottom:-.8rem}.ref-sheet table{min-width:510px}.ref-source-links{display:block}.ref-source-links li+li{margin-top:.4rem}.ref-sheet-nav a{line-height:1.4}}
@page reference-sheet{size:A4 portrait;margin:11mm 12mm}
@media print{
 body:has(.reference-sheets-page){background:#fff!important;color:#111!important;font:10pt/1.25 Arial,Helvetica,sans-serif!important}
 body:has(.reference-sheets-page) .sidebar,body:has(.reference-sheets-page) .topbar,body:has(.reference-sheets-page) .skip-link,body:has(.reference-sheets-page) .scrim,body:has(.reference-sheets-page) .toast{display:none!important}
 body:has(.reference-sheets-page) .app,body:has(.reference-sheets-page) .main,body:has(.reference-sheets-page) #main{display:block!important;width:auto!important;margin:0!important;padding:0!important;max-width:none!important;min-height:0!important;overflow:visible!important}
 .reference-sheets-page{max-width:none!important;padding:0!important;margin:0!important}.ref-page-header,.reference-sheets-page>.key-definitions{display:none!important}.ref-sheet-stack{display:block;gap:0}.ref-sheet{page:reference-sheet;margin:0;padding:0;border:0;border-radius:0;color:#111!important;background:#fff!important;break-after:page;page-break-after:always;overflow:visible}.ref-sheet:last-child{break-after:auto;page-break-after:auto}.ref-sheet-heading,.ref-definitions,.ref-diagram,.ref-working,.ref-boundary,.ref-sheet-footer{break-inside:avoid;page-break-inside:avoid}.ref-kicker{font-size:7pt;letter-spacing:.05em;color:#444!important;margin-bottom:4pt}.ref-sheet-heading h2{font-size:18pt;margin:0 0 5pt;line-height:1.1}.ref-sheet-heading>p:last-child{font-size:9pt;color:#333!important;line-height:1.25}.ref-definitions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10pt;margin:7pt 0;padding:7pt 0;border-color:#999}.ref-definitions>div{display:block}.ref-definitions dt{font-size:8pt;margin-bottom:3pt}.ref-definitions dd{font-size:7.7pt;line-height:1.25}.ref-table-wrap{overflow:visible;margin:7pt 0}.ref-sheet table{min-width:0;width:100%;font-size:8pt;line-height:1.25}.ref-sheet caption{font-size:8pt;padding-bottom:4pt}.ref-sheet th,.ref-sheet td{padding:5pt;border-color:#aaa}.ref-sheet thead th{font-size:7.5pt;background:#eee!important}.ref-sheet thead{display:table-header-group}.ref-sheet tr{break-inside:avoid;page-break-inside:avoid}.ref-diagram{margin:8pt 0}.ref-diagram figcaption{font-size:8pt;margin-bottom:4pt}.ref-diagram ol{grid-template-columns:repeat(4,minmax(0,1fr));gap:10pt}.ref-diagram li{padding:5pt;border-color:#999;border-top-color:#333;background:#f5f5f5!important}.ref-diagram li:not(:last-child)::after{content:'→';right:-9pt;top:35%;bottom:auto;font-size:9pt;color:#222}.ref-diagram strong{font-size:8pt}.ref-diagram span{font-size:7.5pt;color:#333!important;margin-top:3pt}.ref-working h3{font-size:9pt;margin:7pt 0 4pt}.ref-working ol{font-size:8.1pt;line-height:1.3;margin:0 0 6pt;padding-left:14pt}.ref-working li+li{margin-top:3pt}.ref-boundary{font-size:7.5pt;line-height:1.3;margin:6pt 0;padding:5pt 7pt;border-color:#555;background:#f5f5f5!important}.ref-sheet-footer{font-size:7pt;line-height:1.3;padding-top:5pt;border-color:#999}.ref-module-links{margin:0 0 3pt}.ref-review{font-size:6.9pt;color:#333!important;margin:3pt 0}.ref-source-links{display:block;font-size:6.7pt;line-height:1.25;margin:3pt 0}.ref-source-links li{margin:2pt 0!important}.ref-print-url{display:inline;margin-left:4pt;overflow-wrap:anywhere;font-size:6pt;color:#444}.ref-sheet a{color:#111!important;text-decoration:underline}.ref-sheet a::after{content:none!important}
}
