/*
Theme Name: Genealogist Help
Theme URI: https://genealogisthelp.com/
Author: Genealogist Help
Author URI: https://genealogisthelp.com/
Description: A calm, practical genealogy-software support theme. Design language matches a clean light-green support site: centered serif headings, green navigation bar, hero with support-request form, card grids, creative category pages with hero, and a styled table of contents on posts. Fully compatible with Elementor — every page template renders the_content() so admins can take over any page visually. Phone number, hero text and colors are editable in Appearance > Customize.
Version: 1.1.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: genealogist-help
Tags: custom-menu, featured-images, threaded-comments, translation-ready, blog, custom-colors, custom-logo, footer-widgets, sidebar-widgets
*/

/* ============================================================
   1. Tokens & base
   ============================================================ */
:root {
  --gh-green:        #3f9e22;
  --gh-green-dark:   #2c7a14;
  --gh-green-nav:    #3f8f1c;
  --gh-green-soft:   #e4f3d3;
  --gh-green-softer: #f1f9e7;
  --gh-yellow:       #fdfdc4;
  --gh-ink:          #203a12;
  --gh-ink-soft:     #3c4a33;
  --gh-muted:        #5f6b58;
  --gh-line:         #cfe3b8;
  --gh-card-line:    #e2e8da;
  --gh-navy:         #1a1a55;
  --gh-navy-dark:    #10103c;
  --gh-white:        #ffffff;
  --gh-radius:       14px;
  --gh-radius-lg:    22px;
  --gh-shadow:       0 10px 30px rgba(32, 58, 18, 0.08);
  --gh-serif:        "Lora", Georgia, "Times New Roman", serif;
  --gh-sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--gh-sans);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gh-ink-soft);
  background: var(--gh-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--gh-green-dark); text-decoration: none; }
a:hover { color: var(--gh-green); }

h1, h2, h3, h4 {
  font-family: var(--gh-serif);
  color: var(--gh-ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

.gh-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.gh-wrap-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* Screen reader text */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
}

/* ============================================================
   2. Buttons
   ============================================================ */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 10px;
  font-family: var(--gh-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  min-height: 52px;
  text-decoration: none;
}
.gh-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.gh-btn-primary {
  background: var(--gh-green);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(63, 158, 34, 0.32);
}
.gh-btn-primary:hover {
  background: var(--gh-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(63, 158, 34, 0.4);
}

.gh-btn-outline {
  background: transparent;
  border-color: var(--gh-ink);
  color: var(--gh-ink) !important;
}
.gh-btn-outline:hover {
  background: var(--gh-ink);
  color: #fff !important;
  transform: translateY(-2px);
}

.gh-btn-block { width: 100%; }

/* ============================================================
   3. Header
   ============================================================ */
.gh-header {
  background: var(--gh-white);
  padding: 26px 0 20px;
  text-align: center;
}
.gh-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gh-brand { text-align: left; }
.gh-logo-img { max-height: 64px; width: auto; }
.gh-logo-text {
  font-family: var(--gh-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gh-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.gh-logo-text .gh-logo-mark {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--gh-green-soft);
  border-radius: 50%;
  color: var(--gh-green-dark);
}
.gh-logo-text .gh-logo-mark svg { width: 22px; height: 22px; }
.gh-tagline {
  font-size: 11.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gh-green-dark);
  margin: 4px 0 0 50px;
  font-weight: 600;
}
.gh-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--gh-green);
  color: var(--gh-ink);
  font-weight: 700;
  font-size: 18px;
  border-radius: 10px;
  padding: 10px 22px;
  transition: all .18s ease;
}
.gh-header-phone svg { width: 18px; height: 18px; color: var(--gh-green-dark); }
.gh-header-phone:hover { background: var(--gh-green); color: #fff; }
.gh-header-phone:hover svg { color: #fff; }

/* Navigation */
.gh-nav {
  background: var(--gh-green-nav);
  box-shadow: 0 4px 14px rgba(32, 58, 18, 0.15);
  position: relative;
  z-index: 50;
}
.gh-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.gh-nav li { position: relative; }
.gh-nav a {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 20px;
  transition: background .15s ease;
}
.gh-nav a:hover,
.gh-nav .current-menu-item > a,
.gh-nav .current-menu-ancestor > a {
  background: var(--gh-green-dark);
  color: #fff;
}
.gh-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 5px solid transparent;
  border-top-color: #fff;
  transform: translateY(2px);
}
.gh-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--gh-green-dark);
  box-shadow: var(--gh-shadow);
  z-index: 60;
}
.gh-nav li:hover > ul,
.gh-nav li:focus-within > ul { display: block; }
.gh-nav ul ul a { padding: 12px 18px; font-size: 14.5px; }
.gh-nav ul ul ul { left: 100%; top: 0; }

