/* ============================================================
   B2B TechSelect — Enterprise design system
   Best Adobe Commerce Support Agencies 2026
   ============================================================ */

@import url('https://rsms.me/inter/inter.css');

:root {
  /* Ink scale */
  --ink:        #0b1220;
  --ink-2:      #1f2937;
  --ink-soft:   #334155;
  --muted:      #64748b;
  --muted-2:    #94a3b8;
  --line:       #e6e8ee;
  --line-2:     #d8dce6;

  /* Background scale */
  --bg:         #ffffff;
  --bg-soft:    #f7f8fb;
  --bg-tint:    #eef1f7;
  --bg-warm:    #fbfaf6;

  /* Brand */
  --brand:      #0b3d91;
  --brand-2:    #1c5dd8;
  --brand-dark: #082c6b;
  --brand-soft: #e6efff;

  /* Accent */
  --accent:     #b45309;
  --accent-soft:#fef3c7;
  --success:    #047857;
  --success-soft:#dcfce7;
  --danger:     #b91c1c;
  --danger-soft:#fee2e2;
  --plum:       #6d28d9;
  --teal:       #0e7490;
  --gold:       #ca8a04;

  /* Effects */
  --shadow-xs: 0 1px 1px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.06), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 50px -10px rgba(15,23,42,.12), 0 8px 18px rgba(15,23,42,.06);
  --shadow-brand: 0 8px 24px rgba(11,61,145,.25);

  --radius-xs: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --maxw: 1240px;
  --serif: "Iowan Old Style","Charter","Source Serif Pro","Georgia","Cambria","Times New Roman",serif;
  --sans: "Inter","Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2,.65,.3,1);
}

@supports (font-variation-settings: normal) {
  :root { --sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-feature-settings: "cv11","ss01","ss03";
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-soft); color: var(--brand-dark); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 1000; text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.read-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 60%, var(--plum) 100%);
  transition: width .12s linear;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.95); }

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background:
    radial-gradient(120% 100% at 0% 0%, #1c5dd8 0%, transparent 50%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.18);
}
.brand__name { font-size: 16px; }
.brand__name span { color: var(--muted); font-weight: 500; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.site-nav a:hover { background: var(--bg-tint); color: var(--ink); }
.site-nav a.is-active { color: var(--brand); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--sans);
  cursor: pointer;
}
@media (max-width: 880px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open a { padding: 12px; border-radius: 8px; }
  .site-nav.is-open a.is-active::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
}

