:root {
  color-scheme: light dark;
  --ink: #17201d;
  --muted: #5b6863;
  --paper: #f6f4ee;
  --surface: #fffdf8;
  --line: #d9ddd6;
  --brand: #126b55;
  --brand-strong: #084f3e;
  --soft: #e6f1eb;
  --focus: #f1a43c;
  --shadow: 0 18px 55px rgb(26 47 39 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef4f0;
    --muted: #abb9b3;
    --paper: #111815;
    --surface: #18211d;
    --line: #34433d;
    --brand: #79d8b8;
    --brand-strong: #a1ecd2;
    --soft: #203a31;
    --focus: #ffc36d;
    --shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.68 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.18rem;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.header-inner,
.page,
.site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.1rem;
  font-size: 0.93rem;
}

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

.header-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.language-link {
  display: inline-block;
  padding: 0.12rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.document {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.6rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
}

h2 {
  margin: 3.2rem 0 0.8rem;
  padding-top: 0.4rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

h3 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.04rem;
}

p,
ul,
ol,
dl {
  margin-block: 0.75rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.45rem;
}

.lede {
  max-width: 48rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
}

.meta {
  margin: 1.35rem 0 2.2rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin-block: 1.8rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  border-radius: 0.2rem 0.6rem 0.6rem 0.2rem;
  background: var(--soft);
}

.contact-card {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
}

.contact-card address {
  font-style: normal;
}

.contents {
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.contents strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.contents ol {
  margin: 0;
  padding-left: 1.1rem;
}

.contents li + li {
  margin-top: 0.3rem;
}

.contents a {
  color: inherit;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 1.2rem;
}

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

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

th {
  background: var(--soft);
}

.steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.steps > li {
  position: relative;
  min-height: 2.5rem;
  padding-left: 3.1rem;
}

.steps > li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  font-size: 0.86rem;
  font-weight: 800;
}

.home {
  width: min(100% - 2rem, 58rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 12vw, 9rem);
}

.home-panel {
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.home-links a {
  display: block;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-links span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (max-width: 52rem) {
  .page {
    grid-template-columns: 1fr;
  }

  .contents {
    position: static;
    grid-row: 1;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
  }
}

@media (max-width: 38rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .document {
    padding: 1.35rem;
    border-radius: 0.75rem;
  }

  .home-links {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root {
    --ink: #000;
    --muted: #333;
    --paper: #fff;
    --surface: #fff;
    --line: #bbb;
  }

  .site-header,
  .contents,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page {
    display: block;
    width: 100%;
    padding: 0;
  }

  .document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
