/* shared.css — SEOSEO: cacheable styles shared across all pages
 * Contains: CSS vars, body reset, TwentyTwentyFive overrides, nav, footer,
 *           buttons, article body, sidebar, typography, responsive.
 * Enqueued via functions.php — cached after first page load.
 * Theme: DARK
 */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg: #080908;
  --bg2: #0f110f;
  --bg3: #161a16;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8ebe8;
  --muted: #7a8478;
  --accent: #a8ff3e;
  --accent2: #7acc2a;
  --red: #ff5c3a;
  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Playfair Display', 'Playfair Fallback', serif;
  --sans: 'Manrope', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
  --wp--style--root--padding-top: 0px !important;
  --wp--style--root--padding-right: 0px !important;
  --wp--style--root--padding-bottom: 0px !important;
  --wp--style--root--padding-left: 0px !important;
  overflow-x: hidden;
}
.wp-site-blocks { padding: 0 !important; }

/* ===== TwentyTwentyFive parent theme — aggressive global overrides ===== */
body, .wp-site-blocks, main,
.is-layout-flow, .is-layout-constrained, .is-layout-flex,
.wp-block-group, .entry-content, .post-content {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
  background-color: var(--bg) !important;
}

/* Override parent theme paragraph and text colors */
p, li, td, th, span, div, label, input, textarea, select, blockquote {
  color: inherit;
}

/* Override TwentyTwentyFive's --wp--preset--color and --wp--preset--font-* variables */
body {
  --wp--preset--color--contrast: var(--text) !important;
  --wp--preset--color--base: var(--bg) !important;
  --wp--preset--font-family--body: var(--sans) !important;
  --wp--preset--font-family--heading: var(--sans) !important;
}

main { max-width: none !important; }
main > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans) !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
}
a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
}
:where(.wp-site-blocks) > * { margin-block-start: 0 !important; }
.is-layout-constrained > * { max-width: none !important; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* ===== GLOBAL WIDTH CONSTRAINT — 1500px ===== */
body {
  max-width: 1500px;
  margin-left: auto !important;
  margin-right: auto !important;
}

section {
  padding: 80px 40px;
}

/* ===== NAV ===== */
nav.ss-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  max-width: 1500px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(8,9,8,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.admin-bar nav.ss-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav.ss-nav { top: 46px; } }

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent) !important;
  text-decoration: none !important;
}
.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 13px; color: var(--muted) !important; text-decoration: none !important;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text) !important; }
.nav-cta {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--accent); color: var(--bg) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 10px;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 768px) {
  nav.ss-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 11px; padding: 6px 14px; }
  .nav-toggle { display: block; }
  nav.ss-nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(8,9,8,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 20px 24px;
    gap: 0;
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  nav.ss-nav.open .nav-links a {
    display: block; padding: 12px 0; min-height: 44px; line-height: 20px;
  }
  .breadcrumb { flex-wrap: wrap; }
  .page-wrap { overflow-x: hidden; max-width: 100vw; }
  article { max-width: 100%; overflow-x: hidden; }
  .article-body { overflow-wrap: break-word; word-wrap: break-word; }
  .article-h1 { overflow-wrap: break-word; }
  .article-lead { overflow-wrap: break-word; }
}


/* ===== BUTTONS ===== */
.btn-primary {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  padding: 14px 32px;
  background: var(--accent); color: var(--bg) !important;
  border: none; cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-decoration: none !important; display: inline-block;
}
.btn-primary:hover { background: #c4ff5e; }
.btn-ghost {
  font-family: var(--mono); font-size: 13px;
  padding: 14px 32px;
  border: 1px solid var(--border2); color: var(--muted) !important;
  background: transparent; cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-decoration: none !important; display: inline-block;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text) !important; }