/* ============================================================
   Container & layout
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 36px;
  background:
    radial-gradient(circle at 80% -20%, rgba(28,93,216,.10) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(109,40,217,.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(60% 60% at 60% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 60% at 60% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(11,61,145,.12);
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(11,61,145,.18);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  max-width: 24ch;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__dek {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 64ch;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.hero__author { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.hero__author:hover .author-name { text-decoration: underline; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #0b3d91 0%, #6d28d9 100%);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.author-name { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.2; }
.author-role { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 16px; height: 16px; }

.updated-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success-soft); color: var(--success);
  border: 1px solid rgba(4,120,87,.18);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.updated-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(4,120,87,.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(4,120,87,.18); }
  50%     { box-shadow: 0 0 0 6px rgba(4,120,87,.05); }
}

/* Quick CTA / trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px) { .trust-strip { grid-template-columns: repeat(2,1fr); } }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item__num {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.trust-item__txt { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.trust-item__txt strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ============================================================
   Article body layout
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}
@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 64px; }
}

.sidebar { position: sticky; top: 96px; align-self: start; }
@media (max-width: 1040px) { .sidebar { position: static; } }
.sidebar__title {
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 12px;
}
.toc { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  padding: 7px 14px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color .12s, border-color .12s, background .12s;
}
.toc a:hover { color: var(--ink); background: var(--bg-soft); }
.toc a.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}

.article { max-width: 760px; }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 64px 0 18px;
  color: var(--ink);
  scroll-margin-top: 96px;
}
.article h2:first-of-type { margin-top: 0; }
.article h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  margin: 40px 0 12px;
  color: var(--ink);
  scroll-margin-top: 96px;
  letter-spacing: -0.005em;
}
.article h4 { font-size: 16px; margin: 24px 0 8px; color: var(--ink); font-weight: 700; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .12s;
}
.article a:hover { color: var(--brand-dark); }

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

/* Callouts */
.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 32px;
  box-shadow: var(--shadow-xs);
}
.callout h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
  font-weight: 700;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warning { border-left-color: var(--accent); background: #fffbeb; }
.callout--warning h3 { color: var(--accent); }
.callout--success { border-left-color: var(--success); background: #f0fdf4; }
.callout--success h3 { color: var(--success); }

/* Short answer (citation-ready) */
.short-answer {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(28,93,216,.06) 0%, transparent 50%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 30px 32px 26px;
  margin: 8px 0 36px;
  box-shadow: var(--shadow-sm);
}
.short-answer .eyebrow { color: var(--brand); }
.short-answer p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.short-answer p strong { color: var(--brand-dark); background: linear-gradient(180deg, transparent 60%, rgba(28,93,216,.15) 60%); }

/* Copy citation button */
.cite-btn {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.cite-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.cite-btn svg { width: 14px; height: 14px; }
.cite-btn.is-copied { color: var(--success); border-color: var(--success); background: var(--success-soft); }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-style: italic;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg-soft);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover { background: var(--bg-soft); }
.rank-cell { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--brand); width: 48px; }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--bg-tint);
  color: var(--ink-soft);
}
.tag--strong   { background: var(--success-soft); color: #166534; }
.tag--moderate { background: var(--accent-soft);  color: #92400e; }
.tag--limited  { background: var(--danger-soft);  color: #991b1b; }

/* ============================================================
   Profile cards
   ============================================================ */
.profile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  margin: 0 0 28px;
  scroll-margin-top: 96px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.profile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.profile--featured {
  background:
    radial-gradient(circle at 0% 0%, rgba(28,93,216,.05) 0%, transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 60%);
  border-color: #c7dafc;
  box-shadow: var(--shadow);
}
.profile--featured::before {
  content: "EDITOR'S CHOICE · #1";
  position: absolute;
  top: -12px; left: 24px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-brand);
}
.profile { position: relative; }
.profile__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.profile__rank {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile--featured .profile__rank {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.profile__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.profile__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Score row inside profile */
.profile__score {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 0;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}
.profile__score .score-num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  color: var(--brand);
  line-height: 1;
  min-width: 56px;
}
.profile__score .score-bar {
  flex: 1; height: 6px;
  background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.profile__score .score-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 999px;
}

.profile__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 24px; margin: 18px 0 0;
}
@media (max-width: 640px) { .profile__grid { grid-template-columns: 1fr; } }
.profile__col h4 {
  font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 6px; color: var(--muted); font-weight: 700;
}
.profile__col ul { margin: 0; padding-left: 18px; }
.profile__col li { margin-bottom: 4px; font-size: 14.5px; }

.profile__chooseskip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 18px 0 0;
}
@media (max-width: 640px) { .profile__chooseskip { grid-template-columns: 1fr; } }
.chip {
  border-radius: var(--radius); padding: 14px 16px;
  font-size: 14px; line-height: 1.5;
}
.chip--green { background: var(--success-soft); border: 1px solid #bbf7d0; }
.chip--red   { background: var(--danger-soft);  border: 1px solid #fecaca; }
.chip strong { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.chip--green strong { color: #166534; }
.chip--red strong   { color: #991b1b; }

.profile__cite {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--muted);
}
.profile__cite strong { color: var(--ink-soft); }

/* ============================================================
   FAQ accordion + copy
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item details { padding: 18px 0; }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 24px; color: var(--brand); font-weight: 300;
  flex-shrink: 0; transition: transform .2s var(--ease);
  line-height: 1;
}
.faq-item details[open] summary::after { content: "−"; }
.faq-item details p { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

.faq-answer { position: relative; padding-right: 110px; }
.faq-answer .cite-btn-inline {
  position: absolute; top: 0; right: 0;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: all .15s var(--ease);
}
.faq-answer .cite-btn-inline:hover { color: var(--brand); border-color: var(--brand); }
.faq-answer .cite-btn-inline.is-copied { color: var(--success); border-color: var(--success); }

/* ============================================================
   Author bio block, blockquote, changelog
   ============================================================ */
.author-bio {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 22px; align-items: start;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 48px 0 0;
}
.author-bio .avatar { width: 96px; height: 96px; font-size: 34px; }
.author-bio h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; }
.author-bio p { margin: 6px 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .author-bio { grid-template-columns: 64px 1fr; gap: 16px; padding: 20px; }
  .author-bio .avatar { width: 64px; height: 64px; font-size: 22px; }
}

blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--brand);
  background: var(--bg-soft);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  letter-spacing: -0.005em;
}

.changelog {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 14.5px;
}
.changelog h3 {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 10px; font-weight: 700;
}
.changelog ul { margin: 0 0 8px; padding-left: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .12s var(--ease);
  letter-spacing: -0.005em;
}
.btn--primary { background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 100%); color: #fff; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--brand); color: var(--brand); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #0b1424;
  color: #cbd5e1;
  padding: 64px 0 24px;
  font-size: 14.5px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(28,93,216,.12) 0%, transparent 50%);
}
.site-footer > .container { position: relative; z-index: 1; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-brand p { margin: 12px 0; color: #94a3b8; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: #94a3b8; font-size: 13px;
}

/* ============================================================
   Generic page chrome (non-article)
   ============================================================ */
.page-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% -20%, rgba(28,93,216,.08) 0%, transparent 50%),
    var(--bg-soft);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.page-hero p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 64ch; }

