
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* === Wealth America — Monochrome System === */
    --black: #0A0A0A;
    --black-pure: #000000;
    --ink: #141414;
    --charcoal: #1F1F1F;
    --steel-900: #2A2A2A;
    --steel-800: #3A3A3A;
    --steel-700: #5A5A5A;
    --steel-600: #7A7A7A;
    --steel-500: #9A9A9A;
    --steel-400: #B8B8B8;
    --steel-300: #D0D0D0;
    --steel-200: #E5E5E5;
    --steel-100: #F2F2F2;
    --bone: #FAFAFA;
    --white: #FFFFFF;

    /* === Trust palette — vivid color accents on the mono base === */
    --sapphire-50:  #EEF4FB;
    --sapphire-100: #D7E5F4;
    --sapphire-200: #A9C5E7;
    --sapphire-400: #4A82C8;
    --sapphire-500: #1E5AAB;   /* Vivid trust blue — primary accent */
    --sapphire-600: #154280;
    --sapphire-700: #0E2F5C;
    --sapphire-900: #0A2A4A;   /* Deep navy — for dark sections */

    --gold-50:  #FAF6EC;
    --gold-100: #F2E9CD;
    --gold-300: #DCC07A;
    --gold-500: #C9A961;       /* Warm gold — wealth/prestige */
    --gold-600: #A88944;
    --gold-700: #7A6028;

    --emerald-500: #1F6B4A;    /* Growth accent (sparingly used) */
    --crimson-500: #B23A48;    /* Reserved for warnings only */

    /* Brand semantic mapping (kept compatible with existing cms-* utilities) */
    --brand-primary: var(--black);          /* black still anchors the system */
    --brand-dark: var(--sapphire-900);      /* deep navy for dark moments */
    --brand-light: var(--bone);
    --brand-accent: var(--gold-500);        /* gold = the prestige accent */
    --brand-neutral: var(--steel-700);
    --brand-blue: var(--sapphire-500);      /* vivid trust accent */

    --success: var(--emerald-500);
    --error: var(--crimson-500);
    --warning: var(--gold-600);
    --info: var(--sapphire-500);

    /* Typography stacks */
    --font-display: 'Big Shoulders Display', 'Druk', 'Oswald', 'Impact', sans-serif;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: var(--font-display);
    --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --radius-xl: 8px;
    --radius-full: 9999px;
}

/* Base — LIGHT DOMINANT */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { background: var(--bone); }
body {
    font-family: var(--font-family);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    color: var(--charcoal);
    background-color: var(--bone);
    font-feature-settings: 'ss01', 'cv11';
}

/* === Color utilities (compatible) === */
.cms-bg-primary { background-color: var(--brand-primary) !important; }
.cms-text-primary { color: var(--brand-primary) !important; }
.cms-border-primary { border-color: var(--brand-primary) !important; }

.cms-bg-dark { background-color: var(--black-pure) !important; }
.cms-text-dark { color: var(--black-pure) !important; }
.cms-border-dark { border-color: var(--black-pure) !important; }

.cms-bg-light { background-color: var(--bone) !important; }
.cms-text-light { color: var(--bone) !important; }
.cms-border-light { border-color: var(--bone) !important; }

.cms-bg-accent { background-color: var(--brand-accent) !important; }
.cms-text-accent { color: var(--brand-accent) !important; }
.cms-border-accent { border-color: var(--brand-accent) !important; }

.cms-text-neutral { color: var(--brand-neutral) !important; }
.cms-bg-neutral { background-color: var(--brand-neutral) !important; }
.cms-border-neutral { border-color: var(--brand-neutral) !important; }

.cms-bg-bone { background-color: var(--bone) !important; }
.cms-bg-white { background-color: var(--white) !important; }
.cms-bg-black { background-color: var(--black) !important; }
.cms-bg-ink { background-color: var(--ink) !important; }

/* === Typography — bold, condensed, American === */
h1, h2, h3, h4, h5, h6,
.cms-h1, .cms-h2, .cms-h3, .cms-h4, .cms-h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 0.95;
}

.cms-h1 {
    font-size: clamp(56px, 9vw, 168px);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.005em;
    margin-bottom: 28px;
}
.cms-h2 {
    font-size: clamp(40px, 6vw, 96px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0;
    margin-bottom: 24px;
}
.cms-h3 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 16px;
}
.cms-h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 10px;
}
.cms-h5 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.cms-body {
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    margin-bottom: 14px;
    color: var(--charcoal);
    text-transform: none;
    letter-spacing: 0;
}
.cms-small {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 8px;
    color: var(--steel-700);
    text-transform: none;
}

/* Mono accent — credentials, dates, tabular numbers */
.cms-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--steel-700);
}

/* Eyebrow / kicker — amber accent for warmth + prestige */
.cms-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-700);
    margin-bottom: 20px;
    display: inline-block;
}

