/**
 * SRD26 exhibitor index — "data-poster editorial" skin.
 *
 * Standalone stylesheet: does NOT layer on sratix-exhibitors-grid.css. Every
 * rule is scoped under .sratix-exgrid-root--srd26 so nothing leaks into the
 * theme or the legacy grid.
 *
 * Design tokens are the live SRD26 theme's own:
 *   --RED #cc251c · --NAVY #062846 · Outfit · border-radius 0
 *
 * The page is set as ruled paper — entries are separated by 1px grid gaps
 * rather than being cards. No shadows, no radius, no fills.
 *
 * @package SRAtix_Client
 */

.sratix-exgrid-root--srd26 {
  --sxg26-red:        #cc251c;
  --sxg26-navy:       #062846;
  --sxg26-paper:      #ffffff;
  --sxg26-paper-sunk: #f4f6f8;
  --sxg26-plate:      #ffffff;

  /* Neutrals biased toward the navy — never a flat mid-grey. */
  --sxg26-ink:    #062846;
  --sxg26-ink-60: #5a6b7a;
  --sxg26-ink-40: #8695a3;
  --sxg26-rule:   #c9d2d9;

  --sxg26-font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sxg26-measure: 66ch;

  font-family: var(--sxg26-font);
  color: var(--sxg26-ink);
  /* NOTE: do NOT set `container-type: inline-size` here. It applies inline-size
     containment, so the root's contents stop contributing to its intrinsic
     width — and because Elementor wraps widgets in a flex container, the widget
     then shrink-to-fits to ZERO and the whole grid collapses. No @container
     query is used in this file, so containment buys nothing. */
}

@media (prefers-color-scheme: dark) {
  .sratix-exgrid-root--srd26 {
    --sxg26-paper:      #041b2f;
    --sxg26-paper-sunk: #082741;
    --sxg26-ink:        #eaf1f6;
    --sxg26-ink-60:     #9fb3c4;
    --sxg26-ink-40:     #6d8598;
    --sxg26-rule:       #16405c;
    --sxg26-red:        #ff4a3d;
    /* Logo plate stays light: brand marks assume a light backdrop. */
    --sxg26-plate:      #f2f5f7;
  }
}

.sratix-exgrid-root--srd26 *,
.sratix-exgrid-root--srd26 *::before,
.sratix-exgrid-root--srd26 *::after { box-sizing: border-box; }

/* Hello Elementor's reset.css paints every <button> with a #c36 background and
   keeps it on :hover/:focus/:active. It bled onto the exhibitor title, the
   modal close button and the reveal-email button. Neutralise it once for every
   button in our scopes, then let the component rules add back what they want.
   The :where() wrapper keeps specificity at 0 so those rules still win. */
:where(.sratix-exgrid-root--srd26, .sxg26-dialog, .sxg26-lb) button,
:where(.sratix-exgrid-root--srd26, .sxg26-dialog, .sxg26-lb) button:hover,
:where(.sratix-exgrid-root--srd26, .sxg26-dialog, .sxg26-lb) button:focus,
:where(.sratix-exgrid-root--srd26, .sxg26-dialog, .sxg26-lb) button:active,
:where(.sratix-exgrid-root--srd26, .sxg26-dialog, .sxg26-lb) button:focus-visible {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  border-radius: 0;
}

/* ── Filters ──────────────────────────────────────────────────────── */

.sratix-exgrid-root--srd26 .sxg26-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 2.4rem;
  margin: 0 0 1.3rem;
  padding: 0;
}

.sratix-exgrid-root--srd26 .sxg26-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sratix-exgrid-root--srd26 .sxg26-field > label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  margin: 0;
}

.sratix-exgrid-root--srd26 .sxg26-field input,
.sratix-exgrid-root--srd26 .sxg26-field select {
  font-family: var(--sxg26-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sxg26-ink);
  /* An explicit background, not `transparent` — a transparent select renders
     its native option list as near-white text on the system's white menu. */
  background-color: var(--sxg26-paper);
  border: 0;
  border-bottom: 2px solid var(--sxg26-ink);
  border-radius: 0;
  padding: .25rem 1.6rem .3rem 0;
  min-width: 12rem;
  -webkit-appearance: none;
  appearance: none;
}

