/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --dark: #0F172A;
  --slate: #1E293B;
  --text: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --bg: #F1F5F9;
  --white: #FFFFFF;
  --green: #10B981;
  --toolbar-bg: #F8FAFC;
  --editor-border: #CBD5E1;
  --radius: 10px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }

/* ── NAV ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0; height: 56px; gap: 4px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; margin-right: 16px; flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: white; font-weight: 800;
}
.logo-text { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.1; }
.logo-text small { display: block; font-size: 9px; font-weight: 500; color: var(--muted); letter-spacing: .3px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a, .nav-dropdown > a {
  font-size: 13.5px; font-weight: 500; color: var(--text);
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  transition: background .15s, color .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a:hover, .nav-dropdown > a:hover { background: var(--bg); color: var(--blue); }
.nav-links > a.active { color: var(--blue); font-weight: 600; }
.arrow { font-size: 9px; opacity: .5; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.dropdown-menu {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.1);
  min-width: 200px; padding: 6px; z-index: 300;
  transition: opacity .15s ease, visibility .15s ease;
}
/* Invisible bridge that fills the gap so hover isn't lost mid-movement */
.dropdown-menu::before {
  content: ''; position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  font-size: 13.5px; color: var(--text); text-decoration: none;
  transition: background .1s, color .1s;
}
.dropdown-menu a:hover { background: var(--blue-light); color: var(--blue); }
.nav-dropdown:hover .dropdown-menu {
  visibility: visible; opacity: 1; pointer-events: auto;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 0;
}
.page-header-inner { max-width: 1400px; margin: 0 auto; }
.page-header h1 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.page-header p { font-size: 13px; color: var(--muted); padding-bottom: 12px; }

/* ── EDITOR WRAPPER ── */
.editor-wrapper { max-width: 1400px; margin: 0 auto; padding: 16px 20px; }

/* Toggle row */
.toggle-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
  padding: 8px 14px; flex-wrap: wrap;
}
.toggle-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.toggle { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 22px;
  background: #CBD5E1; transition: .2s; cursor: pointer;
}
.toggle-slider::before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .2s;
}
.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-sep { width: 1px; height: 22px; background: var(--border); margin: 0 6px; flex-shrink: 0; }
.toggle-icon { font-size: 14px; color: var(--muted); cursor: pointer; padding: 3px 6px; border-radius: 4px; }
.toggle-icon:hover { background: var(--bg); color: var(--blue); }

/* Editor panels */
.editor-panels {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--editor-border);
  background: var(--white); min-height: 580px;
}
.editor-panel { display: flex; flex-direction: column; }
.editor-panel + .editor-panel { border-left: 2px solid var(--border); }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--slate); color: white;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.panel-header-actions { display: flex; gap: 8px; }
.ph-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); font-size: 12px; font-weight: 500;
  padding: 5px 12px; border-radius: 5px; cursor: pointer; transition: background .15s;
}
.ph-btn:hover { background: rgba(255,255,255,.2); color: white; }

/* Visual toolbar */
.visual-toolbar {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--toolbar-bg);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.tb-btn {
  width: 36px; height: 36px; border: none; background: none;
  border-radius: 5px; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; transition: background .1s;
}
.tb-btn:hover { background: var(--border); }
.tb-sep { width: 1px; height: 24px; background: var(--border); margin: 0 5px; }
.tb-btn-wide { padding: 0 10px; width: auto; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Visual editor body */
.visual-body {
  flex: 1; padding: 16px 18px; font-size: 14px; color: var(--text);
  line-height: 1.75; min-height: 480px; outline: none; border: none;
  overflow-y: auto;
}
.visual-body:empty::before {
  content: attr(data-placeholder); color: #CBD5E1;
}
.word-count-bar {
  padding: 5px 14px; background: var(--toolbar-bg);
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted);
  display: flex; gap: 16px; flex-shrink: 0;
}

