:root {
  --primary:       #1a56db;
  --primary-dark:  #1440b0;
  --primary-light: #ebf0ff;
  --accent:        #f97316;
  --success:       #16a34a;
  --danger:        #dc2626;
  --text:          #111827;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg:            #ffffff;
  --bg-soft:       #f9fafb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 10px 32px rgba(0,0,0,.10);
  --radius:        12px;
  --radius-sm:     8px;
  /* System font shown instantly; upgraded to web font via JS after load */
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll / trackpad drift */
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-suspenders — kills any overflowing child */
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .83rem !important;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none !important; }
.hamburger { display: none; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============ BREADCRUMB (inner pages) ============ */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 9px 20px;
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumb-inner { max-width: 1140px; margin: 0 auto; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Trust signals are now inside .hero-trust — see hero section above */

/* ============ HERO ============ */
.hero {
  background: linear-gradient(160deg, #eef2ff 0%, #fdf4ff 50%, #fff7ed 100%);
  padding: 44px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--primary); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Preset label */
.hero-presets-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

/* Preset buttons */
.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.quick-btn {
  background: #fff;
  border: 2px solid #d1daf7;
  color: #374151;
  font-weight: 600;
  font-size: .88rem;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
  min-width: 76px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f5f8ff;
  transform: translateY(-1px);
}
.quick-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,86,219,.3);
  transform: translateY(-1px);
}

/* Trust row — sits inside hero */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  align-items: center;
}
.hero-trust span {
  font-size: .76rem;
  font-weight: 600;
  color: #52606d;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ TOOL SECTION ============ */
.tool-section {
  padding: 24px 20px 52px;
  background: var(--bg);
}
.tool-inner { max-width: 720px; margin: 0 auto; }

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
}
.tool-header {
  background: #f8faff;
  border-bottom: 1px solid var(--border);
  padding: 14px 22px;
}
.tool-header h2 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}
.tool-body { padding: 24px 22px; }

/* ============ UPLOAD ZONE ============ */
.upload-zone {
  border: 2px dashed #c7d4f7;
  border-radius: var(--radius-sm);
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .22s;
  background: #f8faff;
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 2.2rem; margin-bottom: 10px; }
.upload-zone p { color: var(--text-muted); font-size: .93rem; }
.upload-zone strong { color: var(--primary); }
.upload-zone small { display: block; margin-top: 6px; font-size: .79rem; color: #9ca3af; }

/* ============ TARGET SIZE CONTROL ============ */
.target-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.target-control label { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.target-input-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.target-input-wrap input[type="number"] {
  width: 120px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color .2s;
  -moz-appearance: textfield;
}
.target-input-wrap input::-webkit-outer-spin-button,
.target-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.target-input-wrap input:focus { outline: none; border-color: var(--primary); }
.unit-badge {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============ PROGRESS BAR ============ */
.progress-wrap { display: none; margin: 16px 0; }
.progress-wrap.active { display: block; }
.progress-bar-bg {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6b8ef9);
  border-radius: 10px;
  width: 0%;
  transition: width .3s ease;
}
.progress-text { font-size: .82rem; color: var(--text-muted); margin-top: 6px; text-align: center; }

/* ============ CONVERT BUTTON ============ */
.btn-convert {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
  margin-top: 16px;
}
.btn-convert:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(26,86,219,.32);
}
.btn-convert:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============ RESULT PANEL ============ */
.result-panel { display: none; margin-top: 20px; }
.result-panel.visible { display: block; }

.result-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  text-align: center;
  background: #f3f4f6;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-preview img { max-height: 260px; object-fit: contain; display: block; }

.result-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stat-box {
  flex: 1;
  min-width: 110px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  text-align: center;
}
.stat-box .label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-box .value { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.stat-box .value.success { color: var(--success); }
.stat-box .value.warn    { color: var(--accent); }

.btn-download {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
  text-align: center;
}
.btn-download:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22,163,74,.3);
}
.btn-reset {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 10px;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}
.btn-reset:hover { background: var(--bg-soft); }

