* {
  box-sizing: border-box;
}

html {
  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background: #0d1117;
  color: #f4f7fb;
}

body {
  margin: 0;

  min-height: 100vh;

  background: #0d1117;
}

a {
  color: inherit;
}

.site-container,
.site-main {
  width: min(
    1120px,
    calc(100% - 40px)
  );

  margin-inline: auto;
}


/* HEADER */

.site-header {
  border-bottom:
    1px solid #283442;

  background: #111821;
}

.site-header .site-container {
  display: flex;
  align-items: center;

  min-height: 70px;
}

.site-brand {
  color: #ffffff;

  font-size: 18px;
  font-weight: 900;

  text-decoration: none;
}


/* MAIN */

.site-main {
  padding:
    60px 0 90px;
}

.article {
  max-width: 850px;

  margin-inline: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 18px;

  color: #8f9baa;

  font-size: 12px;

  text-transform: uppercase;
}

.article h1 {
  margin:
    0 0 20px;

  font-size:
    clamp(
      34px,
      6vw,
      58px
    );

  line-height: 1.08;
}

.article-excerpt {
  margin-bottom: 34px;

  color: #aeb8c5;

  font-size: 20px;

  line-height: 1.7;
}

.article-content {
  color: #d5dbe3;

  font-size: 17px;

  line-height: 1.8;
}

.article-content h2 {
  margin-top: 44px;

  color: #ffffff;

  font-size: 30px;
}

.article-content h3 {
  margin-top: 32px;

  color: #ffffff;
}

.article-content p {
  margin:
    0 0 22px;
}

.article-content a {
  color: #ff9800;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content table {
  width: 100%;

  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 12px;

  border:
    1px solid #283442;

  text-align: left;
}

.content-warning {
  margin-bottom: 20px;

  padding: 16px;

  color: #ffb4b4;

  background: #351719;

  border:
    1px solid #7d2d32;

  border-radius: 8px;
}


/* FOOTER */

.site-footer {
  padding: 30px 0;

  color: #8f9baa;

  border-top:
    1px solid #283442;

  font-size: 13px;
}


/* 404 */

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 40px;

  text-align: center;
}

.not-found > div {
  max-width: 600px;
}

.error-code {
  display: block;

  margin-bottom: 10px;

  color: #ff9800;

  font-size: 72px;
  font-weight: 900;
}

.not-found h1 {
  margin:
    0 0 15px;

  font-size: 38px;
}

.not-found p {
  color: #8f9baa;

  line-height: 1.7;
}

.not-found a {
  display: inline-block;

  margin-top: 15px;

  padding:
    11px 18px;

  color: #111;

  background: #ff9800;

  border-radius: 8px;

  font-weight: 800;

  text-decoration: none;
}


/* MOBILE */

@media (
  max-width: 600px
) {

  .site-container,
  .site-main {
    width:
      min(
        100% - 28px,
        1120px
      );
  }

  .site-main {
    padding-top: 40px;
  }

.article-content {
  font-size: 16px;
}

}

/* =========================================================
   PART 8B.2
   SHARED PUBLIC HEADER
========================================================= */

.grh-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background:
    linear-gradient(
      180deg,
      rgba(12, 19, 28, 0.98),
      rgba(9, 15, 22, 0.98)
    );

  border-bottom: 1px solid #283442;

  backdrop-filter: blur(12px);
}


