/* ListHandoff's public pages. The same colour tokens as the console (app.css): WCAG 2.2 AA contrast, 4.5:1 for
   text and links, 3:1 for borders and focus, in light and dark (test/unit/pages.test.ts checks them). */
:root {
  --bg: #ffffff;
  --text: #1b1f24;
  --muted: #4a5360;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --line: #6b7480;
  --error: #a4161a;
  --panel: #f3f5f8;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --text: #eef1f5;
    --muted: #b9c1cc;
    --accent: #7cb7ff;
    --accent-text: #0b1420;
    --line: #8d96a3;
    --error: #ff8a8f;
    --panel: #1e2329;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.wrap,
header.site,
main,
footer.site {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
}
.brand a {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  min-height: 2.75rem;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
nav a[aria-current='page'] {
  font-weight: 700;
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 1.5rem 0 1rem;
}
h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
}
h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.lead {
  font-size: 1.25rem;
  max-width: 44rem;
}
.muted,
.note {
  color: var(--muted);
}
.note {
  font-size: 0.95rem;
}
blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--panel);
}
blockquote p {
  margin: 0.25rem 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.cards > li,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.cards h3 {
  margin-top: 0.25rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--accent);
  border-radius: 0.4rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.table-scroll {
  overflow-x: auto;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.25rem;
}
ol.steps > li,
ul.plain > li {
  margin: 0.5rem 0;
}
code,
pre {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.92em;
}
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer.site {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  color: var(--accent);
  padding: 0.5rem 1rem;
  z-index: 2;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
