/* ============================================================
   Bhalai Foundation — bhalai.org
   Goodness that works.
   Design system: compact, card-based, impact-first.
   Palette: Bhalai Green, Action Orange, Trust Navy,
            Soft Earth, Impact Lime, Charcoal.
   ============================================================ */

:root {
  /* Bhalai Foundation brand palette (per brand guideline) —
     0E5A3C green · 0F1F35 navy · 7FC97F light green · F5C84B gold · F2F4F5 surface */
  --green: #0E5A3C;
  --green-dark: #0A4630;
  --green-soft: #E7F1EC;
  --gold: #F5C84B;
  --gold-dark: #E0B23C;
  --orange: #F5C84B;         /* brand gold drives primary CTAs */
  --orange-dark: #E0B23C;
  --navy: #0F1F35;
  --navy-soft: #1B3350;
  --cream: #F2F4F5;          /* brand neutral surface */
  --lime: #7FC97F;           /* brand light green accent */
  --charcoal: #1F2937;
  --muted: #5B6472;
  --line: #E3E7EC;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(18, 38, 58, 0.07);
  --shadow-lg: 0 10px 30px rgba(18, 38, 58, 0.12);
  --font-head: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Fluid base size: the whole rem-based system grows gently on large screens
   (16px on phones → ~19px on a 4K/55" display) and never shrinks below 16px,
   so the site scales across the full viewport range instead of looking tiny
   on a big screen. */
html { scroll-behavior: smooth; font-size: clamp(16px, 0.14vw + 14.7px, 19px); }

body {
  font-family: var(--font-body);
  font-size: 1.03rem;   /* scales with the fluid root above */
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.22rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Solid, opaque background so the bar looks identical on every page —
     a translucent header let the section behind it (navy hero vs cream body)
     tint it differently from page to page. */
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 31, 53, 0.04);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo-mark { width: 40px; height: 40px; flex: none; border-radius: 9px; }
/* The supplied logo PNG has a white background; round it into a clean badge so
   it reads well on the navy footer (invisible effect on the white header). */
.site-footer .brand .logo-mark { background: #fff; }
.brand .logo-word {
  font-family: var(--font-head); font-weight: 800; font-size: 1.35rem;
  color: var(--navy); line-height: 1; letter-spacing: -0.02em;
}
.brand .logo-word .bhalai { color: var(--green); }
.brand .logo-sub {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > .nav-item { position: relative; }
.main-nav > .nav-item > a {
  display: block; padding: 10px 12px; font-weight: 600; font-size: 0.95rem;
  color: var(--navy); border-radius: 8px;
}
.main-nav > .nav-item > a:hover { background: var(--green-soft); color: var(--green-dark); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; z-index: 101;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 0.92rem; font-weight: 500; color: var(--charcoal);
}
.dropdown a:hover { background: var(--green-soft); color: var(--green-dark); }

.header-ctas { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem; color: var(--navy); line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--orange); color: var(--navy); }
/* Keep navy text on hover — white on the darker gold was only ~2:1 (fails AA). */
.btn-primary:hover { background: var(--orange-dark); color: var(--navy); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lime); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: #DDE6EE; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-green { background: var(--green); color: #EAF4EF; }
.section-green h2, .section-green h3 { color: var(--white); }

.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 12px;
}
/* Lime on navy passes AA, but lime on green was only 4.1:1 at kicker size —
   use white on the green section so small kicker text stays legible. */
.section-dark .kicker { color: var(--lime); }
.section-green .kicker { color: var(--white); }

.lead { font-size: 1.14rem; color: var(--muted); max-width: 46em; }
.section-dark .lead, .section-green .lead { color: rgba(255,255,255,0.82); }

.section-head { margin-bottom: 36px; max-width: 52em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 10px; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(163, 230, 53, 0.16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(245, 158, 11, 0.10), transparent 60%),
    var(--navy);
  color: #E7EDF3; padding: 88px 0 72px;
}
.hero h1 { color: var(--white); margin: 10px 0 6px; }
.hero .tagline {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: var(--lime); margin-bottom: 18px;
}
.hero p.hero-desc { font-size: 1.13rem; max-width: 42em; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .pillar-strip {
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.65);
}
.hero .pillar-strip strong { color: var(--lime); font-weight: 700; }

.page-hero { background: var(--navy); color: #E7EDF3; padding: 64px 0 52px; }
.page-hero h1 { color: var(--white); margin: 8px 0 10px; }
.page-hero .promise {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--lime); margin-bottom: 14px;
}
.page-hero p { max-width: 46em; color: rgba(255,255,255,0.84); font-size: 1.08rem; }
.page-hero .hero-ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }
.card .card-link::after { content: " →"; }

a.card-wrap { display: block; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.card-wrap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.pillar-card { border-top: 4px solid var(--green); }
.pillar-card .pillar-promise { font-weight: 600; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 8px; }

/* ---------- Impact counters ---------- */

.counter-band .grid { gap: 16px; }
.counter {
  text-align: center; padding: 26px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}
.counter .num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--lime); line-height: 1.1;
}
.counter .label { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin-top: 6px; }

