/*
 * Sikh Activism Silenced: shared styles added in the November 2026
 * update. Each page still carries its original inline design-system CSS;
 * this file holds the new shared components (logo sizes, nav button,
 * footer, closing band, updates sign-up, case and publication cards,
 * Get involved page) so they look the same everywhere.
 */

/* ---------- layout ---------- */
/* Slide-in animations start 40-60px to the side; don't let that widen the page on phones. */
body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* ---------- accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--black); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}

/* ---------- nav ---------- */
/* The stacked logo is narrower than the old one, so it can sit a little taller. */
.nav__logo img { height: 66px; width: auto; }
@media (max-width: 960px) { .nav__logo img { height: 54px; } }
@media (max-width: 600px) { .nav__logo img { height: 48px; } }
@media (max-width: 380px) { .nav__logo img { height: 44px; } }
.nav__cta { white-space: nowrap; }
.nav__mobile a.nav__mobile-cta { color: var(--red); }
.nav__social a[aria-label^="Instagram"]:hover { color: #E4405F; }
.nav__social a[aria-label^="X"]:hover { color: var(--black); }
.nav__social a[aria-label^="YouTube"]:hover { color: #FF0000; }
.nav__social a[aria-label^="TikTok"]:hover { color: #000; }
.nav__social a[aria-label^="WhatsApp"]:hover { color: #25D366; }
@media (max-width: 1100px) { .nav__social { display: none; } }
@media (max-width: 900px) { .nav__cta { display: none; } }

/* ---------- home hero ---------- */
.hero__title { margin: 0 0 var(--space-lg); line-height: 0; }
.hero__title .hero__logo { width: clamp(180px, 26vw, 280px); max-width: 100%; height: auto; margin: 0 auto; }
.hero__badge { line-height: 1.5; }
.hero__quote { white-space: normal; }

/* ---------- footer ---------- */
.footer__brand img { height: 100px; width: auto; }
.footer__grid.footer__grid--two { grid-template-columns: 2fr 1fr 1fr; }
.footer__legal { display: inline-flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__col h4 { font-size: 0.7rem; }
@media (max-width: 768px) { .footer__grid.footer__grid--two { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid.footer__grid--two { grid-template-columns: 1fr; } }

/* ---------- closing band and updates ---------- */
.cta-strip h2 { margin: 0; }
.newsletter__status { font-size: 0.85rem; color: var(--grey-body); margin: 0.5rem 0 0; min-height: 0; }
.newsletter__status:empty { display: none; }

/* ---------- role line under a person's name ---------- */
.case-role {
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin: 0 0 0.75rem; line-height: 1.4;
}

/* ---------- home: single featured case ---------- */
.home-case {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--black); color: #fff; overflow: hidden;
}
.home-case__img { display: block; min-height: 360px; overflow: hidden; }
.home-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.home-case:hover .home-case__img img { transform: scale(1.03); }
.home-case__body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.home-case__name { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 0.5rem; color: #fff; }
.home-case__name a { color: inherit; }
.home-case .case-drift__label { font-size: 0.65rem; }
.home-case .case-drift__desc { -webkit-line-clamp: 6; font-size: 1rem; max-width: 60ch; }
.home-case .case-drift__desc p { max-width: none; }
.home-case .case-drift__quote { font-size: 0.95rem; margin: 0.5rem 0 1.25rem; }
.home-case .case-drift__link { font-size: 0.75rem; }
@media (max-width: 768px) {
  .home-case { grid-template-columns: 1fr; }
  .home-case__img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- cases page ---------- */
.case-group + .case-group { margin-top: var(--space-2xl); }
.case-group__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: var(--space-lg);
  padding-bottom: 0.75rem; border-bottom: 3px solid var(--red); display: inline-block;
}
.featured-case__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: var(--space-md); }
.featured-case__name a, .case-card__name a { color: inherit; text-decoration: none; }
.featured-case__name a:hover, .case-card__name a:hover { color: var(--red); }
a.case-action-btn { display: inline-flex; align-items: center; justify-content: center; }
.cases-empty, .resources-empty { color: var(--grey-body); font-size: 1.05rem; }

/* ---------- case page ---------- */
/* The hero sat below both main's nav padding and its own nav margin, leaving a blank band. */
main > .csg-hero:first-child { margin-top: 0; }
.csg-hero__actions .csg-hero__action { cursor: pointer; }
.case-quote { margin: var(--space-xl) auto 0; max-width: 760px; text-align: center; font-size: 1.15rem; }
.case-quote p { max-width: none; margin: 0 auto 0.5rem; }
.case-quote cite { display: block; margin-top: 0.75rem; font-style: normal; font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-light); }
.csg-timeline__item-title { font-size: 1rem; }
button.csg-action__btn { border-radius: 0; cursor: pointer; }

/* ---------- about: our focus and how we work ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.focus-card { background: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); border-top: 4px solid var(--red); }
.focus-card__title { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 0.75rem; }
.focus-card p { font-size: 1.05rem; line-height: 1.7; max-width: none; }
.how-we-work { max-width: 760px; }
.how-we-work p { font-size: 1.15rem; line-height: 1.8; margin-top: 1rem; }
@media (max-width: 700px) { .focus-grid { grid-template-columns: 1fr; } }
.milestone__title { font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* ---------- news and articles ---------- */
.featured-article__link { display: contents; color: inherit; text-decoration: none; }
.featured-article__link:hover .featured-article__title { color: var(--red); }
.news-card[hidden] { display: none !important; }
.article-header__tag { color: #fff; text-decoration: none; }
.article-opinion-note {
  border-left: 4px solid #00838F; background: #fff; padding: 0.9rem 1.1rem; margin: 0 0 2rem !important;
  font-size: 0.95rem !important; color: var(--grey-body);
}

/* ---------- resources ---------- */
.resources-section + .resources-section { border-top: 1px solid rgba(0,0,0,0.08); }
.resources-sub { margin-top: var(--space-xl); }
.resources-sub h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: var(--space-md); }
.pub-list { display: grid; gap: var(--space-lg); margin-top: var(--space-lg); }
.pub-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-lg); background: #fff; padding: var(--space-md); align-items: start; }
.pub-card__cover { display: block; aspect-ratio: 3 / 4; background: var(--mist); overflow: hidden; }
.pub-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.pub-card__date { font-family: var(--font-heading); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 0.4rem; }
.pub-card__title { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }
.pub-card__title a { color: inherit; }
.pub-card__title a:hover { color: var(--red); }
.pub-card__summary { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.pub-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pub-card__btn {
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7rem 1.2rem; background: var(--red); color: #fff; border: 2px solid var(--red);
}
.pub-card__btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.pub-card__btn--outline { background: transparent; color: var(--black); border-color: var(--black); }
.pub-card__btn--outline:hover { background: var(--black); color: #fff; border-color: var(--black); }
@media (max-width: 600px) { .pub-card { grid-template-columns: 1fr; } .pub-card__cover { max-width: 220px; } }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-md); }
.video-card { display: block; color: inherit; text-decoration: none; }
.video-card .video-repo__item { display: block; }
.video-card__duration {
  position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(0,0,0,0.75); color: #fff;
  font-family: var(--font-heading); font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.2rem 0.45rem;
}
.video-card .video-repo__title { display: block; }
.video-card:hover .video-repo__title { color: var(--red); }
@media (max-width: 768px) { .video-grid { grid-template-columns: 1fr; } }

.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: var(--space-md); }
.photo-strip__item { margin: 0; background: #fff; }
.photo-strip__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-strip__item figcaption { font-size: 0.85rem; line-height: 1.5; color: var(--grey-body); padding: 0.6rem 0.75rem 0.8rem; }
@media (max-width: 768px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .photo-strip { grid-template-columns: 1fr; } }

/* ---------- publication page ---------- */
.pub-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.pub-page__cover img { width: 100%; height: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.pub-page__facts-title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-top: var(--space-lg); }
.pub-page__facts { margin: var(--space-md) 0 var(--space-lg); padding: 0; }
.pub-page__facts li { list-style: none; position: relative; padding-left: 1.4rem; margin-bottom: 0.75rem; line-height: 1.6; }
.pub-page__facts li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--red); }
@media (max-width: 768px) { .pub-page { grid-template-columns: 1fr; } .pub-page__cover { max-width: 240px; } }

/* ---------- get involved ---------- */
.gi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.gi-card { background: #fff; padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; border-top: 4px solid var(--red); }
.gi-card__icon { width: 44px; height: 44px; color: var(--red); margin-bottom: var(--space-md); }
.gi-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gi-card h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-bottom: 0.6rem; }
.gi-card p { font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.5rem; }
.gi-card__action { margin-top: auto; align-self: flex-start; }
.gi-share { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; }
.gi-share a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border: 2px solid var(--black);
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black);
}
.gi-share a:hover { background: var(--black); color: #fff; }
.gi-share svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 768px) { .gi-grid { grid-template-columns: 1fr; } }

