/* The one Therapy menu (Nov 2026).
   Body markup: templates/_partials/therapy_menu_body.html (.tsm-*).
   Shells: #brandMenu (header dropdown) and #tsbbMnSheet (bottom-bar sheet)
   both get this look, so the two never differ.

   Look = the header's night half (therapy_head_cream.html, /map, /schedule
   hero): night slate, stone text, condensed Archivo caps, DM Serif italic
   notes, teal for the top line, underlines and accents. Square corners,
   hairline rows with a go-arrow. No row numbers, no orange (Sam, 8 Nov
   2026: "too much orange", "remove the little numbers"). No cream/yellow
   paper (Sam, 8 Nov 2026: "looks yellow", "looks old"). */

#brandMenu.brand-menu, #tsbbMnSheet[data-tone="night"]{
  --tsm-night:#13161B;
  --tsm-night-2:#1A1E24;
  --tsm-stone:#F2F1EE;
  --tsm-stone-dim:rgba(242,241,238,.62);
  --tsm-stone-faint:rgba(242,241,238,.40);
  --tsm-line:rgba(242,241,238,.14);
  --tsm-line-soft:rgba(242,241,238,.08);
  --tsm-teal:#1F8C8C;
  --tsm-teal-lt:#6FAFAE;
  --tsm-display:'Archivo','Hanken Grotesk',sans-serif;
  --tsm-serif:'DM Serif Display',Georgia,serif;
  --tsm-sans:'Hanken Grotesk',system-ui,sans-serif;
}

/* ── Shells ─────────────────────────────────────────────────────────── */
#brandMenu.brand-menu{
  background:var(--tsm-night);
  color:var(--tsm-stone);
  border:1px solid var(--tsm-line);
  border-top:2px solid var(--tsm-teal);
  border-radius:0;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.7);
  font-family:var(--tsm-sans);
  padding:6px 22px calc(20px + env(safe-area-inset-bottom,0));
}
@media (min-width:768px){
  #brandMenu.brand-menu{
    width:400px; max-width:calc(100vw - 36px); border-radius:0;
    box-shadow:0 30px 60px -20px rgba(0,0,0,.7);
  }
}

#tsbbMnSheet[data-tone="night"]{
  background:var(--tsm-night);
  color:var(--tsm-stone);
  border-top:2px solid var(--tsm-teal);
  border-radius:20px 20px 0 0;
  height:auto; max-height:min(82vh, 660px);
  box-shadow:0 -24px 60px -20px rgba(0,0,0,.85);
}
/* Head (label + title + X) comes from therapy-bottom-bar.css, shared by
   every sheet (Sam, 9 Nov 2026: one style for all slide-ups). */
#tsbbMnSheet[data-tone="night"] .tsbb-mn-list{ display:block; padding:0 22px 34px; }  /* clears the Events badge crest */

/* ── Body ───────────────────────────────────────────────────────────── */
.tsm{ display:flex; flex-direction:column; font-family:var(--tsm-sans); color:var(--tsm-stone); }
.tsm *{ box-sizing:border-box; }
.tsm a{ text-decoration:none; -webkit-tap-highlight-color:transparent; }

.tsm-label{
  margin:22px 0 10px;
  font-size:10.5px; font-weight:700; letter-spacing:.24em; text-transform:uppercase;
  color:var(--tsm-stone-faint);
}

/* Main rows: EVENTS  What's on  → */
.tsm-tiles{ display:flex; flex-direction:column; }
.tsm-tile{
  display:flex; align-items:baseline; gap:14px;
  padding:14px 0 13px;
  border-bottom:1px solid var(--tsm-line-soft);
  color:var(--tsm-stone);
}
.tsm-tx{ flex:1; min-width:0; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; }
.tsm-tile b{
  font-family:var(--tsm-display); font-stretch:72%; font-weight:800;
  font-size:38px; line-height:.92; letter-spacing:.005em; text-transform:uppercase;
}
.tsm-tile small{
  font-family:var(--tsm-serif); font-style:italic; font-size:15px;
  color:var(--tsm-stone-dim);
}
.tsm-go{
  flex-shrink:0; align-self:center;
  font-size:18px; color:var(--tsm-stone-faint);
  transition:transform .18s, color .18s;
}
.tsm-tile:hover .tsm-go, .tsm-tile:focus-visible .tsm-go{ color:var(--tsm-teal-lt); transform:translateX(4px); }
.tsm-tile:hover b, .tsm-tile:focus-visible b{ color:#fff; }
.tsm-tile:focus-visible{ outline:none; }
.tsm-tile:active b{ color:var(--tsm-teal-lt); }

/* Find a night: plain caps links with a teal underline. */
.tsm-chips{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.tsm-chip{
  display:inline-flex; align-items:center; gap:7px;
  padding:4px 0 6px;
  border-bottom:2px solid var(--tsm-teal);
  font-size:12.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:var(--tsm-stone);
}
.tsm-chip i{ display:none; }
.tsm-chip:hover, .tsm-chip:focus-visible{ color:var(--tsm-teal-lt); outline:none; }

/* Signed-in account row + its links. */
.tsm-acct{ padding:12px 0 4px; border-bottom:1px solid var(--tsm-line-soft); }
.tsm-acct-btn{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:6px 0 10px; cursor:pointer; text-align:left;
  background:transparent; color:var(--tsm-stone);
  border:0; font-family:var(--tsm-sans);
}
.tsm-avatar{
  width:34px; height:34px; flex-shrink:0;
  display:grid; place-items:center;
  border:1px solid var(--tsm-teal); color:var(--tsm-teal-lt);
  font-family:var(--tsm-display); font-stretch:72%; font-weight:800; font-size:17px;
}
.tsm-acct-name{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-family:var(--tsm-display); font-stretch:72%; font-weight:800; font-size:22px;
  text-transform:uppercase; line-height:1;
}
.tsm-acct-name small{
  display:block; margin-bottom:3px;
  font-family:var(--tsm-sans); font-stretch:100%; font-size:10px; font-weight:700;
  letter-spacing:.2em; color:var(--tsm-stone-faint);
}
.tsm-chev{ font-size:13px; color:var(--tsm-stone-dim); transition:transform .2s; }
.tsm-acct-btn[aria-expanded="true"] .tsm-chev{ transform:rotate(180deg); }
.tsm-acct-links{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; padding-bottom:8px; }
.tsm-acct-links[hidden]{ display:none; }
.tsm-acct-links a, .tsm-admin a{
  display:flex; align-items:center; gap:8px; min-width:0;
  padding:9px 0; border-bottom:1px solid var(--tsm-line-soft);
  font-size:13px; font-weight:600; color:var(--tsm-stone-dim);
}
.tsm-acct-links a i, .tsm-admin a i{ font-size:13px; color:var(--tsm-stone-faint); }
.tsm-acct-links a:hover, .tsm-admin a:hover{ color:var(--tsm-stone); }
.tsm-acct-links a.tsm-out, .tsm-acct-links a.tsm-out i{ color:var(--tsm-teal-lt); }
.tsm-admin{ display:flex; flex-direction:column; }

/* Footer: Instagram + email. */
.tsm-foot{
  display:flex; gap:22px; margin-top:24px; padding-top:14px;
  border-top:1px solid var(--tsm-line-soft);
}
.tsm-foot a{
  display:inline-flex; align-items:center; gap:7px;
  font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
  color:var(--tsm-stone-faint);
}
.tsm-foot a:hover{ color:var(--tsm-stone); }
.tsm-foot a i{ font-size:14px; }

@media (prefers-reduced-motion: reduce){
  .tsm-go, .tsm-chev{ transition:none; }
}
