:root {
  --navy: #04183C;
  --navy-2: #0B2654;
  --coral: #F0583C;
  --coral-soft: #FFF0EC;
  --ink: #04183C;
  --muted: #4A5568;
  --line: #E2E8F0;
  --bg-soft: #F6F8FB;
  --white: #FFFFFF;
  --radius: 12px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

.nav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 36px; height: 36px; }
.wordmark {
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--navy);
  white-space: nowrap; display: flex; flex-direction: column; line-height: 1.05;
}
.wordmark span { color: var(--coral); font-size: 12px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; min-width: 0; }
.nav-links a.navlink { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-links a.navlink:hover, .nav-links a.navlink[aria-current="page"] { color: var(--navy); }
.link-quiet { color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-quiet:hover { text-decoration: underline; }

.nav-search { flex: 1 1 200px; min-width: 0; position: relative; max-width: 420px; margin-left: auto; }
.nav-search .help-search-input { width: 100%; }

main { flex: 1 1 auto; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 120px); }
.help-hero { padding: 40px 0 12px; }
.help-hero h1 {
  font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--navy); margin-bottom: 10px;
}
.help-hero .lede { font-size: 18px; color: var(--muted); max-width: 640px; }

.help-search { position: relative; margin: 22px 0 8px; max-width: 640px; }
.help-search-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px 12px 42px; background: #fff;
  box-shadow: 0 8px 24px -20px rgba(4, 24, 60, .4);
}
.help-search-input:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.help-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.help-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(4, 24, 60, .35); z-index: 12;
  max-height: min(70vh, 420px); overflow: auto;
}
.help-results[hidden] { display: none; }
.help-results-list { list-style: none; }
.help-results-list a {
  display: block; text-decoration: none; padding: 12px 14px; border-top: 1px solid var(--line);
}
.help-results-list li:first-child a { border-top: 0; }
.help-results-list a:hover, .help-results-list a.is-active, .help-results-list [aria-selected="true"] a {
  background: var(--bg-soft);
}
.help-result-title { display: block; font-weight: 700; color: var(--navy); }
.help-result-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.help-result-summary { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.help-no-results { padding: 16px; color: var(--muted); font-size: 15px; }
.help-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line);
}

.help-groups { padding: 28px 0 64px; }
.help-group { margin-top: 36px; }
.help-group h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 16px;
}
.help-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.help-card {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px 18px; border-top: 3px solid var(--coral);
}
.help-card:hover { box-shadow: 0 12px 28px -22px rgba(4, 24, 60, .45); }
.help-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.02em; }
.help-card p { color: var(--muted); font-size: 15.5px; }
.help-empty { color: var(--muted); font-size: 15px; }

.help-bc { font-size: 14px; color: var(--muted); padding: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.help-bc a { color: var(--navy); font-weight: 600; text-decoration: none; }
.help-bc a:hover { text-decoration: underline; }
.help-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px;
  align-items: start; padding-bottom: 64px;
}
.help-article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 32px 40px; }
.help-article > h1 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--navy); margin: 8px 0 10px;
}
.help-summary { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.help-updated { font-size: 13px; color: #718096; margin-bottom: 22px; }
.help-body { margin-top: 12px; }
.help-body > * + * { margin-top: 1em; }
.help-body h2, .help-body h3 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }
.help-body h2 { font-size: 24px; font-weight: 800; margin-top: 1.6em; }
.help-body h3 { font-size: 19px; font-weight: 700; margin-top: 1.4em; }
.help-body p, .help-body li { color: var(--ink); }
.help-body ul, .help-body ol { padding-left: 1.3em; }
.help-body li + li { margin-top: 0.35em; }
.help-body ul ul, .help-body ol ul, .help-body ul ol, .help-body ol ol { margin-top: 0.4em; }
.help-body a { color: var(--navy); font-weight: 600; }
.help-body a:hover { color: var(--coral); }
.help-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.1em 0.35em;
}
.help-body pre {
  background: var(--navy); color: #E2E8F0; border-radius: var(--radius);
  padding: 14px 16px; overflow: auto; font-size: 14px; line-height: 1.45;
}
.help-body pre code { background: none; border: 0; color: inherit; padding: 0; }
.help-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.help-body table { width: 100%; border-collapse: collapse; font-size: 15px; overflow-x: auto; display: block; }
.help-body th, .help-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.help-body th { background: var(--bg-soft); color: var(--navy); }
.help-figure {
  margin: 1.2em 0; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
}
.help-figure img {
  max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line);
  background: #fff;
}
.help-figure-link { display: block; }
.help-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 2px; }
.help-callout {
  border: 1px solid var(--line); border-left: 4px solid var(--coral);
  background: var(--coral-soft); border-radius: 10px; padding: 14px 16px;
}
.help-callout-note { border-left-color: var(--navy); background: #EEF3FB; }
.help-callout-warning { border-left-color: #C23E24; background: var(--coral-soft); }
.help-callout p { color: var(--navy); }

.help-aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 12px;
  position: sticky; top: 86px;
}
.help-aside h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.help-aside ul { list-style: none; }
.help-aside li a {
  display: block; text-decoration: none; font-size: 15px; font-weight: 600;
  color: var(--navy); padding: 8px 0; border-top: 1px solid var(--line);
}
.help-aside li:first-child a { border-top: 0; }
.help-aside li a:hover { color: var(--coral); }
.help-aside li a[aria-current="page"] { color: var(--coral); }

footer { padding: 36px 0 44px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brand img { width: 28px; height: 28px; }
footer .wordmark { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

@media (max-width: 800px) {
  .help-cards { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-aside { position: static; }
  .help-article { padding: 22px 18px 28px; }
  .nav-search { max-width: none; margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .help-hero { padding-top: 28px; }
}
