/* Rating survey. The rating screen's rules are copied from synthgen.blind.PAGE so the website looks like the
   P4 pages; the additions for the website's own pages are at the end. */
:root { color-scheme:light; --bg:#f3f4f6; --surface:#ffffff; --fg:#1d2127; --muted:#5b6571; --line:#d6dbe1;
  --accent:#0c6577; --accent-fg:#ffffff; --accent-weak:#e1eff2; --warn-bg:#fdf5e1; --warn-line:#d9b55a;
  --focus:#1b6fd8; --shadow:0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme:dark; --bg:#121518;
  --surface:#1b1f24; --fg:#e8ebef; --muted:#9ca6b1; --line:#323940; --accent:#5ec1d1; --accent-fg:#0b1214;
  --accent-weak:#15343b; --warn-bg:#2b2516; --warn-line:#806a2c; --focus:#8ab4f8; --shadow:none; } }
* { box-sizing:border-box; }
html, body { margin:0; }
body { background:var(--bg); color:var(--fg); font:16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
button { font:inherit; color:inherit; min-height:44px; padding:8px 16px; border-radius:10px; border:1px solid var(--line);
  background:var(--surface); cursor:pointer; }
button:hover:not(:disabled) { border-color:var(--muted); }
button.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); font-weight:600; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.big { min-height:56px; font-size:18px; padding:12px 32px; border-radius:12px; }
button.link { border:0; background:none; padding:8px 6px; color:var(--accent); text-decoration:underline; font-size:15px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* header */
.top { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:12px; padding:6px 16px;
  min-height:58px; background:var(--surface); border-bottom:1px solid var(--line); }
.brand { display:flex; flex-direction:column; line-height:1.2; min-width:0; }
.brand .ttl { font-weight:650; }
.brand .who { font-size:13px; color:var(--muted); }
.prog { flex:1; min-width:120px; max-width:520px; margin:0 auto; }
#progress { font-size:14px; font-weight:600; }
.bar { height:8px; background:var(--line); border-radius:4px; overflow:hidden; margin-top:4px; }
#barfill { display:block; height:100%; width:0; background:var(--accent); transition:width .25s; }
.saved { font-size:13px; color:var(--muted); min-width:5.5em; text-align:right; opacity:0; transition:opacity .4s; }
.saved.on { opacity:1; }
.saved.bad { color:#b3261e; font-weight:600; }
.menu { position:relative; }
.menupop { position:absolute; right:0; top:calc(100% + 6px); display:flex; flex-direction:column; gap:4px; padding:8px;
  min-width:250px; background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.menupop button { text-align:left; border-color:transparent; }

/* welcome and finish */
.panel { max-width:720px; margin:32px auto; padding:28px 32px; background:var(--surface); border:1px solid var(--line);
  border-radius:16px; box-shadow:var(--shadow); }
.panel h1 { margin:0 0 12px; font-size:28px; line-height:1.2; }
.eyebrow { margin:0 0 4px; color:var(--muted); font-size:14px; }
.steps { padding-left:1.2em; margin:0 0 16px; }
.steps li { margin:6px 0; }
.small { font-size:14px; color:var(--muted); }
.warn { margin:16px 0 24px; padding:12px 16px; background:var(--warn-bg); border:1px solid var(--warn-line);
  border-left-width:6px; border-radius:10px; font-size:15px; }
.center { text-align:center; }

/* one item */
#items { padding-bottom:70px; }
.card { display:none; }
.card.current { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(340px, 1fr); gap:20px; align-items:start;
  max-width:1600px; margin:0 auto; padding:14px 16px; }
.card.current[data-kind=keyframe] { grid-template-columns:minmax(0, 1fr) minmax(340px, 1.15fr); }
.media { position:sticky; top:72px; }
.media video, .media img { display:block; width:100%; max-height:calc(100vh - 190px); object-fit:contain;
  background:#000; border-radius:10px; }
.media video { aspect-ratio:16/9; }
.mtools { display:flex; justify-content:flex-end; margin-top:8px; }
.mhint { margin:6px 0 0; font-size:13px; color:var(--muted); text-align:right; }
button.zoom { display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; border-radius:10px; }
.media.zoomed button.zoom { position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.92); border-radius:0; cursor:zoom-out; }
.media.zoomed img { width:auto; height:auto; max-width:100vw; max-height:100vh; border-radius:0; }
.qs { max-height:calc(100vh - 160px); overflow:auto; padding:2px 6px 2px 2px; }
.itemhead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; }
.q { border:0; margin:0 0 10px; padding:0; }
.q legend { padding:0; margin-bottom:6px; font-weight:600; font-size:16px; }
.q legend .hint { font-weight:400; color:var(--muted); font-size:14px; }
.q.answered legend::after { content:" \2713"; color:var(--accent); font-weight:700; }
.opts { display:flex; flex-wrap:wrap; gap:6px; }
.opts.list { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); }
.opts.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); }
.opt { position:relative; display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px 8px 12px;
  background:var(--surface); border:1.5px solid var(--line); border-radius:10px; cursor:pointer; font-size:15px;
  line-height:1.3; user-select:none; }
