/*
 *  WebMastro
 *
 *  Object-oriented PHP framework for building HTML5 + Bootstrap 5 websites.
 *
 *  Copyright (C) 2018-2026 Marco Mastroddi. All rights reserved.
 *  SPDX-License-Identifier: LicenseRef-Proprietary
 *
 *  Author: Marco Mastroddi <marco.mastroddi(AT)gmail.com>
 *
 *  The framework's own look (docs/GUIDELINES.md D19, D26, D28): the widgets,
 *  and the few classes the Bootstrap layer needs and Bootstrap lacks (hero
 *  heights), so a new Bootstrap release never touches them. Deliberately no
 *  cascade layer: Bootstrap is not layered, so its element rules (a, button)
 *  would win over any layered rule. Widget rules use classes instead, which
 *  beat element rules, and this file loads after Bootstrap; a site overrides
 *  a widget with a more specific selector. The widgets' custom properties
 *  (--wm-*) are never defined here, only read with a default, so a site sets
 *  them once in :root.
 */

/*
 * Code in a text (D63): Bootstrap colors it pink (--bs-code-color, #d63384).
 * A site's own palette has no pink, so it takes the color of the links, which
 * a site already sets to a color that reads on its background; a site that
 * wants another one sets --bs-code-color after this file.
 */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  --bs-code-color: var( --bs-link-color );
}

/*
 * Masonry (Widget\Masonry): a plain grid without JavaScript; webmastro.js
 * adds .wm-masonry-ready, switches to 1px rows and gives every item the
 * number of rows it needs, so each one goes to the column that frees first.
 */
.wm-masonry {
  --wm-masonry-max-columns: 100;
  display: grid;
  /* at least the column width (or the whole width, if narrower), and wide
     enough that no more than the maximum number of columns fit */
  grid-template-columns: repeat( auto-fill, minmax( max( min( var( --wm-masonry-column, 18rem ), 100% ),
    ( 100% - ( var( --wm-masonry-max-columns ) - 1 ) * var( --wm-masonry-gap, 1rem ) ) / var( --wm-masonry-max-columns ) ), 1fr ) );
  gap: var( --wm-masonry-gap, 1rem );
  align-items: start;

  &.wm-masonry-ready {
    grid-auto-rows: 1px;
    row-gap: 0;
  }

  /* a photo that is the item itself fills its column; images inside other
     content (a logo in a card) keep their own size */
  .wm-masonry-item > img,
  .wm-masonry-toggle > img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.wm-masonry-max-2 { --wm-masonry-max-columns: 2; }
.wm-masonry-max-3 { --wm-masonry-max-columns: 3; }
.wm-masonry-max-4 { --wm-masonry-max-columns: 4; }
.wm-masonry-max-5 { --wm-masonry-max-columns: 5; }
.wm-masonry-max-6 { --wm-masonry-max-columns: 6; }

.wm-masonry-item {
  min-width: 0;
  scroll-margin-top: 2.5rem;
}

.wm-masonry-expanded {
  grid-column: 1 / -1;
}

/* an enlarged photo fits the window: at most as tall as the viewport less
   the space above it (the scroll margin) and the same below, centered */
.wm-masonry .wm-masonry-expanded .wm-masonry-toggle > img {
  width: auto;
  max-width: 100%;
  max-height: var( --wm-masonry-expanded-height, calc( 100dvh - 5rem ) );
  margin-inline: auto;
}

/* inside .wm-masonry: as specific as Bootstrap's [type=button]:not(:disabled), and later */
.wm-masonry .wm-masonry-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;

  &[aria-expanded="true"] {
    cursor: zoom-out;
  }

  &:focus-visible {
    outline: 3px solid currentcolor;
    outline-offset: 3px;
  }
}

/*
 * Read more with two labels (Bootstrap\ReadMore::setOpenLabel()): the
 * button holds both, the one matching aria-expanded is shown.
 */
[aria-expanded="true"] > .wm-read-more-closed,
[aria-expanded="false"] > .wm-read-more-open {
  display: none;
}

/*
 * Autoplay (Bootstrap\Carousel::setAutoplay()): the stop/start button shows
 * the icon and the label of what pressing it does; webmastro.js sets
 * data-wm-stopped. Above the carousel's previous/next areas.
 */
.wm-autoplay-toggle {
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  box-shadow: 0 0 0 2px #fff;

  &:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  &[hidden] {
    display: none;
  }

  &[data-wm-stopped] .wm-autoplay-stop,
  &:not( [data-wm-stopped] ) .wm-autoplay-start {
    display: none !important;
  }
}

/*
 * Focus rings (D41) where Bootstrap's own can hardly be seen (WCAG 2.4.7):
 * a navbar link has a 25% blue shadow (1.3:1 on a dark navbar), a carousel
 * arrow only turns less transparent. Around the element in its text color,
 * which contrasts with its background by construction (navbar links); or
 * inside it, white within dark, visible on any background (dropdown items,
 * carousel arrows over photos). As specific as Bootstrap's rules, and later.
 */
.wm-focus-ring:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 2px;
  box-shadow: none;
}

.wm-focus-ring-inset:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 4px rgb( 33 37 41 );
}

/*
 * Icons (Bootstrap\Icon, D10): inline SVG of the text's size (1em) and
 * color (currentColor), a little below the baseline as the Bootstrap Icons
 * font drew them; never squeezed by long text beside it in a flex row, as
 * the font's glyph never was.
 */
