:root{color-scheme:light;--ink:#192638;--gold:#aa812f;--paper:#faf6ed;--line:#ded4c1}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 Georgia,serif}header{padding:28px 5%;background:#182337;color:#faf6ed}h1{margin:0;font-size:34px}header p{margin:4px 0}.eyebrow{font:13px/1.5 system-ui;letter-spacing:.12em;text-transform:uppercase;color:#dfbd74}a{color:#76551b}header a{color:#dfbd74}.note{max-width:75ch;font:14px/1.6 system-ui;opacity:.9}.reader{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;max-width:1250px;margin:0 auto;padding:28px}aside{align-self:start;position:sticky;top:16px;font:14px/1.5 system-ui;max-height:calc(100vh - 32px);overflow:auto}label{display:block;font-weight:700;margin-bottom:8px}input{width:100%;padding:12px;border:1px solid var(--line);font:inherit;background:white}button{min-height:44px;margin-top:8px;padding:8px 14px;background:transparent;border:1px solid var(--line);font:inherit;color:var(--ink);cursor:pointer}nav{display:grid;gap:3px}nav a{padding:9px 8px;text-decoration:none;min-height:40px}nav a:hover{background:#ece3d1}main{min-width:0}details{border-bottom:1px solid var(--line);scroll-margin-top:18px}summary{font-size:23px;padding:18px 8px;cursor:pointer;color:#76551b}summary:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.chapter{padding:12px 8px 30px;max-width:80ch}.chapter img{max-width:100%;height:auto}.chapter p{margin:12px 0}.chapter h2,.chapter h3{line-height:1.3;margin:20px 0 8px}.chapter table{display:block;max-width:100%;overflow:auto;border-collapse:collapse;font-size:15px}.chapter td,.chapter th{border:1px solid var(--line);padding:8px}.chapter .icon,.chapter img.inline,.chapter .ic img{width:30px;height:30px;object-fit:contain;vertical-align:middle}.chapter .banner img{max-height:200px;width:auto}.chapter .callout,.chapter .note,.chapter .example{padding:14px;background:#eee5d3;margin:14px 0}.chapter .two-col,.chapter .cols{display:block}.chapter img[width]{max-width:100%}[hidden]{display:none!important}@media(max-width:760px){.reader{grid-template-columns:1fr;padding:16px;gap:18px}aside{position:static;max-height:none}nav{grid-template-columns:repeat(2,minmax(0,1fr))}header{padding:20px}summary{font-size:21px}body{font-size:16px}}
.chapter img.ico{height:24px;width:auto;vertical-align:middle}.chapter img.ico.bld{height:40px}.chapter img.ringicon{height:58px;width:58px;object-fit:contain}.chapter .iconrow{display:flex;gap:18px;flex-wrap:wrap}.chapter .iconrow .cell{width:90px;text-align:center;font:14px/1.4 system-ui}.chapter .iconrow .cell img{max-height:60px;width:auto}.chapter .iconrow .cell .nm{display:block}.chapter .ah{display:flex;gap:12px;align-items:center}.chapter .banner{margin-bottom:18px}.chapter .legendcols .ent{margin:12px 0}.chapter figure{margin:18px 0}.chapter figcaption{font-size:15px;color:#51604a}
/* Screen rules: compact illustrations, readable procedures and named sections. */
.chapter { display:flow-root; padding:4px 8px 32px; }
.chapter .banner { display:none; }
.chapter p,.chapter ul,.chapter ol { margin:0 0 1.15em; }
.chapter ul,.chapter ol { padding-left:1.65em; }
.chapter li { padding-left:.2em; margin:.55em 0; }
.chapter b,.chapter strong { font-weight:700; }
.chapter h3 { font-size:20px; margin:28px 0 12px; scroll-margin-top:20px; }
.chapter .ah h3 { margin:0; }
.chapter .action { clear:both; margin:24px 0 14px; }
.chapter .action .num { display:none; }
.chapter .ringicon { width:38px!important; height:38px!important; flex-shrink:0; }
.section-number { font-variant-numeric:tabular-nums; }
nav .subchapter-link { padding:6px 8px 6px 22px; color:#425067; font-size:13px; }
.chapter img { max-width:100%; max-height:220px; width:auto; object-fit:contain; }
.chapter figure { display:flow-root; margin:18px 0 24px; }
.chapter figure>img { float:left; max-width:48%; max-height:200px; margin:0 20px 10px 0; }
.chapter figcaption { padding-top:8px; font:14px/1.6 system-ui; }
.chapter .agorafig { float:right; width:220px; max-width:42%; margin:0 0 16px 24px; }
.chapter .agorafig>img { float:none; width:100%; max-width:100%; margin:0; max-height:140px; }
.chapter .exfig { padding:14px; background:#f0e9db; border-left:2px solid var(--gold); }
.chapter .exfig>img { max-height:240px; }
.chapter .boardwrap { margin:18px 0; }
.chapter .boardwrap>img { max-height:360px; max-width:100%; }
.chapter .boardwrap .rmark,.chapter .boardwrap .smark { display:none; }
.chapter .box,.chapter .shaded { display:flow-root; margin:18px 0; padding:18px; background:#efe7d8; }
.chapter .box>img,.chapter .pimg { float:right; max-width:36%; max-height:150px; margin:0 0 12px 20px; }
.chapter .lbl,.chapter .kctitle,.chapter .coretitle { display:block; font-weight:700; margin-bottom:10px; }
.chapter .creditbox { display:grid; gap:8px; clear:both; margin:24px 0; font-size:14px; }
.chapter .creditbox b { display:inline-block; margin-right:12px; }
.chapter .complist2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
.chapter .crow { display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--line); padding:10px 0; }
.chapter .cimg { display:flex; gap:4px; flex:0 0 100px; justify-content:center; }
.chapter .cimg img { width:auto; max-width:48px; max-height:80px; }
.chapter .cinfo { display:grid; gap:4px; font:15px/1.4 system-ui; }
.chapter .cct { color:#76551b; font-weight:bold; }
.chapter .cnm,.chapter .nm { display:block; }
.chapter .tiles,.chapter .csroster,.chapter .missionexamples,.chapter .skillscatter { display:flex; flex-wrap:wrap; align-items:flex-start; gap:16px; margin:16px 0; }
.chapter .tiles figure,.chapter .csroster figure { width:130px; margin:0; }
.chapter .tiles figure>img,.chapter .csroster figure>img { float:none; width:auto; max-width:100%; max-height:110px; margin:0; }
.chapter .csroster figcaption b,.chapter .csroster figcaption span { display:block; }
.chapter .pset { display:inline-flex; align-items:center; gap:12px; max-width:100%; }
.chapter .pset>img { float:none; max-width:65%; max-height:180px; margin:0; }
.chapter .pset>img.role { max-width:25%; max-height:110px; }
.chapter .rent,.chapter .gent,.chapter .qa,.chapter .ent { margin:12px 0; }
.chapter .rn { display:inline-block; width:24px; color:#76551b; font-weight:bold; }
.chapter .qa .q { font-weight:bold; }
.chapter .navy th { background:#182337; color:#faf6ed; }
.chapter .navy td { background:#fffcf5; }
@media(max-width:760px){.chapter .complist2{grid-template-columns:1fr}.chapter figure>img{max-width:45%;max-height:160px}.chapter .agorafig{width:150px;margin-left:14px}.chapter .exfig{padding:12px}.chapter .box{padding:14px}.chapter .cimg{flex-basis:85px}}
@media(max-width:420px){.chapter figure>img{float:none;max-width:100%;margin:0 0 8px}.chapter .agorafig{float:none;max-width:100%;width:160px;margin:0 0 14px}.chapter .pset>img{max-width:65%}}

header .pdf-download{display:inline-block;margin:10px 0 6px;padding:12px 22px;min-height:44px;background:var(--gold);color:#182337;font-weight:700;text-decoration:none;border-radius:3px}header .pdf-download:hover{background:#c99b45}header .changes{margin:10px 0 14px;max-width:62rem}header .changes summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:700}header .changes h3{font-size:1rem;margin:14px 0 6px;color:#e5c77a}header .changes ul{margin:0;padding-left:1.2rem}header .changes li{margin:0 0 6px;font-size:.95rem;line-height:1.5}
header .changes>summary{color:#dfbd74;font:700 1.05rem/1.4 Georgia,serif;letter-spacing:0;text-transform:none}

/* 2026-10-29 layout fix (ruled 25 Oct "Fix all four"): header in the reading column, contents without an inner scroll box, QR hidden on the web, tighter contents rows. */
header{padding:28px max(28px,calc((100% - 1250px)/2 + 28px))}
aside{max-height:none;overflow:visible}
#results{margin:8px 0 10px;font-size:13px;color:#5b6577}
nav{gap:1px}
nav a{min-height:0;padding:6px 8px;line-height:1.35;border-left:3px solid transparent}
nav .subchapter-link{padding:4px 8px 4px 22px}
nav a.is-current{border-left-color:var(--gold);background:#efe6d3;color:var(--ink);font-weight:700}
nav .subchapter-link.is-current{background:transparent;color:#76551b}
.contents-toggle{display:none}
.revqr{display:none}
@media(max-width:760px){
  header{padding:20px 16px}
  .search-row{display:flex;gap:8px;align-items:stretch}
  .search-row input{flex:1;min-width:0}
  .search-row button{margin-top:0;flex:none}
  .contents-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin-top:10px;font-weight:700}
  .contents-toggle::after{content:"▾";font-size:14px}
  .contents-toggle[aria-expanded="true"]::after{content:"▴"}
  nav{grid-template-columns:1fr;margin-top:6px}
  nav.is-folded{display:none}
  nav a{min-height:44px;display:flex;align-items:center;padding:8px 10px}
  nav .subchapter-link{padding:8px 10px 8px 26px}
}
