:root {
  --bg-deep: #0e0e10;
  --bg-panel: #1c1c20;
  --bg-inner: #2a2a2e;
  --bg-row: #38383d;
  --bg-header: #65656c;
  --border: #4a4a50;
  --text: #e8e4dc;
  --text-muted: #9e9588;
  --text-dim: #7a7a7a;
  --accent: #40b840;
  --accent-dim: #2a8a2a;
  --accent-glow: rgba(64, 184, 64, 0.35);
  --danger: #c06060;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --radius: 4px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Chakra Petch", "Manrope", sans-serif;
  --site-bg:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(64, 184, 64, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(80, 60, 40, 0.18), transparent 50%),
    linear-gradient(180deg, #141416 0%, var(--bg-deep) 40%, #0a0a0c 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: transparent;
  line-height: 1.55;
}

/* Viewport-fixed site backdrop — same look on short and long pages. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--site-bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #6fd66f;
  text-decoration: underline;
}

.site-wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-inner);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn.is-active {
  background: var(--accent);
  color: #0b1a0b;
  text-shadow: none;
}

.panel {
  background: linear-gradient(180deg, #222226 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(180deg, #74747c 0%, var(--bg-header) 100%);
  border-bottom: 1px solid #2e2e32;
  color: #1a1a1c;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.panel-header .badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: #1f1f22;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.35rem;
  background: var(--bg-inner);
  border: 1px solid #333338;
  border-radius: var(--radius);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  background: var(--bg-row);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.tab:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  color: #fff;
}

.tab.is-current {
  background: var(--bg-header);
  color: #161618;
  cursor: default;
}

.tab-dropdown {
  position: relative;
}

.tab-dropdown-toggle {
  gap: 0.4rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
}

.tab-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.tab-dropdown.is-open .tab-caret {
  transform: rotate(180deg);
}

.tab-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 40;
  min-width: 14rem;
  padding: 0.3rem;
  background: var(--bg-inner);
  border: 1px solid #333338;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.tab-dropdown.is-open .tab-dropdown-menu {
  display: block;
}

.tab-dropdown-menu[hidden] {
  display: none !important;
}

.tab-dropdown-item {
  display: flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.tab-dropdown-item:hover {
  text-decoration: none;
  background: var(--bg-row);
  color: #fff;
}

.tab-dropdown-item.is-active {
  background: var(--bg-header);
  color: #161618;
  cursor: default;
}

.hero-line {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-title {
  margin: 1.4rem 0 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #3a3a40;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title:first-child {
  margin-top: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.feature-list li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2rem;
  background: var(--bg-inner);
  border: 1px solid #333338;
  border-radius: 3px;
  height: auto;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0.7rem;
  top: 0.55rem;
  color: var(--accent);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #4ec84e 0%, var(--accent) 55%, var(--accent-dim) 100%);
  color: #0c160c !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 18px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #63d663 0%, #49c049 55%, #329632 100%);
}

.btn-secondary {
  background: var(--bg-row);
  color: var(--text) !important;
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent-dim);
  color: #fff !important;
}

.dl-latest {
  margin: 0;
}

.dl-grid {
  display: grid;
  gap: 0.85rem;
}

.dl-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background:
    radial-gradient(ellipse 90% 80% at 8% 0%, rgba(64, 184, 64, 0.08), transparent 55%),
    linear-gradient(180deg, #1a1a1e 0%, #141416 100%);
  border: 1px solid #2e2e34;
  border-radius: 5px;
}

.dl-card-latest {
  border-color: rgba(64, 184, 64, 0.4);
  box-shadow: inset 0 0 0 1px rgba(64, 184, 64, 0.08);
}

.dl-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dl-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dl-card-ver {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.dl-meta {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.dl-notes {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.dl-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dl-count {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary .dl-count {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.dl-stats-total {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.dl-stats-total strong {
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
}

.dl-version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(64, 184, 64, 0.45);
  border-radius: 3px;
  background: rgba(64, 184, 64, 0.1);
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 700;
}

.downloads-page {
  gap: 2rem;
}

.downloads-page .landing-section {
  padding-bottom: 0.15rem;
}

.report-page {
  gap: 2rem;
}

.report-page .landing-section {
  padding-bottom: 0.15rem;
}

.bugs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
}

.bugs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bugs-chip {
  border: 1px solid #3a3a40;
  border-radius: 3px;
  background: #121214;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.bugs-chip:hover {
  border-color: #4a4a52;
  color: var(--text);
}

.bugs-chip.is-active {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: rgba(64, 184, 64, 0.1);
}

.bugs-meta {
  margin: 0.15rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.bugs-mod-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bugs-mod-state {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

.bugs-mod-state.is-on {
  display: inline-flex;
}

.bugs-chip-danger {
  color: #e2a0a0;
  border-color: #5a3a3a;
}

.bugs-chip-danger:hover {
  color: #ffc9c9;
  border-color: #7a4a4a;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bugs-status-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
}

.report-list {
  display: grid;
  gap: 0.75rem;
}

.report-card {
  padding: 1.05rem 1.15rem 1.15rem;
  background:
    radial-gradient(ellipse 90% 80% at 8% 0%, rgba(64, 184, 64, 0.06), transparent 55%),
    linear-gradient(180deg, #1a1a1e 0%, #141416 100%);
  border: 1px solid #2e2e34;
  border-radius: 5px;
}

.report-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.report-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-tag-loader {
  background: rgba(64, 184, 64, 0.15);
  color: var(--accent);
}

.report-tag-mod {
  background: rgba(100, 149, 237, 0.18);
  color: #9bbcff;
}

.report-id {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.report-status {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
}

.report-status-open { color: #e2c56a; }
.report-status-progress { color: #9bbcff; }
.report-status-done { color: var(--accent); }
.report-status-closed { color: #9a9aa3; }

.report-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.report-meta {
  margin: 0 0 0.5rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.report-body {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.report-fixed {
  margin: 0.55rem 0 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.report-more {
  margin-top: 0.75rem;
  border-top: 1px solid #333338;
  padding-top: 0.55rem;
}

.report-more > summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  list-style: none;
}

.report-more > summary::-webkit-details-marker {
  display: none;
}

.report-more > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.report-more[open] > summary::before {
  content: "▾ ";
}

.report-more-body {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.report-detail-label {
  margin-bottom: 0.25rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-detail-body {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #121214;
  border: 1px solid #333338;
  border-radius: 3px;
  color: var(--text-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

.note {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: rgba(64, 184, 64, 0.08);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.file-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.4rem;
  background: var(--bg-inner);
  border: 1px solid #333338;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.prose p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
}

.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose ol li {
  margin: 0.35rem 0;
}

.prose ol li + li {
  margin-top: 0.45rem;
}

.prose pre {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  background: #121214;
  border: 1px solid #333338;
  border-radius: 3px;
  color: #d8d2c6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.prose code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  color: #b6e3b6;
}

.prose pre code {
  color: inherit;
  font-size: inherit;
}

.prose .subhead {
  margin: 0.9rem 0 0.45rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.info-table th,
.info-table td {
  padding: 0.55rem 0.7rem;
  border: 1px solid #333338;
  text-align: left;
}

.info-table th {
  width: 38%;
  background: var(--bg-inner);
  color: var(--text-muted);
  font-weight: 600;
}

.info-table td {
  background: #1a1a1e;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.doc-links {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-inner);
  border: 1px solid #333338;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.doc-links a {
  margin-right: 0.35rem;
}

.authors {
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid #3a3a40;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.doc-pre {
  margin: 0;
  padding: 1rem 1.1rem;
  max-height: min(70vh, 900px);
  overflow: auto;
  background: #121214;
  border: 1px solid #333338;
  border-radius: 3px;
  color: #d2ccc0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre;
  tab-size: 2;
}

.guide-body .note {
  margin-bottom: 1.1rem;
}

.guide-prose {
  padding: 0.25rem 0 0;
}

.guide-prose .section-title {
  margin-top: 1.6rem;
}

.guide-prose .hero-line {
  font-size: 1.05rem;
}

.guide-prose ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.3rem;
  color: var(--text-muted);
}

.guide-prose ol li {
  margin: 0.4rem 0;
}

.callout-title {
  color: #e2c56a !important;
  letter-spacing: 0.06em;
}

.callout-list {
  margin-top: 0.35rem;
  padding: 0.55rem;
  background: rgba(226, 197, 106, 0.06);
  border: 1px solid rgba(226, 197, 106, 0.28);
  border-radius: 4px;
}

.callout-list li {
  background: var(--bg-inner);
}

.footer {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}

/* .tab { display: inline-flex } иначе перебивает нативный [hidden] */
[data-lang-panel][hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .site-wrap {
    width: calc(100% - 1.25rem);
    padding-top: 1.1rem;
  }

  .panel-body {
    padding: 1.1rem 0.95rem 1.25rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ── Landing ───────────────────────────────────────────────────────── */

.site-wrap-landing {
  width: min(1080px, calc(100% - 2rem));
}

.topbar-landing .brand-name {
  font-size: 1rem;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.topbar-landing .brand-tag {
  font-size: 0.75rem;
}

.landing {
  display: grid;
  gap: 2.75rem;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.75rem 2rem;
  align-items: center;
  min-height: min(72vh, 620px);
  margin: 0 -0.15rem;
  padding: 1.5rem 0 0.5rem;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: -8% -4% auto -4%;
  height: 118%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(14, 14, 16, 0.92) 0%, rgba(14, 14, 16, 0.55) 42%, rgba(14, 14, 16, 0.2) 68%, transparent 86%),
    radial-gradient(ellipse 70% 80% at 78% 40%, rgba(64, 184, 64, 0.16), transparent 58%),
    linear-gradient(180deg, #1a1a1e 0%, #121214 55%, #0e0e10 100%);
  border: 1px solid #2c2c32;
  border-radius: 6px;
  animation: landing-stage-in 0.9s ease both;
}

.landing-hero-copy,
.landing-hero-stage {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  padding: 0.5rem 0.75rem 0.5rem 1.1rem;
  animation: landing-copy-in 0.75s ease both;
}

.landing-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-headline {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #d8d2c4;
}

.landing-lead {
  margin: 0 0 1.4rem;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.landing-cta .btn {
  min-width: 9.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.landing-cta .btn:hover {
  transform: translateY(-2px);
}

.landing-hero-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 1rem 1rem 1.25rem 0;
  animation: landing-mock-in 1s 0.12s ease both;
}

.hero-shots {
  --hero-shot-count: 7;
  --hero-shot-step: 4.5s;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 16 / 10;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  transform-origin: 70% 50%;
  animation: landing-mock-float 8s ease-in-out infinite;
}

.hero-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
  animation: hero-crossfade calc(var(--hero-shot-count) * var(--hero-shot-step)) ease-in-out infinite;
}

.hero-shots img:first-child {
  opacity: 1;
}

.hero-shots img:nth-child(1) { animation-delay: calc(0 * var(--hero-shot-step)); }
.hero-shots img:nth-child(2) { animation-delay: calc(1 * var(--hero-shot-step)); }
.hero-shots img:nth-child(3) { animation-delay: calc(2 * var(--hero-shot-step)); }
.hero-shots img:nth-child(4) { animation-delay: calc(3 * var(--hero-shot-step)); }
.hero-shots img:nth-child(5) { animation-delay: calc(4 * var(--hero-shot-step)); }
.hero-shots img:nth-child(6) { animation-delay: calc(5 * var(--hero-shot-step)); }
.hero-shots img:nth-child(7) { animation-delay: calc(6 * var(--hero-shot-step)); }

.landing-section-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.landing-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.landing-points li {
  padding: 0.15rem 0 0.15rem 0.9rem;
  border-left: 2px solid var(--accent-dim);
}

.landing-points strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.landing-points span {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.landing-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.landing-steps li {
  margin: 0.45rem 0;
}

.landing-steps code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  color: #b6e3b6;
}

.landing-link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.landing-link-row a {
  display: block;
  padding: 0.85rem 0.15rem;
  border-top: 1px solid #333338;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.landing-link-row a:hover {
  border-top-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.landing-link-row strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.landing-link-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.landing .authors {
  margin-top: 0;
}

@keyframes landing-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landing-mock-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes landing-stage-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes landing-mock-float {
  0%, 100% { transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-4deg) rotateX(2deg) translateY(-6px); }
}

/* Overlapping crossfade: next fades in while previous is still visible (~14.28% slot). */
@keyframes hero-crossfade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  14% { opacity: 1; }
  17.5% { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
  }

  .landing-hero-stage {
    align-items: stretch;
    padding: 0 0.75rem 1rem;
  }

  .hero-shots {
    width: 100%;
    transform: none;
    animation: none;
  }

  .landing-headline {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .landing-points,
  .landing-link-row {
    grid-template-columns: 1fr;
  }

  .landing-cta .btn {
    width: 100%;
  }

  .landing-brand {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero::before,
  .landing-hero-copy,
  .landing-hero-stage,
  .hero-shots {
    animation: none !important;
  }

  .hero-shots img {
    animation: none !important;
    opacity: 0;
  }

  .hero-shots img:first-child {
    opacity: 1;
  }
}

/* ── Guide / doc pages (landing shell) ─────────────────────────────── */

.landing-hero-doc {
  min-height: min(52vh, 420px);
  padding: 1.35rem 0 0.25rem;
}

.landing-hero-doc::before {
  inset: 0;
  height: auto;
  bottom: 0;
  background:
    radial-gradient(ellipse 70% 90% at 18% 20%, rgba(64, 184, 64, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 70% at 88% 55%, rgba(64, 184, 64, 0.1), transparent 60%),
    linear-gradient(135deg, #1a1a1e 0%, #121214 48%, #0e0e10 100%);
}

.landing-hero-doc .landing-hero-copy {
  padding: 1.35rem 1.25rem 1.5rem;
  max-width: 40rem;
}

.landing-hero-doc .landing-hero-stage {
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 1.35rem 0.5rem;
}

.landing-hero-doc .landing-brand {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

.landing-hero-doc .landing-headline {
  max-width: 28ch;
}

.landing-hero-doc .landing-lead {
  max-width: 42ch;
}

/* Guide hero — animated mod-workshop mock */
.guide-hero-visual {
  --gh-w: min(100%, 22.5rem);
  position: relative;
  width: var(--gh-w);
  aspect-ratio: 5 / 4;
  margin-left: auto;
}

.guide-hero-window {
  position: absolute;
  inset: 8% 6% 18% 4%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #222228 0%, #17171b 100%);
  border: 1px solid #3a3a42;
  border-radius: 6px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(64, 184, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: guide-window-float 5.5s ease-in-out infinite;
}

.guide-hero-titlebar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: #2a2a30;
  border-bottom: 1px solid #3a3a42;
}

.guide-hero-dots {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 1.65rem;
  border-radius: 50%;
  background: #c06060;
  box-shadow: 0.7rem 0 0 #c0a060, 1.4rem 0 0 #40b840;
}

.guide-hero-filename {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.guide-hero-code {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  overflow: hidden;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  line-height: 1.45;
  color: #c8c2b6;
  white-space: pre;
}

.guide-hero-code .gh-kw { color: #7ec8ff; }
.guide-hero-code .gh-type { color: #9cdc9c; }
.guide-hero-code .gh-fn { color: #e6d48a; }
.guide-hero-code .gh-str { color: #ce9178; }

.guide-prose-code pre {
  max-height: min(70vh, 48rem);
  overflow: auto;
}

.guide-hero-caret {
  display: inline-block;
  width: 0.45em;
  height: 1.05em;
  margin-left: 0.1em;
  vertical-align: -0.15em;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: guide-caret-blink 1.05s steps(1) infinite;
}

.guide-hero-float {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: rgba(28, 28, 32, 0.92);
  border: 1px solid #4a4a50;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.guide-hero-float-a {
  top: 4%;
  right: 0;
  animation: guide-chip-a 4.8s ease-in-out infinite;
}

.guide-hero-float-b {
  top: 38%;
  right: -2%;
  animation: guide-chip-b 5.4s ease-in-out infinite;
}

.guide-hero-float-c {
  bottom: 6%;
  left: 2%;
  animation: guide-chip-c 5s ease-in-out infinite;
}

.guide-hero-float-d {
  bottom: 18%;
  right: 8%;
  animation: guide-chip-d 6s ease-in-out infinite;
}

.guide-hero-chip-icon {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.guide-hero-chip-icon[data-chip="dll"] {
  background: linear-gradient(135deg, #40b840, #2a8a2a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.guide-hero-chip-icon[data-chip="icon"] {
  background:
    linear-gradient(135deg, transparent 46%, #e8e4dc 46% 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, #e8e4dc 46% 54%, transparent 54%),
    #2a2a2e;
  border: 1px solid #65656c;
}

.guide-hero-chip-icon[data-chip="set"] {
  border-radius: 999px;
  background: #38383d;
  box-shadow: inset -0.28rem 0 0 #40b840;
}

.guide-hero-chip-icon[data-chip="cat"] {
  background: #2a2a2e;
  border: 1px solid #40b840;
  box-shadow: inset 0 -0.35rem 0 rgba(64, 184, 64, 0.35);
}

.guide-hero-chip-icon[data-chip="md"] {
  background: linear-gradient(135deg, #e8e4dc 0 35%, #2a2a2e 35% 100%);
  border: 1px solid #65656c;
}

.guide-hero-chip-icon[data-chip="log"] {
  background: #1c1c20;
  border: 1px solid #40b840;
  box-shadow:
    inset 0.15rem 0.2rem 0 #40b840,
    inset 0.15rem 0.45rem 0 rgba(64, 184, 64, 0.35);
}

.guide-hero-chip-icon[data-chip="man"] {
  background: #2a2a2e;
  border: 1px solid #c0a060;
  box-shadow: inset 0 0 0 2px rgba(192, 160, 96, 0.2);
}

.guide-hero-chip-icon[data-chip="folder"] {
  background: linear-gradient(180deg, #e0b070 0 28%, #c09050 28% 100%);
  border: 1px solid #a07840;
}

.guide-hero-chip-icon[data-chip="exe"] {
  background: linear-gradient(135deg, #40b840, #2a8a2a);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.guide-hero-chip-icon[data-chip="rar"] {
  background: #2a2a2e;
  border: 1px solid #7ec8ff;
  box-shadow: inset 0 -0.3rem 0 rgba(126, 200, 255, 0.35);
}

.guide-hero-chip-icon[data-chip="mods"] {
  background: #2a2a2e;
  border: 1px solid #65656c;
  box-shadow: inset 0.2rem 0.2rem 0 0 #40b840;
}

.guide-hero-chip-icon[data-chip="btn"] {
  border-radius: 3px;
  background: #40b840;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.guide-hero-setup {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  padding: 0.9rem 0.95rem 1rem;
}

.guide-hero-setup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8d2c4;
}

.guide-hero-path {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: #121214;
  border: 1px solid #3a3a42;
  border-radius: 4px;
}

.guide-hero-path-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.7rem;
  color: #b6e3b6;
}

.guide-hero-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.guide-hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.guide-hero-checklist li span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 1px solid #4a4a50;
  background: #2a2a2e;
  flex-shrink: 0;
}

.guide-hero-checklist li.is-done {
  color: #b6e3b6;
}

.guide-hero-checklist li.is-done span {
  border-color: #40b840;
  background: #40b840;
  box-shadow: inset 0 0 0 2px #17171b;
}

.guide-hero-checklist li.is-active {
  color: var(--text);
}

.guide-hero-checklist li.is-active span {
  border-color: #40b840;
  animation: guide-pulse-dot 1.2s ease-in-out infinite;
}

.guide-hero-progress {
  margin-top: auto;
  height: 0.45rem;
  overflow: hidden;
  background: #121214;
  border: 1px solid #3a3a42;
  border-radius: 999px;
}

.guide-hero-progress-bar {
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2a8a2a, #40b840, #6fd66f);
  box-shadow: 0 0 12px rgba(64, 184, 64, 0.45);
  animation: guide-progress-fill 3.6s ease-in-out infinite;
}

@keyframes guide-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(64, 184, 64, 0.45); }
  50% { box-shadow: 0 0 0 4px rgba(64, 184, 64, 0); }
}

@keyframes guide-progress-fill {
  0% { width: 18%; }
  55% { width: 86%; }
  100% { width: 18%; }
}

.guide-hero-visual-bugs .guide-hero-titlebar .guide-hero-filename {
  margin-right: auto;
}

.guide-hero-status {
  margin-left: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: guide-bug-status 6s steps(1) infinite;
}

.guide-hero-status::after {
  content: "Open";
  animation: guide-bug-status-label 6s steps(1) infinite;
}

@keyframes guide-bug-status {
  0%,
  32% {
    color: #f0c0c0;
    background: rgba(192, 96, 96, 0.28);
    box-shadow: inset 0 0 0 1px rgba(192, 96, 96, 0.55);
  }
  33%,
  65% {
    color: #e6d48a;
    background: rgba(192, 160, 96, 0.22);
    box-shadow: inset 0 0 0 1px rgba(192, 160, 96, 0.5);
  }
  66%,
  100% {
    color: #b6e3b6;
    background: rgba(64, 184, 64, 0.2);
    box-shadow: inset 0 0 0 1px rgba(64, 184, 64, 0.5);
  }
}

@keyframes guide-bug-status-label {
  0%, 32% { content: "Open"; }
  33%, 65% { content: "Progress"; }
  66%, 100% { content: "Fixed"; }
}

.guide-hero-bug {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 0.9rem 0.95rem 1rem;
}

.guide-hero-bug-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.guide-hero-bug-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.guide-hero-pill {
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  background: #2a2a2e;
  border: 1px solid #4a4a50;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.guide-hero-pill-mod {
  color: #e6d48a;
  border-color: rgba(192, 160, 96, 0.55);
  background: rgba(192, 160, 96, 0.12);
}

.guide-hero-bug-log {
  margin-top: auto;
  padding: 0.55rem 0.65rem;
  background: #121214;
  border: 1px solid #3a3a42;
  border-left: 2px solid var(--danger);
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #e0b0b0;
}

.guide-hero-bug-log .gh-dim {
  color: var(--text-dim);
}

.guide-hero-bug-log .gh-fn {
  color: #e6d48a;
}

.guide-hero-chip-icon[data-chip="bug"] {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e08080, #c06060 55%, #8a3030);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.guide-hero-chip-icon[data-chip="loader"] {
  background: linear-gradient(135deg, #40b840, #2a8a2a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.guide-hero-chip-icon[data-chip="modbug"] {
  background: #2a2a2e;
  border: 1px solid #c0a060;
}

.guide-hero-chip-icon[data-chip="token"] {
  background: #2a2a2e;
  border: 1px solid #7ec8ff;
  box-shadow: inset 0 0 0 2px rgba(126, 200, 255, 0.15);
}

.guide-hero-visual-bugs .guide-hero-window {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(192, 96, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.guide-hero-visual-changelog .gh-h2 {
  color: #e6d48a;
  font-weight: 700;
}

.guide-hero-visual-changelog .gh-bullet {
  color: var(--text-dim);
}

.guide-hero-visual-changelog .gh-tag {
  font-weight: 700;
}

.guide-hero-visual-changelog .gh-added { color: #6fd66f; }
.guide-hero-visual-changelog .gh-fixed { color: #7ec8ff; }
.guide-hero-visual-changelog .gh-changed { color: #e0b070; }

.guide-hero-langs {
  gap: 0.25rem;
  padding: 0.3rem;
}

.guide-hero-lang {
  min-width: 1.7rem;
  padding: 0.2rem 0.35rem;
  border-radius: 3px;
  background: #2a2a2e;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  animation: guide-lang-cycle 4.8s steps(1) infinite;
}

.guide-hero-lang:nth-child(1) { animation-delay: 0s; }
.guide-hero-lang:nth-child(2) { animation-delay: 1.6s; }
.guide-hero-lang:nth-child(3) { animation-delay: 3.2s; }

@keyframes guide-lang-cycle {
  0%,
  32% {
    color: var(--text);
    background: rgba(64, 184, 64, 0.22);
    box-shadow: inset 0 0 0 1px rgba(64, 184, 64, 0.45);
  }
  33%,
  100% {
    color: var(--text-dim);
    background: #2a2a2e;
    box-shadow: none;
  }
}

@keyframes guide-window-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes guide-caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes guide-chip-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 5px); }
}

@keyframes guide-chip-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-6px, -4px); }
}

@keyframes guide-chip-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -5px); }
}

@keyframes guide-chip-d {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3px, 4px) scale(1.03); }
}

@media (max-width: 900px) {
  .landing-hero-doc {
    min-height: 0;
  }

  .landing-hero-doc .landing-hero-stage {
    padding: 0 0.75rem 1.1rem;
  }

  .guide-hero-visual {
    margin: 0 auto;
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero-window,
  .guide-hero-float,
  .guide-hero-caret,
  .guide-hero-lang,
  .guide-hero-progress-bar,
  .guide-hero-checklist li.is-active span,
  .guide-hero-status,
  .guide-hero-status::after {
    animation: none !important;
  }

  .guide-hero-caret {
    opacity: 1;
  }

  .guide-hero-progress-bar {
    width: 72%;
  }

  .guide-hero-lang:first-child {
    color: var(--text);
    background: rgba(64, 184, 64, 0.22);
    box-shadow: inset 0 0 0 1px rgba(64, 184, 64, 0.45);
  }

  .guide-hero-status {
    color: #f0c0c0;
    background: rgba(192, 96, 96, 0.28);
    box-shadow: inset 0 0 0 1px rgba(192, 96, 96, 0.55);
  }

  .guide-hero-status::after {
    content: "Open";
  }
}

.guide-page {
  gap: 2rem;
}

.guide-doc {
  padding-bottom: 0.5rem;
}

.guide-note {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 0.75rem 0.9rem;
  border-left: 2px solid var(--accent-dim);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.guide-note code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  color: #b6e3b6;
}

.guide-page .guide-prose > :first-child {
  margin-top: 0;
}

.guide-page .guide-prose h1,
.guide-page .guide-prose h2,
.guide-page .guide-prose h3,
.guide-page .guide-prose .section-title {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #333338;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.guide-page .guide-prose h1 {
  font-size: 1.35rem;
  text-transform: none;
}

.guide-page .guide-prose h2,
.guide-page .guide-prose .section-title {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-page .guide-prose h3 {
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.guide-page .guide-prose p,
.guide-page .guide-prose li {
  color: var(--text-muted);
  line-height: 1.55;
}

.guide-page .guide-prose ul,
.guide-page .guide-prose ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.3rem;
}

.guide-page .guide-prose li + li {
  margin-top: 0.35rem;
}

.guide-page .guide-prose li > ul,
.guide-page .guide-prose li > ol {
  margin: 0.35rem 0 0.15rem;
}

.guide-page .guide-prose blockquote {
  margin: 0.85rem 0 1.1rem;
  padding: 0.55rem 0 0.55rem 0.9rem;
  border-left: 2px solid rgba(226, 197, 106, 0.55);
  color: var(--text-muted);
}

.guide-page .guide-prose blockquote p {
  margin: 0.25rem 0;
}

.guide-callout {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem 0.95rem;
  background: rgba(226, 197, 106, 0.07);
  border: 1px solid rgba(226, 197, 106, 0.42);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(226, 197, 106, 0.08);
}

.guide-callout > p:first-child {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2c56a;
}

.guide-callout > p:first-child strong {
  color: #e2c56a;
  font-weight: 700;
}

.guide-callout p,
.guide-callout li {
  color: var(--text-muted);
}

.guide-callout ul,
.guide-callout ol {
  margin: 0.35rem 0 0;
}

.guide-callout > :last-child {
  margin-bottom: 0;
}

.guide-page .guide-prose hr {
  border: 0;
  border-top: 1px solid #333338;
  margin: 1.5rem 0;
}

.guide-page .guide-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1.1rem;
  font-size: 0.92rem;
}

.guide-page .guide-prose th,
.guide-page .guide-prose td {
  padding: 0.5rem 0.65rem;
  border: 1px solid #333338;
  text-align: left;
}

.guide-page .guide-prose th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.guide-page .guide-prose pre {
  margin: 0.85rem 0 1.15rem;
  padding: 0.95rem 1.05rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid #2e2e34;
  border-radius: 4px;
  color: #d8d2c6;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.guide-page .guide-prose code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
  color: #b6e3b6;
}

.guide-page .guide-prose pre code {
  color: inherit;
  font-size: inherit;
}

.guide-actions {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #333338;
}