.gh-nav-toggle {
  display: none;
  width: 100%;
  background: var(--gh-green-dark);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 14px 22px;
  text-align: left;
  cursor: pointer;
  align-items: center;
  gap: 10px;
}
.gh-nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   4. Hero (home + category)
   ============================================================ */
.gh-hero {
  background: var(--gh-green-soft);
  border-radius: var(--gh-radius-lg);
  padding: 64px 56px;
  margin: 26px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  position: relative;
  overflow: hidden;
}
.gh-hero::before {
  content: "";
  position: absolute;
  top: -80px; left: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.gh-hero > * { position: relative; }

.gh-hero-title {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  margin-bottom: 26px;
}
.gh-hero-quote {
  background: var(--gh-yellow);
  border: 2px solid var(--gh-ink);
  border-radius: var(--gh-radius);
  padding: 18px 26px;
  font-family: var(--gh-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--gh-ink);
  max-width: 520px;
  margin-bottom: 30px;
  box-shadow: 6px 6px 0 rgba(32, 58, 18, 0.08);
}
.gh-hero-sub {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--gh-sans);
  color: var(--gh-ink);
  margin-bottom: 14px;
}
.gh-hero-text {
  color: var(--gh-ink-soft);
  font-size: 17.5px;
  max-width: 520px;
  margin-bottom: 30px;
}
.gh-hero-desc { color: var(--gh-ink-soft); font-size: 17.5px; max-width: 560px; }
.gh-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Support form card */
.gh-form-card {
  background: #fff;
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  padding: 34px 34px 26px;
  border-top: 5px solid var(--gh-green);
}
.gh-form-card h2,
.gh-form-card h3 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 8px;
}
.gh-form-card .gh-form-lead {
  text-align: center;
  color: var(--gh-muted);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.gh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.gh-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--gh-ink);
  margin-bottom: 6px;
}
.gh-field-full { grid-column: 1 / -1; }
.gh-field input,
.gh-field select,
.gh-field textarea {
  width: 100%;
  border: 1.5px solid #cfd8c4;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--gh-ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gh-field textarea { min-height: 110px; resize: vertical; }
.gh-field input:focus,
.gh-field select:focus,
.gh-field textarea:focus {
  outline: none;
  border-color: var(--gh-green);
  box-shadow: 0 0 0 3px rgba(63, 158, 34, 0.15);
}
.gh-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gh-ink-soft);
  margin: 16px 0 18px;
}
.gh-consent input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--gh-green); }
.gh-form-note {
  text-align: center;
  font-size: 13px;
  color: var(--gh-muted);
  margin: 14px 0 0;
}

/* ============================================================
   5. Feature chips row
   ============================================================ */
.gh-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0 auto 56px;
}
.gh-feature {
  border: 1.5px solid var(--gh-card-line);
  border-radius: var(--gh-radius);
  padding: 26px 22px;
  text-align: center;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gh-feature:hover { transform: translateY(-4px); box-shadow: var(--gh-shadow); }
.gh-feature h3 {
  font-family: var(--gh-sans);
  font-size: 18px;
  color: var(--gh-green-dark);
  margin-bottom: 6px;
}
.gh-feature p { margin: 0; font-size: 14.5px; color: var(--gh-muted); }

/* ============================================================
   6. Sections & headings
   ============================================================ */
.gh-section { padding: 30px 0; }
.gh-section-tint { background: var(--gh-green-softer); border-radius: var(--gh-radius-lg); }

.gh-heading {
  text-align: center;
  font-size: clamp(28px, 3.2vw, 40px);
  margin-bottom: 10px;
}
.gh-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gh-green);
  margin: 16px auto 0;
}
.gh-lead {
  text-align: center;
  max-width: 980px;
  margin: 18px auto 0;
  color: var(--gh-muted);
  font-size: 17px;
}
.gh-center-cta { text-align: center; margin: 34px 0 8px; }

