/* EDITED IN PLACE (10/11, docs/GRADES-ON-PAGES.md: generators are retired for built pages). This file is no longer
   generated: mocks/src/school-detail/make_css.py made its first build and now refuses to overwrite it without --force.
   Edit the rules here; tools/css_lint.py guards them (a rule two pages share goes in core.css). The note below is history. */
/* TG school-detail.css: the school and district detail pages (/<st>/<town>/school/<id>,
   /<st>/<town>/district/<LEAID>/<slug>). Generated by mocks/src/school-detail/make_css.py: rules the live TownTapestry
   detail pages use (tools/css_audit.py on the Oct 10 renders), minus selectors core.css and schools.css already have
   (load order core -> schools -> school-detail), plus the page-local additions at the end. */
.pill{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);font-size:13.5px;font-weight:600;color:var(--ink-2);background:#fff}
.pill:hover{border-color:#c9ced7}
.pill i{font-style:normal;font-weight:500;color:var(--faint);font-size:12px}
.sd-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;border-radius:18px;padding:26px;background:linear-gradient(160deg,var(--accent-tint),#fff 70%);border:1px solid var(--line)}
.sd-id{display:flex;gap:20px;align-items:center;min-width:0;flex:1}
.sd-id .nog{width:var(--gb-big);height:var(--gb-big);border-radius:22px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--accent);flex:none}
.sd-id .nog .ic{width:40px;height:40px}
.sd-id h1{font-size:34px;letter-spacing:-.035em;line-height:1.1;margin-bottom:8px}
.sd-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.vrd li.good span{background:var(--accent-tint);color:var(--accent-ink)}
.vrd li.watch span{background:#fdecec;color:var(--bad)}
.pipe .pipe-me{background:var(--accent-tint)}
.pipe .pipe-me b{color:var(--accent-ink)}
.enr{display:flex;align-items:flex-end;gap:10px;height:150px}
.enr-c{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px}
.enr-c i{width:100%;max-width:56px;border-radius:6px 6px 0 0;background:var(--bar)}
.enr-c.on i{background:var(--accent)}
.enr-c span{font-size:12px;font-weight:600}
.enr-c small{font-size:11.5px;color:var(--muted)}
@media (max-width:640px){
  .sd-id h1{font-size:26px}
}
@media (max-width:640px){
  .sd-hero:has(>.shr-corner){padding-top:52px}
}

/* ===== Page-local additions (TG) ===== */
/* hero: the town's School Grade, one line under the address */
.sd-tg{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 0;font-size:14px;color:var(--ink-2)}

/* The school pages' one header, every edition (app/modules/schools/page.php scp_hero, Jamie 10/27): the site's dark hero
   (core.css .hb-hero, as on the Schools page); with the school's openly licensed photo, core.css's .hb-bg and .hb-credit
   (on a phone the photo fades behind the text, as on every dark hero) */
.sd-hero.hb-hero{background:radial-gradient(circle at 0 100%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 42%),var(--night);border-color:var(--night);padding:32px}
.sd-hero.hb-hero.has-photo{background:var(--night);padding-bottom:40px}
.sd-hero.hb-hero > :is(.sd-id,.sd-acts){position:relative;z-index:1}
.sd-hero.hb-hero.has-photo .sd-id{max-width:min(640px,64%)}
.sd-hero.hb-hero .sd-id .nog{background:var(--surface);border-color:var(--line);color:var(--accent-soft)}
.sd-id > div > p.muted{margin:10px 0 0;font-size:14.5px}
.sd-hero .hb-credit a{color:inherit;text-decoration:underline}
@media (max-width:640px){
  .sd-hero.hb-hero{padding:20px}
  .sd-hero.hb-hero .sd-id{flex-direction:column;align-items:flex-start;gap:14px}
  .sd-hero.hb-hero.has-photo .sd-id{max-width:none}
  .sd-hero.hb-hero .sd-acts{width:100%}
}
