:root {
  --bg: #0e1422;
  --bg-soft: #151f33;
  --card: #ffffff;
  --text: #172033;
  --muted: #5f6b84;
  --gold: #f3c969;
  --gold-dark: #b58316;
  --border: #d9e1ee;
  --link: #0e4dba;
  --success: #e7f8ee;
  --success-border: #9ed4ae;
  --error: #fff1f1;
  --error-border: #e7b4b4;
  --shadow: 0 18px 44px rgba(14, 20, 34, 0.08);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 2000; padding: .75rem 1rem;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow);
}
.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1300;
  height: 4px;
  background: rgba(255,255,255,.12);
}
.progress-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #ffd982 100%);
}
.site-header {
  background: linear-gradient(135deg, var(--bg) 0%, #1e2d4a 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.logo-crown {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(243, 201, 105, .18);
  color: var(--gold);
}
.site-tagline { margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
}
.site-nav a { color: #fff; font-weight: 600; }
.btn-nav, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffd982 100%);
  color: #342100 !important;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(243, 201, 105, .22);
}
.hero-banner {
  background: radial-gradient(circle at top left, rgba(243, 201, 105, .12), transparent 32%), linear-gradient(135deg, #18233a 0%, #293b5d 100%);
  color: #fff;
  padding: 1.4rem 0 1.7rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 1.2rem;
  align-items: start;
}
.hero-badge {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(243, 201, 105, .16);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .03em;
}
.hero-title {
  margin: .85rem 0 .65rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}
.hero-copy {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 60ch;
}
.hero-mini-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}
.hero-mini-card strong { display: block; margin-bottom: .5rem; }
.hero-mini-card ul { margin: 0; padding-left: 1.2rem; }
.age-bar {
  background: #fff8e6;
  border-top: 1px solid #f5e0a7;
  border-bottom: 1px solid #f5e0a7;
  color: #574100;
  padding: .85rem 0;
}
.page-shell { padding: 2rem 0 3rem; }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.content-card, .sidebar-card, .form-card, .article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-card { padding: 1.6rem; }
.main-article > * + * { margin-top: 1.5rem; }
.sidebar-card {
  padding: 1.35rem;
  position: sticky;
  top: 7rem;
}
.page-header h1 {
  margin: .25rem 0 .75rem;
  line-height: 1.12;
  font-size: clamp(2rem, 3vw, 3rem);
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--gold-dark);
}
.lead {
  font-size: 1.08rem;
  color: #42506a;
  max-width: 62ch;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: .25rem;
}
.feature-panel {
  padding: 1.15rem 1.2rem;
  border: 1px solid #dae4f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff 0%, #f4f8ff 100%);
}
.feature-panel h2,
.link-grid-section h2,
.faq-section h2,
.article-listing h2,
.related-section h2 { margin: 0 0 .9rem; }
.check-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-dark);
  font-weight: 800;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.link-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}
