@charset "UTF-8";
/* ==========================================================================
   المؤسسات — page-institutions.css
   Nothing is verified for this page: no school, charity or centre names.
   The design carries a directory shell + an honest, dignified empty state.
   ========================================================================== */

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--ar-body); font-size: 13.5px; letter-spacing: normal;
  color: var(--muted); margin-bottom: var(--s4);
}
.crumb a { color: var(--muted); transition: color .25s var(--ease); }
.crumb a:hover { color: var(--gold-ink); }
:root[data-theme="dark"] .crumb a:hover { color: var(--gold); }
.crumb [aria-current] { color: var(--ink-2); }
.crumb-sep { color: var(--line-2); }

/* ---------- compact page hero ----------
   A quieter, grid-ruled treatment rather than the skyline motif — this
   page is presented as an index/ledger under construction, not a scene. */
.ihero {
  position: relative; overflow: hidden;
  padding: 168px var(--s5) var(--s7);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.ihero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 30% 20%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 100% at 30% 20%, #000 30%, transparent 78%);
  opacity: .7;
}
.ihero-in { max-width: 780px; }
.ihero h1 {
  font-family: var(--ar-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.45; letter-spacing: normal;
}
.ihero-x {
  font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 58ch;
  margin-top: var(--s3);
}

/* ---------- category filter (working chips) ---------- */
.in-filter {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-top: var(--s7); margin-bottom: var(--s6);
}
.in-chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--ar-body); font-size: 14.5px; font-weight: 500; letter-spacing: normal;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--ink-2); background: var(--surface);
  transition: background-color .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.in-chip svg { width: 15px; height: 20px; fill: currentColor; flex: none; }
.in-chip:hover { border-color: var(--navy); color: var(--ink); }
:root[data-theme="dark"] .in-chip:hover { border-color: var(--gold); }
.in-chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .in-chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #12203B; }
.in-count {
  font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: normal;
  padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.18);
}
.in-chip:not([aria-selected="true"]) .in-count { background: var(--bg-2); color: var(--muted); }

/* ---------- empty state ---------- */
.in-empty {
  text-align: center; max-width: 560px; margin-inline: auto;
  padding: var(--s7) var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.in-empty-ico { width: 40px; height: 52px; fill: var(--line-2); margin: 0 auto var(--s4); }
.in-empty h3 { font-family: var(--ar-display); font-weight: 400; font-size: 23px; margin-bottom: var(--s3); }
.in-empty p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: var(--s5); }

/* ---------- preview: unmistakably a placeholder ---------- */
.in-ghost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s6); }
.in-ghost {
  position: relative; display: flex; flex-direction: column; gap: var(--s3);
  padding: var(--s5); border-radius: 14px;
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 12px, var(--surface) 12px 24px);
}
.in-ghost-tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: normal;
  color: var(--gold-ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 3px 10px;
}
:root[data-theme="dark"] .in-ghost-tag { color: var(--gold); }
.in-ghost-ico {
  width: 34px; height: 34px; border-radius: 50%; background: var(--line-2); opacity: .8;
}
.in-ghost-bar { display: block; height: 10px; border-radius: 6px; background: var(--line-2); opacity: .8; }
.in-ghost-bar-l { width: 72%; }
.in-ghost-bar-s { width: 45%; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .ihero { padding-top: 140px; }
  .in-ghost-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ihero { padding: 128px var(--s4) var(--s6); }
  .in-filter { gap: var(--s2); }
  .in-chip { font-size: 13.5px; padding: 9px 14px; }
  .in-ghost-grid { grid-template-columns: 1fr; }
  .in-empty { padding: var(--s6) var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  .in-chip { transition: none; }
}
