/* ═════════════════════════════════════════════════════════════════════════
   NADIS Public Site — Home

   Loaded only by `index.html`, after tokens.css and base.css.

   Section padding is NOT set here. It belongs to `.nx-section` in base.css
   and nowhere else — see the note at the top of that file. Everything below
   styles content INSIDE a section, never the section's own rhythm.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Connected care journey ──────────────────────────────────────────────
   Homepage-only component: no overrides of the shared Day Line or cards.
   Compact rows on phones, a wrapping grid on tablets, one journey on wide
   screens. The shared clinical record is the single visual anchor.
   ───────────────────────────────────────────────────────────────────────── */
.nx-care-journey__intro {
  display: grid;
  gap: var(--nx-space-3);
  margin-bottom: var(--nx-space-4);
}
.nx-care-journey__eyebrow {
  margin-bottom: var(--nx-space-3);
  color: var(--nx-blue);
}
.nx-care-journey__summary { align-self: end; }
.nx-care-journey__lead {
  max-width: 39ch;
  font-size: var(--nx-text-body);
  line-height: 1.6;
  color: var(--nx-ink-muted);
  text-wrap: pretty;
}
.nx-care-journey__link {
  min-height: 44px;
  margin-top: var(--nx-space-2);
  font-size: var(--nx-text-small);
}

.nx-care-journey__grid {
  display: grid;
  gap: var(--nx-space-3);
  list-style: none;
}
.nx-care-journey__card {
  --journey-accent: var(--nx-blue);
  --journey-tint: var(--nx-blue-tint);
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: var(--nx-space-3);
  min-width: 0;
  padding: var(--nx-space-3);
  border: 1px solid var(--nx-rule);
  border-radius: var(--nx-radius-3);
  background: var(--nx-paper-raised);
}
.nx-care-journey__card--green {
  --journey-accent: var(--nx-green);
  --journey-tint: var(--nx-green-tint);
}
.nx-care-journey__card--record {
  --journey-accent: var(--nx-on-band-accent);
  --journey-tint: var(--nx-band-raised);
  color: var(--nx-on-band);
  background: var(--nx-band);
  border-color: var(--nx-band);
}
.nx-care-journey__symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nx-space-2);
}
.nx-care-journey__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--nx-radius-2);
  color: var(--journey-accent);
  background: var(--journey-tint);
}
.nx-care-journey__icon svg { width: 21px; height: 21px; }
.nx-care-journey__step {
  font-size: var(--nx-text-label);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--nx-ink-muted);
}
.nx-care-journey__content { min-width: 0; }
.nx-care-journey__title {
  font-size: var(--nx-text-heading);
  font-weight: 600;
  letter-spacing: var(--nx-track-heading);
  line-height: 1.35;
  text-wrap: balance;
}
.nx-care-journey__detail {
  margin-top: var(--nx-space-2);
  font-size: var(--nx-text-small);
  line-height: 1.5;
  color: var(--nx-ink-muted);
  text-wrap: pretty;
}
.nx-care-journey__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nx-space-1) var(--nx-space-2);
  margin-top: var(--nx-space-2);
  padding-top: var(--nx-space-2);
  border-top: 1px solid var(--nx-rule);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--journey-accent);
  list-style: none;
}
.nx-care-journey__features li { display: inline-flex; align-items: baseline; }
.nx-care-journey__features li:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin-left: var(--nx-space-2);
  align-self: center;
  border-radius: 50%;
  background: currentColor;
}
.nx-care-journey__card--record .nx-care-journey__detail,
.nx-care-journey__card--record .nx-care-journey__step { color: var(--nx-on-band-muted); }
.nx-care-journey__card--record .nx-care-journey__features { border-color: var(--nx-band-rule); }

@media (min-width: 640px) {
  .nx-care-journey__intro { gap: var(--nx-space-4); margin-bottom: var(--nx-space-5); }
  .nx-care-journey__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-care-journey__card {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-4);
    padding: var(--nx-space-4);
  }
  .nx-care-journey__symbol { flex-direction: row; justify-content: space-between; width: 100%; }
  .nx-care-journey__icon { width: 42px; height: 42px; }
  .nx-care-journey__icon svg { width: 24px; height: 24px; }
  .nx-care-journey__content { display: flex; flex-direction: column; flex: 1; width: 100%; }
  .nx-care-journey__detail { margin-bottom: var(--nx-space-4); }
  .nx-care-journey__features { margin-top: auto; padding-top: var(--nx-space-3); }
  .nx-care-journey__card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .nx-care-journey__card:last-child .nx-care-journey__symbol { flex-direction: column; }
}

