:root {
  --brand: #4690BF;        /* --accent-blue / --logo */
  --brand-light: #E8F3FA;
  --brand-dark: #2d6a94;
  --accent: #F97316;        /* action accent — CTA + key emphasis only, NOT the brand */
  --accent-hover: #EA580C;
  --accent-soft: rgba(249,115,22,0.12);
  --acc-bg: #E8F5EE;        /* soft mint brand background */
  --ok:  #1D9E75;           /* success / pass */
  --err: #E24B4A;           /* fail */

  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-tertiary: #9a9a9a;

  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f5;
  --bg-tertiary: #f0efec;

  --border: rgba(0,0,0,0.1);
  --border-md: rgba(0,0,0,0.18);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --max-width: 1280px;
  --content-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-tertiary: #606060;
    --bg-primary: #141414;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #252525;
    --border: rgba(255,255,255,0.1);
    --border-md: rgba(255,255,255,0.18);
    --brand-light: rgba(70,144,191,0.12);
    --acc-bg: rgba(29,158,117,0.10);
    --accent: #FB8B3C;        /* brighter orange for dark backgrounds */
    --accent-hover: #F97316;
    --accent-soft: rgba(251,139,60,0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─── */
.site-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ─── */
.site-header {
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  height: 64px;
}

/* Logo stays left, menu sits at the right edge */
.nav-links { margin-left: auto; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo img, .nav-logo-img { height: 45px; width: auto; }

/* Inline SVG logo mark (default, bundled in theme) */
.nav-logo-svg { display: inline-flex; align-items: center; color: var(--brand); }
.nav-logo-svg .nav-logo-mark { height: 45px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links li { flex: 0 0 auto; }

.nav-links a {
  font-size: 18px;
  color: #000;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--brand); }

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: var(--brand) !important;
  border-radius: var(--radius-md) !important;
  padding: 6px 14px !important;
  text-decoration: none !important;
  transition: background .15s !important;
}

.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  padding: 4px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }

/* Action CTA — uses the orange accent. Reserve for primary conversion actions
   (free audit, get started), not for every button, so the accent stays meaningful. */
.btn-accent {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-accent:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }

.btn-outline {
  display: inline-block;
  font-size: 14px;
  color: var(--brand);
  background: none;
  border: 0.5px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ─── Section labels ─── */
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
}

/* ─── Hero ─── */
.page-hero {
  padding: 64px 0 48px;
  max-width: 600px;
}

.page-hero .hero-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--text-secondary);
}

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

.page-hero .hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 520px;
}

/* ─── Stats grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 64px;
}

.stat-item {
  background: var(--bg-primary);
  padding: 20px 16px;
}

.stat-number {
  font-size: 24px;
  font-weight: 500;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

/* Problem cards */
.problem-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 18px;
}

.problem-sig {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.problem-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.problem-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Module rows */
.modules-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color .15s;
}

.module-row:hover { border-color: var(--brand); }

.module-left { display: flex; align-items: center; gap: 12px; }

