/* Common heading sizes and measured text fitting for all SGMC pages. */
@media screen {
  html body main#main h1.sgmc-heading[data-heading-level="1"]:not(.eyebrow),
  html body main#main h2.sgmc-heading[data-heading-level="2"]:not(.eyebrow),
  html body main#main h3.sgmc-heading[data-heading-level="3"]:not(.eyebrow) {
    font-family: var(--serif);
    font-size: var(--sgmc-heading-size, var(--sgmc-heading-max)) !important;
    font-weight: 400;
    line-height: 1.16 !important;
    letter-spacing: -.02em;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    white-space: normal;
    text-wrap: wrap;
    overflow-wrap: normal;
    hyphens: none;
    text-transform: none;
  }
  main .sgmc-heading[data-heading-level="1"] {
    --sgmc-heading-max: 44px;
    --sgmc-heading-min: 24px;
  }
  main .sgmc-heading[data-heading-level="2"] {
    --sgmc-heading-max: 36px;
    --sgmc-heading-min: 22px;
  }
  main .sgmc-heading[data-heading-level="3"] {
    --sgmc-heading-max: 26px;
    --sgmc-heading-min: 18px;
  }
  html body main#main h3.sgmc-heading[data-heading-level="3"] {
    font-weight: 500;
  }
  html body main#main .sgmc-heading[data-heading-level][data-heading-fit="single"]:not(.eyebrow) {
    white-space: nowrap;
  }
  html body main#main .sgmc-heading > :is(span, em) {
    display: inline !important;
    white-space: inherit;
  }
  html body main#main .sgmc-heading > :is(.provider-degrees, .physician-degrees) {
    display: inline !important;
    margin: 0 0 0 .35em;
    vertical-align: baseline;
  }
  html body main#main .sgmc-heading[data-heading-fit="wrap"] { text-wrap: balance; }
  main .hero > div,
  main .newsletter-library-intro > div,
  main .contact-intro > div { min-width: 0; }
  main .section-head > div,
  main .ribbon-heading > div {
    flex: 1;
    min-width: 0;
  }
  main .ribbon-heading > h2 { flex: 1; min-width: 0; }
  main .icon-title-row,
  main .topic .topic-top {
    align-items: baseline;
    flex-wrap: nowrap;
  }
  main .icon-title-row > .icon,
  main .topic .topic-top > .icon {
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: .15em;
  }

  /* The homepage message reads as one balanced introduction beneath the illustration. */
  body[data-page="index"] main#main .home-hero {
    gap: 20px;
    padding-block: 16px 40px;
  }
  body[data-page="index"] main#main .home-hero > .hero-art {
    width: min(100%, 680px, 76svh);
    margin-inline: auto;
  }
  body[data-page="index"] main#main .home-hero > .home-message {
    width: min(100%, 880px);
    margin-inline: auto;
    text-align: center;
  }
  body[data-page="index"] main#main .home-message .home-headline {
    margin: 0;
    max-width: none;
    color: var(--ink);
  }
  body[data-page="index"] main#main .home-message .home-motto {
    font-family: var(--serif);
    font-size: clamp(20px, calc(var(--home-title-size, 44px) * .78), 34px) !important;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2 !important;
    letter-spacing: -.01em;
    color: var(--sage-ink);
    max-width: none;
    margin: 6px 0 0;
  }
  body[data-page="index"] main#main .home-message .actions {
    justify-content: center;
    margin-top: 24px;
  }
  body[data-page="index"] main#main .home-hero figcaption {
    text-align: center;
    margin-top: 6px;
  }
  body[data-page="index"] main#main .employer-benefit {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  body[data-page="index"] main#main .employer-benefit > .icon {
    width: 24px;
    height: 24px;
    margin: 2px 0 0;
  }
  body[data-page="index"] main#main .employer-benefit > div { min-width: 0; }
}
@media screen and (max-width: 1050px) {
  main .sgmc-heading[data-heading-level="1"] { --sgmc-heading-max: 40px; }
  main .sgmc-heading[data-heading-level="2"] { --sgmc-heading-max: 32px; }
  main .sgmc-heading[data-heading-level="3"] { --sgmc-heading-max: 24px; }
}
@media screen and (max-width: 700px) {
  main .sgmc-heading[data-heading-level="1"] {
    --sgmc-heading-max: 34px;
    --sgmc-heading-min: 28px;
  }
  main .sgmc-heading[data-heading-level="2"] {
    --sgmc-heading-max: 29px;
    --sgmc-heading-min: 25px;
  }
  main .sgmc-heading[data-heading-level="3"] {
    --sgmc-heading-max: 24px;
    --sgmc-heading-min: 22px;
  }
  body[data-page="index"] main#main .home-hero {
    gap: 16px;
    padding-block: 8px 28px;
  }
  body[data-page="index"] main#main .home-hero > .hero-art { width: 100%; }
  body[data-page="index"] main#main .home-message .actions {
    margin-top: 20px;
    gap: 10px;
  }
  body[data-page="index"] main#main .employer-benefits-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  body[data-page="index"] main#main .employer-benefit {
    border-left: 0;
    padding-left: 0;
  }
}

