/* 23 Nov 2026 (menus, Chia pt1903u): clearer, shorter menus. Loaded last on public and members' pages. No page content changes. */

/* ---- Public Menu drawer ---- */
#site-drawer .drawer-list li:has(> a[hidden]){display:none!important}
#site-drawer .drawer-list a[hidden]{display:none!important}
#site-drawer .drawer-list a[aria-current="page"]{
  box-shadow:inset 4px 0 0 currentColor;padding-left:.9rem!important;background:rgba(61,47,107,.08);border-radius:6px;text-decoration:none
}
#site-drawer .drawer-list a[aria-current="page"]::after{content:"You are here";margin-left:auto;padding-left:.6rem;font-size:13px;font-weight:600;opacity:.75}
#site-drawer .tcm-fold{margin:.35rem 0 0;border-top:1px solid rgba(20,16,30,.12)}
#site-drawer .tcm-fold > summary{
  display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:48px;padding:.4rem .4rem;cursor:pointer;
  font:600 16px/1.3 var(--sans,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);color:#3a3448;list-style:none;border-radius:6px
}
#site-drawer .tcm-fold > summary::-webkit-details-marker{display:none}
#site-drawer .tcm-fold > summary::after{
  content:"";flex:0 0 auto;width:.55rem;height:.55rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);transition:transform .15s;margin-right:.35rem
}
#site-drawer .tcm-fold[open] > summary::after{transform:rotate(-135deg) translateY(-2px)}
#site-drawer .tcm-fold > summary:hover{text-decoration:underline}
#site-drawer .tcm-fold > summary:focus-visible{outline:3px solid #ffdd00;outline-offset:1px;box-shadow:0 0 0 6px #0b0c0c}
#site-drawer .tcm-fold > .drawer-list{padding-left:.7rem;border-left:3px solid rgba(20,16,30,.14);margin:0 0 .4rem .4rem}
#site-drawer .tcm-fold > .drawer-list a{font-size:17px!important;font-weight:500!important}
#site-drawer .drawer-list--row{display:flex;flex-wrap:wrap;gap:0 1.25rem}
#site-drawer .drawer-sec--about{padding-top:.5rem;padding-bottom:1.5rem}
#site-drawer .drawer-list a:focus-visible{outline:3px solid #ffdd00;outline-offset:0;box-shadow:0 0 0 6px #0b0c0c}
@media (prefers-color-scheme:dark){
  #site-drawer .tcm-fold{border-top-color:rgba(255,255,255,.16)}
  #site-drawer .tcm-fold > summary{color:#e6e0f0}
  #site-drawer .tcm-fold > .drawer-list{border-left-color:rgba(255,255,255,.2)}
  #site-drawer .drawer-list a[aria-current="page"]{background:rgba(255,255,255,.08)}
}
/* Signed-in members do not need the Join button in the header. */
.site-header .nav-join-top[hidden]{display:none!important}

/* ---- Footer: three short headed lists instead of one long "Pages" list ---- */
.site-footer .tcm-foot-h2{margin-top:1.4rem!important}

