:root {
  --page: #eef2f6;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #5d6676;
  --line: #d8dee8;
  --green: #2f9e44;
  --green-dark: #237235;
  --gold: #e9b949;
  --red: #d64545;
  --focus: #2563eb;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.app-shell {
  max-width: 1180px;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.topbar {
  padding: 1.75rem 0 1.35rem;
}

.topbar-tools {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  align-self: start;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.refresh-button[aria-busy="true"] {
  cursor: wait;
}

.header-update {
  min-width: 13.5rem;
  max-width: 21rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: right;
}

.header-update span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-update strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: nowrap;
}

.header-location-label {
  margin-top: 0.6rem;
}

.header-location {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.08;
}

.region-mark {
  width: 132px;
  height: auto;
}

.app-nav.top-bar {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.app-nav .menu {
  background: transparent;
}

.app-nav a {
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 900;
}

.app-nav a:hover,
.app-nav a:focus,
.app-nav a.is-active,
.app-nav a[aria-current="page"] {
  border-bottom-color: var(--green);
  color: var(--ink);
}

.archive-view {
  display: grid;
  gap: 1rem;
}

.archive-header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.archive-header h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.archive-metrics .metric {
  height: 100%;
}

.archive-filters {
  display: grid;
  grid-template-columns: minmax(11rem, 0.8fr) minmax(14rem, 1.4fr) auto auto auto;
  gap: 0.75rem;
  align-items: end;
  background: var(--surface);
}

.checkbox-field {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 2.45rem;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-tabs a {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
}

.archive-tabs a.is-active,
.archive-tabs a:hover,
.archive-tabs a:focus {
  border-color: var(--green);
  color: var(--ink);
}

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

.archive-table {
  margin: 0;
  min-width: 880px;
  border-collapse: collapse;
}

.archive-table thead {
  background: #f7f9fb;
}

.archive-table th,
.archive-table td {
  vertical-align: top;
}

.archive-table td strong,
.archive-table td span {
  display: block;
}

.archive-table td span {
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-api-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.archive-badge {
  display: inline-block;
  width: max-content;
  margin-bottom: 0.35rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.archive-badge.is-missing {
  background: var(--red);
}

.archive-badge.is-live {
  background: var(--green-dark);
}

.archive-empty {
  margin: 0;
  background: var(--surface);
}

.archive-pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.callout,
.card {
  border-color: var(--line);
  border-radius: 8px;
}

.controls.callout {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1rem;
  background: var(--surface);
}

.stats-scope.controls {
  grid-template-columns: minmax(16rem, 24rem);
}

.controls-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.controls-actions {
  justify-content: flex-end;
}

.search-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.9rem;
  align-items: end;
}

.primary-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.field-stack {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-width: 0;
}

.location-filter-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.55fr) auto minmax(0, 1.7fr) auto;
  gap: 0.65rem;
  align-items: end;
  min-width: 0;
}

.inline-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
}

.search-top-row .button,
.location-filter-row .button {
  min-width: 8rem;
}

.toggle-field {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.toggle-field input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.school-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.clear-schools-button {
  min-width: 8rem;
}

.field {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.field span {
  display: block;
  margin-bottom: 0.45rem;
}

.field input,
.field select {
  min-height: 2.75rem;
  margin-bottom: 0;
  border-color: #c7cedb;
  border-radius: 6px;
  color: var(--ink);
  background-color: #ffffff;
  box-shadow: none;
}

.field select[multiple] {
  min-height: 9.6rem;
  padding: 0.45rem;
}

.field select[multiple] option {
  padding: 0.28rem 0.35rem;
}

.field input:focus,
.field select:focus,
.button:focus {
  outline: 3px solid color-mix(in srgb, var(--focus) 24%, transparent);
  outline-offset: 2px;
}

.drive-time-field input {
  text-align: right;
}

.button {
  min-height: 2.75rem;
  margin-bottom: 0;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--green-dark);
}

.button.hollow.secondary {
  color: var(--ink);
  border-color: #c7cedb;
}

.button.hollow.secondary:hover,
.button.hollow.secondary:focus {
  color: var(--ink);
  background: #f8fafc;
}

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

.actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.toggle-button.is-active,
.toggle-button[aria-pressed="true"],
.location-button.is-active,
.location-button[aria-pressed="true"] {
  color: #ffffff;
  border-color: var(--red);
  background: var(--red);
}

.location-button.is-active,
.location-button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
}

.location-status {
  min-height: 1.25rem;
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.1rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  max-width: 100%;
  border-radius: 999px;
  font-size: 0.86rem;
}

.label.muted-chip {
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
}

.clear-chip {
  color: #8f1d1d;
}

.summary {
  margin: 1rem 0;
}

.metric.callout {
  min-height: 5.4rem;
  margin-bottom: 0;
  background: var(--surface);
}

.metric span,
.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric strong,
.stat-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1;
}

