/* ============================================================
   Care & Stay — Main Stylesheet
   careandstay.com
   ============================================================ */

/* === CSS Variables ========================================= */
:root {
  --cream:  #F5F0E8;
  --green:  #4A7C5F;
  --forest: #2C3E35;
  --earth:  #C8C0B0;
  --text:   #2C3E35;
  --t:      0.3s ease;
  --max-w:  1200px;
  --body-w: 680px;
}

/* === Reset & Base ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* === Navigation ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 3.5rem;
  transition: background-color var(--t), padding var(--t),
              box-shadow var(--t), border-color var(--t);
}

.nav.scrolled {
  background-color: var(--cream);
  border-bottom: 1px solid rgba(44,62,53,0.12);
  padding: 1.1rem 3.5rem;
  box-shadow: 0 2px 24px rgba(44,62,53,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  transition: opacity var(--t);
  position: relative;
  z-index: 1001;
}

/* Both logos share the same size cap — constrain height AND width
   so a wide image never bleeds out of the nav bar. */
.nav-logo-img {
  max-height: 62px;
  max-width: 240px;
  height: auto;
  width: auto;
  display: block;
  transition: opacity var(--t);
}

/* Forest logo sits absolutely on top of the cream logo.
   The cream logo stays in normal flow and sets the link's footprint. */
.nav-logo-dark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Default — transparent nav over dark hero: cream only */
.nav-logo .nav-logo-light { opacity: 1; }
.nav-logo .nav-logo-dark  { opacity: 0; }

/* Scrolled — cream nav: forest only */
.nav.scrolled .nav-logo .nav-logo-light { opacity: 0; }
.nav.scrolled .nav-logo .nav-logo-dark  { opacity: 1; }

.nav-logo:hover { opacity: 0.75; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }

.nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(245,240,232,0.9);
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--t);
}
.nav.scrolled .nav-link { color: var(--forest); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover::after,
.nav-link.active::after  { transform: scaleX(1); }
.nav-link.active         { color: var(--green); }
.nav.scrolled .nav-link.active { color: var(--green); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--cream);
  transition: all 0.25s ease;
  transform-origin: center;
}
.nav.scrolled .nav-hamburger span { background-color: var(--forest); }
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--forest);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  transition: color var(--t);
}
.nav-mobile-link:hover { color: var(--earth); }

/* === Hero — Full Screen ===================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--forest);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,42,36,0.52);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero-subheading {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 300;
  color: rgba(245,240,232,0.78);
  letter-spacing: 0.06em;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

/* === Small Hero (About) ===================================== */
.hero-small {
  position: relative;
  height: 62vh;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--forest);
}
.hero-small .hero-overlay { background: rgba(28,42,36,0.58); }

/* === Container ============================================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 3.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* === Sections =============================================== */
.section    { padding: 6.5rem 0; }
.section-sm { padding: 4.5rem 0; }
.bg-cream   { background-color: var(--cream); }
.bg-forest  { background-color: var(--forest); }

/* === Brand Statement ======================================== */
.brand-statement {
  padding: 8rem 0;
  background-color: var(--cream);
  text-align: center;
}
.brand-statement-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* === Section Labels & Dividers ============================== */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}
.section-label-cream { color: rgba(245,240,232,0.55); }

.star {
  display: block;
  color: var(--green);
  opacity: 0.55;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  margin: 0.9rem 0 1.6rem;
}
.star-cream { color: var(--cream); opacity: 0.35; }

.section-subtitle      { font-size: 0.92rem; font-style: italic; color: rgba(44,62,53,0.58); line-height: 1.7; }
.section-subtitle-cream{ color: rgba(245,240,232,0.55); }

.section-header      { text-align: center; margin-bottom: 3.75rem; }
.section-header-left { text-align: left;   margin-bottom: 2.5rem; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.18;
  margin-top: 0.25rem;
}
.section-title-cream { color: var(--cream); }

/* === Buttons ================================================ */
.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--t), color var(--t);
}
.btn-forest { background-color: var(--forest); color: var(--cream); }
.btn-forest:hover { background-color: var(--green); }
.btn-green  { background-color: var(--green);  color: var(--cream); }
.btn-green:hover  { background-color: var(--forest); }
.btn-outline-cream {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,232,0.45);
}
.btn-outline-cream:hover { border-color: rgba(245,240,232,0.7); background: rgba(245,240,232,0.08); }

.text-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  display: inline-block;
  transition: color var(--t);
}
.text-link:hover { color: var(--forest); }

