/* ============================================================
   standards.css
   CRA Standards pages (template-standards.php).
   Hero, sidebar, and cards come from interior-hero.css and
   sidebar.css. This file adds the step rail and the two callouts.
   ============================================================ */

.bch-standards-page .bch-main-content {
  min-width: 0;
}

/* Lead paragraph under the page title, before the first step */
.bch-std-lead {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* ============================================================
   1. STEP RAIL
   Vertical sequence. Numbered by default; --icon swaps the
   circle for an image where the sections are not sequential.
   ============================================================ */

.bch-std-step {
  padding: 32px 0 6px;
}

.bch-std-step:first-of-type {
  padding-top: 6px;
}

.bch-std-step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 7px;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--teal);
}

/* Sections with no number mark. Rules stay full width; heading indents to match the body. */
.bch-std-step-head--nomark {
  padding-left: 46px;
}

.bch-std-step-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bch-std-step-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}

/* Body aligns under the heading, not under the mark */
.bch-std-step-body {
  padding-left: 46px;
}

.bch-std-step-body p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.bch-std-step-body ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.bch-std-step-body li {
  position: relative;
  padding: 0 0 8px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.bch-std-step-body li:last-child {
  padding-bottom: 0;
}

.bch-std-step-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.bch-std-step-body li strong {
  color: var(--navy);
}

/* Reference table. Wrapper scrolls horizontally below the table's min-width. */
.bch-std-table-wrap {
  overflow-x: auto;
  margin: 6px 0 8px;
}

.bch-std-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13.5px;
}

.bch-std-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  color: var(--text);
}

.bch-std-table tr:last-child td {
  border-bottom: 0;
}

.bch-std-table td:first-child {
  width: 27%;
  color: var(--teal);
  font-weight: 700;
}

.bch-std-table td:nth-child(2) {
  width: 19%;
  color: var(--muted);
  white-space: nowrap;
}

/* ============================================================
   2. NOTE CALLOUT
   Used only where a genuine trap exists, never for emphasis.
   ============================================================ */

.bch-std-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--lightteal);
  border: 1px solid var(--teal-border);
  border-radius: 8px;
}

.bch-std-note img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  object-fit: contain;
}

.bch-std-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ============================================================
   3. CROSS-REFERENCE BOX
   Points at another standards page. One line only.
   ============================================================ */

.bch-std-xref {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--lightteal);
  border: 1px solid var(--teal-border);
  border-radius: 8px;
}

.bch-std-xref img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bch-std-xref p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.bch-std-xref a {
  color: var(--teal);
  font-weight: 600;
}

.bch-std-xref a:hover {
  color: var(--navy);
}

@media (max-width: 560px) {
  .bch-std-step-body {
    padding-left: 0;
  }

  .bch-std-step-head--nomark {
    padding-left: 0;
  }
}