/* The Mega Menu dropdown panel, and nothing else.

   Deliberately its own file rather than part of theme.css. Only 29 of this
   site's 58 pages load theme.css, and theme.css is a whole theme -- a global
   reset, body typography, and `html { background: #000 }`. Adding it to the
   pages that never had it in order to reach the menu rules would have
   repainted those pages black, which is a far worse bug than the one being
   fixed. This file styles menu selectors only, so it is safe to add anywhere.
*/
/* The opener on a page that has no header of its own to put it in -- the
   sign-in pages, the error pages. It is the same button every other page
   shows beside its logo, pinned to the corner instead. */
#mega-menu-opener {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.34rem 0.5rem;
  color: #14171c;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}

#mega-menu-opener:hover,
#mega-menu-opener:focus-visible,
#mega-menu-opener[aria-expanded="true"] { color: #0284c7; border-color: #0284c7; }
#mega-menu-opener .menu-opener-arrow { transition: transform 0.18s ease; }
#mega-menu-opener[aria-expanded="true"] .menu-opener-arrow { transform: rotate(180deg); }

/* Colors matched to dashboard.site's own sidenav light theme
   (css/style.css, :root[data-theme="light"]) so the menu looks the same
   across both products. */
/* The Mega Menu panel: a hidden-until-opened dropdown anchored under the
   header, matching dashboard.site's own Mega Menu (css/style.css's
   .sidenav / .mega-menu-grid). It replaces the slide-out drawer that used
   to fly in from the right edge -- the drawer is gone, and the links it
   carried are the links this panel carries. Opened by hovering or
   focusing the logo, or by pressing the menu button; see
   js/site-menu.js's openPanel()/closePanel(). --gwm-header-height is set
   from the header's real measured height, never guessed, because several
   of these pages wrap their header onto a second line at narrow widths. */
#mega-menu {
  display: block;
  position: fixed;
  z-index: 100;
  top: calc(var(--gwm-header-height, 64px) + 0.4rem);
  left: 1rem;
  right: 1rem;
  max-height: calc(100vh - var(--gwm-header-height, 64px) - 1.4rem);
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  padding: 0.85rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  /* Hidden, not merely transparent, so the raw list is never readable or
     tabbable while the panel is closed. */
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#mega-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Real CSS columns, not a grid of separate boxes: one continuous run of
   rows flows top-to-bottom, left column first, the way a newspaper
   column does. The column count is never set by hand -- a 230px target
   width means a narrow screen gets fewer, wider columns and a wide one
   gets more, on its own. */
/* The menu's own first block, full width across the whole panel: the
   drawn tank, the name under it, and one line saying what it is. A real
   link, so it reads and behaves as one. */
