/* The glass top nav, shared by the benefits app and both explorers. The insights site's bar, ported whole (its chassis
   .topbar, "the bar is glass", the site bar and the house Google sign-in pill, docs/SIGN-IN-BUTTON.md):
   paper glass over paper, night glass over a photograph; the two tints are layers that cross-fade on opacity, the bar
   itself only blurs. It sits over the page's photo band (its height is taken back with a negative margin).
   What is not the insights bar's own: the wordmark's size (Montserrat 12px, tracked 0.42em, the karst site's mark), the
   school chip beside the search (the explorers), and the bar's width rules, which follow the room beside the side
   panel (a container query) and not the window. Colour cycles only on the active link's underline, in the tempo blues. */
:root { --kt-bar: 58px; --kt-wm-w: 63.4px; --kt-wm-h: auto; }
:root[data-logo-shape="emblem"] { --kt-wm-w: 40px; }
@keyframes kt-tempo { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.topbar { --font-head: "Montserrat", system-ui, sans-serif; --enter: 140ms; --exit: 280ms; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --surface: #fffcf7; --night: rgb(var(--k-night-rgb, 10, 10, 11)); --border-strong: rgba(30, 42, 74, 0.15); --on-surface-variant: #3a3632; --radius: 3px;
  --tempo-ink: #2a3560; --tempo-deep: #5a6aaa; --tempo-mid: #8a8ec8; --tempo-light: #a0b8dc; --tempo-air: #c6d6ee;
  position: sticky; top: 0; z-index: 30; margin-bottom: calc(-1 * var(--kt-bar) - 1px); flex: none; container-type: inline-size; container-name: topbar;
  color: var(--color-navy-900, #1e2a4a); font-family: var(--font-sans, "Inter", system-ui, sans-serif); font-size: 1rem; line-height: 1.5;
  background: transparent; border-bottom: 1px solid transparent; -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
.topbar::before, .topbar::after { content: ""; position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none; transition: opacity var(--exit) var(--ease-out); }
.topbar::before { background: color-mix(in srgb, var(--surface) 60%, transparent); border-bottom: 1px solid var(--border-strong); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--surface) 30%, transparent); }
.topbar::after { background: color-mix(in srgb, var(--night) 72%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--surface) 14%, transparent); opacity: 0; }
.topbar.is-dark::before { opacity: 0; }
.topbar.is-dark::after { opacity: 1; }
.topbar-inner { max-width: 1360px; height: var(--kt-bar); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
:where(.topbar) a { text-decoration: none; }
:where(.topbar) button { font: inherit; }
:where(.topbar) p { margin: 0; }
.kt-wordmark { display: block; width: var(--kt-wm-w); height: var(--kt-wm-h); object-fit: contain; }
.brandlock { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex: none; }
.brandlock img { display: block; width: var(--kt-wm-w); height: var(--kt-wm-h); flex: none; object-fit: contain; background: transparent; }
.brandlock .tb-logo--ink { display: block; }
.brandlock .tb-logo--dark { display: none; }
.topbar.is-dark .brandlock .tb-logo--ink { display: none; }
.topbar.is-dark .brandlock .tb-logo--dark { display: block; }
.sitenav { display: flex; align-items: center; gap: 16px; margin: 0 auto; }
.sitenav__link { position: relative; padding: 8px 0; color: inherit; font-family: var(--font-head); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: 0.78; transition: opacity var(--exit) var(--ease-out); }
/* the active link's underline cycles slowly through the Karst tempo blues: ink, deep, mid on paper glass; air, light, mid on night glass */
.sitenav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; transform: scaleX(0); transform-origin: left; transition: transform var(--exit) var(--ease-out);
  background: linear-gradient(90deg, var(--tempo-ink) 0%, var(--tempo-deep) 25%, var(--tempo-mid) 50%, var(--tempo-deep) 75%, var(--tempo-ink) 100%); background-size: 200% 100%; animation: kt-tempo 12s linear infinite; }
