html { scroll-behavior: auto; }
.site-header nav a[aria-current="page"]::after { transform: scaleX(1); }
.project-nav.current > summary { color: var(--navy); }
.page-heading { padding: 36px max(24px, calc((100vw - 1280px) / 2)) 30px; border-bottom: 1px solid var(--line); background: #fff; }
.page-heading p { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.page-heading p a { text-decoration: underline; text-underline-offset: 3px; }
.page-heading h1 { color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-body > section:first-of-type { scroll-margin-top: 0; }
.workspace-page { height: 100dvh; min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.workspace-page .site-header { position: relative; flex-shrink: 0; }
.workspace-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workspace-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: #f3f5fa; }
.workspace-bar h1 { margin: 0; font-size: 1rem; color: var(--navy); }
.workspace-help { position: relative; font-size: .875rem; }
.workspace-help > summary { cursor: pointer; color: var(--navy); padding: 4px; }
.workspace-help > div { position: absolute; top: 100%; right: 0; z-index: 45; width: min(400px, calc(100vw - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); background: #fff; }
.workspace-help p:last-child { margin: 0; }
.workspace-help a { text-decoration: underline; text-underline-offset: 3px; }
.workspace-help ol { padding-left: 20px; }
.workspace-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.frame-fallback { margin: 0; padding: 12px 20px; font-size: .9rem; background: #fff; }
.frame-fallback[hidden] { display: none; }
.frame-fallback a { text-decoration: underline; }
.site-header .header-cta[aria-current="page"] { background: var(--green-deep); }
@media (max-width: 800px) {
  .page-heading { padding: 24px 20px; }
  .workspace-bar { padding: 6px 12px; }
  .workspace-bar h1, .workspace-help { font-size: .85rem; }
}