.mega-menu-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  width: 100%;
  padding: 1rem 0.75rem 1.1rem;
  margin-bottom: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #14171c;
  text-decoration: none;
}
.mega-menu-feature:hover,
.mega-menu-feature:focus-visible { color: #0284c7; border-color: #0284c7; }
/* The stage the whole fight happens on: the full width of the menu, so
   "drive to the far side" really means the far side of the menu. */
.mega-menu-war {
  position: relative;
  display: block;
  width: 100%;
  height: 72px;
  overflow: hidden;
  /* How far in from each end the tanks sit while they fire, and how far
     a shell really travels. Kept as values here, used by every
     keyframe below, because the two must agree: a shell that travels
     further than the gap flies through the other tank, and one tied to
     the width of the screen can come out as a negative distance on a
     phone and fire backwards. */
  --war-start: 32%;
  --war-shot: clamp(70px, 13vw, 240px);
}

/* A lane is the full width of the stage, and the lane is what drives.
   The tank inside it only ever turns around. Splitting the driving from
   the turning is what lets a tank reverse away while still facing the
   enemy, and then face forward for the run home. */
.war-lane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.war-tank-art { position: absolute; top: 0; display: block; }
.war-tank-left { left: 0; }
.war-tank-right { right: 0; }

/* The shell and the muzzle flash sit at the barrel's tip, inside the
   lane, so they fire from wherever the tank really is. */
.war-shell,
.war-flash {
  position: absolute;
  top: 27px;
  opacity: 0;
  background: currentColor;
}
.war-shell { width: 5px; height: 5px; border-radius: 50%; }
.war-flash { width: 9px; height: 2px; border-radius: 1px; }
.war-shell-left, .war-flash-left { left: 134px; }
.war-shell-right, .war-flash-right { right: 134px; }

/* One full round takes 9 seconds: fire, turn away, drive to the far
   side, turn back, drive home, wait a moment, go again. */
.war-lane-left { animation: war-drive-left 9s ease-in-out infinite; }
.war-lane-right { animation: war-drive-right 9s ease-in-out infinite; }
.war-tank-left { animation: war-turn 9s ease-in-out infinite; }
.war-tank-right { animation: war-turn-mirrored 9s ease-in-out infinite; }
.war-shell-left { animation: war-shell-fly-right 9s linear infinite; }
.war-shell-right { animation: war-shell-fly-left 9s linear infinite; }
.war-flash-left, .war-flash-right { animation: war-flash 9s linear infinite; }

/* The driving. The lane is the width of the menu, so these percentages
   are real distances across the menu itself. */
@keyframes war-drive-left {
  0%, 12% { transform: translateX(var(--war-start)); }
  36%, 44% { transform: translateX(0); }
  68%, 100% { transform: translateX(var(--war-start)); }
}
@keyframes war-drive-right {
  0%, 12% { transform: translateX(calc(-1 * var(--war-start))); }
  36%, 44% { transform: translateX(0); }
  68%, 100% { transform: translateX(calc(-1 * var(--war-start))); }
}

/* The turning. Squeezing flat and opening out the other way is what
   reads as a tank turning on the spot. */
@keyframes war-turn {
  0%, 8% { transform: scaleX(1); }
  10% { transform: scaleX(0.05); }
  12%, 40% { transform: scaleX(-1); }
  42% { transform: scaleX(0.05); }
  44%, 100% { transform: scaleX(1); }
}
@keyframes war-turn-mirrored {
  0%, 8% { transform: scaleX(-1); }
  10% { transform: scaleX(-0.05); }
  12%, 40% { transform: scaleX(1); }
  42% { transform: scaleX(-0.05); }
  44%, 100% { transform: scaleX(-1); }
}

/* The shot, fired while both tanks are still in place facing each
   other. The two shells pass each other in the middle. */
@keyframes war-shell-fly-right {
  0%, 1% { transform: translateX(0); opacity: 0; }
  2% { opacity: 1; }
  6% { transform: translateX(var(--war-shot)); opacity: 1; }
  6.5%, 100% { opacity: 0; }
}
@keyframes war-shell-fly-left {
  0%, 1% { transform: translateX(0); opacity: 0; }
  2% { opacity: 1; }
  6% { transform: translateX(calc(-1 * var(--war-shot))); opacity: 1; }
  6.5%, 100% { opacity: 0; }
}
@keyframes war-flash {
  0%, 0.8% { opacity: 0; }
  1.5% { opacity: 1; }
  4%, 100% { opacity: 0; }
}

/* Between a wide screen and a phone the menu is narrow enough that the
   wide spacing would have the two tanks sitting on top of each other
   while they fire, so they start closer in. */
@media (max-width: 1000px) {
  .mega-menu-war { --war-start: 15%; --war-shot: clamp(60px, 16vw, 180px); }
}

/* A visitor who has asked their computer for less movement gets none of
   it: both tanks sit still, facing each other, and nothing fires. */
@media (prefers-reduced-motion: reduce) {
  .war-lane-left, .war-lane-right, .war-tank-left, .war-tank-right,
  .war-shell, .war-flash { animation: none; }
  .war-lane-left { transform: translateX(var(--war-start)); }
  .war-lane-right { transform: translateX(calc(-1 * var(--war-start))); }
  .war-tank-right { transform: scaleX(-1); }
  .war-shell, .war-flash { opacity: 0; }
}

.mega-menu-feature-title {
  font-family: "Brand Marker", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.mega-menu-feature-note { font-size: 0.82rem; color: #5a6170; }
.mega-menu-feature:hover .mega-menu-feature-note { color: inherit; }

.mega-menu-grid {
  /* Three columns under the block above, rather than however many happen
     to fit, so the panel reads the same way every time it is opened. */
  columns: 3;
  column-gap: 1.75rem;
  width: 100%;
}

.mega-menu-grid > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu-grid li {
  break-inside: avoid;
}

#mega-menu ul { list-style: none; margin: 0; padding: 0; }

#mega-menu a {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #14171c;
  display: block;
  width: 100%;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* Step 1281: let a long course name wrap onto a second line instead of being
     cut off with an ellipsis, so the whole name is always visible. */
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

#mega-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mega-menu-icon {
  flex: none;
  width: 1.4rem;
  text-align: center;
  line-height: 1;
  /* The icon is a drawing now rather than a character, so the box is
     lined up on the drawing's own middle instead of on a text baseline
     that no longer exists. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mega-menu-icon svg { display: block; }

.mega-menu-label { overflow-wrap: anywhere; }

/* One real practice question, sitting in the menu under the Practice
   Tests link. break-inside keeps the whole card in one column -- the
   menu flows into columns, and a card split across two is unreadable. */
.menu-quiz-item { break-inside: avoid; page-break-inside: avoid; list-style: none; }
/* Starts a new column, so a link meant to head a column really does. */
.menu-col-break { break-before: column; }
@media (max-width: 700px) { .menu-col-break { break-before: auto; } }
.menu-quiz {
  border: 1px solid #d7dbe3;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  margin: 0.35rem 0 0.2rem;
  background: #f8fafc;
}
.menu-quiz-kicker {
  margin: 0 0 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5a6170;
}
.menu-quiz-q { margin: 0 0 0.2rem; font-size: 0.86rem; font-weight: 600; color: #14171c; line-height: 1.35; }
/* The question is a link out to a real search that explains the topic,
   so it is underlined like one rather than looking like plain text. */
/* #mega-menu a above turns every link in the menu into a padded block
   with its own size, which would push the question out of line, so the
   id is repeated here to win and put the question back inline. */
#mega-menu .menu-quiz-q a, .menu-quiz-q a {
  display: inline;
  width: auto;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: #14171c;
  text-decoration: underline;
  text-decoration-color: #9aa3b2;
  text-underline-offset: 2px;
}
#mega-menu .menu-quiz-q a:hover, #mega-menu .menu-quiz-q a:focus-visible,
.menu-quiz-q a:hover, .menu-quiz-q a:focus-visible {
  background: none;
  color: #0284c7;
  text-decoration-color: #0284c7;
}
.menu-quiz-hint { margin: 0 0 0.5rem; font-size: 0.72rem; line-height: 1.3; color: #5a6170; }
.menu-quiz-answers { display: flex; flex-direction: column; gap: 0.3rem; }
.menu-quiz-answer {
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  line-height: 1.3;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d7dbe3;
  border-radius: 6px;
  background: #fff;
  color: #14171c;
  cursor: pointer;
}
.menu-quiz-answer:hover:not(:disabled) { border-color: #0284c7; color: #0284c7; }
.menu-quiz-answer:disabled { cursor: default; opacity: 0.85; }
.menu-quiz-answer.is-right { border-color: #16a34a; background: #dcfce7; color: #14532d; opacity: 1; }
.menu-quiz-answer.is-wrong { border-color: #b91c1c; background: #fee2e2; color: #7f1d1d; opacity: 1; }
.menu-quiz-result { margin: 0.5rem 0 0; font-size: 0.8rem; line-height: 1.35; }
.menu-quiz-result.is-right { color: #15803d; }
.menu-quiz-result.is-wrong { color: #b91c1c; }
.menu-quiz-foot { margin: 0.55rem 0 0; display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.menu-quiz-foot a { font-size: 0.8rem; font-weight: 700; color: #0284c7; text-decoration: none; }
.menu-quiz-next {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  color: #5a6170;
  text-decoration: underline;
  cursor: pointer;
}
.menu-quiz-next:hover { color: #0284c7; }

#mega-menu a:hover { color: #2f5fd1; background: rgba(91, 141, 239, 0.08); }

/* The page you are already on. */
#mega-menu a.active { color: #2f5fd1; font-weight: 600; }

/* Step 1296: a thin divider row in the side menu, sitting where a link was
   removed. It is not a link and takes no click. */
#mega-menu li.menu-sep { padding: 0.4rem 1.25rem; list-style: none; }
#mega-menu li.menu-sep hr { border: none; border-top: 1px solid #d7dbe3; margin: 0; }

/* Step 1257: the "Weekend Classes" group header -- a plain bold label, not a
   link, with the class pages indented beneath it. */
#mega-menu li.menu-header { padding: 0.65rem 1.25rem 0.25rem; }
#mega-menu li.menu-header span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* Step 1268: a collapsible group header -- clicking it hides or shows the
   indented links beneath it, so a long section stays tidy. */
#mega-menu li.menu-header.menu-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  /* Step 1281: the "Classes" row reads like a normal menu link (its label is a
     link to the Classes intro page) with the caret toggle beside it. The link
     and caret carry their own padding, so the row itself has none. */
  padding: 0;
}
#mega-menu li.menu-header.menu-collapsible span,
#mega-menu li.menu-header.menu-collapsible a.menu-header-link {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #14171c;
}
#mega-menu li.menu-header.menu-collapsible a.menu-header-link {
  flex: 1 1 auto;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
}
#mega-menu li.menu-header.menu-collapsible span { padding: 0.65rem 1.25rem; }
#mega-menu li.menu-header.menu-collapsible a.menu-header-link:hover { color: #2f5fd1; }
#mega-menu li.menu-header.menu-collapsible .menu-caret {
  cursor: pointer;
  padding: 0.65rem 1rem;
  flex: 0 0 auto;
}
#mega-menu li.menu-header.menu-collapsible .menu-caret::before {
  content: "\25BE"; /* ▾ */
  font-size: 0.7rem;
  color: #64748b;
}
#mega-menu li.menu-header.menu-collapsible.collapsed .menu-caret::before {
  content: "\25B8"; /* ▸ */
}

/* Step 1278: a program that has semesters is itself collapsible -- the link
   still navigates, and a caret beside it toggles just its semesters. */
#mega-menu li.menu-child.menu-collapsible-parent {
  display: flex;
  align-items: center;
}
#mega-menu li.menu-child.menu-collapsible-parent a { flex: 1 1 auto; }
#mega-menu li.menu-child.menu-collapsible-parent .menu-caret {
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 1rem;
  flex: 0 0 auto;
}
#mega-menu li.menu-child.menu-collapsible-parent .menu-caret::before {
  content: "\25BE"; /* ▾ expanded */
  font-size: 0.7rem;
  color: #64748b;
}
#mega-menu li.menu-child.menu-collapsible-parent.collapsed .menu-caret::before {
  content: "\25B8"; /* ▸ collapsed */
}
#mega-menu li.menu-child.menu-collapsible-parent .menu-caret:hover::before { color: #2f5fd1; }

/* Step 1256/1257: the school class pages sit indented under the Weekend
   Classes header, so they read as one group beneath it, with a soft line up
   the left to tie them together. */
#mega-menu li.menu-child a {
  padding-left: 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  border-left: 2px solid rgba(91, 141, 239, 0.25);
  margin-left: 0.75rem;
  width: auto;
}
#mega-menu li.menu-child a:hover { color: #2f5fd1; }