/* Code editor body */
.code-body {
  flex: 1; background: #1E293B;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12.5px; line-height: 1.7;
  overflow: auto; min-height: 300px; display: flex;
}
.line-nums {
  padding: 12px 12px; text-align: right; user-select: none;
  color: #475569; flex-shrink: 0; min-width: 36px;
}
.line-nums div { height: calc(12.5px * 1.7); }
.code-content { flex: 1; padding: 12px 14px 12px 0; }
.code-content div { height: calc(12.5px * 1.7); white-space: pre; }
.code-toolbar {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; background: #0F172A;
  border-bottom: 1px solid #0F172A; flex-shrink: 0;
}
.code-toolbar .tb-btn { color: #94A3B8; }
.code-toolbar .tb-btn:hover { background: rgba(255,255,255,.08); color: white; }
.code-toolbar .tb-sep { background: #334155; }
.code-length { font-size: 12px; color: rgba(255,255,255,.35); }

/* Syntax colours */
.c-tag { color: #60A5FA; }
.c-attr { color: #FCA5A5; }
.c-val { color: #86EFAC; }
.c-text { color: #E2E8F0; }
.c-comment { color: #64748B; font-style: italic; }

/* Editor bottom bar */
.editor-bottom {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--toolbar-bg);
  border: 1px solid var(--editor-border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
}
.doc-select {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 12px; font-size: 13px; color: var(--muted);
  background: white; max-width: 220px;
}
.eb-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.eb-save { background: var(--blue); color: white; }
.eb-save:hover { background: var(--blue-dark); }
.eb-secondary { background: var(--toolbar-bg); color: var(--text); border: 1px solid var(--border); }
.eb-secondary:hover { background: var(--bg); }
.eb-cleanup { background: var(--green); color: white; }
.eb-cleanup:hover { background: #059669; }
.eb-privacy-note { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ── TOOL CONTENT AREA (below editor) ── */
.tool-content { max-width: 1400px; margin: 0 auto; padding: 48px 20px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.content-block { margin-bottom: 36px; }
.content-block h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.content-block p { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 10px; }
.content-block ul { padding-left: 20px; }
.content-block ul li { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.faq-q {
  width: 100%;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  user-select: none;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  transition: background .2s, transform .25s;
}
.faq-item.open .faq-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid #F1F5F9;
  margin-top: -1px;
}
.faq-a p { margin: 12px 0 0; }
.faq-a p:first-child { margin-top: 12px; }
.faq-a code { background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 4px; padding: 1px 6px; font-size: 12.5px; font-family: monospace; color: #0F172A; }
.faq-a a { color: var(--blue); }
.faq-a pre { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 8px; padding: 12px 14px; font-size: 12px; overflow-x: auto; margin-top: 10px; }
.faq-item.open .faq-a { display: block; }

/* ── SECTION STYLES ── */
.section { padding: 52px 20px; }
.section-white { background: white; }
.container { max-width: 1400px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; display: block; }
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--dark); letter-spacing: -.4px; margin-bottom: 8px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; max-width: 520px; }

/* ── RELATED TOOLS SECTION ── */
.related-tools-inner {
  max-width: 900px;
  margin: 0 auto;
}
.related-tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* ── TOOL CARDS ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tool-card {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent, var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.tool-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-icon { font-size: 26px; }
.tool-card h3 { font-size: 14.5px; font-weight: 700; color: var(--dark); }
.tool-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.tool-go { font-size: 11.5px; color: var(--blue); font-weight: 600; }
.tool-hot { position: absolute; top: 12px; right: 12px; background: #FEF9C3; color: #92400E; font-size: 9px; font-weight: 700; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }

/* ── CONVERT ROWS ── */
.convert-row { display: grid; grid-template-columns: 100px 1fr; gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: white; }
.convert-from-cell { background: var(--slate); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; gap: 4px; }
.fmt-badge { background: var(--blue); color: white; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px; letter-spacing: .5px; }
.fmt-label { font-size: 10px; color: #94A3B8; letter-spacing: .5px; }
.convert-links-cell { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.cv-link { display: flex; align-items: center; gap: 5px; text-decoration: none; color: var(--text); border: 1px solid var(--border); border-radius: 7px; padding: 6px 12px; font-size: 13px; font-weight: 500; transition: all .15s; }
.cv-link:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.cv-arrow { color: var(--blue); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feat { display: flex; gap: 14px; }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-light); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feat h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.feat p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.blog-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-thumb { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.blog-body { padding: 16px; }
.blog-tag { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.blog-card h3 { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 6px; }
.blog-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.blog-meta { font-size: 11px; color: #94A3B8; margin-top: 10px; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); padding: 48px 20px 28px; }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand p { font-size: 13px; color: #475569; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: white; letter-spacing: .8px; margin-bottom: 14px; text-transform: uppercase; }
.footer-col a { display: block; color: #475569; font-size: 13px; text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: #94A3B8; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #334155; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #334155; text-decoration: none; }
.footer-links a:hover { color: #64748B; }

/* ── SIMPLE PAGE LAYOUT (about, contact, privacy) ── */
.simple-page { max-width: 800px; margin: 0 auto; padding: 52px 20px; }
.simple-page h1 { font-size: 32px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.simple-page h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 32px 0 10px; }
.simple-page p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.simple-page ul { padding-left: 22px; margin-bottom: 14px; }
.simple-page li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }
.simple-page a { color: var(--blue); }

/* ── TOOL HERO ── */
.tool-hero { background: linear-gradient(135deg, #F0F7FF 0%, #EEF2FF 100%); padding: 44px 20px 36px; border-bottom: 1px solid var(--border); }
.tool-hero .container { max-width: 1400px; }
.tool-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--dark); letter-spacing: -.5px; margin: 6px 0 10px; }
.tool-subtitle { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 640px; }

/* ── SECTION BACKGROUNDS ── */
.section-alt { background: var(--bg); }

/* ── BUTTONS ── */
.btn-tool { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--dark); cursor: pointer; white-space: nowrap; transition: all .15s; }
.btn-tool:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.btn-tool.active { background: var(--blue); border-color: var(--blue); color: white; }
.btn-primary { background: var(--blue); border: none; border-radius: 8px; padding: 10px 22px; font-size: 14px; font-weight: 700; color: white; cursor: pointer; transition: background .15s; }
.btn-primary:hover { background: #2563eb; }

/* ── PROSE SECTIONS (LLM content) ── */
.prose-section { max-width: 860px; }
.prose-section h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 14px; letter-spacing: -.3px; }
.prose-section h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 26px 0 8px; }
.prose-section p { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.prose-section ul { padding-left: 22px; margin-bottom: 14px; }
.prose-section li { font-size: 14.5px; color: var(--text); line-height: 1.75; margin-bottom: 7px; }
.prose-section a { color: var(--blue); }
.prose-section code { background: #F1F5F9; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13px; font-family: monospace; color: #0F172A; }

/* ── BREADCRUMBS ── */
.breadcrumb-nav { background: #F8FAFC; border-bottom: 1px solid var(--border); padding: 7px 0; }
.breadcrumb { list-style: none; display: flex; align-items: center; flex-wrap: wrap; font-size: 12.5px; gap: 0; }
.breadcrumb li { display: flex; align-items: center; color: var(--muted); }
.breadcrumb li a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb li a:hover { color: var(--blue); }
.breadcrumb li [aria-current="page"] { color: var(--dark); font-weight: 500; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sep { margin: 0 7px; color: #CBD5E1; font-size: 13px; line-height: 1; }

/* ── BLOG POST ── */
.post-breadcrumb { display: none; } /* replaced by global breadcrumb-nav */
.blog-post-wrap { padding: 32px 0 48px; }
.blog-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.blog-post-main { min-width: 0; }
.blog-sidebar-col { position: sticky; top: 80px; }
.post-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.post-breadcrumb a { color: var(--blue); text-decoration: none; }
.post-header { margin-bottom: 28px; }
.post-header h1 { font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1.3; margin: 10px 0 12px; }
.post-meta-bar { display: flex; gap: 20px; font-size: 13px; color: var(--muted); }
.post-body { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-body h2 { font-size: 20px; font-weight: 700; color: var(--dark); margin: 32px 0 14px; }
.post-body h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 20px; }
.post-body li { margin-bottom: 7px; }
.post-body a { color: var(--blue); font-weight: 500; }
.post-body pre { background: #1E293B; color: #E2E8F0; border-radius: 10px; padding: 16px 18px; font-size: 12.5px; line-height: 1.7; overflow-x: auto; margin: 16px 0 20px; }
.post-body pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }
.post-body code { background: #F1F5F9; border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 13px; font-family: monospace; color: #0F172A; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-nav a { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .editor-panels { grid-template-columns: 1fr; }
  .editor-panel + .editor-panel { border-left: none; border-top: 2px solid var(--border); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar-col { position: static; }
}
@media (max-width: 600px) {
  .features-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .post-header h1 { font-size: 22px; }
  .blog-layout { grid-template-columns: 1fr; }
}

/* ── CMS CONTENT (WordPress headless output) ── */
.cms-content { max-width: 860px; }
.cms-content h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 14px; letter-spacing: -.3px; }
.cms-content h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 26px 0 8px; }
.cms-content p { font-size: 14.5px; color: var(--text); line-height: 1.8; margin-bottom: 14px; }
.cms-content ul, .cms-content ol { padding-left: 22px; margin-bottom: 14px; }
.cms-content li { font-size: 14.5px; color: var(--text); line-height: 1.75; margin-bottom: 7px; }
.cms-content a { color: var(--blue); }
.cms-content code { background: #F1F5F9; border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: 13px; font-family: 'Courier New', monospace; }
.cms-content pre { background: #1E293B; color: #E2E8F0; border-radius: 8px; padding: 16px 20px; overflow-x: auto; margin-bottom: 18px; }
.cms-content pre code { background: none; border: none; padding: 0; color: inherit; }
.cms-content blockquote { border-left: 4px solid var(--blue); padding-left: 16px; margin: 0 0 16px; color: var(--muted); font-style: italic; }
.cms-content strong { color: var(--dark); }
.cms-content figure { margin: 0 0 18px; }
.cms-content figure img { max-width: 100%; border-radius: 8px; }
.cms-content figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }
.cms-content .wp-block-heading { /* WP auto-class */ }
/* Hide WP paragraph class noise */
.cms-content p.has-text-align-left,
.cms-content p.has-text-align-right { text-align: inherit; }
