/**
 * Phase 7 — Anti-slop homepage polish (DESIGN.md: flat surfaces, local editorial, no template motion).
 * Overrides portal-skin bento gimmicks without editing the minified bundle.
 */

.home-modules .section-title::before {
  width: 48px;
  height: 3px;
  background: var(--ap-color-forest, var(--brand-green));
  border-radius: 0;
}

.home-modules .section-head {
  margin-bottom: 1.35rem;
}

.home-modules .section-title {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.015em;
}

.home-modules .section-subtitle {
  font-size: 1rem;
  max-width: 38ch;
  line-height: 1.6;
}

/* Bento — civic tiles, not SaaS dashboard cards */
.home-modules .bento-tile {
  border-radius: var(--ap-radius-lg, 12px);
  border: 1px solid var(--ap-color-border, var(--border-soft));
  box-shadow: none;
  transform: none !important;
  transform-style: flat !important;
  min-height: 148px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.home-modules .bento-tile:hover {
  transform: none !important;
  box-shadow: none;
  border-color: rgba(26, 92, 69, 0.35);
}

.home-modules .bento-tile .bt-icon {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  margin-bottom: 0.35rem;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.05rem;
  color: var(--tint, var(--brand-green-dark));
  transform: none !important;
}

.home-modules .bento-tile:hover .bt-icon {
  transform: none !important;
}

.home-modules .bento-tile .bt-count {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--ap-radius-sm, 6px);
  padding: 0.15rem 0.45rem;
}

.home-modules .bento-tile .bt-title {
  font-family: var(--ap-font-ui, var(--font-body));
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

.home-modules .bento-tile .bt-desc {
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-modules .bt-blood.bt-blood-minimal {
  border-radius: var(--ap-radius-lg, 12px);
  box-shadow: none;
}

.home-modules .bt-blood.bt-blood-minimal .bt-cta {
  border-radius: var(--ap-radius-md, 8px);
}

.home-modules .bt-blood.bt-blood-minimal .bt-blood-heart {
  display: none;
}

/* Glance — numbers first, icons secondary */
.home-modules .glance-fact i {
  font-size: 0.95rem;
  opacity: 0.55;
  margin-bottom: 0.15rem;
}

.home-modules .glance-fact strong {
  font-family: var(--ap-font-display, var(--font-display));
  font-size: clamp(1.65rem, 4vw, 2rem);
  line-height: 1.1;
  color: var(--brand-green-dark);
}

.home-modules .glance-fact span {
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Hero (discover) — larger display, less “startup hero” width cap */
.theme-discover .dc-hero h1 {
  max-width: 14ch;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

.theme-discover .hero-has-video .dc-hero h1,
.theme-discover .dc-hero--media .dc-hero h1 {
  max-width: 16ch;
}

.theme-discover .dc-hero-lead {
  max-width: 46ch;
  font-size: 1.0625rem;
}

.theme-discover .dc-keywords-label {
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.theme-discover .dc-keyword {
  border-radius: var(--ap-radius-sm, 6px);
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .home-modules .bento-tile,
  .home-modules .bento-tile .bt-icon {
    transition: none;
  }
}

/* —— Phase 7 continued: motion, spotlight, news, CTA, contrib —— */

.home-modules .section:not(.is-revealed):not(.dc-hero),
.home-modules .section.is-revealed {
  opacity: 1;
  animation: none !important;
  transform: none;
}

.home-modules .live-feed-marquee {
  animation: none;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-modules .home-spotlight {
  box-shadow: none;
  border-radius: var(--ap-radius-lg, 12px);
}

.home-modules .home-spotlight-kicker {
  display: none;
}

.home-modules .home-spotlight-meta li {
  border-radius: var(--ap-radius-sm, 6px);
  text-transform: none;
  letter-spacing: 0;
}

.home-modules .home-spotlight-card {
  border-radius: var(--ap-radius-lg, 12px);
  box-shadow: none;
  min-height: 260px;
}

.home-modules .home-spotlight-kind {
  text-transform: none;
  letter-spacing: 0;
  border-radius: var(--ap-radius-sm, 6px);
  background: var(--brand-green-dark);
}

.home-modules .home-spotlight-photo-fallback {
  background: var(--bg-soft);
}

.home-modules .home-contrib-card,
.home-modules .home-ev-card,
.home-modules .home-cta-band {
  box-shadow: none;
  border-radius: var(--ap-radius-lg, 12px);
}

.home-modules .home-contrib-rank.is-gold {
  background: var(--ap-color-orange-soft, #f8e7c8);
  border-color: var(--ap-color-orange, #d4892a);
}

.home-modules .home-ev-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(26, 92, 69, 0.35);
}

.home-modules .home-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ap-radius-md, 8px);
}

.home-modules .home-cta-icon--green {
  background: var(--brand-green);
}

/* News block — editorial placeholders, not gradient tiles */
.home-modules .nw-lead-img {
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-soft);
  color: var(--brand-green-dark);
  display: grid;
  place-items: center;
  min-height: 140px;
}

.home-modules .nw-lead-img i {
  font-size: 1.75rem;
  opacity: 0.35;
}

.home-modules .nw-thumb {
  background: var(--surface) !important;
  border: 1px solid var(--border-soft);
  color: var(--muted);
}

.home-modules .nw-thumb i {
  opacity: 0.4;
}

.home-modules .nb-tag {
  border-radius: var(--ap-radius-sm, 6px);
}

.home-modules .glance {
  background: var(--surface);
  border-radius: var(--ap-radius-lg, 12px);
  border: 1px solid var(--border-soft);
  box-shadow: none;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.home-modules .glance-visual {
  margin: 1.25rem 0 0;
  max-width: 200px;
}

.home-modules .glance-visual img {
  border: 1px solid var(--border-soft);
  border-radius: var(--ap-radius-md, 8px);
  background: var(--bg-soft);
  padding: 0.35rem;
}

.home-modules .glance-visual .fine {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.home-modules .bt-map-visual img {
  filter: none;
  opacity: 1;
}

.home-modules .home-union-map-panel {
  box-shadow: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--ap-radius-lg, 12px);
}

.map-page .upazila-at-glance {
  margin: 2rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft);
}

.map-page .upazila-at-glance .glance {
  background: var(--surface);
  border-radius: var(--ap-radius-lg, 12px);
  border: 1px solid var(--border-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
}