/* ============ KB ↔ MB CONVERTER WIDGET ============ */
.converter-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.converter-widget h3 {
  font-family: var(--font-display);
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.converter-grid { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.converter-grid input {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-family: var(--font);
}
.converter-grid input:focus { outline: none; border-color: var(--primary); }
.converter-arrow { font-size: 1.1rem; color: var(--text-muted); }
.converter-result {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  background: var(--primary-light);
  border: 2px solid #c7d4f7;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary);
  font-size: .93rem;
}

/* ============ POPULAR TOOLS GRID ============ */
.popular-section { background: var(--bg-soft); padding: 56px 20px; }
.popular-inner { max-width: 1140px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 7px;
}
.section-header p { color: var(--text-muted); font-size: .93rem; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.tool-link-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-sm);
}
.tool-link-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26,86,219,.13);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.tool-link-card .card-icon { font-size: 1.7rem; margin-bottom: 9px; }
.tool-link-card .card-title { font-weight: 700; font-size: .95rem; margin-bottom: 4px; font-family: var(--font-display); }
.tool-link-card .card-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.4; }
.card-arrow { display: inline-block; margin-top: 9px; color: var(--primary); font-size: .8rem; font-weight: 600; }

/* ============ USE CASE SECTION ============ */
.use-case-section {
  background: var(--bg);
  padding: 56px 20px;
  border-top: 1px solid var(--border);
}
.use-case-inner { max-width: 1140px; margin: 0 auto; }
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.use-case-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: box-shadow .2s;
}
.use-case-card:hover { box-shadow: var(--shadow); }
.uc-icon { font-size: 1.8rem; margin-bottom: 9px; }
.use-case-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-display);
  color: var(--text);
}
.use-case-card p { font-size: .86rem; color: #374151; line-height: 1.65; }

/* ============ SEO CONTENT ============ */
.content-section { padding: 56px 20px; background: var(--bg); }
.content-inner { max-width: 820px; margin: 0 auto; }
.content-inner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}
.content-inner h2:first-child { margin-top: 0; }
.content-inner p { color: #374151; line-height: 1.75; margin-bottom: 13px; font-size: .96rem; }
.content-inner ul { margin: 0 0 13px 20px; }
.content-inner li { color: #374151; font-size: .96rem; line-height: 1.75; }
.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: .93rem;
  color: var(--primary-dark);
}

/* ============ FAQ ============ */
.faq-section { background: var(--bg-soft); padding: 56px 20px; }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  font-size: .95rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
  color: var(--text);
  transition: background .2s;
}
.faq-question:hover { background: var(--bg-soft); }
.faq-question .faq-arrow { font-size: .95rem; color: var(--primary); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 320px; }
.faq-answer-inner { padding: 0 18px 15px; color: #374151; font-size: .93rem; line-height: 1.7; }

/* ============ RELATED / INTERNAL LINKS ============ */
.related-links { background: var(--bg); padding: 36px 20px; border-top: 1px solid var(--border); }
.related-inner { max-width: 1140px; margin: 0 auto; }
.related-inner h3 {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.related-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.related-tag {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: .83rem;
  color: var(--primary);
  text-decoration: none;
  transition: all .2s;
  font-weight: 500;
}
.related-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }

/* ============ FOOTER ============ */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 44px 20px 22px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 9px; }
.footer-logo span { color: #f97316; }
.footer-about { font-size: .86rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: .88rem; margin-bottom: 12px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #9ca3af; text-decoration: none; font-size: .86rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .81rem; }

/* ============ PAGE HERO (inner template pages) ============ */
.page-hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff7ed 100%);
  padding: 40px 20px 32px;
}
.page-hero-inner { max-width: 1140px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 9px;
}
.page-hero h1 em { font-style: normal; color: var(--primary); }
.page-hero p { color: var(--text-muted); font-size: .97rem; max-width: 600px; }

/* ============ UTILITIES ============ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.badge {
  display: inline-block;
  font-size: .73rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
}
.badge.green  { background: #dcfce7; color: var(--success); }
.badge.orange { background: #fff7ed; color: var(--accent); }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #111827;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform .35s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show    { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* ============ STICKY DOWNLOAD (mobile, post-conversion) ============ */
.sticky-download {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--success);
  color: #fff;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  z-index: 200;
  cursor: pointer;
  display: none;
  border: none;
  font-family: var(--font);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}

/* ============ RESPONSIVE — 768px ============ */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 9px 0; font-size: .97rem; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border: none; }
  .hamburger { display: block; }
  .header-inner { position: relative; }

  .hero { padding: 32px 20px 28px; }

  .target-control { flex-direction: column; align-items: flex-start; }
  .tool-body { padding: 20px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .use-case-grid { grid-template-columns: 1fr; }
  .use-case-section { padding: 40px 20px; }

  .sticky-download { display: block; }
  .result-panel .btn-download { margin-bottom: 70px; }
}

