/* /new-patients (new-patients.php). Loads before modern.css, so every rule that adjusts a shared component is scoped
   with the body class .np-page; the np-* blocks are this page's own. Colors, radii, shadows and easing are the
   modern.css tokens only. */

.np-page [id] { scroll-margin-top: 104px; }

/* ---------- Today's status line: a small accent dot before open_status() ---------- */
.np-status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.np-status::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(1, 109, 150, 0.14); }

/* ---------- 1. Page header ---------- */
.np-page .np-head { padding-bottom: 104px; }
.np-page .np-head .pagehead__note { margin-top: 22px; }
.np-head__visual { max-width: 560px; margin-inline: auto; width: 100%; }
.np-head__visual .orbit-photo { padding: 11% 0; }
.np-head__visual .photo { aspect-ratio: 4 / 3; }
.np-page .np-head__visual .float-card { max-width: 250px; }
.np-page .np-head__rating { top: 6%; right: 8px; bottom: auto; left: auto; }
.np-page .np-head__desk { bottom: 6%; left: 8px; top: auto; right: auto; }
.np-head__rating .stars { display: inline-flex; gap: 1px; }
.np-head__rating .stars .icon { width: 14px; height: 14px; }
.np-page .np-head__seal { position: absolute; z-index: 3; right: 6px; bottom: 15%; }
.np-head__seal.seal--sm { width: 92px; height: 92px; }
@media (max-width: 639.98px) {
  .np-page .np-head__seal { right: auto; left: 4px; top: 4%; bottom: auto; }
  .np-head__seal.seal--sm { width: 80px; height: 80px; }
  .np-head__seal .seal__mark { width: 24px; height: 24px; }
  .np-page .np-head__rating { top: 7%; right: 0; }
  .np-page .np-head__desk { bottom: 4%; left: 0; }
  .np-page .np-head__visual .float-card { padding: 9px 14px 9px 9px; gap: 10px; }
  .np-page .np-head__visual .float-card__icon { width: 38px; height: 38px; }
}
@media (min-width: 1024px) {
  .np-page .np-head { padding-bottom: 168px; }
  .np-page .np-head__rating { top: 7%; right: -18px; }
  .np-page .np-head__desk { bottom: 7%; left: -40px; }
  .np-page .np-head__seal { right: -34px; bottom: 19%; }
  .np-page .pagehead--split .pagehead__text { grid-column: 1 / span 7; }
  .np-head__seal.seal--sm { width: 112px; height: 112px; }
}

/* ---------- 2. At a glance: glass cards that overlap the header's bottom edge ---------- */
.np-glance { position: relative; z-index: 2; margin-top: -84px; margin-bottom: 8px; }
.np-glance__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.np-glance__card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px;
  border-radius: var(--r-card); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow);
  transition: transform 450ms var(--ease-apex), box-shadow 450ms var(--ease-apex);
}
.np-glance__card > span:last-child { display: grid; gap: 3px; min-width: 0; }
.np-glance__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--mint); color: var(--ink); }
.np-glance__icon .icon { width: 22px; height: 22px; }
.np-glance__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.np-glance__card b { font-size: 0.9375rem; font-weight: 700; line-height: 1.35; color: var(--ink); letter-spacing: -0.005em; }
.np-glance__sub { font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.np-glance__card:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 1024px) { .np-glance__card:last-child:nth-child(odd) { grid-column: auto; } }
.np-glance__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .np-glance__card { flex-direction: row; align-items: center; gap: 14px; padding: 20px 22px 20px 18px; } }
@media (min-width: 1024px) {
  .np-glance { margin-top: -132px; margin-bottom: 0; }
  .np-glance__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .np-glance__card { min-height: 112px; }
  .np-glance__icon { width: 52px; height: 52px; }
  .np-glance__icon .icon { width: 24px; height: 24px; }
}

