/* Block alert-985d3ce8 «Паспарту»: messages after an action (django.contrib.messages) as dark
   cards in the language of the service cards: a passe-partout frame inside the card edge, in the
   colour of the level, and the faint grid of the hero. Under the sticky header at the right edge
   of the page container; edge to edge under the header on phones.
   Markup in base.html, script js/base/alert.js. Independent: own font faces, colours and layout;
   shares only the font files. */

/* TikTok Sans of the Rappel brand, renamed for this block. */
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "TikTok Sans-985d3ce8";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+02D8-02D9, U+02DB, U+0302, U+0306-0307, U+030A-030C, U+0312, U+031B, U+0326-0328, U+032E, U+0331, U+0335, U+0337-0338, U+0E3F, U+2070, U+2074-207B, U+207D-207E, U+2080-208B, U+208D-208E, U+2100, U+2105, U+2117, U+2153-2154, U+215B-215E, U+2190, U+2192, U+2194-2199, U+2248, U+2260, U+2264-2265, U+2460-2468, U+24EA, U+24FF, U+25CB-25CC, U+25CF, U+2776-277E, U+FB01-FB02;
}

/* The root comes right after the header and has no height: the stack hangs below it over the
   page. At the top of the page it sits under prehead and header; scrolled, it sticks to the
   header's lower edge. The offsets are the header's heights, 92/80/72 px and its 1 px border,
   at the same breakpoints as css/base/header-0cee3100.css; keep them in step. */
