/* Document pages — Bathinda care atlas
   Layout: editorial field guide | Mood: warm, grounded, quietly clinical */
.doc-page {
  --refresh-ink: #153b4a;
  --refresh-forest: #2f704f;
  --refresh-leaf: #dce9dc;
  --refresh-paper: #f5f6f0;
  --refresh-card: #fffefa;
  --refresh-line: rgba(21, 59, 74, .12);
  --refresh-body: #465e61;
  --refresh-sand: #f3eee3;
  overflow: clip;
  background:
    radial-gradient(ellipse at 0 22%, rgba(208, 222, 205, .24), transparent 30%),
    var(--refresh-paper);
}
.doc-page *,
.doc-page *::before,
.doc-page *::after { box-sizing: border-box; }
.doc-page .doc-hero {
  isolation: isolate;
  padding: clamp(34px, 5.6vw, 76px) 0;
  color: #f7f7ef;
  background:
    radial-gradient(ellipse at 82% 13%, rgba(136, 177, 143, .2), transparent 35%),
    linear-gradient(118deg, #123e53 0%, #0d3444 62%, #174c4b 100%);
}
.doc-page .doc-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) .65px, transparent .65px);
  background-size: 18px 18px;
  opacity: .14;
  content: "";
  pointer-events: none;
}
.doc-page .doc-hero::after {
  width: min(40vw, 500px);
  right: -13vw;
  bottom: -61%;
  border-color: rgba(235,244,232,.14);
}
.doc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(30px, 6vw, 84px);
}
.doc-hero-grid > div { min-width: 0; }
.doc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #c3dfb5;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .095em;
  line-height: 1.5;
  text-transform: uppercase;
}
.doc-eyebrow::before {
  width: 25px;
  height: 2px;
  flex: 0 0 auto;
  background: #b5d4a4;
  content: "";
}
.doc-page .doc-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #fffefa;
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(2.05rem, 4.7vw, 4rem);
  font-weight: 750;
  letter-spacing: -.047em;
  line-height: 1.1;
  text-wrap: balance;
}
.doc-page .doc-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(247,249,241,.82);
  font-size: clamp(.97rem, 1.4vw, 1.09rem);
  line-height: 1.78;
}
.doc-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 27px;
}
.doc-hero-actions .btn {
  min-height: 48px;
  padding-inline: 20px;
  background: #246b45;
  color: #fff !important;
}
.doc-hero-actions .btn:hover { background: #194f34; }
.doc-page .doc-form label { display: block; }
.doc-page .doc-form label input,
.doc-page .doc-form label select,
.doc-page .doc-form label textarea {
  display: block;
  margin-top: 7px;
}
.doc-page .doc-hero .doc-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e0edda;
  font-size: .94rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.doc-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center bottom;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px 16px 7px 7px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 20px 52px rgba(3,24,33,.26);
  animation: doc-arrive .65s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes doc-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.doc-container {
  width: min(1360px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(245px, 292px);
  gap: clamp(26px, 4.4vw, 68px);
  padding: clamp(26px, 4vw, 52px) clamp(18px, 4vw, 42px) clamp(52px, 7vw, 90px);
}
.doc-main { min-width: 0; color: var(--refresh-body); }
.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: #627573;
  font-size: .82rem;
}
.doc-breadcrumb a {
  color: var(--refresh-forest);
  font-weight: 700;
  text-decoration: none;
}
.doc-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc-copy {
  min-width: 0;
  font-size: clamp(.97rem, 1vw, 1.03rem);
  line-height: 1.82;
}
.doc-copy > .doc-topic {
  position: relative;
  min-width: 0;
  margin: 0 0 17px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--refresh-line);
  border-radius: 15px;
  background: var(--refresh-card);
  box-shadow: 0 9px 27px rgba(24,58,61,.045);
  animation: doc-section-in .45s ease both;
}
.doc-copy > .doc-topic:nth-of-type(even) { background: #fbfcf7; }
.doc-copy > .doc-topic.doc-topic-opening {
  border-color: rgba(47,112,79,.13);
  background:
    radial-gradient(ellipse at 100% 0, rgba(163,194,153,.18), transparent 38%),
    linear-gradient(130deg, #e9f0e7, #f5f2e9);
}
.doc-copy > .doc-topic.doc-topic-closing {
  border-color: rgba(186,119,83,.17);
  background: linear-gradient(140deg, #f5f0e6, #fffefa);
}
@keyframes doc-section-in {
  from { opacity: .72; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.doc-copy > .doc-topic > :first-child { margin-top: 0; }
.doc-copy > .doc-topic > :last-child { margin-bottom: 0; }
.doc-copy > .doc-topic { display: flow-root; }
.doc-copy .doc-topic-photo {
  float: right;
  width: min(36%, 300px);
  margin: 3px 0 18px 24px;
  padding: 0;
  border: 0;
  background: transparent;
}
.doc-copy .doc-topic-photo img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .doc-copy .doc-topic-photo {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 14px 0 20px;
  }
}
.doc-main h2, .doc-section h2 {
  color: var(--refresh-ink);
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(1.4rem, 2.25vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.24;
  margin: 0 0 13px;
  text-wrap: balance;
}
.doc-main h3, .doc-section h3 {
  margin: 25px 0 9px;
  color: #245b4c;
  font-size: 1.14rem;
  font-weight: 750;
  line-height: 1.38;
}
.doc-main h4 { color: var(--refresh-ink); font-size: 1.02rem; }
.doc-main p { margin: 0 0 1.05em; }
.doc-main ul, .doc-main ol { margin: .7em 0 1.2em; padding-left: 1.4em; }
.doc-main li { margin: .42em 0; padding-left: .2em; }
.doc-main li::marker { color: var(--refresh-forest); }
.doc-main a:not(.btn) {
  color: #286b4b;
  font-weight: 600;
  text-decoration-color: rgba(40,107,75,.36);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.doc-main a:not(.btn):hover { color: #153b4a; text-decoration-color: currentColor; }
.doc-copy .doc-intro {
  margin: 0 0 18px;
  padding: 17px 19px;
  border-left: 3px solid #b87457;
  border-radius: 0 9px 9px 0;
  background: rgba(255,254,250,.76);
  color: #35545a;
}
.doc-copy .doc-trust {
  margin: 17px 0 2px;
  padding: 13px 16px;
  border: 1px solid rgba(38,91,69,.12);
  border-radius: 8px;
  background: rgba(255,254,250,.84);
  color: #183e4b;
  font-size: .9rem;
  font-weight: 750;
}
.doc-copy blockquote {
  margin: 24px 0;
  padding: 17px 20px;
  border-left: 3px solid var(--refresh-forest);
  border-radius: 0 9px 9px 0;
  background: #edf2eb;
  color: #345157;
}
.doc-copy img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  margin: 20px auto;
  object-fit: contain;
  border-radius: 11px;
}
.doc-copy figure {
  max-width: 100%;
  margin: 24px 0;
  padding: clamp(10px, 2vw, 17px);
  border: 1px solid var(--refresh-line);
  border-radius: 12px;
  background: #f1f3ed;
}
.doc-copy figure img { margin: 0 auto; }
.doc-copy figcaption { margin-top: 10px; color: #5a6e6b; font-size: .84rem; line-height: 1.6; }
.doc-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 19px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--refresh-line);
  border-radius: 10px;
  background: var(--refresh-card);
  overscroll-behavior-inline: contain;
  scrollbar-color: #96ad98 transparent;
  scrollbar-width: thin;
}
.doc-main table {
  display: table;
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  font-size: .9rem;
}
.doc-main th, .doc-main td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--refresh-line);
  text-align: left;
  vertical-align: top;
}
.doc-main th { background: #e7eee6; color: var(--refresh-ink); font-weight: 750; }
.doc-main tbody tr:nth-child(even) { background: #fafbf7; }
.doc-main tr:last-child td { border-bottom: 0; }
.doc-main hr { margin: 26px 0; border: 0; border-top: 1px solid var(--refresh-line); }
.doc-copy .doc-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0;
}
.doc-copy .doc-inline-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid rgba(21,59,74,.1);
  border-radius: 7px;
  background: #153f4e;
  color: #fffefa !important;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform .2s ease, background-color .2s ease;
}
.doc-copy .doc-inline-cta a:hover { transform: translateY(-2px); background: #347650; }
.doc-copy .doc-section {
  margin: 22px 0;
  padding: clamp(20px, 3vw, 32px);
  border-color: var(--refresh-line);
  border-radius: 13px;
  background: #f0f3ec;
  box-shadow: none;
}
.doc-copy .doc-section > :first-child { margin-top: 0; }
.doc-sidebar {
  position: sticky;
  top: 108px;
  gap: 13px;
}
.doc-sidebar > * {
  padding: 19px;
  border: 1px solid var(--refresh-line);
  border-radius: 12px;
  background: var(--refresh-card);
  box-shadow: 0 8px 23px rgba(24,58,61,.045);
}
.doc-sidebar > *:first-child {
  background:
    radial-gradient(ellipse at 100% 0, rgba(187,211,180,.25), transparent 58%),
    var(--refresh-card);
}
.doc-sidebar h2, .doc-sidebar h3 {
  margin: 0 0 11px;
  color: var(--refresh-ink);
  font-family: var(--font-display, "Plus Jakarta Sans", sans-serif);
  font-size: 1.02rem;
  line-height: 1.35;
}
.doc-sidebar p, .doc-sidebar li { color: #526866; font-size: .88rem; line-height: 1.65; }
.doc-sidebar ul { margin: 0; padding-left: 1.05em; }
.doc-sidebar li { margin: 7px 0; }
.doc-sidebar li::marker { color: var(--refresh-forest); }
.doc-sidebar a:not(.btn) { color: #286b4b; font-weight: 650; text-underline-offset: 3px; }
.doc-search-form label { display: block; margin: 0 0 7px; color: #506565; font-size: .83rem; font-weight: 650; }
.doc-search-form input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(21,59,74,.2);
  border-radius: 7px;
  background: #fbfcf8;
  color: var(--refresh-ink);
  font: inherit;
}
.doc-search-form input:focus { border-color: #347650; outline: 3px solid rgba(52,118,80,.15); }
.doc-search-form .btn { width: 100%; min-height: 43px; }
.doc-doctor-card { text-align: left; }
.doc-doctor-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: #edf0e9;
}
.doc-doctor-card h2 { margin-top: 15px; }
.doc-doctor-card > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eaf1e9;
  font-size: .88rem;
  text-decoration: none;
}
.doc-faq { margin: 28px 0; }
.doc-faq > h2 { margin: 0 0 15px; color: var(--refresh-ink); font-size: clamp(1.45rem,2.3vw,1.9rem); }
.doc-faq details {
  margin: 9px 0;
  overflow: hidden;
  border: 1px solid var(--refresh-line);
  border-radius: 9px;
  background: var(--refresh-card);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.doc-faq details[open] { border-color: rgba(47,112,79,.38); box-shadow: 0 7px 20px rgba(24,58,61,.06); }
.doc-faq summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  color: var(--refresh-ink);
  font-weight: 750;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::before {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 7px;
  background: #e7efe6;
  color: #286b4b;
  content: "Q";
  font-size: .72rem;
  font-weight: 850;
}
.doc-faq summary::after { margin-left: auto; color: #286b4b; content: "+"; font-size: 1.35rem; font-weight: 500; }
.doc-faq details[open] summary::after { content: "−"; }
.doc-faq details > :not(summary) { padding: 0 19px 17px 56px; color: #526866; line-height: 1.72; }
.doc-related {
  margin: 28px 0 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(21,59,74,.09);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0, rgba(156,190,151,.19), transparent 45%),
    #eaf0e8;
}
.doc-related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.doc-related h2 { margin: 0; color: var(--refresh-ink); font-size: clamp(1.35rem,2.2vw,1.8rem); }
.doc-related-controls { display: flex; gap: 7px; }
.doc-related-controls[hidden] { display: none; }
.doc-related-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(21,59,74,.18);
  border-radius: 50%;
  background: var(--refresh-card);
  color: var(--refresh-ink);
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.doc-related-controls button:hover:not(:disabled) { transform: translateY(-2px); background: var(--refresh-ink); color: #fffefa; }
.doc-related-controls button:disabled { opacity: .42; cursor: not-allowed; }
.doc-related-track {
  display: grid;
  grid-auto-columns: clamp(190px, 31%, 260px);
  grid-auto-flow: column;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 13px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: #93aa97 transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}
.doc-related-track li { min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
.doc-related-track a {
  display: flex;
  min-height: 76px;
  height: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(21,59,74,.11);
  border-radius: 9px;
  background: var(--refresh-card);
  color: var(--refresh-ink) !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.doc-related-track a::before { width: 5px; height: 28px; flex: 0 0 5px; border-radius: 4px; background: #57906a; content: ""; }
.doc-related-track a:hover { transform: translateY(-2px); border-color: rgba(47,112,79,.45); box-shadow: 0 8px 18px rgba(24,58,61,.08); }
.doc-related-track:focus-visible,
.doc-related-track a:focus-visible,
.doc-related-controls button:focus-visible,
.doc-page a:focus-visible,
.doc-page button:focus-visible,
.doc-page summary:focus-visible,
.doc-page input:focus-visible {
  outline: 3px solid #b87457;
  outline-offset: 3px;
}
.doc-case-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.doc-case-card {
  padding: 17px;
  border: 1px solid var(--refresh-line);
  border-radius: 9px;
  background: var(--refresh-card);
}
.doc-case-card h3 { margin: 0; }
.doc-case-card a { color: var(--refresh-ink); }
@media (max-width: 900px) {
  .doc-hero-grid { grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); gap: 28px; }
  .doc-container { grid-template-columns: minmax(0,1fr); }
  .doc-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .doc-sidebar > * { min-width: 0; }
}
@media (max-width: 640px) {
  .doc-page .doc-hero { padding-block: 30px 34px; }
  .doc-hero-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .doc-hero-grid > div { display: contents; }
  .doc-eyebrow { order: 0; margin: 0; font-size: .68rem; }
  .doc-page .doc-hero h1 { order: 1; margin: 0; font-size: clamp(1.9rem,8.7vw,2.65rem); }
  .doc-page .doc-hero p { order: 2; }
  .doc-hero-actions { order: 3; margin-top: 0; }
  .doc-hero-image { order: 4; width: min(100%, 410px); max-height: none; justify-self: center; }
  .doc-container { gap: 25px; padding: 23px 16px 42px; }
  .doc-copy > .doc-topic { padding: 20px 18px; border-radius: 12px; }
  .doc-sidebar { grid-template-columns: minmax(0,1fr); }
  .doc-related-head { align-items: flex-start; }
  .doc-related-track { grid-auto-columns: min(78vw,280px); }
  .doc-copy .doc-inline-cta { display: grid; grid-template-columns: minmax(0,1fr); }
  .doc-copy .doc-inline-cta a { width: 100%; }
  .doc-main th, .doc-main td { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-page *, .doc-page *::before, .doc-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
