/* Northern Legacy refinement: full-width photography, balanced density, readable copy.
   The slideshow spans the viewport; only its text and controls use a reading measure. */
.legacy-hero-slider { margin: 0; padding: 0; }
.legacy-hero-slider::before { display: none; }
.legacy-hero-stage,
html[data-theme="dark"] .legacy-hero-stage { display: grid; width: 100%; max-width: none; min-height: 0; border-radius: 0; box-shadow: none; }
.legacy-hero-slide { position: relative; inset: auto; grid-area: 1 / 1; display: grid; min-width: 0; }
.legacy-hero-slide:first-child:not(.is-active) { opacity: 0; visibility: hidden; pointer-events: none; }
.legacy-hero-content { position: relative; inset: auto; width: min(100%, 1280px); margin-inline: auto; padding: 64px 48px; min-height: 500px; align-items: center; }
.legacy-hero-copy { width: min(540px, 51%); }
.legacy-hero-copy h1,
.legacy-hero-copy h2 { max-width: 12ch; font-size: clamp(2.8rem, 4.3vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 24px; text-wrap: initial; }
.legacy-hero-copy h1 em,
.legacy-hero-copy h2 em { margin-top: 4px; }
.legacy-hero-copy > p { max-width: 43ch; font-size: 1.06rem; line-height: 1.65; margin-bottom: 24px; }
.legacy-hero-media,
.legacy-hero-slide.is-active .legacy-hero-media,
.legacy-hero-slider[data-direction="previous"] .legacy-hero-media { clip-path: inset(0); }
.legacy-hero-media { left: 32%; width: 68%; }
.legacy-hero-media img,
html[data-theme="dark"] .legacy-hero-media img { object-position: 50% 46%; filter: none; }
.legacy-hero-shade { background: linear-gradient(90deg, #092824 14%, rgba(9,40,36,.99) 30%, rgba(9,40,36,.92) 39%, rgba(9,40,36,.6) 48%, rgba(9,40,36,.05) 68%, transparent 80%); }
.legacy-hero-actions { align-items: flex-start; gap: 8px 20px; }
.legacy-hero-link { font-size: .88rem; }
.legacy-hero-liquid.liquid-orb-shell { top: 24px; right: 24px; width: 68px; opacity: .65; }
.legacy-hero-dock,
html[data-theme="dark"] .legacy-hero-dock { position: relative; inset: auto; grid-area: 2 / 1; grid-template-columns: minmax(0,1fr) auto; width: 100%; padding: 12px max(24px, calc((100% - 1184px) / 2)); border-radius: 0; background: var(--surface-raised); color: var(--ink-strong); box-shadow: none; border-bottom: 1px solid var(--line); gap: 24px; }
.legacy-hero-tabs { grid-template-columns: repeat(auto-fit, minmax(0,1fr)); gap: 8px; }
.legacy-hero-tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 12px; color: var(--muted); border-radius: 10px; }
.legacy-hero-tab img { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; }
.legacy-hero-tab-label { font-size: .8rem; line-height: 1.25; font-weight: 750; white-space: normal; }
.legacy-hero-transport { grid-template-columns: 40px auto 40px 40px; }
.legacy-hero-arrow,
.legacy-hero-toggle { width: 40px; height: 44px; }
.legacy-hero-slider:not(.is-enhanced) .legacy-hero-dock { display: none; }
.continuity-ribbon { margin-top: 20px; }
.premium-section.solutions-section { padding-top: 48px; padding-bottom: 56px; }
.solutions-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.solutions-heading h2 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; margin: 0 0 12px; }
.solutions-heading p { max-width: 55ch; margin: 0; color: var(--muted); }
.solutions-heading > a { flex-shrink: 0; }
.solution-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.solution-card { min-width: 0; background: var(--surface-raised); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.solution-card > a { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.solution-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s var(--premium-ease); }
.solution-card > a > div { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.solution-card h3 { font-size: 1.55rem; margin: 0 0 12px; color: var(--ink-strong); line-height: 1.12; }
.solution-card p { font-size: .92rem; line-height: 1.6; margin: 0 0 20px; }
.solution-card .text-link { margin-top: auto; font-size: .82rem; }
.solution-card a:hover img { transform: scale(1.025); }
.solution-card a:focus-visible { outline: 3px solid var(--lilac-strong); outline-offset: -3px; }
.coverage-jump-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.coverage-jump-nav a { padding-block: 8px; color: var(--ink-strong); font-weight: 700; font-size: .9rem; text-underline-offset: 5px; }
.product-feature-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.product-photo { margin: 0; overflow: hidden; border-radius: 24px; background: var(--surface-soft); }
.product-photo img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; display: block; }
.product-photo figcaption { padding: 16px 24px; color: var(--ink-strong); font-family: var(--font-display); font-size: 1.3rem; }
.product-feature-copy h2 { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.05; margin: 0 0 24px; }
.product-feature-copy > p { max-width: 58ch; margin: 0 0 20px; }
.product-details { margin: 24px 0; }
.product-details > div { padding: 14px 0; border-top: 1px solid var(--line); }
.product-details dt { font-weight: 750; color: var(--ink-strong); }
.product-details dd { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.product-feature-copy .product-source,
.product-source { margin: 20px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.65; }
.product-source a { color: var(--lilac-strong); text-underline-offset: 3px; }
.retirement-section { background: var(--surface-soft); }
.retirement-photo img { aspect-ratio: 4 / 3; }
.retirement-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; padding: 0; margin: 40px 0 24px; }
.retirement-steps li { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.retirement-steps li > span { font-size: .8rem; font-weight: 750; color: var(--lilac-strong); }
.retirement-steps h3 { font-size: 1.55rem; margin: 8px 0 12px; }
.retirement-steps p { margin: 0; font-size: .93rem; }
.product-considerations { border-top: 1px solid var(--line); padding: 16px 0; }
.product-considerations summary { cursor: pointer; font-weight: 700; color: var(--ink-strong); padding-block: 6px; }
.product-considerations p { margin: 16px 0 0; max-width: 80ch; font-size: .94rem; }
.disability-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 40px; margin: 32px 0; }
.disability-options article { border-top: 1px solid var(--line); padding: 24px 0 12px; }
.disability-options h3 { font-size: 1.5rem; margin: 0 0 12px; }
.disability-options p { margin: 0; max-width: 55ch; }
.page-hero-photo { width: 100%; border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; }
.page-hero-coverage .page-hero-grid { gap: 48px; align-items: center; }
.page-hero-coverage h1 { font-size: clamp(2.3rem,4vw,4rem); }
.product-feature,
.retirement-section,
.disability-section,
#term-life { scroll-margin-top: 112px; }
.site-preview-banner { position: relative; z-index: 20; padding: 12px 24px; background: var(--lilac-soft); color: var(--ink-strong); text-align: center; }
.site-preview-banner a { margin-left: 16px; color: inherit; font-weight: 700; }
@media (min-width: 1600px) {
    .legacy-hero-media { left: 36%; width: 64%; }
    .legacy-hero-content { min-height: 550px; }
}
@media (max-width: 1080px) {
    .legacy-hero-content { padding: 48px 32px; min-height: 480px; }
    .legacy-hero-copy h1,
    .legacy-hero-copy h2 { font-size: 3.3rem; }
    .legacy-hero-tab img { display: none; }
    .solution-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
    .solution-card img { aspect-ratio: 16 / 9; }
    .product-feature-grid { gap: 32px; }
}
@media (max-width: 760px) {
    .legacy-hero-copy h1,
    .legacy-hero-copy h2 { font-size: 2.65rem; }
    .legacy-hero-content { min-height: 460px; padding: 40px 24px; }
    .legacy-hero-copy { width: 56%; }
    .legacy-hero-copy > p { font-size: .96rem; }
    .legacy-hero-dock,
    html[data-theme="dark"] .legacy-hero-dock { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 12px 16px; }
    .legacy-hero-transport { justify-content: center; }
    .legacy-hero-tab { min-height: 48px; padding: 8px 6px 12px; }
    .legacy-hero-tab-label { font-size: .75rem; }
    .solutions-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .product-feature-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-photo img { aspect-ratio: 16 / 10; }
    .retirement-photo { grid-row: 1; }
    .retirement-steps { gap: 20px; }
    .page-hero-coverage .page-hero-grid { grid-template-columns: 1fr; }
    .page-hero-photo { max-height: 320px; }
}
@media (max-width: 540px) {
    .legacy-hero-slide { grid-template-rows: auto 1fr; align-items: start; }
    .legacy-hero-media,
    .legacy-hero-slide.is-active .legacy-hero-media { position: relative; inset: auto; width: 100%; height: 220px; grid-row: 1; transform: none; }
    .legacy-hero-media img { object-position: center 44%; }
    .legacy-hero-shade { display: none; }
    .legacy-hero-content { grid-row: 2; min-height: 0; padding: 24px 20px 28px; }
    .legacy-hero-copy { width: 100%; }
    .legacy-hero-copy h1,
    .legacy-hero-copy h2 { max-width: none; font-size: clamp(2.1rem,9vw,2.7rem); line-height: 1.04; margin-bottom: 16px; }
    .legacy-hero-copy > p { margin-bottom: 16px; font-size: .93rem; line-height: 1.55; }
    .legacy-hero-actions { gap: 8px; flex-direction: column; }
    .legacy-hero-actions .button { width: auto; min-height: 48px; padding: 12px 18px; font-size: .88rem; }
    .legacy-hero-link { min-height: 40px; padding: 6px 0; font-size: .82rem; }
    .legacy-hero-tabs { gap: 4px; }
    .legacy-hero-tab-label { font-size: .69rem; }
    .legacy-hero-tab { justify-content: center; text-align: center; }
    .legacy-hero-dock,
    html[data-theme="dark"] .legacy-hero-dock { padding: 8px 12px; }
    .solution-grid { gap: 12px; }
    .solution-card { border-radius: 14px; }
    .solution-card > a > div { padding: 16px 12px; }
    .solution-card img { aspect-ratio: 1.2; }
    .solution-card h3 { font-size: 1.35rem; }
    .solution-card p { font-size: .84rem; margin-bottom: 16px; }
    .solution-card .text-link { align-items: flex-start; font-size: .78rem; }
    .solutions-heading h2 { font-size: 2rem; }
    .retirement-steps { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .retirement-steps li { padding-top: 16px; }
    .retirement-steps h3 { display: inline-block; margin: 0 0 8px 12px; }
    .disability-options { grid-template-columns: 1fr; margin-top: 24px; }
    .coverage-jump-nav { gap: 0 16px; }
    .coverage-jump-nav a { font-size: .8rem; }
    .product-feature-copy h2 { margin-bottom: 16px; }
    .product-photo { border-radius: 18px; }
    .product-photo figcaption { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .solution-card img { transition: none; }
    .solution-card a:hover img { transform: none; }
}
.profile-photo { object-fit: cover; flex-shrink: 0; }
.photo-settings { display: flex; align-items: flex-start; gap: 24px; }
.photo-settings form { min-width: 0; flex: 1; }
.photo-settings input[type="file"] { width: 100%; max-width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .2; }
.verification-code { letter-spacing: .18em; font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.resend-form { margin-top: 24px; }
.session-list { margin: 0; padding: 0; list-style: none; }
.session-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.session-list small { display: block; margin-top: 4px; }
.delete-account { margin-top: 12px; min-width: 150px; max-width: 360px; white-space: normal; }
.delete-account summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.delete-account p { margin: 12px 0; }
.delete-account .field { margin-top: 12px; }
.delete-account .button { width: 100%; }
.button-danger { background: #8d2727; color: #fff; border: 1px solid #8d2727; }
.button-danger:hover { background: #6f1c1c; color: #fff; }
.auth-panel > p { margin-top: 16px; }
.portal-heading h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
@media (max-width: 760px) {
    .data-table td .delete-account { grid-column: 1 / -1; width: 100%; max-width: none; }
}
@media (max-width: 1080px) {
    .auth-layout { gap: 24px; }
    .auth-story .auth-emblem { display: none; }
    .auth-story h1 { margin-bottom: 12px; }
    .auth-story .tick-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: .85rem; }
    .auth-story .auth-fine { margin-top: 16px; padding-top: 16px; }
}
@media (max-width: 560px) {
    .auth-section { padding: 24px 0 32px; }
    .auth-story { padding: 20px; }
    .auth-story h1 { font-size: 1.8rem; }
    .auth-story p { font-size: .93rem; }
    .photo-settings { flex-direction: column; gap: 16px; }
    .session-list li { align-items: flex-start; flex-wrap: wrap; }
    .delete-account { max-width: 100%; }
}
