:root {
  --navy: #06142d;
  --navy-2: #0b1f40;
  --blue: #2563ff;
  --blue-soft: #edf5ff;
  --text: #101a31;
  --muted: #63708a;
  --line: #dfe7f3;
  --soft: #f6f9fd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1, h2, h3, h4, .brand { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-nav {
  min-height: 72px;
  color: #fff;
  background: rgba(6, 20, 45, .98);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; color: #d8e3f5; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 0 20px; border: 1px solid #cad6e8; border-radius: 7px;
  background: #fff; color: #18243b; font-size: 14px; font-weight: 800;
}
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.ghost { border-color: rgba(255,255,255,.22); background: transparent; color: #fff; }

.docs-hero {
  padding: 64px 0 54px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,20,45,.98) 0%, rgba(7,20,45,.9) 48%, rgba(7,20,45,.58) 100%),
    url("/hero-network-bg.svg") center / cover no-repeat,
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.eyebrow { display: block; margin-bottom: 12px; color: #82aaff; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.docs-hero h1 { margin: 0; max-width: 780px; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; letter-spacing: 0; }
.docs-hero p { max-width: 700px; margin: 18px 0 0; color: #c7d3e8; font-size: 18px; line-height: 1.65; }
.search-box { position: relative; max-width: 680px; margin-top: 30px; }
.search-box label { display: block; margin-bottom: 8px; color: #dbe7f8; font-size: 13px; font-weight: 800; }
.search-box input { width: 100%; min-height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; outline: 0; color: #fff; background: rgba(255,255,255,.08); }
.search-box input::placeholder { color: #9fb0ca; }
.search-box input:focus { border-color: #82aaff; box-shadow: 0 0 0 3px rgba(79,124,255,.2); }

.docs-main { padding: 44px 0 74px; background: #fff; }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 42px; align-items: start; }
.category-nav { position: sticky; top: 24px; }
.category-nav h2 { margin: 0 0 13px; font-size: 14px; }
.category-list { display: grid; gap: 5px; }
.category-button { width: 100%; padding: 10px 12px; border: 0; border-left: 3px solid transparent; background: transparent; color: #52617b; text-align: left; cursor: pointer; }
.category-button:hover, .category-button.active { border-left-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.guide-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.guide-head h2 { margin: 0 0 6px; font-size: 27px; }
.guide-head p, .result-count { margin: 0; color: var(--muted); font-size: 14px; }
.guide-groups { display: grid; gap: 38px; margin-top: 28px; }
.guide-group h3 { margin: 0 0 12px; font-size: 19px; }
.guide-list { display: grid; gap: 8px; }
.guide-link {
  display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center;
  min-height: 76px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.guide-link:hover, .guide-link:focus-visible { border-color: #aac3ff; box-shadow: 0 8px 22px rgba(26,61,121,.08); }
.guide-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 900; }
.guide-copy strong { display: block; margin-bottom: 5px; font-size: 15px; }
.guide-copy span { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.status-label { padding: 5px 8px; border-radius: 999px; color: #5d6d86; background: #eef2f7; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-label.published { color: #08745b; background: #e8f8f3; }
.empty-state { display: none; padding: 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); text-align: center; }
.empty-state.visible { display: block; }

.article-hero {
  padding: 54px 0 46px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7,20,45,.98) 0%, rgba(7,20,45,.9) 48%, rgba(7,20,45,.58) 100%),
    url("/hero-network-bg.svg") center / cover no-repeat,
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: #aebdd3; font-size: 13px; }
.breadcrumbs a:hover { color: #fff; }
.article-hero h1 { max-width: 820px; margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1.12; }
.article-hero p { max-width: 760px; margin: 17px 0 0; color: #c7d3e8; font-size: 17px; line-height: 1.65; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0,720px) 220px; gap: 34px; padding: 46px 0 76px; align-items: start; }
.article-side { position: sticky; top: 24px; }
.article-side h2 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; }
.article-side a { display: block; padding: 8px 0; color: #60708a; font-size: 13px; line-height: 1.4; }
.article-side a:hover { color: var(--blue); }
.article-body { min-width: 0; }
.notice { padding: 20px; border: 1px solid #b9ccfa; border-radius: 7px; background: var(--blue-soft); }
.notice strong { display: block; margin-bottom: 6px; }
.notice p { margin: 0; color: #455979; line-height: 1.65; }
.article-body section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.article-body h2 { margin: 0 0 14px; font-size: 25px; }
.article-body p { margin: 0 0 15px; color: #52617b; font-size: 16px; line-height: 1.78; }
.article-body ul { margin: 0; padding-left: 21px; color: #52617b; line-height: 1.75; }
.article-body li + li { margin-top: 8px; }
.article-body ol { margin: 0; padding-left: 23px; color: #52617b; line-height: 1.75; }
.article-body ol li + li { margin-top: 10px; }
.article-body h3 { margin: 25px 0 10px; font-size: 19px; }
.article-body strong { color: #1a2944; }
.article-body code {
  padding: 2px 6px; border: 1px solid #d9e3f2; border-radius: 5px;
  color: #17366f; background: #f3f7fd; font: 600 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.doc-lead { font-size: 18px !important; color: #344561 !important; }
.outcome-box {
  padding: 22px; border: 1px solid #b9ccfa; border-radius: 8px;
  background: var(--blue-soft);
}
.outcome-box h2 { font-size: 20px; }
.outcome-box ul { margin-top: 12px; }
.step-label {
  display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 10px; padding: 0 9px;
  border-radius: 999px; color: #174fcb; background: #e9f1ff; font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.doc-callout {
  margin: 20px 0; padding: 17px 18px; border-left: 4px solid var(--blue);
  background: #f6f9fd; color: #455979;
}
.doc-callout p { margin: 0; font-size: 14px; }
.doc-callout.warning { border-left-color: #d79b23; background: #fff9eb; }
.field-list { display: grid; gap: 10px; margin: 18px 0; }
.field-row {
  display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.field-row:last-child { border-bottom: 0; }
.field-row strong { font-size: 14px; }
.field-row span { color: #52617b; font-size: 14px; line-height: 1.6; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.next-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.next-link {
  display: block; padding: 17px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.next-link:hover { border-color: #aac3ff; box-shadow: 0 8px 22px rgba(26,61,121,.08); }
.next-link strong { display: block; margin-bottom: 5px; font-size: 14px; }
.next-link span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.support-box { padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.support-box h3 { margin: 0 0 9px; font-size: 16px; }
.support-box p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }

footer { border-top: 1px solid #edf2f8; background: #fff; }
.footer-grid { display: grid; grid-template-columns: .9fr repeat(3,1fr); gap: 72px; padding: 52px 0 38px; }
.footer-grid section:first-child { display: flex; flex-direction: column; align-items: center; }
.footer-grid h4 { margin: 0 0 18px; color: var(--text); font-size: 14px; }
.footer-grid a { display: block; margin: 0 0 12px; color: #51617d; font-size: 14px; font-weight: 700; }
.footer-grid a:hover { color: var(--blue); }
.footer-mini-visual {
  width: 100%; max-width: 190px; aspect-ratio: 753 / 311; margin-bottom: 18px;
  border: 1px solid #d6e5ff; border-radius: 8px; overflow: hidden;
  background: #f4f8ff; box-shadow: 0 14px 34px rgba(18,34,66,.08);
}
.footer-mini-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.footer-dashboard-link {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 9px;
  width: fit-content; min-height: 38px; padding: 0 16px; margin: 0 !important;
  border: 1px solid #dce5f2; border-radius: 8px; color: var(--text) !important;
  background: #fff; box-shadow: 0 8px 18px rgba(18,34,66,.05); font-size: 13px !important;
}
.footer-dashboard-link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.footer-dashboard-link:hover { border-color: #b9cced; color: var(--blue) !important; }
.footer-bottom { border-top: 1px solid #edf2f8; }
.copyright { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #66738d; font-size: 12px; font-weight: 700; }
.copyright-brand { display: inline-flex; align-items: center; gap: 8px; }
.copyright-logo { width: 18px; height: 18px; display: block; object-fit: contain; }
.legal-links { display: flex; gap: 20px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .category-nav { position: static; }
  .category-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .article-related { order: 3; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav-inner { gap: 14px; }
  .nav-actions .ghost { display: none; }
  .nav-actions .button { min-height: 38px; padding: 0 13px; }
  .docs-hero { padding: 46px 0 42px; }
  .docs-hero h1 { font-size: 34px; }
  .category-list { grid-template-columns: 1fr; }
  .guide-head { align-items: start; flex-direction: column; }
  .guide-link { grid-template-columns: 38px minmax(0,1fr); }
  .status-label { grid-column: 2; justify-self: start; }
  .field-row, .next-grid { grid-template-columns: 1fr; }
  .field-row { gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright, .legal-links { align-items: flex-start; flex-direction: column; }
  .copyright { padding: 20px 0; }
}

