@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..750&family=Manrope:wght@500..800&display=swap");

:root,
.theme-teal {
  --primary: #0F766E;
  --primary-hover: #115E59;
  --primary-light: #CCFBF1;
  --background: #F8FAFC;
  --text: #0F172A;
  --muted: #64748B;
  --border: #DDEBE8;
  --success: #10B981;
  --bg: var(--background);
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: var(--background);
  --surface-hover: #f0fdfa;
  --muted-soft: #94a3b8;
  --border-strong: #BFD8D3;
  --accent: var(--primary);
  --accent-rgb: 15,118,110;
  --accent-dark: var(--primary-hover);
  --accent-strong: #134e4a;
  --accent-pale: var(--primary-light);
  --accent-soft: #f0fdfa;
  --accent-faint: #f0fdfa;
  --hero-accent: var(--primary-light);
  --info: var(--accent);
  --info-faint: var(--accent-faint);
  --card-border: rgba(221,235,232,0.96);
  --page-band: var(--background);
}

:root {
  --warning: #f59e0b;
  --warning-faint: #fff7ed;
  --danger: #ef4444;
  --danger-faint: #fef2f2;
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.035);
  --shadow-sm: 0 6px 16px rgba(15,23,42,0.055);
  --shadow: 0 12px 28px rgba(15,23,42,0.07);
  --shadow-lg: 0 16px 36px rgba(15,23,42,0.09);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --grid-gap: 14px;
  --surface-pad: 18px;
  --radius-sm: 8px;
  --radius: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --hero-arc-radius: clamp(160px, 18vw, 210px);
  --hero-accent-width: min(70vw, 760px);
  --hero-accent-height: min(82%, 560px);
  --hero-accent-opacity: 0.38;
  --header-bg: rgba(248,250,252,0.96);
  --header-bg-scrolled: rgba(255,255,255,0.98);
  --footer-bg: var(--accent-strong);
  --max-width: 1364px;
  --page-gutter: clamp(8px, 1.6vw, 16px);
  --reader-gutter: clamp(10px, 1.4vw, 16px);
  --sidebar-w: 340px;
  --header-h: 60px;
  --hero-eyebrow-space: 26px;
  --reader-breadcrumb-h: 43px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --weight-label: 650;
  --weight-title: 600;
  --weight-body: 400;
  --weight-strong: 650;
  --weight-card-title: 500;
  --weight-card-body: 400;
  --weight-ui: 520;
  --weight-ui-strong: 580;
  --type-card-title: 0.9rem;
  --type-card-body: 0.86rem;
  --type-card-caption: 0.86rem;
  --type-token: 0.7rem;
  --card-pad: 20px;
  --card-pad-sm: 16px;
  --token-min-h: 24px;
  --token-pad: 3px 8px;
  --token-border: var(--accent-pale);
  --token-bg: var(--accent-soft);
  --token-color: var(--accent-dark);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--accent-rgb),0.16);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb),0.28);
  outline-offset: 3px;
}

.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;
}

.btn,
.button {
  border-radius: var(--radius-sm);
}

.btn-primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover,
.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary,
.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.supporting-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
}

.grid {
  display: grid;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card,
.learn-card,
.interview-card,
.roadmap-card,
.resource-card {
  display: block;
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.card:hover,
.learn-card:hover,
.interview-card:hover,
.roadmap-card:hover,
.resource-card:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.card-grid > *:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--border);
}

.card-grid > *:nth-child(n + 5) {
  border-top: 1px solid var(--border);
}

/* 3 and 4 column variants — only activate where the columns actually apply */
@media (min-width: 1025px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-grid.cols-3 > *:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--border);
  }
  .card-grid.cols-3 > *:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card-grid.cols-4 > *:not(:nth-child(4n + 1)) {
    border-left: 1px solid var(--border);
  }
  .card-grid.cols-4 > *:nth-child(n + 5) {
    border-top: 1px solid var(--border);
  }
}

.card:focus-visible,
.learn-card:focus-visible,
.interview-card:focus-visible,
.roadmap-card:focus-visible,
.resource-card:focus-visible,
.portal-card:focus-visible,
.role-card:focus-visible,
.cloud-card:focus-visible,
.company-pill:focus-visible,
.compact-link-grid a:focus-visible,
.product-step-grid article:focus-within,
.product-status-grid article:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.14), var(--shadow-sm);
}

.card h2,
.card h3 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
}

.card p {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.content-grid {
  width: min(100%, 860px);
}

.content-grid .card {
  padding: clamp(22px, 4vw, 44px);
}

.content-grid h2 {
  margin-top: 26px;
  font-size: 1.1rem;
}

.content-grid h2:first-child {
  margin-top: 0;
}

.content-grid a:not(.button) {
  color: var(--accent-dark);
  font-weight: 700;
}

.detail-section {
  background: var(--surface);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  display: grid;
  gap: 18px;
}

.detail-nav {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.detail-nav a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-label);
  transition: color 0.15s var(--ease);
}

.detail-nav a:hover {
  color: var(--accent-strong);
}

