/* THE PAGE HEADER (job S3-01, 20 Nov 2026): ONE header for the dashboard, a subject's and a unit's page and
   the delete-account page (and /revise, retired on 20 Nov 2026 by job S5-08) (account and error states included). The pupil met three kinds of top: the dashboard's
   (logo, controls, account circle), "Home" and a moon (the subject pages), a centred logo and a menu of one link
   (/revise), "Home" with an arrow (the account page). Now: the logo on the left, which goes Home (svHome, js/util.js),
   then the page's own controls, one menu (the settings button, js/dash-a11y.js) and the account circle at the right
   end. js/page-header.js draws it into <header class="top svh">; this file is its look, loaded before the shared
   bar, sheet and buttons. A lesson and a practice lesson keep their own header (a school's logo goes there). */
.svh{box-sizing:border-box;width:100%;max-width:1000px;margin:0 auto;padding:18px clamp(16px,4vw,32px) 6px;display:flex;align-items:center;gap:14px}
.svh .svh-logo{position:relative;font-family:'Young Serif',serif;font-size:1.22rem;font-weight:400;color:#1d1c1a;white-space:nowrap;text-decoration:none;flex:none}
.svh .svh-logo::before{content:"";position:absolute;inset:-12px -6px}   /* a thumb's 44px; the drawing stays the size it is */
.svh .brandlock{height:.30em;width:auto;margin-left:.5px;vertical-align:baseline}   /* the padlock is the full stop */
.svh .svh-school{height:32px;width:auto;max-width:140px;object-fit:contain;flex:none;margin-left:2px}   /* a subscribing school's logo */
.svh .svh-school[hidden],.svh .svh-me:empty{display:none}
.svh .sp{flex:1}
.svh .svh-me{display:flex;align-items:center;flex:none}
.svh :is(.svset,.sv-hdr-av,.avatar){position:relative;margin:0}
.svh :is(.sv-hdr-av,.avatar)::before{content:"";position:absolute;inset:-6px}   /* 44px to press, as css/touch.css */
.svh .svset::before{content:"";position:absolute;inset:-7px}   /* it has a 1px border, which the ::before sits inside */
body.dark-mode .svh:not(.svh-day) .svh-logo{color:#f1ede6}
body.dark-mode .svh:not(.svh-day) .svset{background:#211f1c;border-color:#36332e;color:#b3aea6}   /* the dashboard's night colours, on a page whose own tokens have none */
/* a page with no night look (the delete-account page, css/pages.css) keeps the day header when dark mode is on */
body.dark-mode .svh-day .sv-hdr-av{background:#221E19;color:#faf8f5}
@media (max-width:700px){ .svh{gap:10px;padding-top:14px} .svh .svh-school{height:26px;max-width:96px} }
@media (max-width:480px){ .svh{gap:6px} .svh .svh-logo{font-size:1.1rem} }
@media (max-width:380px){ .svh{gap:4px} .svh .svh-logo{font-size:1rem} }

/* the night look (job S6-01): the header's settings button and logo take the night's colours (css/buttons.css) */
body.dark-mode .svh:not(.svh-day) .svh-logo{color:var(--sv-night-ink,#f1ede6)}
body.dark-mode .svh:not(.svh-day) .svset{background:var(--sv-night-card,#211f1c);border-color:var(--sv-night-line,#36332e);color:var(--sv-night-sec,#b3aea6)}
