* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #FDFBF7;
  --surface: #F2EFE9;
  --ink: #0D1B2A;
  --muted: #415A77;
  --teal: #14746F;
  --coral: #E15A46;
  --line: #E0DCD3;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.topbar {
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(253,251,247,.96);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral); color: var(--paper);
  font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 700;
}
.brand-copy { display: grid; gap: 3px; min-width: 0; }
.brand-copy strong { font-size: 12px; letter-spacing: .11em; }
.brand-copy span { color: var(--muted); font-size: 13px; }
.top-link, .page-footer a { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-link:hover, .page-footer a:hover, .resource-link:hover { text-decoration: underline; }
.page-shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: clamp(22px, 4vh, 44px) 0 24px; }
.viewer { width: 100%; }
.viewer-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.eyebrow { color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 4vw, 36px); line-height: 1.1; margin: 0; }
.slide-count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-bottom: 3px; }
.slide-frame { width: 100%; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 12px 32px rgba(13,27,42,.08); }
.slide-stage { width: 100%; position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.slide-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot {
  pointer-events: auto; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: clamp(30px, 4vw, 52px); aspect-ratio: 1; border: 2px solid white; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: white; text-decoration: none;
  font-size: 18px; line-height: 1; font-weight: 800; box-shadow: 0 2px 12px rgba(13,27,42,.32);
}
.hotspot:hover, .hotspot:focus-visible { background: var(--coral); outline: 3px solid rgba(20,116,111,.25); }
.slide-caption-row { min-height: 74px; padding: 16px 2px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.slide-caption { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 690px; }
.resource-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.resource-link {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--teal); border-radius: 3px;
  padding: 10px 14px; color: var(--teal); background: var(--paper); font-size: 13px; font-weight: 800; text-decoration: none;
}
.slide-controls { display: grid; grid-template-columns: minmax(94px,1fr) auto minmax(94px,1fr); align-items: center; gap: 14px; padding: 18px 0 10px; }
.nav-button { min-height: 44px; justify-self: start; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.nav-button.primary { justify-self: end; background: var(--ink); border-color: var(--ink); color: white; }
.nav-button:disabled { opacity: .42; cursor: not-allowed; }
.nav-button:not(:disabled):hover { border-color: var(--teal); }
.slide-dots { display: flex; justify-content: center; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #BFC7CE; cursor: pointer; }
.dot[aria-current="true"] { background: var(--coral); outline: 3px solid rgba(225,90,70,.18); }
.dot:focus-visible, .nav-button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.progress-track { width: 100%; height: 3px; background: var(--line); }
.progress-track span { display: block; height: 100%; width: 12.5%; background: var(--teal); transition: width .2s ease; }
.keyboard-hint { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) {
  .topbar { min-height: 62px; padding-inline: 14px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 20px; }
  .brand-copy strong { font-size: 10px; }
  .brand-copy span { font-size: 11px; }
  .top-link { font-size: 12px; }
  .page-shell { width: min(100% - 20px, 1220px); padding-top: 20px; }
  .viewer-heading { margin-bottom: 12px; }
  .slide-caption-row { align-items: flex-start; flex-direction: column; min-height: auto; }
  .resource-links { justify-content: flex-start; }
  .slide-controls { grid-template-columns: auto 1fr auto; gap: 8px; padding-top: 14px; }
  .nav-button { padding: 0 10px; font-size: 12px; }
  .slide-dots { gap: 7px; }
  .dot { width: 8px; height: 8px; }
  .page-footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
