/* Website UI kit — shared styles layered on top of the tokens. */

@import url("../../tokens.css");

html, body { min-height: 100%; background: var(--white); }
body { color: var(--fg-1); }

/* ---------- page scaffolding ---------- */
.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  position: sticky; top: 0; z-index: 20;
}
/* .mk renders the canonical SVG wordmark from HEAD/brand/Logo/. Don't replace with text. */
.topbar .mk { display: inline-flex; align-items: center; line-height: 0; }
.topbar .mk img,
.topbar .mk svg { height: 28px; width: auto; display: block; }
.topbar nav { display: flex; gap: 24px; font-size: 14px; }
.topbar nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.topbar .right { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.topbar .right .lang { color: var(--ink-muted); }

.hero-band {
  background: var(--accent);
  color: #fff;
  padding: 72px 48px 80px;
}
.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #fff;
}
.breadcrumb svg { width: 16px; height: 16px; }
.breadcrumb .sep { color: rgba(255,255,255,0.5); }
.breadcrumb .cur { font-weight: 700; }

.hero-band h1 {
  font-size: 88px; line-height: 88px; letter-spacing: -3px;
  margin: 0; max-width: 18ch; color: #fff;
}
.hero-band .dek {
  font-size: 22px; line-height: 30px; max-width: 52ch; margin: 0; color: #fff;
}

/* ---------- body layout ---------- */
.body-layout {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
  gap: 56px;
  padding: 48px 48px 80px;
}

/* ---------- left rail ---------- */
.rail { border-right: 1px solid var(--hairline); padding-right: 24px; }
.rail-section { margin-bottom: 16px; }
.rail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  margin: 0 -10px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  transition: background var(--motion-fast);
}
.rail-item:hover { background: #fafafa; }
.rail-item.active { background: var(--surface); font-weight: 700; }
.rail-toggle {
  width: 14px; font-family: var(--font-mono); font-size: 15px; color: var(--ink-muted); flex-shrink: 0; text-align: center;
}
.rail-children {
  margin-left: 10px;
  border-left: 1px solid var(--hairline);
  padding-left: 14px;
  margin-bottom: 6px;
}
.rail-child {
  padding: 6px 10px;
  margin: 0 -10px;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--motion-fast);
}
.rail-child:hover { color: var(--ink); }
.rail-child.active { background: var(--surface); color: #000; font-weight: 700; }

/* ---------- content well ---------- */
.well { min-width: 0; }
.section { margin-bottom: 64px; }
.section h2 { margin: 0 0 24px; }
.section p { margin-bottom: 16px; }
.section .lede {
  font-size: 22px; line-height: 32px; margin-bottom: 32px; max-width: 60ch;
}

/* ---------- grey card grid ---------- */
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-bottom: 32px;
}
.gcard {
  background: var(--surface);
  padding: 32px 36px 36px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: background var(--motion-fast);
  text-decoration: none; color: inherit;
}
.gcard:hover { background: #e8e8e8; }
.gcard h3 { margin: 0; font-size: 26px; line-height: 32px; letter-spacing: -0.8px; }
.gcard p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); max-width: none; }

/* ---------- read-next bar ---------- */
.read-next {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-fast);
}
.read-next:hover { background: var(--surface); padding-left: 16px; padding-right: 16px; }
.read-next .label-pre { font-size: 13px; font-weight: 500; color: var(--ink-muted); display: block; margin-bottom: 4px; }
.read-next svg { width: 28px; height: 28px; stroke-width: 1.25; }

/* ---------- accent callout (CTA band) ---------- */
.cta-band {
  background: var(--accent);
  padding: 64px 48px;
  color: #fff;
}
.cta-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.cta-inner h2 {
  font-size: 56px; line-height: 60px; letter-spacing: -2px; margin: 0; max-width: 16ch;
}
.btn-primary {
  background: #000; color: #fff; border: 1px solid #000;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--motion-fast);
}
.btn-primary:hover { background: #2a2a2a; }
.btn-ghost {
  background: transparent; color: #000; border: 1px solid #000;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  cursor: pointer; text-decoration: none;
  transition: background var(--motion-fast);
}
.btn-ghost:hover { background: #000; color: #fff; }
.btn-ghost.inverse { color: #fff; border-color: #fff; }
.btn-ghost.inverse:hover { background: #fff; color: #000; }

/* ---------- footer ---------- */
.footer { background: #000; color: #fff; padding: 56px 48px 40px; }
.footer-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 48px;
  align-items: start;
}
/* Footer renders the White SVG lockup oversize. Don't replace with text. */
.footer .mk { display: inline-flex; align-items: flex-start; line-height: 0; }
.footer .mk img,
.footer .mk svg { height: 96px; width: auto; display: block; }
.footer h5 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); margin: 6px 0 12px; text-transform: none; letter-spacing: 0; }
.footer a, .footer p { font-family: var(--font-sans); font-size: 15px; line-height: 24px; color: #fff; text-decoration: none; display: block; margin: 0; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .bottom {
  max-width: var(--content-max); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,0.6);
}

/* ---------- pill tag ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--surface); color: var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* ---------- table (simple) ---------- */
table.spec { border-collapse: collapse; width: 100%; margin: 16px 0 32px; font-size: 15px; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
table.spec th { font-weight: 700; background: var(--surface); }
table.spec td.mono { font-family: var(--font-mono); font-size: 13px; }
table.spec .chip { display: inline-block; width: 18px; height: 18px; vertical-align: middle; margin-right: 8px; border: 1px solid rgba(0,0,0,0.08); }