.stats-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stats-panel:empty {
  display: none;
}

.stat-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.stat-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.stat-card.card {
  min-height: 6.1rem;
  margin-bottom: 0;
}

.stat-lists .card {
  margin-bottom: 0;
}

.stat-lists h3 {
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
}

.trend-panel.card {
  margin-bottom: 0;
  background: var(--surface);
}

.visit-panel.card {
  margin-bottom: 0;
  background: var(--surface);
}

.history-panel.card {
  margin-bottom: 0;
  background: var(--surface);
}

.history-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.history-head h3,
.history-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.history-head p {
  max-width: 48rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.history-head > strong {
  color: var(--ink);
  font-size: 1.75rem;
  line-height: 1;
  white-space: nowrap;
}

.history-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.history-metrics div {
  min-height: 4.5rem;
  padding: 0.75rem;
  border: 1px solid #dde4ee;
  border-radius: 6px;
  background: #f8fafc;
}

.history-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.history-metrics strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.1;
}

.gus-metrics {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.history-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1rem;
}

.history-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.history-table th,
.history-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #e3e8f0;
  text-align: right;
  vertical-align: top;
}

.history-table th:first-child,
.history-table td:first-child {
  text-align: left;
}

.history-table small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.history-table.compact th,
.history-table.compact td {
  white-space: nowrap;
}

.subject-forecast-table th:first-child,
.subject-forecast-table td:first-child {
  min-width: 12rem;
}

.student-nationality-table th:first-child,
.student-nationality-table td:first-child {
  min-width: 13rem;
}

.subject-signal {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  background: #edf2f7;
}

.subject-signal.is-rising {
  color: #1f5f32;
  background: #e4f6e9;
}

.subject-signal.is-falling,
.subject-signal.is-disappearing {
  color: #8f1d1d;
  background: #fde8e8;
}

.subject-signal.is-stable {
  color: #566071;
  background: #edf2f7;
}

.history-small-lists {
  margin-top: 0.75rem;
}

.visit-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.visit-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.visit-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.visit-head > strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.visit-grid div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.visit-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.visit-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.visit-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 0.35rem;
  height: 8.75rem;
  margin-top: 1rem;
  align-items: end;
}

.visit-bar {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.35rem;
  min-width: 0;
  height: 100%;
}

.visit-bar span {
  align-self: end;
  border-radius: 6px 6px 0 0;
  background: var(--green);
}