.readiness-card {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.readiness-card h2 {
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: var(--weight-title);
}

.readiness-card ul,
.milestone-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.readiness-card li,
.milestone-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.readiness-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.milestone-list {
  counter-reset: milestone;
}
.milestone-list li {
  counter-increment: milestone;
}
.milestone-list li::before {
  content: counter(milestone, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  color: var(--accent-dark);
  line-height: 1.45;
}

.detail-main {
  display: grid;
  gap: 0;
  min-width: 0;
}

.detail-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.detail-panel:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-panel h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.detail-panel p {
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.detail-panel a:not(.button) {
  color: var(--accent-dark);
  font-weight: 700;
}

.detail-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-action-row .button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
  font-size: inherit;
  font-weight: var(--weight-label);
}

.detail-action-row .button.primary,
.detail-action-row .button.secondary {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent-dark);
}

.detail-action-row .button:hover {
  background: transparent;
  box-shadow: none;
  color: var(--accent-strong);
  transform: none;
}

.handoff-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

.handoff-links a {
  color: var(--accent-dark);
  font-weight: var(--weight-label);
}

.handoff-links a:hover {
  color: var(--accent-strong);
}

.handoff-links span {
  color: var(--muted-soft);
}

.topic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--token-min-h);
  padding: var(--token-pad);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  line-height: 1.1;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.topic-chip:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--accent-dark);
}

.resource-stack {
  display: grid;
  gap: 14px;
}

.portal-heading {
  max-width: none;
  text-align: left;
  margin-inline: 0;
}

.portal-heading .lead {
  margin-inline: 0;
}

.portal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.portal-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.portal-card:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--border);
}

.portal-card:nth-child(n + 5) {
  border-top: 1px solid var(--border);
}

.portal-card:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.portal-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
}

