/* ============================================================
   MHL HEALTH THEME — Verdant Flow Design System
   Primary: #006948 | Surface: #f0fdf4 | Fonts: Manrope + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --primary:        #006948;
  --primary-hover:  #005137;
  --primary-light:  #00855d;
  --surface:        #f0fdf4;
  --surface-low:    #eaf7ee;
  --surface-med:    #e4f1e8;
  --surface-high:   #d9e6dd;
  --white:          #ffffff;
  --text:           #131e19;
  --text-muted:     #3d4a42;
  --text-light:     #6d7a72;
  --chip-bg:        #c0edd3;
  --chip-text:      #446d58;
  --radius:         8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    999px;
  --shadow-sm:      0 4px 20px rgba(0,33,20,0.06);
  --shadow-md:      0 8px 40px rgba(0,33,20,0.08);
  --shadow-lg:      0 20px 60px rgba(0,33,20,0.10);
  --font-body:      'Inter', -apple-system, sans-serif;
  --font-head:      'Manrope', -apple-system, sans-serif;
  --max-width:      1200px;
  --content-width:  760px;
  --gap:            clamp(1rem, 3vw, 2rem);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--primary); color: white;
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 600; font-family: var(--font-body);
}
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 20px rgba(0,33,20,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

/* Logo */
.site-logo a { display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 50px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
}
.primary-nav ul li a {
  display: block;
  padding: 0.45em 0.75em;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  color: var(--primary);
  background: var(--surface-low);
}
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  border-bottom: 2px solid var(--primary);
  padding-bottom: calc(0.45em - 2px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* Header AdSense leaderboard area — won't interfere with nav */
.header-ad-wrap {
  background: var(--surface);
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid var(--surface-high);
}
.header-ad-wrap ins { display: inline-block !important; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; top: 74px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--surface-med);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .primary-nav.open { max-height: 500px; }
  .primary-nav ul { flex-direction: column; padding: 1rem 1.5rem; gap: 0; }
  .primary-nav ul li a { font-size: 1rem; padding: 0.75em 0.5em; border-radius: 0; border-bottom: 1px solid var(--surface-med); }
  .primary-nav ul li:last-child a { border-bottom: none; }
}

/* ============================================================
   HERO SECTION (front-page)
   ============================================================ */
.mhl-hero {
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
  padding: 80px 0 70px;
  overflow: hidden;
  position: relative;
}
.mhl-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,133,93,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.mhl-hero::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,105,72,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-images { display: none; }
  .mhl-hero { padding: 60px 0 50px; }
}

