:root {
  --navy: #1E1B4B;
  --navy-2: #35368F;
  --magenta: #E71788;
  --cyan: #08A8DD;
  --green: #049D54;
  --gold: #A86B00;
  --ink: #1C2430;
  --muted: #5F6B78;
  --line: #E4E0D8;
  --paper: #F7F5F1;
  --pink: #FDEBF4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: var(--navy-2); }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; border-bottom: 3px solid var(--magenta); background: #fff;
}
header.top img { height: 28px; }
header.top nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
header.top a, header.top button.link { color: var(--navy); text-decoration: none; font-weight: 700; background: none; border: 0; font: inherit; cursor: pointer; }
main { max-width: 980px; margin: 0 auto; padding: 24px 20px 64px; }
h1 { color: var(--navy); font-size: 1.8rem; margin: 0 0 8px; }
h2 { color: var(--navy); font-size: 1.2rem; margin: 28px 0 8px; }
.kicker { color: var(--magenta); font-weight: 700; letter-spacing: .04em; font-size: .8rem; margin: 0; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card { background: var(--paper); border-radius: 12px; padding: 14px 16px; }
.card strong { display: block; color: var(--navy); font-size: 1.25rem; }
label { display: block; font-weight: 700; margin: 12px 0 4px; }
fieldset { border: 1px solid #d9d6ea; border-radius: 8px; margin: 12px 0; padding: 8px 12px 12px; }
fieldset label { font-weight: 600; }
input, select, textarea {
  width: 100%; max-width: 520px; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
}
textarea { min-height: 120px; max-width: 100%; }
button, .button {
  display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 16px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
button.secondary, .button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choices label { margin: 0; font-weight: 700; }
.choices input { width: auto; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: #fff; }
.error { background: #FDECEC; padding: 10px 12px; border-radius: 8px; }
.note { background: #EEF0F8; padding: 12px 14px; border-left: 4px solid var(--navy-2); border-radius: 8px; }
.warn { background: #FEF7DF; padding: 12px 14px; border-left: 4px solid var(--gold); border-radius: 8px; }
.chart svg { width: 100%; height: auto; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .skills { grid-template-columns: 1fr; } header.top { flex-wrap: wrap; } }

/* Student assessment */
body.assess { background: #F4F7FB; }
body.assess main { max-width: 860px; }
.progress { height: 8px; background: #E4E0D8; border-radius: 99px; margin: 12px 0 20px; }
.progress span { display: block; height: 8px; background: var(--magenta); border-radius: 99px; }
.option, .key {
  min-height: 64px; font-size: 1.35rem; border: 2px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 12px; margin: 8px 0; width: 100%; text-align: left; padding: 12px 16px;
}
.option.selected { border-color: var(--magenta); background: var(--pink); }
.passage { font-family: Verdana, sans-serif; font-size: 1.15rem; line-height: 1.6; background: #fff; padding: 16px; border-radius: 12px; }
.keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 8px; }
.key { min-height: 48px; font-size: 1rem; text-align: center; padding: 8px; }
.home-tests { font-family: Avenir, "Avenir Next", "Trebuchet MS", sans-serif; }
.home-tests h1 { color: #004180; font-weight: 800; letter-spacing: -0.03em; font-size: 2.4rem; }
.test-choices { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.test-card {
  width: 250px; height: 250px; display: flex; flex-direction: column;
  background: #fff; color: #004180; text-decoration: none; border-radius: 10px;
  overflow: hidden; box-shadow: 0 12px 30px rgba(0, 65, 128, 0.14);
}
.test-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 65, 128, 0.2); }
.test-card .art { flex: 1; display: flex; align-items: center; justify-content: center; }
.test-card .art svg { width: 78%; height: auto; display: block; }
.test-card .name {
  font-weight: 800; font-size: 1.45rem; line-height: 1.15; text-align: center;
  padding: 16px 14px 18px;
}
.test-card .rainbow { height: 9px; background: linear-gradient(90deg, #00549F 0 20%, #BAD536 20% 40%, #FEBE18 40% 60%, #F58220 60% 80%, #D81B5E 80% 100%); }
.art-age { background: #00549F; }
.art-early { background: #5251A2; }
.art-comprehension { background: #F58220; }
.art-spelling { background: #BAD536; }
.art-results { background: #D81B5E; }
@media (max-width: 700px) {
  .test-card { width: 100%; height: 230px; }
}
.words { display: flex; flex-wrap: wrap; gap: 6px 10px; background: #fff; padding: 12px; border-radius: 12px; }
.words span { font-family: Verdana, sans-serif; }
