:root {
  color-scheme: light;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --border: #e2e8f0;
  --soft: #eff6ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-dark);
}

.site-header,
main,
.site-footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
}

.nav-links,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.nav-links a,
.site-footer a,
.text-link {
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

main {
  padding: 8px 0 28px;
}

.hero,
.page-hero,
.section,
.notice,
.policy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: clamp(36px, 7vw, 72px);
}

.hero-content {
  max-width: 720px;
}

.page-hero {
  padding: clamp(28px, 5vw, 46px);
}

.section,
.notice,
.policy {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 36px);
}

.policy .page-hero {
  margin: calc(clamp(24px, 4vw, 36px) * -1);
  margin-bottom: clamp(24px, 4vw, 36px);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 8px 8px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
}

.lead {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.35;
}

.official {
  display: inline-flex;
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  font-weight: 650;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.value {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.steps p {
  margin-bottom: 0;
}

.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.notice {
  border-color: #bfdbfe;
  background: var(--soft);
}

.notice p {
  max-width: 850px;
}

.check-list {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.support-note {
  margin: 20px 0 0;
  color: var(--text);
  font-weight: 650;
}

.policy {
  max-width: 860px;
}

.policy section + section {
  margin-top: 28px;
}

.policy ul {
  padding-left: 1.25rem;
}

.updated {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 32px 22px;
  }

  .detail-grid,
  .detail-grid.two-column,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1080px);
  }

  .nav-links,
  .site-footer nav {
    gap: 10px 14px;
  }
}
