.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--deep);
  color: #fff;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
.public-nav nav { gap: 18px; }
.public-nav nav > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
html { scroll-behavior: auto !important; }
body.has-quick-dock { padding-bottom: 0; }
.site-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
}
.site-shell > main { grid-column: 2; min-width: 0; }
.quick-dock {
  position: sticky;
  top: 96px;
  z-index: 19;
  width: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 12px 10px 24px 16px;
  padding: 6px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(12, 48, 39, .14);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(12, 48, 39, .14);
  backdrop-filter: blur(18px);
}
.quick-dock a {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 9px;
  border-radius: 11px;
  color: #596660;
  transition: color .18s ease, background-color .18s ease;
}
.quick-dock a span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: 9px;
  background: #edf4f1;
  font-size: 17px;
  line-height: 1;
}
.quick-dock a small {
  font: 500 11px/1.3 'Prompt', sans-serif;
  white-space: nowrap;
}
.quick-dock a:hover { background: #f3f7f5; color: var(--green); }
.quick-dock a.is-current {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 7px 18px rgba(12, 48, 39, .2);
}
.quick-dock a.is-current span { background: rgba(255, 255, 255, .14); }
.nav-toggle {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 51;
  min-width: 112px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 12px 32px rgba(12, 48, 39, .28);
  font-family: 'Prompt', sans-serif;
  cursor: pointer;
}
.nav-toggle span { font-size: 23px; line-height: 1; }
.nav-toggle small { font-size: 11px; white-space: nowrap; }
.nav-toggle:hover { background: var(--green); }
.to-top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 18;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 10px 28px rgba(12, 48, 39, .25);
  font-size: 20px;
  font-weight: 600;
}
#standards,
#pa,
#about,
[id="main-content"],
[id^="standard-"],
[id^="item-"] { scroll-margin-top: 166px; }

body.nav-collapsed .site-shell { grid-template-columns: 78px minmax(0, 1fr); }
body.nav-collapsed .quick-dock { margin-left: 10px; margin-right: 8px; }
body.nav-collapsed .quick-dock a { justify-content: center; padding: 0; }
body.nav-collapsed .quick-dock a small { display: none; }
body.nav-collapsed .nav-toggle { min-width: 124px; }

/* Balanced type scale: compact headings, readable evidence text. */
body { font-size: 16px; line-height: 1.68; }
body .hero-copy h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.16; letter-spacing: -.8px; }
.hero-intro { font-size: 17px; line-height: 1.72; }
.public-stats strong { font-size: 32px; }
.public-stats span { font-size: 11.5px; line-height: 1.55; }
.hub-heading h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.2; letter-spacing: -.6px; }
.hub-heading > p:last-child { font-size: 15px; line-height: 1.75; }
.about-main h2,
.pa-section h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.22; }
.about-main > p,
.pa-copy > p { font-size: 16.5px; line-height: 1.75; }
.standard-block-head h3 { font-size: 26px; line-height: 1.35; }
.standard-block-head > div > span { font-size: 13.5px; line-height: 1.7; }
.criterion-copy h4 { font-size: 19px; line-height: 1.42; }
.criterion-detail { font-size: 14px; line-height: 1.72; }
.evidence-title h5 { font-size: 15px; line-height: 1.45; }
.criterion-work-list b { font-size: 13px; line-height: 1.5; }
.criterion-work-list small,
.criterion-work-list em { font-size: 9.5px; }
.criterion-certificates b { font-size: 11.5px; line-height: 1.5; }
.criterion-certificates small { font-size: 9.5px; }
.certificate-intro b { font-size: 13.5px; }
.certificate-intro span { font-size: 10.5px; line-height: 1.65; }
body .detail-head h1 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.26; letter-spacing: -.4px; }
.detail-head > p:last-child { font-size: 17px; line-height: 1.7; }
.detail-layout h2 { font-size: 22px; line-height: 1.45; }
.detail-layout p { font-size: 16px; line-height: 1.75; }
.certificate-viewer-head h1 { font-size: clamp(27px, 3.5vw, 40px); line-height: 1.3; }
.certificate-viewer-head span { font-size: 13.5px; line-height: 1.65; }
.certificate-meta b,
.certificate-meta > p { font-size: 14px; line-height: 1.7; }
.public-logo small { font-size: 12px; }
.quick-dock a small,
.nav-toggle small { font-size: 12px; }
.public-stats span { font-size: 12.5px; }
.standard-nav small { font-size: 11px; line-height: 1.45; }
.standard-block-head p { font-size: 11px; line-height: 1.55; }
.standard-indicators b { font-size: 10.5px; line-height: 1.5; }
.criterion-copy p { font-size: 10.5px; line-height: 1.5; }
.evidence-title small { font-size: 10.5px; }
.evidence-title > span { font-size: 11px; }
.criterion-work-list small,
.criterion-work-list em { font-size: 11px; line-height: 1.5; }
.criterion-certificates span > em { font-size: 10.5px; line-height: 1.5; }
.criterion-certificates b { font-size: 13px; }
.criterion-certificates small { font-size: 11px; line-height: 1.5; }
.certificate-intro span { font-size: 12px; }
.pa-parts b { font-size: 12px; }
.panel-heading small { font-size: 10.5px; }
.standard-work small,
.standard-work > div:last-child > b { font-size: 11px; }
.standard-work p { font-size: 11.5px; }
.certificate-list b { font-size: 13px; }
.certificate-list small,
.detail-certificate-list small { font-size: 11.5px; }
.privacy-note { font-size: 11.5px; }
.detail-cover figcaption,
.detail-layout aside small { font-size: 12px; line-height: 1.55; }
.certificate-meta small { font-size: 12px; }

