/* Public appearance. The shared Cork preference is applied before first paint. */
:root {
  --site-surface: #fff;
  --site-raised: #f3f7fb;
  color-scheme: light;
}
.site-header-tools { display: flex; align-items: center; gap: 12px; order: 3; flex-shrink: 0; }
.site-nav { gap: 22px; }
.site-navigation { gap: 20px; width: auto; flex: 1; }
.site-nav-actions { gap: 18px; margin-left: 0; }
.site-theme-control { display: flex; align-items: center; margin: 0; position: relative; }
.site-theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-theme-control select {
  min-height: 44px; width: 98px; padding: 10px 10px 10px 13px;
  border: 1px solid var(--site-line); border-radius: 24px;
  color: var(--site-ink); background-color: var(--site-surface);
  font-size: 12px; font-weight: 550; cursor: pointer;
}
.site-theme-control select:hover { border-color: var(--site-blue); }
.site-theme-control select:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 3px; }
.site-menu-toggle { color: var(--site-ink); }
.lead-public-actions { display: flex; align-items: center; gap: 20px; }
.lead-public-nav .site-brand-crop { width: 149px; }
@media (min-width: 1021px) and (max-width: 1250px) {
  .site-nav { gap: 16px; }
  .site-navigation { gap: 15px; }
  .site-nav-actions { gap: 14px; }
  .site-nav .site-brand-crop { width: 142px; }
  .site-nav .site-button-small { padding-inline: 15px; }
  .site-theme-control select { width: 88px; padding-left: 10px; }
}
@media (max-width: 1020px) {
  .site-nav { gap: 0; }
  .site-nav > .site-brand { min-height: 76px; }
  .site-header-tools { order: 1; margin-left: auto; }
  .site-navigation { order: 2; flex: 0 0 100%; width: 100%; gap: 0; }
}
@media (max-width: 600px) {
  .site-header-tools { gap: 9px; }
  .site-nav .site-brand-crop { width: 137px; }
  .site-theme-control select { width: 90px; }
  .lead-public-actions { gap: 12px; }
  .lead-public-nav .container { flex-wrap: wrap; gap: 12px; }
  .lead-public-actions { margin-left: auto; }
}
@media (max-width: 360px) {
  .site-nav .site-brand-crop { width: 111px; }
  .site-header-tools { gap: 7px; }
  .site-theme-control select { width: 83px; padding-left: 9px; }
  .lead-public-nav .site-brand-crop { width: 125px; }
  .lead-public-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Screen-only palettes keep preparation guides and printed pages on white paper. */
@media screen {
  [data-bs-theme="dark"] {
    color-scheme: dark;
    --site-ink: #e5edf6;
    --site-text: #bac8db;
    --site-muted: #a7b6c9;
    --site-blue: #85b9ff;
    --site-blue-dark: #a4cdff;
    --site-line: #34465d;
    --site-pale: #142238;
    --site-surface: #17263b;
    --site-raised: #203754;
    --ol-muted: #a7b6c9;
    --ol-paper: #142238;
    --ol-night: #0b2037;
    --ol-border: #34465d;
    --bs-body-bg: #0e1726;
    --bs-body-color: #e9f0fa;
  }
  [data-bs-theme="dark"] .orbitlend-public { background: #0e1726; }
  [data-bs-theme="dark"] .site-header { background: #0e1726ed; border-color: var(--site-line); }
  [data-bs-theme="dark"] :is(.site-skip, .site-card, .site-workspace, .ol-capability, .preparation-studio, .editorial-connection) {
    background: var(--site-surface); border-color: var(--site-line); box-shadow: 0 20px 55px #020a1526;
  }
  [data-bs-theme="dark"] :is(.site-footer, .site-platform, .editorial-guide-nav) { background: #0e1726; }
  [data-bs-theme="dark"] :is(.site-vision, .ol-future, .editorial-pale, .ol-preparation-section) { background: #122035; }
  [data-bs-theme="dark"] :is(.site-hero, .editorial-hero) { background: linear-gradient(125deg, #101c2e, #192e4b); }
  [data-bs-theme="dark"] .ol-hero { background: #111e31; }
  [data-bs-theme="dark"] .ol-hero-glow { background: radial-gradient(ellipse at 95% 30%, #23477380, transparent 54%), linear-gradient(130deg, #0e1726 4%, #152741 85%); }
  [data-bs-theme="dark"] .ol-portrait { background: #20344c; }
  [data-bs-theme="dark"] .ol-hero-record { background: #17263bf5; border-color: #476080; box-shadow: 0 22px 55px #020a1566; }
  [data-bs-theme="dark"] .ol-floating-chip { background: #132943; border-color: #4b6685; }
  [data-bs-theme="dark"] :is(.ol-record-symbol, .site-icon, .ol-journey-icon, .preparation-studio-mark, .site-workflow-dot, .editorial-connection>div>span) {
    background: #233d5e; color: var(--site-blue); border-color: #3c5778;
  }
  [data-bs-theme="dark"] :is(.ol-record-pills>span, .site-status, .site-planned, .ol-inline-list>li) { background: var(--site-raised); color: #c5d7ed; border-color: var(--site-line); }
  [data-bs-theme="dark"] .ol-record-pills svg { color: #8cdbc0; }
  [data-bs-theme="dark"] :is(.ol-hero-copy>p, .ol-value-strip span, .ol-goal-copy>p, .ol-journey-track p, .ol-preparation-layout>div>p, .ol-future .site-section-heading>p, .ol-future-grid p, .ol-capability-heading p, .ol-capability p, .editorial-guide-intro) { color: var(--site-text); }
  [data-bs-theme="dark"] :is(.ol-soft-text, .ol-hero-assurance, .ol-record-top div>span, .ol-motion-control, .ol-hero-foot, .site-hero-sideword, .site-goal-tabs>a, .site-goal-tabs>a>span, .ol-visual-label, .ol-opportunity-card>span, .ol-opportunity-card>small, .ol-visual-points>span, .ol-journey-track article>span, .ol-journey-note, .ol-preparation-caption, .ol-future-title>span, .ol-future-foot>span, .site-footer-disclosure, .ol-capability summary small) { color: var(--site-muted); }
  [data-bs-theme="dark"] :is(.ol-hero-record>a, .ol-hero-foot>a>span, .ol-value-strip svg, .ol-journey-track a, .ol-preparation-layout>div>.site-text-link, .ol-future-foot>a, .ol-capability summary:after, .editorial-index, .editorial-link-list svg, .editorial-flow li:not(:last-child):after) { color: var(--site-blue); }
  [data-bs-theme="dark"] :is(.ol-record-pills, .ol-hero-foot, .ol-value-strip, .ol-value-strip span+span, .site-principles, .site-workspace-top, .site-workflow li, .site-workspace-icon, .site-vision-grid article, .ol-journey-note, .ol-future-foot, .ol-capability-belt, .site-navigation>a, .editorial-principles article, .editorial-link-list, .editorial-link-list a, .editorial-workflows, .editorial-workflows>article, .editorial-guide-nav, .editorial-comparison>div, .editorial-definition-list>div) { border-color: var(--site-line); }
  [data-bs-theme="dark"] .ol-play-link>span { border-color: #58718e; }
  [data-bs-theme="dark"] .ol-journey-track article:not(:last-child):before { border-color: #45617e; }
  [data-bs-theme="dark"] .ol-goal-panel { background: var(--site-surface); border-color: var(--site-line); }
  [data-bs-theme="dark"] .site-goal-tabs>a:hover,
  [data-bs-theme="dark"] .site-goal-tabs>a[aria-selected="true"] { color: var(--site-blue); border-bottom-color: var(--site-blue); }
  [data-bs-theme="dark"] .ol-goal-visual { background: #213853; }
  [data-bs-theme="dark"] .ol-life-visual { background: #3a302c; }
  [data-bs-theme="dark"] .ol-learning-visual { background: #302e4c; }
  [data-bs-theme="dark"] .ol-agriculture-visual { background: #203c36; }
  [data-bs-theme="dark"] .ol-opportunity-card { background: #192b41f5; border-color: #51647b; box-shadow: 0 25px 50px #030b1833; }
  [data-bs-theme="dark"] .ol-growth-bars { border-color: var(--site-line); }
  [data-bs-theme="dark"] .ol-growth-bars i { background: #497bb4; }
  [data-bs-theme="dark"] .ol-growth-bars i:nth-child(6) { background: #6faaf1; }
  [data-bs-theme="dark"] .ol-growth-bars i:nth-child(7) { background: #93c5ff; }
  [data-bs-theme="dark"] .ol-season-track i { border-color: #203c36; background: #8dcaaf; }

  /* Dark sections retain depth; the example account follows the chosen theme. */
  [data-bs-theme="dark"] :is(.site-journey, .site-hero-label, .editorial-dark, .editorial-manifesto) { background: #0b2037; color: #e9f0fa; }
  [data-bs-theme="dark"] .ol-experience-feature { background: #173149; border-color: #3b536a; }
  [data-bs-theme="dark"] .ol-signing-card { background: #19344f; }
  [data-bs-theme="dark"] .ol-records-card { background: #1a3546; }
  [data-bs-theme="dark"] .ol-account-preview { background: #142238; border-color: #52657d; }
  [data-bs-theme="dark"] :is(.ol-preview-top, .ol-preview-item) { border-color: var(--site-line); }
  [data-bs-theme="dark"] :is(.ol-preview-top .site-example-tag, .ol-preview-kicker, .ol-preview-item small, .ol-preview-nav, .ol-preview-item>span:last-child) { color: var(--site-muted); }
  [data-bs-theme="dark"] .ol-preview-item>svg { color: var(--site-blue); }
  [data-bs-theme="dark"] :is(.ol-signature-art, .ol-receipt-front) { background: #263f58; color: #96c8ff; }
  [data-bs-theme="dark"] :is(.ol-signature-art>span, .ol-receipt-front>span) { color: #c2d1e2; }
  [data-bs-theme="dark"] :is(.ol-signature-art>div, .ol-receipt-front>i) { background: #59718a; }
  [data-bs-theme="dark"] .ol-signature-art>i { background: #214c44; color: #9ee9ce; border-color: #263f58; }
  [data-bs-theme="dark"] .ol-receipt-front>b { color: #9ee9ce; }
  [data-bs-theme="dark"] .ol-receipt-back { background: #55738a; }
  [data-bs-theme="dark"] .site-platform-panels { background: linear-gradient(135deg, #1a304b, #122239); border-color: var(--site-line); }
  [data-bs-theme="dark"] .site-platform-tab:hover,
  [data-bs-theme="dark"] .site-platform-tab[aria-selected="true"] { background: #203753; border-color: #48698f; }
  [data-bs-theme="dark"] .site-purpose:hover { background: var(--site-surface); border-color: #6e9ccd; }
  [data-bs-theme="dark"] .ol-future-art { background: #223953; }
  [data-bs-theme="dark"] .ol-plan-art>span { background: #527eaf; }
  [data-bs-theme="dark"] .ol-plan-art>span:nth-child(3) { background: #6e9fde; }
  [data-bs-theme="dark"] .ol-plan-art>span:nth-child(4) { background: #85b9ff; }
  [data-bs-theme="dark"] .ol-plan-art>i { border-color: #567193; }
  [data-bs-theme="dark"] .ol-passport-art { background: #30324d; }
  [data-bs-theme="dark"] .ol-passport-art>div { background: #24374e; border-color: #65718f; }
  [data-bs-theme="dark"] .ol-passport-art svg { color: #b5c6f4; }
  [data-bs-theme="dark"] .ol-passport-art i { background: #687c9e; }
  [data-bs-theme="dark"] .ol-passport-art i:last-child { background: #9aafd2; }
  [data-bs-theme="dark"] .ol-support-art { background: #203d37; }
  [data-bs-theme="dark"] .ol-support-art>div { background: #294b43; color: #b0e2d2; }
  [data-bs-theme="dark"] .ol-support-art>div:last-child { background: #497f70; color: #fff; }

  /* Supporting pages, checklists, and the public enquiry form. */
  [data-bs-theme="dark"] :is(.editorial-record-stack article, .editorial-flow li, .editorial-checklist) { background: var(--site-surface); border-color: var(--site-line); }
  [data-bs-theme="dark"] .editorial-connection>div+div:before { background: #55718f; }
  [data-bs-theme="dark"] :is(.editorial-link-list small, .editorial-connection>.editorial-label, .editorial-flow span, .site-prose .editorial-inline-note, .editorial-guide-nav a>span, .editorial-guide .site-prose .editorial-source, .editorial-checklist label small) { color: var(--site-muted); }
  [data-bs-theme="dark"] .editorial-guide-nav a:hover { color: var(--site-blue); background: var(--site-surface); }
  [data-bs-theme="dark"] .editorial-question { background: #203753; border-color: var(--site-blue); }
  [data-bs-theme="dark"] .editorial-question>span { color: var(--site-blue); }
  [data-bs-theme="dark"] :is(.editorial-question p, .editorial-comparison strong, .editorial-definition-list dt, .editorial-checklist label strong) { color: var(--site-ink); }
  [data-bs-theme="dark"] :is(.editorial-checklist label, .editorial-checklist-status) { border-color: var(--site-line); }
  [data-bs-theme="dark"] .editorial-checklist label:has(input:checked) strong,
  [data-bs-theme="dark"] .editorial-checklist-status { color: #a6cdff; }
  [data-bs-theme="dark"] .preparation-studio-item:hover { background: var(--site-raised); }
  [data-bs-theme="dark"] .preparation-studio-track { background: #3a506c; }
  [data-bs-theme="dark"] :is(.lead-public-nav, .lead-public-footer) { background: #0e1726; border-color: var(--site-line); }
  [data-bs-theme="dark"] .lead-intake { --lead-surface: #17263b; --lead-subtle: #111e31; --lead-border: #34465e; --lead-text: #e9f0fa; --lead-muted: #bac8db; --lead-soft: #203753; }

  /* Text links and filled buttons use separate contrast values. */
  [data-bs-theme="dark"] .orbitlend-public .site-button-primary { background: #1767cf; border-color: #528ee0; color: #fff; }
  [data-bs-theme="dark"] .orbitlend-public .site-button-primary:hover { background: #1057b7; border-color: #85b9ff; }
  [data-bs-theme="dark"] .site-button-secondary { background: var(--site-surface); border-color: #526984; }
  [data-bs-theme="dark"] .site-button-secondary:hover { background: var(--site-raised); }
  [data-bs-theme="dark"] .site-button-white { color: #142d49 !important; background: #f0f6ff; }
  [data-bs-theme="dark"] .site-button-white:hover { background: #d9eaff; }
  [data-bs-theme="dark"] :is(.ol-contact, .site-contact-box, .editorial-resource-cover) { background: #104da3; }
  [data-bs-theme="dark"] .ol-contact :focus-visible { outline-color: #fff; }
}
@media print {
  .site-header-tools, .site-theme-control { display: none !important; }
  html { color-scheme: light; }
  .orbitlend-public .site-brand-crop .site-logo-light { display: block; }
  .orbitlend-public .site-brand-crop .site-logo-dark { display: none; }
  html[data-bs-theme="dark"] .orbitlend-public .lead-intake {
    --lead-surface: #fff; --lead-subtle: #fff; --lead-border: #c6ccd5;
    --lead-text: #142d49; --lead-muted: #42536a; --lead-primary: #135dbd;
    --lead-soft: #edf3ff; --lead-danger: #b12d42; --lead-error-bg: #fff3f4;
    --lead-success: #087847;
  }
  .orbitlend-public :is(.lead-public-nav, .lead-public-footer) { background: #fff; color: #142d49; }
  .orbitlend-public .lead-home-link { color: #142d49; }
}
