.saemg-home {
    --home-ink: #172443;
    --home-text: #4b5870;
    --home-border: #e0e6ef;
    --home-red-hover: var(--saemg-join-hover);
    --home-space: clamp(2.8rem, 5vw, 4.6rem);
}

.saemg-home :is(h2, h3) { color: var(--home-ink); }
.saemg-home h2 { letter-spacing: -.045em; text-wrap: balance; }
.saemg-home .saemg-section-heading { align-items: center; margin-bottom: 1.45rem; }
.saemg-home .saemg-section-heading > .saemg-button { flex: 0 0 auto; }
.saemg-home .saemg-section-heading .saemg-eyebrow { color: var(--home-red-hover); }
.saemg-home-section-intro { margin: .55rem 0 0; color: var(--home-text); }

.saemg-home-hero {
    background: var(--saemg-dark-surface);
    border-bottom: 4px solid var(--saemg-red);
    color: #fff;
}

.saemg-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(1.8rem, 4.5vw, 4rem);
    padding-block: clamp(2.4rem, 5vw, 4.1rem);
}

.saemg-hero-copy > .saemg-eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; color: #fff; }
.saemg-hero-copy:only-child { grid-column: 1 / -1; }
.saemg-hero-copy > .saemg-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: #fff; }
.saemg-hero-copy h1 { max-width: 20ch; color: #fff; font-size: clamp(2.1rem, 4.1vw, 3.7rem); line-height: 1.07; letter-spacing: -.052em; }
.saemg-hero-intro { max-width: 53ch; margin-top: 1rem; color: #eef2f8; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.saemg-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.25rem; margin-top: 1.4rem; }
.saemg-home-member-link { --saemg-icon-color: var(--saemg-red-on-dark); display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: #fff; font-weight: 610; text-decoration: underline; }
.saemg-home-member-link:hover { color: #eef2f8; }

.saemg-home-highlights { position: relative; min-width: 0; color: var(--home-ink); }
.saemg-highlights-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; border-radius: 12px; }
.saemg-home-highlights[data-enhanced] .saemg-highlights-track { scrollbar-width: none; }
.saemg-highlight-slide { display: grid; align-items: stretch; min-width: 0; min-height: clamp(18.5rem, 31vw, 25rem); scroll-snap-align: start; scroll-snap-stop: always; background: var(--saemg-card-surface); }
.saemg-highlight-slide:has(.saemg-highlight-image) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.saemg-highlight-image { position: relative; background: #e3e7f5; }
.saemg-highlight-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.saemg-highlight-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(.9rem, 2vw, 1.65rem); }
.saemg-home-highlights[data-enhanced] .saemg-highlight-copy { padding-bottom: 4.35rem; }
.saemg-highlight-copy h3 { margin: .55rem 0 0; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.16; overflow-wrap: anywhere; }
.saemg-highlight-copy h3 a { color: var(--home-ink); text-decoration: none; }
.saemg-highlight-copy h3 a:hover { color: var(--home-red-hover); text-decoration: underline; }
.saemg-highlight-controls:not([hidden]) { position: absolute; z-index: 1; inset: auto .75rem .75rem auto; display: flex; align-items: center; gap: .4rem; }
.saemg-highlight-controls > span { min-width: 3rem; color: var(--home-text); text-align: center; font-size: .85rem; font-weight: 600; }

.saemg-home-quick { min-width: 0; padding-block: 1.35rem 0; color: var(--home-ink); }
.saemg-home-quick h2 { margin-bottom: .8rem; font-size: .96rem; letter-spacing: 0; }
.saemg-home-quick ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .68rem; margin: 0; padding: 0; list-style: none; }
.saemg-home-quick a { display: flex; flex-direction: column; align-items: center; gap: .52rem; height: 100%; padding: .8rem .55rem; border: 1px solid var(--saemg-card-border); border-radius: 8px; background: var(--saemg-card-surface); color: var(--home-ink); text-align: center; font-size: .94rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.saemg-home-quick a:hover { border-color: var(--saemg-accent); background: var(--saemg-card-hover); text-decoration: underline; }
.saemg-home-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 8px; background: var(--saemg-red-pale); }
.saemg-home-quick .saemg-home-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 1.5rem; }

.saemg-home-news, .saemg-home-partners, .saemg-home-services { padding-block: var(--home-space); }
.saemg-home-news-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: stretch; gap: 1.05rem; }
.saemg-home-news-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.saemg-home-feature { min-width: 0; overflow: hidden; border: 1px solid var(--saemg-card-border); border-top: 4px solid var(--saemg-red); border-radius: 12px; background: var(--saemg-card-surface); }
.saemg-home-feature-image { position: relative; aspect-ratio: 1.16; overflow: hidden; background: #edf0fa; }
.saemg-home-feature-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.saemg-feature-copy { padding: clamp(1rem, 2.3vw, 1.55rem); }
.saemg-feature-copy h3 { margin-top: .45rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.17; }
.saemg-feature-copy > p { margin: .65rem 0 0; color: var(--home-text); line-height: 1.5; }
.saemg-home time { color: var(--home-text); font-size: .8rem; font-weight: 550; }
.saemg-home-news h3 a, .saemg-home-partner-grid a, .saemg-home-job-grid h3 a { color: var(--home-ink); text-decoration: none; }
.saemg-home-news h3 a:hover, .saemg-home-partner-grid a:hover h4, .saemg-home-job-grid h3 a:hover { color: var(--home-red-hover); text-decoration: underline; }
.saemg-home-recent { display: grid; align-content: start; gap: .65rem; min-width: 0; }
.saemg-home-recent-item { display: flex; align-items: center; gap: .9rem; min-height: 124px; padding: .6rem; border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-card-surface); }
.saemg-home-recent-item > div { min-width: 0; overflow-wrap: anywhere; }
.saemg-home-recent-item img { display: block; width: 156px; height: 136px; flex: 0 0 156px; object-fit: cover; border-radius: 7px; }
.saemg-home-recent-item h3 { margin: .2rem 0 0; font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.3; }
.saemg-home-notice { padding: .8rem 1rem; border-left: 3px solid var(--saemg-red); border-radius: 5px; background: var(--saemg-red-pale); color: var(--home-ink); font-size: .92rem; }
.saemg-home-notice strong { margin-right: .35rem; }
.saemg-home-news > .saemg-home-notice { margin-bottom: 1rem; }
.saemg-home-updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; margin-top: 1.45rem; }
.saemg-home-updates > section { display: flex; flex-direction: column; gap: .7rem; padding: clamp(.95rem, 2vw, 1.25rem); border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-card-surface); }
.saemg-home-update-heading { display: flex; align-items: center; gap: .65rem; }
.saemg-home-update-heading h3 { margin: 0; font-size: 1.18rem; }
.saemg-home-update-link { align-self: start; margin-block-start: auto; padding-block: .3rem 0; font-size: .9rem; font-weight: 650; }
.saemg-home-assembly ul { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.saemg-home-assembly li a { display: block; font-weight: 650; }
.saemg-home-digital p { margin: 0; color: var(--home-text); }
.saemg-home-digital p + p { margin-top: .2rem; }
.saemg-home-digital time { margin-inline-start: .45rem; }

.saemg-home-partners { background: var(--saemg-dark-surface); color: var(--saemg-white); }
.saemg-home-partners h2 { color: var(--saemg-white); }
.saemg-home-partners .saemg-home-section-intro { color: var(--saemg-pale); }
.saemg-home-partners a:focus-visible { outline-color: var(--saemg-white); }
.saemg-home-partner-group + .saemg-home-partner-group { margin-top: clamp(1.8rem, 3vw, 2.5rem); }
.saemg-home-partner-group > h3 {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 .95rem;
    color: var(--saemg-red-on-dark);
    font-size: clamp(1.35rem, 1.9vw, 1.55rem);
    letter-spacing: -.015em;
}
.saemg-home-partner-group > h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgb(255 255 255 / 20%);
}
.saemg-home-partner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.saemg-home-partner-grid article { min-width: 0; }
.saemg-home-partner-grid a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-white); }
.saemg-home-partner-grid a:hover { border-color: var(--home-red-hover); }
.saemg-partner-mark { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-bottom: 1px solid var(--home-border); background: #fff; font-size: 2rem; }
.saemg-partner-mark img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.saemg-partner-copy { padding: .8rem .95rem 1rem; }
.saemg-partner-copy p { margin: 0 0 .25rem; color: var(--home-red-hover); font-size: .8rem; font-weight: 640; }
.saemg-partner-copy h4 { margin: 0; color: var(--home-ink); font-size: 1.02rem; line-height: 1.3; }
.saemg-home-partners .saemg-home-notice { margin-top: 1.25rem; }

.saemg-home-services { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.1rem, 4vw, 2.8rem); }
.saemg-home-jobs { min-width: 0; }
.saemg-home-jobs > .saemg-eyebrow, .saemg-home-dental .saemg-eyebrow { margin-bottom: .55rem; color: var(--home-red-hover); }
.saemg-home-job-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 1rem 0; padding: 0; list-style: none; }
.saemg-home-job-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .45rem .72rem; min-width: 0; padding: .85rem; border: 1px solid var(--saemg-card-border); border-radius: 10px; background: var(--saemg-card-surface); }
.saemg-home-job-meta { min-width: 0; text-align: right; }
.saemg-home-job-grid h3 { margin: 0; font-size: 1.07rem; line-height: 1.3; }
.saemg-home-job-grid p { margin: .22rem 0 0; color: var(--home-text); font-size: .87rem; }
.saemg-home-job-meta p { font-size: .78rem; }
.saemg-home-job-meta .saemg-solid-icon { margin-right: .12rem; }
.saemg-home-jobs-empty { margin-block: 1rem; color: var(--home-text); }

