.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;
}
.budget-chart-below { margin: 0 0 1rem; }
.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-chart small { color: var(--text-light); }
.subsection-title { margin: 1rem 0 .65rem; color: var(--text); font-size: .95rem; }
.facts-group .subsection-title { margin: 0 0 .5rem; font-size: .88rem; }
.education-accordion .facts-list { padding: 0 1rem 1rem; }
.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;
}
.kindergarten-view .dialog-header,
.daycare-view .dialog-header { border-bottom-color: var(--border); }
.institution-view .dialog-header { border-bottom-color: var(--border); }
.institution-view.partial-school .dialog-header { border-bottom-color: #cbd5e1; background: #f8fafc; }
.authority-result-eyebrow {
  margin: 0 0 .35rem;
  color: #065f46;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.network-result-eyebrow {
  margin: 0 0 .35rem;
  color: #0369a1;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.authority-view .dialog-header { border-bottom-color: var(--border); }
.authority-view .eyebrow { color: var(--primary-dark); }
.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; }
.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; }
.socioeconomic-marker { display: inline-block; margin-inline-start: .35rem; font-weight: 800; text-decoration: none; }
.socioeconomic-marker--above { color: #b42318; }
.socioeconomic-marker--below { color: #067647; }
.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); }
.gefen-featured-list .source-link { background: linear-gradient(180deg, #fff, #f8fbff); border: 1px solid #dbeafe; }
.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; }
.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; }
.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; }
.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; }
.eyebrow { color: var(--primary); font-weight: 600; }
.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);
}
.table-wrap { overflow-x: auto; }
.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-section > h2 { margin: 0 0 1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--border); color: var(--text); font-size: 1.1rem; }
.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; }
.stats-eyebrow {
  margin: 0 0 .35rem;
  color: var(--text-light);
  font-size: .95rem;
  font-weight: 600;
}
.stat-bar__meta .gefen-program-link,
.stat-bar__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;
}
  .dialog-grid, .facts-list, .compact-facts, .comparison-snapshot-grid { 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; }
  body.seo-page main.report-document {
    display: block !important;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .report-document { display: block !important; }
  .dialog-header, .panel, .report-section, .facts-list > div, .facts-rows div, .education-accordion details, table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .facts-list { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .facts-list > div { padding: 6px; }
  .report-section { margin-top: 14px; }
  .source-link { padding: 5px; }
.inequality-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.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); }
.education-empty { margin: 0; padding: .75rem 1rem 1rem; color: var(--text-light); font-size: .85rem; }
.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; }
.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;
}
.partial-school-link { color: #b45309; font-weight: 600; }
.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; }
.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); }
.panel { padding: 1.2rem; border: 1px solid var(--border); border-radius: 10px; }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { margin-top: 0; }
.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; }
.eyebrow { color: var(--primary); font-weight: 600; }
.map-panel > a.navigate-button,
.map-panel > a.btn-primary {
  color: #fff;
}
.navigate-button.btn-primary { color: #fff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stats-filter-panel .btn-secondary {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
  .panel.wide { grid-column: auto; }
  .dialog-header, .panel, .report-section, .facts-list > div, .facts-rows div, .education-accordion details, table, tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .source-link { padding: 5px; }