.btn-sm {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 12px 24px;
  background: var(--accent); color: var(--bg) !important;
  border: none; cursor: pointer;
  white-space: nowrap; text-decoration: none !important; display: inline-block;
  transition: background 0.2s;
}
.btn-sm:hover { background: #c4ff5e; }
.btn-full {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 12px; width: 100%;
  background: var(--accent); color: var(--bg) !important;
  border: none; cursor: pointer; text-align: center;
  display: block; text-decoration: none !important;
  transition: background 0.2s;
}
.btn-full:hover { background: #c4ff5e; }


/* ===== SECTION TAGS ===== */
.section-tag {
  font-family: var(--mono); font-size: 11px; color: var(--accent) !important;
  letter-spacing: 0.12em; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent);
}
.section-h2 {
  font-family: var(--serif) !important; font-size: clamp(32px, 4vw, 52px);
  font-weight: 400 !important; line-height: 1.1 !important; margin-bottom: 16px;
  color: var(--text) !important;
}
.section-h2 em { font-style: italic; color: var(--accent) !important; }
.section-lead {
  font-size: 16px; color: var(--muted) !important; max-width: 520px;
  line-height: 1.7; margin-bottom: 40px;
}


/* ===== FOOTER ===== */
footer.ss-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
}
.footer-logo {
  font-family: var(--mono); font-size: 13px; color: var(--accent) !important;
  letter-spacing: 0.08em;
}
.footer-note { font-size: 12px; color: var(--muted) !important; }

@media (max-width: 768px) {
  footer.ss-footer { flex-direction: column; gap: 12px; text-align: center; padding: 40px 20px; }
}


/* ===== ARTICLE BODY (posts, pages) ===== */
.article-body { font-size: 16px; line-height: 1.8; color: #c8cbc8; }
.article-body h2 {
  font-family: var(--serif) !important; font-size: 28px; font-weight: 400 !important;
  color: var(--text) !important; margin: 52px 0 16px;
  padding-top: 52px; border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
  font-size: 18px; font-weight: 500; color: var(--text) !important;
  margin: 32px 0 12px;
  scroll-margin-top: 80px;
}
.article-body h4 {
  font-size: 16px; font-weight: 500; color: var(--text) !important;
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--text) !important; font-weight: 500; }
.article-body em { font-style: italic; color: var(--accent) !important; }
.article-body a {
  color: var(--accent) !important; text-decoration: none;
  border-bottom: 1px solid rgba(168,255,62,0.3);
  transition: border-color 0.2s;
}
.article-body a:hover { border-bottom-color: var(--accent); }

/* Lists */
.article-body ul { list-style: none; margin: 20px 0 24px; padding: 0; }
.article-body ul li {
  padding: 6px 0 6px 20px; position: relative;
}
.article-body ul li::before {
  content: '\2192'; position: absolute; left: 0;
  color: var(--accent); font-family: var(--mono); font-size: 12px;
}
.article-body ol { margin: 20px 0 24px; padding-left: 24px; }
.article-body ol li { margin-bottom: 8px; color: #c8cbc8; }
.article-body ol li::marker { color: var(--accent); font-family: var(--mono); }

/* Blockquote / Callout */
.article-body blockquote,
.callout {
  background: var(--bg2); border-left: 2px solid var(--accent);
  padding: 24px 28px; margin: 32px 0;
}
.callout-label {
  font-family: var(--mono); font-size: 10px; color: var(--accent) !important;
  letter-spacing: 0.12em; margin-bottom: 8px;
}
.callout p { margin: 0; color: var(--text) !important; font-size: 15px; }
.article-body blockquote p {
  font-size: 15px; color: var(--text) !important; margin: 0; line-height: 1.7;
}

/* Tables */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
  font-size: 14px;
}
.article-body th {
  font-family: var(--mono); font-size: 11px; color: var(--muted) !important;
  text-align: left; padding: 10px 16px;
  border-bottom: 1px solid var(--border2);
  letter-spacing: 0.06em;
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #c8cbc8;
  vertical-align: top;
}
.article-body tr:hover td { background: var(--bg2); }
.td-accent { color: var(--accent) !important; font-family: var(--mono); }

/* Code */
.article-body code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 2px 8px; color: var(--accent) !important;
}
.article-body pre {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 24px; overflow-x: auto; margin: 28px 0;
}
.article-body pre code {
  background: none; border: none; padding: 0;
  color: var(--text) !important; font-size: 14px; line-height: 1.6;
}

/* Images */
.article-body img { max-width: 100%; height: auto; margin: 28px 0; }
.article-body figure { margin: 32px 0; }
.article-body figcaption {
  text-align: center; font-size: 12px; color: var(--muted) !important; margin-top: 12px;
  font-family: var(--mono);
}

/* Stat block */
.stat-block {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin: 32px 0;
}
.stat-cell { background: var(--bg2); padding: 24px; text-align: center; }
.stat-num {
  font-family: var(--mono); font-size: 28px; color: var(--accent) !important;
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--muted) !important; }

