/*
Theme Name: Psynapse
Theme URI: https://psynapseclinic.com/
Description: Warm, modern theme for Psynapse Clinic (Option B, "Warm & Family").
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: psynapse
*/

:root {
  --sand: #FBF6EF;
  --sand-2: #F3E6D6;
  --sand-3: #E7D3BC;
  --line: #EADFCF;
  --teal: #0E5E6F;
  --teal-dark: #083F4B;
  --teal-soft: #EEF5F6;
  --teal-line: #D5E5E8;
  --accent: #C8553D;
  --accent-dark: #A8432E;
  --ink: #24211D;
  --ink-2: #4F473E;
  --ink-3: #6B6157;
  --white: #fff;
  --radius: 24px;
  --radius-lg: 36px;
  --wrap: 1200px;
  --font: 'Plus Jakarta Sans', 'Noto Sans Bengali', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--sand); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 12px 16px; clip: auto; width: auto; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.lede { font-size: 19px; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 48px; padding: 12px 22px; border-radius: 14px; font: 700 15px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--white { background: #fff; color: var(--teal); }
.btn--white:hover { color: var(--teal-dark); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn--ghost:hover { color: #fff; border-color: #fff; }
.btn--soft { background: #fff; color: var(--ink); }
.btn--soft:hover { color: var(--ink); background: var(--sand-2); }

/* Top bar + header */
.topbar { background: var(--teal); color: #E8F3F5; font-size: 13px; padding: 7px 24px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,246,239,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img, .brand__logo { height: 78px; width: auto; max-height: none; margin: 4px 0; }
@media (max-width: 640px) { .brand img, .brand__logo { height: 60px; } }
.brand__dot { color: var(--accent); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--sand-2); color: var(--ink); }
.primary-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 18px 40px rgba(36,33,29,.10); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
.primary-nav .sub-menu > li > a { font-size: 14px; font-weight: 600; }
.primary-nav .sub-menu .sub-menu a { font-weight: 500; color: var(--ink-2); padding: 7px 12px; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.primary-nav .sub-menu .menu-item-has-children > a::after { display: none; }
/* Wide "What we treat" dropdown */
.primary-nav > ul > li.is-mega > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px 12px; min-width: 560px; padding: 16px; }
.primary-nav > ul > li.is-mega > .sub-menu > li > a { color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1080px) {
  /* A blurred header would trap the fixed menu inside it, so use a solid header on small screens. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--sand); }
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--sand); flex-direction: column; align-items: stretch; gap: 16px; padding: 88px 20px 24px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: -20px 0 40px rgba(0,0,0,.08); z-index: 55; }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .primary-nav > ul { flex-direction: column; }
  .primary-nav .sub-menu, .primary-nav > ul > li.is-mega > .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; display: block; min-width: 0; padding: 0 0 0 12px; }
  .primary-nav .menu-item-has-children > a::after { display: none; }
  /* On phones, "What we treat" opens and closes so the rest of the menu stays in view. */
  .primary-nav > ul > li.is-mega > a { display: flex; justify-content: space-between; align-items: center; }
  .primary-nav > ul > li.is-mega > a::after { display: inline-block; content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 6px; opacity: .7; }
  .primary-nav > ul > li.is-mega.is-expanded > a::after { transform: rotate(-135deg); }
  .primary-nav > ul > li.is-mega > .sub-menu { display: none; }
  .primary-nav > ul > li.is-mega.is-expanded > .sub-menu { display: block; }
  .site-header .nav-toggle { position: relative; z-index: 60; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 1080px) { .header-cta { display: none; } }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero__card { background: var(--sand-2); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero__text h1 { margin-bottom: 20px; }
.hero__ask { font-weight: 700; margin: 28px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; color: var(--ink); text-decoration: none; padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.chip:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: var(--radius); overflow: hidden; background: var(--sand-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--a { height: 230px; }
.tile--b { height: 230px; margin-top: 40px; background: #CFE3E6; }
.tile--c { height: 170px; background: #CFE3E6; }
.tile--stat { height: 170px; margin-top: 40px; background: var(--accent); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--stat strong { font-size: 34px; font-weight: 800; line-height: 1; }
.tile--stat span { font-size: 14px; }

/* Steps */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--sand-2); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }

/* Conditions */
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.panel { flex: 1 1 480px; min-width: 0; border-radius: 28px; padding: 36px; background: var(--sand); scroll-margin-top: 100px; }
.panel--teal { background: var(--teal-soft); }
.panel--teal .eyebrow { color: var(--teal); }
.panel h3 { font-size: 26px; font-weight: 800; margin: 8px 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags a { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: border-color .2s; }
.panel--teal .tags a { border-color: var(--teal-line); }
.tags a:hover { border-color: var(--accent); color: var(--ink); }

/* Services */
.service { background: #fff; border-radius: var(--radius); padding: 28px; }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sand-2); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* Doctors */
.doctors { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.doctor { flex: 0 0 250px; scroll-snap-align: start; background: #fff; border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.doctor:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(36,33,29,.08); color: var(--ink); }
.doctor__photo { aspect-ratio: 1 / 1.05; border-radius: 18px; overflow: hidden; background: var(--sand-2); display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 800; color: var(--ink-3); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doctor__body { padding: 14px 6px 6px; }
.doctor__name { font-weight: 700; }
.doctor__role { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.doctors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.doctors-grid .doctor { flex: none; }

/* Journal */
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--sand); border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
.section:not(.section--white) .post-card { background: #fff; }
.post-card:hover { transform: translateY(-3px); color: var(--ink); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--sand-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; }
.pill { display: inline-block; background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); }
.section:not(.section--white) .post-card .pill { background: var(--sand); }
.post-card h3 { font-size: 21px; line-height: 1.35; margin: 14px 0 10px; }
.post-card__more { font-size: 14px; color: var(--ink-3); }

/* Facebook feed */
.fb-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fb-intro { flex: 1 1 360px; }
.fb-frame { flex: 0 1 500px; max-width: 100%; margin: 0 auto; background: var(--sand); border-radius: var(--radius); padding: 12px; }
.fb-frame iframe { display: block; width: 100%; max-width: 500px; border-radius: 16px; background: #fff; }

/* CTA / contact */
.cta { background: var(--teal); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; }
.cta__info { flex: 1 1 380px; }
.cta__info h2 { color: #fff; font-size: clamp(32px, 5vw, 42px); }
.cta__info p { color: #CFE3E6; }
.cta__info .btn { margin: 6px 8px 0 0; }
.cta__form { flex: 1 1 420px; min-width: 0; }
.cta__form label, .form-light label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.wpcf7 form p { margin: 0 0 12px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); font: 400 16px var(--font); color: var(--ink); background: #fff; margin-top: 6px; }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.cta .wpcf7 input, .cta .wpcf7 textarea { border-color: transparent; }
.wpcf7 input[type=submit] { background: var(--accent); color: #fff; border: 0; min-height: 52px; padding: 14px 26px; border-radius: 14px; font: 700 16px var(--font); cursor: pointer; width: 100%; }
.wpcf7 input[type=submit]:hover { background: var(--accent-dark); }
.cta .wpcf7 form .wpcf7-response-output { border-radius: 12px; color: #fff; }
.wpcf7-spinner { display: block; margin: 8px auto 0; }

/* Page hero */
.page-hero { padding: 48px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); }
.breadcrumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-3); }

/* Content */
.content { max-width: 760px; }
.content h2 { font-size: 28px; margin-top: 1.6em; }
.content h3 { margin-top: 1.4em; }
.content ul, .content ol { padding-left: 1.2em; }
.content li { margin-bottom: .4em; }
.content img { border-radius: 18px; }
.content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--sand-2); border-radius: 18px; }
.article { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.article__main { flex: 999 1 560px; min-width: 0; }
.article__aside { flex: 1 1 300px; position: sticky; top: 100px; }
.feature-img { border-radius: 28px; overflow: hidden; margin-bottom: 32px; }
.aside-card { background: var(--teal); color: #fff; border-radius: var(--radius); padding: 28px; }
.aside-card h3 { color: #fff; }
.aside-card p { color: #CFE3E6; }
.aside-card .btn { width: 100%; margin-top: 8px; }

/* Profile */
.profile { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.profile__photo { flex: 0 1 340px; border-radius: 28px; overflow: hidden; background: var(--sand-2); }
.profile__body { flex: 999 1 420px; min-width: 0; }
.profile__role { font-size: 18px; color: var(--accent); font-weight: 700; margin-bottom: 20px; }

/* Info cards (contact/about) */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 18px 20px; }
.info-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.info-list strong { display: block; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--ink); color: #D9D3CB; padding: 56px 0 28px; margin-top: 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-brand { margin: -18px 0 4px -14px; }
.footer-brand img { width: 150px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #1F8F52; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.wa-float:hover { color: #fff; background: #187444; }

/* Appointment box on Dr. Naskar's profile */
.appt { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin: 4px 0 28px; }
.appt__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.appt__head strong { font-size: 18px; }
.appt__head span { font-size: 14px; color: var(--ink-3); }
.appt__head svg { vertical-align: -3px; }
.appt__phone { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(26px, 4vw, 32px); font-weight: 800; color: var(--teal); text-decoration: none; letter-spacing: -0.01em; margin: 4px 0 14px; }
.appt__phone:hover { color: var(--teal-dark); }
.appt__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.appt__where { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.appt__where svg { vertical-align: -3px; color: var(--accent); }
.aside-lead { margin: 14px 0 0; font-size: 14px; }
.aside-lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Profile content: publications and videos */
.content ol.publications { padding-left: 1.4em; font-size: 15px; color: var(--ink-2); }
.content ol.publications li { margin-bottom: .8em; }
.content iframe[src*="youtube"], .content .wp-embedded-content, .content embed { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.content p > iframe { display: block; }

/* Top bar */
.topbar__check { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar__sep { margin: 0 8px; opacity: .6; }
@media (max-width: 640px) { .topbar__sep, .topbar__call { display: none; } }

/* Language switcher: English | বাংলা | हिंदी */
.topbar__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.topbar__info { flex: 1 1 auto; min-width: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); flex: 0 0 auto; }
.lang-switch__icon { margin: 0 4px 0 8px; color: #CFE6EA; flex: 0 0 auto; }
.topbar .lang-switch__opt { display: inline-block; padding: 6px 15px; border-radius: 999px; font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; color: #fff; text-decoration: none; transition: background .2s, color .2s; }
.topbar .lang-switch__opt:hover { background: rgba(255,255,255,.18); }
.topbar .lang-switch__opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topbar .lang-switch__opt.is-active { background: #fff; color: var(--teal); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.lang-switch__opt[lang="bn"], .lang-switch__opt[lang="hi"] { font-size: 17px; }
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; }
  .topbar__inner { flex-direction: column; gap: 7px; }
  .topbar__info { text-align: center; }
  .lang-switch { width: 100%; max-width: 380px; justify-content: space-between; }
  .topbar .lang-switch__opt { flex: 1 1 0; text-align: center; padding: 7px 8px; }
}
/* Hide Google Translate's own bar and tooltips; the switcher above is the control. */
body { top: 0 !important; }
.skiptranslate > iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* Homepage self-check strip */
.selfcheck-strip { padding: 0 0 8px; }
.selfcheck-strip__card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: #fff; border: 2px solid var(--sand-2); border-radius: var(--radius); padding: 20px 24px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.selfcheck-strip__card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.selfcheck-strip__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand-2); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.selfcheck-strip__text { flex: 1 1 320px; display: grid; gap: 4px; }
.selfcheck-strip__text strong { font-size: 19px; }
.selfcheck-strip__text span { color: var(--ink-3); font-size: 15px; }

/* Self-check tool */
.sc { max-width: 860px; }
.sc-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sc-lang { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 15px var(--font); cursor: pointer; color: var(--ink); }
.sc-lang.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.sc-h { font-size: 26px; margin-bottom: 16px; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sc-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; cursor: pointer; display: grid; gap: 6px; font-family: var(--font); color: var(--ink); transition: border-color .2s, transform .2s; }
.sc-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sc-card__area { font-size: 20px; font-weight: 800; }
.sc-card__name { color: var(--teal); font-weight: 700; font-size: 14px; }
.sc-card__meta, .sc-card__langs { color: var(--ink-3); font-size: 14px; }
.sc-card__go { color: var(--accent); font-weight: 700; margin-top: 6px; }
.sc-back { background: none; border: 0; color: var(--teal); font: 600 15px var(--font); cursor: pointer; padding: 8px 0; margin-bottom: 8px; }
.sc-stem { font-size: 18px; font-weight: 600; }
.sc-notice { background: var(--sand-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.sc-progress { height: 8px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin: 16px 0 6px; }
.sc-progress span { display: block; height: 100%; background: var(--teal); transition: width .3s; }
.sc-count { font-size: 14px; color: var(--ink-3); margin-bottom: 16px; }
.sc-items { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.sc-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.sc-item.is-done { border-color: var(--teal-line); }
.sc-item.is-missing { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,85,61,.15); }
.sc-item fieldset { border: 0; margin: 0; padding: 0; }
.sc-item legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.sc-qn { color: var(--teal); }
.sc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-opt { position: relative; }
.sc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); cursor: pointer; font-size: 15px; transition: background .15s, border-color .15s; }
.sc-opt input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.sc-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.sc-help { color: var(--accent); font-weight: 600; }
.sc-submit { min-width: 220px; }
.sc-privacy { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.sc-credit { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.sc-crisis { background: #FDECE8; border: 2px solid var(--accent); border-radius: 18px; padding: 18px; margin: 14px 0; }
.sc-crisis strong { display: block; font-size: 18px; margin-bottom: 6px; }
.sc-crisis .btn { margin: 6px 6px 0 0; }
.sc-result { background: #fff; border-radius: 22px; padding: 24px; border: 1px solid var(--line); margin-bottom: 18px; }
.sc-result__label { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.sc-result__score { font-size: 46px; font-weight: 800; line-height: 1.1; margin: 6px 0 10px; }
.sc-result__score small { font-size: 16px; font-weight: 600; color: var(--ink-3); }
.sc-meter { height: 10px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.sc-meter span { display: block; height: 100%; background: var(--teal); }
.level-2 .sc-meter span { background: #D08A2E; }
.level-3 .sc-meter span { background: var(--accent); }
.sc-result__band { font-size: 20px; font-weight: 700; }
.sc-reco { background: var(--sand-2); border-radius: 22px; padding: 22px; margin-bottom: 16px; }
.sc-reco--high { background: var(--teal); color: #fff; }
.sc-reco--high h3, .sc-reco--high p { color: #fff; }
.sc-reco--high .sc-reco__who a { color: #fff; }
.sc-reco__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sc-note { font-size: 14px; color: var(--ink-2); }

/* Contact page: Dr. Subrata Naskar highlighted section */
.lead-contact { position: relative; margin-top: 12px; }
.lead-contact__tab { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; padding: 10px 20px; border-radius: 16px 16px 0 0; }
.lead-contact__body { background: var(--teal); color: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); border: 3px solid var(--accent); padding: clamp(20px, 4vw, 32px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; box-shadow: 0 18px 40px rgba(14,94,111,.18); }
.lead-contact__who { display: flex; gap: 16px; align-items: center; flex: 1 1 320px; }
.lead-contact__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #fff; flex: none; }
.lead-contact__who strong, .lead-contact__who span, .lead-contact__who a { display: block; }
.lead-contact__name { font-size: 24px; font-weight: 800; }
.lead-contact__who span { color: #CFE3E6; font-size: 15px; margin-top: 2px; }
.lead-contact__profile { color: #fff; font-weight: 700; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.lead-contact__profile:hover { color: #fff; }
.lead-contact__call { flex: 1 1 320px; }
.lead-contact__label { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #FFD9CF; }
.lead-contact__number { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(32px, 5vw, 44px); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.01em; margin: 4px 0 14px; }
.lead-contact__number:hover { color: #FFD9CF; }
.lead-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-clinic-h { margin: 40px 0 0; font-size: 26px; }

/* Booking page */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.book-card--main { background: var(--teal); color: #fff; border: 3px solid var(--accent); }
.book-card--main h2, .book-card--main p { color: #fff; }
.book-card__tag { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.book-card__tag--teal { background: var(--teal); }
.book-card__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 2px; opacity: .85; }
.book-card__number { display: inline-block; font-size: clamp(30px, 5vw, 42px); font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 14px; }
.book-card__number--dark { color: var(--teal); }
.book-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.book-card__small { font-size: 14px; margin: 16px 0 0; opacity: .9; }
.book-card__small svg { vertical-align: -3px; }
.book-note { margin-top: 40px; background: var(--sand-2); border-radius: var(--radius); padding: 22px 24px; }
/* FAQ */
.faq { max-width: 860px; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 18px; color: var(--ink-2); }
/* Profile extras */
.appt__also { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.appt__also svg { vertical-align: -3px; color: var(--accent); margin-right: 4px; }
.appt__rating { margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.appt__rating a { color: var(--ink); text-decoration: none; }
.appt__rating span { color: #E3A008; }
.profile__more { font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.lead-contact__also { font-size: 15px; font-weight: 700; color: #FFD9CF; margin: 0 0 12px; }

/* Gallery */
.gallery-head { margin-bottom: 24px; }
.gallery-head h2 { margin-bottom: 6px; }
.masonry { column-count: 3; column-gap: 16px; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 520px) { .masonry { column-count: 1; } }
.masonry__item { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--sand-2); border-radius: 18px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.masonry__item img { width: 100%; height: auto; transition: transform .4s ease; }
.masonry__item:hover img { transform: scale(1.03); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card { background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 9 / 16; }
.video-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20,18,16,.94); }
.lightbox::backdrop { background: rgba(20,18,16,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.psy-photo { width: 100%; height: 100%; object-fit: cover; }
.feature-img .psy-photo { height: auto; max-height: 520px; }

/* Pagination */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; padding: 0 12px; }
.pagination .current { background: var(--teal); color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 16px; }
  .panel { padding: 26px; }
  .tile--a, .tile--b { height: 170px; }
  .tile--c, .tile--stat { height: 130px; }
  .doctor { flex-basis: 220px; }
}
/* Keep the site's fonts when Google Translate is active (it injects its own font stack). */
html.translated-ltr body, html.translated-ltr body *:not(svg):not(path) { font-family: var(--font) !important; }

/* Video and map embeds */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0d1b1e; margin-bottom: 16px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed--wide { box-shadow: 0 10px 30px rgba(14,94,111,.14); }
.map-embed { aspect-ratio: 16 / 7; border-radius: 18px; overflow: hidden; background: var(--sand-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* Byline on articles */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline span { display: block; color: var(--ink-3); font-size: 13px; }

/* Video library */
.vlib__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.vlib__chip { font: inherit; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.vlib__chip:hover { border-color: var(--teal); }
.vlib__chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.vlib__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.vcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); color: var(--ink); }
.vcard[hidden] { display: none; }
.vcard__img { position: relative; aspect-ratio: 16 / 9; background: #0d1b1e; overflow: hidden; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.vcard__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(200,85,61,.92); color: #fff; display: grid; place-items: center; font-size: 18px; padding-left: 4px; }
.vcard__body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.vcard__body strong { font-size: 17px; line-height: 1.35; }
.vcard__topic { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.vcard__ex { font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* Video article body */
.video-article .keypoints { background: #fff; border-left: 4px solid var(--teal); border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.video-article .keypoints h2 { margin-top: 0; font-size: 20px; }
.video-article .bn-summary { background: var(--sand-2); border-radius: 16px; padding: 20px 22px; margin: 28px 0; font-family: 'Noto Sans Bengali', var(--font); }
.video-article .bn-summary h2 { margin-top: 0; font-size: 21px; }
.video-article .redflags { background: #FFF4EF; border: 1px solid #F3C9B8; border-radius: 14px; padding: 18px 22px; margin: 24px 0; }
.video-article .redflags h2 { margin-top: 0; font-size: 20px; color: var(--accent); }
.article-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 2px solid var(--teal); border-radius: 20px; padding: 22px 24px; margin-top: 36px; }
.article-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.bn-article, .bn-article h2, .bn-article li, .bn-article p { font-family: 'Noto Sans Bengali', var(--font); }
.bn-article p, .bn-article li { line-height: 1.8; }

/* Topbar crisis link */
.topbar .topbar__help { color: #FFD7CC; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .topbar .topbar__help { display: inline-block; margin-left: 10px; font-size: 12px; } }

/* Forms */
.form-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 48px); background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); }
@media (max-width: 860px) { .form-panel { grid-template-columns: 1fr; } }
.form-panel__intro h2 { margin-top: 4px; }
.psy-form { display: grid; gap: 14px; }
.psy-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .psy-form__row { grid-template-columns: 1fr; } }
.psy-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.psy-field input, .psy-field select, .psy-field textarea { font: inherit; font-weight: 500; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sand); color: var(--ink); width: 100%; box-sizing: border-box; }
.psy-field input:focus, .psy-field select:focus, .psy-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; background: #fff; }
.psy-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.psy-check input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal); }
.psy-form .btn { justify-self: start; }
.psy-form__small { font-size: 13px; color: var(--ink-3); margin: 0; }
.psy-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.psy-form__ok { background: #E8F5EE; border: 1px solid #A8D8BC; border-radius: 16px; padding: 20px 22px; }
.psy-form__ok p { margin: 8px 0 0; }
.psy-form__err { background: #FFF1EC; border: 1px solid #F3C9B8; border-radius: 12px; padding: 12px 16px; color: #8A2E1A; }

/* First visit timeline + checklists */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.timeline__item { display: flex; gap: 18px; background: #fff; border-radius: var(--radius); padding: 20px 22px; align-items: flex-start; }
.timeline__item h3 { margin: 2px 0 6px; }
.timeline__item p { margin: 0; color: var(--ink-2); }
.timeline__num { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; }
.checklist { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent); }
.checklist--num { counter-reset: n; }
.checklist--num li::before { counter-increment: n; content: counter(n) "."; }

/* Crisis page */
.page-hero--crisis h1 { color: var(--accent); }
.crisis-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 760px) { .crisis-grid { grid-template-columns: 1fr; } }
.crisis-card { display: grid; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; text-decoration: none; color: var(--ink); }
.crisis-card--main { background: var(--accent); border-color: var(--accent); color: #fff; }
.crisis-card__label { font-weight: 700; font-size: 15px; }
.crisis-card__num { font-size: clamp(44px, 8vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }

/* Publications, events, calendar, Q&A */
.stat-big { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.pub-list { display: grid; gap: 14px; padding-left: 22px; }
.pub-list li { line-height: 1.6; }
.pub-list em { color: var(--ink-3); }
.pub-type { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); background: rgba(14,94,111,.08); padding: 2px 8px; border-radius: 999px; }
.event-list { display: grid; gap: 14px; }
.event-card { display: flex; gap: 18px; background: #fff; border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.event-card__date { flex: 0 0 72px; text-align: center; background: var(--sand-2); border-radius: 14px; padding: 10px 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.event-card__date strong { display: block; font-size: 26px; color: var(--accent); }
.event-card__body { display: grid; gap: 4px; }
.cal-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.cal-list li { background: #fff; border-radius: 14px; padding: 14px 16px; }
.cal-list span { display: inline-block; min-width: 64px; font-weight: 800; color: var(--teal); }
.qa-link { display: grid; gap: 4px; background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.qa-link span { color: var(--ink-3); font-size: 14px; }

/* Reader tools */
.reader-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.reader-tools__size { display: inline-flex; gap: 4px; }
.reader-tools__btn { font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--teal); cursor: pointer; }
.reader-tools__btn:hover { border-color: var(--teal); }
.reader-tools__btn.is-on { background: var(--teal); color: #fff; border-color: var(--teal); }
.is-read-scaled [data-read] { font-size: calc(1em * var(--read-scale, 1)); }
.print-only { display: none; }

/* Printable handouts */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; font-size: 12pt; color: #000; }
  .topbar, .site-header, .site-footer, .article__aside, .article-cta, .reader-tools, .breadcrumbs, .wa-float, .vlib__grid, .video-embed, iframe, .tags, nav, .btn, .lang-switch, .skip-link, #wpadminbar { display: none !important; }
  .section, .page-hero { padding: 0 !important; background: none !important; }
  .article { display: block !important; }
  .page-hero h1 { font-size: 20pt; margin: 0 0 6pt; }
  .page-hero h1::before { content: "PSYNAPSE CLINIC · Kolkata"; display: block; font-size: 9pt; letter-spacing: .15em; color: #C8553D; margin-bottom: 6pt; }
  .keypoints, .redflags, .bn-summary { break-inside: avoid; border: 1px solid #999 !important; background: none !important; }
  details { display: block; } details > summary { list-style: none; font-weight: 700; }
  details:not([open]) > *:not(summary) { display: block !important; }
  a { color: #000; text-decoration: none; }
  .print-only { display: block; }
  .print-footer { margin-top: 12pt; padding-top: 6pt; border-top: 1px solid #999; font-size: 9pt; }
}
.hi-article, .hi-article h2, .hi-article li, .hi-article p { font-family: 'Noto Sans Devanagari', var(--font); }
.hi-article p, .hi-article li { line-height: 1.8; }
/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 40px rgba(0,0,0,.15); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 320px; }
.consent__btns { display: flex; gap: 8px; }
.consent .btn { padding: 10px 18px; }

/* ===== Interactive tools (Calm Corner, guide, quiz, diary, brain, exam) ===== */
.tool-langs { margin-bottom: 18px; }
button.chip { cursor: pointer; font-family: var(--font); border: 1px solid var(--line); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.tool-info { margin-top: 32px; }
.crisis-box { background: #FDECE8; border: 2px solid var(--accent); border-radius: 18px; padding: 18px 20px; margin: 0 0 20px; }
.crisis-box h3 { color: var(--accent-dark); margin: 0 0 6px; }
.crisis-box .btn { margin: 6px 6px 0 0; }

/* Calm Corner */
.calm { background: linear-gradient(160deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.calm .sc-lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.calm .sc-lang.is-active { background: #fff; color: var(--teal-dark); }
.calm-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.calm-mode { text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 16px; padding: 12px 14px; cursor: pointer; font-family: var(--font); display: grid; gap: 2px; }
.calm-mode strong { font-size: 16px; }
.calm-mode span { font-size: 13px; opacity: .85; line-height: 1.4; }
.calm-mode.is-active { background: #fff; color: var(--teal-dark); }
.calm-stage { position: relative; display: grid; justify-items: center; gap: 18px; padding: 28px 0 8px; }
.calm-circle-wrap { position: relative; width: min(300px, 74vw); aspect-ratio: 1; display: grid; place-items: center; }
.calm-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); }
.calm-circle { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #CFE6EA 35%, #7FB9C4 100%); transform: scale(.6); transition: transform 4s ease-in-out, box-shadow 1s; box-shadow: 0 0 0 0 rgba(255,255,255,.25); }
.calm-circle.is-in { box-shadow: 0 0 60px 10px rgba(255,255,255,.25); }
.calm-circle.is-hold, .calm-circle.is-rest { box-shadow: 0 0 40px 4px rgba(255,255,255,.2); }
.calm-label { position: relative; text-align: center; color: var(--teal-dark); display: grid; gap: 2px; max-width: 50%; }
.calm-label span { font-weight: 800; font-size: clamp(14px, 3.6vw, 20px); line-height: 1.2; }
.calm-label b { font-size: 34px; line-height: 1; }
.calm-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.calm-go { min-width: 140px; font-size: 18px; }
.calm-mins { display: flex; gap: 6px; }
.calm-mins .chip { padding: 9px 12px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.calm-mins .chip.is-active { background: #fff; color: var(--teal-dark); }
.calm-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.calm-toggle input { width: 18px; height: 18px; accent-color: #fff; }
.calm-left { font-size: 14px; opacity: .85; min-width: 70px; }
.calm-full { position: absolute; top: 0; right: 0; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--font); cursor: pointer; }
.calm-crisis { font-size: 13px; opacity: .9; text-align: center; margin: 14px 0 0; }
.calm-crisis a { color: #fff; font-weight: 700; }
.calm.is-full { display: flex; flex-direction: column; justify-content: center; border-radius: 0; overflow: auto; }
.calm.is-full .calm-circle-wrap { width: min(420px, 70vh, 80vw); }
.ground-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; text-align: center; }
.ground-num { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 36px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }
.ground-card.is-done .ground-num { background: var(--teal); }
.ground-dots { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.ground-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.ground-dots span.on { background: var(--accent); }
.ground-btns { display: flex; gap: 10px; justify-content: center; }

/* Tools strip */
.tools-strip { margin-top: 48px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.tool-tile { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.tool-tile:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.tool-tile__ico { font-size: 28px; line-height: 1; }
.tool-tile strong { font-size: 17px; }
.tool-tile span:last-child { font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* Myth or Fact */
.myths { max-width: 640px; margin: 0 auto; }
.myth-progress { height: 8px; background: var(--sand-3); border-radius: 99px; overflow: hidden; }
.myth-progress span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.myth-count { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0; }
.myth-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 5vw, 36px); box-shadow: 0 18px 40px rgba(36,33,29,.08); text-align: center; touch-action: pan-y; user-select: none; transition: transform .25s, box-shadow .25s; border: 3px solid transparent; }
.myth-card.lean-myth { border-color: var(--accent); }
.myth-card.lean-fact { border-color: #2E7D5B; }
.myth-statement { font-size: clamp(22px, 4.5vw, 30px); font-weight: 800; line-height: 1.25; margin: 6px 0 22px; }
.myth-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.myth-btn { min-width: 140px; font-size: 18px; color: #fff; }
.myth-btn--myth { background: var(--accent); }
.myth-btn--fact { background: #2E7D5B; }
.myth-btn--fact:hover { background: #24654A; color: #fff; }
.myth-hint { font-size: 14px; color: var(--ink-3); margin: 8px 0 0; }
.myth-verdict { display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 17px; margin-bottom: 12px; }
.myth-verdict.is-myth { background: #FDECE8; color: var(--accent-dark); }
.myth-verdict.is-fact { background: #E5F3EC; color: #1F5C42; }
.myth-explain { font-size: 17px; text-align: left; margin: 0 0 18px; }
.myth-score { font-size: 72px; font-weight: 800; line-height: 1; color: var(--teal); }
.myth-score small { font-size: 28px; color: var(--ink-3); }
.myth-result .myth-explain { text-align: center; }

/* Which help guide */
.guide { max-width: 820px; margin: 0 auto; }
.guide-q { font-size: clamp(22px, 4vw, 28px); margin: 6px 0 18px; }
.guide-opts { display: grid; gap: 10px; }
.guide-opts--grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.guide-opt { text-align: left; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--sand); font: 600 16px var(--font); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.guide-opt:hover { border-color: var(--accent); }
.guide-opt.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.guide-back { margin-top: 18px; }
.guide-level { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.guide-level--soon { color: var(--accent-dark); }
.guide-level--book { color: var(--teal); }
.guide-level--watch { color: #2E7D5B; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.guide-box { background: var(--sand); border-radius: 18px; padding: 20px; }
.guide-box h3 { margin-top: 0; }
.guide-sp, .guide-links { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.guide-sp a { display: grid; background: #fff; border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.guide-sp a:hover { border-color: var(--accent); }
.guide-sp span { font-size: 14px; color: var(--teal); font-weight: 600; }
.guide-links a { font-weight: 700; text-transform: none; }
.guide-more { font-size: 14px; font-weight: 700; }

/* Diary */
.diary-privacy { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.diary-form { display: grid; gap: 16px; }
.diary-field { display: grid; gap: 8px; }
.diary-label { font-weight: 700; display: block; margin-bottom: 4px; }
.diary-form input[type=date], .diary-form input[type=number], .diary-form input[type=text], .diary-name input { font: 500 16px var(--font); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sand); width: 100%; max-width: 420px; }
.diary-form input[type=number] { max-width: 120px; }
.diary-seg, .exam-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.diary-opt { min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); font: 600 15px var(--font); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.diary-opt:hover { border-color: var(--accent); }
.diary-opt.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.diary-face { font-size: 22px; line-height: 1; }
.diary-summary { margin-top: 32px; }
.diary-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: end; }
.diary-head h2 { margin: 0; }
.diary-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.diary-name { font-size: 13px; font-weight: 600; display: grid; gap: 4px; }
.diary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.diary-stats div { background: #fff; border-radius: 16px; padding: 14px; display: grid; }
.diary-stats b { font-size: 22px; }
.diary-stats span { font-size: 13px; color: var(--ink-3); }
.diary-chart { background: #fff; border-radius: 18px; padding: 14px; margin: 0 0 18px; }
.diary-chart figcaption { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.diary-chart svg { width: 100%; height: auto; display: block; }
.dc-key { font-weight: 600; font-size: 13px; margin-left: 10px; }
.dc-key::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.dc-key--mood::before { background: var(--accent); }
.dc-key--sleep::before { background: var(--teal); }
.dc-grid { stroke: var(--line); stroke-width: 1; }
.dc-ax { font: 11px var(--font); fill: var(--ink-3); }
.dc-line-mood { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.dc-line-sleep { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 4; }
.dc-mood { fill: var(--accent); }
.dc-sleep { fill: var(--teal); }
.diary-table-wrap { overflow-x: auto; background: #fff; border-radius: 18px; }
.diary-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.diary-table th, .diary-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.diary-table th { background: var(--sand-2); font-size: 13px; }
.diary-table tr.is-empty td { color: var(--ink-3); }
.diary-edit { background: none; border: 0; color: var(--teal); font: 700 14px var(--font); cursor: pointer; padding: 0; text-decoration: underline; }
.diary-clear { background: none; border: 0; color: var(--accent-dark); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; padding: 0; margin-top: 12px; }

/* Brain explorer */
.brain-pick-label { font-weight: 700; margin: 0 0 8px; }
.brain-conds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.brain-conds .chip { padding: 9px 14px; }
.brain-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .brain-layout { grid-template-columns: 1fr; } }
.brain-fig { background: var(--sand); border-radius: 24px; padding: 8px; }
.brain-svg { width: 100%; height: auto; display: block; }
.brain-outline { fill: #F6D9CF; stroke: #C99A8A; stroke-width: 3; }
.brain-gyri path { fill: none; stroke: #DDB2A3; stroke-width: 3; stroke-linecap: round; }
.brain-reg path, .brain-reg ellipse, .brain-reg circle { stroke: #fff; stroke-width: 2.5; transition: fill .2s, opacity .2s; }
.brain-reg.is-off { opacity: .28; }
.brain-reg.is-off path, .brain-reg.is-off ellipse, .brain-reg.is-off circle { fill: #C9B3A8; }
.brain-reg.is-on { cursor: pointer; }
.brain-reg.is-on path, .brain-reg.is-on ellipse, .brain-reg.is-on circle { fill: var(--teal); fill-opacity: .72; }
.brain-reg.is-on:hover path, .brain-reg.is-on:hover ellipse, .brain-reg.is-on:hover circle, .brain-reg.is-on:focus path, .brain-reg.is-on:focus ellipse, .brain-reg.is-on:focus circle { fill-opacity: .9; }
.brain-reg.is-sel path, .brain-reg.is-sel ellipse, .brain-reg.is-sel circle { fill: var(--accent); fill-opacity: 1; animation: brainPulse 1.6s ease-in-out infinite; }
.brain-reg:focus { outline: none; }
@keyframes brainPulse { 50% { fill-opacity: .7; } }
.brain-reg--stem.is-on path, .brain-reg--cer.is-on path { fill-opacity: .55; }
.brain-lbl { font: 700 13px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 4px; pointer-events: none; }
.brain-dir { font: 600 12px var(--font); fill: var(--ink-3); }
.brain-panel h2 { margin-top: 0; }
.brain-info { background: #FFF4EF; border: 1px solid #F3C9B8; border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.brain-info h3 { margin: 0 0 6px; color: var(--accent-dark); }
.brain-info p { margin: 0 0 8px; }
.brain-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.brain-list button { text-align: left; width: 100%; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 15px/1.5 var(--font); color: var(--ink); cursor: pointer; }
.brain-list button:hover { border-color: var(--accent); }
.brain-treat { background: var(--teal-soft); border-radius: 16px; padding: 16px 18px; }
.brain-treat h3 { margin: 0 0 6px; }
.brain-tap { font-size: 18px; color: var(--ink-2); }
.brain-note { font-size: 13px; margin-top: 18px; }

/* Exam stress hub */
.exam-top { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .exam-top { grid-template-columns: 1fr; } }
.exam-check h2 { margin-top: 0; }
.exam-qs { padding-left: 22px; display: grid; gap: 14px; margin: 0 0 18px; }
.exam-q p { margin: 0 0 8px; font-weight: 600; }
.exam-q--safe { list-style: none; margin-left: -22px; background: #FFF4EF; border-radius: 14px; padding: 14px; }
.exam-result { background: var(--sand); border-radius: 20px; padding: 22px; text-align: center; }
.exam-result h3 { font-size: 24px; margin: 12px 0 6px; }
.exam-result--2 h3 { color: var(--accent-dark); }
.exam-result--1 h3 { color: #A86A12; }
.exam-result--0 h3 { color: #2E7D5B; }
.exam-meter { height: 12px; border-radius: 99px; background: linear-gradient(90deg, #8CC8A8, #F2C66D 45%, var(--accent)); position: relative; margin: 12px auto 0; max-width: 420px; }
.exam-meter span { position: absolute; top: -4px; bottom: -4px; left: 0; border-right: 4px solid var(--ink); border-radius: 2px; }
.exam-content { max-width: 820px; margin-top: 40px; }
.exam-content .redflags { background: #FFF4EF; border: 1px solid #F3C9B8; border-radius: 14px; padding: 18px 22px; margin: 18px 0; }
.exam-content .redflags h3 { margin-top: 0; }
.exam-content .bn-summary { background: var(--sand-2); border-radius: 16px; padding: 20px 22px; margin: 32px 0; font-family: 'Noto Sans Bengali', var(--font); }
.exam-content .bn-summary h2 { margin-top: 0; font-size: 21px; }
.exam-content .faq__item { border-bottom: 1px solid var(--line); }

@media print {
  .no-print, .tools-strip, .tool-langs, .consent { display: none !important; }
  html.printing-diary .diary-form, html.printing-diary .diary-privacy, html.printing-diary .diary-actions, html.printing-diary .diary-clear, html.printing-diary .page-hero .lede { display: none !important; }
  html.printing-diary .diary-table { min-width: 0; font-size: 10pt; }
  html.printing-diary .diary-print-name { font-weight: 700; font-size: 12pt; }
  .diary-chart, .diary-stats div, .diary-table-wrap { background: none !important; border: 1px solid #bbb; }
}
.exam-top > *, .brain-layout > *, .guide-grid > * { min-width: 0; }
.exam-opts .diary-opt { flex: 1 1 auto; justify-content: center; }
.panel .btn { white-space: normal; text-align: center; max-width: 100%; }

/* Booking choices: any consultant (clinic number) and Dr. Naskar (his number) */
.book-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; text-align: left; color: var(--ink); }
.book-split > * { min-width: 0; }
.book-split__opt { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.book-split__head { font-size: 17px; color: var(--ink); }
.book-split__note { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.book-split__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.book-split__btns .btn { white-space: normal; text-align: center; }
.book-split__btns .btn--soft { border: 1px solid var(--line); }
.book-split a { text-decoration: none; }
.book-card:not(.book-card--main) .btn--soft { border: 1px solid var(--line); }
