/*
Theme Name: CitySaver
Theme URI: https://city-saver.vercel.app/app
Author: City Saver
Author URI: https://city-saver.vercel.app
Description: A local city community portal — real needs, real neighbors, real outcomes.
Version: 19.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: citysaver
Tags: community, city, portal, needs, volunteer
*/

/* ========================================
   RESET & BASE
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-50: #f0f3f9;
  --navy-100: #dce3f0;
  --navy-200: #b8c8e2;
  --navy-400: #5e7fb5;
  --navy-600: #2d4578;
  --navy-700: #1e3460;
  --navy-800: #172a4d;
  --navy-900: #101d38;
  --navy-950: #0a1226;

  --gold-50: #fdf9ef;
  --gold-100: #fbf0d4;
  --gold-200: #f6dea4;
  --gold-300: #f0c76b;
  --gold-400: #e6a934;
  --gold-500: #d4982a;
  --gold-600: #b97a1e;

  --ink-50: #f7f8fa;
  --ink-100: #eef0f4;
  --ink-200: #dde1e9;
  --ink-300: #c0c7d4;
  --ink-400: #8d97a8;
  --ink-500: #5e687a;
  --ink-600: #404a5c;
  --ink-700: #2c3445;
  --ink-800: #1c2230;
  --ink-900: #0f1320;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(10, 18, 38, 0.04), 0 4px 14px rgba(10, 18, 38, 0.06);
  --shadow-sm: 0 1px 2px rgba(10, 18, 38, 0.05);

  --max-width: 1200px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-800);
  background: var(--ink-50);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy-900);
}

ul, ol {
  list-style: none;
}

/* ========================================
   UTILITIES
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section--alt {
  background: #f3f6f9;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
}

.section__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-600);
  transition: color 0.15s;
}

.section__link:hover {
  color: var(--gold-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold-400);
  color: var(--navy-900);
}

.btn--gold:hover {
  background: var(--gold-500);
}

.btn--navy {
  background: var(--navy-800);
  color: #fff;
}

.btn--navy:hover {
  background: var(--navy-900);
}

.btn--outline {
  background: #fff;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-200);
}

.btn--outline:hover {
  background: var(--navy-50);
}

/* Hero: Browse Needs only — black label on outline button */
a.btn.btn--outline.browse-needs-btn {
  color: #000000;
}

a.btn.btn--outline.browse-needs-btn:hover {
  color: #2a2a2a;
}

.btn--sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
}

/* ========================================
   TOP BAR
   ======================================== */

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--navy-950);
  color: var(--navy-400);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar__tagline {
  color: var(--navy-200);
  font-weight: 500;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 16px;
}

.topbar__links a {
  color: var(--navy-400);
  transition: color 0.15s;
}

.topbar__links a:hover {
  color: #fff;
}

