/* ==========================================================================
   Clean Editorial — Karl Support Draft Tool
   Notion meets Linear. Generous whitespace, typographic hierarchy,
   restrained color. The draft gets visual weight; everything else recedes.
   ========================================================================== */

/* --- Fonts ---
   Source Sans 3 (variable, body/display) + Source Code Pro (variable, mono).
   Using Google Fonts CDN for prototyping; swap to self-hosted woff2 in prod. */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Source+Code+Pro:wght@200..900&display=swap");

/* --- Design Tokens (Karl brand) ----------------------------------------- */
:root {
  /* Color palette — HSL */
  --background:            hsl(198, 5%, 96%);
  --foreground:            hsl(198, 14.3%, 16%);
  --card:                  hsl(0, 0%, 100%);
  --card-foreground:       hsl(20, 14.3%, 4.1%);
  --primary:               hsl(198, 76%, 52%);
  --primary-foreground:    hsl(198, 9.1%, 97.8%);
  --secondary:             hsl(350, 89%, 60%);
  --secondary-foreground:  hsl(350, 9.8%, 98%);
  --muted:                 hsl(200, 3%, 94%);
  --muted-foreground:      hsl(198, 5%, 41%);
  --accent:                hsl(11, 91%, 96%);
  --accent-foreground:     hsl(11, 91%, 50%);
  --destructive:           hsl(0, 84.2%, 60.2%);
  --border:                hsl(20, 5.9%, 90%);
  --radius:                0.5rem;

  /* Semantic shortcuts */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 2px 8px rgba(0, 0, 0, 0.07);
  --focus-ring: 0 0 0 2px hsl(198, 76%, 52%, 0.3);

  /* Pipeline category colors */
  --cat-input:    hsl(198, 76%, 52%);
  --cat-pii:      hsl(45, 90%, 50%);
  --cat-context:  hsl(160, 55%, 42%);
  --cat-llm:      hsl(350, 89%, 60%);
  --cat-error:    hsl(0, 84%, 60%);

  /* Typography */
  --font-body:  "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-mono:  "Source Code Pro", ui-monospace, monospace;
  --fw-normal:  380;
  --fw-medium:  520;
  --fw-bold:    680;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 */
  --sp-1:  0.25rem;   /* 4px  */
  --sp-2:  0.5rem;    /* 8px  */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-12: 3rem;      /* 48px */
}


/* --- Reset & Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
}


/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-8);
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-6);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}

h4 {
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}

h5 {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: var(--sp-2);
}

p           { margin-bottom: var(--sp-3); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { text-decoration: underline; }

strong { font-weight: var(--fw-bold); }

small, .text-sm { font-size: 0.875rem; }
.text-muted     { color: var(--muted-foreground); }

mark {
  background: hsl(45, 95%, 85%);
  color: var(--foreground);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-weight: var(--fw-bold);
  font-size: 0.7em;
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* HR — styled as a spacer with a subtle center rule */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
  margin: var(--sp-12) 0;
}


/* --- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}

.container--wide {
  max-width: 960px;
}

main.container {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-12);
}

section {
  margin-bottom: var(--sp-12);
}


/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--sp-6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.25rem;
}

.site-nav .brand {
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav .brand:hover {
  text-decoration: none;
  color: hsl(198, 76%, 42%);
}

.site-nav .nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}

.site-nav .nav-links a {
  font-size: 0.875rem;
  font-weight: var(--fw-normal);
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-links a:hover {
  color: var(--foreground);
  text-decoration: none;
}

.site-nav .nav-links a.active {
  color: var(--foreground);
  font-weight: var(--fw-medium);
  border-bottom-color: var(--primary);
}


/* Sub-navigation — browse tabs (nav > ul inside main content) */
nav:not(.site-nav) > ul {
  display: flex;
  gap: var(--sp-1);
  list-style: none;
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

nav:not(.site-nav) > ul > li > a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav:not(.site-nav) > ul > li > a:hover {
  color: var(--foreground);
  text-decoration: none;
}

nav:not(.site-nav) > ul > li > a.active {
  color: var(--foreground);
  font-weight: var(--fw-medium);
  border-bottom-color: var(--primary);
}


/* --- Cards --------------------------------------------------------------- */
article, .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-3);
}

article header, .card header {
  font-weight: var(--fw-medium);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: var(--sp-2);
}


/* --- Grid ---------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--sp-4);
}

.grid { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid     { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .grid-2   { grid-template-columns: 1fr 1fr; }
  .grid-3   { grid-template-columns: 1fr 1fr 1fr; }
}


/* --- Forms --------------------------------------------------------------- */
label {
  display: block;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  color: var(--muted-foreground);
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-variant: small-caps;
}

