html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] [data-section-theme="white"],
html[data-theme="dark"] [data-section-theme="white-bold"],
html[data-theme="dark"] [data-section-theme="light"],
html[data-theme="dark"] [data-section-theme="light-bold"] {
  --paragraphSmallColor: hsla(var(--white-hsl),1);
  --paragraphLargeColor: hsla(var(--white-hsl),1);
  --portfolio-grid-overlay-title-color: hsla(var(--white-hsl),1);
  --paragraphMediumColor: hsla(var(--white-hsl),1);
  --menuOverlayNavigationLinkColor: hsla(var(--white-hsl),1);
  --tweak-portfolio-item-pagination-title-color: hsla(var(--white-hsl),1);
  --tweak-text-block-stroke-color: hsla(var(--safeLightAccent-hsl),1);
  --headingMediumColor: hsla(var(--white-hsl),1);
  --headingExtraLargeColor: hsla(var(--white-hsl),1);
  --paragraphLinkColor: hsla(var(--safeLightAccent-hsl),1);
  --siteBackgroundColor: hsla(var(--black-hsl),1);
  --secondaryButtonBackgroundColor: hsla(var(--white-hsl),1);
  --tweak-line-block-line-color: hsla(var(--white-hsl),.15);
  --headerDropShadowColor: hsla(var(--black-hsl),1);
  --primaryButtonBackgroundColor: hsla(var(--white-hsl),1);
  --shape-block-dropshadow-color: hsla(var(--white-hsl),1);
  --navigationLinkColor: hsla(var(--white-hsl),1);
  --menuOverlayButtonTextColor: hsla(var(--safeInverseLightAccent-hsl),1);
  --menuOverlayBackgroundColor: hsla(var(--black-hsl),1);
  --primaryButtonTextColor: hsla(var(--black-hsl),1);
  --headingSmallColor: hsla(var(--white-hsl),1);
  --portfolio-grid-overlay-overlay-color: hsla(var(--black-hsl),1);
  --image-block-overlay-color: hsla(var(--black-hsl),.5);
  --shape-block-background-color: hsla(var(--white-hsl),1);
  --shape-block-stroke-color: hsla(var(--safeDarkAccent-hsl),1);
  --secondaryButtonTextColor: hsla(var(--safeInverseLightAccent-hsl),1);
  --headingLargeColor: hsla(var(--white-hsl),1);
  --tweak-portfolio-item-pagination-meta-color: hsla(var(--white-hsl),1);
  --backgroundOverlayColor: hsla(var(--black-hsl),1);
  --menuOverlayButtonBackgroundColor: hsla(var(--white-hsl),1);
  --tweak-portfolio-item-pagination-icon-color: hsla(var(--white-hsl),1);
}
html[data-theme="dark"] {
  --faco-dark-bg: #0f1419;
  --faco-dark-raised: #171e26;
  --faco-dark-line: #2a3542;
  --faco-dark-text: #e3e8ee;
  --faco-dark-dim: #9aa6b2;
  background: var(--faco-dark-bg);
  color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] [data-section-theme="white"],
