/* Counsellor portal. Contrast checked for WCAG 2.1 AA on white (text #1b1f24, muted #555b63). */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: #ffffff; }
a { color: #0b4f8a; }
a:hover { color: #083a66; }
:focus-visible { outline: 3px solid #0b4f8a; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: #ffffff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .75rem 1.5rem; border-bottom: 1px solid #c9ced4; background: #f4f6f8; }
.brand { margin: 0; font-family: "HEX Serif", serif; font-weight: 700; font-size: 1.1rem; }
.brand a { color: #1b1f24; text-decoration: none; }
.top nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; align-items: center; }
.top .who { color: #555b63; font-size: .9rem; }
.top .lang { margin-left: auto; display: flex; gap: .4rem; align-items: center; font-size: .9rem; }
main { padding: 1.25rem 1.5rem 3rem; max-width: 90rem; }
main:focus { outline: none; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.inline label, .top label { display: inline; }
input[type=text], input[type=password], textarea, select { font: inherit; padding: .4rem .5rem; border: 1px solid #6b737c; border-radius: 3px; max-width: 100%; }
input[type=text], input[type=password], textarea { width: 100%; }
button { font: inherit; padding: .45rem .9rem; border: 1px solid #0b4f8a; background: #ffffff; color: #0b4f8a; border-radius: 3px; cursor: pointer; }
button:hover { background: #e8f0f8; }
button.primary { background: #0b4f8a; color: #ffffff; }
button.primary:hover { background: #083a66; }
button.link { border: 0; padding: 0; background: none; color: #0b4f8a; text-decoration: underline; }
.stack p { margin: 0 0 .6rem; }
.narrow { max-width: 24rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: flex-end; }
.filters p { margin: 0; }
.list caption { text-align: left; font-weight: 700; padding: .5rem 0; }
.badge { display: inline-block; font-family: "HEX Sans", sans-serif; font-size: .8rem; font-weight: 700; padding: .1rem .45rem; border-radius: 3px; border: 1px solid #555b63; color: #1b1f24; background: #ffffff; vertical-align: middle; margin: 0 0 .3rem; }
.badge-draft { border-color: #8a4b08; color: #6b3a00; }
.badge-reviewed { border-color: #0b4f8a; color: #0b4f8a; }
.badge-approved, .badge-issued { border-color: #2e6b30; color: #245426; }
.badge-superseded, .badge-hidden { color: #555b63; }
.badge-newer { border-color: #8a4b08; color: #6b3a00; }
.banner { border-left: 4px solid #555b63; background: #f4f6f8; padding: .6rem .9rem; }
.banner-warn { border-color: #8a4b08; }
.msg { padding: .6rem .9rem; border-left: 4px solid #2e6b30; background: #eef6ee; }
.msg-error { border-color: #a1260d; background: #fbeeeb; }
.hint { font-size: .85rem; color: #555b63; }
.review { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: 2rem; align-items: start; }
@media (max-width: 60rem) { .review { grid-template-columns: minmax(0, 1fr); } }
.review > * { min-width: 0; }
.review-panel select { width: 100%; }
.r-table { display: block; overflow-x: auto; }
@media (min-width: 40rem) { .r-table { display: table; } }
.views ul { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0 0 .75rem; }
.views a[aria-current=page] { font-weight: 700; text-decoration: none; border-bottom: 3px solid #0b4f8a; }
.preview { border: 1px solid #c9ced4; padding: .5rem 1.25rem 1.25rem; border-radius: 4px; }
.sec { border-bottom: 1px dashed #c9ced4; padding-bottom: .5rem; }
.edit { margin: .3rem 0 .6rem; }
.edit summary { cursor: pointer; color: #0b4f8a; }
.review-panel section { margin-bottom: 1.5rem; }
.review-panel h2 { font-size: 1.05rem; }
.review-panel form { margin-bottom: .6rem; }
.pdfs { padding-left: 1.1rem; }
.audit { font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.top nav a[aria-current=page] { font-weight: 700; }
.counts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: .25rem 0 1rem; }
.counts li { min-width: 7rem; }
.counts strong { display: block; font-size: 1.4rem; font-family: "HEX Serif", serif; }
.actions-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .5rem 0 1rem; }
.panel { border: 1px solid #c9ced4; border-radius: 4px; padding: .75rem 1rem; margin: 1rem 0; max-width: 48rem; }
.panel h2 { margin-top: 0; font-size: 1.1rem; }
.field-error { color: #a1260d; font-weight: 700; font-size: .9rem; margin: .2rem 0 0; }
input[type=number] { font: inherit; padding: .4rem .5rem; border: 1px solid #6b737c; border-radius: 3px; width: 7rem; }
.badge-not_started { color: #555b63; }
.badge-in_progress { border-color: #0b4f8a; color: #0b4f8a; }
.badge-paused { border-color: #8a4b08; color: #6b3a00; }
.badge-finished { border-color: #2e6b30; color: #245426; }
form .hint, form .field-error { display: block; margin-top: .2rem; }
.panel select { width: 100%; }
fieldset { border: 1px solid #c9ced4; border-radius: 3px; padding: .4rem .7rem .6rem; margin: 0 0 .5rem; }
legend { font-weight: 700; font-size: .9rem; padding: 0 .3rem; }
label.check { display: inline-flex; align-items: center; gap: .3rem; font-weight: 400; margin: .2rem 1rem .2rem 0; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
.inline-form { margin-bottom: .4rem; }
.steps li { margin-bottom: 1rem; }
.qr { display: inline-block; margin: .5rem 0; background: #ffffff; }
.qr { width: min(14rem, 100%); }
.qr svg { display: block; width: 100%; height: auto; }
.secret, .recovery code { font-family: "HEX Sans", monospace; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
.recovery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem 1rem; max-width: 32rem; }

/* Suggestions panel (docs/suggestions.md §5) */
.suggestions { margin-top: 2rem; border-top: 2px solid #1b1f24; padding-top: 1rem; }
.audit-wrap { margin-top: 2rem; }
.sugg-table th[scope="row"] .r-muted, .sugg-table th[scope="row"] .badge { font-weight: 400; }
.sugg-table .sugg-qrow td { border-bottom: 1px solid #c9ced4; padding-top: 0; }
.sugg-table tr:has(+ .sugg-qrow) > * { border-bottom: 0; }
.sugg-actions button, button.small { padding: .2rem .5rem; font-size: .85rem; margin: 0 .25rem .25rem 0; }
.sugg-questions button[disabled] { color: #555b63; border-color: #8a9099; background: #f3f4f6; cursor: not-allowed; }
.sugg-excluded th, .sugg-excluded td { color: #555b63; }
.sugg-filters fieldset { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: end; }
.sugg-filters fieldset > p { flex-basis: 100%; margin: 0; }
.sugg-filters label { display: block; }
.r-code strong { text-decoration: underline; }
.sugg-table { position: relative; } /* keeps the screen-reader-only labels inside the table's own scroll area */
