/* Shared styles for all /setup/* guide pages.
   Matches the brand of regulance.ai — editorial, restrained, no shadows. */
:root {
  --ink: #0A0E14;
  --body: #2a2f38;
  --muted: #6b7280;
  --rule: #e5e7eb;
  --bg: #FAF8F2;
  --accent: #86B0DA;
  --accent-deep: #1F4C73;
  --good: #047857;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.55;
}
.container { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  text-decoration: none;
  color: var(--ink);
}
.brand-word {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 20px;
}
.brand-word i { color: var(--muted); font-size: 13px; font-style: italic; }

/* Breadcrumb */
.crumb {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* Headings */
h1 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
  color: var(--ink);
}
h1 em { color: var(--accent-deep); font-style: italic; }
h2 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin: 36px 0 10px 0;
  color: var(--ink);
}
h3 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
  margin: 22px 0 6px 0;
  color: var(--ink);
}

.lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

/* Body content */
p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 14px 0;
}
ul, ol { padding-left: 22px; margin: 0 0 14px 0; }
li { font-size: 15px; line-height: 1.65; margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: white;
  padding: 1px 6px;
  border: 1px solid var(--rule);
}
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Step cards */
.steps {
  margin: 22px 0;
  border-left: 1px solid var(--rule);
  padding-left: 26px;
}
.step {
  position: relative;
  margin-bottom: 28px;
}
.step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: -42px;
  top: -4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
}
.steps { counter-reset: step; }
.step-h {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.step p { font-size: 14.5px; margin: 0 0 8px 0; }
.step ul, .step ol { margin-top: 6px; }

/* Cards (for the hub grid) */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: block;
  padding: 24px;
  background: white;
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--body);
}
.card:hover { border-color: var(--ink); }
.card-h {
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.card-time {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-body { font-size: 14px; color: var(--body); margin: 0; }
.card-arrow {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent-deep);
  font-weight: 600;
}

/* Callouts */
.callout {
  margin: 18px 0;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.55;
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); color: #5e3d05; }
.callout.warn strong { color: #5e3d05; }
.callout.bad { border-left-color: var(--bad); background: var(--bad-bg); color: #5b1010; }
.callout.bad strong { color: #5b1010; }
.callout.ok { border-left-color: var(--good); }
.callout h4 {
  margin: 0 0 6px 0;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 15px;
  color: inherit;
}

/* Details disclosure */
details {
  background: white;
  border: 1px solid var(--rule);
  margin-bottom: 8px;
}
summary {
  list-style: none;
  padding: 14px 18px;
  cursor: pointer;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-size: 20px; }
details[open] summary::after { content: '×'; }
details[open] summary { border-bottom: 1px solid var(--rule); }
.disclosure { padding: 16px 20px; }
.disclosure ol { padding-left: 20px; margin: 0; }
.disclosure ol li { margin-bottom: 8px; line-height: 1.6; }

/* Stack diagram */
.flow {
  background: white;
  border: 1px solid var(--rule);
  padding: 18px 22px;
  margin: 18px 0;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  color: var(--body);
}

/* Footer back link */
.foot {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
