/*
 * 3AMX design system
 * ---------------------------------------------------------------------------
 * Dark-first, one identity for the whole site. The theme's own tokens are
 * overridden here so the site reads as a single dark surface no matter what
 * the theme toggle is set to — the toggle is hidden further down because a
 * visible control that does nothing is worse than no control.
 *
 * The per-game accent is NOT declared here. The amx plugin injects
 * --amx-primary / --amx-secondary as an inline style, so every use site
 * falls back explicitly with var(--amx-primary, #7c5cff).
 */

:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  /* --- Quark 2 token overrides ------------------------------------- */
  --q2-bg: #070910;
  --q2-bg-elev: #0f1422;
  --q2-bg-muted: #161d2e;
  --q2-bg-inverse: #f2f5fb;
  --q2-text: #e8edf8;
  --q2-text-strong: #ffffff;
  --q2-text-muted: #98a3bd;
  --q2-text-inverse: #0b0e16;
  --q2-border-ring: rgba(255, 255, 255, 0.09);
  --q2-border-strong: rgba(255, 255, 255, 0.16);
  --q2-divider: rgba(255, 255, 255, 0.1);
  --q2-nav-bg: rgba(7, 9, 16, 0.8);
  --q2-nav-border: rgba(255, 255, 255, 0.07);
  --q2-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.055);
  --q2-shadow-raised: 0 18px 44px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --q2-shadow-dropdown: 0 24px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.1);

  --pico-background-color: var(--q2-bg);
  --pico-color: var(--q2-text);
  --pico-muted-color: var(--q2-text-muted);
  --pico-muted-border-color: var(--q2-divider);
  --pico-card-background-color: var(--q2-bg-elev);
  --pico-card-sectioning-background-color: var(--q2-bg-muted);
  --pico-form-element-background-color: var(--q2-bg-elev);
  --pico-form-element-border-color: rgba(255, 255, 255, 0.12);
  --pico-form-element-color: var(--q2-text);
  --pico-primary-background: var(--q2-accent);
  --pico-primary-border: var(--q2-accent);
  --pico-primary: var(--q2-accent);
  --pico-primary-hover: var(--q2-accent);
  --pico-primary-inverse: #0b0e16;

  /* --- 3AMX tokens --------------------------------------------------- */
  --amx-bg: #070910;
  --amx-surface: rgba(255, 255, 255, 0.035);
  --amx-surface-2: rgba(255, 255, 255, 0.062);
  --amx-line: rgba(255, 255, 255, 0.11);
  --amx-line-soft: rgba(255, 255, 255, 0.06);
  --amx-text: #e8edf8;
  --amx-text-2: #9aa5bf;
  --amx-text-3: #6c7691;
  --amx-radius: 14px;
  --amx-radius-sm: 10px;
  --amx-radius-lg: 20px;
  --amx-maxw: 1180px;
  --amx-accent: var(--amx-primary, #7c5cff);
  --amx-accent-2: var(--amx-secondary, #35e0c4);
  --amx-grad: linear-gradient(118deg, var(--amx-accent), var(--amx-accent-2));
  --amx-glow: radial-gradient(
    60% 60% at 50% 0%,
    color-mix(in oklab, var(--amx-accent) 26%, transparent) 0%,
    transparent 70%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--q2-header-height, 72px) + 16px);
  background: var(--amx-bg);
}