/* ============================================================
   7. Help-topic cards
   ============================================================ */
.gh-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.gh-card {
  background: #fff;
  border: 1.5px solid var(--gh-card-line);
  border-radius: var(--gh-radius);
  padding: 34px 28px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.gh-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--gh-green);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.gh-card:hover { transform: translateY(-5px); box-shadow: var(--gh-shadow); border-color: var(--gh-line); }
.gh-card:hover::before { transform: scaleX(1); }
.gh-card h3 { font-size: 21px; margin-bottom: 10px; }
.gh-card p { margin: 0; font-size: 15px; color: var(--gh-muted); }
.gh-card .gh-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gh-green-soft);
  border-radius: 50%;
  color: var(--gh-green-dark);
}
.gh-card .gh-card-icon svg { width: 26px; height: 26px; }

/* Two-column wide cards (editions) */
.gh-cards-2 { grid-template-columns: repeat(2, 1fr); }
.gh-card .gh-card-link { font-weight: 700; color: var(--gh-green-dark); }

/* ============================================================
   8. Process steps
   ============================================================ */
.gh-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.gh-step {
  background: var(--gh-green-softer);
  border: 1.5px solid var(--gh-line);
  border-radius: var(--gh-radius);
  padding: 30px 26px;
  text-align: center;
}
.gh-step h3 { font-family: var(--gh-sans); font-size: 17.5px; color: var(--gh-ink); }
.gh-step p { margin: 0; font-size: 14.5px; color: var(--gh-muted); }

/* ============================================================
   9. Guide cards (staggered)
   ============================================================ */
.gh-guides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
  align-items: start;
}
.gh-guide { text-align: center; }
.gh-guide:nth-child(2) { transform: translateY(34px); }
.gh-guide-tag {
  display: inline-block;
  border: 1.5px solid var(--gh-green);
  color: var(--gh-green-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 22px;
  margin-bottom: 16px;
  background: #fff;
}
.gh-guide h3 { font-size: 20px; }
.gh-guide p { font-size: 15px; color: var(--gh-muted); margin: 0; }
.gh-guide a.gh-read {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--gh-green-dark);
}
.gh-guide a.gh-read::after { content: " →"; }

/* ============================================================
   10. FAQ accordion
   ============================================================ */
.gh-faq-list { max-width: 900px; margin: 34px auto 0; }
.gh-faq-item { border-bottom: 1.5px solid var(--gh-card-line); }
.gh-faq-q {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--gh-ink);
  min-height: 56px;
}
.gh-faq-q .gh-faq-plus {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gh-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s ease;
}
.gh-faq-item.open .gh-faq-plus { transform: rotate(45deg); }
.gh-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.gh-faq-a-inner { padding: 0 44px 20px 6px; color: var(--gh-muted); font-size: 15.5px; }

/* ============================================================
   11. CTA banner
   ============================================================ */
.gh-cta {
  background: var(--gh-green-soft);
  border-radius: var(--gh-radius-lg);
  text-align: center;
  padding: 60px 40px;
  margin: 50px auto 60px;
  max-width: 1200px;
}
.gh-cta h2 { font-size: clamp(28px, 3vw, 38px); }
.gh-cta h2::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  border-radius: 2px;
  background: var(--gh-green);
  margin: 16px auto 0;
}
.gh-cta p { max-width: 760px; margin: 18px auto 30px; color: var(--gh-muted); }
.gh-cta .gh-hero-actions { justify-content: center; }

/* ============================================================
   12. Disclosure & footer
   ============================================================ */
.gh-disclosure {
  max-width: 1200px;
  margin: 0 auto 40px;
  border-top: 1.5px dashed var(--gh-line);
  border-bottom: 1.5px dashed var(--gh-line);
  padding: 22px 26px;
  font-size: 13px;
  color: var(--gh-muted);
}
.gh-disclosure strong { display: block; margin-bottom: 6px; color: var(--gh-ink-soft); }

