/* The homepage is a decorative, inert layer. The notice never dismisses. */
:root {
  --maintenance-accent: #e7ef8a;
  --maintenance-ink: #172a20;
  --maintenance-scrim: rgb(6 17 12 / 66%);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden !important;
  overscroll-behavior: none;
}

#homepage-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none !important;
  user-select: none;
}

#homepage-backdrop * {
  pointer-events: none !important;
  cursor: default !important;
  animation: none !important;
}

/* Hide the notice while editing; the landing always occupies one viewport. */
html[data-maintenance="off"] .maintenance-layer {
  display: none !important;
}

.maintenance-layer,
.maintenance-layer * {
  box-sizing: border-box;
}

.maintenance-layer {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--maintenance-scrim);
  color: var(--maintenance-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

.maintenance-card {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 552px;
  margin: auto;
  padding: 36px 46px 35px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 100px rgb(0 0 0 / 22%), 0 4px 20px rgb(0 0 0 / 8%);
  text-align: center;
  outline: none;
}

.maintenance-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7px;
  background: var(--maintenance-accent);
  content: "";
}

.maintenance-logo {
  display: block;
  width: 72px;
  height: 44px;
  margin: 0 auto 27px;
  object-fit: contain;
}

.maintenance-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 22px;
  background: var(--maintenance-accent);
}

.maintenance-symbol svg {
  display: block;
  width: 40px;
  height: 40px;
}

.maintenance-title {
  margin: 0;
  color: var(--maintenance-ink);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.maintenance-description {
  max-width: 390px;
  margin: 23px auto 0;
  color: #59655d;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  text-wrap: pretty;
}

.maintenance-description p {
  margin: 0;
}

.maintenance-description p + p {
  margin-top: 10px;
}

.maintenance-thanks {
  margin: 27px 0 0;
  padding-top: 22px;
  border-top: 1px solid #ededf0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .maintenance-layer {
    padding: 22px;
  }

  .maintenance-card {
    padding: 28px 26px 27px;
    border-radius: 20px;
  }

  .maintenance-logo {
    width: 64px;
    height: 38px;
    margin-bottom: 21px;
  }

  .maintenance-symbol {
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    border-radius: 19px;
  }

  .maintenance-symbol svg {
    width: 35px;
    height: 35px;
  }

  .maintenance-title {
    font-size: clamp(29px, 8.2vw, 36px);
    letter-spacing: -.8px;
  }

  .maintenance-description {
    margin-top: 19px;
    font-size: 16px;
    line-height: 1.55;
  }

  .maintenance-thanks {
    margin-top: 23px;
    padding-top: 19px;
    font-size: 13px;
  }
}

@media (max-height: 620px) and (min-width: 601px) {
  .maintenance-layer {
    padding: 16px;
  }

  .maintenance-card {
    padding-top: 25px;
    padding-bottom: 24px;
  }

  .maintenance-logo {
    height: 32px;
    margin-bottom: 15px;
  }

  .maintenance-symbol {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 17px;
  }

  .maintenance-symbol svg {
    width: 31px;
    height: 31px;
  }

  .maintenance-title {
    font-size: 32px;
  }

  .maintenance-description {
    margin-top: 16px;
    font-size: 16px;
  }

  .maintenance-thanks {
    margin-top: 19px;
    padding-top: 17px;
  }
}

@media (max-width: 600px) and (max-height: 650px) {
  .maintenance-layer { padding: 16px; }
  .maintenance-card { padding: 22px 24px; }
  .maintenance-logo { height: 30px; margin-bottom: 14px; }
  .maintenance-symbol { width: 50px; height: 50px; margin-bottom: 14px; border-radius: 16px; }
  .maintenance-symbol svg { width: 29px; height: 29px; }
  .maintenance-title { font-size: 29px; }
  .maintenance-description { margin-top: 16px; font-size: 15px; }
  .maintenance-description p + p { margin-top: 8px; }
  .maintenance-thanks { margin-top: 18px; padding-top: 16px; font-size: 12px; }
}

/* Final Paqo portal identity: forest green, citron and white cards. */
.maintenance-card {
  --card-pad-x: 36px;
  --card-pad-y: 30px;
  --brand-pad-y: 22px;
  --brand-logo-height: 35px;
  --brand-height: calc(var(--brand-logo-height) + 2 * var(--brand-pad-y));
  padding: var(--card-pad-y) var(--card-pad-x);
  border-radius: 28px;
  /* Match the header beneath its clipped corners to prevent a white antialiasing halo. */
  background: linear-gradient(to bottom, #14251f var(--brand-height), #fff var(--brand-height));
}
.maintenance-card::before { display: none; }
.maintenance-brand {
  margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 24px;
  padding: var(--brand-pad-y) var(--card-pad-x);
  background: #14251f;
}
.maintenance-logo { width: 104px; height: var(--brand-logo-height); margin: 0 auto; }
.maintenance-title { font-size: 38px; font-weight: 650; letter-spacing: -.045em; }
.maintenance-description { margin-top: 18px; font-size: 16px; font-weight: 400; color: #59655d; }
.maintenance-access { margin-top: 24px; padding-top: 22px; border-top: 1px solid #dbe2d9; }
.maintenance-access p { max-width: 390px; margin: 0 auto; color: #59655d; font-size: 15px; line-height: 1.55; }
.maintenance-dossier-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px;
  border: 1px solid #dbe582;
  border-radius: 17px;
  background: #e7ef8a;
  color: #203119;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.maintenance-dossier-link svg { width: 20px; height: 20px; flex: 0 0 auto; }
.maintenance-dossier-link:hover { background: #d8e66e; border-color: #cbd963; }
.maintenance-dossier-link:focus-visible { outline: 3px solid #3184b9; outline-offset: 4px; }
.maintenance-thanks { margin: 20px 0 0; padding: 0; border: 0; color: #59655d; font-size: 12px; font-weight: 400; }
@media (max-width: 600px) {
  .maintenance-card { --card-pad-x: 26px; --card-pad-y: 24px; --brand-pad-y: 20px; --brand-logo-height: 30px; border-radius: 22px; }
  .maintenance-brand { margin-bottom: 22px; }
  .maintenance-logo { width: 87px; }
  .maintenance-title { font-size: 32px; }
  .maintenance-description { font-size: 15px; }
  .maintenance-access { margin-top: 20px; padding-top: 18px; }
  .maintenance-dossier-link { min-height: 55px; border-radius: 15px; font-size: 15px; }
}
@media (max-height: 650px) {
  .maintenance-layer { padding: 16px; }
  .maintenance-card { --card-pad-x: 24px; --card-pad-y: 20px; --brand-pad-y: 16px; }
  .maintenance-brand { margin-bottom: 18px; }
  .maintenance-title { font-size: 28px; }
  .maintenance-description { margin-top: 14px; font-size: 14px; line-height: 1.45; }
  .maintenance-access { margin-top: 16px; padding-top: 16px; }
  .maintenance-access p { font-size: 14px; line-height: 1.45; }
  .maintenance-dossier-link { min-height: 52px; margin-top: 12px; padding: 12px 16px; font-size: 14px; }
  .maintenance-thanks { margin-top: 14px; }
}
