/*
Theme Name: Yellanda
Theme URI: https://www.yellanda.in/
Author: Yellanda Community
Author URI: https://www.yellanda.in/
Description: Custom bilingual (English/Telugu) one-page theme for the Yellanda village website. Built from the approved static design, no page builder or third-party plugin required.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yellanda
*/

/* ============================================================
   YELLANDA — Design tokens
   ============================================================ */
:root {
  /* Color */
  --color-primary: #173B2F;      /* deep forest green */
  --color-primary-light: #23533F;
  --color-secondary: #B65F3A;    /* earth / terracotta */
  --color-accent: #D9A441;       /* harvest gold */
  --color-background: #F7F4EC;   /* warm ivory */
  --color-surface: #FFFFFF;
  --color-text: #17201C;         /* charcoal */
  --color-muted: #65706A;        /* muted slate */
  --color-border: rgba(23, 32, 28, 0.12);

  /* Type */
  --font-en: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-en-editorial: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-te: 'Noto Sans Telugu', 'Manrope', system-ui, sans-serif;

  --h1: clamp(2.5rem, 4.5vw + 1rem, 4.5rem);
  --h2: clamp(1.9rem, 2.4vw + 1rem, 3rem);
  --h3: clamp(1.3rem, 1vw + 1rem, 1.875rem);
  --body: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  --small: clamp(0.8125rem, 0.2vw + 0.75rem, 0.9375rem);

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 14px;
  --shadow: 0 1px 2px rgba(23,32,28,0.06), 0 8px 24px rgba(23,32,28,0.06);
  --shadow-lift: 0 16px 40px rgba(23,32,28,0.14), 0 4px 12px rgba(23,32,28,0.08);
  --container: 1240px;
  --dur: 220ms;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-en);
  font-size: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.stats-grid > *, .community-grid > *, .dev-grid > *, .news-grid > *, .story-grid > *, .places-grid > *, .footer-grid > * { min-width: 0; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-en-editorial); line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* Telugu type gets its own stack + slightly larger line-height for conjuncts */
[data-lang="te"] body, .lang-te { font-family: var(--font-te); }
[data-lang="te"] h1, [data-lang="te"] h2, [data-lang="te"] h3 { font-family: var(--font-te); line-height: 1.3; }