.sratix-exgrid-root--srd26 .sxg26-field select option {
  background-color: #ffffff;
  color: #062846;
  font-weight: 500;
}

.sratix-exgrid-root--srd26 .sxg26-field input { min-width: 15rem; }
.sratix-exgrid-root--srd26 .sxg26-field input::placeholder {
  color: var(--sxg26-ink-40);
  font-weight: 400;
  opacity: 1;
}

.sratix-exgrid-root--srd26 .sxg26-field select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right .55rem center, right .2rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.sratix-exgrid-root--srd26 .sxg26-field input:focus-visible,
.sratix-exgrid-root--srd26 .sxg26-field select:focus-visible {
  outline: 0;
  border-bottom-color: var(--sxg26-red);
  box-shadow: 0 2px 0 var(--sxg26-red);
}

.sratix-exgrid-root--srd26 .sxg26-tally {
  margin: 0 0 .45rem auto;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-60);
}
.sratix-exgrid-root--srd26 .sxg26-tally__n {
  color: var(--sxg26-red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sratix-exgrid-root--srd26 .sxg26-submit {
  font-family: var(--sxg26-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sxg26-red);
  border: 0;
  border-radius: 0;
  padding: .6rem 1.1rem;
  cursor: pointer;
}

/* ── Area legend (the colour key, and the area filter) ────────────── */

.sratix-exgrid-root--srd26 .sxg26-legend-wrap {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--sxg26-rule);
  margin-bottom: 0;
}

.sratix-exgrid-root--srd26 .sxg26-legend-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  margin: 0 0 .6rem;
  padding: 0;
}

.sratix-exgrid-root--srd26 .sxg26-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sratix-exgrid-root--srd26 .sxg26-legend li { margin: 0; padding: 0; }

.sratix-exgrid-root--srd26 .sxg26-legend__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--sxg26-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-60);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .15rem 0;
  cursor: pointer;
}
.sratix-exgrid-root--srd26 .sxg26-legend__btn:hover { color: var(--sxg26-ink); }
.sratix-exgrid-root--srd26 .sxg26-legend__btn[aria-pressed="true"] {
  color: var(--sxg26-ink);
  border-bottom-color: var(--sxg26-c, var(--sxg26-ink));
}
.sratix-exgrid-root--srd26 .sxg26-legend__btn:focus-visible {
  outline: 2px solid var(--sxg26-red);
  outline-offset: 3px;
}

.sratix-exgrid-root--srd26 .sxg26-sw {
  width: 10px;
  height: 10px;
  background: var(--sxg26-c, var(--sxg26-ink-40));
  flex: none;
}

/* Area select: a live swatch sits beside the control showing the chosen
   colour, because a native <option> cannot carry a real colour block. */
.sratix-exgrid-root--srd26 .sxg26-select-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 2px solid var(--sxg26-ink);
}
.sratix-exgrid-root--srd26 .sxg26-select-wrap select {
  border-bottom: 0;
  flex: 1;
  min-width: 10rem;
}
.sratix-exgrid-root--srd26 .sxg26-select-sw {
  width: 12px;
  height: 12px;
  flex: none;
  outline: 1px dashed currentColor;
  outline-offset: 0;
}
.sratix-exgrid-root--srd26 .sxg26-field--area:focus-within .sxg26-select-wrap {
  border-bottom-color: var(--sxg26-red);
  box-shadow: 0 2px 0 var(--sxg26-red);
}

/* ── Directory: ruled paper, not cards ────────────────────────────── */

.sratix-exgrid-root--srd26 .sratix-exgrid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1px;                              /* the gap IS the rule */
  background: var(--sxg26-rule);
  border-bottom: 1px solid var(--sxg26-rule);
  margin: 0;
  padding: 0;
}

.sratix-exgrid-root--srd26 .sxg26-entry {
  background: var(--sxg26-paper);
  display: flex;
  flex-direction: column;
  padding: 0 0 1.4rem;
  margin: 0;
  transition: background .12s linear;
}
.sratix-exgrid-root--srd26 .sxg26-entry:hover { background: var(--sxg26-paper-sunk); }
.sratix-exgrid-root--srd26 .sxg26-entry[hidden] { display: none; }

