/* Same approved variable fonts, served locally on public pages. Optional display
   prevents a late swap/reflow on genuinely slow first visits; preloads favor the brand faces. */
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: optional;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: optional;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02CF, U+02D8-02DD, U+02DF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora'; font-style: normal; font-weight: 500 700; font-display: optional;
    src: url('../fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora'; font-style: normal; font-weight: 500 700; font-display: optional;
    src: url('../fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public website design system. Edit these tokens to update every public page.
   Sora + Inter retain the existing shared typography names and weights used by Home.
   Portal typography stays in panel/css/core/typography.css. */
html:has(body.sofl-front-page) { scroll-behavior:smooth; scroll-padding-top:0; }
.sofl-front-page #public-main [id] { scroll-margin-top:var(--public-scroll-offset,20px) !important; }
@media(prefers-reduced-motion:reduce) {
    html:has(body.sofl-front-page) { scroll-behavior:auto; }
}
.sofl-front-page {
    --public-font-heading: var(--font-heading);
    --public-font-body: var(--font-body);
    --public-content-max-width: 1600px;
    --public-content-gutter: clamp(20px, 3vw, 60px);
    --public-heading-color: #08264c;
    --public-description-color: #4d4d4d;
    --public-section-background: #faf8f4;
    --public-highlight-color: #bb8c2b;
    --public-eyebrow-color: #bb8c2b;
    --public-title-margin: 16px 14px;
    --public-description-margin: 0;
    --public-description-after-gap: 24px;
    --public-title-size: 44px;
    --public-page-title-size: clamp(32px, 3.55vw, 64px);
    --public-title-weight: 700;
    --public-title-leading: 1.2;
    --public-title-tracking: -.035em;
    --public-description-size: 20px;
    --public-description-leading: 1.5;
    --public-eyebrow-size: 16px;
    --public-eyebrow-weight: 700;
    --public-eyebrow-tracking: .05em;
    --public-eyebrow-gap: 14px;
    --public-eyebrow-line-width: 40px;
    --public-eyebrow-line-height: 2px;
    --public-button-font: var(--public-font-body);
    --public-button-size: 16px;
    --public-button-weight: 700;
    --public-button-leading: 1.2;
    --public-button-radius: 8px;
    --public-button-padding: 13px 22px;
    --public-button-height: 46px;
    --public-button-gap: 16px;
    --public-button-text: #fff;
    --public-button-background: #bb8c2b;
    --public-button-border: #bb8c2b;
    --public-focus-color: #00255c;
    --public-nav-text: #f1f5fb;
    --public-nav-highlight: #ffc43a;
    font-family: var(--public-font-body);
}

/* Keep clicked and keyboard-focused links readable against the dark header. */
.sofl-front-page .sofl-public-nav .nav-link,
.sofl-front-page .sofl-public-nav .nav-link:visited {
    color: var(--public-nav-text);
}
.sofl-front-page .sofl-public-nav .nav-link:is(:hover, :focus, :active, .active) {
    color: var(--public-nav-highlight);
}
.sofl-front-page .sofl-public-nav .nav-link.active {
    border-bottom-color: var(--public-nav-highlight);
}
.sofl-front-page .sofl-public-nav .nav-link:focus-visible {
    outline: 2px solid var(--public-nav-highlight);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Shared wide content shell; opt in without changing layout-specific components. */
.sofl-front-page main .public-content-container,
.sofl-front-page.sofl-public-wealth main .wealth-content {
    width: calc(100% - var(--public-content-gutter) * 2);
    max-width: var(--public-content-max-width);
    padding-inline: 0;
    margin-inline: auto;
    min-width: 0;
}

/* Shared dark-surface palette. The eyebrow keeps the same gold on every surface. */
    .sofl-front-page :is(.approved-hero, .sofl-product-hero, .approved-final, .money-wealth-cta, .story-ending, .help-hero, .public-support-hero, .blogs-hero, .wisdom-hero, .hlv-hero) {
        --public-heading-color: #fff;
        --public-description-color: #d5e0e8;
        --public-highlight-color: #bb8c2b;
    }

.sofl-front-page main :is(h1, h2, h3, h4, h5, h6) { font-family: var(--public-font-heading); }
/* Canonical section primitives. Keep typography here; page files own layout only.
   Legacy eyebrow aliases below support shared portal/public fragments without duplicate rules. */
.sofl-front-page #public-main :is(.public-section-title, .public-page-title) {
    font-family: var(--public-font-heading);
    font-weight: var(--public-title-weight);
    font-size: var(--public-title-size);
    line-height: var(--public-title-leading);
    letter-spacing: var(--public-title-tracking);
    color: var(--public-heading-color);
    margin-block: var(--public-title-margin);
    text-wrap: balance;
}
.sofl-front-page #public-main .public-page-title { font-size: var(--public-page-title-size); line-height: 1.12; }
.sofl-front-page #public-main :is(.public-section-title, .public-page-title) em { color: var(--public-highlight-color); font-style: normal; }
.sofl-front-page #public-main .public-section-description {
    font-family: var(--public-font-body);
    font-size: var(--public-description-size);
    line-height: var(--public-description-leading);
    color: var(--public-description-color);
    font-weight: 400;
    letter-spacing: normal;
    margin-block: var(--public-description-margin);
}
.sofl-front-page #public-main .public-section-description + :is(a, button, ul, ol, div) {
    margin-block-start: var(--public-description-after-gap);
}
.sofl-front-page #public-main :is(.public-section-eyebrow, .approved-eyebrow, .fin-eyebrow, .story-eyebrow, .sofl-eyebrow, .about-overview-eyebrow, .upcoming-eyebrow, .wisdom-eyebrow, .sofl-term-eyebrow) {
    display: inline-flex;
    align-items: center;
    gap: var(--public-eyebrow-gap);
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--public-font-body);
    font-size: var(--public-eyebrow-size);
    font-weight: var(--public-eyebrow-weight);
    line-height: 1.4;
    letter-spacing: var(--public-eyebrow-tracking);
    text-transform: uppercase;
    color: var(--public-eyebrow-color);
}
.sofl-front-page #public-main :is(.public-section-eyebrow, .approved-eyebrow, .fin-eyebrow, .story-eyebrow, .sofl-eyebrow, .about-overview-eyebrow, .upcoming-eyebrow, .wisdom-eyebrow, .sofl-term-eyebrow)::before,
.sofl-front-page #public-main .public-section-heading--center .public-section-eyebrow::after {
    content: '';
    display: block;
    order: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    flex: 0 0 var(--public-eyebrow-line-width);
    width: var(--public-eyebrow-line-width);
    height: var(--public-eyebrow-line-height);
    background: currentColor;
}
.sofl-front-page :is(.approved-button, .sofl-home-btn, .sofl-home-btn-primary, .public-card-link) {
    /* Canonical button geometry wins over older section-specific CTA styles. */
    font-family:var(--public-button-font) !important;
    font-size:var(--public-button-size) !important;
    font-weight:var(--public-button-weight) !important;
    line-height:var(--public-button-leading) !important;
    letter-spacing:normal !important;
    padding:var(--public-button-padding) !important;
    min-height:var(--public-button-height) !important;
    border-radius:var(--public-button-radius) !important;
    gap:var(--public-button-gap) !important;
}
.sofl-front-page .approved-button.gold { color: var(--public-button-text); background: var(--public-button-background); border-color: var(--public-button-border); }
.sofl-front-page .approved-button.outline { color: var(--public-heading-color); background: transparent; border-color: var(--public-highlight-color); }
.sofl-front-page .approved-button:is(.dark-outline, .nav-login) { color: #ffcb45; border-color: var(--public-button-border); }
.sofl-front-page .approved-button:focus-visible { outline: 3px solid var(--public-focus-color); outline-offset: 4px; }
.sofl-front-page .approved-button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .sofl-front-page .approved-button { transition: none; transform: none; } }

