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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg-deep);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font: inherit;
}

button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-gold-light);
}

/* ===== Variables ===== */
:root {
  --color-bg-deep: #0a0e1a;
  --color-bg-elevated: #151b2e;
  --color-primary-purple: #4c1d95;
  --color-primary-indigo: #312e81;
  --color-accent-gold: #f59e0b;
  --color-accent-gold-light: #fbbf24;
  --color-text-strong: #f8fafc;
  --color-text-body: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-border-glow: #7c3aed;

  --font-heading: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --header-h: 62px;
  --container-max: 1320px;
  --radius-s: 4px;
  --radius-m: 10px;
  --radius-l: 18px;
  --radius-pill: 999px;
  --shadow-m: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-l: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* ===== Base Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-strong);
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(26px, 3.6vw, 36px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 24px);
}

p {
  margin: 0 0 1em;
}

strong {
  color: var(--color-text-strong);
  font-weight: 600;
}

em {
  font-style: normal;
  color: var(--color-accent-gold);
}

small {
  font-size: 0.875em;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--color-text-strong);
}

:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

#main-content {
  outline: none;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: clamp(40px, 8vw, 88px);
}

.section--tight {
  padding-block: clamp(24px, 4vw, 48px);
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 64px);
}

.layout-split > :first-child {
  min-width: 0;
}

@media (min-width: 834px) {
  .layout-split {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
    align-items: start;
  }

  .layout-split--sticky > :first-child {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-gold-light));
  color: var(--color-bg-deep);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* ===== Header ===== */
.summit-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.93));
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.summit-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.summit-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-block: 8px;
}

@media (min-width: 960px) {
  .summit-header__top {
    min-height: 72px;
    padding-block: 10px;
  }

  .summit-header {
    --header-h: 74px;
  }
}

/* Track: gold horizon = scroll progress */
.summit-header__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(245, 158, 11, 0.13);
  overflow: hidden;
}

.summit-header__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.65), var(--color-accent-gold), var(--color-accent-gold-light));
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  border-radius: 0 2px 2px 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 50% 50% 6px 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(251, 191, 36, 0.16), transparent 58%),
    linear-gradient(135deg, rgba(76, 29, 149, 0.82), rgba(10, 14, 26, 0.55));
  color: var(--color-accent-gold-light);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand__glyph,
.brand:focus-visible .brand__glyph {
  border-color: var(--color-accent-gold-light);
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.3);
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__cn {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-strong);
}

.brand__en {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.brand:hover .brand__en,
.brand:focus-visible .brand__en {
  color: var(--color-accent-gold-light);
}

@media (max-width: 399px) {
  .brand__en {
    display: none;
  }

  .brand__glyph {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* Nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-m);
  background: rgba(76, 29, 149, 0.22);
  color: var(--color-text-strong);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  position: relative;
  z-index: 10;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--color-accent-gold);
  background: rgba(76, 29, 149, 0.36);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__line {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-toggle__text {
  font-weight: 500;
  letter-spacing: 0.06em;
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
}

/* Site nav: mobile-first drawer */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  z-index: 5;
  background: linear-gradient(180deg, #0b1020, #05070d);
  border-left: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.34s;
  padding: 80px clamp(20px, 6vw, 32px) 40px;
  overflow-y: auto;
}

.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.site-nav__item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 15px 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--color-accent-gold-light);
  background: rgba(245, 158, 11, 0.05);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-accent-gold);
  background: rgba(245, 158, 11, 0.07);
}

/* Desktop nav */
@media (min-width: 960px) {
  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    padding: 0;
    background: transparent;
    border-left: none;
    box-shadow: none;
    overflow: visible;
    z-index: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 1.8vw, 28px);
  }

  .site-nav__item {
    border-bottom: none;
  }

  .site-nav__link {
    display: inline-block;
    padding: 10px 2px;
    font-size: 15px;
    background: transparent;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
    border-radius: 2px;
    transition: width 0.25s ease;
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible {
    background: transparent;
    color: var(--color-text-strong);
  }

  .site-nav__link:hover::after,
  .site-nav__link:focus-visible::after {
    width: 100%;
  }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--color-accent-gold);
  }

  .site-nav__link[aria-current="page"]::after {
    width: 100%;
  }
}

/* ===== Footer ===== */
.summit-footer {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-deep), #050810);
  border-top: 1px solid rgba(245, 158, 11, 0.1);
  padding-top: 56px;
  padding-bottom: 28px;
  margin-top: clamp(48px, 8vw, 96px);
}

.summit-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.35) 20%, rgba(251, 191, 36, 0.7) 50%, rgba(245, 158, 11, 0.35) 80%, transparent 100%);
}

.summit-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.summit-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .summit-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .summit-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .summit-footer__top {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.1fr;
    gap: 40px;
  }

  .summit-footer__brand {
    grid-column: auto;
  }
}

.summit-footer__brand {
  min-width: 0;
}

.brand--footer .brand__cn {
  font-size: 20px;
}

.brand--footer .brand__en {
  font-size: 11px;
}

