/* Mental Health Discussions — Comfort & Accessibility Layer
   Research-led design goals: avoid pure-white/pure-black glare by default,
   preserve readable contrast, minimize distraction, and give users control. */

:root{
  --mhd-bg:#EEF3EC;
  --mhd-surface:#FAF6EE;
  --mhd-surface-2:#E6EFEC;
  --mhd-wash-a:#EEF3EC;
  --mhd-wash-b:#F4EDE1;
  --mhd-wash-c:#E7EFF1;
  --mhd-text:#39413E;
  --mhd-muted:#606A65;
  --mhd-border:#C7D0CA;
  --mhd-link:#3D6255;
  --mhd-accent-light:#587466;
  --mhd-accent-dark:#A3BDB1;
  --mhd-deep-light:#3E5049;
  --mhd-deep-dark:#26332F;
  --mhd-accent:var(--mhd-accent-light);
  --mhd-deep:var(--mhd-deep-light);
  --mhd-button-text:#F7F1E6;
  --mhd-focus:#789287;
  --mhd-shadow:0 16px 42px rgba(57,65,62,.09);
}

/* User-selectable calming palettes. These are preferences, not diagnosis labels. */
html[data-mhd-theme="mist"]{
  --mhd-bg:#EAF2F3;--mhd-surface:#F6F8F4;--mhd-surface-2:#DFEBEE;
  --mhd-wash-a:#EAF2F3;--mhd-wash-b:#EFF3EA;--mhd-wash-c:#F2ECE4;
  --mhd-text:#38474B;--mhd-muted:#627176;--mhd-border:#C5D4D7;--mhd-link:#3B6672;
  --mhd-accent-light:#537785;--mhd-accent-dark:#9DBEC7;
  --mhd-deep-light:#405A63;--mhd-deep-dark:#27393F;--mhd-focus:#7997A0;
}
html[data-mhd-theme="linen"]{
  --mhd-bg:#F3EBDD;--mhd-surface:#FBF6ED;--mhd-surface-2:#EBE1D2;
  --mhd-wash-a:#F3EBDD;--mhd-wash-b:#EDE9DE;--mhd-wash-c:#E9F0EA;
  --mhd-text:#4A433D;--mhd-muted:#6D655D;--mhd-border:#D6CABC;--mhd-link:#735C4B;
  --mhd-accent-light:#806958;--mhd-accent-dark:#C8B39D;
  --mhd-deep-light:#5C4E45;--mhd-deep-dark:#3C322C;--mhd-focus:#957C6A;
}
html[data-mhd-theme="slate"]{
  --mhd-bg:#E9EFEC;--mhd-surface:#F5F7F3;--mhd-surface-2:#DDE7E3;
  --mhd-wash-a:#E9EFEC;--mhd-wash-b:#E5EBEF;--mhd-wash-c:#F0EADF;
  --mhd-text:#3A4541;--mhd-muted:#65706C;--mhd-border:#C5D0CC;--mhd-link:#46685E;
  --mhd-accent-light:#5B706A;--mhd-accent-dark:#9BAFAA;
  --mhd-deep-light:#465651;--mhd-deep-dark:#2B3733;--mhd-focus:#7A918A;
}
html[data-mhd-theme="contrast"]{
  --mhd-bg:#F2F3EE;--mhd-surface:#FAFAF6;--mhd-surface-2:#E5E9E4;
  --mhd-wash-a:#F2F3EE;--mhd-wash-b:#ECEFEA;--mhd-wash-c:#F4EFE7;
  --mhd-text:#242C2A;--mhd-muted:#4C5753;--mhd-border:#AAB8B3;--mhd-link:#285247;
  --mhd-accent-light:#35594D;--mhd-accent-dark:#B4CEC4;
  --mhd-deep-light:#2D453D;--mhd-deep-dark:#1F2D29;--mhd-focus:#5E7E73;
}

/* Light level: Lights On = soft, warm light. Lights Low = dim. Lights Off = very dark charcoal, never pure black. */
html[data-mhd-mode="low"]{
  --mhd-bg:#303836;--mhd-surface:#39423F;--mhd-surface-2:#343D3A;
  --mhd-wash-a:#303836;--mhd-wash-b:#373A34;--mhd-wash-c:#303A3D;
  --mhd-text:#E7E2D8;--mhd-muted:#C6C8C0;--mhd-border:#59635F;--mhd-link:#BDD7CD;
  --mhd-accent:var(--mhd-accent-dark);--mhd-deep:#26332F;--mhd-button-text:#F4EEE3;
  --mhd-focus:#AAC2B8;--mhd-shadow:0 16px 42px rgba(0,0,0,.18);
}
html[data-mhd-mode="off"]{
  --mhd-bg:#181D1C;--mhd-surface:#222927;--mhd-surface-2:#1E2523;
  --mhd-wash-a:#181D1C;--mhd-wash-b:#211F1B;--mhd-wash-c:#192225;
  --mhd-text:#E2DDD3;--mhd-muted:#B9BDB5;--mhd-border:#424C48;--mhd-link:#B8D9CE;
  --mhd-accent:var(--mhd-accent-dark);--mhd-deep:#202D29;--mhd-button-text:#F2EBDD;
  --mhd-focus:#A6C0B6;--mhd-shadow:0 16px 42px rgba(0,0,0,.26);
}

html{background:var(--mhd-bg)!important;color-scheme:light}
html[data-mhd-mode="low"],html[data-mhd-mode="off"]{color-scheme:dark}
body{background:var(--mhd-bg)!important;color:var(--mhd-text)!important}
body,button,input,textarea,select{color:var(--mhd-text)}
body,.section,.site-section,.hero,.app,.page,.main{background-color:var(--mhd-bg)!important}
.alt,.section.alt,.site-section.alt{background:var(--mhd-surface-2)!important}

/* Text */
p,li,.sub,.intro,.small-muted,.muted,.source,.fine,.tagline,
.feature p,.panel p,.card p,.card li,.mini p,.mini li,.rule p,.right p,
.transition-card li,.discharge-card li,.flow-step p,.detail p,.detail li,
.qcard li,.q li,.ev p,.summary-card p,.summary-card li,.med-item span,.definition,
.approach p,.topic-card p,.statehead p{
  color:var(--mhd-muted)!important;
}
h1,h2,h3,h4,h5,h6,strong,label,.eyebrow{color:var(--mhd-text)}
a{color:var(--mhd-link)}
hr{border-color:var(--mhd-border)!important}

