body {
  background: var(--surface);
  font-size: 15px;
}
.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header nav a:not(.btn) {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:not(.btn):hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--tint), var(--surface));
}
.hero-grid,
.two {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.small,
.note {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 14px;
}
.actions .btn {
  min-height: 42px;
  padding-inline: 18px;
}
.code-card {
  margin: 0;
  padding: 14px 16px 6px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(31, 33, 51, 0.18);
  overflow-x: auto;
}
.code-card figcaption {
  color: #a9a5d6;
  font: 600 12px var(--mono);
}
.code-card pre {
  margin: 6px 0 14px;
}
.band {
  padding: 64px 0;
}
.band.alt {
  background: var(--canvas);
  border-block: 1px solid var(--line);
}
.band h2,
.doc h2 {
  font-size: 26px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
}
.steps h3 {
  font-size: 17px;
}
.steps p {
  margin: 8px 0 0;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.form-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.form-grid a:hover {
  border-color: var(--accent);
}
.form-grid strong {
  color: var(--accent);
  font-size: 16px;
}
.form-grid small {
  margin-top: auto;
  padding-top: 6px;
  color: var(--faint);
}
.two pre {
  white-space: pre-wrap;
  word-break: break-all;
}
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 14px;
  padding: 0;
  list-style: none;
}
.prices li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.prices strong {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.prices span {
  color: var(--muted);
}
.doc {
  padding: 32px 0 64px;
}
.doc h1 {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.doc section {
  margin-top: 40px;
}
.doc h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}
.crumbs {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 13px;
}
.subtitle {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}
.facts div:first-child {
  grid-column: span 2;
}
.facts div {
  padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.facts dt {
  color: var(--muted);
  font-size: 12px;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}
pre.code {
  padding: 14px 16px;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
details pre.code {
  max-height: 420px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
.rules {
  padding-left: 20px;
}
.rules li {
  margin: 8px 0;
}
.rules .when {
  display: block;
  color: var(--muted);
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.doc th,
.doc td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: var(--canvas);
  font-size: 12px;
  color: var(--muted);
}
.doc tbody tr:last-child td {
  border-bottom: 0;
}
.doc tbody tr {
  scroll-margin-top: 76px;
}
.doc tbody tr:target {
  background: var(--tint);
}
.doc td:first-child {
  max-width: 260px;
  overflow-wrap: anywhere;
}
.doc td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.doc td small.cond {
  color: var(--warn);
}
.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sunken);
  color: var(--muted);
}
.status.required {
  background: var(--bad-tint);
  color: var(--bad);
}
.status.conditional {
  background: var(--warn-tint);
  color: var(--warn);
}
.doc .note {
  margin-top: 40px;
}
.site-footer {
  padding: 48px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.site-footer .columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--accent);
}
@media (max-width: 860px) {
  .hero {
    padding: 40px 0;
  }
  .hero-grid,
  .two,
  .steps,
  .prices,
  .site-footer .columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-header nav a:not(.btn):not([href="/uscis"]) {
    display: none;
  }
  .band {
    padding: 44px 0;
  }
  .doc thead {
    display: none;
  }
  .doc table,
  .doc tbody,
  .doc tr,
  .doc td {
    display: block;
  }
  .doc tbody tr {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
  }
  .doc td {
    padding: 2px 0;
    border: 0;
  }
  .doc td:first-child {
    max-width: none;
  }
}
