/* IPS editorial design system. shared chrome (topbar, nav, footer) applies
   globally; the cream/dark section components are scoped under .ips so the
   public pages still on the old styling are untouched. */

:root {
    --ips-hero: #0B0F13;
    --ips-hero-2: #0E141A;
    --ips-cream: #F5EAD0;
    --ips-cream-2: #EFE2C2;
    --ips-ink: #16191E;
    --ips-ink-soft: #3A3E45;
    --ips-ink-mute: #A4A8AE;
    --ips-accent: #E0541F;
    --ips-accent-bright: #F26A2E;
    --ips-muted: #7A7363;
    --ips-line: rgba(245,234,208,.10);
    --ips-line-strong: rgba(245,234,208,.20);
    --ips-rule: rgba(20,20,20,.4);
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* unprefixed aliases consumed by the Atlas + Legacy Center handoff surfaces */
    --hero: var(--ips-hero);
    --cream: var(--ips-cream);
    --cream-2: var(--ips-cream-2);
    --ink: var(--ips-ink);
    --accent: var(--ips-accent);
    --accent-bright: var(--ips-accent-bright);
    --line: var(--ips-line);
    --line-strong: var(--ips-line-strong);
    --panel-bg: #0F151B;
}

/* document-level no-horizontal-scroll safety. any element wider than the
   viewport gets clipped instead of unlocking a side-scroll gesture on mobile.
   overflow-x: clip is preferred (does not create a scroll container, so
   position: sticky inside still works); overflow-x: hidden is the fallback for
   older engines that ignore clip. */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body { position: relative; }

/* primary nav restyled to the editorial system */
.ips-nav {
    background: var(--ips-hero);
    color: var(--ips-cream);
    border-bottom: 1px solid var(--ips-line);
    padding: 18px 56px;
}
.ips-nav .navbar-brand,
.ips-nav .brand-title {
    color: var(--ips-cream);
    display: flex;
    align-items: center;
    gap: 14px;
}
.ips-nav .ips-brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ips-cream);
    display: grid;
    place-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: var(--ips-cream);
    flex-shrink: 0;
}
.ips-nav .ips-brand-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: .10em;
    line-height: 1.05;
}
.ips-nav .ips-brand-sub {
    font-size: 9.5px;
    letter-spacing: .22em;
    color: #9aa1ab;
    text-transform: uppercase;
    margin-top: 4px;
}
.ips-nav .nav-link {
    font-family: var(--font-sans) !important;
    color: #cdd3da !important;
    font-size: 11px !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
}
.ips-nav .nav-link:hover,
.ips-nav .nav-link:focus { color: var(--ips-cream) !important; }
.ips-nav .nav-link.active { color: var(--ips-cream) !important; }
.ips-nav .dropdown-menu {
    background: var(--ips-hero-2);
    border: 1px solid var(--ips-line-strong);
    border-radius: 0;
}
.ips-nav .dropdown-item {
    color: #cdd3da;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ips-nav .dropdown-item:hover {
    background: var(--ips-accent);
    color: #fff;
}
.ips-nav .ips-nav-cta {
    border: 1px solid var(--ips-cream);
    color: var(--ips-cream);
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    background: transparent;
    line-height: 1.3;
    display: inline-block;
}
.ips-nav .ips-nav-cta:hover { background: var(--ips-accent); border-color: var(--ips-accent); color: #fff; }
.ips-nav .navbar-toggler {
    border: 1px solid var(--ips-cream);
    padding: 6px 10px;
    background: transparent;
}
.ips-nav .navbar-toggler:focus { outline: none; box-shadow: 0 0 0 .2rem rgba(245,234,208,.25); }
/* the markup uses three empty <span> bars (not Bootstrap's icon span), so each
   needs explicit dimensions or the button renders as just the border outline. */
.ips-nav .navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ips-cream);
    border-radius: 2px;
    margin: 4px 0;
}
.ips-nav .navbar-toggler span:first-child { margin-top: 0; }
.ips-nav .navbar-toggler span:last-child { margin-bottom: 0; }

/* footer restyle */
.ips-footer {
    background: var(--ips-hero);
    color: #8b929c;
    border-top: 1px solid var(--ips-line);
    padding: 28px 56px;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .04em;
}
.ips-footer a { color: #cdd3da; text-decoration: none; }
.ips-footer a:hover { color: var(--ips-cream); }
.ips-footer .footer-links a {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .ips-nav { padding: 14px 20px; }
    .ips-footer { padding: 24px 20px; }
}

/* ===========================================================================
   .ips scope: editorial section components shared across the new pages
   =========================================================================== */
.ips {
    --accent: var(--ips-accent);
    --accent-bright: var(--ips-accent-bright);
    background: var(--ips-cream);
    color: var(--ips-ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
.ips * { box-sizing: border-box; }
.ips .display { font-family: 'Bebas Neue', sans-serif; }

/* eyebrow: small-caps label with leading rule */
.ips .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ips-accent);
}
.ips .eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}
.ips .eyebrow.on-dark { color: #a8b0bb; }
.ips .eyebrow.on-dark .num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--ips-cream);
    letter-spacing: 0;
}

/* stroked echo headline word */
.ips .stk { color: transparent; -webkit-text-stroke: 1.5px rgba(245,234,208,.42); }
.ips .stk-ink { color: transparent; -webkit-text-stroke: 1.4px rgba(20,20,20,.3); }
.ips em { font-style: normal; color: var(--ips-accent); }
.ips .on-dark em, .ips .hero em, .ips .featured em { color: var(--ips-accent-bright); }

/* buttons (ips-btn avoids clobbering bootstrap .btn) */
.ips .ips-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 18px 24px;
    border: none;
    line-height: 1;
    font-family: var(--font-sans);
    cursor: pointer;
}
.ips .ips-btn .arr { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0; }
.ips .ips-btn-primary { background: var(--ips-accent); color: #fff; }
.ips .ips-btn-primary:hover { background: var(--ips-accent-bright); color: #fff; }
.ips .ips-btn-ghost { background: transparent; border: 1px solid rgba(245,234,208,.45); color: var(--ips-cream); }
.ips .ips-btn-ghost:hover { border-color: var(--ips-accent-bright); }
.ips .ips-btn-ghost-ink { background: transparent; border: 1px solid var(--ips-rule); color: var(--ips-ink); }
.ips .ips-btn-ghost-ink:hover { border-color: var(--ips-accent); color: var(--ips-accent); }

/* reusable mono index "01" */
.ips .mono-idx { font-family: var(--font-mono); }

@media (max-width: 991px) {
    .ips .ips-btn { padding: 15px 18px; font-size: 10px; }
}
