/* ============================================================
   The Marble Project — Front-end branding stylesheet.
   Loaded via mu-plugins/marble-branding.php on every page.
   Companion to the Wrapped v2 retrospective (same palette + type).
   Charity Number: 1125066
   ============================================================ */

:root {
  --marb-deep:        #5c0404;
  --marb-red:         #b81c1c;
  --marb-bright:      #dc1c24;
  --marb-gold:        #c9a21e;
  --marb-gold-soft:   #d6b34a;
  --marb-gold-light:  #f5e6a3;
  --marb-cream:       #fdf8f0;
  --marb-cream-warm:  #f5ecd6;
  --marb-paper:       #fbfaf3;
  --marb-charcoal:    #1a1412;
  --marb-warm-gray:   #4a4040;
  --marb-mute:        #6b605a;
  --marb-rule:        rgba(92, 4, 4, 0.12);

  --marb-shadow-sm:   0 1px 3px rgba(26, 20, 18, 0.06), 0 4px 12px rgba(26, 20, 18, 0.04);
  --marb-shadow-md:   0 6px 24px rgba(26, 20, 18, 0.08), 0 2px 6px rgba(26, 20, 18, 0.04);

  --marb-serif:       'Cormorant Garamond', 'Garamond', Georgia, 'Times New Roman', serif;
  --marb-body:        'Lora', Georgia, 'Times New Roman', serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--marb-body);
  color: var(--marb-charcoal);
  background: var(--marb-paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { margin: 0 0 1.2em; }

a {
  color: var(--marb-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--marb-deep); }

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
  font-family: var(--marb-serif);
  color: var(--marb-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1, .wp-block-post-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--marb-red); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
/* H5 was rendering small (~0.85rem default) and the "Our Name" page uses
   it for important page-context lines like the "Why 'The Marble Project'?"
   eyebrow and the "Therefore, we are The Marble Project (...)" sign-off. */
h5 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-style: italic;
  color: var(--marb-deep);
  margin: 1.4rem 0 0.6rem;
}
h6 { font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* Subtle gold underline accent for major section headings inside content. */
.entry-content > h2,
.wp-block-group > h2 {
  position: relative;
  padding-bottom: 0.45em;
}
.entry-content > h2::after,
.wp-block-group > h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 2px;
  background: var(--marb-gold);
}

/* ---------- Site header ---------- */
header.wp-block-template-part {
  background: var(--marb-paper);
  border-bottom: 1px solid var(--marb-rule);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.wp-block-site-title a {
  color: var(--marb-deep) !important;
  font-family: var(--marb-serif);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.005em;
}

/* Custom header brand mark (replaces wp:site-title with a real logo). */
.marble-header-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.marble-header-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 240px;
}
@media (max-width: 720px) {
  .marble-header-logo { height: 42px; }
}

.wp-block-site-tagline {
  color: var(--marb-mute);
  font-style: italic;
  font-family: var(--marb-body);
  font-size: 0.9rem;
}

.wp-block-site-logo img {
  max-height: 56px;
  width: auto;
}

/* ---------- Navigation ---------- */
.wp-block-navigation,
.wp-block-navigation a.wp-block-navigation-item__content {
  font-family: var(--marb-body);
  font-size: 0.95rem;
  font-weight: 500;
}
.wp-block-navigation a.wp-block-navigation-item__content {
  color: var(--marb-charcoal);
  padding: 0.4em 0.1em;
  transition: color 0.15s ease;
}
.wp-block-navigation a.wp-block-navigation-item__content:hover {
  color: var(--marb-red);
}
.wp-block-navigation .current-menu-item > a.wp-block-navigation-item__content,
.wp-block-navigation .current-menu-item .wp-block-navigation-item__label {
  color: var(--marb-red);
  font-weight: 600;
}
.wp-block-navigation__submenu-container {
  background: var(--marb-paper) !important;
  border: 1px solid var(--marb-rule) !important;
  border-radius: 6px;
  box-shadow: var(--marb-shadow-md);
  padding: 0.4rem 0;
}

/* ---------- Hero / cover block ---------- */
.wp-block-cover {
  border-bottom: 4px solid var(--marb-gold);
  min-height: clamp(360px, 60vh, 580px);
}

