/* Rooh Mind Care — the psychiatrist directory (/online-psychiatrist-india).
   Loaded after /css/pages.css, which supplies the page frame, the title
   pills (.team-position-badge) and the fee rows (.fee). These are the
   profile cards, the comparison table and the "psychiatrist or
   psychologist" split. */

/* ── Profile cards ──────────────────────────────────────────────── */
.psy-list{display:grid;gap:18px;margin:1.2rem 0 1.6rem}
.psy-card{padding:1.5rem 1.4rem 1.3rem;border-radius:14px;background:#fff;border:1px solid rgba(201,166,107,.45);box-shadow:var(--shadow-sm);scroll-margin-top:84px}
.psy-card__top{display:flex;gap:1.1rem;align-items:flex-start;flex-wrap:wrap}
.psy-card__photo{flex:0 0 auto;display:block}
.psy-card__photo img{width:120px;height:120px;border-radius:50%;object-fit:cover;object-position:center 40%;border:3px solid var(--gold-light)}
.psy-card__id{flex:1 1 240px;min-width:0}
.psy-card .team-position-badge{margin-bottom:.55rem}
.psy-card h3{margin:0 0 .3rem;font-size:1.5rem;line-height:1.15}
.psy-card h3 a{color:inherit;text-decoration:none}
.psy-card h3 a:hover{text-decoration:underline}
.psy-card .tm-sub{margin:0}

/* Facts as a definition list: label, then the answer. */
.psy-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.6rem;margin:1.15rem 0 0;padding:1rem 0 0;border-top:1px solid rgba(201,166,107,.35)}
.psy-facts > div{min-width:0}
.psy-facts dt{font-size:.72rem;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#7A5C26}
.psy-facts dd{margin:.12rem 0 0;font-size:.92rem;line-height:1.55;color:var(--text)}
.psy-facts dd small{display:block;margin-top:.15rem;font-size:.8rem;color:var(--text-light)}
.psy-facts .is-wide{grid-column:1 / -1}

.psy-card .fee{margin-top:.9rem;padding:.7rem 1rem;border:1px solid rgba(201,166,107,.55);border-radius:10px;background:#FBF4E6}
.psy-card .fee:last-child{border-bottom:1px solid rgba(201,166,107,.55)}
.psy-sub{font-size:.8rem;color:var(--text-light);font-weight:400}

.psy-card .chips{margin:.9rem 0 .2rem}
.psy-card__bio{margin:.9rem 0 0;font-size:.94rem}
.psy-card__bio p{margin:0 0 .6rem}
.psy-btns{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0 0}
.psy-btns .btn{padding:.65rem 1.2rem;font-size:.9rem}
.psy-btns .btn--p{background:var(--sage-dark);color:#fff}
.psy-btns .btn--p:hover{background:var(--forest)}
.psy-btns .btn--o{background:#fff;color:var(--forest);border:1.5px solid rgba(74,124,89,.45)}
.psy-btns .btn--o:hover{border-color:var(--forest)}
.psy-more{margin:.7rem 0 0;font-size:.86rem}

/* The outside-India note: js/market.js shows it only to visitors abroad. */
.psy-scope{font-size:.84rem;line-height:1.55;color:var(--text);background:rgba(201,166,107,.14);border-left:3px solid #C9A66B;padding:8px 12px;border-radius:0 8px 8px 0;margin:.9rem 0 0}

/* ── Comparison table ───────────────────────────────────────────── */
.psy-tablewrap{overflow-x:auto;margin:1rem 0 1.4rem;border-radius:12px;background:#fff;border:1px solid rgba(201,166,107,.45);box-shadow:var(--shadow-sm)}
.psy-table{width:100%;border-collapse:collapse;font-size:.9rem;min-width:640px}
.psy-table caption{text-align:left;padding:.8rem 1rem .2rem;font-weight:600;color:var(--forest)}
.psy-table th,.psy-table td{padding:.7rem .9rem;text-align:left;vertical-align:top;border-bottom:1px solid rgba(201,166,107,.3);line-height:1.5}
.psy-table tbody tr:last-child th,.psy-table tbody tr:last-child td{border-bottom:0}
.psy-table thead th{font-size:.76rem;font-weight:700;letter-spacing:.4px;color:var(--text-light)}
.psy-table tbody th{font-weight:700;color:var(--forest)}
.psy-table tbody th small{display:block;font-weight:500;color:var(--text-light);font-size:.8rem}
.psy-table td strong{white-space:nowrap}

/* ── Psychiatrist or psychologist ───────────────────────────────── */
.psy-split{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:1rem 0 1.4rem}
.psy-split > div{padding:1rem 1.1rem;border-radius:10px;background:#fff;border:1px solid rgba(201,166,107,.4)}
.psy-split .is-other{background:#FBF7F0}
.psy-split h3{margin:0 0 .4rem;font-size:1.02rem}
.psy-split ul{margin:0 0 0 1.1rem}
.psy-split li{margin-bottom:.2rem}

/* ── Small print under the hero ─────────────────────────────────── */
.psy-meta{max-width:62ch;margin:.9rem 0 0;font-size:.82rem;line-height:1.6;color:var(--text-light)}
.psy-meta a{color:inherit;font-weight:600}
.psy-hero-btns{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.1rem 0 0}
.psy-hero-btns .btn{padding:.7rem 1.25rem;font-size:.9rem}
.psy-hero-btns .btn--p{background:var(--sage-dark);color:#fff}
.psy-hero-btns .btn--p:hover{background:var(--forest)}
.psy-hero-btns .btn--o{background:#fff;color:var(--forest);border:1.5px solid rgba(74,124,89,.45)}

@media (max-width:640px){
  .psy-facts{grid-template-columns:1fr}
  .psy-split{grid-template-columns:1fr}
}
@media (max-width:560px){
  .psy-card{padding:1.25rem 1.05rem 1.1rem}
  .psy-card__photo img{width:96px;height:96px}
  .psy-card h3{font-size:1.35rem}
}

/* ── Booking layer (20 Nov 2026): live times, the table's Book column,
   the need and language guides, and the bar that follows phone visitors ── */
.psy-trust{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem .5rem;margin:1rem 0 0;padding:0}
.psy-trust li{font-size:.8rem;line-height:1.3;color:var(--forest);background:#fff;border:1px solid rgba(201,166,107,.5);border-radius:999px;padding:.32rem .75rem}
.psy-trust li::before{content:"\2713";color:var(--sage-dark);font-weight:800;margin-right:.4rem}

.psy-live{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .6rem;margin:.9rem 0 0;padding:.6rem .9rem;border-radius:10px;background:#EEF5EF;border:1px solid rgba(74,124,89,.35);font-size:.92rem;color:var(--forest);max-width:62ch}
.psy-live[hidden]{display:none}
.psy-live__dot{width:9px;height:9px;border-radius:50%;background:#3E9B5F;box-shadow:0 0 0 0 rgba(62,155,95,.5);animation:psyPulse 2.2s ease-out infinite}
.psy-live__go{font-weight:700;color:var(--forest);text-decoration:underline;text-underline-offset:3px}
@keyframes psyPulse{0%{box-shadow:0 0 0 0 rgba(62,155,95,.5)}70%{box-shadow:0 0 0 9px rgba(62,155,95,0)}100%{box-shadow:0 0 0 0 rgba(62,155,95,0)}}
.psy-live-note{font-size:.84rem;color:var(--text-light);margin:-.2rem 0 .4rem}

/* Time pills: the same on the table, the cards and the hero. */
.psy-pills{display:flex;flex-wrap:wrap;gap:.35rem}
.psy-pill{display:inline-block;padding:.38rem .7rem;border-radius:999px;background:#fff;border:1.5px solid rgba(74,124,89,.55);color:var(--forest);font-weight:700;font-size:.82rem;line-height:1.2;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
.psy-pill:hover,.psy-pill:focus-visible{background:var(--sage-dark);color:#fff;border-color:var(--sage-dark)}
.psy-next__note,.psy-next__none{font-size:.84rem;color:var(--text-light)}
.psy-times{margin:.9rem 0 0;padding:.75rem 1rem;border-radius:10px;background:#EEF5EF;border:1px solid rgba(74,124,89,.3)}
.psy-times[hidden]{display:none}
.psy-times__k{margin:0 0 .45rem;font-weight:700;font-size:.9rem;color:var(--forest)}
.psy-times__z{margin:.45rem 0 0;font-size:.76rem;color:var(--text-light)}
.psy-times__none{margin:0;font-size:.9rem}
.psy-times__alt{font-weight:700;color:var(--forest)}

/* The table's Book column. */
.psy-table .psy-bookbtn{padding:.5rem 1.1rem;font-size:.86rem;background:var(--sage-dark);color:#fff;white-space:nowrap}
.psy-table .psy-bookbtn:hover{background:var(--forest);color:#fff}
.psy-table td.psy-next{min-width:150px}

/* Find by need, find by language. */
.psy-need{list-style:none;margin:.8rem 0 1.6rem;padding:0;border:1px solid rgba(201,166,107,.45);border-radius:12px;background:#fff;overflow:hidden}
.psy-need li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:.4rem 1.2rem;padding:.8rem 1rem;border-bottom:1px solid rgba(201,166,107,.3)}
.psy-need li:last-child{border-bottom:0}
.psy-need__q{font-weight:600;color:var(--forest);line-height:1.4}
.psy-need__a{line-height:1.5}
.psy-need__a a{font-weight:700;color:var(--forest)}
.psy-need__a small{display:block;margin-top:.15rem;font-size:.8rem;color:var(--text-light)}
.psy-need__a small a{font-weight:600}
.psy-lang{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem 1.4rem;margin:.8rem 0 1.6rem}
.psy-lang > div{padding:.7rem .9rem;border-radius:10px;background:#fff;border:1px solid rgba(201,166,107,.4)}
.psy-lang dt{font-size:.74rem;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#7A5C26}
.psy-lang dd{margin:.1rem 0 0;font-size:.92rem;line-height:1.5}
.psy-inline-cta{margin:1rem 0}
.psy-inline-cta .btn{background:var(--sage-dark);color:#fff}
.psy-inline-cta .btn:hover{background:var(--forest)}

/* The bar that follows the visitor: hidden until needed, then pinned. */
.psy-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.6rem clamp(.8rem,3vw,1.2rem) calc(.6rem + env(safe-area-inset-bottom));background:rgba(26,46,32,.97);color:#F3E6C6;box-shadow:0 -8px 24px rgba(0,0,0,.18);transform:translateY(110%);transition:transform .25s ease}
.psy-bar.is-on{transform:none}
.psy-bar__t{min-width:0;display:flex;flex-direction:column;line-height:1.25}
.psy-bar__t strong{font-size:.92rem;color:#fff}
.psy-bar__t small{font-size:.78rem;color:#E8D0A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.psy-bar .btn{flex:0 0 auto;padding:.62rem 1.2rem;background:#E8D0A8;color:var(--forest-dark)}
.psy-bar .btn:hover{background:#fff}
@media (min-width:701px){.psy-bar{left:50%;right:auto;width:min(560px,calc(100vw - 32px));bottom:14px;border-radius:14px}.psy-bar{transform:translate(-50%,160%)}.psy-bar.is-on{transform:translate(-50%,0)}}
body{padding-bottom:0}
@media (max-width:700px){body{padding-bottom:64px}}
@media (prefers-reduced-motion:reduce){.psy-bar{transition:none}.psy-live__dot{animation:none}}

/* The table, stacked on phones: one card per doctor, the Book button last. */
@media (max-width:760px){
  .psy-tablewrap{overflow:visible;background:none;border:0;box-shadow:none}
  .psy-table{min-width:0;display:block}
  .psy-table caption{display:block;padding:.2rem 0 .6rem}
  .psy-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .psy-table tbody{display:grid;gap:12px}
  .psy-table tbody tr{display:block;padding:.9rem 1rem;border-radius:12px;background:#fff;border:1px solid rgba(201,166,107,.45);box-shadow:var(--shadow-sm)}
  .psy-table tbody th,.psy-table tbody td{display:block;border:0 !important;padding:.3rem 0}
  .psy-table tbody th{font-size:1.1rem}
  .psy-table tbody td::before{content:attr(data-label);display:block;font-size:.7rem;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#7A5C26}
  .psy-table tbody td.psy-book{padding-top:.6rem}
  .psy-table tbody td.psy-book::before{display:none}
  .psy-table .psy-bookbtn{display:block;text-align:center;padding:.75rem 1rem}
  .psy-table td.psy-next{min-width:0}
}
@media (max-width:640px){
  .psy-need li{grid-template-columns:1fr}
  .psy-lang{grid-template-columns:1fr}
}

/* Jump links land below the sticky header. */
main h2[id],main h3[id]{scroll-margin-top:84px}
