/* ═══════════════════════════════════════════════════════════════════════════
   header.css — PRISM unified header + navbar styles  (v3 — refined)
   Covers: landing_header.html + app_navbar.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --bg-primary:      #0D1117;
  --bg-surface:      #111827;
  --bg-elevated:     #1a2540;
  --border:          rgba(255,255,255,0.08);
  --border-strong:   rgba(255,255,255,0.12);
  --accent-blue:     #4F6EF7;
  --accent-blue-dim: rgba(79,110,247,0.12);
  --accent-purple:   #7C6AF7;
  --text-primary:    #f1f5f9;
  --text-secondary:  #8faac8;
  --text-muted:      #4e6280;
  --radius-btn:      8px;
  --radius-card:     12px;
  --radius-dropdown: 10px;
  --nav-height:      65px;    /* matches --topbar-height in style.css */
  --brand-height:    65px;   /* matches --header-height in style.css (logo is 36px) */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);
  --transition:      140ms var(--ease-in-out);
  --transition-slow: 240ms var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.lh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 100px;
  background: #172340;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.lh-header.scrolled {
  border-bottom-color: var(--border-strong);
  box-shadow: 0 1px 0 rgba(79,110,247,0.06), 0 4px 24px rgba(0,0,0,0.35);
}

.lh-inner {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 2rem;
}

/* Brand */
.lh-brand {
  display: flex;
  align-items: center;
  /* gap: 10px; */
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.lh-brand:hover { opacity: 0.85; }

.lh-logo {
  height: 100px;
  width: auto;
  display: block;
}

.lh-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.lh-brand-name {
  font-size: var(--fs-subhead);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.lh-brand-tagline {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Center nav */
.lh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.lh-nav-link {
  position: relative;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.lh-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--accent-blue);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--transition), transform var(--transition);
}

.lh-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.lh-nav-link:hover::after {
  opacity: 0.5;
  transform: scaleX(1);
}

.lh-nav-link.active {
  color: var(--text-primary);
}

.lh-nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.lh-nav-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 6px 15px;
  border: 1.5px solid rgba(79,110,247,0.5);
  border-radius: 20px;
  margin-left: 8px;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.lh-nav-demo:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 18px rgba(79,110,247,0.35);
  transform: translateY(-1px);
}

.lh-nav-demo:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Right actions */
.lh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 7px 18px;
  border-radius: var(--radius-btn);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), border-color var(--transition),
              transform var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.lh-btn:active { transform: scale(0.97); }

.lh-btn-ghost {
  background: transparent;
  border-color: rgba(79,110,247,0.4);
  color: var(--accent-blue);
}

.lh-btn-ghost:hover {
  background: rgba(79,110,247,0.08);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.lh-btn-primary {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  font-weight: 600;
}

.lh-btn-primary:hover {
  background: #3d5ae0;
  border-color: #3d5ae0;
  box-shadow: 0 0 18px rgba(79,110,247,0.3), 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

/* Logged-in/out toggling — driven by JS setting data-logged-in on <html> */
.logged-in-only  { display: none !important; }
.logged-out-only { display: inline-flex; }
html[data-logged-in] .logged-in-only  { display: inline-flex !important; }
html[data-logged-in] .logged-out-only { display: none !important; }

/* Hamburger */
.lh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.lh-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background var(--transition), transform 200ms var(--ease-out);
}

.lh-hamburger:hover span { background: var(--text-primary); }

/* Mobile menu panel */
.lh-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,16,30,0.98);
  border-top: 1px solid var(--border);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-out), padding 300ms var(--ease-out);
}

.lh-mobile-menu.open {
  max-height: 400px;
  padding: 8px 0 16px;
}

.lh-mobile-link {
  display: flex;
  align-items: center;
  padding: 13px 24px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  min-height: 48px;
  transition: color var(--transition), background var(--transition);
}

.lh-mobile-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.lh-mobile-cta { color: var(--accent-blue); font-weight: 600; }

.lh-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

/* ── Mobile breakpoint ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .lh-inner { padding: 0 20px; }
  .lh-nav, .lh-actions { display: none; }
  .lh-hamburger { display: flex; }
  .lh-mobile-menu { display: flex; }
  .lh-header { height: auto; min-height: 60px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   APP NAVBAR — ROW 1: Brand bar
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Removed: .an-brand-bar / .an-brand-left / .an-brand-link / .an-brand-logo
   / .an-brand-name / .an-brand-right  — superseded by .an-toolbar layout.    */

/* Notification bell */
.an-notif-wrap { position: relative; }

.an-notif-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 7px;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}

.an-notif-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.an-notif-btn:focus-visible {
  outline: 2px solid rgba(79,110,247,0.5);
  outline-offset: 2px;
}

