/* Child Health Card site: what it adds to site.css. */

/* ---------- Layout helpers ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin: 0 0 .75rem; }
.hero h1 { max-width: 15ch; }
.hero-shot { margin: 0; }
.hero-shot img { width: 100%; filter: drop-shadow(0 18px 22px rgba(22, 32, 43, .22)); }
.hero-shot figcaption, .dev figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .6rem; }
.more { margin: 1.75rem 0 0; font-weight: 700; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .section-head p, .section-ink > .wrap > p { color: #dbe5f3; }
.section-ink :focus-visible { outline-color: #fff; }
.status-line { border-left: 4px solid var(--blue); padding: .25rem 0 .25rem 1rem; color: var(--ink-2); max-width: 46rem; }

/* Numbered value points (home) */
.gains { display: grid; gap: 0 3rem; margin: 0; padding: 0; list-style: none; counter-reset: gain; border-top: 2px solid var(--ink); }
.gains > li { counter-increment: gain; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 .9rem; padding: 1.25rem 0; border-bottom: 1px solid var(--field-line); max-width: none; align-content: start; }
.gains > li::before { content: counter(gain); grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.9rem; border: 2px solid var(--blue); border-radius: 4px; color: var(--blue); font-weight: 700; font-size: 1.25rem; background: var(--paper); }
.gains h3 { margin: .15rem 0 .3rem; font-size: 1.15rem; }
.gains p { margin: 0; color: var(--ink-2); grid-column: 2; }
@media (min-width: 56rem) { .gains { grid-template-columns: 1fr 1fr; } }