/* Mobile reading hierarchy and spacing across the clinic's pages. */
@media screen and (max-width: 700px) {
  :root {
    --sgmc-gutter: clamp(16px, 4.5vw, 24px);
    --sgmc-section-space: 36px;
    --sgmc-compact-space: 28px;
    --sgmc-heading-gap: 22px;
    --sgmc-column-gap: 22px;
  }
  html body main#main .sgmc-heading[data-heading-level][data-heading-fit="wrap"] {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: normal;
  }
  html body main#main .sgmc-heading[data-heading-level="1"] {
    line-height: 1.13 !important;
    margin-bottom: 18px;
  }
  html body main#main .sgmc-heading[data-heading-level="2"] {
    line-height: 1.18 !important;
  }
  html body main#main .sgmc-heading[data-heading-level="3"] {
    line-height: 1.22 !important;
  }
  html body main#main .sgmc-heading[data-heading-fit="wrap"] > em,
  html body main#main .sgmc-heading[data-heading-fit="wrap"] > .mobile-heading-phrase {
    display: block !important;
  }
  html body main#main .sgmc-heading > :is(.provider-degrees, .physician-degrees) {
    display: block !important;
    margin: 7px 0 0;
    font-size: 13px;
    line-height: 1.5;
  }
  body main#main p:not(.eyebrow):not(.home-motto):not(.image-caption):not(.hint):not(.field-note):not(.sgmc-error):not(.forms-note):not(.contact-parking):not(.takecare-separate-note) {
    font-size: 16px !important;
    line-height: 1.65 !important;
    overflow-wrap: break-word;
  }
  body main#main .eyebrow {
    font-size: 11px !important;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  body main#main .page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding-block: 16px 0;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.5;
  }
  body main#main .page-breadcrumb > .icon { flex-shrink: 0; }
  body main#main .hero:not(.home-hero),
  body main#main .contact-intro,
  body main#main .takecare-hero,
  body main#main .newsletter-library-intro {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 24px 32px;
    gap: 24px;
  }
  body main#main .hero > div,
  body main#main .hero-art,
  body main#main .section-head,
  body main#main .section-head > div {
    min-width: 0;
  }
  body main#main .hero:not(.home-hero) > .hero-art {
    width: 100%;
    max-width: 360px;
    justify-self: center;
    margin: 0 auto;
  }
  body main#main .hero:not(.home-hero) .hero-art img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
  }
  body main#main .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
  }
  body main#main .section-head > div { flex-basis: 100%; }
  body main#main :is(.split, .two-cards, .topic-grid, .art-grid, .form-layout, .flow-layout, .intake-layout, .provider-layout, .contact-location-grid, .takecare-home-grid, .onsite-feature-layout, .onsite-service-grid, .takecare-service-grid, .workforce-portfolio, .compliance-programs, .questionnaire-grid, .forms-card-grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  body main#main :is(.topic, .art-card, .feature-card, .forms-card, .questionnaire-card, .form-aside, .flow-panel, .provider-layout > *, .takecare-service-grid > *) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body main#main :is(.feature-card, .forms-card, .questionnaire-card, .form-aside, .flow-panel) {
    padding: 20px;
  }
  body main#main .topic { padding-top: 20px; }
  body main#main :is(.icon-title-row, .topic-top) {
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 12px;
  }
  body main#main :is(.icon-title-row, .topic-top) > .icon {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    margin-top: 3px;
  }
  body main#main :is(.icon-title-row, .topic-top) > h3 { margin: 0; }
  body main#main .onsite-service-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body main#main .onsite-service-card > figure {
    width: 120px;
    margin: 0;
  }
  body main#main .onsite-service-card > div { min-width: 0; }
  body main#main .newsletter-library-intro .newsletter-stained-glass {
    justify-self: center;
    margin: 0;
  }
  body main#main .newsletter-library-intro .newsletter-stained-glass .art-blend-wrap {
    width: 140px;
    --art-height: 180px;
  }
  body main#main .newsletter-layout,
  body main#main .newsletter-story .story-heading,
  body main#main .newsletter-story .audience-takeaways,
  body main#main .issue-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  body main#main .provider-facts { overflow-wrap: anywhere; }
  body main#main .actions { gap: 12px; margin-top: 22px; flex-wrap: wrap; }
  body main#main .btn {
    min-height: 48px;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding: 12px 16px;
  }
  body main#main .text-link { min-height: 44px; align-items: center; }
  body main#main .text-link > .icon { flex-shrink: 0; }
  body main#main .tabbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body main#main .tabbar > a {
    white-space: normal;
    min-width: 0;
    min-height: 48px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  body main#main .forms-shortcuts { gap: 8px 16px; }
  body main#main .forms-shortcuts > a { min-height: 44px; display: flex; align-items: center; }
  body main#main .sgmc-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body main#main fieldset { min-inline-size: 0; max-width: 100%; box-sizing: border-box; }
  body main#main input:not([type="checkbox"]):not([type="radio"]),
  body main#main select,
  body main#main textarea {
    font-size: 16px;
    max-width: 100%;
    box-sizing: border-box;
  }
  body main#main [hidden] { display: none !important; }
  body[data-page="index"] main#main .home-headline {
    --sgmc-heading-min: 26px;
  }
  body[data-page="index"] main#main .home-message .home-motto {
    font-size: clamp(23px, calc(var(--home-title-size, 32px) * .82), 28px) !important;
    margin-top: 8px;
  }
  .footer .footer-grid > * { min-width: 0; }
  .footer a { overflow-wrap: anywhere; }
}
@media screen and (max-width: 480px) {
  body main#main .actions > .btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  body main#main .contact-request-links { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 360px) {
  body[data-page="index"] main#main .home-headline {
    --sgmc-heading-max: 30px;
    --sgmc-heading-min: 24px;
  }
}