/* Language toggle visibility */
[data-lang="en"] .lang-te { display: none; }
[data-lang="te"] .lang-en { display: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
@media (min-width: 768px) { .container { padding-inline: var(--sp-7); } }

section { padding-block: var(--sp-9); }
@media (max-width: 640px) { section { padding-block: var(--sp-7); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--color-accent); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head p { color: var(--color-muted); margin-top: var(--sp-4); }
.section-head.center { margin-inline: auto; text-align: center; }

.muted { color: var(--color-muted); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

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

/* ============================================================
   Buttons & badges
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--small);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: normal;
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: var(--color-primary); }
.btn-accent:hover { transform: translateY(-1px); }

.badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  font-size: var(--small);
  font-weight: 700;
  background: rgba(182,95,58,0.12);
  color: var(--color-secondary);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,236,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--dur) var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); padding-block: var(--sp-4); transition: padding var(--dur) var(--ease); }
.site-header.is-compact .container { padding-block: var(--sp-2); }

.wordmark { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.wordmark .en { font-family: var(--font-en-editorial); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--color-primary); }
.wordmark .te { font-family: var(--font-te); font-size: 0.95rem; color: var(--color-secondary); margin-top: 2px; }

.primary-nav { display: none; }
@media (min-width: 1024px) {
  .primary-nav { display: flex; align-items: center; gap: var(--sp-6); }
  .primary-nav a { text-decoration: none; font-weight: 600; font-size: var(--small); color: var(--color-text); position: relative; padding-block: var(--sp-2); }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
  .primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
  .primary-nav a.active { color: var(--color-primary); }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-4); }

.lang-switch { display: flex; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; font-size: var(--small); font-weight: 700; }
.lang-switch button { border: 0; background: transparent; padding: var(--sp-2) var(--sp-4); cursor: pointer; color: var(--color-muted); }
.lang-switch button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }

.header-actions .btn-primary { display: none; }
@media (min-width: 1024px) { .header-actions .btn-primary { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed; inset: 0; top: 0; background: var(--color-primary); color: #fff;
  transform: translateY(-100%); transition: transform var(--dur) var(--ease);
  z-index: 99; padding: var(--sp-9) var(--sp-5) var(--sp-6); overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-size: 1.5rem; font-family: var(--font-en-editorial); padding-block: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,0.15); }
.mobile-nav .btn { margin-top: var(--sp-6); }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 0; }
.hero-media {
  position: relative; min-height: 620px;
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #23533F 0%, #173B2F 55%, #10281F 100%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,20,15,0.78) 0%, rgba(10,20,15,0.35) 45%, rgba(10,20,15,0.15) 100%);
}
.hero-placeholder-label {
  position: absolute; top: var(--sp-5); right: var(--sp-5); z-index: 1;
  font-size: var(--small); letter-spacing: 0.06em; color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.hero-content { position: relative; z-index: 2; padding: var(--sp-8) var(--sp-5) var(--sp-8); width: 100%; }
.hero-content .container { max-width: 780px; margin: 0 auto 0 0; }
.hero .eyebrow { color: var(--color-accent); }
.hero .eyebrow::before { background: var(--color-accent); }
.hero h1 { color: #fff; }
.hero h1 .te { display: block; font-family: var(--font-te); font-size: clamp(1.6rem, 2.5vw + 1rem, 2.6rem); color: var(--color-accent); margin-top: var(--sp-2); font-weight: 600; }
.hero .support { font-family: var(--font-en-editorial); font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); color: #EDEAE0; margin-top: var(--sp-4); }
.hero .desc { color: rgba(255,255,255,0.82); margin-top: var(--sp-4); max-width: 55ch; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-7); }

/* ============================================================
   Stats
   ============================================================ */
.stats { padding-block: var(--sp-7); background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--sp-6); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat-item { display: flex; flex-direction: column; gap: var(--sp-1); border-left: 2px solid var(--color-accent); padding-left: var(--sp-4); }
.stat-num { font-family: var(--font-en-editorial); font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); font-weight: 800; color: var(--color-primary); }
.stat-label { font-size: var(--small); color: var(--color-muted); font-weight: 600; }

/* ============================================================
   About (editorial split)
   ============================================================ */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.split.reverse .split-media { order: 2; }
.split-media { aspect-ratio: 4/5; }
@media (min-width: 900px) { .split.reverse .split-media { order: 2; } .split .split-media { order: 1; } .split.reverse .split-text { order: 1; } }
.split-text p + p { margin-top: var(--sp-4); }
.split-text .read-more { display: inline-flex; margin-top: var(--sp-5); font-weight: 700; color: var(--color-secondary); text-decoration: none; gap: var(--sp-2); }

.img-placeholder {
  position: relative; width: 100%; height: 100%; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #E7E0CC 0%, #D9CDA8 100%);
  display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.img-placeholder span {
  font-size: var(--small); font-weight: 700; letter-spacing: 0.06em; color: #8A7A52; text-transform: uppercase; text-align: center; padding: var(--sp-4);
  overflow-wrap: break-word; max-width: 100%;
}
.img-placeholder svg { position: absolute; opacity: 0.15; width: 45%; height: 45%; color: var(--color-secondary); }
.img-placeholder img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Full-bleed story band (Land)
   ============================================================ */
.band { position: relative; color: #fff; }
.band-media {
  position: relative; min-height: 460px; display: flex; align-items: center;
  background: linear-gradient(150deg,#3C6B4A,#173B2F 60%,#12241C);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.band-media::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(10,20,15,0.85) 0%, rgba(10,20,15,0.35) 60%, rgba(10,20,15,0.1) 100%); }
.band-content { position: relative; z-index: 1; padding-block: var(--sp-8); width: 100%; }
.band-content .container { max-width: 640px; }
.band .hero-placeholder-label { top: var(--sp-5); right: var(--sp-5); }
.band .eyebrow { color: var(--color-accent); }
.band .eyebrow::before { background: var(--color-accent); }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.85); margin-top: var(--sp-4); }

/* ============================================================
   Places grid (asymmetric)
   ============================================================ */
.places-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(6, minmax(0,1fr)); }
.place-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface);
  box-shadow: var(--shadow); grid-column: span 6;
  text-decoration: none; color: inherit; display: block;
  transition: transform var(--dur) var(--ease);
}
.place-card:hover { transform: translateY(-4px); }
@media (min-width: 640px) {
  .place-card:nth-child(1) { grid-column: span 4; }
  .place-card:nth-child(2) { grid-column: span 2; }
  .place-card:nth-child(3) { grid-column: span 2; }
  .place-card:nth-child(4) { grid-column: span 4; }
  .place-card:nth-child(5) { grid-column: span 3; }
  .place-card:nth-child(6) { grid-column: span 3; }
}
.place-card .img-placeholder { aspect-ratio: 4/3; border-radius: 0; }
.place-card .place-body { padding: var(--sp-5); }
.place-card h3 { font-size: 1.15rem; }
.place-card p { color: var(--color-muted); margin-top: var(--sp-2); font-size: var(--small); }
.place-card .link { margin-top: var(--sp-3); display: inline-flex; gap: var(--sp-2); font-weight: 700; color: var(--color-secondary); font-size: var(--small); }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; margin-top: var(--sp-7); }
.timeline::before { content:""; position:absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
@media (min-width: 768px) { .timeline::before { left: 50%; transform: translateX(-1px); } }
.timeline-item { position: relative; padding-left: var(--sp-7); margin-bottom: var(--sp-7); }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content:""; position:absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent); border: 3px solid var(--color-background); }
@media (min-width: 768px) {
  .timeline-item { width: 46%; padding-left: 0; padding-right: var(--sp-7); text-align: right; }
  .timeline-item::before { left: auto; right: -4.1%; }
  .timeline-item:nth-child(even) { margin-left: 54%; padding-right: 0; padding-left: var(--sp-7); text-align: left; }
  .timeline-item:nth-child(even)::before { right: auto; left: -4.6%; }
}
.timeline-year { font-family: var(--font-en-editorial); font-weight: 800; color: var(--color-secondary); font-size: 1.2rem; }
.timeline-item h3 { margin-top: var(--sp-1); }
.timeline-item p { color: var(--color-muted); margin-top: var(--sp-2); }