.bi {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/*
 * Icon list (Bootstrap\IconList): the icon in its own column, so wrapped
 * lines stay aligned after it.
 */
.wm-icon-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.5em;
  align-items: baseline;
}

/* a grid item ignores vertical-align, and the baseline of an SVG is its bottom edge */
.wm-icon-list > li > .bi {
  position: relative;
  top: 0.125em;
}

/* read by screen readers only */
.wm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset( 50% );
  white-space: nowrap;
  border: 0;
}

/* read by screen readers only, shown when it gets the focus (the skip link) */
.wm-visually-hidden-focusable:not( :focus ):not( :focus-within ) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset( 50% );
  white-space: nowrap;
  border: 0;
}

/*
 * The framework's own error page (Http\Router, D40), for sites without
 * one of their own: no CSS framework, so its look is all here.
 */
.wm-error-page {
  max-width: 36rem;
  margin: 12vh auto 2rem;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: rgb( 33 37 41 );
  text-align: center;

  h1 {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
  }
}

.wm-error-code {
  margin: 0;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: rgb( 13 110 253 / 0.25 );
}

.wm-error-home {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  background-color: rgb( 13 110 253 );
  color: white;
  text-decoration: none;

  &:hover,
  &:focus-visible {
    background-color: rgb( 10 88 202 );
  }

  &:focus-visible {
    outline: 3px solid rgb( 13 110 253 / 0.5 );
    outline-offset: 2px;
  }
}

.wm-error-details {
  margin-top: 2rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 0.375rem;
  background-color: rgb( 0 0 0 / 0.05 );
  font-size: 0.8125rem;
  text-align: left;
  white-space: pre-wrap;
}

/*
 * Counter (Widget\Counter): webmastro.js shows a counting copy of the
 * number, hidden from screen readers, and keeps the final number for them
 * in a .wm-visually-hidden span.
 */
.wm-counter {
  font-variant-numeric: tabular-nums;
}

/*
 * Back to top (Widget\BackToTop): a round button in the bottom right
 * corner with an arrow drawn by CSS; webmastro.js hides it
 * (.wm-back-to-top-hidden) until the page scrolls down. The white ring
 * keeps it visible on dark backgrounds too.
 */
.wm-back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030;
  display: grid;
  place-items: center;
  width: var( --wm-back-to-top-size, 3rem );
  height: var( --wm-back-to-top-size, 3rem );
  border-radius: 50%;
  color: var( --wm-back-to-top-color, #fff );
  background: var( --wm-back-to-top-background, rgb( 33 37 41 / 0.8 ) );
  box-shadow: 0 0 0 2px #fff;
  text-decoration: none;
  transition: opacity 0.3s, visibility 0.3s;

  &::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border-top: 0.2rem solid currentcolor;
    border-left: 0.2rem solid currentcolor;
    transform: translateY( 0.2rem ) rotate( 45deg );
  }

  &:hover {
    background: var( --wm-back-to-top-hover-background, rgb( 33 37 41 / 1 ) );
  }

  &:focus-visible {
    outline: 3px solid rgb( 33 37 41 );
    outline-offset: 3px;
  }

  &.wm-back-to-top-hidden {
    opacity: 0;
    visibility: hidden;
  }

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

  @media print {
    display: none;
  }
}

/*
 * Floating link (Widget\FloatingLink): a round link just above the back to
 * top button, in the same corner and with the same look, hidden
 * (.wm-floating-link-hidden) until the page scrolls down. The white ring
 * keeps it visible on dark backgrounds too; --wm-floating-link-gap is the
 * space between the two (more on touch screens makes a wrong tap less likely),
 * --wm-floating-link-size its diameter (the icon grows with it), centered
 * above the back to top button.
 */
