/* ==========================================================================
   CWI - Statuspage custom styling (header + footer)
   Paste into: Statuspage manage console > your page > Customize page >
               Custom HTML/CSS > Custom CSS
   Brand values lifted from cwi.edu's design tokens:
     River   #004853   Basalt  #072C33   Clover #007056
     Moss    #02CB35   Lichen  #78D64B   Dark grey #545859
     Type    Archivo, Arial, "Helvetica Neue", Helvetica, Geneva, sans-serif
   Rules are scoped to #custom-header / #custom-footer so nothing leaks into
   Statuspage's own components. Tokens sit on :root so both share one set.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap');

:root {
  --cwi-river:  #004853;
  --cwi-basalt: #072C33;
  --cwi-clover: #007056;
  --cwi-moss:   #02CB35;
  --cwi-lichen: #78D64B;
  --cwi-grey:   #545859;
  --cwi-white:  #FFFFFF;
  --cwi-focus:  #05AEFC;
  --cwi-font:   "Archivo", Arial, "Helvetica Neue", Helvetica, Geneva, sans-serif;
}

#custom-header {
  font-family: var(--cwi-font);
  font-feature-settings: "pnum" on, "lnum" on;
  margin-bottom: 28px;
}

#custom-header *,
#custom-header *::before,
#custom-header *::after { box-sizing: border-box; }

/* --- brand band ---------------------------------------------------------- */
#custom-header .cwi-band {
  background-color: var(--cwi-river);
  border-bottom: 6px solid var(--cwi-moss);
}

/* .container is Statuspage's own (90% wide, 850px max) so the header lines up
   with the status content below it. */
#custom-header .cwi-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 22px 0;
}

/* --- logo ---------------------------------------------------------------- */
#custom-header .cwi-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

#custom-header .cwi-logo__svg {
  display: block;
  height: 52px;
  width: auto;
  transition: opacity 0.2s ease-in-out;
}

#custom-header .cwi-logo:hover .cwi-logo__svg,
#custom-header .cwi-logo:focus .cwi-logo__svg { opacity: 0.85; }

/* --- links --------------------------------------------------------------- */
#custom-header .cwi-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

#custom-header .cwi-nav a {
  color: var(--cwi-white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#custom-header .cwi-nav a:hover,
#custom-header .cwi-nav a:focus {
  color: var(--cwi-lichen);
  border-bottom-color: var(--cwi-lichen);
  text-decoration: none;
}

#custom-header a:focus-visible {
  outline: 3px solid var(--cwi-focus);
  outline-offset: 3px;
}

/* --- Statuspage injects its Subscribe control into #replace-with-subscribe -- */
#custom-header #replace-with-subscribe { display: inline-flex; align-items: center; }

#custom-header #replace-with-subscribe .show-updates-dropdown,
#custom-header #replace-with-subscribe .flat-button {
  background-color: var(--cwi-moss) !important;
  color: var(--cwi-basalt) !important;
  border: 0 !important;
  border-radius: 25px !important;
  font-family: var(--cwi-font) !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.75px !important;
  padding: 11px 24px !important;
}

#custom-header #replace-with-subscribe .show-updates-dropdown:hover,
#custom-header #replace-with-subscribe .flat-button:hover {
  background-color: var(--cwi-lichen) !important;
}

/* --- page title band ------------------------------------------------------
   The custom header replaces Statuspage's default masthead, which is where the
   page name normally lives. This puts it back in CWI's heading style. --------- */
#custom-header .cwi-titlebar {
  background-color: var(--cwi-white);
  padding: 30px 0 4px;
}

#custom-header .cwi-title {
  color: var(--cwi-river);
  font-family: var(--cwi-font);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.8px;
  margin: 0;
}

#custom-header .cwi-tagline {
  color: var(--cwi-grey);
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 62ch;
}

/* --- small screens ------------------------------------------------------- */
@media (max-width: 767px) {
  #custom-header .cwi-bar { padding: 16px 0; gap: 14px 20px; }
  #custom-header .cwi-logo__svg { height: 40px; }
  #custom-header .cwi-nav { gap: 10px 20px; width: 100%; }
  #custom-header .cwi-nav a { font-size: 1rem; }
  #custom-header .cwi-titlebar { padding-top: 22px; }
  #custom-header .cwi-title { font-size: 1.875rem; }
  #custom-header .cwi-tagline { font-size: 1rem; }
}

/* ==========================================================================
   FOOTER
   Statuspage's custom footer renders below the status content. Markup lives in
   cwi-statuspage-footer.html.
   ========================================================================== */
#custom-footer {
  background-color: var(--cwi-river);
  border-top: 6px solid var(--cwi-moss);
  color: var(--cwi-white);
  font-family: var(--cwi-font);
  margin-top: 48px;
  padding: 36px 0 26px;
}

#custom-footer *,
#custom-footer *::before,
#custom-footer *::after { box-sizing: border-box; }

#custom-footer a {
  color: var(--cwi-white);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

#custom-footer a:hover,
#custom-footer a:focus { color: var(--cwi-lichen); text-decoration: underline; }

#custom-footer a:focus-visible {
  outline: 3px solid var(--cwi-focus);
  outline-offset: 3px;
}

/* --- top row: contact left, quick links right ---------------------------- */
#custom-footer .cwi-foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: space-between;
}

#custom-footer .cwi-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#custom-footer .cwi-foot-logo {
  align-self: flex-start;
  display: inline-flex;
}

#custom-footer .cwi-foot-logo .cwi-logo__svg {
  display: block;
  height: 44px;
  width: auto;
  transition: opacity 0.2s ease-in-out;
}

#custom-footer .cwi-foot-logo:hover .cwi-logo__svg,
#custom-footer .cwi-foot-logo:focus .cwi-logo__svg { opacity: 0.85; }

#custom-footer .cwi-foot-address {
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

#custom-footer .cwi-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: flex-start;
}

#custom-footer .cwi-foot-links a {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- legal row + copyright ----------------------------------------------- */
#custom-footer .cwi-foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 18px;
}

#custom-footer .cwi-foot-legal a {
  font-size: 0.875rem;
  font-weight: 500;
}

#custom-footer .cwi-foot-copyright {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 14px 0 0;
  opacity: 0.85;
}

/* --- small screens ------------------------------------------------------- */
@media (max-width: 767px) {
  #custom-footer { margin-top: 32px; padding: 28px 0 22px; }
  #custom-footer .cwi-foot-top { gap: 18px 24px; }
  #custom-footer .cwi-foot-brand { gap: 14px; }
  #custom-footer .cwi-foot-logo .cwi-logo__svg { height: 36px; }
  #custom-footer .cwi-foot-links { gap: 10px 20px; }
  #custom-footer .cwi-foot-links a { font-size: 1rem; }
  #custom-footer .cwi-foot-legal { gap: 8px 18px; margin-top: 22px; }
}