.link-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 20, 34, 0.07);
  text-decoration: none;
}
.link-tile-title { font-weight: 700; }
.link-tile-arrow { color: var(--gold-dark); font-weight: 800; }
.content-body h2,
.content-body h3 { line-height: 1.25; margin: 1.55rem 0 .75rem; }
.content-body p { margin: 0 0 1rem; }
.content-body ul,
.content-body ol,
.visual-editor ul,
.visual-editor ol,
.article-body ul,
.article-body ol { margin: 0 0 1.1rem 1.4rem; }
.sidebar-card h2, .form-card h2 { margin-top: 0; line-height: 1.2; }
.sidebar-list { margin: 0; padding-left: 1.2rem; }
.sidebar-note {
  margin-top: 1.2rem;
  padding: 1rem;
  background: #f7f9fd;
  border-radius: 14px;
  color: #33415c;
}
.faq-list { display: grid; gap: .8rem; }
.faq-item {
  border: 1px solid #dbe5f5;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.4rem; transition: transform .2s ease; }
.faq-answer {
  display: none;
  padding: 0 1.1rem 1rem;
  color: #42506a;
}
.faq-answer.is-open { display: block; }
.article-listing { margin-top: 2rem; }
.article-stack { display: grid; gap: 1rem; }
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.article-card {
  padding: 1.25rem;
}
.article-card h3 { margin: 0 0 .45rem; line-height: 1.25; }
.article-meta {
  color: var(--muted);
  font-size: .95rem;
}
.card-kicker {
  margin: 0 0 .45rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-dark);
  font-weight: 800;
}
.compact-card p:last-child { margin-bottom: 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.read-more { font-weight: 700; }
.article-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.article-tools label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
}
.form-card {
  margin-top: 2rem;
  padding: 1.5rem;
}
.form-row { margin-bottom: 1rem; }
.form-row.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea { resize: vertical; min-height: 120px; }
.honeypot { position: absolute; left: -9999px; }
.message {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
}
.message.success {
  background: var(--success);
  border: 1px solid var(--success-border);
}
.message.error {
  background: var(--error);
  border: 1px solid var(--error-border);
}
.muted-copy, .muted-message { color: var(--muted); }
.site-footer {
  background: #0f1728;
  color: #dce4f4;
  padding: 2.5rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.site-footer h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.1rem;
}
.site-footer a { color: #ffd982; }
.footer-cta {
  display: inline-block;
  margin-top: .65rem;
  font-weight: 700;
}
.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #ffd982 100%);
  color: #342100;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(14, 20, 34, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .65rem;
  width: 48px;
  height: 48px;
}
.burger,
.burger::before,
.burger::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  position: relative;
}
.burger::before { top: -7px; position: relative; }
.burger::after { top: 5px; position: relative; }
.editor-note {
  margin: 0 0 .9rem;
  padding: .85rem 1rem;
  border: 1px solid #d6e3ff;
  border-radius: 14px;
  background: #f5f9ff;
  color: #27446f;
}
.article-editor {
  border: 1px solid #cfd7e6;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.editor-topbar {
  border-bottom: 1px solid #dce4f1;
  background: #f8fbff;
}
.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .8rem .8rem 0;
}
.editor-tab {
  border: 1px solid #c7d4ea;
  background: #fff;
  color: #29405e;
  border-radius: 999px;
  padding: .55rem .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.editor-tab.is-active {
  background: linear-gradient(135deg, var(--gold) 0%, #ffd982 100%);
  border-color: #e3ba55;
  color: #342100;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .8rem;
}
.editor-toolbar button {
  border: 1px solid #c7d4ea;
  background: #fff;
  color: #1e3350;
  border-radius: 10px;
  padding: .55rem .8rem;
  font: inherit;
  cursor: pointer;
}
.editor-toolbar button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.editor-panels { background: #fff; }
.editor-panel { display: none; }
.editor-panel.is-active { display: block; }
.visual-editor,
.editor-textarea {
  width: 100%;
  min-height: 420px;
  border: 0;
  padding: 1rem 1.1rem;
  font: inherit;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}
.visual-editor { outline: 0; }
.editor-textarea {
  resize: vertical;
  border-radius: 0;
}
.editor-html {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: .95rem;
}
.content-body blockquote,
.visual-editor blockquote,
.article-body blockquote {
  margin: 0 0 1.1rem;
  padding: .9rem 1rem;
  border-left: 4px solid var(--gold-dark);
  background: #fff8eb;
  color: #47340b;
  border-radius: 0 14px 14px 0;
}
.content-body table,
.visual-editor table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  display: block;
  overflow-x: auto;
}
.content-body th,
.content-body td,
.visual-editor th,
.visual-editor td,
.article-body th,
.article-body td {
  border: 1px solid #d7e0ee;
  padding: .8rem;
  text-align: left;
  background: #fff;
}
.content-body thead th,
.visual-editor thead th,
.article-body thead th {
  background: #f4f8ff;
}
.content-body code,
.visual-editor code,
.article-body code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  background: #f2f5fa;
  border-radius: 8px;
  padding: .12rem .35rem;
}
.content-body pre,
.visual-editor pre,
.article-body pre {
  margin: 0 0 1.25rem;
  padding: 1rem;
  overflow-x: auto;
  background: #0f1728;
  color: #eef4ff;
  border-radius: 16px;
}
.content-body pre code,
.visual-editor pre code,
.article-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.media-embed {
  margin: 0 0 1.25rem;
}
.media-embed img,
.media-embed video,
.media-embed iframe,
.article-body iframe,
.article-body video,
.article-body img,
.visual-editor iframe,
.visual-editor video,
.visual-editor img {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 16px;
  background: #0f1728;
}
.media-embed iframe,
.article-body iframe,
.visual-editor iframe {
  aspect-ratio: 16 / 9;
}
.article-body h2,
.article-body h3,
.article-body h4,
.visual-editor h2,
.visual-editor h3,
.visual-editor h4 {
  margin: 1.4rem 0 .75rem;
}
@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-areas:
      'logo toggle'
      'tagline tagline'
      'nav nav';
  }
  .site-logo { grid-area: logo; }
  .site-tagline { grid-area: tagline; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; grid-area: toggle; justify-self: end; }
  .site-nav { grid-area: nav; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { justify-content: flex-start; padding-top: .5rem; }
  .page-grid, .footer-grid, .form-row.two-col, .hero-grid, .related-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  .content-card, .sidebar-card, .form-card, .article-card { padding: 1rem; }
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .link-grid,
  .article-tools { grid-template-columns: 1fr; }
  .editor-toolbar { padding-top: 0; }
  .editor-toolbar button, .editor-tab {
    flex: 1 1 calc(50% - .45rem);
    text-align: center;
  }
  .visual-editor,
  .editor-textarea {
    min-height: 340px;
    padding: .9rem;
  }
}

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
}
.meta-pill,
.topic-badge,
.category-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.meta-pill {
  background: #f4f8ff;
  border: 1px solid #d9e6fb;
  color: #29405e;
}
.section-kicker {
  background: #f9f0d9;
  color: #7b5a0d;
}
.topic-badge {
  margin: 0 0 .65rem;
  background: #eef3ff;
  color: #264d96;
  border: 1px solid #d8e2fa;
}
.category-grid-section,
.intent-grid-section,
.trust-grid-section,
.home-latest-section {
  margin-top: 2rem;
}
.category-card-grid,
.intent-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}
.category-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intent-grid,
.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.category-card,
.intent-card,
.trust-card {
  display: block;
  padding: 1.2rem;
  border-radius: 20px;
  border: 1px solid #d8e4f5;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(14, 20, 34, 0.06);
}
.category-card:hover,
.intent-card:hover,
.trust-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.category-title,
.intent-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: .45rem;
}
.category-copy,
.intent-copy,
.trust-card p {
  color: #44536e;
}
.section-slab {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dde7f5;
  margin-bottom: 1.25rem;
}
.section-slab > :last-child { margin-bottom: 0; }
.article-tools-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-stack-visual {
  gap: 1.25rem;
}
.article-card-with-cover {
  padding: 0;
  overflow: hidden;
}
.article-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #0f1728;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 1.2rem;
}
.article-cover-large {
  margin-top: 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #d8e4f5;
}
.author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-latest-grid .article-card h3,
.article-card-with-cover h3 {
  margin-top: 0;
}
.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .category-card-grid,
  .intent-grid,
  .trust-grid,
  .author-grid,
  .three-up,
  .article-tools-expanded {
    grid-template-columns: 1fr;
  }
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.directory-section,
.comparison-section,
.faq-cluster-section {
  margin-top: 2rem;
}
.directory-grid,
.metric-grid,
.comparison-stack,
.faq-cluster-stack {
  display: grid;
  gap: 1rem;
}
.directory-grid.two-up,
.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.comparison-table-wrap {
  overflow-x: auto;
}
.directory-card,
.metric-card,
.comparison-block,
.faq-cluster-card {
  height: 100%;
}
.profile-highlight {
  margin: 0 0 1.5rem;
}
.metric-card h3,
.directory-card h3,
.comparison-block h3,
.faq-cluster-card h3 {
  margin-top: 0;
}
.meta-pill a,
.card-kicker a {
  color: inherit;
  text-decoration: none;
}
.meta-pill a:hover,
.card-kicker a:hover {
  text-decoration: underline;
}
@media (max-width: 980px) {
  .directory-grid.two-up,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
