/* maddrift.net - shares the palette, header and card language of
   store.maddrift.net and teams.maddrift.net (see :root tokens). */

:root {
  /* Same tokens as store/teams css/style.css */
  --color-primary: #652632;
  --color-light: #DCCABC;
  --color-accent: #AE9594;
  --color-interactive: #5C4A4C;
  --color-background: #211011;

  --primary-hover: #7a2f3d;
  --surface: #2a1618;
  --surface-2: #331d20;
  --line: rgba(174, 149, 148, 0.16);
  --line-strong: rgba(174, 149, 148, 0.3);
  --text: var(--color-light);
  --text-strong: #ffffff;
  --muted: var(--color-accent);
  --signal: #e8344e;          /* headphone red from the logo, used sparingly */
  --online: #12ff00;          /* same live dot as the store header */
  --offline: #8a7476;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;

  --radius: 0.5rem;           /* tailwind rounded-lg, used for buttons on store/teams */
  --radius-lg: 0.75rem;       /* rounded-xl cards on teams */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --wrap: 72rem;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
/* Subtle skull background, exactly like teams/store (10% opacity, fixed). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/img/bg.webp') center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }
main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text-strong); text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--color-light); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.05em 0.35em;
  color: var(--text-strong);
}
kbd { border-bottom-width: 2px; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
.prose-wrap { max-width: 48rem; }

.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--color-primary); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius); }
.skip:focus { top: 0.75rem; }

/* Icons */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.75rem; height: 0.75rem; opacity: 0.7; }
.flip { transform: scaleX(-1); }

