/* अभियान गतिविधियाँ — /abhiyan/ and /abhiyan/<slug>/ (scripts/build-activity-pages.cjs).
   Header/footer styles come from site-chrome.css. Mobile first, then ≥700px, ≥1024px. */
:root {
  --red: #e2231a;
  --off: #f3ece0;
  --muted: #c9c1b4;
  --header-h: 78px;
  --wrap: 1200px;
  --font-display: 'Baloo 2', 'Noto Sans Devanagari', 'Mukta', system-ui, sans-serif;
  --font-body: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  /* same brick-wall photo + fade as the home page and truth pages */
  --bricks-photo: linear-gradient(180deg, #0a0a0a 0%, rgba(6, 6, 6, .55) 12%, rgba(6, 6, 6, .45) 100%), url('https://d13c66xhnzrnud.cloudfront.net/media/yaadrakhegaup/images/background/b2.webp');
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0a0a0a; color: var(--off); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, p { margin: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 8px; }

.ab { display: block; background: var(--bricks-photo) top center / cover no-repeat #0a0a0a; padding-top: var(--header-h); outline: none; }
.ab .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ab .hl { color: var(--red); }
.ab ul { list-style: none; margin: 0; padding: 0; }

/* ---------- hero ---------- */
.ab-hero { padding: 40px 0 28px; text-align: center; }
.ab-h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 7vw, 64px); line-height: 1.15; color: #fff; text-wrap: balance; }
.ab-lede { max-width: 760px; margin: 14px auto 0; font-size: clamp(16px, 2.2vw, 20px); color: var(--off); text-wrap: balance; }
.ab-hero--detail .ab-h1 { font-size: clamp(36px, 8vw, 84px); }

/* ---------- list: cards ---------- */
.ab-list { padding: 8px 0 64px; }
.ab-cards { display: grid; gap: 20px; }
.ab-card { display: grid; color: inherit; text-decoration: none; background: rgba(8, 8, 8, .88); border: 1.5px solid var(--red); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.ab-card:hover { box-shadow: 0 0 0 1px var(--red), 0 10px 36px rgba(226, 35, 26, .28); transform: translateY(-2px); }
.ab-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ab-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ab-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ab-card__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; color: #fff; }
.ab-card__text { font-size: clamp(16px, 1.7vw, 20px); color: var(--off); }
.ab-more { margin-top: 4px; color: var(--red); font-weight: 700; font-size: 18px; }
.ab-card:hover .ab-more span { display: inline-block; transform: translateX(4px); transition: transform .2s ease; }

/* ---------- detail: description + photos ---------- */
.ab-detail { padding: 4px 0 72px; }
.ab-desc { max-width: 920px; margin: 0 auto; text-align: center; font-size: clamp(17px, 2vw, 22px); line-height: 1.7; }
.ab .ab-gallery { margin-top: 36px; display: grid; gap: 16px; }
.ab-gallery a { display: block; border: 1.5px solid var(--red); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px rgba(226, 35, 26, .25); }
.ab-gallery a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ab-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.ab-gallery a:hover img { transform: scale(1.04); }

@media (max-width: 640px) { :root { --header-h: 66px; } }
@media (min-width: 700px) {
  .ab-hero { padding: 56px 0 36px; }
  .ab-card { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .ab-card__img { height: 100%; }
  .ab-card__body { justify-content: center; padding: 28px 32px; }
  .ab-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .ab-cards { gap: 28px; }
  .ab-gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-card, .ab-gallery img, .ab-card:hover .ab-more span { transition: none; }
  .ab-card:hover, .ab-gallery a:hover img { transform: none; }
}
