/* ============================================================
   Blue Door Software: content pages (guides, process library,
   how we work, local pages). Loaded after styles.css, only on
   pages that use these blocks. Uses the tokens from styles.css.
   ============================================================ */

/* Answer-first summary */
.c-summary {
  margin-top: 2rem;
  padding: 1.15rem 1.3rem 1.25rem;
  border-left: 3px solid var(--cyan-ink);
  border-radius: 0 14px 14px 0;
  background: var(--paper-2);
}
.c-summary .c-kicker,
.c-approve .c-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}
.article-body .c-summary p { margin-top: 0; color: var(--ink); }
.article-body .c-summary p + p { margin-top: 0.7rem; }

/* Sector / role / job tags */
.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.c-tags li {
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem !important;
  line-height: 1.6 !important;
  letter-spacing: 0.04em;
  color: var(--muted) !important;
}
.c-tags li b { color: var(--ink); font-weight: 500; }

/* Numbered steps inside an article */
.article-body ol.c-steps {
  margin: 1.3rem 0 0;
  padding: 0;
  counter-reset: cstep;
}
.article-body ol.c-steps > li {
  position: relative;
  padding: 0 0 1.15rem 3rem;
  counter-increment: cstep;
}
.article-body ol.c-steps > li::before {
  content: counter(cstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
}
.article-body ol.c-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.025rem - 1px);
  top: 2.3rem;
  bottom: 0.15rem;
  width: 2px;
  background: var(--line);
}
.article-body ol.c-steps > li > strong { display: block; color: var(--ink); font-weight: 600; }
.article-body ol.c-steps > li.is-approve::before { background: var(--amber-ink); }
.c-flag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.12em;
  border: 1px solid currentColor;
}
.c-flag-ai { color: var(--cyan-ink); }
.c-flag-human { color: var(--amber-ink); }

/* "A person approves" callout */
.c-approve {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem 1.2rem;
  border: 1px solid rgba(156, 83, 8, 0.35);
  border-left: 3px solid var(--amber-ink);
  border-radius: 0 14px 14px 0;
  background: rgba(251, 146, 60, 0.07);
}
.c-approve .c-kicker { color: var(--amber-ink); }
.article-body .c-approve p { margin-top: 0; color: var(--ink); }
.article-body .c-approve p + p,
.article-body .c-approve ul { margin-top: 0.6rem; }

/* Process diagram */
.c-figure {
  margin: 1.8rem 0 0;
  padding: 1.2rem 1rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbf9f3;
}
.c-figure svg { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.c-figure figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Checklist */
.article-body ul.c-checklist { list-style: none; padding-left: 0; }
.article-body ul.c-checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
  border-bottom: 1px dashed var(--line);
}
.article-body ul.c-checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.72rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--cyan-ink);
  border-radius: 4px;
  background: #fff;
}

/* Comparison table */
.c-table-wrap {
  margin-top: 1.4rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.c-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; }
.c-table th, .c-table td { padding: 0.7rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #33404a; }
.c-table thead th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.c-table tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.c-table tr:last-child th, .c-table tr:last-child td { border-bottom: 0; }

/* Card grid (process library hub, related routes) */
.c-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}
.article-body .c-cards li { margin: 0; }
.c-card {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.c-card:hover { transform: translateY(-2px); border-color: var(--cyan-ink); box-shadow: 0 10px 24px -16px rgba(11, 13, 16, 0.4); }
.c-card .c-card-meta { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-ink); }
.c-card .c-card-title { display: block; margin-top: 0.35rem; font-weight: 600; line-height: 1.35; }
.c-card .c-card-text { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .c-card { transition: none; } .c-card:hover { transform: none; } }
@media (max-width: 640px) { .c-cards { grid-template-columns: 1fr; } }

/* Small print */
.c-note { margin-top: 1.6rem !important; color: var(--muted) !important; font-size: 0.9rem !important; }
.article-body h3 { margin-top: 1.6rem; font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
