/* ── UI Polish v2 — EcoRoom ── */

.main-wrap { min-height: calc(100vh - var(--nav-h) - 200px); }

/* Brand text */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong { font-size: 1.05rem; }
.brand-text small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
}

/* Buttons */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--ink); background: #f1f5f9; }
.btn-light {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid rgba(255,255,255,.5);
}
.btn-light:hover { background: #f0fdfa; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.btn-row.center { justify-content: center; }

/* Nav toggle */
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Page heroes */
.page-hero {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(13,148,136,.18), transparent 50%),
    radial-gradient(ellipse at 90% 40%, rgba(29,78,216,.12), transparent 45%),
    linear-gradient(165deg, #0f172a 0%, #134e4a 70%, #0f766e 100%);
  color: #fff;
  padding: 2.4rem 0 2rem;
}
.page-hero-sm { padding: 1.8rem 0 1.5rem; }
.page-hero-dash {
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #1d4ed8 100%);
}
.page-hero-about {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(94,234,212,.15), transparent 40%),
    linear-gradient(160deg, #0f172a, #115e59 60%, #1e3a8a);
}
.page-hero-inner { max-width: 900px; }
.page-hero-inner.center { text-align: center; margin-inline: auto; }
.page-hero-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: none;
  width: min(1180px, 100%);
}
.page-kicker {
  display: inline-block;
  margin: 0 0 .7rem;
  padding: .28rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .8rem;
  font-weight: 600;
  color: #ccfbf1;
}
.page-hero h1 {
  margin: 0 0 .6rem;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.4;
  font-weight: 800;
}
.page-sub {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.85;
  font-size: 1rem;
}
.page-sub.max-w {
  max-width: 640px;
  margin-inline: auto;
}
.section-tight { padding-top: 1.5rem; }
.narrow { max-width: 900px; }

