/* Content blocks, format v3 (docs/CONTENT_FORMAT_STANDARD.md): one centered column in a bordered frame. Tokens and the 4/8/12/16/24/32/48 spacing scale only. No shadows or gradients. */
.cb { padding: 48px 16px; }
.cb-frame { position: relative; max-width: 980px; margin: 0 auto; border: 1px solid var(--pw-line); border-radius: 16px; overflow: clip; background: var(--pw-white); }
.cb-frame:focus-visible { outline: 3px solid var(--pw-foil-gold, #EFB13A); outline-offset: 2px; }
.cb-inner { padding: 0 32px; }
.cb-s { max-width: 880px; margin: 0 auto; padding: 36px 0; color: var(--pw-bark-muted); font: 400 16px/27px var(--font-body); text-align: center; }
.cb-s > p { max-width: 62ch; margin: 0 auto; }
.cb-s h2 { margin: 0 0 24px; font: 700 28px/36px var(--font-display); color: var(--pw-bark); text-wrap: balance; }
.cb-s h3 { margin: 0 0 8px; font: 600 17px/27px var(--font-body); color: var(--pw-bark); }
.cb-s b { font-weight: 600; color: var(--pw-bark); }
.cb-s a { color: var(--pw-forest); text-decoration: underline; text-decoration-color: #CFC8BD; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cb-s a:hover { text-decoration-color: var(--pw-forest); }
.cb-s a.btn { text-decoration: none; }
.cb-s:first-child { padding-top: 48px; }
.cb-s:last-child { padding-bottom: 48px; }

/* intro + facts strip */
.cb-lead { font-size: 20px; line-height: 33px; color: var(--pw-bark); max-width: 66ch; }
.cb-lead b { color: var(--pw-bark); }
.cb-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.cb-facts li { padding: 24px 16px; border-left: 1px solid var(--pw-line); }
.cb-facts li:first-child { border-left: 0; }
.cb-facts b { display: block; font: 700 20px/28px var(--font-display); color: var(--pw-forest); }
.cb-facts span { display: block; font: 400 14px/22px var(--font-body); color: var(--pw-bark-muted); }

/* table */
.cb-table { overflow-x: auto; text-align: left; }
.cb-table table { width: 100%; border-collapse: collapse; }
.cb-table th, .cb-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pw-line); font: 400 15px/23px var(--font-body); color: var(--pw-bark-muted); }
.cb-table thead th { padding-top: 0; font: 600 13px/16px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-bark-muted); border-bottom: 1px solid var(--pw-bark); white-space: nowrap; }
.cb-table tbody th { width: 30%; font-weight: 600; color: var(--pw-bark); }
.cb-table td a, .cb-table th a { text-decoration: none; }
.cb-table td a:hover, .cb-table th a:hover, .cb-table a:focus-visible { text-decoration: underline; }
.cb-note { margin: 24px auto 0; max-width: 62ch; }

/* columns (no boxes) */
.cb-cards { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; text-align: left; }
.cb-cards--1 { grid-template-columns: 1fr; text-align: center; }
.cb-cards p { max-width: 62ch; }
.cb-cards--1 p { margin: 0 auto; }
.cb-cards ul { margin: 0; padding-left: 24px; text-align: left; }
.cb-cards--1 ul { display: table; margin: 0 auto; }
.cb-cards li + li { margin-top: 8px; }

/* steps */
.cb-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; text-align: center; }
.cb-steps li { padding: 16px 24px; border-left: 1px solid var(--pw-line); }
.cb-steps li:nth-child(3n+1) { border-left: 0; }
.cb-steps li:nth-child(n+4) { border-top: 1px solid var(--pw-line); }
.cb-num { display: block; margin-bottom: 8px; font: 700 20px/28px var(--font-display); font-variant-numeric: tabular-nums; color: var(--pw-forest); }

/* closing panel */
.cb-s--panel { padding-bottom: 48px; }
.cb-panel { padding: 48px; border-radius: 16px; background: var(--pw-sage-mist); }
.cb-panel p { max-width: 62ch; margin: 0 auto; text-wrap: balance; }
.cb-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.cb-samples p { margin: 0 auto; }
.cb-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.cb-btns .btn { min-height: 44px; border-radius: 8px; box-shadow: none; background-image: none; }

/* scroll box: CSS only. The frame scrolls its own text under the pointer; at the end the page takes over (default browser behavior). 112px = site header + 32px (as in the reference demo). */
@media (min-width: 801px) and (hover: hover) and (min-height: 480px) {
  .cb-frame { max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pw-line-strong) transparent; }
  .cb-frame:hover, .cb-frame:focus-within { border-color: var(--pw-forest); }
}

@media (max-width: 800px) {
  .cb { padding: 32px 16px; }
  .cb-inner { padding: 0 16px; }
  .cb-s h2 { font-size: 24px; line-height: 32px; }
  .cb-facts { grid-template-columns: 1fr 1fr; }
  .cb-facts li:nth-child(3) { border-left: 0; }
  .cb-facts li:nth-child(n+3) { border-top: 1px solid var(--pw-line); }
  .cb-cards, .cb-samples { grid-template-columns: 1fr; }
  .cb-steps { grid-template-columns: 1fr; }
  .cb-steps li, .cb-steps li:nth-child(3n+1) { border-left: 0; border-top: 1px solid var(--pw-line); }
  .cb-steps li:first-child { border-top: 0; }
  .cb-panel { padding: 24px 16px; }
  .cb-btns .btn { flex: 1 1 100%; justify-content: center; }
  .cb-table table { min-width: 520px; }
}
@media print { .cb-frame { border: 0; max-height: none; overflow: visible; } }
