:root {
  --ink: #17203a;
  --ink-soft: #53617e;
  --blue: #3158d4;
  --blue-dark: #173a94;
  --blue-pale: #e4eaff;
  --lavender: #efedff;
  --lavender-strong: #d9d4ff;
  --cream: #fffefd;
  --paper: #fbfaff;
  --line: rgba(49, 88, 212, 0.16);
  --shadow: 0 22px 60px rgba(33, 55, 125, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 253, 0.9);
  backdrop-filter: blur(18px);
}
.header-inner, .footer-inner, .article-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 112px; height: 64px; object-fit: contain; }
.header-nav, .footer-nav { display: flex; align-items: center; gap: 25px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.language-switch a, .language-switch span {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.language-switch .active { background: var(--blue); color: white; }
.header-nav a, .footer-nav a {
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.header-nav a:hover, .footer-nav a:hover { color: var(--blue); }
.header-nav .header-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  box-shadow: 0 8px 22px rgba(49, 88, 212, 0.18);
}

.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fffefd 0%, #f4f2ff 58%, #e5e1ff 100%);
}
.hero-shell { position: relative; z-index: 2; padding-block: 60px 72px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.hero-orb-one {
  width: 330px; height: 330px; top: -130px; right: 7%;
  background: rgba(117, 105, 225, 0.19);
}
.hero-orb-two {
  width: 210px; height: 210px; bottom: -110px; left: 7%;
  background: rgba(133, 166, 246, 0.17);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
  color: #65739a;
  font-size: 0.78rem;
  font-weight: 700;
}
.breadcrumbs a { color: var(--blue-dark); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.article-hero h1 {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.55rem, 6vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #65739a;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
  justify-content: space-between;
  gap: 70px;
  padding-block: 70px 100px;
}
.article-content { min-width: 0; }
.important-note {
  margin-bottom: 40px;
  padding: 18px 20px;
  border: 1px solid #cbd6fb;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
  background: #f2f5ff;
  color: #40527d;
  font-size: 0.87rem;
  line-height: 1.65;
}
.important-note strong { color: var(--blue-dark); }
.article-intro { margin-bottom: 54px; }
.article-intro p {
  margin: 0 0 18px;
  color: #334262;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.65;
}
.content-section { scroll-margin-top: 110px; margin-top: 62px; }
.content-section h2, .cluster-directory h2, .faq-section h2,
.ebook-teaser h2, .related-section h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.content-section p { margin: 0 0 18px; color: #465473; }
.content-section ul {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.content-section li { position: relative; padding-left: 28px; color: #465473; }
.content-section li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(49, 88, 212, 0.1);
}
.content-section blockquote {
  margin: 30px 0 0;
  padding: 22px 26px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ece9ff, #f3f6ff);
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
}
.context-link {
  margin-top: 26px !important;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f5f7ff;
  color: #40527d !important;
  font-size: 0.94rem;
}
.context-link a {
  color: var(--blue);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cluster-directory {
  margin: 62px 0 78px;
  padding: 34px;
  border-radius: 26px;
  background: linear-gradient(145deg, #f1efff, #f6f8ff);
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.directory-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 10px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.directory-card:hover {
  transform: translateY(-3px);
  border-color: #9eb1f0;
  box-shadow: 0 14px 30px rgba(49, 88, 212, 0.1);
}
.directory-card > span {
  grid-row: 1 / 3;
  color: #8396d7;
  font-size: 0.72rem;
  font-weight: 900;
}
.directory-card strong {
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.25;
}
.directory-card small {
  display: -webkit-box;
  overflow: hidden;
  color: #62708d;
  font-size: 0.76rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ebook-teaser {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 34px;
  margin: 78px 0;
  padding: 36px;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.ebook-teaser h2 { color: white; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.ebook-teaser p:not(.section-kicker) {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 13px 22px;
  border-radius: 999px;
  background: white;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.primary-button:hover { background: var(--blue-pale); }

.faq-section { margin-top: 74px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 20px 38px 20px 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 4px;
  color: var(--blue);
  font-size: 1.25rem;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 0;
  padding: 0 36px 20px 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.sources { margin-top: 74px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sources p, .sources li { color: #73809a; font-size: 0.76rem; line-height: 1.6; }
.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding-left: 18px;
}
.sources a { color: #526bbd; text-underline-offset: 3px; }

.article-sidebar { min-width: 0; }
.sidebar-card {
  position: sticky;
  top: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(33, 55, 125, 0.07);
}
.sidebar-label {
  margin: 0;
  padding: 18px 20px;
  background: var(--lavender);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.sidebar-card nav { display: flex; flex-direction: column; padding: 10px; }
.sidebar-card a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #60708f;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.sidebar-card a:hover { background: #f5f6ff; color: var(--blue); }
.sidebar-card a.active { background: var(--blue); color: #fff; }

.related-section { padding-block: 76px 90px; background: linear-gradient(135deg, #ebe8ff, #eef3ff); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card {
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 27px;
  border: 1px solid rgba(49, 88, 212, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.related-card h3 {
  margin: 17px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.18;
}
.related-card p { margin: 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.65; }
.related-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue-dark);
  font-size: 0.78rem;
}

.site-footer { padding-block: 52px 34px; background: var(--ink); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 32px;
}
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-inner > p { color: rgba(255, 255, 255, 0.63); font-size: 0.84rem; }
.site-footer .footer-nav a { color: rgba(255, 255, 255, 0.75); }
.footer-inner small {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.7rem;
}

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { grid-row: 1; }
  .sidebar-card { position: static; }
  .sidebar-card nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 0; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-nav { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner, .footer-inner, .article-shell { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand-logo { width: 88px; height: 52px; }
  .header-nav > a:not(.header-cta) { display: none; }
  .language-switch { margin-left: auto; }
  .header-nav .header-cta { padding: 8px 15px; font-size: 0.7rem; }
  .hero-shell { padding-block: 36px 48px; }
  .breadcrumbs { margin-bottom: 28px; }
  .article-hero h1 { font-size: clamp(2.2rem, 12vw, 3.25rem); }
  .article-layout { padding-block: 42px 70px; }
  .sidebar-card nav, .directory-grid { grid-template-columns: 1fr; }
  .cluster-directory { margin: 48px 0 60px; padding: 24px 18px; }
  .ebook-teaser { grid-template-columns: 1fr; align-items: start; padding: 27px 22px; }
  .primary-button { width: 100%; }
  .related-section { padding-block: 58px 66px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner > p, .footer-nav { grid-column: auto; }
  .footer-nav { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.not-found{min-height:100vh;display:grid;place-content:center;justify-items:center;text-align:center;padding:40px;background:linear-gradient(135deg,#fffefd,#efedff)}.not-found img{width:150px}.not-found h1{margin:.2rem 0;font:700 clamp(2.4rem,7vw,4.5rem)/1.1 var(--serif)}.not-found>p:not(.article-eyebrow){color:var(--ink-soft)}.not-found>div{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}.primary-button.dark{background:var(--blue);color:#fff}