/* OCALLY · cost.css: the consolidation argument and the real-cost calculator (tools/lib/cost-html.mjs), shared by the
   capability pages, the platform page, the comparison hub and pages, and any post with a ```cost block. Tokens from
   base.css. The calculator sets the same work bought as tools, agencies and staff hours against Ocally; cost.js makes
   every number editable. Paragraph rules carry the element so they win over a reading page's own `p` styles. */

/* ── the calculator ── */
.cw { margin: 30px 0 36px; background: #fff; border: var(--rule); box-shadow: var(--lift) var(--navy); color: var(--navy); }
.cw__k { padding: 14px 18px; background: var(--navy); color: var(--on-navy); font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
.cw__ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; border-bottom: var(--rule); background: var(--sky); }
.cw__in { display: grid; gap: 6px; align-content: end; font: var(--t-fine); color: var(--muted); }
.cw__in input { width: 100%; height: 40px; padding: 0 10px; border: var(--rule); background: #fff; font: var(--t-data); font-size: 15px; color: var(--navy); }
.cw__cols { display: grid; grid-template-columns: 1fr 1fr; }
.cw__col { min-width: 0; padding: 18px; }
.cw__col + .cw__col { border-left: var(--rule); }
.cw__col--us { background: var(--tint-peach); }
.cw p.cw__h { margin: 0 0 10px; font: var(--t-h6); letter-spacing: var(--ls-h6); color: var(--navy); }
.cw ul { list-style: none; margin: 0; padding: 0; }
.cw li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 0; border-top: 1px solid var(--line); font: var(--t-small); color: var(--body); }
.cw li > span { min-width: 0; }
.cw li small { display: block; margin-top: 2px; font: var(--t-fine); color: var(--muted); }
.cw li b { flex: none; font: var(--t-data); color: var(--navy); }
.cw li.is-them > span { font-weight: 600; color: var(--navy); }
.cw__price { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.cw__price input { width: 64px; height: 24px; padding: 0 4px; border: 1px solid var(--line); border-bottom: 1.5px solid var(--navy); background: var(--paper); font: var(--t-data); font-size: 12px; color: var(--navy); }
.cw p.cw__t { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; padding-top: 10px; border-top: var(--rule); font: var(--t-h6); color: var(--navy); }
.cw p.cw__t b { font: var(--t-h4); letter-spacing: var(--ls-h4); }
.cw .cw__col--us p.cw__t b { color: var(--orange-ink); }
.cw p.cw__ps { margin: 2px 0 0; text-align: right; font: var(--t-fine); color: var(--muted); }
.cw .cw__col--us :is(small, p.cw__ps) { color: var(--body); }   /* muted grey falls short of AA on the peach */
.cw p.cw__save { margin: 10px 0 0; text-align: right; font: var(--t-h6); color: var(--leaf-ink); }
.cw p.cw__note { margin: 0; padding: 12px 18px 14px; border-top: var(--rule); font: var(--t-fine); color: var(--muted); }
.cw p.cw__note a { color: inherit; }

/* ── the consolidation section: the argument, the calculator, the consultation ── */
.cx { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px var(--gap-cols); align-items: start; padding: var(--sec-y) var(--edge); background: var(--cream); color: var(--navy); }
.cx__copy { position: sticky; top: calc(var(--bar) + 32px); }
.cx__h { margin: 14px 0 0; max-width: 11em; font: var(--t-h2); letter-spacing: var(--ls-h2); text-wrap: balance; }
.cx p.cx__p { margin: var(--gap-lede) 0 0; max-width: 32em; font: var(--t-body); color: var(--body); }
.cx p.cx__ask { font-weight: 600; color: var(--navy); }
.cx__go { margin-top: 24px; }
.cx__calc .cw { margin: 0; }

/* the short form inside a comparison article */
.cx-note { margin: 8px 0 40px; padding: 24px 26px; background: var(--cream); border: var(--rule); box-shadow: var(--lift) var(--orange); }
.cx-note p { margin: 0 0 12px; font: var(--t-body); color: var(--body); }
.uc-article .cx-note p.cx-note__k { margin: 0 0 6px; font: var(--t-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--orange-ink); }
.uc-article .cx-note p.cx-note__h { margin: 0 0 12px; font: var(--t-h4); letter-spacing: var(--ls-h4); color: var(--navy); }
.uc-article .cx-note p { font: var(--t-body); }
.uc-article .cx-note p:last-child { margin-bottom: 0; }
.cx-note__go { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 900px) { .cx { grid-template-columns: 1fr; } .cx__copy { position: static; } }
@media (max-width: 640px) { .cw__ins { grid-template-columns: 1fr 1fr; } .cw__cols { grid-template-columns: 1fr; } .cw__col + .cw__col { border-left: 0; border-top: var(--rule); } }
