/*
 * The standalone public form page: /f/{slug} and /p/{token}.
 *
 * Deliberately not brand-kit.css. That file carries the staff portal's shell —
 * a dark sidebar, panels, data tables — none of which exists here, and a
 * student page should not download it to use six tokens. What it shares is the
 * palette and the typeface, restated below with the same values and the same
 * names, so the two move together. The form itself is rendered by the
 * <asset-form> web component, which styles its own shadow root.
 */

:root {
  --blue-bright: #20c4f4;
  --blue-mid:    #008dd2;
  --blue-pale:   #E6F6FD;
  --blue-deep:   #006fab;  /* white-on-blue fill, ~5.0:1 — see embed.js */

  --ink:         #1A1A1A;
  --ink-soft:    #4A5568;
  --ink-muted:   #8A9BB0;

  --surface:     #FFFFFF;
  --surface-2:   #F0F8FD;
  --border:      #C8E8F8;

  --radius:      8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* One typeface across every Asset College surface. The web component
     inherits it from here rather than declaring its own, so an embedded form
     takes the host site's type and a form on this page takes ours. */
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface-2);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--blue-mid); color: #fff;
  padding: 8px 14px; border-radius: 6px; font-size: 14px; z-index: 100;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

.form-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.form-head { margin-bottom: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-head img { height: 36px; width: auto; display: block; }
.form-name { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.form-name[hidden] { display: none; }

#root {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
#root:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }

.placeholder {
  color: var(--ink-muted);
  font-size: 14px;
}

.form-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.form-foot a { color: var(--blue-deep); }

@media (max-width: 600px) {
  .form-shell { padding: 16px 14px 36px; }
  #root { padding: 18px; }
}
