html[data-html-reading] .app-view { display:none !important; }
html[data-html-reading] #theme-toggle,
html[data-html-reading] #theme { display:none; }
.html-reading { max-width:70rem; margin:0 auto; padding:clamp(1rem,3vw,2.5rem); color:var(--text,#edf0f7); font:1rem/1.75 system-ui,sans-serif; overflow-wrap:anywhere; }
.html-reading * { box-sizing:border-box; }
.html-reading h1 { font-size:clamp(1.8rem,4vw,3rem); line-height:1.18; max-width:28ch; margin:0 0 1.1rem; }
.html-reading h2 { font-size:clamp(1.3rem,2.5vw,1.8rem); line-height:1.3; margin-top:2rem; }
.html-reading h3 { font-size:1.13rem; line-height:1.4; }
.html-reading p,.html-reading li { max-width:78ch; }
.html-reading a { color:var(--link,#a5b6ff); text-underline-offset:.18em; }
.html-reading nav { display:flex; gap:1rem; flex-wrap:wrap; margin:1rem 0; }
.html-reading nav:has(ul) { display:block; }
.html-reading section { scroll-margin-top:1.5rem; margin-block:1.5rem; }
.html-reading article,.html-reading aside,.html-reading details { padding:clamp(.85rem,2vw,1.5rem); border:1px solid var(--line,#647086); border-radius:.8rem; background:var(--panel,#20242e); margin-block:1rem; min-width:0; }
.html-reading article article { background:transparent; }
.html-reading summary { cursor:pointer; font-weight:700; }
.html-reading summary:focus-visible,.html-reading a:focus-visible,.html-reading button:focus-visible,.html-reading input:focus-visible,.html-reading select:focus-visible { outline:3px solid #849cff; outline-offset:4px; }
.html-reading details[open]>summary { margin-bottom:.9rem; }
.html-reading img,.html-reading svg { max-width:100%; height:auto; display:block; margin-inline:auto; }
.html-reading img { max-height:38rem; object-fit:contain; }
.html-reading figure { margin:1.25rem 0; }
.html-reading figcaption,.html-reading .reader-meta { color:var(--muted,#b4bfd2); font-size:.94rem; }
.html-reading table { border-collapse:collapse; max-width:100%; width:100%; font-size:.95rem; margin:1rem 0; table-layout:fixed; }
.html-reading td,.html-reading th { border:1px solid var(--line,#647086); padding:.55rem; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.html-reading pre,.html-reading code { white-space:pre-wrap; overflow-wrap:anywhere; }
.html-reading form { display:flex; gap:.75rem; flex-wrap:wrap; align-items:end; padding:1rem; border:1px solid var(--line,#647086); border-radius:.8rem; margin:1.5rem 0; }
.html-reading form label { font-weight:600; }
.html-reading input,.html-reading select,.html-reading button { font:inherit; color:inherit; border:1px solid var(--line,#647086); background:var(--panel,#20242e); border-radius:.45rem; min-height:44px; padding:.55rem .75rem; max-width:100%; }
.html-reading input[type=search] { min-width:min(15rem,100%); flex:1; }
.html-reading input[type=checkbox] { min-height:0; }
.html-reading button { cursor:pointer; background:#6076cd; color:#fff; font-weight:700; }
.html-reading .reader-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap:1rem; }
.html-reading .reader-cards>article { margin:0; }
.html-reading .reader-cards h2 { margin-top:0; font-size:1.2rem; }
@media (max-width:30rem) { .html-reading { padding:1rem .7rem; } .html-reading form { display:grid; grid-template-columns:minmax(0,1fr); } .html-reading td,.html-reading th { padding:.35rem; } }
@media print { .html-reading { color:#111; max-width:none; padding:0; font-size:11pt; } .app-header,.pilot-header,.portal-switch,.html-reading form { display:none !important; } .html-reading article,.html-reading aside,.html-reading details { color:#111; background:#fff; border-color:#aaa; } .html-reading a { color:#111; } .html-reading nav { display:none; } .html-reading h1,.html-reading h2,.html-reading h3 { break-after:avoid; } }

/* Wide worked tables in the six existing-topic K7 native reading guides. */
.html-reading .reader-model-table{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding:.2rem 0;margin-block:1rem;border:0;border-radius:0;background:transparent}
.html-reading .reader-model-table:focus-visible{outline:3px solid #849cff;outline-offset:3px}
.html-reading .reader-model-table.is-wide table{min-width:40rem;max-width:none;table-layout:auto;margin:0}
.html-reading .reader-model-table.is-wide th,.html-reading .reader-model-table.is-wide td{min-width:4.5rem;overflow-wrap:normal;hyphens:auto}
.html-reading .reader-model-table.is-wide th:first-child{min-width:9rem}
@media print{.html-reading .reader-model-table{overflow:visible}.html-reading .reader-model-table.is-wide table{min-width:0;max-width:100%;table-layout:fixed}.html-reading .reader-model-table.is-wide th,.html-reading .reader-model-table.is-wide td{min-width:0;overflow-wrap:anywhere}}