html[data-theme="dark"] [data-section-theme="white-bold"],
html[data-theme="dark"] [data-section-theme="light"] {
  --siteBackgroundColor: var(--faco-dark-bg);
  background-color: var(--faco-dark-bg);
}
html[data-theme="dark"] [data-section-theme="light-bold"] {
  --siteBackgroundColor: var(--faco-dark-raised);
}
html[data-theme="dark"] .header-blur-background {
  background-color: rgba(15, 20, 25, 0.6);
}
html[data-theme="dark"] .efb {
  color: var(--faco-dark-text);
}
html[data-theme="dark"] .efb-clock {
  border-bottom-color: var(--faco-dark-line);
}
html[data-theme="dark"] .efb-time-label {
  color: var(--faco-dark-dim);
}
html[data-theme="dark"] .efb-icon {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .hardware-legal-disclaimer,
html[data-theme="dark"] .sim-task-trainer-details {
  background: var(--faco-dark-raised);
  color: var(--faco-dark-text);
}
html[data-theme="dark"] .sim-task-trainer-details__eyebrow {
  color: #5aaef0;
}
html[data-theme="dark"] .sim-task-trainer-details__warning {
  color: #ff6b6b;
}
html[data-theme="dark"] .sqsrte-text-color--darkAccent {
  color: #5aaef0;
}
html[data-theme="dark"] .t38-control-card,
html[data-theme="dark"] .t6a-control-card,
html[data-theme="dark"] .hardware-model-note {
  color: var(--faco-dark-text);
}
html[data-theme="dark"] .t38-control-card h2,
html[data-theme="dark"] .t6a-control-card h2 {
  color: #5aaef0;
}
html[data-theme="dark"] .t38-control-card,
html[data-theme="dark"] .t6a-control-card {
  border-top-color: #3d8fd6;
}
html[data-theme="dark"] .hw-label {
  background: rgba(16, 24, 36, 0.94);
  border-color: rgba(90, 174, 240, 0.6);
  color: #8cc8f5;
}
html[data-theme="dark"] .t38-control-card__contact,
html[data-theme="dark"] .t6a-control-card__contact {
  background: #2b3644;
}
html[data-theme="dark"] .t38-control-card__contact:hover,
html[data-theme="dark"] .t38-control-card__contact:focus-visible,
html[data-theme="dark"] .t6a-control-card__contact:hover,
html[data-theme="dark"] .t6a-control-card__contact:focus-visible {
  background: #3d4b5c;
}
html[data-theme="dark"] .f15c-product {
  background: var(--faco-dark-bg);
  color: var(--faco-dark-text);
}
html[data-theme="dark"] .f15c-product__details {
  background: var(--faco-dark-raised);
}
html[data-theme="dark"] .f15c-product__hero {
  background: #0a0d11;
}
html[data-theme="dark"] .f15c-product__eyebrow,
html[data-theme="dark"] .f15c-product__intro a {
  color: #5aaef0;
}
html[data-theme="dark"] .f15c-product__intro a:hover,
html[data-theme="dark"] .f15c-product__intro a:focus-visible {
  color: #8cc8f5;
}
html[data-theme="dark"] .contact-page {
  color: var(--faco-dark-text);
}
html[data-theme="dark"] body:has(.contact-page) {
  background: var(--faco-dark-bg);
  color: var(--faco-dark-text);
}
html[data-theme="dark"] .contact-page form {
  background: var(--faco-dark-raised);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .contact-page h1 {
  background: #0a0d11;
}
html[data-theme="dark"] .contact-page input,
html[data-theme="dark"] .contact-page textarea {
  color: var(--faco-dark-text);
  border-bottom-color: #6b7785;
}
html[data-theme="dark"] .contact-page button[type="submit"] {
  background: #2b3644;
  border-color: #3d4b5c;
  box-shadow: none;
}
html[data-theme="dark"] .contact-page button[type="submit"]:hover {
  background: linear-gradient(to bottom, #2b3644 5%, #4a5a6e 100%);
}
html[data-theme="dark"] .contact-page a {
  color: var(--faco-dark-text);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background-color 0.15s;
}
.theme-toggle:hover {
  opacity: 1;
  background-color: rgba(127, 127, 127, 0.15);
}
.theme-toggle:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .theme-icon-moon {
  fill: currentColor;
  stroke: none;
}
.theme-toggle .theme-icon-sun circle {
  fill: currentColor;
  stroke: none;
}
.theme-toggle .theme-icon-sun,
html[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: block;
}
.theme-toggle--header {
  color: var(--navigationLinkColor, currentColor);
  border-color: transparent;
}
.theme-toggle--header + .header-actions-action--cta {
  margin-left: 10px;
}
.header-display-mobile {
  position: relative;
}
.theme-toggle--mobile {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.theme-toggle--floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  color: #272727;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
html[data-theme="dark"] .theme-toggle--floating {
  color: var(--faco-dark-text);
  background: var(--faco-dark-raised);
  border-color: var(--faco-dark-line);
}