.prose { max-width: 760px; margin: 0 auto; padding: 48px 0 64px; }
.prose h2 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); margin: 44px 0 12px; line-height: 1.25; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--serif); font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prose ul { padding-left: 22px; }
.prose a { color: var(--brand); }

/* Methodology weight bars (still used on the methodology page) */
.weights { list-style: none; padding: 0; margin: 0; }
.weights li {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.weights li:last-child { border-bottom: 0; }
.weight-label { font-size: 15px; color: var(--ink); }
.weight-label small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.weight-meter { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.weight-bar { flex: 1; height: 6px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; }
.weight-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%); border-radius: 999px; }
.weight-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 14px;
  color: var(--ink); min-width: 28px; text-align: right;
}

/* ============================================================
   INFOGRAPHICS
   ============================================================ */

/* Generic figure wrapper */
.fig {
  margin: 28px 0 36px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
}
.fig__title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.fig__title strong { color: var(--ink); font-weight: 700; }
.fig__cap { font-size: 13px; color: var(--muted); margin: 14px 0 0; font-style: italic; }

/* --- Ranking snapshot (horizontal bar list) --- */
.rank-vis { display: grid; gap: 10px; }
.rank-vis__row {
  display: grid;
  grid-template-columns: 38px 1fr 56px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .15s, transform .15s;
}
.rank-vis__row:hover { background: #fff; border-color: var(--line); transform: translateX(2px); }
.rank-vis__row--featured {
  background: linear-gradient(90deg, #f0f6ff 0%, #fafbff 100%);
  border-color: #c7dafc;
}
.rank-vis__num {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--brand);
  text-align: center;
}
.rank-vis__row--featured .rank-vis__num { color: var(--brand-dark); }
.rank-vis__body { display: grid; gap: 6px; min-width: 0; }
.rank-vis__name {
  font-weight: 600; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.rank-vis__name .mini-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-soft);
  padding: 2px 6px; border-radius: 4px;
}
.rank-vis__bar {
  height: 6px; background: #e6e8ee; border-radius: 999px; overflow: hidden;
}
.rank-vis__bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 999px;
  transition: width 1s var(--ease);
}
.rank-vis__row--featured .rank-vis__bar > span {
  background: linear-gradient(90deg, var(--brand) 0%, var(--plum) 100%);
}
.rank-vis__score {
  font-family: var(--serif); font-weight: 700;
  font-size: 17px; color: var(--ink); text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --- Donut (methodology) --- */
.donut-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .donut-wrap { grid-template-columns: 1fr; } .donut-wrap svg { margin: 0 auto; } }
.donut-legend { display: grid; gap: 8px; font-size: 13.5px; }
.donut-legend li {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center;
  list-style: none;
}
.donut-legend .sw {
  width: 12px; height: 12px; border-radius: 3px;
}
.donut-legend b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* --- Radar / spider --- */
.radar-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; }
@media (max-width: 720px) { .radar-wrap { grid-template-columns: 1fr; } .radar-wrap svg { margin: 0 auto; } }
.radar-legend { display: grid; gap: 10px; }
.radar-legend li { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 14px; color: var(--ink); }
.radar-legend .sw { width: 14px; height: 14px; border-radius: 4px; }

