/* /benefit on the shared editorial system.
   Header, hero (.content-hub), underline tabs, footer and skip link come from home.css,
   exactly as on / and /events. This file only re-themes the benefit-specific parts
   (search, filters, cards, detail page) with the same palette and component rules. */
body.editorial-home {
  /* Re-point the legacy blue/IBM-Plex tokens used by the inline benefit CSS to the site palette. */
  --primary: #1E3A5F;
  --accent: #3F8478;
  --accent-dark: #2F6B61;
  --accent-light: rgba(63,132,120,.12);
  --bg-cream: #FFF8EE;
  --neutral-50: #FDEFDD;
  --neutral-100: #EADFCB;
  --neutral-200: #DDD0B8;
  --neutral-400: #8E9CB0;
  --neutral-600: #5A6B80;
  --neutral-800: #2A4766;
  --font-sans: var(--font-main);
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 10px 24px rgba(30,58,95,.07);
  --shadow-xl: 0 10px 24px rgba(30,58,95,.07);
  --cat-food: #3F8478; --cat-health: #3F8478; --cat-housing: #3F8478; --cat-income: #3F8478;
  --cat-child: #3F8478; --cat-edu: #3F8478; --cat-utility: #3F8478; --cat-tax: #3F8478;
  --cat-disability: #3F8478; --cat-senior: #3F8478;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--background);
}

/* Header logo: no link underline, as on /events. */
.editorial-home a.logo-container { text-decoration: none; }

