/* Noresys ops. The brand's values, declared once and used by name.
   Rules and sources: specs/015-ops-pages-ux/2026-11-14-brand-map.md. */
:root {
  --bone: #EFEEEC;
  --ink: #1F2225;
  --ink-2: #4A5057;
  --rule: #D8D4CC;
  --plate: #FFFFFF;
  --sans: "Helvetica Neue", "Nimbus Sans", Helvetica, Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body { font-family: var(--sans); margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bone); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
h1 code, h2 code, h3 code, h1 .id, h2 .id, h3 .id, h1 .code, h2 .code, h3 .code { font-family: inherit; }
a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--plate); }
main { max-width: 1180px; box-sizing: border-box; margin: 1.5rem auto; padding: 0 clamp(20px, 5vw, 56px); }

header.site { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; padding: 0 1rem 0 0; background: var(--bone); color: var(--ink); border-bottom: 1px solid var(--rule); }
header.site a { color: var(--ink); text-decoration: none; }
header.site a:hover { text-decoration: underline; }
header.site .brand, header.site a, header.site button { display: inline-block; box-sizing: border-box; min-height: 44px; padding: 10px .6rem; line-height: 1.5; }
header.site .brand { padding: 0; font-weight: 600; }
header.site .brand .mark { display: inline-block; box-sizing: content-box; height: 21px; width: auto; padding: 17px; vertical-align: middle; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25rem; flex: 1 1 auto; }
header.site .logout { display: flex; align-items: center; gap: .75rem; margin: 0 0 0 auto; }
header.site .who { color: var(--ink-2); }
header.site [aria-current] { font-weight: 700; text-decoration: underline 3px; text-underline-offset: .3em; }
@media (max-width: 899.98px) { header.site nav { order: 3; flex-basis: 100%; } }

.count { display: inline-block; min-width: 1.5em; padding: 0 .4em; margin-left: .35em; background: var(--ink); color: var(--plate); outline: 3px solid var(--ink); outline-offset: 1px; font-weight: 700; text-align: center; }

table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; background: var(--plate); }
th, td { border: 1px solid var(--rule); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
th { font-weight: 600; }
@media (max-width: 599.98px) {
  table.stack { background: transparent; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  table.stack tr { border: 1px solid var(--rule); background: var(--plate); margin: 0 0 .75rem; padding: .25rem .5rem; }
  table.stack tr.unresolved-row { border-left: 8px solid var(--ink); }
  table.stack tr.orphan-row, table.stack tr.warning { border-left: 4px solid var(--ink); }
  table.stack td { border: 0; padding: .25rem 0; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; }
}
pre { background: var(--plate); border: 1px solid var(--rule); padding: 0.75rem; overflow-x: auto; font-family: var(--mono); font-size: .875rem; }
input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]), select, textarea { border: 1px solid var(--ink); border-radius: 0; background: var(--plate); color: var(--ink); }
input[type=radio], input[type=checkbox] { accent-color: var(--ink); color: var(--ink); }
::placeholder { color: var(--ink-2); opacity: 1; }
textarea { width: 100%; box-sizing: border-box; font-family: var(--mono); }
form { margin: 0.75rem 0; }
fieldset { border: 1px solid var(--rule); margin: .75rem 0; padding: .25rem .75rem .5rem; }
legend { font-weight: 600; padding: 0 .25rem; }

button, .button, input[type=submit] { display: inline-block; min-height: 44px; box-sizing: border-box; padding: 10px 1rem; font: inherit; font-weight: 600; line-height: 1.5; vertical-align: middle; border: 1px solid var(--ink); border-radius: 0; background: var(--plate); color: var(--ink); cursor: pointer; text-decoration: none; }
button:hover, .button:hover, input[type=submit]:hover { box-shadow: inset 0 -2px 0 var(--ink); }
.tap { display: inline-block; min-height: 44px; box-sizing: border-box; padding-block: 10px; vertical-align: middle; }
.wrap-anywhere { overflow-wrap: anywhere; }
pre.wrap-anywhere { white-space: pre-wrap; }

.chip { display: inline-block; padding: .1rem .55rem; border: 1px solid var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.tone-bad { background: var(--ink); color: var(--plate); border: 2px solid var(--ink); outline: 3px solid var(--ink); outline-offset: 1px; margin-inline: .3rem; font-weight: 700; }
.tone-warn { background: var(--plate); color: var(--ink); border: 2px solid var(--ink); font-weight: 600; }
.tone-info { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 600; }
.tone-ok { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 400; }
.tone-neutral { background: transparent; color: var(--ink-2); border: 1px dashed var(--ink-2); font-weight: 400; }
.state-bad { display: inline-block; padding: .1rem .55rem; line-height: 1.5; background: var(--ink); color: var(--plate); border: 2px solid var(--ink); outline: 3px solid var(--ink); outline-offset: 1px; margin: .3rem; font-weight: 700; }

.banner { background: var(--plate); border: 1px solid var(--ink); border-left: 4px solid var(--ink); color: var(--ink); padding: .6rem .75rem; }
.banner-alert { background: var(--plate); border: 3px solid var(--ink); border-left: 8px solid var(--ink); color: var(--ink); font-weight: 700; padding: .6rem .75rem; }
.banner.notice, .banner.skipped { border: 1px solid var(--ink); border-left: 4px solid var(--ink); }
div.banner, div.banner-alert { margin-block: .75rem; }
p.unresolved { border-left: 8px solid var(--ink); padding-left: .6rem; }
tr.unresolved-row { border-left: 8px solid var(--ink); }
tr.orphan-row, tr.warning { border-left: 4px solid var(--ink); }
.trust, .trust-person, .trust-unrecorded, .trust-clean { font-weight: 400; }
p.trust-untrusted, p.trust-personal, p.trust-both { border-left: 4px solid var(--ink); padding-left: .6rem; font-weight: 600; }
.banner > p.trust { border-left: 0; padding-left: 0; }

details.fold { border: 1px solid var(--rule); background: var(--plate); margin: .75rem 0; }
details.fold > summary { cursor: pointer; min-height: 44px; box-sizing: border-box; padding: .6rem .75rem; font-weight: 600; }
details.fold[open] > summary { border-bottom: 1px solid var(--rule); }
details.fold > :not(summary) { margin-left: .75rem; margin-right: .75rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
input[type=date]:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

code { font-family: var(--mono); }
.code, small.code { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.id { font-family: var(--mono); }
.reason-unknown code { font-size: .875rem; }
.lead { font-size: 1.125rem; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; }
@media (max-width: 599.98px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin: 0 0 .5rem; } }

.field { display: block; margin: .75rem 0; }
.field > span { display: block; font-weight: 600; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; box-sizing: border-box; font: inherit; }
.choice { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.choice input[type=radio], .choice input[type=checkbox] { width: 1.5rem; height: 1.5rem; margin: 0; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