.grh-header-inner {
  width: min(1180px, calc(100% - 40px));

  min-height: 76px;

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


/* =========================
   BRAND
========================= */

.grh-brand {
  display: flex;
  align-items: center;

  gap: 12px;

  flex-shrink: 0;

  text-decoration: none;
  color: #ffffff;
}


.grh-brand-badge {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  background: #ff9800;

  color: #0b1118;

  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
}


.grh-brand-copy {
  display: flex;
  flex-direction: column;

  line-height: 1.15;
}


.grh-brand-name {
  color: #f5f7fa;

  font-size: 16px;
  font-weight: 800;
}


.grh-brand-tagline {
  margin-top: 4px;

  color: #8fa8c2;

  font-size: 11px;
  font-weight: 500;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.grh-desktop-nav {
  display: flex;
  align-items: center;

  gap: 4px;
}


.grh-nav-link {
  display: inline-flex;
  align-items: center;

  min-height: 40px;

  padding: 0 13px;

  border-radius: 9px;

  color: #aab8c7;

  text-decoration: none;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;

  transition:
    background 0.18s ease,
    color 0.18s ease;
}


.grh-nav-link:hover {
  background: #172331;

  color: #ffffff;
}


/* =========================
   MOBILE NAVIGATION
========================= */

.grh-mobile-nav {
  display: none;

  position: relative;
}


.grh-mobile-nav > summary {
  list-style: none;
}


.grh-mobile-nav > summary::-webkit-details-marker {
  display: none;
}


.grh-mobile-toggle {
  min-height: 42px;

  padding: 0 13px;

  display: flex;
  align-items: center;

  gap: 7px;

  border: 1px solid #2a3948;
  border-radius: 9px;

  background: #111c27;

  color: #ffffff;

  cursor: pointer;

  user-select: none;
}


.grh-menu-icon {
  font-size: 18px;
  line-height: 1;
}


.grh-menu-text {
  font-size: 13px;
  font-weight: 700;
}


.grh-mobile-panel {
  position: absolute;

  top: calc(100% + 12px);
  right: 0;

  width: min(290px, calc(100vw - 28px));

  padding: 9px;

  display: flex;
  flex-direction: column;

  background: #101923;

  border: 1px solid #293746;
  border-radius: 12px;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45);
}


.grh-mobile-link {
  display: flex;
  align-items: center;

  min-height: 45px;

  padding: 0 13px;

  border-radius: 8px;

  color: #b6c3d1;

  text-decoration: none;

  font-size: 14px;
  font-weight: 650;
}


.grh-mobile-link:hover {
  background: #192634;

  color: #ffffff;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .grh-header-inner {
    width: min(100% - 32px, 1180px);
  }

  .grh-nav-link {
    padding-inline: 9px;

    font-size: 13px;
  }

  .grh-brand-tagline {
    display: none;
  }
}


/* =========================================================
   MOBILE NAV SWITCH
========================================================= */

@media (max-width: 860px) {

  .grh-header {
    position: sticky;
    top: 0;
  }

  .grh-header-inner {
    width: calc(100% - 28px);

    min-height: 66px;

    gap: 16px;
  }

  .grh-desktop-nav {
    display: none;
  }

  .grh-mobile-nav {
    display: block;
  }

  .grh-brand-badge {
    width: 38px;
    height: 38px;

    border-radius: 9px;

    font-size: 12px;
  }

  .grh-brand-name {
    font-size: 14px;
  }

  .grh-brand-tagline {
    display: block;

    font-size: 10px;
  }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .grh-header-inner {
    width: calc(100% - 20px);
  }

  .grh-brand {
    gap: 9px;
  }

  .grh-brand-tagline {
    display: none;
  }

  .grh-mobile-toggle {
    padding-inline: 11px;
  }

  .grh-menu-text {
    display: none;
  }

  .grh-mobile-panel {
    width: min(270px, calc(100vw - 20px));
  }
}
.article-brand-logo { max-height: 42px; max-width: 170px; width: auto; height: auto; object-fit: contain; vertical-align: middle; }