/* Step 1258: a second indent level, for the Idea to Income semesters under the
   Idea to Income program link. */
#mega-menu li.menu-grandchild a {
  padding-left: 2.25rem;
  font-size: 0.82rem;
  color: #64748b;
  border-left: 2px solid rgba(91, 141, 239, 0.18);
  margin-left: 1.25rem;
  width: auto;
}
#mega-menu li.menu-grandchild a:hover { color: #2f5fd1; }

/* js/site-menu.js's renderAuthMenu() writes these two directly into the
   "Signed in as..." <li> when a visitor is signed in -- a bare <span> and a
   second <a> that need their own rules, since #mega-menu a above only
   covers a real <a> and this <span> matched nothing at all, sitting flush
   against the menu's left edge with zero padding. A handful of pages
   already carry their own copy of this exact fix in a hand-written inline
   <style> block; most others load only this shared file and never got it. */
.side-menu-account {
  font: inherit;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: #5a6170;
  display: block;
  text-transform: none;
  letter-spacing: normal;
}

.side-menu-tier-upsell {
  font: inherit;
  display: block;
  padding: 0 1.25rem 0.65rem;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: normal;
  /* Black, asked for directly on 2026-11-05. This is the same near-black the
     sibling header links already use (#auth-menu-signin, #auth-menu-signup,
     the profile and notes links), so the tier link reads as ordinary text
     beside them rather than as the one pure-black thing in the menu. It keeps
     its bold, which is the only thing still setting it apart. */
  color: #14171c !important;
  font-weight: 700 !important;
}