/* The home hero is a group photo — default `object-fit:cover; center` was
   cropping faces at the top. Anchor cover-background images to the top
   third so heads stay visible at every viewport height. */
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover img.wp-block-cover__image-background,
.wp-block-cover .wp-block-cover__video-background {
  object-position: center 28% !important;
}
.wp-block-cover .wp-block-cover__inner-container {
  padding: clamp(1rem, 4vw, 3rem);
}
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover .wp-block-heading {
  color: var(--marb-cream) !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  font-weight: 600;
}
.wp-block-cover p {
  color: var(--marb-cream) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* ---------- Buttons ---------- */
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
  background: var(--marb-red) !important;
  color: var(--marb-cream) !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: var(--marb-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em !important;
  padding: 0.8em 1.8em !important;
  box-shadow: var(--marb-shadow-sm);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.wp-block-button__link:hover {
  background: var(--marb-deep) !important;
  transform: translateY(-1px);
  box-shadow: var(--marb-shadow-md);
}

/* Outline button: light variant for cream backgrounds, but ON dark cover
   blocks the same button (e.g. "Learn More" next to the hero CTA) reads as
   invisible — push to a cream outline + cream text instead. */
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--marb-deep) !important;
  border: 1.5px solid var(--marb-deep) !important;
  box-shadow: none;
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--marb-deep) !important;
  color: var(--marb-cream) !important;
}
.wp-block-cover .is-style-outline .wp-block-button__link,
.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--marb-cream) !important;
  border-color: var(--marb-cream) !important;
  background: rgba(0,0,0,0.18) !important;
}
.wp-block-cover .is-style-outline .wp-block-button__link:hover {
  background: var(--marb-cream) !important;
  color: var(--marb-deep) !important;
  border-color: var(--marb-cream) !important;
}

/* The donate CTA gets a distinct gold treatment in body content — the one
   thing we want a returning supporter to spot on every page. The footer
   donate LINK does NOT get this chrome (it's a plain text link in the
   nav list); only buttons in the body content get it. */
.entry-content a[href*="wonderful.org"],
.wp-block-button__link[href*="wonderful.org"] {
  background: var(--marb-gold) !important;
  color: var(--marb-deep) !important;
}
.entry-content a[href*="wonderful.org"]:hover,
.wp-block-button__link[href*="wonderful.org"]:hover {
  background: var(--marb-gold-soft) !important;
}
/* Reset for footer specifically — donate is just another link in the nav. */
.marble-footer a[href*="wonderful.org"],
footer.wp-block-template-part a[href*="wonderful.org"] {
  background: transparent !important;
  color: var(--marb-cream-warm) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  text-shadow: none;
}
.marble-footer a[href*="wonderful.org"]:hover,
footer.wp-block-template-part a[href*="wonderful.org"]:hover {
  background: transparent !important;
  color: var(--marb-gold-light) !important;
}