.module-badge {
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border-radius: 4px;
  padding: 2px 7px;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.module-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.module-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.module-free {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 4px;
  padding: 2px 8px;
  flex-shrink: 0;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}

.service-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.service-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.service-link {
  font-size: 13px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.service-link:hover { text-decoration: underline; }

/* ─── Code blocks ─── */
.code-wrap {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 0.5px solid var(--border);
}

.code-lang {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.code-copy {
  font-size: 11px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-sans);
}

.code-copy:hover { color: var(--text-primary); }

.code-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}

.code-body .line-pass { color: var(--ok); }
.code-body .line-warn { color: #BA7517; }
.code-body .line-fail { color: #E24B4A; }
.code-body .line-brand { color: var(--brand); }
.code-body .line-comment { color: var(--text-tertiary); }

/* Inline code */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-primary);
}

pre { margin: 0; }
pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* ─── TL;DR block ─── */
.tldr {
  background: var(--acc-bg);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.tldr-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tldr ul { padding-left: 16px; }
.tldr li { font-size: 14px; line-height: 1.65; margin-bottom: 4px; }

/* ─── Callout ─── */
.callout {
  background: var(--bg-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.callout strong { color: var(--text-primary); font-weight: 500; }

/* ─── Post content typography ─── */
.entry-content {
  max-width: var(--content-width);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
}

.entry-content h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 40px 0 12px;
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 28px 0 10px;
}

.entry-content p { margin-bottom: 20px; }

.entry-content ul,
.entry-content ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.entry-content li { margin-bottom: 6px; line-height: 1.7; }

.entry-content a { color: var(--brand); }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 24px;
}

.entry-content th,
.entry-content td {
  text-align: left;
  padding: 8px 12px;
  border: 0.5px solid var(--border);
}

.entry-content th {
  background: var(--bg-secondary);
  font-weight: 500;
  font-size: 12px;
}

/* ─── Blog cards ─── */
.post-header-area {
  padding: 48px 0 40px;
}

.post-header-area h1 {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.post-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.post-title-large {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.post-meta-sep { color: var(--border-md); }

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 0.5px solid var(--border-md);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  text-decoration: none;
  transition: border-color .15s;
}

.featured-post:hover { border-color: var(--brand); text-decoration: none; }

.featured-thumb {
  background: var(--brand-light);
  min-height: 200px;
  overflow: hidden;
}

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

.featured-body { padding: 24px; }

.featured-body .post-tag { margin-bottom: 10px; }

.featured-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.featured-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.featured-meta { font-size: 12px; color: var(--text-tertiary); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}

.post-card:hover { border-color: var(--brand); text-decoration: none; }

.post-thumb {
  background: var(--brand-light);
  height: 130px;
  overflow: hidden;
}

.post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.post-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.post-card-excerpt {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.post-card-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
}

.page-numbers {
  font-size: 13px;
  padding: 6px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all .15s;
}

.page-numbers:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ─── Related posts ─── */
.related-section { margin-bottom: 48px; }

.related-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

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

.related-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s;
}

.related-card:hover { border-color: var(--brand); text-decoration: none; }

.related-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ─── CTA block ─── */
.cta-block {
  background: var(--brand-light);
  border: 0.5px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-bottom: 56px;
}

.cta-block h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cta-block p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ─── Footer ─── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 12px; color: var(--text-tertiary); }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover { color: var(--brand); }

/* ─── Divider ─── */
.post-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 40px 0;
}

/* ─── Signals table (audit page) ─── */
.signals-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.signal-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-primary);
}

.signal-row:last-child { border-bottom: none; }

.signal-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  text-align: center;
  display: inline-block;
}

.badge-critical { color: #A32D2D; background: #FCEBEB; }
.badge-important { color: #854F0B; background: #FAEEDA; }
.badge-standard { color: var(--text-secondary); background: var(--bg-secondary); }

.signal-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.signal-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.signal-weight { font-size: 12px; color: var(--text-tertiary); text-align: right; }

/* ─── Steps ─── */
.steps-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 56px;
}

.step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
}

.step-item:last-child { border-bottom: none; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── Service list (services page) ─── */
.service-list {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}

.service-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 24px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-primary);
}

.service-item:last-child { border-bottom: none; }

.service-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  padding-top: 2px;
}

.service-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.service-item-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.service-bullets {
  list-style: none;
  padding: 0;
}

.service-bullets li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
  margin-bottom: 2px;
}

.service-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.service-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: inline-block;
  white-space: nowrap;
}