/* Surfaces */
header,.top,.nav,nav,.header{
  background:var(--mhd-surface)!important;
  border-color:var(--mhd-border)!important;
}
.panel,.card,.feature,.info,.mini,.rule,.right,.transition-card,.discharge-card,
.flow-step,.choicebox,.result,.pane,.form,.preview,.statebox,.md-card,.qcard,.q,.ev,
.top-card,.content,.med-item,.approach,.topic-card,.definition,.glossary-card,.ask-card,
.summary-card,.section-card,.record-row,.steps,.evidence-card,.family-lane,.med-fact,
.med-inset,.comparison-scroll,.table-wrap,.pack-card,.transition-card,.discharge-card,
.right,.menu,.detail,.statecontent,.toolbox>div{
  background:var(--mhd-surface)!important;
  border-color:var(--mhd-border)!important;
}
input,textarea,select{
  background:var(--mhd-surface)!important;
  color:var(--mhd-text)!important;
  border-color:var(--mhd-border)!important;
}
input::placeholder,textarea::placeholder{color:var(--mhd-muted)!important;opacity:.78}

/* Deep surfaces: use charcoal/colored-charcoal rather than black. */
.panel.black,.black,.dark,.rule.dark,.right.dark,.family-lane.emergency,.note.dark,
.statehead,.crisis,footer,.footer{
  background:var(--mhd-deep)!important;
  color:var(--mhd-button-text)!important;
  border-color:var(--mhd-deep)!important;
}
.panel.black h1,.panel.black h2,.panel.black h3,.panel.black h4,
.black h1,.black h2,.black h3,.black h4,.dark h1,.dark h2,.dark h3,.dark h4,
.rule.dark h3,.right.dark h3,.statehead h3,.crisis strong,footer h1,footer h2,footer h3,footer h4,
footer .footbrand{
  color:var(--mhd-button-text)!important;
}
.panel.black p,.black p,.dark p,.rule.dark p,.right.dark p,.family-lane.emergency li,
.note.dark p,.statehead p,footer p,footer .fine,.crisis{
  color:#DEDCD5!important;
}
footer a,.crisis a{color:#F3F0E8!important}

/* Buttons retain the elegant glossy treatment, without continuous animation. */
button,.btn,.primary,.small-btn,.smallbtn,.nav-cta,.choice.active,.step.active,
.filter-row button.active,.tab.active,.tab[aria-selected="true"],.filters button.active{
  border-color:var(--mhd-accent)!important;
}
.btn:not(.secondary):not(.soft):not(.danger),
.primary,.small-btn,.smallbtn.dark,.nav-cta,.choice.active,.step.active,
.filter-row button.active,.tab.active,.tab[aria-selected="true"],.filters button.active{
  background:
    linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,0) 42%),
    var(--mhd-accent)!important;
  color:var(--mhd-button-text)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),0 7px 18px rgba(37,55,49,.12)!important;
}
.btn.secondary,.btn.soft,.btn.danger,.smallbtn:not(.dark),.outline,.presets button,
.nav-steps button:not(.active),.filter-row button:not(.active),.filters button:not(.active){
  background:var(--mhd-surface)!important;color:var(--mhd-text)!important;border-color:var(--mhd-border)!important;
}
button,.btn,.primary,.small-btn,.smallbtn,.nav-cta{transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
html[data-mhd-motion="subtle"] button:hover,
html[data-mhd-motion="subtle"] .btn:hover,
html[data-mhd-motion="subtle"] .primary:hover,
html[data-mhd-motion="subtle"] .small-btn:hover,
html[data-mhd-motion="subtle"] .nav-cta:hover{transform:translateY(-2px);filter:brightness(1.03)}
.btn.shine:after,.nav-cta:after,.primary:after{animation:none!important;opacity:0!important}

/* Tables */
table,.comparison-table,.compare-table{color:var(--mhd-text)!important}
table th,.comparison-table th,.compare-table th,
table td:first-child,.comparison-table td:first-child,.compare-table td:first-child{
  background:var(--mhd-surface-2)!important;color:var(--mhd-text)!important;border-color:var(--mhd-border)!important;
}
table td,.comparison-table td,.compare-table td{background:var(--mhd-surface)!important;border-color:var(--mhd-border)!important}

/* Focus must stay visible. */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{
  outline:3px solid var(--mhd-focus)!important;outline-offset:3px!important;
}

/* Comfort dock */
#mhdComfortDock{position:fixed;right:16px;bottom:16px;z-index:9999;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
#mhdComfortToggle{
  border:1px solid var(--mhd-border)!important;background:var(--mhd-deep)!important;color:var(--mhd-button-text)!important;
  border-radius:999px;padding:10px 14px;font-weight:800;box-shadow:var(--mhd-shadow)!important;cursor:pointer;
}
#mhdComfortPanel{
  position:absolute;right:0;bottom:52px;width:min(360px,calc(100vw - 32px));max-height:min(72vh,620px);overflow:auto;
  background:var(--mhd-surface)!important;color:var(--mhd-text)!important;border:1px solid var(--mhd-border)!important;
  border-radius:20px;padding:16px;box-shadow:0 18px 50px rgba(20,30,27,.20);
}
#mhdComfortPanel[hidden]{display:none}
.mhd-comfort-head{display:flex;justify-content:space-between;gap:15px;align-items:start;border-bottom:1px solid var(--mhd-border);padding-bottom:11px;margin-bottom:12px}
.mhd-comfort-head strong{font-size:1rem}.mhd-comfort-head span{display:block;font-size:.72rem;color:var(--mhd-muted);margin-top:2px}
.mhd-comfort-close{border:0!important;background:transparent!important;color:var(--mhd-text)!important;font-size:1.25rem;line-height:1;cursor:pointer}
.mhd-control-group{border-top:1px solid var(--mhd-border);padding-top:12px;margin-top:12px}
.mhd-control-group:first-of-type{border-top:0;padding-top:0;margin-top:0}
.mhd-control-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:var(--mhd-muted);margin-bottom:7px}
.mhd-segment{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.mhd-segment.five{grid-template-columns:repeat(5,1fr)}
.mhd-segment button{
  border:1px solid var(--mhd-border)!important;background:var(--mhd-surface)!important;color:var(--mhd-text)!important;
  border-radius:11px;padding:8px 5px;font-size:.72rem;cursor:pointer;
}
.mhd-segment button[aria-pressed="true"]{
  background:var(--mhd-accent)!important;color:var(--mhd-button-text)!important;border-color:var(--mhd-accent)!important;
}
.mhd-audio-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mhd-audio-row input[type="range"]{width:112px;accent-color:var(--mhd-accent)}
.mhd-audio-row label,.mhd-audio-row button{
  border:1px solid var(--mhd-border)!important;background:var(--mhd-surface)!important;color:var(--mhd-text)!important;
  border-radius:999px;padding:7px 10px;font-size:.75rem;cursor:pointer;
}
.mhd-audio-file{display:none}
.mhd-audio-name{font-size:.72rem;color:var(--mhd-muted);margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mhd-radio-list{display:grid;gap:6px;margin-top:8px}
.mhd-radio-list a{display:flex;justify-content:space-between;gap:10px;text-decoration:none;border:1px solid var(--mhd-border);border-radius:12px;padding:9px 10px;background:var(--mhd-surface-2);font-size:.78rem}
.mhd-radio-list small{color:var(--mhd-muted)}
.mhd-comfort-note{font-size:.68rem;color:var(--mhd-muted);margin:8px 0 0}
#mhdComfortPanel audio{width:100%;height:36px;margin-top:8px}

/* Quiet-motion default. */
html[data-mhd-motion="quiet"] *,html[data-mhd-motion="quiet"] *::before,html[data-mhd-motion="quiet"] *::after{
  animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}
}
@media(max-width:620px){
  #mhdComfortDock{right:10px;bottom:10px}
  #mhdComfortPanel{width:calc(100vw - 20px)}
  .mhd-segment.five{grid-template-columns:repeat(3,1fr)}
}
@media print{#mhdComfortDock{display:none!important}}


/* V2: make the calm palette unmistakable across older white-first page styles. */
body{padding-bottom:84px!important}
.topbar,.top,.nav,header,.header{background:var(--mhd-surface)!important}
.onboarding{
  background:
    radial-gradient(circle at 18% 20%,color-mix(in srgb,var(--mhd-wash-c) 78%,transparent),transparent 36%),
    radial-gradient(circle at 82% 70%,color-mix(in srgb,var(--mhd-wash-b) 84%,transparent),transparent 34%),
    linear-gradient(135deg,var(--mhd-wash-a),var(--mhd-surface))!important;
}
.site-section:nth-of-type(3n+1),main>.section:nth-of-type(3n+1){background:var(--mhd-wash-a)!important}
.site-section:nth-of-type(3n+2),main>.section:nth-of-type(3n+2){background:var(--mhd-wash-b)!important}
.site-section:nth-of-type(3n),main>.section:nth-of-type(3n){background:var(--mhd-wash-c)!important}
.hero{
  background:
    linear-gradient(120deg,color-mix(in srgb,var(--mhd-wash-a) 92%,var(--mhd-surface)),
    color-mix(in srgb,var(--mhd-wash-c) 82%,var(--mhd-surface)))!important;
}
.choice,.panel,.card,.feature,.top-card,.content,.med-item,.rule,.right,.flow-step,.pack-card,.transition-card,.discharge-card{
  background:color-mix(in srgb,var(--mhd-surface) 91%,var(--mhd-wash-a))!important;
}
.wordmark,.wordmark-nav,.wordmark-onboard{color:var(--mhd-text)!important}
.eyebrow{color:var(--mhd-muted)!important}
.dot{background:var(--mhd-border)!important}.dot.active{background:var(--mhd-accent)!important}.dot.done{background:color-mix(in srgb,var(--mhd-accent) 62%,var(--mhd-border))!important}
.calmveil{background:color-mix(in srgb,var(--mhd-wash-c) 25%,transparent)!important}

/* Gentle visible transition when lighting or comfort color changes. */
html.mhd-theme-changing body,
html.mhd-theme-changing header,
html.mhd-theme-changing nav,
html.mhd-theme-changing section,
html.mhd-theme-changing main,
html.mhd-theme-changing footer,
html.mhd-theme-changing .panel,
html.mhd-theme-changing .card,
html.mhd-theme-changing .feature{
  transition:background-color .38s ease,color .38s ease,border-color .38s ease,box-shadow .38s ease!important;
}

/* Always-visible comfort rail — light level and sound should never be hidden. */
#mhdComfortRail{
  position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:10001;
  width:min(1120px,calc(100vw - 24px));
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:color-mix(in srgb,var(--mhd-surface) 94%,transparent)!important;
  color:var(--mhd-text)!important;border:1px solid var(--mhd-border)!important;
  border-radius:18px;padding:9px 11px;
  box-shadow:0 15px 42px rgba(30,42,38,.16);
  backdrop-filter:blur(14px);
}
.mhd-rail-title{font-size:.75rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;margin-right:2px}
.mhd-rail-group{display:flex;align-items:center;gap:5px}
.mhd-rail-label{font-size:.67rem;color:var(--mhd-muted);font-weight:750}
#mhdComfortRail button,#mhdComfortRail label{
  border:1px solid var(--mhd-border)!important;background:var(--mhd-surface)!important;color:var(--mhd-text)!important;
  border-radius:999px;padding:7px 9px;font-size:.7rem;cursor:pointer;white-space:nowrap;
}
#mhdComfortRail button[aria-pressed="true"]{
  background:var(--mhd-accent)!important;color:var(--mhd-button-text)!important;border-color:var(--mhd-accent)!important;
}
#mhdComfortRail input[type="range"]{width:90px;accent-color:var(--mhd-accent)}
#mhdRailFile{display:none}
#mhdRailTrack{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.67rem;color:var(--mhd-muted)}
#mhdComfortRail .mhd-more{margin-left:auto;background:var(--mhd-deep)!important;color:var(--mhd-button-text)!important}
html[data-mhd-mode="low"] #mhdComfortRail,html[data-mhd-mode="off"] #mhdComfortRail{
  background:color-mix(in srgb,var(--mhd-surface) 94%,transparent)!important;
}

