/* Joint edition • the original reading layout remains in handbook.css. */
:root {
  --paper: #f8f6ef;
  --panel: #fffdf8;
  --ink: #232c33;
  --muted: #53626b;
  --line: #d7d9cf;
  --blue: #284f70;
  --blue-dark: #243e4d;
  --wash: #e8eeec;
  --butter: #f2e8cc;
  --leaf: #517a72;
  --gold: #ab693a;
}
body { background: var(--paper); }
.shell { width: min(1376px, calc(100% - clamp(36px, 7vw, 128px))); }
.site-bar { background: var(--panel); }
.head-inner { min-height: 76px; }
.identity { display: inline-flex; align-items: center; gap: 12px; }
.brand > .identity { align-items: center; }
.faces { display: flex; isolation: isolate; padding-left: 2px; }
.faces img {
  display: block; width: 38px; height: 38px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--panel); outline: 1px solid #d7d8ca; background: #e9e5dc;
}
.faces img + img { margin-left: -7px; }
.identity-text { display: grid; gap: 1px; }
.identity-text b { font-size: 15px; font-weight: 730; letter-spacing: .015em; line-height: 1.35; }
.identity-text small { display: block; font-size: 10px; line-height: 1.4; letter-spacing: .075em; color: #607074; }
.head-inner nav a { font-size: 13px; }
.head-inner nav a:last-child { border-color: #b9c7c2; }
.hero {
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(24px, 4.5vw, 85px);
  padding: clamp(32px, 4vw, 68px) 0; align-items: center;
}
.manual-kicker { display: flex; gap: 9px; align-items: center; color: var(--leaf); font: 700 10px/1.65 var(--font); letter-spacing: .12em; }
.manual-kicker > span { width: 24px; height: 2px; background: var(--gold); }
.manual-kicker b { font-weight: 400; color: #9b9e8c; }
.hero h1 { color: #203944; font-size: clamp(38px, 4.55vw, 78px); margin: 18px 0 16px; }
.hero-product { white-space: normal; letter-spacing: -.065em; }
.hero-sub { color: #305c5b; font-size: .66em; font-weight: 650; letter-spacing: -.045em; margin-top: 9px; }
.hero-desc { font-size: clamp(15px, 1.1vw, 18px); max-width: 510px; }
.hero-actions { flex-wrap: wrap; }
.hero-actions .primary { background: var(--blue-dark); border-radius: 4px; padding: 11px 16px; }
.hero-actions .primary:hover { background: #38596c; }
.hero-actions .secondary { border-color: #96aaa3; }
.hero-meta { color: #62726d; }
.hero-meta b { color: #3d5c59; }
.desk-gallery {
  min-width: 0; background: #ebece3; border: 1px solid #c9cec3;
  padding: clamp(10px, 1.15vw, 18px); border-radius: 10px;
}
.gallery-label, .shot-heading, .figure-ruler, .shot-tabs, .path-card > div,
.zoom-dialog-bar, .zoom-footer, .mobile-book > summary {
  display: flex; align-items: center;
}
.gallery-label { gap: 8px; padding: 0 2px 9px; color: #3d5752; font-size: 12px; font-weight: 700; }
.gallery-label small { margin-left: auto; color: #6b786e; font-size: 10px; letter-spacing: .12em; }
.live-mark { width: 7px; height: 7px; background: #4d7a68; border-radius: 50%; }
.shot-tabs { gap: 4px; border: 1px solid #c4c9bf; background: #e3e5da; padding: 3px; border-radius: 5px; margin: 0 0 9px; }
.shot-tabs button {
  flex: 1; min-width: 0; border: 1px solid transparent; background: none; color: #53675f;
  font-weight: 650; font-size: 12px; padding: 6px 3px; line-height: 1.3; border-radius: 3px;
}
.shot-tabs button > span { font: 10px/1.2 Consolas, monospace; opacity: .8; }
.shot-tabs button[aria-selected="true"] { border-color: #c4ccbf; color: #243f38; background: #fffcf4; }
.shot-panel { min-width: 0; margin: 0; }
.shot-panel + .shot-panel:not([hidden]) { margin-top: 14px; }
.shot-heading { gap: 8px; margin: 8px 0; }
.shot-heading h3 { display: inline; font-size: 15px; letter-spacing: -.02em; }
.shot-heading .shot-num { border: 1px solid #aebdb1; border-radius: 2px; padding: 0 4px; color: #41594e; font-size: 10px; font-weight: 700; }
.shot-heading > a { margin-left: auto; font-size: 12px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.manual-figure { display: block; min-width: 0; margin: 20px 0 5px; }
.shot-panel .manual-figure { margin: 0; }
.figure-ruler { justify-content: space-between; gap: 8px; color: #5f6c66; font-size: 10px; padding: 5px 1px; letter-spacing: .04em; }
.shot-panel .figure-ruler { padding-top: 0; }
.zoom-link { display: block; position: relative; cursor: zoom-in; }
.zoom-link > img {
  display: block; width: 100%; height: auto; margin: 0 auto;
  border-radius: 4px; border: 1px solid #b7bfb9;
}
.teaching-figure .zoom-link > img { width: auto; max-width: 100%; max-height: 540px; border: 0; }
.screen-pin {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  width: 21px; height: 21px; border: 2px solid #fff; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px/1 Consolas, monospace;
  color: #20352e; background: #efcb74; box-shadow: 0 0 0 1px #463c24;
}
.shot-panel .screen-pin { width: 18px; height: 18px; font-size: 10px; }
.manual-figure figcaption > p { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.shot-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 8px 0 0; margin: 0; }
.shot-legend li { display: inline-flex; align-items: baseline; gap: 5px; color: #435952; font-size: 12px; line-height: 1.55; }
.shot-legend b { color: #674f23; font: 700 10px/1.3 Consolas, monospace; background: #faf0cf; border: 1px solid #d1be8e; border-radius: 50%; min-width: 14px; text-align: center; }
.path-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%),1fr)); gap: 0; margin: 0 0 43px; border-block: 1px solid #b9c4ba; background: #f0f1e8; }
.path-card { padding: 16px 17px 19px; min-width: 0; }
.path-card + .path-card { border-left: 1px solid #cbd2c8; }
.path-card > div { gap: 8px; color: #4e6b61; }
.path-no { border: 1px solid #b6c4ba; color: #50685f; font: 11px/1.5 Consolas, monospace; padding: 0 3px; border-radius: 2px; }
.path-tag { font-size: 11px; font-weight: 660; }
.path-arrow { margin-left: auto; font-size: 15px; }
.path-card h3 { margin: 9px 0 4px; font-size: clamp(17px, 1.42vw, 22px); line-height: 1.45; letter-spacing: -.025em; }
.path-card p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.path-card:hover { background: #e4e9dd; }
.catalog { border-top: 2px solid #324d4c; padding-top: 24px; }
.catalog-intro { margin-bottom: 19px; }
.catalog h2 { color: #233e43; }
.eyebrow { color: #4c6b63; }
.catalog-grid { grid-template-columns: minmax(170px,23%) minmax(0,1fr); }
.jump .jump-sticky { border-left: 2px solid #c8cfc2; padding-left: 14px; }
.jump .rail-title { color: #4c6459; }
.entry:hover { background: #eaf0e9; }
.entry-num { color: #667a70; }
.group-index { background: #e4ece1; border-color: #c4d3c5; color: #425b4b; }
.downloads { background: #284444; }
.downloads .eyebrow { color: #bdd7c9; }
.downloads p { color: #e0ebe0; }
.download-links a { border-color: #8da89d; }
.download-links a:hover { background: #355a56; }
.download-links small { color: #d2e4d6; }
.site-foot { background: #f0efe6; }
.site-foot strong { color: #405b52; }
.reader-grid { grid-template-columns: minmax(150px,17%) minmax(0,1fr) minmax(123px,15%); }
.article-head { border-bottom-color: #34534e; }
.article-head h1 { color: #233c40; }
.article-head p { color: #526269; }
.side-group a[aria-current="page"] { background: #e2eae1; color: #345545; border-color: #c5d4c4; }
.mobile-book { display: none; }
.section-heading > span { color: #617d71; }
.steps li:before { background: #e9efe5; color: #3e6151; border-color: #c8d6c7; }
.aside-note { background: #e9efe6; border-color: #789082; }
.aside-note b { color: #415e4d; }
.table-scroll th { background: #e5ece3; color: #3e554c; }
.table-scroll tr:nth-child(even) td { background: #f2f3eb; }
.code-box { background: #253c42; }
.code-bar { background: #344f52; color: #e3ece5; }
.sources a { text-decoration-color: #839e9b; text-decoration-thickness: .06em; }
.zoom-dialog {
  width: min(1220px,calc(100vw - 28px)); max-width: none; max-height: 94dvh; overflow: hidden;
  margin: auto; border: 1px solid #a2b7ad; padding: 0; background: var(--panel); color: var(--ink);
  border-radius: 7px; z-index: 9;
}
.zoom-dialog::backdrop { background: rgb(17 31 35 / 74%); }
.zoom-dialog-bar { padding: 9px 13px; gap: 8px; border-bottom: 1px solid var(--line); }
.zoom-dialog-bar h2 { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.zoom-dialog-bar button { flex: none; border: 1px solid #b5c2b7; background: #f5f5ed; padding: 6px 9px; color: #294440; font-size: 13px; border-radius: 4px; }
.zoom-scroll { max-height: calc(94dvh - 105px); overflow: auto; padding: 0; background: #e1e5dc; }
.zoom-scroll img { display: block; width: auto; max-width: 100%; max-height: calc(94dvh - 105px); height: auto; margin: auto; }
.zoom-dialog.is-full .zoom-scroll img { max-height: none; max-width: none; margin: 0; }
.zoom-footer { justify-content: space-between; flex-wrap: wrap; gap: 3px 9px; padding: 8px 13px; font-size: 11px; color: var(--muted); }
.zoom-footer a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
body:has(.zoom-dialog[open]) { overflow: hidden; }
@media(max-width:1080px) {
  .reader-grid { grid-template-columns: minmax(150px,22%) minmax(0,1fr); }
  .hero { gap: 25px; }
  .path-card { padding: 13px; }
}
@media(max-width:760px) {
  .shell { width: calc(100% - 32px); }
  .head-inner { min-height: 60px; gap: 10px; flex-wrap: wrap; padding: 9px 0; }
  .head-inner nav { gap: 12px; }
  .head-inner nav a { font-size: 12px; }
  .identity { gap: 7px; }
  .identity-text b { font-size: 13px; }
  .identity-text small { display: block; font-size: 9px; }
  .faces img { width: 31px; height: 31px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 27px 0 22px; }
  .hero h1 { font-size: clamp(39px,8.8vw,62px); margin: 12px 0; }
  .hero-sub { margin-top: 4px; }
  .hero-meta { margin-top: 13px; }
  .desk-gallery { padding: 10px; }
  .path-strip { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
  .path-card { padding: 12px; }
  .path-card:nth-child(odd) { border-left: 0; }
  .path-card:nth-child(n+3) { border-top: 1px solid #cbd2c8; }
  .path-card h3 { margin: 6px 0 3px; }
  .catalog { padding-top: 18px; }
  .catalog-intro { margin-bottom: 12px; }
  .catalog-grid { display: block; }
  .jump .jump-sticky { padding-left: 0; border: 0; }
  .reader-grid { display: block; }
  .reader { padding-top: 12px; }
  .mobile-book { display: block; margin: 0 0 11px; border: 1px solid #bdcabe; border-radius: 4px; background: #eeefe7; }
  .mobile-book > summary { justify-content: space-between; cursor: pointer; padding: 8px 10px; font-size: 13px; font-weight: 650; color: #37594c; }
  .mobile-book[open] > summary { border-bottom: 1px solid #ced7cc; }
  .mobile-book nav { max-height: 55vh; overflow: auto; padding: 8px 9px; }
  .mobile-book .side-group { margin-bottom: 7px; }
  .article-head h1 { font-size: 30px; }
  .shot-legend { gap: 4px 8px; }
  .shot-panel .screen-pin { width: 16px; height: 16px; font-size: 9px; }
  .zoom-dialog { width: calc(100vw - 10px); }
  .zoom-dialog-bar { padding: 7px; gap: 5px; }
  .zoom-dialog-bar button { font-size: 12px; padding: 5px 7px; }
}
@media(max-width:470px) {
  .head-inner { align-items: center; gap: 6px; }
  .head-inner nav { gap: 7px; }
  .head-inner nav a { font-size: 11px; }
  .head-inner nav a:last-child { padding: 5px; }
  .identity-text b { font-size: 12px; }
  .identity-text small { font-size: 8px; }
  .faces img { width: 26px; height: 26px; }
  .faces img + img { margin-left: -6px; }
  .path-card { padding: 11px 8px; }
}
@media(max-width:360px) {
  .head-inner nav { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 3px; }
  .head-inner nav a, .head-inner nav a:last-child { border: 0; padding: 5px 0 1px; }
  .shell { width: calc(100% - 22px); }
}
@media print {
  .desk-gallery, .path-strip, .mobile-book, .zoom-dialog, .figure-ruler { display: none !important; }
  .shell { width: 100%; }
  .manual-figure { break-inside: avoid; }
  .article-section { break-inside: auto; }
  .manual-figure img { max-height: 340px; object-fit: contain; }
}
.cmd-index {
  margin: 16px 0 8px; padding: 13px 15px 15px;
  border: 1px solid #bdcbc0; background: #eef1e8; border-radius: 5px;
}
.cmd-index h2, .cmd-index summary { font-size: 14px; color: #365747; font-weight: 700; line-height: 1.5; }
.cmd-index summary { cursor: pointer; }
.cmd-index small, .section-sources small {
  font-size: 10px; color: #597062; border: 1px solid #bfcabc; border-radius: 3px;
  padding: 1px 4px; margin-left: 5px; font-weight: 600;
}
.cmd-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.cmd-grid a {
  display: grid; align-content: center; min-width: 0; padding: 6px 7px;
  border: 1px solid #c7d2c4; background: #fffdf5; border-radius: 3px; line-height: 1.4;
}
.cmd-grid a:hover { border-color: #6b8a75; background: #e5eddf; }
.cmd-grid code { font: 600 12px/1.45 Consolas, monospace; color: #31574a; overflow-wrap: anywhere; }
.cmd-grid span { color: #596a62; font-size: 11px; }
.gallery-index { padding: 7px 9px; margin: 9px 0 0; }
.gallery-index summary { font-size: 12px; }
.section-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0 2px; }
.section-links strong { color: #5b7066; font-size: 11px; letter-spacing: .03em; }
.section-links a, .section-sources a { font-size: 13px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.section-sources { border-top: 1px dotted #b8c6ba; padding: 9px 0 0; margin-top: 12px; }
.section-sources summary { cursor: pointer; color: #526960; font-size: 12px; font-weight: 650; }
.section-sources ul { list-style: none; padding: 6px 0 0 15px; margin: 0; }
.section-sources li + li { margin-top: 4px; }
@media(max-width:575px) { .cmd-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.advanced-entry {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 13px;
  margin-top: 12px; font-size: 13px; line-height: 1.6;
}
.advanced-entry b { color: #627569; font-size: 10px; letter-spacing: .075em; }
.advanced-entry a, .atlas-titlebar > a, .atlas-route a, .atlas-tile a:not(.atlas-thumb) {
  color: var(--blue); text-decoration: underline; text-decoration-color: #a6b8b2; text-underline-offset: 3px;
}
.advanced-entry a:hover, .atlas-route a:hover, .atlas-tile a:hover { text-decoration-color: currentColor; }
.advanced-atlas { margin: 0 0 35px; scroll-margin-top: 15px; }
.atlas-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.atlas-titlebar h2 { color: #263f42; font-size: clamp(24px,2.2vw,33px); letter-spacing: -.045em; line-height: 1.35; }
.atlas-titlebar > a { font-size: 12px; white-space: nowrap; }
.atlas-routes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid #cad2c8; background: #f1f2e9; }
.atlas-route { min-width: 0; padding: 12px 14px 13px; }
.atlas-route + .atlas-route { border-left: 1px solid #cbd2c8; }
.atlas-route h3 { font-size: 16px; color: #304e47; line-height: 1.5; }
.atlas-route p { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 3px 0; }
.atlas-route nav { display: flex; flex-wrap: wrap; gap: 3px 13px; }
.atlas-route nav a { display: inline-block; font-size: 12px; padding: 3px 0; }
.atlas-sheet { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.atlas-tile { min-width: 0; }
.atlas-thumb {
  display: flex; position: relative; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 2.25; cursor: zoom-in; border-radius: 4px; border: 1px solid #adb9b1; background: #e6e8de;
}
.atlas-thumb img { width: 100%; height: 100%; object-fit: contain; }
.atlas-enlarge {
  position: absolute; bottom: 4px; right: 4px; background: #273d37; color: #f4f6ed;
  padding: 1px 5px; border-radius: 3px; font-size: 10px; font-weight: 600; opacity: .93;
}
.atlas-tile figcaption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 5px; margin: 5px 0 0; }
.atlas-tile figcaption > span { font-size: 10px; color: #657a6d; }
.atlas-tile figcaption > b { color: #314c45; font-size: 13px; overflow-wrap: anywhere; }
.atlas-tile figcaption > a { font-size: 11px; margin-left: auto; }
@media(max-width:850px) {
  .atlas-sheet { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media(max-width:590px) {
  .advanced-entry { gap: 3px 9px; font-size: 12px; }
  .advanced-atlas { margin-bottom: 26px; }
  .atlas-titlebar { align-items: baseline; }
  .atlas-titlebar > a { font-size: 11px; }
  .atlas-routes { grid-template-columns: minmax(0,1fr); }
  .atlas-route { padding: 8px 10px; }
  .atlas-route + .atlas-route { border-left: 0; border-top: 1px solid #cbd2c8; }
  .atlas-route p { margin-block: 2px; }
  .atlas-sheet { gap: 10px 8px; }
  .atlas-thumb { aspect-ratio: 1.9; }
  .atlas-tile figcaption > a { flex-basis: 100%; margin: 0; }
}
@media print {
  .advanced-entry, .advanced-atlas { display: none; }
}
.boundary-focus {
  display: grid; grid-template-columns: minmax(210px,.96fr) minmax(0,1.7fr);
  align-items: center; gap: 18px; margin: -14px 0 32px; padding: 17px 18px;
  border: 1px solid #c4cbbf; border-left: 4px solid #7c8c70; border-radius: 4px; background: #f2f1e6;
}
.boundary-intro h2 { color: #2c443d; font-size: clamp(18px,1.6vw,25px); line-height: 1.4; letter-spacing: -.03em; margin: 3px 0; }
.boundary-intro p { color: #586960; font-size: 12px; line-height: 1.7; }
.boundary-intro > a, .boundary-evidence-index a { display: inline-block; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.boundary-intro > a { font-size: 13px; font-weight: 650; margin-top: 7px; }
.boundary-states { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.boundary-states a { padding: 10px; border: 1px solid #c6cfc1; background: #fffdf4; border-radius: 3px; display: grid; align-content: start; }
.boundary-states a:hover { background: #e9eee1; border-color: #8b9d88; }
.boundary-states span { font-size: 13px; font-weight: 730; line-height: 1.45; overflow-wrap: anywhere; }
.boundary-states p { color: #55655c; margin: 5px 0; font-size: 12px; line-height: 1.6; }
.boundary-states small { font-size: 11px; color: #365c51; }
.boundary-evidence-index { margin: 14px 0 5px; padding: 10px 13px; background: #eaf0e6; border: 1px solid #c5d2c3; border-radius: 4px; }
.boundary-evidence-index strong { font-size: 13px; color: #3c584c; }
.boundary-evidence-index div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; margin-top: 5px; }
.boundary-evidence-index a { font-size: 12px; line-height: 1.6; }
@media(max-width:930px) {
  .boundary-focus { grid-template-columns: 1fr; gap: 10px; }
}
@media(max-width:600px) {
  .boundary-focus { margin: -8px 0 23px; padding: 12px; border-left-width: 3px; }
  .boundary-states { grid-template-columns: 1fr; gap: 4px; }
  .boundary-states a { grid-template-columns: minmax(95px,.8fr) minmax(0,1.35fr); align-items: baseline; gap: 4px 8px; padding: 7px 8px; }
  .boundary-states p { margin: 0; }
  .boundary-states small { display: none; }
  .boundary-evidence-index div { grid-template-columns: 1fr; }
}
@media print { .boundary-focus, .boundary-evidence-index { display: none; } }