/* Step 1312: the "Menu" opener after the name, and Sign Up/Sign
   In/Account moved off the dropdown entirely onto a real, always-visible
   area at the right of the header -- on direct instruction, account
   state should always be in view, not something to go looking for.
   js/site-menu.js's ensureBurger()/ensureAuthArea() build these; this is
   the one real place they're styled, same as every other menu rule in
   this file (hardcoded colors, not a page's own CSS variables -- most of
   this site's pages never define any). */
/* The real way into the menu: a bordered button holding the three lines
   everybody reads as "menu" and a small down arrow saying it opens
   something rather than going somewhere. It sits just before the logo.
   The border is the point -- a bare icon or a bare word reads as
   decoration, and this used to open from the logo itself, which told a
   visitor nothing. */
#menu-burger.menu-opener {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #14171c;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.34rem 0.5rem;
  margin-right: 0.7rem;
  cursor: pointer;
  line-height: 1;
}
#menu-burger.menu-opener:hover,
#menu-burger.menu-opener:focus-visible,
#menu-burger.menu-opener[aria-expanded="true"] {
  color: #0284c7;
  border-color: #0284c7;
}
/* The arrow turns over when the menu is really open, so the button says
   which way it is going to go. */
#menu-burger.menu-opener .menu-opener-arrow { transition: transform 0.18s ease; }
#menu-burger.menu-opener[aria-expanded="true"] .menu-opener-arrow { transform: rotate(180deg); }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.85rem;
}
/* The four links in this area -- Sign up, Sign in, Account and My Notes --
   all wear one rule, so a new one cannot be added later and come out looking
   like a raw browser link. My Notes was exactly that: it had no rule of its
   own and rendered underlined and blue beside three styled neighbours.

   They are normal weight on purpose. Only the tier link below stays bold, so
   that the one thing worth noticing in this area is the only bold thing in
   it.

   The :not(.header-tier-upsell) is load-bearing and must not be dropped. The
   tier link is written into #auth-menu-signup by js/site-menu.js, so it is an
   <a> inside that id and "#auth-menu-signup a" outranks ".header-tier-upsell"
   on specificity -- an id plus a type beats a single class. Without the :not,
   this rule silently takes the tier's bold and its blue away. */
