:root {
  --primary: var(--deep);
  --primary-dark: #083049;
  --bg: var(--soft);
  --surface: #ffffff;
  --text: var(--ink);
  --text-light: var(--muted);
  --border: var(--line);
  --tag-bg: var(--wash);
  --tag-text: var(--blue);
}

button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }

.hero,
.results-section,
#search,
#resultsTitle,
[id^="section-"] {
  scroll-margin-top: var(--shell-header-height, 72px);
}
dialog [id^="section-"] {
  scroll-margin-top: 12px;
}

#institutionGrid {
  min-height: 28rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 28rem;
}

#loadingState:not([hidden]) {
  min-height: 6rem;
}

.hero,
.page-intro {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 1.15rem 1rem 1rem;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(11, 58, 87, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 58, 87, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #f9fcfd 0%, #edf7f8 52%, #f6f4fb 100%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid var(--border);
}
.hero h1,
.page-intro h1 {
  margin: 0 0 0.35rem;
  color: var(--deep);
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  line-height: 1.25;
}
.hero > p,
.page-intro > p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 0.98rem;
}
.results-toolbar {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.search-box { display: flex; gap: 0.5rem; max-width: none; margin: 0; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--surface);
}
.search-box button, .btn-primary {
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: var(--radius-sm);
  color: white;
  background: var(--deep);
  font-weight: 700;
  cursor: pointer;
}
.search-box button:hover, .btn-primary:hover { background: var(--blue); }
.data-note {
  margin: 0 auto 0.75rem;
  max-width: 52rem;
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
}

