/* cliniweb.co.za content pages (feature/landing pages built on inc/layout.php).
   Builds on site.css tokens; only adds what the homepage doesn't have. */

.nav-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }

/* ---- Breadcrumbs ---- */
.crumbs { padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b8c1bb; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Page hero (simpler than the home hero) ---- */
.page-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 780; letter-spacing: -.035em; margin-bottom: 18px; max-width: 820px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .hero-lead { max-width: 680px; }

/* ---- Fee calculator ---- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.calc-inputs { display: grid; gap: 18px; align-content: start; }
.calc label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; }
.calc label small { font-weight: 450; color: var(--muted); }
.calc input {
  font: inherit; font-size: 1.05rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--soft); color: var(--ink); width: 100%;
}
.calc input:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-out { display: grid; gap: 14px; align-content: center; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.calc-row span { color: var(--muted); font-size: .92rem; }
.calc-row b { font-size: 1.5rem; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-row.is-us b { color: var(--accent); }
.calc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-note { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); }

/* ---- Two-column detail blocks ---- */
.detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail + .detail { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); }
.detail h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 750; margin-bottom: 12px; }
.detail .lead { color: var(--muted); font-size: 1.02rem; }
.detail .ticks li { font-size: .97rem; }
.callout { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); font-size: .9rem; }

/* Light (non-band) scheme pills, for use outside the green claims band */
.schemes-light li { background: var(--surface); border-color: var(--line); color: var(--ink); }

@media (max-width: 1000px) {
  .calc, .detail { grid-template-columns: 1fr; }
}

/* Booking slot chips inside a .note phone mockup */
.note .slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.note .slots i { font-style: normal; font-size: .74rem; font-weight: 650; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--ink); }
.note .slots i.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-hero .split h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }

/* Invoice table (pricing page) */
.inv { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.inv table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.inv caption { text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.inv th { text-align: left; font-size: .8rem; font-weight: 650; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.inv td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.inv .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.inv tfoot td { border-bottom: 0; font-weight: 750; color: var(--accent); padding-top: 12px; }

/* WhatsApp chat mockup inside .phone */
.phone-screen.chat { gap: 8px; background: #efeae2; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: .84rem; }
.chat-head .tag { font-size: .68rem; }
.bubble { max-width: 86%; padding: 8px 10px 6px; border-radius: 12px; font-size: .8rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bubble.in { background: #fff; justify-self: start; border-top-left-radius: 4px; }
.bubble.out { background: #d9fdd3; justify-self: end; border-top-right-radius: 4px; }
.bubble em { display: block; font-style: normal; font-size: .7rem; color: var(--muted); margin-top: 4px; }
.bubble small { display: block; text-align: right; font-size: .66rem; color: var(--muted); margin-top: 2px; }
.bubble .ticks-read { font-style: normal; color: #53bdeb; letter-spacing: -2px; }
.bubble.file { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px; font-weight: 600; }
.bubble.file small { grid-column: 1 / -1; }
.file-ico { display: grid; place-items: center; width: 30px; height: 34px; border-radius: 5px; background: var(--danger); color: #fff; font-size: .6rem; font-weight: 750; }

/* ---- Articles (/resources/<slug>/) ---- */
.article-head { max-width: 820px; padding-top: clamp(24px, 4vw, 48px); padding-bottom: 8px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 780; letter-spacing: -.03em; margin-bottom: 16px; }
.article-head .dek { font-size: 1.15rem; color: var(--muted); margin-bottom: 14px; }
.byline { font-size: .86rem; color: var(--muted); }
.prose { max-width: 820px; padding-top: 28px; padding-bottom: clamp(48px, 7vw, 80px); font-size: 1.04rem; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); font-weight: 740; margin-top: 44px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); }
.prose small { color: var(--muted); }
.summary, .product-note, .worked, .sources { border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.summary { background: var(--accent-soft); border: 1px solid #d5e4d9; }
.summary h2, .product-note h2, .sources h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin-top: 12px; }
.product-note { background: var(--surface); border: 2px solid var(--accent); margin-top: 44px; }
.product-note > * + * { margin-top: 12px; }
.worked { background: var(--warning-soft); border: 1px solid #ecdfc6; }
.worked > * + * { margin-top: 10px; }
.worked-label { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--warning); }
.steps-list li { padding-left: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table-wrap th { font-size: .8rem; color: var(--muted); font-weight: 650; }
.table-wrap tr:last-child td { border-bottom: 0; }
.sources { background: var(--soft); border: 1px solid var(--line); margin-top: 44px; font-size: .92rem; }
.sources ol { margin-top: 10px; }
.sources p { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.related-links { margin-top: 36px; }
.related-links h2 { margin-top: 0; font-size: 1.2rem; }
.related-links ul { list-style: none; padding: 0; margin-top: 12px; }