/* Async feedback preserves the original label's footprint and existing results.
   Public navigation uses native browser feedback, never a second page loader. */
.sofl-front-page .sofl-loading-relabel .sofl-loading-original { position: static; }
.sofl-front-page .sofl-loading-relabel .sofl-loading-indicator { position: absolute; inset: 0; margin: 0; }
.sofl-front-page .sofl-loading-indicator > span:not(.sofl-loading-spinner) { display: none; }
.sofl-front-page .sofl-loading-section-feedback { display: flex; justify-content: flex-end; align-items: flex-start; overflow: visible; }
.sofl-front-page .sofl-loading-status { position: sticky; top: calc(var(--public-header-height) + 8px); right: auto; margin: .65rem; background: #fffdf9; border-color: #ead8ad; box-shadow: 0 2px 8px #08264c0a; }
.sofl-front-page .sofl-loading-section { scroll-margin-top: calc(var(--public-header-height) + 20px); }
.sofl-front-page .approved-button > i { display: inline-block; width: 1em; flex-shrink: 0; text-align: center; }

/* Centered section headings share the same line on both sides of the label. */
.sofl-front-page #public-main .public-section-heading--center { text-align: center; }
.sofl-front-page #public-main .public-section-heading--center .public-section-eyebrow { justify-content: center; }

/* Shared secondary section action, for links and disclosure buttons. */
.sofl-front-page #public-main .public-section-link { display:inline-flex; align-items:center; gap:14px; flex-shrink:0; width:fit-content; border:0; border-bottom:1px solid var(--public-highlight-color); padding:8px 0; background:none; color:var(--public-heading-color); font-family:var(--public-font-body); font-size:16px; font-weight:700; line-height:1.5; text-decoration:none; border-radius:0; box-shadow:none; cursor:pointer; }
.sofl-front-page #public-main .public-section-link:hover { color:var(--public-highlight-color); }
.sofl-front-page #public-main .public-section-link:focus-visible { outline:3px solid var(--public-focus-color); outline-offset:4px; }
.sofl-front-page #public-main .public-section-link[hidden] { display:none; }

/* Public banner secondary CTA: shared across product banners. */
.sofl-front-page #public-main .approved-button.banner-secondary { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:54px; padding:14px 28px; border:2px solid var(--public-highlight-color); border-radius:10px; background:transparent; color:var(--public-heading-color); box-shadow:none; text-decoration:none; }
.sofl-front-page #public-main .approved-button.banner-secondary:hover { background:#bb8c2b18; border-color:#f0c664; }
.sofl-front-page #public-main .approved-button.banner-secondary i { color:inherit; transition:transform 180ms ease; }
.sofl-front-page #public-main .approved-button.banner-secondary:hover i { transform:translateX(4px); }
@media(prefers-reduced-motion:reduce) { .sofl-front-page #public-main .approved-button.banner-secondary i { transition:none; transform:none; } }

/* Shared card CTA: category and term cards use the same interaction. */
.sofl-front-page .public-card-link { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; padding:10px 16px; border:1px solid #bb8c2b; border-radius:8px; background:#bb8c2b; color:#fff; font-size:14px; font-weight:700; line-height:1.4; text-decoration:none; white-space:nowrap; transition:background-color 180ms ease,border-color 180ms ease,color 180ms ease; }
.sofl-front-page .public-card-link:is(:hover,:focus-visible) { background:#9d7220; border-color:#9d7220; color:#fff; text-decoration:none; }
.sofl-front-page .public-card-link > i[aria-hidden] { font-size:16px; line-height:1; transition:transform 180ms ease; }
.sofl-front-page .public-card-link:is(:hover,:focus-visible) > i[aria-hidden] { transform:translateX(4px); }
@media(prefers-reduced-motion:reduce) { .sofl-front-page .public-card-link, .sofl-front-page .public-card-link > i[aria-hidden] { transition:none; transform:none; } }
.sofl-front-page .public-card-link:focus-visible { outline:3px solid #bb8c2b; outline-offset:4px; }

/* Public micro-interactions use composited movement and preserve existing layouts. */
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
    .sofl-front-page #public-main :is(.approved-button,.public-card-link) {
        transition:background-color 180ms ease,color 180ms ease,box-shadow 220ms ease,translate 220ms ease;
    }
    .sofl-front-page #public-main :is(.approved-button,.public-card-link):hover {
        translate:0 -2px;
        box-shadow:0 6px 16px #08264c18;
    }
    .sofl-front-page #public-main :is(.public-sample-term-card,.money-category-card,.wealth-category-card,.wealth-why-card,.hlv-playlist) {
        transition:translate 260ms ease,box-shadow 260ms ease,border-color 260ms ease;
    }
    .sofl-front-page #public-main :is(.public-sample-term-card,.money-category-card,.wealth-category-card,.wealth-why-card,.hlv-playlist):hover {
        box-shadow:0 12px 28px #08264c12;
    }
}