.sratix-exgrid-root--srd26 .sxg26-face {
  display: flex;
  flex-direction: column;
  flex: 1;
  cursor: pointer;
}

/* top line — booth tag + area, one row */
.sratix-exgrid-root--srd26 .sxg26-topline {
  display: flex;
  align-items: stretch;
  gap: .85rem;
  margin-bottom: 1.15rem;
  padding-right: 1.4rem;
}

.sratix-exgrid-root--srd26 .sxg26-booth {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex: none;
  background: var(--sxg26-red);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  line-height: 1.1;
  padding: .5rem .9rem .45rem;
  margin: 0;
}
.sratix-exgrid-root--srd26 .sxg26-booth i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
/* "Booth number to be assigned" is a phrase, not a figure: it must wrap,
   shrink, and read quietly rather than shouting in red like a real number. */
.sratix-exgrid-root--srd26 .sxg26-booth.is-tba {
  background: transparent;
  color: var(--sxg26-ink-40);
  border: 1px dashed var(--sxg26-rule);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: .4rem .6rem;
  flex: 0 1 auto;
  min-width: 0;
}

.sratix-exgrid-root--srd26 .sxg26-area {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  align-self: center;
  min-width: 0;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-60);
}
.sratix-exgrid-root--srd26 .sxg26-area .sxg26-sw { margin-top: .18em; }

/* identity — square logo plate beside name / legal / site */
.sratix-exgrid-root--srd26 .sxg26-ident {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1.4rem;
  margin-bottom: 1rem;
}

.sratix-exgrid-root--srd26 .sxg26-plate {
  width: 92px;
  height: 92px;
  flex: none;
  background: var(--sxg26-plate);
  border: 1px solid var(--sxg26-rule);
  display: grid;
  place-items: center;
  padding: .55rem;
  overflow: hidden;
}
/* contain, never cover — wide wordmarks letterbox rather than being cropped */
.sratix-exgrid-root--srd26 .sxg26-plate img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sratix-exgrid-root--srd26 .sxg26-initials {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #062846;
}

.sratix-exgrid-root--srd26 .sxg26-ident-text { min-width: 0; padding-top: .1rem; }

.sratix-exgrid-root--srd26 .sxg26-name {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .22rem;
  padding: 0;
  text-wrap: balance;
}
.sratix-exgrid-root--srd26 .sxg26-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.sratix-exgrid-root--srd26 .sxg26-open:hover { color: var(--sxg26-red); }
.sratix-exgrid-root--srd26 .sxg26-open:focus-visible {
  outline: 0;
  box-shadow: inset 0 -3px 0 var(--sxg26-red);
}

.sratix-exgrid-root--srd26 .sxg26-legal {
  font-size: 13px;
  color: var(--sxg26-ink-40);
  margin: 0 0 .3rem;
}
.sratix-exgrid-root--srd26 .sxg26-site {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--sxg26-ink-60);
  margin: 0;
  overflow-wrap: anywhere;
}

.sratix-exgrid-root--srd26 .sxg26-body { padding: 0 1.4rem; }

.sratix-exgrid-root--srd26 .sxg26-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-60);
}
.sratix-exgrid-root--srd26 .sxg26-cats li { position: relative; margin: 0; }
.sratix-exgrid-root--srd26 .sxg26-cats li + li::before {
  content: "";
  position: absolute;
  left: -.48rem;
  top: .28em;
  bottom: .28em;
  width: 1px;
  background: var(--sxg26-rule);
}

.sratix-exgrid-root--srd26 .sxg26-blurb {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sxg26-ink-60);
  margin: 0 0 1rem;
  /* Full text stays in the DOM for crawlers; only the display is clamped. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sratix-exgrid-root--srd26 .sxg26-blurb.is-empty {
  color: var(--sxg26-ink-40);
  font-style: italic;
}

.sratix-exgrid-root--srd26 .sxg26-demo {
  border-top: 3px solid var(--sxg26-red);
  padding-top: .5rem;
  margin: 0 0 1rem;
  font-size: 13.5px;
  color: var(--sxg26-ink);
}
.sratix-exgrid-root--srd26 .sxg26-demo b {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sxg26-red);
  margin-bottom: .2rem;
}

/* media strip — pinned to the bottom so strips align across a row */
.sratix-exgrid-root--srd26 .sxg26-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: auto 1.4rem 0;
  padding-top: .4rem;
}

