/* Static mirror of the default post-login theme derived from the standard brand
 * colour #d0ecec (see packages/theme/src/palette.js). This page is pre-login and
 * deliberately not organization-branded, so the values are copied, not loaded.
 * --accent is the readable accent ink, not the pale action colour: it only ever
 * paints link text. */
:root {
  --bg: #f2fafa;
  --surface: #ffffff;
  --text: #1c2b2b;
  --muted: #5b7171;
  --border: rgba(28, 43, 43, 0.14);
  --accent: #477979;
  --code-bg: #eef7f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 15%, rgba(208, 236, 236, 0.9), transparent 55%),
    linear-gradient(135deg, var(--bg), #e1f3f3);
}

.page {
  width: min(1200px, 96vw);
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: grid;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.page-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.back-link::before {
  content: '←';
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

#componentFilter {
  flex: 1 1 220px;
  max-width: 340px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.component-list {
  display: grid;
  gap: 10px;
}

.component summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.component-name {
  font-weight: 700;
}

.license-badge {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.license-badge {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--code-bg);
}

.copyright {
  font-weight: 600;
}

.notice-heading {
  margin: 14px 0 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--code-bg);
  /* Apache-2.0 runs ~200 lines; cap it so one entry cannot dominate the page. */
  max-height: 420px;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
