/* Follow reading order: site menu, project logo, page title; account opposite. */
.workspace-shell { position: sticky; top: 0; z-index: 90; background: #fff; color: #203d46; border-bottom: 2px solid #314e50; }
.workspace-shell .header-inner { display: flex; flex-wrap: nowrap; justify-content: space-between; min-height: 44px; padding: 4px 24px; gap: 16px; line-height: 1.4; }
.workspace-shell .shell-utilities { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.workspace-shell .workspace-account { margin: 0; flex-shrink: 0; }
.workspace-shell .workspace-account-toggle { color: #526b71; }
.workspace-shell .account-name { display: none; }
.workspace-shell .account-avatar { display: grid; width: 26px; height: 26px; background: #edf3f1; border-color: #d6e2dd; color: #24655c; }
.workspace-shell .workspace-account .nav-flyout { inset-inline-start: auto; inset-inline-end: 0; }
.workspace-shell .nav-flyout { max-height: calc(100dvh - 110px); overflow-y: auto; line-height: 1.65; }
.workspace-shell .workspace-nav { margin: 0; padding: 0; border: 0; width: auto; flex-wrap: nowrap; overflow: visible; gap: 2px; }
.workspace-shell .workspace-nav .nav-link { padding: 7px 9px; font-size: 12px; color: #526b71; }
.workspace-shell .workspace-nav .nav-link:hover, .workspace-shell .workspace-nav .nav-link.is-active { background: #f0f5f3; color: #176b5d; }
html[dir=rtl] .workspace-shell .workspace-nav, html[dir=rtl] .workspace-shell .nav-flyout { direction: rtl; }
.workspace-shell .shell-desktop-navigation > .workspace-nav > .nav-disclosure:last-child > .nav-flyout { right: 0; left: auto; }
.workspace-shell .shell-mobile-navigation { display: none; }
.workspace-shell summary { cursor: pointer; }
.workspace-shell summary:focus-visible { outline: 2px solid #146c62; outline-offset: 2px; }
.workspace-shell .language-switch { display: flex; margin-block: 8px; border-block: 1px solid var(--line); padding-block: 5px; }
.workspace-shell .language-switch a { width: auto; color: var(--ink); }
.workspace-shell .language-switch a.is-current { color: var(--teal); font-weight: 700; }
.shell-group-label { display: block; padding: 8px 12px 2px; font-size: 11px; color: var(--muted); }
.workspace-shell .shell-site-area { display: flex; align-items: center; gap: 20px; min-width: 0; direction: ltr; }
html[dir=rtl] .workspace-shell .shell-site-area { direction: rtl; }
.shell-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.shell-project-logo { flex-shrink: 0; display: flex; }
.shell-project-logo img { width: 28px; height: 28px; border-radius: 7px; }
.shell-project-monogram { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: #146c62; background: #edf3f1; font-weight: 700; }
.shell-page-title { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }

/* One quiet utility strip: project destinations, lookup, and page position. */
.project-nav.project-toolbar { position: sticky; top: var(--shell-header-height,44px); z-index: 85; margin: 0; border: 0; border-bottom: 2px solid #314e50; border-radius: 0; padding: 3px max(24px, calc((100vw - 1320px)/2)); background: #fafcfb; gap: 12px; flex-direction: row; align-items: center; flex-wrap: nowrap; line-height: 1.4; }
.project-toolbar .project-nav-tools { display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; min-width: 0; width: auto; justify-content: flex-start; }
.project-toolbar .project-nav-links { width: auto; justify-content: flex-start; flex-wrap: nowrap; gap: 4px; }
.project-toolbar .question-bank-separate { display: flex; gap: 4px; }
.project-toolbar .question-bank-combined { display: none; }
.project-toolbar .question-bank-separate > details > summary::after { display: none; }
.project-toolbar .question-bank-menu-group { margin: 0; padding-block: 6px; }
.project-toolbar .question-bank-menu-group + .question-bank-menu-group { border-block-start: 1px solid #e1e8e4; }
.project-toolbar .question-bank-menu-group > strong { display: block; padding: 3px 12px; color: #627772; font-size: 11px; }
.project-toolbar .question-bank-menu-group > strong.is-active { color: #155d49; }
.project-toolbar .question-bank-combined .nav-flyout { max-block-size: calc(100dvh - var(--shell-header-height,44px) - var(--shell-footer-height,48px) - 60px); overflow-y: auto; overscroll-behavior: contain; }
.project-toolbar .nav-link { position: relative; padding: 8px; border-radius: 0; font-size: 12px; color: #526b71; line-height: 1.4; }
.project-toolbar summary.nav-link { gap: 6px; }
.project-toolbar .nav-link.is-active { color: #176b5d; background: transparent; box-shadow: inset 0 -2px #378677; }
.project-toolbar .nav-link:hover { color: #176b5d; background: #eff5f2; }
.project-toolbar .nav-disclosure { position: relative; }
.project-toolbar .nav-flyout { top: calc(100% + 4px); line-height: 1.65; }
.project-toolbar .question-lookup-disclosure { flex-shrink: 0; }
.project-toolbar .question-lookup-disclosure > summary { gap: 2px; border-inline-start: 1px solid #dfe6e3; margin-inline-start: 2px; padding-inline: 10px; }
.project-toolbar .question-lookup-disclosure > summary::after { display: none; }
.project-toolbar .question-lookup-panel { min-inline-size: 220px; padding: 10px; }
.project-toolbar .question-number-lookup { margin: 0; }
.project-toolbar .question-number-lookup input { max-width: none; inline-size: 140px; flex: 1; }
.project-toolbar .question-number-lookup button { width: auto; flex: 0 0 auto; background: #edf4f0; color: #176b5d; }

.workspace-footer.site-footer { position: fixed; z-index: 70; inset: auto 0 0; max-width: none; margin: 0; padding: 4px 24px calc(4px + env(safe-area-inset-bottom)); min-height: 36px; display: grid; grid-template-columns: 70px minmax(0,1fr) 70px; align-items: center; gap: 12px; direction: ltr; background: #fff; border-top: 2px solid #314e50; line-height: 1.4; }
.workspace-footer .performance-footer { justify-self: start; }
.workspace-footer .performance-footer img { width: 26px; height: 26px; }
.workspace-footer .pikw-wordmark { justify-self: end; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 800; letter-spacing: .08em; color: #f58220; }
.workspace-footer .footer-navigation { min-width: 0; width: 100%; max-width: 960px; justify-self: center; }
.workspace-footer .workspace-footer-title { display: block; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #6b7e82; font-size: 11px; }
body:has(.workspace-footer) .main-content { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
html:has(.workspace-shell) { scroll-padding-top: 70px; scroll-padding-bottom: 60px; }
.skip-link:focus { position: fixed; z-index: 110; }
@media(max-width:1100px) {
  .workspace-shell .header-inner { gap: 12px; }
  .workspace-shell .shell-site-area { gap: 12px; }
  .shell-page-title { max-width: 180px; }
}
@media(max-width:800px) {
  .workspace-shell .shell-desktop-navigation { display: none; }
  .workspace-shell .shell-mobile-navigation { display: block; position: static; order: 0; }
  .workspace-shell .header-inner { position: relative; padding-inline: 12px; }
  .workspace-shell .shell-site-area { flex: 1; justify-content: flex-start; gap: 8px; }
  .workspace-shell .shell-identity { order: 1; }
  .workspace-shell .shell-mobile-navigation > summary { color: #526b71; padding: 8px; }
  .workspace-shell .shell-mobile-navigation > summary::after { display: none; }
  .shell-page-title { max-width: min(52vw,300px); }
  .workspace-shell .shell-site-links { inset-inline: 12px; top: 100%; max-inline-size: none; min-inline-size: 0; }
  .workspace-shell .shell-site-links .workspace-nav { display: flex; flex-direction: column; align-items: stretch; }
  .workspace-shell .shell-site-links .nav-link { color: var(--ink); }
  .workspace-shell .shell-site-links .nav-disclosure { position: static; }
  .workspace-shell .shell-site-links .nav-flyout { position: static; border: 0; box-shadow: none; margin: 0; min-inline-size: 0; max-inline-size: none; padding-inline-start: 16px; max-height: none; }
  .project-nav.project-toolbar { padding-inline: 12px; gap: 8px; }
  .project-toolbar .nav-disclosure { position: static; }
  .project-toolbar .nav-flyout { inset-inline: 12px; top: 100%; }
  .workspace-footer.site-footer { padding-inline: 12px; grid-template-columns: 54px minmax(0,1fr) 54px; }
  .workspace-footer .pikw-wordmark { font-size: 18px; }
}
@media(max-width:767px) {
  .project-nav.project-toolbar { flex-wrap: nowrap; gap: 6px; padding-block: 2px; }
  .project-toolbar .question-bank-separate { display: none; }
  .project-toolbar .question-bank-combined { display: block; }
  .project-toolbar .project-nav-tools { flex: 0 0 auto; gap: 0; }
  .project-toolbar .question-bank-combined > summary { padding-inline: 6px; gap: 4px; white-space: nowrap; }
  .project-toolbar .question-lookup-disclosure > summary { padding-inline: 7px; margin-inline-start: 0; }
}
@media print {
  .workspace-shell, .workspace-footer.site-footer, .project-toolbar { display: none !important; }
  body:has(.workspace-footer) .main-content { padding-bottom: 0; }
}