.topbar.is-dark .sitenav__link::after { background-image: linear-gradient(90deg, var(--tempo-air) 0%, var(--tempo-light) 25%, var(--tempo-mid) 50%, var(--tempo-light) 75%, var(--tempo-air) 100%); }
.sitenav__link:hover { opacity: 1; transition-duration: var(--enter); }
.sitenav__link:hover::after, .sitenav__link.is-on::after { transform: scaleX(1); transition-duration: var(--enter); }
.sitenav__link.is-on { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex: none; min-width: 0; }
.topbar-search, .topbar-pick { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid rgba(30, 42, 74, 0.15); border-radius: var(--k-corner, 8px); background: #fff; color: var(--color-navy-900, #1e2a4a); cursor: pointer; transition: background-color 420ms ease; }
.topbar-search:hover, .topbar-pick:hover { background: var(--surface); transition-duration: 180ms; }
.topbar-search svg, .topbar-pick svg { width: 16px; height: 16px; flex: none; }
.topbar-search kbd { font: 500 0.72rem/1 ui-monospace, Menlo, monospace; color: var(--color-navy-600, #545e77); }
/* the school chip: the search's own box, the page links' type; (standing rule 11-13) its chevron 16px in from the right edge, never hidden */
.topbar-pick { padding-right: 16px; max-width: 210px; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em; }
.topbar-pick__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-pick__select { min-width: 0; max-width: 170px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-overflow: ellipsis; cursor: pointer; appearance: none; -webkit-appearance: none; }
.topbar-pick__select:focus-visible { outline: none; }
.topbar-pick:has(.topbar-pick__select:focus-visible) { outline: 2px solid var(--tempo-deep); outline-offset: 3px; }
.topbar-pick.is-locked { cursor: default; }
.topbar-pick.is-locked:hover { background: #fff; }
.topbar-pick[hidden] { display: none; }
.signin { position: relative; }
.signin__btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-family: var(--font-head); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.08em; cursor: pointer; opacity: 0.86; white-space: nowrap; transition: opacity var(--exit) var(--ease-out), background var(--exit) var(--ease-out); }
.signin__btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); transition-duration: var(--enter); }
.signin__note { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: min(320px, 82vw); margin: 0; padding: 16px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: var(--on-surface-variant); font-family: var(--font-sans, "Inter", system-ui, sans-serif); font-weight: 400; font-size: 0.88rem; letter-spacing: 0; line-height: 1.5; text-transform: none; box-shadow: 0 24px 60px -24px rgba(0, 26, 58, 0.45); }
.signin__note[hidden] { display: none; }
.signin__note::before { content: ""; position: absolute; right: 28px; top: -6px; width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--border-strong); border-top: 1px solid var(--border-strong); transform: rotate(45deg); }
.topbar.is-dark .sitenav__link, .topbar.is-dark .signin__btn { color: #fff; }
.topbar.is-dark .brandlock { color: #fff; }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 2px solid var(--tempo-deep); outline-offset: 3px; }
.topbar.is-dark a:focus-visible, .topbar.is-dark button:focus-visible { outline-color: #fff; }
/* the room beside the side panel decides what shows, not the window */
@container topbar (max-width: 1240px) { .topbar-search kbd { display: none; } .topbar-search { width: 38px; padding: 0; justify-content: center; } }
@container topbar (max-width: 1120px) { .signin__btn span { display: none; } .signin__btn { width: 38px; padding: 0; justify-content: center; } .sitenav { gap: 12px; } .sitenav__link { letter-spacing: 0.1em; } }
@container topbar (max-width: 900px) { .sitenav { display: none; } .topbar-inner { justify-content: space-between; } }
@container topbar (max-width: 560px) { .topbar-inner { padding: 0 14px; gap: 8px; } .topbar-right { gap: 10px; } .topbar-pick { max-width: 150px; } }
@container topbar (max-width: 440px) { .topbar-pick { max-width: 140px; padding: 0 16px 0 10px; gap: 6px; } .topbar-pick__select { max-width: 96px; } }
/* The tabbed bar (brand: false, the data projects): the side panel carries the wordmark, so the bar holds only the mode tabs
   (the page links' type and tempo underline, unchanged) at the left and, at the right, the school chip and the search as night
   glass, as the door's search is: the door's glass fill and 1px light border, white type, no white boxes. Over paper glass the
   bar's own night tint is the fill. */
.topbar--modes .topbar-inner { padding: 0 32px; }
.topbar--modes .sitenav { margin: 0; }
.topbar--modes .topbar-pick { max-width: 260px; }
.topbar--modes .topbar-search, .topbar--modes .topbar-pick { border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 999px; background: rgba(255, 252, 247, 0.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: #fff; }
.topbar--modes .topbar-search:hover, .topbar--modes .topbar-pick:hover { background: rgba(255, 252, 247, 0.22); border-color: rgba(255, 255, 255, 0.6); }
.topbar--modes .topbar-pick.is-locked:hover { background: rgba(255, 252, 247, 0.12); border-color: rgba(255, 255, 255, 0.34); }
.topbar--modes .topbar-search kbd { color: rgba(255, 255, 255, 0.72); }
.topbar--modes:not(.is-dark) .topbar-search, .topbar--modes:not(.is-dark) .topbar-pick { background: color-mix(in srgb, var(--night) 72%, transparent); border-color: color-mix(in srgb, var(--surface) 14%, transparent); }
.topbar--modes:not(.is-dark) .topbar-search:hover, .topbar--modes:not(.is-dark) .topbar-pick:hover { background: color-mix(in srgb, var(--night) 84%, transparent); }
.topbar--modes .topbar-pick:has(.topbar-pick__select:focus-visible) { outline-color: #fff; }
/* the tabs keep to the room beside the side panel; on a phone the More sheet carries them */
@container topbar (max-width: 900px) { .topbar--modes .sitenav { display: flex; } }
@container topbar (max-width: 700px) { .topbar--modes .topbar-inner { padding: 0 16px; gap: 8px; } .topbar--modes .topbar-right { gap: 8px; } .topbar--modes .topbar-pick { max-width: 112px; padding: 0 16px 0 10px; gap: 6px; } .topbar--modes .sitenav { gap: 10px; } .topbar--modes .sitenav__link { letter-spacing: 0.06em; } }
@media (max-width: 767px) { .topbar--modes .sitenav { display: none; } }
@media (prefers-reduced-motion: reduce) { .topbar::before, .topbar::after { transition: none; } .sitenav__link::after { animation: none; background-position: 30% 50%; } }
@media print { .topbar { display: none; } }
body.presenting .topbar { display: none !important; }
/* The side panel's controls (kit.js shell). The side panel is the one navigation: the dashboard system draws no top bar, so
   what the bar carried sits at the top of the panel, under the app name: the house Google sign-in pill (white marks on the
   panel's charcoal, as docs/SIGN-IN-BUTTON.md gives it on a dark ground), the recut chip (and the year chip) and Search with
   its key, the catalog benefits demo's own sidebar search row ported whole. Cmd/Ctrl+K still opens the search. On a phone the
   panel is not drawn and the More sheet carries the same controls. */
.side-controls { --font-head: "Montserrat", system-ui, sans-serif; --enter: 140ms; --exit: 280ms; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --surface: #fffcf7; --border-strong: rgba(30, 42, 74, 0.15); --on-surface-variant: #3a3632; --radius: 3px; --tempo-deep: #5a6aaa;
  position: relative; z-index: 10; display: grid; gap: 10px; color: #fff; font-family: var(--font-sans, "Inter", system-ui, sans-serif); }
.side-controls[hidden] { display: none; }
.side-controls .signin { justify-self: start; max-width: 100%; }
.side-controls .signin__btn { color: #fff; }
.side-controls .signin__note { position: relative; top: auto; right: auto; width: auto; margin-top: 12px; }
.side-controls .signin__note::before { right: auto; left: 26px; }
.side-controls a:focus-visible, .side-controls button:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.side-chips { display: grid; gap: 8px; min-width: 0; }
/* a wrapper span stands aside for its chips; the locked school chip is itself a span and keeps its own box */
.side-chips > span:not(.topbar-pick) { display: contents; }
.side-controls .topbar-pick { width: 100%; max-width: none; height: 38px; justify-content: space-between; padding: 0 16px 0 12px; border-radius: var(--k-corner, 8px);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.85);
  transition: background-color 420ms ease, border-color 420ms ease, color 420ms ease; }
.side-controls .topbar-pick:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.24); color: #fff; transition-duration: 160ms; }
.side-controls .topbar-pick.is-locked:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
/* a locked chip names one place: the lock sits beside the name, not at the far edge */
.side-controls .topbar-pick.is-locked { justify-content: flex-start; gap: 8px; }
.topbar-pick.is-locked svg { flex: none; }
.side-controls .topbar-pick[hidden] { display: none; }
.side-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--k-corner, 8px); border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer; transition: background-color 420ms ease, border-color 420ms ease, color 420ms ease; }
.side-search:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.24); color: #fff; transition-duration: 160ms; }
.side-search svg { width: 17px; height: 17px; flex: none; }
.side-search span { flex: 1; }
.side-search kbd { font: 500 0.72rem/1 ui-monospace, Menlo, monospace; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.85); }
@media (pointer: coarse), (max-width: 767px) { .side-search kbd { display: none; } }
/* the More sheet on a phone: the same controls, at the sheet's top */
.more-controls { padding: 14px 18px 4px; }