/* Color utilities */
.cms-text-blue { color: var(--sapphire-500) !important; }
.cms-text-navy { color: var(--sapphire-900) !important; }
.cms-text-gold { color: var(--gold-500) !important; }
.cms-bg-blue { background-color: var(--sapphire-500) !important; }
.cms-bg-navy { background-color: var(--sapphire-900) !important; }
.cms-bg-gold { background-color: var(--gold-500) !important; }
.cms-bg-bluetint { background-color: var(--sapphire-50) !important; }
.cms-bg-goldtint { background-color: var(--gold-50) !important; }

/* Editorial pull quote */
.cms-quote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
    color: var(--black);
    text-transform: uppercase;
}

/* Section variants — DARK is the special case now */
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5,
.section-dark .cms-h1, .section-dark .cms-h2, .section-dark .cms-h3,
.section-dark .cms-h4, .section-dark .cms-h5,
.section-dark .cms-quote {
    color: var(--white);
}
.section-dark { background-color: var(--black); color: var(--steel-300); }
.section-dark .cms-body { color: var(--steel-300); }
.section-dark .cms-small { color: var(--steel-400); }
.section-dark .cms-eyebrow { color: var(--steel-400); }
.section-dark .cms-mono { color: var(--steel-400); }

/* Light section (explicit, redundant default) */
.section-light { background-color: var(--bone); color: var(--charcoal); }

/* Charcoal-amber dark section — warm dark moment with gold accents */
.section-navy {
    background: linear-gradient(160deg, #1A1A1A 0%, #0E0E0E 50%, #1A1A1A 100%);
    color: var(--steel-300);
}
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4, .section-navy h5,
.section-navy .cms-h1, .section-navy .cms-h2, .section-navy .cms-h3,
.section-navy .cms-h4, .section-navy .cms-h5,
.section-navy .cms-quote { color: var(--white); }
.section-navy .cms-body { color: var(--steel-300); }
.section-navy .cms-small { color: var(--steel-400); }
.section-navy .cms-eyebrow { color: var(--gold-500); }
.section-navy .cms-mono { color: var(--gold-300); }
.section-navy .cms-link { color: var(--white); }
.section-navy .cms-link:hover { color: var(--gold-500); }
.section-navy .brand-rule { background: rgba(255, 255, 255, 0.18); }
.section-navy .cms-btn-primary {
    background: var(--gold-500); color: var(--black); border-color: var(--gold-500);
}
.section-navy .cms-btn-primary:hover {
    background: transparent; color: var(--gold-500);
}
.section-navy .cms-btn-outline {
    border-color: rgba(255,255,255,0.35); color: var(--white);
}
.section-navy .cms-btn-outline:hover {
    background: var(--gold-500); color: var(--black); border-color: var(--gold-500);
}

/* Links */
.cms-link {
    text-decoration: none;
    transition: color 200ms ease;
    color: var(--black);
}
.cms-link:hover { color: var(--steel-700); }
.section-dark .cms-link { color: var(--white); }
.section-dark .cms-link:hover { color: var(--steel-400); }

/* === Buttons — square edges, bold === */
.cms-btn {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 18px 32px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.cms-btn.hidden, .faster-auth-signin.hidden, .faster-auth-subscribe.hidden, .faster-auth-account.hidden { display: none !important; }
.cms-btn-disabled { opacity: 0.5; cursor: not-allowed; }

.cms-btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.cms-btn-primary:hover {
    background: transparent;
    color: var(--black);
}

.cms-btn-accent {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.cms-btn-accent:hover {
    background: transparent;
    color: var(--black);
}

.cms-btn-outline {
    background: transparent;
    border: 1px solid var(--steel-700);
    color: var(--black);
}
.cms-btn-outline:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.cms-btn-ghost {
    background: transparent;
    border: 1px solid var(--steel-300);
    color: var(--charcoal);
}
.cms-btn-ghost:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--white);
}

/* Dark section button variants */
.section-dark .cms-btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.section-dark .cms-btn-primary:hover {
    background: transparent;
    color: var(--white);
}
.section-dark .cms-btn-outline {
    border-color: var(--steel-500);
    color: var(--white);
}
.section-dark .cms-btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.section-dark .cms-btn-ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
}
.section-dark .cms-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--white);
    color: var(--white);
}

/* Hero-on-image specific buttons */
.on-image .cms-btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.on-image .cms-btn-primary:hover {
    background: transparent;
    color: var(--white);
}
.on-image .cms-btn-ghost {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}
.on-image .cms-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--white);
    color: var(--white);
}

/* === Cards === */
.cms-card {
    background: var(--white);
    border: 1px solid var(--steel-200);
    border-radius: 0;
    padding: 0;
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.cms-card:hover {
    border-color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(10, 10, 10, 0.08);
}
.section-dark .cms-card { background: var(--ink); border-color: var(--steel-900); box-shadow: none; }
.section-dark .cms-card:hover { border-color: var(--steel-600); box-shadow: none; }
.cms-card-header { margin-bottom: 16px; }
.cms-card-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.005em;
}
.section-dark .cms-card-title { color: var(--white); }
.cms-card-content { font-family: var(--font-family); font-size: 15px; line-height: 1.65; color: var(--steel-700); text-transform: none; }
.section-dark .cms-card-content { color: var(--steel-400); }
.cms-card-footer { margin-top: 16px; }