.wm-floating-link {
  position: fixed;
  /* centered above the back to top button, whatever the two sizes */
  right: calc( 1rem + ( var( --wm-back-to-top-size, 3rem ) - var( --wm-floating-link-size, 3rem ) ) / 2 );
  bottom: calc( 1rem + var( --wm-back-to-top-size, 3rem ) + var( --wm-floating-link-gap, 0.75rem ) );
  z-index: 1030;
  transition: opacity 0.3s, visibility 0.3s;

  a {
    display: grid;
    place-items: center;
    width: var( --wm-floating-link-size, 3rem );
    height: var( --wm-floating-link-size, 3rem );
    font-size: calc( var( --wm-floating-link-size, 3rem ) / 2 );
    line-height: 1;
    border-radius: 50%;
    color: var( --wm-floating-link-color, #fff );
    background: var( --wm-floating-link-background, rgb( 33 37 41 / 0.8 ) );
    box-shadow: 0 0 0 2px #fff;
    text-decoration: none;
  }

  a:hover {
    background: var( --wm-floating-link-hover-background, rgb( 33 37 41 / 1 ) );
  }

  a:focus-visible {
    outline: 3px solid rgb( 33 37 41 );
    outline-offset: 3px;
  }

  &.wm-floating-link-hidden {
    opacity: 0;
    visibility: hidden;
  }

  /* with a bubble below it (BubblePosition::Bottom) the link stands higher, so that the bubble fits above the back to top button */
  &.wm-floating-link-raised {
    bottom: calc( 1rem + var( --wm-back-to-top-size, 3rem ) + var( --wm-floating-link-gap, 0.75rem ) + var( --wm-floating-link-bubble-room, 3.75rem ) );
  }

  /*
   * the speech bubble (setBubble()): above the round link (-top), at its side
   * (-side) or below it (-bottom), its tail, a rotated square, pointing at
   * the middle of the link; it comes in from the side it is far from
   */
  .wm-floating-link-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: max-content;
    max-width: min( 16rem, calc( 100vw - 2rem ) );
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    font-size: 1rem;
    line-height: 1.3;
    color: var( --wm-floating-link-bubble-color, #212529 );
    background: var( --wm-floating-link-bubble-background, #fff );
    border: 1px solid var( --wm-floating-link-bubble-border, #dee2e6 );
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgb( 0 0 0 / 0.15 );
    animation: wm-bubble-in 0.4s ease-out;

    &[hidden] {
      display: none;
    }

    &::after {
      content: "";
      position: absolute;
      width: 0.8rem;
      height: 0.8rem;
      background: inherit;
      border: inherit;
    }

    &.wm-floating-link-bubble-top {
      right: 0;
      bottom: calc( 100% + 0.9rem );
      --wm-bubble-shift: 0 0.5rem;

      &::after {
        right: calc( var( --wm-floating-link-size, 3rem ) / 2 - 0.4rem );
        bottom: -0.45rem;
        border-width: 0 1px 1px 0;
        transform: rotate( 45deg );
      }
    }

    &.wm-floating-link-bubble-bottom {
      right: 0;
      top: calc( 100% + 0.9rem );
      --wm-bubble-shift: 0 -0.5rem;

      &::after {
        right: calc( var( --wm-floating-link-size, 3rem ) / 2 - 0.4rem );
        top: -0.45rem;
        border-width: 1px 0 0 1px;
        transform: rotate( 45deg );
      }
    }

    &.wm-floating-link-bubble-side {
      top: 50%;
      right: calc( 100% + 0.9rem );
      transform: translateY( -50% );
      --wm-bubble-shift: 0.5rem 0;

      &::after {
        top: calc( 50% - 0.4rem );
        right: -0.45rem;
        border-width: 1px 1px 0 0;
        transform: rotate( 45deg );
      }
    }

    .wm-floating-link-bubble-close {
      flex: none;
      min-width: 1.75rem;
      min-height: 1.75rem;
      padding: 0;
      font-size: 1.25rem;
      line-height: 1;
      color: inherit;
      cursor: pointer;
      background: none;
      border: 0;
      border-radius: 50%;

      &:hover {
        background: rgb( 0 0 0 / 0.08 );
      }

      &:focus-visible {
        outline: 3px solid currentcolor;
        outline-offset: 1px;
      }
    }
  }

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

    .wm-floating-link-bubble {
      animation: none;
    }
  }

  @media print {
    display: none;
  }
}

@keyframes wm-bubble-in {
  from {
    opacity: 0;
    translate: var( --wm-bubble-shift, 0 0.5rem );
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/*
 * Consent (Widget\ConsentBanner, D34): a dark bar fixed at the bottom of the
 * window, above the page but below Bootstrap's modals; "Reject" and "Accept"
 * look the same (the Garante's rule). webmastro.js shows it and, while it
 * shows, sets .wm-consent-open and --wm-consent-height on <html>: the page
 * gets that much room at the bottom, scrolling keeps the focused element
 * above the bar (WCAG 2.4.11) and the buttons in the corner move up.
 */
.wm-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 3.5rem 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var( --wm-consent-color, #fff );
  background: var( --wm-consent-background, rgb( 33 37 41 ) );
  box-shadow: 0 -0.25rem 1rem rgb( 0 0 0 / 0.2 );

  &[hidden] {
    display: none;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  a:focus-visible,
  button:focus-visible {
    outline: 3px solid currentcolor;
    outline-offset: 2px;
  }

  @media print {
    display: none;
  }
}

.wm-consent-text {
  flex: 1 1 20rem;
  margin: 0;
}

.wm-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wm-consent-button {
  min-width: 7rem;
  padding: 0.375rem 1rem;
  font: inherit;
  color: var( --wm-consent-button-color, rgb( 33 37 41 ) );
  background: var( --wm-consent-button-background, #fff );
  border: 1px solid var( --wm-consent-button-background, #fff );
  border-radius: 0.375rem;
  cursor: pointer;

  &:hover {
    text-decoration: underline;
  }

  .wm-consent &:focus-visible {
    outline-color: var( --wm-consent-color, #fff );
  }
}

/* at least 24 x 24 CSS pixels (WCAG 2.5.8), here 2.75rem */
.wm-consent-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* the "Cookie preferences" button looks like a link of the text around it */
.wm-consent-preferences {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  background: none;
  border: 0;
  cursor: pointer;
}

/*
 * A window not tall enough (a phone held sideways, 250 to 400 px, or a page
 * zoomed to 400%, WCAG 1.4.10): the banner is compact, never above 45% of
 * the window (it scrolls inside if its choices need more), and the round
 * links give way: no bubble below 500 px, no round links below 360 px.
 */
@media ( max-height: 500px ) {
  .wm-consent {
    gap: 0.35rem 1rem;
    max-height: 45vh;
    padding: 0.4rem 2.75rem 0.4rem 0.75rem;
    overflow-y: auto;
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .wm-consent-text {
    flex-basis: 14rem;
  }

  .wm-consent-actions {
    gap: 0.35rem;
  }

  .wm-consent-button {
    min-width: 0;
    padding: 0.2rem 0.7rem;
  }

  .wm-consent-close {
    top: 0.1rem;
    right: 0.1rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.5rem;
  }

  .wm-floating-link .wm-floating-link-bubble {
    display: none;
  }
}

@media ( max-height: 360px ) {
  .wm-floating-link,
  .wm-back-to-top {
    display: none;
  }
}

/* Document::setStickyHeader(): the header stays at the top; ( true ) only when the window is tall enough. Navbar::setStickyTop( true ) is the same for a menu that is a child of the body */
.wm-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.wm-sticky-tall {
  position: static;
}

@media ( min-height: 500px ) {
  .wm-sticky-tall {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

.wm-consent-open {
  scroll-padding-bottom: var( --wm-consent-height, 0px );

  body {
    padding-bottom: var( --wm-consent-height, 0px );
  }

  /*
   * the corner buttons above the bar: moved by translate, not by bottom, so
   * that the move is not a layout shift (CLS); still hidden when the banner
   * appears, they moved the page's score all the same (PageSpeed: 0.009 on
   * lga, 0.003 on mmdotcom)
   */
  .wm-back-to-top,
  .wm-floating-link {
    translate: 0 calc( -1 * var( --wm-consent-height, 0px ) );
  }
}

/* "Customize" (D43): a checkbox per category, in the banner, below the buttons */
.wm-consent-choices {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;

  &[hidden] {
    display: none;
  }

  legend {
    float: left;
    width: 100%;
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: inherit;
    font-weight: 700;
  }

  label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin-right: 1.5rem;
    cursor: pointer;
  }

  /* at least 24 x 24 CSS pixels (WCAG 2.5.8) */
  input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    accent-color: var( --wm-consent-button-background, #fff );
  }

  input:focus-visible {
    outline: 3px solid currentcolor;
    outline-offset: 2px;
  }
}

/*
 * Map (Widget\Map, D43): the placeholder and the frame share the
 * proportions (--wm-map-ratio), so the page does not jump when the map
 * appears; the placeholder grows if its text needs more room. Colors:
 * --wm-map-background, --wm-map-color, --wm-map-button-background,
 * --wm-map-button-color.
 */
.wm-map-frame,
.wm-map-placeholder {
  aspect-ratio: var( --wm-map-ratio, 4 / 3 );
}

.wm-map-frame:focus-visible {
  outline: 3px solid currentcolor;
  outline-offset: 2px;
}

.wm-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.wm-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var( --wm-map-color, rgb( 33 37 41 ) );
  background: var( --wm-map-background, rgb( 233 236 239 ) );

  &[hidden] {
    display: none;
  }

  p {
    margin: 0;
  }
}

.wm-map-note {
  max-width: 36rem;
  font-size: 0.875rem;
}

.wm-map-show {
  min-height: 2.75rem;
  padding: 0.375rem 1.25rem;
  font: inherit;
  color: var( --wm-map-button-color, #fff );
  background: var( --wm-map-button-background, rgb( 33 37 41 ) );
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;

  &[hidden] {
    display: none;
  }

  &:hover {
    text-decoration: underline;
  }

  &:focus-visible {
    outline: 3px solid var( --wm-map-button-background, rgb( 33 37 41 ) );
    outline-offset: 2px;
  }
}

/*
 * Video (Widget\Video): the image of the video with a play button, then the
 * frame in its place, both in the proportions of --wm-video-ratio (16 / 9 by
 * default), so nothing moves. The button: a white triangle on a dark disc,
 * readable on any image (WCAG 1.4.11); a focus ring around the whole image.
 */
.wm-video-poster,
.wm-video-frame {
  display: block;
  position: relative;
  aspect-ratio: var( --wm-video-ratio, 16 / 9 );
}

.wm-video-poster img,
.wm-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.wm-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgb( 0 0 0 / 0.75 );
  box-shadow: 0 0 0 2px rgb( 255 255 255 / 0.8 );
  transform: translate( -50%, -50% );
  transition: background-color 0.15s;

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    clip-path: polygon( 38% 28%, 38% 72%, 74% 50% );
  }
}

.wm-video-poster:hover .wm-video-play,
.wm-video-poster:focus-visible .wm-video-play {
  background: rgb( 204 0 0 );
}

.wm-video-poster:focus-visible,
.wm-video-frame:focus-visible {
  outline: 3px solid currentcolor;
  outline-offset: 2px;
}

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

/*
 * Charts (Widget\ColumnChart, Widget\BarList): one measure in one color,
 * --wm-chart-color (a blue by default; a site sets its own in :root), on a
 * recessive grid. The SVG stretches to the width (preserveAspectRatio
 * none), its height set here; lines keep one pixel whatever the stretch.
 */
.wm-column-chart,
.wm-line-chart,
.wm-diverging-chart {
  margin: 0;
}

/* Widget\LineChart: the line, and a strip per point that shows on hover */
.wm-chart-line {
  fill: none;
  stroke: var( --wm-chart-color, rgb( 13 110 253 ) );
  stroke-width: 2;
  stroke-linejoin: round;
}

.wm-chart-point {
  fill: transparent;

  &:hover {
    fill: var( --wm-chart-grid-color, rgb( 0 0 0 / 0.15 ) );
  }
}

.wm-chart-plot {
  display: block;
  width: 100%;
  height: var( --wm-chart-height, 9rem );
  overflow: visible;
}

.wm-chart-bar {
  fill: var( --wm-chart-color, rgb( 13 110 253 ) );

  &:hover {
    fill: var( --wm-chart-hover-color, rgb( 10 88 202 ) );
  }
}

/*
 * Widget\DivergingColumnChart: the columns above zero and below it in two
 * opposite hues (an orange and a blue, told apart by colorblind readers;
 * never green and red, which would judge), from a zero line; a site sets
 * its own pair in :root.
 */
.wm-chart-above {
  fill: var( --wm-chart-above-color, #eb6834 );
}

.wm-chart-below {
  fill: var( --wm-chart-below-color, #2a78d6 );
}

.wm-chart-above,
.wm-chart-below {
  &:hover {
    opacity: 0.75;
  }
}

.wm-chart-zero {
  stroke: var( --wm-chart-axis-color, rgb( 0 0 0 / 0.4 ) );
  stroke-width: 1;
}

.wm-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var( --wm-chart-text-color, rgb( 33 37 41 / 0.75 ) );

  li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
}

.wm-chart-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;

  &.wm-chart-above {
    background-color: var( --wm-chart-above-color, #eb6834 );
  }

  &.wm-chart-below {
    background-color: var( --wm-chart-below-color, #2a78d6 );
  }
}

.wm-chart-grid,
.wm-chart-base {
  stroke: var( --wm-chart-grid-color, rgb( 0 0 0 / 0.15 ) );
  stroke-width: 1;
}

.wm-chart-base {
  stroke: var( --wm-chart-axis-color, rgb( 0 0 0 / 0.4 ) );
}

.wm-chart-max,
.wm-chart-min,
.wm-chart-axis {
  font-size: 0.8125rem;
  color: var( --wm-chart-text-color, rgb( 33 37 41 / 0.75 ) );
}

.wm-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.wm-chart-table {
  margin-top: 0.5rem;
  font-size: 0.875rem;

  table {
    margin-top: 0.5rem;
  }

  th,
  td {
    padding: 0.125rem 1rem 0.125rem 0;
  }

  td {
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
}

.wm-bar-list {
  width: 100%;
  border-collapse: collapse;

  caption {
    caption-side: top;
    font-weight: 700;
    color: inherit;
  }

  th,
  td {
    padding: 0.25rem 0.5rem 0.25rem 0;
    border-bottom: 1px solid var( --wm-chart-grid-color, rgb( 0 0 0 / 0.1 ) );
    vertical-align: middle;
  }

  tbody th {
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}

.wm-bar-list-graph {
  width: 40%;
}

.wm-bar-list-bar {
  display: block;
  width: 100%;
  height: 0.625rem;

  rect {
    fill: var( --wm-chart-color, rgb( 13 110 253 ) );
  }
}

.wm-bar-list-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/*
 * World map (Widget\WorldMap) and maps of areas (Widget\ShapeMap): the
 * same --wm-chart-color in five shades, mixed with a pale land color; areas
 * without data stay land. The map keeps its proportions (the SVG's viewBox)
 * and the width of its column; a map of areas, often taller than wide,
 * never more than the height of the screen.
 */
.wm-world-map,
.wm-shape-map {
  margin: 0;
}

.wm-shape-map .wm-map-plot {
  max-height: 85vh;
}

.wm-map-plot {
  display: block;
  width: 100%;
  height: auto;
}

.wm-map-country {
  fill: var( --wm-map-land-color, rgb( 0 0 0 / 0.08 ) );
  stroke: var( --wm-map-border-color, rgb( 255 255 255 ) );
  stroke-width: 0.4;
  stroke-linejoin: round;

  &:hover {
    stroke: var( --wm-chart-axis-color, rgb( 0 0 0 / 0.6 ) );
    stroke-width: 1;
  }
}

.wm-map-level-1 { fill: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 20%, white ); }
.wm-map-level-2 { fill: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 40%, white ); }
.wm-map-level-3 { fill: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 60%, white ); }
.wm-map-level-4 { fill: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 80%, white ); }
.wm-map-level-5 { fill: var( --wm-chart-color, rgb( 13 110 253 ) ); }

.wm-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var( --wm-chart-text-color, rgb( 33 37 41 / 0.75 ) );
  font-variant-numeric: tabular-nums;
}

.wm-map-swatches {
  display: flex;

  span {
    width: 1.5rem;
    height: 0.75rem;
    background-color: var( --wm-map-swatch );
  }

  .wm-map-level-1 { --wm-map-swatch: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 20%, white ); }
  .wm-map-level-2 { --wm-map-swatch: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 40%, white ); }
  .wm-map-level-3 { --wm-map-swatch: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 60%, white ); }
  .wm-map-level-4 { --wm-map-swatch: color-mix( in srgb, var( --wm-chart-color, rgb( 13 110 253 ) ) 80%, white ); }
  .wm-map-level-5 { --wm-map-swatch: var( --wm-chart-color, rgb( 13 110 253 ) ); }
}

/*
 * Hero heights (Bootstrap\HeroHeight), the legacy jumbotron sizes: a
 * share of the screen height; svh does not jump when the address bar of a
 * phone browser shows or hides (vh for older browsers).
 */
.wm-hero-small {
  min-height: 25vh;
  min-height: 25svh;
}

.wm-hero-medium {
  min-height: 40vh;
  min-height: 40svh;

  @media ( max-width: 575.98px ) {
    min-height: 30vh;
    min-height: 30svh;
  }
}

.wm-hero-large {
  min-height: 70vh;
  min-height: 70svh;

  @media ( max-width: 575.98px ) {
    min-height: 60vh;
    min-height: 60svh;
  }
}

/*
 * Carousel with photos cut to a height (Bootstrap\Carousel::setCover()),
 * the hero heights; the caption centered in the free band between the
 * arrows, above the indicators, on phones too. The shade
 * (Carousel::setDarkened()) lies over the photo and under the caption.
 */
.wm-carousel-cover {
  .carousel-item {
    height: var( --wm-carousel-height );
  }

  .carousel-caption {
    top: 0;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.wm-carousel-small {
  --wm-carousel-height: 25vh;
  --wm-carousel-height: 25svh;
}

/* taller on phones, where the caption wraps on more lines */
.wm-carousel-medium {
  --wm-carousel-height: 40vh;
  --wm-carousel-height: 40svh;

  @media ( max-width: 575.98px ) {
    --wm-carousel-height: 60vh;
    --wm-carousel-height: 60svh;
  }
}

.wm-carousel-large {
  --wm-carousel-height: 70vh;
  --wm-carousel-height: 70svh;
}

.wm-carousel-full {
  --wm-carousel-height: 100vh;
  --wm-carousel-height: 100svh;
}

.wm-carousel-shade {
  position: absolute;
  inset: 0;
  background: var( --wm-carousel-shade, rgb( 0 0 0 / 0.5 ) );
}

/*
 * Separator (Widget\Separator), also used for <hr> inside a Prose: the
 * legacy short line fading at both ends. A site sets its color, length,
 * thickness and the space above and below: --wm-separator-color,
 * --wm-separator-width, --wm-separator-thickness, --wm-separator-space.
 */
.wm-separator,
.wm-prose hr {
  width: var( --wm-separator-width, 50% );
  max-width: 100%;
  height: var( --wm-separator-thickness, 2px );
  margin: var( --wm-separator-space, 3rem ) auto;
  border: 0;
  background: linear-gradient( to right, transparent, var( --wm-separator-color, #adb5bd ), transparent );
  opacity: 1;
}

/*
 * Prose (Widget\Prose): long texts, with a wider line spacing, emphasized
 * words in the color the site chooses and, if the site sets one, a text
 * size of their own (--wm-prose-size).
 */
.wm-prose {
  font-size: var( --wm-prose-size, inherit );
  line-height: 1.8;

  strong {
    color: var( --wm-prose-emphasis, inherit );
  }

  /* code: a key or a command in the text, and a block to copy, which scrolls sideways rather than breaking the page */
  code {
    font-size: 0.9em;
  }

  pre {
    padding: 0.75rem 1rem;
    overflow-x: auto;
    line-height: 1.5;
    border-radius: 0.375rem;
    background: var( --wm-prose-code-background, rgba( 128, 128, 128, 0.12 ) );

    code {
      font-size: 0.875em;
    }
  }

  /* tables: the first column is the thing looked up; a wide table scrolls inside its own box */
  table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    line-height: 1.5;

    th,
    td {
      padding: 0.5rem 0.75rem;
      vertical-align: top;
      text-align: start;
      border-bottom: 1px solid var( --wm-prose-rule, rgba( 128, 128, 128, 0.35 ) );
    }

    /* the heading row only: a row's own heading (<th scope="row">) keeps the line of its row */
    thead th {
      border-bottom-width: 2px;
    }
  }

  .wm-table-scroll {
    overflow-x: auto;
    margin-bottom: 1.5rem;

    table {
      margin-bottom: 0;
    }
  }
}

/*
 * Note (Widget\Note): a callout of one of three kinds, its label on top
 * so the kind never depends on the color alone. A site sets the color of
 * each kind (--wm-note-note, --wm-note-important, --wm-note-warning).
 */
.wm-note {
  --wm-note-color: var( --wm-note-note, #0969da );
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 0.25rem solid var( --wm-note-color );
  border-radius: 0 0.375rem 0.375rem 0;
  background: color-mix( in srgb, var( --wm-note-color ) 8%, transparent );

  > :last-child {
    margin-bottom: 0;
  }

  .wm-note-label {
    margin-bottom: 0.25rem;
    color: var( --wm-note-color );
  }
}

.wm-note-important {
  --wm-note-color: var( --wm-note-important, #8250df );
}

.wm-note-warning {
  --wm-note-color: var( --wm-note-warning, #9a6700 );
}

/*
 * Quotation (Widget\Quotation), the legacy blockquote: large italic serif
 * text between big grey marks, drawn as generated content with an empty
 * text alternative ("/ \"\""), so screen readers do not announce them
 * (browsers without that syntax keep the first declaration). A plain
 * <blockquote> in a Prose has the same look, centered: the texts mark up
 * their quotations and never carry classes.
 */
.wm-quotation {
  margin: 0;

  figcaption {
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.75;

    &::before {
      content: "\2014\00A0";
    }
  }
}

.wm-quotation blockquote,
.wm-prose blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  quotes: "\201C" "\201D";

  @media ( max-width: 575.98px ) {
    font-size: 1.25rem;
  }

  > p:last-child {
    margin-bottom: 0;
  }

  > p:first-child::before,
  > p:last-child::after {
    position: relative;
    font-size: 2em;
    font-style: normal;
    line-height: 0;
    color: var( --wm-quotation-marks-color, #adb5bd );
  }

  > p:first-child::before {
    content: open-quote;
    content: open-quote / "";
    top: 0.4em;
    margin-right: 0.1em;
  }

  > p:last-child::after {
    content: close-quote;
    content: close-quote / "";
    top: 0.5em;
    margin-left: 0.05em;
  }
}

.wm-prose blockquote {
  margin: 2rem 0;
  font-size: 1.25rem;
  text-align: center;

  @media ( max-width: 575.98px ) {
    font-size: 1.125rem;
  }
}

.wm-prose q {
  font-style: italic;
}

/* the h2 of a story is centered; a reference page sets --wm-prose-heading-align: start */
.wm-prose h2 {
  margin: 3.5rem 0 1.5rem;
  font-size: 1.75rem;
  text-align: var( --wm-prose-heading-align, center );
}

/*
 * A <details> in a Prose (the solutions of an exercise): a box that opens
 * with its <summary>, native keyboard and screen reader support, no script.
 * --wm-prose-details-border sets the color of the box (3:1 against the
 * background at least, WCAG 1.4.11).
 */
.wm-prose details {
  margin: 2rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var( --wm-prose-details-border, #6c757d );
  border-radius: 0.375rem;

  > summary {
    font-weight: 600;
    cursor: pointer;

    &:focus-visible {
      outline: 3px solid currentcolor;
      outline-offset: 3px;
    }
  }

  &[open] > summary {
    margin-bottom: 1rem;
  }
}

/*
 * ArrowLink (Widget\ArrowLink): a link underlined by a thin line with an
 * arrow after it, drawn as generated content with an empty text alternative
 * ("/ \"\""), so screen readers do not read it. The arrow slides a little
 * under the pointer, not with prefers-reduced-motion.
 */
.wm-arrow-link {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentcolor;
  text-decoration: none;

  &::after {
    content: "\2192";
    content: "\2192" / "";
    display: inline-block;
    margin-inline-start: 0.6em;
    transition: transform 0.2s;
  }

  &:hover::after {
    transform: translateX( 0.3em );
  }

  &:focus-visible {
    outline: 2px solid currentcolor;
    outline-offset: 4px;
  }

  @media ( prefers-reduced-motion: reduce ) {
    &::after {
      transition: none;
    }

    &:hover::after {
      transform: none;
    }
  }
}

/*
 * LinkIndex (Widget\LinkIndex): one line per link, title, description and
 * an arrow, between thin lines; the description under the title on narrow
 * screens. --wm-link-index-rule is the line above the first entry,
 * --wm-link-index-line the ones between.
 */
.wm-link-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var( --wm-link-index-rule, currentcolor );

  > li > a {
    display: grid;
    grid-template-columns: minmax( 0, 5fr ) minmax( 0, 6fr ) 2rem;
    gap: 1rem;
    align-items: baseline;
    padding: 1.6rem 0;
    border-bottom: 1px solid var( --wm-link-index-line, #dee2e6 );
    color: inherit;
    text-decoration: none;
    transition: padding 0.2s;

    &::after {
      content: "\2192";
      content: "\2192" / "";
      grid-column: 3;
      text-align: end;
    }

    &:hover {
      padding-inline-start: 0.75rem;
    }

    &:focus-visible {
      outline: 2px solid currentcolor;
      outline-offset: -2px;
    }

    > :is( h1, h2, h3, h4, h5, h6 ) {
      margin: 0;
    }

    > p {
      grid-column: 2;
      margin: 0;
    }

    @media ( max-width: 61.99rem ) {
      grid-template-columns: minmax( 0, 1fr ) 1.5rem;

      &::after {
        grid-column: 2;
        grid-row: 1;
      }

      > p {
        grid-column: 1;
        grid-row: 2;
      }
    }

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

/* PillNav (Bootstrap\PillNav): the selected pill has a ring, so the selection is not only a color */
.wm-pill {
  border: 2px solid transparent;

  &[aria-current="true"] {
    border-color: var( --bs-emphasis-color );
  }

  &:focus-visible {
    outline: 3px solid var( --bs-emphasis-color );
    outline-offset: 3px;
  }
}


/* Navbar::setCentered() (D80): expanded, the brand and the end group take two equal sides and the links the middle,
   so the links are centered on the screen, not in the space the brand and the end group leave; collapsed, nothing changes */
.wm-navbar-centered.navbar-expand > [class^="container"] {
  display: grid;
  grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
  align-items: center;
}
.wm-navbar-centered.navbar-expand > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
.wm-navbar-centered.navbar-expand .navbar-collapse { display: contents !important; }
.wm-navbar-centered.navbar-expand .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
.wm-navbar-centered.navbar-expand .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
@media ( min-width: 576px ) {
  .wm-navbar-centered.navbar-expand-sm > [class^="container"] {
    display: grid;
    grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
    align-items: center;
  }
  .wm-navbar-centered.navbar-expand-sm > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
  .wm-navbar-centered.navbar-expand-sm .navbar-collapse { display: contents !important; }
  .wm-navbar-centered.navbar-expand-sm .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
  .wm-navbar-centered.navbar-expand-sm .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
}
@media ( min-width: 768px ) {
  .wm-navbar-centered.navbar-expand-md > [class^="container"] {
    display: grid;
    grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
    align-items: center;
  }
  .wm-navbar-centered.navbar-expand-md > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
  .wm-navbar-centered.navbar-expand-md .navbar-collapse { display: contents !important; }
  .wm-navbar-centered.navbar-expand-md .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
  .wm-navbar-centered.navbar-expand-md .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
}
@media ( min-width: 992px ) {
  .wm-navbar-centered.navbar-expand-lg > [class^="container"] {
    display: grid;
    grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
    align-items: center;
  }
  .wm-navbar-centered.navbar-expand-lg > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
  .wm-navbar-centered.navbar-expand-lg .navbar-collapse { display: contents !important; }
  .wm-navbar-centered.navbar-expand-lg .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
  .wm-navbar-centered.navbar-expand-lg .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
}
@media ( min-width: 1200px ) {
  .wm-navbar-centered.navbar-expand-xl > [class^="container"] {
    display: grid;
    grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
    align-items: center;
  }
  .wm-navbar-centered.navbar-expand-xl > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
  .wm-navbar-centered.navbar-expand-xl .navbar-collapse { display: contents !important; }
  .wm-navbar-centered.navbar-expand-xl .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
  .wm-navbar-centered.navbar-expand-xl .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
}
@media ( min-width: 1400px ) {
  .wm-navbar-centered.navbar-expand-xxl > [class^="container"] {
    display: grid;
    grid-template-columns: minmax( max-content, 1fr ) auto minmax( max-content, 1fr );
    align-items: center;
  }
  .wm-navbar-centered.navbar-expand-xxl > [class^="container"] > .navbar-brand { grid-column: 1; justify-self: start; }
  .wm-navbar-centered.navbar-expand-xxl .navbar-collapse { display: contents !important; }
  .wm-navbar-centered.navbar-expand-xxl .navbar-collapse > .navbar-nav { grid-column: 2; margin: 0 !important; }
  .wm-navbar-centered.navbar-expand-xxl .wm-navbar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; }
}

/* NavbarAlignment::Start (D80): expanded, the links follow the brand after some air */
.wm-navbar-start.navbar-expand > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
@media ( min-width: 576px ) {
  .wm-navbar-start.navbar-expand-sm > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
}
@media ( min-width: 768px ) {
  .wm-navbar-start.navbar-expand-md > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
}
@media ( min-width: 992px ) {
  .wm-navbar-start.navbar-expand-lg > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
}
@media ( min-width: 1200px ) {
  .wm-navbar-start.navbar-expand-xl > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
}
@media ( min-width: 1400px ) {
  .wm-navbar-start.navbar-expand-xxl > [class^="container"] > .navbar-brand { margin-inline-end: 2.5rem; }
}

/*
 * A form while it is sent (Form\FormView): the spinner before "Please
 * wait..." on its disabled button, in the color of the button's text. Without
 * motion it stays a still ring: the words say what happens.
 */
.wm-busy-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.125em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wm-busy-spin 0.75s linear infinite;
}

@keyframes wm-busy-spin {
  to {
    transform: rotate( 360deg );
  }
}

@media ( prefers-reduced-motion: reduce ) {
  .wm-busy-spinner {
    animation: none;
  }
}

/*
 * A form whose work is done in steps (Form\Steps): under it, what is being
 * done, a progress bar, the list of the steps done, and what stopped the
 * work.
 */
.wm-steps {
  margin-top: 1rem;
}

.wm-steps-now {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.wm-steps-bar {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: 0.75rem;
  accent-color: var( --wm-chart-color, currentColor );
}

.wm-steps-done {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.wm-steps-error {
  color: #b02a37;
}

/*
 * A page of the login (Auth\LoginView): room between its parts, the button
 * of its form as wide as its box, the field of a code large with its digits
 * apart and centered, the help under a line, smaller.
 */
.wm-login > * + * {
  margin-top: 1.25rem;
}

.wm-login > p {
  margin-bottom: 0;
}

.wm-login form > :last-child,
.wm-login form > button[type="submit"] {
  width: 100%;
}

.wm-login input[autocomplete="one-time-code"] {
  font-size: 1.75rem;
  letter-spacing: 0.5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.wm-login-help {
  padding-top: 1.25rem;
  border-top: 1px solid rgb( 0 0 0 / 0.15 );
  font-size: 0.9375rem;
}

.wm-login-help p {
  margin-bottom: 0.5rem;
}

.wm-login-help form button[type="submit"] {
  width: auto;
}

/*
 * A page at least as tall as the window (Document::setFullHeight(), D89):
 * the footer at the bottom of a short page, the last part of <main>
 * stretched to it. Longer pages do not change.
 */
body.wm-full-height {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.wm-full-height > main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

body.wm-full-height > main > :last-child {
  flex: 1 0 auto;
}

/*
 * The box of a login (Bootstrap\LoginBox, D89): in the middle of its band
 * (of the page, in a page of full height), a white card with a soft shadow
 * and room inside.
 */
.wm-login-band {
  display: flex;
  align-items: center;
}

.wm-login-band > * {
  width: 100%;
}

.wm-login-box {
  box-shadow: 0 0.25rem 1.25rem rgb( 0 0 0 / 0.08 );
}

.wm-login-box > * {
  padding: 2rem;
}