.opts.row .opt { flex:1 1 auto; justify-content:center; text-align:center; }
.opt input { position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.opt:hover { border-color:var(--muted); }
.opt:focus-within { outline:3px solid var(--focus); outline-offset:2px; }
.opt.sel { border-color:var(--accent); background:var(--accent-weak); box-shadow:inset 0 0 0 1.5px var(--accent);
  font-weight:600; }
.opt.sel::after { content:"\2713"; margin-left:auto; color:var(--accent); font-weight:700; }
.opts.row .opt.sel::after { margin-left:6px; }
.opt .t::first-letter { text-transform:uppercase; }
.q.active .opt:not(.scale)::before { content:attr(data-key); display:inline-flex; align-items:center; justify-content:center;
  min-width:20px; height:20px; border:1px solid var(--line); border-radius:5px; font:600 12px/1 ui-monospace, Consolas,
  monospace; color:var(--muted); background:var(--bg); }
.opts.scales { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.opt.scale { flex-direction:column; justify-content:flex-start; gap:2px; padding:8px 4px; text-align:center; }
.opt.scale .n { font-size:20px; font-weight:700; line-height:1.1; }
.opt.scale small { font-size:12px; color:var(--muted); line-height:1.2; }
.opt.scale.sel::after { position:absolute; top:3px; right:6px; margin:0; }
input.other { display:block; width:100%; min-height:44px; margin:2px 0 0; padding:8px 12px; font:inherit; color:var(--fg);
  background:var(--surface); border:1.5px solid var(--line); border-radius:10px; grid-column:1 / -1; }
.opts + input.other { margin-top:8px; }
details.note { margin:0; }
details.note summary { display:inline-flex; align-items:center; min-height:44px; cursor:pointer; color:var(--accent);
  font-size:15px; }
details.note textarea { display:block; width:100%; min-height:70px; margin-top:4px; padding:8px 12px; font:inherit;
  color:var(--fg); background:var(--surface); border:1.5px solid var(--line); border-radius:10px; }

/* bottom navigation */
.nav { position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex; align-items:center; gap:12px;
  padding:10px 16px; background:var(--surface); border-top:1px solid var(--line); }
.nav .mid { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; text-align:center; }
#missing { font-size:14px; }
.kbd { font-size:12px; color:var(--muted); }
#next { min-width:140px; }

/* overview, tiles, tip */
.overlay { position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.45); overflow:auto; }
.overlay .panel { margin:6vh auto; }
.ovhead { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ovhead h2 { margin:0; }
.legend { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; font-size:14px; color:var(--muted); }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(56px, 1fr)); gap:8px; margin:12px 0; }
.tile { min-height:48px; padding:4px; font-weight:600; font-size:15px; border-radius:8px; }
.tile.mini { display:inline-flex; align-items:center; justify-content:center; min-height:26px; min-width:30px;
  padding:0 4px; border:1px solid var(--line); background:var(--surface); }
.tile.part { border-style:dashed; border-color:var(--muted); }
.tile.done { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
.tile.here { outline:3px solid var(--fg); outline-offset:1px; }
.tip { position:fixed; left:50%; bottom:76px; z-index:30; transform:translateX(-50%); display:flex; align-items:center;
  gap:10px; flex-wrap:wrap; max-width:calc(100vw - 32px); padding:8px 8px 8px 16px; background:var(--surface);
  border:1px solid var(--warn-line); border-radius:12px; box-shadow:var(--shadow); font-size:15px; }

@media (max-width:980px) {
  .card.current { grid-template-columns:1fr; gap:14px; }
  .media { position:static; }
  .media video, .media img { max-height:none; }
  .qs { max-height:none; overflow:visible; }
}
@media (max-width:640px) {
  .top { flex-wrap:wrap; }
  .prog { order:5; flex-basis:100%; max-width:none; }
  .panel { margin:16px; padding:20px; }
  .kbd { display:none; }
  #next { min-width:110px; }
}
@media (prefers-reduced-motion: reduce) { * { transition:none !important; } }

/* ---- website additions ---- */
a.button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 16px;
  border-radius:10px; border:1px solid var(--line); background:var(--surface); color:inherit; text-decoration:none;
  font-weight:600; }