/* === Forms === */
.cms-form-control {
    display: block; width: 100%; height: 52px; padding: 14px 18px;
    font-size: 15px; font-family: var(--font-family); color: var(--black);
    background-color: var(--white); border: 1px solid var(--steel-300);
    border-radius: 0; transition: all 200ms ease; box-sizing: border-box;
}
.cms-form-control:hover { border-color: var(--steel-700); }
.cms-form-control:focus { border-color: var(--black); outline: none; }
.cms-form-control::placeholder { color: var(--steel-500); }
.section-dark .cms-form-control { color: var(--white); background-color: transparent; border-color: var(--steel-800); }
.section-dark .cms-form-control:hover { border-color: var(--steel-600); }
.section-dark .cms-form-control:focus { border-color: var(--white); }
.section-dark .cms-form-control::placeholder { color: var(--steel-600); }

.cms-form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--steel-700);
}
.section-dark .cms-form-label { color: var(--steel-400); }

.cms-form-select {
    display: block; width: 100%; height: 52px; padding: 14px 18px;
    font-size: 15px; font-family: var(--font-family); color: var(--black);
    background-color: var(--white); border: 1px solid var(--steel-300);
    border-radius: 0; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; box-sizing: border-box;
}
.cms-form-textarea {
    width: 100%; min-height: 140px; padding: 14px 18px;
    font-size: 15px; font-family: var(--font-family); color: var(--black);
    background-color: var(--white); border: 1px solid var(--steel-300);
    border-radius: 0; resize: vertical;
    transition: border-color 200ms ease; box-sizing: border-box;
}
.cms-form-textarea:focus { outline: none; border-color: var(--black); }
.section-dark .cms-form-textarea { color: var(--white); background-color: transparent; border-color: var(--steel-800); }
.section-dark .cms-form-textarea:focus { border-color: var(--white); }

.cms-form-checkbox, .cms-form-radio { opacity: 0; width: 0; height: 0; }
.cms-form-checkbox + label, .cms-form-radio + label { padding-left: 28px; cursor: pointer; font-size: 15px; line-height: 20px; }
.cms-form-checkbox + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; }
.cms-form-checkbox:checked + label:after { content: ''; left: 6px; top: 2px; width: 6px; height: 10px; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cms-form-radio + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.cms-form-radio:checked + label:after { content: ''; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; }
.cms-error-message { font-size: 13px; margin-top: 6px; color: var(--error); }
.cms-success-message { font-size: 13px; margin-top: 6px; color: var(--success); }

/* === Brand motifs — star + arc + bars === */
.brand-bar {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: currentColor;
    vertical-align: middle;
}
.brand-star {
    display: inline-block;
    width: 14px; height: 14px;
    color: currentColor;
    vertical-align: middle;
}
.brand-rule {
    width: 100%;
    height: 1px;
    background: var(--steel-300);
    border: none;
    margin: 0;
}
.section-dark .brand-rule { background: var(--steel-800); }

/* Section spacing */
.section-pad { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.section-pad-sm { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }

/* Content body width */
#ai_post .content-body:not(:has(.kg-width-full)) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Post elements */
.post-feature-image { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; filter: grayscale(0.2); }
.cms-card:hover .post-feature-image { transform: scale(1.04); filter: grayscale(0); }
.post-tag {
    color: var(--steel-700);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
}
.post-tag:hover { color: var(--black); }
.section-dark .post-tag { color: var(--steel-400); }
.section-dark .post-tag:hover { color: var(--white); }

.post-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    transition: color 200ms ease;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.005em;
}
.section-dark .post-title { color: var(--white); }
.cms-card:hover .post-title { color: var(--steel-700); }
.section-dark .cms-card:hover .post-title { color: var(--steel-300); }

.post-content { font-family: var(--font-family); color: var(--steel-700); font-size: 15px; line-height: 1.65; flex-grow: 1; text-transform: none; }
.section-dark .post-content { color: var(--steel-400); }
.post-meta { color: var(--steel-500); font-size: 13px; display: flex; align-items: center; margin-top: auto; font-family: var(--font-mono); letter-spacing: 0.04em; }
.post-meta i { margin-right: var(--space-2); }
.site-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }
.post-item { position: relative; }
.post-link { position: absolute; inset: 0; z-index: 10; }

/* Selection */
::selection { background: var(--black); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb { background: var(--steel-300); }
::-webkit-scrollbar-thumb:hover { background: var(--steel-700); }

@media (max-width: 768px) {
    .cms-h1 { font-size: 56px; line-height: 0.92; }
    .cms-h2 { font-size: 40px; line-height: 0.95; }
    .cms-h3 { font-size: 28px; line-height: 1; }
    .cms-btn { padding: 16px 26px; font-size: 12px; }
}
