:root {
  color-scheme: dark;
  --background: #020617;
  --surface: #07101f;
  --surface-soft: #0b1628;
  --surface-light: #101d31;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --border: rgba(148, 163, 184, 0.16);
  --orange: #ea580c;
  --orange-light: #fb923c;
  --orange-soft: rgba(234, 88, 12, 0.12);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --gold: #fbbf24;
  --panel-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --max-width: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 85% 5%, rgba(234, 88, 12, 0.09), transparent 26rem),
    var(--background);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(251, 146, 60, 0.65);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: white;
  color: #111827;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.content-container,
.header-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(20px);
}

.reading-progress {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 99;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--gold));
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img,
.site-footer img {
  width: auto;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-navigation a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: white;
}

.site-navigation .nav-cta {
  margin-left: 0.5rem;
  padding-inline: 1.15rem;
  background: var(--orange);
  color: white;
}

.site-navigation .nav-cta:hover,
.site-navigation .nav-cta:focus-visible {
  background: #f97316;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: white;
}

.breadcrumbs {
  padding-top: 2rem;
  color: var(--muted-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.45rem;
  content: "/";
  color: #334155;
}

.breadcrumbs a:hover {
  color: var(--orange-light);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.article {
  padding: 4.5rem 0 6rem;
}

.article-header {
  max-width: 920px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-header h1,
.archive-hero h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.article-summary {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.35rem;
  margin-top: 1.5rem;
  color: var(--muted-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.article-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.article-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 750;
}

.article-trust span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  content: "";
}

.featured-image {
  overflow: hidden;
  max-width: 1040px;
  aspect-ratio: 16 / 8.3;
  margin: 0 auto 4rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-diagnostic-strip {
  display: grid;
  max-width: 1040px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: -1.8rem auto 4rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(90deg, rgba(234, 88, 12, 0.15), rgba(7, 16, 31, 0.96) 38%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-diagnostic-strip:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 22px 60px rgba(124, 45, 18, 0.2);
}

.strip-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.24);
}

.hero-diagnostic-strip > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-diagnostic-strip small {
  color: var(--orange-light);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-diagnostic-strip strong {
  overflow: hidden;
  margin-top: 0.15rem;
  color: white;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-diagnostic-strip b {
  color: white;
  font-size: 0.76rem;
  font-weight: 850;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  align-items: start;
  justify-content: center;
  gap: 4rem;
}

.article-body {
  min-width: 0;
  color: #cbd5e1;
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: white;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
  scroll-margin-top: 7rem;
}

.article-body h2 {
  margin: 3.2rem 0 1rem;
  padding-top: 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.article-body h3 {
  margin: 2.3rem 0 0.8rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.article-body h4 {
  margin: 2rem 0 0.7rem;
  font-size: 1.2rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body table {
  margin: 0 0 1.4rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.article-body li::marker {
  color: var(--orange-light);
  font-weight: 800;
}

.article-body strong {
  color: #f1f5f9;
}

.article-body a {
  color: var(--orange-light);
  text-decoration: underline;
  text-decoration-color: rgba(251, 146, 60, 0.45);
  text-underline-offset: 0.2em;
}

.article-body blockquote {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--orange-soft);
  color: #e2e8f0;
}

.article-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
}

.article-body th,
.article-body td {
  padding: 0.8rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-body th {
  background: var(--surface-soft);
  color: white;
}

.article-aside {
  position: sticky;
  top: 7rem;
}

.table-of-contents {
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 16, 31, 0.72);
}

.toc-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--orange-light);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.table-of-contents > strong {
  color: white;
  font-size: 0.92rem;
}

.table-of-contents ol {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.table-of-contents li[data-level="3"] {
  padding-left: 0.7rem;
}

.table-of-contents a {
  display: block;
  padding: 0.38rem 0 0.38rem 0.65rem;
  border-left: 1px solid #1e293b;
  color: var(--muted-dark);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.4;
  transition: border-color 160ms ease, color 160ms ease;
}

.table-of-contents a:hover,
.table-of-contents a[aria-current="true"] {
  border-left-color: var(--orange);
  color: #e2e8f0;
}

.diagnostic-side-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 100% 0, rgba(251, 146, 60, 0.24), transparent 10rem),
    linear-gradient(155deg, #121827, #07101f 65%);
  box-shadow: var(--panel-shadow);
}

.diagnostic-side-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 50%;
  content: "";
}

.diagnostic-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fdba74;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diagnostic-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.side-time {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin: 1.2rem 0 0.85rem;
}

.side-time strong {
  color: white;
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.side-time span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.diagnostic-side-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: white;
  font-size: 1.04rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.diagnostic-side-card p {
  position: relative;
  z-index: 1;
  margin: 0.7rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.diagnostic-side-card a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.85rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--orange), #f97316);
  color: white;
  font-size: 0.75rem;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.diagnostic-ad {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 1.6rem;
  margin: 3rem 0;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0, rgba(234, 88, 12, 0.2), transparent 16rem),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(4, 10, 22, 0.98));
  box-shadow: var(--panel-shadow);
}

.diagnostic-ad::before,
.diagnostic-end::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
  content: "";
}

.diagnostic-ad-copy,
.diagnostic-preview {
  position: relative;
  z-index: 1;
}

.diagnostic-title {
  display: block;
  margin-top: 0.75rem;
  color: white;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.18;
  text-wrap: balance;
}

.diagnostic-ad-copy > p {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.diagnostic-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
  list-style: none;
}

.diagnostic-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem 0.55rem !important;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-size: 0.64rem;
  font-weight: 750;
}

.diagnostic-benefits li::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.diagnostic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.82rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--orange), #f97316);
  color: white !important;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.23);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.diagnostic-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.32);
}