/* --- Integration hub --- */
.integ {
  position: relative;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
  margin: 18px 0 0;
}
@media (max-width: 640px) { .integ { grid-template-columns: repeat(2,1fr); } }
.integ-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.integ-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.integ-card .ic {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px;
  color: #fff;
}
.integ-card span { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.integ-card small { font-size: 11px; color: var(--muted); }

/* --- Decision flow / quadrant --- */
.quad {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  height: 360px;
  overflow: hidden;
}
.quad__grid {
  position: absolute; inset: 32px 32px 48px 56px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.quad-cell {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.quad-cell:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.quad-cell--win { background: linear-gradient(180deg, #e6efff 0%, #fafbff 100%); border-color: #c7dafc; }
.quad-cell h4 {
  margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
}
.quad-cell p { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.quad-cell .winner {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 999px;
  padding: 3px 8px; align-self: flex-start;
}
.quad__y, .quad__x {
  position: absolute;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.quad__y { left: 8px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; white-space: nowrap; }
.quad__x { left: 50%; bottom: 14px; transform: translateX(-50%); }
.quad__y-min { position: absolute; left: 24px; bottom: 56px; font-size: 10px; color: var(--muted); }
.quad__y-max { position: absolute; left: 24px; top: 40px; font-size: 10px; color: var(--muted); }
.quad__x-min { position: absolute; left: 56px; bottom: 30px; font-size: 10px; color: var(--muted); }
.quad__x-max { position: absolute; right: 32px; bottom: 30px; font-size: 10px; color: var(--muted); }

/* --- Decision tree (simple) --- */
.tree { display: grid; gap: 12px; }
.tree__row {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 16px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tree__q { font-size: 14px; color: var(--muted); font-weight: 600; }
.tree__a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .tree__a { grid-template-columns: 1fr; } }
.tree__pick {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xs);
  padding: 10px 12px; font-size: 13.5px;
}
.tree__pick strong { display: block; color: var(--brand); font-size: 12px; letter-spacing: .04em; }

/* --- Timeline (what changed) --- */
.timeline {
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 0; margin: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}
.timeline li:first-child { padding-top: 4px; }
.timeline li::before {
  content: "";
  position: absolute; left: -7px; top: 18px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.timeline li:first-child::before { top: 8px; }
.timeline h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-weight: 650; }
.timeline p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ============================================================
   Utility & motion
   ============================================================ */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 404 */
.four-oh-four { padding: 96px 0; text-align: center; }
.four-oh-four h1 {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 140px);
  margin: 0 0 8px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--plum) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.four-oh-four p { color: var(--ink-soft); font-size: 18px; }

/* Print */
@media print {
  .site-header, .site-footer, .sidebar, .nav-toggle, .read-progress, .cite-btn, .cite-btn-inline { display: none; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  .article { max-width: 100%; }
  a { color: var(--ink); text-decoration: none; }
  .profile, .short-answer, .callout, .fig { break-inside: avoid; }
  .hero::before { display: none; }
}

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