/* Screen-only presentation. Admissions data and PDF print styles are independent. */
:root {
  --blue: #2459b8;
  --ink: #152e50;
  --muted: #53657b;
  --line: #dbe3eb;
  --bg: #f5f7fa;
  --sky: #edf3fc;
  --focus: #a64b08;
  --urgent: #9f1d25;
  --urgent-dark: #76151b;
  --urgent-surface: #fff5f5;
  --urgent-line: #efc5c8;
}

body { line-height: 1.55; }
button, input, select, textarea { font-family: inherit; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 3px;
}
:is(.requirement-control, .eju-track-control) input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  position: relative;
  z-index: 2;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
#mainContent { scroll-margin-top: 90px; }
.topbar { box-shadow: 0 2px 12px rgb(21 46 80 / 4%); }
.brand-mark { border-radius: 12px; background: var(--ink); border-color: var(--ink); color: #fff; }
.nav-link { font-size: 14px; font-weight: 600; }
.guest-account-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.guest-account-actions .register-link { background: var(--ink); border-color: var(--ink); color: #fff; padding-inline: 14px; }
.guest-account-actions .register-link:hover { background: var(--blue); color: #fff; }

.hero, .hero-grid { min-height: 440px; }
.hero { background: #eef3f8; border-bottom: 1px solid var(--line); }
.hero::before { filter: saturate(.78); }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid #cbd8e7;
  border-radius: 30px;
  background: #fff;
  color: #365373;
  font-size: 12px;
  margin-bottom: 18px;
}
.hero .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 48px; letter-spacing: -.04em; }
.hero-search { height: 60px; border-color: #b7c8dc; border-radius: 12px; box-shadow: 0 6px 18px rgb(21 46 80 / 6%); }
.hero-search:focus-within { border-color: var(--blue); }
.hero-search button { border-radius: 8px; }
.hero-search input { background: transparent; }
.hero-search input::placeholder { color: #65758a; }
.stats { background: transparent; border: 0; box-shadow: none; margin-top: 22px; }
.stats div { padding: 0 22px; }
.stats div:first-child { padding-left: 0; }
.stats div + div { border-left-color: #bacbde; }
.stats b { font-size: 27px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { color: #435a74; }

.current-applications[hidden],
body:not([data-view="home"]) .current-applications { display: none !important; }
.current-applications {
  padding: 22px 0 0;
  background: #fff;
}
.current-applications-inner {
  padding: 20px 22px 17px;
  border: 1px solid var(--urgent-line);
  border-radius: 14px;
  background: var(--urgent-surface);
  box-shadow: 0 4px 16px rgb(118 21 27 / 5%);
  overflow: hidden;
}
.current-applications-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}
.current-applications h2 {
  margin: 0;
  color: var(--urgent-dark);
  font-size: 23px;
  letter-spacing: -.02em;
}
.current-applications h2 span { font-size: 15px; letter-spacing: 0; }
.current-applications-date {
  margin: 3px 0 0;
  color: var(--urgent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.current-applications-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.current-applications-controls[hidden] { display: none; }
.current-applications-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d89297;
  border-radius: 50%;
  background: #fff;
  color: var(--urgent);
  cursor: pointer;
}
.current-applications-controls button:hover:not(:disabled) { background: #ffe6e7; border-color: var(--urgent); }
.current-applications-controls button:disabled { opacity: .36; cursor: default; }
.current-applications-controls button span {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
#currentApplicationsPrev span { transform: rotate(-135deg) translate(-1px, 1px); }
#currentApplicationsNext span { transform: rotate(45deg) translate(-1px, 1px); }
.current-applications-viewport {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 9px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #d89297 transparent;
  overscroll-behavior-inline: contain;
}
.current-applications-viewport::-webkit-scrollbar { height: 7px; }
.current-applications-viewport::-webkit-scrollbar-thumb { background: #d89297; border-radius: 10px; }
.current-applications-list { display: flex; width: max-content; gap: 10px; }
.current-application-item { width: 210px; scroll-snap-align: start; }
.current-application-item button {
  display: flex;
  width: 100%;
  min-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid #e4aaae;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.current-application-item button:hover { background: #ffe9ea; border-color: var(--urgent); }
.current-application-item b {
  color: var(--urgent-dark);
  font-size: 15px;
  line-height: 1.4;
}
.current-application-item span {
  color: var(--urgent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.current-applications-note {
  margin: 7px 1px 0;
  color: #7f3d42;
  font-size: 11px;
  line-height: 1.55;
}

#schools.section.shell { padding-inline: 28px; }
.section-head h2 { font-size: 28px; letter-spacing: -.025em; }
.filters, body[data-view="home"] .personal-tools-section {
  box-shadow: none;
  border-color: var(--line);
  border-radius: 14px;
}
.filters > .filter-title button { min-height: 40px; border-radius: 8px; }
.filters > .filter-title #clearFilters { background: #f5f7fa; color: #45576c; border-color: #c5cfdb; }
.filters > .filter-title #clearFilters:hover { background: #e9eef5; }
.filters select { border-radius: 8px; color: var(--ink); background-color: #fff; }
.filters .eju-sample-note { font-size: 11px; }
.filters .requirement-control span { line-height: 1.45; }
body[data-view="home"] .personal-tool-grid button {
  background: #f7f9fc;
  border-color: #e0e6ee;
  border-radius: 10px;
  box-shadow: none;
  transition: background-color .16s ease, border-color .16s ease;
}
body[data-view="home"] .personal-tool-grid button:hover { background: var(--sky); border-color: #91aed5; transform: none; }
body[data-view="home"] .personal-tool-grid span { color: var(--muted); }
body[data-view="home"] .personal-tool-grid b { text-wrap: balance; }
.card-results-details, #schools, #compare, #account { scroll-margin-top: 92px; }
.directory-accordion { border-color: var(--line); border-radius: 12px; box-shadow: none; }
.directory-accordion > summary { padding-block: 14px; border-left: 0; }
.directory-accordion[open] > summary { background: #edf2f8; }
.directory-accordion > summary:hover { background: #e7eff9; }
.directory-region h4 { border-radius: 6px; }
.directory-school, .directory-featured-group-columns .directory-school {
  min-height: 44px;
  background: #fff;
  border-color: #dde4ec;
  border-radius: 7px;
  transition: background-color .16s ease, border-color .16s ease;
}
.directory-school:hover { background: var(--sky); border-color: #87a8d6; }
.directory-group-heading span, .directory-accordion > summary small { color: #56687e; }
.school-card { border-radius: 12px; box-shadow: 0 2px 6px rgb(21 46 80 / 3%); }
.card-action { min-height: 44px; border-radius: 7px; }
.school-card:hover { border-color: #aebfd5; }
.school-card > * { min-width: 0; }
.application-time-metric .application-period { white-space: normal; overflow-wrap: anywhere; }
.results-meta { padding-block: 6px; }
.detail-subhead h3 { font-size: 21px; }
.detail-table-wrap { border-radius: 10px; }
.detail-table-wrap tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgb(36 89 184 / 3%); }
.back-button { min-height: 44px; }
.compare-card, .compare-empty { border-radius: 12px; }
footer { line-height: 1.8; }

@media (min-width: 841px) {
  body[data-view="home"] .personal-tools-section { min-height: 319px; }
}
@media (max-width: 1100px) and (min-width: 841px) {
  .topbar nav { gap: 16px; }
  .topbar-actions { gap: 12px; }
  body[data-view="home"] .home-control-row { grid-template-columns: minmax(0, 1fr); }
  body[data-view="home"] .personal-tools-section { min-height: 260px; }
  .hero-copy { white-space: normal; max-width: 520px; text-wrap: pretty; }
}
@media (max-width: 840px) {
  .topbar { height: auto; min-height: 116px; display: grid; grid-template-columns: 1fr auto; padding: 12px 18px 0; gap: 8px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar-actions { display: contents; }
  .topbar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 2; gap: 0; width: 100%; }
  .topbar .nav-link { display: grid !important; min-height: 44px; font-size: 13px; }
  .guest-account-actions, .account-area { grid-column: 2; grid-row: 1; }
  .guest-account-actions .register-link { padding-inline: 8px; }
  .guest-account-actions a { font-size: 11px; }
  #mainContent, .hero, .school-directory { scroll-margin-top: 130px; }
  .card-results-details, #schools, #compare, #account { scroll-margin-top: 130px; }
  .hero, .hero-grid { min-height: 0; }
  .hero-grid { padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(29px, 7.8vw, 44px); white-space: normal; }
  .hero-copy { font-size: 14px; max-width: 580px; line-height: 1.8; }
  .hero-search { height: 56px; }
  .hero-search button { padding-inline: 16px; font-size: 14px; }
  .hero-search input { padding-inline: 9px; font-size: 14px; }
  .stats div { padding-inline: 12px; }
  .stats b { font-size: 24px; }
  .current-applications { padding-top: 14px; }
  .current-applications-inner { margin-inline: 18px; padding: 16px 14px 13px; }
  .current-applications-head { align-items: center; gap: 10px; margin-bottom: 10px; }
  .current-applications h2 { font-size: 20px; }
  .current-applications h2 span { font-size: 13px; }
  .current-applications-controls { gap: 6px; }
  .current-application-item { width: min(72vw, 220px); }
  .current-applications-note { font-size: 10px; }
  #schools.section.shell { padding-inline: 18px; }
  .section-head h2 { font-size: 25px; }
  .filters > .filter-title button { min-height: 44px; }
  body[data-view="home"] .personal-tools-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  body[data-view="home"] .personal-tools-heading > p { font-size: 12px; }
  body[data-view="home"] .personal-tool-grid span { font-size: 12px; }
  .filters .requirement-control span, .filters .eju-track-control span { min-height: 44px; }
  body[data-view] .filters > .eju-track-filter,
  body[data-view] .filters > .english-filter { grid-column: 1 / -1; }
  .eju-score-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-to-top { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
