/* Compact vector trees sit side by side, with a larger reading view available. */
.omt-section { min-width:0; margin:24px 0 38px; color:#e5ddec; }
.omt-section,.omt-section * { box-sizing:border-box; }
.omt-section .omt-heading { margin:0 0 20px; }
.cns-page .omt-section .omt-kicker { margin:0 0 8px; color:#c5acef; font:500 10px/1.5 "IBM Plex Mono",monospace; letter-spacing:.075em; text-transform:uppercase; }
.omt-section .omt-heading h2 { margin:0; color:#eadff2; font-size:clamp(24px,2.7vw,32px); font-weight:500; line-height:1.2; letter-spacing:-.035em; }
.cns-page .omt-section .delivery-rule-panels { margin:0 0 24px; }
.cns-page .omt-section .omt-intro { max-width:900px; margin:0 0 26px; color:#bdb4c6; font-size:15px; line-height:1.8; text-align:left; hyphens:none; }
.cns-page .omt-section .omt-intro > p + p { margin-top:18px; }
.cns-page .omt-section .omt-intro > p > strong:first-child { color:#ffad42; }
.omt-section .omt-figure-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.omt-section .omt-original-tree { min-width:0; margin:0; padding:16px; border:1px solid #c5acef38; border-radius:12px; background:#101822; }
.omt-section .omt-original-tree > figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.omt-section .omt-figure-label { display:grid; min-width:0; gap:3px; }
.omt-section .omt-figure-label > span { color:#edbd93; font:500 10px/1.5 "IBM Plex Mono",monospace; }
.omt-section .omt-original-tree:nth-child(2) .omt-figure-label > span { color:#a7d7d2; }
.omt-section .omt-original-tree h3 { margin:0; color:#ded0ee; font-size:16px; font-weight:500; line-height:1.5; }
.omt-section .omt-image-viewport { width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#9b82bb #101822; }
.omt-section .omt-image-viewport > img { display:block; width:100%; min-width:0; max-width:1120px; height:auto; margin-inline:auto; }
.omt-section :is(button,.omt-image-viewport):focus-visible { outline:2px solid #a7d7d2; outline-offset:4px; }
.omt-section .omt-view-larger { display:inline-flex; align-items:center; flex-shrink:0; min-height:32px; padding:6px 10px; border:1px solid #c5acef38; border-radius:6px; background:#c5acef09; color:#c5acef; font:500 11px/1.6 "Manrope",sans-serif; cursor:pointer; }
.omt-section .omt-view-larger:hover { color:#eadff2; border-color:#c5acef80; background:#c5acef15; }
.cns-page .omt-section .omt-scroll-note { display:none; margin:0 0 12px; color:#ada0bd; font-size:11px; line-height:1.6; text-align:left; }
.cns-page .omt-section .omt-historical-note { margin:13px 0 0; color:#a89bb7; font-size:11px; line-height:1.7; text-align:left; }
.omt-section .omt-current-reference { min-width:0; }
.omt-section .omt-version-heading { margin:0 0 18px; }
.cns-page .omt-section .omt-version-kicker { margin:0 0 9px; color:#a7d7d2; font:600 11px/1.5 "IBM Plex Mono",monospace; letter-spacing:.055em; text-transform:uppercase; }
.cns-page .omt-section .omt-version-heading > p:not(.omt-version-kicker),
.cns-page .omt-section .omt-current-note { margin:0; color:#bdb4c6; font-size:14px; line-height:1.8; }
.cns-page .omt-section .omt-current-note { margin-top:16px; }
.omt-section .omt-rule-key { min-width:0; margin-top:18px; padding:0; border:1px solid #c5acef38; border-radius:9px; background:#101822; }
.omt-section .omt-rule-key > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; min-height:48px; padding:12px 18px; border-radius:8px; color:#d7c6eb; font-size:14px; font-weight:600; line-height:1.6; text-align:left; list-style:none; cursor:pointer; }
.omt-section .omt-rule-key > summary::-webkit-details-marker { display:none; }
.omt-section .omt-rule-key > summary > span:first-child { min-width:0; overflow-wrap:break-word; }
.omt-section .omt-rule-key > summary:hover { color:#f0e4ff; background:#c5acef0a; }
.omt-section .omt-rule-key > summary:focus-visible { outline:2px solid #a7d7d2; outline-offset:4px; }
.omt-section .omt-rule-key .omt-rule-key-icon { flex:0 0 auto; color:#c5acef; font-size:22px; font-weight:400; line-height:1; transition:transform .16s; }
.omt-section .omt-rule-key[open] > summary { border-bottom:1px solid #c5acef25; border-radius:8px 8px 0 0; }
.omt-section .omt-rule-key[open] .omt-rule-key-icon { transform:rotate(45deg); }
.omt-section .omt-rule-key-body { min-width:0; padding:15px 18px 16px; }
.cns-page .omt-section .omt-rule-key p { margin:0; color:#bdb4c6; line-height:1.8; }
.cns-page .omt-section .omt-rule-key p + p { margin-top:12px; }
.omt-section .omt-current-sources { display:flex; flex-wrap:wrap; gap:0 20px; margin-top:8px; }
.omt-section .omt-current-sources > a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; color:#a7d7d2; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.omt-section .omt-rule-key .omt-current-sources > a { min-width:0; white-space:normal; }
.omt-section .omt-historical-reference { min-width:0; margin-top:30px; padding-top:26px; border-top:1px solid #c5acef38; }
.cns-page .omt-section .omt-historical-reference > .omt-version-kicker { margin-bottom:18px; color:#edbd93; }
.omt-section .omt-comparison { min-width:0; }
.omt-section .omt-era-switch { display:inline-grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; max-width:100%; padding:4px; border:1px solid #c5acef38; border-radius:10px; background:#101822; }
.omt-section .omt-era-switch > button { min-width:0; min-height:44px; padding:9px 18px; border:1px solid transparent; border-radius:6px; background:transparent; color:#bdb4c6; font:500 13px/1.5 "IBM Plex Sans",sans-serif; text-align:center; cursor:pointer; }
.omt-section .omt-era-switch > button:hover { color:#eadff2; background:#c5acef10; }
.omt-section .omt-era-switch > button[aria-selected="true"] { border-color:#a7d7d280; background:#a7d7d21a; color:#def0ed; font-weight:600; }
.cns-page .omt-section .omt-comparison-intro { margin:12px 0 18px; color:#bdb4c6; font-size:14px; line-height:1.8; }
.omt-section .omt-version-panel { min-width:0; }
.omt-section .omt-version-panel[hidden] { display:none!important; }
.omt-section .omt-comparison .omt-historical-reference { margin:0; padding:0; border:0; }
.omt-section .omt-version-panel:focus-visible { outline:2px solid #a7d7d2; outline-offset:5px; }
@media(max-width:640px) {
 .omt-section .omt-era-switch { display:grid; width:100%; }
 .omt-section .omt-era-switch > button { padding-inline:10px; }
 .omt-section .omt-rule-key > summary { padding-inline:14px; }
 .omt-section .omt-rule-key-body { padding-inline:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .omt-section .omt-rule-key .omt-rule-key-icon { transition:none; }
}

@media(max-width:999px) {
 .omt-section .omt-figure-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:640px) {
 .omt-section .omt-image-viewport > img { min-width:960px; margin-inline:0; }
 .cns-page .omt-section .omt-scroll-note { display:block; }
 .omt-section .omt-original-tree { padding:14px; border-radius:10px; }
}
/* This viewer keeps the new drawings large, with scrolling instead of shrinking the text. */
.figure-modal-panel:has(.modal-figure-image[src*="-page.svg"]) { width:min(1180px,calc(100vw - 40px)); }
.figure-modal-panel:has(.modal-figure-image[src*="-page.svg"]) .modal-figure-stage { display:block; width:100%; height:calc(100vh - 104px); max-height:calc(100vh - 104px); overflow:auto; background:#101822; scrollbar-width:thin; scrollbar-color:#9b82bb #101822; }
.modal-figure-image[src*="-page.svg"] { display:block; width:1288px; max-width:none; height:auto; object-fit:initial; background:#101822; cursor:default; }

/* The wide reporting chart fits the reading window; small screens can pan it. */
.figure-modal-panel:has(.modal-figure-image:is([src*="gamestop-source-page.svg"],[src*="/image3"][src*="-page.svg"],[src*="/image4"][src*="-page.svg"])) .modal-figure-stage { height:auto; max-height:calc(100vh - 160px); place-items:start; text-align:left; }
.figure-modal-panel .modal-figure-image:is([src*="gamestop-source-page.svg"],[src*="/image3"][src*="-page.svg"],[src*="/image4"][src*="-page.svg"]) { width:max(960px,100%); margin:0; place-self:start; }

.modal-figure-stage:focus-visible { outline:2px solid #a7d7d2; outline-offset:-3px; }

.figure-modal-panel:has(.modal-figure-image[src*="2024500939743178924-HBh2jARXkAAq7LD.png"]) { width:min(1180px,calc(100vw - 40px)); }
.figure-modal-panel:has(.modal-figure-image[src*="2024500939743178924-HBh2jARXkAAq7LD.png"]) .modal-figure-stage { display:block; width:100%; height:auto; max-height:calc(100vh - 160px); overflow:auto; place-items:start; background:#fff; }
.figure-modal-panel .modal-figure-image[src*="2024500939743178924-HBh2jARXkAAq7LD.png"] { display:block; width:max(960px,100%); max-width:none; height:auto; margin:0; place-self:start; object-fit:initial; background:#fff; }

/* Originals share the scrollable reading view without changing their artwork. */
.figure-modal-panel:has(.modal-figure-image:is([src*="/image32.png"],[src*="/image33.png"],[src*="/image34.png"],[src*="/image35.png"])) { width:min(1180px,calc(100vw - 40px)); border-color:#bda0e780; }
.figure-modal-panel:has(.modal-figure-image:is([src*="/image32.png"],[src*="/image33.png"],[src*="/image34.png"],[src*="/image35.png"])) .modal-figure-stage { display:block; width:100%; height:auto; max-height:calc(100vh - 160px); overflow:auto; place-items:start; background:#fff; }
.figure-modal-panel .modal-figure-image:is([src*="/image32.png"],[src*="/image33.png"],[src*="/image34.png"],[src*="/image35.png"]) { display:block; width:max(960px,100%); max-width:none; height:auto; margin:0; place-self:start; object-fit:initial; background:#fff; }

/* Saved source posts remain large enough to read, with keyboard scrolling. */
.figure-modal-panel:has(.modal-figure-image[src*="/source-posts/"]) { width:min(760px,calc(100vw - 40px)); border-color:#bda0e780; }
.figure-modal-panel:has(.modal-figure-image[src*="/source-posts/"]) .modal-figure-stage { display:block; width:100%; height:auto; max-height:calc(100vh - 160px); overflow:auto; place-items:start; background:#fff; }
.figure-modal-panel .modal-figure-image[src*="/source-posts/"] { display:block; width:max(600px,100%); max-width:none; height:auto; margin:0; place-self:start; object-fit:initial; background:#fff; cursor:default; }

/* Clear reading rhythm for the four decision-tree notes. */
#app .cns-page #omt-rule-key .omt-rule-key-body { display:grid;gap:0;padding:8px 20px; }
#app .cns-page #omt-rule-key .omt-rule-key-body>p { padding:16px 0;margin:0; }
#app .cns-page #omt-rule-key .omt-rule-key-body>p+p { border-top:1px solid #c1acf520; }
#app .cns-page #omt-rule-key .omt-rule-key-body>p>strong:first-child { display:block;margin-bottom:6px;color:#d7c6eb;font-weight:600; }
@media(max-width:600px) { #app .cns-page #omt-rule-key .omt-rule-key-body { padding-inline:14px; } }