.more-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--t), color var(--t);
}
.more-link:hover { color: var(--forest); gap: 0.55rem; }

/* === Article Cards ========================================== */
.cards-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }

.card {
  background-color: var(--cream);
  box-shadow: 0 2px 18px rgba(44,62,53,0.07);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(44,62,53,0.13); }

.card-img-wrap { overflow: hidden; display: block; }
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
/* WordPress featured image inside card */
.card-img-wrap .wp-post-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.card:hover .card-img,
.card:hover .wp-post-image { transform: scale(1.04); }

.card-body    { padding: 1.75rem; }
.card-cat {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.7rem;
  transition: color var(--t);
}
.card-cat:hover { color: var(--forest); }

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.28;
  margin-bottom: 0.875rem;
}
.card-title a:hover { color: var(--green); }

.card-excerpt {
  font-size: 0.875rem;
  color: rgba(44,62,53,0.62);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Five Pillars =========================================== */
.pillars-grid { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 4rem; }
.pillar {
  padding: 3.25rem 2rem;
  text-align: center;
  border-left: 1px solid rgba(245,240,232,0.08);
}
.pillar:first-child { border-left: none; }
.pillar-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.28;
  margin-bottom: 1rem;
}
.pillar-desc { font-size: 0.78rem; font-weight: 300; color: rgba(245,240,232,0.46); line-height: 1.75; }

/* === Articles Index Hero ===================================  */
.articles-hero {
  padding: 11rem 0 5.5rem;
  background-color: var(--cream);
  text-align: center;
}
.articles-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.articles-hero-subtitle {
  font-size: 0.92rem;
  color: rgba(44,62,53,0.58);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === Featured Article ======================================= */
.featured-article         { overflow: hidden; }
.featured-article-inner   { display: grid; grid-template-columns: 1fr 1fr; min-height: 540px; background-color: var(--forest); }
.featured-article-img     { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-article-content { padding: 5.5rem 4.5rem; display: flex; flex-direction: column; justify-content: center; }
.feat-cat {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(245,240,232,0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
}
.feat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.18;
  margin-bottom: 1.5rem;
}
.feat-excerpt {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(245,240,232,0.62);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

/* === Category Sections ====================================== */
.category-section   { padding: 4.5rem 0; border-bottom: 1px solid rgba(200,192,176,0.38); }
.category-section:last-child { border-bottom: none; }
.cat-header         { margin-bottom: 2.5rem; }
.cat-intro {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(44,62,53,0.55);
  margin-top: 0.6rem;
  max-width: 540px;
  line-height: 1.75;
}
.cat-footer { margin-top: 2rem; text-align: right; }

/* === Archive — Category header ============================== */
.archive-header {
  padding: 10rem 0 4.5rem;
  background-color: var(--cream);
  text-align: center;
}
.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.archive-subtitle {
  font-size: 0.92rem;
  color: rgba(44,62,53,0.55);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

/* === Article Page =========================================== */
.article-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  overflow: hidden;
  background-color: var(--forest);
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* WP featured image when used as article hero */
.article-hero .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-meta {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background-color: var(--cream);
}
.article-cat-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.5rem;
  transition: color var(--t);
}
.article-cat-label:hover { color: var(--forest); }

.article-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}
.article-byline {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--earth);
  letter-spacing: 0.07em;
  margin-bottom: 2.25rem;
}
.article-divider {
  display: block;
  text-align: center;
  color: var(--green);
  opacity: 0.45;
  letter-spacing: 0.5em;
}

/* === Article Body =========================================== */
.article-body {
  max-width: var(--body-w);
  margin: 0 auto;
  padding: 4rem 2rem 5.5rem;
  background-color: var(--cream);
}

/* Paragraphs */
.article-body p,
.article-body .entry-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.85rem;
}

/* Headings */
.article-body h2,
.article-body .entry-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
  margin: 3rem 0 1.35rem;
}
.article-body h3,
.article-body .entry-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 1rem;
}

/* Lists */
.article-body ul,
.article-body .entry-content ul {
  margin: 0.5rem 0 1.85rem;
  list-style: none;
}
.article-body ul li,
.article-body .entry-content ul li {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}
.article-body ul li::before,
.article-body .entry-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--green);
  opacity: 0.6;
}

/* Pull Quote — HTML (from template) */
.pull-quote {
  border-left: 3px solid var(--green);
  padding: 0.75rem 0 0.75rem 2rem;
  margin: 3rem 0;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.55rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--text) !important;
  line-height: 1.48 !important;
  margin-bottom: 0 !important;
}

