/* Photo hero band for the parent portal and the pupils' CBT (under the top bar), and photo sign-in pages. */
.app-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #2E2F31; padding: 52px 20px 84px; }
.app-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center 30% / cover no-repeat; transform: scale(1.05); animation: app-hero-zoom 14s ease-out forwards; }
.app-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 31, 33, .6), rgba(30, 31, 33, .72)), linear-gradient(90deg, rgba(249, 101, 1, .38), rgba(249, 101, 1, 0) 65%); }
.app-hero-in { max-width: var(--hero-w, 960px); margin: 0 auto; }
.app-hero-row { display: flex; align-items: center; gap: 18px; }
.app-hero h1, .app-hero h2 { margin: 0; font-size: clamp(1.45rem, 3.4vw, 2.15rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.app-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .9); font-size: .98rem; }
.app-hero-back { display: inline-block; margin-bottom: 14px; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 5px 12px; border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.app-hero-back:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.app-hero-badge { flex: none; width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #FF9A4D, #F96501); border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); font-size: 1.8rem; font-weight: 700; color: #fff; }
.app-hero-badge img { width: 100%; height: 100%; object-fit: cover; }
/* the page content rises a little over the hero's lower edge */
.app-hero + main { position: relative; margin-top: -38px; }
@keyframes app-hero-zoom { to { transform: scale(1); } }
@media (max-width: 600px) {
  .app-hero { padding: 32px 16px 66px; }
  .app-hero-badge { width: 56px; height: 56px; border-radius: 16px; font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .app-hero.has-photo::before { animation: none; transform: none; } }

/* sign-in pages: the school photo behind the form */
.login-photo { position: relative; isolation: isolate; background: #2E2F31 !important; }
.login-photo::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 31, 33, .64), rgba(30, 31, 33, .8)), linear-gradient(90deg, rgba(249, 101, 1, .35), rgba(249, 101, 1, 0) 65%), var(--hero-img) center / cover no-repeat; }

/* inside a page (staff dashboard): a rounded photo card instead of a full-width band */
.app-hero.in-card { border-radius: 22px; padding: 34px 30px; margin-bottom: 22px; box-shadow: 0 18px 40px -24px rgba(30, 31, 33, .6); }
.app-hero.in-card .app-hero-in { max-width: none; }
.app-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.app-hero-meta span { font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); padding: 4px 11px; border-radius: 99px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 600px) { .app-hero.in-card { padding: 24px 18px; border-radius: 18px; } }

/* every other admin page: a slimmer card, no slow zoom (staff move between pages all day) */
.app-hero.compact { padding: 22px 26px; margin-bottom: 20px; border-radius: 18px; }
.app-hero.compact::before { animation: none; transform: none; }
.app-hero.compact .app-hero-row { gap: 16px; }
.app-hero.compact h1, .app-hero.compact h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.app-hero.compact p { font-size: .9rem; margin-top: 3px; }
.app-hero.compact .app-hero-badge { width: 52px; height: 52px; border-radius: 15px; border-width: 2px; }
.app-hero-badge .ic { width: 26px; height: 26px; }
.app-hero-kicker { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FFC08F; margin-bottom: 2px; }
@media (max-width: 600px) {
  .app-hero.compact { padding: 18px 16px; border-radius: 16px; }
  .app-hero.compact .app-hero-badge { width: 44px; height: 44px; border-radius: 13px; }
  .app-hero-badge .ic { width: 22px; height: 22px; }
}

/* admin top bar: a breadcrumb when the page has a hero */
.top-crumb { font-size: .9rem; color: var(--muted, #777); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-crumb b { font-weight: 400; margin: 0 4px; }
.top-crumb span { color: var(--ink, #222); font-weight: 600; }
