/* Shared responsive foundation.
   Breakpoints: phone <= 767px, tablet 768-1023px, desktop >= 1024px. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid rgba(60, 142, 255, 0.42);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  :root {
    --responsive-gutter: 32px;
    --responsive-section-space: 64px;
    --responsive-card-padding: 24px;
    --responsive-card-radius: 22px;
  }

  html {
    scroll-padding-top: 64px;
    scroll-snap-type: none;
  }

  body {
    overflow-x: hidden;
  }

  .shell,
  .section > .shell,
  .article-shell,
  .legal-shell {
    width: calc(100% - (var(--responsive-gutter) * 2));
    max-width: none;
    margin-right: auto;
    margin-left: auto;
  }

  .site-header {
    min-height: 64px;
  }

  .nav-wrap {
    position: relative;
    width: calc(100% - (var(--responsive-gutter) * 2));
    min-height: 64px;
    margin-right: auto;
    margin-left: auto;
    gap: 16px;
  }

  .brand {
    width: 150px;
  }

  .phone-pill {
    display: none;
  }

  .menu-button {
    position: relative;
    min-width: 76px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    padding: 0 12px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid #cfe2fb;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
  }

  .menu-button span {
    position: absolute;
    left: 12px;
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: top .2s ease, transform .2s ease, opacity .2s ease;
  }

  .menu-button span:nth-child(1) { top: 14px; }
  .menu-button span:nth-child(2) { top: 20px; }
  .menu-button span:nth-child(3) { top: 26px; }
  .menu-button b { margin-left: 26px; font-size: 14px; font-weight: 750; }
  .menu-button:hover { background: #e3f0ff; border-color: #aecff7; }
  .menu-button:active { transform: scale(.97); }
  .menu-button[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 50;
    width: min(420px, 100%);
    max-height: calc(100dvh - 96px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #d7e5f5;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(20, 65, 124, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #334a67;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
  }

  .main-nav a::before,
  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: var(--blue-dark);
    background: var(--blue-soft);
  }

  .main-nav a:active {
    background: #dbeaff;
    transform: scale(.99);
  }

  .responsive-card {
    padding: var(--responsive-card-padding);
    border-radius: var(--responsive-card-radius);
  }

  .responsive-media {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .section {
    min-height: 0;
    padding-top: var(--responsive-section-space);
    padding-bottom: var(--responsive-section-space);
    scroll-snap-align: none;
  }
}

@media (max-width: 767px) {
  .listing-pagination { flex-wrap: wrap; gap: 10px; }
  .listing-pagination > div { order: 3; width: 100%; }
  :root {
    --responsive-gutter: clamp(16px, 4.65vw, 20px);
    --responsive-section-space: clamp(48px, 14vw, 64px);
    --responsive-card-padding: 20px;
    --responsive-card-radius: 20px;
    --responsive-h1: clamp(30px, 8.6vw, 34px);
    --responsive-section-title: clamp(26px, 7.2vw, 30px);
    --responsive-card-title: clamp(18px, 4.8vw, 20px);
    --responsive-body: clamp(15px, 4.1vw, 16px);
    --responsive-meta: clamp(13px, 3.6vw, 14px);
  }

  html {
    scroll-padding-top: 60px;
  }

  body {
    font-size: var(--responsive-body);
  }

  .preview-bar {
    padding: 6px var(--responsive-gutter);
    font-size: 12px;
    line-height: 1.45;
  }

  .site-header,
  .nav-wrap {
    min-height: 60px;
  }

  .brand {
    width: 132px;
  }

  .main-nav {
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 88px);
  }

  .hero h1,
  .detail-hero h1,
  .subpage-hero-copy h1,
  .listing-heading h1,
  .article-header h1,
  .legal-header h1,
  .city-hero-copy h1,
  .error-card h1 {
    font-size: var(--responsive-h1);
    line-height: 1.2;
  }

  main h2,
  .section-heading h2,
  .process-heading h2,
  .compact-heading h2,
  .channel-copy h2,
  .city-directory-heading h2 {
    font-size: var(--responsive-section-title);
    line-height: 1.3;
  }

  main h3,
  .service-card h3,
  .panel-title h3,
  .listing-card-body h2,
  .content-card h3 {
    font-size: var(--responsive-card-title);
    line-height: 1.4;
  }

  main p,
  main li {
    overflow-wrap: anywhere;
  }

  .eyebrow,
  .kicker,
  .article-card-meta,
  .listing-meta,
  .breadcrumb,
  main small {
    font-size: var(--responsive-meta);
  }

  .section {
    min-height: 0;
    display: block;
    padding-top: var(--responsive-section-space);
    padding-bottom: var(--responsive-section-space);
    scroll-snap-align: none;
  }

  :where(.button, .action-button, .service-cta, .panel-more, .main-nav a) {
    min-height: 44px;
  }

  :where(.content-card, .side-card, .service-card, .process-block, .news-panel, .nursing-panel, .standard-services, .city-filter-panel) {
    padding: var(--responsive-card-padding);
    border-radius: var(--responsive-card-radius);
  }
}

/* Homepage module adaptation. Kept under .home-page so subpages retain their
   own incremental responsive work and the approved desktop structure stays put. */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-page .hero {
    min-height: 0;
    padding-top: 48px;
  }

  .home-page .hero-grid {
    gap: 40px;
  }

  .home-page .service-grid,
  .home-page .booking-steps,
  .home-page .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .channel-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-page .qr-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .qr-code,
  .home-page .qr-code picture,
  .home-page .qr-code img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .home-page .qr-code picture,
  .home-page .qr-code img {
    display: block;
  }

  .home-page .qr-code img {
    max-width: none;
    object-fit: contain;
    object-position: center;
  }

  body:not(.home-page) .site-footer {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 56px;
    padding-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .home-page .hero {
    min-height: 0;
    display: grid;
    grid-template-columns: var(--responsive-gutter) minmax(0, 1fr) var(--responsive-gutter);
    padding: 32px 0 var(--responsive-section-space);
  }

  .home-page .hero-grid {
    display: contents;
  }

  .home-page .hero-copy,
  .home-page .stats,
  .home-page .hero-visual {
    min-width: 0;
    width: 100%;
    grid-column: 2;
  }

  .home-page .hero-copy { order: 1; }
  .home-page .stats { order: 2; }
  .home-page .hero-visual { order: 3; }

  .home-page .hero h1 {
    margin: 18px 0 14px;
    font-size: var(--responsive-h1);
  }

  .home-page .hero-copy > p {
    font-size: var(--responsive-body);
    line-height: 1.75;
  }

  .home-page .hero-company {
    margin-top: 20px;
    padding: 16px;
  }

  .home-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 24px 0 0;
    padding: 8px 10px 12px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(46,87,139,.08);
  }

  .home-page .stats > div {
    min-width: 0;
    padding: 12px 6px;
  }

  .home-page .stats > div::before,
  .home-page .stats > div::after {
    display: none;
  }

  .home-page .stats > div:nth-child(5) {
    grid-column: 1 / -1;
  }

  .home-page .stats strong {
    font-size: 23px;
  }

  .home-page .stats span {
    margin-top: 4px;
    font-size: 12px;
  }

  .home-page .city-stat-link {
    left: calc(50% + 50px);
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: 44px;
    padding: 0 10px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .home-page .stats p {
    margin-top: 6px;
    padding: 10px 4px 0;
    font-size: 11px;
    line-height: 1.55;
  }

  .home-page .hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 28px;
  }

  .home-page .carousel-viewport {
    width: 100%;
    border-radius: 26px 26px 58px 26px;
  }

  .home-page .carousel-button {
    width: 44px;
    height: 44px;
  }

  .home-page .carousel-dots button {
    min-width: 12px;
    min-height: 12px;
  }

  .home-page .section-heading {
    margin-bottom: 24px;
  }

  .home-page .service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-page .service-card,
  .home-page .service-card.featured,
  .home-page .service-card.muted {
    min-height: 0;
    grid-column: auto;
    grid-row: auto;
    padding: 20px;
  }

  .home-page .service-card p,
  .home-page .service-card.featured p {
    font-size: var(--responsive-body);
    line-height: 1.7;
  }

  .home-page .service-card h3,
  .home-page .compact-grid h3,
  .home-page .nursing-panel .article-card-content h3 {
    font-size: var(--responsive-card-title);
  }

  .home-page .service-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .home-page .service-links a {
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
  }

  .home-page .service-card .service-cta {
    min-height: 44px;
    margin-top: 20px;
  }

  .home-page .service-card .card-tag {
    top: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
    padding: 5px 9px;
    white-space: nowrap;
  }

  .home-page .service-solutions {
    display: block;
    margin: 20px 0 0;
    padding: 20px;
    border-radius: 20px;
  }

  .home-page .service-solutions-heading {
    margin-bottom: 16px;
  }

  .home-page .service-solutions-heading h3 {
    white-space: normal;
  }

  .home-page .solution-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-page .solution-list a {
    min-height: 76px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .home-page .solution-list .card-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .home-page .solution-list strong,
  .home-page .booking-steps strong {
    font-size: 18px;
  }

  .home-page .process-shell {
    width: calc(100% - (var(--responsive-gutter) * 2));
    margin-right: auto;
    margin-left: auto;
    gap: 16px;
  }

  .home-page .process-block {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    padding: 20px;
  }

  .home-page .booking-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-page .booking-steps li {
    min-height: 0;
    padding: 18px;
  }

  .home-page .booking-step-head {
    min-height: 44px;
  }

  .home-page .booking-step-head > b {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .home-page .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .compact-grid article {
    min-height: 0;
    padding: 16px;
  }

  .home-page .compact-grid h3 {
    min-height: 0;
  }

  .home-page .compact-grid .assurance-head {
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .home-page .compact-grid .assurance-icon {
    margin-right: auto;
    margin-left: auto;
  }

  .home-page .compact-grid .assurance-head h3 {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    line-height: 1.4;
  }

  .home-page .compact-grid ul {
    margin-top: 14px;
  }

  .home-page .content-hub {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-page .news-list a {
    min-height: 44px;
  }

  .home-page .news-list strong {
    font-size: 16px;
  }

  .home-page .news-list a > span,
  .home-page .news-list small,
  .home-page .article-card-meta small,
  .home-page .article-card-meta time {
    font-size: var(--responsive-meta);
  }

  .home-page .nursing-panel .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .nursing-panel .article-grid .article-card-link {
    display: flex;
    flex-direction: column;
  }

  .home-page .nursing-panel .article-grid .article-card-media {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-page .nursing-panel .article-grid .article-card-content {
    display: flex;
    flex-direction: column;
    grid-column: auto;
    grid-row: auto;
  }

  .home-page .nursing-panel .article-card-content h3,
  .home-page .nursing-panel .article-card-content p {
    min-height: 0;
    -webkit-line-clamp: unset;
  }

  .home-page .nursing-panel .article-card-content p {
    font-size: var(--responsive-body);
    line-height: 1.65;
  }

  .home-page .channel-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-right: auto;
    margin-left: auto;
    padding: 20px;
    border-radius: 22px;
    box-sizing: border-box;
  }

  .home-page .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .qr-card {
    min-width: 0;
    padding: 10px 10px 12px;
  }

  .home-page .qr-code,
  .home-page .qr-code picture,
  .home-page .qr-code img {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .home-page .qr-code picture {
    display: block;
    height: 100%;
  }

  .home-page .qr-code img {
    display: block;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 374px) {
  .home-page .assurance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* All generated pages except the homepage share one mobile adaptation layer.
   Page-specific styles remain the desktop source of truth. */
@media (max-width: 767px) {
  body:not(.home-page) :where(.subpage-main, .city-main, .detail-content, .article-page, .listing-page, .legal-page) {
    min-width: 0;
    max-width: 100%;
  }

  body:not(.home-page) .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  body:not(.home-page) :where(.subpage-hero, .city-page-hero, .detail-hero) {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  body:not(.home-page) :where(.subpage-hero-grid, .city-hero-grid, .detail-hero-grid) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 0;
  }

  body:not(.home-page) :where(.subpage-hero-copy, .city-hero-copy, .detail-hero-grid > div) {
    min-width: 0;
  }

  body:not(.home-page) :where(.subpage-hero-copy h1, .city-hero-copy h1, .detail-hero h1) {
    max-width: 100%;
    margin: 14px 0 12px;
    font-size: var(--responsive-h1);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) :where(.subpage-hero-copy > p, .city-hero-copy > p, .detail-hero-grid > div > p) {
    max-width: 100%;
    font-size: var(--responsive-body);
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .subpage-notice {
    margin-top: 18px;
    padding: 14px;
    font-size: var(--responsive-meta);
    line-height: 1.7;
  }

  body:not(.home-page) :where(.subpage-visual, .detail-photo) {
    min-height: 200px;
    width: 100%;
    padding: 24px 18px;
    border-radius: 22px 22px 46px 22px;
  }

  body:not(.home-page) :where(.subpage-content, .listing-page, .article-page, .legal-page) {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  body:not(.home-page) :where(.content-layout, .content-side, .listing-grid, .detail-layout) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) :where(.content-stack, .content-side) {
    gap: 14px;
  }

  body:not(.home-page) .content-side,
  body:not(.home-page) .detail-aside {
    position: static;
  }

  body:not(.home-page) :where(.content-card, .side-card, .detail-aside) {
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
  }

  body:not(.home-page) :where(.content-card h2, .side-card h2, .detail-main h2) {
    font-size: var(--responsive-section-title);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) :where(.content-card h3, .side-card h3, .detail-main h3) {
    font-size: var(--responsive-card-title);
    overflow-wrap: anywhere;
  }

  body:not(.home-page) :where(.content-card p, .content-card li, .side-card p, .detail-main p, .detail-main li) {
    font-size: var(--responsive-body);
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .action-button {
    min-height: 44px;
  }

  body:not(.home-page) :where(.detail-process, .inline-process) {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  body:not(.home-page) :where(.detail-process li, .inline-process li) {
    min-height: 0;
  }

  body:not(.home-page) :where(.nursing-service-directory, .service-detail-list, .service-variant-grid, .specialty-name-grid, .testing-name-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) :where(.nursing-service-directory a, .service-detail-list li, .service-variant-grid article, .specialty-name-grid li, .testing-name-grid li) {
    min-width: 0;
    min-height: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body:not(.home-page) .content-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  body:not(.home-page) .listing-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  body:not(.home-page) .listing-heading h1 {
    margin: 12px 0 0;
    font-size: var(--responsive-h1);
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .listing-heading p {
    max-width: 100%;
    font-size: var(--responsive-body);
  }

  body:not(.home-page) .listing-grid {
    gap: 16px;
  }

  body:not(.home-page) .listing-card {
    min-width: 0;
    border-radius: 20px;
  }

  body:not(.home-page) .listing-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  body:not(.home-page) .listing-card-body {
    min-width: 0;
    padding: 20px;
  }

  body:not(.home-page) .listing-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  body:not(.home-page) :where(.listing-meta small, .listing-meta time) {
    font-size: var(--responsive-meta);
  }

  body:not(.home-page) .listing-card-body h2 {
    min-height: 0;
    margin: 10px 0;
    display: block;
    overflow: visible;
    font-size: var(--responsive-card-title);
    -webkit-line-clamp: unset;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .listing-card-body p {
    min-height: 0;
    display: block;
    overflow: visible;
    font-size: var(--responsive-body);
    line-height: 1.7;
    -webkit-line-clamp: unset;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) :where(.article-shell, .legal-shell) {
    width: calc(100% - (var(--responsive-gutter) * 2));
  }

  body:not(.home-page) .article-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 20px;
  }

  body:not(.home-page) .article-header > .kicker { order: 1; }
  body:not(.home-page) .article-header > .article-meta { order: 2; }
  body:not(.home-page) .article-header > h1 { order: 3; }
  body:not(.home-page) .article-header > p { order: 4; }

  body:not(.home-page) .article-header h1 {
    margin: 12px 0 10px;
    font-size: var(--responsive-h1);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .article-header p {
    font-size: var(--responsive-body);
    line-height: 1.75;
  }

  body:not(.home-page) .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
    font-size: var(--responsive-meta);
  }

  body:not(.home-page) .article-header .article-meta span {
    display: none;
  }

  body:not(.home-page) .article-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 20px;
  }

  body:not(.home-page) .article-body > .article-image-placeholder:first-child { order: 1; }
  body:not(.home-page) .article-body > .article-lead { order: 2; }
  body:not(.home-page) .article-body > :where(.article-section, .article-image-placeholder) { order: 3; }
  body:not(.home-page) .article-body > .article-note { order: 4; }
  body:not(.home-page) .article-body > .article-related-reading { order: 5; }
  body:not(.home-page) .article-body > .article-related-services { order: 6; }
  body:not(.home-page) .article-body > .article-back { order: 7; }

  body:not(.home-page) .article-body > .article-lead {
    display: none;
  }

  body:not(.home-page) .article-body h2 {
    font-size: var(--responsive-section-title);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .article-body p {
    font-size: var(--responsive-body);
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .article-image-placeholder {
    width: 100%;
    margin: 20px 0 24px;
  }

  body:not(.home-page) .article-image-placeholder img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  body:not(.home-page) .article-lead,
  body:not(.home-page) .article-note {
    padding: 16px;
  }

  body:not(.home-page) .article-related-reading > div {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) .article-related-services > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) .article-related-services a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  body:not(.home-page) .article-back {
    align-self: flex-start;
  }

  .city-page .city-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-page .city-coverage {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  .city-page .standard-services {
    min-width: 0;
    padding: 20px;
    border-radius: 20px 20px 42px 20px;
  }

  .city-page .standard-services h2 {
    font-size: var(--responsive-section-title);
  }

  .city-page .standard-service-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-page .standard-service-links a,
  .city-page .standard-service-links a:nth-child(8),
  .city-page .standard-service-links a:nth-child(13) {
    min-width: 0;
    min-height: 44px;
    grid-column: span 1;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .city-page .city-directory,
  .city-page .city-related-services {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .city-page .city-directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .city-page .city-directory-heading > p {
    max-width: 100%;
    font-size: var(--responsive-body);
  }

  .city-page .city-filter-panel {
    position: static;
    min-width: 0;
    padding: 16px;
  }

  .city-page .city-search {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .city-page .city-search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .city-page .letter-filter {
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .city-page .letter-filter button {
    min-width: 44px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    white-space: nowrap;
  }

  .city-page .letter-filter button[data-letter="ALL"] {
    min-width: 54px;
    width: 54px;
    flex-basis: 54px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 14px;
  }

  .city-page .city-results-grid {
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .city-page .city-chip {
    min-width: 0;
    min-height: 44px;
    overflow-wrap: anywhere;
  }

  .city-page .related-service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-page .related-service-grid > a {
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 16px;
  }

  .city-detail-page :where(.city-service-grid, .city-nursing-grid, .city-assurance .assurance-grid, .city-care-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-detail-page :where(.city-service-grid > a, .city-nursing-grid > a, .city-assurance .compact-grid article) {
    min-width: 0;
    min-height: 0;
  }

  .city-detail-page .city-care-grid > a {
    min-width: 0;
    display: block;
  }

  .city-detail-page .city-care-grid strong {
    min-height: 0;
    overflow-wrap: anywhere;
  }

  .city-detail-page .city-other-cities {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .city-detail-page .city-detail-actions {
    width: 100%;
    flex-direction: column;
  }

  .city-detail-page .city-detail-actions .action-button {
    width: 100%;
  }

  body:not(.home-page) .detail-main > section {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  body:not(.home-page) .detail-tags {
    flex-wrap: wrap;
  }

  body:not(.home-page) .legal-card {
    padding: 20px;
  }

  body:not(.home-page) .legal-header h1 {
    font-size: var(--responsive-h1);
    overflow-wrap: anywhere;
  }

  body:not(.home-page) .error-page {
    min-height: 0;
    padding: 48px var(--responsive-gutter) 56px;
  }

  body:not(.home-page) .error-card {
    width: 100%;
    padding: 32px 20px;
    border-radius: 22px;
  }

  body:not(.home-page) .error-code {
    font-size: clamp(68px, 24vw, 100px);
  }

  body:not(.home-page) .error-card h1 {
    font-size: var(--responsive-h1);
  }

  body:not(.home-page) .error-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.home-page) .error-actions .action-button {
    width: 100%;
    margin-top: 0;
  }

  body:not(.home-page) .site-footer {
    min-height: 0;
    display: block;
    padding: 48px 0 32px;
  }

  body:not(.home-page) .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body:not(.home-page) .footer-grid > div:nth-child(2),
  body:not(.home-page) .footer-grid > div:nth-child(3) {
    display: block;
  }

  body:not(.home-page) .footer-bottom,
  body:not(.home-page) .detail-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body:not(.home-page) .detail-footer {
    padding: 28px 0;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  body:not(.home-page) :where(.service-detail-list, .specialty-name-grid, .testing-name-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