/* Make the older floating Comfort button secondary now that the rail is visible. */
#mhdComfortDock{bottom:78px}
#mhdComfortToggle{opacity:.88}

/* Warm, light-gray copy instead of black/white visual aggression. */
body{font-weight:400}
h1,h2,h3,h4,h5,h6{font-weight:650}
.primary,.small-btn,.nav-cta,.btn:not(.secondary):not(.soft):not(.danger){
  background:
    linear-gradient(150deg,rgba(255,255,255,.17),rgba(255,255,255,0) 42%),
    linear-gradient(180deg,color-mix(in srgb,var(--mhd-accent) 90%,#fff),var(--mhd-accent))!important;
}
html[data-mhd-mode="off"] .wordmark-footer,
html[data-mhd-mode="low"] .wordmark-footer{color:var(--mhd-button-text)!important}

@media(max-width:780px){
  body{padding-bottom:128px!important}
  #mhdComfortRail{bottom:7px;padding:8px;gap:6px;max-height:116px;overflow:auto}
  .mhd-rail-title{width:100%;font-size:.68rem}
  .mhd-rail-group{gap:4px}
  #mhdComfortRail button,#mhdComfortRail label{font-size:.65rem;padding:6px 7px}
  #mhdComfortRail .mhd-more{margin-left:0}
  #mhdComfortDock{bottom:128px}
}
@media(prefers-reduced-motion:reduce){
  html.mhd-theme-changing *{transition:none!important}
}


/* Header + floating controls refinement — October 2026 */
#mhdComfortRail{display:none!important}
body{padding-bottom:0!important}
#mhdComfortDock{
  position:fixed!important;right:14px!important;bottom:14px!important;left:auto!important;z-index:10002!important;
}
#mhdComfortToggle{
  font-family:"Segoe Script","Snell Roundhand","Brush Script MT","Lucida Handwriting",cursive!important;
  font-size:.92rem!important;font-weight:400!important;letter-spacing:-.02em!important;
  padding:7px 13px!important;min-height:34px!important;
  border-radius:999px!important;border:1px solid var(--mhd-border)!important;
  background:color-mix(in srgb,var(--mhd-surface) 92%,var(--mhd-wash-a))!important;
  color:var(--mhd-text)!important;
  box-shadow:0 8px 24px rgba(36,48,44,.12)!important;
  animation:mhdComfortFloat 7s ease-in-out infinite!important;
}
@keyframes mhdComfortFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
#mhdComfortPanel{right:0!important;bottom:46px!important}

