:root {
  --bg: #f8faf7;
  --surface: #ffffff;
  --surface-muted: #eef5f1;
  --text: #14213d;
  --muted: #526173;
  --border: #d8e1dc;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #dff3ee;
  --amber: #b45309;
  --blue: #2563eb;
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.09);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

svg {
  max-width: 100%;
}

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

a:hover {
  color: #084c47;
}

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 250, 247, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-decoration: none;
}

.footer-brand {
  color: #fff;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.footer-brand .brand-mark {
  color: #d7fff5;
  border-color: #d7fff5;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  border-top: 2px solid currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 0.55rem 0.68rem;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--accent-dark);
}

.button,
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover,
.site-nav .nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.hero,
.page-hero,
.article-hero,
.band {
  border-bottom: 1px solid var(--border);
}

.hero {
  padding: clamp(3rem, 7vw, 5.2rem) 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(180, 83, 9, 0.08), transparent 42%),
    var(--bg);
}

.hero-stack {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
}

.page-hero h1,
.article-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 74ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.updated {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions,
.section-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.workflow-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.4rem);
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-node {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 152px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-node strong {
  font-size: 1.02rem;
}

.workflow-node span {
  color: var(--muted);
  font-size: 0.95rem;
}

.workflow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 900;
  z-index: 2;
}

.workflow-node.ready {
  border-color: rgba(15, 118, 110, 0.55);
  background: var(--accent-soft);
}

.workflow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.87rem;
  font-weight: 700;
}

.tag.warn {
  background: #fff7ed;
  color: var(--amber);
}

.section,
.page-hero,
.article-hero {
  padding: clamp(3rem, 7vw, 5.4rem) 0;
}

.section.compact {
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
}

.section.alt {
  background: var(--surface);
}

.section-header {
  display: grid;
  gap: 0.9rem;
  max-width: 800px;
  margin-bottom: clamp(1.5rem, 4vw, 2.6rem);
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header p,
.text-block p,
.card p,
.article-content p,
.timeline p,
.table-wrap p {
  color: var(--muted);
}

.text-block {
  display: grid;
  gap: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.card.highlight {
  border-color: rgba(15, 118, 110, 0.45);
  background: linear-gradient(180deg, #fff, #eef8f5);
}

.article-card h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.card-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.check-list,
.plain-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--amber);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-day {
  color: var(--accent-dark);
  font-weight: 900;
}

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

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

caption {
  padding: 1rem;
  color: var(--muted);
  text-align: left;
  font-weight: 700;
}

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

th {
  background: var(--surface-muted);
  color: var(--text);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-dark);
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.breadcrumb {
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: #8a96a6;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.article-content {
  display: grid;
  gap: 1.3rem;
  max-width: 760px;
}

.article-content h2 {
  margin-top: 1.4rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.article-content section:first-child h2 {
  margin-top: 0;
}

.aside-box {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.aside-box h2 {
  font-size: 1.25rem;
}

.cta-band {
  background: var(--text);
  color: #fff;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  opacity: 0.9;
}

.cta-band a:not(.button) {
  color: #d7fff5;
}

.contact-panel {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.copy-box {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f6f8fb;
  padding: 1rem;
  color: var(--text);
  font: inherit;
}

.site-footer {
  background: #0f172a;
  color: #dbe4ef;
  padding: 2.2rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.site-footer a {
  color: #d7fff5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-content: start;
  justify-content: end;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .small {
  color: #c4cfdd;
}

@media (max-width: 920px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.8rem;
  }

  .workflow-track,
  .grid.two,
  .grid.three,
  .grid.four,
  .article-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .workflow-node:not(:last-child)::after {
    content: "↓";
    left: 1rem;
    right: auto;
    top: auto;
    bottom: -1.05rem;
    transform: none;
  }

  .workflow-node {
    min-height: auto;
  }

  .aside-box {
    position: static;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero-actions,
  .section-actions,
  .card-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .page-hero h1,
  .article-hero h1 {
    max-width: 100%;
  }

  table {
    min-width: 580px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
