:root {
  --ink: #17231d;
  --muted: #68736d;
  --paper: #f7f5ef;
  --white: #fffef9;
  --green: #1e6548;
  --green-dark: #134934;
  --green-pale: #dceade;
  --lime: #d5ee63;
  --orange: #f0a45d;
  --red: #b85e4d;
  --purple: #7756a5;
  --line: #d9ddd7;
  --shadow: 0 18px 50px rgba(28, 54, 41, 0.1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #ecf4ee;
  --muted: #a1aea5;
  --paper: #0b1410;
  --white: #132018;
  --green: #7edda5;
  --green-dark: #5fc58c;
  --green-pale: #1a2b21;
  --lime: #b8d86a;
  --orange: #d9a441;
  --red: #f08a6b;
  --purple: #b39ad9;
  --line: rgba(128, 217, 166, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(213, 238, 99, 0.14), transparent 25rem),
    var(--paper);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 76px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 50% 50% 8px;
  color: var(--white);
  background: var(--green);
  font-size: 15px;
}

.header-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header-controls {
  display: flex;
  gap: 8px;
}

.header-control {
  min-width: 62px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.icon-only-control {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.header-control:hover {
  border-color: var(--green);
  color: var(--green);
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--green);
}

.github-link {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.subscribe-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--green);
}

.subscribe-link:hover {
  color: var(--white) !important;
  background: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  min-height: 440px;
  padding: 38px clamp(24px, 6vw, 92px) 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(30, 101, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 254, 249, 0.72);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42a66d;
  box-shadow: 0 0 0 5px rgba(66, 166, 109, 0.12);
}

h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h1 em {
  position: relative;
  color: var(--green);
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 400;
}

h1 em::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  opacity: 0.9;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 24px;
}