/* ---------- Device pictures (ready-made frames with transparent backgrounds) ---------- */
.dev { margin: 0; }
.dev img { width: 100%; filter: drop-shadow(0 14px 18px rgba(22, 32, 43, .2)); }
.dev-photo img { border-radius: var(--r); filter: none; }
.dev-narrow { max-width: 15rem; margin-inline: auto; }
.dev-narrow figcaption { text-align: center; }
.showcase { display: grid; gap: 2.5rem 2rem; align-items: end; grid-template-columns: 1fr; }
.showcase .dev-narrow { max-width: 13rem; }
@media (min-width: 40rem) { .showcase { grid-template-columns: 1fr 1fr; } .showcase .span-2 { grid-column: span 2; } }
@media (min-width: 64rem) { .showcase { grid-template-columns: 2.1fr 1.5fr .8fr; } .showcase .span-2 { grid-column: auto; } }
.carry { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.carry > li { max-width: none; }
.carry .art { display: flex; align-items: flex-end; justify-content: center; height: 20rem; margin-bottom: 1rem; }
.carry .mini-chat .chat { height: 100%; }
.carry .dev-phone.sm { width: 9.5rem; } /* 20rem tall, the same as the app phone beside it */
.carry .art img { max-height: 100%; width: auto; max-width: 100%; border-radius: var(--r); }
.carry h3 { margin: 0 0 .3rem; }
.carry p { margin: 0; color: var(--ink-2); }
@media (min-width: 40rem) { .carry { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .carry { grid-template-columns: repeat(4, 1fr); } }

/* In-depth points (For governments) */
.point { padding: 2.75rem 0; border-top: 1px solid var(--field-line); }
.point:first-child { border-top: 0; padding-top: 0; }
.point:last-child { padding-bottom: 0; }
.point-grid { display: grid; gap: 1.5rem 3.5rem; align-items: start; }
.point .num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.9rem; border: 2px solid var(--blue); border-radius: 4px; color: var(--blue); font-weight: 700; font-size: 1.25rem; margin-bottom: .75rem; }
.point h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem); }
.point .lead { font-size: 1.1rem; }
@media (min-width: 56rem) { .point-grid { grid-template-columns: 1fr 1fr; } }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.jump li { max-width: none; }
.jump a { display: block; padding: .4rem .8rem; border: 1px solid var(--field-line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: .95rem; }
.jump a:hover { background: var(--mist); border-color: var(--blue); }

/* ---------- The health office view: drawn here, with invented figures ---------- */
.office { background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--r); box-shadow: 0 18px 40px -28px rgba(22, 32, 43, .55); overflow: hidden; color: var(--ink); }
.office-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1rem; background: var(--blue-deep); color: #fff; }
.office-title { font-weight: 700; }
.example-tag { display: inline-block; padding: .15rem .65rem; border-radius: 999px; background: #fff4dc; color: #7a4b00; border: 1px solid #ecd29b; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.office-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--field-line); border-bottom: 1px solid var(--field-line); }
.office-tiles > div { background: var(--paper); padding: .8rem 1rem; }
.office-tiles dt { font-size: .85rem; color: var(--ink-2); line-height: 1.3; }
.office-tiles dd { margin: .15rem 0 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.office-tiles small { font-size: .95rem; font-weight: 400; color: var(--ink-2); }
@media (min-width: 48rem) { .office-tiles { grid-template-columns: repeat(4, 1fr); } }
.office-grid { display: grid; gap: 1.25rem; padding: 1rem; }
@media (min-width: 60rem) { .office-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; padding: 1.5rem; align-items: start; } }
.office-map { margin: 0; }
.office-map svg { display: block; width: 100%; height: auto; background: var(--mist); border: 1px solid var(--field-line); border-radius: 8px; }
.om-land { fill: #fff; stroke: #8fa6c8; stroke-width: 1.5; stroke-linejoin: round; }
.om-ward { fill: none; stroke: #c9d6ea; stroke-width: 1; stroke-dasharray: 4 4; }
.om-river { fill: none; stroke: #cfe0f5; stroke-width: 6; stroke-linecap: round; }
.om-road { fill: none; stroke: #d9d3c7; stroke-width: 2.5; stroke-linejoin: round; }
.om-clinic circle { stroke: #fff; stroke-width: 2.5; }
.om-clinic text { font: 700 12.5px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.om-clinic .om-pct { font-weight: 400; fill: var(--ink-2); }
.c-high circle { fill: #1c3d6e; }
.c-mid circle { fill: #6c9bdc; }
.c-low circle { fill: #d9583b; }
.k-high { background: #1c3d6e; }
.k-mid { background: #6c9bdc; }
.k-low { background: #d9583b; }
.om-key { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; padding: 0; margin: .75rem 0 0; font-size: .9rem; color: var(--ink-2); }
.om-key li { display: flex; align-items: center; gap: .45rem; max-width: none; }
.om-key i, .office-table i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; flex-shrink: 0; }
.office-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.office-table caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
.office-table th, .office-table td { padding: .42rem .5rem; border-bottom: 1px solid var(--field-line); text-align: left; font-weight: 400; }
.office-table thead th { font-size: .82rem; color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--ink); }
.office-table .n { text-align: right; }
.office-table tbody th { white-space: nowrap; }
.office-table tbody th i { margin-right: .5rem; vertical-align: -.05em; }
.office-table tfoot th, .office-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }
.office-sub { font-size: 1rem; margin: 1.5rem 0 .6rem; }
.office-reasons { list-style: none; margin: 0; padding: 0; font-size: .92rem; display: grid; gap: .35rem; }
.office-reasons li { display: grid; grid-template-columns: minmax(0, 11.5rem) 1fr 2rem; gap: .6rem; align-items: center; max-width: none; }
.office-reasons b { display: block; height: .7rem; border-radius: 2px; background: linear-gradient(var(--blue), var(--blue)) no-repeat left / var(--w) 100%, var(--soft); }
.office-reasons em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.office-foot { margin: 0; padding: .8rem 1rem; border-top: 1px solid var(--field-line); background: #fff9ea; color: #5c3a00; font-size: .9rem; max-width: none; }

/* ---------- Contact form ---------- */
.contact-block { background: var(--paper); border: 1px solid var(--field-line); border-radius: var(--r); padding: 1.25rem; color: var(--ink); }
@media (min-width: 48rem) { .contact-block { padding: 2rem; } }
.form-grid { display: grid; gap: 1rem 1.5rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { margin: 0; max-width: none; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field .hint { font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #7f93b0; border-radius: 6px; padding: .65rem .75rem; min-height: 3rem; }
.field textarea { resize: vertical; min-height: 8rem; display: block; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--warm); outline-offset: 1px; border-color: var(--blue); }
.form-note { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.25rem; max-width: none; }
.form-actions { margin: 1.25rem 0 0; }
.form-actions .btn { min-width: 12rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: 6px; max-width: none; }
.form-status.is-error { background: #fdece7; border: 1px solid #f2c4b6; color: #7a2a15; }
.form-done { padding: 1rem 1.25rem; border-radius: 6px; background: #e7f3ec; border: 1px solid #b7dcc6; }
.form-done h3 { color: #14562f; }
.form-done p { margin: 0; }
.contact-fallback h3 { margin-top: 0; }
.contact-fallback > :last-child { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Status badge and reversed split */
.st { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: .1rem .6rem; margin-left: .35rem; vertical-align: .12em; white-space: nowrap; }
.st-dev { color: #7a4b00; background: #fff4dc; border: 1px solid #ecd29b; }
@media (min-width: 56rem) { .split.flip > :first-child { order: 2; } }

/* ---------- Photographs of people (illustrations, not real patients or staff) ---------- */
.photo { margin: 0; }
.photo img, .people-strip img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--field-line); background: var(--soft); }
.hero-shot.photo img { filter: none; }
.photo figcaption { font-size: .9rem; color: var(--ink-2); margin-top: .6rem; }
.point .photo, .split > div > .photo { margin-top: 1.5rem; }
.photo-tall { max-width: 17rem; }
.head-split { margin-bottom: 2rem; }
.head-split .section-head { margin-bottom: 0; }
.photo-row { display: grid; gap: 1.75rem 1.5rem; margin-top: 2.5rem; align-items: start; }
.photo-row .photo:nth-child(2) { max-width: 17rem; }
@media (min-width: 44rem) {
  /* column widths follow each picture's shape, so the three stand at one height */
  .photo-row { grid-template-columns: 1264fr 569fr 1264fr; }
  .photo-row .photo:nth-child(2) { max-width: none; }
}
.people-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.people-strip > li { max-width: none; margin: 0; }
.people-strip.two { max-width: 44rem; margin-top: 2.5rem; }
@media (min-width: 56rem) { .people-strip { grid-template-columns: repeat(4, 1fr); gap: 1rem; } .people-strip.two { grid-template-columns: 1fr 1fr; } }
.people-cap { margin: .6rem 0 0; }
.people-note { margin: 1.25rem 0 0; max-width: 40rem; }

/* "Everything in your name": six things a government gets under its own brand, in an even 3 x 2 grid */
.brand-grid { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.brand-grid li { background: var(--paper, #fff); border: 1px solid var(--field-line, #d6dfe8); border-radius: var(--r, 12px); padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.brand-grid svg { color: var(--blue, #2b5a9e); background: var(--soft, #eef3f9); border-radius: 10px; padding: .45rem; width: 2.6rem; height: 2.6rem; margin-bottom: .35rem; }
.brand-grid h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.brand-grid p { margin: 0; color: var(--ink-2, #586a7e); line-height: 1.5; }
@media (max-width: 60rem) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .brand-grid { grid-template-columns: 1fr; } }

/* Contact page: direct ways to reach us beside the form */
.contact-split { align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.contact-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .9rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list .k { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2, #586a7e); }
.contact-list .v { font-size: 1.35rem; font-weight: 700; color: var(--ink, #12263a); text-decoration: none; }
.contact-list a.v:hover { text-decoration: underline; }
.contact-cta { border-top: 1px solid var(--field-line, #d6dfe8); padding-top: 1.25rem; margin-top: 1.25rem; }
.contact-cta h3 { margin: 0 0 .4rem; }
.contact-cta .btn { margin: .25rem .4rem .25rem 0; }
.ticks { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

/* The admin console's real screens under the drawn office view (20 Nov 2026). */
.admin-shots { display: grid; gap: 2rem 1.5rem; margin-top: 2.5rem; }
.admin-shots .device figcaption { max-width: none; }
@media (min-width: 52rem) { .admin-shots { grid-template-columns: repeat(3, 1fr); } }
.admin-note { margin: 1.25rem 0 0; font-size: .9rem; color: var(--ink-2); }