.portal-card p {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.portal-card small {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: var(--weight-ui-strong);
}

.compact-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compact-link-grid a {
  display: grid;
  min-height: 92px;
  align-content: start;
  gap: 6px;
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.compact-link-grid a span {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
}

.compact-link-grid a small {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.compact-link-grid a:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--border);
}

.compact-link-grid a:nth-child(n + 4) {
  border-top: 1px solid var(--border);
}

.compact-link-grid a:hover {
  background: var(--surface-soft);
  color: var(--accent-dark);
  transform: none;
}

.product-step-grid,
.product-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-step-grid article,
.product-status-grid article {
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.product-step-grid article:not(:first-child),
.product-status-grid article:not(:first-child) {
  border-left: 1px solid var(--border);
}

.product-step-grid article:hover,
.product-status-grid article:hover {
  border-color: var(--accent-pale);
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.product-step-grid span,
.product-status-grid span {
  display: inline-flex;
  align-items: center;
  min-height: var(--token-min-h);
  margin-bottom: 14px;
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-ui-strong);
  line-height: 1.1;
  text-transform: uppercase;
}

.product-step-grid h3,
.product-status-grid h3 {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
}

.product-step-grid p,
.product-status-grid p {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.home-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
}

.home-section-row .section-heading {
  margin-bottom: 0;
}

.home-feature-card {
  min-height: 190px;
}

.qa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.qa-meta div {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: var(--type-token);
  line-height: 1.25;
}

.qa-meta dt {
  color: var(--text);
  font-weight: var(--weight-label);
}

.qa-meta dd {
  margin: 0;
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid,
  .compact-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid > *:not(:nth-child(4n + 1)),
  .portal-card:not(:nth-child(4n + 1)) {
    border-left: 0;
  }

  .card-grid > *:nth-child(even),
  .portal-card:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .card-grid > *:nth-child(n + 3),
  .portal-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }


  .compact-link-grid a {
    padding: var(--card-pad-sm);
  }

  .compact-link-grid a:not(:nth-child(3n + 1)) {
    border-left: 0;
  }

  .compact-link-grid a:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .compact-link-grid a:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .home-section-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .portal-grid,
  .compact-link-grid {
    grid-template-columns: 1fr;
  }

  .card-grid > *:nth-child(even),
  .portal-card:nth-child(even) {
    border-left: 0;
  }


  .card-grid > *:not(:first-child),
  .portal-card:not(:first-child) {
    border-top: 1px solid var(--border);
  }

  .compact-link-grid a,
  .compact-link-grid a:nth-child(even) {
    padding: var(--card-pad-sm);
    border-left: 0;
  }

  .compact-link-grid a:not(:first-child) {
    border-top: 1px solid var(--border);
  }

  .portal-card {
    min-height: 0;
  }

  .card,
  .learn-card,
  .interview-card,
  .roadmap-card,
  .resource-card {
    padding: 18px;
  }
}

/* ─── Layout shell ───────────────────────────────────────── */
.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  width: 100%;
  border-bottom: 0;
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(var(--accent-rgb),0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 8px 22px rgba(var(--accent-rgb),0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  gap: 20px;
}

.site-header .header-inner {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  max-width: var(--max-width);
  padding-inline: 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  transition: color 0.15s var(--ease);
}

.brand:hover {
  color: var(--primary-hover);
}

.brand::before {
  content: none;
}

.brand span {
  color: currentColor;
}

.hero-copy-block h1 span {
  color: var(--primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
  margin-right: 12px;
}
.site-nav a,
.nav-menu-trigger {
  padding: 7px 10px;
  border-radius: 0;
  color: #475569;
  font-size: 0.875rem;
  font-weight: var(--weight-ui);
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.site-nav a:hover,
.nav-menu:hover .nav-menu-trigger,
.nav-menu:focus-within .nav-menu-trigger {
  color: var(--text);
  border-bottom-color: var(--border-strong);
}
.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: var(--weight-ui-strong);
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-menu-trigger::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.72;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: calc(50% + 38px);
  z-index: 120;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav .nav-dropdown a {
  display: block;
  padding: 7px 9px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: var(--weight-ui);
  white-space: nowrap;
}

.site-nav .nav-dropdown a:hover {
  border: 0;
  background: var(--surface-soft);
  color: var(--text);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 clamp(125px, 13vw, 180px);
  width: clamp(125px, 13vw, 180px);
  margin-left: 0;
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}

.header-inner.header-controls-ready .header-actions {
  opacity: 1;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 36px;
  flex: 0 0 36px;
}

.nav-search.is-open {
  width: 36px;
}

.icon-button,
.mobile-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.icon-button:hover,
.mobile-menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-soft);
  transform: none;
}

.search-icon {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger-icon::before { top: -5px; }
.hamburger-icon::after { top: 5px; }

.nav-search-input {
  position: absolute;
  left: 44px;
  width: 0;
  min-width: 0;
  opacity: 0;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0;
  pointer-events: none;
  z-index: 1;
  transition: width 0.22s var(--ease), opacity 0.18s var(--ease), padding 0.22s var(--ease), border-color 0.15s var(--ease);
}

.nav-search.is-open .nav-search-input {
  width: min(240px, calc(100vw - 44px - (var(--page-gutter) * 2)));
  opacity: 1;
  padding: 0 11px;
  pointer-events: auto;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12);
}

.nav-search-button {
  position: relative;
  z-index: 2;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-drawer {
  display: none;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.42s var(--ease),
    transform 0.42s var(--ease);
  transition-delay: calc(var(--reveal-index, 0) * 30ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utility ────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.76rem;
  font-weight: var(--weight-ui-strong);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: var(--token-min-h);
  margin-bottom: 12px;
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-ui-strong);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.badge-gray { background: #f1f5f9; color: var(--muted); border: 1px solid var(--border); }

/* ─── Buttons ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: var(--weight-ui-strong);
  cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
  border: 1.5px solid transparent;
}

.button:active,
.icon-button:active,
.mobile-menu-toggle:active {
  transform: translateY(0);
}
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(var(--accent-rgb),0.18);
}
.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb),0.22);
  transform: none;
}
.button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}
.button.secondary:hover {
  background: var(--background);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* ─── Hero (homepage) ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 96px 78px;
  border-bottom: 1px solid var(--border);
  background: var(--page-band);
}

.hero.portal-hero {
  height: 380px;
  padding-block: 48px;
}

.portal-hero .hero-layout {
  height: 100%;
  display: flex;
  align-items: start;
}

.portal-hero .hero-copy-block {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-rows: 76px 52px 40px 22px;
  row-gap: 12px;
  align-content: start;
}

.portal-hero h1,
.portal-hero .lead,
.portal-hero .supporting-line {
  margin-bottom: 0;
}

.portal-hero .lead {
  max-width: 72ch;
}

.portal-hero .actions {
  align-items: center;
  min-height: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: var(--hero-accent-width);
  height: var(--hero-accent-height);
  border-bottom-left-radius: var(--hero-arc-radius);
  background: var(--hero-accent);
  opacity: var(--hero-accent-opacity);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-copy-block { max-width: 760px; }

.hub-hero {
  height: 380px;
  padding-block: 48px;
}

.hub-hero .hero-layout {
  height: 100%;
  display: flex;
  align-items: start;
}

.hub-hero .hero-copy-block {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-rows: 18px 76px 58px 40px;
  row-gap: 12px;
  align-content: start;
}

.hub-hero .eyebrow,
.hub-hero h1,
.hub-hero .lead {
  margin-bottom: 0;
}

.hub-hero h1 {
  white-space: nowrap;
}

.hub-hero .lead {
  max-width: 72ch;
  min-height: 0;
}

.hub-hero .actions {
  margin-top: 0;
  min-height: 40px;
  align-items: center;
}

.hero-copy-block h1 {
  font-size: 40px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 52ch;
  margin-bottom: 28px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Section chrome ─────────────────────────────────────── */
.section {
  padding-block: 54px;
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-alt {
  background: var(--page-band);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-header {
  max-width: none;
}

.section-heading h2 {
  font-size: 1.18rem;
  font-weight: var(--weight-ui-strong);
  letter-spacing: 0;
  line-height: 1.22;
  margin-bottom: 6px;
}
.section-heading .lead {
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 58ch;
  margin-bottom: 0;
}

.section-header .section-subtitle {
  max-width: none;
  white-space: nowrap;
}

/* ─── Roles grid ─────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--card-pad);
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
  cursor: pointer;
}
.role-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--border);
}
.role-card:nth-child(n + 4) {
  border-top: 1px solid var(--border);
}
.role-card:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}
.role-card h3 {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 8px;
}
.role-card small {
  display: block;
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  color: var(--muted);
  line-height: 1.5;
}
.role-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: var(--token-min-h);
  margin-top: 11px;
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-ui-strong);
  line-height: 1.1;
  text-transform: uppercase;
}

.roadmap-section-list,
.resource-section-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.roadmap-section-list article,
.resource-section-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.resource-section-list article {
  grid-template-columns: minmax(0, 1fr);
}

.roadmap-section-list h3,
.resource-section-list h3 {
  margin: 8px 0 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 560;
  line-height: 1.25;
}

.roadmap-section-list p,
.resource-section-list p {
  max-width: 82ch;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
}

.roadmap-section-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: var(--weight-label);
  white-space: nowrap;
}

.roadmap-section-list a:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.card-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--token-min-h);
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  line-height: 1.1;
  text-transform: uppercase;
}
/* ─── Skills grid ────────────────────────────────────────── */
.skill-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 18px;
}

.skill-filter {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: var(--weight-ui);
  transition: color 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.14s var(--ease);
}

.skill-filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-soft);
  transform: none;
}

.skill-filter.active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-group-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: var(--card-pad-sm);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.skill-group-card:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--border);
}

.skill-group-card:nth-child(n + 5) {
  border-top: 1px solid var(--border);
}

.skill-group-card:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.skill-group-card h3 {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 0;
  margin-bottom: 4px;
  line-height: 1.25;
}

.skill-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: var(--weight-body);
  color: var(--text);
  transition: color 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.14s var(--ease);
}
.skill-link span {
  min-width: 0;
}
.skill-link small {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: var(--weight-label);
  font-variant-numeric: tabular-nums;
}
.skill-link:hover {
  background: var(--accent-faint);
  border-color: var(--accent-pale);
  color: var(--accent-strong);
  transform: none;
}
.skill-link:hover small {
  color: var(--accent-strong);
}
.skill-group-card.is-empty {
  display: none;
}
/* ─── Cloud section (homepage) ───────────────────────────── */
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cloud-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.cloud-card:not(:nth-child(5n + 1)) {
  border-left: 1px solid var(--border);
}

.cloud-card:nth-child(n + 6) {
  border-top: 1px solid var(--border);
}

.cloud-card span {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  line-height: 1.25;
}

.cloud-card small {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}

.cloud-card:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

/* ─── Company Questions section (homepage) ──────────────── */
.company-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-pill {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: var(--card-pad);
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  transition: transform 0.18s var(--ease), color 0.18s var(--ease);
  cursor: pointer;
}
.company-pill:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--border);
}
.company-pill:nth-child(n + 5) {
  border-top: 1px solid var(--border);
}
.company-pill span {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-title);
  letter-spacing: 0;
  line-height: 1.25;
}
.company-pill small {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-body);
  line-height: 1.5;
}
.company-pill:hover {
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}
.section-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.card h2,
.card h3,
.portal-card h3,
.compact-link-grid a span,
.product-step-grid h3,
.product-status-grid h3,
.role-card h3,
.skill-group-card h3,
.cloud-card span,
.company-pill span {
  font-family: var(--font-sans);
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text);
}

