/*
Theme Name: Muslim Culture Con
Theme URI: https://ase.haus/
Author: Àṣẹ Haus
Author URI: https://ase.haus/
Description: Custom theme for Muslim Culture Con — 501(c)(3) nonprofit building Muslim young adult community nationwide.
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mcc
*/

/* ==========================================
   Variables
   ========================================== */

:root {
  --red: #C8192C;
  --green: #246830;
  --logo-green: #6cb542;
  /* Dark hero green derived from logo hue (~98°) */
  --hero-dark: #0f1e09;
  --ink: #111111;
  --bg: #f9f7f3;
  --white: #ffffff;
  --muted: #767676;
  --border: rgba(0, 0, 0, 0.1);
  --header-h: 72px;
  --max-w: 1260px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 3px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Reset & Base
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* When mobile menu is open, prevent scroll */
body.menu-open {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  max-width: 68ch;
}

/* ==========================================
   Typography helpers
   ========================================== */

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.eyebrow-red {
  color: var(--red);
}

/* ==========================================
   Layout
   ========================================== */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow {
  max-width: 760px;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.75em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #a01422;
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover {
  background: #1a5024;
}

.btn-ghost {
  border: 1.5px solid currentColor;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* ==========================================
   Skip link
   ========================================== */

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================
   Site Header
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Transparent over hero */
.site-header.at-top {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

/* On non-hero pages, always solid */
.site-header.solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
  transition: opacity 0.2s;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-logo img {
  height: 46px;
  width: auto;
}

/* When header is transparent (over dark hero), keep logo visible */
.site-header.at-top .site-logo img {
  /* logo is already on a dark/light image, fine as-is */
}

/* Primary nav — desktop */
.primary-nav {
  display: flex;
  align-items: center;
}

/*
  wp_nav_menu renders: nav.primary-nav > ul.primary-nav-list > li > a
  The ul MUST be flex-row so items sit horizontally.
  Targeting both the custom class and the generic child ul covers all scenarios.
*/
.primary-nav > ul,
.primary-nav > .primary-nav-list,
.primary-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > ul > li,
.primary-nav-list > li {
  position: relative;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: color 0.15s;
  white-space: nowrap;
}

.site-header.at-top .primary-nav a {
  color: rgba(255,255,255,0.9);
}

.primary-nav a:hover {
  color: var(--red);
}

.site-header.at-top .primary-nav a:hover {
  color: white;
}

.primary-nav .current-menu-item > a {
  color: var(--red);
}

.site-header.at-top .primary-nav .current-menu-item > a {
  color: white;
}

/* Dropdown sub-menus — rendered by WP as .sub-menu inside .menu-item-has-children */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: var(--white);
  min-width: 175px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  border-top: 2px solid var(--red);
  list-style: none;
  margin: 0;
  padding: 0.375rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  z-index: 200;
  flex-direction: column;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.primary-nav .mcc-menu-label-link {
  cursor: default;
}

.primary-nav .sub-menu li {
  list-style: none;
}

.primary-nav .sub-menu a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.76rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  white-space: nowrap;
}

.primary-nav .sub-menu a:hover {
  color: var(--red);
  background: rgba(0,0,0,0.02);
}

/* Dropdown on transparent hero */
.site-header.at-top .primary-nav .sub-menu {
  background: rgba(8,8,8,0.97);
}

.site-header.at-top .primary-nav .sub-menu a {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.06);
}

.site-header.at-top .primary-nav .sub-menu a:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 0.65em 1.4em;
  font-size: 0.74rem;
}

/*
  .header-join-btn — header-specific button that adapts to dark/light states.
  Default: white border/text for the dark hero (at-top).
  When scrolled or on solid-bg pages: dark border/text.
*/
.header-join-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65em 1.4em;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: white;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.header-join-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

/* Solid white header: invert to dark */
.site-header.solid .header-join-btn,
.site-header.scrolled .header-join-btn {
  border-color: rgba(0,0,0,0.25);
  color: var(--ink);
}

.site-header.solid .header-join-btn:hover,
.site-header.scrolled .header-join-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

/* ==========================================
   Hamburger toggle
   ========================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
  z-index: 200;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  transition: transform 0.35s var(--ease), opacity 0.25s, background 0.2s;
}

.site-header.at-top .menu-toggle span {
  background: white;
}

/* When open, bars become white (sitting above dark overlay is impossible
   due to stacking context — the dedicated .mobile-close button handles closing) */
.menu-toggle.is-open span {
  background: white;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================
   Mobile menu close button
   Lives INSIDE the overlay — always on top, always visible.
   ========================================== */

.mobile-close {
  position: absolute;
  top: calc((var(--header-h) - 44px) / 2);
  right: var(--pad);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  cursor: pointer;
}

.mobile-close span {
  position: absolute;
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  border-radius: 1px;
}

.mobile-close span:first-child {
  transform: rotate(45deg);
}

.mobile-close span:last-child {
  transform: rotate(-45deg);
}

/* ==========================================
   Mobile menu overlay
   ========================================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  flex-direction: column;

  /* Hidden state */
  clip-path: circle(0% at calc(100% - 38px) 36px);
  transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}

.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 38px) 36px);
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3rem;
  overflow-y: auto;
}