@media (max-width: 900px) {
  .site-shell { display: block; }
  .site-shell > main { margin-top: 72px; }
  .public-nav { gap: 10px; }
  .public-logo,
  .public-logo > div { min-width: 0; }
  .public-logo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .public-nav nav .admin-link { display: inline-flex; }
  .public-nav nav > a:not(.admin-link) { display: none; }
  .quick-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 80px;
    width: auto;
    min-height: 60px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 5px;
  }
  .quick-dock a {
    min-height: 50px;
    flex-direction: column;
    gap: 1px;
    justify-content: center;
    padding: 0;
  }
  .quick-dock a span { width: 24px; height: 24px; flex-basis: 24px; font-size: 16px; }
  .quick-dock a small { font-size: 10.5px; }
  body .hero-copy h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.4px; }
  .hero-intro,
  .about-main > p,
  .pa-copy > p { font-size: 15.5px; line-height: 1.72; }
  .public-stats strong { font-size: 26px; }
  .hub-heading h2,
  .about-main h2,
  .pa-section h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.3px; }
  .standard-block-head h3 { font-size: 20px; line-height: 1.4; }
  .standard-block-head > div > span { font-size: 12.5px; }
  .criterion-copy h4 { font-size: 17px; }
  .criterion-detail { font-size: 13.5px; }
  body .detail-head h1 { font-size: 32px; line-height: 1.3; }
  .detail-head > p:last-child { font-size: 15.5px; }
  .detail-layout h2 { font-size: 20px; }
  .detail-layout p { font-size: 15.5px; }
  .certificate-viewer-head h1 { font-size: 27px; }
  #standards,
  #pa,
  #about,
  [id="main-content"],
  [id^="standard-"],
  [id^="item-"] { scroll-margin-top: 150px; }
  body.nav-collapsed .site-shell { display: block; }
  body.nav-collapsed .quick-dock { margin: 0; }
  body.nav-collapsed .quick-dock a { justify-content: center; }
  .nav-toggle { right: 15px; bottom: 18px; min-width: 106px; height: 46px; }
  .to-top { right: 15px; bottom: 76px; width: 42px; height: 42px; }
  .public-footer { margin-bottom: 0; }
}

@media (max-width: 380px) {
  .quick-dock { left: 5px; right: 5px; }
  .quick-dock a small { font-size: 10px; }
  .public-logo > div { max-width: 165px; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-shell,
  .quick-dock,
  .nav-toggle,
  .work-card,
  .standard-nav a,
  .criterion-certificates a { transition: none; }
}

@media print {
  .quick-dock,
  .nav-toggle,
  .to-top,
  .skip-link { display: none !important; }
}