a.button.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
a.button.big { min-height:56px; font-size:18px; padding:12px 32px; border-radius:12px; }
.docmain { padding:0 16px; }
.panel h2 { margin:20px 0 6px; font-size:19px; }
.panel p { margin:0 0 12px; }
video.walk { display:block; width:100%; margin:8px 0 20px; border-radius:10px; background:#000; }
.draftnote { margin:0 0 16px; padding:10px 14px; border:2px dashed var(--warn-line); border-radius:10px;
  background:var(--warn-bg); font-weight:600; }
.info { margin-bottom:12px; }
form.consent fieldset { border:1px solid var(--line); border-radius:12px; margin:0 0 16px; padding:12px 16px; }
form.consent legend { font-weight:600; padding:0 6px; }
form.consent .hint { font-weight:400; color:var(--muted); font-size:14px; }
label.tick { display:flex; align-items:flex-start; gap:10px; min-height:44px; padding:8px 0; cursor:pointer; }
label.tick input { width:20px; height:20px; margin:2px 0 0; flex:none; accent-color:var(--accent); }
.roles { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:0 16px; }
.error { color:#b3261e; font-weight:600; }
.practice { display:inline-block; margin:0 0 8px; padding:4px 10px; border-radius:999px; background:var(--warn-bg);
  border:1px solid var(--warn-line); font-size:14px; font-weight:600; }
.tbl { border-collapse:collapse; width:100%; margin:0 0 16px; font-size:15px; }
.tbl th, .tbl td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); }
@media (max-width:640px) { .panel { margin:16px auto; padding:20px 16px; } }

/* ---- research and cookie notice ---- */
.notice { position:fixed; left:16px; right:16px; bottom:16px; z-index:50; display:flex; align-items:center; gap:16px;
  max-width:880px; margin:0 auto; padding:12px 16px; background:var(--surface); border:1px solid var(--line);
  border-radius:12px; box-shadow:0 4px 24px rgba(0,0,0,.18); font-size:15px; }
.notice p { margin:0; flex:1; }
.notice a { color:var(--accent); }
.notice button { flex:none; min-width:88px; }
body.rating .notice { bottom:84px; }
@media (max-width:640px) { .notice { flex-direction:column; align-items:stretch; gap:10px; left:8px; right:8px; bottom:8px; }
  body.rating .notice { bottom:76px; } }

/* =====================================================================================================
   Style C (2026-11-03): University header, calm centred pages, pill buttons. Overrides the rules above.
   ===================================================================================================== */
:root { --navy:#0b1f3a; --navy-fg:#ffffff; --navy-muted:#c7d2df; --accent:#0e7c86; --accent-fg:#ffffff;
  --accent-weak:#e8f4f5; --accent-ink:#0b5a61; --glow:#e9f3f4; --bg:#f6f7f9; --surface:#ffffff; --line:#e3e7ec;
  --fg:#14202e; --muted:#5b6876; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --navy:#0a1628; --accent:#4fb8c2;
  --accent-fg:#06181b; --accent-weak:#123238; --accent-ink:#9fdde3; --glow:#10262b; --bg:#101418; --surface:#171c22;
  --line:#2b333c; --fg:#e8ecf0; --muted:#9aa6b2; } }
body { font-family:"Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }

/* buttons */
button, a.button { border-radius:999px; }
button.primary, a.button.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-fg); }
button.big, a.button.big { min-height:52px; padding:12px 30px; font-size:17px; border-radius:999px; }
button.primary:disabled { opacity:.4; }

/* site header and footer */
header.site { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 28px;
  background:var(--navy); color:var(--navy-fg); }
header.site .brandlink { display:block; line-height:0; }
img.uoh { display:block; height:44px; width:auto; }
header.site .siteright { text-align:right; font-size:13px; line-height:1.35; color:var(--navy-muted); }
header.site .siteright b { display:block; color:var(--navy-fg); font-weight:600; }
footer.sitefoot { display:flex; justify-content:space-between; gap:12px 32px; flex-wrap:wrap; padding:16px 28px;
  font-size:13px; color:var(--muted); border-top:1px solid var(--line); background:var(--bg); }
footer.sitefoot span:first-child { flex:1 1 420px; }
body.doc { display:flex; flex-direction:column; min-height:100vh; }
body.doc main.docmain { flex:1; padding:0 16px 32px; background:radial-gradient(1200px 320px at 50% -60px, var(--glow) 0%, var(--bg) 70%); }
body.doc .panel { border-radius:16px; box-shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(11,31,58,.06); }
.eyebrow { margin:0 0 8px; font-size:12px; letter-spacing:1.2px; text-transform:uppercase; font-weight:700; color:var(--accent); }