.disclaimer {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-align: center; margin-top: 20px;
}
.disclaimer-light { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }

/* metric cards on light background */
.metric {
  text-align: center; padding: 24px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.metric .num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.9rem;
  color: var(--green); line-height: 1.1;
}
.metric .label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  font-size: 0.96rem;
}
table.data th {
  background: var(--navy); color: var(--white); text-align: left;
  padding: 13px 18px; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
}
table.data td { padding: 12px 18px; border-top: 1px solid var(--line); }
table.data tr:nth-child(even) td { background: #FBF9F3; }

/* ---------- Lists ---------- */

.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 32px; position: relative; }
.check-list li::before {
  content: "+"; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; font-size: 0.95rem; text-align: center; line-height: 22px;
  font-family: var(--font-head);
}
.section-dark .check-list li::before, .section-green .check-list li::before {
  background: rgba(163,230,53,0.18); color: var(--lime);
}

/* Center the reading column — without margin:auto the text stuck to the far
   left and the whole right half of the page was empty on legal/policy pages. */
.prose { max-width: 46em; margin: 0 auto; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin: 34px 0 12px; }
.prose h3 { margin: 26px 0 10px; }
.prose blockquote {
  border-left: 4px solid var(--orange); background: var(--white);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-family: var(--font-head); font-weight: 600; color: var(--navy);
}

/* ---------- GIVE+ impact card ---------- */

.impact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 640px;
}
.impact-card .ic-head {
  background: var(--green); color: var(--white); padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.impact-card .ic-head .ic-title { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.impact-card .ic-head .ic-score {
  background: var(--lime); color: var(--navy); font-family: var(--font-head);
  font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 0.95rem; white-space: nowrap;
}
.impact-card .ic-body { padding: 10px 24px 20px; }
.impact-card .ic-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.impact-card .ic-row:last-child { border-bottom: none; }
.impact-card .ic-row .k { color: var(--muted); }
.impact-card .ic-row .v { font-weight: 600; color: var(--navy); text-align: right; }

/* GIVE+ badge chip */
.give-chip {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  background: var(--lime); color: var(--navy); padding: 4px 14px;
  border-radius: 999px; font-size: 0.9rem;
}

/* ---------- Story cards ---------- */

.story-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--orange);
}
.story-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.story-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 42em; margin: 0 auto 26px; }
.cta-band .hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 {
  color: var(--white); font-size: 0.85rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.75); font-size: 0.93rem; }
.site-footer a:hover { color: var(--lime); }
.footer-brand .logo-word { color: var(--white); }
/* the dark-green B mark would vanish on the navy footer — sit it on a white chip */
.footer-brand .logo-mark {
  background: var(--white); border-radius: 9px; padding: 4px;
  width: 40px; height: 40px; box-sizing: border-box;
}
.footer-brand .tagline { color: var(--lime); font-family: var(--font-head); font-weight: 700; margin: 10px 0 14px; }
/* the logo lockup's tagline ("Goodness that works.") — light on the navy footer */
.footer-brand .logo-sub { color: rgba(255,255,255,0.62); }
.footer-brand .logo-word { color: var(--white); }
.footer-brand p { font-size: 0.92rem; max-width: 30em; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
}
.site-version {
  font-family: var(--font-mono, monospace); font-size: 0.78rem;
  color: rgba(255,255,255,0.38); letter-spacing: 0.04em;
}

/* ---------- Two-column feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 18px 18px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .dropdown {
    position: static; display: block; box-shadow: none; border: none;
    padding: 0 0 6px 14px; min-width: 0;
  }
  .header-ctas .btn-outline { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .counter-band .grid-3 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v1.0002 additions — Loop architecture, forms, cart, i18n,
   timeline, status states, illustrations.
   ============================================================ */