body {
  background: var(--amx-bg);
  color: var(--amx-text);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* The theme offers a light/dark toggle; the site has one identity. */
.theme-toggle {
  display: none !important;
}

::selection {
  background: color-mix(in oklab, var(--amx-accent) 40%, transparent);
  color: #fff;
}

a {
  color: var(--amx-accent);
  text-decoration-color: color-mix(in oklab, var(--amx-accent) 45%, transparent);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
  color: var(--amx-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* The theme paints a gradient bar above every h2. Inside our own components
   the bar is redundant, so it is switched off and replaced by a section rule. */
.amx-h2::before,
.amx-h3::before,
.amx-card h3::before,
.amx-stat::before,
.amx-tile::before {
  display: none;
}

code {
  background: var(--amx-surface-2);
  border: 1px solid var(--amx-line-soft);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}

/* Pico ships `ul li { list-style: square }` — the marker is set on the <li>
   itself, not on the <ul>, so a `list-style: none` on the list is silently
   ignored and every component list grows stray square bullets next to its
   items. Reset the marker on the <li> globally, then opt article prose back
   in below (prose bullets are a deliberate part of the house style). */
ul li {
  list-style: none;
}

.amx-prose ul li {
  list-style: disc;
}

.amx-prose ol li {
  list-style: decimal;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.amx-container {
  width: 100%;
  max-width: var(--amx-maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.amx-section {
  padding: 72px 0;
  position: relative;
}

.amx-section + .amx-section {
  border-top: 1px solid var(--amx-line-soft);
}

.amx-section-tight {
  padding: 44px 0;
}

.amx-sec-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.amx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amx-accent);
  margin: 0 0 14px;
}

.amx-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--amx-grad);
}

.amx-h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
  margin: 0 0 18px;
}

/* Pico turns on automatic hyphenation site-wide. A display headline broken
   as "ac-tually" reads like a rendering bug, so headings are left alone. */
h1,
h2,
h3,
h4,
.amx-h1,
.amx-h2,
.amx-h3 {
  hyphens: none;
}

.amx-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 750;
  margin: 0 0 12px;
}

.amx-h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.amx-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--amx-text-2);
  margin: 0 0 26px;
  max-width: 66ch;
}

.amx-sec-sub {
  color: var(--amx-text-2);
  margin: 0;
  font-size: 1.02rem;
}

.amx-grad-text {
  background: var(--amx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Header
   ========================================================================== */

#header {
  background: var(--q2-nav-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--q2-nav-border);
}

#header .navbar {
  min-height: var(--q2-header-height, 72px);
}

.amx-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--pico-font-family-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.amx-logo:hover {
  color: #fff;
}

.amx-logo em {
  font-style: normal;
  background: var(--amx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amx-logo small {
  font-family: var(--pico-font-family-sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amx-text-3);
}

.amx-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* The theme's navbar is a flex row with three sections. The menu section is
   the one that grows, so it is allowed to shrink and scroll instead of
   pushing the logo and the CTA onto a second line. */
#header .navbar-section.desktop-menu {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

#header .navbar-section.desktop-menu::-webkit-scrollbar {
  display: none;
}

#header .navbar-section.logo,
#header .navbar-section.actions {
  flex: 0 0 auto;
}

.amx-nav > li {
  position: relative;
}

.amx-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--amx-text-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.amx-nav a:hover {
  color: #fff;
  background: var(--amx-surface-2);
}

.amx-nav a.amx-active {
  color: #fff;
  background: color-mix(in oklab, var(--amx-accent) 22%, transparent);
}

.amx-nav .amx-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amx-accent);
  box-shadow: 0 0 10px var(--amx-accent);
}

.amx-nav-divider {
  width: 1px;
  height: 22px;
  background: var(--amx-line);
  margin: 0 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.amx-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  border-bottom: 1px solid var(--amx-line-soft);
  background:
    radial-gradient(90% 120% at 8% -10%, color-mix(in oklab, var(--amx-accent) 24%, transparent) 0%, transparent 58%),
    radial-gradient(70% 100% at 96% 0%, color-mix(in oklab, var(--amx-accent-2) 16%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #090c16 0%, var(--amx-bg) 100%);
}

.amx-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 22%, #000 0%, transparent 78%);
}

.amx-hero .amx-container {
  position: relative;
  z-index: 1;
}

.amx-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

@media (max-width: 900px) {
  .amx-hero-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .amx-hero {
    padding: 62px 0 54px;
  }
}

/* ==========================================================================
   Chips / badges
   ========================================================================== */

.amx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.amx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--amx-line);
  border-radius: 999px;
  background: var(--amx-surface);
  font-size: 0.88rem;
  color: var(--amx-text-2);
  line-height: 1.3;
}

.amx-chip strong {
  color: var(--amx-text);
  font-weight: 700;
}

.amx-chip i {
  color: var(--amx-accent);
  font-size: 0.9em;
}

