/* Tokens follow the Hub: system font stack, #5cbcea accent, #1F2937 text, #6B7280 muted, #E5E7EB borders.
   Links use a darker blue of the same hue so they stay readable on white. */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --tint: #eff8ff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #5cbcea;
  --link: #0a6c9c;
  --link-hover: #084f74;
  --tip-bg: #fef3c7;
  --tip-border: #f59e0b;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #1f2937;
    --tint: #0f2a3d;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --border: #374151;
    --link: #7cccf0;
    --link-hover: #b5e3f7;
    --tip-bg: #3a2f0b;
    --tip-border: #b45309;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: absolute; left: 16px; top: 8px; z-index: 10; background: var(--bg); padding: 8px 12px; border-radius: 6px; }

.site-header { border-bottom: 1px solid var(--border); border-top: 4px solid var(--accent); background: var(--bg); }
.bar, main, .site-footer { width: min(100% - 32px, 820px); margin-inline: auto; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: underline; }
.header-search { display: flex; gap: 8px; }
main { padding: 32px 0 64px; }
.site-footer { border-top: 1px solid var(--border); padding: 20px 0 40px; color: var(--muted); font-size: 0.875rem; }
.site-footer a { color: inherit; }

input[type='search'] { font: inherit; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); min-width: 0; flex: 1; }
button { font: inherit; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--link); color: #fff; cursor: pointer; }
@media (prefers-color-scheme: dark) { button { background: var(--accent); color: #0b1220; } }
button:hover { filter: brightness(1.1); }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 1.35rem; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
h4 { font-size: 1rem; margin: 20px 0 6px; }
.summary, .lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }
.crumbs { font-size: 0.875rem; color: var(--muted); margin-bottom: 12px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 4px; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; font-size: 0.9em; }

.tip { background: var(--tip-bg); border-left: 4px solid var(--tip-border); border-radius: var(--radius); padding: 12px 16px; margin: 24px 0; }
.tip h2 { font-size: 1rem; margin: 0 0 4px; }
.tip p:last-child { margin-bottom: 0; }
.workflow { list-style: none; counter-reset: step; padding: 0; }
.workflow > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 8px; }
.workflow > li::before { content: counter(step); position: absolute; left: 0; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); border: 1px solid var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.workflow h3 { margin-top: 2px; }
.step { margin-left: 4px; padding-left: 14px; border-left: 3px solid var(--border); }
.hub-actions { background: var(--tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px 12px; margin-top: 40px; }
.hub-actions h2 { margin-top: 16px; font-size: 1.1rem; }
.hub-actions ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-link { font-weight: 600; }
.hub-actions .hub-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 999px; background: var(--bg); text-decoration: none; }

.status { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.35em; vertical-align: baseline; }
.status-green { background: var(--green); }
.status-amber { background: var(--amber); }
.status-red { background: var(--red); }

.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.search label { flex-basis: 100%; font-weight: 600; }
.results { margin: 16px 0; }
.cards { list-style: none; padding: 0; display: grid; gap: 10px; }
.cards li { margin: 0; }
.cards a { display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--text); }
.cards a:hover { border-color: var(--accent); background: var(--tint); }
.cards strong { display: block; color: var(--link); }
.cards span { color: var(--muted); font-size: 0.925rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: no-preference) { .cards a { transition: border-color 0.15s, background 0.15s; } }
