:root {
  color-scheme: light;
  --ink: #1d2430;
  --muted: #5f6877;
  --line: #dfe4ea;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --coral: #c24e38;
  --gold: #96650f;
  --violet: #6b5cff;
  --shadow: 0 18px 55px rgba(29, 36, 48, 0.13);
  /* signature: monospace utility face for labels, stats, and technical data */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  /* aliases used by inline styles in a few pages */
  --accent: var(--teal);
  --text-secondary: var(--muted);
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f7f9;
  --muted: #a7afb8;
  --line: #3a4558;
  --paper: #1d2430;
  --soft: #151b26;
  --teal: #2dd4bf;
  --teal-dark: #5eead4;
  --coral: #ff8a75;
  --gold: #fbbf24;
  --violet: #a5b4fc;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.38);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(223, 228, 234, 0.82);
  backdrop-filter: blur(18px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-header {
    backdrop-filter: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus-visible {
  left: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.text-link:hover {
  color: var(--teal-dark);
}

.nav-links a[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}

.header-cta {
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--line);
}
.header-cta:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.header-icon:hover {
  background: var(--soft);
}

.menu-toggle {
  display: none;
}


.button.primary {
  color: #fff;
  background: var(--teal);
}

/* Dark mode teal is bright mint; white text fails contrast, so use dark ink. */
[data-theme="dark"] .button.primary {
  color: #08211d;
}

.button.secondary {
  color: #1d2430;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.95);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 18, 28, 0.86) 0%, rgba(7, 18, 28, 0.62) 39%, rgba(7, 18, 28, 0.12) 82%),
    linear-gradient(180deg, rgba(7, 18, 28, 0.08) 68%, var(--soft) 100%);
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 86px);
  padding: 64px 0 112px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb4a5;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(520px, 100%);
  margin: 44px 0 0;
}

.hero-stats div {
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.hero-content .article-byline {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 56px) 0;
}

.compact-section {
  padding-top: 44px;
}

.video-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 60px 0;
}

.video-section h2 {
  margin-bottom: 12px;
}

.video-section > p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 24px;
}

.profile-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-link {
  display: inline-flex;
  margin-top: 16px;
}

.avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--coral));
  border-radius: 8px;
  font-weight: 800;
}

.avatar.large {
  width: 96px;
  height: 96px;
  font-size: 1.25rem;
}

.profile-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 72px;
}

.profile-hero-content {
  max-width: 780px;
}

.profile-hero h1 {
  color: var(--ink);
}

.profile-title {
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.profile-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.profile-secondary {
  border-color: var(--line);
  background: var(--paper);
}

.profile-summary-card,
.profile-feature,
.hub-card,
.path-step,
.article-preview,
.workflow-highlight,
.credibility-strip,
.timeline-item,
.credential-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.profile-summary-card {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.profile-summary-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.profile-summary-card dt {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-summary-card dd {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-detail-section {
  padding-top: 40px;
}

.profile-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-feature {
  padding: 24px;
}

.profile-feature p,
.timeline-item p,
.timeline-item li,
.credential-card p {
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.timeline-item p {
  margin: 0;
}

.timeline-item ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-item li + li {
  margin-top: 8px;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 24px;
  align-items: start;
}

.profile-tags {
  margin-top: 24px;
}

.credential-card {
  padding: 24px;
}

.credential-card p {
  margin: 0;
}

.credential-card p + p {
  margin-top: 18px;
}

.page-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) 0 34px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.page-hero-grid .page-hero-image {
  aspect-ratio: 4 / 3;
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.page-hero-image,
.article-hero-image,
.featured-preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.page-hero-image {
  aspect-ratio: 16 / 10;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
}

.featured-preview img {
  aspect-ratio: 16 / 8;
}

.hub-grid,
.learning-path,
.article-card-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Homepage-only: two-card sections (Latest / Archives) fill the row as 2-up instead of
   leaving a dead third column. Scoped to .home-two-up so the ~120 interior pages that use
   .article-card-grid for 3-up related grids are unaffected. */
.article-card-grid.home-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.audience-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.06);
}

.audience-card h3 {
  margin-bottom: 8px;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.inline-audience {
  margin-bottom: 0;
}

.hub-card,
.path-step,
.article-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.compact-card h3 {
  margin-bottom: 0;
}

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
}

.workflow-highlight p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.credibility-strip div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--paper);
}

.credibility-strip strong {
  font-size: 1.1rem;
}

.credibility-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.category-tile {
  display: grid;
  min-height: 76px;
  align-items: center;
  padding: 18px;
  color: var(--teal-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.06);
}

.hub-card p,
.path-step p,
.article-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.path-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.resource-directory {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.directory-grid {
  margin-top: 0;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-preview h2 {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.page-newsletter {
  margin-top: 24px;
}

.breadcrumbs {
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--teal-dark);
  font-weight: 700;
}

.article-toc {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.06);
}

.article-toc strong {
  color: var(--ink);
}

.article-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  color: var(--teal-dark);
  background: #e7f5f2;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.article-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.article-header {
  display: grid;
  gap: 18px;
  padding-bottom: 34px;
}

.article-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-byline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}


