/* Alleen de TRS-80-pagina. Gedeelde navigatie, tabellen en fotoviewer blijven leidend. */
.trs80-page .trs-editorial{display:grid;grid-template-columns:var(--editorial-columns);gap:var(--editorial-column-gap);align-items:start}
.trs80-page .trs-editorial>*{min-width:0}
.trs80-page .trs-reverse{grid-template-columns:minmax(0,min(48%,600px)) minmax(0,1fr)}

.trs80-page .trs-game-heading{font-size:clamp(22px,2vw,28px);line-height:1.3;margin:0 0 24px}
.trs80-page .trs-robot-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--editorial-column-gap)}
.trs80-page .trs-robot-copy>*{min-width:0}
.trs80-page .trs-robot-visual{margin-top:32px}
.trs80-page .trs-graphics-row,.trs80-page .trs-lunar{margin-top:56px}
.trs80-page .trs-figure{min-width:0;margin:0}
.trs80-page .trs-photo{display:block;width:100%;padding:0;background:#102024;border:1px solid #adbeb82e;border-radius:0}
.trs80-page .trs-photo img{display:block;width:100%;height:auto;object-fit:contain;padding:0}
.trs80-page .trs-diagram .trs-photo span{position:static;display:block;width:100%;padding:7px 12px;text-align:right;background:#102024;border-top:1px solid #adbeb82e;font-size:12px;transform:none}
.trs80-page .trs-figure figcaption{margin:10px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.trs80-page .trs-media>.trs-figure{margin-bottom:20px}
.trs80-page .trs-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.trs80-page #programmeren .trs-thumbnails{grid-template-columns:minmax(0,1fr)}
.trs80-page #programmeren .trs-thumbnails .trs-photo{max-width:100%}
.trs80-page .trs-thumbnails .trs-photo{aspect-ratio:3/2;background:#102024}
.trs80-page .trs-thumbnails .trs-photo img{width:100%;height:100%;object-fit:contain}
.trs80-page #programmeren .trs-thumbnails .trs-photo{aspect-ratio:2.07}
.trs80-page .trs-thumbnails .photo span{font-size:11px;padding:5px 8px}
.trs80-page .trs-thumbnails figcaption{font-size:12px;line-height:1.55}
.trs80-page .basic-listing{max-width:100%;overflow-x:auto;margin:24px 0;padding:20px;border-left:2px solid var(--accent);background:#102024;color:var(--text);font:16px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;overscroll-behavior-x:contain}
.trs80-page .basic-listing code{padding:0;background:none;color:inherit;font:inherit}
.trs80-page .basic-listing:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.trs80-page .basic-row{display:block;min-width:max-content}
.trs80-page .basic-number{display:inline-block;min-width:3ch;color:var(--accent)}
.trs80-page .trs-galgje-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:var(--editorial-column-gap);align-items:start}
.trs80-page .trs-galgje-grid>*{min-width:0}
.trs80-page .trs-galgje-story>.trs-figure{margin-top:40px}
.trs80-page .galgje-listing{font-size:15px;line-height:1.75;margin:20px 0;white-space:normal}
.trs80-page .galgje-listing .basic-row{white-space:pre}
.trs80-page #galgje .galgje-listing{max-height:560px;overflow:auto;overscroll-behavior:contain}
.trs80-page #galgje .basic-omission{min-width:0;white-space:normal;color:var(--muted);font-style:italic;margin:12px 0}
.trs80-page #galgje .galgje-visual-lead{margin-top:36px}
.trs80-page #galgje .trs-galgje-story>.trs-figure{margin-top:24px}
.trs80-page #galgje .technical-note{margin-top:20px}
.trs80-page .trs-audio-inset,.trs80-page .trs-force-inset{max-width:320px;margin:24px 0 0}
.trs80-page .trs-robot-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.trs80-page .trs-robot-layout .trs-robot-visual{margin-top:0}
.trs80-page #cassette .trs-media[aria-label]>.trs-figure{max-width:420px}
@media(max-width:1023px){.trs80-page #galgje .galgje-listing{max-height:440px}.trs80-page .trs-robot-layout{grid-template-columns:minmax(0,1fr)}}
.trs80-page .trs-reconstruction{font-size:16px;line-height:1.7;color:var(--muted);margin:0}
.trs80-page .trs-small{font-size:14px;line-height:1.7;color:var(--muted);margin:18px 0 0}
.trs80-page .trs-wide{margin-top:48px}
.trs80-page .personal-line{margin:36px 0 0}
.trs80-page .personal-line strong{color:var(--accent);font-size:clamp(25px,2.3vw,34px)}
.trs80-page .prose>h3{font-size:clamp(22px,2vw,28px);line-height:1.3;margin:36px 0 18px}
.trs80-page .prose>h3:first-child{margin-top:0}
.trs80-page .trs-hardware{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--editorial-column-gap);margin-top:64px;align-items:start}
.trs80-page .trs-hardware>*{min-width:0}
.trs80-page .trs-hardware .trs-thumbnails{grid-template-columns:minmax(0,1fr);max-width:100%}
.trs80-page .trs-hardware .trs-thumbnails figure{margin:0}
.trs80-page .trs-hardware .computer-photo img{height:130px}
.trs80-page .trs-hardware .spec-table{margin-top:24px}
.trs80-page .technical-note ul{padding-left:22px;font-size:16px;line-height:1.75}
.trs80-page .technical-note li{margin-bottom:12px;overflow-wrap:anywhere}
.trs80-page .technical-note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.trs80-page .trs-sources .technical-note{max-width:none}
.trs80-page #lightbox{max-width:calc(100% - 24px)}
.trs80-page #lightbox img{max-width:100%;height:auto!important}
.trs80-page #lightbox .lightbox-controls{min-width:0;gap:8px}
.trs80-page #lightbox .lightbox-controls button{min-width:0}
@media(max-width:1023px){
 .trs80-page .trs-editorial,.trs80-page .trs-reverse,.trs80-page #dancing-demon .trs-reverse,.trs80-page .trs-galgje-grid,.trs80-page .trs-hardware,.trs80-page .trs-robot-copy{grid-template-columns:minmax(0,1fr);gap:28px}
 .trs80-page .trs-figure,.trs80-page .trs-media{width:100%;max-width:760px}
 .trs80-page .trs-reverse .prose{grid-row:1}
 .trs80-page .trs-galgje-story>.trs-figure{max-width:520px;margin-top:32px}
 .trs80-page .trs-wide{max-width:none}
 .trs80-page .trs-robot-visual{max-width:none}
 .trs80-page .trs-hardware{margin-top:48px}
 .trs80-page .trs-listing{max-width:760px}
}
@media(max-width:760px){
 .trs80-page .basic-listing{padding:16px;font-size:15px}
 .trs80-page .galgje-listing{line-height:1.7}
 .trs80-page .trs-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
 .trs80-page .trs-thumbnails>.trs-figure:last-child:nth-child(odd){grid-column:1/-1}
 .trs80-page .trs-graphics-row,.trs80-page .trs-lunar{margin-top:36px}
 .trs80-page .trs-wide{margin-top:32px}
}



/* Finale lokale compositie: de schermervaring gaat vóór de technische verdieping. */
.trs80-page .trs-galgje-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.trs80-page #galgje .trs-galgje-flow{max-width:400px;margin-top:28px}
.trs80-page #galgje .galgje-visual-lead{margin-top:24px}
.trs80-page .trs-demon-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--editorial-column-gap)}
.trs80-page .trs-demon-explainer{max-width:350px;margin:28px 0}
.trs80-page .trs-demon-layout .technical-note{margin:24px 0}
.trs80-page .trs-demon-layout .prose>p{margin-top:24px}
.trs80-page .trs-demon-layout .prose>p:first-child{margin-top:0}
.trs80-page .trs-lunar{grid-template-columns:minmax(0,min(42%,480px)) minmax(0,1fr);align-items:start}
.trs80-page .trs-force-inset{max-width:230px;margin-top:16px}
.trs80-page .trs-flight{margin-top:44px}
.trs80-page .trs-flight-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start}
.trs80-page .trs-flight-layout .technical-note{margin:24px 0}
.trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails){margin-top:28px;gap:12px}
.trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails) .trs-photo{aspect-ratio:640/580}
.trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails) .trs-photo span{display:none}
.trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails) .trs-photo:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.trs80-page .demon-screen{display:none!important;padding:0!important;border:0!important}
.trs80-page .demon-screen svg{display:block;width:100%;height:auto}
.trs80-page [data-animation-ready] .demon-fallback{display:none}
.trs80-page [data-animation-ready] .demon-screen{display:block!important}
.trs80-page .demon-frame{visibility:hidden}
.trs80-page .demon-frame[data-frame="0"]{visibility:visible}
.trs80-page [data-animation-ready] .demon-frame{animation:demon-pose 1s steps(1,end) infinite;animation-delay:var(--delay);animation-play-state:paused}
.trs80-page [data-animation-playing] .demon-frame{animation-play-state:running}
@keyframes demon-pose{0%{visibility:visible}8.333333%,100%{visibility:hidden}}
.trs80-page .demon-toggle{margin-top:14px;background:none;border:1px solid #adbeb84d;border-radius:4px;padding:10px 14px;color:var(--text);font:inherit;font-size:14px;min-height:44px;cursor:pointer}
.trs80-page .demon-toggle:hover{border-color:var(--accent);color:var(--accent)}
.trs80-page .demon-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:1023px){
 .trs80-page .trs-galgje-grid,.trs80-page .trs-demon-layout,.trs80-page .trs-lunar,.trs80-page .trs-flight-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 .trs80-page .trs-demon-monitor{max-width:640px}
 .trs80-page .trs-demon-explainer{max-width:350px}
 .trs80-page .trs-lunar>.prose{grid-row:1}
 .trs80-page .trs-lunar>.trs-figure{max-width:560px}
 .trs80-page .trs-flight-layout>.trs-figure{max-width:640px}
 .trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails){max-width:640px}
}
@media(max-width:760px){
 .trs80-page #galgje .trs-galgje-flow{max-width:100%}
 .trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails)>.trs-figure:last-child:nth-child(odd){grid-column:auto}
 .trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails) .trs-photo{min-height:44px}
 .trs80-page :is(.trs-flight-thumbnails,.trs-robot-thumbnails) figcaption{font-size:12px}
 .trs80-page .trs-flight{margin-top:36px}
}