/* ---------- Utility strip (live campaign) ---------- */
.utility-strip {
  background: var(--green-dark); color: #EAF4EF; font-size: 0.88rem;
  padding: 8px 0; text-align: center;
}
.utility-strip a { color: var(--lime); font-weight: 700; margin-left: 8px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex; gap: 2px; align-items: center; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px; background: var(--white);
}
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: 0.78rem; padding: 5px 10px; border-radius: 999px;
  color: var(--muted);
}
.lang-switch button.active { background: var(--green); color: var(--white); }

/* ---------- Status badges ---------- */
.status-badge {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; border: 1.5px solid transparent;
}
.status-open { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.status-waitlist { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }
.status-upcoming { background: #DBEAFE; color: #1E40AF; border-color: #93C5FD; }
.status-closed { background: #F3F4F6; color: #4B5563; border-color: #D1D5DB; }
.status-completed { background: #EDE9FE; color: #5B21B6; border-color: #C4B5FD; }
.status-banner {
  background: rgba(163, 230, 53, 0.12); border: 1px solid rgba(163,230,53,0.45);
  border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 20px;
  font-size: 0.95rem; color: #EAF4EF;
}
.status-banner .status-badge { margin-right: 10px; }

/* Phase 7 US-7.1 — program registration CTA (driven by registration_status) */
.reg-cta { margin-top: 18px; }
.reg-cta-closed .reg-closed-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F3F4F6; color: #4B5563; border: 1px solid #D1D5DB;
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.95rem;
}
.reg-cta-closed .reg-closed-pill::before { content: "•"; color: #9CA3AF; }

/* Phase 7 US-7.2 — six-month campaign calendar */
.campaign-calendar { display: flex; flex-direction: column; gap: 12px; }
.cc-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.cc-month { font-weight: 700; color: var(--green); font-size: 0.95rem; padding-top: 2px; }
.cc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.cc-head strong { font-size: 1.02rem; }
.cc-body p { margin: 4px 0 8px; color: var(--muted); }
.cc-progs { display: block; font-size: 0.85rem; }
.cc-progs a { margin-right: 10px; text-transform: capitalize; }
.cc-next { display: inline-block; margin-top: 4px; font-size: 0.85rem; color: #B45309; font-weight: 600; }
.cc-metrics { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.cc-metric { font-size: 0.8rem; background: var(--cream); border-radius: 6px; padding: 3px 9px; color: var(--navy); }
@media (max-width: 640px) { .cc-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- The Bhalai Loop diagram ---------- */
.loop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: loopstep; }
.loop-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 18px; position: relative; box-shadow: var(--shadow);
  counter-increment: loopstep;
}
.loop-step::before {
  content: counter(loopstep); position: absolute; top: -14px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--green);
  color: var(--white); font-family: var(--font-head); font-weight: 800;
  text-align: center; line-height: 28px; font-size: 0.9rem;
}
.loop-step h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.loop-step p { font-size: 0.9rem; color: var(--muted); }
.loop-flow {
  font-family: var(--font-head); font-weight: 700; text-align: center;
  color: var(--green-dark); background: var(--green-soft);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 24px;
  font-size: 1.02rem; line-height: 1.7;
}
.section-dark .loop-flow { background: rgba(163,230,53,0.1); color: var(--lime); }

/* ---------- Timeline (In action since 2014) ---------- */
.timeline { position: relative; margin: 10px 0; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 3px; background: var(--green-soft); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 28px 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 5px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--lime); border: 3.5px solid var(--green);
}
.tl-year { font-family: var(--font-head); font-weight: 800; color: var(--green-dark); font-size: 1.05rem; }
.tl-item h3 { font-size: 1.05rem; margin: 3px 0 5px; }
.tl-item p { color: var(--muted); font-size: 0.95rem; max-width: 40em; }

/* ---------- Illustrations & photo frames ---------- */
.illus { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.illus img, .illus svg { width: 100%; height: auto; display: block; }
.figure-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.banner-figure { margin: 26px 0 6px; }
.banner-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.banner-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.hero-illus {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
.split-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }

/* ---------- Forms ---------- */
.bh-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg); max-width: 760px;
}
.bh-form h3 { margin-bottom: 6px; }
.bh-form .form-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.88rem; color: var(--navy); margin-bottom: 6px;
}
.field label .req { color: #DC2626; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="url"], .field input[type="date"],
.field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--charcoal); background: #FDFCF9; outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.field.error input, .field.error select, .field.error textarea { border-color: #DC2626; }
.field .err-msg { display: none; color: #DC2626; font-size: 0.8rem; margin-top: 4px; }
.field.error .err-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-group .choice {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; cursor: pointer;
  background: #FDFCF9; user-select: none;
}
.choice-group .choice:has(input:checked) {
  border-color: var(--green); background: var(--green-soft); color: var(--green-dark);
  font-weight: 600;
}
.choice input { accent-color: var(--green); margin: 0; }
.consent-box {
  display: flex; gap: 10px; align-items: flex-start; background: #FBF9F3;
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px;
  font-size: 0.84rem; color: var(--muted); margin-bottom: 14px;
}
.consent-box input { margin-top: 3px; accent-color: var(--green); flex: none; }
.form-alert {
  display: none; border-radius: 9px; padding: 14px 16px; font-size: 0.92rem; margin-bottom: 16px;
}
.form-alert.show { display: block; }
.form-alert.success { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.form-alert.error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.form-alert.warn { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }
.bh-form .btn { width: 100%; margin-top: 6px; }
.hidden { display: none !important; }

/* ---------- Shop & cart ---------- */
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card .p-img { background: var(--green-soft); }
.product-card .p-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-card .p-msg { font-size: 0.86rem; color: var(--green-dark); font-weight: 600; margin-bottom: 8px; }
.product-card .p-supports { font-size: 0.84rem; color: var(--muted); flex: 1; }
.product-card .p-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px;
}
.product-card .p-price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -10px; background: var(--orange); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; font-size: 0.68rem;
  min-width: 18px; height: 18px; border-radius: 999px; text-align: center; line-height: 18px;
  padding: 0 4px;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qty-ctl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty-ctl button {
  width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--green-soft);
  color: var(--green-dark); font-weight: 800; cursor: pointer; line-height: 1;
}
.summary-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.amount-presets button {
  border: 1.5px solid var(--line); background: #FDFCF9; border-radius: 999px;
  padding: 8px 16px; font-family: var(--font-head); font-weight: 700; cursor: pointer;
  font-size: 0.9rem; color: var(--navy);
}
.amount-presets button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: var(--white); border-radius: 999px; padding: 12px 24px;
  font-size: 0.92rem; box-shadow: var(--shadow-lg); z-index: 300; transition: transform 0.25s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: var(--lime); font-weight: 700; margin-left: 8px; }