.amx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--amx-accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--amx-accent) 38%, transparent);
  color: color-mix(in oklab, var(--amx-accent) 72%, white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.amx-tag-amx {
  background: var(--amx-surface-2);
  border-color: var(--amx-line);
  color: var(--amx-text-2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.amx-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 21px;
  border-radius: 999px;
  border: 1px solid var(--amx-line);
  background: var(--amx-surface);
  color: var(--amx-text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.amx-btn:hover {
  transform: translateY(-1px);
  border-color: var(--amx-line);
  background: var(--amx-surface-2);
  color: #fff;
}

.amx-btn-primary {
  background: var(--amx-grad);
  border-color: transparent;
  color: #080b14;
  box-shadow: 0 10px 26px -12px color-mix(in oklab, var(--amx-accent) 80%, transparent);
}

.amx-btn-primary:hover {
  background: var(--amx-grad);
  color: #080b14;
  filter: brightness(1.08);
}

.amx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.amx-grid {
  display: grid;
  gap: 18px;
  justify-content: start;
}

/* Three tracks on a wide screen. `auto-fill` used to squeeze four tracks out
   of the measure, which left a three-card row short of a column and broke a
   nine-card block into 4/4/1 instead of 3/3/3. */
.amx-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* The hub's five section cards sit on one row at desktop width. */
.amx-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* The games grid holds one featured game today. Capping the track at 460px
   left a dead band of empty page to the right of the only card, so the track
   now runs the full measure and the card lays its own content out in two
   columns (see .amx-card-game below). */
.amx-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media (max-width: 1000px) {
  .amx-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .amx-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 620px) {
  .amx-grid-2,
  .amx-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .amx-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.amx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--amx-line-soft);
  border-radius: var(--amx-radius);
  background: linear-gradient(180deg, var(--amx-surface), rgba(255, 255, 255, 0.012));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.amx-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--amx-accent) 42%, transparent);
  box-shadow: 0 22px 46px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px color-mix(in oklab, var(--amx-accent) 22%, transparent);
}

/* The featured game card. The story on the left, the launch facts on the
   right, so a full-width card carries content instead of air. The inner
   track collapses on its own when the card gets narrow, which is what
   happens the day a second game is added to the grid. */
.amx-card-game {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
}

.amx-card-game .amx-card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.amx-card-game .amx-card-body h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.amx-card-game .amx-card-facts {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amx-card-game .amx-card-facts > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 11px 15px;
  border: 1px solid var(--amx-line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.88rem;
  color: var(--amx-text-3);
}

.amx-card-game .amx-card-facts > li strong {
  color: var(--amx-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.amx-card-game .amx-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.amx-card-game .amx-card-tags > li {
  list-style: none;
}

@media (max-width: 720px) {
  .amx-card-game {
    padding: 24px;
  }
}

.amx-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.amx-card p {
  margin: 0;
  color: var(--amx-text-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

.amx-card-link {
  text-decoration: none;
  color: inherit;
}

.amx-card-link:hover {
  color: inherit;
}

.amx-card-more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--amx-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.amx-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--amx-accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--amx-accent) 34%, transparent);
  color: color-mix(in oklab, var(--amx-accent) 75%, white);
  font-size: 1rem;
}

.amx-card-meta {
  font-size: 0.82rem;
  color: var(--amx-text-3);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Stat tiles
   ========================================================================== */

.amx-stat {
  padding: 20px 22px;
  border-radius: var(--amx-radius);
  border: 1px solid var(--amx-line-soft);
  background: linear-gradient(160deg, var(--amx-surface-2), rgba(255, 255, 255, 0.008));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.amx-stat-value {
  font-family: var(--pico-font-family-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.amx-stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amx-text-3);
}

.amx-stat-note {
  font-size: 0.88rem;
  color: var(--amx-text-2);
}

/* ==========================================================================
   Fact list
   ========================================================================== */

/* Separators are drawn on the cells rather than with a grid gap, so a short
   last row leaves clean empty space instead of a highlighted empty block. */
.amx-facts {
  display: grid;
  gap: 0;
  background: #0c1120;
  border: 1px solid var(--amx-line-soft);
  border-radius: var(--amx-radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.amx-fact {
  background: #0c1120;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--amx-line-soft);
  border-bottom: 1px solid var(--amx-line-soft);
}

.amx-fact dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amx-text-3);
}

.amx-fact dd {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 650;
  color: var(--amx-text);
}

.amx-fact .amx-fact-note {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--amx-text-2);
}

/* ==========================================================================
   Callouts
   ========================================================================== */

.amx-callout {
  border-radius: var(--amx-radius-sm);
  border: 1px solid var(--amx-line);
  border-left: 3px solid var(--amx-accent);
  background: var(--amx-surface);
  padding: 18px 22px;
  margin: 26px 0;
}

.amx-callout > :first-child {
  margin-top: 0;
}

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

.amx-callout-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 8px;
}

.amx-callout-title i {
  color: var(--amx-accent);
}

.amx-callout-warn {
  border-left-color: #f2a93b;
}

.amx-callout-warn .amx-callout-title i {
  color: #f2a93b;
}

.amx-callout-ok {
  border-left-color: #35c98a;
}

.amx-callout-ok .amx-callout-title i {
  color: #35c98a;
}

.amx-tldr {
  border-radius: var(--amx-radius);
  border: 1px solid color-mix(in oklab, var(--amx-accent) 34%, transparent);
  background:
    linear-gradient(120deg, color-mix(in oklab, var(--amx-accent) 13%, transparent), transparent 62%),
    #0c1120;
  padding: 22px 24px;
  margin: 0 0 30px;
}

.amx-tldr-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amx-accent);
  margin: 0 0 10px;
}

.amx-tldr p {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--amx-text);
}

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