.summit-footer__note {
  margin: 20px 0 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-strong);
}

.summit-footer__trust {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 420px;
}

.summit-footer__heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin: 0 0 18px;
}

.summit-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.summit-footer__list a {
  display: inline-block;
  color: var(--color-text-body);
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.summit-footer__list a:hover,
.summit-footer__list a:focus-visible {
  color: var(--color-accent-gold-light);
  padding-left: 5px;
}

.summit-footer__list--muted li {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.summit-footer__divider {
  height: 1px;
  margin: 36px 0 20px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3), transparent);
}

.summit-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.summit-footer__bottom p {
  margin: 0;
}

.summit-footer__copy {
  order: 1;
}

.summit-footer__icp {
  order: 2;
}

.summit-footer__legal {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  order: 3;
}

.summit-footer__legal a {
  color: var(--color-text-muted);
  font-size: 13px;
  transition: color 0.2s ease;
}

.summit-footer__legal a:hover,
.summit-footer__legal a:focus-visible {
  color: var(--color-accent-gold);
}

@media (max-width: 639px) {
  .summit-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===== To Top Button ===== */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 500;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.88);
  color: var(--color-accent-gold);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--color-accent-gold-light);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.to-top__icon {
  display: block;
  line-height: 1;
}

/* ===== Content Components ===== */
.canvas-frame {
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, rgba(76, 29, 149, 0.1), transparent 60%),
    var(--color-bg-elevated);
  padding: clamp(24px, 5vw, 48px);
}

.canvas-frame::before,
.canvas-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--color-accent-gold);
  border-style: solid;
  opacity: 0.75;
  pointer-events: none;
}

.canvas-frame::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: var(--radius-s) 0 0 0;
}

.canvas-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 var(--radius-s) 0;
}

.section-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-accent-gold);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 36px);
  margin: 0 0 20px;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.crumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crumb li:not(:last-child)::after {
  content: "/";
  color: rgba(148, 163, 184, 0.45);
}

.crumb a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.crumb a:hover,
.crumb a:focus-visible {
  color: var(--color-accent-gold);
}

.crumb [aria-current="page"] {
  color: var(--color-accent-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary-purple), var(--color-primary-indigo));
  color: var(--color-text-strong);
  border-color: rgba(245, 158, 11, 0.28);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(135deg, #5b21b6, #3730a3);
  border-color: var(--color-accent-gold);
  box-shadow: 0 6px 24px rgba(76, 29, 149, 0.42);
  color: var(--color-text-strong);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent-gold);
  border-color: rgba(245, 158, 11, 0.45);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--color-accent-gold-light);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
  color: var(--color-accent-gold-light);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(76, 29, 149, 0.18);
  color: var(--color-text-body);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.divider {
  height: 1px;
  border: none;
  margin: var(--space-xl, 48px) 0;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.35), transparent);
}

/* Prose */
.prose {
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 1.8;
}

.prose h2 {
  margin: 1.6em 0 0.6em;
}

.prose h3 {
  margin: 1.4em 0 0.5em;
}

.prose p {
  margin: 0 0 1.4em;
}

.prose a {
  color: var(--color-accent-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-accent-gold-light);
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}

.prose ul li {
  list-style: disc;
  margin-bottom: 0.4em;
}

.prose ol li {
  list-style: decimal;
  margin-bottom: 0.4em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 24px;
  border-left: 3px solid var(--color-accent-gold);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 600;
}

/* Path: skill-tree style step list */
.path {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path-step;
}

.path__item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 32px;
  counter-increment: path-step;
}

.path__item:last-child {
  padding-bottom: 0;
}

.path__item::before {
  content: counter(path-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-accent-gold);
  background: var(--color-bg-elevated);
  color: var(--color-accent-gold);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.12);
}

.path__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.5), rgba(124, 58, 237, 0.25));
}

.path__item h3 {
  margin-bottom: 6px;
}

.path__item p:last-child {
  margin-bottom: 0;
}

/* Table wrapper */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-m);
  background: var(--color-bg-elevated);
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.table-wrap th {
  background: rgba(76, 29, 149, 0.3);
  color: var(--color-text-strong);
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap td {
  color: var(--color-text-body);
  white-space: nowrap;
}

.table-wrap tbody tr:last-child td {
  border-bottom: none;
}

.table-wrap tbody tr:hover td {
  background: rgba(245, 158, 11, 0.04);
}

/* Figure: abstract cloud image container */
.figure-cloud {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(135deg, #1e1b4b, #0f172a);
  aspect-ratio: 16 / 9;
}

.figure-cloud img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.figure-cloud::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 26, 0.4));
  pointer-events: none;
}

.figure-cloud--wide {
  aspect-ratio: 21 / 9;
}

.figure-cloud--portrait {
  aspect-ratio: 4 / 5;
}

/* ===== Utilities ===== */
.text-gold {
  color: var(--color-accent-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .skip-link {
    transition: none;
  }

  .site-nav {
    transition: none;
  }

  .to-top {
    transition: none;
  }
}