.card p,
.portal-card p,
.compact-link-grid a small,
.product-step-grid p,
.product-status-grid p,
.role-card small,
.cloud-card small,
.company-pill small {
  color: var(--muted);
  font-size: var(--type-card-caption);
  font-weight: var(--weight-card-body);
  line-height: 1.5;
}

/* ─── Page hero (inner pages) ───────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 42px 30px;
  border-bottom: 1px solid var(--border);
  background: var(--page-band);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: var(--hero-accent-width);
  height: var(--hero-accent-height);
  border-bottom-left-radius: var(--hero-arc-radius);
  background: var(--hero-accent);
  opacity: var(--hero-accent-opacity);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 20px;
  min-width: 0;
}
.page-hero .container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  max-width: var(--max-width);
  padding-inline: 0;
}
.page-hero-inner > div:first-child {
  min-width: 0;
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
}
.page-eyebrow a {
  color: var(--muted);
}
.page-eyebrow a:hover {
  color: var(--accent-strong);
}
.page-eyebrow .crumb-separator {
  font-size: 0;
  color: var(--muted-soft);
}
.page-eyebrow .crumb-separator::after {
  content: "›";
  font-size: 0.72rem;
}
.page-hero h1 {
  min-width: 0;
  font-size: 40px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 8px;
}
.page-hero .lead {
  margin-bottom: 0;
  max-width: 76ch;
}
.role-stat-line {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.page-hero-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  padding-top: 2px;
}
.page-hero-badges .badge {
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-switcher {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 12px;
  scrollbar-width: thin;
}

.company-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}

.company-switcher a:hover,
.company-switcher a.active {
  color: var(--accent-strong);
  border-color: var(--accent-pale);
  background: var(--accent-faint);
}
.company-switcher a:hover { transform: none; }

/* ─── Split Q&A layout ───────────────────────────────────── */
/* Shell: fixed left sidebar (TOC) + scrollable main */
.qa-shell {
  display: grid;
  grid-template-columns: minmax(280px, var(--sidebar-w)) minmax(0, 1fr);
  align-items: start;
  gap: 0;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max-width));
  margin-inline: auto;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Left: sticky sidebar TOC */
.qa-sidebar {
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  max-height: calc(100vh - var(--header-h) - 24px);
  border-right: 0;
  background: var(--surface);
  box-shadow: none;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 18px 0 24px;
  display: flex;
  flex-direction: column;
}

.sidebar-section {
  padding: 0 14px;
}
.sidebar-section + .sidebar-section {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 0;
}

.sidebar-title {
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.qa-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-progress {
  margin: 0 12px 14px;
}
.role-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  margin-bottom: 7px;
}
.role-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.role-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--ease);
}
.qa-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.14s var(--ease), background 0.14s var(--ease), box-shadow 0.14s var(--ease), transform 0.14s var(--ease);
  border: 0;
  text-align: left;
  background: none;
  width: 100%;
  line-height: 1.38;
}
.qa-nav-item {
  align-items: center;
  gap: 7px;
}
.qa-nav-status {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-size: 0.65rem;
  line-height: 1;
}
.qa-nav-text {
  flex: 1;
  min-width: 0;
}
.qa-nav-done-pill {
  display: none;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--accent-faint);
  color: var(--accent-strong);
  font-size: 0.62rem;
  font-weight: var(--weight-label);
  line-height: 1.2;
}
.qa-nav-item.is-done {
  color: var(--muted-soft);
}
.qa-nav-item.is-done .qa-nav-status {
  border-color: transparent;
  background: var(--accent-faint);
}
.qa-nav-item.is-done .qa-nav-status::before {
  content: "✓";
}
.qa-nav-item.is-done .qa-nav-done-pill {
  display: inline-flex;
}
.qa-nav-item:hover { color: var(--text); background: var(--surface-soft); transform: none; }
.qa-nav-item.active {
  color: var(--accent-strong);
  font-weight: var(--weight-label);
  background: var(--surface-soft);
  box-shadow: none;
}
.qa-nav-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Right: Q&A main area */
.qa-main {
  background: var(--page-band);
  min-width: 0;
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}

.reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.reading-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Breadcrumb */
.qa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--reader-gutter);
  border-bottom: 0;
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted);
  position: sticky;
  top: var(--header-h);
  z-index: 13;
  min-width: 0;
}
.qa-breadcrumb .current {
  color: var(--text);
  font-weight: 650;
  flex-shrink: 0;
}

.role-skill-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px var(--reader-gutter);
  border-bottom: 0;
  background: var(--surface);
  position: sticky;
  top: var(--header-h);
  z-index: 13;
  overflow-x: visible;
  scrollbar-width: thin;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.reader-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
  width: min(520px, 62%);
}

.reader-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.reader-search input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0 12px 0 36px;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.reader-search input::placeholder {
  color: var(--muted-soft);
  font-weight: 500;
}

.reader-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12);
  outline: none;
}

.reader-search-icon {
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted-soft);
  border-radius: 50%;
  pointer-events: none;
}

.reader-search-icon::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--muted-soft);
  transform: rotate(45deg);
}

.reader-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 12px 12px;
  padding: 3px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--background);
}

.reader-filter {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: var(--weight-label);
}

.reader-filter {
  min-height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  transition: color 0.14s var(--ease), background 0.14s var(--ease), box-shadow 0.14s var(--ease), transform 0.14s var(--ease);
}

.reader-filter:hover,
.reader-filter.active {
  color: var(--accent-strong);
  background: var(--surface);
  box-shadow: none;
}
.reader-filter:hover { transform: none; }

.reader-empty {
  padding: 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}
.role-tab-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.role-skill-option {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: var(--weight-label);
  line-height: 1;
  white-space: nowrap;
}
.role-skill-option {
  cursor: pointer;
  transition: color 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.14s var(--ease);
}
.role-skill-option:hover {
  border-color: transparent;
  color: var(--text);
  background: var(--surface-soft);
  transform: none;
}
.role-question-panel {
  display: none;
  min-width: 0;
}
.role-tabs:has(> .role-tab-input:nth-of-type(1):checked) .qa-sidebar .role-question-panel:nth-of-type(1),
.role-tabs:has(> .role-tab-input:nth-of-type(2):checked) .qa-sidebar .role-question-panel:nth-of-type(2),
.role-tabs:has(> .role-tab-input:nth-of-type(3):checked) .qa-sidebar .role-question-panel:nth-of-type(3),
.role-tabs:has(> .role-tab-input:nth-of-type(4):checked) .qa-sidebar .role-question-panel:nth-of-type(4),
.role-tabs:has(> .role-tab-input:nth-of-type(5):checked) .qa-sidebar .role-question-panel:nth-of-type(5),
.role-tabs:has(> .role-tab-input:nth-of-type(6):checked) .qa-sidebar .role-question-panel:nth-of-type(6) {
  display: block;
}
.role-tabs:has(> .role-tab-input:nth-of-type(1):checked) .qa-content > .role-question-panel:nth-of-type(1),
.role-tabs:has(> .role-tab-input:nth-of-type(2):checked) .qa-content > .role-question-panel:nth-of-type(2),
.role-tabs:has(> .role-tab-input:nth-of-type(3):checked) .qa-content > .role-question-panel:nth-of-type(3),
.role-tabs:has(> .role-tab-input:nth-of-type(4):checked) .qa-content > .role-question-panel:nth-of-type(4),
.role-tabs:has(> .role-tab-input:nth-of-type(5):checked) .qa-content > .role-question-panel:nth-of-type(5),
.role-tabs:has(> .role-tab-input:nth-of-type(6):checked) .qa-content > .role-question-panel:nth-of-type(6) {
  display: grid;
  gap: 16px;
}
.role-tabs:has(> .role-tab-input:nth-of-type(1):checked) .role-skill-option:nth-of-type(1),
.role-tabs:has(> .role-tab-input:nth-of-type(2):checked) .role-skill-option:nth-of-type(2),
.role-tabs:has(> .role-tab-input:nth-of-type(3):checked) .role-skill-option:nth-of-type(3),
.role-tabs:has(> .role-tab-input:nth-of-type(4):checked) .role-skill-option:nth-of-type(4),
.role-tabs:has(> .role-tab-input:nth-of-type(5):checked) .role-skill-option:nth-of-type(5),
.role-tabs:has(> .role-tab-input:nth-of-type(6):checked) .role-skill-option:nth-of-type(6) {
  background: var(--surface-soft);
  border-color: transparent;
  color: var(--accent-strong);
}

/* Q&A content */
.qa-content {
  padding: 10px 0 18px 8px;
  display: grid;
  gap: 12px;
  max-width: none;
  margin-inline: 0;
  width: 100%;
  min-width: 0;
}

/* Each Q+A pair: split card */
.qa-card {
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
  box-shadow: none;
  scroll-margin-top: calc(var(--header-h) + var(--reader-breadcrumb-h) + 72px);
}
.qa-card:hover {
  box-shadow: none;
  transform: none;
}
.qa-card.open {
  box-shadow: none;
}

/* Question row */
.qa-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px 14px;
  background: var(--surface);
  border-bottom: 0;
  transition: background 0.14s var(--ease);
  cursor: pointer;
}
.qa-question:hover { background: var(--surface-soft); }

.qa-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.qa-q-text {
  grid-column: 1;
}

.answer-done-control {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 9px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: var(--weight-label);
  line-height: 1;
}

.answer-done-control input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.qa-card.is-done .answer-done-control {
  color: var(--accent-strong);
  background: var(--accent-faint);
}

.asked-at-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-label);
  margin-top: -5px;
}

.company-mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--muted);
}

.question-done {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.qa-q-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: var(--weight-title);
  color: var(--text);
  line-height: 1.42;
}
/* Answer pane */
.qa-answer {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
}