/* landing */
.hero { max-width:760px; margin:0 auto; padding:56px 8px 36px; text-align:center; }
.hero h1 { margin:6px auto 14px; font-size:40px; line-height:1.12; letter-spacing:-.6px; }
.hero .lede { margin:0 auto; max-width:600px; font-size:17px; line-height:1.55; color:var(--muted); }
ul.chips { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; list-style:none; padding:0; margin:20px 0 28px; }
ul.chips li { padding:6px 14px; border-radius:999px; background:var(--accent-weak); color:var(--accent-ink); font-size:14px; font-weight:600; }
.walkwrap { margin:36px auto 0; max-width:640px; text-align:left; }
.walkwrap h2 { font-size:18px; margin:0 0 8px; }
.stills { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; max-width:1100px; margin:8px auto 0; padding:0 8px; }
.stills img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; border-radius:12px; }

/* consent */
.formpage { max-width:760px; margin:0 auto; padding:44px 8px 12px; }
.formpage > .eyebrow, .formpage > h1 { text-align:center; }
.formpage > h1 { margin:0 0 24px; font-size:32px; letter-spacing:-.4px; }
.infogrid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.infocard { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.infocard h2 { margin:0 0 6px; font-size:16px; }
.infocard p { margin:0; font-size:14.5px; line-height:1.5; color:var(--muted); }
p.contact { margin:12px 2px 0; font-size:14px; color:var(--muted); }
p.contentnote { margin:18px 0 0; padding:12px 16px; border-radius:12px; background:var(--warn-bg); border:1px solid var(--warn-line); font-size:14px; }
form.consent fieldset { border:0; padding:0; margin:22px 0 0; }
form.consent legend { font-weight:650; margin-bottom:10px; padding:0; }
form.consent .hint { font-weight:400; color:var(--muted); font-size:14px; }
label.tickrow { display:flex; align-items:flex-start; gap:12px; min-height:48px; padding:12px 16px; margin-bottom:8px;
  background:var(--surface); border:1.5px solid var(--line); border-radius:12px; cursor:pointer; font-size:15px; }
label.tickrow input { width:20px; height:20px; margin:1px 0 0; flex:none; accent-color:var(--accent); }
label.tickrow:has(input:checked) { border-color:var(--accent); background:var(--accent-weak); }
.pills { display:flex; flex-wrap:wrap; gap:8px; }
label.pill { position:relative; display:inline-flex; align-items:center; min-height:40px; padding:8px 16px;
  border:1.5px solid var(--line); border-radius:999px; background:var(--surface); cursor:pointer; font-size:14.5px; }
label.pill input { position:absolute; opacity:0; width:1px; height:1px; }
label.pill:has(input:checked) { border-color:var(--accent); background:var(--accent-weak); color:var(--accent-ink); font-weight:600; }
label.pill:focus-within, label.tickrow:focus-within { outline:3px solid var(--focus); outline-offset:2px; }
form.consent .center { margin-top:26px; }

/* rating screen */
body.rating { background:var(--bg); }
header.top { background:var(--navy); color:var(--navy-fg); border-bottom:0; padding:8px 20px; min-height:60px; gap:16px; }
header.top img.uoh { height:36px; flex:none; }
header.top .prog { max-width:480px; }
header.top .progline { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
header.top #progress { font-weight:600; color:var(--navy-fg); }
header.top .who { color:var(--navy-muted); white-space:nowrap; }
header.top .bar { background:rgba(255,255,255,.18); height:6px; border-radius:3px; }
header.top #barfill { background:#5ec8d1; border-radius:3px; }
header.top .saved { color:var(--navy-muted); }
header.top .ovbtn { background:transparent; color:var(--navy-fg); border:1px solid rgba(255,255,255,.4); min-height:38px; padding:6px 16px; }
.card.current { padding:20px; }
.media video, .media img { border-radius:14px; }
.qs { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:18px 18px 8px; }
.opt { border-radius:12px; border-width:1px; }
.opt.sel { box-shadow:none; border-color:var(--accent); background:var(--accent-weak); color:var(--accent-ink); }
.nav { border-top:1px solid var(--line); }
body.rating .panel { border-radius:16px; }

/* notice bar */
.notice { border-radius:14px; }

@media (max-width:820px) {
  .stills { grid-template-columns:repeat(2, 1fr); }
  .infogrid { grid-template-columns:1fr; }
  .card.current, .card.current[data-kind=keyframe] { grid-template-columns:1fr; }
  .media { position:static; }
}
header.top .ovbtn { margin-left:auto; }
.hero h1, .formpage > h1, .panel h1 { text-wrap:balance; }
@media (max-width:640px) {
  header.site { padding:10px 16px; }
  img.uoh { height:36px; }
  header.site .siteright span { display:none; }
  header.top { flex-wrap:wrap; padding:8px 12px; }
  header.top img.uoh { height:28px; }
  .hero { padding:36px 4px 24px; }
  .hero h1 { font-size:30px; }
  .formpage > h1 { font-size:26px; }
}
