:root {
  --navy: #0b1e45;
  --navy-2: #12274f;
  --blue: #1a56e8;
  --blue-bright: #2f6bff;
  --blue-light: #eaf2ff;
  --blue-pale: #f5f9ff;
  --gold: #ffb020;
  --ink: #16213e;
  --gray: #5b6478;
  --gray-light: #e3e8f2;
  --white: #ffffff;
  --radius: 10px;
  --max-width: 1160px;
  --shadow: 0 4px 20px rgba(11, 30, 69, 0.08);
  --shadow-lg: 0 18px 40px rgba(11, 30, 69, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Archivo", "Inter", sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.5em; }

p { margin: 0 0 1em; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--blue-bright); color: var(--white); }

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 50;
  box-shadow: 0 1px 0 rgba(11, 30, 69, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.logo {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}
.logo span { color: var(--blue); }
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy));
  color: var(--white);
  box-shadow: 0 4px 10px rgba(26, 86, 232, 0.35);
  flex-shrink: 0;
}
.logo-mark svg { width: 15px; height: 15px; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, #eef4ff 0%, var(--blue-pale) 55%, #ffffff 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero::before {
  top: -140px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.2), transparent 70%);
}
.hero::after {
  bottom: -180px;
  left: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(11, 30, 69, 0.1), transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero-eyebrow {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.6em;
  display: flex;
  align-items: center;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 0.6em;
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue) 10%, var(--blue-bright) 60%, #6f9bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-rule {
  width: 68px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-bright), var(--navy));
  border: none;
  border-radius: 999px;
  margin: 1rem 0 1.2rem;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 34em;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(11, 30, 69, 0.25));
}

.wave-divider {
  position: relative;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 44px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 86, 232, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(26, 86, 232, 0.35);
  text-decoration: none;
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-light);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Section / cards */
.section {
  padding: 3rem 0;
}
.section-alt {
  background: var(--blue-pale);
  background-image: radial-gradient(rgba(11, 30, 69, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; }
.section-head .link-more { font-weight: 700; white-space: nowrap; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  transform: translateY(-3px);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--blue); text-decoration: none; }
.card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.pillar-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 55%, #081530 100%);
  color: var(--white);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.pillar-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -25%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.4), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(6, 16, 38, 0.4);
}
.pillar-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  color: var(--blue-bright);
  position: relative;
}
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card:hover .pillar-icon { color: var(--gold); }
.pillar-card .pillar-num {
  display: block;
  color: var(--blue-bright);
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 0.7rem;
  position: relative;
}
.pillar-card h3 { color: var(--white); margin-top: 0.3em; position: relative; }
.pillar-card p { color: #c3d1f0; font-size: 0.92rem; position: relative; }
.pillar-card a { color: var(--white); font-weight: 700; position: relative; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 1.2rem 0;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 0.4em; color: var(--gray-light); }

/* Article */
.article-header {
  padding: 1.5rem 0 0.5rem;
}
.article-header .category-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.article-header .description {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 42em;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.quick-answer {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(11, 30, 69, 0.05);
}
.quick-answer strong { color: var(--navy); }

.article-content { max-width: 72ch; }
.article-content h2 { border-top: 1px solid var(--gray-light); padding-top: 1em; }
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content blockquote {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.05rem;
}
.article-content blockquote p { margin: 0; }
.article-content blockquote strong { color: var(--navy); }

/* Safety note */
.safety-note {
  background: #fff7ea;
  border: 1px solid #f0d9a6;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 2rem 0;
  font-size: 0.95rem;
}
.safety-note .safety-label {
  font-weight: 800;
  color: #8a5a00;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4em;
}
.safety-note p:last-child { margin-bottom: 0; }

/* Fact panel */
.fact-panel {
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--blue-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  background: var(--blue-pale);
  margin: 1.5rem 0;
  box-shadow: 0 4px 14px rgba(11, 30, 69, 0.05);
}
.fact-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}
.fact-panel dt { font-weight: 700; color: var(--navy); }
.fact-panel dd { margin: 0; color: var(--gray); }

/* Rules source */
.rules-source {
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px dashed var(--gray-light);
  padding-top: 0.8rem;
  margin-top: 2rem;
}

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 1px 2px rgba(11, 30, 69, 0.06);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.94rem;
}
.comparison-table th, .comparison-table td {
  border: 1px solid var(--gray-light);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.comparison-table th {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  border-color: var(--navy);
}
.comparison-table tbody tr:nth-child(even) { background: var(--blue-pale); }
.comparison-table tbody tr:hover { background: var(--blue-light); }

/* Related content */
.related-content {
  border-top: 1px solid var(--gray-light);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.related-content h2 { margin-top: 0; }
.related-content ul { list-style: none; padding-left: 0; }
.related-content li {
  border-bottom: 1px solid var(--gray-light);
  padding: 0.6rem 0;
}
.related-content a { font-weight: 600; }

/* Role card */
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

/* Level nav strip */
.level-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.level-strip a {
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}
.level-strip a {
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s ease, color 0.15s ease;
}
.level-strip a.current, .level-strip a:hover {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  border-color: var(--blue);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(26, 86, 232, 0.28);
  transform: translateY(-1px);
}

/* Glossary */
.glossary-list dt {
  font-weight: 800;
  color: var(--navy);
  margin-top: 1.3em;
  font-size: 1.05rem;
}
.glossary-list dd { margin: 0.2em 0 0; color: var(--gray); }
.glossary-list a { font-weight: 700; }

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, #081530 100%);
  color: #b9c6e6;
  margin-top: 3rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold), var(--blue-bright));
}
.site-footer .container {
  padding-top: 3rem;
  padding-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.9rem;
}
.site-footer a { color: #b9c6e6; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 1.2rem 0;
  font-size: 0.82rem;
}

/* Safety strip on homepage */
.safety-strip {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: var(--white);
  padding: 1.3rem 0;
}
.safety-strip .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.safety-strip-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--gold);
}
.safety-strip-icon svg { width: 22px; height: 22px; display: block; }
.safety-strip p { margin: 0; color: #d7e1f7; font-size: 0.92rem; }
.safety-strip strong { color: var(--white); }

/* Responsive */
@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-media { order: -1; }
  .site-header .container { flex-wrap: nowrap; }
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav a { flex: 0 0 auto; }
}
