/* OPTIMA MOOC — one stylesheet, no framework.
 *
 * Palette, type and metrics follow optima.org.au (read off computed styles, Aug 2026):
 * navy #1b4283 anchor, two lighter blues doing the accent work, cool near-white ground,
 * Montserrat throughout, ~2px corners, uppercase used structurally.
 *
 * Three deliberate departures from the marketing site, because this is a reading surface:
 *   - uppercase only for short structural labels, never for authored content (see below);
 *   - the prose column stays at --maxw, narrower than OPTIMA's 1200px, which would run
 *     ~110 characters a line; only the chrome matches at --chrome-maxw;
 *   - Montserrat 200 is reserved for the landing hero, everything readable is 600.
 */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* brand — optima.org.au */
  --navy: #1b4283;
  --navy-d: #12305f;
  --sky: #86cdf2;
  --steel: #77bdd7;
  --pale: #cae1ea;

  --bg: #f7f7f8;
  --fg: #161718;
  --muted: #6b7280;
  --line: #e3e7ed;
  --card: #ffffff;
  --band: #f7f7f7;

  --accent: var(--navy);
  --accent-2: var(--sky);

  /* Semantic, and deliberately not brand colours: "correct" and "watched" have to read as
     verdicts, not as decoration. Unchanged from the pre-rebrand palette. */
  --ok: #1a7f4b;
  --bad: #b4362a;

  --radius: 2px;
  --maxw: 62rem;
  --chrome-maxw: 1200px;
}

/* optima.org.au is light-only. This is ours, re-derived from the same navy rather than the
   neutral grey it used to be — learners sit with lesson pages for hours. On a dark ground
   navy has no contrast left, so the sky blue takes over as the accent. */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #16305c;
    --navy-d: #0e1f3d;

    --bg: #0f1622;
    --fg: #e8ecf2;
    --muted: #97a1b2;
    --line: #24304a;
    --card: #161f30;
    --band: #131c2b;

    --accent: #86cdf2;
    --accent-2: #77bdd7;

    --ok: #4cc38a;
    --bad: #f07167;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 600; margin: 0 0 .5rem; letter-spacing: -0.015em; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .25rem; }

/* Structural labels — "Check yourself", "Materials", "Your data", part titles — take the
   uppercase treatment from optima.org.au. Anything an author wrote (lesson titles, markdown
   headings, exercise and video titles) stays in sentence case: "Handling Constraints by
   Relaxation" set in caps is a wall. */
.card > h2,
.part-card-head h2 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
/* Opt-outs: an exercise title and a person's name are content that happens to sit in an
   h2, not labels. Setting someone's name in caps is the giveaway that a rule is too broad. */
