/* Policy Core: layout and the few components the kit does not provide. Colours and type come from the suite kit's tokens. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
:root { --font-display: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; }
.logo { text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.nav-menu { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-menu a { display: inline-block; padding: .5rem .8rem; text-decoration: none; min-height: 44px; line-height: 1.7; }
.nav-menu a[aria-current="page"], .who a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.who { display: flex; align-items: center; gap: .75rem; }
.who a { padding: .5rem 0; }
.inline { display: inline; margin: 0; }
main { padding: 1.5rem 0 3rem; min-height: 60vh; }
.demo-bar { background: var(--thistle-tint, #f1ecf8); border-bottom: 1px solid var(--rule, #dcd8cd); font-size: .9rem; padding: .5rem 0; }
.page-head { padding: .5rem 0 1.25rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.5rem; }
.page-head h1 { margin: .15rem 0 .35rem; font-size: 1.9rem; }
.page-head p { margin: 0; max-width: 62ch; }
.eyebrow { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; margin: 0; }
section { margin-bottom: 2rem; }
section > h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin: 0 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.5rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 1.1rem; text-decoration: none; cursor: pointer; }
.card { padding: 1.25rem; }
.card h2, .card h3 { margin-top: 0; }
.form-group { margin-bottom: 1rem; }
.form-group label, .form-group .label { display: block; margin-bottom: .35rem; font-weight: 600; }
.form-group .hint { display: block; font-size: .88rem; margin-top: .25rem; font-weight: 400; }
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .form-group select, .form-group textarea { width: 100%; padding: .6rem .75rem; font: inherit; }
.form-group textarea { min-height: 14rem; line-height: 1.5; }
.form-group textarea.short { min-height: 7rem; }
.checks { display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-height: 16rem; overflow: auto; padding: .5rem; border: 1px solid var(--rule); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400 !important; min-height: 32px; }
.check input { margin-top: .3rem; flex: none; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .65rem .8rem; text-align: left; vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: .15rem .65rem; font-size: .78rem; }
.muted { color: var(--ink-soft, #4a5a60); }
.small { font-size: .88rem; }
progress { width: 100%; height: .6rem; accent-color: var(--brand); }
.pct { white-space: nowrap; font-variant-numeric: tabular-nums; }
.policy-text { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; }
.policy-text h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.policy-text h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.policy-text ul, .policy-text ol { padding-left: 1.4rem; }
.pdf-frame { width: 100%; height: 75vh; border: 1px solid var(--rule); }
.read-panel { border: 2px solid var(--ink); padding: 1.25rem; margin-top: 2rem; max-width: 70ch; background: var(--surface, #fff); }
.read-panel.done { border-color: var(--brand); }
.question { border-top: 1px solid var(--rule); padding: 1rem 0; }
.question legend { font-weight: 600; padding: 0; }
.login-box { max-width: 28rem; margin: 3rem auto; }
.login-box h1 { font-size: 1.6rem; }
.empty-state { padding: 2rem 1rem; text-align: center; border: 1px dashed var(--rule); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .75rem; }
.steps li { counter-increment: s; padding-left: 2.4rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; background: var(--ink); color: #fff; font-weight: 700; text-align: center; line-height: 1.7rem; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
footer { margin-top: 2rem; }
.footer-bottom { padding: 1.25rem 0; font-size: .88rem; }
.footer-bottom p { margin: .25rem 0; }
.report h1 { font-size: 1.5rem; }
.report .meta { margin-bottom: 1rem; }
@media (max-width: 640px) { .page-head h1 { font-size: 1.5rem; } .kv { grid-template-columns: 1fr; } }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .container { max-width: none; padding: 0; }
  main { padding: 0; }
  .table th, .table td { padding: .3rem .5rem; border-bottom: 1px solid #999; }
  a { text-decoration: none; color: inherit; }
  .card { border: 1px solid #999; box-shadow: none; }
}
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
h2.sec { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin: 2rem 0 1rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.toolbar form { display: inline; margin: 0; }
.narrow { max-width: 30rem; }
