/* Shared by the React homepage and every static resource page. */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --background: 0 0% 3%;
  --foreground: 0 0% 96%;
  --primary: 349 81% 44%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 96%;
  --muted: 0 0% 12%;
  --muted-foreground: 0 0% 64%;
  --accent: 349 81% 44%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --border: 0 0% 17%;
  --input: 0 0% 17%;
  --ring: 349 81% 50%;
  --radius: 12px;
  --nav-button: 0 0% 12%;
  --hero-bg: 0 0% 3%;
  --red: #c91435;
  --red-bright: #ef344f;
  --line: rgba(255, 255, 255, 0.14);
  --soft-line: rgba(255, 255, 255, 0.08);
  --panel: rgba(17, 12, 15, 0.42);
  --border-faint: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.13);
  --border-hover: rgba(255, 255, 255, 0.24);
  --border-accent: rgba(239, 52, 79, 0.32);
  --glass-border: var(--border-default);
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.42);
  --muted-copy: rgba(255, 255, 255, 0.66);
  --layout-max: 1180px;
  --layout-narrow: 1040px;
  --content-width: var(--layout-max);
  --page-gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(48px, 5vw, 72px);
  --surface-pad: clamp(32px, 4vw, 52px);
  --card-pad: clamp(20px, 2.2vw, 28px);
  --radius-surface: 32px;
  --radius-card: 20px;
  --radius-control: 12px;
  --radius-surface-mobile: 24px;
  --shadow-surface:
    0 24px 72px rgba(0, 0, 0, 0.36),
    0 0 68px rgba(126, 5, 31, 0.1);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.24);
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-reveal: 640ms;
  --intro-progress: 0;
  --page-progress: 0;
  --rail-fill: 0%;
  --chapter-progress: 0;
  --energy-x: 78%;
  --energy-y: 36%;
  --ambient-shift: 0px;
  --signal-rail: clamp(22px, 3.4vw, 58px);
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(circle at 86% 20%, rgba(112, 4, 25, 0.13), transparent 32%),
    radial-gradient(circle at 14% 72%, rgba(74, 3, 20, 0.09), transparent 30%),
    #050405;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-shell::before {
  background:
    radial-gradient(
      circle at var(--energy-x) var(--energy-y),
      rgba(255, 54, 82, 0.14) 0,
      rgba(159, 8, 38, 0.075) 18%,
      transparent 43%
    ),
    radial-gradient(
      circle at calc(100% - var(--energy-x)) calc(100% - var(--energy-y)),
      rgba(102, 6, 31, 0.055),
      transparent 34%
    );
  opacity: 0.94;
  transition: background-position 240ms ease;
}

.site-shell::after {
  background:
    linear-gradient(
      112deg,
      transparent 0 40%,
      rgba(255, 255, 255, 0.014) 47%,
      rgba(216, 24, 54, 0.026) 51%,
      transparent 58% 100%
    ),
    linear-gradient(
      72deg,
      transparent 0 68%,
      rgba(181, 11, 41, 0.022) 73%,
      transparent 78%
    );
  opacity: 0.72;
  transform: translate3d(0, var(--ambient-shift), 0);
}

.site-network {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 420ms ease;
}

html[data-redhive-opening="active"] .site-network {
  opacity: 0;
}