.an-notif-icon { width: 18px; height: 18px; }

/* Feedback button */
.an-feedback-btn {
  font-size: var(--fs-xs);
  font-weight: 500;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  background: none;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition),
              background var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.an-feedback-btn:hover {
  border-color: rgba(79,110,247,0.5);
  color: var(--text-primary);
  background: rgba(79,110,247,0.06);
  box-shadow: 0 0 0 1px rgba(79,110,247,0.1);
}

.an-feedback-btn:active { transform: scale(0.97); }

/* Streak chip */
.an-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 2px;
  background: none;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms;
  text-decoration: none;
  color: #94a3b8;
}
.an-streak-chip:hover { background: rgba(249, 115, 22, 0.1); color: #fb923c; }
.an-streak-fire {
  flex-shrink: 0;
  display: block;
}
.an-streak-count {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: inherit;
  min-width: 14px;
  text-align: left;
  transition: color 200ms;
}
.an-streak-chip[data-active="true"] {
  color: #fb923c;
}
.an-streak-chip[data-active="true"]:hover {
  background: rgba(249, 115, 22, 0.12);
}

/* Avatar */
.an-avatar-wrap { position: relative; }

.an-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.an-avatar:hover {
  border-color: rgba(79,110,247,0.6);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.18);
  transform: scale(1.05);
}

/* MVP badge */
.an-mvp-badge {
  font-size: var(--fs-xss);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 8px;
  text-transform: uppercase;
}

/* ── Profile dropdown ────────────────────────────────────────────────── */
.an-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-dropdown);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 16px 40px rgba(0,0,0,0.12);
  z-index: 300;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  pointer-events: none;
}

.an-profile-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.an-pd-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.an-pd-username {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.an-pd-section { padding: 4px 6px; }

.an-pd-item {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 9px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #1e293b;
  background: none;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
  font-family: inherit;
}

.an-pd-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.an-pd-item--danger { color: #ef4444; }

.an-pd-item--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.an-pd-icon {
  width: 28px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #64748b;
}

.an-pd-item--danger .an-pd-icon { color: #ef4444; }
.an-pd-item--danger:hover .an-pd-icon { color: #dc2626; }

.an-pd-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 3px 0;
}

/* Admin badge inside dropdown */
.an-admin-badge {
  margin-left: auto;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(99,102,241,0.08);
  color: #6366f1;
  padding: 2px 7px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP NAVBAR — ROW 2: Nav bar
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Removed: .an-nav-bar and all .an-nav-left / .an-nav-home / .an-nav-btn /
   .an-nav-file-wrap / .an-file-dropdown / .an-fd-item / .an-fd-divider /
   .an-nav-center / .an-nav-right rules — superseded by .an-toolbar layout.
   Tab + dropdown styles for the new layout live further below.            */

/* CENTER tabs */
.an-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  overflow: visible;
}

.an-tab {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #7e9fc4;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  border-radius: 6px;
  padding: 4px 8px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.an-tab:hover {
  color: #c8ddf0;
  font-weight: 600;
  background: none;
  transform: none;
}

.an-tab:active { transform: scale(0.97); }

.an-tab.active,
.an-tab.tsw-active {
  font-weight: 700;
  color: #fff;
}

/* Active: thin bottom border only */
.an-tab.active::after,
.an-tab.tsw-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}

/* ── Removed: .an-nav-right block (margin/dropdown/menu-item) and the
   .an-brand-right .button auth-button styles — both scoped to dead wrappers
   (.an-nav-right / .an-brand-right) that were replaced by .an-toolbar.    */

/* ═══════════════════════════════════════════════════════════════════════════
   FOCUS VISIBLE — keyboard accessibility
   ═══════════════════════════════════════════════════════════════════════════ */

.an-tab:focus-visible,
.an-nav-btn:focus-visible,
.an-fd-item:focus-visible,
.an-pd-item:focus-visible,
.lh-nav-link:focus-visible,
.lh-btn:focus-visible {
  outline: 2px solid rgba(79,110,247,0.6);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED APPLICATION TOOLBAR  (replaces .an-brand-bar + .an-nav-bar)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Override global layout variables when toolbar is present ─────────── */
:root:has(.an-toolbar) {
  --header-height: 0px;
  --topbar-height: 65px;  /* must match .an-toolbar { height } below */
  --wab-height: 0px;       /* Workspace Action Bar — 0 unless overridden per-mode */
}

/* WAB is visible in practice + learn modes — claim its height in layout calc */
body.practice-mode,
body.learn-mode-active {
  --wab-height: 48px;
}

/* ── Toolbar shell ────────────────────────────────────────────────────── */
.an-toolbar {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: 65px;
  min-height: 65px;
  background: #172340;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 0;
}

/* Accent line removed — clean flat header */
.an-toolbar::before {
  display: none;
}

/* ── LEFT region ──────────────────────────────────────────────────────── */
.an-tl-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  min-width: 0;
}

/* Logo */
.an-tl-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0 4px;
  border-radius: 6px;
  transition: opacity var(--transition);
}

.an-tl-logo-link:hover { opacity: 0.82; }

.an-tl-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Brand text next to logo */
.an-tl-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.an-tl-brand-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.an-tl-brand-sub {
  font-size: var(--fs-xss);
  font-weight: 500;
  color: rgba(148, 163, 184, 0.9);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.02rem;
}

/* Thin vertical separator between logo and workspace */
.an-tl-sep {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 8px;
  flex-shrink: 0;
}

/* ── CENTER region ────────────────────────────────────────────────────── */
.an-tl-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: none; /* let children handle events */
}

.an-tl-center > * {
  pointer-events: auto;
}

/* The .an-tabs already has styles — just tighten them for toolbar context */
.an-toolbar .an-tabs {
  background: transparent;  
  border-color: transparent;
  padding: 2px;
}

.an-toolbar .an-tab {
  padding: 10px;
  font-size: var(--fs-md);
  font-weight: 500;
}

/* ── RIGHT region ─────────────────────────────────────────────────────── */
.an-tl-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* All direct .menu children in the right region need relative positioning for dropdowns */
.an-tl-right .menu {
  position: relative;
}

/* Generic icon button (Help, Notifications when bare) */
.an-tl-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  position: relative;
  flex-shrink: 0;
}

