/* SolarPlus Technical Sales Fast-Track — light theme in SolarPlus brand colours.
   Palette taken from solarplus.co (Nov 2026): blue #0C5CB2 / #1B7BE6, navy #001544,
   orange #F4801C. Orange is used as a FILL only (bars, badges, stripes): it is too light
   for text on white. Text pairs below all meet WCAG AA (≥ 4.5:1). */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #33373d;          /* body text   11.6:1 on white */
  --heading: #001544;      /* SolarPlus navy */
  --muted: #5f6670;        /* 5.9:1 on white */
  --line: #e1e6ee;
  --blue: #0c5cb2;         /* SolarPlus blue: links, buttons (6.3:1 on white) */
  --blue-hover: #094a8f;
  --blue-soft: #e8f1fc;
  --orange: #f4801c;       /* SolarPlus orange: accents only */
  --orange-soft: #fff3e6;
  --ok: #1e7b45;
  --ok-soft: #e8f5ee;
  --warn: #9a4a00;         /* 6.4:1 on --orange-soft */
  --flag-bg: #fff1b8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 21, 68, .06), 0 2px 8px rgba(0, 21, 68, .04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.65 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
code { font-size: .9em; background: var(--blue-soft); color: var(--heading); padding: .1em .35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--heading); font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .2em 0 .3em; }

/* ---- top bar: white with an orange stripe ---- */
.top {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .8rem 16px; background: var(--surface); border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.top a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: .8rem; font-size: 1rem; color: var(--heading); }
.brand:hover { color: var(--heading); }
/* Official SolarPlus logo (white wordmark) on a navy panel — artwork used unmodified. */
.brand__logo { display: flex; align-items: center; background: var(--heading); border-radius: 8px;
  padding: 6px 12px; flex: none; }
.brand__logo img { display: block; height: 32px; width: auto; }
.brand__course { font-weight: 700; color: var(--blue); font-size: 1.02rem; }
.top__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .93rem; align-items: center; }
.top__nav a { color: var(--blue); font-weight: 600; }
.top__nav a:hover { text-decoration: underline; }
.top__user { color: var(--muted); }
.top__nav a.top__signout { color: var(--muted); font-weight: 600; border: 1px solid var(--line);
  padding: .2rem .7rem; border-radius: 99px; }
.top__nav a.top__signout:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }

.wrap.wrap--wide { max-width: 1240px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 1.75rem 16px 3rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem 16px 2rem; }

/* ---- shared bits ---- */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--blue);
  font-weight: 700; margin: 0; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.crumbs { font-size: .9rem; color: var(--muted); margin: 0; }
.tag { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  padding: .15em .55em; border-radius: 99px; background: var(--blue-soft); color: var(--blue); }
.banner { padding: .8rem 1rem; border-radius: var(--radius); background: var(--blue-soft); color: var(--heading); }
.banner--ok { background: var(--ok-soft); color: var(--ok); }
.banner--warn { background: var(--orange-soft); color: var(--warn); }
mark.flag { background: var(--flag-bg); color: var(--ink); padding: 0 .3em; border-radius: 3px; font-size: .88em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0; box-shadow: var(--shadow); }
.card h2 { margin-top: .2rem; font-size: 1.2rem; }

/* ---- hero + progress ---- */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.2rem; box-shadow: var(--shadow); border-left: 6px solid var(--blue); }
.hero h1 { margin-top: .3rem; }
.meter { height: 12px; background: var(--blue-soft); border-radius: 99px; overflow: hidden; margin-top: 1.2rem; }
.meter__bar { height: 100%; background: var(--orange); border-radius: 99px; }
.meter__label { font-size: .9rem; color: var(--muted); margin-bottom: 0; }

