/* ============================================================
   KarmaLife Blog — Main Stylesheet
   Brand: #61CC4A (green) on white. Inter font.
   ============================================================ */

:root {
  --brand:        #61CC4A;
  --brand-dark:   #4aaa35;
  --brand-light:  #e8f9e3;
  --text:         #1a1a1a;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-subtle:    #f9fafb;
  --nav-h:        64px;
  --container:    1180px;
  --sidebar-w:    280px;
  --gap:          2rem;
  --radius:       4px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size:    1rem;
  --line-height:  1.7;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Utility ────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cs-container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ── Off-canvas ─────────────────────────────────────────────── */
.offcanvas {
  position: fixed; inset: 0 auto 0 0;
  width: 300px; max-width: 90vw;
  background: var(--bg);
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.offcanvas.is-open { transform: translateX(0); }
.offcanvas-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.offcanvas-header img { height: 32px; width: auto; }
.toggle-offcanvas {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: var(--text);
}
.toggle-offcanvas:hover { color: var(--brand); }
.offcanvas-nav { padding: 1.5rem 1.25rem; flex: 1; }
.offcanvas-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.offcanvas-nav a {
  display: block; padding: 0.5rem 0;
  font-size: 0.9375rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.offcanvas-nav a:hover { color: var(--brand); }

.site-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.site-overlay.is-active { opacity: 1; pointer-events: auto; }

/* ── Header / Navbar ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.navbar-wrap { height: var(--nav-h); display: flex; align-items: center; }
.navbar-container { width: 100%; }
.navbar-content {
  display: flex; align-items: center;
  height: var(--nav-h);
  gap: 1rem;
}
.navbar-col { display: flex; align-items: center; }
.navbar-col-left { flex: 0 0 auto; gap: 0.75rem; }
.navbar-col-center { flex: 1; justify-content: center; }
.navbar-col-right { flex: 0 0 auto; gap: 0.5rem; }

.navbar-brand a { display: flex; align-items: center; }
.navbar-brand img { height: 36px; width: auto; }

.navbar-nav-primary ul {
  display: flex; align-items: center; gap: 0.25rem;
}
.navbar-nav-primary a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.navbar-nav-primary a:hover { color: var(--brand); background: var(--brand-light); }

.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color 0.15s;
}
.search-toggle:hover { color: var(--brand); }

/* Search overlay */
.site-search-wrap {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 200;
}
.site-search-wrap.is-open { display: block; }
.site-search { padding: 1rem 0; }
.search-form-wrap { display: flex; align-items: center; gap: 0.75rem; }
.cs-input-group { display: flex; flex: 1; }
.cs-input-group input[type="search"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font: inherit; font-size: 0.9375rem;
  outline: none;
}
.cs-input-group input[type="search"]:focus { border-color: var(--brand); }
.search-submit {
  padding: 0.625rem 1.25rem;
  background: var(--brand); color: #fff;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.search-submit:hover { background: var(--brand-dark); }
.search-close { color: var(--text-muted); padding: 0.5rem; }
.search-close:hover { color: var(--brand); }

/* ── Hero ────────────────────────────────────────────────────── */
.section-hero { position: relative; overflow: hidden; background: #111; }
.cs-hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 480px;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
}
.hero-overlay img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.35;
}
.cs-hero-container { grid-column: 1 / -1; display: contents; }
.cs-hero { display: contents; }

.hero-full {
  position: relative; z-index: 1;
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.88) 100%);
}
.hero-category a {
  display: inline-block;
  background: var(--brand); color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero-title a { color: inherit; text-decoration: none; }
.hero-full .hero-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 0.75rem;
}
.hero-full .post-meta {
  display: flex; gap: 1rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}
.hero-excerpt {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 1.5rem;
}
.entry-more .button {
  display: inline-block;
  background: var(--brand); color: #fff;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.15s;
}
.entry-more .button:hover { background: var(--brand-dark); transform: translateY(-1px); }

/* Hero numbered list */
.hero-list {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.78);
  padding: 1.5rem 1.25rem;
  display: flex; flex-direction: column;
  gap: 0;
}
.hero-list article {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.hero-list article:last-child { border-bottom: none; }

/* Grid: number on left spans both rows, title + date stack on right */
.cs-post-data {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: start;
}
.hero-number {
  grid-column: 1; grid-row: 1 / 3;
  width: 28px; height: 28px;
  background: var(--brand); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  margin-top: 2px;
}
.hero-list .hero-title {
  grid-column: 2; grid-row: 1;
  font-size: 0.875rem; font-weight: 600;
  line-height: 1.4;
}
.hero-list .hero-title a { color: rgba(255,255,255,0.9); }
.hero-list .hero-title a:hover { color: var(--brand); }
.hero-list .post-meta {
  grid-column: 2; grid-row: 2;
  font-size: 0.75rem; color: rgba(255,255,255,0.5); display: flex; gap: 0.5rem;
}

/* ── Site Layout (content + sidebar) ────────────────────────── */
.site-content { padding: 2.5rem 0; }
.site-content .cs-container {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}

/* ── Archive / Post List ─────────────────────────────────────── */
.archive-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--brand); }
.archive-header .title-block {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.archive-header .page-title {
  font-size: 1.75rem; font-weight: 700;
  line-height: 1.2;
}

.archive-list { display: flex; flex-direction: column; gap: 0; }

/* Post card */
.entry-preview {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.entry-preview:first-child { padding-top: 0; }
.entry-preview:last-child { border-bottom: none; }

/* Grid lives on .post-outer so both .post-inner columns fill the full card width */
.post-outer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  width: 100%;
}
.entry-preview:not(.has-post-thumbnail) .post-outer { grid-template-columns: 1fr; }

/* Thumbnail */
.post-inner-thumbnail { align-self: start; }
.cs-overlay { position: relative; overflow: hidden; border-radius: var(--radius); }
.cs-overlay-ratio.cs-ratio-landscape::before {
  content: ''; display: block; padding-top: 58.6%; /* 380:220 */
}
.cs-overlay-background {
  position: absolute; inset: 0;
}
.cs-overlay-background img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.4s ease;
}
.cs-overlay:hover .cs-overlay-background img { transform: scale(1.04); }
.cs-overlay-content {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s;
  opacity: 0;
}
.cs-overlay:hover .cs-overlay-content {
  background: rgba(0,0,0,0.3);
  opacity: 1;
}
.cs-overlay-content .read-more {
  color: #fff; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.cs-overlay-content .post-meta { color: rgba(255,255,255,0.8); font-size: 0.75rem; display: flex; gap: 0.5rem; align-items: center; }
.cs-overlay-link { position: absolute; inset: 0; z-index: 1; }

/* Post content area */
.post-inner-content { display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.meta-category { margin-bottom: 0.25rem; }
.meta-category-link {
  display: inline-block;
  background: var(--brand-light); color: var(--brand-dark);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.meta-category-link:hover { background: var(--brand); color: #fff; }
.entry-title {
  font-size: 1.0625rem; font-weight: 700;
  line-height: 1.35;
}
.entry-title a { color: var(--text); transition: color 0.15s; }
.entry-title a:hover { color: var(--brand); }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--text-muted);
  align-items: center;
}
.post-meta li { display: flex; align-items: center; gap: 0.25rem; }
.entry-excerpt {
  font-size: 0.875rem; color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.navigation.pagination { margin-top: 2.5rem; }
.nav-links {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { border-color: var(--brand); color: var(--brand); }
.nav-links span.current {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
}
.nav-links .prev, .nav-links .next { font-weight: 600; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.sidebar-inner { display: flex; flex-direction: column; gap: 2rem; }

.widget { }
.title-block-wrap { margin-bottom: 0.875rem; }
.title-block {
  display: inline-block;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}
.title-widget { color: var(--text); }

.widget_categories ul { display: flex; flex-direction: column; gap: 0.125rem; }
.widget_categories li a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.widget_categories li:last-child a { border-bottom: none; }
.widget_categories .icon {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}
.widget_categories li a:hover { color: var(--brand); }
.cat-count { color: var(--text-light); font-size: 0.75rem; margin-left: auto; }

/* Recent posts widget */
.pk-widget-posts { display: flex; flex-direction: column; gap: 0.875rem; }
.pk-widget-post { display: flex; gap: 0.75rem; align-items: flex-start; }
.pk-post-thumbnail { flex: 0 0 72px; }
.pk-post-thumbnail img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius); }
.pk-post-data { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.pk-post-title { font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.pk-post-title a { color: var(--text); }
.pk-post-title a:hover { color: var(--brand); }
.pk-post-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag-cloud-link {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.tag-cloud-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* ── Single Post ─────────────────────────────────────────────── */
.single-post .cs-container {
  grid-template-columns: 1fr var(--sidebar-w);
}
.post-media-featured { margin-bottom: 2rem; }
.post-media-featured img {
  width: 100%; max-height: 480px;
  object-fit: cover; border-radius: var(--radius);
}
.post-header { margin-bottom: 2rem; }
.post-header .meta-category { margin-bottom: 0.75rem; }
.post-header .entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 1rem;
}
.entry-meta {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.entry-meta li { display: flex; align-items: center; gap: 0.375rem; }
.meta-author .by { color: var(--text-light); }
.author-name { font-weight: 600; color: var(--text); }

/* Post content typography */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.entry-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.875rem; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.75rem; }
.entry-content h4 { font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 0.625rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.375rem; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--brand-dark); }
.entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.0625rem; font-style: italic; color: var(--text-muted);
}
.entry-content strong { font-weight: 700; }
.entry-content em { font-style: italic; }
.entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.entry-content th, .entry-content td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th { background: var(--bg-subtle); font-weight: 700; }
.entry-content pre {
  background: #1a1a1a; color: #e5e7eb;
  padding: 1.25rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1.5rem 0;
  font-size: 0.875rem; line-height: 1.6;
}
.entry-content code {
  background: var(--bg-subtle);
  padding: 0.125rem 0.375rem;
  border-radius: 2px;
  font-size: 0.875em;
}
.entry-content pre code { background: none; padding: 0; }

/* WP block list that comes from exports */
.entry-content .wp-block-list { list-style: disc; margin-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content .wp-block-list li { margin-bottom: 0.5rem; }

/* Post footer */
.entry-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.title-tags { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.tag-link {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: all 0.15s;
}
.tag-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* Share buttons */
.post-share {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
}
.post-share .title-block { font-size: 0.75rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4375rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600;
  transition: opacity 0.15s, transform 0.15s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-linkedin { background: #0077B5; color: #fff; }
.share-twitter  { background: #000; color: #fff; }
.share-whatsapp { background: #25D366; color: #fff; }

/* Post navigation */
.post-prev-next {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.post-prev-next .nav-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.post-prev-next .nav-previous,
.post-prev-next .nav-next { display: flex; flex-direction: column; gap: 0.25rem; }
.post-prev-next .nav-next { text-align: right; }
.post-prev-next .nav-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.post-prev-next .link-arrow {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: color 0.15s;
  line-height: 1.4;
}
.post-prev-next .link-arrow:hover { color: var(--brand); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #111; color: rgba(255,255,255,0.8);
  padding: 3rem 0 0;
  margin-top: 4rem;
}
.footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 36px; width: auto; filter: brightness(10); margin-bottom: 1rem; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 280px; }
.footer-widget-title {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-links a:hover { color: var(--brand); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-social a:hover { color: var(--brand); }
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}
.footer-copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-copyright a { color: rgba(255,255,255,0.5); }
.footer-copyright a:hover { color: var(--brand); }

/* Scroll to top */
.scroll-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 40px; height: 40px;
  background: var(--brand); color: #fff;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.scroll-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-to-top:hover { background: var(--brand-dark); }

/* ── 404 ─────────────────────────────────────────────────────── */
.error-404-wrap {
  text-align: center; padding: 6rem 1rem;
}
.error-404-wrap .page-title {
  font-size: 6rem; font-weight: 800; color: var(--brand);
  line-height: 1;
}
.error-404-wrap .page-subtitle {
  font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 1.5rem;
}
.error-404-wrap .page-content a { color: var(--brand); text-decoration: underline; }
.no-posts { color: var(--text-muted); padding: 2rem 0; font-size: 0.9375rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 240px; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .navbar-nav-primary { display: none; }

  .site-content .cs-container,
  .single-post .cs-container {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }

  .cs-hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-list { display: none; }
  .hero-full { padding: 2rem 1.25rem 2.5rem; }
  .hero-full .hero-title { font-size: 1.5rem; }

  .entry-preview { padding: 1.25rem 0; }
  .post-outer { grid-template-columns: 140px 1fr; gap: 0.875rem; }
  .entry-preview:not(.has-post-thumbnail) .post-outer { grid-template-columns: 1fr; }

  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .post-prev-next .nav-links { grid-template-columns: 1fr; }
  .post-prev-next .nav-next { text-align: left; }
}

@media (max-width: 480px) {
  .cs-container { padding: 0 1rem; }
  .post-outer { grid-template-columns: 1fr; }
  .post-inner-thumbnail { max-width: 100%; }
  .footer-widgets { grid-template-columns: 1fr; }
  .share-buttons { flex-direction: column; }
}

/* FAQ accordion (details/summary) */
.entry-content details {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.entry-content details summary {
  padding: 0.875rem 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9fafb;
  user-select: none;
}
.entry-content details summary::-webkit-details-marker { display: none; }
.entry-content details summary::before {
  content: "+";
  font-size: 1.1rem;
  color: #61CC4A;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.entry-content details[open] summary::before { content: "−"; }
.entry-content details[open] summary { background: #f0fdf4; }
.entry-content details > p {
  margin: 0;
  padding: 0.875rem 1rem;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  line-height: 1.7;
}

/* WordPress table wrappers — strip visual chrome, keep content */
.wp-block-columns, .wp-block-column, .wp-block-group,
.wp-block-group__inner-container { display: contents; }
.wp-block-table { overflow-x: auto; display: block; margin: 1.5rem 0; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.entry-content table td, .entry-content table th {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  vertical-align: top;
}
.entry-content table tr:nth-child(even) td { background: #f9fafb; }