/* ========================================
   HEADER / NAV
   ======================================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  position: static;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.site-logo__text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.site-logo__text span {
  color: var(--gold-500);
}

.site-logo__textwrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__line2 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
}

.main-nav a:hover,
.main-nav a.current {
  background: var(--navy-50);
  color: var(--navy-900);
}

.main-nav a.nav-savior {
  font-weight: 700;
  color: var(--navy-800);
}

.main-nav__dropdown {
  position: relative;
}

.main-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-600);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.main-nav__trigger:hover,
.main-nav__dropdown.is-current .main-nav__trigger,
.main-nav__dropdown.is-open .main-nav__trigger {
  background: var(--navy-50);
  color: var(--navy-900);
}

.main-nav__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.main-nav__dropdown.is-open .main-nav__trigger svg {
  transform: rotate(180deg);
}

.main-nav__flyout {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  min-width: 100%;
  padding-top: 8px;
}

.main-nav__dropdown.is-open .main-nav__flyout,
.main-nav__dropdown:hover .main-nav__flyout {
  display: block;
}

.main-nav__menu {
  min-width: 11rem;
  padding: 6px 0;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.main-nav__menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 0;
}

.main-nav__menu a:hover {
  background: var(--navy-50);
  color: var(--navy-900);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--navy-800);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.hero.hero--compact {
  padding: 10px 0 12px;
}

.hero.hero--compact::after {
  width: 200px;
  height: 200px;
  right: -30px;
  top: -30px;
}

.hero.hero--compact .hero__layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  justify-content: flex-start;
}

.hero.hero--compact .hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 32px;
}

.hero.hero--compact .hero__intro {
  max-width: 560px;
  min-width: 0;
}

.hero.hero--compact .hero__badge {
  margin-bottom: 6px;
  font-size: 0.7rem;
  padding: 3px 10px;
}

.hero.hero--compact .hero__title {
  font-size: 1.75rem;
  margin-bottom: 6px;
  line-height: 1.12;
}

.hero.hero--compact .hero__serving {
  display: none;
}

.hero.hero--compact .hero__desc {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 100%;
}

.hero.hero--compact .hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero.hero--compact .hero__actions {
  gap: 8px;
}

.hero.hero--compact .hero__submit-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
  max-width: 42rem;
}

.hero.hero--compact .hero__stats {
  gap: 18px;
  flex: 0 0 auto;
  align-self: center;
  justify-content: flex-end;
}

.hero.hero--compact .hero__stat-value {
  font-size: 1.3rem;
}

.hero.hero--compact .hero__stat-label {
  font-size: 0.68rem;
  margin-top: 2px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--gold-400);
  opacity: 0.06;
}

.hero .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 16px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-400);
}

.hero__serving {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 12px;
}

.hero__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy-200);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 32px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-300);
  margin-top: 4px;
}

/* ========================================
   NEED CARDS
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--preview .need-card__desc {
  -webkit-line-clamp: 2;
}

.need-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.need-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--ink-300);
}

.need-card__body {
  padding: 20px;
}

.need-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.badge--urgent {
  background: #fef2f2;
  color: #b91c1c;
}

.badge--volunteer {
  background: var(--navy-50);
  color: var(--navy-700);
}

.badge--donation {
  background: #faf5ff;
  color: #7e22ce;
}

.badge--category {
  background: var(--ink-50);
  color: var(--ink-600);
  border: 1px solid var(--ink-200);
}

.badge--active {
  background: #ecfdf5;
  color: #047857;
}

.badge--in-progress {
  background: #fffbeb;
  color: #b45309;
}

.badge--completed {
  background: var(--ink-100);
  color: var(--ink-600);
}

.need-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 8px;
}

.need-card__title a {
  color: inherit;
  transition: color 0.15s;
}

.need-card__title a:hover {
  color: var(--navy-600);
}

.need-card__desc {
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.need-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--ink-500);
}

.need-card__meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.need-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.need-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--ink-100);
}

.need-card__footer-actions {
  display: flex;
  gap: 8px;
}

/* ========================================
   OUTCOMES
   ======================================== */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.outcome-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  border-left: 3px solid #10b981;
}

