/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--bnpp-ink);
  background: var(--bnpp-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 3px solid var(--bnpp-gold);
  outline-offset: 2px;
}
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Letterhead-style rule -- the signature motif, used to mark official
   sections the way a gazette or party letterhead marks an authoritative
   block of text: a thin rule, a thick rule, tight together. */
.letterhead-rule {
  height: 5px;
  background: linear-gradient(var(--bnpp-green-deep), var(--bnpp-green-deep));
  position: relative;
  margin-bottom: 3px;
}
.letterhead-rule::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--bnpp-green-deep);
  margin-top: 3px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--bnpp-red); color: var(--bnpp-white); }
.btn-primary:hover { background: var(--bnpp-red-dark); box-shadow: var(--shadow-card); }
.btn-gold { background: var(--bnpp-gold); color: var(--bnpp-green-deeper); }
.btn-gold:hover { background: var(--bnpp-gold-light); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--bnpp-white); color: var(--bnpp-white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--bnpp-green-deep); color: var(--bnpp-green-deep); }
.btn-outline-navy:hover { background: var(--bnpp-green-deep); color: var(--bnpp-white); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   TOPBAR + HEADER
   ========================================================================== */
.topbar {
  background: var(--bnpp-green-deeper);
  color: rgba(255,255,255,0.8);
  font-size: var(--step--1);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a { color: rgba(255,255,255,0.75); transition: color 0.15s; }
.topbar-socials a:hover { color: var(--bnpp-gold-light); }
.topbar-lang { display: flex; gap: 10px; }
.topbar-lang a { color: rgba(255,255,255,0.6); }
.topbar-lang a[aria-current="true"] { color: var(--bnpp-white); font-weight: 700; }

.site-header {
  background: var(--bnpp-white);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 var(--bnpp-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 14px;
}
.site-branding { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.site-branding img { height: 46px; width: auto; }
.site-branding .brand-text { display: flex; flex-direction: column; }
.site-branding .brand-name {
  font-family: "Noto Serif Bengali", var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--bnpp-green-deep);
  line-height: 1.4;
  white-space: nowrap;
}
.site-branding .brand-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--bnpp-red);
  font-weight: 600;
  margin-top: 2px;
}

.primary-nav ul { display: flex; gap: 4px; align-items: center; }
.primary-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--bnpp-ink);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover { color: var(--bnpp-red); background: var(--bnpp-mist); }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .menu-item-has-children > a {
  display: flex; align-items: center; gap: 5px;
}
.primary-nav .menu-item-has-children > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.6;
  transition: transform 0.15s ease;
}
.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children.menu-open > a::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: var(--bnpp-white);
  border-top: 3px solid var(--bnpp-red);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.primary-nav .sub-menu a {
  padding: 10px 12px;
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  border-radius: 0;
}
.primary-nav .sub-menu a:hover {
  border-left-color: var(--bnpp-red);
  background: var(--bnpp-mist);
  padding-left: 16px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 16px; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bnpp-mist);
  color: var(--bnpp-green-deep);
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--bnpp-mist-dark); }

.menu-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bnpp-green-deeper) 0%, var(--bnpp-green-deep) 55%, var(--bnpp-red-dark) 100%);
  color: var(--bnpp-white);
  overflow: hidden;
  padding-block: 72px 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(0,160,219,0.35), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(201,154,63,0.18), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bnpp-gold-light);
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--bnpp-gold-light); }
.hero h1 {
  font-size: var(--step-4);
  color: var(--bnpp-white);
  max-width: 15ch;
}
.hero p.lede { font-size: var(--step-1); color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat-num {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--bnpp-white);
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat-label { font-size: var(--step--1); color: rgba(255,255,255,0.65); }

.hero-portrait {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(7,31,48,0.92), transparent);
  padding: 20px 18px 16px;
  font-size: var(--step--1);
}
.hero-portrait .caption .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }

/* ==========================================================================
   SEAL / BADGE SIGNATURE ELEMENT
   ========================================================================== */
.seal {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid var(--bnpp-gold);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.seal::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--bnpp-gold);
  border-radius: 50%;
}
.seal-icon { width: 30px; height: 30px; color: var(--bnpp-gold); }

/* ==========================================================================
   SECTION UTILITIES
   ========================================================================== */