/* ============================================================
   Community
   ============================================================ */
.community-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 640px) { .community-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.community-grid .img-placeholder { aspect-ratio: 3/4; }
.community-grid figcaption { margin-top: var(--sp-3); font-size: var(--small); color: var(--color-muted); }

/* ============================================================
   Development
   ============================================================ */
.dev-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: var(--sp-7); }
@media (min-width: 768px) { .dev-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.dev-item { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow); }
.dev-item .icon { width: 40px; height: 40px; color: var(--color-secondary); margin-bottom: var(--sp-4); }
.dev-item h3 { font-size: 1.05rem; }
.dev-item p { color: var(--color-muted); margin-top: var(--sp-2); font-size: var(--small); }

/* ============================================================
   News
   ============================================================ */
.news-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.news-card {
  background: var(--color-surface); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.news-card .img-placeholder { aspect-ratio: 16/10; border-radius: 0; }
.news-card .news-body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.news-meta { display: flex; gap: var(--sp-3); align-items: center; font-size: var(--small); color: var(--color-muted); }
.news-card h3 { font-size: 1.15rem; margin-top: var(--sp-1); }
.news-card p { color: var(--color-muted); font-size: var(--small); }
.news-card .link { margin-top: auto; font-weight: 700; color: var(--color-secondary); text-decoration: none; font-size: var(--small); padding-top: var(--sp-3); }

/* ============================================================
   Gallery (masonry via CSS columns)
   ============================================================ */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.gallery-tabs button { border: 1px solid var(--color-border); background: var(--color-surface); padding: var(--sp-2) var(--sp-5); border-radius: 999px; font-size: var(--small); font-weight: 700; cursor: pointer; color: var(--color-muted); }
.gallery-tabs button[aria-pressed="true"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.masonry { columns: 2 220px; column-gap: var(--sp-4); }
@media (min-width: 768px) { .masonry { columns: 4 240px; } }
.masonry .tile { break-inside: avoid; margin-bottom: var(--sp-4); border: 0; padding: 0; background: none; cursor: pointer; width: 100%; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.masonry .img-placeholder { border-radius: var(--radius-lg); }
.masonry .tile:nth-child(3n+1) .img-placeholder { aspect-ratio: 3/4; }
.masonry .tile:nth-child(3n+2) .img-placeholder { aspect-ratio: 1/1; }
.masonry .tile:nth-child(3n) .img-placeholder { aspect-ratio: 4/5; }

dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 90vw; max-height: 90vh; }
dialog#lightbox::backdrop { background: rgba(10,20,15,0.85); }
dialog#lightbox .lightbox-inner { position: relative; width: min(90vw, 900px); }
dialog#lightbox .img-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
dialog#lightbox .close-btn { position: absolute; top: -44px; right: 0; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

/* ============================================================
   Map
   ============================================================ */
.map-wrap { display: grid; gap: var(--sp-7); }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.1fr 0.9fr; } }
.map-static { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: #E7E0CC; position: relative; }
.map-static iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.05); }
.map-facts dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-5); }
.map-facts dt { font-weight: 700; color: var(--color-muted); font-size: var(--small); }
.map-facts dd { margin: 0; font-weight: 600; }

/* ============================================================
   People & stories
   ============================================================ */
