/*
Theme Name:        Kamyar Shah Theme
Theme URI:         https://kamyarshah.com
Description:       Standalone WordPress theme for kamyarshah.com. Charcoal, hunter green, cream. Lora + Inter. Self-contained — no parent theme required, no PHP edits required to switch templates. Selectable page templates: Default, Service 9-Zone, Infographic, PPC V2 Blank Canvas, PPC v1 Calendly, Author/About, Contact, Blog Index, Infographics Index.
Author:            Kamyar Shah
Author URI:        https://kamyarshah.com
Version:           1.1.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       kamyarshah
Tags:              custom-colors, custom-menu, featured-images, threaded-comments, full-width-template, blog
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
*/
/* ============================================================
   KS DESIGN SYSTEM — Charcoal + Hunter Green + Cream
   Mirrors ks-eleventy/dist/css/style.v3.css exactly
   ============================================================ */

:root {
  --charcoal: #1C1C1C;
  --charcoal-light: #2A2A2A;
  --cream: #FAF8F5;
  --warm-white: #FFFFFF;
  --green: #1B4332;
  --green-light: #2D6A4F;
  --green-muted: #40916C;
  --green-pale: rgba(27,67,50,0.06);
  --gold: #B8860B;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --text-light: #888;
  --border: #E5E0D8;
  --border-light: #F0ECE4;
}

/* ---- RESET GP DEFAULTS ---- */
* { box-sizing: border-box; }

body {
  font-family: 'Lora', Georgia, serif !important;
  color: var(--text) !important;
  background: var(--cream) !important;
  line-height: 1.75 !important;
  font-size: 17px !important;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header,
.main-navigation,
#masthead {
  background: var(--charcoal) !important;
  border-bottom: 3px solid var(--green) !important;
  padding: 0 2rem !important;
}

.site-header .inside-header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 !important;
}

/* Site title / logo */
.site-title a,
.site-title a:visited {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  color: #fff !important;
  text-decoration: none !important;
}

.site-description {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  color: #B0ACA5 !important;
}

/* Nav links */
.main-navigation .menu-item a,
.main-navigation .nav-link {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: #B0ACA5 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.main-navigation .menu-item a:hover,
.main-navigation .current-menu-item > a {
  color: #fff !important;
}

/* CTA nav item */
.main-navigation .nav-cta a,
.main-navigation .menu-item.nav-cta a {
  background: var(--green) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

/* ============================================================
   LAYOUT — kill GP's sidebar on all pages
   ============================================================ */
.site-content,
#content {
  background: var(--cream) !important;
}

/* Full-width content area — no sidebar */
.content-area,
#primary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}

/* Kill the sidebar everywhere */
.widget-area,
#secondary,
.sidebar,
aside.sidebar {
  display: none !important;
}

/* GP layout containers */
.site-content .inside-article,
.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem;
}

.container,
.grid-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.entry-header {
  max-width: 780px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.entry-title,
h1.entry-title {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 2rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--charcoal) !important;
  margin-bottom: 1.2rem !important;
}

/* Article meta (date, category) */
.entry-meta {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 1rem;
}

.entry-meta a {
  color: var(--green) !important;
  text-decoration: none !important;
}

/* Featured image */
.post-image,
.featured-image,
.post-thumbnail img,
.wp-post-image {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin: 1.5rem 0 !important;
  max-width: 780px;
  display: block;
}

/* ============================================================
   ARTICLE BODY TYPOGRAPHY
   ============================================================ */
.entry-content {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1rem !important;
  line-height: 1.85 !important;
  color: var(--text) !important;
}

.entry-content p {
  margin-bottom: 1.3rem !important;
  font-size: 1rem !important;
  line-height: 1.85 !important;
}

.entry-content h2 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  margin: 2.5rem 0 1rem !important;
  color: var(--charcoal) !important;
  line-height: 1.3 !important;
}

.entry-content h3 {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 0.8rem !important;
  color: var(--charcoal) !important;
}