/* ---------- Content cards ---------- */
.wp-block-columns .wp-block-column {
  background: #ffffff;
  padding: 1.6rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--marb-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wp-block-columns .wp-block-column:hover {
  transform: translateY(-2px);
  box-shadow: var(--marb-shadow-md);
}

/* Scope: the white card chrome is for content cards only. Footer and any
   in-header columns must NEVER pick up the white background — they sit on
   the deep-red footer / cream header where a white card looks broken. */
.marble-footer .wp-block-columns .wp-block-column,
.marble-footer-cols .wp-block-column,
.marble-header .wp-block-columns .wp-block-column,
footer.wp-block-template-part .wp-block-columns .wp-block-column {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.marble-footer .wp-block-columns .wp-block-column:hover,
footer.wp-block-template-part .wp-block-columns .wp-block-column:hover {
  transform: none !important;
  box-shadow: none !important;
}

.wp-block-columns .wp-block-column > .wp-block-image:first-child {
  margin: -1.6rem -1.5rem 1.2rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  text-align: center;
}
.wp-block-columns .wp-block-column > .wp-block-image:first-child a,
.wp-block-columns .wp-block-column > .wp-block-image:first-child {
  display: block;
}
.wp-block-columns .wp-block-column > .wp-block-image:first-child img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 auto;
}

/* Card body content is centered alongside the image — heading + paragraph
   were already centered via the page block alignment, but make explicit. */
.wp-block-columns .wp-block-column > h3,
.wp-block-columns .wp-block-column > p {
  text-align: center;
}

/* Avoid card-in-card chrome when a group already provides a background. */
.wp-block-group.has-background .wp-block-columns .wp-block-column,
.wp-block-cover .wp-block-columns .wp-block-column {
  background: transparent;
  box-shadow: none;
  padding: 0.5rem;
}
.wp-block-group.has-background .wp-block-columns .wp-block-column:hover,
.wp-block-cover .wp-block-columns .wp-block-column:hover {
  transform: none;
  box-shadow: none;
}

/* The home page "Support Our Work" section is a Cover block on a dark
   background. Default theme contrast pushes text labels gray-on-white,
   which is unreadable on red. Force everything inside a dark Cover to
   cream-on-red, with the eyebrow / labels in gold. */
.entry-content .wp-block-cover.has-background-dim,
.entry-content .wp-block-cover[class*="has-contrast"] {
  color: var(--marb-cream) !important;
}
.entry-content .wp-block-cover.has-background-dim h1,
.entry-content .wp-block-cover.has-background-dim h2,
.entry-content .wp-block-cover.has-background-dim h3,
.entry-content .wp-block-cover.has-background-dim h4,
.entry-content .wp-block-cover.has-background-dim p,
.entry-content .wp-block-cover.has-background-dim li,
.entry-content .wp-block-cover.has-background-dim a:not(.wp-block-button__link) {
  color: var(--marb-cream) !important;
  text-shadow: none;
}
.entry-content .wp-block-cover.has-background-dim h2,
.entry-content .wp-block-cover.has-background-dim h3 {
  color: var(--marb-gold-light) !important;
}
.entry-content .wp-block-cover.has-background-dim h2::after,
.entry-content .wp-block-cover.has-background-dim h3::after {
  background: var(--marb-gold) !important;
}
/* If a stat-tile pattern survives inside the cover (4 columns with big
   numbers + label), the big number gets gold and the label gets gold-light
   uppercase. */
.entry-content .wp-block-cover.has-background-dim .wp-block-columns .wp-block-column p strong,
.entry-content .wp-block-cover.has-background-dim .wp-block-columns .wp-block-column p span {
  color: var(--marb-gold-light) !important;
}
.entry-content .wp-block-cover.has-background-dim .wp-block-columns .wp-block-column {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(245, 230, 163, 0.18);
  padding: 1.4rem 1.2rem;
  border-radius: 8px;
}

/* ---------- Stats / impact strip ----------
   Stat tiles on the home page are columns of "20+" + caption pairs. We
   target the first heading inside narrow card columns to give them the
   big-display treatment without affecting normal H2s elsewhere. */
.entry-content .wp-block-columns.is-style-stats .wp-block-column h2,
.entry-content .wp-block-columns .wp-block-column .has-x-large-font-size,
.entry-content .wp-block-columns .wp-block-column .has-xx-large-font-size,
.stats-number {
  color: var(--marb-red);
  font-family: var(--marb-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 0.2em 0 0.2em;
  text-align: center;
}
.entry-content .wp-block-columns.is-style-stats .wp-block-column h2 + p,
.entry-content .wp-block-columns .wp-block-column .has-x-large-font-size + p {
  text-align: center;
  color: var(--marb-mute);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Blockquotes ---------- */
blockquote,
.wp-block-quote {
  border-left: 4px solid var(--marb-gold);
  background: var(--marb-cream);
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  font-family: var(--marb-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--marb-charcoal);
  border-radius: 0 8px 8px 0;
}
blockquote cite, .wp-block-quote cite {
  display: block;
  margin-top: 0.6rem;
  color: var(--marb-mute);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Lists ---------- */
.entry-content ul,
.entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--marb-gold); }

/* ---------- Separators ---------- */
.wp-block-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--marb-gold-light), transparent);
  opacity: 0.85;
  margin: 3rem auto;
  max-width: 200px;
}

/* ---------- Images ---------- */
.entry-content .wp-block-image img {
  border-radius: 6px;
  box-shadow: var(--marb-shadow-sm);
  height: auto;
  max-width: 100%;
}

/* Free-floating logo images that authors dropped into pages (e.g. /our-name/
   originally rendered the logo at intrinsic SVG size — which is huge). Cap
   inline images to a sensible content-width unless the author has explicitly
   set a wider alignment (alignfull / alignwide). */
.entry-content .wp-block-image:not(.alignfull):not(.alignwide):not(.alignright):not(.alignleft) img {
  max-width: min(100%, 520px);
}
.entry-content .wp-block-image.is-style-logo img,
.entry-content img[src*="marble-project-logo"],
.entry-content img[src*="logo-"] {
  max-width: min(100%, 320px);
  margin-inline: auto;
  box-shadow: none;
  display: block;
}

