:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --panel: #ffffff;
  --text: #17201d;
  --muted: #5f6965;
  --line: #d9ded8;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --blue: #245dbb;
  --gold: #a16207;
  --red: #b42318;
  --soft: #edf7f4;
  --shadow: 0 18px 44px rgba(23, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

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

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

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent-dark);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.breadcrumb-separator {
  color: #9aa39f;
}

.hero,
.page-hero {
  padding: 54px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 560px;
}

.page-hero {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.summary-panel {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.summary-panel h2,
.toc h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.summary-grid strong {
  display: block;
  color: var(--accent-dark);
  font-size: 0.88rem;
}

.summary-grid p {
  margin: 7px 0 0;
  color: var(--muted);
}

.toc {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.toc li {
  padding-left: 2px;
}

.toc a {
  color: var(--accent-dark);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  padding: 42px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section-heading h2 {
  position: sticky;
  top: 96px;
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.28;
}

.section-body {
  min-width: 0;
}

.section-body p:first-child,
.section-body ul:first-child,
.section-body ol:first-child {
  margin-top: 0;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 29, 0.045);
  text-decoration: none;
}

.card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.card strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.card p {
  margin: 9px 0 0;
  color: var(--muted);
}

.check-list,
.step-list {
  padding-left: 1.35rem;
}

.check-list li,
.step-list li {
  margin: 0.4rem 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

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

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

th {
  background: #eef4f1;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111c1a;
  color: #eef8f5;
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 820;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

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

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

footer {
  margin-top: 46px;
  padding: 36px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-heading h2 {
    position: static;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.28rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .summary-grid,
  .toc ol {
    grid-template-columns: 1fr;
  }

  .summary-panel,
  .toc {
    padding: 18px;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    border-collapse: separate;
    background: transparent;
  }

  thead {
    display: none;
  }

  tr {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

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

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
  }
}
