:root {
  --bg: #f6f4ef;
  --bg-deep: #ffffff;
  --surface: rgba(255, 255, 255, .94);
  --surface-hi: rgba(255, 255, 255, 1);
  --border: #d8e2ee;
  --border-soft: #e8eef6;
  --text: #1d2a3d;
  --text-muted: #607088;
  --text-faint: #91a0b5;
  --accent: #2b73ea;
  --accent-dim: rgba(43, 115, 234, .10);
  --green: #2f9b64;
  --radius: 14px;
  --max: 1120px;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --heading-font: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #faf8f4 0%, #f4f1eb 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

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

.article-card a,
.support-card a,
.contact-card a,
.contact-form-card a,
.legal-card a,
.inline-note a,
.submit-note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(43, 115, 234, .28);
}

.article-card a:hover,
.support-card a:hover,
.contact-card a:hover,
.contact-form-card a:hover,
.legal-card a:hover,
.inline-note a:hover,
.submit-note a:hover {
  color: #205fc5;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 6px 22px rgba(31, 42, 59, .04);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.2px;
  flex-shrink: 0;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 5px;
  flex: 0 0 30px;
}

.logo-mark span {
  display: block;
  background: var(--bg-deep);
  border-radius: 2px;
}

nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow: visible;
}

nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 9px;
}

nav a.active,
nav a:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-more {
  position: relative;
}

.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-more-toggle::after {
  content: "\25BE";
  font-size: 10px;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-more-toggle:hover,
.nav-more.active .nav-more-toggle,
.nav-more:focus-within .nav-more-toggle {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 244px;
  padding: 10px;
  background: rgba(255,255,255,.99);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(31,42,59,.10);
  z-index: 25;
}

.nav-more.open .nav-more-menu {
  display: grid;
  gap: 4px;
}

.nav-more-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4.5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: .2s;
}

.mob-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0;
  background: rgba(255,255,255,.98);
  z-index: 19;
  border-top: 1px solid var(--border-soft);
  flex-direction: column;
  padding: 16px 20px;
  gap: 6px;
  box-shadow: 0 14px 28px rgba(31,42,59,.06);
}

.mob-nav.open {
  display: flex;
}

.mob-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: all .15s;
}

.mob-nav a:hover,
.mob-nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 24px 12px;
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: none;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(43, 115, 234, .14);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(43, 115, 234, .05);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -1.1px;
  max-width: 900px;
  color: var(--accent);
}

.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.quick-links {
  display: none;
}

.quick-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}

.quick-links a:hover {
  color: var(--text);
  border-color: rgba(43, 115, 234, .22);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(31, 42, 59, .06);
  transform: translateY(-1px);
}

.article-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 88px;
}

.article-card {
  padding: 0;
}

.article-card h3 {
  margin: 24px 0 10px;
  font-family: var(--heading-font);
  font-size: 19px;
}

.article-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.article-lead {
  margin: 0 0 24px !important;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted) !important;
}

.article-card ul,
.article-card ol {
  margin: 0 0 18px 22px;
  color: var(--text-muted);
  padding-left: 0;
  list-style: none;
  counter-reset: article-step;
}

.article-card li {
  margin-bottom: 6px;
}

.article-card ol li {
  position: relative;
  padding-left: 30px;
}

.article-card ol li::before {
  counter-increment: article-step;
  content: counter(article-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.content-section-heading {
  display: block;
  margin: 50px 0 14px;
  font-family: var(--heading-font);
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -.7px;
  color: var(--text);
}

.article-card > .content-section-heading:first-of-type {
  margin-top: 0;
}

.article-card strong {
  color: var(--text);
}

.content-section-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
}

.content-section-card > h3:first-of-type {
  margin-top: 8px;
}

.faq-accordion {
  margin-top: 18px;
}

.faq-block {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(31,42,59,.05);
}

.faq-block.active {
  border-color: rgba(43, 115, 234, .22);
}

.faq-block-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-block-question::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-hi);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.faq-block.active .faq-block-question::after {
  content: "-";
  color: var(--accent);
  background: var(--accent-dim);
}

.faq-block-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-block.active .faq-block-answer {
  display: block;
}

.faq-block-answer p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--text);
  font-weight: 700;
}

td {
  color: var(--text-muted);
}

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

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 182px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f9fbff 100%);
  border: 1px solid rgba(43, 115, 234, .12);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 14px 34px rgba(31, 42, 59, .06);
  transition: border-color .18s, transform .18s, background .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-bottom: none !important;
}

.related-card:hover {
  border-color: rgba(43, 115, 234, .26);
  transform: translateY(-3px);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 18px 40px rgba(31, 42, 59, .09);
}

.related-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(43,115,234,.92), rgba(43,115,234,.18));
}

.related-card::after {
  content: "Explore \2192";
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--accent);
}

.related-card span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #6b84a8;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(43, 115, 234, .08);
}

.related-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.related-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.mini-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.16);
  color: var(--text-muted);
}

footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(255,255,255,.88);
}

.footer-simple {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-simple .footer-copy {
  margin-right: auto;
}

.footer-simple .footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-simple .footer-links a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: #5f6979;
  padding: 0;
}

.footer-simple .footer-links a + a {
  margin-left: 0;
}

.footer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 12px;
  max-width: 240px;
  line-height: 1.65;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.f-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 3px 9px;
  border-radius: 100px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 0;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
    flex-direction: row;
  }

  nav {
    display: none;
  }

  .nav-more-menu {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 42px;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 36px 18px 28px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 16px 18px;
  }

  .footer-simple {
    padding: 16px 18px;
    justify-content: center;
  }

  .footer-simple .footer-copy {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

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