:root {
  color-scheme: light;
  --us-theme-canvas: #F4F0E9;
  --us-theme-surface: #FBF8F2;
  --us-theme-ink: #171A17;
  --us-theme-muted: #68645D;
  --us-theme-line: #D7D0C5;
}
html {
  background-color: var(--us-theme-canvas);
  overscroll-behavior-y: none;
}
body {
  min-height: 100vh;
}
html[data-us-theme="dark"] {
  color-scheme: dark;
  --us-theme-canvas: #111411;
  --us-theme-surface: #1B201B;
  --us-theme-ink: #F5F0E8;
  --us-theme-muted: #C9C1B5;
  --us-theme-line: #41483F;
  --us-canvas: #111411;
  --us-surface: #1B201B;
  --us-ink: #F5F0E8;
  --us-muted: #C9C1B5;
  --us-line: #41483F;
  --e-gv-f8e4aa5: #111411;
  --e-gv-d926f77: #1B201B;
  --e-gv-207916e: #F5F0E8;
  --e-gv-0a6f7e4: #C9C1B5;
  --e-gv-6120e88: #41483F;
}
html[data-us-theme="dark"] body,
html[data-us-theme="dark"] .e-g-244b4fd,
html[data-us-theme="dark"] .e-g-f8fdb96 {
  color: #F5F0E8;
  background-color: #111411;
}
html[data-us-theme="dark"] .e-g-fc2a042,
html[data-us-theme="dark"] .us-section:not(.us-section-dark) {
  background-color: #1B201B;
}
html[data-us-theme="dark"] :where(.us-section,.us-section-dark) :where(h1,h2,h3,h4) {
  color: #F5F0E8;
}
html[data-us-theme="dark"] :where(.us-section,.us-section-dark) p:not(.us-button):not(.us-button-ghost) {
  color: #C9C1B5;
}
html[data-us-theme="dark"] .e-g-b69d17e,
html[data-us-theme="dark"] .e-g-70424f2 {
  color: #C9C1B5;
}
html[data-us-theme="dark"] .e-g-cfe60a7,
html[data-us-theme="dark"] .e-g-dd3274a,
html[data-us-theme="dark"] .us-theme-toggle {
  color: #F5F0E8;
  border-color: #41483F;
}
html[data-us-theme="dark"] .e-g-62a1f88 {
  color: #2B2A25;
}
html[data-us-theme="dark"] .us-button-ghost {
  color: #F5F0E8;
  border-color: #D6AD79;
}
html[data-us-theme="dark"] .us-button-ghost:hover {
  color: #171A17;
  background-color: #F5F0E8;
}

/* Global dark-mode legibility layer. */
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :where(h1,h2,h3,h4,h5,h6,.elementor-heading-title) {
  color: #F5F0E8 !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :where(p,li,label,.e-form-label-base,.ffc_question,.ff_conv_input) {
  color: #C9C1B5 !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) .us-kicker {
  color: #D6AD79 !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :where(input,textarea,select) {
  color: #171A17 !important;
  background-color: #FBF8F2 !important;
  border-color: #8F877B !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :where(input,textarea)::placeholder {
  color: #68645D !important;
  opacity: 1;
}


/* Explicit light-paper panels: stable selectors avoid transition-timing errors. */
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :is(
  .elementor-element-7fcc20bc,
  .elementor-element-27ca3d0b,
  .elementor-element-68afb4a4,
  .elementor-element-6ef8632a,
  .elementor-element-22d22ef1,
  .elementor-element-b9e962f,
  .elementor-element-2a173174,
  .elementor-element-5f86850d,
  .elementor-element-3adad562,
  .elementor-element-691c4fdd,
  .elementor-element-1d41a58,
  .elementor-element-73083723,
  .elementor-element-f5717e,
  .elementor-element-6f94d194,
  .elementor-element-66826aef,
  .elementor-element-320859ef,
  .elementor-element-62956c4f,
  .elementor-element-17dd6e3f,
  .elementor-element-642b5335,
  .elementor-element-2f5255c1
) :where(h1,h2,h3,h4,h5,h6,p,span,li,label,strong,a,.elementor-heading-title,.e-paragraph-base) {
  color: #2B2A25 !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :is(
  .e-54bc861e-be30,
  .e-489eecad-764b,
  .e-1ebeb2f2-5a82
),
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :is(
  .e-54bc861e-be30,
  .e-489eecad-764b,
  .e-1ebeb2f2-5a82
) * {
  color: #2B2A25 !important;
}
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :is(
  .e-13f83a99-2a36,
  .e-7f8a1a53-1117,
  .e-233a82d8-db33
) {
  color: #111411 !important;
}


/* Legal pages use dark ink on their paper reading panels. */
html[data-us-theme="dark"] :is(
  [data-elementor-id="1416"],
  [data-elementor-id="1417"],
  [data-elementor-id="1418"]
) :where(h1,h2,h3,h4,h5,h6,p,span,li,label,strong,a,.elementor-heading-title,.e-paragraph-base) {
  color: #2B2A25 !important;
}
html[data-us-theme="dark"] :is(
  .elementor-element-34296a2,
  .elementor-element-57bae2dc,
  .elementor-element-794b656f
) :where(h1,h2,h3,h4,h5,h6,.elementor-heading-title) {
  color: #F5F0E8 !important;
}
html[data-us-theme="dark"] :is(
  .elementor-element-34296a2,
  .elementor-element-57bae2dc,
  .elementor-element-794b656f
) :where(p,.e-paragraph-base) {
  color: #C9C1B5 !important;
}
html[data-us-theme="dark"] :is(
  .elementor-element-34296a2,
  .elementor-element-57bae2dc,
  .elementor-element-794b656f
) span {
  color: #D6AD79 !important;
}
html[data-us-theme="dark"] :is(
  .elementor-element-16be6f0b,
  .elementor-element-177ccf65,
  .elementor-element-6b4c8868
) :where(p,span,.e-paragraph-base) {
  color: #2B2A25 !important;
}