.primary-button {
  display: inline-flex;
  gap: 30px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 9px 24px rgba(30, 101, 72, 0.2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.update-note {
  color: var(--muted);
  font-size: 12px;
}

.hero-disclaimer {
  max-width: 690px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(30, 101, 72, 0.14);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.68);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero-disclaimer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-disclaimer p {
  margin: 0;
}

.hero-visual {
  position: relative;
  min-height: 350px;
}

.hero-visual::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--green-pale);
  content: "";
  transform: translate(-50%, -50%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed rgba(30, 101, 72, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-one {
  width: 360px;
  height: 238px;
}

.orbit-two {
  width: 252px;
  height: 366px;
  transform: translate(-50%, -50%) rotate(48deg);
}

.date-card,
.mini-card {
  position: absolute;
  box-shadow: var(--shadow);
}

.date-card-main {
  top: 50%;
  left: 50%;
  width: 190px;
  min-height: 226px;
  padding: 22px;
  border-radius: 12px;
  background: var(--white);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.date-card-label,
.mini-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.date-card-main > strong {
  display: block;
  margin-top: 16px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 74px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.date-card-main > span:not(.date-card-label) {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.date-card-school {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.mini-card {
  min-width: 125px;
  padding: 14px;
  border-radius: 9px;
}

.mini-card strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
}

.mini-card-open {
  top: 18%;
  right: 0;
  color: var(--white);
  background: var(--green);
  transform: rotate(7deg);
}

.mini-card-open span {
  color: rgba(255, 255, 255, 0.68);
}

.mini-card-rank {
  bottom: 12%;
  left: 2%;
  background: var(--lime);
  transform: rotate(4deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px clamp(24px, 6vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trust-strip div {
  padding: 3px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.trust-strip div:first-child {
  padding-left: 0;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip span {
  margin-right: 10px;
  color: var(--green);
  font-family: Georgia, serif;
  font-style: italic;
}

.board-section {
  padding: 100px clamp(24px, 6vw, 92px);
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading h2,
.methodology h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
}

.summary-stats {
  display: flex;
  gap: 38px;
}

.summary-stats div {
  display: grid;
}

.summary-stats strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.summary-stats span {
  color: var(--muted);
  font-size: 11px;
}

.demo-banner {
  margin-top: 30px;
  padding: 14px 18px;
  border: 1px solid #e7cf99;
  border-radius: 8px;
  color: #765019;
  background: #fff8e6;
  font-size: 13px;
  line-height: 1.6;
}

.demo-banner strong {
  margin-right: 10px;
}

.coverage-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf5;
}

.coverage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.coverage-heading h3 {
  margin: 7px 0 0;
  font-size: 22px;
}

.coverage-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.coverage-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.coverage-metrics div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid #e2e8df;
  border-radius: 8px;
  background: var(--white);
}

.coverage-metrics strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.coverage-metrics span {
  color: var(--muted);
  font-size: 10px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px 150px 150px auto auto auto;
  gap: 12px;
  margin-top: 30px;
}

.toolbar-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.toolbar-button:hover,
.toolbar-button.active {
  border-color: var(--green);
  color: var(--green);
  background: #f4f9f4;
}

.toolbar-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.search-box,
.select-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.search-box:focus-within,
.select-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 101, 72, 0.08);
}

.search-box span {
  padding-left: 16px;
  color: var(--muted);
  font-size: 22px;
}

.search-box input,
.select-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input {
  padding: 13px 16px 13px 10px;
}

.select-wrap select {
  padding: 13px 15px;
}

.status-tabs {
  display: flex;
  gap: 4px;
  margin-top: 34px;
  border-bottom: 1px solid var(--line);
}

.status-tab {
  position: relative;
  padding: 14px 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.status-tab span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  background: #edf0ec;
  font-size: 10px;
}

.status-tab.active {
  color: var(--green);
}

.status-tab.active::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--green);
  content: "";
}

.calendar-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.72);
}

.calendar-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-panel h3 {
  margin: 5px 0 0;
  font-size: 22px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-weekdays span {
  padding: 0 4px;
}

.calendar-grid {
  gap: 8px;
}

.calendar-cell {
  min-height: 112px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.calendar-cell.muted {
  opacity: 0.45;
}

.calendar-cell.today {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 101, 72, 0.08);
}

.calendar-day {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.calendar-event {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.open {
  color: #155f3f;
  background: #dff2e7;
}

.calendar-event.deadline {
  color: #8a3f34;
  background: #f8ded8;
}

.calendar-more {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.calendar-page {
  padding: 56px clamp(24px, 6vw, 92px) 90px;
}

.calendar-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.calendar-page-heading h1 {
  max-width: none;
  margin: 12px 0 10px;
  font-size: clamp(44px, 5vw, 72px);
}

.calendar-page-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.calendar-back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.calendar-page-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 22px;
}

.calendar-page-panel {
  margin-top: 0;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.legend-dot.open {
  background: #3b9d69;
}

.legend-dot.deadline {
  background: var(--red);
}

.calendar-month-list {
  margin-top: 34px;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calendar-list-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid #3b9d69;
  border-radius: 10px;
  background: var(--white);
}

.calendar-list-item.deadline {
  border-left-color: var(--red);
}

.empty-state.compact {
  margin-top: 0;
  padding: 24px;
  grid-column: 1 / -1;
}

.application-groups {
  display: grid;
  gap: 50px;
  margin-top: 38px;
}

.application-group {
  min-width: 0;
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.group-heading h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 15px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.open {
  background: #3b9d69;
  box-shadow: 0 0 0 5px rgba(59, 157, 105, 0.1);
}

.status-indicator.upcoming {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(240, 164, 93, 0.12);
}

.status-indicator.future {
  background: #4f86a6;
  box-shadow: 0 0 0 5px rgba(79, 134, 166, 0.11);
}

.status-indicator.predicted {
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(119, 86, 165, 0.11);
}

.status-indicator.closed {
  background: #a9afab;
}

.status-indicator.exception {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(184, 94, 77, 0.1);
}

.status-indicator.unknown {
  background: #5977a8;
  box-shadow: 0 0 0 5px rgba(89, 119, 168, 0.1);
}

.group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

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

.table-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.pagination-summary {
  margin-right: 4px;
  font-weight: 600;
}

.pagination-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--green);
  background: #f4f9f4;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.application-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1120px;
}

.application-table th {
  padding: 12px 16px;
  color: var(--muted);
  background: #f6f7f3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: left;
  white-space: nowrap;
}

.application-table td {
  padding: 17px 16px;
  border-top: 1px solid #e7e9e5;
  font-size: 13px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.application-table th:nth-child(1),
.application-table td:nth-child(1) {
  width: 6%;
}

.application-table th:nth-child(2),
.application-table td:nth-child(2) {
  width: 18%;
}

.application-table th:nth-child(3),
.application-table td:nth-child(3) {
  width: 21%;
}

.application-table th:nth-child(4),
.application-table td:nth-child(4) {
  width: 11%;
}

.application-table th:nth-child(5),
.application-table td:nth-child(5),
.application-table th:nth-child(6),
.application-table td:nth-child(6) {
  width: 12%;
}

.application-table th:nth-child(7),
.application-table td:nth-child(7) {
  width: 13%;
}

.application-table th:nth-child(8),
.application-table td:nth-child(8) {
  width: 17%;
}

.application-table tbody tr:hover {
  background: #fbfcf8;
}

.rank-cell {
  width: 72px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 18px !important;
}

.school-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.school-link:hover {
  color: var(--green);
}

.school-link::after {
  color: var(--muted);
  content: "↗";
  font-size: 11px;
}

.school-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.program-cell {
  max-width: 250px;
}

.date-primary {
  display: block;
  font-weight: 600;
  white-space: nowrap;
}

.date-secondary {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.applicant-category {
  display: inline-block;
  max-width: 190px;
  color: #315f8f;
  font-size: 11px;
  line-height: 1.5;
}

.deadline-soon {
  color: var(--red);
}

.calendar-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--green);
  background: #f4f9f4;
}

.favorite-button {
  min-width: 62px;
  width: auto;
  padding: 0 9px;
}

.favorite-button.active {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.source-link {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.source-link + .source-badge {
  margin-top: 6px;
}

.source-link:hover {
  color: var(--green);
}

.university-table td:nth-child(7) .school-link {
  white-space: nowrap;
}

.university-table td:nth-child(7) .source-link {
  margin-top: 6px;
}

.university-table td:nth-child(7) .favorite-button {
  margin-top: 8px;
}

.source-badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.source-badge.verified {
  color: #155f3f;
  background: #dff2e7;
}

.source-badge.discovered {
  color: #315f8f;
  background: #e5eef8;
}

.source-badge.candidate {
  color: #85601f;
  background: #fff0cf;
}

.source-badge.predicted {
  color: #5e3c8b;
  background: #eee6f8;
}

.application-group[data-status="predicted"] .table-wrap {
  border-color: #d8cae8;
}

.application-group[data-status="predicted"] tbody tr {
  background: #fdfaff;
}

.source-badge.homepage {
  color: #68736d;
  background: #edf0ec;
}

.empty-state {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}

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

.methodology {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  padding: 100px clamp(24px, 6vw, 92px);
  color: var(--white);
  background: var(--green-dark);
}

.methodology .section-kicker {
  color: var(--lime);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.method-grid article {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.method-grid article > span {
  color: var(--lime);
  font-family: Georgia, serif;
  font-style: italic;
}

.method-grid h3 {
  margin: 30px 0 12px;
  font-size: 16px;
}

.method-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.8;
}

.qa-section {
  padding: 80px clamp(24px, 6vw, 92px);
  background: var(--paper);
}

.qa-section .section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.qa-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.qa-grid h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.qa-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 72px;
  padding: 80px clamp(24px, 6vw, 92px);
  background: var(--white);
}

.subscribe-section h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 48px);
}

.subscribe-section > div > p {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

.subscribe-form {
  display: grid;
  gap: 12px;
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.subscribe-form > label:first-child {
  font-size: 12px;
  font-weight: 700;
}

.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.subscribe-row input {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.subscribe-row .primary-button {
  border: 0;
  cursor: pointer;
}

.subscribe-row .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.consent-row {
  display: flex;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.consent-row input {
  margin-top: 2px;
}

.subscribe-privacy,
.subscribe-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.subscribe-privacy a {
  color: var(--green);
}

.subscribe-status.error {
  color: var(--red);
}

.subscribe-status.success {
  color: var(--green);
}

.legal-page {
  background: var(--paper);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  line-height: 1.75;
}

.legal-content h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.legal-content h2 {
  margin-top: 42px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 68px;
  padding: 70px clamp(24px, 6vw, 92px) 110px;
}

.contact-copy h1 {
  max-width: 640px;
  margin: 14px 0;
  font-size: clamp(42px, 5vw, 72px);
}

.contact-copy p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
}

.contact-email a {
  color: var(--green);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-mail-button {
  justify-content: center;
}

.roadmap-page {
  width: min(1180px, calc(100% - 48px));
  margin: 40px auto 88px;
}

.roadmap-heading,
.roadmap-section-heading,
.roadmap-submit-section,
.community-toggle,
.roadmap-card-top,
.roadmap-card-footer,
.roadmap-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.roadmap-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.roadmap-heading h1,
.roadmap-section-heading h2,
.roadmap-submit-section h2 {
  margin: 7px 0 0;
  letter-spacing: -0.045em;
}

.roadmap-heading h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
}

.roadmap-heading p,
.roadmap-section-heading p,
.roadmap-submit-section > div > p,
.roadmap-description {
  color: var(--muted);
  line-height: 1.7;
}

.roadmap-heading p {
  max-width: 650px;
  margin: 18px 0 0;
}

.roadmap-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.roadmap-back::before {
  content: "←";
  font-size: 17px;
  line-height: 1;
  transition: transform 160ms ease;
}

.roadmap-back:hover {
  color: var(--green);
}

.roadmap-back:hover::before {
  transform: translateX(-3px);
}

.roadmap-notice {
  min-height: 24px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.roadmap-notice.success { color: var(--green-dark); }
.roadmap-notice.error { color: var(--red); }

.roadmap-section-heading {
  align-items: end;
  margin: 32px 0 16px;
}

.roadmap-section-heading h2,
.roadmap-submit-section h2 {
  font-size: clamp(27px, 3vw, 38px);
}

.roadmap-section-heading p {
  max-width: 300px;
  margin: 0;
  font-size: 14px;
  text-align: right;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roadmap-card,
.roadmap-submit-section,
.community-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.roadmap-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
}

.roadmap-card-top { align-items: flex-start; }

.roadmap-card h3 {
  max-width: 235px;
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.roadmap-description { margin: 12px 0 0; font-size: 14px; }

.vote-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.vote-button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.vote-button:disabled { cursor: default; opacity: 0.62; }

.roadmap-progress { margin-top: auto; padding-top: 24px; }

.roadmap-progress-meta { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.roadmap-progress-meta strong { color: var(--green-dark); }

.roadmap-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--green-pale);
}

.roadmap-progress-fill { height: 100%; border-radius: inherit; background: var(--green); }

.roadmap-card-footer { margin-top: 20px; color: var(--muted); font-size: 13px; }
.vote-count { margin-right: 5px; color: var(--ink); font-size: 18px; }

.roadmap-submit-section {
  align-items: flex-start;
  margin-top: 48px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--green-pale);
}

.roadmap-submit-section > div { flex: 1 1 42%; }
.roadmap-submit-section > div > p { max-width: 430px; }

.roadmap-form { display: grid; width: min(100%, 520px); gap: 14px; }

.roadmap-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.roadmap-form input,
.roadmap-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.roadmap-form textarea { resize: vertical; }
.roadmap-form input:focus,
.roadmap-form textarea:focus { border-color: var(--green); }

.community-section { margin-top: 24px; overflow: hidden; }

.community-toggle {
  width: 100%;
  border: 0;
  padding: 21px 24px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.community-toggle strong { display: block; margin-top: 3px; font-size: 18px; }
.community-toggle-label { color: var(--green-dark); font-size: 14px; font-weight: 700; }
.community-section .roadmap-grid { padding: 0 24px 24px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 6vw, 92px);
  background: #0f3527;
  color: rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 4%, rgba(126, 221, 165, 0.08), transparent 24rem),
    radial-gradient(circle at 78% 10%, rgba(125, 211, 199, 0.06), transparent 24rem),
    var(--paper);
}

:root[data-theme="dark"] .page-shell {
  background: linear-gradient(180deg, rgba(19, 32, 24, 0.64), rgba(11, 20, 16, 0.45));
}

:root[data-theme="dark"] .brand-mark {
  color: #08110d;
  background: var(--green);
}

:root[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 72% 30%, rgba(126, 221, 165, 0.1), transparent 28rem),
    linear-gradient(180deg, rgba(19, 32, 24, 0.18), transparent);
}

:root[data-theme="dark"] h1 {
  color: #ecf4ee;
  text-shadow: none;
}

:root[data-theme="dark"] h1 em {
  color: #8be0ad;
}

:root[data-theme="dark"] h1 em::after {
  height: 7px;
  background: rgba(184, 216, 106, 0.72);
  opacity: 0.72;
}

:root[data-theme="dark"] .hero-copy > p,
:root[data-theme="dark"] .date-secondary,
:root[data-theme="dark"] .school-meta,
:root[data-theme="dark"] .group-heading p {
  color: #9baaa0;
}

:root[data-theme="dark"] .hero-disclaimer {
  border-color: rgba(126, 221, 165, 0.18);
  background: rgba(19, 32, 24, 0.68);
  color: #9baaa0;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .hero-disclaimer strong {
  color: #8be0ad;
}

:root[data-theme="dark"] .trust-strip {
  border-color: rgba(128, 217, 166, 0.14);
  color: #9baaa0;
  background: rgba(15, 27, 20, 0.44);
}

:root[data-theme="dark"] .trust-strip div {
  border-right-color: rgba(128, 217, 166, 0.12);
}

:root[data-theme="dark"] .board-section,
:root[data-theme="dark"] .qa-section,
:root[data-theme="dark"] .legal-page {
  background: #0f1b14;
}

:root[data-theme="dark"] .methodology {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 20%, rgba(126, 221, 165, 0.08), transparent 18rem),
    #101b15;
  border-top: 1px solid rgba(128, 217, 166, 0.12);
  border-bottom: 1px solid rgba(128, 217, 166, 0.12);
}

:root[data-theme="dark"] .methodology .section-kicker,
:root[data-theme="dark"] .method-grid article > span {
  color: #8be0ad;
}

:root[data-theme="dark"] .method-grid article {
  padding: 20px;
  border: 1px solid rgba(128, 217, 166, 0.14);
  border-radius: 14px;
  background: rgba(19, 32, 24, 0.74);
}

:root[data-theme="dark"] .method-grid p {
  color: #9baaa0;
}

:root[data-theme="dark"] .qa-grid article {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

:root[data-theme="dark"] .qa-grid article:hover {
  border-color: rgba(126, 221, 165, 0.32);
  background: #16251c;
}

:root[data-theme="dark"] .subscribe-section {
  background:
    radial-gradient(circle at 12% 40%, rgba(126, 221, 165, 0.08), transparent 18rem),
    #101b15;
}

:root[data-theme="dark"] .github-link,
:root[data-theme="dark"] .header-control {
  border-color: rgba(128, 217, 166, 0.18);
  background: rgba(19, 32, 24, 0.72);
}

:root[data-theme="dark"] .subscribe-link,
:root[data-theme="dark"] .primary-button {
  color: #08110d !important;
  background: #7edda5;
  box-shadow: 0 14px 34px rgba(126, 221, 165, 0.14);
}

:root[data-theme="dark"] .subscribe-link:hover,
:root[data-theme="dark"] .primary-button:hover {
  background: #9be8bd;
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .demo-banner,
:root[data-theme="dark"] .coverage-panel,
:root[data-theme="dark"] .calendar-panel,
:root[data-theme="dark"] .toolbar-button.active,
:root[data-theme="dark"] .source-badge.homepage,
:root[data-theme="dark"] .empty-state {
  border-color: rgba(128, 217, 166, 0.16);
  background: rgba(19, 32, 24, 0.78);
}

:root[data-theme="dark"] .date-card,
:root[data-theme="dark"] .search-box,
:root[data-theme="dark"] .select-wrap,
:root[data-theme="dark"] .toolbar-button,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .calendar-cell,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .pagination-button {
  border-color: rgba(128, 217, 166, 0.16);
  background: #111d16;
}

:root[data-theme="dark"] .controls,
:root[data-theme="dark"] .toolbar {
  border: 1px solid rgba(128, 217, 166, 0.14);
  border-radius: 18px;
  background: rgba(19, 32, 24, 0.62);
}

:root[data-theme="dark"] .search-box:focus-within,
:root[data-theme="dark"] .select-wrap:focus-within,
:root[data-theme="dark"] .subscribe-row input:focus,
:root[data-theme="dark"] .contact-form input:focus,
:root[data-theme="dark"] .contact-form textarea:focus {
  border-color: rgba(126, 221, 165, 0.42);
  box-shadow: 0 0 0 3px rgba(126, 221, 165, 0.08);
  outline: none;
}

:root[data-theme="dark"] .coverage-metrics div {
  border-color: rgba(128, 217, 166, 0.18);
  background: #101b15;
}

:root[data-theme="dark"] .coverage-metrics strong,
:root[data-theme="dark"] .rank-cell {
  color: #91e5b5;
}

:root[data-theme="dark"] .toolbar-button:hover,
:root[data-theme="dark"] .toolbar-button.active,
:root[data-theme="dark"] .icon-button:hover,
:root[data-theme="dark"] .pagination-button:hover:not(:disabled) {
  border-color: rgba(126, 221, 165, 0.38);
  color: #a7f3c2;
  background: #17261d;
}

:root[data-theme="dark"] .status-tabs {
  border-bottom-color: rgba(128, 217, 166, 0.15);
}

:root[data-theme="dark"] .status-tab span {
  color: #b8c7bd;
  background: rgba(236, 244, 238, 0.08);
}

:root[data-theme="dark"] .status-tab.active span {
  color: #0d1511;
  background: #8be0ad;
}

:root[data-theme="dark"] .table-wrap {
  border-color: rgba(128, 217, 166, 0.16);
  border-radius: 16px;
  background: #111d16;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .application-table th {
  color: #9aa9a0;
  background: #15231b;
}

:root[data-theme="dark"] .application-table td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-top-color: rgba(128, 217, 166, 0.11);
}

:root[data-theme="dark"] .application-table tbody tr {
  background: #101b15;
}

:root[data-theme="dark"] thead,
:root[data-theme="dark"] th {
  background: #15231b;
}

:root[data-theme="dark"] tbody tr:hover {
  background: #16251c;
}

:root[data-theme="dark"] .source-badge.verified {
  color: #a7f3c2;
  background: rgba(49, 116, 75, 0.42);
}

:root[data-theme="dark"] .source-badge.discovered {
  color: #9fc9ee;
  background: #183246;
}

:root[data-theme="dark"] .source-badge.candidate {
  color: #f0c97a;
  background: rgba(91, 68, 28, 0.62);
}

:root[data-theme="dark"] .source-badge.predicted {
  color: #c7ace6;
  background: #302440;
}

:root[data-theme="dark"] .applicant-category,
:root[data-theme="dark"] .source-link {
  color: #7dd3c7;
}

:root[data-theme="dark"] .school-link:hover,
:root[data-theme="dark"] .source-link:hover {
  color: #9be8bf;
}

:root[data-theme="dark"] .deadline-soon {
  color: #f08a6b;
}

:root[data-theme="dark"] .date-primary {
  color: #f1f6f0;
}

:root[data-theme="dark"] .application-table td:nth-child(6) .date-primary {
  color: #e0a85a;
}

:root[data-theme="dark"] .application-group[data-status="predicted"] .table-wrap {
  border-color: #4a3a61;
}

:root[data-theme="dark"] .application-group[data-status="predicted"] tbody tr {
  background: #171622;
}

:root[data-theme="dark"] .calendar-event.open {
  color: #9be2bb;
  background: #183526;
}

:root[data-theme="dark"] .calendar-event.deadline {
  color: #f2aaa0;
  background: #3d241f;
}

:root[data-theme="dark"] .calendar-list-item,
:root[data-theme="dark"] .qa-grid article,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .subscribe-section,
:root[data-theme="dark"] .subscribe-form {
  border-color: rgba(128, 217, 166, 0.16);
  background: #132018;
}

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .subscribe-row input {
  border-color: rgba(128, 217, 166, 0.18);
  background: #0f1b14;
}

:root[data-theme="dark"] .date-card-main {
  border: 1px solid rgba(128, 217, 166, 0.14);
  background: #f2f0e7;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .mini-card-rank {
  color: #d8f5e0;
  border: 1px solid rgba(126, 221, 165, 0.22);
  background: #18281f;
}

:root[data-theme="dark"] .mini-card-open {
  color: #07100c;
  background: #7edda5;
}

:root[data-theme="dark"] .mini-card-open span {
  color: rgba(7, 16, 12, 0.68);
}

.footer-brand {
  color: var(--white);
}

footer p {
  margin: 0;
  font-size: 11px;
}

.footer-copy {
  display: grid;
  gap: 0.35rem;
}

.footer-legal {
  font-size: 0.82rem;
}

.footer-legal a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-disclaimer {
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .hero-actions,
  .eyebrow {
    justify-content: center;
  }

  .hero-visual {
    min-height: 470px;
  }

  .methodology {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .toolbar {
    grid-template-columns: minmax(220px, 1fr) repeat(3, 150px);
  }

  .coverage-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-nav {
    gap: 10px;
  }

  .header-nav a:not(.github-link, .subscribe-link, .calendar-nav) {
    display: none;
  }

  .github-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 420px;
    transform: scale(0.86);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
  }

  .trust-strip div:nth-child(2) {
    border-right: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-page-heading {
    align-items: start;
    flex-direction: column;
  }

  .calendar-page-toolbar,
  .calendar-list {
    grid-template-columns: 1fr;
  }

  .coverage-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .coverage-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-tabs {
    overflow-x: auto;
  }

  .status-tab {
    flex: 0 0 auto;
  }

  .calendar-panel {
    padding: 16px;
  }

  .calendar-panel-header {
    align-items: start;
    flex-direction: column;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 720px;
  }

  .calendar-panel {
    overflow-x: auto;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .qa-grid,
  .subscribe-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .roadmap-page {
    width: min(100% - 32px, 1180px);
    margin-top: 24px;
  }

  .roadmap-heading,
  .roadmap-section-heading,
  .roadmap-submit-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .roadmap-section-heading p { text-align: left; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-card { min-height: 0; }

  .header-nav a:not(.github-link, .subscribe-link, .calendar-nav, .roadmap-nav) {
    display: none;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .application-table {
    min-width: 0;
  }

  .application-table thead {
    display: none;
  }

  .application-table,
  .application-table tbody,
  .application-table tr,
  .application-table td {
    display: block;
    width: 100%;
  }

  .application-table tr {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
  }

  .application-table td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border-top: 1px solid #e7e9e5;
    font-size: 12px;
  }

  .application-table td:first-child {
    border-top: 0;
  }

  .application-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  .rank-cell {
    width: auto;
  }

  .subscribe-row {
    grid-template-columns: 1fr;
  }
}