/* Nav links inside mobile menu */
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* Main mobile nav links */
.mobile-nav > a,
.mobile-nav > .mobile-nav-group {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  /* slide-in animation */
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.mobile-nav > a {
  color: rgba(255,255,255,0.85);
  padding: 0.35em 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.15s, transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.mobile-nav > a:hover,
.mobile-nav > a:focus {
  color: white;
}

.mobile-menu.is-open .mobile-nav > a,
.mobile-menu.is-open .mobile-nav > .mobile-nav-group {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger on direct children (a and group div both count) */
.mobile-menu.is-open .mobile-nav > *:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-nav > *:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-nav > *:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.is-open .mobile-nav > *:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu.is-open .mobile-nav > *:nth-child(5) { transition-delay: 0.36s; }
.mobile-menu.is-open .mobile-nav > *:nth-child(n+6) { transition-delay: 0.42s; }

/* About accordion group */
.mobile-nav-group-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-nav-group-row > a,
.mobile-nav-group-label {
  flex: 1;
  color: rgba(255,255,255,0.85);
  padding: 0.35em 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.mobile-nav-group-row > a:hover {
  color: white;
}

/* + / × expand toggle */
.mobile-sub-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.2s, transform 0.3s var(--ease);
}

.mobile-sub-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.mobile-sub-toggle span::before,
.mobile-sub-toggle span::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease);
}

.mobile-sub-toggle span::before {
  left: 0; right: 0;
  top: 50%; height: 1.5px;
  margin-top: -0.75px;
}

.mobile-sub-toggle span::after {
  top: 0; bottom: 0;
  left: 50%; width: 1.5px;
  margin-left: -0.75px;
}

.mobile-sub-toggle[aria-expanded="true"] {
  color: var(--red);
}

.mobile-sub-toggle[aria-expanded="true"] span::after {
  transform: scaleY(0);
}

/* Sub-link drawer */
.mobile-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.mobile-nav-sub.is-open {
  max-height: 400px;
}

.mobile-nav-sub a {
  display: block;
  padding: 0.45em 0 0.45em 1.25rem;
  font-size: clamp(1.1rem, 4vw, 1.9rem);
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.15s;
}

.mobile-nav-sub a:hover {
  color: rgba(255,255,255,0.85);
}

/* Mobile menu footer */
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease) 0.45s, transform 0.4s var(--ease) 0.45s;
}

