/* Beranda-specific polish — prototype */

.homeHero {
  padding-top: 72px;
  padding-bottom: 72px;
}

.homeHeroBand {
  padding-bottom: 64px;
}

.homeHero .displayHero {
  max-width: 22ch;
}
@media (min-width: 900px) {
  .homeHero .displayHero { max-width: 26ch; }
}

.homeHero .pill {
  text-transform: none;
}

.aboutGrid .imageSlot {
  min-height: 360px;
}

.topicGrid,
.goalGrid {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .topicGrid { grid-template-columns: repeat(3, 1fr); }
  .goalGrid { grid-template-columns: repeat(3, 1fr); }
}

.topicCard {
  border-radius: 24px;
  border: 1px solid var(--ink-200);
  background: var(--paper-0);
  box-shadow: var(--shadow-plate);
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.topicCard:hover {
  transform: translateY(-2px);
}

.topicTitle {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.33;
  margin: 0;
}

.topicKicker {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-600);
}

.topicBody {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.56;
  color: var(--ink-700);
}

@media (prefers-reduced-motion: reduce) {
  .topicCard { transition: none; }
}

/* National stats band */
.statsBand {
  padding: 40px 0;
  background: var(--dark-0);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.statsBandInner {
  display: grid;
  gap: 28px;
}

.statsBandHead {
  max-width: 52ch;
}

.statsBand .sectionEyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.statsBandLead {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.statsRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) {
  .statsRow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.statsItem {
  background: var(--dark-1);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 96px;
  justify-content: center;
}
@media (min-width: 768px) {
  .statsItem {
    padding: 28px 24px 30px;
    min-height: 108px;
  }
}

.statsItemValue {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper-0);
  font-variant-numeric: tabular-nums;
}

.statsItemLabel {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

/* Icons */
.iconBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 82, 255, 0.1);
  color: var(--brand-700);
  flex-shrink: 0;
}
.iconBadge svg {
  width: 22px;
  height: 22px;
  display: block;
}
.iconBadge--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}
.iconBadge--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.iconBadge--sm svg {
  width: 18px;
  height: 18px;
}

.topicCard .iconBadge {
  margin-bottom: 14px;
}
.sectionDark .topicCard .iconBadge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hover-blue);
}

.statsItem .iconBadge {
  margin-bottom: 10px;
}

.pillWithIcon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pillIcon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hub sites (SPPG Indonesia + provincial portals) */
.page-hub .brandRow > div:not(.provinceCrest) {
  min-width: 0;
  flex: 1;
}

.page-hub .entityName {
  font-size: clamp(1.125rem, 3.6vw, 1.5rem);
  line-height: 1.15;
}

.page-hub .homeHero .heroGrid {
  gap: 32px;
}
@media (min-width: 900px) {
  .page-hub .homeHero .heroGrid {
    gap: 48px;
  }
}

.page-hub .homeHero .displayHero {
  max-width: none;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
}
@media (min-width: 900px) {
  .page-hub .homeHero .displayHero {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    max-width: 14em;
  }
}

.page-hub .homeHero .imageSlot {
  min-height: 240px;
}
@media (min-width: 900px) {
  .page-hub .homeHero .imageSlot {
    min-height: 320px;
  }
}

#provinsi .hubProvinceGrid {
  margin-top: 32px;
}

.hubProvinceGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hubProvinceGrid > li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hubProvinceCard {
  border: 1px solid var(--ink-200);
  border-radius: 18px;
  background: var(--paper-0);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  box-shadow: var(--shadow-plate);
}
@media (min-width: 540px) {
  .hubProvinceGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 900px) {
  .hubProvinceGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1200px) {
  .hubProvinceGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

.hubProvinceCardHead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hubProvinceCrest {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.hubProvinceCrest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hubProvinceName {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

.hubProvinceMeta {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--ink-700);
}

.hubProvinceActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.hubSppgPreviewGrid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 10px;
}

.hubSppgPreviewLink {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: rgba(2, 132, 199, 0.07);
  color: var(--brand-600);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hubSppgPreviewLink:hover,
.hubSppgPreviewLink:focus-visible {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4);
  text-decoration: none;
}

.hubSppgPreviewActions {
  margin-top: 16px;
}

/* ── National hub homepage polish ── */

.heroKickerBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.08);
  border: 1px solid rgba(0, 82, 255, 0.14);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-hub .homeHero .imageSlot.noBorder {
  border-radius: 24px;
  border: 1px solid rgba(0, 82, 255, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 82, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hubQuickNavSection {
  padding: 0 0 48px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.hubQuickNav {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .hubQuickNav {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.hubQuickCard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-plate);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.hubQuickCard:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 82, 255, 0.22);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.03),
    0 20px 48px rgba(0, 82, 255, 0.1);
  text-decoration: none;
  color: inherit;
}
.hubQuickCard .iconBadge {
  margin-top: 2px;
}

.hubQuickCardTitle {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

.hubQuickCardDesc {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-700);
}

.hubSectionIntroCenter {
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.hubProvinceToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.hubProvinceSearchWrap {
  flex: 1;
  min-width: min(100%, 280px);
  max-width: 420px;
  position: relative;
  display: block;
}

.hubProvinceSearchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-700);
  pointer-events: none;
}

.hubProvinceSearch {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 14px;
  border: 1px solid var(--ink-200);
  background: var(--paper-0);
  font: inherit;
  font-size: 15px;
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.hubProvinceSearch::placeholder {
  color: var(--ink-700);
  opacity: 0.7;
}
.hubProvinceSearch:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.hubProvinceCount {
  margin: 0;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 650;
}

.hubProvinceEmpty {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 82, 255, 0.06);
  border: 1px dashed rgba(0, 82, 255, 0.2);
  color: var(--ink-700);
  font-size: 15px;
  text-align: center;
}

.hubProvinceCard {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.hubProvinceCard:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 82, 255, 0.2);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.02),
    0 16px 40px rgba(0, 82, 255, 0.08);
}

.hubProvinceMeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hubFaqGrid {
  margin-top: 28px;
}
@media (min-width: 900px) {
  .hubFaqGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    align-items: start;
  }
}

.hubContactGrid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .hubContactGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.hubContactCard {
  padding: 22px;
  border-radius: 18px;
  background: var(--paper-0);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-plate);
}
.hubContactCard .iconBadge {
  margin-bottom: 14px;
}

.hubContactCardTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.hubContactCardBody {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
}
.hubContactCardBody a {
  font-weight: 650;
  text-decoration: none;
}
.hubContactCardBody a:hover {
  text-decoration: underline;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hubQuickCard,
  .hubProvinceCard {
    transition: none;
  }
  .hubQuickCard:hover,
  .hubProvinceCard:hover {
    transform: none;
  }
}