/* Inline CTA */
.inline-cta {
  background: var(--bg2); border: 1px solid var(--border2);
  padding: 36px; margin: 48px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.inline-cta-label {
  font-family: var(--mono); font-size: 11px; color: var(--accent) !important;
  letter-spacing: 0.1em; margin-bottom: 8px;
}
.inline-cta-title { font-size: 17px; font-weight: 500; }
.inline-cta-sub { font-size: 13px; color: var(--muted) !important; margin-top: 4px; }

/* FAQ */
.faq-section {
  padding: 60px 40px;
  background: var(--bg);
}
.faq-item {
  margin-bottom: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 {
  font-size: 16px !important; margin: 0 0 10px;
  color: var(--text) !important; line-height: 1.4; font-weight: 500 !important;
}
.faq-item p {
  margin: 0; color: var(--muted) !important; font-size: 14px; line-height: 1.7;
}

/* Article-scoped FAQ (overrides) */
.article-body .faq-section { margin: 32px 0; padding: 0; }
.article-body .faq-item {
  margin-bottom: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.article-body .faq-item:first-child { border-top: 1px solid var(--border); }
.article-body .faq-item h3 {
  font-size: 16px !important; margin: 0 0 10px;
  color: var(--text) !important; line-height: 1.4; font-weight: 500 !important;
}
.article-body .faq-item p {
  margin: 0; color: var(--muted) !important; font-size: 14px; line-height: 1.7;
}

/* Tags */
.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tag {
  font-family: var(--mono); font-size: 11px; color: var(--muted) !important;
  border: 1px solid var(--border); padding: 6px 14px;
  text-decoration: none !important;
  transition: all 0.2s;
}
.article-tag:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Breadcrumbs */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted) !important;
  margin-bottom: 32px; letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--muted) !important; text-decoration: none !important; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent) !important; }
.breadcrumb span { color: var(--border2); }

/* Reading time (from seoseo-seo.php mu-plugin) — hide duplicates */
.seoseo-reading-time { display: none; }
.seoseo-breadcrumbs { display: none; }

/* Pagination (for paginate_links output) */
.ss-pagination {
  display: flex; align-items: center; gap: 4px;
  margin-top: 48px;
}
.ss-pagination a,
.ss-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--border); color: var(--muted) !important;
  background: transparent; text-decoration: none !important;
  transition: all 0.2s;
}
.ss-pagination a:hover { border-color: var(--border2); color: var(--text) !important; }
.ss-pagination span.current {
  border-color: var(--accent); color: var(--accent) !important;
  background: rgba(168,255,62,0.05);
}
.ss-pagination .dots {
  color: var(--muted) !important; border: none; background: none;
  min-width: auto; padding: 0 4px;
}
.ss-pagination a.prev,
.ss-pagination a.next {
  font-weight: 500; width: auto; padding: 0 16px;
}


/* ===== SIDEBAR (shared between single.php and archive.php) ===== */
.sidebar { position: sticky; top: 80px; }

/* TOC */
.toc {
  border: 1px solid var(--border); padding: 28px;
  margin-bottom: 24px;
}
.toc-title {
  font-family: var(--mono); font-size: 11px; color: var(--muted) !important;
  letter-spacing: 0.1em; margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
  font-size: 13px; color: var(--muted) !important;
  text-decoration: none !important; padding: 6px 0;
  display: block; transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 12px;
}
.toc-list a:hover, .toc-list a.active {
  color: var(--text) !important;
  border-left-color: var(--accent);
}
.toc-list .toc-sub a { padding-left: 24px; font-size: 12px; }

/* Related arrow */
.related-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.related-arrow { font-family: var(--mono); font-size: 13px; color: var(--muted); transition: transform 0.2s; }
.related-card:hover .related-arrow { transform: translateX(4px); color: var(--accent); }