.exercise.card > h2,
.card > h2.person {
  font-size: 1.15rem; font-weight: 600;
  text-transform: none; letter-spacing: -0.01em; color: var(--fg);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.err { color: var(--bad); }
.ok-line { color: var(--ok); font-weight: 600; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ------------------------------------------------------------------ chrome */

/* The masthead is OPTIMA's, full-bleed navy with the lockup at left; the course name gets
   its own thin bar underneath rather than replacing the logo. This is a course on the
   OPTIMA site, and the masthead should say OPTIMA first. */
header.site {
  background: var(--navy);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  max-width: var(--chrome-maxw); margin: 0 auto;
  padding: .9rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
header.site .brand { display: flex; flex: 0 0 auto; }
header.site .brand img { height: 54px; width: auto; display: block; }
header.site nav {
  margin-left: auto; display: flex; gap: 1.5rem; align-items: center;
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
/* The navy bar is navy in both themes, so white here is theme-independent, not a literal
   that only works in one of them. */
header.site nav a { color: #fff; text-decoration: none; opacity: .82; }
header.site nav a:hover { opacity: 1; }
header.site nav button#signout {
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  padding: .4rem .8rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius);
}
header.site nav button#signout:hover:not(:disabled) {
  background: rgba(255, 255, 255, .14); border-color: #fff;
}

.course-bar { background: var(--navy-d); }
.course-bar .wrap {
  max-width: var(--chrome-maxw); margin: 0 auto;
  padding: .5rem 1.25rem;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
}
.course-bar a { color: var(--pale); text-decoration: none; }
.course-bar a:hover { color: #fff; }

/* ------------------------------------------------------------------ footer */

footer.site { margin-top: auto; }

/* Partner marks are on the landing page and the certificate only — they are an
   attribution, and repeating them under every lesson turns them into wallpaper. */
footer.site .partners { background: var(--band); border-top: 1px solid var(--line); }
footer.site .partners .wrap {
  max-width: var(--chrome-maxw); margin: 0 auto;
  padding: 2.25rem 1.25rem;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap;
}
footer.site .partners img { height: 54px; width: auto; display: block; }
footer.site .partners img.tall { height: 78px; }
@media (prefers-color-scheme: dark) {
  /* The ARC and Monash marks are black artwork; the white ARC variant exists, Monash's
     does not, so lift the whole row rather than shipping a half-inverted set. */
  footer.site .partners img { filter: invert(1) hue-rotate(180deg); opacity: .85; }
  footer.site .partners img.tall { filter: none; opacity: .9; }
}

footer.site .cols { background: var(--navy); color: var(--pale); }
footer.site .cols .wrap {
  max-width: var(--chrome-maxw); margin: 0 auto;
  padding: 2.75rem 1.25rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
}
footer.site .cols h2 {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; margin: 0 0 .9rem;
}
footer.site .cols p { font-size: .88rem; margin: 0; }
footer.site .cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
footer.site .cols a { color: var(--pale); text-decoration: none; font-size: .88rem; }
footer.site .cols a:hover { color: #fff; text-decoration: underline; }

footer.site .colophon { background: var(--navy-d); }
footer.site .colophon .wrap {
  max-width: var(--chrome-maxw); margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  font-size: .75rem; color: var(--pale);
}
footer.site .colophon a { color: var(--pale); }

@media (max-width: 46rem) {
  footer.site .cols .wrap { grid-template-columns: 1fr; gap: 2rem; }
}

/* ----------------------------------------------------------------- buttons */

button {
  font: inherit; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .6rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  transition: border-color .12s, background .12s;
}
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }

/* Primary: OPTIMA's solid navy button, 14px/600/uppercase, 2px corners. */
.cta {
  display: inline-block; padding: .85rem 1.45rem; border-radius: var(--radius);
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--accent);
}
.cta:hover { background: var(--navy-d); border-color: var(--navy-d); }
.cta.sky { background: var(--accent-2); border-color: var(--accent-2); color: var(--navy); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin: 1.25rem 0;
}

/* ----------------------------------------------------------------- landing */

/* The one place Montserrat 200 earns its keep — OPTIMA's display weight, at display size,
   on a heading short enough to carry it. Everything a learner has to read is 600. */
.hero { padding: 1rem 0 2rem; }
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem);
  font-weight: 200; text-transform: uppercase; letter-spacing: .01em;
  color: var(--accent);
}
.hero h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px;
  background: var(--accent-2); margin: 1rem 0 0;
}
.hero .lede { margin-top: 1.25rem; }

