/* 26 Nov 2026 — client / practitioner worlds preview (pages.dev only until Chia says yes).
   Pages stay in the HTML and sitemap; this file only changes what navigation shows. */

/* ---- World switcher (website) ---- */
.tcw-switch{
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:0;
  padding:.4rem .75rem;border-bottom:1px solid var(--line,#cfc4e0);
  background:var(--tcw-bar,#faf8fc);font:600 .88rem var(--sans,system-ui,sans-serif);
}
.tcw-switch[hidden]{display:none!important}
.tcw-switch a, .tcw-switch button{
  display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;
  min-height:40px;padding:.35rem 1rem;
  border:1px solid var(--line,#cfc4e0);background:#fff;color:var(--ink,#2b2b30);
  text-decoration:none;font:inherit;font-weight:600;cursor:pointer;
  white-space:nowrap;
}
.tcw-switch a:first-child, .tcw-switch button:first-child{
  border-radius:999px 0 0 999px;
}
.tcw-switch a:last-child, .tcw-switch button:last-child{
  border-radius:0 999px 999px 0;margin-left:-1px;
}
.tcw-switch a[aria-current="true"], .tcw-switch button[aria-current="true"]{
  background:var(--forest,#3d2f6b);border-color:var(--forest,#3d2f6b);color:#fff;z-index:1;
}
.tcw-switch a:focus-visible, .tcw-switch button:focus-visible{
  outline:3px solid var(--gold,#c9b98a);outline-offset:2px;z-index:2;
}

/* Preview picker: pages.dev only */
.tcw-picker{
  position:fixed;z-index:120;left:50%;bottom:calc(.6rem + env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;justify-content:center;
  max-width:min(36rem,96vw);padding:.4rem .55rem;border-radius:14px;
  background:#1d1927;color:#fff;font:600 .78rem var(--sans,system-ui,sans-serif);
  box-shadow:0 8px 24px rgba(0,0,0,.28);
}
html.pwa .tcw-picker{bottom:calc(4.4rem + env(safe-area-inset-bottom,0px))}
.tcw-picker strong{font-weight:700;margin-right:.2rem}
.tcw-picker a{
  color:#fff;text-decoration:none;padding:.25rem .45rem;border-radius:8px;border:1px solid transparent;
}
.tcw-picker a[aria-current="true"]{background:#fff;color:#1d1927}
.tcw-picker a:focus-visible{outline:2px solid #ffdd00;outline-offset:1px}

/* ---- Client world: hide practitioner navigation only (links remain in the DOM) ---- */
html[data-tc-world="client"] .drawer-band--therapists,
html[data-tc-world="client"] .drawer-band--trainees,
html[data-tc-world="client"] .nav-join-top,
html[data-tc-world="client"] .drawer-join,
html[data-tc-world="client"] .hf-col--practitioners,
html[data-tc-world="client"] [data-tcw-col="practitioners"],
html[data-tc-world="client"] #tc-prac-home{display:none!important}

/* ---- Practitioner world: hide client navigation and the client homepage body ---- */
html[data-tc-world="practitioner"] .drawer-band--clients,
html[data-tc-world="practitioner"] .hf-col--clients,
html[data-tc-world="practitioner"] [data-tcw-col="clients"],
html[data-tc-world="practitioner"] body[data-page="home"] .hm--client,
html[data-tc-world="practitioner"] body[data-page="home"] .hm-recent,
html[data-tc-world="practitioner"] body[data-page="home"] .hm-browse,
html[data-tc-world="practitioner"] body[data-page="home"] .tcx-prof,
html[data-tc-world="practitioner"] body[data-page="home"] #explore,
html[data-tc-world="practitioner"] body[data-page="home"] .tct{display:none!important}
html[data-tc-world="practitioner"] #tc-prac-home{display:block!important}

/* Footer columns marked by JS; also a fallback by heading for pages not yet marked */
/* (JS adds data-tcw-col.) */

/* ---- Option B: stacked Explore, no switcher ---- */
html[data-tc-opt="b"] .tct .tct-tablist{display:none!important}
html[data-tc-opt="b"] .tct.is-tabs .tct-panel[hidden]{display:block!important;margin-bottom:1.2rem}
html[data-tc-opt="b"] .tct.is-tabs .tct-ph{
  position:static!important;width:auto!important;height:auto!important;clip:auto!important;
  overflow:visible!important;white-space:normal!important;font-size:1.15rem;margin:0 0 .5rem;text-align:center;
}

/* Explore tabs: 2x2 on phones so four labels are not a long vertical stack */
body[data-page="home"] .tct.is-tabs .tct-tablist{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.4rem;
}
@media (min-width:800px){
  body[data-page="home"] .tct.is-tabs .tct-tablist{grid-template-columns:repeat(4,minmax(0,1fr))}
}
html.pwa .app-seg{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.35rem;
}
@media (min-width:800px){
  html.pwa .app-seg{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Practitioner landing on the preview homepage */
#tc-prac-home{padding:2rem 0 2.5rem}
#tc-prac-home .wrap{max-width:52rem;margin:0 auto;padding:0 1rem}
#tc-prac-home h1{font-size:1.7rem;margin:0 0 .5rem;color:var(--forest,#3d2f6b);text-wrap:balance}
#tc-prac-home .tcw-lede{margin:0 0 1.2rem;font-size:1.02rem;line-height:1.5;color:var(--ink-2,#5f5b68);max-width:38rem}
#tc-prac-home .tcw-cards{
  list-style:none;margin:0;padding:0;display:grid;gap:.75rem;
  grid-template-columns:1fr;
}
@media (min-width:640px){
  #tc-prac-home .tcw-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
#tc-prac-home .tcw-cards a{
  display:block;min-height:5.5rem;padding:.95rem 1rem;border-radius:1rem;
  border:1px solid var(--line,#cfc4e0);background:#fff;color:var(--ink,#2b2b30);
  text-decoration:none;
}
#tc-prac-home .tcw-cards a:hover{border-color:var(--forest,#3d2f6b)}
#tc-prac-home .tcw-cards a:focus-visible{outline:3px solid var(--gold,#c9b98a);outline-offset:2px}
#tc-prac-home .tcw-cards strong{display:block;font-size:1.02rem;margin:0 0 .2rem;color:var(--forest,#3d2f6b)}
#tc-prac-home .tcw-cards span{display:block;font-size:.9rem;line-height:1.4;color:var(--ink-2,#5f5b68)}
#tc-prac-home .tcw-note{margin:1.1rem 0 0;font-size:.9rem;color:var(--ink-2,#5f5b68)}

/* Consistent resource-rule line (preview illustration on practitioner guides) */
.tcw-rule{
  margin:0 0 1rem;padding:.75rem 1rem;border-radius:.8rem;
  border:1px solid var(--line,#cfc4e0);background:var(--blush,#f4f0f8);
  font-size:.92rem;line-height:1.45;
}
.tcw-rule[hidden]{display:none!important}

/* ---- Colour accents: practitioner world, all AA/AAA against white or the tinted ground ---- */
/* A — teal / forest (recommended). Text #0b5346 on #fff = 8.97:1; white on teal = 8.97:1 */
html[data-tc-world="practitioner"][data-tc-opt="a"]{
  --forest:#0b5346;--forest-2:#083f36;--forest-ink:#083f36;
  --link:#0b5346;--link-hover:#083f36;--blush:#eef6f2;--lavender:#e7f3ee;
  --line:#b7d4c8;--line-2:#d5e8e1;--sage-1:#e7f3ee;--tcw-bar:#eef6f2;
}
html[data-tc-world="practitioner"][data-tc-opt="a"] body,
html[data-tc-world="practitioner"][data-tc-opt="a"].pwa body{
  background:#f7faf8;
}
html[data-tc-world="practitioner"][data-tc-opt="a"] .site-header,
html[data-tc-world="practitioner"][data-tc-opt="a"].pwa .appbar,
html[data-tc-world="practitioner"][data-tc-opt="a"].pwa .apptabs{
  background:#eef6f2;
  border-color:#b7d4c8;
}
html[data-tc-world="practitioner"][data-tc-opt="a"] .site-header .brand span,
html[data-tc-world="practitioner"][data-tc-opt="a"].pwa .appbar-title,
html[data-tc-world="practitioner"][data-tc-opt="a"] #tc-prac-home h1,
html[data-tc-world="practitioner"][data-tc-opt="a"] #tc-prac-home .tcw-cards strong{color:#0b5346}
html[data-tc-world="practitioner"][data-tc-opt="a"] .nav-join-top,
html[data-tc-world="practitioner"][data-tc-opt="a"] .drawer-join,
html[data-tc-world="practitioner"][data-tc-opt="a"] .hm--client .hm-btn,
html[data-tc-world="practitioner"][data-tc-opt="a"] .tcw-switch a[aria-current="true"],
html[data-tc-world="practitioner"][data-tc-opt="a"] .tcw-switch button[aria-current="true"]{
  background:#0b5346!important;border-color:#0b5346!important;color:#fff!important;
}

/* B — navy and gold. Navy #1a3658 on #fff = 12.26:1; gold #c9b98a on navy = 6.30:1 */
html[data-tc-world="practitioner"][data-tc-opt="b"]{
  --forest:#1a3658;--forest-2:#12263f;--forest-ink:#12263f;
  --link:#1a3658;--link-hover:#12263f;--blush:#eef2f7;--lavender:#e6edf5;
  --line:#c5d0de;--line-2:#d9e1eb;--sage-1:#e6edf5;--gold:#c9b98a;--tcw-bar:#eef2f7;
}
html[data-tc-world="practitioner"][data-tc-opt="b"] body,
html[data-tc-world="practitioner"][data-tc-opt="b"].pwa body{background:#f6f8fb}
html[data-tc-world="practitioner"][data-tc-opt="b"] .site-header,
html[data-tc-world="practitioner"][data-tc-opt="b"].pwa .appbar,
html[data-tc-world="practitioner"][data-tc-opt="b"].pwa .apptabs{
  background:#eef2f7;border-color:#c5d0de;
}
html[data-tc-world="practitioner"][data-tc-opt="b"] .site-header .brand span,
html[data-tc-world="practitioner"][data-tc-opt="b"].pwa .appbar-title,
html[data-tc-world="practitioner"][data-tc-opt="b"] #tc-prac-home h1,
html[data-tc-world="practitioner"][data-tc-opt="b"] #tc-prac-home .tcw-cards strong{color:#1a3658}
html[data-tc-world="practitioner"][data-tc-opt="b"] .nav-join-top,
html[data-tc-world="practitioner"][data-tc-opt="b"] .drawer-join,
html[data-tc-world="practitioner"][data-tc-opt="b"] .tcw-switch a[aria-current="true"],
html[data-tc-world="practitioner"][data-tc-opt="b"] .tcw-switch button[aria-current="true"]{
  background:#1a3658!important;border-color:#1a3658!important;color:#fff!important;
}

/* C — slate teal. Text #13474f on #fff = 10.28:1; copper #8a4b1f on #fff = 6.76:1 */
html[data-tc-world="practitioner"][data-tc-opt="c"]{
  --forest:#13474f;--forest-2:#0e353b;--forest-ink:#0e353b;
  --link:#13474f;--link-hover:#0e353b;--blush:#eef5f6;--lavender:#e4eef0;
  --line:#b9d0d4;--line-2:#d3e2e5;--sage-1:#e4eef0;--tcw-bar:#eef5f6;
}
html[data-tc-world="practitioner"][data-tc-opt="c"] body,
html[data-tc-world="practitioner"][data-tc-opt="c"].pwa body{background:#f5f9fa}
html[data-tc-world="practitioner"][data-tc-opt="c"] .site-header,
html[data-tc-world="practitioner"][data-tc-opt="c"].pwa .appbar,
html[data-tc-world="practitioner"][data-tc-opt="c"].pwa .apptabs{
  background:#eef5f6;border-color:#b9d0d4;
}
html[data-tc-world="practitioner"][data-tc-opt="c"] .site-header .brand span,
html[data-tc-world="practitioner"][data-tc-opt="c"].pwa .appbar-title,
html[data-tc-world="practitioner"][data-tc-opt="c"] #tc-prac-home h1,
html[data-tc-world="practitioner"][data-tc-opt="c"] #tc-prac-home .tcw-cards strong{color:#13474f}
html[data-tc-world="practitioner"][data-tc-opt="c"] .nav-join-top,
html[data-tc-world="practitioner"][data-tc-opt="c"] .drawer-join,
html[data-tc-world="practitioner"][data-tc-opt="c"] .tcw-switch a[aria-current="true"],
html[data-tc-world="practitioner"][data-tc-opt="c"] .tcw-switch button[aria-current="true"]{
  background:#13474f!important;border-color:#13474f!important;color:#fff!important;
}

/* Keep the urgent / lifebuoy control red in every world and option */
html[data-tc-world] .appbar-urgent{
  background:#fff7f5!important;border-color:#efc8bd!important;color:#9b1c1c!important;
}

@media (prefers-color-scheme:dark){
  html[data-tc-world="practitioner"][data-tc-opt="a"] body{background:#10211e;color:#e8f3ef}
  html[data-tc-world="practitioner"][data-tc-opt="a"] .site-header,
  html[data-tc-world="practitioner"][data-tc-opt="a"].pwa .appbar,
  html[data-tc-world="practitioner"][data-tc-opt="a"].pwa .apptabs{background:#16302b;border-color:#2b534b}
  html[data-tc-world="practitioner"][data-tc-opt="a"] .site-header .brand span,
  html[data-tc-world="practitioner"][data-tc-opt="a"] #tc-prac-home h1{color:#b9e6d8}
  html[data-tc-world="practitioner"][data-tc-opt="b"] body{background:#10161f;color:#e8edf4}
  html[data-tc-world="practitioner"][data-tc-opt="b"] .site-header,
  html[data-tc-world="practitioner"][data-tc-opt="b"].pwa .appbar,
  html[data-tc-world="practitioner"][data-tc-opt="b"].pwa .apptabs{background:#152033;border-color:#2a3c55}
  html[data-tc-world="practitioner"][data-tc-opt="c"] body{background:#10191b;color:#e6f0f2}
  html[data-tc-world="practitioner"][data-tc-opt="c"] .site-header,
  html[data-tc-world="practitioner"][data-tc-opt="c"].pwa .appbar,
  html[data-tc-world="practitioner"][data-tc-opt="c"].pwa .apptabs{background:#152326;border-color:#2a4449}
  .tcw-switch{background:#1d1927;border-bottom-color:#3a3348}
  .tcw-switch a,.tcw-switch button{background:#2a2438;border-color:#3a3348;color:#ece8f4}
  #tc-prac-home .tcw-cards a{background:#1d1927;border-color:#3a3348;color:#ece8f4}
}

/* Beat html.pwa h1 { color:#3d2f6b } so the practitioner accent applies in the app too */
html.pwa[data-tc-world="practitioner"][data-tc-opt="a"] h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="a"] #tc-prac-home h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="a"] #tc-prac-home .tcw-cards strong{color:#0b5346!important}
html.pwa[data-tc-world="practitioner"][data-tc-opt="b"] h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="b"] #tc-prac-home h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="b"] #tc-prac-home .tcw-cards strong{color:#1a3658!important}
html.pwa[data-tc-world="practitioner"][data-tc-opt="c"] h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="c"] #tc-prac-home h1,
html.pwa[data-tc-world="practitioner"][data-tc-opt="c"] #tc-prac-home .tcw-cards strong{color:#13474f!important}

/* Option B must beat the later 2x2 tab grid rule */
html[data-tc-opt="b"] .tct .tct-tablist,
html[data-tc-opt="b"] body[data-page="home"] .tct.is-tabs .tct-tablist{
  display:none!important;
}
/* In the app, the app-seg bar already names the sections — hide the leftover website Explore switcher */
html.pwa body[data-page="home"] .tct .tct-tablist,
html.pwa body[data-page="home"] .tct > .wrap > h2,
html.pwa body[data-page="home"] #tct-h{
  display:none!important;
}

/* 26 Nov 2026 (A): practitioner opt A bar is four tabs (Directory/Find removed). Beat styles.css 5-col !important. */
html.pwa[data-tc-world="practitioner"][data-tc-opt="a"] .apptabs{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

/* 26 Nov 2026: desktop web — compact world tabs in the site header. Phone and app keep the strip below the header/appbar. */
@media (min-width: 1024px) {
  html:not(.pwa) .tcw-switch.tcw-switch--header{
    flex:0 1 auto;align-self:center;margin:0 .75rem;padding:0;
    border-bottom:none;background:transparent;justify-content:center;min-width:0;
  }
  html:not(.pwa) .tcw-switch.tcw-switch--header a,
  html:not(.pwa) .tcw-switch.tcw-switch--header button{
    min-height:36px;padding:.15rem .85rem;font-size:.8125rem;flex:0 0 auto;
  }
  html:not(.pwa) .site-header .nav:has(.tcw-switch--header) .nav-actions{
    margin-left:auto;flex-shrink:0;
  }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  html:not(.pwa) .tcw-switch.tcw-switch--header{margin:0 .35rem}
  html:not(.pwa) .tcw-switch.tcw-switch--header a,
  html:not(.pwa) .tcw-switch.tcw-switch--header button{
    min-height:34px;padding:.12rem .6rem;font-size:.75rem;
  }
}
@media (prefers-color-scheme: dark) {
  html:not(.pwa) .tcw-switch.tcw-switch--header{
    background:transparent;border-bottom-color:transparent;
  }
}

/* 26 Nov 2026: app home tabs — website Explore script must not blank By location / By concern. */
html.pwa body[data-page="home"] .app-tabpanel.tct-panel[hidden]:not(.app-tab-off),
html.pwa body[data-page="home"] .tct-panel.app-tabpanel:not(.app-tab-off){
  display:block!important;
}
html.pwa .app-tabpanel > .tct-ph{
  position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}

/* 26 Nov 2026 fix2: mobile web header — one aligned block, no gap.
   480px+: switcher on the same row as the logo and actions, centred, like desktop.
   360–479: slim second row, snug, no extra padding between the rows.
   Join moves into the Menu below 700px (already listed in the drawer).
   Labels and colours are unchanged. App and 1024+ desktop are unchanged. */

/* Shared mobile-web alignment (not the app). */
@media (max-width: 1023px) {
  html:not(.pwa) .site-header--clear .nav{
    min-height:48px!important;
    padding-block:.3rem!important;
    align-items:center;
    gap:.4rem!important;
  }
  html:not(.pwa) .site-header--clear .brand{padding-block:0}
  html:not(.pwa) .site-header--clear .brand svg{width:40px;height:40px}
  html:not(.pwa) .site-header--clear .brand span{font-size:1.05rem}
  html:not(.pwa) .site-header--clear .nav-actions{
    display:flex;align-items:center;gap:.35rem!important;flex-shrink:0;
  }
  html:not(.pwa) .site-header--clear .nav-join-top,
  html:not(.pwa) .site-header--clear .nav-bookmark-btn,
  html:not(.pwa) .site-header--clear .nav-search-btn,
  html:not(.pwa) .site-header--clear .menu-btn--label{
    height:40px!important;min-height:40px!important;
    box-sizing:border-box;
  }
  html:not(.pwa) .site-header--clear .nav-bookmark-btn,
  html:not(.pwa) .site-header--clear .nav-search-btn{
    width:40px!important;padding:0!important;
  }
  html:not(.pwa) .site-header--clear .nav-bookmark-btn svg,
  html:not(.pwa) .site-header--clear .nav-search-btn svg{width:22px;height:22px}
  html:not(.pwa) .site-header--clear .menu-btn--label{
    padding:0 .7rem 0 .55rem!important;font-size:.9rem;
  }
  html:not(.pwa) .site-header--clear .nav-join-top{
    padding:0 .7rem!important;font-size:.88rem!important;
  }
  /* One background: switcher never paints its own band. */
  html:not(.pwa) .site-header .tcw-switch.tcw-switch--header{
    background:transparent!important;border:none!important;box-shadow:none;
  }
  html:not(.pwa)[data-tc-world="practitioner"] #tc-prac-home{padding-top:1rem}
}

/* Below 480px: second row, zero gap under a tightened first row. Join in Menu. */
@media (max-width: 479px) {
  html:not(.pwa) .site-header--clear .nav-join-top{display:none!important}
  html:not(.pwa) .site-header--clear .nav{
    min-height:44px!important;
    padding-block:.2rem!important;
    padding-bottom:0!important;
  }
  html:not(.pwa) .site-header > .tcw-switch.tcw-switch--header{
    display:flex;width:100%;justify-content:center;align-items:center;
    margin:0;padding:.05rem .75rem .25rem;
    background:transparent!important;border:none!important;
  }
  html:not(.pwa) .site-header > .tcw-switch.tcw-switch--header a,
  html:not(.pwa) .site-header > .tcw-switch.tcw-switch--header button{
    min-height:34px;padding:.1rem .65rem;font-size:.82rem;flex:0 1 auto;
  }
}

/* 480–1023: switcher on the same row, centred between logo and actions. */
@media (min-width: 480px) and (max-width: 1023px) {
  /* Three columns so the switcher is centred in the header, not just in leftover space. */
  html:not(.pwa) .site-header .nav:has(.tcw-switch--header){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;
    column-gap:.35rem;
  }
  html:not(.pwa) .site-header .nav:has(.tcw-switch--header) .brand{
    margin-right:0!important;justify-self:start;
  }
  html:not(.pwa) .tcw-switch.tcw-switch--header{
    justify-self:center;margin:0;padding:0;min-width:0;
    border:none!important;background:transparent!important;
  }
  html:not(.pwa) .tcw-switch.tcw-switch--header a,
  html:not(.pwa) .tcw-switch.tcw-switch--header button{
    min-height:34px;padding:.1rem .5rem;font-size:.75rem;flex:0 0 auto;
  }
  html:not(.pwa) .site-header .nav:has(.tcw-switch--header) .nav-actions{
    margin-left:0;justify-self:end;flex-shrink:0;
  }
}

/* Wordmark + switcher + icons do not fit cleanly below ~640px. Logo mark stays. */
@media (max-width: 639px) {
  html:not(.pwa) .site-header--clear .brand span{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;overflow:hidden!important;
    clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
    border:0!important;white-space:nowrap!important;
  }
}


/* 480–599: icon-only Menu so the centred switcher and the right-hand icons do not overlap. */
@media (min-width: 480px) and (max-width: 599px) {
  html:not(.pwa) .site-header--clear .menu-btn-txt{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;overflow:hidden!important;
    clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
    border:0!important;white-space:nowrap!important;
  }
  html:not(.pwa) .site-header--clear .menu-btn--label{
    width:40px!important;padding:0!important;justify-content:center;
  }
}

/* Tight widths: Join is in the Menu drawer already. */
@media (max-width: 699px) {
  html:not(.pwa) .site-header--clear .nav-join-top{display:none!important}
}
