@font-face { font-family: 'OpenContext Outfit'; src: url('media-kit/fonts/Outfit-Variable.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Keep skip links and section anchors visible below the sticky header. */
html { scroll-padding-top: 76px; }
.public-header {
  --nav-surface: #fff; --nav-text: #18181b; --nav-muted: #52525b; --nav-border: #e4e4e7; --nav-hover: #f4f4f5; --nav-accent: #2563eb;
  position: sticky; top: 0; z-index: 30; width: 100%; overflow-anchor: none;
  background: color-mix(in srgb, var(--nav-surface) 96%, transparent);
  border-bottom: 1px solid var(--nav-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--nav-text); font: 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  .public-header { --nav-surface: #242427; --nav-text: #f4f4f5; --nav-muted: #a1a1aa; --nav-border: #38383d; --nav-hover: #2e2e32; --nav-accent: #7aa7f7; color-scheme: dark; }
}
.public-header *, .public-header *::before, .public-header *::after { box-sizing: border-box; }
.public-header-inner { display: flex; align-items: center; gap: 24px; max-width: 1248px; min-height: 64px; margin: 0 auto; padding: 0 24px; }
.public-header a { text-decoration: none; color: inherit; }
.public-header svg { display: block; flex: none; }
.public-header .public-brand { display: inline-flex; align-items: center; flex: none; gap: 5px; min-height: 44px; font: 600 17px/1 'OpenContext Outfit', system-ui, sans-serif; letter-spacing: -.025em; }
.public-brand picture, .public-brand img { display: block; width: 26px; height: 26px; }
.public-header .site-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; font: inherit; }
.public-header .site-nav > a, .public-header .public-resources > summary { position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 9px; border: 0; border-radius: 6px; white-space: nowrap; color: var(--nav-muted); font: inherit; }
.public-header .site-nav > a:hover, .public-header summary:hover { color: var(--nav-text); background: var(--nav-hover); }
.public-header .site-nav > a[aria-current="page"], .public-header summary[data-active="true"] { color: var(--nav-accent); }
.public-header .site-nav > a[aria-current="page"]::after, .public-header summary[data-active="true"]::after { content: ''; position: absolute; height: 2px; bottom: 0; left: 9px; right: 9px; background: var(--nav-accent); border-radius: 2px; }
.public-header .public-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.public-header .public-signin, .public-header .header-action { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 7px; min-height: 36px; margin: 0; padding: 8px 11px; border: 1px solid var(--nav-border); border-radius: 7px; white-space: nowrap; font: 500 12.5px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.public-header .public-signin:hover { background: var(--nav-hover); }
.public-header .header-action { gap: 4px; background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.public-header .header-action svg { width: 14px; height: 14px; margin-left: 3px; }
.public-header .header-action:hover { color: #fff; background: #1d4ed8; border-color: #1d4ed8; }
.public-header summary { list-style: none; cursor: pointer; }
.public-header summary::-webkit-details-marker { display: none; }
.public-resources > summary > svg:last-child { width: 12px; height: 12px; }
.public-resources[open] > summary > svg:last-child { transform: rotate(180deg); }
.public-dropdown { position: relative; }
.public-header .public-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 218px; padding: 8px; background: var(--nav-surface); color: var(--nav-text); border: 1px solid var(--nav-border); border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, .12); }
.public-header .public-menu-panel a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 6px; font: inherit; color: var(--nav-muted); }
.public-header .public-menu-panel a:hover { background: var(--nav-hover); color: var(--nav-text); }
.public-header .public-menu-panel a[aria-current="page"] { color: var(--nav-accent); background: var(--nav-hover); }
.public-header .public-mobile-menu { display: none; }
.public-menu-divider { height: 1px; margin: 7px 12px; background: var(--nav-border); }
.public-header :focus-visible { outline: 2px solid var(--nav-accent); outline-offset: 2px; }
@media (max-width: 1180px) {
  .public-header-inner { gap: 14px; }
  .public-header .site-nav > a, .public-header .public-resources > summary { padding-inline: 7px; gap: 5px; }
  .public-header .public-signin { display: none; }
}
@media (max-width: 1000px) {
  .public-header-inner { min-height: 60px; padding: 0 20px; gap: 12px; }
  .public-header .site-nav { display: none; }
  .public-header .public-mobile-menu { display: block; }
  .public-header .public-mobile-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; color: var(--nav-muted); }
  .public-mobile-menu > summary svg { width: 20px; height: 20px; }
  .public-header .public-mobile-menu .public-menu-panel { width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 84px); overflow-y: auto; }
  .public-header .header-action { min-height: 44px; }
}
@media (max-width: 600px) {
  .public-header-inner { padding: 0 12px; gap: 8px; }
  .public-header .public-brand { font-size: 16px; gap: 4px; }
  .public-brand picture, .public-brand img { width: 24px; height: 24px; }
  .public-header .header-action { font-size: 12px; padding: 8px 9px; }
}
@media (max-width: 380px) {
  .public-header .public-workspace-word { display: none; }
}
@media (prefers-reduced-motion: reduce) { .public-header *, .public-header *::before, .public-header *::after { animation: none !important; transition: none !important; } }
@media print { .public-header { position: static; } .public-header .public-menu-panel { display: none; } }