.qa-answer-col {
  min-width: 0;
  padding: 18px;
}
.qa-answer-col + .qa-answer-col {
  border-top: 0;
  background: var(--surface-soft);
}
.qa-answer-col-label {
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.qa-answer-col p {
  font-size: 0.95rem;
  font-weight: var(--weight-body);
  color: #334155;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.qa-answer-col p + p { margin-top: 10px; }
.interviewer-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.62;
}
.qa-code-block {
  margin-top: 14px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: #0f172a;
  box-shadow: var(--shadow-xs);
}
.qa-code-label {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}
.qa-code-block pre {
  overflow-x: auto;
  padding: 13px 14px;
}
.qa-code-block code {
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.6;
}
.qa-answer-col .followup {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 0;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: var(--weight-body);
  line-height: 1.4;
}
.followup-label {
  flex-shrink: 0;
  color: var(--accent-strong);
}

/* Difficulty tag */
.qa-diff {
  min-height: var(--token-min-h);
  display: inline-flex;
  align-items: center;
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  letter-spacing: 0;
  text-transform: uppercase;
  padding: var(--token-pad);
  border-radius: var(--radius-sm);
  margin-left: 0;
}
.qa-diff-easy,
.qa-diff-medium,
.qa-diff-hard {
  background: var(--background);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 0;
  background: var(--footer-bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-grid {
  align-items: start;
  padding-block: 22px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 7px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--weight-strong);
}

.footer-grid p {
  color: rgba(255,255,255,0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.footer-links a {
  color: rgba(255,255,255,0.84);
  transition: color 0.16s var(--ease);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-meta {
  text-align: right;
}

.footer-version {
  white-space: nowrap;
  color: rgba(255,255,255,0.78);
}

/* ─── Email capture ──────────────────────────────────────── */
.email-band {
  padding-block: 34px;
  background: var(--accent-strong);
  color: #ffffff;
}

.email-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 24px;
}

.email-band h2 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 6px;
}

.email-band p {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.email-form input {
  height: 42px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0 12px;
}

.email-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(167,243,208,0.28);
}

.email-form .button.primary {
  height: 42px;
  background: #ffffff;
  color: var(--accent-strong);
  border-color: #ffffff;
  box-shadow: none;
  white-space: nowrap;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ─── Back link ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.back-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: none;
}

.page-actions {
  display: none;
  padding-block: 22px 36px;
}

/* ─── Homepage stats bar ─────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.progress-summary {
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 650;
}

.hero-stats-bar {
  margin-top: 28px;
}

.stat-item {
  flex: 1;
  padding: 16px 20px;
  text-align: center;
  position: relative;
  transition: background 0.18s var(--ease);
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--border);
}
.stat-item:hover {
  background: var(--background);
}
.stat-num {
  font-size: 1.4rem;
  font-weight: var(--weight-strong);
  color: var(--accent-strong);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.stats-loaded .stat-item.is-loaded .stat-num {
  color: var(--accent);
  transform: none;
}
.stats-unavailable .stat-num {
  opacity: 0.62;
}
.stat-word {
  font-size: 1.06rem;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-has-tooltip {
  cursor: help;
}

.stat-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 10;
  width: max-content;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.14s var(--ease), transform 0.14s var(--ease);
}

.stat-has-tooltip:hover .stat-tooltip,
.stat-has-tooltip:focus .stat-tooltip,
.stat-has-tooltip:focus-within .stat-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── Puzzle / aptitude cards ────────────────────────────── */
.puzzle-card .qa-answer-col:last-child {
  background: var(--surface-soft);
}
.puzzle-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--background);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.4;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hub-hero {
    height: auto;
    min-height: 300px;
    padding-block: 56px;
  }

  .hub-hero .hero-layout {
    min-height: 180px;
  }

  .hub-hero .hero-copy-block {
    grid-template-rows: auto;
  }

  .hub-hero h1 {
    white-space: normal;
  }

  .hub-hero .lead {
    min-height: 0;
    margin-bottom: 28px;
  }

  .hero.portal-hero {
    height: auto;
    min-height: 360px;
    padding-block: 64px;
  }

  .portal-hero .hero-layout {
    min-height: 180px;
  }

  .portal-hero .hero-copy-block {
    grid-template-rows: auto;
  }

  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-groups { grid-template-columns: repeat(3, 1fr); }
  .cloud-grid { grid-template-columns: repeat(3, 1fr); }
  .company-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-card:not(:nth-child(3n + 1)),
  .skill-group-card:not(:nth-child(5n + 1)),
  .cloud-card:not(:nth-child(5n + 1)),
  .company-pill:not(:nth-child(4n + 1)) {
    border-left: 0;
  }
  .role-card,
  .skill-group-card,
  .cloud-card,
  .company-pill {
    padding: var(--card-pad-sm);
  }
  .role-card:nth-child(even),
  .company-pill:nth-child(even) {
    border-left: 1px solid var(--border);
  }
  .skill-group-card:not(:nth-child(3n + 1)),
  .cloud-card:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--border);
  }
  .role-card:nth-child(n + 3),
  .company-pill:nth-child(n + 3),
  .skill-group-card:nth-child(n + 4),
  .cloud-card:nth-child(n + 4) {
    border-top: 1px solid var(--border);
  }
  .product-step-grid,
  .product-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-step-grid article,
  .product-step-grid article:not(:first-child),
  .product-status-grid article,
  .product-status-grid article:not(:first-child) {
    padding: var(--card-pad-sm);
    border-left: 0;
  }
  .product-step-grid article:nth-child(even),
  .product-status-grid article:nth-child(even) {
    border-left: 1px solid var(--border);
  }
  .product-step-grid article:nth-child(n + 3),
  .product-status-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .reader-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    width: min(480px, 72%);
  }
}