/* Buttons - store/teams: bg-vip (#652632) primary, bg-gray-700 (#5C4A4C) secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--color-interactive); color: #fff; }
.btn-secondary:hover { background: #6b585a; color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--color-light); color: #fff; }
.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1.05rem; }
.btn code { background: none; border: 0; padding: 0; color: inherit; font-size: 0.85em; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background: transparent; border: 0; color: var(--text); cursor: pointer;
}
.icon-btn:hover { color: #fff; background: rgba(92, 74, 76, 0.5); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; margin-top: 1rem; }
.link-arrow:hover .icon { transform: translateX(2px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700;
  color: var(--muted); margin: 0 0 0.6rem;
}
.eyebrow a { color: inherit; }
.lead { font-size: 1.125rem; color: var(--text); max-width: 40rem; }

.dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--offline); flex: none; }
[data-state="online"] .dot, .dot.is-online { background: var(--online); box-shadow: 0 0 0 3px rgba(18, 255, 0, 0.12); }
[data-state="offline"] .dot, .dot.is-offline { background: var(--signal); }

/* Header - mirrors the store/teams nav: rgba(33,16,17,.95) + blur, logo h-10 + bold title */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: rgba(33, 16, 17, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 40px; }
.brand:hover { color: #fff; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 0.25rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.online-pill { display: none; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text); margin-right: 0.25rem; }
.online-pill [data-live-players] { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hide-sm { display: none; }
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: inline-flex; }
.menu-btn[aria-expanded="true"] .when-closed { display: none; }
.menu-btn span { display: inline-flex; }

/* Mobile menu panel */
.nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(33, 16, 17, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1.25rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open li a { display: flex; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.nav-mobile-actions { margin-top: 1rem; }
.nav-mobile-actions .btn { width: 100%; }

@media (min-width: 480px) {
  .hide-sm { display: inline-flex; }
}
@media (min-width: 720px) {
  .online-pill { display: inline-flex; }
}
@media (min-width: 1100px) {
  .nav { display: block; margin-left: 1.5rem; }
  .nav ul { display: flex; gap: 1.4rem; }
  .nav-mobile-actions, .menu-btn { display: none !important; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: rgba(0, 0, 0, 0.18); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { margin: 0; max-width: 36rem; }
@media (min-width: 900px) {
  .section { padding: 5rem 0; }
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}

.page-head { padding: 3rem 0 1rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-404 { padding: 5rem 0 6rem; }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .two-col-wide { grid-template-columns: 1.6fr 1fr; }
}

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero-media {
  margin: 0; position: relative; order: -1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 16 / 10; background: var(--surface);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-live {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(33, 16, 17, 0.88); border: 1px solid var(--line);
  font-size: 0.85rem; color: #fff; font-variant-numeric: tabular-nums;
}
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0.25rem 2rem; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column-reverse; }
.hero-facts dt { font-size: 0.8rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-size: 1.5rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .hero-facts { gap: 0.25rem 1.1rem; } .hero-facts dd { font-size: 1.25rem; } }
@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
  .hero-media { order: 0; }
}

/* Server cards - package-card look from the store */
.server-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .server-grid { grid-template-columns: 1fr 1fr; } }
.server-card {
  background: rgba(33, 16, 17, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.75rem;
  min-width: 0;
}
.server-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.server-name { margin: 0 0 0.35rem; font-size: 1.2rem; }
.server-tags { margin: 0; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(92, 74, 76, 0.55); color: var(--text); }
.server-state { margin: 0; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; font-weight: 600; color: #fff; white-space: nowrap; }
[data-state="offline"] .server-state { color: var(--muted); }
.server-host { margin: 0; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-load p { margin: 0 0 0.4rem; font-variant-numeric: tabular-nums; }
.server-load strong { color: #fff; font-size: 1.35rem; }
.meter { height: 0.4rem; border-radius: 999px; background: rgba(92, 74, 76, 0.5); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--color-light); border-radius: inherit; transition: width 0.4s ease; }
.server-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.server-actions .btn-secondary { min-width: 0; }
.live-note { margin-top: 1rem; }
[data-copy].is-copied { background: var(--color-primary); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.stat-wide { grid-column: span 2; background: var(--color-primary); border-color: transparent; }
.stat-wide .stat-k, .stat-wide .stat-note { color: #f0dcd7; }
.stat-k { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-v { margin: 0.15rem 0 0.2rem; font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.year-chart { margin: 2rem 0 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.year-chart h3 { margin-bottom: 0.2rem; }
.year-chart ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.year-chart li { display: grid; grid-template-columns: 3rem 1fr 4.5rem; align-items: center; gap: 0.75rem; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.yc-year { color: var(--muted); }
.yc-track { height: 0.9rem; background: rgba(92, 74, 76, 0.3); border-radius: 0.25rem; overflow: hidden; }
.yc-bar { display: block; height: 100%; background: var(--color-accent); border-radius: 0.25rem; }
.yc-bar.is-now { background: var(--color-light); }
.yc-val { text-align: right; color: #fff; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; border-left: 2px solid var(--line-strong); margin-left: 0.4rem; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ''; position: absolute; left: -0.45rem; top: 0.3rem;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--color-background); border: 2px solid var(--color-accent);
}
.timeline .tl-now::before { background: var(--signal); border-color: var(--signal); }
.tl-when { margin: 0 0 0.15rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p:last-child { margin: 0; max-width: 40rem; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .timeline li { border-left: 0; border-top: 2px solid var(--line-strong); padding: 1.5rem 0 0; margin: 0; }
  .timeline li:last-child { border-top-color: var(--signal); }
  .timeline li::before { left: 0; top: -0.5rem; }
}

/* Leaderboard */
.board { list-style: none; margin: 1rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: rgba(33, 16, 17, 0.9); }
.board-row { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board-row:first-child { border-top: 0; }
.board-row:nth-child(even) { background: rgba(92, 74, 76, 0.12); }
.rank { font-weight: 700; color: var(--muted); }
.who { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.val { color: var(--text); }
.podium-1 .rank { color: var(--gold); }
.podium-2 .rank { color: var(--silver); }
.podium-3 .rank { color: var(--bronze); }

.team-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.5rem; }
.team-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.team-list a:hover { border-color: var(--line-strong); color: inherit; }
.team-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-tag {
  --team: #dccabc;
  min-width: 3rem; text-align: center;
  font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); color: #fff;
  border: 1px solid var(--team);
  box-shadow: inset 3px 0 0 var(--team);
}

/* Tracks */
.track-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 640px) { .track-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .track-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.track-list li { padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.track-name { color: #fff; font-weight: 700; }
.track-type { font-size: 0.8rem; color: var(--muted); }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery-strip { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }

.lightbox { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--color-background); color: var(--text); max-width: min(96vw, 1400px); width: 100%; }
.lightbox::backdrop { background: rgba(10, 4, 5, 0.88); }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #000; }
.lightbox p { margin: 0; padding: 0.6rem 1rem; }
.lightbox form { position: absolute; right: 0.5rem; top: 0.5rem; margin: 0; }
.lightbox-close { background: rgba(33, 16, 17, 0.85); color: #fff; }

/* Store teaser */
.vip-card { background: rgba(33, 16, 17, 0.97); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.price { display: block; margin-top: 0.35rem; font-size: 1.1rem; font-weight: 600; color: var(--text); }
.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.4rem; }
.checks li::before { content: '✓'; color: var(--color-light); font-weight: 700; margin-right: 0.6rem; }
.checks li { color: #fff; }

/* News */
.news-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.news-list a { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news-list a:hover { border-color: var(--line-strong); color: inherit; }
.news-list time { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.news-list-lg a { padding: 1.25rem; }
.news-list-lg .news-title { font-size: 1.3rem; }

/* Join band */
.join-band { background: var(--color-primary); }
.join-band h2 { margin-bottom: 1.5rem; }
.join-band .btn-primary { background: #fff; color: var(--color-primary); }
.join-band .btn-primary:hover { background: var(--color-light); color: var(--color-primary); }
.join-band a:not(.btn) { color: #fff; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: step; padding: 1.1rem 1.2rem; background: rgba(33, 16, 17, 0.35); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--color-primary); font-weight: 800; margin-bottom: 0.6rem; }
.steps p { margin: 0; color: #f3e6e0; }

/* Guide / prose */
.guide { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.guide > li { counter-increment: g; position: relative; padding: 1.25rem 1.25rem 0.5rem 3.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guide > li::before { content: counter(g); position: absolute; left: 1.1rem; top: 1.15rem; width: 1.9rem; height: 1.9rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 800; }
.guide h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.guide ul { padding-left: 1.1rem; }
.guide code, .prose code { overflow-wrap: anywhere; }
.guide > li { min-width: 0; }
.guide li li { margin-bottom: 0.35rem; }
.code-copy { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; padding: 0.55rem 0.8rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35); color: #fff; font: inherit; cursor: pointer; overflow-x: auto; }
.code-copy code { background: none; border: 0; padding: 0; white-space: nowrap; }
.code-copy:hover { border-color: var(--color-light); }

.prose { color: var(--text); }
.prose h2 { margin-top: 2.25rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--muted); }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 1rem; border-left: 3px solid var(--color-primary); }
.prose pre { overflow-x: auto; padding: 1rem; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: var(--radius); }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.toc a { padding: 0.35rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.toc a:hover { border-color: var(--color-light); }

/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq-a { padding: 0 1.2rem 0.4rem; }

/* Footer - same structure as the store footer */
.site-footer { margin-top: auto; background-color: var(--color-background); border-top: 1px solid rgba(174, 149, 148, 0.1); padding: 3rem 0 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 479px) { .footer-grid > div:nth-child(2) { grid-column: span 2; } .footer-grid > div:nth-child(2) { order: 3; } .footer-grid > div:nth-child(4) { order: 4; grid-column: span 2; } }
.footer-h { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }
.footer-links, .footer-servers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a, .footer-servers a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-servers a:hover { color: var(--muted); }
.footer-servers li { display: flex; justify-content: space-between; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 0.25rem; margin: -0.5rem 0 0.75rem -0.5rem; }
.footer-bottom { margin-top: 2.5rem; padding: 1.5rem 1rem 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-bottom p:first-child { text-transform: uppercase; letter-spacing: 0.03em; }

.page-head + .section { padding-top: 1.5rem; }
.team-tag { width: 3.6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