/* ---- session list ---- */
.week h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.week__n { color: var(--blue); margin-right: .3rem; }
.sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.sess a {
  display: grid; grid-template-columns: 2.3rem 1fr auto; gap: .9rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease;
}
.sess a:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.sess__n { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .95rem; }
.sess__title { font-weight: 600; color: var(--heading); }
.sess__state { font-size: .85rem; color: var(--muted); text-align: right; }
.sess--complete .sess__n { background: var(--ok); color: #fff; }
.sess--complete .sess__state { color: var(--ok); font-weight: 600; }
.sess--started .sess__n { background: var(--orange); color: var(--heading); }
.sess--task a { border-style: dashed; border-color: #c9d3e1; }
@media (max-width: 520px) {
  .sess a { grid-template-columns: 2.3rem 1fr; }
  .sess__state { grid-column: 2; text-align: left; }
}
.refs { padding-left: 1.2rem; }

/* ---- lesson content ---- */
.prose { max-width: 46rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; padding-bottom: .3rem; border-bottom: 2px solid var(--blue-soft); }
.prose h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.prose table, .grid { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 1rem 0;
  background: var(--surface); }
.prose table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.prose th, .prose td, .grid th, .grid td { border-bottom: 1px solid var(--line); padding: .55rem .7rem;
  text-align: left; vertical-align: top; }
.prose th, .grid th { font-weight: 700; background: var(--blue-soft); color: var(--heading); }
/* Two-column tables (Key terms, Value sheet rows…): keep the term column readable. */
.prose tr > :first-child:nth-last-child(2) { min-width: 11rem; width: 30%; }
.prose tbody tr > td:first-child:nth-last-child(2) { font-weight: 600; color: var(--heading); }
.prose blockquote { margin: 1.2rem 0; padding: .75rem 1rem; border-left: 4px solid var(--orange);
  background: var(--orange-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: .3rem 0; }
.prose tr[id] { scroll-margin-top: 1.5rem; }
.prose tr:target td { background: var(--orange-soft); }
.prose tr:target td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.prose pre { background: var(--blue-soft); padding: .8rem 1rem; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }

/* ---- quiz ---- */
.quiz { margin-top: 2.5rem; border-top: 3px solid var(--blue-soft); padding-top: 1rem; }
.q { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  margin: 0 0 1rem; padding: .85rem 1.1rem; box-shadow: var(--shadow); }
.q legend { font-weight: 700; color: var(--heading); padding: 0 .3rem; }
.q--right { border-color: var(--ok); }
.q--wrong { border-color: var(--orange); }
.opt { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem .3rem; cursor: pointer; border-radius: 6px; }
.opt:hover { background: var(--blue-soft); }
.opt input { margin-top: .4rem; accent-color: var(--blue); }
.fb { margin: .5rem 0 0; font-size: .93rem; color: var(--muted); }
.q--right .fb { color: var(--ok); }
.q--wrong .fb { color: var(--warn); }

/* ---- forms ---- */
.field { display: block; margin: 1rem 0; font-weight: 600; font-size: .95rem; color: var(--heading); }
.field textarea, .field input[type=url], .field input[type=date] {
  display: block; width: 100%; margin-top: .35rem; padding: .6rem .75rem; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--surface); border: 1px solid #c9d3e1; border-radius: 8px;
}
.field textarea:focus, .field input:focus { border-color: var(--blue); outline: 3px solid var(--blue-soft); }
.btn { display: inline-block; text-decoration: none; font: inherit; font-weight: 700; padding: .65rem 1.3rem; border-radius: 8px; border: 0;
  background: var(--blue); color: #fff; cursor: pointer; }
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--blue); border: 1px solid var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); }
.submitted { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: .8rem 1rem; font-size: .95rem; }
.feedback { background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0;
  padding: .6rem 1rem; margin: .8rem 0; }
.feedback p { margin: .3rem 0 0; white-space: pre-wrap; }

