:root {
  color-scheme: light;
  --primary: #2563eb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --surface: #ffffff;
  --notice-bg: #eff6ff;
  --notice-border: #bfdbfe;
  --summary-bg: #f0fdf4;
  --summary-border: #bbf7d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.site-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-brand {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.site-brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.925rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
}

.page-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

h2:first-of-type {
  margin-top: 0;
}

p,
li {
  margin: 0.75rem 0;
}

ul {
  padding-left: 1.25rem;
}

strong {
  font-weight: 600;
}

.card {
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.975rem;
}

.card-notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
}

.card-summary {
  background: var(--summary-bg);
  border: 1px solid var(--summary-border);
}

.card-summary h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.card-summary .summary-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.card-app {
  background: var(--bg);
  border: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg);
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}

@media (max-width: 640px) {
  .page {
    padding: 0 1rem 2.5rem;
  }

  main {
    padding: 1.5rem 1.15rem;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .site-header-inner {
    padding: 0.85rem 1rem;
  }
}