/* One secondary-copy color across public pages, including legacy card rules.
   Dark sections inherit their existing light description token for contrast. */
.sofl-front-page #public-main :is(p, figcaption, dd,
    .public-section-description, .glimpse-meta, .public-article-meta,
    .fin-category-counts, .money-category-count, .wealth-category-counts,
    .hlv-video-meta, .glimpse-info li, .article-reading-body li,
    [class$="-description"], [class$="-summary"], [class$="-subtitle"], [class$="-excerpt"]) {
    color:var(--public-description-color, #4d4d4d) !important;
}

/* One filled public CTA treatment; outline variants retain the same geometry. */
.sofl-front-page :is(.approved-button.gold,.public-card-link,.sofl-home-btn-primary) {
    background:var(--public-button-background) !important;
    color:var(--public-button-text) !important;
    border:1px solid var(--public-button-border) !important;
    text-decoration:none;
}
.sofl-front-page :is(.approved-button.gold,.public-card-link,.sofl-home-btn-primary):hover {
    background:#9d7220 !important;
    color:var(--public-button-text) !important;
}

/* Shared numbered pagination for every public listing; carousel dots stay separate. */
.sofl-front-page #public-main .public-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin:24px 0 0; padding:0; }
.sofl-front-page #public-main .public-pagination > :is(a,span) { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:auto; min-width:42px; min-height:42px; height:42px; padding:10px 12px; border:1px solid #dce5f0 !important; border-radius:9px !important; background:#fff !important; color:#08264c !important; font:500 13px/1.2 var(--public-font-body); text-decoration:none; box-shadow:none; }
.sofl-front-page #public-main .public-pagination > :is(.active,[aria-current="page"]) { background:#bb8c2b !important; border-color:#bb8c2b !important; color:#fff !important; font-weight:600; }
.sofl-front-page #public-main .public-pagination > :is(.disabled,[aria-disabled="true"]) { color:#b8c3cf !important; background:#ffffffa6 !important; cursor:default; pointer-events:none; }
.sofl-front-page #public-main .public-pagination > a:not(.active):not([aria-current="page"]):hover { background:#faf8f4 !important; border-color:#bb8c2b !important; }
.sofl-front-page #public-main .public-pagination > a:focus-visible { outline:3px solid #bb8c2b; outline-offset:3px; }
.sofl-front-page #public-main .public-pagination > .pagination-gap { border-color:transparent !important; background:transparent !important; min-width:24px; padding-inline:4px; }

/* First public hero: consistent type across home, products, contact, FAQs and policies.
   Keep section headings, cards and Student Portal typography independent. */
body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-section-eyebrow {
    font-size:15px;
}
body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-page-title {
    font-size:64px;
    line-height:1.2;
    overflow-wrap:break-word;
    color:#ffffff;
}
body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-page-title :is(em,span) { font-size:inherit; }
body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-section-description {
    font-size:20px;
    line-height:1.55;
}
@media(max-width:991.98px) {
    body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-page-title { font-size:48px; }
}
@media(max-width:575.98px) {
    body.sofl-front-page #public-main > section:is(.approved-hero,.sofl-product-hero):first-child .public-page-title { font-size:36px; }
}

@media(max-width:575.98px) {
    body.sofl-front-page { --public-title-size:32px; }
}