/* Pull Quote / Blockquote — Gutenberg blocks */
.article-body blockquote,
.article-body .wp-block-quote,
.article-body .wp-block-pullquote {
  border-left: 3px solid var(--green);
  border-right: none;
  border-top: none;
  border-bottom: none;
  background: none;
  padding: 0.75rem 0 0.75rem 2rem;
  margin: 3rem 0;
}
.article-body blockquote p,
.article-body .wp-block-quote p,
.article-body .wp-block-pullquote p {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.55rem !important;
  font-style: italic !important;
  line-height: 1.48 !important;
  margin-bottom: 0 !important;
  color: var(--text) !important;
}
.article-body .wp-block-quote cite,
.article-body .wp-block-pullquote cite {
  font-size: 0.78rem;
  font-style: normal;
  color: var(--earth);
  margin-top: 0.75rem;
  display: block;
}

/* In-article image — HTML (from template) */
.article-img-block         { margin: 3rem -2rem; }
.article-img-block img     { width: 100%; height: auto; display: block; }
.article-img-caption {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--earth);
  margin-top: 0.8rem;
  text-align: center;
  line-height: 1.6;
}

/* In-article image — Gutenberg image block */
.article-body .wp-block-image {
  margin: 3rem -2rem;
}
.article-body .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-body .wp-block-image figcaption {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--earth);
  margin-top: 0.8rem;
  text-align: center;
  line-height: 1.6;
  padding: 0 2rem;
}

/* Strong / Em */
.article-body strong { font-weight: 600; color: var(--text); }
.article-body em     { font-style: italic; }

/* Separator */
.article-body hr { border: none; border-top: 1px solid rgba(200,192,176,0.5); margin: 3rem 0; }

/* === In-article table =======================================
   Tables pasted from Word documents or inserted via the block
   editor are automatically styled to match the editorial
   design — cream background, green left-border accent per row
   (mirrors the pull-quote approach), ✦ prefix on every row.
   Handles plain <table>, WordPress wp-block-table, thead
   headers, and single- or multi-column layouts.
   ============================================================ */

/* ── Wrapper: Gutenberg table block ──────────────────────── */
.article-body .wp-block-table {
  margin: 3rem 0;
  overflow: hidden;
}
.article-body .wp-block-table table {
  margin: 0;                        /* reset — wrapper owns the margin */
}

/* Gutenberg table figcaption */
.article-body .wp-block-table figcaption {
  color: rgba(44,62,53,0.45);
  font-size: 0.74rem;
  font-style: italic;
  text-align: center;
  padding: 0.75rem 0 0;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* ── Table element ──────────────────────────────────────────
   Plain <table> (Word paste) gets the same margin.
   Inside .wp-block-table the wrapper owns the spacing.        */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 3rem 0;
  table-layout: auto;
  /* Override any inline styles Word injects */
  border: none !important;
}

/* Already inside .wp-block-table — wrapper handles margin */
.article-body .wp-block-table table {
  width: 100%;
  margin: 0;
}

/* ── thead — optional column headings ──────────────────────  */
.article-body table thead tr {
  border-bottom: 1px solid rgba(44,62,53,0.12);
}

.article-body table thead th,
.article-body table thead td {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
  text-align: left;
  vertical-align: bottom;
  padding: 1.5rem 1.75rem 1.35rem;
  border: none !important;
  line-height: 1.3;
}

/* ── tbody rows ─────────────────────────────────────────────  */
.article-body table tbody tr {
  border-bottom: 1px solid rgba(44,62,53,0.07);
  transition: background-color 0.2s ease;
}

.article-body table tbody tr:last-child {
  border-bottom: none;
}

.article-body table tbody tr:hover {
  background-color: rgba(74,124,95,0.04);
}

/* ── tbody cells ────────────────────────────────────────────  */
.article-body table tbody td {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.91rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.78;
  vertical-align: top;
  padding: 1.05rem 1.75rem;
  border: none !important;
}

/* ── ✦ prefix + green left border — first cell of every body row
   Mirrors the pull-quote: border-left 3px solid var(--green),
   with the small ✦ star sitting inside that padding.          */
.article-body table tbody td:first-child {
  padding-left: 3.5rem;
  position: relative;
  border-left: 3px solid var(--green) !important;
}

.article-body table tbody td:first-child::before {
  content: '✦';
  position: absolute;
  left: 1.4rem;
  top: 1.15rem;             /* aligns with the first text baseline */
  color: var(--green);      /* #4A7C5F */
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0;
}