.hero-content { display: flex; flex-direction: column; gap: 28px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--chip-bg);
  border-radius: var(--radius-full); width: fit-content;
}
.hero-badge svg { flex-shrink: 0; }
.hero-badge span { font-size: 0.8rem; font-weight: 600; color: var(--chip-text); letter-spacing: 0.05em; text-transform: uppercase; }

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-headline em { font-style: normal; color: var(--primary); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white !important; font-weight: 700; font-family: var(--font-head);
  font-size: 0.95rem; border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,105,72,0.35);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,105,72,0.4); opacity: 0.95; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 30px;
  background: var(--white); color: var(--primary) !important;
  font-weight: 600; font-family: var(--font-head); font-size: 0.95rem;
  border-radius: var(--radius); border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--surface-low); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding-top: 24px; border-top: 1px solid var(--surface-high);
}
.hero-stat { display: flex; align-items: center; gap: 12px; }
.hero-stat-icon {
  width: 44px; height: 44px; background: var(--chip-bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-stat-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; }

/* Hero image mosaic */
.hero-images { position: relative; height: 560px; }
.hero-img-wrap { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hi-main { left:50%; top:50%; width:260px; height:300px; z-index:4; transform:translate(-50%,-50%); animation: float 6s ease-in-out infinite; }
.hi-tl   { left:8%;  top:8%;  width:170px; height:200px; z-index:2; animation: floatd 7s  ease-in-out infinite; animation-delay:-1s; }
.hi-tr   { right:10%; top:4%; width:155px; height:185px; z-index:2; animation: floatd 8s  ease-in-out infinite; animation-delay:-2s; }
.hi-br   { right:6%;  bottom:6%; width:185px; height:215px; z-index:5; animation: floatd 7.5s ease-in-out infinite; animation-delay:-3s; }
.hi-bl   { left:5%;  bottom:10%; width:170px; height:200px; z-index:5; animation: floatd 6.5s ease-in-out infinite; animation-delay:-4s; }
@keyframes float  { 0%,100%{transform:translate(-50%,-50%) translateY(0)} 50%{transform:translate(-50%,-50%) translateY(-18px)} }
@keyframes floatd { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.section-categories { background: var(--white); padding: 64px 0; }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: var(--text); text-align: center;
  letter-spacing: -0.02em; margin-bottom: 40px;
}
.section-title span { color: var(--primary); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.cat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  color: var(--text) !important;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .cat-icon { font-size: 2.2rem; margin-bottom: 12px; line-height: 1; }
.cat-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-card .cat-count { font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   BLOG LAYOUT — Sidebar + Content
   ============================================================ */
.site-body { padding: 56px 0 72px; }

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ── Post Cards ── */
.posts-grid { display: flex; flex-direction: column; gap: 32px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb a { display: block; height: 100%; }

.post-card-body {
  padding: 28px 28px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.post-cat {
  display: inline-block; padding: 3px 12px;
  background: var(--chip-bg); color: var(--chip-text) !important;
  font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full);
  font-family: var(--font-head); letter-spacing: 0.03em; text-transform: uppercase;
}
.post-date { font-size: 0.8rem; color: var(--text-light); }

.post-card h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.post-card h2 a { color: var(--text) !important; }
.post-card h2 a:hover { color: var(--primary) !important; }
.post-card .post-excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--primary) !important; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.read-more:hover { gap: 8px; }
.read-more::after { content: '→'; }

@media (max-width: 768px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { aspect-ratio: 16/9; }
  .post-card-body { padding: 20px; }
}

/* ── No thumbnail fallback ── */
.post-card.no-thumb { grid-template-columns: 1fr; }
.post-card.no-thumb .post-card-body { padding: 28px; }

/* ── Pagination ── */
.pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  background: var(--surface); color: var(--text-muted) !important;
  transition: background 0.2s, color 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--primary); color: white !important; }
.pagination .page-numbers.prev,
.pagination .page-numbers.next { width: auto; padding: 0 16px; }

/* ── In-Feed AdSense ── */
.ad-in-feed {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
}
.ad-in-feed::before { content: 'Advertisement'; display: block; margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--surface-high); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { font-size: 0.9rem; color: var(--text-muted) !important; }
.widget ul li a:hover { color: var(--primary) !important; }

/* Sidebar AdSense */
.widget.widget-ad { background: transparent; padding: 0; text-align: center; }
.widget.widget-ad ins { display: inline-block !important; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-wrap { max-width: var(--content-width); }

.single-header { margin-bottom: 36px; }
.single-header .post-meta { margin-bottom: 16px; }
.single-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.single-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.single-featured-img img { width: 100%; max-height: 480px; object-fit: cover; }

.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { font-size: 1.6rem; margin: 2em 0 0.7em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.8em 0 0.6em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 1.6em 0;
  font-style: italic; color: var(--text-muted);
}
.entry-content img { border-radius: var(--radius); margin: 1.2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.9rem; }
.entry-content th { background: var(--surface-med); padding: 10px 14px; text-align: left; font-family: var(--font-head); font-weight: 700; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--surface-high); }

/* AdSense after intro */
.ad-after-intro { text-align: center; margin: 2em 0; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.ad-after-intro::before { content: 'Advertisement'; display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }

/* Author box */
.author-box {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 28px; margin: 2.5em 0;
}
.author-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-info p { font-size: 0.875rem; color: var(--text-muted); }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 3em 0; }
.post-nav a {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-nav a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-nav .nav-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); font-weight: 600; }
.post-nav .nav-title { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--text) !important; line-height: 1.4; }
.post-nav .nav-next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

