/* Risk Assessment Maker (loaded only on pages with the maker) */
.ra-privacy { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); font-size: 1rem; padding: 12px 14px; margin: 0 0 14px; }
.ra-privacy svg { width: 22px; height: 22px; color: var(--coral); }
.ra-top { align-items: end; }
.ra-country { display: flex; gap: 6px; flex-wrap: wrap; }
.ra-tpl-f { flex: 1 1 300px; } .ra-scale-f { flex: 0 1 260px; }
.ra-docs-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 12px 0; }
.ra-docs-row .field { flex: 1 1 280px; }
.ra-starter { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 9px 12px; margin: 10px 0 14px; font-size: .95rem; }
.ra-starter strong { margin-right: 4px; }
.ra-sheet { display: grid; gap: 10px; }
.ra-h { margin: 18px 0 2px; font-size: 1.15rem; }
.ra-count { color: var(--muted); font-weight: 600; font-size: .9rem; }
.ra-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; align-items: end; }
.ra-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ra-row { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px 12px 12px; }
.ra-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ra-num { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; }
.ra-row-btns { display: flex; gap: 6px; }
.ra-row-btns .btn { min-height: 36px; padding: 4px 10px; }
.ra-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.ra-grid > * { grid-column: span 4; }
.ra-grid > .ra-r1, .ra-grid > .ra-r2 { grid-column: span 3; }
.ra-grid > .ra-bw { grid-column: span 2; grid-template-columns: 1fr; }
.ra-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; flex: 1 1 100%; }
.ra-grid textarea { min-height: 64px; }
.ra-rate { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 10px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: end; min-width: 0; }
.ra-rate legend { font-size: .9rem; padding: 0 4px; }
.ra-rate .field { flex: 1 1 100%; min-width: 0; }
.ra-rate .field label { font-size: .82rem; }
.ra-rate select { width: 100%; }
.ra-x { display: none; }
.ra-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ra-done { display: flex; gap: 8px; align-items: center; font-weight: 600; min-height: 40px; }
.ra-done input, .ra-checks input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.ra-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; min-height: 36px; border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: .92rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.ra-chip[data-band=low], .ra-m-c[data-band=low], .ra-lmh [data-band=low] { background: #cdeccf; color: #14532d; border-color: #9fd3a5; }
.ra-chip[data-band=med], .ra-m-c[data-band=med], .ra-lmh [data-band=med] { background: #fbe3a1; color: #5c3d00; border-color: #eccb6b; }
.ra-chip[data-band=high], .ra-m-c[data-band=high], .ra-lmh [data-band=high] { background: #f8c09a; color: #7a2e0b; border-color: #e99d6c; }
.ra-chip[data-band=vhigh], .ra-m-c[data-band=vhigh] { background: #ef9a9a; color: #6f1414; border-color: #dc6f6f; }
.ra-matrix { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
.ra-view { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ra-m { display: grid; gap: 4px; max-width: 620px; }
.ra-m-r { display: grid; grid-template-columns: minmax(84px, 1.7fr) repeat(5, minmax(0, 1fr)); gap: 4px; }
.ra-m-h, .ra-m-ax { font-size: .8rem; color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.ra-m-r .ra-m-h:first-child { justify-content: flex-start; text-align: left; }
.ra-m-c { min-height: 40px; border-radius: 8px; display: grid; place-items: center; border: 1px solid transparent; }
.ra-m-c i { font-style: normal; opacity: .55; font-size: .85rem; }
.ra-m-c b { font-size: 1.1rem; background: rgba(255, 255, 255, .75); border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; box-shadow: 0 0 0 2px currentColor; }
.ra-lmh { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; }
.ra-lmh div { border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; border: 1px solid; }
.ra-lmh b { font-size: 1.3rem; display: block; }
.ra-matrix-sum { margin: 10px 0 0; }
.ra-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ra-checks h4 { margin: 0 0 6px; font-size: .95rem; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.ra-checks ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.ra-checks li { display: flex; gap: 6px; align-items: center; }
.ra-checks li { align-items: flex-start; }
.ra-checks li input[type=checkbox] { margin-top: 10px; }
.ra-checks li textarea { flex: 1; min-width: 0; min-height: 38px; padding: 7px 9px; font-size: .92rem; resize: none; overflow: hidden; }
.ra-x-btn { border: 0; background: none; color: var(--muted); font-size: 1.3rem; width: 32px; height: 36px; cursor: pointer; border-radius: 8px; flex: none; }
.ra-x-btn:hover { color: var(--coral); background: var(--surface-2); }
.ra-contacts { display: grid; gap: 6px; }
.ra-ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ra-ct-h { font-size: .9rem; font-weight: 650; }
.ra-m-key { margin: 8px 0 0; }
.ra-legal { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin: 18px 0 0; }
.ra-export { margin-top: 18px; }
@media (max-width: 1000px) { .ra-grid > *, .ra-grid > .ra-r1, .ra-grid > .ra-r2 { grid-column: span 6; } .ra-grid > .ra-bw { grid-column: span 6; grid-template-columns: 1fr 1fr; } .ra-checks { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .ra-meta { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .ra-scale-f, .ra-tpl-f { flex: 1 1 100%; } .ra-grid > *, .ra-grid > .ra-r1, .ra-grid > .ra-r2, .ra-grid > .ra-bw { grid-column: 1 / -1; } .ra-country { width: 100%; } .ra-country .btn { flex: 1 1 0; } .ra-row { padding: 10px; } .ra-m-h, .ra-m-ax { font-size: .7rem; } .ra-m-r { grid-template-columns: minmax(64px, 1.3fr) repeat(5, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ra-pair { grid-template-columns: 1fr; } }

/* print / PDF (the document is built by risk.js into .print-root) */
.ra-doc { font-size: 9.5pt; color: #000; }
.ra-doc h2 { font-size: 16pt; margin: 0 0 6px; }
.ra-doc h3 { font-size: 11pt; margin: 10px 0 4px; color: #0b5e51; }
.ra-doc h4 { font-size: 9.5pt; margin: 6px 0 2px; }
.ra-doc-k { text-transform: uppercase; letter-spacing: .08em; color: #0b5e51; font-size: 8pt; margin: 0; }
.ra-doc table { border-collapse: collapse; width: 100%; }
.ra-doc th, .ra-doc td { border: 1px solid #9aa5a1; padding: 3px 5px; vertical-align: top; text-align: left; }
.ra-doc th { background: #e6f2ef; }
.ra-doc-meta th { width: 18%; }
.ra-doc-t thead { display: table-header-group; }
.ra-doc-t tr { break-inside: avoid; }
.ra-doc td.ra-chip { display: table-cell; border-radius: 0; min-width: 0; font-size: 8.5pt; text-align: center; }
.ra-doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ra-doc-cols section { break-inside: avoid; }
.ra-doc-blank { border: 1px solid #9aa5a1; min-height: 60px; }
.ra-doc-ck { list-style: none; padding: 0; margin: 0; }
.ra-doc-sign td { height: 26px; }
.ra-doc-note { font-size: 8pt; color: #444; margin-top: 10px; }
.ra-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