.diagnostic-ad-copy > small {
  display: block;
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.6rem;
  line-height: 1.45;
}

.diagnostic-preview {
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.preview-top,
.preview-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.preview-top span {
  color: var(--muted-dark);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-top i {
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: #86efac;
  font-size: 0.46rem;
  font-style: normal;
  font-weight: 900;
}

.preview-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0.9rem 0;
}

.preview-score strong {
  color: white;
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
}

.preview-score span {
  color: var(--muted-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.preview-bars {
  display: flex;
  height: 52px;
  align-items: flex-end;
  gap: 0.45rem;
}

.preview-bars span {
  width: 33.333%;
  height: var(--bar);
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  opacity: 0.82;
}

.preview-labels {
  margin-top: 0.45rem;
}

.preview-labels span {
  width: 33.333%;
  overflow: hidden;
  color: #475569;
  font-size: 0.43rem;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
}

.diagnostic-end {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 235px;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: 6rem;
  padding: clamp(2rem, 6vw, 4.25rem);
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.2), transparent 22rem),
    linear-gradient(135deg, #111827, #040a16 72%);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.38);
}

.diagnostic-end h2 {
  max-width: 720px;
  margin: 0.85rem 0 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.diagnostic-end p {
  max-width: 660px;
  margin: 1rem 0 1.35rem;
  color: var(--muted);
}

.diagnostic-end-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.diagnostic-end-actions small {
  color: var(--muted-dark);
  font-size: 0.65rem;
  font-weight: 700;
}

.mobile-diagnostic-bar {
  display: none;
}

body[data-diagnostic-popup-open="true"] {
  overflow: hidden;
}

.diagnostic-popup[hidden] {
  display: none;
}

.diagnostic-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.diagnostic-popup[data-open="true"] {
  opacity: 1;
}

.diagnostic-popup-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(1, 5, 14, 0.84);
  cursor: default;
  backdrop-filter: blur(12px);
}

.diagnostic-popup-panel {
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 3rem));
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  border: 1px solid rgba(251, 146, 60, 0.34);
  border-radius: 1.6rem;
  background: #060d1a;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  opacity: 0;
  outline: none;
  transform: translateY(22px) scale(0.975);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.diagnostic-popup[data-open="true"] .diagnostic-popup-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.diagnostic-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  color: #cbd5e1;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.diagnostic-popup-close span {
  margin-top: -2px;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
}

.diagnostic-popup-close:hover {
  transform: rotate(5deg);
  border-color: rgba(251, 146, 60, 0.5);
  color: white;
}

.diagnostic-popup-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(rgba(251, 146, 60, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 146, 60, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(234, 88, 12, 0.28), transparent 14rem),
    linear-gradient(145deg, #0e1828, #040914);
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.diagnostic-popup-visual::after {
  position: absolute;
  inset: auto -20% -35% 10%;
  height: 60%;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  content: "";
  filter: blur(50px);
}

.popup-visual-kicker {
  position: relative;
  z-index: 1;
  color: #fdba74;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.popup-score-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  width: 190px;
  height: 190px;
  place-content: center;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18), rgba(2, 6, 23, 0.8) 66%);
  box-shadow: 0 0 60px rgba(234, 88, 12, 0.18), inset 0 0 50px rgba(251, 146, 60, 0.08);
  text-align: center;
}

.popup-orbit-ring {
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(251, 146, 60, 0.28);
  border-radius: 50%;
  animation: popup-orbit 18s linear infinite;
}

.popup-score-orbit strong {
  color: white;
  font-size: 5.4rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.popup-score-orbit small {
  margin-top: 0.65rem;
  color: var(--muted-dark);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.popup-mini-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.popup-mini-metrics > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
}

.popup-mini-metrics i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
}

