/* Plain, Google Forms–like: one narrow column of white cards on a tinted page, a coloured bar on the title card,
   square checkboxes, underlined text inputs, Back / Next / Submit at the bottom. */
:root {
  --page: #eaf2f1; --card: #ffffff; --ink: #202124; --muted: #5f6368; --line: #dadce0;
  --accent: #0f6b63; --accent-soft: #e3f1ef; --err: #d93025;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #121a1c; --card: #1f2a2d; --ink: #e8eaed; --muted: #9aa0a6; --line: #3c4a4e;
  --accent: #5cc4b6; --accent-soft: #1d3a37; --err: #f28b82; color-scheme: dark; } }
:root[data-theme="dark"] {
  --page: #121a1c; --card: #1f2a2d; --ink: #e8eaed; --muted: #9aa0a6; --line: #3c4a4e;
  --accent: #5cc4b6; --accent-soft: #1d3a37; --err: #f28b82; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 14px/1.5 Roboto, Arial, sans-serif; }
.form { max-width: 640px; margin: 0 auto; padding: 12px 16px 48px; display: grid; gap: 12px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.card.head { border-top: 10px solid var(--accent); }
.card.head h1 { font-size: 30px; font-weight: 400; line-height: 1.25; margin: 0 0 8px; }
.card.head p { margin: 0 0 6px; }
.card.head .req-note { color: var(--err); font-size: 13px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.card h2 { font-size: 16px; font-weight: 400; margin: 0 0 4px; }
.card .help { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.req { color: var(--err); }
.card.invalid { border-color: var(--err); }
.card .msg { color: var(--err); font-size: 12px; margin-top: 10px; }

/* text inputs: an underline, like Forms */
input[type=text], input[type=email] { width: 100%; max-width: 100%; font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; }
input[type=text]:focus, input[type=email]:focus { border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; min-width: 200px; }

/* checkbox and radio rows */
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; cursor: pointer; }
.opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.opt .sub { display: block; color: var(--muted); font-size: 12.5px; }
.opt.off .lbl { color: var(--muted); }

/* blank short-answer rows for Concepts we missed */
.adds { display: grid; gap: 4px; }

.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { font: 500 14px Roboto, Arial, sans-serif; border-radius: 4px; padding: 9px 24px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--card); }
.btn[disabled] { opacity: .6; cursor: default; }
.progress { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.progress .track { width: 160px; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.progress .track i { display: block; height: 100%; background: var(--accent); }
.foot { text-align: center; color: var(--muted); font-size: 12px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.cuts { margin: 8px 0 0; padding-left: 20px; columns: 2 200px; }

@media (max-width: 560px) {
  .form { padding: 8px 8px 40px; }
  .card { padding: 18px 16px; }
  .card.head h1 { font-size: 24px; }
  .progress .track { width: 90px; }
}

/* ---------- whole course on one page ---------- */
.form.wide { max-width: 920px; }
.stick { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stick select { min-width: 0; padding: 6px 8px; }
.card.area { padding: 18px 20px 14px; scroll-margin-top: 60px; }
.area-title { font-size: 20px !important; margin-bottom: 6px !important; }
.area-title .help { font-size: 13px; margin: 0; }
h3.grp { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 14px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
.cols .opt { padding: 4px 0; gap: 8px; font-size: 13.5px; line-height: 1.35; position: relative; }
.cols .opt input { width: 16px; height: 16px; }
.opt .kind { color: var(--muted); font-size: 12px; }
/* "Includes…" on hover: a dotted underline says there is more, the note appears above the row */
.opt.tip .lbl { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.opt.tip:hover::after, .opt.tip:focus-within::after {
  content: attr(data-tip); position: absolute; left: 24px; bottom: calc(100% + 2px); z-index: 4; width: max-content; max-width: 280px;
  background: #3c4043; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 9px; border-radius: 4px; pointer-events: none; }
.card.area .adds { margin-top: 12px; }
.card.area .adds input { font-size: 13.5px; }

@media (max-width: 760px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cols { grid-template-columns: 1fr; } }

/* ---------- importance ratings ---------- */
.cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 24px !important; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); position: relative; font-size: 13.5px; line-height: 1.3; }
.row .lbl { min-width: 0; }
.row.tip .lbl { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
.row.tip:hover::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 2px); z-index: 4; width: max-content; max-width: 300px;
  background: #3c4043; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 9px; border-radius: 4px; pointer-events: none; }
.rate { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pill { font: 500 11.5px Roboto, Arial, sans-serif; border: 0; background: var(--card); color: var(--muted); padding: 4px 9px; cursor: pointer; }
.pill + .pill { border-left: 1px solid var(--line); }
.pill:hover { background: var(--accent-soft); color: var(--ink); }
.pill.V[aria-checked="true"] { background: var(--accent); color: var(--card); }
.pill.S[aria-checked="true"] { background: #8fcfc6; color: #0b2f2b; }
.pill.N[aria-checked="true"] { background: #5f6368; color: #fff; }
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the add rows: the same row, with the name typed in */
.row.add input { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed var(--line); padding: 2px 0; font-size: 13.5px; background: transparent; }
.row.add input:focus { border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.grp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 16px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--accent); }
.link.small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 400; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr !important; } }

/* one column, tight rows (Ben, 2026-10-10) */
.form.wide { max-width: 700px; }
.cols { grid-template-columns: 1fr !important; }
.row { padding: 2px 0; min-height: 30px; }
.pill { padding: 3px 9px; }
.grp { margin-top: 12px; }
.card.area { padding: 16px 20px 12px; }

/* rating definitions on the course page */
.defs { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 12px; padding: 10px 12px; background: var(--accent-soft); border-radius: 6px; font-size: 13.5px; }
.defs dt { font-weight: 500; }
.defs dd { margin: 0; }

/* thank-you page: the other courses as one-click choices */
.course-pick { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; margin-top: 8px;
  font: 500 14px Roboto, Arial, sans-serif; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-align: left; }
.course-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.course-pick .sub { color: var(--accent); font-size: 13px; }
.card.head .brand { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* "Your course" card: course name and an optional syllabus upload */
.card h2.second { margin-top: 18px; }
label.file { display: inline-block; position: relative; cursor: pointer; }
label.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
label.file .btn { display: inline-block; padding: 7px 16px; }
