/* Nordkeep portal. Self-hosted, no external fonts or resources. */
:root {
  --ink: #17212b;
  --muted: #536170;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #d9dee4;
  --brand: #1d4f6e;
  --brand-ink: #ffffff;
  --focus: #f2a900;
  --red-bg: #fde8e8; --red-ink: #8a1c1c;
  --amber-bg: #fff4d6; --amber-ink: #6b4a00;
  --green-bg: #e3f4e8; --green-ink: #1d5c2e;
  --grey-bg: #eceff2; --grey-ink: #3c4752;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-block: 2rem; }
.container { width: min(72rem, 100% - 2rem); margin-inline: auto; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 .75rem; }
.h3 { font-size: 1.1rem; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { background: var(--brand); color: var(--brand-ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--brand-ink); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.nav a { color: var(--brand-ink); text-decoration: none; }
.nav a:hover, .nav a:focus-visible { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; padding-block: 1rem; }

.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.message { padding: .75rem 1rem; border-radius: 6px; background: var(--grey-bg); margin-bottom: .5rem; }
.message--error { background: var(--red-bg); color: var(--red-ink); }
.message--success { background: var(--green-bg); color: var(--green-ink); }
.notice { background: var(--amber-bg); color: var(--amber-ink); padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: .65rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--grey-bg); font-size: .875rem; }
.table tbody th { font-weight: 600; }

.badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .85rem; font-weight: 600; border: 1px solid transparent; }
.badge--action_required { background: var(--red-bg); color: var(--red-ink); border-color: #e6b3b3; }
.badge--unknown { background: var(--amber-bg); color: var(--amber-ink); border-color: #e8cf8a; }
.badge--ok { background: var(--green-bg); color: var(--green-ink); border-color: #a9d6b5; }
.badge--none { background: var(--grey-bg); color: var(--grey-ink); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 1rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.legend dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1rem; }
.legend dd { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 700; }
.breadcrumb { font-size: .9rem; margin: 0 0 .5rem; }

/* Forms (allauth pages) */
form p { margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=email], input[type=password], input[type=text], input[type=number], textarea {
  width: 100%; max-width: 28rem; padding: .55rem .7rem; border: 1px solid #9aa5b1; border-radius: 6px; font: inherit; background: #fff;
}
button, .button {
  display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 6px;
  padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; margin: 0 .5rem .5rem 0;
}
button:hover, .button:hover { filter: brightness(1.1); }
.errorlist { color: var(--red-ink); padding-left: 1.2rem; }
code { background: var(--grey-bg); padding: .1rem .35rem; border-radius: 4px; }
.nk-token { font-size: 1.05rem; word-break: break-all; }
