/* C: illustrations belong to chapter headings; the catalogue fills the width below.
   Only guides.html loads this stylesheet. */
body[data-page="guides-static"] { --maxw:1168px; font-size:16px; }
.guide-handbook { --handbook-ink:#123e5b; --handbook-body:#355064; --handbook-muted:#596c78; --handbook-line:#d7e3e8; }
.guide-handbook .container { width:min(1120px,calc(100% - 64px)); max-width:none; margin-inline:auto; padding-inline:0; }
.guide-handbook :is(h1,h2,h3,p) { margin:0; }
.guide-handbook a { color:var(--handbook-ink); }
.guide-handbook a:focus-visible { outline:3px solid var(--guide-orange); outline-offset:4px; }
.guide-handbook-container { padding-top:42px; container-type:inline-size; container-name:guide-handbook; font-size:1rem; }
.guide-handbook-intro { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:30px; padding-bottom:30px; border-bottom:1px solid var(--handbook-line); }
.guide-handbook-title { display:flex; flex:1 1 30rem; align-items:center; gap:22px; min-width:0; }
.guide-handbook-book { display:block; width:96px; height:96px; object-fit:contain; flex-shrink:0; }
.guide-handbook-title h1 { font-size:2.3125rem; line-height:1.35; letter-spacing:.02em; }
.guide-handbook .guide-handbook-eyebrow { margin-bottom:9px; font-size:.6875rem; line-height:1.8; font-weight:700; letter-spacing:.05em; }
.guide-handbook-lead { flex:1 1 24rem; max-width:460px; font-size:.875rem; color:var(--handbook-body); line-height:1.95; }
.guide-handbook-toc { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr)); row-gap:14px; padding-block:25px 28px; }
.guide-handbook-toc a { display:flex; align-items:baseline; gap:10px; min-width:0; padding:4px 16px; border-right:1px solid var(--handbook-line); font-size:.875rem; line-height:1.8; font-weight:700; }
.guide-handbook-toc a:first-child { padding-left:0; }
.guide-handbook-toc a:last-child { border-right:0; }
.guide-handbook-toc a:hover { text-decoration:underline; text-underline-offset:.2em; }
.guide-handbook-tab-number { color:var(--guide-orange); font-size:.6875rem; flex-shrink:0; }
.guide-handbook-chapter { margin-bottom:36px; overflow:hidden; border:1px solid var(--handbook-line); border-radius:16px; background:#fff; scroll-margin-top:110px; }
.guide-handbook-chapter-head { display:grid; grid-template-columns:minmax(58px,max-content) minmax(0,1fr) 94px; align-items:center; gap:24px; padding:25px 30px; min-height:147px; border-bottom:1px solid var(--handbook-line); }
.guide-handbook-green { background:var(--guide-green); }
.guide-handbook-blue { background:var(--guide-blue); }
.guide-handbook-yellow { background:var(--guide-yellow); }
.guide-handbook-number { font-family:Georgia,serif; font-size:3rem; line-height:1; white-space:nowrap; }
.guide-handbook .guide-handbook-count { color:var(--handbook-muted); font-size:.6875rem; line-height:1.8; }
.guide-handbook-chapter-head h2 { margin-top:4px; font-size:1.5625rem; line-height:1.5; letter-spacing:.01em; }
.guide-handbook .guide-handbook-chapter-description { margin-top:8px; color:var(--handbook-body); font-size:.875rem; line-height:1.8; }
.guide-handbook-chapter-art { display:block; width:88px; height:88px; object-fit:contain; justify-self:end; }
.guide-handbook-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:36px; list-style:none; margin:0; padding:5px 30px 6px; }
.guide-handbook-item { min-width:0; margin:0; padding:0; }
.guide-handbook-item a { position:relative; display:block; height:100%; min-height:118px; padding:21px 2rem 22px 0; border-bottom:1px solid var(--handbook-line); }
.guide-handbook-item a:hover { background:#f1f7fa; }
.guide-handbook-item:last-child a, .guide-handbook-item:nth-last-child(2):nth-child(odd) a { border-bottom:0; }
.guide-handbook-item h3 { padding:0; font-size:1.125rem; line-height:1.6; font-weight:700; }
.guide-handbook-item p { margin-top:7px; color:var(--handbook-body); font-size:.875rem; line-height:1.8; }
.guide-handbook-arrow { position:absolute; top:27px; right:0; font-size:1.3125rem; line-height:1; }
.guide-handbook-next { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 32px; background:var(--guide-blue); border-radius:16px; }
.guide-handbook-next h2 { font-size:1.4375rem; line-height:1.5; }
.guide-handbook-next p:last-child { margin-top:8px; color:var(--handbook-body); font-size:.875rem; line-height:1.8; }
.guide-handbook .guide-handbook-primary { display:inline-flex; gap:8px; align-items:center; flex-shrink:0; min-height:44px; padding:12px 21px; border-radius:7px; background:var(--handbook-ink); color:#fff; font-size:.875rem; font-weight:700; text-align:center; }
.guide-handbook .guide-handbook-primary:hover { background:#0d2c41; }
.guide-handbook-meta { padding-top:36px; }
.guide-handbook .citation-heading { flex-wrap:wrap; }
.guide-handbook .citation-heading h2 { flex:1 1 12rem; }
@media (max-width:1050px) {
  .guide-handbook-intro { align-items:flex-start; }
  .guide-handbook-title { gap:16px; }
  .guide-handbook-book { width:74px; height:74px; }
  .guide-handbook-title h1 { font-size:2rem; }
  .guide-handbook-lead { font-size:.8125rem; }
  .guide-handbook-toc a { padding-inline:10px; gap:6px; font-size:.75rem; }
}
/* This breakpoint also follows text zoom, so a narrow reading column becomes one column. */
@media (max-width:47.5rem) {
  .guide-handbook .container { width:calc(100% - 40px); }
  body[data-page="guides-static"] .site-header .inner { padding-inline:20px; }
  .guide-handbook-container { padding-top:26px; }
  .guide-handbook-intro { flex-direction:column; gap:18px; padding-bottom:22px; }
  .guide-handbook-title { flex:0 1 auto; gap:15px; }
  .guide-handbook-book { width:68px; height:68px; }
  .guide-handbook-title h1 { font-size:1.8125rem; }
  .guide-handbook .guide-handbook-eyebrow { margin-bottom:8px; font-size:.625rem; }
  .guide-handbook-lead { flex:0 1 auto; font-size:.8125rem; line-height:1.9; }
  .guide-handbook-lead br { display:none; }
  .guide-handbook-toc { display:flex; flex-wrap:wrap; gap:9px; padding-block:20px 23px; }
  .guide-handbook-toc a, .guide-handbook-toc a:first-child, .guide-handbook-toc a:last-child { gap:6px; padding:8px 11px; border:1px solid var(--handbook-line); border-radius:7px; font-size:.6875rem; }
  .guide-handbook-tab-number { font-size:.625rem; }
  .guide-handbook-chapter { margin-bottom:24px; border-radius:12px; scroll-margin-top:100px; }
  .guide-handbook-chapter-head { grid-template-columns:minmax(32px,max-content) minmax(0,1fr) 48px; gap:11px; padding:19px 16px; min-height:144px; }
  .guide-handbook-number { align-self:start; margin-top:22px; font-size:1.9375rem; }
  .guide-handbook-chapter-head h2 { margin-top:5px; font-size:1.125rem; line-height:1.55; }
  .guide-handbook .guide-handbook-count { font-size:.625rem; }
  .guide-handbook .guide-handbook-chapter-description { margin-top:7px; font-size:.75rem; }
  .guide-handbook-chapter-art { align-self:start; width:48px; height:48px; margin-top:20px; }
  .guide-handbook-list { grid-template-columns:1fr; padding:0 18px; }
  .guide-handbook-item a { min-height:112px; padding-block:19px; }
  .guide-handbook-item:nth-last-child(2):nth-child(odd) a { border-bottom:1px solid var(--handbook-line); }
  .guide-handbook-item h3 { font-size:1rem; }
  .guide-handbook-item p { font-size:.8125rem; }
  .guide-handbook-arrow { top:25px; font-size:1.125rem; }
  .guide-handbook-next { flex-direction:column; align-items:flex-start; gap:20px; padding:23px 20px; }
  .guide-handbook-next h2 { font-size:1.3125rem; }
  .guide-handbook-next p:last-child { font-size:.8125rem; }
  .guide-handbook-meta { padding-top:28px; }
}
@media (max-width:22.5rem) {
  .guide-handbook-book { width:56px; height:56px; }
  .guide-handbook-title { gap:12px; }
  .guide-handbook-title h1 { font-size:1.5rem; }
  .guide-handbook .guide-handbook-title .guide-handbook-eyebrow { font-size:.5625rem; }
  .guide-handbook-chapter-head { grid-template-columns:minmax(27px,max-content) minmax(0,1fr) 40px; gap:8px; padding-inline:10px; }
  .guide-handbook-chapter-art { width:40px; height:40px; }
  .guide-handbook-number { font-size:1.6875rem; }
}
/* The container's em follows text size consistently across the three engines. */
@container guide-handbook (max-width:46.125em) {
  .guide-handbook-list { grid-template-columns:1fr; }
  .guide-handbook-item:nth-last-child(2):nth-child(odd) a { border-bottom:1px solid var(--handbook-line); }
}
/* When text is large on a small screen, spend the width on the chapter title. */
@container guide-handbook (max-width:12em) {
  .guide-handbook-chapter-head { grid-template-columns:minmax(0,1fr) 40px; }
  .guide-handbook-number { display:none; }
}
@media print {
  .guide-handbook .container { width:100%; }
  .guide-handbook-container { padding-top:0; }
  .guide-handbook-intro { display:block; }
  .guide-handbook-title h1 { font-size:22pt; }
  .guide-handbook-lead { max-width:none; margin-top:10pt; }
  .guide-handbook :is(.guide-handbook-book,.guide-handbook-chapter-art,.guide-handbook-arrow,.guide-handbook-next) { display:none; }
  .guide-handbook-toc { display:flex; flex-wrap:wrap; gap:6pt 12pt; padding-block:12pt; }
  .guide-handbook-toc a { padding:0; border:0; }
  .guide-handbook-chapter { overflow:visible; margin-bottom:16pt; break-inside:auto; }
  .guide-handbook-chapter-head { grid-template-columns:30pt minmax(0,1fr); gap:12pt; min-height:0; padding:12pt; break-after:avoid; }
  .guide-handbook-number { font-size:22pt; }
  .guide-handbook-chapter-head h2 { font-size:15pt; }
  .guide-handbook-list { grid-template-columns:1fr; padding:0 12pt; }
  .guide-handbook-item { break-inside:avoid; }
  .guide-handbook-item a { min-height:0; padding:10pt 0; border-bottom:1px solid var(--handbook-line); }
  .guide-handbook-item:nth-last-child(2):nth-child(odd) a { border-bottom:1px solid var(--handbook-line); }
  .guide-handbook-item h3 { font-size:11pt; }
  .guide-handbook-item p { font-size:9pt; }
}