.mobile-menu.is-open .mobile-menu-foot {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mobile-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-social a {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.mobile-social a:hover {
  color: white;
}

/* ==========================================
   Hero
   ========================================== */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Gradient from bottom so text is legible */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.2) 50%,
    transparent 100%
  );
}

.hero-body {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  width: 100%;
}

.hero-body .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.25rem, 6vw, 5rem);
  color: white;
  max-width: 15ch;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 44ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  right: var(--pad);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  animation: scrollFade 2.5s ease infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

@keyframes scrollFade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}

/* ==========================================
   Mission / text sections
   ========================================== */

.section-mission {
  background: var(--white);
  text-align: center;
}

.mission-text {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  margin-inline: auto;
}

.mission-text strong {
  font-weight: 800;
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mission-tag::before,
.mission-tag::after {
  content: '';
  display: block;
  height: 1px;
  width: 2rem;
  background: var(--border);
}

/* ==========================================
   Photo grid — editorial style
   ========================================== */

.photo-section {
  background: var(--bg);
  padding-block: 0;
}

/*
  This wraps the WordPress gallery block output
  and the custom photo grid
*/
.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}

.photo-grid-item {
  overflow: hidden;
  background: #ddd;
}

.photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.photo-grid-item:hover img {
  transform: scale(1.04);
}

/*
  Desktop layout — 7 photos, 12-column grid, 3 rows:
  Row 1: [1·7cols·rowspan2]  [2·5cols]
  Row 2: [1 continues]       [3·3cols] [4·2cols]
  Row 3: [5·4cols] [6·4cols] [7·4cols]
  8th photo is fetched for mobile but hidden on desktop.
*/
.photo-grid-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.photo-grid-item:nth-child(2) { grid-column: span 5; }
.photo-grid-item:nth-child(3) { grid-column: span 3; }
.photo-grid-item:nth-child(4) { grid-column: span 2; }
.photo-grid-item:nth-child(5) { grid-column: span 4; }
.photo-grid-item:nth-child(6) { grid-column: span 4; }
.photo-grid-item:nth-child(7) { grid-column: span 4; }
/* 8th photo shown on mobile only */
.photo-grid-item:nth-child(8) { display: none; }

/* ==========================================
   Feature row — split layout
   ========================================== */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-photo {
  overflow: hidden;
  background: #ccc;
  position: relative;
}

.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-body {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
}

.feature-body h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.feature-body p {
  color: #444;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.feature-body .btn {
  align-self: flex-start;
}

/* ==========================================
   Community / About strip
   ========================================== */

.about-strip {
  background: var(--ink);
  color: white;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.about-strip h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: white;
  margin-bottom: 1.25rem;
}

.about-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-strip p:last-of-type {
  margin-bottom: 2rem;
}

.about-strip-stat {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item {
  border-left: 2px solid var(--red);
  padding-left: 1.25rem;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* ==========================================
   Quran quote / full-width text
   ========================================== */

.quote-section {
  background: var(--bg);
  text-align: center;
}

.site-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.7;
  color: #333;
  max-width: 36ch;
  margin-inline: auto;
}

.site-quote cite {
  display: block;
  font-style: normal;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1.5rem;
}

/* ==========================================
   Instagram CTA section
   ========================================== */

.instagram-cta {
  background: var(--green);
  color: white;
  text-align: center;
}

.instagram-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: white;
  margin-bottom: 0.875rem;
}

.instagram-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.instagram-cta-actions {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   Donate strip
   ========================================== */

.donate-strip {
  background: var(--red);
  color: white;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.donate-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.donate-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: white;
  max-width: 20ch;
}

.donate-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  max-width: 38ch;
}

.donate-strip-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.donate-strip-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--red);
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
}

/* ==========================================
   Site Footer
   ========================================== */

