/* School search hubs, school breadcrumbs, council and trust school cards (H_hubs, 15 Oct 2026). All classes sh-. Hyphens only. */
body.ux.cec { --sh-primary: #1f6fb2; --sh-secondary: #6a3d9a; --sh-through: #0f8a6a; --sh-special: #b35c00; --sh-other: #6b6d72; }

/* breadcrumbs (hubs and school pages) */
body.ux.cec .sh-crumbs { padding-top: 1.4rem; font-size: 0.82rem; }
body.ux.cec .sh-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0; }
body.ux.cec .sh-crumbs li { display: inline-flex; align-items: center; color: #5d5f63; margin: 0; }
body.ux.cec .sh-crumbs li + li::before { content: "\203A"; margin: 0 0.5rem; color: #9a9ca0; font-weight: 700; }
body.ux.cec .sh-crumbs a { color: #3a3c40; text-decoration: none; font-weight: 700; padding: 0.35rem 0; }
body.ux.cec .sh-crumbs a:hover { color: var(--c-accent); text-decoration: underline; }
body.ux.cec .sh-crumbs [aria-current] { color: #5d5f63; }
body.ux.cec .sh-crumbs + .page-head, body.ux.cec .sh-crumbs + .cec-ph { padding-top: 0.6rem; }

/* page head on hubs */
body.ux.cec .sh-ph .lede { max-width: 62ch; }
body.ux.cec .sh-page .kpi-row { margin-bottom: 1.25rem; }

/* filters */
body.ux.cec .sh-filters { margin-bottom: 1.25rem; }
body.ux.cec .sh-frow { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.6rem; align-items: start; padding: 0.55rem 0; border-top: 1px solid var(--c-line); }
body.ux.cec .sh-frow:first-of-type { border-top: 0; }
body.ux.cec .sh-flab { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-ink); padding-top: 0.55rem; }
body.ux.cec .sh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
body.ux.cec .sh-chip { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--c-line-strong);
  background: #fff; color: var(--ux-ink) !important; font-size: 0.84rem; font-weight: 700; text-decoration: none; line-height: 1.2; cursor: pointer; font-family: inherit; }
body.ux.cec .sh-chip:hover { border-color: var(--c-deep); }
body.ux.cec .sh-chip.on { background: var(--c-deep); border-color: var(--c-deep); color: #fff !important; }
body.ux.cec .sh-chip.on .sh-cnt { color: rgba(255,255,255,.75); }
body.ux.cec .sh-chip:focus-visible, body.ux.cec .sh-linkchips a:focus-visible, body.ux.cec .sh-table a:focus-visible, body.ux.cec .sh-pager a:focus-visible, body.ux.cec .sh-crumbs a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
body.ux.cec .sh-cnt { color: #6b6d72; font-weight: 400; font-size: 0.8em; font-variant-numeric: tabular-nums; }
body.ux.cec .sh-result { margin: 0.7rem 0 0; font-size: 0.88rem; color: #3a3c40; }

/* map */
body.ux.cec .sh-mapcard { margin-bottom: 1.25rem; }
body.ux.cec .sh-map { height: 420px; border-radius: 12px; overflow: hidden; background: #e8e8e5; position: relative; }
body.ux.cec .sh-map .leaflet-tile-pane { filter: grayscale(.85) contrast(.92) brightness(1.06); opacity: .85; }
body.ux.cec .sh-map-sm { height: 340px; margin: 0.6rem 0 0.4rem; }
body.ux.cec .sh-map-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #5d5f63; font-size: 0.86rem; }
body.ux.cec .sh-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.7rem 0 1rem; padding: 0; font-size: 0.82rem; }
body.ux.cec .sh-legend li { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; color: #3a3c40; }
body.ux.cec .sh-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(18,19,20,.25); background: var(--sh-other); }
body.ux.cec .sh-dot-primary { background: var(--sh-primary); } body.ux.cec .sh-dot-secondary { background: var(--sh-secondary); }
body.ux.cec .sh-dot-all-through { background: var(--sh-through); } body.ux.cec .sh-dot-special { background: var(--sh-special); }
body.ux.cec .sh-mapnote { margin: 0.3rem 0 0; }
body.ux.cec .sh-pop { font-family: var(--ux-font); font-size: 0.86rem; line-height: 1.4; min-width: 180px; }
body.ux.cec .sh-pop a { font-weight: 700; color: var(--c-accent-ink); }
body.ux.cec .sh-pop span { display: block; color: #5d5f63; }

/* list */
body.ux.cec .sh-h2n { font-weight: 400; color: #6b6d72; font-size: 0.85em; margin-left: 0.25rem; }
body.ux.cec .sh-tablewrap { width: 100%; }
body.ux.cec .sh-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
body.ux.cec .sh-table thead th { text-align: left; padding: 0 0.6rem 0.55rem; white-space: nowrap; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-ink); }
body.ux.cec .sh-table thead th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0; }
body.ux.cec .sh-table thead th a:hover { text-decoration: underline; }
body.ux.cec .sh-table thead th a.on { color: var(--c-deep); }
body.ux.cec .sh-sortmark::after { content: ""; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 0.15rem; }
body.ux.cec .sh-table thead th[aria-sort="ascending"] .sh-sortmark::after { border-top: 0; border-bottom: 5px solid currentColor; }
body.ux.cec .sh-table td, body.ux.cec .sh-table tbody th { padding: 0.7rem 0.6rem; border-top: 1px solid var(--c-line); vertical-align: top; text-align: left; font-weight: 400; }
body.ux.cec .sh-table th:first-child, body.ux.cec .sh-table td:first-child { padding-left: 0; }
body.ux.cec .sh-table th:last-child, body.ux.cec .sh-table td:last-child { padding-right: 0; }
body.ux.cec .sh-table .sh-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ux.cec .sh-table thead th.sh-num a { justify-content: flex-end; }
body.ux.cec .sh-table tbody th { font-size: 0.9rem; text-transform: none; letter-spacing: normal; color: var(--ux-ink); white-space: normal; }
body.ux.cec .sh-table tbody th .sh-sub { text-transform: none; letter-spacing: normal; font-weight: 400; }
body.ux.cec .sh-mm { display: none; }
body.ux.cec .sh-n a { font-weight: 700; color: var(--ux-ink); text-decoration: none; }
body.ux.cec .sh-n a:hover { color: var(--c-accent); text-decoration: underline; }
body.ux.cec .sh-sub { display: block; color: #5d5f63; font-size: 0.8rem; margin-top: 0.15rem; }
body.ux.cec .sh-sub a { color: #5d5f63; font-weight: 400; }
body.ux.cec .sh-of { display: inline-block; font-weight: 700; font-size: 0.78rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--c-pale); color: #3a3c40; white-space: nowrap; }
body.ux.cec .sh-of1 { background: #e4f1e9; color: #0e5a38; } body.ux.cec .sh-of2 { background: #e5edf6; color: #1b4c77; }
body.ux.cec .sh-of3 { background: #faf0d3; color: #6f4e00; } body.ux.cec .sh-of4 { background: #fbe7e5; color: #9a1b12; }
body.ux.cec .sh-od { display: block; color: #5d5f63; font-size: 0.78rem; margin-top: 0.2rem; white-space: nowrap; }
body.ux.cec .sh-none { color: #6b6d72; }
body.ux.cec .sh-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.ux.cec .sh-pager { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
body.ux.cec .sh-pager a, body.ux.cec .sh-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 0.7rem; border-radius: 999px; border: 1px solid var(--c-line-strong); font-weight: 700; font-size: 0.86rem; text-decoration: none; color: var(--ux-ink); background: #fff; }
body.ux.cec .sh-pager span[aria-current] { background: var(--c-deep); border-color: var(--c-deep); color: #fff; }

/* side cards */
body.ux.cec .sh-bars { margin: 0 0 1rem; }
body.ux.cec .sh-bars h3 { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-ink); margin: 0 0 0.5rem; }
body.ux.cec .sh-bar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 3rem; gap: 0.6rem; align-items: center; font-size: 0.84rem; margin: 0 0 0.35rem; }
body.ux.cec .sh-bar .l { color: #3a3c40; overflow-wrap: anywhere; }
body.ux.cec .sh-bar .t { height: 8px; border-radius: 999px; background: var(--c-pale); overflow: hidden; }
body.ux.cec .sh-bar .t i { display: block; height: 100%; border-radius: 999px; background: #9a9ca0; }
body.ux.cec .sh-bar .t i.hi { background: var(--c-accent); }
body.ux.cec .sh-bar .v { text-align: right; font-variant-numeric: tabular-nums; color: #3a3c40; }
body.ux.cec .sh-linkchips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
body.ux.cec .sh-linkchips li { margin: 0; }
body.ux.cec .sh-linkchips a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 34px; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--c-pale); color: #2b2d31 !important; font-size: 0.83rem; font-weight: 700; text-decoration: none; }
body.ux.cec .sh-linkchips a:hover { background: var(--c-accent-tint); color: var(--c-accent-ink) !important; }
body.ux.cec .sh-trusts { list-style: none; margin: 0 0 0.6rem; padding: 0; }
body.ux.cec .sh-trusts li { margin: 0; padding: 0.45rem 0; border-top: 1px solid var(--c-line); font-size: 0.88rem; }
body.ux.cec .sh-trusts li:first-child { border-top: 0; }
body.ux.cec .sh-trusts a { font-weight: 700; }
body.ux.cec .sh-trusts .sh-cnt { display: block; }
body.ux.cec .sh-trusts2 { columns: 2 18rem; column-gap: 2rem; }
body.ux.cec .sh-trusts2 li { break-inside: avoid; }
body.ux.cec .sh-src { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; }
body.ux.cec .sh-src li { margin: 0 0 0.4rem; color: #4a4c50; }
body.ux.cec .sh-h3 { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-accent-ink); margin: 1rem 0 0.5rem; }

/* index */
body.ux.cec .sh-findbar { margin: 0 0 1.25rem; }
body.ux.cec .sh-find { width: 100%; max-width: 34rem; min-height: 48px; padding: 0.7rem 1.1rem; border-radius: 999px; border: 1px solid var(--c-line-strong); background: #fff; font: inherit; font-size: 1rem; box-shadow: var(--c-sh-sm); box-sizing: border-box; }
body.ux.cec .sh-find:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
body.ux.cec .sh-idx { margin-bottom: 1.25rem; }
body.ux.cec .sh-grp { margin: 1.1rem 0 0; }
body.ux.cec .sh-grp h3 { font-size: 0.95rem; margin: 0 0 0.55rem; }
body.ux.cec .sh-az { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.4rem 0 0; }
body.ux.cec .sh-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; border-radius: 8px; background: var(--c-pale); font-weight: 700; text-decoration: none; color: #2b2d31; }
body.ux.cec .sh-az a:hover { background: var(--c-accent-tint); color: var(--c-accent-ink); }

/* council card and trust card */
body.ux.cec .sh-mini { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; }
body.ux.cec .sh-mini li { margin: 0; padding: 0.45rem 0; border-top: 1px solid var(--c-line); font-size: 0.88rem; }
body.ux.cec .sh-mini li:first-child { border-top: 0; }
body.ux.cec .sh-councilcard .sh-mini a, body.ux.cec .sh-trusts a { font-weight: 700; color: var(--c-accent-ink); }
body.ux.cec .sh-showall { margin-top: 0.8rem; }
body.ux.cec .sh-trustcard .sh-frow { border-top: 0; padding: 0.2rem 0 0.4rem; }
body.ux.cec .sh-trustcard tr[hidden] { display: none; }

@media (max-width: 760px) {
  body.ux.cec .sh-map { height: 320px; }
  body.ux.cec .sh-frow { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  body.ux.cec .sh-flab { padding-top: 0; }
  /* the list becomes one block per school: name, type and town, then Ofsted and a single line of facts */
  body.ux.cec .sh-table thead th:nth-child(2) { display: none; }
  body.ux.cec .sh-table thead tr { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  body.ux.cec .sh-table thead th { padding: 0 0 0.4rem; }
  body.ux.cec .sh-table tbody tr { display: block; padding: 0.75rem 0; border-top: 1px solid var(--c-line); }
  body.ux.cec .sh-table tbody th { display: block; border: 0; padding: 0 !important; }
  body.ux.cec .sh-table tbody td { display: none; }
  body.ux.cec .sh-mm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin-top: 0.4rem; font-size: 0.82rem; color: #3a3c40; }
  body.ux.cec .sh-mm .sh-od { display: inline; margin: 0; }
  body.ux.cec .sh-mmf { flex-basis: 100%; }
  body.ux.cec .sh-bar { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) 2.6rem; }
}
