/* light-theme: manual
   Shared look for the hub pages news.html, status.html and team.html
   (hb-* layout, nw-* news, st-* status, tm-* team). Content of news/status
   is rendered by assets/js/news.js and assets/js/status-page.js. */

:root .hb-page {
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 1.25rem 7rem;
  color: var(--nx-text, #f1f5f9);
}

:root .hb-hero { max-width: 760px; margin-bottom: 2.2rem; }

:root .hb-hero h1 {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

:root .hb-hero h1 span {
  background: linear-gradient(110deg, #38bdf8, #818cf8 55%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root .hb-hero p { margin: 0; color: var(--nx-muted, #94a3b8); font-size: 1.1rem; line-height: 1.6; }

:root .hb-h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 3rem 0 1rem;
  font-size: 1.4rem;
  font-weight: 800;
}

:root .hb-h i { color: #38bdf8; }
:root .hb-sub { margin: -0.5rem 0 1.2rem; color: var(--nx-muted, #94a3b8); }

:root .hb-foot { margin-top: 2.5rem; color: var(--nx-muted, #94a3b8); text-align: center; }
:root .hb-foot a { color: #a5b4fc; font-weight: 700; text-decoration: none; }
:root .hb-foot a:hover { text-decoration: underline; }

@keyframes hb-in { from { opacity: 0; transform: translateY(14px); } }

/* ================= news ================= */
:root .nw-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

:root .nw-chip {
  --c: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
  color: var(--nx-muted, #94a3b8);
  font: 700 0.85rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

:root .nw-chip i { color: var(--c); }
:root .nw-chip:hover { color: #fff; border-color: color-mix(in srgb, var(--c) 55%, transparent); }

:root .nw-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--c);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent);
}

:root .nw-chip.is-active i { color: #fff; }

/* timeline: a line on the left, one dot per card */
:root .nw-list { position: relative; display: grid; gap: 1rem; padding-left: 1.6rem; }

:root .nw-list::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #38bdf8, rgba(129, 140, 248, 0.4) 60%, transparent);
}

:root .nw-card {
  --c: #38bdf8;
  position: relative;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 60%),
    var(--nx-surface, rgba(15, 23, 42, 0.62));
  animation: hb-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(min(var(--i, 0), 6) * 0.06s);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

:root .nw-card:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateX(4px); }

:root .nw-card::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem + 0.35rem - 5px);
  top: 1.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px var(--nx-bg, #020617), 0 0 14px var(--c);
}

:root .nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.8rem; }

:root .nw-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font-weight: 700;
}

:root .nw-meta time { color: var(--nx-muted, #94a3b8); }

:root .nw-flag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(110deg, #f43f5e, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root .nw-card h2 { margin: 0.7rem 0 0.4rem; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
:root .nw-card p { margin: 0; color: var(--nx-muted, #94a3b8); line-height: 1.65; }

:root .nw-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  color: var(--c);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

:root .nw-link i { transition: transform 0.2s ease; }
:root .nw-link:hover i { transform: translateX(3px); }

:root .nw-empty { color: var(--nx-muted, #94a3b8); }

/* ================= status ================= */
:root .st-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
  --s: #94a3b8;
}

:root .st-summary.is-ok { --s: #22c55e; }
:root .st-summary.is-warn { --s: #f59e0b; }
:root .st-summary.is-unknown { --s: #94a3b8; }
:root .st-summary { border-color: color-mix(in srgb, var(--s) 40%, transparent); }
:root .st-summary b { font-size: 1.05rem; }
:root .st-summary small { margin-left: auto; color: var(--nx-muted, #94a3b8); }

:root .st-summary-dot,
:root .st-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--s);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--s) 60%, transparent);
  animation: st-pulse 2s ease-out infinite;
}

@keyframes st-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

:root .st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

:root .st-card {
  --c: #38bdf8;
  --s: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%),
    var(--nx-surface, rgba(15, 23, 42, 0.62));
  animation: hb-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

:root .st-card:nth-child(2) { animation-delay: 0.06s; }
:root .st-card:nth-child(3) { animation-delay: 0.12s; }
:root .st-card:nth-child(4) { animation-delay: 0.18s; }

:root .st-card.is-up { --s: #22c55e; }
:root .st-card.is-down { --s: #ef4444; }
:root .st-card.is-maint { --s: #f59e0b; }

:root .st-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
:root .st-card-head > div { flex: 1 1 8.5rem; min-width: 0; }

:root .st-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  font-size: 1.2rem;
}

:root .st-card-icon img { width: 30px; height: 30px; object-fit: contain; }
:root .st-card h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
:root .st-card h2 a { color: inherit; text-decoration: none; }
:root .st-card h2 a:hover { color: var(--c); }
:root .st-card small { color: var(--nx-muted, #94a3b8); font-size: 0.78rem; }

:root .st-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--s) 16%, transparent);
  color: var(--s);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

:root .st-badge-dot { width: 8px; height: 8px; }
:root .st-card.is-unknown .st-badge-dot { animation: none; }

:root .st-rows { list-style: none; margin: 0; padding: 0; display: grid; }

:root .st-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  font-size: 0.88rem;
}

:root .st-rows span { color: var(--nx-muted, #94a3b8); }
:root .st-rows span i { width: 1.1em; text-align: center; color: var(--c); }
:root .st-rows b { font-variant-numeric: tabular-nums; }
:root .st-ip { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; }

:root .st-note {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--s) 12%, transparent);
  color: var(--nx-text, #f1f5f9);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* chart */
:root .st-chart-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
}

:root .st-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem; margin-bottom: 1rem; }
:root .st-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }

:root .st-tab {
  --c: #38bdf8;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: transparent;
  color: var(--nx-muted, #94a3b8);
  font: 700 0.8rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

:root .st-tab:hover { color: #fff; }
:root .st-tab.is-active { background: var(--c); border-color: transparent; color: #fff; }
:root .st-range .st-tab.is-active { background: rgba(148, 163, 184, 0.22); }

:root .st-chart { position: relative; height: 260px; }
:root .st-chart svg { width: 100%; height: 100%; overflow: visible; }
:root .st-grid-lines line { stroke: rgba(148, 163, 184, 0.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
:root .st-labels text { fill: var(--nx-muted, #94a3b8); font: 600 11px Inter, system-ui, sans-serif; }

:root .st-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px var(--c));
}

:root .st-dot { fill: var(--c); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
:root .st-off { fill: rgba(239, 68, 68, 0.18); }

:root .st-chart-empty {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  padding: 1rem;
  color: var(--nx-muted, #94a3b8);
  text-align: center;
}

:root .st-chart-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
:root .st-chart-stats:empty { display: none; }

:root .st-chart-stats div {
  flex: 1;
  min-width: 120px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--nx-surface-2, rgba(30, 41, 59, 0.5));
}

:root .st-chart-stats small { display: block; color: var(--nx-muted, #94a3b8); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
:root .st-chart-stats b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
:root .st-chart-stats em { margin-left: 0.4rem; color: var(--nx-muted, #94a3b8); font-size: 0.78rem; font-style: normal; }

/* ================= team ================= */
:root .tm-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 1rem;
}

:root .tm-member {
  --c: #38bdf8;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  background:
    radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%),
    var(--nx-surface, rgba(15, 23, 42, 0.62));
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

:root .tm-member:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 65%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 20%, transparent);
}

:root .tm-avatar {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent), 0 12px 30px color-mix(in srgb, var(--c) 30%, transparent);
}

:root .tm-avatar img { width: 100%; height: 100%; object-fit: cover; }

:root .tm-member-body { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
:root .tm-member-body b { font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }
:root .tm-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }

:root .tm-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}

:root .tm-chip-soft { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
:root .tm-quote { color: var(--nx-muted, #94a3b8); font-size: 0.9rem; line-height: 1.5; }
:root .tm-cta { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--c); font-size: 0.85rem; font-weight: 700; }
:root .tm-cta i { transition: transform 0.2s ease; }
:root .tm-member:hover .tm-cta i { transform: translateX(4px); }

:root .tm-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

:root .tm-roles-col {
  --c: #38bdf8;
  padding: 1.1rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  border-top: 3px solid var(--c);
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
}

:root .tm-roles-col h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.7rem; font-size: 1.05rem; font-weight: 800; }

:root .tm-roles-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
}

:root .tm-roles-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }

:root .tm-roles-col a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: var(--nx-text, #f1f5f9);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

:root .tm-roles-col a > i:first-child { width: 1.1em; text-align: center; color: var(--c); }
:root .tm-roles-col a:hover { background: color-mix(in srgb, var(--c) 14%, transparent); }
:root .tm-role-go { margin-left: auto; font-size: 0.75rem; opacity: 0; transform: translateX(-4px); transition: opacity 0.2s ease, transform 0.2s ease; }
:root .tm-roles-col a:hover .tm-role-go,
:root .tm-roles-col a:focus-visible .tm-role-go { opacity: 1; transform: none; }

:root .tm-join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid transparent;
  /* opaque base under the tint, otherwise the border gradient shines through */
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.14), rgba(168, 85, 247, 0.14)) padding-box,
    linear-gradient(#0a1022, #0a1022) padding-box,
    linear-gradient(120deg, rgba(56, 189, 248, 0.6), rgba(192, 132, 252, 0.6)) border-box;
}

:root .tm-join-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

:root .tm-join-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

:root .tm-join-ghost:hover { border-color: rgba(192, 132, 252, 0.6); background: rgba(168, 85, 247, 0.1); }

:root .tm-join h2 { margin: 0 0 0.3rem; font-size: 1.4rem; font-weight: 800; }
:root .tm-join p { margin: 0; color: var(--nx-muted, #94a3b8); }

:root .tm-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(110deg, #0ea5e9, #8b5cf6);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

:root .tm-join-btn:hover { filter: brightness(1.1); }

@media (max-width: 640px) {
  :root .hb-page { padding-top: 6.5rem; }
  :root .tm-member { flex-direction: column; text-align: center; }
  :root .tm-chips { justify-content: center; }
  :root .tm-cta { align-self: center; }
  :root .st-chart { height: 200px; }
  :root .st-summary small { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root .nw-card,
  :root .st-card { animation: none; }
  :root .st-summary-dot,
  :root .st-badge-dot { animation: none; }
}

/* ================= light theme ================= */
html[data-theme="light"] .hb-page { color: #0f172a; }
html[data-theme="light"] .hb-hero h1 span { background-image: linear-gradient(110deg, #0369a1, #4f46e5 55%, #9333ea); }
html[data-theme="light"] .nw-card,
html[data-theme="light"] .st-card,
html[data-theme="light"] .st-summary,
html[data-theme="light"] .st-chart-card,
html[data-theme="light"] .tm-member,
html[data-theme="light"] .tm-roles-col,
html[data-theme="light"] .nw-chip { background-color: #fff; background-image: none; }
html[data-theme="light"] .nw-card,
html[data-theme="light"] .st-chart-card,
html[data-theme="light"] .tm-roles-col { border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .nw-card::before { box-shadow: 0 0 0 4px #f8fafc; }
html[data-theme="light"] .nw-chip.is-active { background: var(--c); color: #fff; }
html[data-theme="light"] .nw-chip:hover,
html[data-theme="light"] .st-tab:hover { color: #0f172a; }
html[data-theme="light"] .st-tab.is-active { color: #fff; }
html[data-theme="light"] .st-range .st-tab.is-active { background: #334155; }
html[data-theme="light"] .st-grid-lines line { stroke: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .st-line { filter: none; }
html[data-theme="light"] .st-chart-stats div { background: #f1f5f9; }
html[data-theme="light"] .st-note { color: #0f172a; }
html[data-theme="light"] .tm-roles-col a { color: #0f172a; }
html[data-theme="light"] .tm-join { background: linear-gradient(120deg, #e0f2fe, #f3e8ff) padding-box, linear-gradient(120deg, rgba(14, 165, 233, 0.5), rgba(147, 51, 234, 0.5)) border-box; }
html[data-theme="light"] .tm-join-ghost { color: #334155; border-color: rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .hb-foot a { color: #4f46e5; }

/* ================= faq ================= */
/* scoped: .hb-hero and .hb-foot are shared with six other hub pages */
:root .fq-page .hb-hero { margin-bottom: 32px; }

:root .fq-page .hb-hero h1 { margin: 0 0 8px; }

:root .fq-page .hb-hero p { font-size: 1.0625rem; }

:root .fq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

/* opaque on purpose: the page floaters must not drift through the text */
:root .fq-group {
  --c: #38bdf8;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 32px;
  padding: 12px 24px;
  border-radius: 16px;
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  border-top: 2px solid var(--c);
  background: #0b1222;
}

:root .fq-group h2 {
  grid-column: 1;
  grid-row: 1 / span 12;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0;
}

:root .fq-logo {
  flex: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

:root .fq-logo + .fq-logo { margin-left: -4px; }

:root .fq-glyph {
  flex: none;
  width: 28px;
  color: var(--c);
  font-size: 1.125rem;
  text-align: center;
}

:root .fq-item {
  grid-column: 2;
  border-top: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
}

:root .fq-group > .fq-item:first-of-type { border-top: 0; }

:root .fq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
  list-style: none;
  border-radius: 4px;
}

:root .fq-item summary::-webkit-details-marker { display: none; }
:root .fq-item summary i { flex: none; color: var(--c); font-size: 0.75rem; transition: transform 0.25s ease; }
:root .fq-item[open] summary i { transform: rotate(45deg); }
:root .fq-item summary:hover { color: var(--c); }
:root .fq-item summary:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

:root .fq-item p {
  max-width: 64ch;
  margin: 0 0 16px;
  color: var(--nx-muted, #94a3b8);
  line-height: 1.6;
  animation: hb-in 0.3s ease both;
}

:root .fq-item p a {
  color: var(--c);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* what you type ingame is set in the Minecraft font */
:root .fq-cmd {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--nx-text, #f1f5f9);
  font-family: "Monocraft", ui-monospace, monospace;
  font-size: 1em;
}

@media (max-width: 720px) {
  :root .fq-page { padding-inline: 0; }

  :root .fq-group { display: block; padding: 12px 16px; }

  :root .fq-group h2 { margin: 4px 0 8px; }
}

html[data-theme="light"] .fq-group { background: #fff; border-color: rgba(15, 23, 42, 0.1); border-top-color: var(--c); }
html[data-theme="light"] .fq-item summary { color: #0f172a; }
html[data-theme="light"] .fq-item summary:hover,
html[data-theme="light"] .fq-item summary i,
html[data-theme="light"] .fq-glyph,
html[data-theme="light"] .fq-item p a { color: color-mix(in srgb, var(--c) 60%, #000); }
html[data-theme="light"] .fq-item p { color: #475569; }
html[data-theme="light"] .fq-cmd { background: rgba(15, 23, 42, 0.06); color: #0f172a; }

/* ================= statistik (private) ================= */
:root .sx-login,
:root .sx-card,
:root .sx-kpi {
  padding: 1.2rem;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
}

:root .sx-login { max-width: 520px; }
:root .sx-login label { display: block; margin-bottom: 0.6rem; color: var(--nx-muted, #94a3b8); }
:root .sx-login-row { display: flex; gap: 0.5rem; }

:root .sx-login input,
:root .sx-bar select {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.6);
  color: inherit;
  font: 600 0.95rem Inter, system-ui, sans-serif;
}

:root .sx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #0ea5e9;
  color: #fff;
  font: 700 0.9rem Inter, system-ui, sans-serif;
  cursor: pointer;
}

:root .sx-btn-ghost { background: transparent; border-color: rgba(148, 163, 184, 0.3); color: var(--nx-muted, #94a3b8); }
:root .sx-error { min-height: 1.2em; margin: 0.6rem 0 0; color: #f87171; }

:root .sx-bar { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
:root .sx-bar select { flex: 0 1 260px; }

:root .sx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
:root .sx-kpi small { display: block; color: var(--nx-muted, #94a3b8); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
:root .sx-kpi b { display: block; margin: 0.2rem 0; font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
:root .sx-kpi span { color: var(--nx-muted, #94a3b8); font-size: 0.85rem; }

:root .sx-card { margin-bottom: 1rem; }
:root .sx-card h2 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; font-size: 1.05rem; font-weight: 800; }
:root .sx-card h2 i { color: #38bdf8; }

:root .sx-chart { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-bottom: 1.4rem; position: relative; }
:root .sx-day { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
:root .sx-day i { position: absolute; bottom: 0; left: 0; right: 0; height: var(--h); min-height: 2px; border-radius: 4px 4px 1px 1px; background: rgba(56, 189, 248, 0.35); }
:root .sx-day i.sx-visits { left: 25%; right: 25%; background: linear-gradient(180deg, #a78bfa, #6366f1); }
:root .sx-day:hover i { background: rgba(56, 189, 248, 0.6); }
:root .sx-day.is-today i:first-child { box-shadow: 0 0 0 2px #38bdf8; }
:root .sx-day span { position: absolute; bottom: -1.3rem; font-size: 0.68rem; color: var(--nx-muted, #94a3b8); }
:root .sx-legend { position: absolute; top: -2.6rem; right: 0; margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--nx-muted, #94a3b8); }
:root .sx-legend span { width: 12px; height: 12px; border-radius: 3px; margin-left: 0.5rem; }
:root .sx-l1 { background: rgba(56, 189, 248, 0.45); }
:root .sx-l2 { background: #8b5cf6; }

:root .sx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
:root .sx-cols .sx-card { margin: 0; }
:root .sx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
:root .sx-list li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.6rem; border-radius: 8px; overflow: hidden; font-size: 0.9rem; }
:root .sx-list li i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(56, 189, 248, 0.12); z-index: 0; }
:root .sx-list li span,
:root .sx-list li b { position: relative; z-index: 1; }
:root .sx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .sx-list b { font-variant-numeric: tabular-nums; }
:root .sx-empty { color: var(--nx-muted, #94a3b8); }

html[data-theme="light"] .sx-login,
html[data-theme="light"] .sx-card,
html[data-theme="light"] .sx-kpi { background: #fff; border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .sx-login input,
html[data-theme="light"] .sx-bar select { background: #f8fafc; border-color: rgba(15, 23, 42, 0.15); color: #0f172a; }

/* ================= media kit ================= */
:root .mk-zip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.8rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(110deg, #0ea5e9, #8b5cf6);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.35);
}

:root .mk-zip small { font-weight: 600; opacity: 0.8; }
:root .mk-zip:hover { filter: brightness(1.1); }

:root .mk-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
:root .mk-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }

:root .mk-logo,
:root .mk-banner {
  --c: #38bdf8;
  overflow: hidden;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14));
  background: var(--nx-surface, rgba(15, 23, 42, 0.62));
}

/* checkerboard so transparency is visible */
:root .mk-logo-stage {
  display: grid;
  place-items: center;
  height: 180px;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    repeating-conic-gradient(rgba(148, 163, 184, 0.08) 0 25%, transparent 0 50%) 0 0 / 18px 18px;
}

:root .mk-logo-stage img { max-width: 100%; max-height: 140px; object-fit: contain; }
:root .mk-logo-stage.is-wide img { max-height: 80px; }
:root .mk-banner img { display: block; width: 100%; aspect-ratio: 16 / 5; object-fit: cover; }

:root .mk-logo-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.85rem 1rem; }
:root .mk-logos .mk-logo-foot { flex-direction: column; align-items: flex-start; }
:root .mk-logo-foot b { display: block; font-weight: 800; }
:root .mk-logo-foot small { color: var(--nx-muted, #94a3b8); font-size: 0.78rem; }

:root .mk-dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: #7dd3fc;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

:root .mk-dl:hover { background: rgba(56, 189, 248, 0.12); }

:root .mk-palettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
:root .mk-pal { padding: 1rem; border-radius: var(--radius-lg, 20px); border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14)); background: var(--nx-surface, rgba(15, 23, 42, 0.62)); }
:root .mk-pal > b { display: block; margin-bottom: 0.6rem; font-weight: 800; }
:root .mk-swatches { display: grid; gap: 0.4rem; }

:root .mk-swatch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: copy;
}

:root .mk-swatch:hover { border-color: var(--nx-line, rgba(148, 163, 184, 0.2)); background: rgba(148, 163, 184, 0.06); }
:root .mk-chip { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--s); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
:root .mk-swatch b { display: block; font-size: 0.88rem; }
:root .mk-swatch code { font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: var(--nx-muted, #94a3b8); }
:root .mk-swatch.is-copied code::after { content: "  ✓ kopiert"; color: #4ade80; }

:root .mk-abouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
:root .mk-about { padding: 1.1rem; border-radius: var(--radius-lg, 20px); border: 1px solid var(--nx-line, rgba(148, 163, 184, 0.14)); background: var(--nx-surface, rgba(15, 23, 42, 0.62)); }
:root .mk-about-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
:root .mk-about p { margin: 0; color: var(--nx-muted, #94a3b8); line-height: 1.6; }

:root .mk-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: transparent;
  color: var(--nx-muted, #94a3b8);
  font: 700 0.78rem Inter, system-ui, sans-serif;
  cursor: pointer;
}

:root .mk-copy:hover { color: #fff; }
:root .mk-copy.is-copied { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }

:root .mk-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1rem; }
:root .mk-rules ul { list-style: none; margin: 0; padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; border-radius: var(--radius-lg, 20px); border: 1px solid; }
:root .mk-rules li { display: flex; gap: 0.6rem; line-height: 1.5; }
:root .mk-do { border-color: rgba(74, 222, 128, 0.35) !important; background: rgba(74, 222, 128, 0.06); }
:root .mk-dont { border-color: rgba(248, 113, 113, 0.35) !important; background: rgba(248, 113, 113, 0.06); }
:root .mk-do li::before { content: "✓"; color: #4ade80; font-weight: 800; }
:root .mk-dont li::before { content: "✕"; color: #f87171; font-weight: 800; }

html[data-theme="light"] .mk-logo,
html[data-theme="light"] .mk-banner,
html[data-theme="light"] .mk-pal,
html[data-theme="light"] .mk-about { background: #fff; border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .mk-dl { color: #0369a1; border-color: rgba(3, 105, 161, 0.35); }
html[data-theme="light"] .mk-about p { color: #475569; }
html[data-theme="light"] .mk-copy:hover { color: #0f172a; }

/* events.html - Discord server events (assets/js/events.js) */
:root .ev-list { display: grid; gap: 1rem; }
:root .ev-month { margin: 1.4rem 0 0.2rem; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nx-muted, #94a3b8); }
:root .ev-month:first-child { margin-top: 0; }
:root .ev-card {
  position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 1.1rem; padding: 1.2rem 1.3rem; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16); background: var(--nx-surface, rgba(15, 23, 42, 0.62));
  box-shadow: inset 3px 0 0 var(--c);
}
:root .ev-card.is-live { border-color: var(--c); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--c), 0 10px 40px rgba(2, 6, 23, 0.4); }
:root .ev-cover { grid-column: 1 / -1; width: calc(100% + 2.6rem); max-height: 220px; margin: -1.2rem -1.3rem 0.2rem; object-fit: cover; }
:root .ev-date { display: grid; place-content: center; text-align: center; height: 74px; border-radius: 16px; background: rgba(2, 6, 23, 0.45); border: 1px solid rgba(148, 163, 184, 0.16); }
:root .ev-date b { font-size: 1.9rem; line-height: 1; color: var(--c); }
:root .ev-date span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--nx-muted, #94a3b8); }
:root .ev-body h2 { margin: 0.45rem 0 0.35rem; font-size: 1.2rem; }
:root .ev-when { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0; color: var(--nx-muted, #94a3b8); font-size: 0.88rem; }
:root .ev-when i { color: var(--c); margin-right: 0.25rem; }
:root .ev-desc { margin: 0.7rem 0 0; color: var(--nx-muted, #94a3b8); font-size: 0.92rem; line-height: 1.6; }
:root .ev-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }
:root .ev-live { color: #22c55e; }
:root .ev-empty { padding: 2.4rem 1rem; text-align: center; border-radius: 20px; border: 1px dashed rgba(148, 163, 184, 0.25); color: var(--nx-muted, #94a3b8); }
:root .ev-empty i { font-size: 2rem; color: #38bdf8; }
@media (max-width: 520px) {
  :root .ev-card { grid-template-columns: 1fr; }
  :root .ev-date { display: none; }
}
html[data-theme="light"] .ev-card { background: #fff; border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .ev-date { background: #f8fafc; border-color: rgba(15, 23, 42, 0.1); }

/* team.html - team members synced from Discord (assets/js/team-live.js) */
:root .tm-live { display: grid; gap: 1.4rem; margin-bottom: 2rem; }
:root .tm-live-srv h3 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.7rem; font-size: 1rem; }
:root .tm-live-srv h3 small { color: var(--nx-muted, #94a3b8); font-weight: 500; }
:root .tm-live-srv h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
:root .tm-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0.6rem; }
:root .tm-live-member { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.14); background: var(--nx-surface, rgba(15, 23, 42, 0.55)); }
:root .tm-live-member img, :root .tm-live-av { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; }
:root .tm-live-member b { display: block; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root .tm-live-member > div > span { display: block; color: var(--c); font-size: 0.78rem; font-weight: 700; }
:root .tm-live-av { font-style: normal; }
:root .tm-live-member > div { min-width: 0; }
html[data-theme="light"] .tm-live-member { background: #fff; border-color: rgba(15, 23, 42, 0.1); }