/* ── thead first-cell: no ✦ and no left border (column label) */
.article-body table thead th:first-child,
.article-body table thead td:first-child {
  padding-left: 1.75rem;
  border-left: none !important;
}
.article-body table thead th:first-child::before,
.article-body table thead td:first-child::before {
  display: none;
}

/* ── Typography inside cells ───────────────────────────────  */
.article-body table td strong,
.article-body table th strong {
  font-weight: 600;
  color: var(--text);
}

.article-body table td em {
  font-style: italic;
  color: rgba(44,62,53,0.65);
}

.article-body table td p {
  /* Reset paragraph styles — cells don't need bottom margin */
  font-size: 0.91rem !important;
  line-height: 1.78 !important;
  color: var(--text) !important;
  margin-bottom: 0.35rem !important;
}
.article-body table td p:last-child {
  margin-bottom: 0 !important;
}

.article-body table td a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(74,124,95,0.35);
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.article-body table td a:hover {
  color: var(--forest);
  text-decoration-color: rgba(44,62,53,0.5);
}

/* ── Mobile: keep table readable ───────────────────────────  */
@media (max-width: 768px) {
  .article-body table,
  .article-body .wp-block-table {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    overflow-x: auto;
    display: block;        /* allows horizontal scroll if needed */
  }
  .article-body .wp-block-table table {
    display: table;
    width: 100%;
    min-width: 320px;
  }
  .article-body table {
    display: table;
    min-width: 320px;
  }
  .article-body table tbody td,
  .article-body table thead th {
    padding: 0.9rem 1.25rem;
  }
  .article-body table tbody td:first-child {
    padding-left: 2.85rem;
  }
  .article-body table tbody td:first-child::before {
    left: 1.1rem;
  }
}

/* === Key Takeaways ========================================== */
.key-takeaways { background-color: var(--forest); padding: 5rem 0; }
.key-takeaways-inner { max-width: var(--body-w); margin: 0 auto; padding: 0 2rem; }
.key-takeaways .section-label { color: rgba(245,240,232,0.38); margin-bottom: 1rem; }
.key-takeaways-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.key-takeaways ul { list-style: none; }
.key-takeaways li {
  font-size: 0.92rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.75;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.key-takeaways li:last-child { border-bottom: none; }
.key-takeaways li::before {
  content: '✦';
  color: var(--green);
  opacity: 0.65;
  flex-shrink: 0;
  font-size: 0.65rem;
  margin-top: 0.3rem;
  letter-spacing: 0;
}

/* === Author Block =========================================== */
.author-block {
  background-color: var(--cream);
  padding: 4.5rem 0;
  border-top: 1px solid rgba(200,192,176,0.45);
}
.author-block-inner { max-width: var(--body-w); margin: 0 auto; padding: 0 2rem; }
.author-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 0.45rem; }
.author-desc { font-size: 0.88rem; color: rgba(44,62,53,0.55); line-height: 1.65; }

/* === Related Articles ======================================= */
.related-articles         { padding: 5.5rem 0; background-color: var(--cream); }
.related-articles-header  { text-align: center; margin-bottom: 3.25rem; }

/* === About Page ============================================= */
.about-section { padding: 6.5rem 0; border-bottom: 1px solid rgba(200,192,176,0.32); }
.about-section:last-child { border-bottom: none; }
.about-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 5rem;
  align-items: start;
}
.about-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1.2;
}
.about-body { font-size: 1.05rem; line-height: 1.88; color: var(--text); }
.about-body + .about-body { margin-top: 1.6rem; }

/* === Contact Page =========================================== */
.contact-readers   { padding: 8rem 0; background-color: var(--cream); }
.contact-industry  { padding: 8rem 0; background-color: var(--forest); }
.contact-inner     { max-width: 620px; }
.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 1.6rem;
}
.contact-heading-cream { color: var(--cream); }
.contact-body { font-size: 1rem; line-height: 1.85; color: rgba(44,62,53,0.7); margin-bottom: 2.5rem; max-width: 520px; }
.contact-body-cream { color: rgba(245,240,232,0.62); }
.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.02em;
  transition: color var(--t);
}
.contact-email:hover { color: var(--forest); }
.contact-email-cream { color: var(--earth); }
.contact-email-cream:hover { color: var(--cream); }
.contact-note { font-size: 0.76rem; font-style: italic; color: rgba(245,240,232,0.32); margin-top: 1.5rem; line-height: 1.65; }