.popup-mini-metrics i::after {
  display: block;
  width: var(--metric);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  content: "";
}

.popup-mini-metrics small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.52rem;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
}

.diagnostic-popup-content {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.25rem);
}

.diagnostic-popup-content h2 {
  margin: 1rem 0 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.diagnostic-popup-content > p {
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.diagnostic-popup-benefits {
  display: grid;
  width: 100%;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.diagnostic-popup-benefits li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 1.6rem;
}

.diagnostic-popup-benefits li::before {
  position: absolute;
  top: 0.1rem;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: #86efac;
  content: "✓";
  font-size: 0.65rem;
  font-weight: 900;
}

.diagnostic-popup-benefits strong {
  color: #e2e8f0;
  font-size: 0.76rem;
}

.diagnostic-popup-benefits span {
  color: var(--muted-dark);
  font-size: 0.66rem;
}

.diagnostic-popup-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--orange), #f97316);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.3);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.diagnostic-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(234, 88, 12, 0.4);
}

.diagnostic-popup-note {
  align-self: center;
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 650;
}

@keyframes popup-orbit {
  to {
    transform: rotate(360deg);
  }
}

.aside-card {
  padding: 1.5rem;
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: 1.25rem;
  background: linear-gradient(150deg, rgba(234, 88, 12, 0.13), rgba(7, 16, 31, 0.75));
}

.aside-card strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  line-height: 1.35;
}

