﻿/* ==========================================================================
   UMN GreenMetric - Light Theme Core Styles
   Architecture: Tokens + Base + A11y + Layout + Components + Sections + Utils + Motion + Responsive
   ========================================================================== */

/* =========================================
   0) Global behavior
   ========================================= */
html { scroll-behavior: smooth; } /* smooth scroll e.g., #indicator-cards */

/* =========================================
   1) Design Tokens
   ========================================= */
:root {
  color-scheme: light;

  /* Extended Palette */
  --umn-blue: #0053A0;
  --umn-blue-hover: #00337F;
  --umn-green: #2BB673;
  --umn-yellow: #FFD200;
  --ink: #0F172A;
  --muted: #3C4B66;
  --panel: #FAFAFA;
  --panel-2: #F6F9FC;
  --border: #E6ECF2;

  /* Legacy token bridges */
  --color-base: var(--panel);
  --color-panel: var(--panel-2);
  --color-border: var(--border);
  --color-primary: var(--umn-blue);
  --color-primary-hover: var(--umn-blue-hover);
  --color-primary-soft: #E3F0FF;
  --color-success: var(--umn-green);
  --color-highlight: var(--umn-yellow);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);

  /* Shadows & Radii */
  --shadow-sm: 0 6px 18px rgba(8, 37, 56, 0.10);
  --shadow-md: 0 12px 30px rgba(8, 37, 56, 0.14);
  --shadow-lg: 0 18px 50px rgba(8, 37, 56, 0.20);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-card: var(--radius-lg);

  /* Motion & Focus */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-1: 180ms;
  --dur-2: 300ms;
  --dur-3: 520ms;
  --transition-base: 0.22s cubic-bezier(0.2, 0.6, 0.2, 1);
  --transition-soft: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(0, 83, 160, 0.28);
  --glow-primary: rgba(0, 83, 160, 0.35);
}

/* =========================================
   2) Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--color-base);
  background-image: linear-gradient(180deg, #f8fbff 0%, var(--color-base) 16%, #FAFAFA 100%);
  color: var(--color-text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-soft), color var(--transition-soft), background-image var(--transition-soft);
}

/* NYOBA DOANG EDITAN INI*/
/* ==========================
   Hero 1 – UMN GreenMetric
   ========================== */