/* ---- Members' area menu ---- */
.app-body #nav-work-list{left:0;right:auto}
.app-body .nav-more-list .nav-more-label{padding:.55rem .75rem .2rem;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.app-body .nav-more-list a[aria-current="page"]{font-weight:700;box-shadow:inset 4px 0 0 var(--link,#1d70b8)}
.app-body .site-header .nav-links > li > a[aria-current="page"]{font-weight:700}
.app-body .nav-more-btn:focus-visible,.app-body .nav-more-list a:focus-visible{outline:3px solid #ffdd00;outline-offset:0;box-shadow:0 0 0 6px #0b0c0c}
/* Calm view lives in My account and the footer; the unlabelled leaf icon in the members' header goes. */
.app-body .site-header .nav-actions .calm-toggle{display:none!important}
@media (max-width:920px){
  .app-body .site-header .nav-links > li > a,.app-body .nav-more-btn{min-height:52px}
  .app-body .site-header .nav-links > li > a[aria-current="page"]{box-shadow:inset 4px 0 0 var(--link,#1d70b8);padding-left:.9rem}
  .app-body .nav-more-list .nav-more-label{padding-left:.5rem}
}
/* Admin: all sections visible on phones (they wrap) instead of a sideways strip that hides half of them. */
@media (max-width:720px){
  .app-body[data-page="admin"] .tabs[role="tablist"]{flex-wrap:wrap;overflow-x:visible;gap:.25rem;border-bottom:0}
  .app-body[data-page="admin"] .tabs[role="tablist"] button{min-height:44px;padding:0 .8rem;border:1px solid var(--line);border-radius:999px;font-size:.92rem}
  .app-body[data-page="admin"] .tabs[role="tablist"] button[aria-selected="true"]{border-color:var(--clay);background:var(--sage-1,#eef3ee)}
}

/* Green "Join as a practitioner" button: shown to signed-out visitors, hidden once signed in (data-auth-hide sets [hidden]).
   Overrides the 11 Nov rule in app-store-badge.css that forced it visible even when hidden. */
#site-drawer .drawer-sec--account .drawer-join[hidden]{display:none!important;visibility:hidden!important}

/* 23 Nov 2026 bug hunt (BUG-2026-11-23-01): the phone-size page botanical (right:-.15rem in styles.css) poked 2.4px past
   the screen edge and caused a small sideways scroll on /links and /support-and-resources. Keep it inside the edge. Homepage excluded. */
@media (max-width:900px){
  body:not([data-page="home"]) .wiki > .botanical--page-right,
  body:not([data-page="home"]) .page-head > .botanical--page-right,
  body:not([data-page="home"]) main#main > .botanical--page-right{right:.1rem}
}

/* 24 Nov 2026 (drawer fill, Chia pt1908u): three preview options via ?drawer=a|b|c (default a on preview).
   A floral · B larger type and spacing · C mix. pointer-events:none on the floral so it never covers taps.
   Also hide closed fold lists explicitly: .drawer-list{display:flex} would otherwise reveal them in Chromium. */
#site-drawer .tcm-fold:not([open]) > .drawer-list{display:none!important}
#site-drawer.tcm-drawer .drawer-nav{display:flex;flex-direction:column;padding-bottom:0}
#site-drawer .tcm-drawer-fill{
  display:none;pointer-events:none!important;margin-top:auto;position:relative;
  overflow:hidden;flex:1 0 auto;min-height:0
}
#site-drawer .tcm-drawer-fill-note{
  position:relative;z-index:1;margin:0;padding:.85rem 1.2rem .35rem;
  text-align:center;font:600 13px/1.4 var(--sans,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);
  color:#4a4456;background:linear-gradient(to bottom,var(--bg,#fff) 70%,rgba(255,255,255,0))
}
#site-drawer .tcm-drawer-fill-art{
  position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:120%;max-width:28rem;height:8.5rem;opacity:.44;display:block;pointer-events:none!important
}

/* A — faded floral line art fills leftover space under About / Contact; type unchanged */
#site-drawer[data-drawer-fill="a"] .tcm-drawer-fill{display:block;min-height:11.25rem}
#site-drawer[data-drawer-fill="a"] .tcm-drawer-fill-art{height:8.75rem;opacity:.48}

/* B — larger type and spacing so the menu takes more of the drawer; no floral */
#site-drawer[data-drawer-fill="b"] .tcm-drawer-fill{display:none}
#site-drawer[data-drawer-fill="b"] .drawer-title{font-size:1.4rem!important}
#site-drawer[data-drawer-fill="b"] .drawer-head{padding:1rem 1.3rem}
#site-drawer[data-drawer-fill="b"] .drawer-band-h{
  font-size:24px!important;padding:1.35rem 1.3rem .7rem!important
}
#site-drawer[data-drawer-fill="b"] .drawer-sec{padding:.85rem 1.35rem 1.15rem}
#site-drawer[data-drawer-fill="b"] .drawer-band .drawer-sec{padding:.75rem 1.35rem 1.2rem}
#site-drawer[data-drawer-fill="b"] .drawer-sec--about{padding-top:.85rem;padding-bottom:2.25rem}
#site-drawer[data-drawer-fill="b"] .drawer-list{gap:.22rem}
#site-drawer[data-drawer-fill="b"] .drawer-list a{
  font-size:18px!important;line-height:1.4!important;
  min-height:52px!important;padding:.55rem .5rem!important
}
#site-drawer[data-drawer-fill="b"] .tcm-fold > summary{
  min-height:52px;padding:.5rem .45rem;font-size:18px
}
#site-drawer[data-drawer-fill="b"] .tcm-fold > .drawer-list a{font-size:18px!important}
#site-drawer[data-drawer-fill="b"] .drawer-nav{padding-bottom:1.75rem}

/* C — a moderate size bump plus a smaller floral at the bottom */
#site-drawer[data-drawer-fill="c"] .tcm-drawer-fill{display:block;min-height:8.25rem}
#site-drawer[data-drawer-fill="c"] .tcm-drawer-fill-art{height:6.25rem;opacity:.42;width:110%}
#site-drawer[data-drawer-fill="c"] .tcm-drawer-fill-note{font-size:12px;padding:.7rem 1.2rem .2rem}
#site-drawer[data-drawer-fill="c"] .drawer-band-h{
  font-size:23px!important;padding:1.25rem 1.3rem .6rem!important
}
#site-drawer[data-drawer-fill="c"] .drawer-sec{padding:.7rem 1.3rem 1.05rem}
#site-drawer[data-drawer-fill="c"] .drawer-band .drawer-sec{padding:.65rem 1.3rem 1.05rem}
#site-drawer[data-drawer-fill="c"] .drawer-sec--about{padding-top:.7rem;padding-bottom:1.1rem}
#site-drawer[data-drawer-fill="c"] .drawer-list a{
  font-size:18px!important;min-height:50px!important;padding:.5rem .45rem!important
}
#site-drawer[data-drawer-fill="c"] .tcm-fold > summary{min-height:50px;font-size:17px}

@media (prefers-color-scheme:dark){
  #site-drawer .tcm-drawer-fill-note{color:#c9c2d6}
  #site-drawer[data-drawer-fill="a"] .tcm-drawer-fill-art,
  #site-drawer[data-drawer-fill="c"] .tcm-drawer-fill-art{opacity:.55}
}
html.calm #site-drawer .tcm-drawer-fill-art{opacity:.28!important}

/* Preview-only option switcher (pages.dev). Never appears on therapistcircle.co.uk. */
.tcm-drawer-picker{
  display:none;position:fixed;left:0;right:0;top:0;z-index:120;
  background:#3d2f6b;color:#fff;padding:.45rem .7rem calc(.45rem + env(safe-area-inset-top,0px));
  font:600 13px/1.3 var(--sans,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif);
  box-shadow:0 -4px 16px rgba(20,16,30,.18)
}
html[data-drawer-preview="1"] .tcm-drawer-picker{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem}
.tcm-drawer-picker strong{font-weight:700;margin-right:.15rem}
.tcm-drawer-picker a{
  color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.45);
  border-radius:999px;padding:.35rem .7rem;min-height:40px;display:inline-flex;align-items:center
}
.tcm-drawer-picker a[aria-current="true"]{background:#fff;color:#3d2f6b;border-color:#fff}