@media (max-width: 767px) {
  .header-actions {
    flex: 0 0 auto;
    width: auto;
  }
  .nav-search {
    width: 36px;
  }
  .nav-search.is-open {
    width: 36px;
  }
  .nav-search-input {
    left: auto;
    right: 44px;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .nav-search.is-open .nav-search-input {
    width: min(200px, 46vw);
  }
  .mobile-drawer {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    display: grid;
    gap: 6px;
    padding: 12px var(--page-gutter) 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.98);
    box-shadow: var(--shadow-sm);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .mobile-drawer .nav-menu {
    display: grid;
    gap: 4px;
  }
  .mobile-drawer .nav-menu-trigger {
    width: fit-content;
  }
  .mobile-drawer .nav-dropdown {
    position: static;
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0 0 4px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .mobile-drawer .nav-dropdown::before {
    content: none;
  }
  .mobile-drawer .nav-dropdown a {
    padding: 5px 8px;
    border: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
  }
  .mobile-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-drawer a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
  }
  .mobile-drawer a:hover,
  .mobile-drawer a.active {
    color: var(--accent-strong);
    background: var(--accent-faint);
  }
}

@media (max-width: 820px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-sidebar {
    position: static;
    gap: 12px;
  }
  .detail-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding: 0 0 8px;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .readiness-card {
    padding: 0;
    border-left: 0;
  }
  .detail-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 22px;
  }
  .roles-grid { grid-template-columns: 1fr; }
  .skills-groups { grid-template-columns: repeat(2, 1fr); }
  .cloud-grid { grid-template-columns: 1fr; }
  .role-card,
  .role-card:nth-child(even),
  .role-card:not(:nth-child(3n + 1)),
  .cloud-card,
  .cloud-card:not(:nth-child(3n + 1)),
  .cloud-card:not(:nth-child(5n + 1)) {
    padding: var(--card-pad-sm);
    border-left: 0;
  }
  .role-card:not(:first-child),
  .cloud-card:not(:first-child) {
    border-top: 1px solid var(--border);
  }
  .skill-group-card,
  .skill-group-card:not(:nth-child(3n + 1)),
  .skill-group-card:not(:nth-child(4n + 1)),
  .skill-group-card:not(:nth-child(5n + 1)) {
    border-left: 0;
  }
  .skill-group-card:nth-child(even) {
    border-left: 1px solid var(--border);
  }
  .skill-group-card:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .product-step-grid,
  .product-status-grid { grid-template-columns: 1fr; }
  .product-step-grid article,
  .product-step-grid article:nth-child(even),
  .product-status-grid article,
  .product-status-grid article:nth-child(even) {
    padding: var(--card-pad-sm);
    border-left: 0;
  }
  .product-step-grid article:not(:first-child),
  .product-status-grid article:not(:first-child) {
    border-top: 1px solid var(--border);
  }
  .roadmap-section-list article,
  .resource-section-list article {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
.roadmap-section-list a {
    width: fit-content;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-meta {
    text-align: left;
  }
  .email-band-inner { grid-template-columns: 1fr; }
  .page-hero-inner {
    grid-template-columns: 1fr;
  }
  .page-hero-badges {
    justify-content: flex-start;
    padding-top: 0;
  }
  .reader-toolbar {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
  }
  .stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .stat-item:nth-child(odd)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: var(--border);
  }
  .stat-item:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 767px) {
  .section-header .section-subtitle {
    white-space: normal;
  }

  .qa-shell {
    position: static;
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
  }
  .qa-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 0;
    box-shadow: none;
    padding: 12px 0;
  }
  .qa-nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 72vw);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .qa-content { padding: 10px 0 16px; }
  .qa-card { scroll-margin-top: calc(var(--header-h) + 24px); }
  .qa-breadcrumb,
  .role-skill-strip {
    flex-wrap: wrap;
    padding-inline: var(--reader-gutter);
  }
  .qa-breadcrumb {
    position: static;
    padding-inline: var(--reader-gutter);
  }
  .role-skill-strip {
    position: static;
    padding-inline: var(--reader-gutter);
  }
  .qa-main {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .reading-progress { top: var(--header-h); }
}

@media (max-width: 560px) {
  .header-inner { gap: 8px; }
  .hero { padding-block: 40px 36px; }
  .hero.portal-hero {
    height: auto;
    min-height: 0;
    padding-block: 44px;
  }
  .hub-hero {
    height: auto;
    min-height: 0;
    padding-block: 42px;
  }
  .hub-hero .hero-layout {
    min-height: 0;
  }
  .hero-copy-block h1,
  .page-hero h1 {
    font-size: 32px;
  }

  .section { padding-block: 40px; }
  .actions { flex-direction: column; }
  .button { width: 100%; justify-content: center; }
  .skills-groups { grid-template-columns: 1fr; }
  .skill-group-card,
  .skill-group-card:nth-child(even),
  .skill-group-card:not(:nth-child(3n + 1)),
  .skill-group-card:not(:nth-child(5n + 1)) {
    padding: var(--card-pad-sm);
    border-left: 0;
  }
  .skill-group-card:not(:first-child) {
    border-top: 1px solid var(--border);
  }
  .skill-link { align-items: flex-start; }
  .email-form { grid-template-columns: 1fr; }
  .company-strip { grid-template-columns: 1fr; }
  .company-pill {
    min-height: 76px;
    padding: var(--card-pad-sm);
    border-left: 0;
  }
  .company-pill:nth-child(even),
  .company-pill:not(:nth-child(4n + 1)) {
    border-left: 0;
  }
  .company-pill:not(:first-child) {
    border-top: 1px solid var(--border);
  }
  .page-hero { padding-block: 30px 22px; }
  .reader-filter-group { overflow-x: auto; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item:nth-child(odd)::after { display: none; }
  .stat-item:nth-child(n + 2) { border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* ─── Deep Study Pages ───────────────────────────────────── */
.study-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - var(--header-h));
}
.study-sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 0 40px;
}
.study-sidebar-head {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.study-sidebar-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
}
.study-sidebar-eyebrow a { color: var(--primary); text-decoration: none; }
.study-sidebar-eyebrow a:hover { text-decoration: underline; }
.study-sidebar-eyebrow .crumb-separator { margin: 0 3px; color: var(--muted); }
.study-sidebar-eyebrow span:not(.crumb-separator) { color: var(--muted); }

