/* OreOrbit v15: assessment register and the section for teams. Uses the atlas's own tokens. */

/* ---------- assessment ---------- */
#assess { --hi: #c2382b; --md: #b8650a; --lo: #1d8452; --none: var(--faint); }
.as { display: grid; gap: 28px; }
.as .label { display: block; }
.as-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 28px; }
.as-org { display: grid; gap: 6px; min-width: min(320px, 100%); }
.as-org input { -webkit-appearance: none; appearance: none; font: 500 22px var(--font); letter-spacing: -0.02em; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 4px 0 6px; outline: none; height: auto; min-height: 40px; }
.as-org input::placeholder { color: var(--faint); }
.as-org input:focus { border-bottom-color: var(--text); }
.as-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.as-acts select { height: 36px; letter-spacing: 0.02em; font-weight: 600; font-size: 12.5px; }
.as-file { display: flex; gap: 18px; margin-left: auto; }
.as-paste { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.as-paste .label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13.5px; }
.as-paste textarea { font: 13px/1.5 var(--mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 120px; resize: vertical; }
.as-empty { border: 1px dashed var(--line-2); border-radius: 12px; padding: 28px; display: grid; gap: 8px; }
.as-empty p { margin: 0; max-width: 62ch; }

.as-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 12px; }
@media (max-width: 1100px) { .as-grid { grid-template-columns: minmax(0, 1fr); } }

/* the register: one grid row per part; labels show above the first row and on every row on small screens */
.as-table { display: grid; border-top: 1px solid var(--line); }
.as-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1.7fr) minmax(0, 0.9fr) 84px 108px 104px 28px; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.as-f { display: grid; gap: 3px; min-width: 0; }
.as-f > span:first-child { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.as-row:not(:first-child) .as-f > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.as-in { width: 100%; min-width: 0; font: 500 14px var(--font); color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 7px; margin-left: -7px; outline: none; }
.as-in:hover { border-color: var(--line); }
.as-in:focus { border-color: var(--text); background: var(--surface); }
.as-in[type="number"] { font-family: var(--mono); font-size: 13px; }
.as-in::placeholder { color: var(--faint); }
.as-mats { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.as-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 4px 2px 8px; white-space: nowrap; }
.as-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.as-chip button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 3px; }
.as-chip button:hover { color: var(--text); }
.as-rm .as-chip, .as-risks .as-chip { padding-right: 8px; }
.as-add { height: 24px; width: 34px; padding: 0 6px; border-radius: 999px; font-size: 12px; letter-spacing: 0; background: transparent; border: 1px dashed var(--line-2); color: var(--dim); cursor: pointer; }
.as-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dim); }
.as-chk input { width: 16px; height: 16px; accent-color: var(--text); }
.as-chk em { font-style: normal; }
.as-x { border: 0; background: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; border-radius: 6px; }
.as-x:hover { color: var(--text); background: var(--surface); }
.as-in:focus-visible, .as-x:focus-visible, .as-chip button:focus-visible, .as-add:focus-visible, .as-site:focus-visible, .as-mh:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@media (max-width: 860px) {
  .as-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px 0; }
  .as-row .as-f > span:first-child { position: static !important; width: auto !important; height: auto !important; clip: auto !important; }
  .f-part, .f-mats { grid-column: 1 / -1; }
  .as-x { position: absolute; top: 10px; right: 0; }
}

/* risk badges */
.as-lv { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--lvc, var(--none)); }
.as-lv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; align-self: center; }
.as-lv b { font: 500 11px var(--mono); color: var(--faint); letter-spacing: 0; }
.lv-high { --lvc: var(--hi); } .lv-med { --lvc: var(--md); } .lv-low { --lvc: var(--lo); } .lv-none { --lvc: var(--none); }

