/* trusts.php (prototype) */
.trust-page { max-width: 1000px; margin: 0 auto; }
.trust-hero { text-align: center; margin-bottom: 14px; }
.trust-kicker { display: inline-block; margin: 0 0 4px; padding: 2px 10px; border-radius: 999px; background: var(--color-accent-light); color: var(--color-primary-dark); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.trust-lead { max-width: 720px; margin: 0 auto 12px; font-size: 1.02rem; line-height: 1.55; }
.trust-area-form { display: inline-flex; gap: 8px; align-items: center; }
.trust-area-form select { padding: 6px 10px; }
.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 16px; }
.trust-stat { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 14px 10px; text-align: center; }
.trust-stat-num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--color-primary-dark); line-height: 1.1; }
.trust-stat-label { font-size: 0.85rem; color: var(--color-text-muted); }
.trust-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; scroll-margin-top: 80px; }
.trust-card h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--color-primary-dark); }
.trust-card-council { background: #F3F8F8; border-color: #D3E5E7; }
.trust-read summary { cursor: pointer; }
.trust-read ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.5; }
.trust-read li { margin-bottom: 6px; }
.trust-h2 { font-size: 1.15rem; color: var(--color-primary-dark); margin: 18px 0 8px; }
.trust-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.trust-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; background: var(--color-surface); }
.trust-table th, .trust-table td { padding: 8px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
.trust-table th { font-size: 0.82rem; color: var(--color-text-muted); font-weight: 700; }
.trust-table .num { text-align: right; white-space: nowrap; }
.trust-th-sub { display: block; font-weight: 400; font-size: 0.75rem; }
.trust-row-council td { background: #F3F8F8; }
.trust-bar { display: inline-flex; width: 110px; height: 12px; border-radius: 6px; overflow: hidden; vertical-align: middle; background: #EEE; margin-right: 6px; }
.trust-bar-lg { width: 100%; max-width: 280px; height: 14px; }
.trust-bar-seg { display: inline-block; height: 100%; min-width: 4px; }
.trust-bar-text { font-size: 0.82rem; color: var(--color-text-muted); white-space: nowrap; }
.trust-band-well_above { background: #2F6B4F; }
.trust-band-above { background: #7DB46C; }
.trust-band-expected { background: #C9CDD1; }
.trust-band-below { background: #E3A27F; }
.trust-band-well_below { background: #B25B4A; }
.trust-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--color-text-muted); margin: 8px 0 18px; }
.trust-key-item { display: inline-flex; align-items: center; gap: 5px; }
.trust-key-item .trust-bar-seg { width: 14px; height: 10px; border-radius: 2px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 8px; font-size: 0.85rem; }
.trust-chips span { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; padding: 2px 10px; }
.trust-chips a { padding: 2px 4px; }
.trust-note { font-size: 0.88rem; color: var(--color-text-muted); margin: 0 0 8px; font-style: italic; }
.trust-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 8px 0; }
.trust-metric h3 { font-size: 0.8rem; margin: 0 0 4px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.trust-metric p { margin: 0 0 4px; line-height: 1.45; }
.trust-muted { color: var(--color-text-muted); font-size: 0.85rem; }
.trust-block { display: block; }
.trust-ring { display: inline-block; width: 10px; height: 10px; border: 2px solid #2E9443; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.trust-schools summary { cursor: pointer; font-weight: 600; color: var(--color-primary); margin-top: 6px; }
.trust-schools[open] summary { margin-bottom: 8px; }
.trust-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.trust-pill.trust-band-expected { color: #333; }
.trust-pill.trust-band-above { color: #1E3D16; }
.trust-ofsted-ri, .trust-ofsted-rc_attention { color: #9A5A1E; }
.trust-ofsted-inadequate, .trust-ofsted-rc_concern { color: #8E4133; font-weight: 600; }
.trust-foi-declined { color: #8E4133; font-weight: 600; }
.trust-foi-waiting, .trust-foi-notasked { color: var(--color-text-muted); font-style: italic; }
.trust-footnote { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 12px; }
@media (max-width: 700px) {
    .trust-stats { gap: 8px; }
    .trust-stat-num { font-size: 1.5rem; }
    .trust-metrics { grid-template-columns: 1fr; }
    .trust-card { padding: 14px; }
}
.trust-metric-wide { grid-column: 1 / -1; }
.trust-h3-sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.trust-money { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; }
.trust-money li { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--color-border); }
.trust-money li span { font-size: 0.8rem; color: var(--color-text-muted); }
.trust-money li strong { font-weight: 600; }
.trust-res { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
.trust-res-low { background: #F7DFD3; color: #8E4133; }
.trust-res-typical { background: #E6EEF0; color: var(--color-primary-dark); }
.trust-res-high { background: #FBE9C8; color: #7A4B0F; }