.alert-985d3ce8 {
  position: sticky;
  inset-block-start: 93px;
  z-index: 40;
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #f4f7fa;
  font-family: "TikTok Sans-985d3ce8", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
.alert-985d3ce8,
.alert-985d3ce8 :where(*),
.alert-985d3ce8 :where(*)::before,
.alert-985d3ce8 :where(*)::after {
  box-sizing: border-box;
}
.alert-985d3ce8 :where(*) {
  margin: 0;
  padding: 0;
}
.alert-985d3ce8 :where(svg) {
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
}
.alert-985d3ce8 :where(button) {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.alert-985d3ce8 .alert__inner-985d3ce8 {
  display: flex;
  justify-content: flex-end;
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}
.alert-985d3ce8 .alert__list-985d3ce8 {
  width: min(400px, 100%);
  padding-block-start: 16px;
}

/* One message. It comes in from the page edge; while it leaves, a negative margin as tall as
   the item (the script measures it) lets the next ones slide up into its place. */
.alert-985d3ce8 .alert__item-985d3ce8 {
  --alert-height-985d3ce8: 0px;
  --alert-duration-985d3ce8: 6000ms;
  --alert-from-985d3ce8: 24px 0;
  --alert-body-985d3ce8: #304d6b;
  --alert-accent-985d3ce8: #a8d1ef;
  --alert-frame-985d3ce8: #a8d1ef66;
  padding-block-end: 12px;
  pointer-events: auto;
  animation: alert-enter-985d3ce8 420ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.alert-985d3ce8:dir(rtl) .alert__item-985d3ce8 {
  --alert-from-985d3ce8: -24px 0;
}
.alert-985d3ce8 .alert__item-985d3ce8.is-leaving-985d3ce8 {
  animation: alert-leave-985d3ce8 320ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Levels take the rank palettes of the brand book, roles for a dark ground:
   emerald, the site's own, gold and champion. */
.alert-985d3ce8 .alert__item--success-985d3ce8 {
  --alert-body-985d3ce8: #18453e;
  --alert-accent-985d3ce8: #34e3a0;
  --alert-frame-985d3ce8: #34e3a066;
}
.alert-985d3ce8 .alert__item--info-985d3ce8 {
  --alert-body-985d3ce8: #304d6b;
  --alert-accent-985d3ce8: #a8d1ef;
  --alert-frame-985d3ce8: #a8d1ef66;
}
.alert-985d3ce8 .alert__item--warning-985d3ce8 {
  --alert-body-985d3ce8: #2a3459;
  --alert-accent-985d3ce8: #f5b83a;
  --alert-frame-985d3ce8: #f5b83a66;
}
.alert-985d3ce8 .alert__item--error-985d3ce8 {
  --alert-body-985d3ce8: #362f40;
  --alert-accent-985d3ce8: #ff4392;
  --alert-frame-985d3ce8: #ff439266;
}

/* The card: the deepest surface of the brand, so it stays apart from the dark hero too, a thin
   light edge on top and the hero's grid, fading out behind the text. */
.alert-985d3ce8 .alert__card-985d3ce8 {
  --alert-fade-985d3ce8: 90deg;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: start;
  column-gap: 14px;
  padding-block: 18px 20px;
  padding-inline: 18px 14px;
  border: 1px solid #46617d;
  border-radius: 20px;
  background:
    linear-gradient(var(--alert-fade-985d3ce8), #192d4300 12%, #192d43 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M0 24V0h24' fill='none' stroke='%23a8d1ef' stroke-opacity='.16'/%3E%3C/svg%3E") 8px 8px / 24px 24px,
    #192d43;
  box-shadow:
    inset 0 1px 0 #f4f7fa14,
    0 30px 48px -28px #192d43e6;
}
.alert-985d3ce8:dir(rtl) .alert__card-985d3ce8 {
  --alert-fade-985d3ce8: 270deg;
}
/* The passe-partout, concentric with the card: 8 px in, radius 12 inside 20. It closes in once
   the card is in place and, as on the service cards, steps inwards and lights up in the level's
   colour while the message is pointed at or focused (its time stands still then). */
.alert-985d3ce8 .alert__card-985d3ce8::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--alert-frame-985d3ce8);
  border-radius: 12px;
  pointer-events: none;
  transition:
    inset 400ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 300ms;
  animation: alert-frame-985d3ce8 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms backwards;
}
.alert-985d3ce8 .alert__item-985d3ce8:is(:hover, :focus-within) .alert__card-985d3ce8::before {
  inset: 9px;
  border-color: var(--alert-accent-985d3ce8);
}

/* The level's sign is built like the brand mark: a regular hexagon in the level's dark tone with
   a 1.6 contour and 3.4 rounded strokes in its accent. It rises in after the card. */
.alert-985d3ce8 .alert__icon-985d3ce8 {
  width: 44px;
  height: 44px;
  animation: alert-rise-985d3ce8 480ms cubic-bezier(0.2, 0.7, 0.2, 1) 160ms backwards;
}
.alert-985d3ce8 .alert__icon-985d3ce8 svg {
  width: 100%;
  height: 100%;
}
.alert-985d3ce8 .alert__hex-985d3ce8 {
  fill: var(--alert-body-985d3ce8);
  stroke: var(--alert-accent-985d3ce8);
  stroke-width: 1.6;
}
.alert-985d3ce8 .alert__glyph-985d3ce8 {
  fill: none;
  stroke: var(--alert-accent-985d3ce8);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The level in a word, then the message. Words stay in the text colours: the brand keeps its
   accent for lines and signs. */
.alert-985d3ce8 .alert__copy-985d3ce8 {
  min-width: 0;
}
.alert-985d3ce8 .alert__level-985d3ce8 {
  color: #c9d6e5;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.alert-985d3ce8 .alert__text-985d3ce8 {
  margin-block-start: 2px;
  color: #f4f7fa;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
/* Messages are on the page from the start, which screen readers do not announce; the script
   reads them out through these two regions once the page has settled. */
.alert-985d3ce8 .alert__announce-985d3ce8 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.alert-985d3ce8 .alert__close-985d3ce8 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-block-start: 4px;
  border-radius: 50%;
  color: #c9d6e5;
  transition:
    background-color 160ms,
    color 160ms;
}
.alert-985d3ce8 .alert__close-985d3ce8:hover {
  background: #304d6b;
  color: #f4f7fa;
}
/* The ring hugs the circle, so it never touches the frame. */
.alert-985d3ce8 .alert__close-985d3ce8:focus-visible {
  outline: 3px solid #a8d1ef;
  outline-offset: 0;
}
.alert-985d3ce8 .alert__close-985d3ce8 svg {
  width: 16px;
  height: 16px;
}

/* Time left, for the levels that hide by themselves: the lower side of the frame thickens in the
   level's colour and burns down towards the start. Warnings and errors wait to be closed. */
.alert-985d3ce8 .alert__timer-985d3ce8 {
  position: absolute;
  inset-inline: 20px;
  inset-block-end: 7px;
  height: 2px;
  border-radius: 1px;
  background: var(--alert-accent-985d3ce8);
  transform-origin: 0 50%;
  visibility: hidden;
  transition: inset 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.alert-985d3ce8:dir(rtl) .alert__timer-985d3ce8 {
  transform-origin: 100% 50%;
}
/* It stays on the frame when the frame steps inwards. */
.alert-985d3ce8 .alert__item-985d3ce8:is(:hover, :focus-within) .alert__timer-985d3ce8 {
  inset-inline: 22px;
  inset-block-end: 9px;
}
.alert-985d3ce8 :is(.alert__item--success-985d3ce8, .alert__item--info-985d3ce8) .alert__timer-985d3ce8 {
  visibility: visible;
  animation: alert-timer-985d3ce8 var(--alert-duration-985d3ce8) linear forwards;
}
.alert-985d3ce8 .alert__item-985d3ce8:is(:hover, :focus-within) .alert__timer-985d3ce8,
.alert-985d3ce8.is-paused-985d3ce8 .alert__timer-985d3ce8 {
  animation-play-state: paused;
}

@keyframes alert-enter-985d3ce8 {
  from {
    opacity: 0;
    translate: var(--alert-from-985d3ce8);
  }
}
@keyframes alert-frame-985d3ce8 {
  from {
    inset: 0;
    opacity: 0;
  }
}
@keyframes alert-rise-985d3ce8 {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
@keyframes alert-leave-985d3ce8 {
  to {
    opacity: 0;
    translate: var(--alert-from-985d3ce8);
    margin-block-end: calc(-1 * var(--alert-height-985d3ce8));
  }
}
@keyframes alert-timer-985d3ce8 {
  to {
    transform: scaleX(0);
  }
}
@keyframes alert-fade-985d3ce8 {
  from {
    opacity: 0;
  }
}
/* Leaving with reduced motion: a keyframes name of its own, so the animation starts anew and ends
   with an event (the same name in reverse would count as the finished entrance). */
@keyframes alert-vanish-985d3ce8 {
  to {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .alert-985d3ce8 {
    inset-block-start: 81px;
  }
}

/* Phones: edge to edge under the header, one card after another, a slightly tighter frame. */
@media (max-width: 600px) {
  .alert-985d3ce8 {
    inset-block-start: 73px;
  }
  .alert-985d3ce8 .alert__inner-985d3ce8 {
    width: 100%;
  }
  .alert-985d3ce8 .alert__list-985d3ce8 {
    width: 100%;
    padding-block-start: 0;
  }
  .alert-985d3ce8 .alert__item-985d3ce8,
  .alert-985d3ce8:dir(rtl) .alert__item-985d3ce8 {
    --alert-from-985d3ce8: 0 -16px;
    padding-block-end: 0;
  }
  .alert-985d3ce8 .alert__card-985d3ce8 {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    column-gap: 12px;
    padding-block: 16px 18px;
    padding-inline: 16px 14px;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: 0 30px 48px -28px #192d43e6;
  }
  .alert-985d3ce8 .alert__card-985d3ce8::before {
    inset: 6px;
    border-radius: 8px;
  }
  .alert-985d3ce8 .alert__icon-985d3ce8 {
    width: 40px;
    height: 40px;
  }
  .alert-985d3ce8 .alert__close-985d3ce8 {
    width: 40px;
    height: 40px;
    margin-block-start: 0;
  }
  .alert-985d3ce8 .alert__timer-985d3ce8 {
    inset-inline: 16px;
    inset-block-end: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alert-985d3ce8 :where(*),
  .alert-985d3ce8 :where(*)::before,
  .alert-985d3ce8 :where(*)::after {
    transition: none !important;
  }
  .alert-985d3ce8 .alert__item-985d3ce8 {
    animation: alert-fade-985d3ce8 160ms linear backwards !important;
  }
  .alert-985d3ce8 .alert__item-985d3ce8.is-leaving-985d3ce8 {
    animation: alert-vanish-985d3ce8 160ms linear forwards !important;
  }
  .alert-985d3ce8 .alert__card-985d3ce8::before,
  .alert-985d3ce8 .alert__icon-985d3ce8 {
    animation: none !important;
  }
}