/* Universal sticky header actions */
.mhd-header-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;
  margin-left:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;
}
.mhd-header-action{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:34px!important;height:34px!important;
  padding:0 12px!important;border-radius:999px!important;
  border:1px solid var(--mhd-accent)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--mhd-accent) 90%,#fff),var(--mhd-accent))!important;
  color:var(--mhd-button-text)!important;text-decoration:none!important;
  font-size:.73rem!important;font-weight:760!important;line-height:1!important;letter-spacing:.005em!important;
  box-shadow:inset 0 1px rgba(255,255,255,.14),0 5px 13px rgba(45,65,58,.10)!important;
  cursor:pointer!important;white-space:nowrap!important;
}
.mhd-header-action:hover{transform:translateY(-1px)!important;text-decoration:none!important}
.mhd-header-action:focus-visible{outline:3px solid var(--mhd-focus)!important;outline-offset:2px!important}

/* Hide older cluttered nav groups/links after the universal actions are injected. */
html.mhd-universal-header .top .nav>.navlinks,
html.mhd-universal-header .header .headinner>.navlinks,
html.mhd-universal-header .topbar .nav>.nav-group,
html.mhd-universal-header .topbar .nav>.mobile-menu{display:none!important}

html.mhd-universal-header .top .nav,
html.mhd-universal-header .header .headinner{
  display:flex!important;align-items:center!important;gap:16px!important;
  min-height:72px!important;height:auto!important;padding:10px 20px!important;
}
html.mhd-universal-header .topbar .nav{
  display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;
  min-height:76px!important;height:auto!important;padding:10px 20px!important;
}
html.mhd-universal-header .topbar .nav>.brand{grid-column:1!important;justify-self:start!important}
html.mhd-universal-header .topbar .nav>.mhd-header-actions{grid-column:3!important}
html.mhd-universal-header .brand,
html.mhd-universal-header .wordmark,
html.mhd-universal-header .wordmark-nav{white-space:nowrap!important}

/* Friendly site assistant */
#mhdSiteAssistant{
  position:fixed;right:14px;top:92px;z-index:10003;
  width:min(380px,calc(100vw - 28px));max-height:min(72vh,640px);overflow:auto;
  background:var(--mhd-surface)!important;color:var(--mhd-text)!important;
  border:1px solid var(--mhd-border)!important;border-radius:20px;padding:16px;
  box-shadow:0 18px 52px rgba(30,42,38,.20);
}
#mhdSiteAssistant[hidden]{display:none!important}
.mhd-assistant-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:10px;border-bottom:1px solid var(--mhd-border)}
.mhd-assistant-head strong{font-size:1rem}.mhd-assistant-head span{display:block;font-size:.73rem;color:var(--mhd-muted);margin-top:2px}
.mhd-assistant-close{border:0!important;background:transparent!important;color:var(--mhd-text)!important;font-size:1.25rem!important;padding:2px!important;cursor:pointer}
.mhd-assistant-quick{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
.mhd-assistant-quick button{
  border:1px solid var(--mhd-border)!important;background:var(--mhd-surface-2)!important;color:var(--mhd-text)!important;
  border-radius:12px;padding:10px;text-align:left;font-size:.76rem;cursor:pointer
}
.mhd-assistant-box{border-top:1px solid var(--mhd-border);padding-top:12px}
.mhd-assistant-box textarea{width:100%;min-height:78px;resize:vertical;border:1px solid var(--mhd-border);border-radius:13px;padding:10px;background:var(--mhd-surface);color:var(--mhd-text)}
.mhd-assistant-box .mhd-assistant-send{margin-top:7px}
#mhdAssistantResult{margin-top:10px;border:1px solid var(--mhd-border);border-radius:13px;padding:11px;background:var(--mhd-surface-2);font-size:.82rem}
#mhdAssistantResult a{font-weight:760;text-decoration:underline;text-underline-offset:3px}

/* keep headers readable on phones without stacking words inside buttons */
@media(max-width:760px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:9px 12px!important;
  }
  html.mhd-universal-header .topbar .nav>.brand{grid-column:1!important;justify-self:center!important}
  html.mhd-universal-header .topbar .nav>.mhd-header-actions{grid-column:1!important}
  .mhd-header-actions{width:100%!important;justify-content:center!important;gap:5px!important}
  .mhd-header-action{font-size:.68rem!important;padding:0 9px!important;height:32px!important;min-height:32px!important}
  html.mhd-universal-header .brand,
  html.mhd-universal-header .wordmark,
  html.mhd-universal-header .wordmark-nav{justify-self:center!important;text-align:center!important}
  #mhdSiteAssistant{top:132px;right:8px;width:calc(100vw - 16px)}
  #mhdComfortDock{right:9px!important;bottom:9px!important}
  #mhdComfortToggle{font-size:.85rem!important;padding:6px 11px!important}
}
@media(max-width:380px){
  .mhd-header-action{font-size:.63rem!important;padding:0 7px!important}
}
@media(prefers-reduced-motion:reduce){
  #mhdComfortToggle{animation:none!important}
}
@media print{
  #mhdComfortDock,#mhdSiteAssistant,.mhd-header-actions{display:none!important}
}

/* Equal-width one-line header buttons */
.mhd-header-actions{display:grid!important;grid-template-columns:repeat(3,112px)!important;gap:7px!important;width:auto!important}
.mhd-header-action{width:112px!important;min-width:112px!important;max-width:112px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;font-size:.70rem!important}
@media(max-width:760px){
  .mhd-header-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;max-width:350px!important;margin:0 auto!important}
  .mhd-header-action{width:100%!important;min-width:0!important;max-width:none!important;font-size:.66rem!important;padding:0 5px!important}
}


/* Navigation restoration + universal announcement bar */
.crisis,.crisisbar{
  background:var(--mhd-deep)!important;
  color:#F5F1E8!important;
  text-align:center!important;
  padding:12px 16px!important;
  font-size:.88rem!important;
  line-height:1.4!important;
  font-weight:500!important;
  border:0!important;
}
.crisis strong,.crisisbar strong{
  color:#FFFDF8!important;
  font-weight:800!important;
}
.crisis a,.crisisbar a{
  color:#FFFDF8!important;
  font-weight:850!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}
@media(max-width:640px){
  .crisis,.crisisbar{font-size:.78rem!important;padding:10px 12px!important;line-height:1.4!important}
}