.sratix-exgrid-root--srd26 .sxg26-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sxg26-paper-sunk);
  border: 1px solid var(--sxg26-rule);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
}
.sratix-exgrid-root--srd26 .sxg26-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sratix-exgrid-root--srd26 .sxg26-tile__fallback {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  padding: .3rem;
  text-align: center;
}
.sratix-exgrid-root--srd26 .sxg26-tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(6, 40, 70, .42);
  pointer-events: none;
}
.sratix-exgrid-root--srd26 .sxg26-tile.is-video { background: var(--sxg26-navy); }
.sratix-exgrid-root--srd26 .sxg26-tile.is-demo { border-color: var(--sxg26-red); }
.sratix-exgrid-root--srd26 .sxg26-tile__cap { display: none; }

.sratix-exgrid-root--srd26 .sxg26-tile.is-more {
  background: var(--sxg26-ink);
  border-color: var(--sxg26-ink);
}
.sratix-exgrid-root--srd26 .sxg26-tile.is-more span {
  color: var(--sxg26-paper);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Detail body is hidden in the grid; it is cloned into the dialog on open. */
.sratix-exgrid-root--srd26 .sxg26-detail[hidden] { display: none; }

.sratix-exgrid-root--srd26 .sratix-exgrid-empty {
  padding: 2.5rem 0;
  font-size: 15px;
  color: var(--sxg26-ink-40);
  text-align: center;
}

/* ── Detail dialog ────────────────────────────────────────────────── */

.sxg26-dialog {
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: min(66rem, 95vw);
  max-height: 92vh;
  background: var(--sxg26-paper, #fff);
  color: var(--sxg26-ink, #062846);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sxg26-red: #cc251c;
  --sxg26-navy: #062846;
  --sxg26-paper: #ffffff;
  --sxg26-paper-sunk: #f4f6f8;
  --sxg26-plate: #ffffff;
  --sxg26-ink: #062846;
  --sxg26-ink-60: #5a6b7a;
  --sxg26-ink-40: #8695a3;
  --sxg26-rule: #c9d2d9;
  --sxg26-measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  .sxg26-dialog {
    --sxg26-paper: #041b2f;
    --sxg26-paper-sunk: #082741;
    --sxg26-ink: #eaf1f6;
    --sxg26-ink-60: #9fb3c4;
    --sxg26-ink-40: #6d8598;
    --sxg26-rule: #16405c;
    --sxg26-red: #ff4a3d;
    --sxg26-plate: #f2f5f7;
  }
}

.sxg26-dialog::backdrop { background: rgba(6, 40, 70, .7); }
.sxg26-dialog *, .sxg26-dialog *::before, .sxg26-dialog *::after { box-sizing: border-box; }

.sxg26-dialog__inner {
  position: relative;
  padding: clamp(1.3rem, 3.4vw, 2.8rem);
  overflow-y: auto;
  max-height: 92vh;
}

.sxg26-dialog__close {
  position: absolute;
  top: clamp(1.3rem, 3.4vw, 2.8rem);
  right: clamp(1.3rem, 3.4vw, 2.8rem);
  z-index: 2;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink);
  background: var(--sxg26-paper);
  border: 2px solid var(--sxg26-ink);
  border-radius: 0;
  padding: .45rem .8rem;
  cursor: pointer;
}
.sxg26-dialog__close:hover { background: var(--sxg26-ink); color: var(--sxg26-paper); }
.sxg26-dialog__close:focus-visible { outline: 2px solid var(--sxg26-red); outline-offset: 2px; }

.sxg26-dialog .sxg26-sheet-top {
  border-bottom: 5px solid var(--sxg26-red);
  padding: 0 7rem 1.1rem 0;
  margin-bottom: 1.6rem;
}
.sxg26-dialog .sxg26-sheet-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-bottom: .8rem;
}
.sxg26-dialog .sxg26-booth {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  background: var(--sxg26-red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: .35rem .75rem;
  margin: 0;
}
.sxg26-dialog .sxg26-booth i {
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.sxg26-dialog .sxg26-booth.is-tba {
  background: transparent;
  color: var(--sxg26-ink-40);
  border: 1px dashed var(--sxg26-rule);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .6rem;
}

.sxg26-dialog .sxg26-area {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-60);
}
.sxg26-dialog .sxg26-sw { width: 10px; height: 10px; background: var(--sxg26-c, var(--sxg26-ink-40)); flex: none; }

.sxg26-dialog .sxg26-sheet-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .98;
  margin: 0;
  padding: 0;
  text-wrap: balance;
}
.sxg26-dialog .sxg26-legal-lg { font-size: 15px; color: var(--sxg26-ink-40); margin: .5rem 0 0; }

.sxg26-dialog .sxg26-cols {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}
/* Sticky rail: the logo and contact details stay put while the description,
   galleries and demo scroll past. `.sxg26-dialog__inner` is the scroll
   container; `align-items: start` on the grid is what lets sticky engage. */
.sxg26-dialog .sxg26-rail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 0;
  align-self: start;
  /* Never taller than the viewport, or it stops sticking and just scrolls. */
  max-height: calc(92vh - 4rem);
  overflow-y: auto;
  padding-bottom: .5rem;
}