/* ==========================================================================
   Prose
   ========================================================================== */

.amx-prose {
  max-width: 74ch;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--amx-text-2);
}

.amx-prose h2 {
  font-size: 1.6rem;
  margin: 42px 0 14px;
  color: var(--amx-text);
}

.amx-prose h3 {
  font-size: 1.14rem;
  margin: 30px 0 10px;
  color: var(--amx-text);
}

/* The theme's display face (Cal Sans) is designed for large settings; at body
   sizes its glyphs crowd each other. Article headings therefore use the text
   face, while the big display headings keep Cal Sans. */
.amx-prose h2,
.amx-prose h3,
.amx-prose h4 {
  font-family: var(--pico-font-family-sans-serif);
  font-weight: 750;
  letter-spacing: -0.014em;
  line-height: 1.32;
}

.amx-prose h2::before {
  background: var(--amx-accent);
  opacity: 1;
  width: 34px;
  margin-bottom: 0.6rem;
}

.amx-prose p {
  margin: 0 0 18px;
}

.amx-prose ul,
.amx-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.amx-prose li {
  margin-bottom: 8px;
}

.amx-prose li::marker {
  color: var(--amx-accent);
}

.amx-prose strong {
  color: var(--amx-text);
  font-weight: 700;
}

.amx-prose blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--amx-accent);
  background: color-mix(in oklab, var(--amx-accent) 8%, transparent);
  border-radius: 0 var(--amx-radius-sm) var(--amx-radius-sm) 0;
}

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

.amx-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.amx-prose th,
.amx-prose td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--amx-line-soft);
  vertical-align: top;
}

.amx-prose th {
  color: var(--amx-text-3);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom-color: var(--amx-line);
}

.amx-prose hr {
  border: 0;
  border-top: 1px solid var(--amx-line-soft);
  margin: 38px 0;
}

/* ==========================================================================
   Steps / icon list
   ========================================================================== */

.amx-steps {
  counter-reset: amx-step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.amx-steps > li {
  counter-increment: amx-step;
  position: relative;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--amx-line-soft);
  border-radius: var(--amx-radius-sm);
  background: var(--amx-surface);
}

.amx-steps > li::before {
  content: counter(amx-step);
  position: absolute;
  left: 16px;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #080b14;
  background: var(--amx-grad);
}

.amx-steps strong {
  display: block;
  color: var(--amx-text);
  margin-bottom: 2px;
}

.amx-iconlist {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 9px;
}

.amx-iconlist > li {
  position: relative;
  padding-left: 30px;
  color: var(--amx-text-2);
  list-style: none;
}

.amx-iconlist > li::before {
  content: "\f105";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--amx-accent);
  font-size: 0.92rem;
}