.study-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.study-nav-item:hover {
  color: var(--text);
  background: var(--bg);
}
.study-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  font-weight: var(--weight-label);
}
.study-nav-num {
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  color: var(--muted-soft);
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}
.study-main {
  padding: 48px 40px 100px 32px;
  max-width: 980px;
  min-width: 0;
}
.study-intro {
  margin-bottom: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.study-intro h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 8px;
}
.study-intro .lead { max-width: 560px; margin-bottom: 0; }
.study-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.study-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--token-min-h);
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  line-height: 1.1;
  text-transform: uppercase;
}
.study-guide-overview {
  display: grid;
  gap: 0;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.study-guide-overview .study-intro {
  margin-bottom: 0;
  padding: 24px 0 28px;
  border-bottom: 0;
}
.study-guide-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 46px);
  padding-block: 22px;
  border-top: 1px solid var(--border);
}
.study-guide-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}
.study-guide-copy {
  max-width: 76ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}
.study-guide-copy .topic-chip-row {
  margin-top: 2px;
}
.study-topic {
  margin-bottom: 72px;
  scroll-margin-top: 24px;
}
.study-topic-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.study-topic-num {
  display: inline-flex;
  align-items: center;
  min-height: var(--token-min-h);
  padding: var(--token-pad);
  border: 1px solid var(--token-border);
  border-radius: var(--radius-sm);
  background: var(--token-bg);
  color: var(--token-color);
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  margin-top: 6px;
  white-space: nowrap;
  letter-spacing: 0;
}
.study-topic-title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin-bottom: 4px;
}
.study-topic-sub { font-size: 0.86rem; color: var(--muted); }
.study-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
}
.study-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  letter-spacing: 0;
  text-transform: uppercase;
}
.study-card-body { padding: 18px 22px 20px; font-size: 0.9rem; line-height: 1.72; }
.study-card-body p + p { margin-top: 10px; }
.study-card-why .study-card-label    { background: rgba(15,118,110,0.07); color: var(--primary); border-bottom: 1px solid rgba(15,118,110,0.15); }
.study-card-why .study-card-body     { background: rgba(15,118,110,0.07); color: var(--text); }
.study-card-intuition .study-card-label { background: rgba(15,118,110,0.13); color: var(--primary); border-bottom: 1px solid rgba(15,118,110,0.22); }
.study-card-intuition .study-card-body  { background: rgba(15,118,110,0.13); color: var(--text); }
.study-card-explain { border: 1px solid var(--border); }
.study-card-explain .study-card-label   { background: var(--bg); color: var(--muted); border-bottom: 1px solid var(--border); }
.study-card-explain .study-card-body    { background: var(--surface); color: var(--text); }
.study-concept { margin-top: 20px; }
.study-concept + .study-concept { margin-top: 20px; }
.study-concept-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.study-concept-body { font-size: 0.88rem; color: var(--text); line-height: 1.7; }
.study-concept-body p + p { margin-top: 8px; }
.study-main code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.82rem;
  background: rgba(var(--accent-rgb), 0.07);
  color: var(--accent-strong);
  padding: 1px 6px;
  border-radius: 4px;
}
.study-math {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  background: var(--bg);
  padding: 12px 16px;
  margin: 10px 0;
  color: var(--text);
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
  border-radius: var(--radius);
}
.study-qa {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 16px;
  padding: 16px 20px;
}
.study-qa-label {
  font-size: var(--type-token);
  font-weight: var(--weight-label);
  color: var(--accent);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.study-qa-q { font-size: 0.88rem; font-weight: var(--weight-title); color: var(--text); margin-bottom: 6px; }
.study-qa-a { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }
.study-points { list-style: none; margin-top: 10px; }
.study-points li {
  padding-left: 16px;
  position: relative;
  font-size: 0.88rem;
  margin-bottom: 5px;
  line-height: 1.6;
}
.study-points li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }
.study-divider { height: 1px; background: var(--border); margin-bottom: 72px; }
.study-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.study-mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.study-mini-card-title { font-size: 0.76rem; font-weight: var(--weight-label); color: var(--accent-dark); margin-bottom: 6px; letter-spacing: 0.02em; }
.study-mini-card-body { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) { .study-two-col { grid-template-columns: 1fr; } }
.study-mobile-crumb { display: none; }
.study-mobile-nav { display: none; }

@media (max-width: 860px) {
  .study-layout { grid-template-columns: 1fr; }
  .study-sidebar { display: none; }
  .study-main { padding: 24px 20px 80px; }
  .study-guide-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 18px;
  }

  .study-mobile-crumb {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .study-mobile-crumb a { color: var(--primary); text-decoration: none; }
  .study-mobile-crumb a:hover { text-decoration: underline; }
  .study-mobile-crumb .crumb-separator { margin: 0 3px; color: var(--muted); }

  .study-mobile-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 16px 0 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .study-mobile-nav::-webkit-scrollbar { display: none; }
  .study-mobile-nav-item {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .study-mobile-nav-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
  }
}