.sxg26-dialog .sxg26-plate--lg {
  /* ~30% down from the full 20rem rail width — at full width the logo
     dominated the sheet and pushed the contact details below the fold. */
  width: 14rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: var(--sxg26-plate);
  border: 1px solid var(--sxg26-rule);
  display: grid;
  place-items: center;
  padding: 0.2rem;
  overflow: hidden;
}
.sxg26-dialog .sxg26-plate--lg img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sxg26-dialog .sxg26-plate--lg .sxg26-initials { font-size: 40px; font-weight: 700; letter-spacing: .05em; color: #062846; }

.sxg26-dialog .sxg26-kv {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .5rem .9rem;
  font-size: 14.5px;
  margin: 0;
}
.sxg26-dialog .sxg26-kv dt {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  padding-top: .35em;
}
.sxg26-dialog .sxg26-kv dd { margin: 0; overflow-wrap: anywhere; }
.sxg26-dialog .sxg26-kv a,
.sxg26-dialog .sxg26-socials a {
  color: var(--sxg26-ink);
  text-decoration: underline;
  text-decoration-color: var(--sxg26-red);
  text-underline-offset: 3px;
}
.sxg26-dialog .sxg26-kv a:hover { color: var(--sxg26-red); }
.sxg26-dialog .sxg26-socials { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }

.sxg26-dialog .sxg26-mail {
  font: inherit;
  font-size: 14.5px;
  color: var(--sxg26-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sxg26-red);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.sxg26-dialog .sxg26-mail:hover { color: var(--sxg26-red); }

.sxg26-dialog .sxg26-long {
  font-size: 16px;
  line-height: 1.62;
  max-width: var(--sxg26-measure);
  color: var(--sxg26-ink-60);
  margin: 0 0 1.2rem;
}
.sxg26-dialog .sxg26-long p { margin: 0 0 .9rem; }
.sxg26-dialog .sxg26-long p:last-child { margin-bottom: 0; }
.sxg26-dialog .sxg26-long.is-empty { font-style: italic; color: var(--sxg26-ink-40); }

.sxg26-dialog .sxg26-h {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  margin: 1.8rem 0 .8rem;
  padding-top: .7rem;
  border-top: 1px solid var(--sxg26-rule);
}
/* The demo gets its own red rule so a rich demo never reads as company marketing. */
.sxg26-dialog .sxg26-h--demo {
  color: var(--sxg26-red);
  border-top: 3px solid var(--sxg26-red);
}

.sxg26-dialog .sxg26-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 2px;
  margin-bottom: 1rem;
}
.sxg26-dialog .sxg26-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--sxg26-paper-sunk);
  border: 1px solid var(--sxg26-rule);
  overflow: hidden;
  display: grid;
  place-items: center;
  margin: 0;
  cursor: zoom-in;
}
.sxg26-dialog .sxg26-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sxg26-dialog .sxg26-tile.is-video { background: var(--sxg26-navy); cursor: pointer; }
.sxg26-dialog .sxg26-tile.is-demo { border-color: var(--sxg26-red); }
.sxg26-dialog .sxg26-tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(6, 40, 70, .42);
  pointer-events: none;
}
.sxg26-dialog .sxg26-tile__fallback {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sxg26-ink-40);
  padding: .3rem;
  text-align: center;
}
.sxg26-dialog .sxg26-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: rgba(6, 40, 70, .78);
  padding: .3rem .4rem;
  display: block;
}