.article-meta span {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.article-body {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.takeaway-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.takeaway-box h2,
.takeaway-box h3 {
  margin: 0;
  font-size: 1.1rem;
}

.takeaway-box ul {
  margin: 0;
}

.decision-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decision-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}

.decision-row > * {
  padding: 14px;
  background: var(--paper);
}

.decision-row strong {
  color: var(--ink);
}

.before-after-section {
  margin: 36px 0;
}

.before-after-section h2 {
  margin-bottom: 18px;
}

.before-after-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.65;
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(29, 36, 48, 0.06);
}

.before-after-section thead {
  background: var(--ink);
  color: #fff;
}

.before-after-section th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.before-after-section td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.before-after-section tbody tr:last-child td {
  border-bottom: none;
}

.before-after-section tbody tr:nth-child(even) {
  background: var(--soft);
}

.before-after-section td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 18%;
  white-space: nowrap;
}

.before-after-section td:nth-child(2) {
  color: var(--muted);
  width: 41%;
}

.before-after-section td:nth-child(3) {
  color: #17413d;
  background: rgba(15, 118, 110, 0.05);
  width: 41%;
  border-left: 3px solid var(--teal);
}

[data-theme="dark"] .before-after-section td:nth-child(3) {
  color: #e7f5f2;
  background: rgba(45, 212, 191, 0.08);
}

.before-after-section tbody tr:hover td:nth-child(3) {
  background: rgba(15, 118, 110, 0.09);
}

[data-theme="dark"] .before-after-section tbody tr:hover td:nth-child(3) {
  background: rgba(45, 212, 191, 0.12);
}

/* Simple tables (feature/comparison/pricing tables) */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(29, 36, 48, 0.06);
}

[data-theme="dark"] .table-scroll {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.simple-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.65;
  background: var(--paper);
}

.simple-table thead {
  background: var(--ink);
  color: #fff;
}

.simple-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simple-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.simple-table tbody tr:last-child td {
  border-bottom: none;
}

.simple-table tbody tr:nth-child(even) {
  background: var(--soft);
}

.simple-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Dark mode: --ink flips to near-white, so the light-mode "dark bar" header
   would render white-on-white. Force a dark header with light text instead. */
[data-theme="dark"] .simple-table thead,
[data-theme="dark"] .before-after-section thead {
  background: #0d1420;
  color: #f4f7f9;
}

.article-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.article-body p,
.article-body li,
.faq-section p {
  color: var(--muted);
  line-height: 1.75;
}

.article-body ul {
  margin: 0;
  padding-left: 20px;
}