/* Universal header: utilities do not replace site navigation. */
html.mhd-universal-header .top .nav,
html.mhd-universal-header .header .headinner,
html.mhd-universal-header .topbar .nav{
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  grid-template-areas:
    "brand spacer actions"
    "pages pages pages"!important;
  gap:8px 14px!important;
  min-height:auto!important;
  height:auto!important;
  padding:10px 20px 9px!important;
}
html.mhd-universal-header .top .nav>.brand,
html.mhd-universal-header .header .headinner>.wordmark,
html.mhd-universal-header .topbar .nav>.brand{
  grid-area:brand!important;
  justify-self:start!important;
  align-self:center!important;
}
html.mhd-universal-header .mhd-header-actions{
  grid-area:actions!important;
  justify-self:end!important;
}
.mhd-page-nav{
  grid-area:pages!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  width:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:7px 4px 2px!important;
  border-top:1px solid var(--mhd-border)!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
.mhd-page-nav::-webkit-scrollbar{display:none!important}
.mhd-page-nav a{
  flex:0 0 auto!important;
  color:var(--mhd-text)!important;
  text-decoration:none!important;
  font-size:.76rem!important;
  font-weight:680!important;
  white-space:nowrap!important;
  padding:4px 1px!important;
}
.mhd-page-nav a:hover{
  color:var(--mhd-link)!important;
  text-decoration:underline!important;
  text-underline-offset:4px!important;
}
.mhd-page-nav a[aria-current="page"]{
  color:var(--mhd-link)!important;
  font-weight:820!important;
}

/* Keep the original nav hidden because the universal second row now restores all major destinations cleanly. */
html.mhd-universal-header .top .nav>.navlinks,
html.mhd-universal-header .header .headinner>.navlinks,
html.mhd-universal-header .topbar .nav>.nav-group,
html.mhd-universal-header .topbar .nav>.mobile-menu{display:none!important}

@media(max-width:760px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    grid-template-columns:1fr!important;
    grid-template-areas:"brand" "actions" "pages"!important;
    gap:7px!important;
    padding:9px 10px 8px!important;
  }
  html.mhd-universal-header .top .nav>.brand,
  html.mhd-universal-header .header .headinner>.wordmark,
  html.mhd-universal-header .topbar .nav>.brand{
    justify-self:center!important;
  }
  html.mhd-universal-header .mhd-header-actions{
    justify-self:center!important;
  }
  .mhd-page-nav{
    justify-content:flex-start!important;
    gap:15px!important;
    padding:7px 4px 1px!important;
  }
  .mhd-page-nav a{font-size:.72rem!important}
  #mhdSiteAssistant{top:166px!important}
}


/* Compact one-line desktop header + Georgia typography */
html,body{overflow-x:hidden!important}
body,button,input,textarea,select{
  font-family:Georgia,"Times New Roman",serif!important;
}
.brand,.wordmark,.wordmark-nav,.wordmark-onboard,.wordmark-footer,#mhdComfortToggle{
  font-family:"Segoe Script","Snell Roundhand","Brush Script MT","Lucida Handwriting",cursive!important;
}
html.mhd-universal-header .top .nav,
html.mhd-universal-header .header .headinner,
html.mhd-universal-header .topbar .nav{
  width:100%!important;
  max-width:1440px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-areas:"brand pages actions"!important;
  align-items:center!important;
  gap:12px!important;
  padding:7px 14px!important;
  min-height:52px!important;
  border:0!important;
}
html.mhd-universal-header .top .nav>.brand,
html.mhd-universal-header .header .headinner>.wordmark,
html.mhd-universal-header .topbar .nav>.brand{
  grid-area:brand!important;
  justify-self:start!important;
  font-size:.92rem!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html.mhd-universal-header .wordmark-nav{font-size:.92rem!important}
.mhd-page-nav{
  grid-area:pages!important;
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  padding:0!important;
  border-top:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  white-space:nowrap!important;
}
.mhd-page-nav a{
  flex:0 0 auto!important;
  font-size:.66rem!important;
  line-height:1!important;
  font-weight:650!important;
  padding:5px 0!important;
  white-space:nowrap!important;
}
html.mhd-universal-header .mhd-header-actions{
  grid-area:actions!important;
  justify-self:end!important;
  display:grid!important;
  grid-template-columns:repeat(3,88px)!important;
  gap:5px!important;
  margin:0!important;
}
.mhd-header-action{
  width:88px!important;min-width:88px!important;max-width:88px!important;
  height:30px!important;min-height:30px!important;
  padding:0 5px!important;
  font-size:.61rem!important;
  line-height:1!important;
  white-space:nowrap!important;
}
@media(max-width:1040px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    grid-template-columns:1fr!important;
    grid-template-areas:"brand" "actions" "pages"!important;
    gap:6px!important;
    padding:8px 10px!important;
  }
  html.mhd-universal-header .top .nav>.brand,
  html.mhd-universal-header .header .headinner>.wordmark,
  html.mhd-universal-header .topbar .nav>.brand{justify-self:center!important}
  html.mhd-universal-header .mhd-header-actions{justify-self:center!important}
  .mhd-page-nav{justify-content:flex-start!important;padding-top:5px!important}
}
@media(max-width:760px){
  .mhd-page-nav a{font-size:.69rem!important}
  #mhdSiteAssistant{top:150px!important}
}

/* Guide Me: brand on entry only, then questions take over. */
.wordmark-onboard{
  font-size:1.12rem!important;
  margin:0 auto 18px!important;
  opacity:.72!important;
}
.onboarding{padding-top:28px!important}
.onboarding.guide-active{
  place-items:start center!important;
  padding-top:24px!important;
  min-height:calc(100vh - 44px)!important;
}
.onboarding.guide-active .onboard-card{margin-top:0!important}
.onboarding.guide-active .question-wrap{margin-top:0!important}
.question-top{margin-bottom:17px!important}
.question-title{margin-top:0!important}

/* Homepage hero: each phrase stays on one clean line. */
.hero h1.mhd-home-title{
  font-size:clamp(2.55rem,4.6vw,5.15rem)!important;
  line-height:.94!important;
  letter-spacing:-.052em!important;
  max-width:100%!important;
}
.hero h1.mhd-home-title span{
  display:block!important;
  white-space:nowrap!important;
}
@media(max-width:620px){
  .hero h1.mhd-home-title{font-size:clamp(2.2rem,11vw,3.05rem)!important}
}