.section { padding-block: 76px; }
.section-mist { background: var(--bnpp-mist); }
.section-navy { background: var(--bnpp-green-deep); color: var(--bnpp-white); }
.section-header { max-width: 640px; margin-bottom: 44px; }
.section-header.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bnpp-green);
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--bnpp-gold-light); }
.section-header h2 { font-size: var(--step-3); color: var(--bnpp-green-deep); }
.section-navy .section-header h2 { color: var(--bnpp-white); }
.section-header p { color: var(--bnpp-ink-soft); font-size: var(--step-0); }
.section-navy .section-header p { color: rgba(255,255,255,0.75); }

/* ==========================================================================
   PILLAR / FEATURE CARDS  (Why join)
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pillar-card {
  background: var(--bnpp-white);
  border: 1px solid var(--bnpp-line);
  border-top: 3px solid var(--bnpp-red);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.pillar-card .pillar-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--bnpp-mist);
  border-radius: var(--radius-sm);
  color: var(--bnpp-red);
  margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.2rem; color: var(--bnpp-green-deep); }
.pillar-card p { color: var(--bnpp-ink-soft); font-size: var(--step--1); margin: 0; }

/* ==========================================================================
   NEWS CARDS
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: var(--bnpp-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bnpp-line);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.15s;
}
.news-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bnpp-mist); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; }
.news-card .date { font-size: 0.78rem; color: var(--bnpp-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.news-card h3 { font-size: 1.08rem; margin: 8px 0 10px; color: var(--bnpp-green-deep); }
.news-card .excerpt { color: var(--bnpp-ink-soft); font-size: 0.9rem; }
.news-card .read-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--bnpp-red); font-size: 0.86rem; }

/* ==========================================================================
   MEMBERSHIP / CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--bnpp-green-deep);
  background-image: linear-gradient(120deg, var(--bnpp-green-deep) 0%, var(--bnpp-green-deeper) 100%);
  color: var(--bnpp-white);
  border-radius: var(--radius-md);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--bnpp-white); font-size: var(--step-2); max-width: 22ch; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tier cards (membership fee / primary member fee / donate) */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier-card {
  background: var(--bnpp-white);
  border: 1px solid var(--bnpp-line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}
.tier-card.featured {
  border-color: var(--bnpp-gold);
  box-shadow: var(--shadow-lift);
}
.tier-card.featured::before {
  content: "Most common";
  position: absolute; top: -12px; left: 28px;
  background: var(--bnpp-gold);
  color: var(--bnpp-green-deeper);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.tier-card h3 { color: var(--bnpp-green-deep); font-size: 1.2rem; }
.tier-card .price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--bnpp-red); margin: 8px 0 4px; }
.tier-card .price small { font-family: var(--font-body); font-size: 0.9rem; color: var(--bnpp-ink-soft); font-weight: 500; }
.tier-card ul { margin: 20px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.tier-card li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--bnpp-ink-soft); align-items: flex-start; }
.tier-card li svg { flex-shrink: 0; color: var(--bnpp-green); margin-top: 3px; }

/* ==========================================================================
   FORMS  (signup / login / donation)
   ========================================================================== */
.form-card {
  background: var(--bnpp-white);
  border: 1px solid var(--bnpp-line);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  max-width: 520px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-weight: 600; font-size: 0.86rem; color: var(--bnpp-green-deep);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--bnpp-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bnpp-white);
  transition: border-color 0.15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--bnpp-red); outline: none; }
.form-row-inline { display: flex; gap: 14px; }
.form-row-inline .form-row { flex: 1; }
.form-hint { font-size: 0.8rem; color: var(--bnpp-ink-soft); margin-top: 6px; }