/* ---------- Auth ---------- */
.auth-card {
  max-width: 440px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1; border: 1.5px solid var(--line); background: #FDFCF9; border-radius: 9px;
  padding: 10px; font-family: var(--font-head); font-weight: 700; cursor: pointer; color: var(--muted);
}
.auth-tabs button.active { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.account-chip { font-size: 0.85rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }

/* ---------- Responsive additions ---------- */
@media (max-width: 960px) {
  .loop-steps { grid-template-columns: repeat(2, 1fr); }
  .split-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .loop-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .bh-form { padding: 22px 18px; }
  .lang-switch { order: -1; }
}

/* keep header CTAs on one line at mid widths */
.header-ctas .btn { white-space: nowrap; }

/* mobile quick actions inside the collapsed nav */
.mobile-quick { display: none; }
@media (max-width: 720px) {
  .header-ctas { gap: 8px; }
  .header-ctas .btn, .header-ctas [data-account-slot] { display: none; }
  .mobile-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
}

/* five-column footer that actually collapses on small screens */
.footer-grid-5 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .footer-grid-5 { grid-template-columns: 1fr; } }

/* compact header on small phones */
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand .logo-word { font-size: 1.05rem; }
  .brand .logo-sub { font-size: 0.55rem; letter-spacing: 0.1em; }
  .brand .logo-mark { width: 34px; height: 34px; }
  .lang-switch button { padding: 4px 7px; font-size: 0.72rem; }
}

/* ---- v1.0025: priority nav — overflowing menu items fold into "More ▾" ---- */
.nav-more > a { cursor: pointer; }
.nav-more .dropdown { right: 0; left: auto; }
.nav-more .dropdown .nav-item { position: static; }
.nav-more .dropdown .nav-item > a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 0.92rem; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.nav-more .dropdown .nav-item > a:hover { background: var(--green-soft); color: var(--green-dark); }
/* a folded item's own submenu renders inline (indented), always visible */
.nav-more .dropdown .nav-item .dropdown {
  position: static; display: block; box-shadow: none; border: none;
  padding: 0 0 6px 14px; min-width: 0;
}