input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--sp-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="file"] {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: var(--fw-normal);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
input[type="file"]:hover {
  border-color: var(--primary);
  background: hsl(198, 30%, 95%);
}
input[type="file"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}
/* Style the file button pseudo-element where supported */
input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.8125rem;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.3rem 0.75rem;
  margin-right: var(--sp-3);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
input[type="file"]::file-selector-button:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: hsl(198, 5%, 68%);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23636b6e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--sp-2) 0;
}

/* Inline fieldset (search bar) */
fieldset[role="group"] {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-end;
}

fieldset[role="group"] input,
fieldset[role="group"] select {
  margin-bottom: 0;
}

fieldset[role="group"] button {
  flex-shrink: 0;
  margin-bottom: 0;
}


/* --- Buttons ------------------------------------------------------------- */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  line-height: 1;
  color: var(--primary-foreground);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

button:hover, .btn:hover {
  background: hsl(198, 76%, 45%);
  text-decoration: none;
}

button:active, .btn:active {
  transform: translateY(0.5px);
}

button:focus-visible, .btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

button.secondary, .btn-secondary {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

button.secondary:hover, .btn-secondary:hover {
  background: var(--muted);
  color: var(--foreground);
  border-color: hsl(20, 5.9%, 82%);
}


/* --- Tables -------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-4);
}

/* Let tables break out of the 720px content column */
main.container table {
  width: calc(100% + 3rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

@media (min-width: 960px) {
  main.container table {
    width: calc(100% + 15rem);
    margin-left: -7.5rem;
    margin-right: -7.5rem;
  }
}

thead th {
  font-weight: var(--fw-bold);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-foreground);
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 2px solid hsl(20, 5.9%, 85%);
  white-space: nowrap;
}

tbody td {
  padding: var(--sp-3) var(--sp-3);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--foreground);
  transition: background 0.15s ease;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Clickable rows */
tbody tr[style*="cursor"] td {
  cursor: pointer;
}

tbody tr:hover td {
  background: hsl(198, 10%, 97%);
}

/* Mono numbers in table cells containing cost badges */
tbody .cost-badge {
  font-family: var(--font-mono);
}


/* --- Details / Summary (collapsible sections) ---------------------------- */
details {
  margin: 0;
}

summary {
  cursor: pointer;
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
  color: var(--foreground);
  padding: var(--sp-1) 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color 0.15s ease;
  user-select: none;
}

summary:hover {
  color: var(--primary);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent var(--muted-foreground);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] > summary::before {
  transform: rotate(90deg);
}

details[open] > summary {
  margin-bottom: var(--sp-3);
}


/* --- Code & Pre ---------------------------------------------------------- */
pre, code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

code {
  background: var(--muted);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: hsl(200, 5%, 97%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-6);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.45;
  margin-bottom: var(--sp-3);
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}


/* --- Definition Lists ---------------------------------------------------- */
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-3);
}

dt {
  font-weight: var(--fw-bold);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
  font-variant: small-caps;
}

dd {
  color: var(--foreground);
}


/* --- Pipeline Cards ------------------------------------------------------ */
.pipeline-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-6);
  margin-bottom: var(--sp-3);
  transition: box-shadow 0.2s ease;
}

/* Category left-border colors */
.pipeline-card--input  { border-left-color: var(--cat-input); }
.pipeline-card--pii    { border-left-color: var(--cat-pii); }
.pipeline-card--context { border-left-color: var(--cat-context); }
.pipeline-card--llm    { border-left-color: var(--cat-llm); }

.pipeline-card--error {
  border-left-color: var(--cat-error);
  border-color: hsl(0, 60%, 88%);
  border-left-color: var(--cat-error);
  background: hsl(0, 80%, 98.5%);
}

/* Category dot — small circle before header text */
.pipeline-card summary strong::before,
.pipeline-card > strong::before,
.pipeline-card h4::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: var(--sp-2);
  vertical-align: middle;
  flex-shrink: 0;
}

.pipeline-card--input summary strong::before,
.pipeline-card--input > strong::before,
.pipeline-card--input h4::before   { background: var(--cat-input); }

.pipeline-card--pii summary strong::before,
.pipeline-card--pii > strong::before,
.pipeline-card--pii h4::before     { background: var(--cat-pii); }

.pipeline-card--context summary strong::before,
.pipeline-card--context > strong::before,
.pipeline-card--context h4::before { background: var(--cat-context); }