.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-pill {
  padding: 12px 8px; text-align: center; border-radius: var(--radius-sm);
  border: 1.5px solid var(--bnpp-line); font-weight: 700; cursor: pointer;
  transition: all 0.15s; font-variant-numeric: tabular-nums;
}
.amount-pill.active, .amount-pill:hover { border-color: var(--bnpp-gold); background: #fdf7ea; color: var(--bnpp-green-deep); }

.payment-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.payment-methods .pm {
  border: 1.5px solid var(--bnpp-line); border-radius: var(--radius-sm);
  padding: 9px 14px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.payment-methods .pm.active { border-color: var(--bnpp-red); color: var(--bnpp-red); background: var(--bnpp-mist); }

/* ==========================================================================
   MEMBER / SOCIAL FEED (BuddyPress-style)
   ========================================================================== */
.feed-layout { display: grid; grid-template-columns: 260px 1fr 280px; gap: 24px; align-items: start; }
.feed-panel {
  background: var(--bnpp-white); border: 1px solid var(--bnpp-line); border-radius: var(--radius-md);
  padding: 20px; box-shadow: var(--shadow-card);
}
.feed-panel h4 { font-size: 0.95rem; color: var(--bnpp-green-deep); margin-bottom: 14px; }
.feed-panel ul { display: flex; flex-direction: column; gap: 12px; }
.chapter-link { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--bnpp-ink-soft); }
.chapter-link .count { color: var(--bnpp-red); font-weight: 700; }

.post-composer { display: flex; gap: 12px; margin-bottom: 20px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bnpp-mist); flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.composer-input {
  flex: 1; border: 1.5px solid var(--bnpp-line); border-radius: 22px;
  padding: 11px 18px; color: var(--bnpp-ink-soft); font-size: 0.9rem; cursor: text;
}

.activity-item { display: flex; gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--bnpp-line); }
.activity-item:last-child { border-bottom: none; }
.activity-body { flex: 1; }
.activity-meta { font-size: 0.85rem; }
.activity-meta .who { font-weight: 700; color: var(--bnpp-green-deep); }
.activity-meta .when { color: var(--bnpp-ink-soft); }
.activity-text { font-size: 0.92rem; margin-top: 4px; }
.activity-actions { display: flex; gap: 16px; margin-top: 10px; font-size: 0.82rem; color: var(--bnpp-ink-soft); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bnpp-green-deeper); color: rgba(255,255,255,0.72); }
.footer-top { padding-block: 60px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand .brand-name { color: var(--bnpp-white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: 0.86rem; margin-top: 12px; max-width: 34ch; }
.footer-col h5 {
  color: var(--bnpp-white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px; font-family: var(--font-body); font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--bnpp-gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; transition: background 0.15s;
}
.footer-socials a:hover { background: var(--bnpp-red); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Prevent any single element from forcing horizontal scroll on the page —
   a common invisible mobile bug (one overflowing element breaks the whole
   page's scroll). */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 420px; margin-inline: auto; }
  .hero-stats { justify-content: center; }
  .grid-3, .news-grid, .tier-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feed-layout { grid-template-columns: 1fr; }
  .newsroom-layout { grid-template-columns: 1fr; }
  .story-row { flex-wrap: wrap; }
}

@media (max-width: 782px) {
  /* Header: collapse to hamburger. Icon row (Directory/Groups/Messages/
     ID card) moves into the mobile drawer via .mobile-account-links —
     showing all 5 icons plus 2 CTA buttons inline has no room on a phone. */
  .primary-nav { display: none; }
  .header-actions .btn-outline-navy { display: none; }
  .header-actions .icon-btn { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: var(--radius-sm); background: var(--bnpp-mist); border: none; cursor: pointer;
    flex-shrink: 0;
  }
  .header-actions { gap: 8px; }
  .header-actions .btn-gold { padding: 10px 14px; font-size: 0.82rem; }
  .site-branding img { height: 38px; }
  .site-branding .brand-name { font-size: 0.72rem; }
  .site-branding .brand-sub { font-size: 0.62rem; }

  .primary-nav .sub-menu {
    position: static; box-shadow: none; border-top: none;
    padding-left: 14px; opacity: 1; transform: none;
    border-left: 2px solid var(--bnpp-mist-dark); margin-left: 14px;
  }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav .menu-item-has-children .sub-menu { display: none; }
  .primary-nav .menu-item-has-children.menu-open .sub-menu { display: block; }
  .primary-nav .menu-item-has-children > a::after { margin-left: auto; }
  .mobile-account-links {
    display: flex; flex-direction: column; gap: 2px;
    border-top: 1px solid var(--bnpp-line); margin-top: 8px; padding-top: 8px;
  }
  .mobile-account-links a {
    display: block; padding: 11px 14px; font-weight: 600; font-size: 0.9rem;
    color: var(--bnpp-ink); border-radius: var(--radius-sm);
  }
  .mobile-account-links a:hover { background: var(--bnpp-mist); }
}

@media (min-width: 783px) {
  .mobile-account-links { display: none; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2, .news-grid, .tier-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row-inline { flex-direction: column; gap: 0; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .payment-methods { flex-direction: column; }
  .payment-methods .pm { text-align: center; }

  /* Ticker: shrink so the LIVE tag + marquee text fit comfortably and
     don't force the page wider than the viewport. */
  .ticker-track { padding-left: 76px; gap: 32px; }
  .ticker-bar::before { font-size: 0.62rem; padding-inline: 12px; }
  .ticker-item { font-size: 0.78rem; }

  /* Member ID card: stack photo/details/QR instead of cramming 3 columns
     into a phone width. */
  .id-card-body { flex-direction: column; align-items: center; text-align: center; }
  .id-card-qr { margin-top: 4px; }
  .id-card-footer { flex-direction: column; gap: 6px; text-align: center; }
  .id-card-actions { flex-direction: column; align-items: stretch; }

  /* Hero heading shouldn't fight the viewport on small phones. */
  .hero h1 { max-width: none; }
  .cta-band h2 { max-width: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 48px; }
  .hero { padding-block: 48px 36px; }
  .hero-stats { gap: 20px; }
  .tier-card, .pillar-card, .news-card .body, .form-card { padding: 20px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
  .amount-grid .amount-pill:last-child { grid-column: 1 / -1; }
  .topbar .container { justify-content: center; }
  .topbar-lang { display: none; }
}

/* ==========================================================================
   MESSAGING (network layer additions)
   ========================================================================== */
.bnpp-msg-mine .activity-text {
  background: var(--bnpp-red);
  color: var(--bnpp-white);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 14px;
}
.bnpp-msg-mine { flex-direction: row-reverse; }
.bnpp-msg-mine .activity-body { text-align: right; }

/* ==========================================================================
   POLLS / VOTING
   ========================================================================== */
.poll-widget {
  background: var(--bnpp-white);
  border: 1px solid var(--bnpp-line);
  border-top: 3px solid var(--bnpp-gold);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.poll-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--bnpp-green); background: #eaf7ef;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.poll-badge.poll-closed { color: var(--bnpp-ink-soft); background: var(--bnpp-mist); }
.poll-question h3 { font-size: 1.2rem; color: var(--bnpp-green-deep); margin-bottom: 4px; }
.poll-context { font-size: 0.86rem; color: var(--bnpp-ink-soft); margin-bottom: 18px; }
.poll-group { margin-top: 18px; }
.poll-group + .poll-group { border-top: 1px solid var(--bnpp-line); padding-top: 18px; }
.poll-group-label { font-size: 0.85rem; font-weight: 700; color: var(--bnpp-green-deep); margin-bottom: 10px; }
.poll-options { display: flex; flex-direction: column; gap: 10px; }

.poll-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bnpp-white);
  border: 1.5px solid var(--bnpp-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-body);
}
.poll-option:hover:not(:disabled) { border-color: var(--bnpp-red); }
.poll-option:disabled { cursor: default; opacity: 0.85; }
.poll-option-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.poll-option-icon { color: var(--bnpp-ink-soft); flex-shrink: 0; }
.poll-option-label { font-weight: 700; font-size: 0.92rem; color: var(--bnpp-ink); flex: 1; }
.poll-option-pct { font-weight: 800; font-size: 0.9rem; color: var(--bnpp-ink-soft); font-variant-numeric: tabular-nums; }

.poll-option-yes .poll-option-icon,
.poll-option-like .poll-option-icon { color: var(--bnpp-green); }
.poll-option-no .poll-option-icon,
.poll-option-dislike .poll-option-icon { color: #b3402f; }

.poll-option-selected { border-color: var(--bnpp-gold); background: #fdf7ea; }
.poll-option-selected .poll-option-pct { color: var(--bnpp-green-deep); }

.poll-bar-track {
  display: block; height: 8px; border-radius: 4px; background: var(--bnpp-mist); overflow: hidden;
}
.poll-bar-fill {
  display: block; height: 100%; border-radius: 4px;
  background: var(--bnpp-red);
  transition: width 0.4s ease;
}
.poll-option-yes .poll-bar-fill, .poll-option-like .poll-bar-fill { background: var(--bnpp-green); }
.poll-option-no .poll-bar-fill, .poll-option-dislike .poll-bar-fill { background: #b3402f; }

.poll-total { font-size: 0.78rem; color: var(--bnpp-ink-soft); margin-top: 10px; text-align: right; }

/* ==========================================================================
   DAILY UPDATES TIMELINE
   ========================================================================== */
.timeline-day-group { margin-bottom: 36px; }
.timeline-day-label {
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bnpp-green);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bnpp-line);
}
.timeline-item { display: flex; gap: 18px; margin-bottom: 24px; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bnpp-red);
  border: 3px solid var(--bnpp-mist);
  margin-top: 6px;
  flex-shrink: 0;
}
.timeline-content { flex: 1; }
.timeline-time { font-size: 0.78rem; color: var(--bnpp-ink-soft); font-weight: 600; margin-bottom: 4px; }
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline-content h3 a { color: var(--bnpp-green-deep); }
.timeline-content p { color: var(--bnpp-ink-soft); font-size: 0.9rem; margin: 0; }
.timeline-thumb { border-radius: 6px; overflow: hidden; max-width: 420px; margin-bottom: 10px; }

/* ==========================================================================
   COMMITTEE / VERIFIED BADGE
   ========================================================================== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bnpp-green-deep);
  background: var(--bnpp-gold-light);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ==========================================================================
   HOMEPAGE: TICKER
   ========================================================================== */
.ticker-bar {
  background: var(--bnpp-green-deeper);
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.ticker-bar::before {
  content: "LIVE";
  position: absolute; top: 0; left: 0; bottom: 0;
  display: flex; align-items: center;
  background: var(--bnpp-gold);
  color: var(--bnpp-green-deeper);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em;
  padding-inline: 16px;
  z-index: 2;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  white-space: nowrap;
  padding: 11px 0 11px 96px;
  animation: bnpp-ticker 38s linear infinite;
  width: max-content;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes bnpp-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.85);
}
.ticker-item a { color: rgba(255,255,255,0.85); }
.ticker-item a:hover { color: var(--bnpp-gold-light); }
.ticker-tag {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--bnpp-gold-light);
}

/* ==========================================================================
   HOMEPAGE: NEWSROOM (main feed + widget sidebar)
   ========================================================================== */
.newsroom-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}
.featured-story {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bnpp-line);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.featured-story .thumb { aspect-ratio: 16/8; background: var(--bnpp-mist); overflow: hidden; }
.featured-story .thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-story .body { padding: 22px 24px; }
.featured-story h3 { font-size: 1.35rem; margin-bottom: 8px; }
.featured-story h3 a { color: var(--bnpp-green-deep); }
.featured-story p { color: var(--bnpp-ink-soft); font-size: 0.94rem; }

.story-row {
  display: flex; gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--bnpp-line);
}
.story-row:last-child { border-bottom: none; }
.story-row .thumb {
  width: 108px; height: 76px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bnpp-mist);
}
.story-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-row h4 { font-size: 0.98rem; margin-bottom: 4px; }
.story-row h4 a { color: var(--bnpp-green-deep); }
.story-row .date { font-size: 0.76rem; color: var(--bnpp-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* Sidebar widgets */
.widget-stack { display: flex; flex-direction: column; gap: 20px; }
.mini-widget {
  background: var(--bnpp-white);
  border: 1px solid var(--bnpp-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.mini-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bnpp-line);
  background: var(--bnpp-mist);
}
.mini-widget-header h4 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--bnpp-green-deep); font-weight: 800; margin: 0;
}
.mini-widget-header a { font-size: 0.76rem; font-weight: 700; color: var(--bnpp-red); }
.mini-widget-body { padding: 6px 18px; }
.mini-widget-empty { padding: 16px 0; font-size: 0.82rem; color: var(--bnpp-ink-soft); }

.mini-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding-block: 12px;
  border-bottom: 1px solid var(--bnpp-line);
}
.mini-item:last-child { border-bottom: none; }
.mini-item-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bnpp-mist); color: var(--bnpp-red);
}
.mini-item-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden; }
.mini-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-item-title { font-size: 0.88rem; font-weight: 700; color: var(--bnpp-green-deep); line-height: 1.3; }
.mini-item-title a { color: inherit; }
.mini-item-meta { font-size: 0.74rem; color: var(--bnpp-ink-soft); margin-top: 2px; }
.mini-item-text { font-size: 0.82rem; color: var(--bnpp-ink-soft); margin-top: 3px; line-height: 1.4; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot-ongoing { background: var(--bnpp-green); }
.status-dot-upcoming { background: var(--bnpp-red); }
.status-dot-completed { background: var(--bnpp-ink-soft); }

@media (max-width: 960px) {
  .newsroom-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DONATION: PAYMENT INSTRUCTIONS
   ========================================================================== */
.payment-instructions { display: flex; flex-direction: column; gap: 12px; }
.pay-method-card {
  border: 1.5px solid var(--bnpp-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.pay-method-card.pay-method-active { border-color: var(--bnpp-gold); background: #fdf7ea; }
.pay-method-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pay-method-head strong { color: var(--bnpp-green-deep); font-size: 0.95rem; }
.pay-method-type {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--bnpp-green); background: #eaf7ef; padding: 2px 8px; border-radius: 20px;
}
.pay-method-card p { margin: 0; font-size: 0.88rem; color: var(--bnpp-ink-soft); }

/* ==========================================================================
   MEMBER ID CARD
   ========================================================================== */
.id-card {
  background: linear-gradient(135deg, var(--bnpp-green-deeper) 0%, var(--bnpp-green-deep) 100%);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 520px;
  margin: 0 auto;
  color: var(--bnpp-white);
}
.id-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.15);
  border-bottom: 2px solid var(--bnpp-gold);
}
.id-card-emblem { width: 40px; height: 40px; }
.id-card-org { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.id-card-sub { font-size: 0.7rem; color: var(--bnpp-gold-light); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

.id-card-body { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.id-card-photo {
  width: 84px; height: 84px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--bnpp-gold);
}
.id-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-card-details { flex: 1; min-width: 0; }
.id-card-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.id-card-role { font-size: 0.82rem; color: var(--bnpp-gold-light); margin-bottom: 8px; }
.id-card-table { font-size: 0.78rem; border-collapse: collapse; }
.id-card-table th { text-align: left; color: rgba(255,255,255,0.55); font-weight: 600; padding-right: 10px; padding-block: 2px; }
.id-card-table td { color: rgba(255,255,255,0.9); padding-block: 2px; }
.id-card-qr { text-align: center; flex-shrink: 0; }
.id-card-qr img { width: 76px; height: 76px; background: #fff; border-radius: 6px; padding: 4px; }
.id-card-qr-label { font-size: 0.62rem; color: rgba(255,255,255,0.6); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.id-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.id-card-id { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em; font-size: 0.92rem; }
.id-card-verified { font-size: 0.72rem; color: var(--bnpp-gold-light); font-weight: 700; }

.id-card-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; margin-bottom: 10px; }

@media print {
  body * { visibility: hidden; }
  #bnpp-id-card, #bnpp-id-card * { visibility: visible; }
  #bnpp-id-card { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   APPLICATION CONFIRMATION
   ========================================================================== */
.app-confirmation { text-align: center; padding: 8px 0 4px; }
.app-confirmation-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #eaf7ef; color: var(--bnpp-green);
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 700;
  margin: 0 auto 16px;
}
.app-confirmation h3 { color: var(--bnpp-green-deep); font-size: 1.3rem; margin-bottom: 20px; }
.app-confirmation-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--bnpp-line);
  text-align: left;
}
.app-confirmation-row .label { font-size: 0.82rem; color: var(--bnpp-ink-soft); font-weight: 600; }
.app-confirmation-row .value { font-family: var(--font-display); font-weight: 700; color: var(--bnpp-green-deep); letter-spacing: 0.02em; }
.app-confirmation-row .value.status-pending { color: var(--bnpp-gold); font-family: var(--font-body); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; }
.app-confirmation-note { font-size: 0.86rem; color: var(--bnpp-ink-soft); margin-top: 20px; text-align: left; line-height: 1.6; }
.app-confirmation-note a { color: var(--bnpp-red); font-weight: 700; }