/* video player swapped in on tile click */
.sxg26-dialog .sxg26-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sxg26-rule);
  margin-bottom: 1rem;
  background: #000;
}
.sxg26-dialog .sxg26-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 52rem) {
  .sxg26-dialog .sxg26-cols { grid-template-columns: 1fr; }
  .sxg26-dialog .sxg26-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    position: static;      /* stacked layout — nothing to stick beside */
    max-height: none;
    overflow: visible;
  }
  .sxg26-dialog .sxg26-plate--lg { flex: 0 0 10rem; width: 10rem; }
  .sxg26-dialog .sxg26-kv { flex: 1 1 16rem; }
  .sxg26-dialog .sxg26-sheet-top { padding-right: 0; }
  .sxg26-dialog__close { position: static; margin-bottom: 1rem; }
}

@media (max-width: 34rem) {
  .sratix-exgrid-root--srd26 .sxg26-plate { width: 72px; height: 72px; }
  .sratix-exgrid-root--srd26 .sxg26-initials { font-size: 21px; }
  .sratix-exgrid-root--srd26 .sxg26-topline { flex-wrap: wrap; }
  .sxg26-dialog .sxg26-kv { grid-template-columns: 1fr; gap: .1rem; }
  .sxg26-dialog .sxg26-kv dd { margin-bottom: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sratix-exgrid-root--srd26 *,
  .sxg26-dialog * { transition: none !important; animation: none !important; }
}


/* ── Gallery lightbox ─────────────────────────────────────────────── */
/* A nested <dialog>: showModal() puts it in the top layer ABOVE the detail
   sheet, so the sheet stays open behind it and Escape closes only this. */

.sxg26-lb {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: transparent;
  display: none;
  overflow: hidden;
}
.sxg26-lb[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
}
.sxg26-lb::backdrop { background: rgba(4, 18, 30, .92); }

.sxg26-lb__stage {
  grid-column: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-width: 0;
  max-height: 100%;
}
.sxg26-lb__stage img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.sxg26-lb__stage figcaption {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #cfe0ec;
  text-align: center;
  max-width: 60ch;
}
.sxg26-lb__stage figcaption:empty { display: none; }

.sxg26-lb__nav,
.sxg26-lb__close {
  font-family: "Outfit", system-ui, sans-serif;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 0;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.sxg26-lb__nav {
  width: 3rem;
  height: 3rem;
  font-size: 30px;
  flex: none;
}
.sxg26-lb__prev { grid-column: 1; }
.sxg26-lb__next { grid-column: 3; }
.sxg26-lb__nav[hidden] { visibility: hidden; display: block; }
.sxg26-lb__nav:hover,
.sxg26-lb__close:hover { background: #fff; color: #041b2f; }
.sxg26-lb__nav:focus-visible,
.sxg26-lb__close:focus-visible { outline: 2px solid var(--sxg26-red, #cc251c); outline-offset: 2px; }

.sxg26-lb__close {
  position: fixed;
  top: clamp(.6rem, 2vw, 1.4rem);
  right: clamp(.6rem, 2vw, 1.4rem);
  width: 2.6rem;
  height: 2.6rem;
  font-size: 26px;
  z-index: 2;
}

.sxg26-lb__count {
  position: fixed;
  left: 50%;
  bottom: clamp(.6rem, 2vw, 1.4rem);
  transform: translateX(-50%);
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9fb3c4;
  font-variant-numeric: tabular-nums;
}
.sxg26-lb__count:empty { display: none; }

@media (max-width: 34rem) {
  .sxg26-lb__nav { width: 2.4rem; height: 2.4rem; font-size: 24px; }
}
