/* ============================================================
   Craft Boys — long-form typography (.cb-prose) + the prose page
   wrapper used by templates/pages/default.php (legal pages,
   service/area children). Blog post bodies reuse .cb-prose with
   the --post width modifier. Auto-loaded by head.php.
   ============================================================ */

.cb-prose-page {
  background: var(--cb-light);
  padding-block: clamp(48px, 6vw, 88px);
}

.cb-prose {
  max-width: 820px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cb-body);
}
.cb-prose--legal { max-width: 760px; }
.cb-prose--post  { max-width: 720px; font-size: 17px; line-height: 1.75; }

.cb-prose p { margin: 0 0 18px; }

.cb-prose h2,
.cb-prose h3,
.cb-prose h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--cb-ink);
  margin: 40px 0 16px;
}
.cb-prose h2 {
  font-size: clamp(22px, 2.2vw, 26px);
  padding-top: 14px;
  position: relative;
}
.cb-prose h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--cb-yellow);
}
.cb-prose h3 { font-size: clamp(18px, 1.8vw, 20px); }
.cb-prose h4 { font-size: 16px; }

.cb-prose a {
  color: var(--cb-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 20, 20, .35);
  transition: color .18s ease, text-decoration-color .18s ease;
}
.cb-prose a:hover {
  color: var(--cb-yellow-2);
  text-decoration-color: var(--cb-yellow-2);
}

.cb-prose ul,
.cb-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.cb-prose li { margin: 0 0 8px; }
.cb-prose ul { list-style: none; padding-left: 0; }
.cb-prose ul > li {
  position: relative;
  padding-left: 22px;
}
.cb-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--cb-yellow);
}
.cb-prose ol { counter-reset: cb-ol; list-style: none; padding-left: 0; }
.cb-prose ol > li {
  counter-increment: cb-ol;
  position: relative;
  padding-left: 32px;
}
.cb-prose ol > li::before {
  content: counter(cb-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--cb-yellow-2);
  letter-spacing: .04em;
}

.cb-prose blockquote {
  background: var(--cb-white);
  border-left: 3px solid var(--cb-yellow);
  border-radius: var(--cb-radius);
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 28px rgba(20, 20, 20, .07);
  font-style: italic;
  margin: 26px 0;
  padding: 20px 24px;
}
.cb-prose blockquote p:last-child { margin-bottom: 0; }

.cb-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cb-radius);
  display: block;
  margin: 26px 0;
}
.cb-prose figure { margin: 26px 0; }
.cb-prose figure img { margin: 0; }
.cb-prose figcaption {
  font-size: 14px;
  color: #5A6A72;
  margin-top: 10px;
}

.cb-prose hr {
  border: 0;
  height: 1px;
  background: rgba(20, 20, 20, .12);
  margin: 34px 0;
}

.cb-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15px;
  background: var(--cb-white);
  border-radius: var(--cb-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 28px rgba(20, 20, 20, .07);
}
.cb-prose th,
.cb-prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(20, 20, 20, .08);
}
.cb-prose th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--cb-ink);
}
.cb-prose tbody tr:nth-child(even) { background: var(--cb-card); }
.cb-prose tr:last-child td { border-bottom: 0; }

/* Small slate contact line under legal text */
.cb-prose-page__note {
  max-width: 820px;
  margin-top: 34px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: #5A6A72;
}
.cb-prose-page__note a { color: inherit; }
.cb-prose-page__note a:hover { color: var(--cb-yellow-2); }

@media (max-width: 640px) {
  .cb-prose { font-size: 15.5px; }
  .cb-prose--post { font-size: 16px; }
  .cb-prose table { display: block; overflow-x: auto; }
}