.site-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.65);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-brand .site-logo img {
  height: 44px;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-social a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: white;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-block: 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

.footer-credit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

.footer-credit a {
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

.footer-credit a:hover {
  color: rgba(255,255,255,0.75);
}

/* ==========================================
   Blank canvas page template
   ========================================== */

/*
  padding-top: 0 lets custom blocks fill the viewport all the way
  to the top — the fixed header (always opaque/solid on inner pages)
  naturally overlays the first block's background with no visible gap.
  When the page title IS shown, .page-title-area handles header clearance.
*/
.page-canvas {
  padding-top: 0;
}

/*
  page.php content area modifiers.
  --inner: follows the page title bar, so just a comfortable top gap.
  --standalone: title is hidden; exactly one header-height clears the
  fixed bar with zero extra whitespace showing.
*/
.entry-content.entry-content--inner {
  padding-top: 2.5rem;
}

.entry-content.entry-content--standalone {
  padding-top: var(--header-h);
}

/* When a page has no hero (inner pages) */
.page-has-title .page-title-area {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-has-title.hide-page-title .page-title-area {
  display: none;
}

.page-title-area h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

/* Gutenberg content area */
.entry-content {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.entry-content > * + * {
  margin-top: 1.5rem;
}

.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.entry-content h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.entry-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--red);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  list-style: disc;
}

.entry-content ul li,
.entry-content ol li {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}

.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #555;
  background: rgba(0,0,0,0.03);
}

/* ==========================================
   WordPress gallery block styling
   ========================================== */

/* Style native WP gallery to match our editorial grid */
.wp-block-gallery {
  gap: 4px !important;
}

.wp-block-gallery .wp-block-image {
  margin: 0 !important;
}

.wp-block-gallery .wp-block-image img {
  border-radius: 0 !important;
}

/* ==========================================
   Single post
   ========================================== */

.post-hero {
  padding-top: var(--header-h);
  background: var(--ink);
}

.post-hero-img {
  aspect-ratio: 21/9;
  overflow: hidden;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.post-meta-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
}

.post-meta-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.post-category-label {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.post-body {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.post-body .entry-content {
  padding-block: 0;
}

/* ==========================================
   404 page
   ========================================== */

.error-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  padding-top: var(--header-h);
}

.error-page h1 {
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.05em;
  line-height: 1;
}

.error-page h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ==========================================
   Pagination
   ========================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-block: 2rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ==========================================
   Focus styles
   ========================================== */

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .about-strip-inner {
    grid-template-columns: 1fr;
  }

  .about-strip-stat {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .photo-grid {
    grid-auto-rows: 200px;
  }
}

@media (max-width: 900px) {
  .primary-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .feature-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-photo {
    aspect-ratio: 4/3;
    height: auto;
  }

  /*
    Mobile grid — 8 photos, 6-column:
    Row 1: [1·full]
    Row 2: [2·3] [3·3]
    Row 3: [4·2] [5·4]
    Row 4: [6·full]
    Row 5: [7·3] [8·3]
  */
  .photo-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }

  .photo-grid-item:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .photo-grid-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
  .photo-grid-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
  .photo-grid-item:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .photo-grid-item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
  .photo-grid-item:nth-child(6) { grid-column: span 6; grid-row: span 1; }
  .photo-grid-item:nth-child(7) { grid-column: span 3; grid-row: span 1; }
  .photo-grid-item:nth-child(8) { display: block; grid-column: span 3; grid-row: span 1; }
}

@media (max-width: 900px) {
  /* Legacy compat */
  .post-featured {
    grid-template-columns: 1fr;
  }

  .post-featured-img {
    aspect-ratio: 16/9;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-featured-image img {
    aspect-ratio: 16/9;
  }

  /* New blog layout */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-featured-inner {
    grid-template-columns: 1fr;
  }

  .blog-featured-img {
    aspect-ratio: 16/9;
  }

}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .donate-strip-inner {
    flex-direction: column;
  }

  .about-strip-stat {
    flex-direction: column;
  }

  /* At very small screens fall back to a 2-col grid */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  /* Reset all to 1 column */
  .photo-grid-item:nth-child(n) {
    display: block;
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Full-width accent photos */
  .photo-grid-item:nth-child(1),
  .photo-grid-item:nth-child(6) {
    grid-column: span 2;
  }

  .instagram-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Blog on mobile */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blog-featured-inner {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
  }

  .blog-featured-img {
    width: calc(100vw + 2px);
    max-width: none;
    margin-left: -1px;
    margin-right: -1px;
    display: block;
    background-size: cover;
    background-position: center center;
  }

  /* Single post tweaks */
  .post-author-box {
    flex-direction: column;
  }

  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   Newsletter section
   Clean editorial layout on warm background.
   FluentForms renders naturally on light bg.
   ========================================== */

.newsletter-section {
  background: var(--white);
  border-top: 3px solid var(--red);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.newsletter-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(2.5rem, 6vw, 6rem);
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.newsletter-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 1rem;
}

.newsletter-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 100%;
}

.newsletter-form-col {
  flex: 1.4;
  min-width: 280px;
  padding-top: 0.5rem;
}

/* FluentForms — clean overrides for light background */
.newsletter-form-col .ff-form-wrap {
  max-width: 100% !important;
}

/*
  Input: explicit height so em-based padding can't vary by font-size.
  Both input and button lock to the same 52px so they are identical in height.
*/
.newsletter-form-col .ff-el-form-control,
.newsletter-form-col input[type="email"],
.newsletter-form-col input[type="text"] {
  height: 52px !important;
  padding: 0 1em !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 2px !important;
  box-sizing: border-box !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  background: var(--bg) !important;
  color: var(--ink) !important;
  transition: border-color 0.15s !important;
  display: block !important;
  width: 100% !important;
}

.newsletter-form-col .ff-el-form-control:focus,
.newsletter-form-col input:focus {
  border-color: var(--ink) !important;
  outline: none !important;
  box-shadow: none !important;
}

/*
  Align FluentForms two-column row at the bottom.
  The email column is taller (label + input). Setting flex-end
  means both columns share the same bottom edge, so the button
  sits exactly level with the email input.
*/
.newsletter-form-col .ff-t-container {
  align-items: flex-end !important;
}

/*
  Button: same 52px height as the input, zero vertical padding so
  the browser centres the text. Font size can stay small because
  height is fixed in px, not em.
*/
.newsletter-form-col .ff-btn,
.newsletter-form-col button[type="submit"],
.newsletter-form-col input[type="submit"] {
  height: 52px !important;
  padding: 0 2.25em !important;
  box-sizing: border-box !important;
  background: var(--red) !important;
  color: white !important;
  border: none !important;
  border-radius: 2px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}

.newsletter-form-col .ff-btn:hover,
.newsletter-form-col button[type="submit"]:hover {
  background: #a01422 !important;
}

/* ==========================================
   Blog index — editorial layout
   ========================================== */

/* ── Blog masthead (dark header) ── */
.blog-masthead {
  background: var(--ink);
  color: white;
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 3.5rem;
}

.blog-masthead .eyebrow {
  color: rgba(255,255,255,0.35);
}

.blog-masthead h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: white;
  margin-bottom: 0.75rem;
}

.blog-masthead p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 42ch;
  line-height: 1.65;
  margin: 0;
}

