/* ADHD Assessment UK pages on avonmedicaluk.co.uk.
   Avon's site.css styles the shell (header, footer, type, buttons). This file styles the page
   components the ADHD pages bring with them, in Avon's colours, and only on pages whose body
   has class="adhd" (written by build/export-avon.mjs). */

.adhd main { padding-bottom: clamp(48px, 6vw, 80px); }
.adhd .wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.adhd .meta { color: var(--muted); font-size: 0.9375rem; }
.adhd .unlinked { text-decoration: none; }

/* page frame */
.adhd .breadcrumb { margin: 22px 0 0; font-size: 0.875rem; }
.adhd .breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.adhd .breadcrumb li { margin: 0; }
.adhd .breadcrumb li + li::before { content: "/"; content: "/" / ""; margin-right: 6px; color: var(--line-strong); }
.adhd .breadcrumb a { color: var(--muted); padding-block: 3px; }
.adhd .page { max-width: 46rem; padding-top: 24px; }
.adhd .page-wide { max-width: 64rem; }
.adhd .page-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.adhd .page-head h1 { font-size: clamp(2.125rem, 3vw + 1rem, 3.25rem); margin-bottom: 0.35em; }
.adhd .lede { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.6; color: var(--ink-soft); max-width: 44rem; margin-bottom: 0; }
.adhd .eyebrow { margin-bottom: 14px; }
.adhd .prose > :first-child { margin-top: 0; }
.adhd .prose h2 { font-size: clamp(1.5rem, 0.8vw + 1.15rem, 1.875rem); margin: 2em 0 0.5em; }
.adhd .prose h3 { margin: 1.6em 0 0.4em; }
.adhd .prose ul, .adhd .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.adhd .prose li { margin-bottom: 0.4em; }
.adhd .prose li::marker { color: var(--navy-600); }
.adhd blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); color: var(--ink-soft); }
.adhd code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--navy-50); padding: 0.1em 0.3em; border-radius: 4px; }
.adhd hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* buttons: the source's .btn matches Avon's .button */
.adhd .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 11px 24px; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.adhd .btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.adhd .btn-quiet { background: transparent; color: var(--navy); }
.adhd .btn-quiet:hover { background: var(--navy-50); color: var(--navy); }
.adhd .btn-small { min-height: 40px; padding: 7px 18px; font-size: 0.9375rem; }
.adhd .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.adhd .linklike, .adhd button.quiet { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* grids and cards: the source's auto-fit grids */
.adhd .grid { gap: 20px; }
.adhd .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.adhd .grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.adhd .grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.adhd .card { padding: 22px 24px; box-shadow: none; }
.adhd .card h3 { margin-top: 0; }

/* content boxes (::: answer, note, warning, urgent, steps, framework) */
.adhd .box { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.adhd .box > :last-child { margin-bottom: 0; }
.adhd .box-title { font-weight: 600; color: var(--navy-950); margin-bottom: 6px; }
.adhd .box-answer { background: var(--navy-50); border-color: var(--navy-100); border-left: 4px solid var(--navy); font-size: 1.0625rem; }
.adhd .box-note { border-left: 4px solid var(--gold); }
.adhd .box-warning { background: #fdf6ec; border-color: #ebd3ae; border-left: 4px solid #a8641b; }
.adhd .box-urgent { background: var(--danger-bg); border-color: #e7b4ae; border-left: 4px solid var(--danger); }
.adhd .box-steps { background: #fff; }
.adhd .box-steps ol { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.adhd .box-steps ol > li { counter-increment: step; position: relative; padding: 0 0 16px 48px; margin: 0; }
.adhd .box-steps ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9375rem; display: grid; place-items: center;
}
.adhd .box-framework { background: #fff; border: 1.5px solid var(--navy); }
.adhd .pom-note { border: 1px solid var(--line); border-left: 4px solid var(--navy-600); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9375rem; }

/* chips and RAG labels */
.adhd .chip-row { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.adhd .chip, .adhd .rag {
  display: inline-block; font-size: 0.8125rem; font-weight: 600; border-radius: 999px; padding: 3px 11px;
  border: 1.5px solid currentColor; background: #fff; white-space: nowrap;
}
.adhd .rag { white-space: normal; }
.adhd .chip-formal-feature { color: #1f6b45; }
.adhd .chip-associated-feature, .adhd .rag-amber_plus { color: #7a4f0d; }
.adhd .chip-community-term, .adhd .rag-mixed, .adhd .rag-conflicting { color: #5c4a86; }
.adhd .rag-red { color: var(--danger); }
.adhd .rag-amber { color: #8f5414; }
.adhd .rag-grey { color: #56615b; }

/* tables */
.adhd .table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.adhd table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; line-height: 1.5; }
.adhd caption { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--navy-950); caption-side: top; }
.adhd th, .adhd td { padding: 11px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.adhd thead th { background: var(--navy-50); color: var(--navy-950); border-top: 0; font-weight: 600; }
.adhd tbody th { font-weight: 600; color: var(--navy-950); min-width: 9rem; }
.adhd td, .adhd th { overflow-wrap: anywhere; }

/* FAQs written as <details> */
.adhd details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin: 0 0 10px; }
.adhd details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy-950); list-style-position: inside; }
.adhd details[open] > summary { border-bottom: 1px solid var(--line); }
.adhd details > :not(summary) { padding-inline: 18px; }
.adhd details > :last-child { padding-bottom: 6px; }

/* page furniture: sources, citation, review, call to action, related, children */
.adhd .sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.adhd .sources ol { padding-left: 1.3em; }
.adhd .sources a, .adhd .cite-text { overflow-wrap: anywhere; }
.adhd .cite { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; }
.adhd .cite-text { margin: 0 0 8px; }
.adhd .cite h2, .adhd .sources h2, .adhd .related h2, .adhd .children h2 {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.adhd .review-box { margin-top: 32px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-soft); }
.adhd .review-box p { margin: 0 0 4px; }
.adhd .cta { margin-top: 40px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); background: var(--navy); color: #d5deea; }
.adhd .cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.5rem; }
.adhd .cta a:not(.btn) { color: #fff; }
.adhd .cta .btn { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.adhd .cta .btn:hover { background: #e4c676; border-color: #e4c676; }
.adhd .cta .btn-quiet { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.adhd .cta .btn-quiet:hover { background: rgb(255 255 255 / 10%); border-color: #fff; color: #fff; }
.adhd .cta .actions { margin-bottom: 0; }
.adhd .related { margin-top: 40px; }
.adhd .related ul, .adhd .link-list, .adhd .guide-group ul { list-style: none; padding: 0; margin: 0; columns: 2 16rem; column-gap: 32px; }
.adhd .related li, .adhd .link-list li, .adhd .guide-group li { margin: 0 0 8px; break-inside: avoid; }
.adhd .children { margin-top: 40px; }
.adhd .link-cards { list-style: none; padding: 0; margin: 0; }
.adhd .link-cards li { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.adhd .link-cards a { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: 4px; }
.adhd .link-cards span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.adhd .children .link-cards + .link-list, .adhd .children .link-cards + .link-cards { margin-top: 24px; }
.adhd .guide-group { margin-bottom: 40px; }
.adhd .guide-group h2 { margin-top: 32px; }
.adhd .price-card { display: flex; flex-direction: column; }
.adhd .price-card > p:last-child { margin-top: auto; padding-top: 8px; }
.adhd .price-card .price { font-family: var(--serif); font-size: 2.25rem; font-weight: 600; color: var(--navy-950); margin: 4px 0 10px; line-height: 1; }
.adhd .price-card ul { font-size: 0.9375rem; padding-left: 1.1rem; }

/* sections some hubs write in HTML */
.adhd .band { padding: 40px 0; }
.adhd .band-tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.adhd .band h2 { margin-top: 0; }
.adhd .band-intro { max-width: 44rem; color: var(--muted); }
.adhd ul.ticks { list-style: none; padding: 0; margin: 0; }
.adhd ul.ticks li { position: relative; padding-left: 28px; margin: 9px 0; }
.adhd ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.35em; width: 7px; height: 12px;
  border: solid var(--navy); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.adhd ul.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; border: 0; }
.adhd ul.facts li { margin: 0; border-left: 4px solid var(--gold); padding: 3px 0 3px 16px; }
.adhd ul.facts strong { display: block; color: var(--navy-950); }
.adhd ul.facts span { color: var(--muted); font-size: 0.9375rem; }
.adhd .step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; margin-bottom: 10px; }

/* interactive tools */
.adhd .app { margin: 24px 0; }
.adhd .app fieldset { border: 0; margin: 0; padding: 0; }
.adhd .app legend { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.25; color: var(--navy-950); padding: 0; margin: 0 0 10px; }
.adhd .step-count, .adhd .q-help, .adhd .hint { color: var(--muted); font-size: 0.9375rem; margin: 0 0 12px; }
.adhd label.opt { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 13px 16px; margin: 0 0 9px; cursor: pointer; background: #fff; }
.adhd label.opt:hover { border-color: var(--line-strong); }
.adhd label.opt input { appearance: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; margin: 0 11px 0 0; vertical-align: -4px; background: #fff; }
.adhd label.opt input:checked { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--navy); }
.adhd label.opt:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
.adhd label.opt .sub { display: block; color: var(--muted); font-size: 0.9375rem; margin-left: 31px; }
.adhd .opt-name strong { float: right; color: var(--navy-950); }
.adhd .field { margin: 0 0 18px; }
.adhd .field > label { display: block; font-weight: 600; margin: 0 0 5px; }
.adhd input[type=text], .adhd input[type=email], .adhd input[type=search], .adhd input[type=tel],
.adhd input[type=date], .adhd input[type=number], .adhd select, .adhd textarea {
  font: inherit; width: 100%; max-width: 32rem; min-height: 48px; padding: 10px 12px;
  border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.adhd textarea { max-width: 100%; }
.adhd .error { color: var(--danger); font-weight: 600; margin: 5px 0 10px; }
.adhd .consent { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.adhd .consent input { width: 20px; height: 20px; margin: 4px 0 0; flex: 0 0 auto; }
.adhd .hp { position: absolute; left: -9999px; }
.adhd .likert { border-top: 1px solid var(--line); padding: 18px 0; }
.adhd .likert p { font-weight: 600; margin: 0 0 10px; }
.adhd .likert .scale { display: flex; flex-wrap: wrap; gap: 6px; }
.adhd .likert label { position: relative; border: 2px solid var(--line); border-radius: 999px; padding: 8px 15px; min-height: 40px; cursor: pointer; font-size: 0.9375rem; background: #fff; }
.adhd .likert input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adhd .likert label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.adhd .likert label:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.adhd .progress { position: sticky; top: 0; background: #fff; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); z-index: 2; }
.adhd #matches { list-style: none; margin: 8px 0 0; padding: 0; max-height: 19rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); max-width: 32rem; }
.adhd #matches li { border-bottom: 1px solid var(--line); margin: 0; }
.adhd #matches li:last-child { border-bottom: 0; }
.adhd #matches li[role=option] { padding: 11px 16px; cursor: pointer; }
.adhd #matches li[role=option]:hover, .adhd #matches li[aria-selected=true] { background: var(--navy-50); box-shadow: inset 3px 0 0 var(--navy); }
.adhd #matches .nm { font-weight: 600; display: block; }
.adhd #matches .lo { color: var(--muted); font-size: 0.875rem; }
.adhd .chosen { border: 2px solid var(--navy); background: var(--navy-50); padding: 12px 16px; margin: 8px 0 0; border-radius: var(--radius); max-width: 32rem; }
.adhd .chosen strong { display: block; }
.adhd .verdict { border-left: 6px solid #56615b; padding: 4px 0 4px 20px; margin: 0 0 24px; }
.adhd .verdict.red { border-color: var(--danger); }
.adhd .verdict.amber_plus { border-color: #7a4f0d; }
.adhd .verdict.amber { border-color: #8f5414; }
.adhd .verdict.mixed, .adhd .verdict.conflicting { border-color: #5c4a86; }
.adhd .verdict.go { border-color: #1f6b45; }
.adhd .verdict .status { font-size: 1.25rem; line-height: 1.4; font-weight: 600; margin: 0 0 6px; color: var(--navy-950); }
.adhd .verdict .basis { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.adhd .evidence { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.adhd .evidence h3 { font-size: 1rem; margin: 0 0 8px; }
.adhd .evidence p { margin: 0 0 11px; font-size: 0.9375rem; }
.adhd .evidence p:last-child { margin: 0; }
.adhd .evidence .cond { border-left: 3px solid #a8641b; padding-left: 14px; margin: 0 0 12px; }
.adhd .stamp { color: var(--muted); font-size: 0.8125rem; }
.adhd .stale { color: var(--danger); font-weight: 600; }
.adhd ol.opts { list-style: none; margin: 0; padding: 0; }
.adhd ol.opts li { border-top: 1px solid var(--line); padding: 18px 0; margin: 0; }
.adhd ol.opts li:last-child { border-bottom: 1px solid var(--line); }
.adhd ol.opts .name { font-weight: 600; margin: 0 0 4px; }
.adhd ol.opts .cost { color: var(--muted); font-size: 0.9375rem; margin: 0 0 8px; }
.adhd ol.opts p { margin: 0; }
.adhd ul.ask { margin: 0 0 16px; padding: 0; list-style: none; }
.adhd ul.ask li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--line); margin: 0; }
.adhd ul.ask li::before { content: attr(data-n); position: absolute; left: 0; font-weight: 600; color: var(--navy); }
.adhd pre.letter { white-space: pre-wrap; font: 400 0.9375rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-x: auto; margin: 0 0 12px; }
.adhd .safety { border: 2px solid #a8641b; border-radius: var(--radius); padding: 16px 20px; margin: 32px 0; }
.adhd .safety p { margin: 0 0 8px; font-weight: 600; }
.adhd .safety p:last-child { margin: 0; }
.adhd .legal-note { color: var(--muted); font-size: 0.875rem; margin-top: 40px; }
.adhd .calc-out { background: var(--navy-50); border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.adhd .calc-out .total { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; color: var(--navy-950); line-height: 1.1; margin: 4px 0 10px; }

/* task lists */
.adhd .tasks { list-style: none; padding-left: 0; }
.adhd .tasks li { margin: 9px 0; }
.adhd .tasks label { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.adhd .tasks input { width: 19px; height: 19px; margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--navy); }

/* site search */
.adhd .search-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.adhd .search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adhd .search-row input { flex: 1 1 16rem; min-width: 0; max-width: none; }
.adhd .search-status { margin: 16px 0 8px; }
.adhd .search-results { padding-left: 1.4rem; margin: 0; }
.adhd .search-results li { margin: 0 0 18px; }
.adhd .search-results li a { font-weight: 600; }
.adhd .search-results li p { margin: 4px 0 0; color: var(--muted); }

@media print {
  .adhd .cta, .adhd .related, .adhd .breadcrumb, .adhd .noprint, .adhd .children { display: none !important; }
  .adhd .page { max-width: none; padding: 0; }
  .adhd a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; word-break: break-all; }
  .adhd .box, .adhd .evidence, .adhd .safety { break-inside: avoid; }
}

/* Classes the tools use in place of style attributes, which Avon's CSP blocks */
.adhd .app .w-10 { max-width: 10rem; }
.adhd .app .w-12 { max-width: 12rem; }
.adhd .app .w-full { width: 100%; max-width: 100%; }
.adhd #matches li.no-pointer { cursor: default; }
