:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-strong: #eef6f7;
  --text: #102033;
  --muted: #5c6b7a;
  --line: #d9e2ea;
  --brand: #062a5e;
  --brand-strong: #031d42;
  --accent: #05b8c8;
  --accent-strong: #0096a7;
  --green: #2c8f6b;
  --amber: #b7791f;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.11);
  --shadow-soft: 0 18px 45px rgba(16, 32, 51, 0.11);
  --radius: 8px;
  --radius-lg: 18px;
  --shell: min(1180px, calc(100vw - 40px));
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111f;
  --surface: #101b2a;
  --surface-strong: #0c2633;
  --text: #edf6fb;
  --muted: #a7b5c2;
  --line: #23364b;
  --brand: #e9f3fb;
  --brand-strong: #ffffff;
  --accent: #16c6d4;
  --accent-strong: #52dce6;
  --green: #5ec69a;
  --amber: #f0b45f;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .main-nav a,
[data-theme="dark"] .ghost-action,
[data-theme="dark"] .quick-filters a,
[data-theme="dark"] .compare-actions a,
[data-theme="dark"] .card-actions a {
  color: var(--text);
}

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .ghost-action:hover,
[data-theme="dark"] .quick-filters a:hover,
[data-theme="dark"] .compare-actions a:hover,
[data-theme="dark"] .card-actions a:hover {
  color: var(--brand-strong);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 13px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 3px solid color-mix(in srgb, var(--bg) 90%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 44%, transparent);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--brand));
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 184, 200, 0.08), transparent 34rem),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 78px,
      rgba(92, 107, 122, 0.07) 79px,
      transparent 80px
    );
}

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

svg,
video,
iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.side-ad-rail {
  position: fixed;
  top: 108px;
  z-index: 4;
  display: none;
  width: 120px;
  height: min(600px, calc(100vh - 136px));
  pointer-events: none;
}

.side-ad-rail-left {
  left: calc((100vw - var(--shell)) / 4 - 60px);
}

.side-ad-rail-right {
  right: calc((100vw - var(--shell)) / 4 - 60px);
}

.side-ad-slot {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 420px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent), color-mix(in srgb, var(--surface-strong) 78%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(6, 34, 74, 0.12);
  text-align: center;
}

.side-ad-slot::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 14px;
}

.side-ad-slot span,
.side-ad-slot strong,
.side-ad-slot small {
  position: relative;
  z-index: 1;
}