.visit-bar small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.visit-cities {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.visit-cities h4 {
  margin: 0 0 0.75rem;
  font-size: 0.96rem;
}

.bar-note {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.trend-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.trend-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.trend-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.trend-signal {
  min-width: 10.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  text-align: right;
}

.trend-signal span,
.trend-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trend-signal strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.trend-signal small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.trend-signal.is-rising {
  border-color: #9bd8a8;
  background: #f1fbf3;
}

.trend-signal.is-rising strong {
  color: var(--green-dark);
}

.trend-signal.is-falling {
  border-color: #efb0b0;
  background: #fff5f5;
}

.trend-signal.is-falling strong {
  color: #8f1d1d;
}

.trend-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.trend-metrics div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.trend-metrics strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.trend-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.trend-grid-line {
  stroke: #dfe5ee;
  stroke-width: 1;
}

.trend-axis-label {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.trend-month-label {
  font-size: 0.66rem;
  text-transform: lowercase;
}

.trend-bar {
  fill: #b7c5d6;
}

.trend-bar.is-current {
  fill: var(--green);
}

.trend-line {
  fill: none;
  stroke: #1f5f8b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.weekly-comparison {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.weekly-comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.weekly-comparison-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
}

.weekly-comparison-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.weekly-comparison-head > strong {
  color: var(--ink);
  font-size: 0.9rem;
  text-align: right;
}

.weekly-comparison-head > strong.is-higher {
  color: var(--green-dark);
}

.weekly-comparison-head > strong.is-lower {
  color: #8f1d1d;
}

.weekly-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.weekly-comparison-grid > div {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.weekly-comparison-grid span,
.weekly-comparison-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.weekly-comparison-grid strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.bar-row {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.bar-row:first-of-type {
  margin-top: 0;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.bar-label span {
  overflow-wrap: anywhere;
}

.bar-label strong {
  color: var(--ink);
}

.bar-track {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebf1;
}

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

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

.source-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status.callout {
  margin: 0.9rem 0;
  color: var(--muted);
  background: var(--surface);
}

.status:empty {
  display: none;
}

.status.error {
  color: #8f1d1d;
  border-color: #f1b7b7;
  background: #fff5f5;
}

.school-list {
  display: grid;
  gap: 0.75rem;
}

.school-card.card {
  overflow: clip;
  margin-bottom: 0;
  background: var(--surface);
}

.school-head {
  border-left: 5px solid var(--green);
}

.school-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.school-aliases {
  margin: -0.1rem 0 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.school-meta,
.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.school-commute {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.school-commute strong {
  color: var(--green-dark);
}

.school-commute.is-estimated strong {
  color: var(--ink);
}

.school-commute a {
  font-weight: 900;
}

.vacancy-badge.badge {
  min-width: 5.25rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  background: #f5df8f;
  text-align: center;
  font-weight: 900;
}

.vacancy-badge span {
  display: block;
  margin-top: 0.12rem;
  color: #665018;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vacancy-wrap {
  border-top: 1px solid var(--line);
}

.vacancy-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1.125rem;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vacancy-list {
  display: grid;
}

.vacancy-row {
  display: grid;
  grid-template-columns: 7.8rem minmax(11rem, 1fr) minmax(6.5rem, 0.25fr) minmax(9rem, 0.38fr) minmax(8rem, 0.32fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1.125rem;
  border-top: 1px solid var(--line);
}

.vacancy-row.is-hidden-offer {
  background: #fbfcfe;
}

.vacancy-row:first-child {
  border-top: 0;
}

.vacancy-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.favorite-button.button.clear {
  display: inline-grid;
  place-items: center;
  width: 2.125rem;
  min-height: 2.125rem;
  height: 2.125rem;
  margin: 0;
  border: 1px solid #d7b957;
  border-radius: 50%;
  padding: 0;
  color: #9a6a00;
  background: #ffffff;
  font-size: 1.28rem;
  line-height: 1;
}

.favorite-button:hover,
.favorite-button.is-favorite {
  color: #4a3300;
  background: var(--gold);
}

.hide-button.button {
  width: 5.25rem;
  min-height: 2.125rem;
  height: 2.125rem;
  margin: 0;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.hide-button.is-hidden-offer {
  color: var(--green-dark);
  border-color: #9bd8a8;
  background: #f1fbf3;
}

.vacancy-row.is-hidden-offer .vacancy-main strong {
  color: var(--muted);
}

.vacancy-main strong {
  display: block;
  line-height: 1.25;
}

.vacancy-main small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.hours,
.published {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.deadline {
  color: var(--muted);
  font-size: 0.9rem;
}

.deadline.urgent {
  color: #8f1d1d;
  font-weight: 900;
}

.source-link {
  justify-self: end;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.source-link:hover,
.source-link:focus {
  color: var(--ink);
}

.empty {
  padding: 1.75rem;
  border: 1px dashed #aab3c2;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 63.9375em) {
  .region-mark {
    width: 104px;
  }

  .vacancy-row {
    grid-template-columns: 7.8rem 1fr;
  }

  .source-link,
  .hours,
  .published,
  .deadline {
    justify-self: start;
    grid-column: 2;
  }
}

@media (max-width: 920px) {
  .topbar-tools {
    justify-items: stretch;
  }

  .header-update {
    text-align: left;
  }

  .controls-top,
  .search-top-row,
  .primary-filter-row,
  .location-filter-row,
  .archive-filters {
    grid-template-columns: 1fr;
  }

  .school-filter-actions {
    justify-content: stretch;
  }

  .clear-schools-button {
    width: 100%;
  }

  .trend-head,
  .trend-metrics,
  .weekly-comparison-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .trend-head {
    display: grid;
  }

  .weekly-comparison-head {
    display: grid;
  }

  .weekly-comparison-head > strong {
    text-align: left;
  }

  .trend-signal {
    width: 100%;
    text-align: left;
  }

  .visit-head {
    display: grid;
  }

  .history-head,
  .history-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .visit-bars {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    height: auto;
  }

  .visit-bar {
    min-height: 5.5rem;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .button {
    flex: 1;
  }
}

@media (max-width: 44em) {
  .primary-filter-row,
  .inline-field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 39.9375em) {
  .app-shell {
    padding-top: 0.9rem;
  }

  .topbar {
    gap: 0.75rem;
  }

  .region-mark {
    width: 82px;
  }

  .stat-head p {
    text-align: left;
  }

  .vacancy-badge.badge {
    width: 100%;
  }
}
