:root {
  --navy: #12324a;
  --blue: #146c94;
  --teal: #1aa38a;
  --gold: #f0b429;
  --red: #c83f31;
  --ink: #17212b;
  --muted: #667383;
  --line: #dbe4ea;
  --soft: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 50, 74, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.topbar__inner {
  display: flex;
  gap: 18px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
}

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

.nav__links a {
  padding: 10px 12px;
  color: #314255;
  font-weight: 700;
  font-size: 0.94rem;
  border-radius: 6px;
}

.nav__links a:hover {
  background: #eaf3f7;
  color: var(--blue);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.9), rgba(18, 50, 74, 0.64), rgba(18, 50, 74, 0.34)),
    url("https://commons.wikimedia.org/wiki/Special:FilePath/Sorong.jpg") center/cover;
  transform: scale(1.02);
}

.hero__officials {
  position: absolute;
  right: clamp(26px, 7vw, 118px);
  bottom: 74px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(35vw, 520px);
  max-height: 62%;
  pointer-events: none;
}

.hero__officials img {
  display: block;
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.92;
  border-radius: 8px;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.28));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(660px, calc(56% - 36px));
  margin: 0 clamp(18px, 7vw, 86px) 76px;
  color: var(--white);
}

.status,
.eyebrow,
.section__heading p {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.25rem, 4.75vw, 4.25rem);
  line-height: 1.03;
}

.hero__content > p:not(.status) {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button--primary {
  background: var(--gold);
  color: #2a2108;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  background: var(--white);
  padding: 26px 24px;
}

.metrics strong {
  display: block;
  color: var(--red);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 72px auto;
}

.section__heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.quick__grid,
.school-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.quick__grid a,
.school-card,
.download-grid a,
.panel,
.announcement {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(18, 50, 74, 0.08);
}

.quick__grid a,
.download-grid a {
  padding: 22px;
  border-radius: 8px;
}

.quick__grid span {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.quick__grid small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 22px;
}

.panel,
.announcement {
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
}

.field {
  display: grid;
  gap: 8px;
  margin: 22px 0;
  font-weight: 800;
}

select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #c8d5df;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  color: var(--navy);
  background: #edf5f8;
  font-size: 0.82rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #116052;
  background: #dff5ee;
  font-weight: 800;
  font-size: 0.82rem;
}

.badge--wait {
  color: #7a4c06;
  background: #fff1ce;
}

.announcement {
  align-self: start;
  color: var(--white);
  background: linear-gradient(160deg, var(--blue), var(--teal));
}

.announcement h2 {
  margin: 0 0 14px;
  font-size: 1.65rem;
}

.announcement p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.announcement a {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 900;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
}

.chart {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.bar {
  display: grid;
  grid-template-columns: 155px 1fr 58px;
  align-items: center;
  gap: 14px;
  font-weight: 800;
}

.bar__track {
  height: 18px;
  overflow: hidden;
  background: #e6edf2;
  border-radius: 999px;
}

.bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: inherit;
}

.school-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.school-card {
  border-radius: 8px;
  padding: 20px;
}

.school-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.school-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.school-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.school-card div {
  padding: 11px;
  background: #f2f7fa;
  border-radius: 6px;
}

.school-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.school-card dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 900;
}

.timeline ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(18, 50, 74, 0.07);
}

.timeline time {
  color: var(--red);
  font-weight: 900;
}

.timeline strong {
  display: block;
  color: var(--navy);
}

.timeline span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.download-grid a {
  color: var(--navy);
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

@media (min-width: 1400px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero__content {
    width: 640px;
  }

  .hero__officials {
    width: 500px;
    right: 118px;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav {
    align-items: flex-start;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: absolute;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav__links.is-open {
    display: flex;
  }

  .metrics,
  .quick__grid,
  .school-grid,
  .download-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 620px;
  }

  .hero__content {
    width: min(680px, calc(100% - 36px));
    margin-bottom: 52px;
  }

  .hero__officials {
    right: 18px;
    bottom: 116px;
    width: min(38vw, 330px);
    max-height: 42%;
    opacity: 0.72;
  }

  .metrics,
  .quick__grid,
  .school-grid,
  .download-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .metrics {
    width: calc(100% - 28px);
  }

  .hero__officials {
    right: -18px;
    bottom: 166px;
    width: 58vw;
    min-width: 220px;
    max-height: 34%;
    opacity: 0.28;
  }

  .bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer {
    flex-direction: column;
  }
}