/* Keep shared lists inside their grid column, including while titles are measured. */
@media screen {
  html body main#main .number-list,
  html body main#main .number-item {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
  }
  html body main#main .split > *,
  html body main#main .number-item > div {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body main#main .number-item p {
    overflow-wrap: anywhere;
  }
}

/* Desktop hierarchy: readable titles, bounded columns, consistent rhythm. */
@media screen and (min-width: 1051px) {
  :root {
    --sgmc-section-space: clamp(56px, 4.8vw, 76px);
    --sgmc-compact-space: 40px;
    --sgmc-heading-gap: 30px;
    --sgmc-column-gap: clamp(28px, 3vw, 44px);
  }
  html body main#main .sgmc-heading[data-heading-level="1"] {
    --sgmc-heading-max: 48px;
    --sgmc-heading-min: 40px;
    line-height: 1.12 !important;
    margin-bottom: 22px;
    max-width: 100%;
  }
  html body main#main .sgmc-heading[data-heading-level="2"] {
    --sgmc-heading-max: 38px;
    --sgmc-heading-min: 32px;
    line-height: 1.18 !important;
    margin-bottom: 18px;
  }
  html body main#main .sgmc-heading[data-heading-level="3"] {
    --sgmc-heading-max: 27px;
    --sgmc-heading-min: 24px;
    line-height: 1.24 !important;
    margin-bottom: 12px;
  }
  html body main#main .sgmc-heading[data-heading-fit="wrap"] {
    text-wrap: balance;
    white-space: normal;
  }
  html body main#main .sgmc-heading[data-heading-fit="wrap"] > em,
  html body main#main .sgmc-heading[data-heading-fit="wrap"] > .mobile-heading-phrase {
    display: block !important;
  }
  html body main#main .hero:not(.home-hero):has(> .hero-art) {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(36px, 4vw, 64px);
    padding-block: 48px 56px;
  }
  html body main#main :is(.hero, .takecare-hero, .contact-intro, .newsletter-library-intro) > * {
    min-width: 0;
  }
  html body main#main .hero:not(.home-hero) .hero-art {
    width: 100%;
    margin: 0;
    justify-self: center;
  }
  html body main#main .hero:not(.home-hero) .hero-art img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
  }
  html body main#main :is(.hero, .takecare-hero, .contact-intro) p:not(.eyebrow):not(.image-caption):not(.takecare-credentials) {
    font-size: 18px !important;
    line-height: 1.7 !important;
    max-width: 64ch;
  }
  html body main#main .section-head {
    align-items: flex-end;
    gap: 24px 36px;
    margin-bottom: 30px;
  }
  html body main#main .section-head > div {
    max-width: none;
    min-width: 0;
    flex: 1;
  }
  html body main#main .section-head > .text-link {
    flex-shrink: 0;
    margin-bottom: 5px;
  }
  html body main#main :is(.section-head, .split, .first-responder-coordination) p:not(.eyebrow) {
    max-width: 68ch;
  }
  html body main#main :is(.topic, .art-card, .feature-card, .number-item, .faq, .section-head, .provider-story, .takecare-service-grid > article) p:not(.eyebrow):not(.credential):not(.field-note) {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  html body main#main .lede {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }
  html body main#main :is(.topic-grid, .art-grid, .two-cards, .forms-card-grid, .questionnaire-grid, .takecare-service-grid) {
    column-gap: var(--sgmc-column-gap);
    row-gap: 32px;
    align-items: start;
  }
  html body main#main :is(.topic-grid, .art-grid, .two-cards, .forms-card-grid, .questionnaire-grid, .takecare-service-grid, .split, .provider-layout, .form-layout, .flow-layout) > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  html body main#main .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 4vw, 60px);
  }
  html body main#main :is(.topic-top, .icon-title-row) {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    margin-bottom: 12px;
  }
  html body main#main :is(.topic-top, .icon-title-row) > h3 {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  html body main#main :is(.topic-top, .icon-title-row) > .icon {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin-top: 3px;
  }
  html body main#main .number-item { padding-block: 24px; }
  html body main#main .number-item:first-child { padding-top: 0; }
  html body main#main .number-item:last-child { padding-bottom: 0; }
  html body main#main .actions { gap: 12px 16px; flex-wrap: wrap; margin-top: 26px; }
  html body main#main .btn {
    min-height: 48px;
    font-size: 14px;
    padding: 13px 20px;
    line-height: 1.4;
    white-space: normal;
  }
  html body main#main :is(.feature-card, .forms-card, .questionnaire-card) { padding: 28px; }
  html body main#main .eyebrow { margin-bottom: 12px; }
  html body main#main .first-responder-coordination { max-width: 960px; }
  html body main#main .first-aid-preparation { max-width: 960px; }
  html body main#main .sgmc-heading > :is(.provider-degrees, .physician-degrees) {
    font-size: 15px;
    line-height: 1.5;
  }
}
@media screen and (min-width: 1051px) and (max-width: 1200px) {
  html body main#main :is(.topic-grid, .art-grid, .takecare-service-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