.page-content { padding-top: 0; }
.results-section { margin-top: 1.15rem; }
.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  color: var(--deep);
  text-align: right;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.category-tile:hover {
  border-color: color-mix(in srgb, var(--deep) 35%, var(--border));
  box-shadow: 0 1px 0 rgba(11, 58, 87, 0.06);
}
.category-tile.is-active {
  border-color: var(--deep);
  background: color-mix(in srgb, var(--deep) 8%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--deep) 25%, transparent);
}
.category-tile__label {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.category-tile__count {
  color: var(--text-light);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}
.results-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}
.results-heading h2 { margin: 0; font-size: 1.2rem; color: var(--deep); }
.results-heading span { color: var(--text-light); font-size: 0.92rem; }
.filters-fold {
  margin: 0;
  border: 0;
}
.filters-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.15rem;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.95rem;
}
.filters-fold > summary::-webkit-details-marker { display: none; }
.filters-fold > summary::before {
  content: "▾ ";
  display: inline-block;
  transition: transform .15s ease;
}
.filters-fold:not([open]) > summary::before {
  transform: rotate(-90deg);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.filter-bar label {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 11rem;
  min-width: 0;
  color: var(--text-light);
  font-size: 0.8rem;
}
.filter-bar select {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: white;
}

.authority-link-bar {
  margin: 0 0 1rem;
}
.clear-filters { flex: 0 0 auto; align-self: end; width: auto; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.card-header { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.school-title { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 800; }
.school-id { color: var(--text-light); font-size: .9rem; }
.school-id strong { color: var(--text); font-weight: 700; }
.school-id-secondary { margin: .2rem 0 0; color: var(--text-light); font-size: .82rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.tag { padding: .25rem .5rem; border-radius: 4px; color: var(--tag-text); background: var(--tag-bg); font-size: .8rem; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; text-align: center; }
.profile-facts {
  margin-bottom: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
}
.profile-facts .metric-value { font-size: 0.95rem; line-height: 1.3; }
.metrics.quick-facts { margin-bottom: 1.25rem; }
.metric { padding: .75rem .35rem; border-radius: 8px; background: #f1f5f9; }
.metric-value { color: var(--primary-dark); font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.metric-label { margin-top: .25rem; color: var(--text-light); font-size: .75rem; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}
.pagination-controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  padding-block: 0.15rem;
}
.pagination-btn {
  min-width: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--deep);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pagination-btn:hover:not(:disabled) { background: #eff6ff; }
.pagination-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pagination-btn.is-current {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.pagination-ellipsis {
  color: var(--text-light);
  padding-inline: 0.2rem;
  user-select: none;
}
.page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  font-size: 0.85rem;
}
.page-size-label select {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text);
}
.metric-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-top: .35rem;
}
.metric-compare-cell {
  padding: .45rem .55rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.metric-compare-cell.similar { background: #f8fafc; }
.metric-compare-cell span {
  display: block;
  color: var(--text-light);
  font-size: .68rem;
  font-weight: 600;
  margin-bottom: .15rem;
}
.metric-compare-cell strong {
  font-size: 1rem;
  font-weight: 700;
}
.fact-compare-pair dd { margin: 0; }
.metric-compare-mini {
  display: grid;
  gap: .4rem;
  margin-top: .45rem;
  width: 100%;
}
.metric-compare-mini-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(2.5rem, 1fr) auto;
  gap: .4rem;
  align-items: center;
  font-size: .78rem;
}
.metric-compare-mini-label {
  color: var(--text-light);
  font-weight: 600;
  font-size: .68rem;
  white-space: nowrap;
}
.metric-compare-mini-track {
  height: .55rem;
  border-radius: 999px;
  background: #dbe3ef;
  overflow: hidden;
  min-width: 2.5rem;
}
.metric-compare-mini-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #64748b;
  min-width: 4px;
}
.metric-compare-mini-row.institution .metric-compare-mini-track > span {
  background: var(--primary);
}
.metric-compare-mini-row.similar .metric-compare-mini-track > span {
  background: #94a3b8;
}
.metric-compare-mini-row strong {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
  direction: rtl;
  min-width: 3.2rem;
}
.facts-list > .fact-compare-pair {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.facts-list > .fact-compare-pair dd {
  margin: 0;
  font-weight: 400;
}
.panel-fold {
  padding: 0;
  overflow: hidden;
  transition: background-color .2s ease, border-color .2s ease;
}
.panel-fold > .panel-fold-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  margin: 0;
  border-inline-start: 3px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.panel-fold > .panel-fold-summary::-webkit-details-marker { display: none; }
.panel-fold > .panel-fold-summary h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: 1rem;
}
.panel-fold > .panel-fold-summary h3::after {
  content: "▾";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .7rem;
  line-height: 1;
  transition: transform .15s ease, background-color .15s ease;
}
.panel-fold[open] > .panel-fold-summary h3::after {
  transform: rotate(180deg);
  background: #dbeafe;
  color: var(--primary-dark);
}
.panel-fold-body { padding: 0 1.1rem 1.1rem; }

/* רמזור עדין למעטפת קוביות — סגור ופתוח, רק בפער משמעותי מדומים */
.panel-fold--tone-good {
  background: #f7fbf8;
  border-color: #d7ebe0;
}
.panel-fold--tone-good > .panel-fold-summary {
  background: #eef8f1;
  border-inline-start-color: #8fbf9e;
}
.panel-fold--tone-good[open] {
  background: #f9fcfa;
}
.panel-fold--tone-warn {
  background: #fcf8f6;
  border-color: #eddfd8;
}
.panel-fold--tone-warn > .panel-fold-summary {
  background: #faf1ec;
  border-inline-start-color: #d4a08a;
}
.panel-fold--tone-warn[open] {
  background: #fdfaf8;
}
.panel-fold--tone-mixed {
  background: #fcfaf5;
  border-color: #ebe3d0;
}
.panel-fold--tone-mixed > .panel-fold-summary {
  background: #f8f3e8;
  border-inline-start-color: #cbb88a;
}
.panel-fold--tone-mixed[open] {
  background: #fdfbf7;
}

.panel-fold > .panel-fold-summary:hover h3::after {
  background: #cbd5e1;
}
.metric-year {
  display: inline-block;
  margin-inline-start: .4rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: .72rem;
  font-weight: 600;
  vertical-align: middle;
}
.metric-definition { margin-top: .45rem; font-size: .8rem; color: #475569; }
.metric-definition summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); }
.metric-definition p { margin: .35rem 0 0; line-height: 1.45; }
.metric-definition-missing { margin: .35rem 0 0; color: #94a3b8; font-size: .75rem; }
.metric-traffic { display: block; margin-top: .25rem; font-weight: 700; font-size: .78rem; }
.metric-traffic--good { color: #166534; }
.metric-traffic--warn { color: #9a3412; }
.metric-traffic--neutral { color: #475569; }
.education-metric-card.metric-neutral {
  background: #f1f5f9 !important;
}
.institution-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .85rem 0 0;
}
.institution-anchor-nav a {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
}
.institution-anchor-nav a:hover { background: #eff6ff; }
.peer-group-note { margin: .65rem 0 0; color: #475569; font-size: .8rem; }
.panel-subtitle {
  margin: -.35rem 0 .75rem;
  color: var(--text-light);
  font-size: .82rem;
}
.institution-inline-summary {
  margin: .75rem 0 0;
  line-height: 1.55;
  font-size: .92rem;
  color: #334155;
}
.institution-header-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .65rem;
}
.detail-chips--inline {
  margin-bottom: .85rem;
}
.stat-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: 0 0 .85rem;
  padding: .85rem;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.stat-block-title {
  grid-column: 1 / -1;
  margin: 0 0 .1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.stat-item { text-align: center; }
.stat-value {
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
}
.stat-label {
  margin-top: .15rem;
  color: var(--text-light);
  font-size: .72rem;
}
.staff-extras {
  grid-column: 1 / -1;
  margin-top: .15rem;
}
.staff-extras details {
  border-top: 1px solid var(--border);
  padding-top: .5rem;
}
.staff-extras summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 600;
}
.staff-extras-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin: .5rem 0 0;
}
.staff-extras-list div {
  display: grid;
  gap: .15rem;
}
.staff-extras-list dt {
  margin: 0;
  color: var(--text-light);
  font-size: .75rem;
  font-weight: 500;
}
.staff-extras-list dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
}
.institution-quick-facts .metrics,
.seo-quick-facts .metrics {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  margin-bottom: 0;
  padding-bottom: .15rem;
  scrollbar-width: thin;
}
.institution-quick-facts .metric {
  flex: 1 0 auto;
  min-width: 5.5rem;
  padding: .55rem .4rem;
}
.institution-quick-facts .metric-value {
  font-size: 1rem;
}
.institution-quick-facts .metric-label {
  font-size: .7rem;
}
.budget-chart-below { margin: 0 0 1rem; }
.rama-t-explainer { margin: 0 0 1rem; padding: .75rem .9rem; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.rama-t-explainer p { margin: .45rem 0 0; font-size: .85rem; line-height: 1.5; color: #334155; }
.rama-t-explainer p:first-of-type { margin-top: .55rem; }
.authority-summary-panel .executive-summary { margin-bottom: .5rem; }
.metric-source { display: block; margin-top: .25rem; color: #475569; font-size: .72rem; line-height: 1.4; }
.navigate-button { width: fit-content; margin-bottom: 1rem; text-decoration: none; }
.contact-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .85rem 0 1rem; }
.contact-strip-bottom { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.contact-link { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: .9rem; word-break: break-word; }
.contact-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.contact-actions .btn { width: auto; text-decoration: none; }
.mobile-call { display: none; }
.density-chart { display: grid; gap: .9rem; }
.density-row { display: grid; grid-template-columns: 110px 1fr 45px; gap: .7rem; align-items: center; }
.density-track { height: 18px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.density-track span { display: block; height: 100%; border-radius: inherit; background: #64748b; }
.density-track .institution { background: var(--primary); }
.density-track .authority { background: #0f766e; }
.density-track .national { background: #7c3aed; }
.density-chart small { color: var(--text-light); }
.budget-chart { display: grid; gap: .85rem; margin: .25rem 0 1rem; padding: 1rem; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(135deg, #eff6ff, #fff); }
.budget-chart-below { margin: 1rem 0 0; }
.budget-row { display: grid; grid-template-columns: 115px minmax(120px, 1fr) 105px; gap: .7rem; align-items: center; font-size: .9rem; }
.budget-row > span { color: var(--text-light); }
.budget-row strong { text-align: left; direction: rtl; }
.budget-track { height: 18px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.budget-track span { display: block; height: 100%; border-radius: inherit; background: #64748b; }
.budget-row.institution { font-weight: 800; }
.budget-row.institution > span { color: var(--primary); }
.budget-row.institution .budget-track span { background: var(--primary); }
.budget-row.similar .budget-track span { background: #8b5cf6; }
.budget-row.authority .budget-track span { background: #0f766e; }
.budget-row.national .budget-track span { background: #7c3aed; }
.budget-chart small { color: var(--text-light); }
.comparison-snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison-snapshot-card { display: grid; gap: .9rem; padding: 1rem; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); }
.comparison-snapshot-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.comparison-snapshot-header h4 { margin: 0; color: var(--text); }
.comparison-snapshot-header p { margin: .3rem 0 0; color: var(--text-light); font-size: .82rem; line-height: 1.45; }
.comparison-snapshot-header > strong { color: var(--primary-dark); font-size: 1.1rem; text-align: left; direction: rtl; }
.comparison-snapshot-focus { padding: .9rem 1rem; border: 1px solid #bfdbfe; border-radius: 14px; background: #eff6ff; }
.comparison-snapshot-list { display: grid; gap: .75rem; }
.comparison-snapshot-item { padding: .75rem .85rem; border-radius: 12px; background: #f8fafc; }
.comparison-snapshot-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .35rem; }
.comparison-snapshot-row span { color: var(--text-light); font-size: .9rem; }
.comparison-snapshot-row strong { text-align: left; direction: rtl; }
.comparison-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.comparison-track span { display: block; height: 100%; border-radius: inherit; background: #64748b; }
.comparison-track .institution { background: var(--primary); }
.comparison-track .similar { background: #8b5cf6; }
.comparison-track .authority { background: #0f766e; }
.comparison-track .national { background: #7c3aed; }
.comparison-track-focus { margin-top: .15rem; }
.comparison-snapshot-item small { display: block; margin-top: .35rem; color: var(--text-light); }
.gender-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin: .25rem 0 1rem; padding: 1rem; border: 1px solid #dbeafe; border-radius: 16px; background: #f8fafc; }
.gender-card h4 { margin: 0 0 .45rem; }
.gender-pie { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(#ec4899 0 calc(var(--girls) * 1%), #2563eb 0 100%); box-shadow: inset 0 0 0 12px white; }
.gender-legend { display: flex; align-items: center; gap: .35rem; color: var(--text-light); line-height: 1.7; }
.gender-legend span { width: .75rem; height: .75rem; border-radius: 50%; }
.gender-legend .girls { background: #ec4899; }
.gender-legend .boys { background: #2563eb; }
.subsection-title { margin: 1rem 0 .65rem; color: var(--text); font-size: .95rem; }
.detail-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .65rem 0 .85rem; }
.facts-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-top: .25rem; }
.facts-group .subsection-title { margin: 0 0 .5rem; font-size: .88rem; }
.facts-rows { display: grid; gap: 0; margin: 0; }
.facts-rows div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: .5rem 1rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid #e2e8f0; }
.facts-rows div:last-child { border-bottom: 0; }
.facts-rows dt { margin: 0; color: var(--text-light); font-size: .78rem; font-weight: 500; }
.facts-rows dd { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.45; }
.compact-facts { grid-template-columns: repeat(4, 1fr); }
.education-accordion { display: grid; gap: .65rem; }
.education-accordion details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  transition: background-color .2s ease, border-color .2s ease;
}
.education-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
  border-inline-start: 3px solid transparent;
  list-style: none;
}
.education-accordion summary::-webkit-details-marker { display: none; }
.education-accordion summary::after {
  content: "▾";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-inline-start: auto;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .7rem;
  line-height: 1;
  transition: transform .15s ease, background-color .15s ease;
}
.education-accordion details[open] > summary::after {
  transform: rotate(180deg);
  background: #dbeafe;
  color: var(--primary-dark);
}
.education-accordion summary:hover::after { background: #cbd5e1; }
.education-accordion summary.education-category-summary.no-score {
  background: #f8fafc;
}
.education-category-cube--tone-good {
  background: #f7fbf8;
  border-color: #d7ebe0;
}
.education-category-cube--tone-good > summary {
  background: #eef8f1;
  border-inline-start-color: #8fbf9e;
}
.education-category-cube--tone-good[open] {
  background: #f9fcfa;
}
.education-category-cube--tone-warn {
  background: #fcf8f6;
  border-color: #eddfd8;
}
.education-category-cube--tone-warn > summary {
  background: #faf1ec;
  border-inline-start-color: #d4a08a;
}
.education-category-cube--tone-warn[open] {
  background: #fdfaf8;
}
.education-category-cube--tone-mixed {
  background: #fcfaf5;
  border-color: #ebe3d0;
}
.education-category-cube--tone-mixed > summary {
  background: #f8f3e8;
  border-inline-start-color: #cbb88a;
}
.education-category-cube--tone-mixed[open] {
  background: #fdfbf7;
}
.education-accordion summary span { color: var(--text-light); font-size: .8rem; font-weight: 600; }
.education-accordion .facts-list { padding: 0 1rem 1rem; }
.education-disclaimer { margin: 0 0 .85rem; color: #475569; font-size: .75rem; line-height: 1.45; }
.education-group-disclaimer { margin: 0; padding: .3rem 1rem .55rem; color: #64748b; font-size: .65rem; line-height: 1.4; border-bottom: 1px solid #e2e8f0; }
.programs-footnote { margin: .85rem 0 0; font-size: .85rem; }
.programs-footnote a { color: var(--primary-dark); font-weight: 600; }
.student-count-note { margin: 0 0 .85rem; color: var(--text-light); font-size: .85rem; }
.gefen-empty-note { margin: 0; color: var(--text-light); font-size: .9rem; }
.education-empty { margin: 0; padding: .75rem 1rem 1rem; color: var(--text-light); font-size: .85rem; }
.facts-list .education-metric-card {
  background: linear-gradient(135deg, hsl(calc(var(--compare-score) * 1.2), 28%, 97%) 0%, #f8fafc 78%);
}
.facts-list .education-metric-card.no-comparison { background: #f1f5f9; }
.facts-list .education-metric-card--tone-good {
  background: #f3f9f5;
  box-shadow: inset 0 0 0 1px #d9ebdf;
}
.facts-list .education-metric-card--tone-warn {
  background: #faf4f1;
  box-shadow: inset 0 0 0 1px #ead9d0;
}
.actions { display: flex; flex-direction: column; gap: .5rem; }
.btn { display: block; width: 100%; padding: .75rem; border-radius: 6px; cursor: pointer; text-align: center; font-weight: 600; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); background: #f1f5f9; }
.empty-state { padding: 2rem; border: 1px solid var(--border); border-radius: 12px; background: white; text-align: center; }
.empty-state.error-state { color: #9b1c1c; background: #fff5f5; border-color: #e7adb1; }
.trust-line { margin: 0 auto 1.5rem; max-width: min(1120px, calc(100% - 32px)); color: var(--text-light); font-size: 0.88rem; line-height: 1.65; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 1.5rem; }
.load-more { width: auto; min-width: 220px; padding-inline: 2rem; }

dialog { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; border: 0; border-radius: 14px; color: var(--text); background: var(--surface); box-shadow: 0 25px 70px rgba(15,23,42,.3); }
dialog.authority-mode { box-shadow: 0 25px 70px rgba(15,23,42,.34); }
.kindergarten-results-title { margin: 2rem 0 .75rem; font-size: 1.1rem; color: var(--text-light); }
.kindergarten-card-badge,
.kindergarten-notice,
.daycare-card-badge,
.daycare-notice { background: #f8fafc; border: 1px solid var(--border); color: var(--text-light); }
.kindergarten-notice,
.daycare-notice { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; line-height: 1.5; }
.kindergarten-card-badge,
.daycare-card-badge { display: inline-block; margin-top: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .78rem; }
.kindergarten-view .panel,
.daycare-view .panel { border-color: var(--border); background: #fff; }
.kindergarten-view .dialog-header,
.daycare-view .dialog-header { border-bottom-color: var(--border); }
.contact-note { display: block; margin-top: .25rem; color: var(--text-light); font-size: .8rem; }

dialog::backdrop { background: rgba(15,23,42,.65); }
dialog.authority-mode::backdrop { background: rgba(15,23,42,.68); }
.card-layer-enter { animation: cardLayerEnter .22s ease; }
@keyframes cardLayerEnter {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.dialog-shell { padding: 1.5rem; }
.institution-view .panel { border-color: var(--border); background: #fff; }
.institution-view .dialog-header { border-bottom-color: var(--border); }
.institution-view.partial-school .panel { background: #f8fafc; border-color: #cbd5e1; }
.institution-view.partial-school .dialog-header { border-bottom-color: #cbd5e1; background: #f8fafc; }
.partial-school-notice {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: .82rem;
  line-height: 1.55;
  white-space: pre-line;
}
.partial-school-result-card {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.partial-school-card-badge {
  margin: .35rem 0 0;
  color: #92400e;
  font-size: .78rem;
  font-weight: 600;
}
.outside-shkifut-panel { border-color: #cbd5e1; background: #f8fafc; }
.outside-shkifut-summary { margin: 0 0 .75rem; color: var(--text-light); font-size: .9rem; }
.outside-shkifut-source { margin-top: .75rem; }
.outside-shkifut-partial-list { margin-top: 1rem; }
.partial-school-link { color: #b45309; font-weight: 600; }
.kindergarten-link { color: #0f766e; font-weight: 600; }
.outside-other-tag { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.authority-result-card {
  border-color: #86efac;
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
  grid-column: 1 / -1;
}
.map-location-note { margin: 0 0 .75rem; color: var(--text-light); font-size: .9rem; }
.authority-result-eyebrow {
  margin: 0 0 .35rem;
  color: #065f46;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.authority-view .panel { border-color: var(--border); background: #fff; }
.authority-view .dialog-header { border-bottom-color: var(--border); }
.authority-view .eyebrow { color: var(--primary-dark); }
.authority-summary-panel .institution-anchor-nav { margin-top: .75rem; }
.authority-group-body .authority-subsection + .authority-subsection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.authority-group-body .authority-subsection > .subsection-title {
  margin: 0 0 .65rem;
  font-size: 1rem;
}
.report-section.panel-fold {
  margin-top: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.report-section.panel-fold > .panel-fold-summary h3 {
  border-bottom: 0;
  padding-bottom: 0;
}
.gefen-program-link { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(37,99,235,.45); }
.gefen-program-link:hover { color: var(--primary); text-decoration-color: currentColor; }
.gefen-program-link--disabled { color: var(--text-muted); font-weight: 500; text-decoration: none; cursor: default; }
.authority-chart-panel .dist-bar-chart,
.authority-chart-panel .dist-pie-wrap { margin-top: .5rem; }
.dist-bar-chart { display: grid; gap: .65rem; }
.dist-bar-row { display: grid; grid-template-columns: minmax(88px, 1fr) 1fr auto; gap: .75rem; align-items: center; }
.dist-bar-label { font-size: .85rem; color: var(--text-light); }
.dist-bar-track { height: 10px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.dist-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #059669, #34d399); }
.dist-pie-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; align-items: center; }
.dist-pie { width: 140px; height: 140px; border-radius: 50%; border: 1px solid #e2e8f0; }
.dist-pie-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dist-pie-legend li { display: grid; grid-template-columns: 14px 1fr auto; gap: .55rem; align-items: center; font-size: .85rem; }
.dist-pie-swatch { width: 14px; height: 14px; border-radius: 4px; }
.authority-chip { cursor: pointer; border: 1px solid #86efac; background: #ecfdf5; color: #065f46; font: inherit; }
.authority-chip:hover { background: #d1fae5; }
.detail-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .75rem; }
.back-button { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .65rem; padding: .35rem .7rem; border: 1px solid #86efac; border-radius: 999px; background: #ecfdf5; color: #065f46; cursor: pointer; font: inherit; font-weight: 700; }
.back-button:hover { background: #d1fae5; }
.context-nav { margin: 0 0 .85rem; }
.back-to-search-link {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-light);
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}
.back-to-search-link:hover,
.back-to-search-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.report-document > .context-nav:last-of-type { margin-top: 1.25rem; margin-bottom: 0; }
.link-button { border: 0; padding: 0; background: none; color: var(--primary-dark); font: inherit; font-weight: 700; cursor: pointer; text-align: inherit; text-decoration: underline; }
.authority-more { margin-top: .75rem; }
.dialog-header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; }
.detail-meta { margin: .4rem 0 0; color: var(--text-light); }
.district-link { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.district-link--quiet {
  color: var(--text-light);
  font-weight: 400;
  font-size: .85em;
  margin-inline-start: .35rem;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.district-link--quiet:hover { color: var(--text); }
.district-link--emphasis {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.district-link--emphasis:hover { color: #0f766e; }
.district-authority-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.district-authority-link:hover { color: #0f766e; }
.gefen-header-preview { margin-top: .75rem; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.gefen-header-title { margin-bottom: .55rem; color: var(--primary-dark); font-size: .82rem; font-weight: 800; }
.gefen-header-list { display: grid; gap: .45rem; }
.gefen-header-link { background: white; }
.gefen-more-button { margin-top: .6rem; border: 0; background: transparent; color: var(--primary-dark); font-weight: 700; cursor: pointer; padding: 0; }
.gefen-section-stack { display: grid; gap: 1rem; }
.gefen-load-more-block { display: grid; gap: .75rem; }
.gefen-featured-list .source-link { background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid #dbeafe; }
.gefen-full-body { padding: 1rem 1.1rem 1.1rem; }
.gefen-full-body .gefen-load-more-block { gap: .85rem; }
.gefen-load-more-block > .source-links[data-gefen-more-page] { margin-top: .75rem; }
.gefen-load-more-block > .source-links[data-gefen-more-page][hidden] { display: none; }
.gefen-load-more-button { width: min(100%, 18rem); justify-self: center; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: var(--primary-dark); font-weight: 700; cursor: pointer; padding: .7rem 1.1rem; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.gefen-load-more-button:hover { background: #dbeafe; border-color: #93c5fd; transform: translateY(-1px); }
.gefen-load-more-button:focus-visible { outline: 3px solid rgba(37, 99, 235, .25); outline-offset: 2px; }
.inline-empty-state { display: block; }
.close-button { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: white; cursor: pointer; font-size: 1.4rem; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.panel { padding: 1.2rem; border: 1px solid var(--border); border-radius: 10px; }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { margin-top: 0; }
.facts-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.facts-list > div { padding: .7rem; border-radius: 8px; background: #f1f5f9; }
.facts-list dt { color: var(--text-light); font-size: .75rem; }
.facts-list dd { margin: .2rem 0 0; font-weight: 600; }
.facts-list small { display: block; margin-top: .2rem; color: var(--text-light); font-weight: 400; }
.source-links { display: grid; gap: .5rem; }
.source-link { display: flex; justify-content: space-between; padding: .75rem; border-radius: 6px; color: var(--primary-dark); background: #eff6ff; text-decoration: none; font-weight: 600; }
.gefen-purchase-row--disabled { background: #f8fafc; color: var(--text); border: 1px dashed var(--border); }
.compact-accordion { border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; overflow: hidden; }
.compact-accordion > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; cursor: pointer; color: var(--primary-dark); font-weight: 800; list-style: none; }
.compact-accordion > summary::-webkit-details-marker { display: none; }
.compact-accordion > summary span { color: var(--text-light); font-size: .8rem; font-weight: 600; }
.compact-accordion .accordion-empty { padding: 0 1rem 1rem; color: var(--text-light); font-size: .9rem; }
.gefen-year-badge { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 999px; background: #dbeafe; color: var(--primary-dark); font-size: .72rem !important; font-weight: 700 !important; }
.gefen-purchase-list { padding: 0 1rem 1rem; }
.gefen-purchase-row { align-items: center; }
.gefen-purchase-main { display: grid; gap: .2rem; flex: 1; text-align: start; }
.gefen-purchase-program { font-size: .92rem; font-weight: 800; color: var(--primary-dark); }
.gefen-purchase-meta { font-size: .78rem; font-weight: 500; color: var(--text-light); line-height: 1.45; }
.gefen-purchase-status { font-size: .76rem; font-weight: 700; color: #9a3412; }
.lazy-stack { display: grid; gap: .85rem; }
.lazy-load-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .9rem 1rem;
  background: #f8fafc;
}
.lazy-load-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.lazy-load-card__hint {
  margin: .35rem 0 0;
  color: var(--text-light);
  font-size: .82rem;
}
.lazy-load-card__button { flex: 0 0 auto; }
.lazy-load-card [data-lazy-content]:not(:empty) { margin-top: .85rem; }
.rama-narrative {
  margin: 0 0 .9rem;
  padding: .75rem .9rem;
  background: #f8fafc;
  border-radius: 8px;
  font-size: .9rem;
  color: #334155;
}
.rama-test-block + .rama-test-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.rama-test-block h4 { margin: 0 0 .75rem; font-size: 1rem; }
.rama-test-block h5 { margin: 1rem 0 .5rem; font-size: .82rem; color: var(--text-light); font-weight: 600; }
.checklist { padding-right: 1.2rem; }
.insight { padding: .75rem; border-right: 4px solid #fde047; background: #fefce8; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.dialog-actions .btn { flex: 1 1 220px; }
.eyebrow { color: var(--primary); font-weight: 600; }
.report-disclaimer { color: var(--text-light); font-size: .85rem; }
.report-section { margin-top: 1.8rem; }
.report-section > h3 { padding-bottom: .45rem; border-bottom: 2px solid var(--border); }
.report-section > .map-panel-heading {
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--border);
}
.map-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
  margin-bottom: .75rem;
}
.map-panel-heading h3 { margin: 0; }
.map-panel-address {
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 400;
}
.map-panel iframe { display: block; width: 100%; height: 320px; margin-bottom: .65rem; border: 1px solid var(--border); border-radius: 8px; }
.map-panel > a { color: var(--primary-dark); font-weight: 600; }
.map-panel > a.navigate-button,
.map-panel > a.btn-primary {
  color: #fff;
}
.navigate-button.btn-primary { color: #fff; }

.institution-education-extras-panel--path-green {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4, #fff);
}
.institution-education-extras-panel--path-green > h3 { color: #166534; }
.institution-education-extras-panel--path-yellow {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.institution-education-extras-panel--path-yellow > h3 { color: #a16207; }
.institution-education-extras-panel--path-red {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2, #fff);
}
.institution-education-extras-panel--path-red > h3 { color: #b91c1c; }
.institution-education-extras-panel--path-blue {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff, #fff);
}
.institution-education-extras-panel--path-blue > h3 { color: #1d4ed8; }

.rama-test-summary { margin: 0 0 .85rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.rama-test-summary h4 { margin: 0 0 .35rem; }
.rama-test-summary .rama-narrative { margin: 0; }
.budget-more-accordion { margin-top: .85rem; }
.gefen-year-accordion { margin-top: .65rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .65rem; border: 1px solid var(--border); text-align: right; }
th { background: #eff6ff; }
tbody tr:nth-child(even) { background: #f8fafc; }
footer { padding: 2rem; color: var(--text-light); text-align: center; border-top: 1px solid var(--border); }
.seo-document { padding: clamp(1rem, 2vw, 1.75rem); background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.seo-document .dialog-header { align-items: flex-start; }
.report-actions { margin-top: 1.25rem; }
.report-section > h2 { margin: 0 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--border); color: var(--text); font-size: 1.1rem; }
.executive-summary { padding: 1rem 1.1rem; border: 1px solid #dbeafe; border-radius: 16px; background: linear-gradient(180deg, #fff, #f8fbff); }
.seo-quick-facts { margin-top: 1.25rem; }
.seo-quick-facts .metrics { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); margin-bottom: 0; }
.compact-accordion { border: 1px solid var(--border); border-radius: 14px; background: #f8fafc; overflow: hidden; }
.compact-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  list-style: none;
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 800;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.compact-accordion summary::-webkit-details-marker { display: none; }
.compact-accordion summary::after {
  content: "▾";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  margin-inline-start: auto;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: .7rem;
  line-height: 1;
  transition: transform .15s ease, background-color .15s ease;
}
.compact-accordion[open] > summary::after {
  transform: rotate(180deg);
  background: #dbeafe;
  color: var(--primary-dark);
}
.compact-accordion summary:hover::after { background: #cbd5e1; }
.compact-accordion summary span { color: var(--text-light); font-size: .82rem; font-weight: 600; }
.compact-accordion[open] summary { border-bottom: 1px solid var(--border); }
.compact-accordion .facts-list,
.compact-accordion .education-accordion,
.compact-accordion .table-wrap,
.compact-accordion .accordion-empty { padding: 1rem 1.1rem 1.1rem; }
.accordion-empty { color: var(--text-light); }
.classes-chart { display: flex; align-items: flex-end; gap: .4rem; overflow-x: auto; padding: .85rem .65rem; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); }
.class-bar-group { min-width: 2rem; display: grid; gap: .35rem; justify-items: center; }
.class-bar-total { color: var(--primary-dark); font-weight: 800; font-size: .8rem; }
.class-bar-stack { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; min-height: 24px; border-radius: 6px; overflow: hidden; background: #e2e8f0; }
.class-bar { display: block; width: 100%; }
.class-bar.regular { background: var(--primary); }
.class-bar.special { background: #0f766e; }
.class-bar-label { color: var(--text-light); font-size: .72rem; font-weight: 700; }
.classes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: .55rem;
  color: var(--text-light);
  font-size: .78rem;
}
.classes-legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.classes-legend .swatch {
  width: .75rem;
  height: .75rem;
  border-radius: 3px;
  display: inline-block;
}
.classes-legend .swatch.regular { background: var(--primary); }
.classes-legend .swatch.special { background: #0f766e; }

.seo-page .page-content {
  width: min(1120px, calc(100% - 2rem));
  padding-top: 1.25rem;
}

.stats-page .stats-hero {
  margin-bottom: 0;
}
.stats-eyebrow {
  margin: 0 0 .35rem;
  color: var(--text-light);
  font-size: .95rem;
  font-weight: 600;
}
.stats-hero__subtitle {
  max-width: 42rem;
  margin: .75rem auto 0;
  color: var(--text-light);
}
.stats-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 1rem;
  margin-top: 1.25rem;
}
.stats-hero__links a:not(.btn) {
  color: var(--primary-dark);
  font-weight: 600;
}
.stats-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2rem;
}
.stats-section,
.stats-filter-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.stats-filter-panel {
  margin-top: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-color: rgba(11, 58, 87, 0.18);
  background: linear-gradient(180deg, #f8fbfd 0%, var(--surface) 100%);
  box-shadow: 0 2px 12px rgba(11, 58, 87, 0.06);
}
.stats-filter-panel .section-heading h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}
.stats-filter-panel .section-heading p {
  font-size: 1rem;
}
.stats-filter-panel .section-heading {
  margin-bottom: 1.25rem;
}
.stats-filter-panel .btn-secondary {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  margin: .35rem 0 0;
  color: var(--text-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}
.stats-grid--coverage .stats-card .stat-note {
  min-height: 0;
}
.stats-card {
  padding: .85rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.stats-card h3 {
  margin: 0 0 .25rem;
  font-size: .92rem;
  line-height: 1.25;
  min-height: 2.3rem;
}
.stats-card .stat-value {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.stats-card .stat-note {
  margin: .3rem 0 0;
  color: var(--text-light);
  font-size: .82rem;
  line-height: 1.35;
}
.stats-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.stats-filter-grid label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep);
}
.stats-filter-grid select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  color: var(--text);
  background: white;
}
.stats-source-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
}
.stats-source-note > a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.stats-source-note .data-note {
  margin: 0.6rem 0 0;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}
.stats-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.stats-panel {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.stats-panel--wide {
  grid-column: 1 / -1;
}
.stats-panel h3,
.stats-panel h4 {
  margin: 0 0 .65rem;
}
.stats-subheading {
  margin-top: 1rem;
  font-size: 1rem;
}
.stats-panel-note {
  margin: -0.35rem 0 0.75rem;
  color: var(--text-light);
  font-size: .88rem;
}
.stat-bar__meta .gefen-program-link {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stat-bar__meta .gefen-program-link--disabled {
  color: inherit;
  text-decoration: none;
  cursor: default;
}
.stats-facts {
  margin: 0;
}
.stat-bars {
  display: grid;
  gap: .65rem;
}
.stat-bar {
  display: grid;
  gap: .25rem;
}
.stat-bar__meta {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--text-light);
  font-size: .92rem;
}
.stat-bar__track {
  width: 100%;
  height: .7rem;
  background: #e7ecef;
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  border-radius: inherit;
}
.stat-bar__note {
  color: var(--text-light);
  font-size: .82rem;
}
.stat-bar__note a {
  color: var(--primary-dark);
  font-weight: 600;
}
.stats-load-more {
  width: 100%;
  margin-top: 0.75rem;
}
.stats-load-more[hidden] {
  display: none;
}
.stats-empty,
.stats-footer {
  margin: 0;
  color: var(--text-light);
}
.stats-footer {
  margin-top: 1rem;
  font-size: .95rem;
}

@media (max-width: 900px) {
  .stats-grid,
  .stats-panels,
  .stats-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 701px) {
  .filters-fold > summary { display: none; }
}

@media (max-width: 700px) {
  .hero,
  .page-intro { padding: 0.9rem 1rem 0.85rem; }
  .category-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .category-tile { padding: 0.6rem 0.7rem; }
  .stats-grid,
  .stats-panels,
  .stats-filter-grid {
    grid-template-columns: 1fr;
  }
  .search-box { flex-direction: column; }
  .results-toolbar { padding: 0.85rem; gap: 0.55rem; }
  .grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .card { padding: 1rem; }
  .card-header { padding-bottom: 0.7rem; margin-bottom: 0.7rem; }
  .school-title { font-size: 1.08rem; }
  .metrics { gap: 0.5rem; margin-bottom: 1rem; }
  .profile-facts { margin-bottom: 0.5rem; }
  .profile-facts .metric-value { font-size: 0.85rem; }
  .metric { padding: 0.55rem 0.25rem; }
  .metric-value { font-size: 1rem; }
  .card-actions .btn { padding: 0.65rem; }
  .filter-bar label { flex-basis: 100%; }
  .clear-filters { width: 100%; }
  .pagination { gap: 0.65rem; }
  .pagination-btn { min-height: 2.5rem; min-width: 2.5rem; }
  .dialog-grid, .facts-list, .compact-facts, .comparison-snapshot-grid { grid-template-columns: 1fr; }
  .metric-compare-row { grid-template-columns: 1fr 1fr; }
  .institution-quick-facts .metrics {
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
  }
  .institution-quick-facts .metric {
    min-width: 4.5rem;
  }
  .institution-quick-facts .metric-value { font-size: .9rem; }
  .stat-block { gap: .45rem; }
  .stat-value { font-size: 1rem; }
  .staff-extras-list { grid-template-columns: 1fr; }
  .panel-fold > .panel-fold-summary {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
  }
  .panel-fold:not([open]) > .panel-fold-summary { border-bottom: 0; }
  .density-row { grid-template-columns: 95px 1fr 38px; }
  .budget-row { grid-template-columns: 92px 1fr 88px; gap: .5rem; }
  .gender-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact-strip { flex-direction: column; gap: .65rem; }
  .contact-link { display: block; padding: .7rem .85rem; border-radius: 6px; text-align: center; text-decoration: none; background: #eff6ff; }
  .contact-phone { background: var(--primary); color: #fff !important; }
  .mobile-call { display: block; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
  .panel.wide { grid-column: auto; }
  .classes-chart-card { overflow: hidden; }
  .classes-chart {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .25rem;
  }
}
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { width: auto; height: auto; background: white; }
  body:not(.seo-page) > :not(dialog) { display: none !important; }
  dialog[open] {
    display: block;
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  dialog::backdrop { display: none; }
  body.seo-page .skip-link,
  body.seo-page .site-header,
  body.seo-page .sidebar-nav,
  body.seo-page .site-footer { display: none !important; }
  body.seo-page .seo-layout { display: block !important; }
  body.seo-page main.report-document {
    display: block !important;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .dialog-shell { padding: 0; }
  .institution-view { display: none !important; }
  .report-document { display: block !important; }
  .close-button, .context-nav, .dialog-actions, .map-panel iframe { display: none !important; }
  .dialog-header, .panel, .report-section, .facts-list > div, .facts-rows div, .education-accordion details, table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .education-accordion details { display: block; }
  .education-accordion details:not([open]) > *:not(summary) { display: block; }
  .gender-pie, .budget-track span, .density-track span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .facts-list > div { padding: 6px; }
  .facts-groups { grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
  .facts-rows div { padding: 4px 0; border-bottom-color: #cbd5e1; }
  .report-section { margin-top: 14px; }
  .source-link { padding: 5px; }
  a { color: black; text-decoration: none; }
}