.saemg-home-dental { min-width: 0; overflow: hidden; border: 1px solid var(--saemg-card-border); border-radius: 12px; background: var(--saemg-card-surface); }
.saemg-home-dental > img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; object-position: center 24%; }
.saemg-home-dental-copy { padding: clamp(1.15rem, 3vw, 1.75rem); }
.saemg-home-dental-copy > p:not(.saemg-eyebrow) { margin: .62rem 0 1rem; color: var(--home-text); }

@media (min-width: 1050px) {
    .saemg-home-feature:has(.saemg-home-feature-image) { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .saemg-home-feature-image { min-height: 22rem; aspect-ratio: auto; }
    .saemg-feature-copy { align-self: center; }
}

@media (max-width: 950px) {
    .saemg-home-hero-grid { gap: 1.55rem; }
    .saemg-home-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .saemg-home-recent-item img { width: 120px; height: 108px; flex-basis: 120px; }
}

@media (max-width: 740px) {
    .saemg-home-hero-grid, .saemg-home-news-grid, .saemg-home-updates, .saemg-home-services { grid-template-columns: minmax(0, 1fr); }
    .saemg-home-hero-grid { padding-block: 2rem 1.2rem; }
    .saemg-home-quick ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .saemg-home-quick h2 { margin-bottom: .55rem; }
    .saemg-home .saemg-section-heading { align-items: start; flex-direction: column; gap: .85rem; }
    .saemg-home-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .saemg-partner-copy { padding: .61rem .68rem .78rem; }
    .saemg-partner-copy h4 { font-size: .98rem; }
}

@media (max-width: 490px) {
    .saemg-highlight-slide:has(.saemg-highlight-image) { grid-template-columns: minmax(0, 1fr); grid-template-rows: clamp(14rem, 73vw, 21rem) 1fr; }
    .saemg-highlight-copy { justify-content: start; }
    .saemg-home-job-grid li { grid-template-columns: auto minmax(0, 1fr); }
    .saemg-home-job-meta { grid-column: 2; text-align: left; }
}