.side-ad-slot span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-ad-slot strong {
  color: var(--brand-strong);
  font-size: 18px;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.side-ad-slot small {
  max-width: 9ch;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 14px;
}

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

.brand-wordmark {
  flex: 0 0 auto;
  width: 228px;
  max-width: 31vw;
  height: 58px;
  overflow: hidden;
}

.wordmark-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.wordmark-logo-dark {
  display: none;
}

[data-theme="dark"] .wordmark-logo-light {
  display: none;
}

[data-theme="dark"] .wordmark-logo-dark {
  display: block;
}

.brand-mark {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a,
.ghost-action,
.primary-action,
.quick-filters a,
.card-actions a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.ghost-action:hover,
.primary-action:hover,
.quick-filters a:hover,
.card-actions a:hover {
  background: var(--surface-strong);
  color: var(--brand-strong);
}

.nav-search {
  display: grid;
  flex: 1 1 300px;
  max-width: 360px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.nav-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.nav-search button {
  min-width: 56px;
  height: 40px;
  padding: 0 12px;
  cursor: pointer;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.nav-search button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.nav-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  font: inherit;
}

.logout-action {
  cursor: pointer;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(360px, 34vw);
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(6, 34, 74, 0.08);
}

.profile-chip img,
.profile-logo,
.answer-author img {
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.profile-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.primary-action {
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.primary-action:hover {
  color: #ffffff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

[data-theme="dark"] .primary-action,
[data-theme="dark"] .nav-search button,
[data-theme="dark"] .search-row button {
  color: #061423;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

[data-theme="dark"] .primary-action:hover,
[data-theme="dark"] .nav-search button:hover,
[data-theme="dark"] .search-row button:hover {
  color: #061423;
  background: var(--accent);
  border-color: var(--accent);
}

[data-theme="dark"] .ghost-action,
[data-theme="dark"] .quick-filters a,
[data-theme="dark"] .compare-actions a {
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border-color: var(--line);
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 18%, transparent);
}

[data-theme="dark"] .theme-toggle-icon {
  border-color: var(--accent-strong);
  background:
    radial-gradient(circle at 70% 32%, var(--surface) 0 7px, transparent 8px),
    var(--accent-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-stage {
  padding: 44px 0 28px;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: start;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--brand-strong);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--brand-strong);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--brand-strong);
  line-height: 1.2;
  letter-spacing: 0;
}

.stage-lede,
.section-copy,
.verification-panel p,
.workflow-item p,
.university-card p,
.topic-item p {
  color: var(--muted);
}

.stage-lede {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 18px;
}

.search-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 326px;
  margin-top: 24px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-row button {
  min-width: 96px;
  min-height: 52px;
  padding: 0 20px;
  cursor: pointer;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  font-weight: 800;
}

.search-row button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-filters a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border: 1px solid var(--line);
}

.metric-band {
  padding: 18px 0;
  background: transparent;
  border-block: 1px solid var(--line);
}

.compare-strip {
  padding: 22px 0;
  background: transparent;
  border-block: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.compare-grid h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-actions a {
  min-height: 38px;
  padding: 9px 14px;
  color: var(--brand-strong);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.compare-actions a:hover {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  min-height: 98px;
  padding: 18px;
  background: var(--surface);
}

.metric strong {
  display: block;
  color: var(--brand-strong);
  font-size: 28px;
  line-height: 1.05;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.directory-section,
.workbench-section,
.forum-section,
.verification-section {
  padding: 56px 0;
}

.section-layout {
  display: grid;
  gap: 28px;
}

.section-heading {
  max-width: 760px;
}

.directory-footnote {
  display: flex;
  justify-content: flex-end;
}

.directory-footnote a {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

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

.university-card {
  display: block;
  min-height: 214px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.university-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.1);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.university-card-featured {
  text-decoration: none;
  color: inherit;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-topline strong {
  color: var(--accent-strong);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.university-card-body {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  row-gap: 8px;
  min-height: 142px;
}

.university-card-logo {
  grid-row: 1 / span 2;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  padding: 8px;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-strong);
  font-size: 1.4rem;
  font-weight: 900;
}

.university-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.university-card-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  padding-top: 2px;
}

.university-card h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.08;
}

.university-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.university-card-rank {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.university-card-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.workbench-section {
  background: transparent;
  border-block: 1px solid var(--line);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 42px;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 126px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.workflow-item h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.workflow-item p {
  margin-bottom: 0;
}

.new-program-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.new-program-grid .stage-lede {
  margin-top: 18px;
  max-width: 900px;
}

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

.new-program-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  min-height: 118px;
  padding: 18px;
  background:
    radial-gradient(circle at 96% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
    color-mix(in srgb, var(--surface) 94%, var(--surface-strong));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 44, 92, 0.07);
}

.new-program-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.new-program-meta {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.new-program-item h3 {
  margin: 6px 0 6px;
  color: var(--text);
  font-size: 20px;
}

.new-program-item p {
  margin: 0;
  color: var(--muted);
}

[data-theme="dark"] .new-program-item {
  background:
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 38%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-strong) 84%, transparent));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .new-program-index {
  color: #061423;
  background: linear-gradient(135deg, var(--accent-strong), color-mix(in srgb, var(--accent) 72%, #ffffff));
}

.forum-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: start;
}

.topic-list {
  display: grid;
  gap: 10px;
}

.topic-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-item h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.topic-item p {
  margin-bottom: 0;
  font-size: 14px;
}

.topic-item > span {
  min-width: 82px;
  padding: 8px 10px;
  color: var(--accent-strong);
  background: var(--surface-strong);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.verification-section {
  padding-top: 14px;
}

.verification-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: stretch;
}

.verification-panel,
.profile-preview {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.verification-panel p {
  margin-bottom: 0;
  max-width: 760px;
}

.profile-preview {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: var(--accent-strong);
  border-radius: 8px;
  font-weight: 850;
}

.profile-preview strong,
.profile-preview span,
.profile-preview mark {
  display: block;
}

.auth-section {
  padding: 24px 0 56px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.message-stack {
  margin-top: 1rem;
}

.site-message {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(6, 34, 74, 0.08);
}

.site-message + .site-message {
  margin-top: 0.6rem;
}

.auth-page,
.forum-page {
  padding: 64px 0;
}

.auth-card,
.forum-detail,
.forum-page-grid {
  display: grid;
  gap: 28px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  align-items: start;
}

.auth-card-narrow,
.forum-detail {
  max-width: 860px;
}

.auth-card-narrow {
  grid-template-columns: 1fr;
}

.auth-card-narrow h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.signup-card {
  max-width: 720px;
  gap: 20px;
  padding: 24px;
}

.signup-card h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(1.85rem, 3.3vw, 3.05rem);
  line-height: 1.02;
}

.signup-card .section-copy {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.signup-card .auth-form {
  gap: 12px;
}

.signup-card .auth-form input,
.signup-card .auth-form textarea {
  padding: 10px 12px;
  border-radius: 10px;
}

.signup-card .primary-action {
  min-height: 44px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.auth-form .form-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 650;
}

.auth-form label small,
.auth-form .form-field small {
  color: var(--accent-strong);
  font-size: 0.78em;
}

.auth-form label em,
.auth-form .form-field em {
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 650;
}

.select-shell {
  position: relative;
}

.select-shell select {
  min-height: 58px;
  padding-right: 52px;
  cursor: pointer;
  appearance: none;
  background:
    linear-gradient(135deg, rgba(45, 222, 232, 0.13), transparent 38%),
    var(--surface-strong);
}

.select-shell::before {
  position: absolute;
  inset: 9px 9px auto auto;
  z-index: 1;
  width: 40px;
  height: 40px;
  pointer-events: none;
  content: "";
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 2;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: translateY(-68%) rotate(45deg);
}

.native-university-select {
  display: none;
}

.university-combobox {
  position: relative;
  z-index: 4;
}

.university-combobox-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 56px 12px 15px;
  cursor: pointer;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    var(--surface-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 36%, transparent);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.university-combobox-trigger:hover,
.university-combobox-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 38%, transparent),
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.university-combobox-trigger::before {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  content: "";
  background: color-mix(in srgb, var(--accent) 24%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 12px;
}

.university-combobox-trigger .select-chevron {
  right: 23px;
}

[data-theme="dark"] .university-combobox-trigger {
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    color-mix(in srgb, var(--surface-strong) 80%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent);
}

[data-theme="dark"] .university-combobox-trigger:hover,
[data-theme="dark"] .university-combobox-trigger[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 12%, transparent),
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.university-combobox-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 10px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 12%, transparent), transparent 36%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(6, 34, 74, 0.18);
}

.university-combobox-panel[hidden] {
  display: none;
}

.university-combobox-search {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-weight: 750;
}

.university-combobox-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.university-combobox-list {
  display: grid;
  max-height: 286px;
  overflow: auto;
  padding-right: 4px;
  gap: 4px;
}

.university-combobox-list,
.city-combobox-panel {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.university-combobox-list::-webkit-scrollbar,
.city-combobox-panel::-webkit-scrollbar {
  width: 12px;
}

.university-combobox-list::-webkit-scrollbar-track,
.city-combobox-panel::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 999px;
}

.university-combobox-list::-webkit-scrollbar-thumb,
.city-combobox-panel::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 3px solid color-mix(in srgb, var(--surface) 82%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

.university-combobox-list::-webkit-scrollbar-thumb:hover,
.city-combobox-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--brand));
}

.university-combobox-option {
  width: 100%;
  padding: 11px 14px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  transition:
    color 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.university-combobox-option:hover,
.university-combobox-option.is-selected {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.university-combobox-empty {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-strong);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-weight: 700;
}

.auth-form .errorlist {
  margin: 0;
  padding-left: 1.1rem;
  color: #b42318;
  font-size: 13px;
}

.school-fields {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.school-fields[hidden] {
  display: none;
}

.auth-note {
  margin: 0;
  color: var(--muted);
}

.profile-hero,
.answer-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-panel,
.question-card,
.answer-card {
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.forum-topic-context {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 850;
}

.profile-panel strong,
.profile-panel span {
  display: block;
}

.forum-page-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.forum-page-stack {
  max-width: 960px;
  grid-template-columns: 1fr;
}

.forum-page-head {
  display: grid;
  gap: 16px;
  align-content: start;
}

.forum-page-head .primary-action {
  width: fit-content;
}

.forum-topic-list {
  max-height: none;
}

.forum-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.forum-category-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--brand-strong);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 34, 74, 0.06);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.forum-category-pills a:hover {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 12px 24px rgba(6, 34, 74, 0.1);
  transform: translateY(-1px);
}

.forum-category-pills .is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 78%, var(--accent)));
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(6, 42, 94, 0.2);
}

[data-theme="dark"] .forum-category-pills a {
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: none;
}

[data-theme="dark"] .forum-category-pills a:hover {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

[data-theme="dark"] .forum-category-pills .is-active {
  color: #061423;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: var(--accent-strong);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 20%, transparent);
}

.forum-topic-list-pro {
  display: grid;
  gap: 14px;
}

.forum-topic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 96% 12%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
    var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(6, 34, 74, 0.08);
}

.forum-topic-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 18px 44px rgba(6, 34, 74, 0.12);
}

.forum-topic-main {
  min-width: 0;
}

.forum-topic-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.forum-topic-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.forum-topic-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.forum-topic-card h3 a:hover {
  color: var(--accent-strong);
}

.forum-topic-card p {
  margin: 0;
  color: var(--muted);
}

.forum-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 8px;
}

.forum-pagination a,
.forum-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.forum-pagination a:hover {
  color: var(--brand-strong);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}

.forum-pagination .is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #07377e, #0a4fa7);
  border-color: #0a4fa7;
}

.forum-topic-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.forum-topic-metrics form {
  margin: 0;
}

.metric-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

button.metric-chip {
  cursor: pointer;
}

.metric-chip span {
  color: var(--accent-strong);
  font-size: 1rem;
}

.metric-chip svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-strong);
}