/* Footer refinement */
footer{
  border-top:1px solid color-mix(in srgb,var(--mhd-border) 55%,transparent)!important;
  padding-top:44px!important;
}
footer .wordmark-footer{
  color:#F3EEE3!important;
  font-size:1.18rem!important;
  opacity:.9!important;
}
.footer-grid{gap:28px!important}
.footer-col h4{
  font-family:"Segoe Script","Snell Roundhand","Brush Script MT","Lucida Handwriting",cursive!important;
  text-transform:none!important;
  letter-spacing:-.01em!important;
  font-size:1.08rem!important;
  font-weight:400!important;
  color:#D9E5DF!important;
  margin-bottom:10px!important;
}
.footer-col a,.footer-col button{
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:.82rem!important;
  color:#F3EEE3!important;
}
.footer-support{
  display:inline-flex!important;
  width:auto!important;
  margin-top:5px!important;
  padding:7px 11px!important;
  border:1px solid rgba(243,238,227,.45)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.05)!important;
}
.footer-copy,.footer-copyright,.fineprint{color:#C4C5BD!important}


/* Keep the guided-question experience visually focused. */
body:has(#onboarding.guide-active:not(.hidden)) footer{
  display:none!important;
}

/* Footer headings use the brand's handwritten accent while body copy stays Georgia. */
footer h4{
  font-family:"Segoe Script","Snell Roundhand","Brush Script MT","Lucida Handwriting",cursive!important;
}


/* Header polish, glossy actions, mobile hamburger, footer/legal/contact — October 2026 */
@media(min-width:901px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    grid-template-columns:auto minmax(0,1fr) auto!important;
    grid-template-areas:"brand pages actions"!important;
    gap:18px!important;
    padding:8px 18px!important;
    min-height:58px!important;
    max-width:1540px!important;
  }
  html.mhd-universal-header .top .nav>.brand,
  html.mhd-universal-header .header .headinner>.wordmark,
  html.mhd-universal-header .topbar .nav>.brand,
  html.mhd-universal-header .wordmark-nav{
    font-size:1.02rem!important;
  }
  .mhd-page-nav{gap:13px!important}
  .mhd-page-nav a{font-size:.74rem!important;font-weight:680!important}
  .mhd-header-actions{
    display:grid!important;
    grid-template-columns:repeat(3,110px) 34px!important;
    gap:7px!important;
  }
  .mhd-header-action{
    width:110px!important;min-width:110px!important;max-width:110px!important;
    height:34px!important;min-height:34px!important;
    font-size:.67rem!important;padding:0 9px!important;
  }
  .mhd-contact-action{
    width:34px!important;min-width:34px!important;max-width:34px!important;
    height:34px!important;padding:0!important;border-radius:50%!important;
  }
}

/* Rich dark-sage action language. Motion remains restrained when Quiet is selected. */
.mhd-header-action,.mhd-contact-action,
.primary,.small-btn,.smallbtn.dark,.nav-cta,.footer-support,
.btn:not(.secondary):not(.soft):not(.danger){
  position:relative!important;overflow:hidden!important;
  background:
    linear-gradient(160deg,rgba(255,255,255,.17),rgba(255,255,255,0) 43%),
    linear-gradient(180deg,#607F71,#3F5F52)!important;
  border:1px solid #496A5C!important;
  color:#FBF6EA!important;
  box-shadow:inset 0 1px rgba(255,255,255,.18),0 6px 14px rgba(45,65,58,.20)!important;
  text-decoration:none!important;
}
.mhd-header-action::after,.mhd-contact-action::after,
.primary::after,.small-btn::after,.smallbtn.dark::after,.nav-cta::after,.footer-support::after{
  content:""!important;position:absolute!important;top:-45%!important;bottom:-45%!important;left:-38%!important;
  width:24%!important;background:linear-gradient(105deg,transparent,rgba(255,255,255,.36),transparent)!important;
  transform:skewX(-18deg)!important;pointer-events:none!important;opacity:0;
}
html[data-mhd-motion="subtle"] .mhd-header-action:hover,
html[data-mhd-motion="subtle"] .mhd-contact-action:hover,
html[data-mhd-motion="subtle"] .primary:hover,
html[data-mhd-motion="subtle"] .small-btn:hover,
html[data-mhd-motion="subtle"] .smallbtn.dark:hover,
html[data-mhd-motion="subtle"] .nav-cta:hover,
html[data-mhd-motion="subtle"] .footer-support:hover{
  transform:translateY(-2px)!important;
}
html[data-mhd-motion="subtle"] .mhd-header-action:hover::after,
html[data-mhd-motion="subtle"] .mhd-contact-action:hover::after,
html[data-mhd-motion="subtle"] .primary:hover::after,
html[data-mhd-motion="subtle"] .small-btn:hover::after,
html[data-mhd-motion="subtle"] .smallbtn.dark:hover::after,
html[data-mhd-motion="subtle"] .nav-cta:hover::after,
html[data-mhd-motion="subtle"] .footer-support:hover::after{
  animation:mhdGlossSweep .9s ease!important;
}
@keyframes mhdGlossSweep{0%{left:-38%;opacity:0}18%{opacity:.65}100%{left:118%;opacity:0}}
html[data-mhd-motion="quiet"] .mhd-header-action:hover,
html[data-mhd-motion="quiet"] .mhd-contact-action:hover,
html[data-mhd-motion="quiet"] .primary:hover,
html[data-mhd-motion="quiet"] .small-btn:hover,
html[data-mhd-motion="quiet"] .smallbtn.dark:hover{filter:brightness(1.04)!important}

/* Contact icon tooltip */
.mhd-contact-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:.88rem!important}
.mhd-contact-action[data-tip]{position:relative!important}
.mhd-contact-action[data-tip]:hover:before{
  content:attr(data-tip);position:absolute;right:0;top:42px;z-index:9;
  background:var(--mhd-deep);color:var(--mhd-button-text);padding:5px 8px;border-radius:8px;
  font-size:.67rem;white-space:nowrap;box-shadow:var(--mhd-shadow);
}

/* True mobile header: logo + three-line menu. */
.mhd-mobile-toggle,.mhd-mobile-menu{display:none}
@media(max-width:900px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand mobile"!important;
    gap:10px!important;
    padding:9px 12px!important;
    min-height:56px!important;
  }
  html.mhd-universal-header .top .nav>.brand,
  html.mhd-universal-header .header .headinner>.wordmark,
  html.mhd-universal-header .topbar .nav>.brand{
    grid-area:brand!important;justify-self:start!important;font-size:.94rem!important;
  }
  html.mhd-universal-header .mhd-page-nav,
  html.mhd-universal-header .mhd-header-actions{display:none!important}
  .mhd-mobile-toggle{
    grid-area:mobile!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
    gap:4px!important;width:36px!important;height:34px!important;padding:7px!important;
    border:1px solid var(--mhd-border)!important;border-radius:10px!important;
    background:var(--mhd-surface)!important;color:var(--mhd-text)!important;cursor:pointer!important;
  }
  .mhd-mobile-toggle span{display:block!important;width:100%!important;height:1.5px!important;background:currentColor!important;border-radius:2px!important}
  .mhd-mobile-menu{
    position:absolute;left:10px;right:10px;top:calc(100% + 4px);z-index:10004;
    display:block;background:var(--mhd-surface)!important;border:1px solid var(--mhd-border)!important;
    border-radius:16px;padding:10px;box-shadow:0 16px 38px rgba(30,42,38,.18);
  }
  .mhd-mobile-menu[hidden]{display:none!important}
  .mhd-mobile-pages{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px 8px!important}
  .mhd-mobile-pages a{padding:9px 10px!important;text-decoration:none!important;color:var(--mhd-text)!important;font-size:.78rem!important;border-radius:9px!important}
  .mhd-mobile-pages a[aria-current="page"]{background:var(--mhd-surface-2)!important;font-weight:800!important}
  .mhd-mobile-tools{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;border-top:1px solid var(--mhd-border)!important;margin-top:8px!important;padding-top:9px!important}
  .mhd-mobile-tools .mhd-header-action{width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;font-size:.72rem!important}
  .mhd-mobile-contact{display:block!important;text-align:center!important;padding:8px!important;font-size:.75rem!important;color:var(--mhd-link)!important;text-decoration:none!important}
  #mhdSiteAssistant{top:70px!important}
}

