:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --acc: #0f766e;
  --acc-soft: #ccfbf1;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: linear-gradient(180deg, #e8eef2 0%, #f4f6f8 40%, #eef2f5 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

body.site { overflow-x: hidden; }

.shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
  padding-bottom: calc(20px + var(--safe-bottom));
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--ink);
  text-decoration: none;
}
.logo span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  margin-left: 3px;
  vertical-align: middle;
}

.pill {
  font-size: 11px;
  color: var(--acc);
  background: var(--acc-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 0 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a.on, .nav a:hover { color: var(--ink); background: var(--soft); }

.wrap { padding: 14px 16px 0; }

.ed-line {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15,118,110,0.12), transparent 45%),
    linear-gradient(180deg, #0b1220 0%, #152238 100%);
  color: #fff;
  margin-bottom: 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  animation: rise 0.55s ease both;
}
.hero .kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #99f6e4;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.hero p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.82); }

.sec { margin-top: 22px; animation: rise 0.6s ease both; }
.sec h2 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.list { display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #155e75);
}
.thumb.t2 { background: linear-gradient(135deg, #1e3a5f, #0f766e); }
.thumb.t3 { background: linear-gradient(135deg, #334155, #0ea5e9); }
.thumb.t4 { background: linear-gradient(135deg, #115e59, #64748b); }
.row h3 { font-size: 14px; line-height: 1.35; margin-bottom: 4px; }
.blurb { font-size: 12px; color: var(--muted); line-height: 1.45; }
.meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

.edu-grid { display: grid; gap: 10px; }
.edu-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.edu-card strong { display: block; font-size: 13px; margin-bottom: 6px; }
.edu-card span { font-size: 12px; color: var(--muted); line-height: 1.5; }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq-q { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.faq-a { font-size: 13px; color: var(--muted); line-height: 1.55; }
.faq-a a { color: var(--acc); font-weight: 700; }

.dl-grid { display: grid; gap: 10px; }
.dl-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dl-card h3 { font-size: 15px; margin-bottom: 4px; }
.dl-card p { font-size: 12px; color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--acc);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border: 0;
}
.btn.is-empty,
.btn[href=""],
.btn[href="#"] {
  background: #94a3b8;
  pointer-events: none;
}
.note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px;
  background: var(--soft);
  border-radius: 12px;
}

.foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.foot a {
  color: var(--acc);
  font-weight: 700;
  margin-right: 12px;
  text-decoration: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .sec { animation: none; }
}
