/* ==========================================================================
   Who it's for — /industries/ overview + diagnostic centres, multi-specialty
   and large-hospital pages. Layout for page-specific mockups only; every
   colour, radius and shadow comes from the tokens in style.css.
   Page-only classes carry an "ind-" prefix so they never collide with style.css.
   ========================================================================== */

/* Plan cards inside night sections ----------------------------------------- */
/* style.css paints every night-section h3 white, which hides the name on a white plan card. */
.section--night .plan:not(.plan--popular) .plan__name { color: var(--ink); }
/* The dark "popular" card needs an edge to separate it from the night background. */
.section--night .plan--popular { border-color: var(--night-line); background: var(--night-2); }
.section--night .fine-print { color: var(--night-muted); }

/* Overview: segment cards --------------------------------------------------- */
.ind-plan-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.ind-plan-line .icon { width: 16px; height: 16px; color: var(--brand-strong); }
.ind-plan-line b { color: var(--ink); }
.ind-plan-line + .segment__link { margin-top: 0; padding-top: 0; }

/* Overview: comparison table ------------------------------------------------ */
/* Equal facility columns, so a long note in one cell can't widen its column. */
.ind-compare { table-layout: fixed; }
.ind-compare thead th:first-child { width: 28%; }
.compare tbody th a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.compare tbody th a:hover { color: var(--ink); text-decoration-color: currentColor; }
.ind-compare-plan th,
.ind-compare-plan td { background: var(--bg); }
.ind-compare-plan th { font-weight: 600; color: var(--ink); }
.ind-compare-plan small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.ind-compare-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }
.ind-compare-foot .fine-print { margin-top: 0; }
.ind-compare-hint { display: none; }

/* Overview: "which fits" list ---------------------------------------------- */
.ind-fit-list { display: grid; gap: 10px; }
.ind-fit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.ind-fit__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand-strong);
}
.ind-fit__icon .icon { width: 20px; height: 20px; }
.ind-fit__text { display: grid; gap: 2px; line-height: 1.4; }
.ind-fit__text b { font-size: 15.5px; color: var(--ink); }
.ind-fit__text small { font-size: 13.5px; color: var(--muted); }

/* Diagnostic centres: report dispatch --------------------------------------- */
.ind-dispatch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.ind-dispatch__stage { min-height: 520px; }
.ind-dispatch__stage .chat { height: 356px; }

/* A WhatsApp message carrying a PDF attachment */
.ind-report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 5px 5px 8px; }
.js [data-chat] .ind-report.is-in { display: grid; }
.ind-report__caption { padding: 0 6px; }
.ind-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-alt);
}
.ind-file__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 36px;
  border-radius: 6px;
  background: var(--danger-tint);
  color: var(--danger);
}
.ind-file__icon .icon { width: 18px; height: 18px; }
.ind-file__meta { display: grid; min-width: 0; line-height: 1.3; }
.ind-file__meta b { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ind-file__meta small { font-size: 10.5px; color: var(--muted); }

.ind-quote { max-width: 860px; margin: clamp(48px, 6vw, 80px) auto 0; }
.ind-quote blockquote { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); }

/* Multi-specialty hospitals: OPD-to-IPD path -------------------------------- */
/* minmax(0, 1fr) keeps the one-column mobile track from growing to the mockup's unwrapped width */
.ind-path-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.ind-path { display: grid; }
.ind-path__stop {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 26px;
}
.ind-path__stop:last-child { padding-bottom: 0; }
.ind-path__stop::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 8px;
  left: 21px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.ind-path__stop:last-child::before { display: none; }
.ind-path__node {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--mint);
}
.ind-path__node .icon { width: 20px; height: 20px; }
.ind-path__dept {
  display: block;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.ind-path__stop h3 { margin: 4px 0; font-size: 17px; }
.ind-path__stop p { font-size: 15px; color: var(--muted); }

.ind-crm { width: 100%; max-width: 560px; justify-self: center; }
.ind-crm__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
.ind-crm__who { display: flex; align-items: center; gap: 12px; }
.ind-crm__name { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.ind-crm__name b { font-size: 15px; color: var(--ink); }
.ind-crm__name small { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.ind-crm__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ind-crm__kpis .kpi__value { font-size: 20px; }
.ind-crm .mini-title { margin: 4px 0 -4px; }
.ind-crm__log { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ind-crm__log .token { min-width: 48px; }

/* Large hospitals: multi-branch command view -------------------------------- */
.ind-group { max-width: 1060px; margin-inline: auto; }
.ind-group__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: clamp(14px, 2vw, 20px); }
.ind-group__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ind-group__branches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ind-group__foot { display: flex; flex-wrap: wrap; gap: 8px; }
.ind-branch { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.ind-branch__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ind-branch__head b { font-size: 15px; color: var(--ink); }
.ind-branch__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ind-branch__stats dt { font-size: 11.5px; color: var(--muted); }
.ind-branch__stats dd { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.ind-branch__bar { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.ind-branch__note { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ind-branch__note .icon { width: 14px; height: 14px; color: var(--brand-strong); }

/* Responsive ---------------------------------------------------------------- */
@media (min-width: 760px) {
  .ind-group__kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ind-group__branches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Small screens: the table scrolls sideways, so keep the module names pinned on the left. */
@media (max-width: 759px) {
  .ind-compare-hint { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
  .ind-compare-hint .icon { width: 14px; height: 14px; color: var(--brand-strong); }
  .ind-compare { min-width: 600px; font-size: 14px; }
  .ind-compare thead th:first-child { width: 140px; }
  .ind-compare th,
  .ind-compare td { padding: 12px 10px; }
  .ind-compare thead th { font-size: 14px; }
  .ind-compare thead th:first-child,
  .ind-compare th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: inset -1px 0 0 var(--line);
  }
  .ind-compare-plan th[scope="row"] { background: var(--bg); }
  /* Group labels span the whole row; pin the text so it stays in view while scrolling. */
  .ind-compare .group th > span { position: sticky; left: 10px; display: inline-block; }
}

@media (min-width: 1024px) {
  .ind-dispatch { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
  .ind-path-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}

@media (max-width: 639px) {
  .ind-dispatch__stage { min-height: 0; }
}

@media (max-width: 479px) {
  .ind-fit { grid-template-columns: auto minmax(0, 1fr); }
  .ind-fit > .badge { grid-column: 2; justify-self: start; }
  .ind-crm__kpis .kpi { padding: 10px; }
  .ind-crm__kpis .kpi__value { font-size: 17px; }
}