/* === 404 Page =============================================== */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 10rem 2rem; text-align: center; }
.page-404-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(4rem, 10vw, 8rem); font-weight: 300; color: var(--green); opacity: 0.4; line-height: 1; margin-bottom: 1.5rem; }
.page-404-heading { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400; color: var(--text); margin-bottom: 1rem; }
.page-404-body { font-size: 0.95rem; color: rgba(44,62,53,0.6); max-width: 400px; margin: 0 auto 2.5rem; line-height: 1.75; }

/* === Pagination ============================================= */
.cs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 3.5rem 0 1rem;
}
.cs-pagination a,
.cs-pagination span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--forest);
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(44,62,53,0.15);
  transition: all var(--t);
  letter-spacing: 0.03em;
}
.cs-pagination a:hover {
  background-color: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.cs-pagination .current {
  background-color: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

/* === Footer ================================================= */
.footer { background-color: var(--forest); padding: 5.5rem 0 0; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3.5rem;
  padding-bottom: 5rem;
}
.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-tagline { font-size: 0.84rem; font-weight: 300; color: rgba(245,240,232,0.38); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 0.68rem; font-weight: 500; color: rgba(245,240,232,0.32); letter-spacing: 0.18em; text-transform: uppercase; display: block; margin-bottom: 1.35rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-link { font-size: 0.875rem; font-weight: 300; color: rgba(245,240,232,0.58); transition: color var(--t); }
.footer-nav-link:hover { color: var(--cream); }
.footer-email { font-size: 0.875rem; font-weight: 300; color: rgba(245,240,232,0.58); display: block; margin-bottom: 1.5rem; transition: color var(--t); }
.footer-email:hover { color: var(--cream); }
.footer-social { display: flex; gap: 0.75rem; align-items: center; }
.footer-social-link {
  width: 34px; height: 34px;
  border: 1px solid rgba(245,240,232,0.16);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.42);
  transition: all var(--t);
}
.footer-social-link:hover { border-color: rgba(245,240,232,0.42); color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(245,240,232,0.08); padding: 1.5rem 0; }
.footer-bottom-text { font-size: 0.72rem; color: rgba(245,240,232,0.25); letter-spacing: 0.07em; text-align: center; }

/* === Utilities ============================================== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-2  { margin-top: 1rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mt-8  { margin-top: 4rem; }

/* === WordPress Alignment Classes =========================== */
.alignleft  { float: left;  margin: 0.5rem 2rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 2rem; }
.aligncenter { display: block; margin: 2rem auto; text-align: center; }
.alignwide  { margin-left: -4rem; margin-right: -4rem; max-width: none; }

/* === Responsive — Tablet =================================== */
@media (max-width: 1080px) {
  .container { padding: 0 2.5rem; }
  .nav, .nav.scrolled { padding-left: 2.5rem; padding-right: 2.5rem; }
  .pillars-grid { grid-template-columns: repeat(3,1fr); }
  .pillar:nth-child(4) { border-left: none; }
  .featured-article-content { padding: 3.5rem 3rem; }
  .about-inner { grid-template-columns: 180px 1fr; gap: 3rem; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* === Responsive — Mobile =================================== */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav, .nav.scrolled { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .nav.scrolled { padding-top: 1rem; padding-bottom: 1rem; }
  .nav-links    { display: none; }
  .nav-hamburger{ display: flex; }
  .nav-logo-img { max-height: 34px; max-width: 130px; } /* both logos, slightly smaller on mobile */
  .section      { padding: 4rem 0; }
  .section-sm   { padding: 3rem 0; }
  .brand-statement { padding: 5.5rem 0; }

  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }

  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 2.25rem 1.5rem; border-left: none; border-top: 1px solid rgba(245,240,232,0.08); }
  .pillar:first-child, .pillar:nth-child(2) { border-top: none; }

  .featured-article-inner { grid-template-columns: 1fr; }
  .featured-article-img   { height: 300px; width: 100%; }
  .featured-article-content { padding: 3rem 2rem; }

  .about-inner  { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-main  { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }

  .article-img-block { margin: 2rem 0; }
  .article-body .wp-block-image { margin: 2rem 0; }
  .article-body .wp-block-image figcaption { padding: 0; }
  .articles-hero { padding: 8rem 0 3.5rem; }
  .alignwide { margin-left: 0; margin-right: 0; }
}

/* === Responsive — Small ==================================== */
@media (max-width: 480px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar:nth-child(2) { border-top: 1px solid rgba(245,240,232,0.08); }
  .hero-headline    { font-size: 2.3rem; }
  .article-headline { font-size: 2rem; }
}