/* ---- v1.0005: nav no-wrap + story filters/expand ---- */
.main-nav > .nav-item > a { white-space: nowrap; }
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.story-chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
  padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 0.86rem;
  cursor: pointer; font-family: inherit;
}
.story-chip:hover { border-color: var(--green); color: var(--green-dark); }
.story-chip.active { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.story-item .card-tag { margin-bottom: 10px; }
.story-more { margin-top: 12px; }
.story-more summary {
  cursor: pointer; font-weight: 700; color: var(--green-dark); font-size: 0.92rem;
  list-style: none;
}
.story-more summary::before { content: "+ "; }
.story-more[open] summary::before { content: "− "; }
.story-more summary::-webkit-details-marker { display: none; }
.story-full { margin-top: 12px; border-top: 1.5px solid var(--line); padding-top: 12px; }
.story-full p { margin-bottom: 12px; font-size: 0.95rem; }

/* ---- v1.0006: brand lockup fix (guideline 6.3/6.4: horizontal lockup, clear
   space, never let nav text touch the logo), 1280px container (guideline 8.3),
   banner slider, form modals ---- */
:root { --maxw: 1280px; }
.brand { flex: none; }
.brand .logo-word, .brand .logo-sub { white-space: nowrap; }
.main-nav { flex-wrap: nowrap; }
@media (max-width: 1280px) {
  .brand .logo-word { font-size: 1.18rem; }
  .main-nav { gap: 0; }
  .main-nav > .nav-item > a { padding: 9px 9px; font-size: 0.9rem; }
  .header-ctas .btn { padding: 8px 12px; font-size: 0.82rem; }
}

/* Banner slider (announcements managed in data/db.json) */
.banner-slider { position: relative; overflow: hidden; }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-dots { display: inline-flex; gap: 2px; margin-left: 12px; vertical-align: middle; }
/* 24x24 hit area (WCAG target size) with the 8px dot drawn via ::before, so the
   visual stays small but the tap/click target is finger-friendly. */
.banner-dots button {
  width: 24px; height: 24px; border: none; cursor: pointer; padding: 0;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
}
.banner-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.banner-dots button.active::before { background: var(--lime); }

/* Hero slider (home): slides stack in one grid cell so the tallest slide sets
   the height once — switching slides never shifts the layout below (no CLS).
   visibility (not display) keeps hidden slides out of the tab order and the
   accessibility tree while preserving the reserved height. */
.hero-slider { position: relative; display: grid; }
.hero-slider .hero-slide { grid-area: 1 / 1; visibility: hidden; z-index: 0; }
.hero-slider .hero-slide.active { visibility: visible; z-index: 1; }
.hero-dots {
  position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px;
}
/* Same 24px hit-area / 8px dot pattern as the announcement banner dots. */
.hero-dots button {
  width: 24px; height: 24px; border: none; cursor: pointer; padding: 0;
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
}
.hero-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.hero-dots button.active::before { background: var(--lime); }
.hero-dots button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 50%; }
/* Visible previous/next controls (WP-002 slider behaviour). The ::before dot
   is suppressed — these render their arrow glyph instead. */
.hero-dots button.hero-arrow::before { content: none; }
.hero-dots button.hero-arrow {
  color: rgba(255,255,255,0.75); font-size: 20px; line-height: 1;
  border-radius: 50%;
}
.hero-dots button.hero-arrow:hover { color: var(--lime); }

/* Weather+ : sample-alert previews + use-case chip cloud */
.wp-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.wp-sample {
  background: var(--cream); border: 1px solid rgba(15,31,53,0.08);
  border-radius: 14px; padding: 18px;
}
.wp-sample p { margin: 10px 0 0; font-size: 0.95rem; }
.wp-samples .disclaimer-light { grid-column: 1 / -1; margin: 4px 0 0; }
.wp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-chip {
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem;
  padding: 7px 14px; border-radius: 999px; background: var(--green-soft);
  color: var(--green-dark); border: 1px solid rgba(14,90,60,0.18);
}