.entry-content h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 1.5rem 0 0.6rem !important;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.3rem 1.5rem !important;
}

.entry-content li {
  margin-bottom: 0.5rem !important;
  line-height: 1.75 !important;
}

.entry-content strong { color: var(--text) !important; font-weight: 700 !important; }
.entry-content em { font-style: italic !important; }

.entry-content a {
  color: var(--green) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.entry-content a:hover { color: var(--green-light) !important; }

.entry-content blockquote {
  border-left: 3px solid var(--green) !important;
  margin: 2rem 0 !important;
  padding: 1.2rem 1.5rem !important;
  background: var(--green-pale) !important;
  border-radius: 0 4px 4px 0 !important;
  font-style: italic !important;
  color: var(--text-muted) !important;
}

/* ============================================================
   HIDE JUNK — author bio box, social share, post nav, tags
   ============================================================ */

/* WP Post Author plugin */
.wp-post-author,
.wp-post-author-box,
[class*="author-box"],
[class*="author_box"],
.author-section,
#author-section {
  display: none !important;
}

/* Sassy Social Share */
.sassy-social-share,
.sassy_social_share,
[class*="sassy-social"],
[class*="sassy_social"] {
  display: none !important;
}

/* Revive Social */
.revive-social,
[class*="revive-social"],
[class*="revivesocial"],
.rop_content,
[class*="rop_"] {
  display: none !important;
}

/* Any generic social share floaters */
.social-share,
.share-buttons,
.post-share,
[class*="social-share"],
[class*="share-bar"],
[class*="sharing"] {
  display: none !important;
}

/* GP's built-in author box */
.author-box,
.generate-author-box {
  display: none !important;
}

/* Post navigation (prev/next) — keep or hide as desired */
.post-navigation {
  display: none !important;
}

/* Tags / categories at bottom of post */
.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer {
  display: none !important;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb,
.breadcrumbs {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  max-width: 780px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}
.breadcrumb a,
.breadcrumbs a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
}
.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--green) !important;
}

/* ============================================================
   TOC (Table of Contents)
   ============================================================ */
