:root {
  --color-bg: #f7f7f8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-accent: #0a6e4d;
  --color-border: #dddddd;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.disclaimer {
  background: #fff3cd;
  color: #664d03;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.disclaimer a {
  color: inherit;
}

header {
  padding: 1.5rem 1rem 0.5rem;
  text-align: center;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

header p {
  margin: 0;
  color: var(--color-muted);
}

header nav {
  margin-top: 0.5rem;
}

header nav a {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-decoration: none;
}

header nav a:hover {
  text-decoration: underline;
}

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.content-page h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.content-page h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.35rem;
}

.content-page p {
  line-height: 1.6;
}

.content-page .stat {
  color: var(--color-accent);
  font-weight: 600;
}

.content-page .cta {
  display: inline-block;
  margin: 0.75rem 0;
  padding: 0.6rem 1.1rem;
  background: var(--color-accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.content-page th,
.content-page td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--color-border);
}

.pathway-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pathway-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pathway-card h2 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

#search-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

select,
button {
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

button#search-btn {
  background: var(--color-accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button#search-btn:disabled {
  background: #aaaaaa;
  cursor: not-allowed;
}

.ad-slot {
  margin: 1rem 0;
}

#status {
  margin: 1rem 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

#results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.school-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.school-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.school-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  background: #eef4f1;
  color: var(--color-accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
}

.combo {
  color: var(--color-muted);
  font-style: italic;
}

.combo-code {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  opacity: 0.75;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.pagination button {
  background: var(--color-surface);
  cursor: pointer;
}

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

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--color-muted);
  font-size: 0.8rem;
}

footer a {
  color: var(--color-accent);
}

.school-name-field {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.75rem;
}

.school-name-field input {
  width: 100%;
  font-size: 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.suggestions {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 100%;
  margin-top: 0.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0.25rem;
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.suggestions button:hover {
  background: var(--color-bg);
}

.suggestion-location {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.or-divider {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin: 0.75rem 0;
}

.school-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.school-link:hover {
  text-decoration-color: currentColor;
}

#detail-view {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1rem;
}

#back-to-search {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.9rem;
  padding: 0.5rem 0;
  cursor: pointer;
}

#detail-content {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#detail-content h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

#detail-content h2:first-child {
  margin-top: 0;
}

#detail-content h3 {
  font-size: 1rem;
  margin: 1rem 0 0.25rem;
  color: var(--color-accent);
}

.combo-list {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
}

.combo-list li {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}
