:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #f0f2f5;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --line: #d9dee7;
  --line-strong: #bcc4d0;
  --text: #172033;
  --muted: #5d6878;
  --faint: #758093;
  --accent: #c74800;
  --accent-soft: #a93d00;
  --blue: #245ea8;
  --green: #18794e;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 0;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Manrope, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.68;
}

body::before,
body::after {
  display: none;
  background: none;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

a {
  color: var(--accent-soft);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(199, 72, 0, 0.24);
  outline-offset: 3px;
}

.wrap,
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-top,
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.02);
  backdrop-filter: none;
}

.site-top-inner,
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-brand,
.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.site-brand::before {
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: none;
}

.site-nav,
.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a,
.links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.site-nav a:hover,
.links a:hover {
  color: var(--text);
  background: var(--bg-2);
  border-color: var(--line);
}

.site-nav a.primary,
.links a.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

main,
main.page-shell {
  min-width: 0;
  padding-top: 52px;
  padding-bottom: 68px;
  background: transparent;
}

.hero,
.service-hero,
.resource-hero,
.article-hero,
main > section:first-child {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.template-kicker {
  min-height: auto;
  padding: 0;
  color: var(--accent-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1,
.hero h1,
.article-hero h1,
.service-hero h1,
.resource-hero h1 {
  max-width: 960px;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2,
h3,
h4,
.card h2,
.card h3 {
  color: var(--text);
  letter-spacing: 0;
}

p,
li,
.lead,
.template-summary,
main > section:first-child p {
  color: var(--muted);
}

.lead,
.template-summary {
  max-width: 72ch;
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-summary:not(:has(p:not(:empty), ul, ol, table)) {
  display: none;
}

.article-body > .hero:first-child > .eyebrow,
.article-body > .hero:first-child > h2:first-of-type {
  display: none;
}

.article-body > .hero:first-child {
  margin-top: 0;
  padding-top: 0;
}

.card,
.faq-item,
.note,
.step,
.cta,
.cta-band,
.service-step,
.service-panel,
.resource-group,
.article-summary,
.article-toc,
.article-section,
.faq-block,
.page-cta {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

.note {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.page-cta,
.cta {
  background: #fff8f3;
  border-color: #f2c7ad;
}

.card p,
.faq-item p,
.step p,
.note p,
.cta p,
.cta-band p,
.service-step p,
.service-panel p,
.resource-group p,
.article-summary p {
  color: var(--muted);
}

.service-step span,
.resource-links a:hover,
.article-toc a:hover,
.related-links a:hover {
  color: var(--accent-soft);
}

.btn,
.btn-primary,
.btn-secondary {
  min-height: 44px;
  padding: 11px 17px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 750;
}

.btn-primary,
.btn.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn:hover,
.btn-secondary:hover {
  color: var(--text);
  background: var(--bg-2);
  border-color: #929dad;
}

.btn-primary:hover,
.btn.primary:hover {
  color: #ffffff;
  background: #a93d00;
  border-color: #a93d00;
}

.related-routes {
  border-top-color: var(--line);
}

.related-links a,
.article-toc a,
.resource-links a {
  color: var(--muted);
}

.related-links a {
  background: var(--panel);
  border-color: var(--line);
}

table {
  width: 100%;
  max-width: 100%;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

th,
td {
  color: var(--muted);
  background: var(--panel);
  border-color: var(--line);
  overflow-wrap: anywhere;
}

th {
  color: var(--text);
  background: var(--bg-2);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-color: var(--line);
  border-radius: 8px;
}

pre,
code {
  max-width: 100%;
}

pre {
  overflow-x: auto;
  color: #eef2f7;
  background: #172033;
  border: 1px solid #28344a;
  border-radius: 8px;
}

code:not(pre code) {
  color: #8d3500;
  background: #fff1e8;
  border-radius: 4px;
}

.site-footer,
body > footer {
  color: var(--faint);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer a,
body > footer a {
  color: var(--muted);
}

@media (max-width: 980px) {
  .article-layout,
  .service-flow,
  .service-columns,
  .resource-index,
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .wrap,
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-top-inner,
  .nav {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0;
    gap: 9px;
  }

  .site-nav,
  .links {
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
  }

  .site-nav a,
  .links a {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 0.82rem;
  }

  main,
  main.page-shell {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  h1,
  .hero h1,
  .article-hero h1,
  .service-hero h1,
  .resource-hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
    overflow-wrap: anywhere;
  }

  .card,
  .faq-item,
  .note,
  .step,
  .cta,
  .cta-band,
  .service-step,
  .service-panel,
  .resource-group,
  .article-summary,
  .article-toc,
  .article-section,
  .faq-block,
  .page-cta {
    padding: 17px;
  }

  table {
    display: table;
    table-layout: fixed;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
  }

  th,
  td {
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.78rem;
  }
}

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