.toc-wrapper,
.ez-toc-container,
[class*="toc"] {
  max-width: 780px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.ez-toc-container {
  background: var(--warm-white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 1.2rem 1.5rem !important;
}

/* ============================================================
   BOTTOM CTA (from imported content — keep it)
   ============================================================ */
.bottom-cta {
  background: var(--charcoal) !important;
  padding: 5rem 2rem !important;
  text-align: center !important;
  max-width: none !important;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  contain: none !important;
}
.bottom-cta h2 { color: #fff !important; font-size: 2rem !important; margin-bottom: 1rem !important; }
.bottom-cta p { color: #B0ACA5 !important; max-width: 600px !important; margin: 0 auto 2.5rem !important; font-size: 1.05rem !important; line-height: 1.8 !important; }

/* CTA button */
.btn-primary,
.bottom-cta a,
.cta-button {
  display: inline-block !important;
  background: var(--green) !important;
  color: #fff !important;
  padding: 1rem 2.5rem !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s, transform 0.15s !important;
}
.btn-primary:hover,
.bottom-cta a:hover {
  background: var(--green-light) !important;
  transform: translateY(-1px) !important;
  color: #fff !important;
}

/* ============================================================
   AUTHOR BIO (from imported content — the KS version inside article)
   ============================================================ */
.author-bio {
  max-width: 780px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.author-bio-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.author-bio-inner img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-bio-text h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.4rem !important;
}
.author-bio-text p {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   DIRECT ANSWER / KEY TAKEAWAY boxes (from imported HTML)
   ============================================================ */
/* FIX 2026-04-25: removed callout styling here — canonical visual lives on .direct-answer-inner (style-v6.css). Outer is wrapper only. */
.direct-answer {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.direct-answer h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  margin-bottom: 0.8rem !important;
}
.direct-answer p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

.key-takeaway {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
}
.key-takeaway h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--green) !important;
  font-weight: 700 !important;
  margin-bottom: 0.8rem !important;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section,
.faq-list {
  max-width: 780px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 0.8rem !important;
}
.faq-a {
  color: var(--text-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
#colophon {
  background: #111 !important;
  padding: 3rem 2rem !important;
  color: #888 !important;
}
.site-footer .inside-footer,
.footer-widgets,
.footer-bar {
  max-width: 1100px !important;
  margin: 0 auto !important;
}
.site-footer a,
.site-footer a:visited {
  color: #888 !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.82rem !important;
}
.site-footer a:hover { color: var(--green-muted) !important; }
.site-footer p { font-family: 'Inter', sans-serif !important; font-size: 0.75rem !important; color: #555 !important; }

/* ============================================================
   HEADINGS (global)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif !important;
  color: var(--charcoal) !important;
}

/* ============================================================
   SERVICE PAGES — wider container
   ============================================================ */
.page-template-default .entry-content,
.page .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Page hero (from imported service page HTML) */
.page-hero {
  background: var(--charcoal) !important;
  padding: 5rem 2rem 4rem !important;
}
.page-hero .container { max-width: 780px !important; }
.page-hero h1 { font-size: 2.4rem !important; font-weight: 700 !important; color: #fff !important; line-height: 1.25 !important; margin-bottom: 1.2rem !important; }
.page-hero p { color: #B0ACA5 !important; font-size: 1.1rem !important; line-height: 1.8 !important; }
.page-hero .overline {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--green-muted) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

/* ============================================================
   CARD GRIDS (service pages)
   ============================================================ */
.card-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-color: var(--green); }
.card h3 { font-size: 1.15rem !important; margin-bottom: 0.8rem !important; font-weight: 600 !important; }
.card p { color: var(--text-muted) !important; font-size: 0.95rem !important; line-height: 1.7 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .entry-content,
  .entry-header {
    padding: 0 1rem !important;
  }
  .entry-title { font-size: 1.5rem !important; }
  .card-grid-3 { grid-template-columns: 1fr !important; }
  .card-grid-2 { grid-template-columns: 1fr !important; }
  .author-bio-inner { flex-direction: column; }
  .site-header .inside-header { height: auto; padding: 1rem 0 !important; flex-wrap: wrap; }
}

/* ============================================================
   OVERRIDE ANY DIVI / OLD PLUGIN REMNANTS
   ============================================================ */
#main-content,
.et_pb_section,
.et_pb_row,
.et_pb_column,
[class*="et_pb_"] {
  /* neutralize any Divi leftover inline styles */
  float: none !important;
  width: auto !important;
}

/* Aggressive sidebar kill */
#sidebar,
.sidebar-widget-area,
.sidebar-container,
.generate-sidebar-wrap {
  display: none !important;
}

/* Kill old floating share buttons */
.addtoany_share_save_container,
[class*="addtoany"],
.jetpack-sharing-buttons,
[class*="sharedaddy"],
[class*="jp-relatedposts"],
.wpp-list {
  display: none !important;
}



/* ============================================
   KS MIGRATION OVERRIDES — appended by Claude
   ============================================ */

/* Hero h1 — must be white. GP's h1,h2,h3 rule overrides. */
.hero .hero-inner h1 { color: #ffffff !important; }
.hero .hero-inner h1 em { color: #40916C !important; font-style: normal !important; }
.hero .hero-label { color: #40916C !important; }
.hero .hero-inner p { color: #B0ACA5 !important; }
.hero-sub { color: #777 !important; }

/* Page hero (service pages) */
.page-hero .page-hero-inner h1 { color: #ffffff !important; }
.page-hero .page-hero-inner p { color: #B0ACA5 !important; }

/* Article header h1 on blog posts */
.article-header h1 { color: var(--text, #1A1A1A) !important; }

/* Entity bar strong text */
.entity-bar strong { color: #40916C !important; }
.entity-bar p { color: #B0ACA5 !important; }

/* Nav logo — prevent wrapping */
.site-branding .site-title a { white-space: nowrap !important; }

/* Section headings in content */
.section h2, .services-grid h2, .card h3 { color: var(--text, #1A1A1A); }

/* Ensure body background is cream */
body { background-color: #FAF8F5 !important; }


/* ============================================
   HERO COLOR FINAL OVERRIDES — must be last
   ============================================ */
.hero h1 { color: #ffffff !important; }
.hero .hero-inner h1 { color: #ffffff !important; }
.hero h1 em { color: #40916C !important; font-style: normal !important; }
.hero-label { color: #40916C !important; }
.hero p, .hero .hero-inner p { color: #B0ACA5 !important; }
.hero-sub { color: #777 !important; }
.page-hero h1 { color: #ffffff !important; }
.page-hero p { color: #B0ACA5 !important; }
.entity-bar strong { color: #40916C !important; }
.article-header h1 { color: #1A1A1A !important; }


/* ============================================
   CONTENT SECTION COLOR FIXES
   ============================================ */

/* Stats bar — white bg, dark numbers */
.stats-bar { background: #ffffff; }
.stats-bar .stat-number { color: #1B4332 !important; }
.stats-bar .stat-label { color: #555 !important; }

/* Entity bar — dark bg, light text */
.entity-bar { background: #1C1C1C; }
.entity-bar p { color: #B0ACA5 !important; }
.entity-bar strong { color: #40916C !important; }

/* Bottom CTA — dark bg, light text */
.bottom-cta { background: #1C1C1C; }
.bottom-cta h2 { color: #ffffff !important; }
.bottom-cta p { color: #B0ACA5 !important; }
.bottom-cta .btn-primary { background: #1B4332; color: #ffffff !important; }

/* Hero sub text */
.hero-sub { color: #B0ACA5 !important; }

/* Entry content / page wrapper — remove GP's default padding that creates blank space */
.entry-content { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.page-hero + .entry-content { padding-top: 0 !important; }

/* Footer */
footer.site-footer, .site-footer { background: #1C1C1C; color: #B0ACA5 !important; }
.site-footer a { color: #B0ACA5 !important; }


/* ============================================
   BLOG ARCHIVE — Card Grid Layout
   Matches local .blog-grid / .blog-card style
   ============================================ */

/* Blog index header */
.blog-index-header,
.archive .page-header { 
  text-align: center; 
  padding: 3rem 1rem 2rem; 
  max-width: 800px; 
  margin: 0 auto; 
}
.archive .page-header h1,
.archive .page-title { 
  font-family: 'Lora', Georgia, serif !important; 
  color: var(--charcoal) !important; 
  font-size: 2.5rem; 
}

/* Archive container — grid layout */
.archive #primary,
.blog #primary { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.archive .content-area,
.blog .content-area { max-width: 1200px; margin: 0 auto; }

/* The posts container */
.archive main,
.blog main { padding: 2rem 0; }

/* Grid wrapper around articles */
.archive .inside-article,
.blog .inside-article { padding: 0; }

/* Transform article loop into card grid */
.archive #main > article,
.blog #main > article {
  display: block;
  background: #ffffff;
  border: 1px solid #E8E4DC;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

/* Make the archive loop a 3-column grid */
.archive #main,
.blog #main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* But pagination and nav-links span full width */
.archive #main .navigation,
.blog #main .navigation,
.archive #main .page-nav,
.blog #main .page-nav { grid-column: 1 / -1; }

/* Card title */
.archive .entry-title,
.blog .entry-title { 
  font-family: 'Lora', Georgia, serif !important; 
  font-size: 1.1rem !important; 
  line-height: 1.4 !important; 
  color: var(--charcoal) !important; 
  margin: 0.75rem 0 0.5rem !important;
}

.archive .entry-title a,
.blog .entry-title a { 
  color: var(--charcoal) !important; 
  text-decoration: none !important; 
}

.archive .entry-title a:hover,
.blog .entry-title a:hover { color: var(--green) !important; }

/* Card meta */
.archive .entry-meta,
.blog .entry-meta { 
  font-size: 0.8rem; 
  color: #888; 
  margin-bottom: 0.5rem; 
}

/* Card summary/excerpt */
.archive .entry-summary p,
.blog .entry-summary p { 
  font-size: 0.9rem; 
  color: #555; 
  line-height: 1.5; 
  margin: 0; 
}

/* Remove GP default featured image on archive */
.archive .post-image,
.blog .post-image { display: none !important; }

/* Category badge */
.archive .entry-categories a,
.blog .entry-categories a {
  display: inline-block;
  background: #E8F5E9;
  color: #1B4332;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-decoration: none;
}

/* Pagination */
.archive .pagination,
.blog .pagination { 
  grid-column: 1 / -1; 
  text-align: center; 
  padding: 2rem 0; 
}

/* Responsive */
@media (max-width: 900px) {
  .archive #main, .blog #main { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .archive #main, .blog #main { grid-template-columns: 1fr; }
}


/* ============================================================
   FIX 2026-04-25: hub page resource lists
   .prose ul/ol/li/a were unstyled — defaulted to browser bullets + blue underlined links.
   Branded list styling for resource hubs.
   ============================================================ */

.prose ul,
.prose ol {
  max-width: 780px;
  margin: 1.5rem auto 2rem;
  padding-left: 0;
  list-style: none;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  line-height: 1.7;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-light);
}

.prose ul li:last-child,
.prose ol li:last-child {
  border-bottom: 0;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 1px;
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: prose-counter;
}
.prose ol li {
  counter-increment: prose-counter;
}
.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}

.prose a,
.prose ul li a,
.prose ol li a {
  color: var(--green) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.prose a:hover,
.prose ul li a:hover,
.prose ol li a:hover {
  color: var(--green-light) !important;
  border-bottom-color: var(--green);
}

/* Nested lists tighter */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
  margin: 0.4rem 0 0.4rem 0;
}

.prose ul ul li,
.prose ol ol li,
.prose ul ol li,
.prose ol ul li {
  border-bottom: 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  font-size: 0.98rem;
}


/* FIX 2026-04-26 v3: scope override to FAQ pattern only.
   .sh wrapper centers the section heading + CTA, but post_content also
   nests FAQ items (h3 question + p answer) inside the same .sh, which
   causes the FAQ to inherit text-align:center wrongly.
   Target ONLY h3 questions and their immediate-sibling p answers.
   CTA paragraphs (after h2) and other content remain centered. */
.sh > h3,
.sh > h3 + p {
  text-align: left !important;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.sh > h3 {
  margin-top: 2rem;
}


/* FIX 2026-04-26: .bottom-cta has dark charcoal background but nested h2/p inherit
   page default text color (charcoal) → invisible on dark band. Force white text. */
.bottom-cta h2 {
  color: #ffffff !important;
}
.bottom-cta p {
  color: rgba(255,255,255,0.85) !important;
}
.bottom-cta a:not(.btn-primary) {
  color: #B8860B !important; /* gold accent for plain anchors inside bottom-cta */
}
.bottom-cta a.btn-primary,
.bottom-cta > a {
  color: #ffffff !important;
}


/* FIX 2026-04-26 v3: parent-context-aware .bottom-cta margins.
   .bottom-cta has TWO use-contexts on this site:
   (1) Inside .sh on service pages — nested in section.section-alt with 80px section
       padding-bottom + 32px .sh margin-bottom (112px total) below it.
       Need -7rem (-112px) margin-bottom to absorb that and sit flush with footer.
   (2) Direct child of <article> / post_content on blog posts — no parent padding to
       absorb. Negative margin would cause overlap with footer.
   Universal margin-top is fine for both contexts (breathing room from preceding text). */

.bottom-cta {
  margin-top: 3rem !important;
}

.sh > .bottom-cta {
  margin-bottom: -7rem !important;
}

/* FIX 2026-04-26 v4: FAQ h3 questions on blog posts (outside .sh) need same
   breathing-room as service-page FAQ. */
.article-body h3,
article > h3,
.entry-content > h3 {
  margin-top: 2rem;
}