.an-tl-icon-btn:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

/* Primary CTA — Simulate */
.an-tl-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  border-radius: 7px;
  padding: 5px 13px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(79,110,247,0.28);
  transition: background var(--transition), box-shadow var(--transition),
              transform var(--transition), border-color var(--transition);
}

.an-tl-cta:hover {
  background: #3d5ae0;
  border-color: #3d5ae0;
  box-shadow: 0 0 16px rgba(79,110,247,0.4), 0 2px 8px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.an-tl-cta:active {
  transform: scale(0.97) translateY(0);
  box-shadow: none;
}

.an-tl-cta-icon {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  fill: #fff;
}

/* Thin vertical divider between right action groups */
.an-tl-vsep {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Help dropdown ────────────────────────────────────────────────────── */
.an-help-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #0f1c2e;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-dropdown);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    0 16px 48px rgba(0,0,0,0.5);
  z-index: 400;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.975);
  transform-origin: top right;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
  pointer-events: none;
  padding: 6px;
}

.an-help-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Override notif-btn on the toolbar to use icon-btn sizing */
.an-toolbar .an-notif-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
}

/* ── Toolbar focus-visible ────────────────────────────────────────────── */
.an-tl-icon-btn:focus-visible,
.an-tl-cta:focus-visible {
  outline: 2px solid rgba(79,110,247,0.6);
  outline-offset: 2px;
}

/* ── Auth buttons in toolbar context ─────────────────────────────────── */
.an-tl-right .button.ghost {
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
}

.an-tl-right .button.ghost:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
  color: #f1f5f9;
}

.an-tl-right .button.primary {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--accent-blue);
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(79,110,247,0.3);
  transition: background var(--transition), box-shadow var(--transition),
              transform var(--transition);
}

.an-tl-right .button.primary:hover {
  background: #3d5ae0;
  box-shadow: 0 0 16px rgba(79,110,247,0.4);
  transform: translateY(-1px);
}

/* ── Profile dropdown — anchor to right from toolbar ─────────────────── */
.an-toolbar .an-profile-dropdown {
  top: calc(100% + 8px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED SIMPLE HEADER  (.header from style.css)
   Extra modifier + page-layout helpers used by standalone pages
   that include _header.html (feedback, legacy pages, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wide-padding variant used by _header.html on non-canvas pages.
   Overrides style.css's default `padding: 0 1.4rem` with the wider 45px
   gutter that was previously written as an inline style on the <header>. */
.header--wide {
  padding: 0 45px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE-LEVEL LAYOUT HELPERS
   Body-class scoped rules that were previously written as inline <style>
   blocks inside individual templates. Centralising them here means every
   standalone page that loads header.css gets them for free.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Roadmap standalone page — fills viewport below the toolbar */
body.page-roadmap {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-roadmap .an-toolbar {
  flex-shrink: 0;
}

body.page-roadmap #roadmap-view {
  flex: 1;
  min-height: 0;
  overflow: hidden;   /* inner panels scroll individually */
}