/* ---------- CMS rich text blocks ---------- */
.cms-section-container { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.8; }
#home-mission-text.cms-section-container { font-size: 1.15rem; }
.cms-section-container > * + * { margin-top: 1rem; }
.cms-section-container h3 { font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1.75rem; }
.cms-section-container p { max-width: none; }
blockquote.blockquote { margin-left: 0; margin-right: 0; }
.how-we-work__text p { color: rgba(255,255,255,0.8); max-width: none; margin: 0 auto 1rem; font-size: 1.15rem; line-height: 1.8; }
.article-hero:empty { display: none; }
.article-loading { color: var(--grey-light); text-align: center; }
.article-share-btn { background: none; border: 0; color: var(--grey-light); display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.article-share-btn:hover { color: var(--red); }
.article-share-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.csg-hero__role { color: #fff; margin: 0.25rem 0 0.5rem; }

/* ---------- legal pages ---------- */
.legal-h { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: var(--space-lg) 0 var(--space-sm); }
.legal-text p { margin-bottom: 1rem; }
.legal-text ul { list-style: disc; padding-left: 1.25rem; margin-left: 0 !important; }
.legal-text li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal-text a { color: var(--red); text-decoration: underline; }

/* ---------- contact ---------- */
.contact-secure-note { font-size: 0.9rem; color: var(--grey-body); margin-top: 1rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: var(--space-3xl) 0; }
.not-found p { margin: 1rem auto 2rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .csg-timeline__track { animation: none !important; flex-wrap: wrap; }
  .fade-up, .stagger > *, .stagger-grid > *, .slide-left, .slide-right, .scale-in, .blur-up {
    transition: none !important; opacity: 1 !important; transform: none !important;
  }
}
