/* SADA Imigongo-Inspired Patterns */
/* Subtle geometric patterns inspired by Rwandan Imigongo art tradition */
/* These are purely decorative and should never interfere with content */

/* ============================================
   IMIGONGO PATTERN UTILITIES
   ============================================ */

/* Parallel line motif - echoes Imigongo's bold parallel lines */
.sada-pattern-lines {
  position: relative;
}

.sada-pattern-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    120deg,
    transparent,
    transparent 18px,
    color-mix(in srgb, var(--accent, #d4af37) 4%, transparent) 18px,
    color-mix(in srgb, var(--accent, #d4af37) 4%, transparent) 19px
  );
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

/* Diagonal cross-hatch - subtle texture for hero areas */
.sada-pattern-crosshatch {
  position: relative;
}

.sada-pattern-crosshatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 24px,
      color-mix(in srgb, var(--accent, #d4af37) 3%, transparent) 24px,
      color-mix(in srgb, var(--accent, #d4af37) 3%, transparent) 25px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 24px,
      color-mix(in srgb, var(--accent, #d4af37) 3%, transparent) 24px,
      color-mix(in srgb, var(--accent, #d4af37) 3%, transparent) 25px
    );
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Geometric diamond pattern - inspired by Imigongo symmetry */
.sada-pattern-diamond {
  position: relative;
}

.sada-pattern-diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg 85deg,
      color-mix(in srgb, var(--accent, #d4af37) 2%, transparent) 85deg 90deg
    );
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* Zigzag border - decorative divider */
.sada-pattern-zigzag-border {
  position: relative;
}

.sada-pattern-zigzag-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent, #d4af37) 15%, transparent) 25%,
    transparent 25%
  );
  background-size: 16px 8px;
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================
   HERO AREA PATTERN
   Applied to the main hero card in License Center
   ============================================ */
.hero-card-pattern {
  position: relative;
  overflow: hidden;
}

.hero-card-pattern::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: repeating-linear-gradient(
    115deg,
    transparent,
    transparent 30px,
    color-mix(in srgb, var(--accent, #d4af37) 5%, transparent) 30px,
    color-mix(in srgb, var(--accent, #d4af37) 5%, transparent) 31px
  );
  transform: rotate(-15deg);
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.hero-card-pattern > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTION DIVIDER PATTERN
   Subtle Imigongo-inspired divider between sections
   ============================================ */
.sada-section-divider {
  position: relative;
  height: 1px;
  background: var(--sada-border-color);
  margin: var(--sada-space-8) 0;
}

.sada-section-divider::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 7px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent, #d4af37) 30%, transparent) 20%,
    color-mix(in srgb, var(--accent, #d4af37) 30%, transparent) 80%,
    transparent
  );
  clip-path: polygon(
    0% 50%,
    10% 0%,
    20% 50%,
    30% 100%,
    40% 50%,
    50% 0%,
    60% 50%,
    70% 100%,
    80% 50%,
    90% 0%,
    100% 50%,
    90% 100%,
    80% 50%,
    70% 0%,
    60% 50%,
    50% 100%,
    40% 50%,
    30% 0%,
    20% 50%,
    10% 100%
  );
}

/* ============================================
   NAVIGATION BAND PATTERN
   Subtle texture for the navigation area
   ============================================ */
.sada-nav-pattern {
  position: relative;
}

.sada-nav-pattern::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent, #d4af37) 20%, transparent),
    color-mix(in srgb, var(--accent, #d4af37) 20%, transparent) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.6;
}

/* ============================================
   CARD ACCENT STRIPE
   Decorative left border with Imigongo-inspired geometry
   ============================================ */
.sada-card-accent-stripe {
  position: relative;
  border-left: 3px solid var(--accent, #d4af37);
}

.sada-card-accent-stripe::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    var(--accent, #d4af37),
    var(--accent, #d4af37) 12px,
    color-mix(in srgb, var(--accent, #d4af37) 50%, transparent) 12px,
    color-mix(in srgb, var(--accent, #d4af37) 50%, transparent) 16px
  );
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .sada-pattern-lines::before,
  .sada-pattern-crosshatch::before,
  .sada-pattern-diamond::before,
  .hero-card-pattern::before {
    /* Patterns remain static - no animation to reduce */
  }
}

/* ============================================
   HIGH CONTRAST MODE
   Reduce pattern opacity for better readability
   ============================================ */
@media (prefers-contrast: high) {
  .sada-pattern-lines::before,
  .sada-pattern-crosshatch::before,
  .sada-pattern-diamond::before,
  .hero-card-pattern::before {
    opacity: 0.2;
  }
}

/* ============================================
   SADA IMIGONGO LATTICE — CANVAS, NAVIGATION, CARDS
   ============================================
   The platform paints its Imigongo as an SVG tile that is used as a MASK
   (a stencil) with the accent-derived ink painted through it, so the weave
   follows the operator's selected accent instead of carrying a fixed colour.
   A picture can never carry a var(), so the coloured artwork is only the
   fallback for engines without mask-composite.

   The tokens below are the same shared values the platform uses
   (web/admin-v2/css/01-variables.css), so the License Center and the
   Restaurant Platform read as one product. */

:root {
  --imig-cell: 96px;
  --imig-page-cell: var(--imig-cell);
  --imig-light-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2796%27%20height%3D%2796%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M0%200%2022%200%200%2022Z%27%20fill%3D%27%233b3833%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M96%200%2074%200%2096%2022Z%27%20fill%3D%27%233b3833%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M0%2096%2022%2096%200%2074Z%27%20fill%3D%27%233b3833%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M96%2096%2074%2096%2096%2074Z%27%20fill%3D%27%233b3833%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M48%205%2091%2048%2048%2091%205%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%233b3833%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M48%2017%2079%2048%2048%2079%2017%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%236d675c%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.2%27%2F%3E%3Cpath%20d%3D%27M48%2029%2067%2048%2048%2067%2029%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%236d675c%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.2%27%2F%3E%3Cpath%20d%3D%27M48%2038%2058%2048%2048%2058%2038%2048Z%27%20fill%3D%27%238c6a2f%27%20fill-opacity%3D%270.6%27%2F%3E%3Cpath%20d%3D%27M48%2044.5%2051.5%2048%2048%2051.5%2044.5%2048Z%27%20fill%3D%27%233b3833%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M24%2019%2029%2024%2024%2029%2019%2024Z%27%20fill%3D%27%236d675c%27%20fill-opacity%3D%270.34%27%2F%3E%3Cpath%20d%3D%27M72%2019%2077%2024%2072%2029%2067%2024Z%27%20fill%3D%27%236d675c%27%20fill-opacity%3D%270.34%27%2F%3E%3Cpath%20d%3D%27M24%2067%2029%2072%2024%2077%2019%2072Z%27%20fill%3D%27%236d675c%27%20fill-opacity%3D%270.34%27%2F%3E%3Cpath%20d%3D%27M72%2067%2077%2072%2072%2077%2067%2072Z%27%20fill%3D%27%236d675c%27%20fill-opacity%3D%270.34%27%2F%3E%3Cpath%20d%3D%27M24%2024%2034%2034M72%2024%2062%2034M24%2072%2034%2062M72%2072%2062%2062%27%20fill%3D%27none%27%20stroke%3D%27%233b3833%27%20stroke-opacity%3D%270.38%27%20stroke-width%3D%271%27%2F%3E%3Cpath%20d%3D%27M48%200v5M48%2091v5M0%2048h5M91%2048h5%27%20fill%3D%27none%27%20stroke%3D%27%236d675c%27%20stroke-opacity%3D%270.44%27%20stroke-width%3D%271.2%27%2F%3E%3C%2Fsvg%3E");
  --imig-dark-bg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2796%27%20height%3D%2796%27%20viewBox%3D%270%200%2096%2096%27%3E%3Cpath%20d%3D%27M0%200%2022%200%200%2022Z%27%20fill%3D%27%23c9c5ba%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M96%200%2074%200%2096%2022Z%27%20fill%3D%27%23c9c5ba%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M0%2096%2022%2096%200%2074Z%27%20fill%3D%27%23c9c5ba%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M96%2096%2074%2096%2096%2074Z%27%20fill%3D%27%23c9c5ba%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M48%205%2091%2048%2048%2091%205%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%23c9c5ba%27%20stroke-opacity%3D%270.52%27%20stroke-width%3D%271.6%27%2F%3E%3Cpath%20d%3D%27M48%2017%2079%2048%2048%2079%2017%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%239a968b%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.2%27%2F%3E%3Cpath%20d%3D%27M48%2029%2067%2048%2048%2067%2029%2048Z%27%20fill%3D%27none%27%20stroke%3D%27%239a968b%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.2%27%2F%3E%3Cpath%20d%3D%27M48%2038%2058%2048%2048%2058%2038%2048Z%27%20fill%3D%27%23cbb27a%27%20fill-opacity%3D%270.5%27%2F%3E%3Cpath%20d%3D%27M48%2044.5%2051.5%2048%2048%2051.5%2044.5%2048Z%27%20fill%3D%27%23c9c5ba%27%20fill-opacity%3D%270.26%27%2F%3E%3Cpath%20d%3D%27M24%2019%2029%2024%2024%2029%2019%2024Z%27%20fill%3D%27%239a968b%27%20fill-opacity%3D%270.36%27%2F%3E%3Cpath%20d%3D%27M72%2019%2077%2024%2072%2029%2067%2024Z%27%20fill%3D%27%239a968b%27%20fill-opacity%3D%270.36%27%2F%3E%3Cpath%20d%3D%27M24%2067%2029%2072%2024%2077%2019%2072Z%27%20fill%3D%27%239a968b%27%20fill-opacity%3D%270.36%27%2F%3E%3Cpath%20d%3D%27M72%2067%2077%2072%2072%2077%2067%2072Z%27%20fill%3D%27%239a968b%27%20fill-opacity%3D%270.36%27%2F%3E%3Cpath%20d%3D%27M24%2024%2034%2034M72%2024%2062%2034M24%2072%2034%2062M72%2072%2062%2062%27%20fill%3D%27none%27%20stroke%3D%27%23c9c5ba%27%20stroke-opacity%3D%270.52%27%20stroke-width%3D%271%27%2F%3E%3Cpath%20d%3D%27M48%200v5M48%2091v5M0%2048h5M91%2048h5%27%20fill%3D%27none%27%20stroke%3D%27%239a968b%27%20stroke-opacity%3D%270.54%27%20stroke-width%3D%271.2%27%2F%3E%3C%2Fsvg%3E");
  --imig-weave: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'96'%20height%3D'96'%20viewBox%3D'0%200%2096%2096'%3E%3Cpath%20d%3D'M0%200%2022%200%200%2022Z'%20fill%3D'%23fff'%20fill-opacity%3D'.26'%2F%3E%3Cpath%20d%3D'M96%200%2074%200%2096%2022Z'%20fill%3D'%23fff'%20fill-opacity%3D'.26'%2F%3E%3Cpath%20d%3D'M0%2096%2022%2096%200%2074Z'%20fill%3D'%23fff'%20fill-opacity%3D'.26'%2F%3E%3Cpath%20d%3D'M96%2096%2074%2096%2096%2074Z'%20fill%3D'%23fff'%20fill-opacity%3D'.26'%2F%3E%3Cpath%20d%3D'M48%205%2091%2048%2048%2091%205%2048Z'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-opacity%3D'.38'%20stroke-width%3D'1.6'%2F%3E%3Cpath%20d%3D'M48%2017%2079%2048%2048%2079%2017%2048Z'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-opacity%3D'.44'%20stroke-width%3D'1.2'%2F%3E%3Cpath%20d%3D'M48%2029%2067%2048%2048%2067%2029%2048Z'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-opacity%3D'.44'%20stroke-width%3D'1.2'%2F%3E%3Cpath%20d%3D'M48%2038%2058%2048%2048%2058%2038%2048Z'%20fill%3D'%23fff'%20fill-opacity%3D'.6'%2F%3E%3Cpath%20d%3D'M48%2044.5%2051.5%2048%2048%2051.5%2044.5%2048Z'%20fill%3D'%23fff'%20fill-opacity%3D'.26'%2F%3E%3Cpath%20d%3D'M24%2019%2029%2024%2024%2029%2019%2024Z'%20fill%3D'%23fff'%20fill-opacity%3D'.34'%2F%3E%3Cpath%20d%3D'M72%2019%2077%2024%2072%2029%2067%2024Z'%20fill%3D'%23fff'%20fill-opacity%3D'.34'%2F%3E%3Cpath%20d%3D'M24%2067%2029%2072%2024%2077%2019%2072Z'%20fill%3D'%23fff'%20fill-opacity%3D'.34'%2F%3E%3Cpath%20d%3D'M72%2067%2077%2072%2072%2077%2067%2072Z'%20fill%3D'%23fff'%20fill-opacity%3D'.34'%2F%3E%3Cpath%20d%3D'M24%2024%2034%2034M72%2024%2062%2034M24%2072%2034%2062M72%2072%2062%2062'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-opacity%3D'.38'%20stroke-width%3D'1'%2F%3E%3Cpath%20d%3D'M48%200v5M48%2091v5M0%2048h5M91%2048h5'%20fill%3D'none'%20stroke%3D'%23fff'%20stroke-opacity%3D'.44'%20stroke-width%3D'1.2'%2F%3E%3C%2Fsvg%3E");

  --imig-page-opacity: .30;
  --imig-page-opacity-dark: .34;
  --imig-page-mask: linear-gradient(180deg,#000 0%,rgba(0,0,0,.94) 40%,rgba(0,0,0,.86) 100%);
  --imig-page-mask-dark: linear-gradient(180deg,#000 0%,rgba(0,0,0,.95) 42%,rgba(0,0,0,.88) 100%);

  --imig-card-size: 120px;
  --imig-card-offset: -30px;
  --imig-card-offset-y: -12px;
  --imig-card-mask: linear-gradient(90deg,transparent calc(100% - 96px),rgba(0,0,0,.4) calc(100% - 56px),rgba(0,0,0,.75) calc(100% - 30px),#000 100%);

  /* The canvas ink is accent-major so the lattice carries the tenant's own
     colour. The dark theme mixes toward cream, the light theme toward
     charcoal, so the weave always sits as a faded trace of the ground. */
  --sada-page-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 55%, #F6E9C9);
  --sada-nav-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 58%, #F6E9C9);
  --sada-card-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 55%, #F6E9C9);
}

/* ------------------------------------------------------------
   CANVAS LATTICE
   The page ground. Painted behind everything: body::before is a
   negative-z-index child of a non-stacking-context body, so it lands
   above the root background and below every card, table and control.
   ------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--imig-dark-bg);
  background-size: var(--imig-page-cell) var(--imig-page-cell);
  background-repeat: repeat;
  opacity: var(--imig-page-opacity-dark);
  -webkit-mask-image: var(--imig-page-mask-dark);
  mask-image: var(--imig-page-mask-dark);
}

@supports (mask-composite: intersect) {
  body::before {
    background-image: none;
    background-color: var(--sada-page-imig-ink);
    -webkit-mask-image: var(--imig-dark-bg), var(--imig-page-mask-dark);
    mask-image: var(--imig-dark-bg), var(--imig-page-mask-dark);
    -webkit-mask-size: var(--imig-page-cell) var(--imig-page-cell), 100% 100%;
    mask-size: var(--imig-page-cell) var(--imig-page-cell), 100% 100%;
    -webkit-mask-repeat: repeat, no-repeat;
    mask-repeat: repeat, no-repeat;
    -webkit-mask-position: 0 0, 0 0;
    mask-position: 0 0, 0 0;
    mask-composite: intersect, add;
  }
}

/* ------------------------------------------------------------
   NAVIGATION BAND
   The area rail is a translucent, blurred band, so the lattice reads
   through it — but blurred. This layer lays the crisp weave inside
   the band itself, so the navigation carries the same geometry as the
   platform's rail band instead of a flat wash.
   ------------------------------------------------------------ */
.area-nav {
  isolation: isolate;
}

.area-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--imig-weave);
  background-size: var(--imig-cell) var(--imig-cell);
  background-repeat: repeat;
  opacity: .26;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

@supports (mask-composite: intersect) {
  .area-nav::before {
    background-image: none;
    background-color: var(--sada-nav-imig-ink);
    -webkit-mask-image: var(--imig-weave), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: var(--imig-weave), linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-size: var(--imig-cell) var(--imig-cell), 100% 100%;
    mask-size: var(--imig-cell) var(--imig-cell), 100% 100%;
    -webkit-mask-repeat: repeat, no-repeat;
    mask-repeat: repeat, no-repeat;
    -webkit-mask-position: 0 0, 0 0;
    mask-position: 0 0, 0 0;
    mask-composite: intersect, add;
  }
}

/* ------------------------------------------------------------
   CARD EMBLEM
   The tenant's own motif, cropped by the card's own right edge and
   faded out toward the middle so it never reaches a value, a label or
   a control — the same treatment the platform's cards carry.
   ------------------------------------------------------------ */
.license-center-hero,
.authority-dialog {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.license-center-hero::before,
.authority-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--imig-dark-bg);
  background-size: var(--imig-card-size) var(--imig-card-size);
  background-repeat: repeat-y;
  background-position: right var(--imig-card-offset) top var(--imig-card-offset-y);
  opacity: .5;
  -webkit-mask-image: var(--imig-card-mask);
  mask-image: var(--imig-card-mask);
}

@supports (mask-composite: intersect) {
  .license-center-hero::before,
  .authority-dialog::before {
    background-image: none;
    background-color: var(--sada-card-imig-ink);
    -webkit-mask-image: var(--imig-dark-bg), var(--imig-card-mask);
    mask-image: var(--imig-dark-bg), var(--imig-card-mask);
    -webkit-mask-size: var(--imig-card-size) var(--imig-card-size), 100% 100%;
    mask-size: var(--imig-card-size) var(--imig-card-size), 100% 100%;
    -webkit-mask-repeat: repeat-y, no-repeat;
    mask-repeat: repeat-y, no-repeat;
    -webkit-mask-position: right var(--imig-card-offset) top var(--imig-card-offset-y), 0 0;
    mask-position: right var(--imig-card-offset) top var(--imig-card-offset-y), 0 0;
    mask-composite: intersect, add;
  }
}

/* ------------------------------------------------------------
   LIGHT THEME
   The lattice artwork and its ink both swap: the light theme needs the
   charcoal artwork and an ink mixed toward charcoal, or the weave would
   sit as a bright halo on a cream ground.
   ------------------------------------------------------------ */
@media (prefers-color-scheme: light) {
  :root {
    --sada-page-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 55%, #2B2620);
    --sada-nav-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 60%, #2B2620);
    --sada-card-imig-ink: color-mix(in srgb, var(--accent, #d4af37) 55%, #2B2620);
  }

  body::before {
    background-image: var(--imig-light-bg);
    opacity: var(--imig-page-opacity);
    -webkit-mask-image: var(--imig-page-mask);
    mask-image: var(--imig-page-mask);
  }

  @supports (mask-composite: intersect) {
    body::before {
      background-image: none;
      background-color: var(--sada-page-imig-ink);
      -webkit-mask-image: var(--imig-light-bg), var(--imig-page-mask);
      mask-image: var(--imig-light-bg), var(--imig-page-mask);
    }
  }

  .license-center-hero::before,
  .authority-dialog::before {
    background-image: var(--imig-light-bg);
    opacity: .5;
  }

  @supports (mask-composite: intersect) {
    .license-center-hero::before,
    .authority-dialog::before {
      background-image: none;
      background-color: var(--sada-card-imig-ink);
      -webkit-mask-image: var(--imig-light-bg), var(--imig-card-mask);
      mask-image: var(--imig-light-bg), var(--imig-card-mask);
    }
  }
}

/* ------------------------------------------------------------
   HIGH CONTRAST
   The weave is decoration; when the reader asks for more contrast it
   steps back rather than competing with the wording.
   ------------------------------------------------------------ */
@media (prefers-contrast: high) {
  body::before {
    opacity: .14;
  }

  .area-nav::before,
  .license-center-hero::before,
  .authority-dialog::before {
    opacity: .18;
  }
}
