/*
 * 1CreditOnline brand foundation.
 * Opt-in only: legacy templates and Issue #122 snapshots do not import this asset.
 * All presentation selectors are scoped to [data-brand-ui].
 */
[data-brand-ui] {
    --brand-navy: #0b233a;
    --brand-ink: #102c42;
    --brand-teal: #007e78;
    --brand-mint: #dff9ee;
    --brand-lime: #b8f38b;
    --brand-line: #dce6ed;
    --brand-white: #ffffff;
    --brand-focus: #007e78;
    --brand-muted: #52667a;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}
[data-brand-ui] *,
[data-brand-ui] *::before,
[data-brand-ui] *::after { box-sizing: border-box; }
[data-brand-ui] a:focus-visible {
    outline: 3px solid var(--brand-focus);
    outline-offset: 4px;
    border-radius: 6px;
}
[data-brand-ui].brand-skip-link {
    position: absolute;
    top: -140px;
    left: 14px;
    z-index: 1000;
    background: var(--brand-white);
    color: var(--brand-ink);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}
[data-brand-ui].brand-skip-link:focus { top: 14px; }
[data-brand-ui] .brand-site-container { width: min(1200px, 100%); margin-inline: auto; padding-inline: 28px; }
[data-brand-ui].brand-site-header { background: var(--brand-white); color: var(--brand-ink); border-bottom: 1px solid var(--brand-line); }
[data-brand-ui] .brand-header-layout {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
[data-brand-ui] .brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    text-decoration: none;
    color: var(--brand-ink);
    font-weight: 850;
    letter-spacing: -0.055em;
}
[data-brand-ui] .brand-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    padding-inline: 12px;
    border: 1px solid var(--brand-line);
    border-radius: 10px;
    background: var(--brand-white);
    color: var(--brand-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}
[data-brand-ui] .brand-nav-toggle:focus-visible {
    outline: 3px solid var(--brand-focus);
    outline-offset: 3px;
}
[data-brand-ui] .brand-symbol {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--brand-lime);
    color: var(--brand-navy);
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}
[data-brand-ui] .brand-name { font-size: 23px; }
[data-brand-ui] .brand-name span { color: var(--brand-teal); }
[data-brand-ui] .brand-nav-list,
[data-brand-ui] .brand-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 23px;
    padding: 0;
    margin: 0;
    list-style: none;
}
[data-brand-ui] .brand-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #334b5b;
}
[data-brand-ui] .brand-nav-link:hover,
[data-brand-ui] .brand-nav-link[aria-current="page"] { color: var(--brand-teal); }
[data-brand-ui] .brand-nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
[data-brand-ui].brand-site-footer { --brand-focus: #2faeb1; background: var(--brand-navy); color: #c7d6de; }
[data-brand-ui] .brand-footer-layout {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 28px;
}
[data-brand-ui] .brand-footer-name { color: var(--brand-white); font-size: 17px; }
[data-brand-ui] .brand-footer-note { max-width: 340px; margin: 6px 0 0; font-size: 13px; }
[data-brand-ui] .brand-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-white); text-decoration: none; font-size: 13px; font-weight: 650; }
[data-brand-ui] .brand-footer-links a:hover { text-decoration: underline; }
[data-brand-ui] small { font-size: 12px; }
@media (max-width: 940px) {
    [data-brand-ui] .brand-header-layout { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 16px; }
    [data-brand-ui] .brand-nav-list { gap: 5px 20px; }
}
@media (min-width: 768px) and (max-width: 940px) {
    [data-brand-ui] .brand-header-layout { align-items: center; flex-direction: row; }
}
@media (max-width: 560px) {
    [data-brand-ui] .brand-site-container { padding-inline: 18px; }
    [data-brand-ui] .brand-name { font-size: 20px; }
    [data-brand-ui] .brand-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
    [data-brand-ui] .brand-footer-links { align-items: flex-start; flex-direction: column; gap: 14px; }
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-header-layout {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding-block: 12px;
    }
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-wordmark { gap: 8px; }
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-nav-toggle { display: inline-flex; }
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-site-nav { flex: 0 0 100%; width: 100%; }
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-site-nav[hidden] { display: none !important; }
}
@media (max-width: 360px) {
    [data-brand-ui][data-brand-nav-enhanced="true"] .brand-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-brand-ui], [data-brand-ui] * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