/* ---------- Tables ---------- */
.wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--marb-shadow-sm);
}
.wp-block-table th {
  background: var(--marb-deep);
  color: var(--marb-cream);
  font-family: var(--marb-serif);
  text-align: left;
  padding: 0.8rem 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wp-block-table td {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--marb-rule);
}

/* ---------- Footer ---------- */
footer.wp-block-template-part {
  background: var(--marb-deep) !important;
  color: var(--marb-cream-warm) !important;
  padding: clamp(2rem, 5vw, 4rem) 0 !important;
  margin-top: 4rem;
  border-top: 4px solid var(--marb-gold);
}

.marble-footer h4.marble-footer-heading {
  color: var(--marb-gold-light) !important;
  font-family: var(--marb-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  padding: 0;
}
.marble-footer h4.marble-footer-heading::after { display: none; }

.marble-footer-list {
  list-style: none;
  padding: 0; margin: 0;
}
.marble-footer-list li {
  margin: 0 0 0.45rem;
  padding: 0;
}
.marble-footer-list li::marker { content: ''; }
.marble-footer-list a {
  color: var(--marb-cream-warm) !important;
  font-family: var(--marb-body);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.marble-footer-list a:hover {
  color: var(--marb-gold-light) !important;
  border-bottom-color: var(--marb-gold);
}

/* Footer brand: serif text mark on the deep-red footer. We dropped the
   logo SVG here because filter-inversions washed it into one white blob —
   a text wordmark with a small gold rule reads better at the small sizes
   used in the footer column. */
.marble-footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  text-decoration: none;
  color: var(--marb-cream) !important;
}
.marble-footer-brand-name {
  font-family: var(--marb-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--marb-cream);
}
.marble-footer-brand-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--marb-gold);
  margin: 0.7rem 0;
}
.marble-footer-brand-sub {
  font-family: var(--marb-body);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--marb-gold-light);
}