.hero-uigm{
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, #E3F0FF 0, #FFFFFF 45%);
  padding: 4.5rem 1.5rem 3.75rem;
  color: var(--color-text, #0F172A);
}

/* Glow dekoratif di kanan atas */
.hero-uigm::before{
  content: "";
  position: absolute;
  inset: -30% -15% auto auto;
  background:
    radial-gradient(circle at top right, rgba(0,83,160,0.16), transparent 55%),
    radial-gradient(circle at 40% 60%, rgba(43,182,115,0.12), transparent 60%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Grid utama */
.hero-uigm__inner{
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

/* Konten kiri */
.hero-uigm__content{
  max-width: 640px;
}

.uigm-hero-top__eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .35rem 1.6rem;
  margin-bottom: 1.3rem;

  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(1.5px);

  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F9FAFB;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.75);
}


.hero-uigm__title{
  font-size: clamp(2.25rem, 3.1vw, 3.2rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 1.25rem;
}

.hero-uigm__subtitle{
  margin: 0 0 1.75rem;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--color-text-muted, #3C4B66);
}

/* Chip highlights */
.hero-uigm__highlights{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.hero-uigm-chip{
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--color-border, #E6ECF2);
  font-size: .78rem;
  font-weight: 500;
  color: var(--color-text-muted, #3C4B66);
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}

/* Tombol aksi */
.hero-uigm__actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-uigm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease,
              box-shadow .16s ease, transform .12s ease, border-color .16s ease;
}

.hero-uigm-btn--primary{
  background: var(--color-primary, #0053A0);
  color: #FFFFFF;
  box-shadow: 0 14px 40px rgba(0,83,160,0.35);
}
.hero-uigm-btn--primary:hover{
  background: var(--color-primary-hover, #00337F);
  transform: translateY(-1px);
}
.hero-uigm-btn--primary:active{
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(0,83,160,0.25);
}

.hero-uigm-btn--ghost{
  background: rgba(255,255,255,0.9);
  color: var(--color-primary, #0053A0);
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}
.hero-uigm-btn--ghost:hover{
  background: #FFFFFF;
  border-color: rgba(15,23,42,0.15);
}

/* Panel kanan (teks pendek, bukan hero kedua) */
.hero-uigm__aside{
  display: flex;
  justify-content: flex-end;
}

.hero-uigm__aside-card{
  max-width: 320px;
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 18px 55px rgba(15,23,42,0.15);
  border: 1px solid rgba(230,236,242,0.8);
  backdrop-filter: blur(10px);
}

.hero-uigm__aside-label{
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--color-text-muted, #3C4B66);
  margin: 0 0 .35rem;
}

.hero-uigm__aside-text{
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
}

/* Responsif */
@media (max-width: 960px){
  .hero-uigm{
    padding-top: 3.25rem;
  }
  .hero-uigm__inner{
    grid-template-columns: minmax(0,1fr);
    gap: 2.25rem;
  }
  .hero-uigm__aside{
    justify-content: flex-start;
  }
}

@media (max-width: 640px){
  .hero-uigm{
    padding: 2.75rem 1.25rem 2.5rem;
  }
  .hero-uigm__title{
    font-size: 1.9rem;
  }
  .hero-uigm__highlights{
    gap: .4rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-uigm-btn{ transition: none !important; }
}

/* NYOBA DOANG EDITAN INI*/

/* ================================
   Hero-Welcome – Full image + scroll
   ================================ */


.uigm-hero-top{
  position: relative;
  /* full-bleed meskipun di dalam container */
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  min-height: min(100vh, 900px);
  max-height: 900px;
  width: 100vw;
  overflow: hidden;
  background: rgba(0, 83, 160, 0.18);
  color: #FFFFFF;
}

/* Layer foto sebagai background */
.uigm-hero-top__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.uigm-hero-top__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05);
  transform: scale(1.02);
}

/* Overlay gradient */
.uigm-hero-top__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* lapisan utama: biru UMN yang ringan */
    linear-gradient(
      135deg,
      rgba(0, 83, 160, 0.18) 0%,
      rgba(0, 83, 160, 0.12) 30%,
      rgba(0, 83, 160, 0.06) 60%,
      rgba(0, 83, 160, 0.0) 100%
    ),
    /* glow di kanan atas */
    radial-gradient(
      circle at top right,
      rgba(0, 83, 160, 0.18),
      transparent 55%
    );
}

/* Konten teks – versi 2 (simple, center) */
.uigm-hero-top__content{
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  min-height: inherit;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.uigm-hero-top__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem 1rem;
  margin-bottom: 1.3rem;
  border-radius: 999px;
  background: var; border-color: #E5EEF9;
  border: 1px solid rgba(148,163,184,0.65);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E5EEF9;
}

.uigm-hero-top__title{
  margin: 0 0 1.1rem;
  max-width: 680px;
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #FFFFFF;
}

.uigm-hero-top__subtitle{
  margin: 0;
  max-width: 520px;
  font-size: .98rem;
  line-height: 1.7;
  color: #D0E2FF;
}

/* Scroll indicator */
.uigm-hero-top__scroll{
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 3;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;

  text-decoration: none;
  color: #E5EEF9;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .9;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease;
}

.uigm-hero-top__scroll-text{
  text-shadow: 0 4px 12px rgba(15,23,42,0.8);
}

.uigm-hero-top__scroll-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 10px 25px rgba(15,23,42,0.6);
  font-size: 1.1rem;
  line-height: 1;
  background: rgba(15,23,42,0.85);
  animation: uigm-hero-bounce 1.8s infinite;
}

/* Hover/focus */
.uigm-hero-top__scroll:hover{
  opacity: 1;
  transform: translate(-50%, -2px);
}
.uigm-hero-top__scroll:focus-visible{
  outline: 2px solid #BFDBFE;
  outline-offset: 4px;
}

/* Animasi ikon scroll */
@keyframes uigm-hero-bounce{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(5px); }
}

/* Responsif */
@media (max-width: 768px){
  .uigm-hero-top{
    min-height: 80vh;
  }
  .uigm-hero-top__content{
    padding: 4.25rem 1.25rem 3.25rem;
  }
  .uigm-hero-top__title{
    font-size: clamp(2rem, 6vw, 2.4rem);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .uigm-hero-top__scroll-icon{
    animation: none;
  }
}

/* ================================
   Hero-Welcome – Full image + scroll
   ================================ */

/* ======================
   About – UIGM at UMN
   ====================== */

/* ======================
   About – UIGM at UMN
   ====================== */

.about-uigm{
  position: relative;
  padding: 4.5rem 1.5rem 4.75rem;
  background: var(--color-base, #FFFFFF);
  color: var(--color-text, #0F172A);
}

.about-uigm__inner{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

/* ===== Kolom kiri: narasi ===== */

.about-uigm__content{
  max-width: 640px;
}

/* Pill "ABOUT" */
.about-uigm__kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: .32rem 1.15rem;
  margin: 0 0 1rem;

  border-radius: 999px;
  border: 1px solid rgba(0,83,160,0.28);
  background: linear-gradient(
    135deg,
    rgba(227,240,255,0.96),
    rgba(255,255,255,0.98)
  );

  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-primary, #0053A0);
}

.about-uigm__title{
  margin: 0 0 1.3rem;
  font-size: clamp(1.6rem, 2.1vw, 1.9rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.02em;
}

.about-uigm__lead{
  margin: 0 0 1rem;
  font-size: .98rem;
  line-height: 1.7;
  color: var(--color-text-muted, #3C4B66);
}

.about-uigm__body{
  margin: 0 0 1.35rem;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--color-text-muted, #3C4B66);
}

/* Benefit cards */

.about-uigm__benefits{
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-uigm__benefit-card{
  display: flex;
  align-items: flex-start;
  gap: .75rem;

  padding: 1.05rem 1.15rem;
  border-radius: 1.1rem;
  background: #FFFFFF;
  border: 1px solid var(--color-border, #E6ECF2);
  box-shadow: 0 16px 45px rgba(15,23,42,0.06);
}

.about-uigm__benefit-icon{
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 600;

  background: var(--color-primary-soft, #E3F0FF);
  color: var(--color-primary, #0053A0);
  flex-shrink: 0;
  margin-top: .1rem;
}

.about-uigm__benefit-text{
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--color-text-muted, #3C4B66);
}

/* ===== Kolom kanan: kartu foto + badges ===== */

.about-uigm__visual{
  display: flex;
  justify-content: flex-end;
}

/* Card foto – satu blok di kolom kanan */
.about-uigm__photo-card{
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(15,23,42,0.18);
  background: var(--color-base, #F9FAFF);
  aspect-ratio: 16 / 7;        /* tinggi cukup, tapi tidak seperti hero kedua */
}

.about-uigm__photo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.about-uigm__photo-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(249, 250, 255, 0.95) 0%,
    rgba(249, 250, 255, 0.8) 28%,
    rgba(249, 250, 255, 0.55) 44%,
    rgba(249, 250, 255, 0.2) 65%,
    rgba(249, 250, 255, 0.02) 82%,
    rgba(249, 250, 255, 0) 100%
  );
  pointer-events: none;
}

/* Badges di dalam kartu */
.about-uigm__badges{
  position: absolute;
  left: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Base badge */
.about-uigm__badge{
  position: relative;
  padding: .8rem 1.1rem;
  border-radius: 1rem;
  min-width: 190px;
  box-shadow: 0 14px 40px rgba(15,23,42,0.55);
}

/* Badge 1: World Rank */
.about-uigm__badge--rank{
  background: rgba(15,23,42,0.96);
  color: #F9FAFB;
  z-index: 2;
}

/* Badge 2: Total Score */
.about-uigm__badge--score{
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 18px 50px rgba(15,23,42,0.22);

  margin-top: -0.7rem;
  margin-left: 1.4rem;
  z-index: 1;
}

/* Tipografi badge */
.about-uigm__badge-label{
  margin: 0 0 .15rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #BFDBFE;
}
.about-uigm__badge--score .about-uigm__badge-label{
  color: #64748B;
}

.about-uigm__badge-value{
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.about-uigm__badge-note{
  margin: .15rem 0 0;
  font-size: .78rem;
  color: #E5E7EB;
}
.about-uigm__badge--score .about-uigm__badge-note{
  color: #475569;
}

/* ===== Responsif ===== */

@media (max-width: 960px){
  .about-uigm__inner{
    grid-template-columns: minmax(0,1fr);
    gap: 2.5rem;
  }

  .about-uigm__visual{
    justify-content: flex-start;
  }
}

@media (max-width: 768px){
  .about-uigm__benefits{
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 640px){
  .about-uigm{
    padding: 3.25rem 1.25rem 3.5rem;
  }
  .about-uigm__photo-card{
    max-width: 100%;
  }
}


/* ======================
   About – UIGM at UMN
   ====================== */
  
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.18;
}

p { margin: 0 0 1.1em; color: var(--color-text-muted); }
strong { color: var(--color-text); font-weight: 700; }
small { font-size: 0.875rem; color: var(--color-text-muted); }

a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: auto;
  transition: color var(--transition-base), box-shadow var(--transition-base);
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

button, input, select, textarea { font-family: inherit; color: var(--color-text); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }

img, svg, video { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(0, 83, 160, 0.18); color: var(--color-text); }

/* =========================================
   3) Neutralize Tailwind "dark:" utilities (keep light look)
   ========================================= */
html.dark { color-scheme: light; background: var(--color-base); }
html.dark [class*="dark:bg-"] { background-color: transparent !important; }
html.dark [class*="dark:text-"] { color: inherit !important; }
html.dark [class*="dark:border-"] { border-color: var(--color-border) !important; }
html.dark [class*="dark:shadow-"] { box-shadow: none !important; }

/* =========================================
   4) Layout helpers
   ========================================= */
.pre-hero {
  scroll-margin-top: 80px; /* comfortable for anchor jumps */
  background: linear-gradient(180deg, #F7FBFF 0%, #FAFAFA 55%);
  border-radius: 28px;
  padding-bottom: 12px; /* ruang sebelum soft separator */
}
.pre-hero p { max-width: 60ch; }

/* =========================================
   5) Components
   ========================================= */

/* 5.1 Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.04);
  color: var(--color-text);
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition: background var(--transition-base), box-shadow var(--transition-soft), border-color var(--transition-base);
}

.badge--soft {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: rgba(0, 83, 160, 0.25);
}

.badge--muted {
  background: var(--color-panel);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.badge--alert {
  background: rgba(255, 210, 0, 0.25);
  color: var(--color-text);
  border-color: rgba(255, 210, 0, 0.6);
}

.badge--inline {
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.badge--inline .data-counter__value {
  color: var(--color-primary);
  font-size: 1rem;
}

/* 5.2 Section header patterns */
.section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.05);
  color: var(--color-text);
  border: 1px solid rgba(15, 23, 42, 0.12);
  width: fit-content;
  box-shadow: none;
  overflow: hidden;
  transition: border-color var(--transition-base), color var(--transition-base), background var(--transition-base);
}

.section-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.4) 50%, transparent 90%);
  opacity: 0;
  transform: translateX(-120%);
  transition: opacity var(--transition-base);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.subsection-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.3;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-lead { font-size: 1rem; line-height: 1.7; color: var(--color-text-muted); max-width: 38rem; }

/* 5.2a Copy-specific polish */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.copy-prose {
  font-size: 1.05rem;
  line-height: 1.85;
  letter-spacing: 0.005em;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.copy-prose > p {
  margin-bottom: 1.45em;
  max-width: 62ch;
}
.copy-prose > p:last-child { margin-bottom: 0; }
.copy-prose strong { color: var(--color-text); }
.copy-prose em {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 600;
}
.copy-prose .text-highlight { color: var(--color-text); }

.text-highlight {
  display: inline;
  padding: 0.08em 0.45em 0.18em;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 83, 160, 0.18), rgba(43, 182, 115, 0.14));
  box-shadow: 0 10px 24px rgba(0, 83, 160, 0.12);
}

/* 5.3 Animated links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base), transform var(--transition-base);
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition-base);
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-soft);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  color: var(--color-primary-hover);
}

.link-arrow:hover svg,
.link-arrow:focus-visible svg {
  transform: translateX(6px);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: scaleX(1);
}

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-bottom: 0.1rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-soft);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* 5.4 Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.72rem 1.6rem; border-radius: 9999px; border: 1px solid transparent;
  font-size: 0.95rem; font-weight: 600; line-height: 1;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  cursor: pointer; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-primary { background: var(--color-primary); color: #FAFAFA; }
.btn-outline { color: var(--color-primary); border-color: rgba(0, 83, 160, 0.35); }

/* 5.5 Card */
.card-spotlight {
  position: relative; background: var(--color-base);
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card-spotlight:hover, .card-spotlight:focus-within {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 83, 160, 0.18);
}
.card-spotlight h3, .card-spotlight h4, .card-spotlight .text-slate-900, .card-spotlight .dark\:text-white { color: var(--color-text); }
.card-spotlight p, .card-spotlight .text-slate-400, .card-spotlight .text-slate-500, .card-spotlight .dark\:text-slate-400 { color: var(--color-text-muted); }
.card-spotlight a { color: var(--color-primary); font-weight: 600; }
.card-spotlight a:hover { color: var(--color-primary-hover); }

.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(120% 120% at 10% 10%, rgba(0, 83, 160, 0.14), transparent 60%),
              radial-gradient(120% 120% at 90% 90%, rgba(43, 182, 115, 0.12), transparent 55%);
  opacity: 0; transition: opacity var(--transition-base); pointer-events: none;
}
.card-glow:hover::before, .card-glow:focus-within::before { opacity: 1; }

/* 5.6 Progress (bars) */
.progress-track {
  position: relative; height: 0.56rem; border-radius: 9999px; overflow: hidden;
  background: var(--color-primary-soft); border: 1px solid rgba(0, 83, 160, 0.15);
}
.progress-thumb {
  height: 100%; border-radius: inherit; background: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0, 83, 160, 0.22);
  transition: width 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* 5.7 Data Counter */
.data-counter { display: inline-flex; align-items: baseline; gap: 0.3rem; font-variant-numeric: tabular-nums; color: var(--color-text); }
.data-counter__value { display: inline-block; opacity: 0; transform: translateY(8px); animation: counterReveal 0.6s cubic-bezier(0.16, 0.84, 0.44, 1) forwards; }
.data-counter__label { color: var(--color-text-muted); font-size: 0.87rem; }

/* 5.8 Hero */
[aria-label="Hero"] .hero-copy {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  text-wrap: pretty;
}
[aria-label="Hero"] .hero-label {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  color: #FAFAFA; border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 16px 32px rgba(3, 24, 54, 0.35);
  letter-spacing: 0.12em;
}
[aria-label="Hero"] .hero-title {
  color: #FAFAFA;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 18px 48px rgba(3, 24, 54, 0.45);
  text-wrap: balance;
}
[aria-label="Hero"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 34rem;
  letter-spacing: 0.01em;
  text-wrap: pretty;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08); /* kontras tambahan */
}
[aria-label="Hero"] .hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; padding-top: 0.5rem; }

/* Buttons overriding when inside Hero (white primary, white-outline) */
[aria-label="Hero"] .btn-primary { background: #FAFAFA; color: var(--color-primary); }
[aria-label="Hero"] .btn-outline { color: #FAFAFA; border-color: rgba(255, 255, 255, 0.7); }
[aria-label="Hero"] .btn-outline:hover { background: rgba(255,255,255,0.12); }

@supports (-webkit-background-clip: text) or (background-clip: text) {
  [aria-label="Hero"] .hero-title {
    background-image: linear-gradient(135deg, #FAFAFA 10%, rgba(228, 240, 255, 0.88) 55%, rgba(206, 241, 255, 0.78) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 24px 48px rgba(3, 24, 54, 0.35));
  }
}

/* 5.9 Hero Score widget */
.hero-score {
  background: var(--color-panel); color: var(--color-text);
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); backdrop-filter: none;
  transition: none;
}
.hero-score__label, .hero-score__subtitle {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem;
  color: var(--color-text-muted); margin-bottom: 0.4rem;
}
.hero-score__value {
  color: var(--color-primary); font-size: clamp(2.75rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 1rem;
  letter-spacing: -0.02em; text-shadow: 0 6px 18px rgba(0, 83, 160, 0.18);
  animation: scorePulse 1.6s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}
.hero-score__list { list-style: none; padding: 0; margin: 1.15rem 0 0; display: grid; gap: 0.75rem; }
.hero-score__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.9rem; background: var(--panel-2); border-radius: 9999px;
  border: 1px solid var(--color-border); box-shadow: none;
  color: var(--color-text); font-weight: 600;
}
.hero-score__badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3.25rem;
  padding: 0.35rem 1rem; border-radius: 9999px; background: rgba(15, 23, 42, 0.08);
  color: var(--color-text); font-weight: 600;
  animation: scoreSweep 1s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

/* 5.10 Chips (anchor navigation) */
.chip-list {
display: flex;
justify-content: center; /* horizontal center */
align-items: center;      /* vertical center jika ada tinggi tertentu */
flex-wrap: wrap;          /* biar rapi kalau banyak chip */
gap: 0.5rem;              /* jarak antar chip */
list-style: none;
margin: 0 auto;
padding: 0;
}


.chip-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem; border-radius: 9999px;
  border: 1px solid var(--color-border); background: var(--color-panel);
  color: var(--color-text); font-weight: 600; text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.chip-link:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
  border-color: rgba(0, 83, 160, 0.2); color: var(--color-primary);
}
.chip-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.chip-link--active { background: var(--color-primary-soft); color: var(--color-primary); border-color: rgba(0, 83, 160, 0.35); }

/* 5.11 Indicator/Building cards minor helpers */
.indicator-card { display: flex; flex-direction: column; gap: 1.5rem; will-change: transform, box-shadow; }
.indicator-card .progress-track { margin-top: 0.25rem; }
.indicator-card .link-arrow { margin-top: auto; }

.building-card, .campus-card {
  display: flex; flex-direction: column; gap: 1.75rem;
}

/* 5.12 Breakdown Accordion (details/summary) */
.breakdown-item { padding: 0; transition: all var(--transition-base); } /* remove inner padding; let summary full-width */
.breakdown-item[open] { transform: translateY(0); box-shadow: var(--shadow-lg); border-color: rgba(0, 83, 160, 0.18); }
.breakdown-summary {
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
  padding: 1.25rem; cursor: pointer; list-style: none;
}
.breakdown-summary::-webkit-details-marker { display: none; } /* remove default marker (WebKit) */
.breakdown-summary:hover { background: rgba(0, 83, 160, 0.04); }
.breakdown-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-primary); transition: transform var(--transition-base); }
.breakdown-item[open] > .breakdown-summary .breakdown-toggle { transform: rotate(90deg); }
.breakdown-details {
  background: var(--color-panel); padding: 1.25rem 1.25rem 1.5rem; border-top: 1px solid var(--color-border);
}
.detail-title { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin: 0 0 12px 0; }
.detail-narrative { font-size: 0.9rem; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.detail-subtitle { font-size: 0.95rem; font-weight: 700; color: var(--color-text); margin: 1rem 0 0.5rem 0; }
.detail-list { font-size: 0.9rem; list-style-type: disc; padding-left: 1.25rem; margin: 0; color: var(--color-text-muted); }
.detail-list li { margin-bottom: 4px; }
.detail-list li strong { color: var(--color-text); font-weight: 600; }
.doc-list { font-size: 0.9rem; list-style-type: none; padding-left: 0; margin: 0; }
.doc-list li { margin-bottom: 6px; }
.doc-list li a {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--color-primary); text-decoration: none; border-bottom: 2px solid transparent;
}
.doc-list li a:hover { color: var(--color-primary-hover); border-bottom-color: rgba(0, 83, 160, 0.2); }

/* 5.13 Stats (World Rank, Total Score, etc.) */
.stat-list {
  margin: 0;
  padding: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-base);
  box-shadow: var(--shadow-sm);
}
.stat-label,
.stat-value,
.stat-meta {
  margin: 0;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.stat-value {
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}
.stat-meta {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

/* 5.14 Skip link (optional a11y helper) */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 0.6rem 1rem;
  z-index: 10000; background: #fff; border: 1px solid var(--color-border); border-radius: 10px;
  box-shadow: var(--shadow-md); color: var(--color-primary);
}

/* =========================================
   6) Section-specific tweaks
   ========================================= */
/* About section: quick value props */
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #FAFAFA 0%, #F7FBFF 100%);
  box-shadow: var(--shadow-sm);
}
.why-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.rank-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 14px;
  border-radius: var(--radius-card);
}
.rank-item {
  background: var(--color-base);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rank-item small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.rank-value {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.rank-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.rank-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary);
}

.source-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.soft-sep {
  margin-top: 24px;
  height: 36px;
  background: linear-gradient(180deg, rgba(0, 83, 160, 0.06) 0%, rgba(0, 83, 160, 0) 100%);
  border-radius: 24px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

@media (max-width: 1280px) {
  .rank-strip { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 1024px) {
  .why-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .rank-strip { grid-template-columns: minmax(0, 1fr); }
}

/* Indicators header row alignment on large screens */
section[data-section="indicators"] .lg\:justify-between { align-items: center; }

/* Contextual link-arrow tweaks within indicators header */
section[data-section="indicators"] .link-arrow {
  flex-shrink: 0; padding: 0.5rem 0.25rem; font-size: 0.9rem; font-weight: 700;
}

/* =========================================
   7) Footer
   ========================================= */
.gm-footer { background: linear-gradient(180deg, #0B7698 100%, #004D68 100%); color: #EAF4F7; }
.gm-footer .mx-auto { padding-block: 48px; }
.gm-footer h2, .gm-footer h3 { color: #FAFAFA; }
.gm-footer p, .gm-footer li { color: #CFE7EE; }
.gm-footer a { color: #D7F1F7; text-decoration: none; transition: color 0.2s ease; }
.gm-footer a:hover { color: #FAFAFA; text-decoration: underline; }
.gm-footer .footer-nav { list-style: none; padding-left: 0; margin: 0; }
.gm-footer .footer-nav li { position: relative; padding-left: 14px; }
.gm-footer .footer-nav li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 1px;
  background: #9FE6F2; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) inset;
}
.gm-footer .inline-flex.h-10.w-10 {
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FAFAFA; border-radius: 9999px; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.gm-footer .inline-flex.h-10.w-10:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.4); }
.gm-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.1); color: #CFE7EE; }

/* =========================================
   8) Utilities
   ========================================= */
.text-umnblue {
  color: var(--color-primary);
}

.bg-umnblue {
  background-color: var(--color-primary);
  color: #FAFAFA;
}

.border-umnblue {
  border-color: var(--color-primary);
}

.shadow-soft {
  box-shadow: var(--shadow-sm);
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-soft);
}

.hover-lift:hover,
.hover-lift:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hover-glow {
  transition: box-shadow var(--transition-soft), border-color var(--transition-base);
}

.hover-glow:hover,
.hover-glow:focus-visible {
  box-shadow: 0 0 0 6px rgba(0, 83, 160, 0.08), 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: rgba(0, 83, 160, 0.35);
}

/* =========================================
   9) Animations
   ========================================= */
.motion-reveal,
.fade-in-delay {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}

.motion-reveal[data-motion="scale"] {
  transform: translateY(18px) scale(0.94);
}

.motion-reveal[data-motion="fade"],
.fade-in-delay {
  transform: translateY(18px);
}

.motion-reveal[data-motion="slide"] {
  transform: translateX(-18px);
}

.motion-reveal.is-visible {
  animation: revealUp 0.8s var(--transition-spring) forwards;
}

.motion-reveal[data-motion="scale"].is-visible {
  transform: scale(0.94);
  animation: revealScale 0.9s var(--transition-spring) forwards;
}

.motion-reveal[data-motion="fade"].is-visible,
.fade-in-delay.is-visible {
  transform: translateY(12px);
  animation: fadeInUp 0.7s var(--transition-soft) forwards;
}

.motion-reveal[data-motion="slide"].is-visible {
  transform: translateX(-18px);
  animation: revealSlide 0.85s var(--transition-spring) forwards;
}

.motion-reveal[data-delay="1"].is-visible,
.fade-in-delay[data-delay="1"].is-visible {
  animation-delay: 0.12s;
}

.motion-reveal[data-delay="2"].is-visible,
.fade-in-delay[data-delay="2"].is-visible {
  animation-delay: 0.24s;
}

.motion-reveal[data-delay="3"].is-visible,
.fade-in-delay[data-delay="3"].is-visible {
  animation-delay: 0.36s;
}

.motion-reveal[data-delay="4"].is-visible,
.fade-in-delay[data-delay="4"].is-visible {
  animation-delay: 0.48s;
}

.float-pulse {
  animation: floatPulse 6s ease-in-out infinite;
}

@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes revealScale {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealSlide {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmerSlide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes floatPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes counterReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scorePulse {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes scoreSweep {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   10) Reduced motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .fade-in-delay,
  .motion-reveal,
  .float-pulse {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .data-counter__value { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-score__value, .hero-score__badge { animation: none !important; opacity: 1 !important; transform: none !important; }
  .progress-thumb { transition-duration: 0s !important; }
  .section-label::after { animation: none !important; opacity: 0 !important; transform: translateX(-120%) !important; }
}

/* =========================================
   11) Responsive tweaks
   ========================================= */
@media (max-width: 1024px) {
  [aria-label="Hero"] .hero-copy { text-align: center; margin: 0 auto; }
  [aria-label="Hero"] .hero-title { margin-left: auto; margin-right: auto; }
  [aria-label="Hero"] .hero-actions { justify-content: center; }

  /* Indicators header on mobile: place title above link, add spacing */
  section[data-section="indicators"] .lg\:justify-between { align-items: flex-start; gap: 0.75rem; }
  .section-title { font-size: 1.6rem; }
  section[data-section="indicators"] .link-arrow { font-size: 0.85rem; }
}

/* OPTIONAL: if you want Hero to appear first on mobile WITHOUT changing HTML order
@media (max-width: 768px) {
  .hero { order: -1; }
  .pre-hero { order: 0; }
}
*/

/* ===== UIGM: Tokens ===== */
.uigm { --umn-blue:#0053A0; --umn-blue-2:#00337F; --umn-green:#2BB673; --umn-yellow:#FFD200;
        --ink:#0F172A; --muted:#3C4B66; --panel:#FAFAFA; --panel-2:#F6F9FC; --border:#E6ECF2;
        --shadow-sm:0 6px 18px rgba(8,37,56,.10); --shadow-lg:0 16px 42px rgba(8,37,56,.18); }

/* ===== Summary ===== */
.uigm-summary{max-width:1100px;margin:0 auto;padding:24px}
.uigm-summary .summary-meta{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}
.uigm-summary .summary-meta h2{margin:0;font-size:clamp(18px,2.2vw,22px)}
.uigm-summary .muted{color:var(--muted);margin:0}
.uigm-table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.uigm-table caption{position:absolute;left:-9999px}
.uigm-table th,.uigm-table td{padding:10px 12px;border-top:1px solid var(--border);text-align:left}
.uigm-table thead th{background:var(--panel-2);border-top:none}
.uigm-table tfoot .total th,.uigm-table tfoot .total td{font-weight:700;background:#fff}
.bars-grid{display:grid;gap:16px;margin-top:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.bar-card{border:1px solid var(--border);border-radius:14px;padding:12px;background:var(--panel);box-shadow:var(--shadow-sm)}
.bar-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-bottom:8px}
.bar-card .badge{display:inline-block;padding:4px 8px;border-radius:9999px;font-weight:700;color:#fff;background:var(--umn-blue)}
.bar-card[data-code="EC"] .badge{background:var(--umn-green)}
.bar-card[data-code="WS"] .badge{background:#5C6F7C}
.bar-card[data-code="WR"] .badge{background:#1B9BD7}
.bar-card[data-code="TR"] .badge{background:#6B4EFF}
.bar-card[data-code="ED"] .badge{background:var(--umn-yellow);color:#0F172A}
.bar-head h3{margin:0;font-size:14px;color:var(--ink)}
.bar-head .val{font-weight:700;color:var(--ink)}
.bar{position:relative; height:10px; background:var(--panel-2); border:1px solid var(--border); border-radius:9999px; overflow:hidden}
.bar-fill{position:absolute; inset:0 auto 0 0; width:calc(var(--val,0) * 1%); background:var(--umn-blue)}
.bar-card[data-code="EC"] .bar-fill{background:var(--umn-green)}
.bar-card[data-code="WS"] .bar-fill{background:#5C6F7C}
.bar-card[data-code="WR"] .bar-fill{background:#1B9BD7}
.bar-card[data-code="TR"] .bar-fill{background:#6B4EFF}
.bar-card[data-code="ED"] .bar-fill{background:var(--umn-yellow)}
.uigm :focus-visible{outline:3px solid var(--umn-yellow); outline-offset:3px; border-radius:8px}

/* ===== Indicator Cards dalam Index ===== */
.uigm-card-grid{max-width:1100px;margin:0 auto;padding:24px}
.uigm-card-grid .grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.uigm-card-grid .card{display:flex;flex-direction:column;gap:10px;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:12px;box-shadow:var(--shadow-sm);transition:transform .18s ease, box-shadow .18s ease}
.uigm-card-grid .thumb{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden}
.uigm-card-grid .thumb img{width:100%;height:100%;object-fit:cover}
.uigm-card-grid .meta{display:flex;align-items:center;gap:10px}
.uigm-card-grid .badge{background:var(--umn-blue);color:#fff;font-weight:700;border-radius:9999px;padding:4px 8px;font-size:12px}
.uigm-card-grid .card[data-code="EC"] .badge{background:var(--umn-green)}
.uigm-card-grid .card[data-code="WS"] .badge{background:#5C6F7C}
.uigm-card-grid .card[data-code="WR"] .badge{background:#1B9BD7}
.uigm-card-grid .card[data-code="TR"] .badge{background:#6B4EFF}
.uigm-card-grid .card[data-code="ED"] .badge{background:var(--umn-yellow);color:#0F172A}
.uigm-card-grid h3{margin:0;font-size:16px}
.uigm-card-grid .desc{margin:0;color:var(--muted);font-size:14px}
.uigm-card-grid .cta{align-self:flex-start;background:var(--panel-2);border:1px solid var(--border);border-radius:10px;padding:8px 10px;color:var(--umn-blue);text-decoration:none;font-weight:600}
.uigm-card-grid .card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.uigm-card-grid .cta:hover{background:#fff;border-color:var(--umn-blue)}

/* =========================================
   Modern enhancements
   ========================================= */
html { font-size: 16px; }

body { line-height: 1.6; color: var(--ink); }

h1, h2, h3 { line-height: 1.25; letter-spacing: 0.2px; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
p { margin: 0.5rem 0 1rem; }
.container, .max-w-7xl { max-width: 1100px; margin-inline: auto; }

:where(a, button, [role="button"], .chip-link, .cta, :focusable) {
  outline: none;
}
:where(a, button, [role="button"], .chip-link, .cta):focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--umn-yellow);
  border-radius: var(--radius-sm);
}

.card, .bar-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0;
  margin: 1rem auto;
}

.section-title { color: var(--umn-blue); font-weight: 800; margin-bottom: 0.25rem; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 auto 1rem; }

/* Indicator detail readability (clean, light + dark safe) */
.indicator-summary h3 {
  color: #0053A0;
  font-weight: 700;
}

/* Base labels */
.indicator-summary dt {
  color: #1e293b; /* slate-800 */
  font-weight: 600;
}

/* Base values */
.indicator-summary dd {
  color: #0f172a; /* slate-900 */
  font-weight: 700;
}

/* Remove color inheritance from nested text inside dd */
.indicator-summary dd p,
.indicator-summary dd details,
.indicator-summary dd details summary,
.indicator-summary dd details div {
  color: #334155 !important; /* slate-700, readable */
  font-weight: 500;
}

/* ============================
   Year Switcher (scoped styles)
   ============================ */
.year-switcher{
  /* Fallback ke token lokal bila design tokens global tidak ada */
  --ys-bg: var(--color-panel, #F6F9FC);
  --ys-border: var(--color-border, #E6ECF2);
  --ys-text: var(--color-text, #0F172A);
  --ys-muted: var(--color-text-muted, #3C4B66);
  --ys-primary: var(--color-primary, #0053A0);
  --ys-focus: rgba(0,83,160,.25);
  --ys-radius: 14px;
  --ys-shadow: 0 8px 24px rgba(2,8,23,.06);

  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .875rem;
  background: var(--ys-bg);
  border: 1px solid var(--ys-border);
  border-radius: var(--ys-radius);
  box-shadow: var(--ys-shadow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Label */
.year-switcher label{
  font-weight: 600;
  color: var(--ys-muted);
  letter-spacing: .01em;
  margin-right: .25rem;
}

/* Select dengan panah kustom */
.year-switcher select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  color: var(--ys-text);
  border: 1px solid var(--ys-border);
  border-radius: 10px;
  padding: .5rem 2.25rem .5rem .75rem;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgba(2,8,23,.05);
  min-width: 8rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .12s ease;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233C4B66' viewBox='0 0 16 16'><path d='M4.47 5.97a.75.75 0 0 1 1.06 0L8 8.44l2.47-2.47a.75.75 0 1 1 1.06 1.06L8.53 9.56a.75.75 0 0 1-1.06 0L4.47 7.03a.75.75 0 0 1 0-1.06z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1rem;
}
.year-switcher select:hover{ border-color: rgba(2,8,23,.2) }
.year-switcher select:focus{ outline: none; border-color: var(--ys-primary); box-shadow: 0 0 0 3px var(--ys-focus) }
.year-switcher select:focus-visible{ outline: none; }
.year-switcher select:active{ transform: translateY(0.5px) }
.year-switcher select:disabled{ opacity: .6; cursor: not-allowed }

/* Tombol (fallback di <noscript>) */
.year-switcher button{
  --btn-bg: var(--ys-primary);
  --btn-text: #fff;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  border-radius: 10px;
  padding: .5rem .75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,83,160,.25);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.year-switcher button:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,83,160,.28) }
.year-switcher button:active{ transform: translateY(0); box-shadow: 0 2px 8px rgba(0,83,160,.25) }

/* Compact modifier untuk ruang sempit (tambahkan class year-switcher--compact pada form) */
.year-switcher--compact{ padding: .5rem .625rem }
.year-switcher--compact select{ min-width: 6.5rem; padding: .375rem 2rem .375rem .625rem }

/* Dark mode (berbasis class html.dark atau data-theme="dark") */
html.dark .year-switcher,
[data-theme="dark"] .year-switcher{
  --ys-bg: var(--color-base, #0B1220);
  --ys-border: #1f2a44;
  --ys-text: #E6EDF7;
  --ys-muted: #B7C4D6;
  --ys-primary: var(--color-primary, #4DA3FF);
  --ys-focus: rgba(77,163,255,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--ys-bg);
}
html.dark .year-switcher select{
  background-color: #0F172A;
  border-color: var(--ys-border);
  color: var(--ys-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23B7C4D6' viewBox='0 0 16 16'><path d='M4.47 5.97a.75.75 0 0 1 1.06 0L8 8.44l2.47-2.47a.75.75 0 1 1 1.06 1.06L8.53 9.56a.75.75 0 0 1-1.06 0L4.47 7.03a.75.75 0 0 1 0-1.06z'/></svg>");
}
html.dark .year-switcher button{
  box-shadow: 0 2px 10px rgba(77,163,255,.25);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .year-switcher, .year-switcher *{ transition: none !important; }
}