/* ── Featured post ── */
.blog-featured {
  background: var(--bg);
  border-bottom: 3px solid var(--border);
}

.blog-featured-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 500px;
  text-decoration: none;
  color: inherit;
}

.blog-featured-img {
  background-color: var(--green);
  background-size: cover;
  background-position: center;
  transition: filter 0.5s var(--ease);
}

.blog-featured-inner:hover .blog-featured-img {
  filter: brightness(0.88);
}

.blog-featured-img-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--green), var(--hero-dark));
}

.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--white);
}

/* Category pill */
.post-pill {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.post-pill--sm {
  font-size: 0.58rem;
  padding: 0.3em 0.75em;
  margin-bottom: 0.75rem;
}

.blog-featured-title {
  font-size: clamp(1.6rem, 2.75vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
  transition: color 0.2s;
  max-width: 18ch;
}

.blog-featured-inner:hover .blog-featured-title {
  color: var(--green);
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 1.75rem;
  max-width: 48ch;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.blog-featured-meta .dot {
  opacity: 0.35;
}

.blog-meta-avatar {
  border-radius: 50%;
  display: block !important;
  object-fit: cover;
  flex-shrink: 0;
}

/* ── Blog grid ── */
.blog-grid-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.blog-card-img-link {
  display: block;
  overflow: hidden;
}

.blog-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e5df;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--hero-dark) 100%);
}