.aside-card p {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.aside-card a {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: var(--orange);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.aside-back {
  display: inline-block;
  margin: 1.2rem 0 0 0.4rem;
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.related {
  padding: 0 0 7rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(7, 16, 31, 0.7);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.4);
  background: var(--surface-soft);
}

.related-card > span,
.related-card small {
  color: var(--orange-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-card strong {
  margin: 0.8rem 0 auto;
  color: white;
  font-size: 1.05rem;
  line-height: 1.4;
}

.related-card small {
  margin-top: 1.2rem;
  letter-spacing: normal;
  text-transform: none;
}

.archive-hero {
  padding: 0 0 5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent, rgba(7, 16, 31, 0.65)),
    radial-gradient(circle at 80% 25%, rgba(234, 88, 12, 0.17), transparent 24rem);
}

.archive-hero .breadcrumbs {
  margin-bottom: 4.5rem;
}

.archive-hero h1 {
  max-width: 900px;
}

.archive-hero > .content-container > p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.archive-stats {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.archive-stats strong {
  color: var(--orange-light);
  font-size: 2rem;
  line-height: 1;
}

.archive-stats span {
  color: var(--muted-dark);
  font-size: 0.83rem;
  font-weight: 700;
}

.archive-section,
.glossary-section {
  padding-block: 4rem 7rem;
}

.search-box {
  position: relative;
  display: block;
  max-width: 600px;
  margin-bottom: 2rem;
}

.search-box::before {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  color: var(--muted-dark);
  content: "⌕";
  font-size: 1.35rem;
  transform: translateY(-52%);
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 1.1rem 0 3rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  outline: none;
  background: var(--surface);
  color: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.search-box input::placeholder {
  color: #475569;
}

.search-box-large {
  max-width: 760px;
  margin-inline: auto;
}

.search-status {
  min-height: 1.5rem;
  color: var(--muted-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.archive-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(7, 16, 31, 0.8);
  transition: transform 180ms ease, border-color 180ms ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 88, 12, 0.35);
}

.card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-soft);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.archive-card:hover .card-image img {
  transform: scale(1.035);
}

.card-content {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.3rem;
}

.card-kicker {
  color: var(--orange-light);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-content h2 {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.card-content h2 a:hover {
  color: var(--orange-light);
}

.card-content p {
  margin: 0.8rem 0 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.card-link {
  margin-top: auto;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.letter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 3.5rem;
}

.letter-nav a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.letter-nav a:hover,
.letter-nav a:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-light);
}

.letter-section {
  margin-bottom: 4.5rem;
  scroll-margin-top: 7rem;
}

.letter-heading {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.letter-heading span {
  color: var(--orange-light);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.letter-heading small {
  color: var(--muted-dark);
  font-weight: 700;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.term-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(7, 16, 31, 0.68);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.term-card span {
  flex-shrink: 0;
  color: var(--orange);
}

.term-card:hover,
.term-card:focus-visible {
  border-color: rgba(234, 88, 12, 0.45);
  background: var(--orange-soft);
  color: white;
}

[data-search-item][hidden],
.letter-section[hidden] {
  display: none !important;
}

.content-cta {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.3), transparent 18rem),
    linear-gradient(135deg, #9a3412, #ea580c 55%, #f97316);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.22);
}

.content-cta .eyebrow {
  color: #fed7aa;
}

.content-cta h2 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.content-cta p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: #ffedd5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.button-light {
  flex-shrink: 0;
  background: white;
  color: #9a3412;
}

.button-secondary {
  margin-left: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: white;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #01040d;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

.footer-inner > div:first-child p {
  max-width: 380px;
  margin: 1rem 0 0;
  color: var(--muted-dark);
  font-size: 0.83rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-links a,
.footer-contact a {
  color: var(--muted-dark);
  font-size: 0.78rem;
  font-weight: 650;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--orange-light);
}

.footer-bottom {
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.not-found {
  min-height: 65vh;
  padding-block: 8rem;
  text-align: center;
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  margin: 1.5rem auto 2rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0 0 1rem 1rem;
    background: rgba(2, 6, 23, 0.98);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }

  .site-navigation[data-open="true"] {
    display: flex;
  }

  .site-navigation .nav-cta {
    margin: 0.25rem 0 0;
    text-align: center;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
  }

  .table-of-contents,
  .diagnostic-side-card {
    margin: 0;
  }

  .aside-back {
    grid-column: 1 / -1;
  }

  .archive-grid,
  .term-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .content-container,
  .header-inner,
  .footer-inner,
  .content-cta {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .reading-progress {
    top: 68px;
  }

  .brand img {
    height: 32px;
  }

  .article {
    padding: 3rem 0 4.5rem;
  }

  .article-header {
    text-align: left;
  }

  .article-meta {
    justify-content: flex-start;
  }

  .article-trust {
    justify-content: flex-start;
  }

  .featured-image {
    margin-bottom: 2.5rem;
    border-radius: 1rem;
  }

  .hero-diagnostic-strip {
    grid-template-columns: auto minmax(0, 1fr);
    margin: -1.2rem auto 2.5rem;
  }

  .hero-diagnostic-strip b {
    display: none;
  }

  .hero-diagnostic-strip strong {
    white-space: normal;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-aside {
    display: block;
  }

  .table-of-contents,
  .diagnostic-side-card {
    margin-bottom: 1rem;
  }

  .diagnostic-ad,
  .diagnostic-end {
    grid-template-columns: 1fr;
  }

  .diagnostic-ad {
    margin: 2.4rem 0;
    padding: 1.35rem;
    border-radius: 1.1rem;
  }

  .diagnostic-preview {
    max-width: 260px;
  }

  .diagnostic-end {
    margin-bottom: 4rem;
    padding: 1.6rem;
    border-radius: 1.25rem;
  }

  .diagnostic-end .diagnostic-preview {
    display: none;
  }

  .diagnostic-popup {
    align-items: end;
    padding: 0.65rem;
  }

  .diagnostic-popup-panel {
    width: 100%;
    max-height: calc(100dvh - 1.3rem);
    grid-template-columns: 1fr;
    border-radius: 1.35rem;
  }

  .diagnostic-popup-visual {
    display: none;
  }

  .diagnostic-popup-content {
    justify-content: flex-start;
    padding: 2.7rem 1.35rem 1.4rem;
  }

  .diagnostic-popup-content h2 {
    padding-right: 1.2rem;
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .diagnostic-popup-content > p {
    margin-bottom: 1.1rem;
    font-size: 0.86rem;
  }

  .diagnostic-popup-benefits {
    margin-bottom: 1.15rem;
  }

  .diagnostic-popup-close {
    top: 0.7rem;
    right: 0.7rem;
  }

  .mobile-diagnostic-bar {
    position: fixed;
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.78rem 0.72rem 0.95rem;
    border: 1px solid rgba(251, 146, 60, 0.38);
    border-radius: 1rem;
    background: rgba(4, 10, 22, 0.94);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(18px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-diagnostic-bar[data-hidden="true"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(130%);
  }

  .mobile-diagnostic-bar > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .mobile-diagnostic-bar small {
    color: var(--orange-light);
    font-size: 0.55rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-diagnostic-bar strong {
    overflow: hidden;
    color: white;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-diagnostic-bar a {
    flex-shrink: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.7rem;
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
  }

  .related-grid,
  .archive-grid,
  .term-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .related-card {
    min-height: 165px;
  }

  .archive-hero .breadcrumbs {
    margin-bottom: 3rem;
  }

  .archive-hero {
    padding-bottom: 3.5rem;
  }

  .archive-section,
  .glossary-section {
    padding-block: 3rem 5rem;
  }

  .card-content {
    min-height: auto;
  }

  .card-link {
    margin-top: 0.5rem;
  }

  .content-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 3rem;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  .footer-inner > div:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