/* ============================================================
   ARCHIVE / CATEGORY PAGE
   ============================================================ */
.archive-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 56px 0 48px;
  text-align: center;
  color: white;
  margin-bottom: 0;
}
.archive-header h1 { color: white; font-size: clamp(1.6rem, 4vw, 2.8rem); }
.archive-header p { color: rgba(255,255,255,0.85); margin-top: 12px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #0d1a14;
  color: rgba(255,255,255,0.75);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand img { max-height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 800;
  color: white; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6) !important; transition: color 0.15s; }
.footer-col ul li a:hover { color: #68dba9 !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.55) !important; }
.footer-bottom a:hover { color: #68dba9 !important; }

/* ============================================================
   PAGE TEMPLATES
   ============================================================ */
.page-header { padding: 56px 0 0; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 8px; }
.page-content { padding: 40px 0 72px; }
.page-content.narrow { max-width: var(--content-width); }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: 96px 0; }
.error-404 .error-code { font-size: 8rem; font-weight: 800; color: var(--surface-high); line-height: 1; }
.error-404 h1 { font-size: 2rem; margin-bottom: 16px; }
.error-404 p { color: var(--text-muted); max-width: 400px; margin: 0 auto 32px; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 16px; border-radius: var(--radius);
  border: 2px solid var(--surface-high); background: var(--white);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s;
}
.search-form input[type="search"]:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,105,72,0.12); }
.search-form button { padding: 10px 18px; background: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-family: var(--font-head); transition: background 0.2s; }
.search-form button:hover { background: var(--primary-hover); }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 3em; }
.comments-area h2 { font-size: 1.3rem; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--surface-high); }
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-family: var(--font-head); }
.comment-meta { font-size: 0.8rem; color: var(--text-light); }
.comment-content p { font-size: 0.95rem; color: var(--text-muted); margin-top: 6px; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius);
  border: 2px solid var(--surface-high); background: var(--white);
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.2s; margin-top: 6px;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,105,72,0.12); }
.comment-form textarea { height: 140px; resize: vertical; }
.comment-form .submit { margin-top: 8px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.aligncenter { text-align: center; }
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 6px; }

/* Sidebar widget fallback (no registered widgets) */
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sidebar-widget .widget-title {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.recent-posts-list { list-style: none; }
.recent-posts-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--surface-high); }
.recent-posts-list li:last-child { border-bottom: none; }
.rp-thumb { flex-shrink: 0; }
.rp-thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.rp-info a { font-size: 0.875rem; font-weight: 600; color: var(--text) !important; line-height: 1.4; display: block; }
.rp-info a:hover { color: var(--primary) !important; }
.rp-info .post-date { font-size: 0.75rem; color: var(--text-light); display: block; margin-top: 4px; }
.sidebar-cats { list-style: none; }
.sidebar-cats li { padding: 6px 0; border-bottom: 1px solid var(--surface-high); }
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li a { font-size: 0.9rem; color: var(--text-muted) !important; display: flex; justify-content: space-between; }
.sidebar-cats li a:hover { color: var(--primary) !important; }
.ad-sidebar { background: transparent; padding: 0; text-align: center; }

/* 404 centered layout */
.error-404-wrap { display: flex; justify-content: center; align-items: center; padding: 80px 0; }
.error-404-inner { text-align: center; max-width: 480px; }
.error-404-number { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--surface-med); line-height: 1; font-family: var(--font-head); }
.error-404-inner h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.error-404-inner p { color: var(--text-muted); margin-bottom: 28px; }
.error-404-inner .search-form { margin: 0 auto; max-width: 360px; }

/* No results */
.no-results { text-align: center; padding: 40px; }
.no-results p { color: var(--text-muted); margin-bottom: 24px; }
.no-results .search-form { max-width: 360px; margin: 0 auto; }

/* Edit link */
.edit-link { margin-top: 2em; }
.edit-link a { font-size: 0.8rem; color: var(--text-light) !important; text-decoration: underline; }

/* AdSense — never let auto ads break into nav */
#site-header ins.adsbygoogle,
#site-header .adsbygoogle { display: none !important; }
