:root {
  color-scheme: light;
  --ink: #102027;
  --muted: #53616a;
  --paper: #f6f4ef;
  --panel: #ffffff;
  --line: #d9dedc;
  --teal: #0f5f63;
  --deep: #0b1f2a;
  --gold: #f0b84a;
  --red: #c6503d;
  --blue: #2f6f9f;
  --shadow: 0 18px 52px rgba(16, 32, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
p,
a,
li,
span,
td,
th {
  overflow-wrap: anywhere;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 31, 42, 0.78), rgba(11, 31, 42, 0));
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: var(--deep);
  font-size: 0.86rem;
  line-height: 1;
}

.nav {
  gap: clamp(14px, 2.5vw, 28px);
  font-size: 0.92rem;
  font-weight: 850;
}

.nav a {
  text-decoration: none;
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--deep);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 62% center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 31, 42, 0.96) 0%, rgba(11, 31, 42, 0.8) 44%, rgba(11, 31, 42, 0.22) 100%),
    linear-gradient(0deg, rgba(11, 31, 42, 0.58), rgba(11, 31, 42, 0.04));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 88px);
  padding-top: 72px;
  color: #fff;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  font-size: 5.9rem;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  max-width: 920px;
  font-size: 3.7rem;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: 1.36rem;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
}

.notice {
  width: min(1180px, calc(100% - 40px));
  margin: -40px auto 0;
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  border: 1px solid rgba(198, 80, 61, 0.24);
  border-left: 8px solid var(--red);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.notice strong {
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow),
.split-section p,
.tip-section p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.comparison-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--deep);
  color: #fff;
  font-size: 0.9rem;
}

tbody th {
  width: 160px;
  color: var(--deep);
}

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

.school-grid,
.card-grid,
.risk-grid,
.career-list,
.verdict-grid {
  display: grid;
  gap: 16px;
}

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

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

.school-card,
.card-grid article,
.risk,
.career-list article,
.verdict-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.school-card {
  min-height: 430px;
  padding: 26px;
}

.school-card > span,
.risk > span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.school-card h3,
.card-grid h3,
.risk h3,
.career-list h3,
.verdict-grid h3 {
  margin-bottom: 12px;
}

.school-card p,
.school-card li,
.card-grid p,
.risk p,
.career-list p,
.verdict-grid li,
.sources-section li {
  color: var(--muted);
}

.school-card ul,
.verdict-grid ul,
.sources-section ul {
  margin: 18px 0 0;
  padding-left: 1.1rem;
}

.school-card li + li,
.verdict-grid li + li,
.sources-section li + li {
  margin-top: 10px;
}

.ust {
  border-top: 6px solid var(--teal);
}

.cuhk {
  border-top: 6px solid var(--red);
}

.polyu {
  border-top: 6px solid var(--gold);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.fee-list {
  display: grid;
  gap: 14px;
}

.fee-list div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.fee-list span,
.fee-list small {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.fee-list strong {
  display: block;
  margin: 4px 0;
  color: var(--deep);
  font-size: 2rem;
  line-height: 1.1;
}

.card-grid article,
.career-list article,
.verdict-grid article {
  min-height: 210px;
  padding: 24px;
}

.housing-section {
  border-top: 1px solid var(--line);
}

.risk {
  min-height: 300px;
  padding: 24px;
}

.risk strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
}

.risk.high {
  border-top: 6px solid var(--red);
}

.risk.medium {
  border-top: 6px solid var(--gold);
}

.risk.low {
  border-top: 6px solid var(--teal);
}

.verdict-section {
  border-top: 1px solid var(--line);
}

.tip-section {
  padding: clamp(54px, 7vw, 86px) clamp(20px, 5vw, 64px);
  background: var(--deep);
  color: #fff;
}

.tip-section h2,
.tip-section p {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.tip-section p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
}

.sources-section {
  padding-bottom: 86px;
}

.sources-section a {
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    background: var(--deep);
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 48px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .school-grid,
  .card-grid,
  .risk-grid,
  .career-list,
  .verdict-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .school-card,
  .risk,
  .card-grid article,
  .career-list article,
  .verdict-grid article {
    min-height: 0;
  }
}

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

  .hero-copy {
    margin: 0 auto;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .notice,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-meta span {
    width: 100%;
  }
}