.marble-footer-strap {
  color: rgba(253, 248, 240, 0.82) !important;
  font-family: var(--marb-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 32ch;
}

.marble-footer-meta {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(245, 230, 163, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(253, 248, 240, 0.6) !important;
  gap: 0.8rem;
}
.marble-footer-meta p {
  color: rgba(253, 248, 240, 0.65) !important;
  font-size: 0.8rem;
  margin: 0;
}
.marble-footer-meta a {
  color: var(--marb-gold-light) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.marble-footer-meta a:hover {
  border-bottom-color: var(--marb-gold-light);
}

/* Defensive: even if the legacy default footer ever leaks in (during
   migration, before parts/footer.html overrides), keep colours sane. */
footer h2, footer h3, footer h4 { color: var(--marb-cream) !important; }
footer h2::after, footer h3::after, footer h4::after { display: none; }
footer a { color: var(--marb-gold-light); }
footer a:hover { color: var(--marb-cream) !important; }
footer p, footer li {
  color: rgba(253, 248, 240, 0.78) !important;
  font-size: 0.92rem;
}

/* ---------- Facebook section (CTA band) ----------
   We don't actually embed the FB timeline anymore — the SDK is fragile and
   the iframe was rendering as a tiny fallback link. Replaced with a clean
   styled invitation that links straight to our page. */
.marble-fb-band {
  text-align: center;
  border-top: 1px solid var(--marb-rule);
  border-bottom: 1px solid var(--marb-rule);
}
.marble-fb-band h2 {
  margin-top: 0;
  padding-bottom: 0.4em;
}
.marble-fb-band h2::after {
  left: 50%; transform: translateX(-50%);
}
.marble-fb-strap {
  max-width: 56ch;
  margin: 0 auto 1.6rem;
  color: var(--marb-mute);
  font-style: italic;
  font-family: var(--marb-serif);
  font-size: 1.1rem;
}

/* Defensive fallback for the legacy fb-page widget if it ever appears */
.fb-page,
.fb_iframe_widget {
  background: #fff;
  padding: 0.6rem;
  border-radius: 8px;
  box-shadow: var(--marb-shadow-sm);
}

/* ---------- Forms / contact ---------- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font-family: var(--marb-body);
  background: #fff;
  border: 1px solid var(--marb-rule);
  border-radius: 4px;
  padding: 0.7em 0.9em;
  font-size: 1rem;
  color: var(--marb-charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  max-width: 480px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--marb-red);
  box-shadow: 0 0 0 3px rgba(184, 28, 28, 0.12);
}

/* ---------- Wrapped retrospective callout (top of Our History) ----------
   Sits just below the page's cover banner. Two CTAs: the retrospective
   itself (primary, deep red), and the full timeline (secondary, outline). */
.marble-history-wrapped-callout {
  background: var(--marb-cream) !important;
  border: 1px solid var(--marb-rule);
  box-shadow: var(--marb-shadow-sm);
}
.marble-history-wrapped-callout .marble-wrapped-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marb-gold);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.marble-history-wrapped-callout .marble-wrapped-headline {
  font-family: var(--marb-serif);
  color: var(--marb-deep);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 0.6rem;
  padding-bottom: 0;
}
.marble-history-wrapped-callout .marble-wrapped-headline::after { display: none; }
.marble-history-wrapped-callout .wp-block-buttons {
  margin-top: 1rem;
  gap: 0.6rem;
}
.marble-history-wrapped-callout .marble-wrapped-cta .wp-block-button__link {
  background: var(--marb-deep) !important;
  color: var(--marb-cream) !important;
}
.marble-history-wrapped-callout .marble-wrapped-cta .wp-block-button__link:hover {
  background: var(--marb-red) !important;
}
.marble-history-wrapped-callout .marble-timeline-cta .wp-block-button__link {
  background: transparent !important;
  color: var(--marb-deep) !important;
  border: 1.5px solid var(--marb-deep) !important;
  box-shadow: none;
}
.marble-history-wrapped-callout .marble-timeline-cta .wp-block-button__link:hover {
  background: var(--marb-deep) !important;
  color: var(--marb-cream) !important;
}

/* ---------- Reusable utility classes ---------- */
.marb-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marb-gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.marb-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.6rem;
  box-shadow: var(--marb-shadow-sm);
}

/* ---------- Theme background tokens → brand palette ----------
   Twenty Twenty-Five ships with "Contrast" (#111) and "Accent 4" (gray)
   surfaces that author tools default to. On the Marble site we want
   those reading as warm cream/deep-red, not generic charcoal/gray. */
.entry-content .wp-block-group.has-contrast-background-color,
.entry-content .wp-block-cover.has-contrast-background-color {
  background: var(--marb-deep) !important;
  color: var(--marb-cream) !important;
}
.entry-content .has-accent-4-background-color,
.entry-content .has-accent-6-background-color {
  background: var(--marb-cream) !important;
  color: var(--marb-charcoal) !important;
}
.entry-content .has-contrast-color { color: var(--marb-deep) !important; }
.entry-content .has-base-color { color: var(--marb-cream) !important; }
.entry-content .has-accent-1-color, .entry-content .has-accent-2-color,
.entry-content .has-accent-3-color, .entry-content .has-accent-4-color {
  color: var(--marb-red) !important;
}

/* The "Support Our Work" section reads as a dim gray on home — use the
   deep-red brand instead so it sits visually beside the footer. */
.entry-content .wp-block-cover[style*="contrast"],
.entry-content .wp-block-cover.has-background-dim:not(:has(.wp-block-cover__image-background)) {
  background: var(--marb-deep) !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
  /* Footer: stack columns instead of squeezing four into a row */
  .marble-footer-cols.wp-block-columns {
    flex-direction: column !important;
    gap: 1.8rem;
  }
  .marble-footer-cols .wp-block-column {
    flex-basis: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .marble-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
@media (max-width: 900px) {
  .wp-block-columns { flex-direction: column !important; }
  .wp-block-cover { min-height: 320px; }
  .entry-content .wp-block-columns .wp-block-column > .wp-block-image:first-child img {
    height: 220px;
  }
  /* Stack hero buttons + give them full-width tap targets on mobile */
  .wp-block-cover .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .wp-block-cover .wp-block-buttons .wp-block-button { width: 100%; }
  .wp-block-cover .wp-block-buttons .wp-block-button__link { display: block; text-align: center; }
}
@media (max-width: 520px) {
  h1, .wp-block-post-title { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  body { font-size: 16px; }
  blockquote, .wp-block-quote { padding: 1rem 1.2rem; font-size: 1.05rem; }
  .marble-footer-logo { max-width: 180px; }
  .wp-block-cover h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .entry-content .wp-block-image:not(.alignfull):not(.alignwide) img {
    max-width: 100%;
  }
}

/* ---------- Print ---------- */
@media print {
  header.wp-block-template-part, footer.wp-block-template-part { display: none; }
  a { color: var(--marb-charcoal); text-decoration: none; }
}