.gh-footer { background: var(--gh-navy); color: #c9c9e8; padding: 60px 0 0; }
.gh-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
}
.gh-footer .gh-logo-text { color: #fff; font-size: 24px; }
.gh-footer .gh-logo-text .gh-logo-mark { background: rgba(255,255,255,0.1); color: #8fd07a; }
.gh-footer .gh-tagline { color: #8fd07a; margin-left: 44px; }
.gh-footer p { font-size: 14.5px; color: #b9b9dd; }
.gh-footer h3 {
  color: #fff;
  font-family: var(--gh-sans);
  font-size: 17px;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.gh-footer ul { list-style: none; margin: 0; padding: 0; }
.gh-footer ul li { margin-bottom: 10px; }
.gh-footer a { color: #b9b9dd; font-size: 14.5px; }
.gh-footer a:hover { color: #fff; text-decoration: underline; }
.gh-footer .gh-btn { margin-top: 14px; }
.gh-footer-bar {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0 0;
  font-size: 13.5px;
}
.gh-footer-bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.gh-footer-bottom {
  background: var(--gh-navy-dark);
  text-align: center;
  padding: 22px;
  font-size: 13px;
  color: #a3a3cf;
  margin-top: 18px;
}
.gh-footer-bottom p { margin: 4px 0; }

/* Floating action buttons */
.gh-float {
  position: fixed;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: transform .18s ease;
}
.gh-float:hover { transform: translateY(-3px); }
.gh-float svg { width: 17px; height: 17px; }
.gh-float-call { left: 22px; background: var(--gh-green); color: #fff !important; }
.gh-float-help { right: 22px; background: var(--gh-navy); color: #fff !important; }

/* ============================================================
   13. Category / archive pages
   ============================================================ */
.gh-cat-hero {
  background: var(--gh-green-soft);
  border-radius: var(--gh-radius-lg);
  padding: 56px;
  margin: 26px auto 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gh-cat-hero::before {
  content: "";
  position: absolute;
  right: -70px; bottom: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.gh-cat-hero > * { position: relative; }
.gh-cat-hero .gh-hero-title { font-size: clamp(32px, 3.6vw, 48px); }
.gh-cat-badge {
  display: inline-block;
  background: var(--gh-green);
  color: #fff;
  border-radius: 999px;
  padding: 7px 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.gh-cat-cta {
  background: #fff;
  border-radius: var(--gh-radius-lg);
  box-shadow: var(--gh-shadow);
  border-top: 5px solid var(--gh-green);
  padding: 34px 30px;
  text-align: center;
}
.gh-cat-cta h2 { font-size: 24px; }
.gh-cat-cta p { font-size: 14.5px; color: var(--gh-muted); margin: 0 0 20px; }
.gh-cat-cta .gh-btn { width: 100%; margin-bottom: 10px; }
.gh-cat-cta .gh-btn:last-child { margin-bottom: 0; }

.gh-breadcrumb {
  font-size: 14px;
  color: var(--gh-muted);
  margin: 18px auto 0;
}
.gh-breadcrumb a { color: var(--gh-green-dark); font-weight: 600; }

.gh-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin: 10px auto 50px;
}
.gh-post-card {
  background: #fff;
  border: 1.5px solid var(--gh-card-line);
  border-radius: var(--gh-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gh-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(32, 58, 18, 0.14);
  border-color: var(--gh-green);
}
.gh-post-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--gh-green-softer); overflow: hidden; }
.gh-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gh-post-card:hover .gh-post-thumb img { transform: scale(1.05); }
.gh-post-thumb .gh-post-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gh-green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.gh-post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.gh-post-body h2,
.gh-post-body h3 { font-size: 22px; margin-bottom: 10px; }
.gh-post-body h2 a, .gh-post-body h3 a { color: var(--gh-ink); }
.gh-post-body h2 a:hover, .gh-post-body h3 a:hover { color: var(--gh-green-dark); }
.gh-post-meta {
  font-size: 13px;
  color: var(--gh-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.gh-post-excerpt { font-size: 15px; color: var(--gh-muted); flex: 1; }
.gh-post-more {
  font-weight: 700;
  color: var(--gh-green-dark);
  margin-top: 16px;
  align-self: flex-start;
}
.gh-post-more::after { content: " »"; }

.gh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 60px;
  flex-wrap: wrap;
}
.gh-pagination .page-numbers {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gh-card-line);
  border-radius: 10px;
  font-weight: 700;
  color: var(--gh-ink);
  padding: 0 14px;
}
.gh-pagination .page-numbers.current {
  background: var(--gh-green);
  border-color: var(--gh-green);
  color: #fff;
}
.gh-pagination .page-numbers:hover:not(.current) {
  border-color: var(--gh-green);
  color: var(--gh-green-dark);
}

/* ============================================================
   14. Single post & TOC
   ============================================================ */
.gh-single { max-width: 860px; margin: 30px auto 60px; }
.gh-single-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.gh-single-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--gh-muted);
  border-bottom: 1.5px solid var(--gh-card-line);
  padding-bottom: 18px;
  margin-bottom: 26px;
}
.gh-single-meta-cat { color: var(--gh-green-dark); font-weight: 700; }
.gh-single-thumb { border-radius: var(--gh-radius-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--gh-shadow); }

/* Table of contents */
.gh-toc {
  background: var(--gh-green-softer);
  border: 1.5px solid var(--gh-line);
  border-left: 5px solid var(--gh-green);
  border-radius: var(--gh-radius);
  padding: 24px 28px;
  margin: 0 0 34px;
}
.gh-toc-title {
  font-family: var(--gh-sans);
  font-weight: 800;
  font-size: 17px;
  color: var(--gh-ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.gh-toc-title svg { width: 19px; height: 19px; color: var(--gh-green-dark); }
.gh-toc ol { margin: 0; padding-left: 22px; }
.gh-toc li { margin-bottom: 6px; font-size: 15px; }
.gh-toc a { color: var(--gh-ink-soft); }
.gh-toc a:hover { color: var(--gh-green-dark); text-decoration: underline; }

/* Compatibility styling for common TOC plugins */
.ez-toc-container,
.lwptoc,
#ez-toc-container,
.toc_container {
  background: var(--gh-green-softer) !important;
  border: 1.5px solid var(--gh-line) !important;
  border-left: 5px solid var(--gh-green) !important;
  border-radius: var(--gh-radius) !important;
  padding: 24px 28px !important;
}

.gh-content { font-size: 17px; }
.gh-content h2 {
  font-size: 28px;
  margin-top: 44px;
  padding-top: 10px;
}
.gh-content h3 { font-size: 22px; margin-top: 34px; }
.gh-content p { margin: 0 0 20px; }
.gh-content ul, .gh-content ol { margin: 0 0 22px; padding-left: 26px; }
.gh-content li { margin-bottom: 8px; }
.gh-content img { border-radius: var(--gh-radius); }
.gh-content blockquote {
  background: var(--gh-yellow);
  border: 2px solid var(--gh-ink);
  border-radius: var(--gh-radius);
  margin: 26px 0;
  padding: 20px 26px;
  font-family: var(--gh-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--gh-ink);
}
.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}
.gh-content th, .gh-content td {
  border: 1px solid var(--gh-card-line);
  padding: 10px 14px;
  text-align: left;
}
.gh-content th { background: var(--gh-green-softer); color: var(--gh-ink); }

.gh-tags { margin: 30px 0; font-size: 14.5px; }
.gh-tags a {
  display: inline-block;
  background: var(--gh-green-softer);
  border: 1px solid var(--gh-line);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 8px 8px 0;
  color: var(--gh-ink-soft);
}
.gh-tags a:hover { background: var(--gh-green); color: #fff; border-color: var(--gh-green); }

.gh-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 40px 0;
}
.gh-post-nav a {
  border: 1.5px solid var(--gh-card-line);
  border-radius: var(--gh-radius);
  padding: 20px 24px;
  color: var(--gh-ink);
  font-weight: 600;
  transition: all .18s ease;
}
.gh-post-nav a:hover { border-color: var(--gh-green); box-shadow: var(--gh-shadow); }
.gh-post-nav .gh-nav-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gh-green-dark);
  margin-bottom: 6px;
}
.gh-post-nav .next { text-align: right; }

.gh-related { margin-top: 50px; }
.gh-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }

/* ============================================================
   15. Pages (default / FAQ)
   ============================================================ */
.gh-page { max-width: 1000px; margin: 36px auto 60px; }
.gh-page-wide { max-width: 1200px; margin: 36px auto 60px; }
.gh-page-title { font-size: clamp(32px, 3.6vw, 46px); text-align: center; margin-bottom: 8px; }
.gh-page-title::after {
  content: "";
  display: block;
  width: 56px; height: 4px;
  border-radius: 2px;
  background: var(--gh-green);
  margin: 16px auto 0;
}

.gh-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin: 44px 0;
}
.gh-split img { border-radius: var(--gh-radius-lg); box-shadow: var(--gh-shadow); }

.gh-learn {
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gh-green-dark);
  display: inline-block;
  margin-top: 14px;
}

/* ============================================================
   16. Widgets / sidebar / comments / 404 / search
   ============================================================ */
.gh-sidebar .widget,
.widget.gh-widget {
  border: 1.5px solid var(--gh-card-line);
  border-radius: var(--gh-radius);
  padding: 24px;
  margin-bottom: 24px;
}
.gh-sidebar .widget-title { font-size: 19px; }
.gh-sidebar ul { list-style: none; padding: 0; margin: 0; }
.gh-sidebar ul li { padding: 8px 0; border-bottom: 1px solid var(--gh-card-line); }
.gh-sidebar ul li:last-child { border-bottom: 0; }

.gh-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.gh-comments { max-width: 860px; margin: 40px auto; }
.comment-form input:not([type=submit]),
.comment-form textarea {
  width: 100%;
  border: 1.5px solid #cfd8c4;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}
.comment-form .submit {
  background: var(--gh-green);
  border: 0;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 14px 30px;
  cursor: pointer;
}

.gh-404 { text-align: center; padding: 80px 20px; }
.gh-404 h1 { font-size: clamp(40px, 6vw, 72px); }

.wp-block-button__link {
  background: var(--gh-green);
  border-radius: 10px;
  font-weight: 700;
}
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }

/* Elementor pages render edge-to-edge */
.gh-elementor-page .gh-wrap { max-width: none; padding: 0; }
body.gh-elementor .gh-page { max-width: none; margin: 0; padding: 0; }

/* ============================================================
   17. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .gh-hero, .gh-cat-hero { grid-template-columns: 1fr; padding: 44px 34px; }
  .gh-features { grid-template-columns: repeat(2, 1fr); }
  .gh-cards, .gh-steps, .gh-guides { grid-template-columns: repeat(2, 1fr); }
  .gh-guides .gh-guide:nth-child(2) { transform: none; }
  .gh-footer-grid { grid-template-columns: 1fr 1fr; }
  .gh-related-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .gh-header-flex { flex-direction: column; text-align: center; }
  .gh-brand { text-align: center; }
  .gh-tagline { margin-left: 0; }
  .gh-nav-toggle { display: flex; }
  .gh-nav .gh-nav-menu-wrap { display: none; width: 100%; }
  .gh-nav.open .gh-nav-menu-wrap { display: block; }
  .gh-nav ul { flex-direction: column; align-items: stretch; }
  .gh-nav a { padding: 14px 22px; border-top: 1px solid rgba(255,255,255,0.15); }
  .gh-nav ul ul { position: static; box-shadow: none; }
  .gh-hero, .gh-cat-hero { padding: 34px 22px; margin: 14px 12px 30px; }
  .gh-form-card { padding: 26px 20px; }
  .gh-form-grid { grid-template-columns: 1fr; }
  .gh-features, .gh-cards, .gh-cards-2, .gh-steps, .gh-guides,
  .gh-posts-grid, .gh-related-grid, .gh-split { grid-template-columns: 1fr; }
  .gh-footer-grid { grid-template-columns: 1fr; }
  .gh-cta { padding: 44px 22px; margin: 34px 12px; }
  .gh-float { padding: 11px 16px; font-size: 13.5px; }
  .gh-float-call { left: 12px; bottom: 14px; }
  .gh-float-help { right: 12px; bottom: 14px; }
}

/* ============================================================
   14. Category landing page refinements
   ============================================================ */
.gh-category-page { padding-bottom: 46px; }
.gh-category-hero { margin-top: 22px; margin-bottom: 26px; }
.gh-category-copy { max-width: 680px; }
.gh-category-copy .gh-hero-title { margin-bottom: 20px; }
.gh-category-copy .gh-hero-quote { max-width: 590px; }
.gh-category-trust { margin: 18px 0 0; color: var(--gh-muted); font-size: 13px; }
.gh-category-features { padding-left: 0; padding-right: 0; }
.gh-category-page .gh-features {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 34px;
  align-items: stretch;
}
.gh-category-page .gh-feature { min-width: 0; height: 100%; padding: 22px 16px; }
.gh-category-page .gh-feature h3 { font-size: 17px; }
.gh-category-page .gh-feature p { line-height: 1.55; }
.gh-category-section,
.gh-category-process-wrap,
.gh-category-articles,
.gh-category-faq { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 42px 22px; }
.gh-category-intro { max-width: 850px; margin: 0 auto 30px; text-align: center; }
.gh-section-kicker { display: inline-block; color: var(--gh-green-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.gh-category-intro .gh-lead { max-width: 820px; margin-left: auto; margin-right: auto; }
.gh-category-issue-grid { margin-top: 28px; }
.gh-category-issue { position: relative; padding-top: 30px; }
.gh-issue-number { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gh-green-soft); color: var(--gh-green-dark); font-size: 13px; font-weight: 800; margin-bottom: 14px; }
.gh-category-issue h3 { font-size: 21px; }
.gh-category-issue p { margin-bottom: 0; color: var(--gh-muted); }
.gh-category-process-wrap { max-width: none; background: var(--gh-green-softer); }
.gh-category-process-wrap > * { max-width: 1156px; margin-left: auto; margin-right: auto; }
.gh-category-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gh-category-articles { padding-top: 48px; }
.gh-category-articles .gh-posts-grid { margin-top: 28px; }
.gh-category-articles .gh-posts-grid:empty { display: none; }
.gh-empty-category { text-align: center; }
.gh-category-faq { padding-bottom: 52px; }
.gh-category-faq-item { border-bottom: 1px solid var(--gh-card-line); padding: 0; }
.gh-category-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 8px; color: var(--gh-ink); font-weight: 700; font-size: 17px; }
.gh-category-faq-item summary::-webkit-details-marker { display: none; }
.gh-category-faq-item summary span { color: var(--gh-green-dark); font-size: 25px; line-height: 1; transition: transform .2s ease; }
.gh-category-faq-item[open] summary span { transform: rotate(45deg); }
.gh-category-faq-answer { padding: 0 42px 20px 8px; color: var(--gh-muted); font-size: 15.5px; }
.gh-category-bottom-cta { max-width: 1200px; margin: 0 auto 30px; }
.gh-category-disclaimer { font-size: 12.5px !important; margin: 26px auto 0 !important; }
/* Honeypot stays in the form for spam detection but is visually removed from layout. */
.gh-honeypot { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.gh-form-success { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #edf8e8; color: #246b18; font-size: 14px; text-align: center; }

@media (max-width: 1024px) {
  .gh-category-page .gh-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-category-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .gh-category-hero { grid-template-columns: 1fr; gap: 26px; padding: 34px 24px; }
  .gh-category-copy .gh-hero-title { font-size: clamp(30px, 8vw, 42px); }
  .gh-category-page .gh-features { grid-template-columns: 1fr; gap: 12px; }
  .gh-category-page .gh-feature { padding: 18px 16px; }
  .gh-category-section,
  .gh-category-process-wrap,
  .gh-category-articles,
  .gh-category-faq { padding: 32px 20px; }
  .gh-category-steps { grid-template-columns: 1fr; }
  .gh-category-issue-grid { grid-template-columns: 1fr; }
  .gh-category-faq-item summary { font-size: 15.5px; }
  .gh-category-bottom-cta { margin-left: 20px; margin-right: 20px; }
}

.gh-form-error { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff1ed; color: #9a3412; font-size: 14px; text-align: center; }