/* Footer headings: no cursive. Bold + underlined. */
footer h4,.footer-col h4{
  font-family:Georgia,"Times New Roman",serif!important;
  font-style:normal!important;text-transform:none!important;letter-spacing:.01em!important;
  font-size:.86rem!important;font-weight:800!important;color:#F1ECE2!important;
  text-decoration:underline!important;text-underline-offset:5px!important;text-decoration-thickness:1px!important;
  margin:0 0 12px!important;
}
footer .foot,footer .footer-grid{
  grid-template-columns:1.2fr repeat(3,minmax(0,1fr))!important;
  gap:28px!important;
}
.mhd-footer-legal a{display:block!important;padding:4px 0!important;color:#F1ECE2!important;text-decoration:none!important;font-size:.82rem!important}
.mhd-footer-legal a:hover{text-decoration:underline!important;text-underline-offset:4px!important}
@media(max-width:800px){footer .foot,footer .footer-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:520px){footer .foot,footer .footer-grid{grid-template-columns:1fr!important}}

/* Friendly homepage contact section */
.mhd-contact-section{padding:64px 22px!important}
.mhd-contact-wrap{max-width:1000px;margin:auto}
.mhd-contact-card{
  display:grid;grid-template-columns:.85fr 1.15fr;gap:26px;
  border:1px solid var(--mhd-border);border-radius:26px;padding:24px;
  background:color-mix(in srgb,var(--mhd-surface) 92%,var(--mhd-wash-b));
  box-shadow:0 15px 38px rgba(48,55,53,.07);
}
.mhd-contact-copy h2{font-size:clamp(2.2rem,4vw,4rem);line-height:.98;letter-spacing:-.045em;margin:8px 0 12px}
.mhd-contact-copy p{color:var(--mhd-muted);max-width:420px}
.mhd-contact-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mhd-contact-form .wide{grid-column:1/-1}
.mhd-contact-form label{display:flex;flex-direction:column;gap:5px;font-size:.75rem;font-weight:700}
.mhd-contact-form input,.mhd-contact-form select,.mhd-contact-form textarea{
  width:100%;border:1px solid var(--mhd-border);border-radius:12px;padding:10px 11px;background:var(--mhd-surface)!important;color:var(--mhd-text)!important;
}
.mhd-contact-form textarea{min-height:120px;resize:vertical}
.mhd-contact-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.mhd-contact-status{font-size:.75rem;color:var(--mhd-muted)}
.mhd-prepared-message{margin-top:10px;border:1px solid var(--mhd-border);border-radius:12px;padding:11px;background:var(--mhd-surface-2);font-size:.8rem;white-space:pre-wrap}
@media(max-width:760px){.mhd-contact-card{grid-template-columns:1fr}.mhd-contact-form{grid-template-columns:1fr}.mhd-contact-form .wide{grid-column:auto}}


/* Final shared footer/disclaimer + active shimmer visibility */
.mhd-universal-disclaimer{
  max-width:1180px;margin:24px auto 0;padding:16px 22px 0;
  border-top:1px solid rgba(243,238,227,.20);
  color:#C4C5BD;font-size:.74rem;line-height:1.45;
}
html[data-mhd-motion="subtle"] .mhd-header-action:hover::after,
html[data-mhd-motion="subtle"] .mhd-contact-action:hover::after,
html[data-mhd-motion="subtle"] .primary:hover::after,
html[data-mhd-motion="subtle"] .small-btn:hover::after,
html[data-mhd-motion="subtle"] .smallbtn.dark:hover::after,
html[data-mhd-motion="subtle"] .nav-cta:hover::after,
html[data-mhd-motion="subtle"] .footer-support:hover::after{
  opacity:1!important;
}
body:has(#onboarding.guide-active:not(.hidden)) .mhd-contact-section{display:none!important}


/* Desktop utility alignment refinement */
@media(min-width:901px){
  html.mhd-universal-header .top .nav,
  html.mhd-universal-header .header .headinner,
  html.mhd-universal-header .topbar .nav{
    align-items:center!important;
  }
  .mhd-page-nav{
    align-self:center!important;
    gap:14px!important;
  }
  .mhd-page-nav a{
    font-size:.77rem!important;
    line-height:34px!important;
    padding:0!important;
  }
  html.mhd-universal-header .mhd-header-actions{
    align-self:center!important;
    justify-self:end!important;
    grid-template-columns:repeat(3,118px) 36px!important;
    gap:10px!important;
    margin:0!important;
    padding:0!important;
  }
  .mhd-header-action{
    width:118px!important;min-width:118px!important;max-width:118px!important;
    height:36px!important;min-height:36px!important;
    font-size:.70rem!important;padding:0 11px!important;
  }
  .mhd-contact-action{
    width:36px!important;min-width:36px!important;max-width:36px!important;
    height:36px!important;min-height:36px!important;padding:0!important;
    overflow:visible!important;
  }
  .mhd-contact-action[data-tip]:hover:before{
    top:auto!important;bottom:calc(100% + 9px)!important;
    right:50%!important;transform:translateX(50%)!important;
    padding:5px 8px!important;z-index:10010!important;
    pointer-events:none!important;
  }
}


/* Shared MHD Trust Layer - final integration */
.mhd-trust-layer{
  max-width:1180px;margin:34px auto 0;padding:0 22px;
}
.mhd-trust-card{
  border:1px solid var(--mhd-border);border-radius:18px;padding:14px 16px;
  background:color-mix(in srgb,var(--mhd-surface) 93%,var(--mhd-wash-a));
  display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;
}
.mhd-trust-mark{
  font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em;
  border:1px solid var(--mhd-border);border-radius:999px;padding:5px 8px;white-space:nowrap;
}
.mhd-trust-copy strong{display:block;font-size:.84rem;margin-bottom:2px}
.mhd-trust-copy span{display:block;font-size:.72rem;color:var(--mhd-muted);line-height:1.45}
.mhd-trust-action{
  font-size:.72rem;font-weight:760;text-decoration:underline;text-underline-offset:3px;white-space:nowrap
}
@media(max-width:720px){
  .mhd-trust-card{grid-template-columns:1fr;gap:8px}
  .mhd-trust-mark{width:max-content}
  .mhd-trust-action{white-space:normal}
}
@media print{.mhd-trust-layer{display:none!important}}


/* 2026-10-17 navigation consolidation */
html.mhd-universal-header .mhd-page-nav,
html.mhd-universal-header .mhd-mobile-toggle,
body[data-site-slug="MentalHealthDiscussions"] .site-app-desktop,
body[data-site-slug="MentalHealthDiscussions"] .site-app-mobile-rail.site-app-mobile-slot{
  display:none!important;
}
html.mhd-universal-header .topbar .nav,
html.mhd-universal-header .top .nav,
html.mhd-universal-header .header .headinner{
  grid-template-columns:auto 1fr auto!important;
  gap:10px!important;
}
html.mhd-universal-header .mhd-header-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;
}
html.mhd-universal-header .mhd-header-action{
  background:var(--mhd-deep)!important;color:var(--mhd-button-text)!important;border-color:var(--mhd-deep)!important;
}
html.mhd-universal-header .mhd-contact-action{min-width:40px!important;width:40px!important;padding-inline:0!important}
@media(max-width:900px){
 html.mhd-universal-header .mhd-header-actions{gap:5px!important}
 html.mhd-universal-header .mhd-header-action{padding:8px 9px!important;font-size:.72rem!important}
}
@media(max-width:680px){
 html.mhd-universal-header .mhd-header-actions .mhd-header-action{display:none!important}
 html.mhd-universal-header .mhd-header-actions .mhd-contact-action{display:inline-flex!important}
}

html.mhd-universal-header .topbar .nav,
html.mhd-universal-header .top .nav,
html.mhd-universal-header .header .headinner{
  display:flex!important;align-items:center!important;gap:8px!important;
}
html.mhd-universal-header .topbar .nav>.brand,
html.mhd-universal-header .top .nav>.brand,
html.mhd-universal-header .header .headinner>.wordmark{
  flex:0 0 auto!important;margin-right:auto!important;
}
html.mhd-universal-header .mhd-header-actions{
  flex:0 1 auto!important;margin-left:auto!important;margin-right:2px!important;
}
html.mhd-universal-header .x-mhd-soundbars{margin-left:4px!important}
html.mhd-universal-header .x-menu-toggle{margin-left:0!important}


/* 2026-10-17 final MHD button consistency */
:root{
  --mhd-button-grad:linear-gradient(135deg,#2E443B 0%,#3E5A4E 52%,#294036 100%);
}
body .primary,
body .small-btn,
body .smallbtn.dark,
body .nav-cta,
body .mhd-header-action,
body .mhd-video-play,
body .footer-support,
body button.path,
body .hero-actions .primary,
body .hero-actions .outline:hover,
body .mhd-assistant-send,
body .mhd-comfort-panel button:not(.secondary):not(.ghost),
body .modal .small-btn.dark{
  position:relative!important;
  overflow:hidden!important;
  background:var(--mhd-button-grad)!important;
  background-image:var(--mhd-button-grad)!important;
  color:#F8F5EE!important;
  -webkit-text-fill-color:#F8F5EE!important;
  border:1px solid #506D60!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 6px 18px rgba(33,52,45,.16)!important;
}
body .primary::after,
body .small-btn::after,
body .smallbtn.dark::after,
body .nav-cta::after,
body .mhd-header-action::after,
body .mhd-video-play::after,
body .footer-support::after,
body button.path::after,
body .mhd-assistant-send::after,
body .mhd-comfort-panel button:not(.secondary):not(.ghost)::after{
  content:""!important;
  position:absolute!important;
  inset:-55% auto -55% -65%!important;
  width:34%!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent)!important;
  transform:skewX(-20deg)!important;
  animation:mhdButtonShine 6.2s ease-in-out infinite!important;
  pointer-events:none!important;
}
body .primary:hover,
body .small-btn:hover,
body .smallbtn.dark:hover,
body .nav-cta:hover,
body .mhd-header-action:hover,
body .mhd-video-play:hover,
body .footer-support:hover,
body button.path:hover,
body .mhd-assistant-send:hover,
body .mhd-comfort-panel button:not(.secondary):not(.ghost):hover{
  animation:mhdButtonShimmy .48s ease!important;
  transform:translateY(-1px)!important;
}
@keyframes mhdButtonShine{0%,68%{left:-65%}86%,100%{left:145%}}
@keyframes mhdButtonShimmy{0%,100%{translate:0 0}25%{translate:-1px -1px}55%{translate:1px -1px}75%{translate:-1px 0}}

.footer-support{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:8px 13px!important;border-radius:999px!important;text-decoration:none!important;
  font-size:.78rem!important;font-weight:700!important;
}








/* === LOCKED MHD HOMEPAGE HERO VIDEO ===
   Source of truth: working 2026-10-05 player.
   Do not modify this block for title/copy-only edits. */
.mhd-video-column{
  display:flex!important;
  flex-direction:column!important;
  align-self:start!important;
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.mhd-video-kicker{
  margin:0 0 3px!important;
  font-size:.54rem!important;
  line-height:1.1!important;
  font-weight:800!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
  color:var(--mhd-link)!important;
}
.mhd-video-title{
  margin:0 0 9px!important;
  max-width:520px!important;
  font-size:clamp(.96rem,1.25vw,1.12rem)!important;
  line-height:1.12!important;
  letter-spacing:-.012em!important;
  font-weight:700!important;
}
.video#mhdVideo{
  position:relative!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
}
.video#mhdVideo::before,
.video#mhdVideo::after{
  content:none!important;
  display:none!important;
}
.video#mhdVideo iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  opacity:1!important;
  visibility:visible!important;
  transition:none!important;
  transform:none!important;
  filter:none!important;
  pointer-events:none!important;
}
.video#mhdVideo.mhd-playing iframe{pointer-events:auto!important}
.mhd-video-play{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:10!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:10px 16px!important;
  border:1px solid rgba(255,255,255,.65)!important;
  border-radius:999px!important;
  background:rgba(61,91,79,.92)!important;
  background-image:none!important;
  color:#FFF9EE!important;
  -webkit-text-fill-color:#FFF9EE!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:.78rem!important;
  font-weight:700!important;
  line-height:1!important;
  box-shadow:0 8px 24px rgba(34,49,43,.24)!important;
  backdrop-filter:blur(5px)!important;
  cursor:pointer!important;
  animation:none!important;
}
.mhd-video-play::after{display:none!important;content:none!important}
.video#mhdVideo.mhd-playing .mhd-video-play{display:none!important}
@media(max-width:950px){
  .mhd-video-column{order:-1!important}
  .mhd-video-kicker{font-size:.52rem!important}
  .mhd-video-title{font-size:.94rem!important;max-width:100%!important}
}
