/* VALBLOX Support (support.html), on top of styles.css + pages.css. The contact panel is the page's one heavy
   (Norse notch) panel: three bays split by the bronze plait. Everything else is the light tier. Built by
   brand/viking/src/page/build_support.py; no script (native <details>, anchor links). */

.sup-top { display: flex; flex-direction: column; }
.sup-top > .note { margin-top: 14px; }

/* ---------------------------------------------------------------- ways to reach us (key panel) */
.sup-contact { padding: 26px 28px 28px; }
.sup-contact > .plate {
  --face: radial-gradient(70% 120% at 50% -20%, rgba(var(--lilac-rgb), .07) 0%, rgba(var(--lilac-rgb), 0) 100%),
          linear-gradient(122deg, var(--card) 0%, var(--card-b) 100%);
}
.sup-bays { display: grid; grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); column-gap: 26px; align-items: stretch; }
.sup-sep { align-self: center; width: 14px; height: 112px; background: url("assets/img/vplait-bronze-112.svg") center / 14px 112px no-repeat; }
.sup-bay { display: flex; flex-direction: column; min-width: 0; }
.sup-bay__head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sup-bay__name { min-width: 0; display: flex; flex-direction: column; }
.sup-bay__ic { position: relative; isolation: isolate; width: 64px; height: 64px; display: grid; place-items: center; color: var(--lilac); }
.sup-bay__ic > .plate {
  --c: 14px; --n: 4px; --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .3);
  --face: radial-gradient(circle at 50% 42%, rgba(var(--lilac-rgb), .16) 0%, rgba(var(--lilac-rgb), 0) 68%), linear-gradient(180deg, #19202B 0%, #1D2531 100%);
}
.sup-bay__ic .ic { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(var(--lilac-rgb), .35)); }
.sup-bay__k { font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.sup-bay__t { font-size: 18px; line-height: 24px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; }
.sup-mail { font-family: "Skranji", sans-serif; font-size: 18px; letter-spacing: .4px; text-transform: none; overflow-wrap: anywhere; }
.sup-bay__p { margin: 14px 0 18px; font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .3px; color: var(--muted); }
.sup-soon { color: var(--lilac-light); }
.sup-bay > .btn { margin-top: auto; }
.sup-bay .btn .ic { width: 20px; height: 20px; }

/* in place of a control that would go nowhere yet: a recessed line, where it will be | a lamp that is not lit */
.sup-status { margin-top: auto; justify-content: space-between; padding: 0 14px 2px; font-family: "Skranji", sans-serif; font-size: 14px; letter-spacing: .4px; color: var(--muted); }
.sup-status__w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-status b { font-weight: 400; color: var(--white); }
.sup-lamp { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .6px; color: var(--gold); text-transform: uppercase; }
.sup-lamp i {   /* a small bronze-set rune stone, dark: off */
  width: 10px; height: 10px; flex: none; transform: rotate(45deg);
  background: radial-gradient(circle at 35% 35%, rgba(var(--gold-rgb), .55) 0%, rgba(var(--gold-rgb), .18) 70%);
  box-shadow: 0 0 0 1.5px var(--bz4), 0 0 6px rgba(var(--gold-rgb), .25);
}

/* a promise the operator has not confirmed yet (build_support.py confirm()), marked like the gaps on the legal pages */
.sup-todo {
  padding: 0 5px 1px; color: inherit; background: rgba(var(--gold-rgb), .1); border: 1px dashed rgba(var(--gold-rgb), .55);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sup-todo__k { font-size: .85em; letter-spacing: .3px; color: var(--gold); white-space: nowrap; }

/* ---------------------------------------------------------------- questions: topic list | groups */
.sup-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.sup-nav { position: sticky; top: calc(var(--bar-h) + 16px); isolation: isolate; padding: 10px; }
.sup-nav > .plate { --c: 12px; --n: 4px; --face: linear-gradient(122deg, var(--card) 0%, var(--card-b) 100%); }
.sup-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px 2px;
  font-size: 14px; line-height: 18px; letter-spacing: 1.1px; color: var(--lilac); text-transform: uppercase;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}
.sup-nav a .ic { width: 18px; height: 18px; flex: none; }
.sup-nav__more { margin: 8px 2px 2px; padding: 12px 10px 4px; border-top: 1px solid rgba(var(--hi), .55); box-shadow: inset 0 1px 0 rgba(var(--lo), .6);
  display: flex; flex-direction: column; gap: 4px; font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--muted); }
