/*
  BCIS maintenance page. Stand-alone: nothing here is loaded from the WordPress
  theme or a third party. The values copy the theme's (views/theme/_colors.scss,
  _typography.scss, the CTA Banner, Button Row and Card Slider components), so
  keep them in step by hand if the theme changes.
*/

/* Lato, as the site renders it: Regular (400) and Bold (700). The theme's 600
   weights draw as Bold, so those use 700 here. Latin subset; SIL OFL, see
   fonts/OFL.txt. */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/lato-700.woff2") format("woff2");
}

:root {
  --navy: #011e41;      /* $primary_brand */
  --coral: #ed6f66;     /* $coral_100 */
  --grey: #f8f8f8;      /* $new_grey */
  --white: #ffffff;     /* $mono_5 */
  --muted: #6c7689;     /* $mono_1 */
  --gutter: 16px;       /* the page gutter on phones; 80px from 600px */
  --panel-radius: 40px; /* Card Grid's corners */
  --button-radius: 10px;
}

@media (min-width: 600px) {
  :root {
    --gutter: 80px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background-color: var(--white);
  color: var(--navy);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* The logo in the page's column, as in the site's navigation. */
.page-top {
  width: 100%;
  max-width: calc(1400px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px var(--gutter);
}

.logo {
  display: block;
  width: 140px;
  height: auto;
}

.page-main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 24px var(--gutter) 60px;
}

/* A navy CTA Banner as a card: white text, centred and at most 550px wide,
   with the top left and bottom right corners rounded. */
.panel {
  width: 100%;
  max-width: 760px;
  padding: 60px 24px;
  border-radius: var(--panel-radius) 0;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
}

@media (min-width: 600px) {
  .panel {
    padding: 80px 60px;
  }
}

.panel > * {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* The h2 of the newer components: 32px Regular. */
.panel__heading {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: -1px;
}

/* body_m: 16px. */
.panel__text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.3px;
}

.panel__text p {
  margin: 0;
}

.panel__text p + p {
  margin-top: 14px;
}

/* Links read as part of the sentence. */
.panel__text a,
.panel__text a:visited {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.panel__buttons {
  margin-top: 30px;
}

/* A Button Row button: Coral with alternating corners. On navy its usual navy
   hover would vanish, so it turns white, as Card Slider's arrows do on Coral. */
.button {
  display: inline-block;
  padding: 15px 20px;
  border-radius: var(--button-radius) 0;
  background-color: var(--coral);
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
}

.button:visited {
  color: var(--navy);
}

.button:hover,
.button:focus-visible {
  background-color: var(--white);
  color: var(--navy);
}

.button:focus-visible,
.panel__text a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.page-footer {
  padding: 24px var(--gutter);
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.page-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
