:root { color-scheme: light; --navy: #102b45; --teal: #137b79; --cream: #faf8f2; --gold: #d8ad66; --line: #e0e5e6; --muted: #63727f; }
* { box-sizing: border-box; }
body { margin: 0; background: #edf0f0; color: var(--navy); font-family: "Segoe UI", Arial, sans-serif; height: 100vh; height: 100dvh; display: grid; grid-template-rows: 84px minmax(0, 1fr) auto; }
button, select { font: inherit; color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .3; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: white; padding: 10px 16px; border-radius: 5px; }
.skip-link:focus { top: 12px; }
.masthead { padding: 0 32px; background: var(--cream); border-bottom: 1px solid #dfe3e2; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 18px; }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 30px; letter-spacing: 1px; }
.wordmark-dot { color: var(--gold); }
.identity-divider { width: 1px; height: 28px; background: #d7cec1; }
.identity-caption { font-size: 11px; line-height: 1.5; color: var(--muted); }
.identity-caption strong { color: var(--navy); font-weight: 500; }
.concept-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d8e5de; padding: 7px 12px; border-radius: 30px; font-size: 11px; color: #456259; }
.concept-badge > span { height: 6px; width: 6px; border-radius: 100%; background: var(--teal); }
.workspace { min-height: 0; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { background: var(--navy); color: #f2f5f5; padding: 28px 18px 20px; display: flex; flex-direction: column; overflow: auto; }
.sidebar-intro { padding: 0 12px 25px; }
.eyebrow { margin: 0; font-size: 9px; font-weight: 600; letter-spacing: 1.7px; line-height: 1.6; }
.sidebar-intro .eyebrow { color: #d5b57c; }
.sidebar h1 { font: normal 25px/1.3 Georgia, serif; margin: 15px 0 10px; }
.sidebar-intro > p:last-child { font-size: 12px; line-height: 1.65; color: #b4c3ce; margin: 0; }
.page-navigation { display: grid; gap: 5px; }
.page-navigation a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-size: 13px; color: #bdccd7; }
.page-navigation a:hover { background: #1b3a53; color: white; }
.page-navigation a[aria-current="page"] { background: #f8f6ee; color: var(--navy); border-color: #f8f6ee; }
.page-number { font-size: 10px; color: #8199ac; font-variant-numeric: tabular-nums; }
.page-navigation a[aria-current="page"] .page-number { color: var(--teal); }
.nav-arrow { margin-left: auto; opacity: 0; }
.page-navigation a[aria-current="page"] .nav-arrow { opacity: 1; color: var(--teal); }
.sidebar-note { margin-top: auto; padding: 26px 12px 0; display: flex; gap: 12px; align-items: center; color: #a2b8c8; }
.note-mark { color: var(--gold); font-size: 30px; }
.sidebar-note p { margin: 0; font-size: 11px; line-height: 1.6; }
.preview-panel { min-height: 0; min-width: 0; display: grid; grid-template-rows: 86px 36px minmax(0, 1fr) 56px; }
.toolbar { padding: 0 26px; display: flex; align-items: center; gap: 20px; }
.page-heading { min-width: 140px; }
.page-heading .eyebrow { color: #798891; }
.page-heading h2 { font: normal 25px/1.2 Georgia, serif; margin: 3px 0 0; }
.toolbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 4px; font-size: 19px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-button:hover:not(:disabled) { background: #e0e8e7; }
.zoom-controls { display: flex; align-items: center; background: #fafcfa; border: 1px solid #d9e1e1; border-radius: 6px; padding: 2px; }
.zoom-controls select { border: 0; background: transparent; padding: 6px 5px; font-size: 12px; width: 94px; }
.text-button { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 8px; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.text-button:hover { background: #e0e8e7; }
.text-button > span:first-child { font-size: 20px; }
.page-picker-label { display: none; }
.page-picker-label select { border: 1px solid var(--line); background: white; font-size: 12px; border-radius: 5px; padding: 8px; max-width: 165px; }
.browser-bar { margin: 0 26px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: #f9faf9; border: 1px solid #dae2e2; border-bottom: 0; border-radius: 8px 8px 0 0; gap: 16px; font-size: 10px; }
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c6d1d1; }
#page-route { margin-right: auto; color: #74848d; font-family: Consolas, monospace; }
.browser-bar a { text-decoration: none; color: var(--teal); padding: 5px 0; }
.browser-bar a:hover { text-decoration: underline; }
.image-viewport { position: relative; min-width: 0; min-height: 0; overflow: auto; margin: 0 26px; padding: 20px 24px; background: #dfe5e4; border: 1px solid #dae2e2; overscroll-behavior: contain; scrollbar-color: #94aaa7 transparent; }
.image-wrap { width: 100%; margin: 0 auto; background: var(--cream); box-shadow: 0 6px 22px #102b4514; line-height: 0; }
.image-wrap img { width: 100%; height: auto; display: block; user-select: none; }
.loading-message { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 30px; background: var(--navy); color: white; font-size: 12px; box-shadow: 0 3px 12px #102b4520; }
.image-error { font-size: 14px; text-align: center; padding: 30px; line-height: 1.5; }
.preview-footer { margin: 0 26px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.preview-footer p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.page-stepper { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.page-stepper span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.disclaimer { padding: 10px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: #7a858b; background: #fafaf7; border-top: 1px solid var(--line); }
.noscript-notice { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 20px; z-index: 5; font-size: 14px; }
body.focus-view { grid-template-rows: minmax(0, 1fr) auto; }
.focus-view .masthead, .focus-view .sidebar { display: none; }
.focus-view .workspace { grid-template-columns: minmax(0, 1fr); }
.focus-view .page-picker-label { display: block; }
.focus-view .preview-panel { grid-template-rows: 68px 36px minmax(0, 1fr) 48px; }
@media (max-height: 740px) and (min-width: 901px) { .sidebar-intro { padding-bottom: 16px; } .sidebar h1 { font-size: 22px; margin: 10px 0 8px; } .sidebar { padding-top: 20px; } .page-navigation a { padding-top: 10px; padding-bottom: 10px; } .sidebar-note { padding-top: 18px; } }
@media (max-width: 1100px) { .workspace { grid-template-columns: 212px minmax(0, 1fr); } .sidebar h1 { font-size: 23px; } .toolbar, .browser-bar { gap: 10px; } .toolbar { padding: 0 18px; } .browser-bar, .image-viewport, .preview-footer { margin-left: 18px; margin-right: 18px; } .page-heading { min-width: 115px; } .page-heading h2 { font-size: 22px; } .toolbar-actions { gap: 6px; } }
@media (max-width: 900px) {
  body { grid-template-rows: 70px minmax(0, 1fr) auto; }
  .masthead { padding: 0 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px minmax(0, 1fr); }
  .sidebar { padding: 0 14px; display: block; overflow: auto; scrollbar-width: none; }
  .sidebar-intro, .sidebar-note { display: none; }
  .page-navigation { display: flex; align-items: center; height: 100%; gap: 5px; width: max-content; }
  .page-navigation a { padding: 10px 13px; white-space: nowrap; font-size: 12px; }
  .page-number, .nav-arrow { display: none; }
  .preview-panel { grid-template-rows: 74px 34px minmax(0, 1fr) 50px; }
  .image-viewport { padding: 14px; }
  .focus-view .workspace { grid-template-rows: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  body { grid-template-rows: 62px minmax(0, 1fr) auto; }
  .masthead { padding: 0 14px; }
  .identity { gap: 10px; }
  .wordmark { font-size: 24px; }
  .identity-caption { font-size: 9px; }
  .concept-badge { font-size: 9px; padding: 6px 9px; }
  .workspace { grid-template-rows: 54px minmax(0, 1fr); }
  .toolbar { padding: 0 12px; gap: 5px; }
  .page-heading { min-width: 0; }
  .page-heading h2 { font-size: 19px; }
  .page-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .toolbar-actions { gap: 3px; }
  .zoom-controls select { font-size: 11px; width: 78px; }
  .zoom-controls .icon-button { width: 27px; height: 30px; }
  .text-button { padding: 5px; }
  #focus-label { display: none; }
  .browser-bar, .image-viewport, .preview-footer { margin-left: 10px; margin-right: 10px; }
  .image-viewport { padding: 10px; }
  .preview-footer p { max-width: 220px; font-size: 10px; }
  .preview-footer { gap: 6px; }
  .page-stepper { gap: 1px; }
  .disclaimer { padding: 8px 12px; font-size: 9px; line-height: 1.5; }
  .disclaimer > span:last-child { display: none; }
  .focus-view .page-heading { display: none; }
  .focus-view .page-picker-label select { max-width: 150px; padding: 7px 5px; }
}
@media (prefers-reduced-motion: no-preference) { .page-navigation a, .icon-button, .text-button { transition: background .15s, color .15s; } }
