:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --muted: #334155;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --border: #d8e2ee;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: #eef3fb;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%), #f5f7fb;
  color: var(--text);
  line-height: 1.75;
}
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
a:hover,
a:focus {
  color: var(--primary-strong);
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
body > * {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 0;
}
header.hero,
.hero {
  position: relative;
  padding: 40px 36px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(45, 98, 214, 0.12);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.08);
  overflow: hidden;
}
.kicker,
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  font-weight: 700;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  color: #0f172a;
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
}
.h1,
.h2,
.h3 {
  margin-bottom: 1rem;
}
p,
ul,
ol,
dl,
blockquote {
  margin: 0 0 1.25rem;
}
ul,
ol {
  padding-left: 1.35rem;
}
ul {
  list-style: disc;
}
.card,
.article,
.panel,
.box,
.notice,
.tile,
.content,
.side-card,
.footer,
.footer-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  padding: 24px;
  margin: 18px 0;
}
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.section {
  padding: 22px 0;
}
.notice {
  padding: 18px 20px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}
.warning,
.warn,
.warning,
.alert {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.muted {
  color: var(--muted);
}
.footer,
.footer-note {
  color: #64748b;
  font-size: 0.95rem;
  padding: 26px 0 34px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
}
pre,
code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace;
  background: #f8fafc;
  border-radius: 14px;
}
pre {
  padding: 1.25rem;
  overflow: auto;
}
blockquote {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
button,
.btn,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
button:hover,
.btn:hover,
.button:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
}
.btn.secondary {
  background: #f8fafc;
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border-color: currentColor;
}
.btn.red {
  background: #ef4444;
}
.btn.green {
  background: #16a34a;
}
.btn.gray {
  background: #475569;
}
.btn.full {
  width: 100%;
}
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.9rem;
}
.home-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-list li {
  margin: 0.6rem 0;
}
.home-list a {
  font-size: 1.1rem;
}
.legal-banner {
  margin: 0;
  padding: 12px 18px;
  background: #fff7ed;
  color: #7c2d12;
  border-bottom: 1px solid #fed7aa;
  font-size: 0.95rem;
  line-height: 1.75;
}
.citation-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.95rem;
  line-height: 1.8;
}
.top {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.top h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
}
.top p {
  color: var(--muted);
  margin: 0;
}
.indent {
  padding-left: 12px;
  border-left: 3px solid #dbeafe;
  background: #f8fbff;
  border-radius: 8px;
}
.tablewrap {
  overflow: auto;
  margin: 16px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 700;
}
.hotkeys {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin-top: 12px;
}
.key {
  font-weight: 700;
  color: var(--primary);
}
.card a {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.card.tile h3 {
  margin-top: 0;
}
.hero p {
  color: var(--muted);
  line-height: 1.85;
  max-width: 960px;
}
.button-row {
  margin-top: 10px;
}
.button-row > .btn + .btn {
  margin-left: 12px;
}
.btn.alt {
  background: #475569;
}
.visual-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input[type="search"],
input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
@media (max-width: 720px) {
  .wrap {
    padding: 24px 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 30px 20px 22px;
  }
}
