/* doctor page: own rules from home-sample/doctor-sample-6 */
/* =================== Dr. Mangal page =================== */
  .nav ul a[aria-current="page"] { color: var(--current); }
  .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .sec-head { max-width: 660px; margin-bottom: 44px; }
  .sec-head p { margin: 16px 0 0; font-size: 1.1rem; }
  :root { --rule: rgba(76,28,8,.16); }
  mark { color: inherit; background: linear-gradient(var(--swell), var(--swell)) no-repeat 0 88% / 100% 30%; padding: 0 .04em; }

  /* Hero: the name is the headline, kept on one line at every width */
  .hero--doc .wrap { min-height: min(660px, calc(100vh - 86px)); }
  #dr-title { max-width: none; white-space: nowrap; font-size: min(clamp(2.4rem, 5vw, 4rem), 8.6vw); }
  .hero--doc .hero-place { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--current); }
  .hero--doc .role { margin: 14px 0 0; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.35; color: var(--deep); }
  .hero--doc .hero-lede { margin-top: 18px; }
  .hero--doc .hero-actions { gap: 26px; align-items: center; flex-wrap: wrap; }
  .motion .hero--doc .role { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) .55s, transform .9s var(--ease-out) .55s; }
  .hero-in .hero--doc .role { opacity: 1; transform: none; }
  /* ABPD seal on the portrait's lower corner (user chose "option 2", 2026-11-23); ABPD's
     identifying line sits under the photo. The frame keeps the seal tied to the photo, not the caption. */
  .hero--doc .photo-frame { position: relative; z-index: 1; display: block; }
  .hero--doc .photo .seal { position: absolute; z-index: 3; right: -22px; bottom: 22px; width: 128px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; clip-path: none; transition: none; filter: drop-shadow(0 10px 14px rgba(43,20,8,.22)); }
  .hero--doc .seal-cap { position: relative; z-index: 1; display: block; margin-top: 14px; text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--deep); }
  .motion .hero--doc .photo .seal { opacity: 0; }
  .hero-in .hero--doc .photo .seal { animation: seal-in .8s var(--ease-out) 1.3s both; }
  @keyframes seal-in { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }

  /* Her story: a large opening line beside the story, then the route from Nepal to Orlando */
  .story { padding: 100px 0 96px; }
  .story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; align-items: start; }
  .story .kicker { grid-column: 1 / -1; }
  .story .quote {
    margin: 0; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 550;
    font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.24; letter-spacing: -.01em; color: var(--deep); text-wrap: balance;
  }
  .motion .story .quote mark { background-size: 0% 30%; transition: background-size 1.2s var(--ease-out) .5s; }
  .motion .story .quote.in mark { background-size: 100% 30%; }
  .story .body p { margin: 0 0 18px; font-size: 1.12rem; max-width: 54ch; }
  .story .body p:last-child { margin-bottom: 0; }

  .route { grid-column: 1 / -1; list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
  .route::before { content: ""; position: absolute; top: 8px; left: 9px; width: 66.667%; height: 2px; border-radius: 2px; background: var(--current); transform-origin: left center; }
  .route li { position: relative; padding: 36px 28px 0 0; }
  .route .dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--swell); border: 3px solid var(--current); box-shadow: 0 0 0 6px var(--cream); }
  .route strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; color: var(--deep); }
  .route span:not(.dot) { display: block; margin-top: 6px; max-width: 30ch; }
  .motion .route::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .15s; }
  .motion .route.in::before { transform: none; }
  .motion .route .dot { transform: scale(0); transition: transform .7s var(--ease-spring) calc(.2s + var(--i, 0) * .55s); }
  .motion .route.in .dot { transform: none; }

  /* Training: heading on the left, plain ruled rows on the right */
  .creds { background: var(--glide-soft); padding: 96px 0; }
  .creds .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .creds .sec-head { margin-bottom: 0; }
  .creds .note { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 46ch; font-size: 1rem; }
  /* ABPD Board Certified badge (2026-11-23): badge + ABPD's identifying phrase, under the note */
  .abpd { margin: 32px 0 0; display: flex; align-items: center; gap: 22px; }
  .abpd img { flex: none; width: 128px; height: auto; }
  .abpd figcaption { font-size: 1rem; line-height: 1.45; color: var(--deep); max-width: 24ch; }
  .abpd figcaption strong { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 650; font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
  .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
  .rows li { display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
  .rows .lbl { font-weight: 700; font-size: .98rem; color: var(--current); }
  .rows h3 { font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
  .rows p { margin: 8px 0 0; }
  .sub-h { margin: 48px 0 6px; font-size: 1.3rem; }
  .orgs { list-style: none; margin: 0; padding: 0; }
  .orgs li { display: grid; grid-template-columns: 200px 1fr; gap: 6px 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
  .orgs .abbr { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 650; font-size: 1.6rem; line-height: 1; color: var(--deep); }
  .orgs .full { font-size: 1.08rem; color: var(--deep); }

  /* Hospital work: a blue band, two hospitals side by side */
  .hosp { position: relative; overflow: hidden; background: var(--current); color: var(--white); padding: 96px 0; }
  /* dots run along the band's top and bottom edges only, so they never sit on the text */
  .hosp::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cg fill='%23F8CC48'%3E%3Ccircle cx='1180' cy='22' r='5'/%3E%3Ccircle cx='860' cy='30' r='3.5'/%3E%3Ccircle cx='1400' cy='14' r='3'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='1250' cy='38' r='3.5'/%3E%3Ccircle cx='980' cy='16' r='3'/%3E%3Ccircle cx='1340' cy='30' r='4'/%3E%3C/g%3E%3Cg fill='%23FF876A'%3E%3Ccircle cx='1080' cy='34' r='4'/%3E%3Ccircle cx='760' cy='18' r='3'/%3E%3C/g%3E%3C/svg%3E") right top / 1440px 56px no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56'%3E%3Cg fill='%23F8CC48'%3E%3Ccircle cx='1010' cy='30' r='3.5'/%3E%3Ccircle cx='1320' cy='20' r='4'/%3E%3C/g%3E%3Cg fill='%23FFFFFF'%3E%3Ccircle cx='1380' cy='38' r='4.5'/%3E%3Ccircle cx='900' cy='22' r='3'/%3E%3Ccircle cx='1160' cy='18' r='3'/%3E%3C/g%3E%3Cg fill='%23FF876A'%3E%3Ccircle cx='1240' cy='36' r='4'/%3E%3Ccircle cx='800' cy='34' r='3.5'/%3E%3C/g%3E%3C/svg%3E") right bottom / 1440px 56px no-repeat;
  }
  .hosp .wrap { position: relative; z-index: 1; }
  .hosp .kicker { color: var(--cream); }   /* yellow on this blue falls short of 4.5:1 at label size */
  .hosp h2 { color: var(--white); max-width: 18ch; }
  .hosp-head p { margin: 18px 0 0; font-size: 1.2rem; max-width: 52ch; }
  .hosp-list { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; }
  .hosp-list li { border-top: 2px solid rgba(255,255,255,.4); padding-top: 26px; }
  .hosp-list h3 { color: var(--white); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; }
  .hosp-list p { margin: 12px 0 0; font-size: 1.12rem; line-height: 1.6; max-width: 46ch; }

  /* How she cares for kids */
  .approach { padding: 100px 0; }
  .approach .sec-head { margin-bottom: 28px; }
  .approach .lead { margin: 0 0 18px; max-width: 62ch; font-size: 1.15rem; }
  .approach .lead.first { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.4; color: var(--deep); max-width: 40ch; margin-bottom: 22px; }
  .tsd-title { margin: 56px 0 0; font-size: 1.3rem; }
  .tsd-title + p { margin: 8px 0 0; max-width: 60ch; }
  .tsd { list-style: none; margin: 28px 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  .tsd li { border-top: 2px solid var(--deep); padding-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
  .tsd .n { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--current); }
  .tsd h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
  .tsd p { grid-column: 2; margin: 0; font-size: 1.05rem; }
  .pace { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .pace li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: var(--white); box-shadow: 0 0 0 1px var(--line); border-radius: 22px; padding: 24px; }
  .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--deep); color: var(--swell); }
  .ico svg { width: 26px; height: 26px; }
  .pace h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 2px 0 6px; }
  .pace p { margin: 0; }

  /* Get to know Dr. Mangal: the playful photo beside five answers */
  .know { background: var(--white); padding: 104px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .know .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
  .know-shot { margin: 0; width: min(100%, 430px); justify-self: center; rotate: -2.5deg; }
  .know-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; border: 8px solid var(--white); box-shadow: 0 0 0 2px var(--glide), 0 30px 50px -34px rgba(76,28,8,.55); }
  .motion .know-shot.rv { transform: translateY(28px) rotate(3deg); }
  .motion .know-shot.rv.in { transform: none; }
  #know-title { font-size: min(clamp(2.1rem, 3.8vw, 3.2rem), 8.4vw); }
  .facts { margin: 30px 0 0; border-top: 1px solid var(--line); }
  .facts > div { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
  .facts dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; color: var(--current); }
  .facts dt svg { width: 22px; height: 22px; flex: none; }
  .facts dd { margin: 8px 0 0; }
  .facts .ans { display: block; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 72; font-weight: 600; font-size: clamp(1.5rem, 2.3vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; color: var(--deep); }
  .facts .more { display: block; margin-top: 8px; max-width: 54ch; }
  .motion .facts mark { background-size: 0% 30%; transition: background-size 1s var(--ease-out) calc(var(--rv-d, 0s) + .35s); }
  .motion .facts > div.in mark { background-size: 100% 30%; }
  /* Desktop (user, 2026-11-11): the whole "Get to know" section fits one screen below the sticky header,
     with nothing cut. Spacing follows the screen height, the photo is capped to it, and the two one-line
     answers (movie, word) sit side by side with a hairline between them. */
  @media (min-width: 1000.02px) {
    .know { padding: clamp(40px, 8vh, 104px) 0; padding: clamp(40px, 8svh, 104px) 0; }
    .know-shot { width: min(100%, 430px, calc((100vh - 230px) / 1.3)); width: min(100%, 430px, calc((100svh - 230px) / 1.3)); }
    .know .kicker { margin-bottom: clamp(8px, 1.4svh, 16px); }
    .facts { margin-top: clamp(16px, 2.6svh, 30px); display: grid; grid-template-columns: 1fr 1fr; }
    .facts > div { padding: clamp(10px, 1.7svh, 20px) 0 clamp(11px, 1.9svh, 22px); }
    .facts > div:nth-child(1), .facts > div:nth-child(4) { grid-column: 1 / -1; }
    .facts > div:nth-child(3) { padding-left: 32px; border-left: 1px solid var(--line); }
    .facts dd { margin-top: clamp(4px, .8svh, 8px); }
    .facts .more { margin-top: clamp(4px, .8svh, 8px); }
  }
  /* the booking card needs room below the blue hospital band, which now sits right above it */
  .hosp + .book { padding-top: 96px; }

  @media (max-width: 1000px) {
    .story .wrap { grid-template-columns: 1fr; }
    .story .quote { margin-bottom: 28px; }
    .creds .wrap { grid-template-columns: 1fr; gap: 44px; }
    .know .wrap { grid-template-columns: 1fr; gap: 48px; }
    .know-shot { width: min(78%, 360px); order: 2; }
    .pace { grid-template-columns: 1fr; }
    .hosp-list { gap: 0 40px; }
  }
  @media (max-width: 820px) {
    #dr-title { font-size: min(3.6rem, 10vw); }
    .tsd { grid-template-columns: 1fr; gap: 26px; margin-bottom: 36px; }
  }
  @media (max-width: 700px) {
    /* the route runs down the page instead of across */
    .route { grid-template-columns: 1fr; margin-top: 44px; }
    .route::before { display: none; }
    .route li { padding: 0 0 30px 42px; }
    .route li:last-child { padding-bottom: 0; }
    .route li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: var(--current); }
    .route .dot { z-index: 1; }
    .route strong { line-height: 1; }
    .hosp-list { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
    .rows li, .orgs li { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .story, .creds, .approach, .know { padding: 72px 0; }
    .story { padding-top: 48px; }
    .hosp { padding: 72px 0; } .hosp + .book { padding-top: 64px; }
    .pace li { grid-template-columns: 1fr; gap: 12px; }
    .rows h3 { font-size: 1.35rem; }
    .hero--doc .photo .seal { width: 88px; right: -12px; bottom: 16px; }
    .hero--doc .seal-cap { font-size: .88rem; }
    .abpd { gap: 16px; }
    .abpd img { width: 100px; }
    .tsd-title { margin-top: 44px; }
  }