.like-chip.is-liked {
  color: #d92d20;
  background: color-mix(in srgb, #d92d20 10%, var(--surface));
  border-color: color-mix(in srgb, #d92d20 34%, var(--line));
}

.like-chip.is-liked span {
  color: #d92d20;
}

.forum-detail-metrics {
  justify-content: flex-start;
  margin: 8px 0 18px;
}

.forum-compose-card {
  max-width: 760px;
}

.topic-item a {
  color: inherit;
  text-decoration: none;
}

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

.answer-card p {
  margin: 12px 0 0;
}

.answer-form {
  padding-top: 6px;
}

.auth-grid h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.auth-actions {
  display: flex;
  gap: 10px;
}

.catalog-hero {
  padding: 54px 0 26px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 546px);
  gap: 28px;
  align-items: end;
}

.catalog-search {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalog-search-row {
  grid-template-columns: minmax(290px, 1.3fr) auto auto;
}

.catalog-filter {
  display: contents;
}

.catalog-filter-toggle {
  display: inline-flex;
  min-width: 144px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  cursor: pointer;
  color: var(--brand-strong);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(6, 34, 74, 0.06);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.catalog-filter-toggle:hover,
.catalog-filter-toggle[aria-expanded="true"] {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 12px 24px rgba(6, 34, 74, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] .catalog-filter-toggle {
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: none;
}

[data-theme="dark"] .catalog-filter-toggle:hover,
[data-theme="dark"] .catalog-filter-toggle[aria-expanded="true"] {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

.filter-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: translateY(-2px) rotate(45deg);
}

.catalog-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 18px;
  right: 18px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.75fr);
  width: auto;
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 13%, transparent), transparent 38%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(6, 34, 74, 0.2);
}

.catalog-filter-panel[hidden] {
  display: none;
}

.catalog-filter-group {
  display: grid;
  gap: 9px;
}

.catalog-filter-city {
  grid-template-rows: auto 1fr;
}

.catalog-filter-group strong {
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.catalog-filter-group label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 800;
}

.catalog-filter-group label:hover {
  border-color: var(--accent);
}

.catalog-filter-group input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.city-combobox {
  position: relative;
  height: 100%;
  min-height: 100%;
}

.city-combobox-trigger {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  color: var(--brand-strong);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  text-align: left;
  box-shadow: 0 8px 20px rgba(6, 34, 74, 0.06);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.city-combobox-trigger:hover,
.city-combobox-trigger[aria-expanded="true"] {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 12px 24px rgba(6, 34, 74, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] .city-combobox-trigger {
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 88%, transparent), color-mix(in srgb, var(--surface) 72%, transparent));
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
  box-shadow: none;
}

[data-theme="dark"] .city-combobox-trigger:hover,
[data-theme="dark"] .city-combobox-trigger[aria-expanded="true"] {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

.city-combobox-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  padding: 10px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 13%, transparent), transparent 36%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(6, 34, 74, 0.22);
}