/* Sidebar CTA */
.sidebar-cta {
  background: var(--bg2); border: 1px solid var(--accent);
  padding: 28px; margin-bottom: 24px;
}
.sidebar-cta-label {
  font-family: var(--mono); font-size: 10px; color: var(--accent) !important;
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.sidebar-cta-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.sidebar-cta-desc { font-size: 13px; color: var(--muted) !important; margin-bottom: 20px; line-height: 1.6; }

/* Sidebar Stats */
.sidebar-stats { border: 1px solid var(--border); padding: 28px; }
.sidebar-stats-title {
  font-family: var(--mono); font-size: 11px; color: var(--muted) !important;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.sidebar-stat { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sidebar-stat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar-stat-num {
  font-family: var(--mono); font-size: 24px; color: var(--accent) !important;
  line-height: 1; margin-bottom: 4px;
}
.sidebar-stat-label { font-size: 12px; color: var(--muted) !important; }

/* Sidebar Newsletter */
.sidebar-newsletter {
  border: 1px solid var(--border); padding: 28px;
  margin-bottom: 24px;
}
.sidebar-nl-label {
  font-family: var(--mono); font-size: 10px; color: var(--muted) !important;
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.sidebar-nl-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.sidebar-nl-desc { font-size: 13px; color: var(--muted) !important; margin-bottom: 20px; line-height: 1.6; }

/* CTA Banner */
.cta-banner {
  background: var(--bg2); border: 1px solid var(--accent);
  padding: 28px;
}
.cta-banner-label {
  font-family: var(--mono); font-size: 10px; color: var(--accent) !important;
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.cta-banner-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.cta-banner-desc { font-size: 13px; color: var(--muted) !important; margin-bottom: 20px; line-height: 1.6; }

/* Popular posts */
.popular-list { list-style: none; }
.popular-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  text-decoration: none !important; color: inherit; transition: all 0.2s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .popular-title { color: var(--accent) !important; }
.popular-num {
  font-family: var(--mono); font-size: 13px; color: var(--muted) !important;
  flex-shrink: 0; padding-top: 1px;
}
.popular-title { font-size: 13px; color: var(--text) !important; line-height: 1.4; transition: color 0.2s; }
.popular-time { font-family: var(--mono); font-size: 10px; color: var(--muted) !important; margin-top: 4px; }

/* Topic cloud */
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tag {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 14px;
  border: 1px solid var(--border); color: var(--muted) !important;
  cursor: pointer; transition: all 0.2s;
}
.topic-tag:hover { border-color: var(--border2); color: var(--text) !important; }
.topic-tag.hot { border-color: rgba(168,255,62,0.3); color: var(--accent) !important; }


/* ===== LEAD FORM SECTION (before footer) ===== */
.ss-lead-section,
section.cta-section#seoseo-lead {
  background: var(--bg2) !important;
  border-top: 1px solid var(--border);
  padding: 80px 40px;
  text-align: center;
}
section.cta-section#seoseo-lead .inner {
  max-width: 800px;
  margin: 0 auto;
}
section.cta-section#seoseo-lead h2 {
  font-family: var(--serif) !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  margin-bottom: 12px;
}
section.cta-section#seoseo-lead .cta-content p {
  color: var(--muted) !important;
  font-size: 14px;
}
/* Highlight badge */
.highlight-box {
  display: inline-block;
}
.highlight-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent) !important;
  background: rgba(168,255,62,0.1);
  padding: 4px 12px;
}
/* Form fields */
.form-field {
  text-align: left;
}
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted) !important;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--accent) !important;
}
.form-input::placeholder {
  color: #8a9488;  /* WCAG AA 4.7:1 on #080908 */
  opacity: 1;
}
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237a8478' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
select.form-input option {
  background: var(--bg2);
  color: var(--text);
}
/* Submit button */
.form-submit {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  background: var(--accent) !important;
  color: var(--bg) !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover {
  background: #c4ff5e !important;
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* Form note */
.form-note {
  font-size: 11px;
  color: var(--muted) !important;
  margin-top: 12px;
  text-align: center;
}
.form-note a {
  color: var(--muted) !important;
  text-decoration: underline;
}
/* Status messages */
.seoseo-lead-msg {
  min-height: 1.25rem;
  font-size: 13px;
  margin-top: 8px;
  font-family: var(--mono);
}
.seoseo-lead-msg.ok { color: var(--accent) !important; }
.seoseo-lead-msg.err { color: var(--red) !important; }


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .stat-block { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 16px; }
  .inline-cta { padding: 24px; flex-direction: column; align-items: flex-start; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th { white-space: nowrap; }
  .ss-lead-section { padding: 60px 20px; }
  .faq-section { padding: 60px 20px; }

  /* Form: single column on mobile */
  .seoseo-lead-form { grid-template-columns: 1fr !important; }

  /* Sidebar: hide TOC + sidebar CTA on mobile (content first) */
  .sidebar { display: none; }

  /* Section padding: tighter on mobile */
  section { padding: 48px 20px; }

  /* Article headings: scroll-margin for fixed nav */
  .article-body h2, .article-body h3 { scroll-margin-top: 72px; }
}