/* Dashboard */
.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  width: min(1180px, 100%);
  max-width: none;
}
.dash-welcome-actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.dash-stats-6 {
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 1.1rem;
}
.dash-stat .value.accent { color: var(--accent); }
.dash-stat .value.warn { color: var(--warn); }
.dash-stat {
  transition: .15s ease;
}
.dash-stat:hover {
  border-color: rgba(15,118,110,.3);
  transform: translateY(-2px);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.quick-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .15s ease;
  min-height: 78px;
}
.quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quick-card strong { font-size: .92rem; }
.quick-card span { font-size: .8rem; color: var(--muted); }
.ql-primary { border-color: rgba(15,118,110,.25); background: linear-gradient(180deg,#fff,#f0fdfa); }
.ql-accent { border-color: rgba(29,78,216,.2); background: linear-gradient(180deg,#fff,#eff6ff); }
.ql-teal { border-color: rgba(13,148,136,.25); background: linear-gradient(180deg,#fff,#ecfeff); }
.ql-slate { background: #fff; }
.ql-warn { border-color: rgba(180,83,9,.2); background: linear-gradient(180deg,#fff,#fffbeb); }

.info-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .9rem 1.15rem;
  border-radius: 14px;
  background: #f0fdfa;
  border: 1px solid rgba(15,118,110,.15);
  margin-bottom: 1.1rem;
  font-size: .92rem;
}
.info-banner a { color: var(--brand-dark); font-weight: 700; }

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.panel-elevated {
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.link-more {
  font-size: .88rem;
  color: var(--brand);
  font-weight: 600;
}
.meta-line {
  font-size: .88rem;
  margin-top: .2rem;
}
.chev {
  color: var(--muted);
  font-size: 1.2rem;
  opacity: .5;
}
.dot-new {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
}

/* About / Founder — clean, no decorative unicode */
.founder-card {
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(15,118,110,.14);
  box-shadow: 0 16px 40px rgba(15,118,110,.1);
  overflow: hidden;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
}
.founder-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0f766e, #1d4ed8, #0d9488);
}
.founder-label {
  display: inline-block;
  margin: 1.25rem 1.4rem 0;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid rgba(15,118,110,.15);
}
.founder-quote {
  margin: 1rem 1.4rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
  font-size: 1.05rem;
  line-height: 2.05;
  color: #1e293b;
  text-align: justify;
}
.founder-quote strong { color: #0f766e; }
.founder-profile {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin: 0 1.4rem 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.founder-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f766e, #1e3a8a);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(15,118,110,.28);
}
.founder-profile h2 {
  margin: 0 0 .35rem;
  font-size: 1.3rem;
}
.founder-role {
  margin: 0 0 .65rem;
  color: #0f766e;
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.7;
}
.founder-role .sep {
  margin: 0 .4rem;
  opacity: .4;
}
.founder-bio {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.85;
  text-align: justify;
}
.founder-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin: 0 1.4rem 1.4rem;
}
.founder-tag {
  text-align: center;
  padding: .85rem .7rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f0fdfa);
  border: 1px solid rgba(15,118,110,.12);
}
.founder-tag span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .25rem;
  font-weight: 600;
}
.founder-tag strong {
  font-size: .95rem;
  color: var(--brand-dark);
}

.founder-card-home {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
  transition: .15s ease;
}
.founder-card-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(15,118,110,.14);
}
.founder-home-text {
  margin: 1rem 1.4rem;
  line-height: 1.95;
  color: #334155;
  font-size: 1rem;
}
.founder-home-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0 1.4rem 1.3rem;
}
.founder-home-foot strong { display: block; }
.founder-home-foot .muted { font-size: .88rem; }

.mission-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin: 1.25rem 0;
}
.mission-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.mission-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(15,23,42,.04);
}
.content-card h3 {
  margin: 0 0 .85rem;
  font-size: 1.12rem;
  color: var(--brand-dark);
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--brand-soft);
}
.content-card > p {
  margin: 0 0 .85rem;
  line-height: 1.9;
  color: #334155;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tag-cloud span {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
  border: 1px solid rgba(15,118,110,.12);
  color: #134e4a;
  font-weight: 600;
  font-size: .86rem;
}
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: .9rem;
}
.mini-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
}
.mini-card h4 { margin: 0 0 .35rem; font-size: .98rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.steps-list {
  margin: 0;
  padding-right: 1.2rem;
  line-height: 2.05;
  color: #334155;
}
.feature-grid-clean {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.feature-clean {
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.feature-clean h4 { margin: 0 0 .3rem; font-size: .95rem; }
.feature-clean p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.clean-list {
  margin: 0;
  padding-right: 1.2rem;
  line-height: 2;
  color: var(--muted);
}
.about-end {
  text-align: center;
  padding: 1.75rem 1rem 1rem;
}
.about-end p {
  max-width: 520px;
  margin: 0 auto .5rem;
  line-height: 1.9;
  color: #334155;
}
.about-end .small { font-size: .9rem; }
.about-end .btn-row { margin-top: 1.15rem; }

/* Feature home cards */
.feature-home .chip { margin-bottom: .7rem; }
.feature-home .card-title { margin-bottom: .4rem; }

/* Auth polish */
.auth-head {
  text-align: center;
  margin-bottom: 1.2rem;
}
.auth-head .brand-mark {
  margin: 0 auto .85rem;
}
.auth-head h1 {
  margin: 0 0 .35rem;
  font-size: 1.4rem;
}
.auth-card-wide { width: min(560px, 100%); }
.auth-form .field { margin-bottom: .85rem; }
.auth-foot {
  text-align: center;
  margin: 1.1rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.auth-foot a {
  color: var(--brand-dark);
  font-weight: 700;
}
.demo-box ul {
  margin: .5rem 0 0;
  padding-right: 1.1rem;
  line-height: 1.85;
}
.demo-box p { margin: .35rem 0 0; }

/* Footer polish */
.footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}
.footer-tag {
  margin: 0;
  font-size: .78rem;
  color: #94a3b8;
}
.footer-desc {
  color: #cbd5e1;
  font-size: .92rem;
  line-height: 1.8;
  margin: 0 0 .7rem;
}
.footer-credit {
  margin: 0;
  font-size: .86rem;
  line-height: 1.8;
  color: #94a3b8;
}
.footer-credit strong { color: #e2e8f0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-links {
  display: flex;
  gap: 1rem;
}
.footer-bottom-links a { color: #94a3b8; font-size: .88rem; }
.footer-bottom-links a:hover { color: #fff; }

/* Alpha jump polish */
.alpha-jump {
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Laws TOC on dark hero */
.page-hero .laws-toc a {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: #e2e8f0;
}
.page-hero .laws-toc a:hover {
  background: rgba(94,234,212,.2);
  color: #fff;
}
.page-hero .laws-toc a.is-on {
  background: rgba(94,234,212,.28);
  color: #fff;
  border-color: rgba(94,234,212,.45);
}

/* Leaders & people */
.leader-spotlight {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(15,118,110,.15);
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(15,118,110,.08);
}
.leader-photo-wrap { flex-shrink: 0; }
.leader-photo {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
  border: 3px solid #fff;
}
.leader-photo.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #1e3a8a);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}
.leader-badge {
  display: inline-block;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .5rem;
  border: 1px solid rgba(15,118,110,.15);
}
.leader-info h2 {
  margin: 0 0 .3rem;
  font-size: 1.35rem;
}
.leader-title {
  margin: 0 0 .65rem;
  color: #0f766e;
  font-weight: 600;
}
.leader-bio {
  margin: 0 0 .75rem;
  color: #475569;
  line-height: 1.85;
  text-align: justify;
  font-size: .95rem;
}
.leader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .88rem;
  color: var(--muted);
}
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: .85rem;
}
.person-card {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: .9rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.person-photo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.person-photo.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}
.person-body strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.person-role {
  display: block;
  color: #0f766e;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .35rem;
}
.person-bio {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}
.person-contact {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-top: .4rem;
  font-size: .78rem;
  color: #64748b;
}
.mini-leader {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.mini-leader-photo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .leader-spotlight { flex-direction: column; align-items: center; text-align: center; }
  .leader-bio { text-align: center; }
  .leader-meta { justify-content: center; }
  .people-grid { grid-template-columns: 1fr; }
  .leader-photo { width: 140px; height: 140px; }
}

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  padding: 2rem 1rem;
}
.empty p { margin: 0; }

/* Soft box (laws/chamber) */
.soft-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-stats-6 { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .75rem 1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 30px rgba(15,23,42,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    border-radius: 10px;
    padding: .65rem .85rem;
  }
  .topnav { position: sticky; }
  .topnav-inner { position: relative; }
  .brand-text small { display: none; }
  .dash-stats-6,
  .quick-grid,
  .dash-grid,
  .dash-grid-bottom,
  .mission-row,
  .founder-tags,
  .split-2,
  .feature-grid-clean,
  .page-hero-split {
    grid-template-columns: 1fr;
  }
  .page-hero-split { flex-direction: column; align-items: flex-start; }
  .founder-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .founder-bio { text-align: center; }
  .dash-welcome { flex-direction: column; align-items: flex-start; }
  .nav-msg { display: none; }
}
@media (max-width: 600px) {
  .dash-stats-6 { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}

/* Useful links directory */
.links-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin: 1.15rem 0 0;
}
.links-stat {
  min-width: 92px;
  padding: .5rem .85rem;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  text-align: center;
}
.links-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.links-stat span {
  font-size: .75rem;
  color: rgba(255,255,255,.8);
}
.links-note {
  background: #f0fdfa;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.2rem;
  color: #134e4a;
  line-height: 1.85;
}
.links-note a { color: #0f766e; font-weight: 700; }
.links-note a:hover { text-decoration: underline; }
.links-cat { margin-bottom: 1.6rem; }
.links-cat-head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  margin: 0 0 1rem;
}
.links-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.links-cat-icon .ico { width: 22px; height: 22px; }
.links-cat-kicker {
  margin: 0 0 .15rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
}
.links-cat-head h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.links-cat-head .muted { margin: 0; font-size: .9rem; }
.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.links-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.1rem .95rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.links-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
  border-color: #5eead4;
}
.links-card-top {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: .55rem;
}
.links-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.links-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}
.links-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
}
.links-card-name { flex: 1; min-width: 0; }
.links-card-name h3 {
  margin: 0 0 .15rem;
  font-size: .98rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: break-word;
  white-space: normal;
}
.links-card-top .chip { flex-shrink: 0; }
.links-ext {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .15rem;
}
.links-card p {
  margin: 0;
  flex: 1;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.7;
}
.links-host {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: #0f766e;
  direction: ltr;
  text-align: right;
  letter-spacing: .01em;
}
.links-feat-wrap {
  background: linear-gradient(180deg, #ecfeff, #fff);
  border: 1px solid #99f6e4;
  border-radius: 22px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1.25rem;
}
.links-feat-head h2 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.links-feat-head p { margin: .2rem 0 .85rem; }
.links-feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .65rem;
}
.links-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  padding: .7rem .4rem .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.links-feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #5eead4;
}
.links-feat .links-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.links-feat .links-logo { width: 40px; height: 40px; }
.links-feat strong {
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 700;
}
.links-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 .4rem;
}
.tone-brand { background: var(--brand-soft); color: var(--brand-dark); }
.tone-accent { background: var(--accent-soft); color: #1e3a8a; }
.tone-warn { background: var(--warn-soft); color: #9a3412; }
.tone-ok { background: var(--ok-soft); color: #166534; }
.tone-ink { background: #e2e8f0; color: #0f172a; }
@media (max-width: 960px) {
  .links-grid { grid-template-columns: 1fr; }
  .links-feat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .links-grid { grid-template-columns: 1fr; }
  .links-card { min-height: 0; }
  .links-feat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Proposal / unlisted intro page */
.page-hero-propos {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(45,212,191,.22), transparent 48%),
    radial-gradient(ellipse at 88% 80%, rgba(96,165,250,.16), transparent 42%),
    linear-gradient(165deg, #0b1220 0%, #0f3d3a 58%, #134e4a 100%);
}
.propos-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.25rem;
}
.propos-hero-pills span {
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem;
  color: #ccfbf1;
}
.propos { max-width: 860px; }
.propos-lead {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}
.propos-lead p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 2;
  color: #334155;
  text-align: justify;
}
.propos-who { margin-bottom: 2.2rem; }
.propos-who > h2,
.propos-close h2 {
  margin: 0 0 .9rem;
  font-size: 1.25rem;
}
.propos-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
.propos-who-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
}
.propos-n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: #fff;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: .65rem;
}
.propos-who-card h3 { margin: 0 0 .4rem; font-size: 1rem; }
.propos-who-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.propos-sec-head {
  margin: 2.1rem 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.propos-sec-head p {
  margin: 0 0 .2rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
}
.propos-sec-head h2 { margin: 0; font-size: 1.28rem; }
.propos-feat {
  display: grid;
  gap: .75rem;
}
.propos-feat article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.2rem 1.15rem;
}
.propos-feat h3 {
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  color: var(--brand-dark);
}
.propos-feat p {
  margin: 0;
  color: #475569;
  line-height: 1.95;
  text-align: justify;
  font-size: .94rem;
}
.propos-membership {
  margin: 2.4rem 0 1.6rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(251,191,36,.18), transparent 46%),
    linear-gradient(145deg, #134e4a, #0f766e 55%, #1e3a8a);
  color: #fff;
}
.propos-membership-kicker {
  margin: 0 0 .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fde68a;
}
.propos-membership h2 { margin: 0 0 .7rem; font-size: 1.3rem; }
.propos-membership > p {
  margin: 0 0 1rem;
  line-height: 1.95;
  color: rgba(255,255,255,.92);
}
.propos-free {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(253,230,138,.35);
  border-radius: 14px;
  padding: .9rem 1rem;
  line-height: 1.9;
  color: #fffbeb;
}
.propos-free strong { color: #fde68a; }
.propos-close {
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.3rem;
}
.propos-close p {
  margin: 0;
  color: #334155;
  line-height: 2;
  text-align: justify;
}
@media (max-width: 800px) {
  .propos-who-grid { grid-template-columns: 1fr; }
}

/* Icon system — compact so sprites never blow the layout */
.rr-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
}
svg.ico,
.ico {
  width: 14px !important;
  height: 14px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: inline-block;
  vertical-align: -2px;
  flex: 0 0 14px;
  overflow: hidden;
}
.ico-sm { width: 13px !important; height: 13px !important; }
.ico-md { width: 15px !important; height: 15px !important; }
.ico-lg { width: 16px !important; height: 16px !important; }
.ico-tile {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  max-width: 26px;
  max-height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  overflow: hidden;
  align-self: flex-start;
}
.ico-tile .ico {
  width: 14px !important;
  height: 14px !important;
  vertical-align: 0;
}
.ico-brand { background: var(--brand-soft); color: var(--brand-dark); }
.ico-accent { background: var(--accent-soft); color: #1e3a8a; }
.ico-warn { background: var(--warn-soft); color: #9a3412; }
.ico-ok { background: var(--ok-soft); color: #166534; }
.ico-ink { background: #e2e8f0; color: #0f172a; }
.ico-rose { background: #ffe4e6; color: #9f1239; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}
.nav-toggle .ico { width: 18px !important; height: 18px !important; }

/* headings stay text-only — tiles only on cards */
.page-kicker .ico,
.section-head h2 .ico,
.svc-h .ico-tile,
.faq-item summary .ico,
.panel-head h3 > .ico,
.mem-panel .panel-head h3 .ico,
.links-feat-head h2 .ico {
  display: none !important;
}

.feat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feat-card .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feat-card .card-title { margin-top: .15rem; }
/* فقط توضیح بدون clamp رشد کند تا دکمه‌ها پایین کارت هم‌ارتفاع بمانند.
   flex روی line-clamp خط آخر را نصف می‌کند و با فونت فارسی ناخوانا می‌شود. */
.feat-card > .card-body > .muted:not(.clamp-2):not(.clamp-3):not(.meta-line):not(.featured-assoc-desc) {
  flex: 1 1 auto;
}
.feat-card .clamp-2,
.feat-card .clamp-3 {
  flex: 0 0 auto;
}
.feat-card .meta-line {
  flex: 0 0 auto;
  margin-top: auto;
}
.feat-card .btn { align-self: flex-start; margin-top: .85rem; }

/* کارت‌های نمونه تشکل: ارتفاع بیشتر تا خط دوم عنوان/توضیح بریده نشود */
a.card.featured-assoc,
.card.featured-assoc {
  min-height: 320px;
  overflow: visible;
  align-self: stretch;
}
.featured-assoc .card-body {
  padding: 1.4rem 1.35rem 1.5rem;
  gap: .55rem;
  overflow: visible;
  min-height: 320px;
}
.featured-assoc .card-title {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  line-height: 1.85;
  margin: .1rem 0 .15rem;
  min-height: 3.7em;
  padding-bottom: .2em;
}
.featured-assoc-desc {
  display: block;
  margin: 0;
  line-height: 2;
  overflow: visible;
  flex: 0 0 auto;
  min-height: 4em;
  padding-bottom: .25em;
}
.featured-assoc .meta-line {
  padding-top: .35rem;
}
.card.feat-card:hover,
a.card.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #99f6e4;
}
.card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }

.stat-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.stat-item .ico-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-bottom: .2rem;
}
.stat-item .ico-tile .ico { width: 14px !important; height: 14px !important; }
.feat-card .ico-tile { margin-bottom: .45rem; }

.section-head h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.svc-h {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.svc-h { gap: .35rem; }

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.quick-card {
  position: relative;
}
.quick-card .ico-tile {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-bottom: .3rem;
}
.quick-card .ico-tile .ico { width: 14px !important; height: 14px !important; }

.footer-grid h4 {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-grid h4 .ico { width: 16px; height: 16px; color: #99f6e4; }
.footer-grid li a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-grid li .ico {
  width: 14px;
  height: 14px;
  opacity: .55;
}

.how-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem;
}
.how-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
  position: relative;
}
.how-step strong { display: block; margin: .55rem 0 .25rem; }
.how-step p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.75; }
.how-num {
  position: absolute;
  top: .85rem;
  left: .9rem;
  font-size: .75rem;
  font-weight: 800;
  color: #94a3b8;
}

.empty {
  text-align: center;
  padding: 1.6rem 1rem;
}
.empty .ico-tile { margin: 0 auto .55rem; width: 28px; height: 28px; }
.how-step .ico-tile { width: 28px; height: 28px; border-radius: 8px; }

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.faq-item summary .ico {
  margin-top: .15rem;
  color: var(--brand);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .how-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .how-row { grid-template-columns: 1fr; }
  .nav-links .ico { display: none; }
}

/* Association membership */
.mem-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr .8fr 1.1fr;
  gap: .55rem;
  margin-bottom: .65rem;
  padding-bottom: .65rem;
  border-bottom: 1px dashed var(--line);
}
.mem-svc {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: .55rem;
  margin-bottom: .7rem;
  padding-bottom: .7rem;
  border-bottom: 1px dashed var(--line);
}
.mem-panel .panel-head h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.mem-view {
  display: grid;
  gap: 1.15rem;
}
.mem-view h4 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .45rem;
  font-size: 1rem;
}
.mem-view h4 .ico-tile { width: 32px; height: 32px; border-radius: 10px; }
.mem-view h4 .ico-tile .ico { width: 16px; height: 16px; }
.mem-view section p {
  margin: 0;
  line-height: 1.9;
  color: #334155;
  white-space: pre-wrap;
}
.mem-fees {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.mem-fee {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: .75rem .85rem;
}
.mem-fee strong { display: block; margin-bottom: .2rem; }
.mem-amount {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #92400e;
  margin: .15rem 0 .35rem;
}
.mem-fee p { margin: .35rem 0 0; }
.mem-svcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.mem-svcs article {
  background: #f0fdfa;
  border: 1px solid rgba(15,118,110,.16);
  border-radius: 14px;
  padding: .75rem .85rem;
}
.mem-svcs article strong { display: block; color: var(--brand-dark); }
.mem-svcs article p { margin: .35rem 0 0; font-size: .9rem; color: #475569; line-height: 1.75; }
@media (max-width: 800px) {
  .mem-row, .mem-svc, .mem-fees, .mem-svcs { grid-template-columns: 1fr; }
}

.page-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: .35rem .75rem;
  max-width: 520px;
}
.page-search .ico { color: #ccfbf1; flex-shrink: 0; }
.page-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: .45rem 0;
  outline: none;
  min-width: 0;
}
.page-search input::placeholder { color: rgba(255,255,255,.65); }
.page-hero .page-search.center,
.page-hero-inner.center .page-search {
  margin-inline: auto;
}
.page-search-plain {
  background: #fff;
  border: 1px solid var(--line);
  max-width: none;
  margin: 0 0 1rem;
}
.page-search-plain .ico { color: var(--brand); }
.page-search-plain input { color: var(--ink); }
.page-search-plain input::placeholder { color: var(--muted); }

/* Multi-org register + mobile */
.org-multi { -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .auth-card-wide { padding: 1rem; }
  .org-multi { max-height: 160px !important; font-size: .92rem; }
  .org-multi label { padding: .35rem 0; gap: .65rem !important; }
  .org-multi input[type=checkbox] { width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
  #primary-org { font-size: 1rem; min-height: 2.6rem; }
}
/* removed: height:auto on portraits */


/* Register wizard */
.auth-card-wizard { width: min(720px, 100%); }
.reg-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  margin: 0 0 1.1rem;
}
.reg-step {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: .45rem .55rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
}
.reg-step span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #334155;
  font-size: .72rem;
}
.reg-step.is-on {
  background: #ecfeff;
  border-color: #99f6e4;
  color: var(--brand-dark);
}
.reg-step.is-on span { background: var(--brand); color: #fff; }
.reg-step.is-done span { background: #14b8a6; color: #fff; }
.reg-pane { display: none; }
.reg-pane.is-on { display: block; }
.reg-pane-title {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.reg-lead { margin: 0 0 .85rem; font-size: .9rem; }
.reg-hint { margin: .35rem 0 0; font-size: .82rem; }
.reg-search input[type=search] {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .7rem .9rem;
  font: inherit;
  background: #fff;
}
.reg-toolbar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: .7rem;
}
.reg-filter-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
}
.reg-pick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  max-height: 320px;
  overflow: auto;
  padding: .15rem;
  margin-bottom: .9rem;
  -webkit-overflow-scrolling: touch;
}
.reg-pick {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: .75rem .8rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.reg-pick:hover { border-color: #99f6e4; }
.reg-pick:has(input:checked),
.reg-pick.is-checked {
  border-color: #2dd4bf;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .15);
}
.reg-pick input {
  margin-top: .2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.reg-pick-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.reg-pick-body strong {
  font-size: .92rem;
  line-height: 1.35;
}
.reg-pick-body small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.reg-nav {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .4rem;
}
.reg-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
  min-height: 2rem;
}
@media (max-width: 720px) {
  .auth-card-wizard { padding: 1rem; }
  .reg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .reg-step { font-size: .68rem; padding: .4rem .2rem; }
  .reg-step span { width: 1.05rem; height: 1.05rem; }
  .reg-pick-list { grid-template-columns: 1fr; max-height: 280px; }
  .reg-toolbar { flex-direction: column; align-items: stretch; }
  .reg-filter-toggle { white-space: normal; }
}


/* EcoRoom official inquiry + featured search (2026-08) */
.search-featured {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 16px;
  padding: 1rem 1.15rem 1.1rem;
  margin: 0 0 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.search-featured-kicker {
  display: inline-flex;
  margin-bottom: .45rem;
}
.search-featured h2 {
  margin: .15rem 0 .2rem;
  font-size: 1.2rem;
}
.search-example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
}
.search-example-chips a { text-decoration: none; }
.hero-search.site-search-box {
  margin-top: 1.1rem;
  max-width: 36rem;
  background: #fff;
  border: 1px solid #94a3b8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: .4rem .4rem .4rem 1rem;
}
.hero-search input {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-search input::placeholder {
  color: #475569;
  opacity: 1;
}
.hero-search:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}
.hero-tagline {
  margin: .35rem 0 0;
  font-size: .95rem;
  opacity: .92;
}
.estelam-letter summary {
  cursor: pointer;
  font-weight: 600;
}
.estelam-letter textarea {
  width: 100%;
  margin-top: .55rem;
  font-family: inherit;
  line-height: 1.8;
  resize: vertical;
}
.card.feat-card a.card-title-link { color: inherit; text-decoration: none; }

/* orgdesk 20260827 */
.chip-claimed{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.org-source-note{font-size:.86rem;color:#64748b;margin:.35rem 0 0}
.org-circ-list{display:flex;flex-direction:column;gap:.35rem}


/* ══════════════════════════════════════════════
   EcoRoom layout + portraits + heroes  20260827
   ══════════════════════════════════════════════ */

/* Global rhythm */
.main-wrap {
  min-height: calc(100vh - var(--nav-h) - 200px);
}
.section {
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}
.section-tight { padding-top: 1.75rem; }
.section + .section,
.section.section-tight + .section { padding-top: 0; }

/* Card grids: auto-fill, never cramped */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
.featured-assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.card {
  min-width: 0;
}
.card-body { min-width: 0; }
.card-title {
  overflow-wrap: anywhere;
  line-height: 1.7;
}

/* ── Home cinematic hero ── */
.hero,
.hero.hero-cinematic {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 6.5vw, 4.8rem) 0 clamp(2.2rem, 4.5vw, 3.2rem);
  color: #f8fafc;
  background:
    radial-gradient(ellipse at 12% -10%, rgba(45, 212, 191, .32), transparent 46%),
    radial-gradient(ellipse at 92% 0%, rgba(96, 165, 250, .24), transparent 40%),
    radial-gradient(ellipse at 50% 120%, rgba(15, 118, 110, .38), transparent 52%),
    linear-gradient(165deg, #042f2e 0%, #0b1f2a 42%, #134e4a 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, var(--bg, #f4f7fb));
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead {
  color: rgba(248, 250, 252, .88);
  font-size: 1.08rem;
  line-height: 1.95;
}
.hero-tagline {
  color: #99f6e4;
  font-weight: 600;
}
.hero .chip {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: #ecfeff;
}
.hero .chip-brand {
  background: rgba(45, 212, 191, .18);
  border-color: rgba(45, 212, 191, .35);
  color: #ccfbf1;
}
.hero .search-example-chips { margin-top: 1rem; }
.hero .search-example-chips .chip {
  color: #ecfeff;
}
.hero-search.site-search-box {
  margin-top: 1.25rem;
  max-width: 38rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 32px rgba(2, 8, 23, .22);
  padding: .42rem .42rem .42rem 1rem;
}
.hero-search input,
.hero-search.site-search-box input {
  color: #0f172a !important;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-search input::placeholder {
  color: #475569 !important;
  opacity: 1;
}
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
  color: #fff;
  border-radius: 22px;
  padding: 1.25rem 1.3rem;
}
.hero-card .muted { color: rgba(255,255,255,.78); }
.hero-card .stat-item strong { color: #fff; font-size: 1.7rem; }
.hero-card .stat-item span { color: rgba(236, 254, 255, .82); }

/* ── Listing / marketing heroes ── */
.page-hero {
  padding: clamp(2.4rem, 5.6vw, 3.6rem) 0 clamp(2rem, 4.2vw, 2.8rem) !important;
}
.page-hero-sm {
  padding: clamp(2.2rem, 5vw, 3.2rem) 0 clamp(1.85rem, 3.8vw, 2.5rem) !important;
}
.page-hero-inner { max-width: 880px; }
.page-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.45;
}
.page-sub {
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 46rem;
}

.page-hero-assoc {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(45,212,191,.22), transparent 48%),
    linear-gradient(165deg, #0f172a 0%, #134e4a 68%, #0f766e 100%);
}
.page-hero-chamber {
  background:
    radial-gradient(ellipse at 88% 10%, rgba(96,165,250,.22), transparent 44%),
    linear-gradient(165deg, #0f172a 0%, #1e3a8a 62%, #0e7490 100%);
}
.page-hero-fed {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(251,191,36,.16), transparent 42%),
    linear-gradient(165deg, #111827 0%, #134e4a 55%, #1e3a8a 100%);
}
.page-hero-search {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45,212,191,.24), transparent 50%),
    linear-gradient(165deg, #042f2e, #0f172a 60%, #155e75);
}
.page-hero-estelam {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(52,211,153,.2), transparent 42%),
    linear-gradient(165deg, #052e16, #134e4a 70%, #0f766e);
}
.page-hero-news {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(251,191,36,.18), transparent 44%),
    linear-gradient(165deg, #0f172a, #1e3a8a 60%, #0e7490);
}
.page-hero-members {
  background:
    radial-gradient(ellipse at 90% 20%, rgba(244,114,182,.16), transparent 40%),
    linear-gradient(165deg, #0f172a, #115e59 58%, #1d4ed8);
}
.page-hero-services {
  background:
    radial-gradient(ellipse at 8% 100%, rgba(45,212,191,.18), transparent 40%),
    linear-gradient(165deg, #0b1220, #0f766e 70%, #155e75);
}
.page-hero-login {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45,212,191,.22), transparent 48%),
    linear-gradient(165deg, #042f2e, #0f172a 55%, #134e4a);
  padding-bottom: 2.2rem !important;
}

/* Search on dark heroes stays readable */
.page-hero .site-search-box {
  margin-top: 1.2rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 28px rgba(2, 8, 23, .18);
}
.page-hero .site-search-box input {
  color: #0f172a;
  font-weight: 600;
}
.page-hero .site-search-box input::placeholder { color: #64748b; }

/* ── Compact identity hero (detail pages) ── */
.ident-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.15rem;
  align-items: stretch;
  margin-bottom: 1.35rem;
}
.ident-hero .detail-hero {
  margin-bottom: 0;
  padding: 1.45rem 1.5rem;
}
.ident-hero .leader-spotlight {
  margin: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1.1rem 1.35rem;
}
.ident-hero .leader-bio { text-align: center; }
.ident-hero .leader-meta { justify-content: center; }
.ident-hero .leader-photo,
.ident-hero .leader-photo.placeholder {
  width: 132px !important;
  height: 132px !important;
}

/* ── Circular portraits — never stretch, never blow layout ── */
img.leader-photo,
img.mini-leader-photo,
img.person-photo,
img.portrait,
.leader-photo,
.mini-leader-photo,
.person-photo,
.founder-avatar {
  object-fit: cover !important;
  object-position: center top !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: block;
  background: #e2e8f0;
}
.leader-photo,
img.leader-photo {
  width: 140px !important;
  height: 140px !important;
  max-width: 140px !important;
  max-height: 140px !important;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .14);
}
.mini-leader-photo,
img.mini-leader-photo,
.mini-leader img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
}
.person-photo,
img.person-photo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
}
.leader-photo.placeholder,
.person-photo.placeholder,
.mini-leader-photo.placeholder,
.photo-ph {
  display: grid !important;
  place-items: center;
  background: linear-gradient(145deg, #0f766e, #1e3a8a);
  color: #fff;
  font-weight: 800;
  object-fit: unset !important;
}
.leader-photo.placeholder { font-size: 2.6rem; }
.person-photo.placeholder { font-size: 1.35rem; }
.mini-leader-photo.placeholder { font-size: .85rem; width: 36px; height: 36px; }

/* Kill the global img{height:auto} / height:auto on portraits */
.leader-photo img,
.portrait img,
img.portrait,
.mini-leader img,
.person-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.avatar,
.avatar-lg,
.user-menu-avatar,
.founder-avatar {
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  object-position: center top;
}
.founder-avatar {
  width: 72px;
  height: 72px;
}

.mini-leader {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

/* Board / people */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: .85rem;
}
.person-card { min-width: 0; }

/* How-row stays 4-up on desktop */
.how-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

/* Filters wrap cleanly */
.filters {
  align-items: end;
}

@media (max-width: 900px) {
  .ident-hero { grid-template-columns: 1fr; }
  .ident-hero .leader-spotlight { flex-direction: row; text-align: start; align-items: center; }
  .ident-hero .leader-bio { text-align: start; }
  .how-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ident-hero .leader-spotlight { flex-direction: column; text-align: center; }
  .ident-hero .leader-bio { text-align: center; }
  .how-row { grid-template-columns: 1fr; }
  .hero-card { padding: 1rem; }
}

/* === ECOROOM CARD LOCK 20260827 === */

/* Hero stats: solid readable card, never glass-on-dark */
.hero .hero-card,
.hero-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .16) !important;
  backdrop-filter: none !important;
}
.hero-card .muted,
.hero-card p {
  color: #334155 !important;
}
.hero-card .stat-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .7rem !important;
}
.hero-card .stat-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: .75rem .8rem !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.hero-card .stat-item strong {
  display: block !important;
  color: #0f766e !important;
  font-size: 1.45rem !important;
  line-height: 1.2 !important;
}
.hero-card .stat-item span {
  color: #475569 !important;
  font-size: .82rem !important;
  line-height: 1.45 !important;
}
.hero-card .ico-tile {
  background: #ecfeff !important;
  color: #0f766e !important;
}

/* Cards never spill */
.card,
a.card,
.feat-card,
.person-card,
.featured-assoc {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.card-body {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.card-title,
.card-body p,
.card-body .muted,
.clamp-2,
.clamp-3 {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  min-width: 0 !important;
}
.clamp-2 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  max-height: 3.7em !important;
}
.clamp-3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  overflow: hidden !important;
  max-height: 5.6em !important;
}

/* Portraits: fixed circle, never 100% of the card */
.mini-leader {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.mini-leader > div {
  min-width: 0 !important;
  overflow: hidden !important;
}
img.mini-leader-photo,
.mini-leader-photo,
.mini-leader img,
.mini-leader > img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  flex: 0 0 36px !important;
  display: block !important;
}
img.leader-photo,
.leader-photo:not(.placeholder) {
  width: 132px !important;
  height: 132px !important;
  min-width: 132px !important;
  min-height: 132px !important;
  max-width: 132px !important;
  max-height: 132px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
  display: block !important;
}
.ident-hero .leader-photo,
.ident-hero img.leader-photo {
  width: 132px !important;
  height: 132px !important;
  max-width: 132px !important;
  max-height: 132px !important;
}
.leader-photo-wrap {
  flex-shrink: 0 !important;
  width: 132px !important;
  height: 132px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}
.leader-photo.placeholder,
.mini-leader-photo.placeholder,
.photo-ph {
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #0f766e, #1e3a8a) !important;
  color: #fff !important;
  font-weight: 800 !important;
}
img.person-photo,
.person-photo {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
}
.founder-avatar,
img.founder-avatar {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

/* Kill the 100% width/height portrait rule that blew cards open */
.leader-photo img,
.portrait img,
.mini-leader img,
.person-card img {
  width: inherit !important;
  height: inherit !important;
}

.ident-hero {
  min-width: 0;
  overflow: hidden;
}
.ident-hero .detail-hero,
.ident-hero .leader-spotlight {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 640px) {
  .hero-card .stat-grid { grid-template-columns: 1fr 1fr !important; }
  img.leader-photo, .leader-photo:not(.placeholder),
  .ident-hero .leader-photo, .leader-photo-wrap {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-enamad {
  display: inline-flex;
  align-items: center;
  order: 0;
}
.footer-enamad img {
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  object-fit: contain !important;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  padding: .25rem;
}

/* enamad-credit */

.footer-enamad {
  display: block;
  margin-top: 1rem;
}
.footer-enamad a {
  display: inline-block;
  line-height: 0;
}
.footer-enamad img {
  width: 125px !important;
  height: 125px !important;
  max-width: 125px !important;
  max-height: 125px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

/* enamad official local badge */
.footer-enamad img {
  width: auto !important;
  height: 125px !important;
  max-width: 160px !important;
  max-height: 125px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  display: block !important;
}

.view-only-banner {
  background: #0f766e;
  color: #ecfeff;
  text-align: center;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 700;
}
