/* Contractor Blog (/contractor-blog). Loads after network.css, overthrive.css and footer.css.
   Article pages: the title block and the reading column share one 720px column, so both start on the same left edge.
   Tokens from DESIGN.md: Forum capitals for headings, Inter for the rest, one red, square cards. */

/* ── Article ─────────────────────────────────────────────────────────── */
.cb-page .cb-head, .cb-page .cb-article { --ot-col: 720px; }
.cb-page .cb-article {
  padding: clamp(28px, 3.5vw, 48px) max(var(--ot-pad), calc((100% - var(--ot-col)) / 2 + var(--ot-col-pad))) clamp(64px, 8vw, 112px);
  background: #fff;
}
.cb-page a.cb-crumb { display: inline-block; text-decoration: none; }
.cb-page a.cb-crumb:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-meta, .cb-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font: 600 13px/1.3 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ot-muted);
}
.cb-meta { margin: 22px 0 0; }
.cb-meta span, .cb-card-meta span { color: var(--ot-red); }

.cb-body { font-size: 18px; line-height: 1.75; color: var(--ot-text); }
.cb-body > * { margin: 0; }
.cb-body > * + * { margin-top: 1.15em; }
.cb-body h2 {
  font: 400 clamp(26px, 3vw, 34px)/1.12 'Forum', Georgia, serif; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ot-ink); margin-top: 2.3em; text-wrap: balance;
}
.cb-body h3 { font: 600 20px/1.35 'Inter', sans-serif; color: var(--ot-ink); margin-top: 1.9em; }
.cb-body h2 + *, .cb-body h3 + * { margin-top: .8em; }
.cb-body > :first-child { margin-top: 0; }
.cb-body ul, .cb-body ol { padding-left: 1.3em; }
.cb-body li + li { margin-top: .45em; }
.cb-body li::marker { color: var(--ot-red); }
.cb-body strong { color: var(--ot-ink); font-weight: 600; }
.cb-body a { color: var(--ot-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cb-body a:hover { color: var(--ot-red-hot); }
.cb-body blockquote { margin-top: 2em; margin-bottom: 2em; padding: 4px 0 4px 24px; border-left: 2px solid var(--ot-red); }
.cb-body blockquote p { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ot-ink); }
.cb-body blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; letter-spacing: .04em; color: var(--ot-muted); }
.cb-body hr { border: 0; height: 1px; background: var(--ot-line); margin-top: 2.6em; margin-bottom: 2.6em; }
.cb-table { overflow-x: auto; }
.cb-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.cb-body th { text-align: left; font-weight: 600; color: var(--ot-ink); border-bottom: 2px solid var(--ot-ink); padding: 10px 14px 10px 0; }
.cb-body td { border-bottom: 1px solid var(--ot-line); padding: 10px 14px 10px 0; vertical-align: top; }
.cb-body td:last-child, .cb-body th:last-child { padding-right: 0; }
@media (max-width: 640px) {
  .cb-body { font-size: 17px; line-height: 1.7; }
  .cb-body blockquote p { font-size: 19px; }
}

/* ── Index ───────────────────────────────────────────────────────────── */
.cb-list { display: grid; gap: 24px; }
.cb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cb-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .cb-grid { grid-template-columns: 1fr; } }
a.cb-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ot-line); color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(20,20,23,.04), 0 12px 32px rgba(20,20,23,.05); padding: 36px 32px 34px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.cb-card:hover { border-color: var(--ot-line-strong); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,20,23,.05), 0 18px 40px rgba(20,20,23,.08); }
a.cb-card:focus-visible { outline: 2px solid var(--ot-red); outline-offset: 3px; }
.cb-card h2 {
  font: 400 clamp(24px, 2.4vw, 30px)/1.12 'Forum', Georgia, serif; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ot-ink); margin: 16px 0 0; text-wrap: balance;
}
.cb-card-rule { display: block; width: 28px; height: 2px; background: var(--ot-red); margin: 18px 0; }
.cb-card p { font-size: 16px; line-height: 1.6; color: var(--ot-text); margin: 0; }
a.cb-feature { padding: clamp(40px, 5vw, 64px); }
.cb-feature h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; max-width: 22em; }
.cb-feature .cb-card-rule { width: 48px; margin: 24px 0; }
.cb-feature p { font-size: 18px; line-height: 1.65; max-width: 40em; }
@media (max-width: 640px) { a.cb-card, a.cb-feature { padding: 30px 24px 28px; } }

/* ── Next-step panel ─────────────────────────────────────────────────── */
.cb-cta .nw-big { font-size: clamp(30px, 4vw, 46px); }