@media (min-width: 900px) {
  .nx-care-journey__intro { grid-template-columns: 1.2fr 1fr; gap: var(--nx-space-6); }
  .nx-care-journey__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nx-care-journey__card { grid-column: span 2; }
  .nx-care-journey__card:nth-last-child(-n+2) { grid-column: span 3; }
  .nx-care-journey__card:last-child { display: flex; }
  .nx-care-journey__card:last-child .nx-care-journey__symbol { flex-direction: row; }
}

@media (min-width: 1200px) {
  .nx-care-journey__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nx-care-journey__card,
  .nx-care-journey__card:nth-last-child(-n+2) { grid-column: auto; }
  .nx-care-journey__card { padding: var(--nx-space-4) var(--nx-space-3); }
  .nx-care-journey__card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    left: calc(100% + 1px);
    width: var(--nx-space-3);
    height: 1px;
    background: var(--nx-rule-strong);
  }
}

/* ── Screenshot ───────────────────────────────────────────────────────────
   The image is a wide, thin crop of one appointments row. It is
   given a paper frame and allowed to scroll sideways inside that frame on
   narrow screens rather than being scaled down until the type is unreadable.
   The page itself never scrolls horizontally.
   ───────────────────────────────────────────────────────────────────────── */
.nx-shot { margin: 0; }

.nx-shot__frame {
  padding: var(--nx-space-2);
  background: var(--nx-paper-raised);
  border: 1px solid var(--nx-rule);
  border-radius: var(--nx-radius-4);
  box-shadow: var(--nx-shadow-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.nx-shot__frame img {
  display: block;
  width: 100%;
  min-width: 720px;   /* below this the row's own type stops being legible */
  height: auto;
  border-radius: var(--nx-radius-3);
}

.nx-shot__notes {
  display: grid;
  gap: var(--nx-space-5);
  margin-top: var(--nx-space-5);
}
@media (min-width: 800px) {
  .nx-shot__notes { grid-template-columns: repeat(3, 1fr); gap: var(--nx-space-5); }
}
.nx-shot__note > .nx-label { margin-bottom: var(--nx-space-2); }
.nx-shot__note em { font-style: normal; color: var(--nx-ink); font-weight: 500; }

/* The masked number is quoted from the product, so it is set the way the
   product sets it. */
.nx-shot__mono {
  color: var(--nx-ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
}


/* ── Coverage ─────────────────────────────────────────────────────────── */
.nx-covers { display: grid; align-content: start; }
.nx-covers > .nx-label { margin-bottom: var(--nx-space-3); }

.nx-covers__list { display: grid; gap: var(--nx-space-2); }

.nx-covers__item {
  padding-top: var(--nx-space-2);
  border-top: 1px solid var(--nx-rule);
  font-size: var(--nx-text-small);
  color: var(--nx-ink-muted);
}
/* The first item sits directly under the group label, which already has a
   rule of its own above it. */
.nx-covers__item:first-child { border-top: 0; padding-top: 0; }

.nx-covers__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nx-space-2);
  margin-top: var(--nx-space-5);
}


/* ── Specialty ────────────────────────────────────────────────────────── */
.nx-specialty { background: var(--nx-paper-raised); }


/* ── Start ────────────────────────────────────────────────────────────── */
.nx-start { display: grid; justify-items: start; }
.nx-start__title { max-width: 20ch; margin-block: var(--nx-space-4) var(--nx-space-4); }
.nx-start__lead { margin-bottom: var(--nx-space-6); }
.nx-start__actions { gap: var(--nx-space-3); }

/* Homepage illustration placements. The portrait supports the headline;
   the appointment art introduces the real screen; card art shares one frame. */
.nx-home-hero { display: grid; gap: var(--nx-space-5); align-items: center; }
.nx-home-hero__copy { min-width: 0; }
.nx-home-hero__copy .nx-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.nx-home-hero__art { width: 100%; max-width: 300px; height: auto; justify-self: center; border: 1px solid var(--nx-rule); border-radius: var(--nx-radius-4); }

.nx-home-proof { display: grid; grid-template-columns: minmax(0, 1fr) min(24%, 200px); gap: var(--nx-space-5); align-items: center; margin-bottom: var(--nx-space-5); }
.nx-home-proof__copy { min-width: 0; }
.nx-home-proof__copy > .nx-label { margin-bottom: var(--nx-space-3); }
.nx-home-proof__copy > .nx-lead { margin-top: var(--nx-space-4); }
.nx-home-proof__art { width: 100%; height: auto; justify-self: end; }

.nx-home-covers__art { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: 164px; margin-bottom: var(--nx-space-4); border-radius: var(--nx-radius-2); overflow: hidden; }
.nx-home-covers__image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.nx-home-covers__image--portrait { object-fit: cover; object-position: 50% 36%; }

@media (min-width: 1000px) {
  .nx-home-hero { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
  .nx-home-hero__art { max-width: 360px; justify-self: end; }
  .nx-home-covers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
}
