/* Learning Core: "the study desk": tokens that replace the notice-board palette in identity.css (loaded before this file); a bookmark for a mark.
   Loaded after the suite kit and app.css; it replaces the notice-board look this app started from. */
:root {
  --ink: #14223a; --ink-soft: #2a3b57; --muted: #4a5a73;
  --paper: #eef2f8; --surface: #ffffff; --rule: #cdd7e6; --rule-soft: #e2e9f3; --field-border: #6b7d99;
  --brand: #1f4f94; --brand-deep: #14376b; --brand-tint: #e0eaf8;
  --saffron: #d98a04; --saffron-tint: #fcefd0; --saffron-deep: #7d4f00;
}
.logo::before { width: 1.05rem; height: 1.55rem; border-radius: 3px 3px 0 0; background: var(--brand); box-shadow: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
header { border-top-color: var(--saffron); }
.nav-menu a[aria-current="page"] { background: var(--brand-tint); box-shadow: inset 0 -3px 0 var(--brand); }
.page-head::after { background: var(--brand); }

/* States are words first. Colour only helps. */
.st { border: 1px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; }
.st-valid { background: #e1f1e6; border-color: #8fc2a0; color: #0e3a28; }
.st-soon { background: var(--saffron-tint); border-color: #e1c26a; color: #4a3200; }
.st-expired, .st-overdue { background: #fbe9e6; border-color: #e0a99e; color: #6a1d12; }
.st-due { background: var(--brand-tint); border-color: #a8c0e4; color: var(--brand-deep); }
.st-waiting { background: #efe9f7; border-color: #c9b9e4; color: #3d2766; }
.st-none { background: #f3f5f9; color: var(--muted); }

.matrix { border-collapse: collapse; font-size: .88rem; }
.matrix th, .matrix td { border: 1px solid var(--rule); padding: .35rem .5rem; text-align: center; vertical-align: middle; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: #fff; white-space: nowrap; }
.matrix thead th { background: var(--brand-tint); font-size: .8rem; }
.matrix td .badge { font-size: .72rem; padding: .1rem .45rem; }

.lesson { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; }
.lesson h2 { margin-top: 1.4rem; }
.steps-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; padding: 0; list-style: none; }
.steps-row li { border: 1.5px solid var(--rule); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; background: #fff; }
.steps-row li.on { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.quiz .q { border: 1px solid var(--rule); border-radius: 12px; padding: 1.15rem 1.25rem .85rem; background: #fff; margin-bottom: .9rem; }
.quiz .q > legend { float: left; width: 100%; font-weight: 600; line-height: 1.45; padding: 0; margin: 0 0 .65rem; }   /* floated, so the question sits inside its box instead of on the edge */
.quiz .q > legend + * { clear: both; }
.quiz label.opt { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem .2rem; cursor: pointer; }
.stats .stat strong { font-family: var(--font-display); }

.certificate { background: #fff; border: 2px solid var(--brand-deep); outline: 6px double var(--saffron); outline-offset: -14px; padding: 3rem 2.5rem; text-align: center; max-width: 46rem; margin: 1rem auto; }
.certificate h1 { font-size: 2.2rem; margin: .2rem 0 1rem; }
.certificate .who-name { font-family: var(--font-display); font-size: 2rem; margin: .4rem 0; }
.certificate .ref { font-family: ui-monospace, monospace; letter-spacing: .05em; }
@media print { header, footer, .no-print, .demo-bar { display: none !important; } body { background: #fff; } .certificate { border-color: #000; outline-color: #000; } }

/* ── What a course is made of ─────────────────────────────────────────────────────────────────────────────────────────────── */
.lesson { max-width: 46rem; }
.card.lesson { padding: clamp(1.1rem, 3vw, 2rem); max-width: 50rem; }
.lesson .lesson-n { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0; }
.lesson > .b, .lesson-done .b { margin: 1.15rem 0; }
.b p { margin: 0 0 .7rem; } .b p:last-child { margin-bottom: 0; }
.b h3 { font-size: 1.25rem; margin: 1.2rem 0 .4rem; } .b h4 { font-size: 1rem; margin: 1rem 0 .3rem; font-family: var(--font-body); }
.b ul, .b ol { margin: .4rem 0 .8rem; padding-left: 1.35rem; } .b li { margin: .25rem 0; }
.b blockquote { margin: .8rem 0; padding: .6rem 1rem; background: var(--paper); border-radius: var(--radius); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.b-label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .35rem !important; }
.b-note { display: block; font-size: .82rem; color: var(--muted); }

.b-img { margin-left: 0; margin-right: 0; }
.b-img a { display: block; cursor: zoom-in; }
.b-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); background: #fff; }
.b-img-s { max-width: 18rem; } .b-img-m { max-width: 34rem; } .b-img-w { max-width: 100%; }
.b figcaption { font-size: .86rem; color: var(--muted); margin-top: .35rem; }

.b-box { padding: 1rem 1.15rem; border-radius: var(--radius); border: 1.5px solid var(--rule); }
.b-box h3 { margin-top: 0; }
.b-box-key { background: var(--brand-tint); border-color: #a8c0e4; } .b-box-key .b-label { color: var(--brand-deep); }
.b-box-tip { background: #eef6f0; border-color: #a9cdb4; } .b-box-tip .b-label { color: #14532d; }
.b-box-warning { background: var(--saffron-tint); border-color: #d9ab3c; } .b-box-warning .b-label { color: #6b4300; }
.b-box-example { background: #f2eefa; border-color: #c4b3e3; } .b-box-example .b-label { color: #46307a; }

.b-dodont { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.b-dodont > div { border-radius: var(--radius); border: 1.5px solid var(--rule); padding: 1rem 1.25rem; }
.b-dodont h3 { margin: 0 0 .55rem; font-size: 1.15rem; }
.b-dodont ul { list-style: none; padding: 0; margin: 0; } .b-dodont li { position: relative; padding-left: 1.6rem; }
.b-dodont li::before { position: absolute; left: 0; font-weight: 700; }
.b-dodont > .b-do { background: #eaf5ee; border-color: #9cc8ab; } .b-do h3 { color: #14532d; } .b-do li::before { content: '\2713'; color: #14532d; }
.b-dodont > .b-dont { background: #fbedea; border-color: #e2aea3; } .b-dont h3 { color: #7a2213; } .b-dont li::before { content: '\2715'; color: #7a2213; }

.b-steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: .6rem; }
.b-steps li { counter-increment: step; position: relative; padding: .75rem 1rem .75rem 3.4rem; background: var(--paper); border-radius: var(--radius); margin: 0; }
.b-steps li::before { content: counter(step); position: absolute; left: .8rem; top: .7rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand-deep); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.b-steps strong { display: block; } .b-steps span { display: block; }

.b-reveal details { border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; margin-bottom: .5rem; }
.b-reveal summary { cursor: pointer; padding: .7rem 1rem; font-weight: 600; }
.b-reveal details[open] summary { background: var(--brand-tint); border-radius: var(--radius) var(--radius) 0 0; }
.b-reveal details > div { padding: .75rem 1rem; }

.b-check { background: #fff; border: 2px solid var(--brand-deep); border-radius: var(--radius); padding: 1rem 1.15rem; }
.b-check .b-label { color: var(--brand); } .b-q { font-weight: 600; }
.b-check ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.b-check li { margin: 0; } .b-check li > span { display: block; border: 1.5px solid var(--rule); border-radius: var(--radius); padding: .55rem .85rem; }
.b-option { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--field-border); border-radius: var(--radius); padding: .6rem .85rem; min-height: 44px; cursor: pointer; }
.b-option:hover { background: var(--brand-tint); }
.b-option.is-right { background: #e1f1e6; border-color: #2f7d4c; font-weight: 600; } .b-option.is-right::after { content: ' \2713'; }
.b-option.is-wrong { background: #fbe9e6; border-color: #a5412f; } .b-option.is-wrong::after { content: ' \2715'; }
.b-fb { padding: .6rem .85rem; border-radius: var(--radius); } .b-fb.is-right { background: #e1f1e6; color: #0e3a28; } .b-fb.is-wrong { background: #fbe9e6; color: #6a1d12; }
.b-answer summary { cursor: pointer; font-weight: 600; }

.lesson .b-table table { font-size: .95rem; width: 100%; }
/* The frame is the wrapper's: the table sits square inside it, and the title and every cell keep the same distance from its edge. */
.b-table .table { border-radius: 0; margin: 0; }
.b-table caption { text-align: left; font-weight: 600; font-size: 1.05rem; padding: .9rem 1.15rem .75rem; }
.b-table .table th, .b-table .table td { padding: .75rem 1.15rem; }
@media (max-width: 40rem) { .b-table caption, .b-table .table th, .b-table .table td { padding-left: .75rem; padding-right: .75rem; } .b-table .table th { letter-spacing: 0; } }
.b-table .table thead tr:first-child th { border-top: 1px solid var(--rule); }
.b-table .table:not(:has(caption)) thead tr:first-child th { border-top: 0; }
.b-video { margin-left: 0; margin-right: 0; }
.b-player { aspect-ratio: 16 / 9; background: var(--brand-deep); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1rem; text-align: center; }
.b-player a { color: #fff; font-weight: 600; font-size: 1.15rem; } .b-player .b-note { color: #dbe6f7; } .b-play { display: inline-block; background: var(--saffron); color: var(--ink); border-radius: 999px; padding: .1rem .65rem; margin-right: .35rem; }
.b-player.is-playing { padding: 0; overflow: hidden; } .b-player iframe { width: 100%; height: 100%; border: 0; }
.b-file a { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding: .75rem 1rem; border: 1.5px solid var(--brand); border-radius: var(--radius); text-decoration: none; background: #fff; }
.b-file a:hover { background: var(--brand-tint); } .b-file span { color: var(--muted); font-size: .85rem; }

/* course head, library and catalogue */
.course-head-pic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem); gap: 1.5rem; align-items: center; }
.course-cover { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--rule); }
@media (max-width: 40rem) { .course-head-pic { grid-template-columns: 1fr; } .course-cover { max-width: 18rem; order: -1; } }
.outcomes { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.25rem; max-width: 50rem; }
.outcomes h2 { font-size: 1.15rem; margin: 0 0 .4rem; } .outcomes ul { margin: 0; padding-left: 1.2rem; }
.course-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.course-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.course-card > img, .course-card-blank { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--rule); }
.course-card-blank { background: var(--brand-tint); display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; color: var(--brand); }
.course-card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.course-card-body h2 { font-size: 1.25rem; margin: 0; } .course-card-body p { margin: 0; } .course-card-body .cta-row { margin-top: auto; padding-top: .6rem; align-items: center; }
.course-card-tags:empty { display: none; }
.covers { display: flex; flex-wrap: wrap; gap: .6rem; }
.cover-pick { display: flex; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer; font-weight: 400 !important; }
.cover-pick img, .cover-none { width: 8.5rem; aspect-ratio: 16 / 9; object-fit: cover; border: 2px solid var(--rule); border-radius: var(--radius); display: grid; place-items: center; }
.cover-pick input:checked + img, .cover-pick input:checked + .cover-none { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

.section-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.section-list > li { border: 1px solid var(--rule); border-radius: var(--radius); padding: .75rem .9rem; }
.section-row { display: flex; gap: .85rem; align-items: center; flex-wrap: wrap; }
.section-n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-tint); color: var(--brand-deep); font-weight: 700; display: grid; place-items: center; flex: none; }
.section-main { flex: 1 1 14rem; } .section-main h3 { margin: 0; font-size: 1.1rem; } .section-main p { margin: 0; }
.section-actions { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.section-read summary { cursor: pointer; font-weight: 600; margin-top: .5rem; }
.add-section { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1rem; } .add-section .form-group { flex: 1 1 16rem; margin: 0; }
.question-block { border-bottom: 1px solid var(--rule-soft); padding-bottom: 1rem; } .q-edit summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.question-block > form.inline { display: block; margin-top: .6rem; }
.q-hint { font-size: .88rem; color: var(--muted); margin: .2rem 0 .4rem; }
.answers { border: 0; padding: 0; margin: 0; } .answers > p { margin: 0 0 .5rem; }
.answer-row { display: flex; gap: .85rem; align-items: flex-end; margin-bottom: .75rem; } .answer-row .form-group { flex: 1 1 14rem; margin: 0; } .answer-row .check { flex: none; padding-bottom: .55rem; min-height: 44px; align-items: center; }
.b-video video { display: block; width: 100%; height: auto; max-height: 70vh; background: #000; border-radius: var(--radius); }

/* doing a course */
.progress-block { max-width: 50rem; margin-bottom: 1rem; } .progress-block p { margin: 0 0 .35rem; }
.progress-block progress { width: 100%; height: .65rem; accent-color: var(--brand); }
.steps-row li.now { border-color: var(--brand-deep); border-width: 2px; font-weight: 600; } .steps-row li a { text-decoration: none; color: inherit; }
.card.lesson-done { padding: 0; margin-bottom: .6rem; max-width: 50rem; }
.lesson-done > summary { cursor: pointer; padding: .75rem 1.1rem; font-weight: 600; }
.lesson-done > .lesson { padding: 0 1.1rem 1rem; }
.lesson-next { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }

/* ── The section editor ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.editor { max-width: 54rem; }
.editor-blocks { display: grid; gap: .9rem; margin-bottom: 1rem; }
.ed-block { background: #fff; border: 1.5px solid var(--rule); border-radius: var(--radius-lg); }
.ed-block.is-new { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .55rem .9rem; border-bottom: 1px solid var(--rule-soft); background: var(--paper); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.ed-head h2 { font-size: 1rem; margin: 0; font-family: var(--font-body); border: 0; padding: 0; }
.ed-tools { display: flex; gap: .3rem; flex-wrap: wrap; }
.ed-btn { font: inherit; font-size: .85rem; background: #fff; border: 1.5px solid var(--field-border); border-radius: 8px; padding: .25rem .6rem; min-height: 34px; cursor: pointer; color: var(--ink); }
.ed-btn:hover { background: var(--brand-tint); } .ed-btn[disabled] { opacity: .45; cursor: default; } .ed-btn[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.ed-body { padding: .9rem; display: grid; gap: .75rem; }
.ed-field { display: grid; gap: .25rem; } .ed-field > label, .ed-field > .ed-label { font-weight: 600; font-size: .92rem; }
.ed-field input[type="text"], .ed-field input[type="url"], .ed-field textarea, .ed-field select { width: 100%; font: inherit; padding: .5rem .65rem; border: 1.5px solid var(--field-border); border-radius: 8px; background: #fff; color: var(--ink); }
.ed-field textarea { line-height: 1.5; resize: vertical; }
.ed-hint { font-size: .84rem; color: var(--muted); }
.ed-rich { border: 1.5px solid var(--field-border); border-radius: 8px; background: #fff; }
.ed-bar { display: flex; gap: .3rem; flex-wrap: wrap; padding: .4rem; border-bottom: 1px solid var(--rule-soft); }
.ed-area { padding: .65rem .85rem; min-height: 5.5rem; line-height: 1.6; outline-offset: -2px; }
.ed-area p { margin: 0 0 .6rem; } .ed-area ul, .ed-area ol { padding-left: 1.35rem; } .ed-area h3 { font-size: 1.2rem; margin: .8rem 0 .35rem; } .ed-area blockquote { margin: .5rem 0; padding: .4rem .9rem; background: var(--paper); border-radius: 8px; font-style: italic; }
.ed-item { border: 1px solid var(--rule); border-radius: var(--radius); padding: .7rem; display: grid; gap: .5rem; }
.ed-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; } .ed-row > input[type="text"] { flex: 1 1 14rem; }
.ed-two { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ed-video { width: 100%; max-width: 26rem; background: #000; border-radius: 8px; }
.ed-dialog progress { width: 100%; height: .6rem; accent-color: var(--brand); margin: .5rem 0 .2rem; }
.ed-picture { max-width: 18rem; max-height: 12rem; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.ed-grid-wrap { overflow-x: auto; } .ed-grid input { min-width: 8rem; width: 100%; font: inherit; padding: .35rem .5rem; border: 1px solid var(--field-border); border-radius: 6px; } .ed-grid td { padding: .15rem; }
.ed-grid tr.is-head input { font-weight: 700; background: var(--brand-tint); }
.ed-add { background: #fff; border: 2px dashed var(--field-border); border-radius: var(--radius-lg); padding: .9rem; }
.ed-add p { margin: 0 0 .5rem; font-weight: 600; }
.ed-add .ed-choices { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.ed-choice { text-align: left; font: inherit; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: .55rem .7rem; cursor: pointer; color: var(--ink); }
.ed-choice:hover { border-color: var(--brand); background: var(--brand-tint); } .ed-choice strong { display: block; } .ed-choice span { display: block; font-size: .82rem; color: var(--muted); }
.editor-bar { position: sticky; bottom: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: .65rem .8rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; z-index: 5; }
.ed-dialog { border: 1px solid var(--rule); border-radius: var(--radius-lg); width: min(46rem, 94vw); max-height: 86vh; padding: 1.1rem; }
.ed-dialog::backdrop { background: rgb(20 34 58 / .55); }
.ed-dialog h2 { margin: 0 0 .75rem; font-size: 1.3rem; }
.ed-gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); margin-bottom: 1rem; }
.ed-gallery button { font: inherit; font-size: .8rem; background: #fff; border: 2px solid var(--rule); border-radius: var(--radius); padding: .35rem; cursor: pointer; color: var(--ink); }
.ed-gallery button:hover { border-color: var(--brand); } .ed-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; margin-bottom: .25rem; }
.ed-error { color: #7a2213; font-weight: 600; }

@media print { .progress-block, .editor-bar, .section-actions, .b-answer { display: none !important; } .card.lesson, .card.lesson-done { box-shadow: none; border: 0; } .b-check, .b-box, .b-dodont > div { break-inside: avoid; } }

.form-group label.cover-pick { display: flex; margin-bottom: 0; }

/* ── Equipment and places: scan, learn, sign off ─────────────────────────────────────────────────────────────────────────────────────── */
.scan { max-width: 38rem; margin: 0 auto; }
.scan h1 { margin-bottom: .35rem; }
.scan h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.eq-stop { font-size: 1.15rem; border-width: 2px; }
.scan .alert { margin-bottom: 1.25rem; }
.eq-steps { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.eq-steps li { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem; background: #fff; border: 1px solid var(--rule); margin-bottom: -1px; }
.eq-steps strong { display: block; }
.eq-steps li > div > span { display: block; color: var(--ink-soft); font-size: .95rem; }
.eq-mark { flex: none; width: 2rem; height: 2rem; border: 2px solid var(--field-border, #857f6f); display: grid; place-items: center; font-weight: 700; }
.eq-steps li.done .eq-mark { background: #0e3a28; border-color: #0e3a28; color: #fff; }
.eq-steps li.stop .eq-mark { background: #6a1d12; border-color: #6a1d12; color: #fff; }
.eq-go { margin: 0 0 1.5rem; }
.eq-go .btn { width: 100%; min-height: 56px; font-size: 1.1rem; }
.eq-go p { margin: .5rem 0 0; text-align: center; }
.eq-more { margin-top: 1.5rem; }
.eq-more a { display: inline-block; padding: .45rem 0; }
.scan-back { margin: 0 0 .75rem; }
.scan-back a { display: inline-block; padding: .6rem 0; font-weight: 600; }
.eq-seen .check { align-items: flex-start; gap: .75rem; padding: .45rem 0; }
.eq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.eq-list li { display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.eq-list h2 { font-size: 1.2rem; margin: 0 0 .2rem; }
.eq-list h2 a { display: inline-block; padding: .2rem 0; }
.eq-list p { margin: .35rem 0; }
.eq-top { display: grid; gap: 1rem; align-items: start; margin-bottom: 1rem; }
@media (min-width: 60rem) { .eq-top:has(.eq-code) { grid-template-columns: minmax(0, 1fr) 18rem; } }
.eq-top > .card { margin: 0; }
.eq-code { text-align: center; }
.eq-code .small { overflow-wrap: anywhere; }
.qr svg { display: block; width: 100%; max-width: 13rem; height: auto; margin: 0 auto; }
.eq-facts { margin: 0 0 1.25rem; }
.eq-facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .25rem 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-soft, #e4e8f0); }
.eq-facts dt { font-weight: 600; }
.eq-facts dd { margin: 0; }
@media (max-width: 36rem) { .eq-facts > div { grid-template-columns: 1fr; } }
.eq-history { list-style: none; margin: 0; padding: 0; }
.eq-history > li { padding: .75rem 0; border-bottom: 1px solid var(--rule-soft, #e4e8f0); }
.eq-history p { margin: .2rem 0; }
.eq-history .withdrawn > p:first-child strong { text-decoration: line-through; }
.eq-labels { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.eq-label { margin: 0; padding: 1rem; background: #fff; border: 2px solid #14213f; text-align: center; break-inside: avoid; }
.eq-label p { margin: .3rem 0; }
.eq-label-lead { font-weight: 700; font-size: 1.05rem; }
.eq-label-name { font-weight: 700; font-size: 1.2rem; }
.eq-label-url { font-size: .75rem; color: var(--ink-soft); overflow-wrap: anywhere; }
@media print { .eq-label-url { font-size: 8pt; } .eq-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6mm; } .eq-label { color: #000; } .eq-label .qr svg { max-width: 55mm; } }
/* Paired form fields: side by side where there is room, with space between them either way. */
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .75rem 1.25rem; align-items: end; margin-bottom: 1rem; }
.row2:has(> .form-group > :is(p, small, .hint)) { align-items: start; } /* helper text under one field must not push its neighbour down */
.nav-group.is-current > summary { background: var(--brand-tint); box-shadow: inset 0 -3px 0 var(--brand); }