.article-body ol {
  margin: 0;
  padding-left: 22px;
}

.callout {
  padding: 18px;
  color: #17413d;
  background: #e7f5f2;
  border-radius: 8px;
  line-height: 1.7;
}

.next-step-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.next-step-card p {
  color: rgba(255, 255, 255, 0.78);
}

.next-step-card .button {
  justify-self: start;
}

.faq-section {
  display: grid;
  gap: 12px;
}

.faq-section details {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 800;
}

.library-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.library-toolbar label {
  font-weight: 800;
}

.library-toolbar input,
.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.inquiry-form textarea {
  padding-block: 12px;
  resize: vertical;
}

.searchable-resources .is-hidden,
.tool-directory-grid .is-hidden {
  display: none;
}

.expanded-tool-card {
  align-content: start;
}

.tool-review-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tool-review-list div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tool-review-list dt {
  color: var(--ink);
  font-weight: 800;
}

.tool-review-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.focus-list span {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button,
.category-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}

.filter-button.is-active,
.category-button.is-active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.tool-grid,
.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.tool-pick-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(29, 36, 48, 0.06);
}

.tool-pick-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-directory-card {
  align-content: start;
}

.tool-directory-count {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-card,
.deal-card,
.resource-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.tool-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.tool-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  color: var(--teal-dark);
  background: #e7f5f2;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.rating {
  color: var(--gold);
  font-weight: 800;
}