/* ---------- 3. The first visit: step cards with a small icon in the corner ---------- */
.np-page .np-steps .step__title { padding-right: 44px; }
.np-step__icon { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent); }
.np-step__icon .icon { width: 18px; height: 18px; }
.np-steps .step:last-child .np-step__icon { background: var(--mint); color: var(--ink); }
.np-page .np-steps .step a { color: var(--accent); font-weight: 600; }
@media (min-width: 1024px) {
  .np-page .np-steps .step { padding: 26px 22px 28px; }
  .np-page .np-steps .step__title { padding-right: 40px; min-height: 2.6em; }
  .np-step__icon { top: 22px; right: 16px; }
}

/* ---------- 4. In the chair: the exam beside the checkups animation ---------- */
.np-exam__visual { position: relative; }
.np-page .np-exam .anim-stage { background: radial-gradient(70% 60% at 50% 48%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, #F4FAFC 55%, var(--tint-2) 100%); }
.np-page .np-exam__card { max-width: 230px; }
.np-page .np-exam__card.float-card--tl { top: -14px; left: -4px; }
.np-page .np-exam__card.float-card--br { bottom: -14px; right: -4px; }
.np-exam__text .head { margin-bottom: 28px; }
.np-exam__list li { font-size: 1rem; }
.np-exam__note { margin-top: 24px; max-width: 60ch; color: var(--muted); }
/* Stacked (below 1024) the stage would run the full column width; keep it a picture, not a wall */
@media (max-width: 1023.98px) { .np-exam__visual { width: 100%; max-width: 480px; margin-inline: auto; } }
.np-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.np-links .chip-link { background: #fff; }
@media (min-width: 1024px) {
  .np-page .np-exam__card.float-card--tl { top: 12%; left: -36px; }
  .np-page .np-exam__card.float-card--br { bottom: 10%; right: -28px; }
}

/* ---------- 5. What to bring: an ink card beside a white checklist ticket ---------- */
.np-bring { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.np-bring > * { min-width: 0; }
.np-bring__side .head { margin-bottom: 28px; }
.np-bring__ins .card__text { color: var(--on-ink-muted); }
.np-bring__ins .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; color: var(--on-ink-accent); }
.np-bring__ins .link-arrow:hover { color: #fff; }
.np-bring__ticket {
  position: relative; padding: 24px 22px 28px; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--rule);
}
.np-bring__ticket-head {
  display: flex; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1.5px dashed var(--rule);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.np-bring__ticket-head span:first-child { color: var(--ink); }
.np-bring__list { gap: 0; }
.np-bring__list li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.np-bring__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.np-bring__list li::before { top: 15px; }
.np-bring__list b { display: block; font-weight: 650; color: var(--ink); letter-spacing: -0.005em; }
.np-bring__list span { display: block; margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }
.np-bring__list li:nth-child(-n + 2)::before { background-color: var(--ink); box-shadow: none; }
@media (min-width: 768px) { .np-bring__ticket { padding: 32px 40px 36px; } }
@media (min-width: 1024px) {
  .np-bring { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
  .np-bring__ticket { margin-top: 8px; }
}

/* ---------- 6. Children's first visits: the animation with a review card overlapping its foot ---------- */
.np-kids__list { margin-top: 4px; }
.np-kids__actions { margin-top: 32px; }
.np-kids__actions .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.np-kids__visual { position: relative; display: grid; }
.np-kids__visual .anim-stage { width: 88%; margin-inline: 0 auto; }
.np-kids__review { position: relative; z-index: 2; width: min(400px, 90%); margin: -88px 0 0 auto; }
.np-page .np-kids__review .review-card { background: #fff; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) {
  .np-kids__visual .anim-stage { width: 100%; max-width: 420px; }
  .np-kids__review { margin-top: -120px; }
}

/* ---------- 7. Nervous about the dentist: an ink panel ---------- */
.np-calm__top { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.np-calm__head { margin-bottom: 0; }
.np-calm__stage { width: min(220px, 60%); }
.np-page .np-calm .anim-stage { background: radial-gradient(70% 60% at 50% 48%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 72%), radial-gradient(120% 90% at 30% 20%, #FFFFFF 0%, var(--tint) 60%, var(--sky) 100%); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 0 0 22px rgba(255, 255, 255, 0.03); }
.np-calm__cards { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.np-calm__card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px;
  border-radius: var(--r-card); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 400ms var(--ease-apex), border-color 400ms var(--ease-apex);
}
.np-calm__card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.np-calm__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: rgba(1, 171, 238, 0.16); color: var(--on-ink-accent); }
.np-calm__icon .icon { width: 24px; height: 24px; }
.np-page .np-calm__card h3 { font-size: 1.1875rem; color: #fff; }
.np-page .np-calm__card p { font-size: 0.9875rem; line-height: 1.6; color: var(--on-ink-muted); }
.np-page .np-calm__card .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; color: var(--on-ink-accent); }
.np-page .np-calm__card .link-arrow:hover { color: #fff; }
.np-calm__reviews { margin-top: 48px; }
.np-page .np-calm__label { margin-bottom: 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); }
.np-page .np-calm .review-card__text { color: var(--ink); }
@media (min-width: 768px) {
  .np-calm__top { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .np-calm__stage { width: 200px; }
  .np-page .np-calm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Tablet: three columns are too narrow for the copy, so each card is a row (icon beside the text) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .np-calm__card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 22px; row-gap: 8px; align-content: start; }
  .np-calm__card > * { grid-column: 2; }
  .np-calm__card > .np-calm__icon { grid-column: 1; grid-row: 1 / span 3; margin-bottom: 0; }
  .np-page .np-calm__card .link-arrow { justify-self: start; margin-top: 0; }
}
@media (min-width: 1024px) {
  .np-calm__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .np-calm__top { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; }
  .np-calm__stage { width: 260px; }
  .np-calm__cards { margin-top: 56px; gap: 20px; }
  .np-calm__card { padding: 32px 30px; }
  .np-page .np-calm__grid { gap: 24px; }
}

/* ---------- 8. First visits in patients' words: the rating card in the head row, then four reviews ---------- */
.np-page .np-score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: center; padding: 26px 24px; }
.np-page .np-score .np-score__num { grid-row: 1 / span 2; display: flex; align-items: baseline; gap: 2px; margin: 0; font-family: var(--display); font-size: clamp(3.5rem, 2.8rem + 2vw, 4.75rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; color: #fff; font-variant-numeric: tabular-nums; }
.np-page .np-score .np-score__num small { font-size: 0.34em; font-weight: 650; letter-spacing: -0.01em; color: var(--on-ink-accent); }
.np-score__stars { display: inline-flex; gap: 2px; align-self: end; color: var(--star); }
.np-score__stars .icon { width: 18px; height: 18px; }
.np-page .np-score .np-score__text { align-self: start; margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--on-ink); }
.np-score__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.np-page .np-score .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-ink-accent); }
.np-page .np-score .link-arrow:hover { color: #fff; }
@media (max-width: 479.98px) { .np-page .np-score { grid-template-columns: 1fr; } .np-page .np-score .np-score__num { grid-row: auto; } }
@media (min-width: 768px) { .np-page .np-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .np-page .np-score { padding: 30px 32px; } .np-reviews-head.head--split { align-items: center; } }
@media (min-width: 1200px) { .np-page .np-reviews__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .np-page .np-reviews__grid .review-card { padding: 28px 24px 24px; } .np-page .np-reviews__grid .review-card__text { font-size: 1rem; } }

/* ---------- 9. Hours and how to book: three cards ---------- */
.np-visit { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
.np-page .np-visit__card { display: flex; flex-direction: column; padding: 28px 24px; }
.np-visit__card .card__icon { width: 52px; height: 52px; margin-bottom: 18px; }
.np-visit__card .card__icon .icon { width: 24px; height: 24px; }
.np-visit__card .card__title { font-size: 1.3125rem; margin-bottom: 14px; }
.np-page .np-visit .hours { width: 100%; font-size: 0.9875rem; }
.np-page .np-visit .hours th, .np-page .np-visit .hours td { height: 42px; color: var(--text); }
.np-page .np-visit .hours tr.is-today :is(th, td) { color: var(--ink); font-weight: 700; }
.np-page .np-visit .hours__today { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--mint); font-size: 0.75rem; font-weight: 700; color: var(--ink); vertical-align: 1px; }
.np-visit__status { margin-top: 18px; font-size: 0.9375rem; }
.np-visit__way { display: grid; gap: 10px; justify-items: start; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.np-visit__way:first-of-type { border-top: 0; padding-top: 4px; }
.np-visit__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-muted); }
.np-page .np-visit .np-visit__phone { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; }
.np-page .np-visit .np-visit__phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.np-page .np-visit__after { margin-top: auto; padding-top: 16px; font-size: 0.9375rem; line-height: 1.55; color: var(--on-ink-muted); }
.np-visit__address { font-size: 1.125rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.np-visit__find > .link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; }
.np-visit__find > .link-arrow:last-child { margin-top: auto; padding-top: 12px; }
.np-visit__facts { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.np-visit__facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.45; color: var(--text); }
.np-visit__facts .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
@media (min-width: 768px) {
  .np-visit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .np-visit__book { grid-column: 1 / -1; order: -1; }
}
@media (min-width: 1024px) {
  .np-visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
  .np-visit__book { grid-column: auto; order: 0; }
  .np-page .np-visit__card { padding: 36px 32px; }
}

/* ---------- Motion (html.motion, no reduced-motion preference) ----------
   The header's floating cards bob gently once they are in; the exam cards too, out of step with each other. */
@media (prefers-reduced-motion: no-preference) {
  html.motion .np-head__visual .float-card { animation: pw-rise 600ms var(--ease-apex) 450ms backwards, pw-float 7s ease-in-out 2.2s infinite; }
  html.motion .np-head__visual .np-head__desk { animation-delay: 870ms, 3.4s; }
  html.motion .np-exam__card { animation: pw-float 8s ease-in-out infinite; }
  html.motion .np-exam__card.float-card--br { animation-delay: -4s; }
  html.motion .np-step__icon { transition: transform 500ms var(--ease-apex); }
  html.motion .np-steps .step:hover .np-step__icon { transform: rotate(-12deg) scale(1.08); }
  html.motion .np-calm__icon { transition: transform 500ms var(--ease-apex); }
  html.motion .np-calm__card:hover .np-calm__icon { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .np-glance__card, .np-calm__card { transition: none; }
  .np-glance__card:hover { transform: none; }
}
.np-page .np-reviews-head .np-score { width: 100%; max-width: 540px; }

/* ---------- Review pass fixes ---------- */
/* The phone number and "x-rays" in the steps never break across lines (the link carries a class, so the global tel rule
   that keeps unclassed phone links whole does not reach it). */
.np-page .nowrap { white-space: nowrap; }
/* 1024 to 1199: five step cards in a row are about 170 px wide, so titles break into three lines and the number splits.
   Keep the tablet timeline (discs on the left, wide cards) until there is room for the row. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .np-page .np-steps { --steps-gap: 20px; grid-template-columns: 1fr; padding-top: 0; }
  .np-page .np-steps::before {
    left: calc(var(--disc) / 2 - 1px); top: calc(var(--disc) / 2 + 20px); bottom: 48px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--brand), var(--accent)); transform-origin: 50% 0;
  }
  .np-page .np-steps .step { margin-left: calc(var(--disc) + 16px); padding: 22px 22px 24px; }
  .np-page .np-steps .step::before { left: calc(-1 * (var(--disc) + 16px)); top: 20px; }
  .np-page .np-steps .step__title { min-height: 0; }
  .np-page .np-steps .step p { max-width: 68ch; }
  /* The exam card's left overhang would run past the viewport edge at these widths. */
  .np-page .np-exam__card.float-card--tl { left: -8px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) and (prefers-reduced-motion: no-preference) {
  html.motion .np-page .np-steps:not(.is-in)::before { transform: scaleY(0); }
}