/* Layout: same 1328px container and gutters as home/news main. */
.editorial-home .benefit-index { max-width: 1328px; margin: 0 auto; padding: 30px 24px 60px; min-height: 50vh; }
.editorial-home .feed-heading .last-updated { display: inline; margin: 0; color: #5A6B80; font-size: 12px; font-weight: 400; }

/* Search: same field treatment as the header search / filter chips. */
.editorial-home .search-wrap { max-width: 480px; margin: 18px 0 0; padding: 0; }
.editorial-home .search-input { min-height: 44px; padding: 10px 14px 10px 44px; font-size: 15px; border: 1px solid #DDD0B8; border-radius: 8px; background-color: #FFFDF8; box-shadow: none; }
.editorial-home .search-input:focus { border-color: #3F8478; box-shadow: 0 0 0 3px rgba(63,132,120,.14); }

/* Filters: identical to the /events category tabs. */
.editorial-home .filter-bar { max-width: none; margin: 14px 0 0; padding: 0 0 4px; gap: 8px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
.editorial-home .filter-btn { min-height: 40px; padding: 8px 16px; gap: 6px; border: 1px solid #DDD0B8; border-radius: 999px; background: transparent; color: #5A6B80; font: inherit; font-size: 14px; font-weight: 400; box-shadow: none; }
.editorial-home .filter-btn .filter-emoji { font-size: 14px; }
.editorial-home .filter-btn:hover { border-color: #3F8478; color: #3F8478; transform: none; }
.editorial-home .filter-btn.active { border-color: #3F8478; background: #3F8478 !important; color: #fff; font-weight: 700; box-shadow: none; }

/* Grids share the home 3-column / 28px rhythm. */
.editorial-home .featured-section { max-width: none; margin: 24px 0 0; padding: 0; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-home .featured-section:empty { margin: 0; }
.editorial-home .masonry { max-width: none; margin: 28px 0 0; padding: 0; column-count: 3; column-gap: 28px; }

/* Cards: the news-card surface, one accent color for every category. */
.editorial-home .card,
.editorial-home .card-hero { border: 1px solid #EADFCB; border-radius: 8px; background: #FFFDF8; box-shadow: none; color: #1E3A5F; transition: border-color .18s, transform .18s; }
.editorial-home .card { margin-bottom: 28px; }
.editorial-home .card:hover,
.editorial-home .card-hero:hover { transform: translateY(-3px); border-color: #E76F51; box-shadow: none; }
.editorial-home .card-color-bar,
.editorial-home .card-watermark,
.editorial-home .card-hero .hero-watermark,
.editorial-home .card-hero::before { display: none; }
.editorial-home .card-body { padding: 22px; background: transparent; }
.editorial-home .card-badges { gap: 8px; margin-bottom: 12px; align-items: center; }
.editorial-home .badge { padding: 0; background: transparent; color: #3F8478; font-size: 12px; font-weight: 700; }
.editorial-home .badge-cat { background: transparent !important; color: #3F8478; }
.editorial-home .badge-level { padding: 1px 8px; border: 1px solid #DDD0B8; color: #5A6B80; font-weight: 400; }
.editorial-home .badge-new { padding: 1px 8px; background: #FDEFDD; color: #3F8478; }
.editorial-home .badge-deadline { padding: 1px 8px; background: #f7f0dc; color: #6b5316; animation: none; }
.editorial-home .card-title,
.editorial-home .hero-title { font-family: var(--font-main); font-size: 21px; font-weight: 700; line-height: 1.5; letter-spacing: -.045em; color: #1E3A5F; word-break: keep-all; overflow-wrap: anywhere; }
.editorial-home .card-benefit-label,
.editorial-home .hero-benefit-label { color: #5A6B80; font-size: 11px; font-weight: 700; letter-spacing: .14em; opacity: 1; }
.editorial-home .card-benefit,
.editorial-home .hero-benefit { color: #3F8478; font-family: var(--font-main); font-size: 18px; font-weight: 800; line-height: 1.5; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.editorial-home .card-desc { color: #5A6B80; font-size: 14px; line-height: 1.8; }
.editorial-home .card-eligibility { border: 1px solid #EADFCB; border-radius: 6px; background: #FFF8EE; }
.editorial-home .card-eligibility-title { color: #3F8478; }
.editorial-home .card-eligibility-item { color: #2A4766; }
.editorial-home .card-eligibility-item::before { color: #3F8478 !important; }
.editorial-home .card-footer { border-top: 1px solid #EADFCB; }
.editorial-home .card-updated { color: #8E9CB0; font-size: 11px; }
.editorial-home .card-cta { color: #3F8478; font-size: 13px; font-weight: 700; }

/* Featured (NEW / deadline) cards: same card, plain green pill + outlined action like /events. */
.editorial-home .card-hero { min-height: 0; padding: 24px; gap: 4px; background: #FDEFDD; border-color: #DDD0B8; }
.editorial-home .hero-badge { padding: 3px 10px; border-radius: 999px; background: #3F8478; color: #fff; font-size: 12px; letter-spacing: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.editorial-home .hero-cta { margin-top: 18px; padding: 8px 12px; border: 1px solid #3F8478; border-radius: 6px; background: transparent; color: #3F8478; font-size: 13px; font-weight: 400; box-shadow: none; }
.editorial-home .card-hero:hover .hero-cta { background: #2F6B61; color: #fff; }

/* Detail page: same container and header band colors. */
.editorial-home .program-detail-page { max-width: 1328px; margin: 0 auto; padding: 30px 24px 60px; }
.editorial-home .program-detail-card { max-width: 860px; border: 1px solid #EADFCB; border-radius: 8px; background: #FFFDF8; box-shadow: none; }
.editorial-home .program-detail-back { color: #3F8478; }
.editorial-home .modal-hero::before { background: #3F8478; }
.editorial-home .modal-hero .modal-watermark { display: none; }
.editorial-home .program-key-summary { border-color: #DDD0B8; border-radius: 8px; background: #FDEFDD; }
.editorial-home .program-key-summary .modal-benefit-label { color: #3F8478; }
.editorial-home .modal-checklist li { border-radius: 6px; }
.editorial-home .modal-checklist li::before { background-color: #3F8478; }
/* Detail view: keep header + tabs, drop the list-page headline (the list itself is hidden too). */
.editorial-home.program-open .content-hub { padding-top: 0; }
.editorial-home.program-open .content-tabs { margin-top: 0; }
.editorial-home.program-open .content-hub-eyebrow,
.editorial-home.program-open .content-hub h1,
.editorial-home.program-open .content-hub > p:not(.content-hub-eyebrow) { display: none; }

.editorial-home .disclaimer { max-width: none; margin: 40px 0 0; border: 1px solid #d8cba5; border-radius: 8px; background: #f7f0dc; }
.editorial-home .mobile-cta { background: #3F8478; }
.editorial-home :focus-visible { outline: 2px solid #3F8478; outline-offset: 4px; }

@media (max-width: 1000px) {
  .editorial-home .featured-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-home .masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .editorial-home .benefit-index,
  .editorial-home .program-detail-page { padding: 24px 20px 40px; }
  .editorial-home .featured-section { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .editorial-home .masonry { column-count: 1; }
  .editorial-home .card { margin-bottom: 20px; }
  .editorial-home .card-body { padding: 20px; }
  .editorial-home .search-wrap { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-home .card:hover,
  .editorial-home .card-hero:hover { transform: none; }
}
