/* Night Owl School site header + footer for the static micro-tools, so the tools look like part of the main site.
   Mirrors src/components/site/site-header.tsx and site-footer.tsx. Tokens come from theme.css only. */
.site-chrome { --sc-h: 56px; position: sticky; top: 0; z-index: 70; background: var(--background); border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .site-chrome { --sc-h: 64px; } }
.sc-in { display: flex; align-items: center; gap: 12px; height: var(--sc-h); max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .sc-in { padding: 0 24px; gap: 16px; } }
.sc-brand { flex: none; display: inline-flex; flex-direction: column; text-decoration: none; color: var(--foreground); font-family: var(--font-sans); font-weight: 900; text-transform: uppercase; line-height: .88; letter-spacing: -0.025em; font-size: 1.05rem; border-radius: 6px; }
@media (min-width: 640px) { .sc-brand { font-size: 1.4rem; } }
.sc-brand span { display: inline-flex; align-items: flex-end; gap: 4px; }
.sc-brand i { display: inline-block; width: .3em; height: .3em; margin-bottom: .14em; border-radius: 50%; background: var(--cobalt); }
.sc-nav { display: none; margin-left: 16px; }
.sc-nav ul, .sc-panel ul { list-style: none; margin: 0; padding: 0; }
.sc-nav ul { display: flex; align-items: center; gap: 4px; }
.sc-nav a, .sc-panel a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--foreground); text-decoration: none; font-size: .875rem; white-space: nowrap; }
.sc-nav a:hover, .sc-panel a:hover { background: var(--muted); }
.sc-nav a[aria-current="page"], .sc-panel a[aria-current="page"] { background: var(--muted); font-weight: 700; }
@media (min-width: 1280px) { body:not(.has-side) .sc-nav { display: block; } body:not(.has-side) .sc-menu { display: none !important; } body:not(.has-side) .sc-panel { display: none !important; } }
@media (min-width: 1560px) { body.has-side .sc-nav { display: block; } body.has-side .sc-menu { display: none !important; } body.has-side .sc-panel { display: none !important; } }
.sc-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sc-slot { display: flex; align-items: center; gap: 8px; }
.sc-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--foreground); cursor: pointer; }
.sc-icon:hover { background: var(--muted); }
.sc-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-icon .sun { display: none; } :root[data-theme="dark"] .sc-icon .sun { display: block; } :root[data-theme="dark"] .sc-icon .moon { display: none; }
.sc-menu { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input); background: transparent; color: var(--foreground); font: inherit; font-size: .9rem; cursor: pointer; }
.sc-cta { display: none; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--background) !important; font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; }
:root[data-theme="dark"] .sc-cta { background: var(--acid-lime); color: var(--ink) !important; }
@media (min-width: 640px) { .sc-cta { display: inline-flex; } }
.sc-panel { border-top: 1px solid var(--border); padding: 8px 16px 14px; background: var(--background); }
.sc-panel ul { display: grid; gap: 2px; max-width: 80rem; margin: 0 auto; }
.sc-panel a { width: 100%; border-radius: 12px; }
.sc-chrome :focus-visible, .site-chrome :focus-visible, .sc-footer :focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
@media (min-width: 1000px) { body.has-side .site-chrome { margin-left: -248px; padding-left: 248px; } body.has-side .nol-side { top: var(--sc-h, 64px); } body.has-side .sc-in { max-width: none; } }
@media (min-width: 1000px) and (max-width: 1559px) { body.has-side .sc-menu { display: inline-flex; } }
.site-bar, .band { display: none !important; }

.sc-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 28px 16px 36px; color: var(--muted-foreground); font-size: .9rem; }
.sc-footer .sc-in { height: auto; flex-wrap: wrap; align-items: flex-start; padding: 0; gap: 20px 40px; }
.sc-footer p { margin: 8px 0 0; max-width: 34ch; }
.sc-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.sc-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--foreground); text-underline-offset: 4px; }
@media print { .site-chrome, .sc-footer { display: none !important; } }


.btn:disabled, .btn[disabled], .tt .btn:disabled { opacity: 1; background: var(--muted); color: var(--muted-foreground); }
