/* Shared header layout and automatic appearance across all four FIP pages. */
:root { color-scheme: light; }
.brand { min-width:0 !important; flex:0 0 auto; gap:0 !important; }
.brand picture {display:block;line-height:0}
.brand-logo {width:clamp(205px,23vw,316px);height:auto;display:block;object-fit:contain}
.nav {gap:clamp(12px,1.5vw,22px) !important}
.nav-links {margin-left:auto;gap:clamp(14px,1.8vw,27px) !important}
.nav-links a {white-space:nowrap}
.nav-call {flex-shrink:0;margin-left:0 !important}
.theme-actions {display:flex;align-items:center;flex-shrink:0}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #0d9ab6;color:#0783a4;background:rgba(7,157,189,.045);border-radius:999px;padding:9px 13px;min-height:39px;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer;user-select:none;font-family:inherit;transition:background-color .15s ease,border-color .15s ease}
.theme-toggle svg {width:17px;height:17px;flex-shrink:0;stroke:currentColor}
.mobile-toggle {margin-left:auto}
@media (max-width: 1130px) {
  .brand-logo{width:clamp(190px,22vw,265px)}
  .theme-toggle{padding:8px 10px;gap:6px}
  .nav-call{padding:11px 13px !important}
  .nav-links{gap:14px !important}
  .nav-links a{font-size:12px !important}
}
@media (max-width: 900px) {
  .nav{position:relative;justify-content:space-between !important}
  .nav-links{display:none !important;position:absolute !important;top:100% !important;left:0;right:0;background:#fff;z-index:1000;box-shadow:0 16px 30px rgba(21,41,36,.10);border:1px solid #e2e7e4;border-radius:0 0 12px 12px;padding:9px 22px 17px;flex-direction:column;align-items:stretch;gap:0 !important;margin:0 !important}
  .nav-links.open{display:flex !important}
  .nav-links a{display:block;width:100%;padding:12px 0;font-size:15px !important}
  .theme-actions{width:100%;padding:13px 0 2px;border-top:1px solid #e2e7e4;margin-top:6px}
  .mobile-toggle{display:inline-flex !important;margin-left:auto;flex-shrink:0}
  .nav-call{display:inline-flex !important;margin-left:0 !important;padding:10px 12px !important;font-size:12px !important}
}
@media (max-width: 740px) {
  .brand-logo{width:90px;height:45px;object-fit:contain}
  .theme-toggle{min-height:34px;padding:8px 12px}
  .nav{gap:9px !important}
}
@media (max-width: 375px) {
  .brand-logo{width:80px}
  .nav{gap:5px !important}
  .nav-call{padding:9px 10px !important;font-size:11px !important}
  .mobile-toggle{padding:6px !important}
}
/* Day/night mode. Hero photos and dark presentation panels stay intentionally dark. */
html[data-theme=dark]{color-scheme:dark;--ink:#eef5f3;--ink-muted:#bac9c6;--ink-soft:#9fb4b0;--paper:#121b1d;--white:#172327;--rule:#314144;--soft-blue:#1c3233;--teal:#64dbdb;--teal-bright:#64e4df;--teal-light:#6ad5d1;--muted:#b7c9c7;--border:#34484b;--line:#34484b;}
html[data-theme=dark] body {background:#121b1d;color:#ecf3f1}
html[data-theme=dark] .topbar,html[data-theme=dark] .nav-links{background:#152124 !important;border-color:#304448 !important}
html[data-theme=dark] .brand-logo {filter:brightness(1.48) saturate(.85)}
html[data-theme=dark] .nav-links a {color:#e0eeec !important}
html[data-theme=dark] .nav-links a:hover,html[data-theme=dark] .nav-links a[aria-current=page]{color:#76e5e1 !important}
html[data-theme=dark] .mobile-toggle {color:#ebf4f3}
html[data-theme=dark] .theme-toggle{background:#1a3037;border-color:#397d99;color:#80def6}
html[data-theme=dark] :is(.path-section,.founder-section,.curriculum,.reviews,.faq,.fit,.method,.investment,.cta,.hero:not(.hero-dark),.price-block,.credentials,.endorsements,.past-work,.case-figure,.source-art,.review-card,.foundation-proof .paper,.proof-band) {background-color:#172426 !important}
html[data-theme=dark] :is(.path-card,.path-card.featured,.profit-card,.chart-card,.review-card,.join-frame,.paper,.source-art){background-color:#1d2d30 !important;border-color:#365054 !important}
html[data-theme=dark] .foundation {background:#1b2f2f !important}
html[data-theme=dark] .foundation-proof .paper-info{background:#111d20 !important}
html[data-theme=dark] :is(.method,.fit,.curriculum,.reviews,.faq,.evidence,.story,.source,.who,.price-block,.cta,.investment,.proof-band,.foundation,.credentials,.endorsements,.founder-section,.path-section,.path-card,.about .credentials){border-color:#354648 !important}
html[data-theme=dark] :is(.path-card h3,.outcome h3,.section-heading h2,.path-head h2,.process h2,.founder-copy h2,.closing h2,.method h2,.faq h2,.reviews h2,.who h2,.join h2,.price-block h2,.source h2,.credentials h2,.endorsements h2,.story h2,.curriculum h2,.fit h2,.investment h2,.cta h2,.work h2,.foundation h2,.hero h1){color:#f5faf8}
html[data-theme=dark] :is(.section-heading p,.path-head p,.path-card p,.outcome p,.process-step p,.founder-copy p,.closing p,.section-intro p,.story p,.credentials p,.endorsement p,.faq p,.review-card p,.who p,.works-grid p,.fit p,.method p,.evidence p,.investment p,.price-block p,.paper-info p,.case-figure p,.curriculum p,.foundation p,.work p,.source p,.cta p,.detail p,.fine){color:#bccfcd !important}
html[data-theme=dark] :is(.path-card .path-features span,.path-features span){background:#243b3a;color:#b8eeeb;border-color:#436361}
html[data-theme=dark] :is(.cred-item,.outcome,.process-step,.closing-panel,.proof-strip,.credentials-list,.review-card,.foundation-grid,.fit-list,.faq-grid,.section-heading,.four-grid,.price-list,.curriculum-grid,.works-grid,.mentor-rule,.lesson,.work-item,.asset,.evidence-grid,.story-grid,.method-grid,.endorsement){border-color:#365054 !important}
html[data-theme=dark] :is(.btn-dark,.nav-call,.dialog-close,.dialog-inner button){background:#5ed2d1 !important;color:#122222 !important;border-color:#5ed2d1 !important}
html[data-theme=dark] :is(.btn-line, .btn-lightline) {color:#ecf4f1 !important}
html[data-theme=dark] :is(.btn-line, .btn-lightline):hover {background:#25393b !important}
html[data-theme=dark] .path-card .card-link {color:#edf8f6 !important}
html[data-theme=dark] .footer,html[data-theme=dark] footer{background:#111b1e !important;border-color:#314144 !important}
html[data-theme=dark] :is(.footer-brand,.footer-links a,.footer-meta){color:#bbcfc9}
html[data-theme=dark] .chart-panel{border-color:#466363}
html[data-theme=dark] dialog{background:#162729 !important;color:#f6fafa;border-color:#416065}
html[data-theme=dark] .dialog-inner p{color:#b7cecb !important}
html[data-theme=dark] .bar-track{background:#3c5252 !important}
html[data-theme=dark] .case-figure img,html[data-theme=dark] .image-frame{background:#fff !important}
/* Dark sections are intentionally dark in both modes. */
html[data-theme=dark] :is(.ownership-section,.ownership,.mentor-section,.about:not(body),.work){background:#101a1b !important}
/* Keep hero photographic treatments as designed in dark mode. */
html[data-theme=dark] .hero:has(.hero-photo),html[data-theme=dark] .hero:has(.hero-art),html[data-theme=dark] .hero:has(.hero-visual){background:#101a1b !important}

html[data-theme=dark] :is(.foundation p,.story-body p,.hero-detail,.source .small-note,.source p,.past-grid p,.review-card span,.chart-card .chart-subtitle,.chart-card .chart-legend,.chart-card .chart-note,.profit-card .sub,.profit-card .note,.case-figure figcaption,.join .join-sub,.price-block .fine,.investment .fine,.talk-image figcaption,.about-key,.credential>strong){color:#bed0cd !important}
html[data-theme=dark] :is(.foundation .link-line,.reviews .secondary-proof a,.investment .overline,.price-block .overline){color:#80e8e1 !important}
html[data-theme=dark] .talk-image figcaption{background:#1a2c2d !important}
html[data-theme=dark] .profit-card .takeaway{color:#b5f6eb !important}

/* Interactive appearance controls, including a one-click return to Auto. */
.theme-toggle:hover {background:rgba(7,157,189,.12)}
.theme-toggle:focus-visible,.theme-auto:focus-visible {outline:2px solid #008eaf;outline-offset:3px}
.theme-auto {border:0;background:transparent;color:#077c9e;font:inherit;font-weight:700;font-size:12px;padding:8px;cursor:pointer}
.theme-auto[hidden] {display:none !important}
html[data-theme=dark] .theme-auto {color:#94edf0}
html[data-theme=dark] .theme-toggle:hover {background:#29424b}