/* Form CTA card + modal flow */
.form-launch {
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.form-launch h3 { margin: 0 0 6px; }
.form-launch p { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 38em; }
.form-modal {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 38, 58, 0.55); backdrop-filter: blur(3px);
  overflow-y: auto; padding: 4vh 16px;
}
.form-modal.open { display: block; }
.form-modal-box {
  background: var(--cream); border-radius: 20px; max-width: 760px; margin: 0 auto;
  padding: 30px; position: relative; box-shadow: var(--shadow-lg);
}
.form-modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  font-size: 1.1rem; cursor: pointer; font-weight: 700; color: var(--navy);
}
.form-modal-close:hover { background: var(--green-soft); }
body.modal-open { overflow: hidden; }
@media (max-width: 720px) { .form-modal { padding: 2vh 8px; } .form-modal-box { padding: 22px 16px; } }

/* ---- Contact page: form-opening cards + focused detail cards ---- */
.card-form { border-top: 3px solid var(--lime); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.contact-ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.contact-ic svg { width: 24px; height: 24px; }
.contact-val { font-weight: 700; color: var(--navy); margin: 0 0 8px; font-size: 1.05rem; }
.contact-val a { color: var(--green); }
.contact-note { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.55; }
.contact-card .btn-sm { margin-top: 2px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- v1.0007: lang dropdown, type scale (guideline 8.2), shop filters,
   sticky mobile CTA bar ---- */
.lang-select {
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 7px 10px; font-weight: 700; font-size: 0.8rem;
  font-family: inherit; cursor: pointer;
}
.lang-select:hover { border-color: var(--green); }

/* Guideline 8.2 type scale */
.hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); line-height: 1.06; }
.page-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); }

/* Shop filter bar */
.shop-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px;
}
.shop-filters .story-chip { font-size: 0.84rem; }
.shop-sort {
  margin-left: auto; border: 1.5px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 8px 10px; font-family: inherit; font-weight: 600;
  font-size: 0.85rem; color: var(--navy); cursor: pointer;
}

/* Sticky mobile CTA bar (P1 audit item) */
.mobile-cta-bar { display: none; }
@media (max-width: 720px) {
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    background: var(--white); border-top: 1.5px solid var(--line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    box-shadow: 0 -6px 18px rgba(18,38,58,0.08);
  }
  .mobile-cta-bar .btn { flex: 1; text-align: center; padding: 10px 6px; font-size: 0.86rem; }
  body { padding-bottom: 64px; }
}

/* Story modal body */
.story-modal-body .card-tag { margin-bottom: 10px; }
.story-modal-body h3 { margin: 6px 0 14px; }
.story-modal-body p { margin-bottom: 12px; }

/* ---- v1.0007: in-modal success panel ---- */
.form-success-panel { text-align: center; padding: 26px 8px; }
.form-success-panel .success-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(163, 230, 53, 0.25);
}
.form-success-panel h3 { margin-bottom: 10px; }
.form-success-panel p { color: var(--muted); margin: 8px auto; max-width: 34em; }
.form-success-panel .success-ref strong { color: var(--green-dark); }
.form-success-panel .btn { margin-top: 18px; }

