/* Candidate 5 only. This sheet loads after the shared brand lettering. */
.closing-bottom { flex-wrap: wrap; align-items: center; gap: 24px; }
.closing-bottom .footer-brand { margin-right: auto; }
.footer-appearance { display: flex; align-items: center; gap: 8px; }
.footer-appearance[hidden] { display: none; }
.closing-bottom .footer-appearance .theme-label { color: inherit; font: 500 10px Manrope,Arial,sans-serif; letter-spacing: 0; }
.theme-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid #20382d40; border-radius: 100px; background: #ffffff24; }
.theme-switch button { display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 28px; padding: 5px 8px; border-radius: 100px; background: transparent; color: #20382d; font-size: 10px; line-height: 1.4; font-weight: 550; }
.theme-switch button:hover { background: #ffffff42; }
.theme-switch button[aria-pressed=true] { color: #20382d; background: #fff; box-shadow: 0 2px 8px #20382d1f; }
.theme-switch svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.closing-bottom .footer-note { font-size: 10px; }
.candidate-five-details .intro-foot { font-size: 14px; line-height: 1.5; }
.candidate-five-details .hero-bottom { gap: 18px; }
.candidate-five-details .hero-bottom > span { font-size: 14px; line-height: 1.5; }
/* Above the footer surface (6), below rays (8), content (9) and middle sections (10). */
.candidate-five-details .solar-wheel { z-index: 7; }

:root[data-theme=dark] {
  color-scheme: dark;
  --night: #0b1713;
  --night-raised: #141517;
  --night-card: #1b3328;
  --night-line: #365244;
  --night-text: #eff4ea;
  --night-muted: #b6c7ba;
  --night-soft: #a0b7a7;
  --ink: #eff4ea;
  --paper: #0b1713;
  --line: #365244;
  scrollbar-color: #557c64 #0b1713;
}
:root[data-theme=dark] body { background: var(--night); color: var(--night-text); }
:root[data-theme=dark] :is(button,a,select):focus-visible { outline-color: #ffc733; }
:root[data-theme=dark] ::selection { background: #ffc733; color: #14251c; }
:root[data-theme=dark] .header { background: #0b1713f2; border-bottom-color: #b6d4b923; }
:root[data-theme=dark] .wordmark { color: var(--night-text); }
:root[data-theme=dark] .nav-link { color: var(--night-muted); }
:root[data-theme=dark] .nav-link:hover { color: #fff; }
:root[data-theme=dark] .scene-backdrop { background: #11231e; }
:root[data-theme=dark] .scene-shade { background: linear-gradient(180deg,#07181070,#081b147a); }
:root[data-theme=dark] .solar-intro::before { background: linear-gradient(90deg,#081510fc 0%,#081510f0 28%,#081510c9 47%,#08151058 68%,#08151008 100%); }
:root[data-theme=dark] .solar-hero h1 { color: var(--night-text); }
:root[data-theme=dark] .solar-hero h1 em { color: #ffd057; text-shadow: 0 3px 28px #ffbc3220; }
:root[data-theme=dark] .solar-hero .hero-copy .eyebrow { color: #cfdfd0; }
:root[data-theme=dark] .solar-hero .hero-copy p { color: #c4d5c7; }
:root[data-theme=dark] .solar-wheel { opacity: .48; filter: drop-shadow(0 5px 12px #0005); }
:root[data-theme=dark] .corona-layer canvas { opacity: .48; }
:root[data-theme=dark] .hero-screens-link { color: #d2e5d4; border-color: #c7e0cc65; }
:root[data-theme=dark] .hero-screens-link:hover { color: #fff; border-color: #fff; }
:root[data-theme=dark] .intro-foot { color: #c1d1c3; border-color: #c7e0cc33; }
:root[data-theme=dark] .intro-foot a { color: #e3eee1; }
:root[data-theme=dark] :is(.hero-product,.workspace-panel,.source-dialog,.screen-dialog,.workspace-demo-dialog) {
  --night-line: #36373a;
  --night-text: #f2f0eb;
  --night-muted: #c1bfba;
  --night-soft: #aaa8a3;
}
:root[data-theme=dark] .hero-product { background: var(--night-raised); border-color: var(--night-line); box-shadow: 0 24px 80px -24px #0009; }
:root[data-theme=dark] .hero-product .workspace-panel { box-shadow: 0 24px 55px -16px #000a; }
:root[data-theme=dark] :is(.product-preview-label .eyebrow,.product-preview-label p,.preview-footnote) { color: var(--night-muted); }
:root[data-theme=dark] .hero-product .demo-launchpad { background: linear-gradient(0deg,#090a0cfa,transparent 62%); }
:root[data-theme=dark] .hero-product .demo-launch-card { background: #101113; border-color: #3e3e40; box-shadow: 0 14px 35px #0009; }
:root[data-theme=dark] .hero-product .demo-launch-card p { color: #c5c2bc; }
:root[data-theme=dark] .motion-toggle { color: #e1ecdf; background: #10231ce8; border-color: #6c8b75; }
:root[data-theme=dark] .motion-toggle:hover { background: #203f30; }

/* Shared selectors also cover the workspace after it moves into its dialog. */
:root[data-theme=dark] :is(.workspace-panel,.source-dialog) {
  --context-rgb: 230,194,132 !important;
  --line: #36373a;
  color-scheme: dark;
  color: var(--night-text);
  background: var(--night-raised);
  border-color: var(--night-line);
}
:root[data-theme=dark] .workspace-panel .window-bar { background: #1c1d20; border-bottom-color: var(--night-line); }
:root[data-theme=dark] :is(.window-brand,.window-brand span.brand-name-solar) { color: var(--night-text); }
:root[data-theme=dark] .avatar { color: #ead4af; background: #3b352b; }
:root[data-theme=dark] .sidebar { background: #101113; border-color: var(--night-line); }
:root[data-theme=dark] .workspace-panel :is(.sidebar-label,.sidebar-label span,.context-button small,.workspace-tabs>span,.situation-block>span,.view-intro,.source-row-title small,.answer-status) { color: var(--night-soft); }
:root[data-theme=dark] .context-button { color: var(--night-muted); }
:root[data-theme=dark] .context-button:hover { background: #252629; }
:root[data-theme=dark] .context-button.selected { background: #303134; color: #f3efe7; border-color: #505052; box-shadow: 0 3px 12px #0002; }
:root[data-theme=dark] .context-icon { color: #e0c898; background: #3b372f; border-color: #635744; }
:root[data-theme=dark] .sidebar-bottom { color: #b6b1a7; }
:root[data-theme=dark] .mini-orbit { border-color: #82755f; }
:root[data-theme=dark] .workspace-content { scrollbar-color: #686766 var(--night-raised); }
:root[data-theme=dark] .content-label { color: #dfc58e; }
:root[data-theme=dark] .context-heading h3 { color: var(--night-text); }
:root[data-theme=dark] .context-emblem span { background: #dfc58e12; border-color: #dfc58e88; }
:root[data-theme=dark] .workspace-tabs button { color: var(--night-muted); }
:root[data-theme=dark] .workspace-tabs button[aria-selected=true] { color: #edcd91; }
:root[data-theme=dark] .next-step { background: #272625; border-color: #4e483e; }
:root[data-theme=dark] :is(.step-heading>span,.is-selected .step-heading>span) { color: #ddc494; }
:root[data-theme=dark] .step-heading button { color: #e7d4ae; background: #19191a; border-color: #796849; }
:root[data-theme=dark] .step-heading button:hover { background: #3c352a; }
:root[data-theme=dark] .next-step h4 { color: #f2eee6; }
:root[data-theme=dark] #step-basis { color: #c6bdab; }
:root[data-theme=dark] .source-ref { color: #e0c694; background: #1a1917; border-color: #645640; }
:root[data-theme=dark] .source-ref:hover { background: #393226; border-color: #b49a6a; }
:root[data-theme=dark] .situation-block p { color: #d7d2c8; }
:root[data-theme=dark] .thought-card { background: #332e1b; border-color: #615330; }
:root[data-theme=dark] :is(.thought-label,.thought-label>span) { color: #e0c88d; }
:root[data-theme=dark] .thought-card p { color: #f4e6bc; }
:root[data-theme=dark] #quick-answer { color: #cebf96; }
:root[data-theme=dark] .context-question-link { color: #edd08e; border-color: #6a593b; }
:root[data-theme=dark] .source-row:hover { background: #2b2925; }
:root[data-theme=dark] :is(.source-index,.source-row-title) { color: #e4ddcf; }
:root[data-theme=dark] .source-row>span:last-child { color: #d4c7ac; }
:root[data-theme=dark] .question-list button { color: #d5cfc3; background: #1b1b1c; border-color: #625747; }
:root[data-theme=dark] .question-list button[aria-pressed=true] { color: #f4e5c4; background: #40372a; border-color: #a58c60; }
:root[data-theme=dark] .answer-card { background: #272523; }
:root[data-theme=dark] .answer-card p { color: #dfd6c6; }

:root[data-theme=dark] .space-section { color: var(--night-text); background: var(--night); border-color: var(--night-line); }
:root[data-theme=dark] :is(.space-section .eyebrow,.space-section p,.space-index,.space-choice small) { color: var(--night-muted); }
:root[data-theme=dark] .candidate-five-details .space-choice { --space-fill: #204631; color: var(--night-text); background: var(--night); border-top-color: var(--night-line); }
:root[data-theme=dark] .candidate-five-details .space-choice:nth-child(2) { --space-fill: #3b421d; }
:root[data-theme=dark] .candidate-five-details .space-choice:nth-child(3) { --space-fill: #4a321e; border-bottom-color: var(--night-line); }
:root[data-theme=dark] .candidate-five-details .space-choice:is(:hover,:focus-visible) { background: var(--night); }
:root[data-theme=dark] .screen-tour { --section-surface: #10271d; }
:root[data-theme=dark] .screen-image-button { border-color: #a8c4ad40; box-shadow: 0 25px 65px -10px #000b; }
:root[data-theme=dark] .screen-tab-arrow { color: currentColor; }
:root[data-theme=dark] .product-story { --section-surface: var(--night); color: var(--night-text); }
:root[data-theme=dark] .product-story .eyebrow { color: var(--night-soft); }
:root[data-theme=dark] .story-heading h2 em { color: #ffb768; }
:root[data-theme=dark] :is(.story-heading>p,.story-row p,.local-note p) { color: var(--night-muted); }
:root[data-theme=dark] :is(.story-rows,.story-row,.local-note) { border-color: var(--night-line); }
:root[data-theme=dark] .story-row h3 { color: var(--night-text); }
:root[data-theme=dark] .story-number { color: #cdeab3; background: #2c4629; }
:root[data-theme=dark] .story-row:nth-child(2) .story-number { color: #e4e597; background: #3b411e; }
:root[data-theme=dark] .story-row:nth-child(3) .story-number { color: #ffd097; background: #4d341f; }
:root[data-theme=dark] :is(.story-detail,.local-note>span) { color: var(--night-soft); }

:root[data-theme=dark] .closing {
  --section-surface: radial-gradient(ellipse at 100% 100%,#5b402a30 0,transparent 65%),#0d0e11;
  color: var(--night-text);
}
:root[data-theme=dark] .closing :is(.eyebrow,.text-button) { color: #d2cec5; }
:root[data-theme=dark] .closing .text-button:hover { color: #fff; }
:root[data-theme=dark] .closing h2 { color: #eef4e6; }
:root[data-theme=dark] .closing h2 em { color: #ffca61; }
:root[data-theme=dark] .closing-cta { color: #172d20; background: #ffad50; }
:root[data-theme=dark] .closing-cta:hover { background: #ffc475; }
:root[data-theme=dark] .closing-bottom { color: #beb8ad; border-color: #c8bba536; }
:root[data-theme=dark] .closing-bottom .footer-brand { color: #edf5e7; }
:root[data-theme=dark] .footer-star::before { opacity: .45; }
:root[data-theme=dark] .theme-switch { border-color: #5a554c; background: #090a0c70; }
:root[data-theme=dark] .theme-switch button { color: #e0dacf; }
:root[data-theme=dark] .theme-switch button:hover { background: #ffffff12; }
:root[data-theme=dark] .theme-switch button[aria-pressed=true] { color: #172d20; background: #ffc46b; box-shadow: 0 2px 10px #0004; }

:root[data-theme=dark] :is(.source-dialog,.screen-dialog,.workspace-demo-dialog) { color: var(--night-text); background: var(--night-raised); border-color: #57534c; box-shadow: 0 30px 100px #000a; }
:root[data-theme=dark] :is(.source-dialog,.screen-dialog,.workspace-demo-dialog)::backdrop { background: #030405d9; }
:root[data-theme=dark] :is(.source-dialog h3,.screen-dialog h3,.demo-dialog-bar h2) { color: var(--night-text); }
:root[data-theme=dark] :is(.dialog-close,.screen-dialog-bar button) { color: #e9e1d2; background: #34312b; border-color: #6b6050; }
:root[data-theme=dark] :is(.source-toolbar,.source-demo-note,.line-number,.screen-dialog-bar>a,.screen-dialog>p,.demo-dialog-bar p) { color: var(--night-muted); }
:root[data-theme=dark] .source-toolbar select { color: #eee5d5; background: #23211e; border-color: #796747; }
:root[data-theme=dark] .source-lines li { color: #d9d1c2; }
:root[data-theme=dark] .source-lines .cited-line { background: #3c3223; color: #f3e5ca; border-color: #dcc38e; }
:root[data-theme=dark] .demo-continue { background: #ffb361; color: #172d20; }
:root[data-theme=dark] .demo-continue:hover { background: #ffc982; }
:root[data-theme=dark] .noscript-note { color: #dfebd7; background: #1b3726; }

@media(max-width:760px) {
  .candidate-five-details .intro-foot { font-size: 13px; }
  .candidate-five-details .intro-foot > span { max-width: none; }
  .candidate-five-details .hero-bottom > span { font-size: 13px; }
  .footer-appearance { width: 100%; justify-content: space-between; }
  .closing-bottom .footer-note { width: 100%; }
  :root[data-theme=dark] .solar-intro::before { background: linear-gradient(90deg,#081510f7 0%,#081510e0 45%,#0815109e 75%,#08151055 100%); }
  :root[data-theme=dark] .solar-wheel { opacity: .32; }
  :root[data-theme=dark] .corona-layer canvas { opacity: .35; }
}