/* ---- admin ---- */
.card--danger { border-color: #e7c3c3; }
.card--danger summary { cursor: pointer; font-weight: 700; color: #a32020; }
.card--danger input[type=text] { display: block; width: 100%; max-width: 22rem; margin-top: .35rem;
  padding: .6rem .75rem; font: inherit; border: 1px solid #c9d3e1; border-radius: 8px; }
.btn--danger { background: #a32020; }          /* white on #a32020: 7.4:1 */
.btn--danger:hover { background: #861a1a; }
.scroll { overflow-x: auto; }
.matrix td, .matrix th { white-space: nowrap; }
.cell { text-align: center; }
.cell--complete { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.cell--started { color: var(--warn); font-weight: 700; }
.num { text-align: center; }
.brief { margin: .5rem 0 1rem; border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0; padding: .6rem 1rem; background: var(--orange-soft); }
.brief summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.brief .prose { max-width: none; }

.pager { display: flex; justify-content: space-between; margin-top: 2.5rem; font-weight: 600; }

@media (max-width: 420px) {
  .brand__logo img { height: 26px; }
  .brand__course { font-size: .92rem; }
}

/* ---- sign-in & accounts ---- */
.narrow { max-width: 30rem; margin: 2rem auto; }
.small { font-size: .88rem; }
.field input[type=text], .field input[type=password] {
  display: block; width: 100%; margin-top: .35rem; padding: .6rem .75rem; font: inherit; font-weight: 400;
  color: var(--ink); background: var(--surface); border: 1px solid #c9d3e1; border-radius: 8px; }
.check { display: flex; gap: .5rem; align-items: center; margin: .2rem 0 1rem; font-weight: 600; color: var(--heading); }
.check input { accent-color: var(--blue); width: 1.1rem; height: 1.1rem; }
.temp { border-left: 6px solid var(--ok); }
.temp__pw code { font-size: 1.5rem; letter-spacing: .06em; padding: .3rem .7rem; user-select: all; }
.actions { min-width: 15rem; }
.actions form { display: inline-block; margin: 0 .3rem .3rem 0; }
.btn--small { padding: .3rem .7rem; font-size: .85rem; }
.legacy { list-style: none; padding: 0; }
.legacy li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.legacy form { display: flex; gap: 1rem; align-items: center; }
.top__nav a.top__user { color: var(--muted); font-weight: 400; }
.field input[type=email] { display: block; width: 100%; margin-top: .35rem; padding: .6rem .75rem; font: inherit;
  font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid #c9d3e1; border-radius: 8px; }
.email-edit { display: flex; gap: .35rem; align-items: center; }
.cell-input { width: 13rem; padding: .3rem .5rem; font: inherit; font-size: .88rem;
  border: 1px solid #c9d3e1; border-radius: 6px; background: var(--surface); color: var(--ink); }
td > .cell-input[name=display_name] { width: 9.5rem; }
.email-edit .cell-input { width: 12rem; }
.wrap--wide .inline-form { max-width: 40rem; }
.wrap--wide > h1, .wrap--wide > .crumbs { max-width: none; }

/* ---- question bank ---- */
.qb-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.qb-toc a { padding: .2rem .65rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: .9rem; }
.qb { border-top: 1px solid var(--line); padding: .8rem 0; }
.qb:first-of-type { border-top: 0; }
.qb__head { margin: 0; font-size: .9rem; }
.qb__stem { margin: .3rem 0; font-weight: 600; color: var(--heading); }
.qb__opts { margin: .3rem 0; padding-left: 1.6rem; }
.qb__opts li { padding: .1rem 0; }
.qb__right { color: var(--ok); font-weight: 700; }

/* ---- learner features ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top__search input { width: 9rem; padding: .3rem .7rem; font: inherit; font-size: .9rem; border: 1px solid var(--line);
  border-radius: 99px; background: var(--bg); color: var(--ink); }
.top__search input:focus { width: 13rem; border-color: var(--blue); outline: 3px solid var(--blue-soft); }
.bookmark { float: right; margin-top: .4rem; }
.search-big { display: flex; gap: .5rem; margin: 1rem 0 1.5rem; }
.search-big input { flex: 1; padding: .6rem .8rem; font: inherit; border: 1px solid #c9d3e1; border-radius: 8px; }
.result { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.result__kind { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 700; }
.result__title { margin: .1rem 0; font-weight: 700; }
.result__snip { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.result__snip mark, .glossary mark { background: var(--flag-bg); color: var(--ink); padding: 0 .15em; border-radius: 3px; }
.glossary-filter input { display: block; width: 100%; max-width: 26rem; margin-top: .35rem; padding: .55rem .75rem;
  font: inherit; font-weight: 400; border: 1px solid #c9d3e1; border-radius: 8px; }
.glossary { margin: 0; }
.glossary__letter { font-size: 1.2rem; color: var(--blue); border-bottom: 2px solid var(--blue-soft); margin: 1.6rem 0 .4rem; }
.glossary__item { padding: .55rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.glossary__item:target { background: var(--orange-soft); }
.glossary dt { font-weight: 700; color: var(--heading); }
.glossary dd { margin: .15rem 0 0; }
.note { padding: .6rem 0; border-top: 1px solid var(--line); }
.note h3 { margin: .2rem 0 .5rem; font-size: 1.02rem; }
.slots { display: grid; gap: .45rem; }
.slot { display: flex; gap: .6rem; align-items: center; padding: .55rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: var(--surface); }
.slot:hover { border-color: var(--blue); }
.slot input { accent-color: var(--blue); }
.slots .btn { justify-self: start; margin-top: .3rem; }
.slot-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0 1rem; align-items: end; }
.slot-form .field input { display: block; width: 100%; margin-top: .35rem; padding: .5rem .65rem; font: inherit; font-weight: 400;
  border: 1px solid #c9d3e1; border-radius: 8px; background: var(--surface); color: var(--ink); }
.slot-form__wide { grid-column: 1 / -1; }
.slot-form .btn { justify-self: start; margin-bottom: 1rem; }

/* ---- certificate ---- */
.cert-page { background: var(--bg); }
.cert-actions { max-width: 960px; margin: 1rem auto; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
.cert { max-width: 960px; margin: 0 auto 3rem; background: var(--surface); text-align: center;
  padding: 3rem 3.5rem; border: 10px solid var(--heading); outline: 3px solid var(--orange); outline-offset: -22px; }
.cert__logo { display: inline-block; background: var(--heading); border-radius: 10px; padding: 10px 18px; }
.cert__logo img { display: block; height: 44px; width: auto; }
.cert__eyebrow { margin: 1.6rem 0 .4rem; text-transform: uppercase; letter-spacing: .18em; color: var(--blue); font-weight: 700; }
.cert__intro { margin: .6rem 0; color: var(--muted); font-size: 1.05rem; }
.cert__name { margin: .2rem 0; font-size: 2.6rem; color: var(--heading); border-bottom: 2px solid var(--orange); display: inline-block; padding: 0 1rem .2rem; }
.cert__course { margin: .3rem 0 .8rem; font-size: 1.6rem; color: var(--blue); }
.cert__detail { max-width: 40rem; margin: 0 auto; color: var(--ink); }
.cert__foot { display: flex; justify-content: space-around; gap: 1rem; margin-top: 2.4rem; }
.cert__foot div { display: flex; flex-direction: column; min-width: 10rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.cert__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---- print: cheat sheets, notes, certificate ---- */
@media print {
  @page { size: A4; margin: 12mm; }
  .top, .foot, .no-print, .crumbs, .pager, .quiz, .bookmark, .top__search { display: none !important; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.4; }
  .wrap, .wrap.wrap--wide { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; margin: 0 0 8mm; }
  a { color: var(--ink); text-decoration: none; }
  h1 { font-size: 17pt; margin: 0 0 4mm; }
  .prose { max-width: none; }
  .prose h2 { font-size: 13pt; margin-top: 5mm; }
  .prose table { display: table; font-size: 9pt; }
  .prose th, .prose td { padding: 1.5mm 2mm; }
  .prose tr:target td { background: none; }
  tr, .note, .glossary__item { break-inside: avoid; }
  .cert-page { background: #fff; }
  .cert { margin: 0; max-width: none; padding: 14mm; }
}
@media print and (orientation: landscape) { .cert { min-height: 170mm; } }

/* ---- admin features ---- */
.badge { display: inline-block; min-width: 1.35em; padding: 0 .4em; border-radius: 99px; background: var(--orange);
  color: var(--heading); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.45; }
.admin-links { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1rem; }
.admin-links a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
  text-decoration: none; font-weight: 600; font-size: .92rem; }
.admin-links a:hover { border-color: var(--blue); }
.admin-links__hot { border-color: var(--orange) !important; }
.cohort-filter { margin: 0 0 .5rem; }
.cohort-filter select, .field select { font: inherit; padding: .35rem .5rem; border: 1px solid #c9d3e1; border-radius: 8px;
  background: var(--surface); color: var(--ink); }
.field select { display: block; margin-top: .35rem; }
.schedule { margin: .8rem 0 0; padding: .6rem .9rem; background: var(--blue-soft); border-radius: 8px; }
.queue-item { border-top: 1px solid var(--line); padding: .8rem 0; }
.queue-item:first-of-type { border-top: 0; }
.queue-item__head { margin: 0 0 .3rem; }
.queue-item details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin: .2rem 0; }
.queue-item__form .field { margin: .5rem 0; }
.queue-item__form textarea { display: block; width: 100%; padding: .5rem .7rem; font: inherit; border: 1px solid #c9d3e1; border-radius: 8px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 1rem; margin: .5rem 0 1rem; }
.danger-zone, .inline-confirm { margin-top: .8rem; }
.danger-zone summary, .inline-confirm summary { cursor: pointer; color: #a32020; font-weight: 600; font-size: .9rem; }
.inline-confirm { display: inline-block; margin: 0 0 0 .3rem; }
.email-preview { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; font-size: .9rem; max-height: 32rem; overflow: auto; }
.editor { width: 100%; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .8rem;
  border: 1px solid #c9d3e1; border-radius: 8px; background: var(--surface); color: var(--ink); tab-size: 2; }
.diff { white-space: pre-wrap; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 30rem;
  overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .8rem; }
.d-add { display: block; background: var(--ok-soft); color: var(--ok); }
.d-del { display: block; background: #fbe9e9; color: #a32020; }
.d-hunk { display: block; color: var(--blue); font-weight: 700; margin-top: .4rem; }
.d-ctx { display: block; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; }
.btn-row form { margin: 0; }

.btn--google { display: inline-flex; align-items: center; gap: .6rem; background: var(--surface); color: var(--ink);
  border: 1px solid #c9d3e1; width: 100%; justify-content: center; }
.btn--google:hover { background: var(--bg); color: var(--ink); border-color: var(--blue); }
.or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .88rem; margin: 1rem 0 .2rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- feedback ---- */
.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; border: 0; padding: 0; margin: 0 0 .4rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: #c9d3e1; cursor: pointer; padding: 0 .1rem; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--orange); }
.stars input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.spread { display: inline-flex; align-items: flex-end; gap: 3px; height: 40px; }
.spread__bar { width: 14px; background: var(--orange); border-radius: 2px 2px 0 0; opacity: .85; }

.audit-filter { margin-bottom: .2rem; }
.audit-filter select { display: block; width: 100%; margin-top: .35rem; }
.audit td { white-space: nowrap; }
.audit td:nth-child(5) { white-space: normal; }
.audit--fail td { background: #fbe9e9; }
.pw-fallback { margin-top: 1rem; }
.pw-fallback summary { cursor: pointer; color: var(--blue); font-weight: 600; }

/* ---- diagrams ---- */
.prose figure.diagram { margin: 1.4rem 0; padding: .8rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figure.diagram img { display: block; width: 100%; height: auto; }
.prose figure.diagram figcaption { margin-top: .5rem; font-size: .9rem; color: var(--muted); text-align: center; }
@media print { .prose figure.diagram { box-shadow: none; break-inside: avoid; } }
@media (max-width: 700px) {
  .prose figure.diagram figcaption::after { content: " · tap to enlarge"; }
}

/* ---- facilitator cohort profile ---- */
.hm-wrap { overflow-x: auto; }
.hm-table th, .hm-table td { padding: .3rem .4rem; font-size: .85rem; }
.hm--strong { background: var(--ok-soft); color: var(--ok); }
.hm--developing { background: var(--blue-soft); color: var(--heading); }
.hm--gap { background: var(--orange-soft); color: var(--warn); font-weight: 700; }
.hm--unknown { color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; }
.group h3 { margin: .2rem 0; font-size: 1rem; }
@media print { .hm-table td, .hm-table th { font-size: .7rem; padding: .15rem; } }

/* ---- AI-written text: always visibly labelled ---- */
.ai-note { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: .6rem 1rem; border-radius: 6px; margin: 1rem 0; }
.ai-note p { margin: .3rem 0; }