/* ---- v1.0007: Bhalai Live Board ---- */
.live-board {
  position: relative; overflow: hidden; color: #F8FAFC;
  background: #0E2536; padding: 96px 0;
}
.live-board::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(ellipse at 30% 20%, rgba(31,107,78,0.45), transparent 60%);
  pointer-events: none;
}
.live-board .container { position: relative; }
.lb-header { max-width: 860px; margin-bottom: 40px; }
.lb-badge-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.lb-badge {
  display: inline-block; background: rgba(163,230,53,0.15); color: var(--lime);
  border: 1px solid rgba(163,230,53,0.4); border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; box-shadow: 0 0 18px rgba(163,230,53,0.25);
}
.lb-badge-row span { color: #CBD5E1; font-size: 0.9rem; }
.lb-header h2 { color: #F8FAFC; font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: 6px; }
.lb-header .lb-sub { color: var(--lime); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.lb-header p { color: #CBD5E1; }
.lb-trust {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
  font-size: 0.88rem; color: #CBD5E1;
}
.lb-trust .shield { color: var(--lime); flex: none; margin-top: 2px; }

.lb-grid { display: grid; grid-template-columns: 58fr 42fr; gap: 32px; align-items: stretch; }
.lb-card {
  background: #1C3345; border: 1px solid rgba(255,255,255,0.12); border-radius: 28px;
  padding: 32px; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lb-card:hover { transform: translateY(-4px); border-color: rgba(163,230,53,0.5);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.lb-card h3 { color: #F8FAFC; font-size: 1.35rem; }
.lb-card > p { color: #CBD5E1; margin: 8px 0 18px; }

/* The Bhalai Loop panel is a flex column so its 6 stages grow to fill the
   card height and stay level with the taller "Open now" panel beside it. */
.lb-grid > .lb-card:not(.lb-open) { display: flex; flex-direction: column; }

.lb-loop-img { border-radius: 18px; overflow: hidden; margin: 6px 0 20px;
  border: 1px solid rgba(255,255,255,0.1); }
.lb-loop-img img { display: block; width: 100%; height: auto; }
.lb-nodes { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.lb-node {
  border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 16px;
  flex: 1 1 0; display: flex; flex-direction: column; justify-content: center;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.lb-node h4 { color: #F8FAFC; font-size: 0.98rem; margin-bottom: 3px; }
.lb-node p { color: #94A3B8; font-size: 0.78rem; line-height: 1.45; margin: 0; }
.lb-node.active { border-color: var(--lime); background: rgba(163,230,53,0.08);
  box-shadow: 0 0 16px rgba(163,230,53,0.15); }
.lb-node.active h4 { color: var(--lime); }

.lb-open .lb-rows { display: flex; flex-direction: column; gap: 12px; }
.lb-row {
  display: flex; gap: 14px; align-items: center; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease; background: rgba(255,255,255,0.03);
}
.lb-row:hover { transform: translateY(-2px); border-color: rgba(163,230,53,0.55); }
.lb-row .lb-ic { flex: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(31,107,78,0.55); display: flex; align-items: center; justify-content: center;
  color: var(--lime); }
.lb-row .lb-ic svg { width: 20px; height: 20px; }
.lb-row-body { flex: 1; min-width: 0; }
.lb-row-body h4 { color: #F8FAFC; font-size: 0.98rem; margin: 4px 0 2px; }
.lb-row-body p { color: #94A3B8; font-size: 0.82rem; margin: 0; line-height: 1.45; }
.lb-status {
  display: inline-block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 10px;
}
.lb-status.open { color: var(--lime); background: rgba(163,230,53,0.12);
  border: 1px solid rgba(163,230,53,0.4); box-shadow: 0 0 10px rgba(163,230,53,0.18); }
.lb-status.wait { color: #FCD34D; background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.45); box-shadow: 0 0 10px rgba(245,158,11,0.15); }
.lb-status.soon { color: #CBD5E1; background: rgba(203,213,225,0.1);
  border: 1px solid rgba(203,213,225,0.3); }
.lb-row .btn { flex: none; }

.lb-strip { margin-top: 40px; }
.lb-strip h3 { color: #F8FAFC; margin-bottom: 18px; }
.lb-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lb-metric {
  background: #1C3345; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
  padding: 22px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.lb-metric:hover { transform: translateY(-3px); border-color: rgba(163,230,53,0.5); }
.lb-metric .num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  color: var(--lime); line-height: 1; }
.lb-metric h4 { color: #F8FAFC; margin: 8px 0 4px; font-size: 0.98rem; }
.lb-metric p { color: #94A3B8; font-size: 0.8rem; margin: 0; line-height: 1.5; }
.lb-micro { color: #94A3B8; font-size: 0.82rem; margin-top: 14px; }

.lb-tracker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lb-tracker .lb-metric .num { font-size: 1.9rem; color: #F8FAFC; }
.lb-tracker .lb-metric .num.dash { color: rgba(203,213,225,0.5); }

.lb-timeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0;
  margin-top: 22px; position: relative; }
.lb-tl-item { position: relative; padding: 26px 14px 0 14px; }
.lb-tl-item::before {
  content: ""; position: absolute; top: 6px; left: 14px; right: 0; height: 2px;
  background: rgba(255,255,255,0.15);
}
.lb-tl-item::after {
  content: ""; position: absolute; top: 0; left: 14px; width: 13px; height: 13px;
  border-radius: 50%; background: #1C3345; border: 3px solid var(--green);
}
.lb-tl-item.live::after { border-color: var(--lime); box-shadow: 0 0 12px rgba(163,230,53,0.5); }
.lb-tl-when { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--lime); }
.lb-tl-item h4 { color: #F8FAFC; font-size: 0.9rem; margin: 6px 0 10px; line-height: 1.35; }
.lb-tl-item .btn { font-size: 0.72rem; padding: 7px 12px; }

/* tooltip */
[data-tip] { position: relative; cursor: help; border-bottom: 1px dotted rgba(203,213,225,0.5); }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%); white-space: normal; width: max-content; max-width: 260px;
  background: #0E2536; color: #F8FAFC; border: 1px solid rgba(163,230,53,0.4);
  border-radius: 10px; padding: 8px 12px; font-size: 0.78rem; z-index: 50; text-align: left;
}

@media (max-width: 1080px) {
  .lb-grid { grid-template-columns: 1fr; }
  /* stacked: loop stages take their natural height, no forced stretch */
  .lb-node { flex: none; }
  .lb-metrics { grid-template-columns: repeat(2, 1fr); }
  .lb-tracker { grid-template-columns: repeat(2, 1fr); }
  .lb-timeline { grid-template-columns: 1fr; gap: 0; }
  .lb-tl-item { padding: 4px 0 22px 30px; }
  .lb-tl-item::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .lb-tl-item::after { top: 4px; left: 0; }
}
@media (max-width: 720px) {
  .live-board { padding: 56px 0; }
  .lb-card { padding: 22px; }
  .lb-metrics, .lb-tracker { grid-template-columns: 1fr; }
  .lb-row { flex-wrap: wrap; }
  .lb-row .btn { width: 100%; text-align: center; }
}

/* ---- v1.0009: UPI QR checkout block ---- */
.upi-box {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 12px 0;
}
.upi-box img { flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.upi-box code { background: var(--green-soft); padding: 2px 8px; border-radius: 6px;
  font-weight: 700; color: var(--green-dark); }
.upi-box > div { flex: 1; min-width: 220px; }

/* ---- v1.0010: 1680px container per user spec (overrides brand guideline
   8.3's 1280–1440 content width — user asked for the wider look). */
:root { --maxw: 1680px; }
.live-board .container { max-width: 1680px; }
/* Ultra-wide screens (large monitors / TVs): let the content use more of the
   width instead of a narrow 1680px column marooned in the middle. */
@media (min-width: 2200px) {
  :root { --maxw: 1960px; }
  .live-board .container { max-width: 1960px; }
}
@media (min-width: 3000px) {
  :root { --maxw: 2280px; }
  .live-board .container { max-width: 2280px; }
  .container { padding: 0 40px; }
}

/* ---- v1.0010: keyboard accessibility (audit checklist P1) ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--green-dark); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  /* Green outline (8.2:1 on white) — the old gold outline was ~1.6:1 and
     effectively invisible to keyboard users on light backgrounds. */
  outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--white);
}
.live-board a:focus-visible, .live-board button:focus-visible,
.section-dark a:focus-visible, .section-dark button:focus-visible {
  outline-color: var(--lime);
}

/* ---- Google Translate: hide the injected banner and keep our own layout ---- */
.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate,
.goog-te-gadget, #google_translate_element { display: none !important; }
body { top: 0 !important; position: static !important; }
.skiptranslate > iframe { display: none !important; visibility: hidden !important; }
.goog-tooltip, .goog-tooltip:hover, #goog-gt-tt { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; color: inherit !important; }

/* ---- Analytics consent bar (Consent Mode v2) ---- */
.consent-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--navy); color: #E7EDF3;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 18px;
  align-items: center; justify-content: space-between;
}
.consent-bar .consent-text { margin: 0; font-size: 0.9rem; flex: 1 1 320px; line-height: 1.5; }
.consent-bar .consent-text a { color: var(--lime); text-decoration: underline; }
.consent-bar .consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-bar .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.consent-bar .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 520px) { .consent-bar .consent-actions { width: 100%; } .consent-bar .btn { flex: 1; } }

/* ---- Reduced motion: honour the OS setting (JS also gates its timers) ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* ---- Print: strip chrome so legal pages, receipts and reports print clean ---- */
@media print {
  .utility-strip, .banner-slider, .hero-dots, .site-header, .nav-toggle, .header-ctas,
  .main-nav, .form-modal, .toast, .skip-link, .site-footer .footer-cta,
  .cart-link, [data-account-slot] { display: none !important; }
  .section-dark, .section-green, .page-hero {
    background: #fff !important; color: #000 !important;
  }
  .section-dark *, .section-green *, .page-hero * { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { max-width: 100% !important; }
  main { padding: 0 !important; }
}