.outcome-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.outcome-card__summary {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.outcome-card__check {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   TODAY FEED
   ======================================== */

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.today-editorial {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.today-editorial__top {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  gap: 20px;
}

.today-editorial__stack {
  display: grid;
  gap: 20px;
}

.today-editorial__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feed-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  overflow: hidden;
}

.feed-card:hover {
  border-color: var(--navy-200);
  box-shadow: 0 8px 26px rgba(10, 18, 38, 0.1);
  transform: translateY(-1px);
}

.feed-card__media-link {
  display: block;
}

.feed-card__media {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.feed-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy-800);
  background: linear-gradient(140deg, var(--navy-50), #fff);
}

.feed-card__media--need {
  background: linear-gradient(140deg, #fff3f2, #ffffff);
  color: #b42318;
}

.feed-card__media--outcome {
  background: linear-gradient(140deg, #f0fdf4, #ffffff);
  color: #166534;
}

.feed-card__media--event {
  background: linear-gradient(140deg, #fffbeb, #ffffff);
  color: #92400e;
}

.feed-card__media--resource {
  background: linear-gradient(140deg, #eff6ff, #ffffff);
  color: #1d4ed8;
}

.feed-card__media--citysavior {
  background: linear-gradient(140deg, #f5f3ff, #ffffff);
  color: #5b21b6;
}

.feed-card__media--update {
  background: linear-gradient(140deg, #fff7ed, #ffffff);
  color: #9a3412;
}

.feed-card__media--sponsored {
  background: linear-gradient(140deg, #f8fafc, #ffffff);
  color: #475569;
}

.feed-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.feed-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
}

.feed-card__badge--news {
  background: var(--navy-50);
  color: var(--navy-800);
}

.feed-card__badge--article {
  background: #eff6ff;
  color: #1e3a5f;
}

.feed-card__badge--event {
  background: var(--gold-100);
  color: var(--gold-600);
}

.feed-card__badge--resource {
  background: #ecfdf5;
  color: #065f46;
}

.feed-card__badge--update {
  background: #fff7ed;
  color: #9a3412;
}

.feed-card__badge--citysavior {
  background: #f5f3ff;
  color: #5b21b6;
}

.feed-card__badge--need {
  background: #fef2f2;
  color: #b42318;
}

.feed-card__badge--outcome {
  background: #ecfdf5;
  color: #166534;
}

.feed-card__badge--sponsored {
  background: #f8fafc;
  color: #334155;
  border: 1px solid var(--ink-200);
}

.feed-card__badge--teaching {
  background: #faf5ff;
  color: #6b21a8;
}

.feed-card__badge--video {
  background: #eff6ff;
  color: #1e40af;
}

.feed-card__badge--prayer {
  background: #fdf4ff;
  color: #86198f;
}

.feed-card__badge--testimony {
  background: var(--gold-100);
  color: var(--gold-600);
}

.feed-card__badge--fellowship {
  background: #f5f3ff;
  color: #5b21b6;
}

.feed-card__badge--discussion {
  background: var(--navy-50, #eef2f7);
  color: var(--navy-800, #1e3a5f);
}

.feed-card__badge--service {
  background: #f0fdf4;
  color: #15803d;
}

.feed-card__date {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.feed-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 8px;
}

.feed-card__title a {
  color: inherit;
}

.feed-card__title a:hover {
  color: var(--navy-600);
}

.feed-card__excerpt {
  font-size: 0.85rem;
  color: var(--ink-600);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-100);
  margin-top: auto;
}

.feed-card__source {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.feed-card__read-more {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-700);
}

.feed-card__read-more:hover {
  color: var(--gold-500);
}

.feed-card--featured .feed-card__media {
  height: 280px;
}

.feed-card--featured .feed-card__title {
  font-size: 1.45rem;
  line-height: 1.25;
}

.feed-card--featured .feed-card__excerpt {
  font-size: 0.95rem;
}

.feed-card--medium .feed-card__media {
  height: 140px;
}

.feed-card--horizontal {
  grid-column: span 2;
}

.feed-card--horizontal .feed-card__media {
  height: 190px;
}

.feed-card--sponsored {
  border-style: dashed;
  background: #fcfcfd;
}

.feed-card--placeholder {
  background: var(--ink-50);
  border-style: dashed;
}

/* Editorial homepage layout */
.home-editorial-layout {
  display: grid;
  gap: 20px;
}

.editorial-top-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}

.editorial-side-rail {
  display: grid;
  gap: 20px;
}

.editorial-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.editorial-lower-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.editorial-block {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.editorial-block--cards {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
}

.editorial-block__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy-900);
}

.editorial-card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.editorial-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--ink-300);
}

.editorial-card__image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.editorial-card__body {
  padding: 14px;
}

.editorial-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.editorial-card__title {
  font-size: 1.12rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.editorial-card__title--compact {
  font-size: 0.95rem;
}

.editorial-card__excerpt {
  font-size: 0.84rem;
  color: var(--ink-600);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-card__excerpt--compact {
  font-size: 0.8rem;
}

.editorial-card__date {
  font-size: 0.74rem;
  color: var(--ink-500);
}

.editorial-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--ink-500);
  padding-top: 8px;
  border-top: 1px solid var(--ink-100);
}

.editorial-card__meta a {
  color: var(--navy-700);
  font-weight: 700;
}

.editorial-card--featured {
  box-shadow: var(--shadow-card);
}

.editorial-card--featured .editorial-card__image,
.editorial-card--featured .editorial-card__placeholder {
  height: 320px;
}

.editorial-card--featured .editorial-card__title {
  font-size: 1.6rem;
  line-height: 1.2;
}

.editorial-card--featured .editorial-card__excerpt {
  font-size: 0.92rem;
  -webkit-line-clamp: 3;
}

.editorial-card--medium .editorial-card__image,
.editorial-card--medium .editorial-card__placeholder {
  height: 140px;
}

.editorial-card--horizontal {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.editorial-card--horizontal .editorial-card__media--rail {
  flex: 0 0 112px;
  width: 112px;
  min-height: 88px;
  align-self: stretch;
}

.editorial-card--horizontal .editorial-card__image--rail {
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.editorial-card--horizontal .editorial-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 88px;
  min-width: 0;
  font-size: 0.62rem;
}

.editorial-card--horizontal .editorial-card__body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.editorial-card--trending .editorial-card__image,
.editorial-card--trending .editorial-card__placeholder {
  height: 196px;
}

.editorial-card--compact .editorial-card__image,
.editorial-card--compact .editorial-card__placeholder {
  height: 100px;
}

.editorial-card--event .editorial-card__image,
.editorial-card--event .editorial-card__placeholder {
  height: 110px;
}

.editorial-card--sponsored {
  border-style: dashed;
  background: #fbfcff;
}

.editorial-side-rail .editorial-card__image,
.editorial-side-rail .editorial-card__placeholder {
  height: 120px;
}

.editorial-card__placeholder {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(140deg, var(--navy-50), #fff);
  color: var(--navy-800);
}

.editorial-card__placeholder--need {
  background: linear-gradient(140deg, #fff3f2, #fff);
  color: #b42318;
}

.editorial-card__placeholder--outcome {
  background: linear-gradient(140deg, #f0fdf4, #fff);
  color: #166534;
}

.editorial-card__placeholder--event {
  background: linear-gradient(140deg, #fffbeb, #fff);
  color: #92400e;
}

.editorial-card__placeholder--resource {
  background: linear-gradient(140deg, #eff6ff, #fff);
  color: #1d4ed8;
}

.editorial-card__placeholder--citysavior {
  background: linear-gradient(140deg, #f5f3ff, #fff);
  color: #5b21b6;
}

.editorial-card__placeholder--sponsored {
  background: linear-gradient(140deg, #f8fafc, #fff);
  color: #475569;
}

.editorial-card__placeholder--news {
  background: linear-gradient(140deg, var(--navy-50), #fff);
  color: var(--navy-800);
}

.editorial-card__placeholder--article {
  background: linear-gradient(140deg, #dbeafe, #fff);
  color: #1e3a5f;
}

.editorial-card__placeholder--update {
  background: linear-gradient(140deg, #fff7ed, #fff);
  color: #9a3412;
}

.editorial-card__placeholder--teaching {
  background: linear-gradient(140deg, #faf5ff, #fff);
  color: #6b21a8;
}

.editorial-card__placeholder--video {
  background: linear-gradient(140deg, #eff6ff, #fff);
  color: #1e40af;
}

.editorial-card__placeholder--prayer {
  background: linear-gradient(140deg, #fdf4ff, #fff);
  color: #86198f;
}

.editorial-card__placeholder--testimony {
  background: linear-gradient(140deg, #fffbeb, #faf5ff);
  color: #92400e;
}

.editorial-card__placeholder--fellowship {
  background: linear-gradient(140deg, #f5f3ff, #fffdf8);
  color: #5b21b6;
}

.editorial-card__placeholder--service {
  background: linear-gradient(140deg, #ecfdf5, #fff);
  color: #166534;
}

.latest-list {
  display: grid;
  gap: 12px;
}

.latest-list__item {
  border-bottom: 1px solid var(--ink-100);
  padding-bottom: 10px;
}

.latest-list__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.latest-list__item h4 {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 7px 0 5px;
}

.latest-list__time {
  font-size: 0.73rem;
  color: var(--ink-500);
}

/* ========================================
   RESOURCES STRIP (homepage)
   ======================================== */

.resources-strip {
  margin-bottom: 24px;
}

.resources-strip__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy-900);
}

.resources-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.resources-strip__card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.resources-strip__card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--ink-300);
}

.resources-strip__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.resources-strip__placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #eff6ff, #fff);
}

.resources-strip__body {
  padding: 14px;
}

.resources-strip__card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-900);
  margin: 8px 0 6px;
}

.resources-strip__card-title a {
  color: inherit;
  transition: color 0.15s;
}

.resources-strip__card-title a:hover {
  color: var(--navy-600);
}

.resources-strip__excerpt {
  font-size: 0.8rem;
  color: var(--ink-600);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resources-strip__cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-700);
}

.resources-strip__cta:hover {
  color: var(--gold-500);
}

/* ========================================
   POST LIST (Articles / Events / Resources)
   ======================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.post-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.post-card:hover {
  box-shadow: var(--shadow-card);
}

.post-card__thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--ink-100);
}

.post-card__body {
  padding: 20px;
}

.post-card__category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-600);
  margin-bottom: 8px;
}

.post-card__source {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-600);
  margin-bottom: 6px;
  line-height: 1.35;
}

.post-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
  line-height: 1.4;
}

.post-card__title a {
  color: inherit;
  transition: color 0.15s;
}

.post-card__title a:hover {
  color: var(--navy-600);
}

.post-card__excerpt {
  font-size: 0.8125rem;
  color: var(--ink-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.post-card__date {
  font-size: 0.75rem;
  color: var(--ink-400);
}

.post-card__actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
}

.post-card__actions .btn {
  width: 100%;
  justify-content: center;
}

.post-card--placeholder {
  border-style: dashed;
  border-color: var(--ink-200);
  background: var(--ink-50);
  opacity: 0.92;
}

.post-card--placeholder:hover {
  box-shadow: none;
}

.post-card--placeholder .post-card__category,
.post-card--placeholder .post-card__title {
  color: var(--ink-500);
}

.post-card__thumb--placeholder {
  background: linear-gradient(135deg, var(--ink-100) 0%, var(--navy-50) 100%) !important;
  min-height: 160px;
}

.local-news__empty-note {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 20px;
  max-width: 42rem;
}

/* ========================================
   CITY SAVIOR BRIDGE
   ======================================== */

.bridge {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 56px 0;
}

.bridge .container {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.bridge__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bridge__content {
  flex: 1;
  min-width: 280px;
}

.bridge__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.bridge__subtitle {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 12px;
}

.bridge__desc {
  font-size: 0.9375rem;
  color: var(--navy-200);
  line-height: 1.7;
  max-width: 520px;
}

.bridge__actions {
  flex-shrink: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--navy-400);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand__logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.85;
}

.footer-brand__logo span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--navy-400);
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links__group h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-200);
  margin-bottom: 12px;
}

.footer-links__group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links__group a {
  font-size: 0.8125rem;
  color: var(--navy-400);
  transition: color 0.15s;
}

.footer-links__group a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
}

.footer-bottom a {
  color: var(--gold-400);
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: var(--gold-300);
}

/* ========================================
   SINGLE / PAGE TEMPLATES
   ======================================== */

.page-header {
  background: #fff;
  border-bottom: 1px solid var(--ink-200);
  padding: 32px 0;
}

.page-header__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
}

.page-content {
  padding: 40px 0;
}

.page-content .entry-content {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink-700);
}

.page-content .entry-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
}

.page-content .entry-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

.page-content .entry-content p {
  margin-bottom: 16px;
}

.page-content .entry-content ul,
.page-content .entry-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  list-style: disc;
}

.page-content .entry-content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.page-content .entry-content iframe,
.page-content .entry-content embed,
.page-content .entry-content object,
.page-content .entry-content video {
  max-width: 100%;
}

.page-content .entry-content .wp-block-embed,
.page-content .entry-content .wp-block-embed__wrapper,
.page-content .entry-content figure.wp-block-embed {
  max-width: 100%;
}

.page-content .entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
}

.page-content .entry-content a {
  color: var(--navy-600);
  text-decoration: underline;
  text-decoration-color: var(--navy-200);
  transition: text-decoration-color 0.15s;
}

.page-content .entry-content a:hover {
  text-decoration-color: var(--navy-600);
}

/* Single post */
.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 24px;
}

.single-thumb {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

/* ========================================
   EMPTY / PLACEHOLDER
   ======================================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-400);
  font-size: 0.9375rem;
  border: 1px dashed var(--ink-200);
  border-radius: var(--radius-lg);
  background: #fff;
}

/* ========================================
   CITY SAVIOR LANDING PAGE (page template)
   ======================================== */

.cs-landing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cs-landing-hero .container {
  justify-content: flex-start;
}

/* Horizontal hero — logo on the left, copy + actions on the right. This
   keeps the hero short by laying the brand and the message side by side
   instead of stacking them. */
.cs-landing-hero__layout {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}

.cs-landing-hero__brand {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.cs-landing-hero__copy {
  flex: 1 1 320px;
  min-width: 280px;
}

.cs-landing-hero__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(360px, 80vw);
  max-height: min(180px, 32vw);
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
}

.cs-landing-hero__copy .hero__badge {
  margin-top: 0;
}

.cs-landing-hero .hero__desc {
  margin-top: 12px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .cs-landing-hero__layout {
    gap: 14px;
  }

  .cs-landing-hero__logo {
    max-height: min(140px, 38vw);
  }
}

.cs-landing-hero__headline {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 8px 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.cs-landing-hero__subhead {
  max-width: 40rem;
}

.cs-landing .home-editorial-layout {
  margin-top: 8px;
}

.cs-landing-lower-grid {
  align-items: start;
}

.cs-landing-lower-grid > .editorial-block {
  align-self: start;
  min-height: 0;
}

.cs-landing-lower-grid > .editorial-block[id] {
  scroll-margin-top: 88px;
}

.cs-landing-lower-grid .editorial-block--cards {
  align-items: start;
  /* Pack rows to the top; leftover height stays below content — avoids stretching
     the title row so border-bottom sits far below the heading text. */
  align-content: start;
}

.cs-landing-lower-grid .editorial-block__title {
  align-self: start;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Lower modules (#savior-lower-modules): outer grid row matches tallest column; inner grid
   must not expand title tracks — lock row sizes so h3 + border-bottom stay compact. */
#savior-lower-modules .editorial-block--cards {
  align-items: start;
  align-content: start;
  grid-auto-rows: min-content;
}

#savior-lower-modules .editorial-block__title {
  align-self: start;
  height: fit-content;
  margin-top: 0;
  margin-bottom: 10px;
}

.cs-landing-empty {
  padding: 16px 18px;
  background: var(--navy-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.cs-landing-empty__text {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-600);
  line-height: 1.55;
  text-align: left;
}

.cs-landing-empty .btn {
  width: fit-content;
  max-width: 100%;
}

.cs-landing-empty .btn--sm {
  font-weight: 700;
}

.editorial-block--serve {
  opacity: 0.98;
}

.editorial-block--serve .editorial-block__title {
  border-bottom-color: var(--ink-300);
  color: var(--ink-700);
}

.cs-landing-serve-lede {
  font-size: 0.82rem;
  color: var(--ink-500);
  line-height: 1.55;
  margin: -6px 0 14px;
  max-width: 36rem;
}

.cs-landing-module-footer {
  margin-top: 12px;
}

.editorial-card--service {
  border-style: solid;
  background: #fcfdfc;
}

.cs-landing-section-lede {
  font-size: 1rem;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 24px;
}

.cs-landing-section-lede--before-cards {
  margin-bottom: 48px;
}

.cs-landing .section__header + .cs-landing-section-lede {
  margin-top: -12px;
}

.cs-landing .section__header + .cs-landing-section-lede--before-cards {
  margin-bottom: 48px;
}

.cs-landing-card-link {
  margin: 12px 0 0;
}

.cs-landing-card-actions {
  margin: 14px 0 0;
}

.cs-landing > section[id] {
  scroll-margin-top: 72px;
}

#how-it-works .section__header {
  margin-bottom: 28px;
}

.cs-landing .section__title--subtitle {
  font-size: 1.25rem;
}

.cs-landing-steps {
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 880px;
}

.cs-landing-steps__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 26px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cs-landing-steps__card:hover {
  box-shadow: 0 10px 32px rgba(16, 29, 56, 0.1);
  border-color: var(--navy-200);
  transform: translateY(-2px);
}

.cs-landing-steps__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  background: linear-gradient(155deg, var(--gold-50) 0%, #fff 45%, var(--navy-50) 100%);
  border: 1px solid var(--gold-200);
  border-radius: 50%;
  color: var(--navy-800);
}

.cs-landing-steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-landing-steps__icon svg {
  width: 28px;
  height: 28px;
}

.cs-landing-steps__num {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.5rem;
  color: #fff;
  background: var(--navy-900);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.cs-landing-steps__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.cs-landing-steps__text {
  font-size: 0.9375rem;
  color: var(--ink-600);
  line-height: 1.65;
  margin: 0;
  max-width: 36ch;
}

@media (prefers-reduced-motion: reduce) {
  .cs-landing-steps__card,
  .cs-landing-steps__card:hover {
    transition: none;
    transform: none;
  }
}

.cs-landing-cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cs-landing-cta h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cs-landing-cta p {
  color: var(--navy-200);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.65;
}

.cs-landing-cta__btn {
  margin-top: 8px;
}

/* ========================================
   EVENTS LANDING PAGE
   ======================================== */

.cs-events-landing > section[id] {
  scroll-margin-top: 72px;
}

.cs-events-hero .hero__content {
  max-width: 640px;
}

.cs-events-hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy-200);
  margin-bottom: 28px;
  max-width: 560px;
}

.cs-events-section-lede {
  font-size: 1rem;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 640px;
  margin: -12px 0 24px;
}

.cs-events-calendar-embed {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.cs-events-calendar-embed .tribe-events {
  font-family: inherit;
}

.cs-events-calendar-cta-box {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cs-events-calendar-cta-box p {
  font-size: 0.9375rem;
  color: var(--ink-600);
  margin-bottom: 20px;
}

.cs-events-filter-section {
  padding: 24px 0 0;
}

.cs-events-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-events-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1.5px solid var(--ink-200);
  background: #fff;
  color: var(--ink-600);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}

.cs-events-filter-pill:hover {
  background: var(--navy-50);
  color: var(--navy-800);
  border-color: var(--navy-200);
}

.cs-events-filter-pill--active,
.cs-events-filter-pill--active:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  border-color: var(--gold-400);
  font-weight: 700;
}

.cs-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cs-events-view-all {
  text-align: center;
  margin-top: 32px;
}

.cs-event-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.cs-event-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--ink-300);
  transform: translateY(-1px);
}

.cs-event-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.cs-event-card__placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(140deg, #fffbeb, #fff);
  color: #92400e;
}

.cs-event-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cs-event-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cs-event-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 8px;
}

.cs-event-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.cs-event-card__title a:hover {
  color: var(--navy-600);
}

.cs-event-card__datetime {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-500);
  margin-bottom: 6px;
}

.cs-event-card__venue {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin-bottom: 10px;
}

.cs-event-card__venue svg {
  flex-shrink: 0;
  color: var(--ink-400);
}

.cs-event-card__excerpt {
  font-size: 0.8125rem;
  color: var(--ink-600);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cs-event-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ink-100);
}