/* ==========================================================================
   Article layout / TOC / trust bar
   ========================================================================== */

.amx-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 1000px) {
  .amx-article {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

.amx-aside {
  position: sticky;
  top: calc(var(--q2-header-height, 72px) + 20px);
  display: grid;
  gap: 16px;
}

@media (max-width: 1000px) {
  .amx-aside {
    position: static;
  }
}

.amx-panel {
  border: 1px solid var(--amx-line-soft);
  border-radius: var(--amx-radius);
  background: var(--amx-surface);
  padding: 18px 20px;
}

.amx-panel-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amx-text-3);
  margin: 0 0 12px;
}

/* The homepage hero panel carries the lead game's headline numbers, so the
   hero is not half empty on a wide screen. */
.amx-hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.amx-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.amx-hero-stats .amx-stat {
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.022);
}

.amx-hero-stats .amx-stat-value {
  font-size: 1.6rem;
}

.amx-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--amx-line-soft);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--amx-accent);
  text-decoration: none;
}

.amx-panel-link:hover {
  color: color-mix(in oklab, var(--amx-accent) 75%, white);
}

.amx-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  font-size: 0.92rem;
}

.amx-toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid var(--amx-line);
  color: var(--amx-text-2);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.amx-toc a:hover {
  color: #fff;
  border-left-color: var(--amx-accent);
}

.amx-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid var(--amx-line-soft);
  border-radius: 999px;
  background: var(--amx-surface);
  font-size: 0.86rem;
  color: var(--amx-text-3);
}

.amx-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.amx-trust i {
  color: var(--amx-accent-2);
}

/* ==========================================================================
   Breadcrumbs / section nav
   ========================================================================== */

.amx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--amx-text-3);
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.amx-crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amx-crumbs li + li::before {
  content: "/";
  color: var(--amx-line);
}

.amx-crumbs a {
  color: var(--amx-text-2);
  text-decoration: none;
}

.amx-crumbs a:hover {
  color: var(--amx-accent);
}

.amx-sectabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.amx-sectabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--amx-line);
  border-radius: 999px;
  background: var(--amx-surface);
  color: var(--amx-text-2);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: all 0.16s ease;
}

.amx-sectabs a:hover {
  color: #fff;
  border-color: color-mix(in oklab, var(--amx-accent) 45%, transparent);
  background: color-mix(in oklab, var(--amx-accent) 12%, transparent);
}

.amx-sectabs a.amx-active {
  color: #080b14;
  background: var(--amx-grad);
  border-color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
  border-top: 1px solid var(--amx-line-soft);
  background: #05070d;
  padding: 44px 0;
  font-size: 0.92rem;
  color: var(--amx-text-3);
}

.amx-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  align-items: start;
}

.amx-footer-grid h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amx-text-2);
  margin: 0 0 12px;
}

.amx-footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

/* Pico ships `ul li { list-style: square }`. The rule on the <ul> is not
   enough: it sets the marker on the list itself, and the theme sets the
   marker on the <li>, which then wins over the inherited value. The global
   `ul li` reset near the top of this file handles every list; this one is
   kept explicit because the footer grid is the most marker-prone. */
.amx-footer-grid ul li {
  list-style: none;
}

.amx-footer-grid a {
  color: var(--amx-text-3);
  text-decoration: none;
}

.amx-footer-grid a:hover {
  color: var(--amx-accent);
}

.amx-footer-note {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--amx-line-soft);
  font-size: 0.84rem;
  color: var(--amx-text-3);
}

/* ==========================================================================
   Misc
   ========================================================================== */

.amx-empty {
  padding: 34px;
  border: 1px dashed var(--amx-line);
  border-radius: var(--amx-radius);
  text-align: center;
  color: var(--amx-text-3);
  font-size: 0.95rem;
}

.amx-reveal {
  animation: amx-fade-up 0.55s cubic-bezier(0.22, 0.68, 0.35, 1) both;
}

@keyframes amx-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .amx-reveal {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* The theme's article/list spacing does not fit our layout. */
#body-wrapper.section {
  padding: 0;
}

.content-item {
  padding: 0;
}

#body-wrapper .container {
  padding-inline: 0;
  max-width: none;
}