.badge-fixed { color: var(--brand); background: var(--brand-light); }
.badge-retainer { color: #0F6E56; background: var(--acc-bg); }
.badge-scope { color: #854F0B; background: #FAEEDA; }

.service-cta-col a {
  font-size: 13px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

/* ─── Responsive ─── */
/* Tablet: tighten the nav gap so the 18px menu fits on one line comfortably */
@media (max-width: 900px) and (min-width: 641px) {
  .nav-inner { gap: 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 16px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  /* On mobile the menu collapses behind the hamburger, so push the toggle to the
     far right while the logo stays left (the desktop left-cluster doesn't apply). */
  .nav-inner { justify-content: space-between; gap: 16px; height: 60px; }
  .nav-toggle { margin-left: auto; }

  /* Slightly smaller logo on phones so it doesn't dominate the bar */
  .nav-logo img, .nav-logo-img,
  .nav-logo-svg .nav-logo-mark { height: 36px; }
  .nav-logo-text { font-size: 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 0.5px solid var(--border);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }

  .page-hero h1 { font-size: 26px; }
  .page-hero { padding: 40px 0 32px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .card-grid-2,
  .services-grid,
  .posts-grid,
  .related-grid,
  .why-grid { grid-template-columns: 1fr; }

  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .featured-post { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 160px; }

  .service-item { grid-template-columns: 32px 1fr; gap: 12px; }
  .service-cta-col { display: none; }

  .signal-row { grid-template-columns: 80px 1fr; }
  .signal-weight { display: none; }

  .cta-block { padding: 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ─── Skip link (a11y) ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
  font-size: 13px;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* ─── Single post ─── */
.post-header {
  padding: 32px 0 40px;
  max-width: var(--content-width);
}

.post-featured-image {
  margin: 0 0 32px;
  max-width: var(--content-width);
}
.post-featured-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

/* ─── Static pages ─── */
.page-title-block {
  padding: 40px 0 32px;
  max-width: var(--content-width);
}
.page-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0;
}
.entry-content--page { padding-bottom: 64px; }

/* ─── Blog index ─── */
.blog-intro {
  font-size: 15px;
  color: var(--text-secondary);
}
.no-posts {
  color: var(--text-secondary);
  padding: 48px 0;
}

/* ─── 404 ─── */
.error-page {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}
.error-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.error-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.btn-group--center { justify-content: center; }

/* ─── Search ─── */
.search-form-wrap {
  margin-bottom: 40px;
  max-width: var(--content-width);
}
.search-form-wrap input[type="search"],
.search-form-wrap input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
}
.search-form-wrap input[type="submit"],
.search-form-wrap button {
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

/* ─── Contact template ─── */
.page-hero--compact { padding-bottom: 32px; }
.contact-email-note {
  padding-bottom: 64px;
  font-size: 13px;
  color: var(--text-secondary);
}


/* ─── Pagination: support list markup from plugins ─── */
.pagination ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
}
.pagination li { margin: 0; }
.pagination ul.page-numbers {
  border: none;
  padding: 0;
  background: none;
}
.pagination .page-numbers.dots {
  border: none;
  padding: 6px 4px;
}

/* ─── Logo text next to image ─── */
.nav-logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-logo-text .nlt-name { color: var(--brand); }
.nav-logo-text .nlt-tld  { color: var(--accent); }

/* ─── Claude Partner Network (v1.1.3) ─── */
.cpn-section {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 56px;
}
.cpn-intro {
  max-width: 760px;
  margin-bottom: 28px;
}
.cpn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  color: var(--brand-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-md);
  margin-bottom: 16px;
}
.cpn-badge svg { flex-shrink: 0; }
.cpn-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.cpn-title span { color: var(--brand); }
.cpn-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}
.cpn-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--bg-primary);
  border: 1px solid var(--brand);
  border-radius: 100px;
  padding: 8px 16px;
  transition: background .15s, color .15s;
}
.cpn-verify:hover { text-decoration: none; background: var(--brand); color: #fff; }
.cpn-verify svg { transition: transform .15s; }
.cpn-verify:hover svg { transform: translateX(2px); }
.cpn-note {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 620px;
}
.cpn-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.cpn-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.cpn-item-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  margin-bottom: 14px;
}
.cpn-item h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.cpn-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.cpn-item code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--brand-light);
  padding: 1px 5px;
  border-radius: 3px;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ─── Contact form wrapper (WPForms on front page, v1.1.3) ─── */
.contact-form-wrap {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: left;
}

/* Tablet: 4 cards → 2×2 */
@media (max-width: 900px) {
  .cpn-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobile: single column, tighter padding */
@media (max-width: 560px) {
  .cpn-section { padding: 24px; }
  .cpn-items { grid-template-columns: 1fr; }
  .cpn-title { font-size: 22px; }
}

/* ─── Full-width homepage (v1.1.3) ─── */
/* Blog/article pages keep the 720px reading width; the homepage gets room
   so the Claude Partner cards and service grid are comfortable. */
/* Container width is unified at 1280px via --max-width on .site-wrap (used by
   header, homepage, blog, full-width templates, and all other pages alike).
   Full-width content escapes the narrow text-measure clamp below. */
.entry-content--full {
  max-width: none;
}

/* Homepage section copy can use the full column width, not the narrow 560px
   that suits long-form article intros. */
.home-layout .section-sub,
.home-layout .hero-sub {
  max-width: 640px;
}

/* ─── Core concepts (knowledge hub, v1.1.4) ─── */
.concepts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}
.concept-card {
  display: block;
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.concept-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}
.concept-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
  line-height: 1.3;
}
.concept-arrow { opacity: .6; }
.concept-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .concepts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .concepts-grid { grid-template-columns: 1fr; }
}