.story-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.story-card { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.story-card .img-placeholder { aspect-ratio: 1/1; border-radius: 0; }
.story-card .story-body { padding: var(--sp-5); }
.story-card .role { color: var(--color-secondary); font-weight: 700; font-size: var(--small); }
.story-card p.quote { margin-top: var(--sp-3); color: var(--color-muted); font-style: italic; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--color-primary); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.82); margin-top: var(--sp-4); max-width: 55ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; margin-top: var(--sp-7); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #10281F; color: rgba(255,255,255,0.85); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-4); }
.footer-grid ul li + li { margin-top: var(--sp-2); }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: var(--small); }
.footer-grid a:hover { color: #fff; }
.footer-brand .wordmark .en, .footer-brand .wordmark .te { color: #fff; }
.footer-brand p { margin-top: var(--sp-4); color: rgba(255,255,255,0.65); max-width: 34ch; font-size: var(--small); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--sp-8); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; font-size: var(--small); color: rgba(255,255,255,0.55); }

/* ============================================================
   Reveal-on-scroll (progressive enhancement)
   ============================================================ */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

.verify-note { display: inline-block; margin-top: var(--sp-3); font-size: var(--small); color: var(--color-secondary); background: rgba(182,95,58,0.08); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   WordPress core alignment / caption defaults (native blocks & CPT admin content)
   ============================================================ */
.alignwide { max-width: calc(var(--container) + var(--sp-7) * 2); margin-inline: auto; }
.alignfull { max-width: none; }
.wp-caption, .wp-block-image { max-width: 100%; }
.wp-caption-text { font-size: var(--small); color: var(--color-muted); margin-top: var(--sp-2); }
.page-content { padding-block: var(--sp-9); }
.page-content .container { max-width: 780px; }

/* ============================================================
   Blog post content — the reset above (p{margin:0}, ul{list-style:none})
   is right for hand-built sections but wrong for freeform block-editor
   content, so restore normal prose defaults scoped to .entry-content.
   ============================================================ */
.entry-content { margin-top: var(--sp-6); font-size: 1rem; }
.entry-content > * + * { margin-top: var(--sp-6); }
.entry-content h2 { font-size: 1.35rem; margin-top: var(--sp-8); }
.entry-content h3 { font-size: 1.15rem; margin-top: var(--sp-7); }
.entry-content p { line-height: 1.75; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: var(--sp-2); }
.entry-content a { color: var(--color-secondary); text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--color-accent); padding: var(--sp-4) var(--sp-6); background: var(--color-surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: var(--color-muted); font-style: italic; }
.entry-content img { border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.entry-content hr { border: 0; border-top: 1px solid var(--color-border); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: var(--sp-3); text-align: left; }

/* ============================================================
   Blog pagination (the_posts_pagination() core markup)
   ============================================================ */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: var(--sp-3); border: 1px solid var(--color-border); border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: var(--small); color: var(--color-muted); }
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ============================================================
   Single post — editorial layout: feature image, then title,
   then byline, then body, then an author card and related stories.
   ============================================================ */
.post-page { padding-block: var(--sp-9); }

.back-link-plain {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--color-muted); text-decoration: none; font-weight: 700; font-size: var(--small);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
  margin-bottom: var(--sp-6);
}
.back-link-plain:hover { color: var(--color-primary); transform: translateX(-3px); }

.post-feature-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; margin-bottom: var(--sp-8); }
.post-feature-image img { width: 100%; height: 100%; object-fit: cover; }

.post-header { margin-bottom: var(--sp-8); padding-bottom: var(--sp-7); border-bottom: 1px solid var(--color-border); }
.post-header h1 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem); line-height: 1.25; margin-top: var(--sp-5); }

.post-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-5); font-size: var(--small); font-weight: 600; color: var(--color-muted); }

.post-tags { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-9); }
.post-tags a {
  display: inline-block; padding: var(--sp-2) var(--sp-4); border-radius: 999px;
  background: rgba(182,95,58,0.1); color: var(--color-secondary); font-size: var(--small); font-weight: 700; text-decoration: none;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.post-tags a:hover { background: rgba(182,95,58,0.18); transform: translateY(-2px); }

.author-bio {
  display: flex; align-items: center; gap: var(--sp-5);
  margin-top: var(--sp-9); padding: var(--sp-6); border-radius: var(--radius-xl);
  background: rgba(23,59,47,0.06);
}
.author-bio img.avatar { border-radius: 50%; display: block; }
.author-label { font-size: var(--small); color: var(--color-muted); font-weight: 600; }
.author-name { font-family: var(--font-en-editorial); font-weight: 800; font-size: 1.1rem; color: var(--color-primary); margin-top: var(--sp-1); }
.author-desc { font-size: var(--small); color: var(--color-muted); margin-top: var(--sp-2); }

.related-stories { padding-block: var(--sp-9); }