.pipeline-card--llm summary strong::before,
.pipeline-card--llm > strong::before,
.pipeline-card--llm h4::before     { background: var(--cat-llm); }

.pipeline-card--error h4::before,
.pipeline-card--error summary strong::before,
.pipeline-card--error > strong::before { background: var(--cat-error); }

/* Pipeline card typography */
.pipeline-card summary strong,
.pipeline-card > strong {
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
}

.pipeline-card h4 {
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
}

.pipeline-card pre {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
}

/* Pipeline card summaries — override the general summary arrow
   (the dot already provides a visual cue for the category) */
.pipeline-card summary {
  padding: var(--sp-1) 0;
}


/* --- Draft Output (hero card) -------------------------------------------- */
.pipeline-card--llm:last-of-type,
.draft-output {
  border: 1px solid hsl(198, 40%, 82%);
  border-left: 3px solid var(--cat-llm);
  background: hsl(198, 20%, 99%);
  box-shadow: var(--shadow-md);
  padding: var(--sp-6);
}

#draft-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  padding: var(--sp-4) 0 var(--sp-2);
  color: var(--foreground);
}

#copy-btn {
  float: right;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#copy-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}


/* --- Diff Styles --------------------------------------------------------- */
.diff-removed {
  color: hsl(0, 65%, 48%);
  text-decoration: line-through;
  background: hsl(0, 70%, 96%);
  border-radius: 2px;
  padding: 0 0.15em;
}

.diff-added {
  color: hsl(160, 55%, 35%);
  text-decoration: underline;
  text-decoration-style: dotted;
  background: hsl(150, 50%, 95%);
  border-radius: 2px;
  padding: 0 0.15em;
}


/* --- PII Placeholders ---------------------------------------------------- */
.pii-placeholder {
  display: inline-block;
  background: hsl(45, 80%, 90%);
  color: hsl(35, 60%, 32%);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
}


/* --- Cost Badge ---------------------------------------------------------- */
.cost-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.15em 0.5em;
  border-radius: var(--radius);
}


/* --- Error Banner -------------------------------------------------------- */
.error-banner {
  display: block;
  background: hsl(0, 80%, 97.5%);
  color: hsl(0, 65%, 45%);
  border: 1px solid hsl(0, 55%, 88%);
  border-left: 3px solid var(--destructive);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}


/* --- Pipeline Status ----------------------------------------------------- */
#pipeline-status {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: var(--sp-4);
  min-height: 1.25rem;
}


/* --- Cost Summary Cards (dashboard) -------------------------------------- */
.grid article {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

.grid article header {
  text-align: center;
}

.grid article .cost-badge {
  font-size: 1.375rem;
  background: transparent;
  color: var(--foreground);
  font-weight: var(--fw-bold);
  padding: 0;
}


/* --- Empty states -------------------------------------------------------- */
/* Bare <p> directly inside <main> that contain "No ... yet" / "No ... found" */
main.container > p:only-child,
main.container > section > p:only-of-type:last-child {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card);
}


/* --- Pagination ---------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pagination a {
  font-weight: var(--fw-medium);
}

/* Legacy pagination via nav > ul (browse templates) —
   reuse sub-nav-style list but override to center as pagination */
nav:not(.site-nav):not(:first-of-type) > ul {
  border-bottom: none;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

nav:not(.site-nav):not(:first-of-type) > ul > li {
  /* Reset tab styles for pagination li */
}

nav:not(.site-nav):not(:first-of-type) > ul > li > a {
  border-bottom: none;
  margin-bottom: 0;
  padding: var(--sp-1) var(--sp-2);
  font-weight: var(--fw-medium);
  color: var(--primary);
}
nav:not(.site-nav):not(:first-of-type) > ul > li > a:hover {
  text-decoration: underline;
  color: hsl(198, 76%, 42%);
}


/* --- Messages Row (expandable table rows) -------------------------------- */
.messages-row:empty { display: none; }
.messages-row td {
  padding: var(--sp-4) var(--sp-3);
  background: hsl(200, 5%, 98%);
}


/* --- Lists --------------------------------------------------------------- */
ul, ol {
  padding-left: 1.25rem;
  margin-bottom: var(--sp-3);
}

li { margin-bottom: var(--sp-1); }


/* --- Utilities ----------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* --- Print --------------------------------------------------------------- */
@media print {
  .site-nav, button, .pagination, nav ul { display: none; }
  body { background: white; }
  .container { max-width: 100%; }
  article, .card, .pipeline-card { box-shadow: none; border-color: #ddd; }
}