.tool-card p,
.deal-card p,
.resource-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-meta span {
  padding: 7px 9px;
  background: var(--soft);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.card-link,
.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.resource-section {
  width: 100%;
  padding-inline: clamp(18px, 4vw, 54px);
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.resource-section > * {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.resource-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.resource-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
}

.category-button {
  width: 100%;
  text-align: left;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.resource-action {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.resource-type {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deal-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.deal-price {
  font-size: 1.7rem;
  font-weight: 800;
}

.disclosure {
  padding: 12px;
  color: #704214;
  background: #fff5de;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.newsletter {
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  color: #fff;
  background: #1d2430;
  border-radius: 8px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label {
  font-weight: 700;
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.signup-row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
}

.site-footer {
  padding: 40px clamp(18px, 4vw, 54px) 28px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-brand p {
  margin: 0 0 8px;
}

.footer-col h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 3px 0;
}

.footer-col a:hover {
  color: var(--teal);
}

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

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .nav-links a {
    min-width: max-content;
    scroll-snap-align: start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 18, 28, 0.88) 0%, rgba(7, 18, 28, 0.56) 100%),
      linear-gradient(180deg, rgba(7, 18, 28, 0.05) 70%, var(--soft) 100%);
  }

  .profile-grid,
  .profile-hero,
  .page-hero-grid,
  .profile-feature-grid,
  .profile-columns,
  .hub-grid,
  .learning-path,
  .article-card-grid,
  .category-grid,
  .audience-grid,
  .credibility-strip,
  .workflow-highlight,
  .resource-directory,
  .timeline-item,
  .resource-layout,
  .newsletter {
    grid-template-columns: 1fr;
  }

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

  .tool-grid,
  .tool-directory-grid,
  .tool-picks-grid,
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
    padding-top: 46px;
  }

  .hero-actions,
  .hero-stats,
  .section-heading.split,
  .profile-panel,
  .signup-row {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
  }

  .hero-stats,
  .tool-grid,
  .tool-directory-grid,
  .tool-picks-grid,
  .deal-grid {
    grid-template-columns: 1fr;
  }

  .resource-item {
    grid-template-columns: 1fr;
  }

  .resource-action {
    justify-items: start;
  }

  .filter-controls {
    justify-content: flex-start;
  }
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.search-overlay[hidden] {
  display: none;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.search-container {
  position: relative;
  width: min(680px, calc(100% - 32px));
  max-height: 80vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.search-header {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.search-header input {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

.search-header button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.search-results {
  overflow-y: auto;
  padding: 12px;
}

.search-result {
  display: block;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--soft);
}

.search-result-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 800;
}

.search-result-meta {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-result-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.search-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

[data-theme="dark"] .site-header {
  background: rgba(21, 27, 38, 0.9);
  border-bottom-color: rgba(58, 69, 88, 0.82);
}

[data-theme="dark"] .header-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .brand-mark,
[data-theme="dark"] .tool-logo,
[data-theme="dark"] .path-step > span {
  background: #3a4558;
}

[data-theme="dark"] .avatar {
  color: var(--soft);
}

[data-theme="dark"] .tag,
[data-theme="dark"] .article-toc a {
  background: rgba(94, 234, 212, 0.15);
}

[data-theme="dark"] .callout {
  color: #e7f5f2;
  background: #0f2e2a;
}

[data-theme="dark"] .disclosure {
  color: #fff5de;
  background: #4a3a1a;
}

[data-theme="dark"] .next-step-card {
  background: var(--paper);
}

[data-theme="dark"] .search-header input,
[data-theme="dark"] .search-header button {
  background: var(--soft);
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    order: unset;
    width: 100%;
    overflow-x: visible;
    padding: 8px clamp(18px, 4vw, 54px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-actions {
    gap: 4px;
  }

  .header-cta {
    padding: 0 12px;
  }

  .before-after-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: inset -24px 0 20px -20px rgba(29, 36, 48, 0.12);
  }

  [data-theme="dark"] .before-after-section {
    box-shadow: inset -24px 0 20px -20px rgba(0, 0, 0, 0.35);
  }

  .before-after-section table {
    min-width: 640px;
  }

  .before-after-section th,
  .before-after-section td {
    padding: 14px;
  }

  .before-after-section td:first-child {
    white-space: normal;
  }

  .table-scroll {
    box-shadow: inset -24px 0 20px -20px rgba(29, 36, 48, 0.12);
  }

  [data-theme="dark"] .table-scroll {
    box-shadow: inset -24px 0 20px -20px rgba(0, 0, 0, 0.35);
  }

  .simple-table {
    min-width: 640px;
  }

  .simple-table th,
  .simple-table td {
    padding: 14px;
  }
}

/* --- Card hover affordance --- */
.hub-card,
.path-step,
.article-preview,
.tool-card,
.deal-card,
.resource-item,
.audience-card,
.credential-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hub-card:hover,
  .path-step:hover,
  .article-preview:hover,
  .tool-card:hover,
  .deal-card:hover,
  .resource-item:hover,
  .audience-card:hover,
  .credential-card:hover {
    transform: translateY(-2px);
  }
}

.hub-card:hover,
.path-step:hover,
.article-preview:hover,
.tool-card:hover,
.deal-card:hover,
.resource-item:hover,
.audience-card:hover,
.credential-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(29, 36, 48, 0.12);
}

.card-link,
.text-link {
  transition: color 0.15s ease;
}

.card-link:hover {
  color: var(--teal-dark);
}

/* --- Article long-form readability --- */
.article-body {
  font-size: 1.05rem;
}

.article-body p,
.article-body li {
  line-height: 1.7;
}

/* --- Video embed (replaces per-page inline styles) --- */
.video-embed {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(29, 36, 48, 0.08);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Sticky TOC sidebar on wide screens --- */
@media (min-width: 1100px) {
  .article-page {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 36px;
    width: min(1180px, calc(100% - 36px));
  }

  .article-page > .article-header {
    grid-column: 1 / -1;
  }

  .article-page > .article-toc {
    grid-column: 1;
    position: sticky;
    top: 96px;
    align-self: start;
    margin-bottom: 0;
  }

  .article-page > .article-body {
    grid-column: 2;
  }

  .article-page:not(:has(> .article-toc)) > .article-body {
    grid-column: 1 / -1;
  }
}