html[data-redhive-opening="active"] .scroll-signal-director {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.site-network::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at var(--energy-x) var(--energy-y),
      transparent 8%,
      rgba(3, 3, 4, 0.1) 58%,
      rgba(3, 3, 4, 0.28) 100%
    ),
    linear-gradient(180deg, rgba(4, 3, 4, 0.01), rgba(4, 3, 4, 0.16));
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 84px;
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(7, 6, 8, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  backdrop-filter: blur(24px) saturate(1.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear;
}

html[data-redhive-opening="active"] .site-header,
html[data-redhive-opening="active"] .skip-link {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-redhive-opening="active"] .site-header {
  transform: translate3d(0, -18px, 0);
}

.site-header-inner {
  display: grid;
  width: min(100%, var(--layout-max));
  min-height: 84px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -0.035em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-block: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 22%;
  bottom: 3px;
  left: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff536d, transparent);
  box-shadow: 0 0 12px rgba(239, 52, 79, 0.68);
  opacity: 0;
  transform: scaleX(0.36);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.desktop-nav a:is([aria-current="location"],[aria-current="page"]) {
  color: rgba(255, 255, 255, 0.96);
}

.desktop-nav a:is([aria-current="location"],[aria-current="page"])::after {
  opacity: 1;
  transform: scaleX(1);
}

.desktop-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.nav-cta:hover {
  border-color: rgba(239, 52, 79, 0.5);
  background: rgba(201, 20, 53, 0.12);
}

.nav-cta[aria-current="location"] {
  border-color: rgba(239, 52, 79, 0.48);
  background: rgba(201, 20, 53, 0.14);
  box-shadow: 0 0 24px rgba(151, 7, 37, 0.14);
}

.mobile-nav {
  display: none;
  justify-self: end;
  position: relative;
}

.mobile-nav summary {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  cursor: pointer;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  top: 42px;
  right: 0;
  display: grid;
  width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: rgba(12, 12, 13, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.mobile-nav-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.mobile-nav-panel a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -36%;
  width: 24%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.46),
    transparent
  );
  filter: blur(4px);
  transform: rotate(16deg);
  transition: left 620ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  left: 118%;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  border: 1px solid rgba(255, 72, 96, 0.38);
  background: #c91435;
  color: #ffffff;
  box-shadow:
    0 16px 44px rgba(155, 8, 37, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover {
  background: #df1b3f;
  box-shadow:
    0 18px 50px rgba(181, 12, 43, 0.38),
    0 0 34px rgba(233, 39, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.site-header a{text-decoration:none}.site-header .brand-copy strong{font-weight:700;color:#f5f5f5}.site-header .brand-copy small{font-weight:400}
.desktop-nav{gap:clamp(14px,2vw,28px)}
.honeycomb-canvas{display:block;width:100%;height:100%}
@media(max-width:980px){.site-header-inner{grid-template-columns:1fr auto}.desktop-nav,.nav-cta{display:none}.mobile-nav{display:block}}
@media(max-width:640px){.site-header{min-height:72px;padding:0 18px}.site-header-inner{min-height:72px}.brand-logo{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.site-header,.site-header *,.button,.button:after{transition:none!important;animation:none!important}}

/* Resource pages inherit the homepage's canvas, backdrop, type, and control materials. */
body.resource-site.site-shell{background:radial-gradient(circle at 86% 20%,rgba(112,4,25,.13),transparent 32%),radial-gradient(circle at 14% 72%,rgba(74,3,20,.09),transparent 30%),#050405;background-attachment:scroll;color:#f5f5f5;font-family:'Sora','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',system-ui,sans-serif}
body.resource-site:before{z-index:0;opacity:.94}body.resource-site:after{z-index:0}
.resource-site>main{position:relative;z-index:1;overflow:visible}
.resource-site .site-header{font-family:'Sora','PingFang SC','Microsoft YaHei','Noto Sans CJK SC',system-ui,sans-serif}
.resource-site .site-header *{font-family:inherit}
.resource-site{--rh-red:#ef344f;--rh-muted:rgba(255,255,255,.66);--rh-panel:rgba(17,12,15,.52);--rh-line:rgba(255,255,255,.13);--forum-cyan:#ef344f;--forum-red:#ef344f;--forum-soft:rgba(255,255,255,.66);--forum-dim:rgba(255,255,255,.48);--docs-cyan:#ef344f;--docs-muted:rgba(255,255,255,.66)}
.resource-site [style*="--accent"]{--accent:#ef344f!important}
.resource-site .forum-hero,.resource-site .docs-hero,.resource-site .help-hero{background:linear-gradient(135deg,rgba(255,255,255,.065),rgba(255,255,255,.015)),rgba(10,8,11,.48);border-color:rgba(255,255,255,.17);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),inset 0 -1px 0 rgba(214,22,55,.12),0 24px 72px rgba(0,0,0,.36);backdrop-filter:blur(16px) saturate(1.2)}
.resource-site .forum-session-strip,.resource-site .forum-toolbar,.resource-site .side-panel,.resource-site .forum-composer,.resource-site .topic-card,.resource-site .floor-card,.resource-site .docs-card,.resource-site .docs-article,.resource-site .help-card,.resource-site .help-panel,.resource-site .help-topic{background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.008)),rgba(10,8,11,.66);border-color:rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.07);backdrop-filter:none}
.resource-site .forum-kicker,.resource-site .docs-kicker,.resource-site .help-kicker{color:#ef344f!important}
.resource-site .button{min-height:44px;padding:0 20px;line-height:1.4;letter-spacing:.03em;font-size:13px;font-weight:600;border-radius:var(--radius-control);cursor:pointer}
.resource-site .button-primary{border:1px solid rgba(255,72,96,.38);background:#c91435;color:#fff;box-shadow:0 16px 44px rgba(155,8,37,.25),inset 0 1px 0 rgba(255,255,255,.18)}
.resource-site .button-primary:hover{background:#df1b3f}
.resource-site .button-secondary{border:1px solid rgba(255,255,255,.17);background:rgba(255,255,255,.035);color:rgba(255,255,255,.86);backdrop-filter:none}
.resource-site .button-secondary:hover{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.07)}
.resource-site .category-pill,.resource-site .side-tag,.resource-site .compose-shortcut,.resource-site .detail-back,.resource-site .forum-auth-tabs button,.resource-site .docs-article-toggle{border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-control);background:rgba(255,255,255,.035);color:rgba(255,255,255,.66);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.resource-site .category-pill{padding:9px 14px;min-height:38px;font-size:12px}
.resource-site .category-pill:before,.resource-site .side-tag:before,.resource-site .topic-category:before{background:#ef344f}
.resource-site .category-pill.is-active,.resource-site .forum-auth-tabs .is-active{border-color:rgba(239,52,79,.48);background:rgba(201,20,53,.14);color:#fff;box-shadow:0 0 24px rgba(151,7,37,.14)}
.resource-site .category-pill:hover{color:#fff;border-color:rgba(255,255,255,.32)}
.resource-site .forum-avatar:not(img){background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(201,20,53,.12));border:1px solid rgba(239,52,79,.32);color:#ef6a81}
.resource-site .forum-search,.resource-site .docs-search,.resource-site .help-search{border-color:rgba(255,255,255,.17);background:rgba(7,6,8,.52);border-radius:var(--radius-control)}
.resource-site input,.resource-site textarea,.resource-site select{color:#eee!important;border-color:rgba(255,255,255,.17)!important;background-color:rgba(7,6,8,.6)!important}
.resource-site input::placeholder,.resource-site textarea::placeholder{color:rgba(255,255,255,.45)!important}
.resource-site .forum-auth-card{background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.01)),#100b0e;border-color:rgba(255,255,255,.17)}
.resource-site .topic-card:hover,.resource-site .help-card:hover,.resource-site .docs-card:hover{border-color:rgba(239,52,79,.32);background-color:rgba(17,10,14,.76)}
.resource-site a:focus-visible,.resource-site button:focus-visible,.resource-site summary:focus-visible{outline-color:#ef344f}
.resource-site .forum-auth-modal{z-index:120}

.resource-site .category-pill:before{position:static;width:5px;height:5px}

/* Body is the document scroller on resource routes, unlike the homepage's inner shell.
   Never propagate the decorative shell's clipping to the viewport. */
body.resource-site.site-shell{overflow:visible}
html{overflow-x:clip;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(175,61,86,.6) transparent}
*{scrollbar-width:thin;scrollbar-color:rgba(175,61,86,.6) transparent}
/* Chromium uses these rules for a fully transparent rail and rounded glass-red thumb.
   Reset standard scrollbar properties here so they do not override the pseudo-elements. */
@supports selector(::-webkit-scrollbar){
  html,body,body *,.resource-site .docs-sidebar,.resource-site .docs-toc,.resource-site .forum-categories{scrollbar-width:auto;scrollbar-color:auto}
  ::-webkit-scrollbar{width:10px;height:10px;background:transparent}
  ::-webkit-scrollbar-track{background:transparent;border:0;border-radius:999px;box-shadow:none}
  ::-webkit-scrollbar-thumb{min-height:36px;min-width:36px;border:3px solid transparent;border-radius:999px;background-color:rgba(175,61,86,.56);background-clip:padding-box;box-shadow:none}
  ::-webkit-scrollbar-thumb:hover{background-color:rgba(224,78,109,.82)}
  ::-webkit-scrollbar-thumb:active{background-color:rgba(239,87,119,.94)}
  ::-webkit-scrollbar-button{display:none;width:0;height:0;background:transparent}
  ::-webkit-scrollbar-corner{background:transparent}
}