#auth-menu-signin a:not(.header-tier-upsell),
#auth-menu-signup a:not(.header-tier-upsell),
#auth-menu-profile,
#auth-menu-notes {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  color: #14171c;
  text-decoration: none;
}
#auth-menu-signin a:not(.header-tier-upsell):hover,
#auth-menu-signup a:not(.header-tier-upsell):hover,
#auth-menu-profile:hover,
#auth-menu-notes:hover { color: #2f5fd1; }

/* "Signed in as X" + the tier-upsell link, compact and inline for this
   header-right context -- the mega-menu dropdown no longer carries
   these at all, so there is no shared selector to collide with. */
.header-account-label {
  font: inherit;
  font-size: 0.85rem;
  color: #5a6170;
}
.header-tier-upsell {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  /* Black, asked for directly on 2026-11-05, and the same near-black its
     neighbours in the header already use. The :not(.header-tier-upsell) in the
     rule above is still load-bearing for the bold and the font size, so do not
     drop it just because the colour now matches. */
  color: #14171c;
  text-decoration: none;
  margin-left: 0.4rem;
}

/* On a phone the logo is the only way to open the menu (the header nav and
   the secondary bar are both hidden at these widths), so the panel gets
   touch-sized rows and a single column it can scroll. */
@media (max-width: 700px) {
  #mega-menu {
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.6rem;
  }
  .mega-menu-grid { columns: 1; }
  .mega-menu-feature { padding: 0.8rem 0.6rem 0.9rem; }
  /* On a phone the stage is short and the tanks start closer in, so a
     drive to the far side still really crosses the menu. */
  /* On a phone the menu is narrow, so the tanks start much closer to
     the middle -- at the wide spacing they would sit on top of each
     other -- and a shell has a shorter gap to cross. */
  .mega-menu-war { height: 62px; --war-start: 6%; --war-shot: clamp(40px, 20vw, 110px); }
  .war-tank-art { width: 104px; height: 56px; }
  .war-shell-left, .war-flash-left { left: 106px; }
  .war-shell-right, .war-flash-right { right: 106px; }
  #mega-menu a { padding: 0.8rem 0.75rem; font-size: 1rem; }
  /* On a phone the logo and the sign-in area were fighting for one
     line, which squeezed both until the words wrapped mid-label. The
     header is allowed to wrap here and the sign-in area takes a whole
     second line of its own, lined up to the right under the logo. */
  header .bay { flex-wrap: wrap; row-gap: 0.4rem; }
  .header-right {
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: flex-end;
    gap: 0.9rem;
    font-size: 0.82rem;
    order: 10;
  }
  .header-account-label { font-size: 0.78rem; overflow-wrap: anywhere; }
  .header-tier-upsell { display: none; }
}