.signin { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.signin button { padding: .75rem 1.3rem; }

.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.lesson-list li { display: flex; gap: 1rem; align-items: flex-start; }
.lesson-list .num {
  flex: 0 0 2rem; height: 2rem; border-radius: var(--radius);
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-weight: 700; font-size: .9rem;
}
.lesson-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.lesson-list.progress li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.lesson-list.progress li:last-child { border-bottom: 0; }
.lesson-list.progress li > div { flex: 1; }
.lesson-list li.done .num { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.lesson-list h3 a { color: var(--fg); text-decoration: none; }
.lesson-list h3 a:hover { color: var(--accent); }

.bar { height: 5px; background: var(--line); margin: .5rem 0 .35rem; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent-2); transition: width .3s; }

.crit { list-style: none; padding: 0; margin: 0; }
.crit li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.crit li:last-child { border-bottom: 0; }
.crit li.ok .crit-val { color: var(--ok); font-weight: 600; }
.crit-val { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ lesson */

.crumb { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.prose { margin-bottom: 2rem; }
.prose h2 { margin-top: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.prose th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.prose pre {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; overflow-x: auto;
}
.prose pre code { font-size: .875rem; line-height: 1.6; }
.prose :not(pre) > code {
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  padding: .1em .35em; border-radius: var(--radius);
}

.video .player { margin: .75rem 0; }
.video-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tick { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .95rem; }
.tier { color: var(--muted); font-size: .85rem; }
.video.watched { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.tick input, .options input { accent-color: var(--accent); }

.panopto-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.panopto-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Click-to-load facade: no Panopto iframe (and no request to Panopto) until the user
   presses play. See the long comment in video.mjs — this is what stops every video on a
   lesson autoplaying at once. */
.video-facade {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #1b4283, #0e1f3d);
}
.facade-play {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  gap: 1rem; background: none; border: 0; cursor: pointer; color: #f3f1ee; padding: 1.5rem;
  text-transform: none; letter-spacing: normal; font-size: 1rem;
  transition: background .15s;
}
.facade-play:hover { background: rgba(255, 255, 255, .08); border-color: transparent; }
.facade-icon {
  flex: 0 0 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
}
.facade-play:hover .facade-icon { background: rgba(255, 255, 255, .24); }
.facade-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.facade-text strong { font-size: 1.05rem; font-weight: 600; }
.facade-text small { color: rgba(243, 241, 238, .65); font-size: .82rem; }

.stub-player {
  border: 1px dashed color-mix(in srgb, var(--fg) 25%, transparent);
  border-radius: var(--radius); padding: 1rem;
  background: color-mix(in srgb, var(--fg) 3%, transparent);
}
.stub-face { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.stub-title { font-weight: 600; }
.stub-badge {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .1rem .4rem; white-space: nowrap;
}
.stub-bar { height: 6px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stub-fill { height: 100%; width: 0; background: var(--accent-2); transition: width .3s linear; }
.stub-controls { display: flex; align-items: center; gap: .75rem; margin-top: .75rem; }
.stub-time { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }

.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------------- quiz */

.question { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; padding-bottom: 0; }
.prompt { font-weight: 600; margin-bottom: .35rem; }
.hint { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.options { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .35rem; }
.options label {
  display: flex; gap: .6rem; align-items: flex-start; cursor: pointer;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.options label:hover { border-color: var(--accent); }
.options li.is-correct label { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.question.correct .options label,
.question.revealed .options label { cursor: default; }
.q-foot { display: flex; align-items: center; gap: .75rem; }
.attempts { color: var(--muted); font-size: .85rem; }
.feedback { margin-top: .75rem; font-size: .95rem; }
.verdict-line { font-weight: 600; margin-bottom: .35rem; }
.verdict-line.ok { color: var(--ok); }
.verdict-line.bad { color: var(--bad); }
.explain { color: var(--muted); margin: 0; }

/* Per-option feedback: the explanation for the option the learner actually chose. */
.options li.chosen label { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.options li.is-wrong label { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); }
.opt-explain { margin: .2rem 0; color: var(--muted); }
.answer-line { margin: .55rem 0 .15rem; }

/* Short-answer self-check. */
.question.short .short-input {
  width: 100%; box-sizing: border-box; font: inherit; padding: .6rem .7rem; margin-bottom: .6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--fg); resize: vertical;
}
.rubric { margin: .35rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.rubric .marks { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Parts overview (course page): each Part is a card linking to its own /parts/<n>/ page.
   The navy left rule echoes the section marker used on optima.org.au. */
.parts { display: grid; gap: .75rem; margin: 1rem 0 2rem; }
.part-card {
  display: block; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius);
  background: var(--card); color: var(--fg); text-decoration: none; transition: border-color .15s;
}
.part-card:hover { border-color: var(--accent); }
.part-card.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); border-left-color: var(--ok); }
.part-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.part-card-head h2 { margin: 0; }
.part-card-intro { color: var(--muted); margin: .5rem 0 .35rem; font-size: .95rem; }

/* Prev/next navigation between Part pages. */
.part-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Quiz stepper: one question at a time. */
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quiz-progress { color: var(--muted); font-size: .9rem; }

/* ---------------------------------------------------------------- exercise */

/* The playground carries its own editor, output pane and splitter, so it needs enough
   room to be usable — below roughly this height the output pane becomes a sliver. */
.playground {
  width: 100%; height: 34rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); margin-top: .75rem;
  display: block;
}
.verdict { margin-top: .75rem; padding: .75rem .9rem; border-radius: var(--radius); font-size: .95rem; }
.verdict pre { margin: .4rem 0 0; white-space: pre-wrap; font-size: .85rem; }
.verdict.pass { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.verdict.fail { background: color-mix(in srgb, var(--bad) 8%, transparent); color: var(--bad); }
.verdict.error { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); }
.verdict.running { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--muted); }

.downloads ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }

/* --------------------------------------------------------------- dashboard */

.tiles { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.tile { display: flex; flex-direction: column; }
.tile .v { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--accent); }
.tile .l { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent); font-weight: 700; padding: .5rem .5rem; border-bottom: 2px solid var(--line);
}
tbody td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
td { font-variant-numeric: tabular-nums; }

.barcell { width: 30%; min-width: 6rem; }
.hbar { height: 6px; background: var(--accent-2); margin-bottom: 3px; }
.hbar.done { background: var(--ok); }

.flag { font-size: .7rem; padding: .12rem .4rem; border-radius: var(--radius); white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.flag.easy { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.flag.hard { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }

ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }

/* ------------------------------------------------------------ certificate */

/* The one page worth going fully branded: it is the artefact learners share. */
/* The certificate is its own frame — the page wrapper must not draw a second one around it. */
.verify.card {
  max-width: 42rem; margin: 3rem auto; text-align: center;
  background: none; border: 0; padding: 0;
}
.cert {
  padding: 2.5rem 1.5rem; border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: var(--radius); background: var(--card);
}
.cert-logo { height: 62px; width: auto; margin: 0 auto 1.75rem; display: block; }
/* The lockup is navy artwork; on the dark card it needs to be knocked out to white. */
@media (prefers-color-scheme: dark) {
  .cert-logo { filter: brightness(0) invert(1); }
}
/* Navy, not sky: the sky blue is a fill colour and has too little contrast to set text in. */
.cert-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.cert h1 { margin: .6rem 0 1.25rem; }
.cert-body { max-width: 30rem; margin: 0 auto 1.5rem; }
.cert-date { font-weight: 600; margin-bottom: .25rem; }
.cert-serial { font: .8rem ui-monospace, monospace; color: var(--muted); margin-bottom: 1.5rem; }
.cert-caveat { font-size: .8rem; color: var(--muted); margin: 0; }
.verified { color: var(--ok); font-weight: 600; margin-top: 1rem; }

/* The certificate page has no nav — just the lockup, centred. */
header.brandonly {
  background: var(--navy); display: flex; justify-content: center;
  padding: 1.25rem;
}
header.brandonly img { height: 54px; width: auto; display: block; }

/* ------------------------------------------------------------------- forms */

input[type="email"], input[type="password"] {
  font: inherit; padding: .6rem .7rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  min-width: 15rem;  /* Montserrat is wider than the old system stack — the default size clipped */
}
input[type="email"]:focus, input[type="password"]:focus { border-color: var(--accent); }
[data-dev-form] { display: flex; gap: .5rem; flex-wrap: wrap; }

@media (max-width: 40rem) {
  header.site .wrap { padding: .75rem 1rem; }
  header.site .brand img { height: 40px; }
  header.site nav { gap: 1rem; font-size: .68rem; }
  .barcell { display: none; }
  table { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
