/* Collective Logic Portal: brand colours from claude/merk-collective-logic.md */
:root {
  --navy: #12294a;
  --amber: #c27c00;
  --amber-light: #f2b233;
  --bg: #f6f7f9;
  --line: #d5dadf;
  --text: #1f2a30;
  --muted: #4a5560;
  --danger: #b42318;
  --ok: #1f7a43;
  --radius: 10px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--navy);
}
a:hover {
  color: var(--amber);
}
.env-banner {
  background: var(--amber-light);
  color: var(--navy);
  text-align: center;
  font-weight: 600;
  padding: 6px;
  letter-spacing: 0.08em;
}
.bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: var(--navy);
}
.wordmark .w1 {
  font-weight: 600;
}
.wordmark .w2 {
  margin-top: 3px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
nav a {
  text-decoration: none;
  padding: 10px 0;
}
.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  flex: 1;
}
.page.wide {
  max-width: 1100px;
}
h1 {
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 16px;
}
h2 {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 0 0 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
label {
  font-weight: 600;
  font-size: 0.95rem;
}
input,
select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #8a96a3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  min-height: 44px;
}
input:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid var(--amber-light);
  outline-offset: 2px;
}
small,
.meta {
  color: var(--muted);
  font-size: 0.875rem;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #0c1d35;
  color: #fff;
}
button.secondary {
  background: #fff;
  color: var(--navy);
}
button.secondary:hover {
  background: var(--bg);
  color: var(--navy);
}
button.danger {
  background: #fff;
  color: var(--danger);
  border-color: var(--danger);
}
button.link {
  background: none;
  border: none;
  color: var(--navy);
  padding: 10px 0;
  min-height: 0;
  font-weight: 400;
  text-decoration: underline;
}
.button.small {
  min-height: 36px;
  padding: 6px 14px;
  color: #fff;
}
form.inline {
  display: inline;
}
.aside {
  margin-top: 12px;
}
.notice {
  background: #eef3fa;
  border-left: 4px solid var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
}
.error {
  background: #fdf0ef;
  border-left: 4px solid var(--danger);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: 6px;
}
.ok {
  color: var(--ok);
  font-weight: 600;
}
.steps li {
  margin-bottom: 12px;
}
.qr {
  background: #fff;
  display: inline-block;
  padding: 8px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qr svg {
  display: block;
  width: 200px;
  height: 200px;
}
.secret {
  font-size: 1rem;
  word-spacing: 0.3em;
}
.codes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.codes code {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 1.05rem;
}
.search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search input {
  flex: 1 1 240px;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 0.85rem;
  color: var(--muted);
}
.pager {
  margin-top: 12px;
  gap: 16px;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0 0 16px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
details summary {
  cursor: pointer;
  padding: 8px 0;
  color: var(--danger);
}
.foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.langs {
  display: flex;
  gap: 16px;
}
.langs a[aria-current] {
  font-weight: 600;
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