/* summary */
.as-sum { position: sticky; top: 92px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
@media (max-width: 1100px) { .as-sum { position: static; } }
.as-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.as-k b { display: block; font-size: 40px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; }
.as-k span { font-size: 12.5px; color: var(--dim); }
.as-dist { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--track); gap: 2px; }
.as-dist i { background: var(--lvc); }
.as-dl { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--dim); }
.as-dl span { display: inline-flex; align-items: center; gap: 6px; }
.as-dl i { width: 8px; height: 8px; border-radius: 50%; background: var(--lvc); }
.as-sl { margin: 4px 0 -6px; }
.as-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.as-top li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.as-top .as-lv { grid-column: 2; grid-row: 1; }
.as-tn { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.as-tp { font-size: 12.5px; color: var(--dim); }
.as-tw { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }
.as-next p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; }
.as-acts2 { display: flex; flex-wrap: wrap; gap: 8px; }

/* views */
.as-views { display: grid; gap: 22px; min-width: 0; }
.as-tabs { margin: 0; justify-self: start; }
.as-tab { min-height: 120px; }
.as-risks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; }
.as-risks > li { padding: 16px 0 16px 18px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--lvc); }
.as-rh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.as-rm { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.as-why { margin: 8px 0 4px; padding-left: 18px; font-size: 14px; color: var(--dim); display: grid; gap: 2px; max-width: 80ch; }

.as-st { display: grid; gap: 16px; }
.as-stc { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: end; }
.as-stc label { display: grid; gap: 8px; }
.as-stc select { max-width: 100%; height: 38px; font-size: 13px; letter-spacing: 0.01em; }
.as-wk { min-width: 260px; }
.as-wk b { color: var(--text); }
.as-wk input { width: 100%; accent-color: var(--hi); }
.as-prec { margin: 0; max-width: 78ch; color: var(--dim); font-size: 14.5px; }
.as-sum1 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; max-width: 60ch; }
.as-runs { display: grid; gap: 0; }
.as-axis { position: relative; height: 22px; margin-left: calc(min(34%, 340px) + 16px); margin-right: min(30%, 300px); font: 10.5px var(--mono); color: var(--faint); }
.as-axis span { position: absolute; transform: translateX(-50%); }
.as-axis span:first-child { transform: none; }
.as-axis span:last-child { transform: translateX(-100%); }
.as-run { display: grid; grid-template-columns: min(34%, 340px) minmax(0, 1fr) min(30%, 300px); gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.as-rl { display: grid; gap: 1px; min-width: 0; }
.as-rl .as-tn { font-size: 14px; }
.as-runbar { position: relative; height: 14px; border-radius: 3px; background: var(--track); overflow: hidden; }
.as-runbar s { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(135deg, rgba(194, 56, 43, 0.22) 0 6px, rgba(194, 56, 43, 0.1) 6px 12px); }
.as-runbar i { position: absolute; inset: 3px auto 3px 0; border-radius: 2px; background: var(--text); }
.as-run.st-covered .as-runbar i { background: var(--lo); }
.as-rs { font-size: 13px; color: var(--dim); }
.as-run.st-short .as-rs { color: var(--hi); font-weight: 600; }
.as-run.st-covered .as-rs { color: var(--lo); }
@media (max-width: 760px) {
  .as-run { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .as-axis { margin: 0; }
}

.as-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; margin-bottom: 18px; }
.as-mm { display: grid; gap: 12px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 12px; padding: 18px; }
.as-mm header { display: grid; gap: 2px; }
.as-mh { justify-self: start; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; font: 600 20px var(--font); letter-spacing: -0.02em; color: var(--text); }
.as-mh i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.as-mh:hover { text-decoration: underline; text-underline-offset: 4px; }
.as-chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.as-chain > div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.as-chain > div.over { border-color: var(--hi); }
.as-chain b { font-size: 22px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.as-chain span { font-size: 12.5px; }
.as-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.as-sites li { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.as-site { display: grid; gap: 1px; text-align: left; border: 0; background: none; padding: 0; cursor: pointer; color: var(--text); }
.as-site:hover .as-tn { text-decoration: underline; text-underline-offset: 3px; }
.as-site .as-tn { font-size: 14px; }
.as-sig { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 11px var(--mono); color: var(--faint); }
.as-sig .on { color: var(--hi); }
.as-opt { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--dim); }

/* ---------- for teams ---------- */
.tm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .tm { grid-template-columns: minmax(0, 1fr); } }
.tm-offers { margin: 0; display: grid; }
.tm-o { display: grid; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.tm-o:last-child { border-bottom: 1px solid var(--line); }
.tm-o dt { display: grid; gap: 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.tm-n { font: 500 12px var(--mono); letter-spacing: 0.02em; color: var(--live); }
.tm-o dd { margin: 0; max-width: 62ch; color: var(--dim); font-size: 16px; }
.tm-side { display: grid; gap: 22px; position: sticky; top: 96px; }
@media (max-width: 960px) { .tm-side { position: static; } }
.tm-steps { list-style: none; margin: 0; padding: 0; counter-reset: tm; display: grid; gap: 0; }
.tm-steps li { counter-increment: tm; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.tm-steps li::before { content: counter(tm); grid-row: 1 / 3; font: 500 13px var(--mono); color: var(--faint); padding-top: 3px; }
.tm-steps b { font-weight: 600; font-size: 15.5px; }
.tm-steps span { color: var(--dim); font-size: 14px; }
.tm-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tm-who { margin: 0; font-size: 13.5px; color: var(--dim); max-width: 46ch; }

/* footer imprint */
#oo-imprint a { color: inherit; }

/* selects in the assessment match the atlas's pill controls */
.as-acts select, .as-stc select { -webkit-appearance: none; appearance: none; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23697075' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 12px center / 12px; padding: 0 34px 0 16px; color: var(--text); cursor: pointer; }
.as-add { -webkit-appearance: none; appearance: none; text-align: center; }

/* author card */
.tm-author { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.tm-author img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; filter: grayscale(0.15) contrast(1.03); border: 1px solid var(--line); }
.tm-author h3 { margin: 6px 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.tm-author p { margin: 0 0 10px; font-size: 14.5px; color: var(--dim); max-width: 52ch; }
.tm-author .tm-cred { font-size: 13px; }
.tm-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tm-links a { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.tm-links a:hover { border-bottom-color: var(--text); }
@media (max-width: 520px) { .tm-author { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; } .tm-author img { width: 88px; height: 110px; } }

/* link from a site's panel to its readable page */
.drawer a.pg-link { display: inline-block; margin: 6px 0 4px; font-size: 13px; font-weight: 600; color: var(--text, #eceee9); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(236,238,233,.35); }
.drawer a.pg-link:hover { text-decoration-color: currentColor; }

/* quick check */
.qc-prods { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.qc-p { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line, rgba(236,238,233,.12)); background: transparent; color: var(--text, #eceee9); font: 500 14px var(--sans, inherit); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.qc-p:hover { border-color: rgba(236,238,233,.4); }
.qc-p[aria-pressed="true"] { background: var(--text, #eceee9); color: #050607; border-color: var(--text, #eceee9); }
.qc-sum { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; letter-spacing: -.01em; max-width: 60ch; margin: 0 0 8px; }
.qc-sum b { font-weight: 600; }
.qc-dl { margin: 0 0 18px; color: var(--dim, #a3aaae); font-size: 15px; }
.qc-dl span { font-family: var(--mono, monospace); font-size: 12px; color: var(--live, #3ddc97); margin-right: 6px; }
.qc-dl b { color: var(--text, #eceee9); font-weight: 600; }
.qc-rows { display: grid; gap: 0; border-top: 1px solid var(--line, rgba(236,238,233,.12)); }
.qc-row { display: grid; grid-template-columns: minmax(0, 3.2fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 1.3fr); gap: 18px; align-items: center; padding: 14px 10px; margin: 0 -10px; border: 0; border-bottom: 1px solid var(--line, rgba(236,238,233,.12)); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; transition: background .15s; }
.qc-row:hover, .qc-row:focus-visible { background: rgba(236,238,233,.04); }
.qc-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-weight: 600; font-size: 16px; }
.qc-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.qc-name small { flex-basis: 100%; padding-left: 20px; font-weight: 400; font-size: 13px; color: var(--dim, #a3aaae); }
.qc-share { font-size: 14px; color: var(--dim, #a3aaae); }
.qc-share b { color: var(--text, #eceee9); font-weight: 600; }
.qc-bar { display: block; height: 6px; border-radius: 6px; background: rgba(236,238,233,.08); margin-top: 7px; overflow: hidden; }
.qc-bar span { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.qc-imp { font-size: 14px; color: var(--text, #eceee9); }
.qc-imp small, .qc-imp span { display: block; font-size: 12px; color: var(--dim, #a3aaae); }
.qc-imp span { display: inline; }
.qc-lv em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.qc-red { background: rgba(255, 107, 91, .14); color: #ff8a7d; }
.qc-amber { background: rgba(245, 185, 66, .14); color: #f5c45c; }
.qc-green { background: rgba(61, 220, 151, .14); color: #5be3a8; }
.qc-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qc-note { margin-top: 16px; font-size: 13px; color: var(--faint, #697176); max-width: 70ch; }
@media (max-width: 760px) { .qc-row { grid-template-columns: minmax(0, 1fr) auto; } .qc-share { grid-column: 1 / -1; order: 3; } .qc-imp { order: 4; grid-column: 1 / -1; } .qc-lv { justify-self: end; } }

/* folded sections */
.section.fold.closed { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.section.fold.closed .inner > *:not(.sec-head):not(.fold-bar) { display: none !important; }
.section.fold.closed .sec-head p { display: none; }
.fold-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 4px 0 18px; padding: 14px 18px; border: 1px solid var(--line, rgba(236,238,233,.12)); border-radius: 12px; }
.fold-bar p { margin: 0; max-width: 70ch; color: var(--dim, #a3aaae); font-size: 15px; }
.fold-btn { height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line, rgba(236,238,233,.2)); background: transparent; color: var(--text, #eceee9); font: 600 14px var(--sans, inherit); cursor: pointer; }
.fold-btn:hover { border-color: rgba(236,238,233,.45); }
.section.fold:not(.closed) .fold-bar { border-color: transparent; padding-left: 0; padding-right: 0; }
.band-light .fold-bar p { color: inherit; opacity: .75; }
.band-light .fold-btn { color: inherit; border-color: currentColor; }
/* chapters in the navigation */
.nav-links a.ch-link { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links a.ch-more { display: none; } }
/* plain-language line under each signal */
.sig-mean { margin: 6px 0 12px; font-size: 14px; line-height: 1.5; color: var(--dim, #a3aaae); max-width: 62ch; }
.sig-mean b { color: var(--live, #3ddc97); font-weight: 600; margin-right: 4px; }
.band-light .sig-mean { color: inherit; opacity: .85; }
.band-light .sig-mean b { color: #0f8f5c; }

/* v15.7: one button style across OreOrbit, bohemiadefense.com and madali.cz: sentence case, no wide letter-spacing */
.btn, .nav-links a, .foot-links a, .hud-btn, .seg button, .lens-tabs button, .viz-tabs button, .linkbtn, .back, .brand span { text-transform: none !important; letter-spacing: 0 !important; }
.btn { font-weight: 600 !important; }
.nav-links a { font-weight: 500; }
#nav-check { white-space: nowrap; }
/* the Dependency Index badge in the opening screen */
.idx-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px; border: 1px solid rgba(236,238,233,.18); border-radius: 999px; background: rgba(5,6,7,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text, #eceee9); font-size: 13px; text-decoration: none; transition: border-color .15s; }
.idx-badge:hover { border-color: rgba(236,238,233,.45); }
.idx-badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61,220,151,.18); }
.idx-badge b { font-weight: 600; }
.idx-badge span { color: var(--dim, #a3aaae); }
@media (max-width: 600px) { .idx-badge span { display: none; } }

/* v15.8: tour in the header; folded panel tabs */
#nav-tour { display: inline-flex; }
@media (max-width: 900px) { #nav-tour { display: none !important; } }
.vt-folded { display: none !important; }
.vt-open .vt-folded { display: inline-flex !important; }
.vt-more { align-self: center; height: 32px; padding: 0 12px; margin: 0 4px; border-radius: 999px; border: 1px dashed rgba(236,238,233,.3); background: transparent; color: var(--text, #eceee9); font: 600 12px var(--sans, inherit); cursor: pointer; white-space: nowrap; }
.vt-more:hover { border-color: rgba(236,238,233,.6); }