.cs-event-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.15s;
}

.cs-event-card__cta:hover {
  color: var(--gold-500);
}

.cs-events-submit {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 56px 0;
}

.cs-events-submit .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.cs-events-submit__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cs-events-submit__desc {
  font-size: 0.9375rem;
  color: var(--navy-200);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 460px;
}

.cs-events-submit__note {
  font-size: 0.8125rem;
  color: var(--navy-400);
  line-height: 1.6;
  font-style: italic;
}

.cs-events-submit-form-area {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.cs-events-submit-placeholder h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.cs-events-submit-placeholder p {
  font-size: 0.875rem;
  color: var(--navy-200);
  line-height: 1.65;
  margin-bottom: 12px;
}

.cs-events-submit-placeholder__fields {
  font-size: 0.8125rem;
  color: var(--navy-400);
  margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .card-grid,
  .outcomes-grid,
  .post-grid,
  .post-grid--4,
  .feed-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .today-editorial__top {
    grid-template-columns: 1fr;
  }

  .today-editorial__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial-top-split,
  .editorial-grid-3,
  .editorial-lower-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resources-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    gap: 24px;
  }

  .cs-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-events-submit .container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav__dropdown {
    width: 100%;
  }

  .main-nav__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
  }

  .main-nav__flyout {
    position: static;
    display: none;
    min-width: 0;
    padding-top: 0;
  }

  .main-nav__dropdown.is-open .main-nav__flyout {
    display: block;
  }

  .main-nav__dropdown:hover .main-nav__flyout {
    display: none;
  }

  .main-nav__dropdown.is-open:hover .main-nav__flyout {
    display: block;
  }

  .main-nav__menu {
    margin: 0 0 8px 0;
    padding: 0 0 0 12px;
    border: none;
    border-left: 2px solid var(--ink-100);
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
  }

  .main-nav__menu a {
    padding: 8px 0;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 0.8125rem;
  }

  .header-actions .btn--outline {
    display: none;
  }

  .hero {
    padding: 20px 0;
  }

  .hero.hero--compact {
    padding: 12px 0;
  }

  .hero.hero--compact .hero__top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero.hero--compact .hero__stats {
    width: 100%;
    justify-content: space-around;
    align-self: stretch;
  }

  .hero.hero--compact .hero__bottom {
    align-items: stretch;
  }

  .hero.hero--compact .hero__actions {
    flex-wrap: wrap;
  }

  .hero.hero--compact .hero__title {
    font-size: 1.35rem;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__stats {
    width: 100%;
    justify-content: space-around;
  }

  .card-grid,
  .outcomes-grid,
  .post-grid,
  .post-grid--4,
  .feed-list {
    grid-template-columns: 1fr;
  }

  .today-editorial__main {
    grid-template-columns: 1fr;
  }

  .editorial-top-split,
  .editorial-grid-3,
  .editorial-lower-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card--featured .editorial-card__image,
  .editorial-card--featured .editorial-card__placeholder {
    height: 200px;
  }

  .feed-card--horizontal {
    grid-column: auto;
  }

  .feed-card__media,
  .feed-card--featured .feed-card__media,
  .feed-card--medium .feed-card__media,
  .feed-card--horizontal .feed-card__media {
    height: 170px;
  }

  .resources-strip__grid {
    grid-template-columns: 1fr;
  }

  .feed-actions .btn {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .bridge .container {
    text-align: center;
    flex-direction: column;
  }

  .topbar .container {
    gap: 4px 12px;
  }

  .topbar__links {
    gap: 4px 12px;
  }

  .section {
    padding: 36px 0;
  }

  .cs-landing-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .cs-events-grid {
    grid-template-columns: 1fr;
  }

  .cs-events-submit .container {
    grid-template-columns: 1fr;
  }

  .cs-events-submit {
    padding: 40px 0;
  }
}

/* =========================================================================
   Local Sponsor / Ad Placements
   ========================================================================= */

.sponsor-placement {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 24px;
}

.sponsor-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.sponsor-card:hover {
  box-shadow: 0 2px 6px rgba(10, 18, 38, 0.06), 0 6px 20px rgba(10, 18, 38, 0.1);
}

.sponsor-card__label {
  display: block;
  padding: 10px 16px 0;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
}

.sponsor-card__content {
  padding: 8px 16px 14px;
}

.sponsor-card__logo {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.sponsor-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--ink-100, #f0f0f0);
}

.sponsor-card__headline {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}

.sponsor-card__description {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsor-card__cta {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sponsor-card__cta:hover {
  color: var(--gold-600);
  text-decoration: underline;
}

/* ── Thin strip (728×50) ─────────────────────────────────── */

.sponsor-placement--thin .sponsor-card {
  display: flex;
  align-items: center;
  padding: 0 20px;
  min-height: 50px;
  max-height: 64px;
}

.sponsor-placement--thin .sponsor-card__label {
  padding: 0;
  margin-right: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sponsor-placement--thin .sponsor-card__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  flex: 1;
  min-width: 0;
}

.sponsor-placement--thin .sponsor-card__image {
  display: none;
}

/* 728×50 image banner (HOME_TOP_SPONSOR, HOME_AFTER_RESOURCES, etc.) */
.sponsor-placement--thin.sponsor-placement--has-banner-image {
  width: min(100%, 728px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.sponsor-placement--thin.sponsor-placement--has-banner-image .sponsor-card {
  display: block;
  width: 100%;
  aspect-ratio: 728 / 50;
  padding: 0;
  min-height: auto;
  max-height: none;
  box-shadow: none;
  border-radius: 4px;
  overflow: hidden;
}

.sponsor-placement--thin.sponsor-placement--has-banner-image .sponsor-card:hover {
  box-shadow: none;
}

.sponsor-placement--thin.sponsor-placement--has-banner-image .sponsor-card__banner {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.sponsor-placement--thin.sponsor-placement--has-banner-image .sponsor-card__image--banner {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: center;
  border-bottom: none;
}

.sponsor-placement--thin .sponsor-card__headline {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-placement--thin .sponsor-card__description {
  display: none;
}

.sponsor-placement--thin .sponsor-card__logo {
  max-height: 28px;
  margin: 0;
}

.sponsor-placement--thin .sponsor-card__cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Rectangle card (300×250) ────────────────────────────── */

.sponsor-placement--rectangle {
  max-width: 100%;
}

.sponsor-placement--rectangle .sponsor-card {
  max-width: 340px;
}

.sponsor-placement--rectangle .sponsor-card__image {
  aspect-ratio: 300 / 180;
}

/* In editorial side rail, fill available width */
.editorial-side-rail .sponsor-placement--rectangle {
  padding: 0;
  margin: 0;
}

.editorial-side-rail .sponsor-placement--rectangle .sponsor-card {
  max-width: 100%;
}

/* In editorial-grid-3, act as a normal grid item */
.editorial-grid-3 .sponsor-placement--rectangle {
  padding: 0;
  margin: 0;
}

.editorial-grid-3 .sponsor-placement--rectangle .sponsor-card {
  max-width: 100%;
  height: 100%;
}

/* In editorial-lower-grid, act as a normal grid item */
.editorial-lower-grid .sponsor-placement--rectangle {
  padding: 0;
  margin: 0;
}

.editorial-lower-grid .sponsor-placement--rectangle .sponsor-card {
  max-width: 100%;
}

/* ── Medium square (300×300) ─────────────────────────────── */

.sponsor-placement--medium-square {
  width: min(100%, 300px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.sponsor-placement--medium-square .sponsor-card {
  max-width: 300px;
  width: 100%;
}

.sponsor-placement--medium-square .sponsor-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/* ── Mobile block (320×100) ──────────────────────────────── */

.sponsor-placement--mobile .sponsor-card {
  display: flex;
  align-items: center;
  max-width: 340px;
  margin: 0 auto;
  min-height: 80px;
}

.sponsor-placement--mobile .sponsor-card__image {
  display: none;
}

.sponsor-placement--mobile .sponsor-card__label {
  padding: 0 0 0 14px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.sponsor-placement--mobile .sponsor-card__content {
  padding: 10px 14px;
}

.sponsor-placement--mobile .sponsor-card__headline {
  font-size: 0.9375rem;
}

.sponsor-placement--mobile .sponsor-card__description {
  -webkit-line-clamp: 1;
  font-size: 0.8125rem;
}

/* ── Premium tall (300×600) ──────────────────────────────── */
/* Hidden globally until a page enables the slot (homepage right rail). */

.sponsor-placement--premium {
  display: none;
}

.sponsor-placement--premium .sponsor-card {
  max-width: 300px;
}

.sponsor-placement--premium .sponsor-card__image {
  aspect-ratio: 300 / 600;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Mobile-only visibility ──────────────────────────────── */

.sponsor-placement--mobile-only {
  display: none;
}

/* ── Responsive: hide thin strips on mobile, show mobile block ── */

@media (min-width: 769px) {
  .sponsor-placement--mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .sponsor-placement--thin {
    display: none;
  }

  .sponsor-placement--mobile-only {
    display: block;
  }

  .sponsor-placement--rectangle .sponsor-card {
    max-width: 100%;
  }

  .sponsor-placement--rectangle .sponsor-card__image {
    aspect-ratio: 16 / 9;
  }

  .sponsor-placement {
    padding: 0 16px;
    margin: 16px auto;
  }
}