@media (max-width: 480px) {
  .quick-btns { gap: 7px; }
  .quick-btn { padding: 10px 14px; font-size: .87rem; min-width: 76px; }
  .trust-inner { gap: 5px 12px; }
  .trust-item { font-size: .76rem; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ RESPONSIVE — 360px (smallest phones) ============ */
@media (max-width: 360px) {
  .quick-btn { padding: 8px 10px; font-size: .82rem; min-width: 62px; }
  .tools-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Posts & Pages — single.php / page.php
   Verified against actual HTML structure
============================================ */

/* ── Container width & padding ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── Hero band ── */
.post-hero-wrap,
.page-hero-wrap {
  background: linear-gradient(135deg, #f0f4ff 0%, #fff7ed 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 48px 32px 36px;
  text-align: center;
  margin: 0 -24px 40px;
}

/* ── Page / Post title ── */
.entry-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

/* ── Post meta (date, author, category) ── */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: .83rem;
  color: #6b7280;
  margin-top: 10px;
}
.entry-meta a { color: #1a56db; text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }

/* ── Featured image ── */
.featured-image { margin-bottom: 36px; }
.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ── Content area ── */
.entry-content {
  padding: 8px 0 48px;
}

/* Paragraphs */
.entry-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 1.4em;
}

/* Remove extra blank paragraphs WordPress sometimes adds */
.entry-content p:empty,
.entry-content p:has(br:only-child) {
  display: none;
}

/* H2 — most common in WP block editor */
.entry-content h2,
.entry-content .wp-block-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 2em 0 .7em;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  line-height: 1.3;
}

/* H3 */
.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 1.8em 0 .6em;
}

/* H4–H6 */
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 1.5em 0 .5em;
}

/* First heading — no top margin needed */
.entry-content > h2:first-child,
.entry-content > h3:first-child {
  margin-top: 0;
}

/* Links */
.entry-content a {
  color: #1a56db;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover { color: #1440b0; }

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em 1.5em;
  padding: 0;
}
.entry-content li {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: .4em;
}

/* Blockquote */
.entry-content blockquote {
  border-left: 4px solid #1a56db;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
  margin: 1.8em 0;
  padding: 16px 22px;
  font-style: italic;
  color: #374151;
}
.entry-content blockquote p { margin: 0; }

/* Images */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1.6em auto;
}
.entry-content figcaption,
.entry-content .wp-caption-text {
  text-align: center;
  font-size: .82rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Inline code */
.entry-content code {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .87rem;
  font-family: 'Courier New', monospace;
  color: #111827;
}

/* Code block */
.entry-content pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: .87rem;
  line-height: 1.7;
}
.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .93rem;
}
.entry-content th {
  background: #f3f4f6;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.entry-content td {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}
.entry-content tr:nth-child(even) td { background: #f9fafb; }

/* Horizontal rule */
.entry-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2.5em 0;
}

/* ── Hide WordPress "Suggested text:" labels ── */
/* These appear on the default Privacy Policy page */
.privacy-policy-tutorial {
  display: none !important;
}

/* Hide the paragraph that only contains &nbsp; */
.entry-content p:-moz-only-whitespace { display: none; }
.entry-content p:blank { display: none; }

/* ── Tags ── */
.post-tags:empty { display: none; }
.post-tags {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
  font-size: .85rem;
  color: #6b7280;
}
.post-tags a {
  display: inline-block;
  background: #f0f4ff;
  color: #1a56db;
  border: 1px solid #c7d4f7;
  border-radius: 20px;
  padding: 3px 12px;
  margin: 3px 3px 3px 0;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s;
}
.post-tags a:hover { background: #1a56db; color: #fff; }

/* ── Prev/Next navigation ── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 48px;
}
.post-navigation:has(div:empty + div:empty) { display: none; }
.post-navigation a {
  font-size: .9rem;
  font-weight: 600;
  color: #1a56db;
  text-decoration: none;
}
.post-navigation a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .post-hero-wrap,
  .page-hero-wrap {
    padding: 32px 20px 24px;
    margin: 0 -16px 28px;
  }
  .entry-title { font-size: 1.45rem; }
  .entry-content p,
  .entry-content li { font-size: .97rem; }
  .entry-content h2,
  .entry-content .wp-block-heading { font-size: 1.2rem; }
  .entry-content pre { padding: 14px 16px; }
  .post-navigation { flex-direction: column; gap: 10px; }
}