.trs80-page .trs-demon-layout>.prose,.trs80-page .trs-demon-music{max-width:760px}
.trs80-page .trs-demon-music{margin-top:28px}
@media(max-width:1100px){.trs80-page .trs-demon-layout{grid-template-columns:minmax(0,1fr);gap:28px}.trs80-page .trs-demon-monitor{max-width:640px}}

.trs80-page .trs-demon-music .trs-audio-inset{max-width:300px}

/* Lokale redactionele verfijning: tekenwerk bij Galgje, spelbeelden bij Robot Attack. */
.trs80-page #galgje .trs-galgje-blocks{max-width:360px;margin-top:28px}
.trs80-page #galgje .trs-galgje-flow{max-width:440px}
.trs80-page #programmeren .trs-graphics-row .basic-listing{margin-bottom:0}
.trs80-page .trs-robot-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.trs80-page .trs-robot-layout .technical-note{margin:24px 0}
@media(max-width:1023px){.trs80-page .trs-robot-layout{grid-template-columns:minmax(0,1fr)}.trs80-page .trs-robot-layout>.trs-figure{max-width:640px}}

/* Kleine documentillustratie binnen de bestaande boekuitklapper. */
.trs80-page #programmeren .trs-book-layout{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.trs80-page .trs-book-copy{flex:1 1 260px;min-width:0}
.trs80-page .trs-book-copy>p{font-size:16px;line-height:1.75;margin:0 0 16px}
.trs80-page .trs-book-copy>p:last-child{margin-bottom:0}
.trs80-page .trs-book-cover{flex:0 0 135px;width:135px;max-width:100%;margin:0}
.trs80-page .trs-book-cover img{display:block;width:100%;height:auto}
.trs80-page .trs-book-cover figcaption{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.trs80-page .technical-note .trs-book-cover a{color:inherit}
@media(max-width:760px){.trs80-page .trs-book-cover{flex-basis:160px;width:160px}}
