/* Public homepage only. Preview uses the same document and template class.
   Community is also the fallback while the saved composition is loading. */
body {
  --home-header-bg: #f0f5ea;
  --home-header-ink: #20372b;
  --home-header-accent: #286146;
  --home-header-rule: #c6d4c6;
  --home-footer-top: #274638;
  --home-footer-base: #1b352b;
  --home-footer-ink: #f3f8f3;
  --home-footer-accent: #c0e5c5;
}
body.home-template-simple {
  --home-header-bg: #eef5fc;
  --home-header-ink: #203651;
  --home-header-accent: #235a91;
  --home-header-rule: #c4d5e7;
  --home-footer-top: #2d435b;
  --home-footer-base: #23354c;
  --home-footer-ink: #f4f8ff;
  --home-footer-accent: #c4e1ff;
}
body.home-template-brand {
  --home-header-bg: #243853;
  --home-header-ink: #fffaf0;
  --home-header-accent: #f6d896;
  --home-header-rule: #586b84;
  --home-footer-top: #20334e;
  --home-footer-base: #182841;
  --home-footer-ink: #fffaf0;
  --home-footer-accent: #f6d896;
}
body.home-template-editorial {
  --home-header-bg: #f8f0df;
  --home-header-ink: #382c24;
  --home-header-accent: #785019;
  --home-header-rule: #dfcfb1;
  --home-footer-top: #4a392d;
  --home-footer-base: #36291f;
  --home-footer-ink: #fff8ea;
  --home-footer-accent: #f4d6a0;
}
body.home-template-campaign {
  --home-header-bg: #fff0e6;
  --home-header-ink: #56251e;
  --home-header-accent: #923d25;
  --home-header-rule: #edcbb9;
  --home-footer-top: #66382c;
  --home-footer-base: #4d2a24;
  --home-footer-ink: #fff7ee;
  --home-footer-accent: #ffd9b2;
}
body.home-template-sunlit {
  --home-header-bg: #fbf8eb;
  --home-header-ink: #183c30;
  --home-header-accent: #286246;
  --home-header-rule: #d8deca;
  --home-footer-top: #203e33;
  --home-footer-base: #152e26;
  --home-footer-ink: #f1f8ef;
  --home-footer-accent: #d5e8aa;
}
html[data-theme="dark"] body {
  --home-header-bg: #223a30;
  --home-header-ink: #f1f8f1;
  --home-header-accent: #bde6c5;
  --home-header-rule: #496457;
  --home-footer-top: #1c332a;
  --home-footer-base: #152820;
}
html[data-theme="dark"] body.home-template-simple {
  --home-header-bg: #243449;
  --home-header-ink: #f2f7ff;
  --home-header-accent: #c2dfff;
  --home-header-rule: #475e7a;
  --home-footer-top: #203147;
  --home-footer-base: #172538;
}
html[data-theme="dark"] body.home-template-brand {
  --home-header-bg: #172740;
  --home-header-rule: #455a76;
  --home-footer-top: #1b2b43;
  --home-footer-base: #121f33;
  --home-header-ink: #fffaf0;
  --home-header-accent: #f6d896;
}
html[data-theme="dark"] body.home-template-editorial {
  --home-header-bg: #372b23;
  --home-header-ink: #fff6e7;
  --home-header-accent: #f5d5a0;
  --home-header-rule: #645146;
  --home-footer-top: #30261f;
  --home-footer-base: #231c17;
}
html[data-theme="dark"] body.home-template-campaign {
  --home-header-bg: #482c2a;
  --home-header-ink: #fff5ec;
  --home-header-accent: #ffcfad;
  --home-header-rule: #74504b;
  --home-footer-top: #3b2625;
  --home-footer-base: #2d1e1e;
}
html[data-theme="dark"] body.home-template-sunlit {
  --home-header-bg: #1b332b;
  --home-header-ink: #edf6ee;
  --home-header-accent: #d5e8aa;
  --home-header-rule: #42594e;
  --home-footer-top: #172d25;
  --home-footer-base: #11231d;
}

/* The shared header and dark theme set some colors with !important, and
   login has an inline color. Only this page's chrome overrides them. */
html body #header,
html[data-theme="dark"] body #header.fixed-top { background: var(--home-header-bg) !important; }
html body #header #navbar { background-color: transparent !important; }
html body #header :is(.logo .site-title a, #navbar .nav-link, #homeAuthLink,
  #homeAuthStatus, #homeNavRetry, #homeSignupLink, .mobile-nav-toggle) {
  color: var(--home-header-ink) !important;
}
html body #header :is(#navbar .nav-link:hover, #navbar .nav-link:focus-visible,
  #navbar .nav-link.active, #homeAuthLink:hover, .mobile-nav-toggle:hover) {
  color: var(--home-header-accent) !important;
}
html body #header #navbar .nav-link:is(:hover, :focus-visible, .active) {
  text-decoration: underline;
  text-underline-offset: .22em;
}
html body #header :is(#homeSignupLink, #homeNavRetry) { border-color: var(--home-header-accent); }
html body #header #homeSignupLink:is(:hover, :focus-visible) {
  background-color: var(--home-header-accent);
  color: var(--home-header-bg) !important;
}
html body #header :is(a, button):focus-visible {
  outline: 2px solid var(--home-header-accent);
  outline-offset: 3px;
}
@media (max-width: 1499px) {
  html body #header #navbar.active > ul {
    background-color: var(--home-header-bg);
    border-color: var(--home-header-rule);
  }
  html body #header #navbar.active > ul > li { border-color: var(--home-header-rule); }
  html body #header #navbar.active .nav-link:is(:hover, :focus-visible) { background-color: transparent; }
  html body #header #navbar.active .nav-link:focus-visible { outline-offset: -3px; }
}

html body #footer { background-color: var(--home-footer-base); color: var(--home-footer-ink); }
html body #footer > .footer-top {
  background-color: var(--home-footer-top);
  border-bottom-color: var(--home-footer-base);
}
html body #footer .footer-top :is(h4, .footer-links a) { color: var(--home-footer-ink); }
html body #footer #footer-contact-details { color: var(--home-footer-ink) !important; }
html body #footer :is(.footer-top h3 span, .footer-top .footer-links a:hover, .credits a) {
  color: var(--home-footer-accent);
}
html body #footer .footer-top :is(.footer-links, #footer-contact-details) .bi {
  color: var(--home-footer-accent) !important;
}
html body #footer :is(.footer-links, .credits) a:focus-visible {
  color: var(--home-footer-accent);
  outline: 2px solid var(--home-footer-accent);
  outline-offset: 3px;
}
