:root {
  --bg: #ffffff;
  --paper: #f7f9f8;
  --ink: #1f2b2a;
  --muted: #5f6f6c;
  --line: #d9e2df;
  --accent: #1f6f64;
  --accent-soft: #e7f3f0;
  --warn: #8a5a18;
  --warn-soft: #fff5df;
  --danger: #8b2f2f;
  --danger-soft: #fff0f0;
  --shadow: 0 10px 30px rgba(31, 43, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  padding: 14px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: thin;
}

.nav a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.notice-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.notice-bar .container {
  padding: 9px 0;
}

main {
  padding-bottom: 56px;
}

.hero {
  background: linear-gradient(180deg, #f1f8f6 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero .container {
  padding: 34px 0 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0;
}

h1 {
  font-size: clamp(28px, 7vw, 46px);
  max-width: 850px;
}

h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

p {
  margin: 0 0 16px;
}

.lead {
  margin-top: 16px;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
}

.button.secondary {
  background: #fff;
  color: var(--accent);
}

.section {
  padding: 34px 0 0;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two,
.grid.three {
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}

.soft {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.alert {
  border: 1px solid #efcf8f;
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: 8px;
  padding: 16px;
}

.danger {
  border: 1px solid #e5b7b7;
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 8px;
  padding: 16px;
}

.list {
  padding-left: 1.2em;
  margin: 0;
}

.list li {
  margin: 0 0 8px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  border-left: 4px solid var(--accent-soft);
  padding: 0 0 0 16px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

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

th {
  background: var(--paper);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: 0;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.link-list a::after {
  content: ">";
  color: var(--accent);
  font-weight: 900;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.flow {
  display: grid;
  gap: 10px;
}

.flow-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.flow-item strong {
  display: block;
  margin-bottom: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.directory-card {
  border: 1px dashed #b9c8c4;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.directory-fields {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.directory-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.directory-field:last-child {
  border-bottom: 0;
}

.directory-field span:first-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.site-footer .container {
  padding: 28px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
  }

  .nav {
    justify-content: end;
    padding-top: 0;
  }

  .hero .container {
    padding: 58px 0 42px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