.sup-nav .sup-nav__more a { min-height: 32px; padding: 0 8px 1px; margin: 0 -8px; gap: 8px; font-family: "Skranji", sans-serif; font-size: 14px; letter-spacing: .3px; text-transform: none; }
.sup-nav__more a .ic { width: 16px; height: 16px; }
.sup-nav a:hover, .sup-nav a:focus-visible { outline: none; color: var(--lilac-light); background: rgba(var(--lilac-rgb), .1); }
.sup-nav a:focus-visible { box-shadow: inset 0 0 0 2px var(--lilac); }
.sup-groups { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sup-group__t { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 17px; line-height: 24px; letter-spacing: 1px; color: var(--white); text-transform: uppercase; }
.sup-group__t .ic { width: 20px; height: 20px; flex: none; color: var(--lilac); }
.sup-group:target .sup-group__t { color: var(--lilac-light); text-shadow: 0 0 12px rgba(var(--lilac-rgb), .4); }

/* FAQ, kit workaround: pages_kit.faq() puts each item's plate inside <details> but outside <summary>, and a closed
   <details> does not paint that part, so closed questions had no plate. Paint the content slot, hide only the answer. */
.sup .faq__i::details-content { content-visibility: visible; }
.sup .faq__i:not([open]) > .faq__a { display: none; }

/* ---------------------------------------------------------------- responsible play */
.sup-play { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.sup-play li { display: flex; align-items: flex-start; gap: 12px; font-family: "Skranji", sans-serif; font-size: 14px; line-height: 21px; letter-spacing: .3px; color: var(--muted); }
.sup-play li .ic { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.sup-play b { font-weight: 400; color: var(--white); }
.sup-play__more { margin-top: 18px; font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .3px; color: var(--muted); }
.sup-play__more a { color: var(--lilac); text-decoration: underline; text-underline-offset: 2px; }
.sup-play__more a:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

/* ---------------------------------------------------------------- narrower */
@container page (max-width: 820px) {   /* too narrow for three: they stack, split by the flat plait */
  .sup-contact { padding: 22px 20px 24px; }
  .sup-bays { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .sup-sep { justify-self: center; width: 88px; height: 12px; background: url("assets/img/plait-bronze.svg") center / 88px 12px no-repeat; }
  .sup-bay__ic { width: 56px; height: 56px; }
  .sup-bay__ic .ic { width: 26px; height: 26px; }
  .sup-bay__p { margin: 12px 0 14px; }
  .sup-body { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sup-nav { position: static; padding: 0; }
  .sup-nav > .plate { display: none; }
  .sup-nav ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sup-nav li { display: flex; }
  .sup-nav a {   /* chips: recessed plates like the bar's promo tags */
    min-height: 36px; padding: 0 12px 2px; font-size: 12px; gap: 8px; background: #1C2330;
    box-shadow: inset 0 1px 0 rgba(var(--lo), .5), inset 0 -1px 0 rgba(var(--hi), .2), inset 0 0 0 1px var(--rim-iron);
  }
  .sup-nav a .ic { width: 15px; height: 15px; }
  .sup-nav__more { display: none; }   /* the email is right above, in the contact panel */
  .sup-play { grid-template-columns: minmax(0, 1fr); }
}

/* ================================================================ pages-v2 (support_v2_css.py) */
/* questions: one card per topic (.pfaq, pages.css); the topic you jumped to lights its card's rim and title */
.sup-group { scroll-margin-top: calc(var(--bar-h) + 16px); }
.sup-group:target > .plate { --rim: rgba(var(--lilac-rgb), .5); --glow: inset 0 0 18px rgba(var(--lilac-rgb), .1); }
.sup-group:target .pfaq__t { color: var(--v-frost); text-shadow: 0 0 12px rgba(var(--v-frost-rgb), .35); }
.sup-group:target .pfaq__t .ic { filter: drop-shadow(0 0 6px rgba(var(--v-frost-rgb), .5)); }
/* ... and its topic in the list (no script: the jumped-to card is :target); the live topics' anchors */
.sup:has(#account:target) .sup-nav a[href="#account"],
.sup:has(#payments:target) .sup-nav a[href="#payments"],
.sup:has(#games:target) .sup-nav a[href="#games"],
.sup:has(#rewards:target) .sup-nav a[href="#rewards"],
.sup:has(#safety:target) .sup-nav a[href="#safety"] { color: var(--v-frost); background: rgba(var(--v-frost-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--v-frost-rgb), .5); }
/* the email address wraps at its @ (support_v2.py puts a <wbr> there), never inside a word */
.sup-mail { overflow-wrap: normal; }

/* phones and narrow windows: the topic chips stay under the header, a strip of the header's own colour */
@container page (max-width: 820px) {
  .sup-nav {
    position: sticky; top: var(--bar-h); z-index: 5; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad);
    background: color-mix(in srgb, var(--header) 94%, transparent); box-shadow: 0 1px 0 var(--rim-iron), 0 8px 16px rgba(4, 7, 12, .28);
  }
  @supports (backdrop-filter: blur(1px)) { .sup-nav { background: color-mix(in srgb, var(--header) 84%, transparent); backdrop-filter: blur(8px); } }
  .sup-nav ul {   /* scrolls sideways inside itself; the right edge fades to say there is more */
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .sup-nav ul::-webkit-scrollbar { display: none; }
  .sup-nav li { flex: none; }
  .sup-group { scroll-margin-top: calc(var(--bar-h) + 72px); }
}