.city-combobox-panel[hidden] {
  display: none;
}

.city-combobox-search {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.city-combobox-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.city-combobox-list {
  display: grid;
  max-height: 238px;
  overflow: auto;
  padding-right: 4px;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.city-combobox-list::-webkit-scrollbar {
  width: 12px;
}

.city-combobox-list::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 999px;
}

.city-combobox-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 3px solid color-mix(in srgb, var(--surface) 82%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 40%, transparent);
}

.city-combobox-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-strong), var(--brand));
}

.city-combobox-empty {
  margin: 4px 0 0;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface-strong);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.city-combobox-empty[hidden] {
  display: none;
}

.city-combobox-option {
  width: 100%;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.city-combobox-option:hover,
.city-combobox-option.is-selected {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.catalog-section {
  padding: 22px 0 56px;
}

.catalog-layout {
  display: grid;
  gap: 18px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-toolbar a {
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.catalog-grid-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  display: grid;
  gap: 16px;
  min-height: 182px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.1);
}

.catalog-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-card-city {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.catalog-card-main {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
}

.catalog-card-main-wide {
  grid-template-columns: 84px minmax(0, 1fr);
}

.catalog-card-logo {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  justify-self: center;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.catalog-card-logo-wide {
  width: 84px;
  height: 50px;
  padding: 6px;
  border-radius: 8px;
}

.catalog-card-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.catalog-card-logo-cover {
  overflow: hidden;
}

.catalog-card-logo-cover .catalog-card-logo-image {
  object-fit: cover;
}

.catalog-card-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 4px;
}

.catalog-card strong {
  color: var(--brand-strong);
  font-size: 18px;
  line-height: 1.15;
}

.catalog-card-type {
  color: var(--muted);
  font-size: 14px;
}

.catalog-card-rank {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.catalog-empty {
  padding: 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.departments-hero .catalog-grid {
  align-items: stretch;
}

.departments-section {
  padding-top: 18px;
}

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

.department-level-card {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 86%, transparent), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.department-level-card::after {
  position: absolute;
  right: -48px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  content: "";
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
}

.department-level-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 26px 56px rgba(6, 34, 74, 0.16);
}

.department-level-index {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 16px;
  font-weight: 900;
}

.department-level-card strong {
  color: var(--brand-strong);
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.department-level-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.department-level-card > span:last-child,
.department-program-card span {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 850;
}

.department-search-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.department-program-card {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  color: var(--text);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.department-program-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  box-shadow: 0 18px 34px rgba(16, 32, 51, 0.1);
}

.department-program-card strong {
  color: var(--brand-strong);
  font-size: 1.08rem;
  line-height: 1.18;
}

.department-back-link {
  align-self: end;
  justify-self: end;
  width: fit-content;
}

.detail-hero {
  padding: 54px 0 28px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 380px);
  gap: 28px;
  align-items: start;
}

.detail-intro {
  display: grid;
  gap: 18px;
}

.detail-breadcrumb {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-logo {
  width: 150px;
  height: 150px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-logo-cover {
  overflow: hidden;
}

.detail-logo-cover img {
  object-fit: cover;
}

.detail-logo-wide {
  width: 260px;
  height: 116px;
  padding: 12px 18px;
  border-radius: 12px;
}

.detail-brand {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.detail-brand-wide {
  grid-template-columns: 260px minmax(0, 1fr);
}

.detail-logo span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--brand-strong);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.detail-brand-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(58px, 6.4vw, 92px);
  line-height: 1.04;
}

.detail-brand-copy .stage-lede {
  max-width: 820px;
  font-size: 19px;
  line-height: 1.55;
}

.detail-summary-card,
.info-card,
.rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-summary-card {
  margin-top: 28px;
  padding: 22px;
}

.detail-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-summary-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-summary-header strong {
  color: var(--brand-strong);
  font-size: 13px;
  text-align: right;
}

.detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-kpi-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-kpi {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.detail-kpi strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-strong);
  font-size: 18px;
  line-height: 1.1;
}

.detail-summary-links,
.link-cloud,
.source-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-summary-links,
.source-list {
  margin-top: 16px;
}

.detail-summary-links a,
.link-cloud a,
.source-list a,
.pill-list a,
.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.detail-section {
  padding: 34px 0;
}

.detail-section-strong {
  background: transparent;
  border-block: 1px solid var(--line);
}

.detail-section-grid {
  display: grid;
  gap: 22px;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.detail-info-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-info-grid-single {
  grid-template-columns: 1fr;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.contact-grid {
  align-items: stretch;
}

.contact-grid > .info-card {
  min-height: 0;
}

.info-card {
  padding: 20px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
  height: 100%;
}

.map-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
}

.map-card h3 {
  margin-bottom: 14px;
}

.map-frame {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--surface-strong);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  pointer-events: auto;
}

.detail-section-strong .info-card {
  background: var(--bg);
}

.forum-cta-wide-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 190px;
  background:
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 74%, transparent), var(--bg));
}

.forum-cta-wide-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.forum-cta-wide-card .section-copy {
  max-width: 880px;
  margin-bottom: 0;
}

.forum-cta-wide-card .primary-action {
  min-width: 170px;
  justify-content: center;
}

.info-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.university-visual-card {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.university-visual-frame {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, #ffffff 62%, transparent), transparent 28%),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--surface-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 14px;
}

.university-visual-frame::before {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 12px;
}

.university-visual-frame span,
.university-visual-frame strong {
  position: relative;
  z-index: 1;
  text-align: center;
}

.university-visual-frame span,
.university-visual-frame strong {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.university-visual-frame strong {
  max-width: 28ch;
  line-height: 1.15;
}

.info-card .subsection-title {
  margin-top: 28px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  color: var(--brand-strong);
  text-align: right;
}

.info-bullets {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 26px;
  color: var(--muted);
  list-style-position: outside;
}

.info-bullets li {
  margin: 0;
  padding-left: 2px;
}

.partner-name {
  color: var(--muted);
  font-weight: 450;
}

.partner-rank {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 9px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 450;
  white-space: nowrap;
}

.department-grid,
.ranking-grid,
.source-grid {
  display: grid;
  gap: 14px;
}

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

.mini-card {
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-strong);
  font-size: 15px;
}

.mini-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.callout-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
}

.callout-box strong {
  color: var(--brand-strong);
}

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

.rank-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.rank-card span {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.rank-card strong {
  color: var(--brand-strong);
  font-size: 28px;
  line-height: 1;
}

.rank-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-card a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

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

.source-grid a {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  font-weight: 700;
}

.program-directory-card {
  display: grid;
  gap: 26px;
}

.program-directory-title {
  max-width: 980px;
}

.program-directory-title span {
  display: block;
}

.program-group {
  display: grid;
  gap: 14px;
}

.program-group + .program-group {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.program-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.program-group-header h3 {
  margin-bottom: 0;
}

.program-group-header span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.program-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.program-link-grid a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.program-link-grid a:hover {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.club-text-list {
  columns: 2;
  column-gap: 44px;
  max-height: 505px;
  overflow: hidden;
  margin: 0;
  padding-left: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  list-style-position: outside;
}

.club-text-list li {
  break-inside: avoid;
  margin: 0 0 8px;
  padding-left: 2px;
}

.club-card {
  overflow: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 28px;
  align-items: start;
}

.detail-panel {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: var(--muted);
}

.detail-row strong {
  color: var(--brand-strong);
  text-align: right;
}

.profile-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.profile-preview mark {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 7px 10px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 36%, transparent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.mobile-bottom-ads {
  display: none;
}

.mobile-bottom-ad-grid {
  display: grid;
  gap: 14px;
}

.mobile-bottom-ad-card {
  position: relative;
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-strong) 82%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(6, 34, 74, 0.1);
}

.mobile-bottom-ad-card::before {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 14px;
}

.mobile-bottom-ad-card span,
.mobile-bottom-ad-card strong,
.mobile-bottom-ad-card small {
  position: relative;
  z-index: 1;
}

.mobile-bottom-ad-card span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-bottom-ad-card strong {
  color: var(--brand-strong);
  font-size: 1.45rem;
  line-height: 1;
}

.mobile-bottom-ad-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, auto) 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  gap: 10px;
  justify-self: start;
  width: 228px;
  height: 58px;
}

.footer-brand .wordmark-logo {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  justify-self: end;
  justify-content: flex-end;
  margin-left: 0;
  white-space: nowrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--brand-strong);
  background: var(--surface-strong);
  border-color: var(--line);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-socials a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--surface-strong) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.footer-socials a:hover {
  color: #061423;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-legal-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.footer-legal-link:hover {
  color: var(--brand-strong);
  background: var(--surface-strong);
  border-color: var(--line);
  transform: translateY(-1px);
}

.legal-page {
  padding: clamp(44px, 7vw, 88px) 0;
}

.legal-shell {
  max-width: 1080px;
}

.legal-card {
  padding: clamp(24px, 4vw, 42px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.legal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-strong));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.legal-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.legal-heading h1 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.legal-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-back {
  justify-self: end;
  padding: 12px 18px;
  color: var(--brand-strong);
  font-weight: 850;
  text-decoration: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.legal-back:hover {
  color: #fff;
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.legal-content {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--brand-strong);
  font-size: 1.15rem;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 1320px) {
  .nav-search {
    display: none;
  }
}

@media (min-width: 1480px) {
  .side-ad-rail {
    display: block;
  }

  .side-ad-slot strong::before {
    content: "120 × 600";
  }

  .side-ad-slot strong {
    font-size: 0;
  }

  .side-ad-slot strong::before {
    font-size: 18px;
  }
}

@media (min-width: 1560px) {
  .side-ad-rail {
    width: 160px;
  }

  .side-ad-rail-left {
    left: calc((100vw - var(--shell)) / 4 - 80px);
  }

  .side-ad-rail-right {
    right: calc((100vw - var(--shell)) / 4 - 80px);
  }

  .side-ad-slot strong::before {
    content: "160 × 600";
  }
}

@media print {
  .side-ad-rail {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .nav-actions > a.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    position: sticky;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 10px 14px;
    padding-block: 10px;
  }

  .brand-wordmark {
    grid-area: brand;
  }

  .brand-wordmark {
    max-width: 42vw;
  }

  .main-nav {
    grid-area: nav;
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    border: 1px solid var(--line);
    white-space: nowrap;
  }

  .nav-actions {
    grid-area: actions;
    justify-self: end;
    align-self: start;
  }

  .stage-grid,
  .workbench-grid,
  .new-program-grid,
  .forum-grid,
  .forum-cta-wide-card,
  .verification-grid,
  .compare-grid,
  .auth-grid,
  .detail-layout,
  .detail-hero-grid,
  .catalog-grid,
  .detail-info-grid,
  .detail-info-grid-2 {
    grid-template-columns: 1fr;
  }

  .catalog-search-row,
  .department-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .catalog-filter-panel {
    grid-template-columns: 1fr;
  }

  .city-combobox-trigger {
    min-height: 60px;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .forum-detail,
  .forum-page-grid {
    padding: 24px;
  }

  .detail-brand-wide,
  .detail-brand {
    grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
    gap: 18px;
  }

  .detail-logo {
    width: 118px;
    height: 118px;
  }

  .detail-logo-wide {
    width: 190px;
    height: 88px;
  }

  .map-frame {
    min-height: 280px;
  }

  .university-grid,
  .metric-grid,
  .new-program-list,
  .catalog-grid-list,
  .department-level-grid,
  .department-program-grid,
  .ranking-grid,
  .source-grid,
  .department-grid {
    grid-template-columns: 1fr;
  }

  .program-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-search {
    max-width: 280px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  :root {
    --shell: min(100vw - 64px, 1180px);
  }

  .site-header {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
  }

  .nav-shell {
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 12px 18px;
    padding-block: 12px;
  }

  .brand-wordmark {
    width: 250px;
    max-width: 36vw;
    height: 60px;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .main-nav a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    text-align: center;
  }

  .nav-actions {
    display: flex;
    max-width: 100%;
    justify-self: end;
  }

  .profile-chip {
    max-width: min(310px, 46vw);
  }

  .logout-action {
    display: inline-flex;
  }

  .search-stage {
    padding: 40px 0 28px;
  }

  .stage-grid {
    gap: 28px;
  }

  .stage-copy {
    max-width: 720px;
  }

  h1 {
    font-size: clamp(48px, 7vw, 64px);
  }

  .search-panel {
    min-height: 0;
    padding: 20px;
  }

  .quick-filters {
    gap: 10px;
  }

  .quick-filters a {
    min-height: 40px;
    padding: 9px 13px;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .metric-grid,
  .university-grid,
  .new-program-list,
  .catalog-grid-list,
  .department-level-grid,
  .department-program-grid,
  .ranking-grid,
  .source-grid,
  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-card-main,
  .catalog-card-main-wide {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .detail-info-grid,
  .detail-info-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "socials";
    justify-items: center;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
      color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(6, 34, 74, 0.1);
  }

  .site-footer {
    padding: 18px 0 24px;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }

  .footer-brand {
    grid-area: brand;
    justify-self: center;
    width: min(260px, 72vw);
    height: 62px;
  }

  .footer-links {
    grid-area: links;
    display: grid;
    width: min(520px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-self: center;
    justify-content: stretch;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
  }

  .footer-socials {
    grid-area: socials;
    justify-self: center;
    transform: none;
  }

  .footer-socials a {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  }

  .mobile-bottom-ads {
    display: block;
    padding: 26px 0 0;
  }

  .mobile-bottom-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .mobile-bottom-ads {
    display: block;
    padding: 26px 0 0;
  }

  .mobile-bottom-ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    padding: 18px 0 24px;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }

  .footer-grid {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "bar";
    justify-items: center;
    gap: 18px;
    padding: 24px;
    overflow: hidden;
    background:
      radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
      color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(6, 34, 74, 0.1);
  }

  .footer-brand {
    grid-area: brand;
    justify-self: center;
    width: min(260px, 72vw);
    height: 62px;
  }

  .footer-links {
    grid-area: links;
    display: grid;
    width: min(520px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-self: center;
    justify-content: stretch;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
  }

  .footer-bar {
    grid-area: bar;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-socials {
    justify-self: center;
  }

  .footer-socials a {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  }
}

@media (max-width: 760px) {
  h1,
  .detail-brand-copy h1 {
    overflow-wrap: anywhere;
  }

  .compare-grid,
  .forum-cta-wide-card,
  .detail-summary-header,
  .catalog-card-main,
  .catalog-card-main-wide,
  .detail-brand,
  .detail-brand-wide,
  .school-fields {
    grid-template-columns: 1fr;
  }

  .compare-actions,
  .auth-actions,
  .detail-summary-links,
  .link-cloud,
  .source-list,
  .pill-list,
  .forum-category-pills {
    align-items: stretch;
  }

  .compare-actions a,
  .auth-actions a,
  .auth-actions button,
  .detail-summary-links a,
  .link-cloud a,
  .source-list a,
  .pill-list a,
  .pill-list span,
  .forum-category-pills a {
    justify-content: center;
    text-align: center;
  }

  .detail-logo,
  .detail-logo-wide,
  .catalog-card-logo,
  .catalog-card-logo-wide {
    justify-self: start;
  }

  .detail-kpi-grid,
  .detail-kpi-grid-compact,
  .ranking-grid,
  .source-grid,
  .department-grid,
  .detail-info-grid,
  .detail-info-grid-2 {
    grid-template-columns: 1fr;
  }

  .info-list li {
    display: grid;
    gap: 4px;
  }

  .info-list strong {
    text-align: left;
  }

  .partner-rank {
    display: table;
    margin: 6px 0 0;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }

  .site-header {
    background: color-mix(in srgb, var(--bg) 94%, transparent);
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    min-height: 0;
    gap: 10px 8px;
    padding-block: 12px;
  }

  .brand-wordmark {
    width: clamp(132px, 38vw, 196px);
    max-width: 100%;
    height: 48px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-area: nav;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
  }

  .main-nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
  }

  .nav-actions {
    grid-area: actions;
    display: flex;
    width: auto;
    align-items: center;
    justify-self: end;
    align-self: start;
    justify-content: flex-end;
    gap: 6px;
  }

  .brand-copy span {
    display: none;
  }

  .nav-actions .ghost-action {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .nav-actions > a.primary-action {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .profile-chip {
    max-width: 132px;
    min-width: 0;
    height: 42px;
    padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  }

  .profile-chip img {
    width: 32px;
    height: 32px;
  }

  .profile-chip span {
    max-width: none;
    min-width: 0;
    font-size: 13px;
  }

  .logout-form {
    display: block;
  }

  .logout-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .university-visual-card {
    min-height: 132px;
  }

  .university-visual-frame {
    min-height: 84px;
    padding: 18px;
  }

  .university-visual-frame::before {
    inset: 10px;
  }

  .search-stage {
    padding-top: 28px;
  }

  h1 {
    font-size: 36px;
  }

  .stage-lede {
    font-size: 16px;
  }

  .search-panel {
    margin-top: 16px;
    padding: 18px;
  }

  .search-row,
  .catalog-search-row,
  .department-search-row,
  .topic-item,
  .profile-preview {
    grid-template-columns: 1fr;
  }

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

  .catalog-filter-toggle,
  .catalog-filter-panel {
    width: 100%;
  }

  .catalog-filter-panel {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 10px;
    max-height: min(70vh, 620px);
    overflow: auto;
  }

  .city-combobox-trigger {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .search-row button {
    width: 100%;
  }

  .metric-grid,
  .directory-section,
  .workbench-section,
  .forum-section,
  .verification-section,
  .auth-section,
  .catalog-hero,
  .catalog-section,
  .detail-hero,
  .detail-section {
    padding: 48px 0;
  }

  .stage-grid,
  .catalog-grid,
  .detail-hero-grid,
  .forum-page-grid,
  .forum-detail,
  .auth-card {
    gap: 18px;
  }

  .auth-card,
  .forum-detail,
  .forum-page-grid,
  .catalog-search,
  .detail-summary-card,
  .info-card,
  .forum-topic-card,
  .question-card,
  .answer-card {
    padding: 16px;
  }

  .catalog-card {
    min-height: 0;
  }

  .forum-topic-metrics,
  .forum-detail-metrics {
    width: 100%;
  }

  .metric-chip {
    flex: 1 1 auto;
    justify-content: center;
  }

  .program-link-grid {
    grid-template-columns: 1fr;
  }

  .club-text-list {
    columns: 1;
  }

  .detail-brand {
    grid-template-columns: 1fr;
  }

  .detail-brand-wide {
    grid-template-columns: 1fr;
  }

  .detail-summary-header {
    flex-direction: column;
  }

  .detail-kpi-grid,
  .detail-kpi-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-item,
  .new-program-item,
  .forum-topic-card {
    grid-template-columns: 1fr;
  }

  .forum-topic-metrics {
    justify-content: flex-start;
  }

  .topic-item > span {
    width: fit-content;
  }

  .footer-grid {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "links"
      "bar";
    align-items: center;
    justify-items: center;
    gap: 18px;
    padding: 22px 18px;
    overflow: hidden;
    background:
      radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
      color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(6, 34, 74, 0.1);
  }

  .footer-grid::before {
    display: none;
  }

  .site-footer {
    padding: 14px 0 20px;
    background: transparent;
    border-top: 0;
    backdrop-filter: none;
  }

  .footer-brand {
    grid-area: brand;
    justify-self: center;
    width: min(230px, 78vw);
    height: 54px;
  }

  .footer-brand .wordmark-logo {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .footer-links {
    grid-area: links;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: stretch;
    justify-content: stretch;
    gap: 8px;
  }

  .footer-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
  }

  .footer-bar {
    grid-area: bar;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-socials {
    justify-self: center;
  }

  .footer-socials a {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
  }

  .mobile-bottom-ad-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-ad-card {
    min-height: 138px;
  }
}

@media (max-width: 640px) {
  .footer-bar {
    display: grid;
    width: 100%;
    gap: 14px;
    justify-items: center;
  }

  .footer-legal-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: center;
  }

  .footer-legal-link {
    width: 100%;
    padding: 11px 8px;
    background: color-mix(in srgb, var(--surface-strong) 76%, transparent);
    border: 1px solid var(--line);
    text-align: center;
  }

  .footer-legal-links .footer-legal-link:last-child {
    grid-column: 1 / -1;
  }

  .footer-socials {
    justify-self: center;
  }

  .legal-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .legal-icon {
    width: 56px;
    height: 56px;
  }

  .legal-back {
    justify-self: start;
  }

  .legal-card {
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --shell: min(100vw - 18px, 1180px);
  }

  body {
    font-size: 15px;
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .brand-wordmark {
    width: clamp(116px, 34vw, 150px);
    max-width: 100%;
    height: 44px;
  }

  .profile-chip {
    max-width: 42px;
    padding-right: 0.45rem;
  }

  .profile-chip span {
    display: none;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    min-height: 38px;
    font-size: 12px;
  }

  .nav-actions {
    display: flex;
    gap: 5px;
  }

  .theme-toggle,
  .logout-action {
    min-height: 40px;
    height: 40px;
  }

  .logout-action {
    padding-inline: 10px;
    font-size: 13px;
  }

  .nav-actions .ghost-action {
    min-height: 40px;
    padding-inline: 9px;
  }

  .nav-actions > a.primary-action {
    min-height: 40px;
    padding-inline: 9px;
  }

  .search-stage,
  .catalog-hero,
  .detail-hero,
  .auth-page,
  .forum-page {
    padding-top: 32px;
  }

  h1,
  .auth-card-narrow h1,
  .detail-brand-copy h1 {
    font-size: clamp(2rem, 12vw, 2.75rem);
    line-height: 1.04;
  }

  .search-panel,
  .catalog-search,
  .auth-card,
  .forum-page-grid,
  .forum-detail {
    border-radius: 14px;
  }

  .quick-filters,
  .forum-category-pills,
  .compare-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick-filters a,
  .forum-category-pills a,
  .compare-actions a {
    justify-content: center;
  }

  .metric-grid,
  .new-program-list,
  .university-grid,
  .catalog-grid-list,
  .department-level-grid,
  .department-program-grid {
    gap: 10px;
  }

  .detail-kpi-grid,
  .detail-kpi-grid-compact {
    grid-template-columns: 1fr;
  }

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

  .map-frame {
    min-height: 240px;
  }

  .footer-brand {
    width: 190px;
  }
}

@media (min-width: 1680px) {
  :root {
    --shell: min(1360px, calc(100vw - 96px));
  }

  .catalog-grid-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==============================
   İletişim Sayfası
   ============================== */

.contact-page {
  padding: 40px 0 60px;
}

.contact-layout {
  display: grid;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-intro {
  display: grid;
  gap: 12px;
  text-align: center;
}

.contact-intro h1 {
  font-size: 2.6rem;
  line-height: 1.08;
  margin: 0;
}

.contact-intro .section-copy {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-card {
  display: grid;
  gap: 28px;
  padding: 36px 40px;
  background:
    radial-gradient(circle at 26% 4%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    linear-gradient(135deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label > span {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--brand-strong);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.contact-form select {
  cursor: pointer;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
}

.contact-alt {
  display: grid;
  gap: 8px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-alt p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-alt a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

.contact-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-radius: 14px;
  color: var(--green);
}

.contact-success svg {
  flex-shrink: 0;
}

.contact-success div {
  display: grid;
  gap: 2px;
}

.contact-success strong {
  font-size: 1rem;
  color: var(--text);
}

.contact-success span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==============================
   İletişim – Mobil
   ============================== */

@media (max-width: 760px) {
  .contact-page {
    padding: 28px 0 40px;
  }

  .contact-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .contact-intro h1 {
    font-size: 2rem;
  }

  .contact-intro .section-copy {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 11px 12px;
    font-size: 16px;
  }

  .contact-submit {
    min-height: 46px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-page {
    padding: 20px 0 32px;
  }

  .contact-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .contact-intro h1 {
    font-size: 1.65rem;
  }

  .contact-form {
    gap: 16px;
  }

  .contact-success {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
}
