/* Home: the university in figures (partials/home_glance.html). Lato, printed-report style:
   hairline rules and aligned figures instead of cards.
   Row 1: headline and paragraph beside two figure lists (Academic, Facilities).
   Row 2: the three campuses across the full width. */
.hg {
  --hg-green: #0b3a26;
  --hg-green-2: #0f6843;
  --hg-blue: #2b86bf;
  --hg-ink: #13241b;
  --hg-soft: #56665e;
  --hg-line: #dbe3de;
  background: #ffffff;
  padding: clamp(56px, 6vw, 88px) 0;
  font-family: "Lato", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--hg-ink);
}
:where(.hg) * { font-family: inherit; }   /* the site-wide stylesheet sets `* { Poppins }` */
.hg p, .hg h2, .hg h3, .hg dl, .hg dd, .hg ul { margin: 0; }
.hg-shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }

/* row 1 */
.hg-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hg-intro h2 {
  font-size: clamp(26px, 1.1rem + 1.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--hg-green);
}
.hg-intro h2 span { display: block; color: var(--hg-blue); }
.hg-lede {
  margin-top: 16px !important;
  max-width: 32rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hg-soft);
}

.hg-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.hg-group__name {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--hg-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hg-green-2);
}
.hg-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hg-line);
}
.hg-row dt { font-size: 15px; font-weight: 700; color: var(--hg-ink); }
.hg-row dt small {
  display: block;
  margin-top: 2px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--hg-soft);
}
.hg-row dd {
  font-size: clamp(26px, 1.2rem + 0.9vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--hg-green);
}
.hg-more {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--hg-blue);
  text-decoration: none;
}
.hg-more span { transition: transform 0.2s ease; }
.hg-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hg-more:hover span { transform: translateX(3px); }
.hg-more:focus-visible { outline: 2px solid var(--hg-blue); outline-offset: 3px; }

/* row 2 */
.hg-campuses { margin-top: clamp(40px, 5vw, 64px); }
.hg-campuses ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hg-campuses li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 16px 0;
  border-bottom: 1px solid var(--hg-line);
}
.hg-campuses li + li { padding-left: 20px; border-left: 1px solid var(--hg-line); }
.hg-campuses strong { font-size: 16px; font-weight: 700; color: var(--hg-ink); }
.hg-campuses li span {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  color: var(--hg-soft);
}

/* tablets: stack row 1 */
@media (max-width: 960px) {
  .hg-top { grid-template-columns: minmax(0, 1fr); }
}
/* phones: one column everywhere */
@media (max-width: 600px) {
  .hg-shell { width: calc(100% - 40px); }
  .hg-figures { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hg-campuses ul { grid-template-columns: minmax(0, 1fr); }
  .hg-campuses li, .hg-campuses li + li { padding: 14px 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hg-more span { transition: none; } }

/* dark theme (the site's own toggle) */
html[data-theme="dark"] .hg { background: #0f1713; --hg-ink: #e8f0ec; --hg-soft: #a9bab1; --hg-line: #24352c; }
html[data-theme="dark"] .hg-intro h2,
html[data-theme="dark"] .hg-row dd { color: #e8f0ec; }
html[data-theme="dark"] .hg-intro h2 span,
html[data-theme="dark"] .hg-more { color: #8fd0f2; }
html[data-theme="dark"] .hg-group__name { color: #86d5b2; border-color: #86d5b2; }