/* Part 8E: the same D1 menu on standalone content pages. */
.site-header .site-container { gap: 18px; flex-wrap: wrap; padding-block: 12px; }
.article-navigation { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.article-navigation .portal-nav-link { color: #bdd7f6; text-decoration: none; padding: 9px 11px; font-size: 13px; border-radius: 7px; }
.article-navigation .portal-nav-link:hover, .article-navigation .portal-nav-link.is-active { background: #203049; color: #fff; }
@media (max-width: 740px) { .article-navigation { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
.article-navigation .portal-nav-link { white-space: nowrap; } }

/* Part 8G — automatic internal links beneath published articles */
.article-related { margin: 24px auto 56px; padding: 24px; border: 1px solid #2b3d4c; border-radius: 12px; background: #121c28; }
.article-related h2 { margin: 0 0 16px; font-size: 1.25rem; color: #f5f7fb; }
.article-related ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.article-related a { color: #ffae36; overflow-wrap: anywhere; }
.article-related a:focus-visible { outline: 2px solid #ffae36; outline-offset: 3px; }

/* Part 9 Featured Image */
.article-featured-image {margin:18px 0 24px;max-width:100%;}
.article-featured-image img {display:block;width:100%;height:auto;max-height:620px;object-fit:contain;border-radius:12px;}
.article-content img {max-width:100%;height:auto;}

/* PART 13: article outline and editor-inserted FAQ */
.article-toc{background:#111e2c;border:1px solid #304356;border-radius:12px;padding:20px 24px;margin:28px 0 36px}.article-toc-title{margin:0 0 8px;font-weight:800;color:#fff}.article-toc ol{padding-left:23px;margin:6px 0}.article-toc li{padding:4px 0}.article-toc .toc-level-3{margin-left:18px;font-size:.92em}.article-toc a{color:#f6b544;text-decoration:none}.article-toc a:hover{text-decoration:underline}.article-content h2,.article-content h3{scroll-margin-top:22px}.article-content details.article-faq{border:1px solid #34475b;border-radius:10px;padding:15px 20px;margin:14px 0;background:#111d2a}.article-content details.article-faq summary{cursor:pointer;font-weight:750;color:#f4f7fb}.article-content details.article-faq p{margin:12px 0 0}@media(max-width:600px){.article-toc{padding:16px}}

/* =========================================================
   GLOBAL ARTICLE SMOOTH ANCHOR SCROLL
   Applies to auto-generated "On this page" TOC links.
========================================================= */

html {
  scroll-behavior: smooth;
}

.article-content h2[id],
.article-content h3[id] {
  scroll-margin-top: 32px;
}

@media (max-width: 768px) {
  .article-content h2[id],
  .article-content h3[id] {
    scroll-margin-top: 24px;
  }
}

/* =========================================================
   PART 23.4 — GLOBAL DISPLAY SETTINGS
   Banner replaces the old static brand strip.
========================================================= */
.site-display-banner {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #0d1117;
}

.site-display-banner-link {
  display: block;
  width: 100%;
  height: 100px;
  margin: 0;
  text-decoration: none;
  line-height: 0;
  overflow: hidden;
}

.site-display-banner-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1050px) {
  .site-display-banner-link {
    height: 72px;
  }
}

@media (max-width: 600px) {
  .site-display-banner-link {
    height: 50px;
  }
}

.site-header--display-banner .site-container--navigation-only {
  min-height: 54px;
  justify-content: center;
}

.site-header--display-banner .article-navigation {
  margin-left: 0;
}

body.site-display-wallpaper {
  position: relative;
  isolation: isolate;
  background: transparent;
}

body.site-display-wallpaper::before,
body.site-display-wallpaper::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.site-display-wallpaper::before {
  z-index: -2;
  background-image: var(--display-wallpaper-image);
  background-position: var(--display-wallpaper-position, center top);
  background-size: var(--display-wallpaper-size, cover);
  background-repeat: var(--display-wallpaper-repeat, no-repeat);
  background-attachment: var(--display-wallpaper-attachment, fixed);
}

body.site-display-wallpaper::after {
  z-index: -1;
  background: rgba(5, 9, 13, var(--display-wallpaper-overlay, 0.65));
}

body.site-display-wallpaper .site-header,
body.site-display-wallpaper .site-footer,
body.site-display-wallpaper .article-toc,
body.site-display-wallpaper .article-related {
  backdrop-filter: blur(10px);
}

body.site-display-wallpaper .site-header,
body.site-display-wallpaper .site-footer {
  background: rgba(13, 17, 23, 0.88);
}

body.site-display-wallpaper.site-display-wallpaper--scroll::before {
  position: absolute;
}

/* =========================================================
   PART 24.4 — GLOBAL FLOATING REGISTER / LOGIN + BACK TO TOP
========================================================= */
@property --site-auth-laser-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.site-floating-auth {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1200;

  width: min(520px, calc(100vw - 160px));
  min-width: 340px;
  padding: 6px;

  display: flex;
  gap: 10px;

  transform: translateX(-50%);

  background: rgba(8, 14, 21, 0.86);
  border: 1px solid rgba(255, 176, 0, 0.34);
  border-radius: 18px;

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;

  backdrop-filter: blur(12px);
}

.site-floating-auth-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  --site-auth-laser-a: #ffe76a;
  --site-auth-laser-b: #ff8a00;
  --site-auth-laser-glow: rgba(255, 176, 0, 0.78);

  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;
  border-radius: 15px;

  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.site-floating-auth-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;

  padding: 2px;
  border-radius: inherit;

  background: conic-gradient(
    from var(--site-auth-laser-angle),
    transparent 0deg 238deg,
    var(--site-auth-laser-a) 260deg,
    #ffffff 282deg,
    var(--site-auth-laser-b) 304deg,
    transparent 328deg 360deg
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  filter:
    drop-shadow(0 0 5px var(--site-auth-laser-glow))
    drop-shadow(0 0 11px var(--site-auth-laser-glow));

  pointer-events: none;
  animation: site-auth-laser-loop 1.75s linear infinite;
}

.site-floating-auth-register {
  --site-auth-laser-a: #fff3a3;
  --site-auth-laser-b: #ff7a00;
  --site-auth-laser-glow: rgba(255, 181, 0, 0.88);

  color: #111821;
  background: linear-gradient(180deg, #ffe262 0%, #ffb000 100%);
  border: 1px solid #ffc21a;
  box-shadow:
    0 6px 18px rgba(255, 176, 0, 0.26),
    0 0 14px rgba(255, 176, 0, 0.28);
}

.site-floating-auth-login {
  --site-auth-laser-a: #b9f7ff;
  --site-auth-laser-b: #4b7bff;
  --site-auth-laser-glow: rgba(72, 214, 255, 0.84);

  color: #183d78;
  background: #f5f7fb;
  border: 1px solid #83e8ff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.16),
    0 0 14px rgba(72, 214, 255, 0.24);
}

.site-floating-auth-login::before {
  animation-delay: -0.875s;
}

@keyframes site-auth-laser-loop {
  to {
    --site-auth-laser-angle: 360deg;
  }
}

.site-floating-auth-link:hover,
.site-floating-auth-link:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.site-floating-auth-link:hover::before,
.site-floating-auth-link:focus-visible::before {
  filter:
    drop-shadow(0 0 7px var(--site-auth-laser-glow))
    drop-shadow(0 0 16px var(--site-auth-laser-glow));
}

.site-floating-auth-link:focus-visible,
.site-back-to-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.site-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1201;

  width: 50px;
  height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: linear-gradient(180deg, #4debe4 0%, #24d5cf 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(36, 213, 207, 0.22);

  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.site-back-to-top:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

body.site-display-floating-auth {
  padding-bottom: 98px;
}

@media (max-width: 640px) {
  .site-floating-auth {
    left: 12px;
    right: 74px;
    bottom: 12px;

    width: auto;
    min-width: 0;
    padding: 5px;
    gap: 6px;

    transform: none;
    border-radius: 15px;
  }

  .site-floating-auth-link {
    min-height: 52px;
    padding-inline: 14px;
    border-radius: 13px;
    font-size: 14px;
  }

  .site-back-to-top {
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
  }

  body.site-display-floating-auth {
    padding-bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-floating-auth-link,
  .site-back-to-top {
    transition: none;
  }

  .site-floating-auth-link::before {
    animation: none;
    --site-auth-laser-angle: 286deg;
  }
}

/* =========================================================
   PART 24.5 — POPUP BANNER + RIGHT FLOATING SITE BANNER
   Custom code is isolated in sandboxed iframes.
========================================================= */
.site-floating-auth {
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.58),
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(255, 176, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.site-floating-auth-register {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 8px 22px rgba(255, 176, 0, 0.32),
    0 0 22px rgba(255, 176, 0, 0.34);
}

.site-floating-auth-login {
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.32),
    0 8px 22px rgba(72, 214, 255, 0.22),
    0 0 22px rgba(72, 214, 255, 0.30);
}

/* PART 24.x — POPUP RESPONSIVE AUTO HEIGHT + SCROLL FIX */
.site-popup[hidden] {
  display: none !important;
}

.site-popup {
  position: fixed;
  inset: 0;
  z-index: 4000;

  display: grid;
  place-items: center;

  padding: 12px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.site-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 12, 0.78);
  backdrop-filter: blur(7px);
}

.site-popup-dialog {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(620px, calc(100vw - 24px));
  max-height: min(90vh, 900px);
  max-height: min(90dvh, 900px);
  min-height: 0;
  overflow: hidden;

  padding: 10px;

  background: rgba(9, 16, 24, 0.97);
  border: 1px solid rgba(255, 176, 0, 0.54);
  border-radius: 18px;

  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(255, 176, 0, 0.14);
}

.site-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;

  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  background: rgba(7, 14, 22, 0.92);
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 999px;

  font-size: 25px;
  line-height: 1;
  cursor: pointer;

  box-shadow: 0 8px 22px rgba(0,0,0,0.42);
}

.site-popup-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-height: min(88vh, 880px);
  max-height: min(88dvh, 880px);

  display: grid;
  gap: 10px;

  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.site-popup-target,
.site-popup-visual {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.site-popup-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}

.site-display-custom-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}


.site-display-custom-frame.site-popup-custom-frame {
  display: block;
  width: 100%;
  height: min(82vh, 820px);
  height: min(82dvh, 820px);
  min-height: 420px;
  max-height: 82vh;
  max-height: 82dvh;
  border: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: auto;
  touch-action: pan-y;
}

body.site-popup-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .site-popup {
    padding: 8px;
  }

  .site-popup-dialog {
    width: calc(100vw - 16px);
    max-height: 92vh;
    max-height: 92dvh;
    padding: 6px;
    border-radius: 15px;
  }

  .site-popup-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .site-popup-content {
    max-height: calc(92vh - 12px);
    max-height: calc(92dvh - 12px);
  }

  .site-display-custom-frame.site-popup-custom-frame {
    width: 100%;
    height: 86vh;
    height: 86dvh;
    min-height: 520px;
    max-height: 86vh;
    max-height: 86dvh;
  }
}

.site-side-banner {
  position: fixed;
  right: 16px;
  top: 50%;
  z-index: 1185;

  width: 138px;
  max-height: min(58vh, 520px);

  transform: translateY(-50%);

  padding: 6px;
  overflow: hidden;

  background: rgba(8, 14, 21, 0.90);
  border: 1px solid rgba(255, 176, 0, 0.44);
  border-radius: 16px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.48),
    0 0 26px rgba(255, 176, 0, 0.16);

  backdrop-filter: blur(10px);
  animation: site-side-banner-float 3.6s ease-in-out infinite;
}

.site-side-banner-target {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.site-side-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
}

.site-side-banner .site-display-custom-frame {
  height: 200px;
  border-radius: 10px;
}

@keyframes site-side-banner-float {
  0%, 100% { transform: translateY(calc(-50% - 6px)); }
  50% { transform: translateY(calc(-50% + 6px)); }
}

@media (max-width: 900px) {
  .site-side-banner {
    right: 10px;
    width: 104px;
  }

  .site-side-banner .site-display-custom-frame {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .site-display-custom-frame:not(.site-popup-custom-frame) {
    height: 260px;
  }

  .site-side-banner {
    right: 8px;
    top: 46%;
    width: 86px;
    padding: 4px;
    border-radius: 13px;
  }

  .site-side-banner .site-display-custom-frame {
    height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-side-banner {
    animation: none;
  }
}

/* =========================================================
   PART 24.5.1 — FLOATING SITE BANNER LAUNCHER + MODAL APP
========================================================= */

.site-side-banner {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-side-banner-launcher,
.site-side-banner-static {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.site-side-banner-launcher {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 12px rgba(255, 176, 0, 0.20));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.site-side-banner-launcher:hover,
.site-side-banner-launcher:focus-visible {
  transform: scale(1.055);
  filter:
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 18px rgba(255, 176, 0, 0.34));
}

.site-side-banner-launcher:focus-visible {
  outline: 2px solid #ffb000;
  outline-offset: 4px;
}

.site-side-banner-image {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 14px;
}

.site-side-banner-fallback {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 10px;
  color: #0b1118;
  background: #ffb000;
  border-radius: 14px;
  font-weight: 900;
}

.site-side-program-modal[hidden] {
  display: none !important;
}

.site-side-program-modal {
  position: fixed;
  inset: 0;
  z-index: 5200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.site-side-program-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.84);
  backdrop-filter: blur(8px);
}

.site-side-program-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 36px));
  height: min(86dvh, 760px);
  min-height: 560px;
  padding: 10px;
  overflow: hidden;
  background: rgba(5, 11, 21, 0.98);
  border: 1px solid rgba(255, 176, 0, 0.50);
  border-radius: 22px;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.78),
    0 0 52px rgba(36, 132, 255, 0.16),
    0 0 30px rgba(255, 176, 0, 0.12);
}

.site-side-program-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: rgba(5, 11, 21, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.40);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.site-side-program-close:hover,
.site-side-program-close:focus-visible {
  background: #e33445;
}

.site-display-custom-frame.site-side-program-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

body.site-side-program-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-side-program-dialog {
    width: min(900px, calc(100vw - 24px));
    height: min(90dvh, 760px);
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .site-side-program-modal {
    padding: 8px;
  }

  .site-side-program-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    padding: 6px;
    border-radius: 18px;
  }

  .site-side-program-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-side-banner-launcher {
    transition: none;
  }
}

/* =========================================================
   FLOATING SITE BANNER - CLICKABLE HOLY LIGHT
========================================================= */

.site-side-banner-launcher {
  position: relative !important;
  isolation: isolate;
  overflow: visible !important;
  z-index: 1;
}

/* Main blue holy light */
.site-side-banner-launcher::before {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  width: 150%;
  height: 165%;

  transform:
    translate(-50%, -50%)
    scale(0.90);

  border-radius: 30px;

  background:
    radial-gradient(
      ellipse at center,
      rgba(115, 210, 255, 0.95) 0%,
      rgba(55, 155, 255, 0.72) 24%,
      rgba(40, 102, 255, 0.44) 48%,
      rgba(35, 75, 235, 0.20) 64%,
      transparent 78%
    );

  filter: blur(14px);

  opacity: 0.60;

  z-index: -2;

  pointer-events: none;

  animation:
    siteBannerHolyLight
    1.7s
    ease-in-out
    infinite;
}

/* Outer glowing ring */
.site-side-banner-launcher::after {
  content: "";

  position: absolute;
  inset: -7px;

  border-radius: 18px;

  border:
    1px solid
    rgba(125, 215, 255, 0.75);

  box-shadow:
    0 0 8px rgba(90, 195, 255, 0.90),
    0 0 18px rgba(60, 145, 255, 0.72),
    0 0 34px rgba(45, 90, 255, 0.48);

  opacity: 0.72;

  z-index: -1;

  pointer-events: none;

  animation:
    siteBannerHaloRing
    1.7s
    ease-in-out
    infinite;
}

.site-side-banner-launcher .site-side-banner-image {
  position: relative;
  z-index: 2;

  display: block;
}

/* Stronger glow around actual image */
.site-side-banner-launcher .site-side-banner-image {
  filter:
    drop-shadow(0 0 5px rgba(110, 210, 255, 0.75))
    drop-shadow(0 0 14px rgba(55, 135, 255, 0.52));
}


/* =========================================================
   BREATHING
========================================================= */

@keyframes siteBannerHolyLight {

  0%,
  100% {
    opacity: 0.46;

    transform:
      translate(-50%, -50%)
      scale(0.88);
  }

  50% {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1.13);
  }
}


@keyframes siteBannerHaloRing {

  0%,
  100% {
    opacity: 0.48;

    box-shadow:
      0 0 6px rgba(90, 195, 255, 0.55),
      0 0 14px rgba(55, 135, 255, 0.35);
  }

  50% {
    opacity: 1;

    box-shadow:
      0 0 12px rgba(130, 225, 255, 1),
      0 0 28px rgba(65, 160, 255, 0.90),
      0 0 48px rgba(45, 90, 255, 0.62);
  }
}


/* =========================================================
   INTERACTION
========================================================= */

.site-side-banner-launcher:hover {
  filter:
    brightness(1.12)
    drop-shadow(0 0 20px rgba(70, 170, 255, 0.82));
}

.site-side-banner-launcher:hover::before {
  opacity: 1;
}

.site-side-banner-launcher:active
.site-side-banner-image {
  transform: scale(0.94);
}