.blog-card-thumb-empty span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.blog-card-title a {
  color: var(--ink);
  transition: color 0.15s;
}

.blog-card-title a:hover {
  color: var(--green);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: auto;
  flex-wrap: wrap;
}

.blog-card-meta .dot {
  opacity: 0.35;
}

/* No posts state */
.no-posts {
  padding: 6rem 0;
  text-align: center;
}

.no-posts p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Legacy classes kept for backward compat */
.post-card-read {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

/* No posts state */
.no-posts {
  padding: 6rem 0;
  text-align: center;
}

.no-posts p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* ==========================================
   Single post — improved
   ========================================== */

.post-header {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.post-header-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.post-header-cat a {
  color: inherit;
  transition: opacity 0.15s;
}

.post-header-cat a:hover { opacity: 0.7; }

.post-header h1,
.post-header-h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  letter-spacing: -0.035em;
  max-width: 22ch;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.post-header-avatar {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  width: 36px !important;
  height: 36px !important;
  object-fit: cover;
}

.post-header-meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.post-header-meta-text strong {
  font-weight: 700;
  color: var(--ink);
}

.post-header-meta-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.post-featured-image {
  background: var(--ink);
  line-height: 0;
}

.post-featured-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  opacity: 0.92;
}

.post-content-wrap {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.post-body-text {
  max-width: 68ch;
  padding-block: 0;
}

/* Tags */
.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.post-tags a {
  color: var(--green);
  transition: color 0.15s;
}

.post-tags a:hover {
  color: var(--ink);
}

/* ── Share buttons ────────────────────────────────────────── */

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 68ch;
  padding-block: 1.75rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

.post-share-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.post-share-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.1em;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.post-share-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.post-share-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.post-share-btn svg[stroke="currentColor"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.post-share-btn.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ── Author box ───────────────────────────────────────────── */

.post-author-box {
  max-width: 68ch;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 2px;
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.post-author-avatar {
  flex-shrink: 0;
}

.post-author-img {
  display: block;
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-author-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-author-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.post-author-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #555;
  max-width: 54ch;
  margin: 0.25rem 0 0;
}

/* ── Post navigation ──────────────────────────────────────── */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.post-nav-item {
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.post-nav-item:hover {
  background: #f0ede8;
}

.post-nav-item.next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ── Comments area ────────────────────────────────────────── */

.comments-area {
  max-width: 68ch;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.comments-heading {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.mcc-comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mcc-comment:last-child {
  border-bottom: none;
}

.comment-article {
  /* container */
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.comment-avatar img,
.comment-author-row .avatar {
  border-radius: 50%;
  display: block;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-author-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.comment-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.comment-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.comment-reply-wrap {
  margin-left: auto;
}

.comment-reply-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  transition: color 0.15s;
}

.comment-reply-link:hover {
  color: var(--ink);
}

.comment-moderation {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.comment-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  max-width: 60ch;
  margin: 0;
}

.comment-text p + p {
  margin-top: 0.875rem;
}

.comment-pagination {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-pagination a {
  color: var(--green);
}

.comments-closed {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Comment form */
.comment-respond {
  margin-top: 3rem;
}

.comment-form-heading {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.comment-form .required {
  color: var(--red);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  display: block;
  width: 100%;
  padding: 0.8em 1em;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.5;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
  appearance: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form p {
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.comment-form-email-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.3rem;
  margin-bottom: 0 !important;
}

.comment-form-submit {
  margin-top: 0.5rem;
}

.comment-submit {
  /* inherits .btn .btn-red */
}

/* ==========================================
   Print
   ========================================== */

@media print {
  .site-header,
  .mobile-menu,
  .hero-scroll {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* ==========================================
   MCC Blog Mobile + Single Post Refinement
   Added to improve the all-posts page and individual post page.
   ========================================== */

.blog-featured-inner,
.blog-card,
.post-author-box {
  min-width: 0;
}

.blog-card-title,
.blog-featured-title,
.blog-card-meta,
.blog-featured-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .blog-masthead {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 2.25rem;
  }

  .blog-masthead h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .blog-featured-inner {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .blog-featured-img {
    aspect-ratio: 16 / 8.5;
    min-height: 185px;
    max-height: 260px;
  }

  .blog-featured-body {
    padding: 1.75rem;
  }

  .blog-featured-title {
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    margin-bottom: 0.75rem;
  }

  .blog-featured-excerpt {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .blog-grid-section {
    padding-block: 2rem 3rem;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem;
  }

  .blog-card {
    width: 100%;
  }

  .blog-card-body {
    padding: 1.25rem;
  }

  .blog-card-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 640px) {
  .blog-masthead {
    padding-top: calc(var(--header-h) + 1.75rem);
    padding-bottom: 2rem;
  }

  .blog-masthead p {
    font-size: 0.94rem;
  }

  .blog-featured-img {
    aspect-ratio: 16 / 9;
    min-height: 165px;
    max-height: 220px;
  }

  .blog-featured-body {
    padding: 1.35rem;
  }

  .blog-featured-meta,
  .blog-card-meta {
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  .blog-card-thumb {
    aspect-ratio: 16 / 9.5;
  }

  .post-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
}

/* Individual post author area: editorial profile strip, not generic AI-card style */
.post-author-box {
  position: relative;
  max-width: 68ch;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.4rem 0 1.6rem;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--border);
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.post-author-box::before {
  content: "Contributor";
  position: absolute;
  top: -0.82rem;
  left: 0;
  background: var(--bg);
  color: var(--red);
  padding-right: 0.75rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.post-author-avatar {
  grid-row: 1 / span 2;
}

.post-author-img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px;
  border: 3px solid var(--white);
  outline: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.post-author-info {
  gap: 0.2rem;
}

.post-author-eyebrow {
  color: var(--green);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.post-author-name {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.post-author-bio {
  max-width: 58ch;
  font-size: 0.9rem;
  color: #4f4a42;
}

@media (max-width: 640px) {
  .post-header {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 2rem;
  }

  .post-header h1,
  .post-header-h1 {
    font-size: clamp(1.9rem, 10vw, 2.65rem);
  }

  .post-featured-image img {
    aspect-ratio: 16 / 10;
  }

  .post-content-wrap {
    padding-block: 2.5rem 3.5rem;
  }

  .post-author-box {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 1.35rem 0 1.45rem;
    gap: 0.85rem 1rem;
  }

  .post-author-img {
    width: 56px !important;
    height: 56px !important;
  }

  .post-author-bio {
    grid-column: 1 / -1;
    font-size: 0.88rem;
    margin-top: 0.25rem;
  }
}

/* Latest blog/header refinements */
.mobile-nav-group-label {
  display: block;
  cursor: default;
}

@media (max-width: 640px) {
  .blog-featured,
  .blog-featured-inner {
    overflow: hidden;
  }

  .blog-featured-img {
    width: calc(100vw + 2px) !important;
    min-width: calc(100vw + 2px);
    margin-left: -1px;
    margin-right: -1px;
  }
}
