/* SITE MENU — shared by every public page (markup and links come from site-chrome.js) */
.nav-menu { display: inline-flex; align-items: center; background: none; border: none; height: 40px; padding: 0 10px 0 0; margin-left: -2px; margin-right: -4px; color: var(--ink); cursor: pointer; flex-shrink: 0; }
.nav-menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.nav-menu:hover { color: var(--accent-ink); }
#menu-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(43,54,64,0.28); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s linear 0.2s; }
#menu-scrim.on { opacity: 1; visibility: visible; transition: opacity 0.2s, visibility 0s; }
#menu-panel { position: fixed; z-index: 90; top: var(--nav-h, 62px); left: 20px; width: 280px; background: #ffffff; border: 1px solid var(--border-mid, #cfd6dd); border-top: none; padding: 10px 0 14px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s; }
#menu-panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s, visibility 0s; }
#menu-panel a, #menu-panel button { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 22px; font-family: var(--font); font-size: 17px; font-weight: 400; letter-spacing: 0; text-transform: lowercase; text-align: left; text-decoration: none; color: var(--ink2); background: none; border: none; border-radius: 0; cursor: pointer; transition: color 0.15s, background 0.15s; }
#menu-panel a:hover, #menu-panel button:hover { color: var(--ink); background: var(--surface); }
#menu-panel a.current { color: var(--accent-ink); font-weight: 500; }
#menu-panel hr { border: none; border-top: 1px solid var(--border); margin: 8px 22px; }
#menu-panel { max-height: calc(100dvh - var(--nav-h, 62px)); overflow-y: auto; overscroll-behavior: contain; }
/* iPad and desktop (Oct 31 2026): the same floating rounded card as on phones, instead of a square dropdown hanging off the bar */
@media (min-width: 601px) { #menu-panel { top: calc(var(--nav-h, 62px) + 6px); border-top: 1px solid var(--border-mid, #cfd6dd); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); max-height: calc(100dvh - var(--nav-h, 62px) - 16px); } }
#menu-panel .menu-sub { margin: 0 0 6px 22px; border-left: 1px solid var(--border); }
#menu-panel .menu-sub a { min-height: 36px; padding: 0 16px; font-size: 15px; }
#menu-panel .menu-sub .menu-group { display: flex; align-items: center; min-height: 30px; padding: 6px 16px 0; font-family: var(--font); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); }
#menu-panel .menu-sub a.menu-group:hover { color: var(--accent-ink); background: none; }
@media (max-width: 600px) {
  /* phones (Oct 31 2026): a card with visible edges, not a full-width sheet */
  #menu-panel { top: calc(var(--nav-h, 62px) + 6px); left: 10px !important; right: auto; width: min(250px, calc(100% - 20px)); padding: 6px 0 10px; border: 1px solid var(--border-mid, #cfd6dd); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); max-height: calc(100dvh - var(--nav-h, 62px) - 16px); }
  #menu-panel a, #menu-panel button { padding: 0 18px; min-height: 42px; font-size: 17px; }
  #menu-panel hr { margin: 5px 18px; }

  #menu-panel .menu-sub { margin-left: 18px; }
  #menu-panel .menu-sub a { min-height: 34px; font-size: 15px; padding: 0 14px; }
  #menu-panel .menu-sub .menu-group { min-height: 30px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { #menu-panel, #menu-scrim { transition: none; } }
/* color wheel bubble at the bottom of the menu, and the pop-up it opens (site-chrome.js, Oct 31 2026) */
#menu-panel .menu-wheel { padding: 0; }
/* a plain menu row with its icon (Oct 31 2026: the pill outline was dropped), aligned with the rest */
#menu-panel .wheel-bubble { justify-content: space-between; gap: 10px; color: var(--ink2); }
#menu-panel .wheel-bubble img { order: 2; }

#menu-panel .wheel-bubble img { width: 20px; height: 20px; display: block; transition: transform .2s; position: relative; top: 1px; } /* the wheel alone (no white app-icon square), nudged to sit with lower-case text */
#menu-panel .wheel-bubble:hover img { transform: rotate(15deg); }
html.wheel-open, html.wheel-open body { overflow: hidden; }
.wheel-scrim { position: fixed; inset: 0; z-index: 125; background: rgba(20,26,32,.28); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
.wheel-sheet { position: fixed; z-index: 126; top: calc(var(--nav-h, 62px) + 8px); right: 16px; width: min(420px, calc(100% - 32px)); height: min(610px, calc(100% - var(--nav-h, 62px) - 24px));
  display: flex; flex-direction: column; background: var(--bg, #fff); border: 1px solid var(--border-mid, #cfd6dd); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.16);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .2s ease-out, opacity .2s, visibility 0s linear .2s; }
html.wheel-open .wheel-sheet { transform: none; opacity: 1; visibility: visible; transition: transform .2s ease-out, opacity .2s, visibility 0s; }
html.wheel-open .wheel-scrim { opacity: 1; visibility: visible; transition: opacity .2s, visibility 0s; }
.wheel-sheet iframe { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; display: block; background: var(--bg, #fff); }
.wheel-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-mid, #cfd6dd); border-radius: 50%; background: var(--panel, #fff); color: var(--ink); font: 500 15px var(--font); cursor: pointer; }
.wheel-x:hover { background: var(--surface); }
.wheel-grab { display: none; }
/* iPad and desktop: move by the top strip, resize by the bottom-right corner (site-chrome.js) */
.wheel-move { position: absolute; top: 0; left: 0; right: 48px; height: 26px; z-index: 2; cursor: move; display: flex; align-items: center; justify-content: center; touch-action: none; }
.wheel-move span { width: 40px; height: 4px; border-radius: 2px; background: var(--border-mid, #cfd6dd); }
.wheel-sheet iframe { margin-top: 0; }
.wheel-size { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; z-index: 2; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 0 55%, var(--border-mid, #cfd6dd) 55% 62%, transparent 62% 72%, var(--border-mid, #cfd6dd) 72% 79%, transparent 79%); }
.wheel-dragging iframe { pointer-events: none; }
.wheel-dragging { transition: none !important; user-select: none; }
@media (min-width: 701px) { .wheel-sheet { padding-top: 26px; } }
@media (max-width: 700px) { .wheel-move, .wheel-size { display: none; } }
@media (max-width: 700px) {
  .wheel-sheet { top: calc(var(--nav-h, 62px) + 6px); left: 10px; right: 10px; width: auto; height: min(616px, calc(100% - var(--nav-h, 62px) - 24px)); border-radius: 16px; transform: translateY(-16px); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
  .wheel-grab { display: block; flex: none; width: 36px; height: 4px; margin: 0 auto; padding: 8px 40px 12px; box-sizing: content-box; background: var(--border-mid, #cfd6dd); background-clip: content-box; }
}
@media (prefers-reduced-motion: reduce) { .wheel-sheet, .wheel-scrim { transition: none; } }
/* "study" toggles the course list (site-chrome.js, Oct 31 2026) */
#menu-panel .menu-study { justify-content: space-between; }
#menu-panel .menu-study.current { color: var(--accent-ink); font-weight: 500; }
#menu-panel .menu-study svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
#menu-panel .menu-study[aria-expanded="true"] svg { transform: rotate(180deg); }
#menu-panel .menu-sub[hidden] { display: none; }
/* study course groups fold (site-chrome.js, Oct 31 2026): heading links to the study page, chevron opens the list */
#menu-panel .menu-grow { display: flex; align-items: center; justify-content: space-between; }
#menu-panel .menu-grow .menu-group { flex: 1; width: auto; min-height: 36px; padding: 0 16px; }
#menu-panel .menu-gtog { width: 48px; min-height: 36px; justify-content: center; padding: 0 18px 0 0; margin-left: auto; flex: none; }
#menu-panel .menu-gtog svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
#menu-panel .menu-gtog[aria-expanded="true"] svg { transform: rotate(180deg); }
#menu-panel .menu-gitems[hidden] { display: none; }
/* header icons (Oct 31 2026, David): Instagram as its colored icon on every page except the home page,
   and the bag in the site's navy on every page */
.nav-ig { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; }
.nav-ig svg { width: 24px; height: 24px; display: block; }
.nav-ig:hover svg { transform: scale(1.06); }
nav .nav-cart svg { stroke: var(--accent) !important; }