/* Responsive contrast exceptions verified at the mobile breakpoint. */
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) :is(
  .e-32ef9e55-39e3,
  .e-75c3f5bc-1e99,
  .e-120295ca-46c5,
  .e-466d1329-f70b,
  .e-1987ca4-3989
) {
  color: #D6AD79 !important;
}
html[data-us-theme="dark"] [data-elementor-id="1315"] :is(
  .e-4832d2d6-872a,
  .e-1f7835f3-dc6d,
  .e-4340545d-8979,
  .e-1da5f584-baa5
),
html[data-us-theme="dark"] [data-elementor-id="1315"] :is(
  .e-4832d2d6-872a,
  .e-1f7835f3-dc6d,
  .e-4340545d-8979,
  .e-1da5f584-baa5
) * {
  color: #2B2A25 !important;
}
html[data-us-theme="dark"] [data-elementor-id="1315"] .ffc_power {
  color: #080A08 !important;
}
html[data-us-theme="dark"] :is(
  .e-3389aa7b-5b94,
  .e-68741ca7-a9aa,
  .e-7bab579c-ea27,
  .e-7a4b4cf1-40a2,
  .e-375dc167-6a0f,
  .e-7450dc5c-9db4
) {
  color: #F5F0E8 !important;
}
html[data-us-theme="dark"] :is(
  .e-491f12d3-60b7,
  .e-254dff50-e63c,
  .e-36e3ff12-fbc3,
  .e-31d9bb31-8505,
  .e-2418069b-b8f8,
  .e-7406257d-ffc9
) {
  color: #080A08 !important;
}
html[data-us-theme="dark"] :is(
  .e-12bf51c5-6352,
  .e-6dfc819c-f296,
  .e-1cdd35b5-318b
) {
  color: #F5F0E8 !important;
}
html[data-us-theme="dark"] :is(
  .e-6dc05069-89ed,
  .e-22afb070-43f6,
  .e-73a1ab1d-4e9d
) {
  color: #C9C1B5 !important;
}

/* The light header remains a deliberate contrast band in dark mode. */
html[data-us-theme="dark"] [data-elementor-id="1331"] :where(.elementor-item,a:not(.us-button),.us-theme-toggle,.e-g-dd3274a) {
  color: #171A17 !important;
  border-color: #68645D !important;
}
html[data-us-theme="dark"] [data-elementor-id="1331"] .us-button-ghost {
  color: #171A17 !important;
  border-color: #9A6327 !important;
}
html[data-us-theme="dark"] [data-elementor-id="1331"] .us-button-ghost:hover {
  color: #F5F0E8 !important;
  background-color: #171A17 !important;
}

/* Burnt-orange actions retain the brand colour while meeting text contrast. */
html[data-us-theme="dark"] :where(.us-button,.elementor-button) {
  background-color: #98511D !important;
  color: #FFF9F0 !important;
}
html[data-us-theme="dark"] :where(.us-button,.elementor-button):hover {
  background-color: #7F4217 !important;
  color: #FFFFFF !important;
}

/* Direction 3 dark-mode photography: warm, cinematic and still recognisably real. */
html[data-us-theme="dark"] :where([data-elementor-type="wp-page"],[data-elementor-type="error-404"]) .e-image-base {
  filter: saturate(.78) contrast(1.06) brightness(.84);
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}

/* Selected photo annotations become direct handwritten ink in dark mode. */
html[data-us-theme="dark"] :is(
  .e-5e848734-bdcb,
  .e-2084702f-ca22,
  .e-78c41fae-85f9,
  .e-9c3fe97-e619,
  .e-34487fc7-2b17,
  .e-62e23537-1313,
  .e-59766094-681a,
  .e-5fceb8e-9318,
  .e-1369fdfa-75cd
) {
  color: #F5F0E8 !important;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  text-shadow: 0 2px 22px rgba(0,0,0,.92), 0 1px 3px rgba(0,0,0,.9);
}

/* Paper notes and editable boards stay tactile against the dark canvas. */
html[data-us-theme="dark"] :is(
  .e-104f9a20-9e17,
  .e-6a5ac683-834d,
  .e-7a67eed-a9ed,
  .e-402b0a4a-5703,
  .e-1241c837-89c1,
  .e-584c31a4-f976
),
html[data-us-theme="dark"] :is(
  .e-104f9a20-9e17,
  .e-6a5ac683-834d,
  .e-7a67eed-a9ed,
  .e-402b0a4a-5703,
  .e-1241c837-89c1,
  .e-584c31a4-f976
) * {
  color: #2B2A25 !important;
}

html.us-theme-ready,
html.us-theme-ready * {
  transition-property: color, background-color, border-color, box-shadow, filter, text-shadow;
  transition-duration: 240ms;
  transition-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  html.us-theme-ready,
  html.us-theme-ready * {
    scroll-behavior: auto;
    transition-duration: 0ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