/* ---------------------------------------------------------------------------
   The shared side list: a heading, uppercase group labels, and one row per
   link with a short sentence under it saying what the link is.

   Two menus are built from this one family: the menu of price and policy
   pages (css/estate-policy.css styles its box, js/policy-side-menu.js fills
   it) and the account menu (js/account-sidebar.js). They looked different
   before and there is no reason for that, so there is one list here and not
   two copies to drift apart.

   Every colour falls back twice, because the price pages load
   css/budget-machine.css and the account pages do not: the Budget Machine
   variable first, then the account pages' own variable, then a real value.

   Nothing here fixes a menu to the screen and nothing gives it a scroll area
   of its own, on the owner's instruction: a longer list makes the page longer
   and the page is what scrolls.
   --------------------------------------------------------------------------- */
.side-list-heading {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.side-list-group {
  margin: 0.9rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bm-muted, var(--text-muted, #64748b));
}
.side-list-group:first-of-type { margin-top: 0; }
.side-list-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.side-list-items li {
  margin: 0 0 0.6rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--bm-border, var(--border-color, #d7dbe3));
}
.side-list-items li.is-here { border-left-color: var(--bm-accent, var(--accent-blue, #2f5fd1)); }
.side-list-items a,
.side-list-items span[aria-current] {
  display: block;
  font-family: var(--bm-font, inherit);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  color: var(--bm-accent, var(--accent-blue, #2f5fd1));
}
.side-list-items a:hover { text-decoration: underline; }
.side-list-items li.is-here span[aria-current] { color: var(--bm-text, var(--text-dark, #1f2933)); }
.side-list-what {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--bm-muted, var(--text-muted, #64748b));
}

/* The account menu's own box. It used to be `position: sticky` with a
   `max-height` and `overflow-y: auto`, so it was pinned under the header and
   scrolled inside itself once it grew past the window. Both are gone on the
   owner's instruction. The 23 pages that carry this menu each had their own
   copy of these rules in their own <style> block, in seven drifted versions;
   this is the one copy now. */
.account-sidebar {
  flex: 0 0 25%;
  box-sizing: border-box;
  position: static;
  padding: 1.1rem;
  border: 1px solid var(--bm-border, var(--border-color, #d7dbe3));
  border-radius: var(--radius-5, 6px);
  background: var(--white, #fff);
  box-shadow: var(--shadow-warm-md, none);
  font-size: 0.9rem;
}
/* These pages style the bare `nav` element as a flex row for the header at the
   top, which would lay the heading, the group labels and the rows out side by
   side. Saying block here is what stops that. */
.account-sidebar-nav { display: block; }

/* The account menu has no dropdowns: every link is shown. The rules for the
   button and its little arrow went with them. */

@media (max-width: 900px) {
  /* Stacks above the content, still fully open, still no scroll area of its
     own -- which is what it already did before, now said once. */
  .account-sidebar { flex: 1 1 auto; width: 100%; }
}

/* The levers a page holds, under what the page does, in the side menu of the
   pages about a price and the policies behind it. Two halves on purpose: the
   line above says what the page does, this one says what a reader can change
   on it. Required by the menu rule in CLAUDE.md. */
.side-list-levers {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bm-muted, #6b7280);
  font-style: italic;
}
