/* Local design based on the TDAH V2 / Dendrila Forms questionnaire patterns.
   No site-wide rules. Sage and paper palette, large native controls, no animation. */
.ar-scope{--ar-paper:#fffdfa;--ar-ink:#21332b;--ar-muted:#4f6257;--ar-line:#d0dcd2;--ar-accent:#315f45;--ar-soft:#e9f2eb;--ar-shadow:0 12px 35px rgba(33,48,40,.08);color:var(--ar-ink);font:1rem/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;max-width:100%;min-width:0}
.ar-scope,.ar-scope *{box-sizing:border-box}
.ar-scope [hidden]{display:none!important}
.ar-scope [id]{scroll-margin-top:9rem}
.ar-scope a{color:var(--ar-accent)}
.ar-scope h1,.ar-scope h2,.ar-scope h3{color:var(--ar-ink);line-height:1.2;font-family:inherit;letter-spacing:normal}
.ar-scope h2{font-size:clamp(1.45rem,3.8vw,2.25rem);margin:.25rem 0 .75rem}
.ar-scope p{margin:.65rem 0}
.ar-journey{max-width:900px;margin:1.5rem auto 2.5rem}
.ar-scope .ar-card{background:var(--ar-paper);border:1px solid var(--ar-line);border-radius:24px;padding:clamp(18px,4vw,36px);box-shadow:var(--ar-shadow);min-width:0}
.ar-scope .ar-welcome{border-top:5px solid var(--ar-accent)}
.ar-scope .ar-eyebrow{font-size:.77rem;letter-spacing:.07em;text-transform:uppercase;font-weight:800;color:var(--ar-accent);margin:0 0 .65rem}
.ar-scope .ar-lead{font-size:1.05rem;color:var(--ar-muted);max-width:72ch;line-height:1.6}
.ar-scope .ar-small,.ar-scope .ar-privacy{font-size:.87rem;color:var(--ar-muted);line-height:1.5}
.ar-meta{display:flex;flex-wrap:wrap;gap:.45rem;margin:1.1rem 0}
.ar-meta>span{font-size:.79rem;font-weight:700;border-radius:999px;background:var(--ar-soft);padding:.3rem .7rem}
.ar-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:1.25rem 0 .65rem;align-items:stretch}
.ar-scope .ar-primary,.ar-scope .ar-secondary{appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:.5rem;min-height:48px;min-width:0;padding:.72rem 1rem;border:1px solid var(--ar-accent);border-radius:14px;font:700 .95rem/1.35 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;text-align:center;white-space:normal;text-decoration:none;cursor:pointer}
.ar-scope .ar-primary{background:var(--ar-accent);color:#fff}
.ar-scope .ar-secondary{background:var(--ar-paper);color:var(--ar-accent)}
.ar-scope button:disabled{opacity:.5;cursor:default}
.ar-scope .ar-quiet{appearance:none;border:0;background:transparent;color:var(--ar-accent);font:inherit;text-decoration:underline;text-underline-offset:.16em;cursor:pointer}
.ar-scope :focus-visible{outline:3px solid #2368ad;outline-offset:3px}
.ar-step{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap;font-size:.81rem;font-weight:700;color:var(--ar-muted)}
.ar-scope progress{display:block;width:100%;height:9px;margin:.65rem 0 1.65rem;accent-color:var(--ar-accent);border:0;border-radius:999px;overflow:hidden;background:var(--ar-soft)}
.ar-scope progress::-webkit-progress-bar{background:var(--ar-soft);border-radius:999px}
.ar-scope progress::-webkit-progress-value{background:var(--ar-accent);border-radius:999px}
.ar-scope progress::-moz-progress-bar{background:var(--ar-accent);border-radius:999px}
.ar-scope .ar-fieldset{min-width:0;margin:0;padding:0;border:0}
.ar-options{display:grid;grid-template-columns:1fr;gap:.65rem;margin:1rem 0}
.ar-topics{grid-template-columns:repeat(2,minmax(0,1fr))}
.ar-scope .ar-option{display:flex;align-items:flex-start;gap:.8rem;min-width:0;min-height:58px;padding:.9rem 1rem;border:1px solid var(--ar-line);border-radius:16px;background:#fff;cursor:pointer;line-height:1.4}
.ar-option span{min-width:0;flex:1}
.ar-option strong,.ar-option small{display:block}
.ar-option small{font-size:.82rem;color:var(--ar-muted);margin-top:.3rem;font-weight:400}
.ar-option input[type=radio]{appearance:auto;flex:none;width:19px;height:19px;min-width:19px;min-height:19px;margin:.15rem 0 0;accent-color:var(--ar-accent)}
.ar-option:has(input:checked){outline:2px solid var(--ar-accent);outline-offset:-1px;background:var(--ar-soft);border-color:var(--ar-accent)}
.ar-option:focus-within{box-shadow:0 0 0 3px #2368ad30}
.ar-answer{background:var(--ar-soft);border:1px solid var(--ar-line);padding:1rem 1.15rem;border-radius:16px;font-size:1.08rem;font-weight:600;line-height:1.55}
.ar-answer p{margin:0}
.ar-privacy{margin-top:1.2rem!important;padding-top:.85rem;border-top:1px solid var(--ar-line)}
.ar-scope .ar-source-title{font-size:1.05rem;margin:1.15rem 0 .5rem}
.ar-sources{margin:.5rem 0 1rem;padding-inline-start:1.3rem;font-size:.87rem;color:var(--ar-muted)}
.ar-sources li+li{margin-top:.45rem}
.ar-new-tab{font-size:.78rem}
.ar-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:1rem 0 1.6rem}
.ar-scope .ar-index-card{display:flex;flex-direction:column;gap:.35rem;min-width:0;padding:1rem;border:1px solid var(--ar-line);border-radius:15px;background:var(--ar-paper);text-decoration:none;color:var(--ar-ink)}
.ar-index-card:hover{border-color:var(--ar-accent);background:var(--ar-soft)}
.ar-index-card strong{line-height:1.35}
.ar-index-card>span{font-size:.83rem;color:var(--ar-muted)}
.ar-index-card .ar-index-more{margin-top:auto;padding-top:.5rem;font-weight:750;color:var(--ar-accent)}
.ar-library{max-width:980px;margin:1rem auto 3rem}
.ar-library-head{margin:0 0 1.5rem;padding:1rem .25rem}
.ar-library-head h1{font-size:clamp(2rem,5vw,3rem);margin:.65rem 0}
.ar-library .ar-fiche{margin:1rem 0}
.ar-fiche-question{border-top:1px solid var(--ar-line);margin-top:1rem;padding-top:1rem}
.ar-fiche-question h3{font-size:1.15rem;margin:0 0 .75rem}
.ar-fact{font-weight:650}
.ar-limit{background:#f5f2e9;border:1px solid var(--ar-line);border-radius:14px;padding:.85rem 1rem;margin:1rem 0}
.ar-limit p{margin:.3rem 0 0}
.ar-method{margin-top:1.6rem}
.ar-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.a11y-readable .ar-scope{--ar-paper:#fff;--ar-ink:#141414;--ar-muted:#262626;--ar-line:#777;--ar-accent:#005a70;--ar-soft:#eef8fa;--ar-shadow:none}
html.a11y-readable .ar-limit{background:#fff}
@media(max-width:760px){.ar-index{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ar-scope .ar-card{border-radius:19px;padding:18px}.ar-topics,.ar-index{grid-template-columns:minmax(0,1fr)}.ar-actions>*{flex:1 1 100%;width:100%}.ar-scope [id]{scroll-margin-top:6.5rem}.ar-option{padding:.8rem}.ar-journey{margin:1rem auto 1.5rem}}

.ar-directory{max-width:980px;margin:1.5rem auto 2rem}
.ar-directory-fold{border:1px solid var(--ar-line);border-radius:16px;background:var(--ar-paper);padding:0 1rem}
.ar-directory-fold>summary{min-height:48px;display:list-item;padding:.85rem 0;font-weight:750;color:var(--ar-accent);cursor:pointer}
.ar-directory-fold[open]>summary{border-bottom:1px solid var(--ar-line)}

/* Short public comparisons: identical visual hierarchy for each party. */
.ar-compare{margin:1rem 0 1.4rem;min-width:0}
.ar-compare-kicker{color:var(--ar-accent);font-size:.77rem;letter-spacing:.06em;text-transform:uppercase;font-weight:800}
.ar-compare-summary{font-weight:750;font-size:1.13rem;line-height:1.5;margin:.4rem 0 .85rem!important}
.ar-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.ar-compare-party{padding:.9rem 1rem;background:#fff;border:1px solid var(--ar-line);border-radius:14px;min-width:0}
.ar-compare-party h3{font-size:1.02rem;margin:0 0 .55rem}
.ar-compare-party h3 span{display:block;color:var(--ar-muted);font-size:.77rem;line-height:1.35;font-weight:650;margin-top:.25rem}
.ar-compare-party p{font-size:.94rem;line-height:1.55;margin:.4rem 0 0}
.ar-compare-effect{border-left:4px solid var(--ar-accent);background:var(--ar-soft);border-radius:0 12px 12px 0;padding:.85rem 1rem;margin:.75rem 0}
.ar-compare-effect h3,.ar-scope .ar-reperes-title{font-size:1.06rem;margin:0 0 .45rem}
.ar-compare-effect p{font-size:.96rem;margin:0;line-height:1.55}
.ar-compare-limit,.ar-fiche-sources{border:1px solid var(--ar-line);border-radius:12px;padding:0 .8rem;margin:.65rem 0}
.ar-compare-limit summary,.ar-fiche-sources summary{padding:.65rem 0;min-height:44px;cursor:pointer;font-size:.88rem;font-weight:750;color:var(--ar-accent)}
.ar-compare-limit p{font-size:.87rem;color:var(--ar-muted);margin:.1rem 0 .7rem}
.ar-fiche-question{margin-top:.65rem;padding-top:.7rem}
.ar-fiche-question h3{font-size:1rem;margin:0 0 .4rem}
.ar-fiche-question p{font-size:.94rem;margin:.35rem 0}
.ar-fiche-sources{margin-top:1rem}
html.a11y-readable .ar-compare-party{border-color:var(--ar-line)}
@media(max-width:600px){.ar-compare-grid{grid-template-columns:minmax(0,1fr);gap:.55rem}.ar-compare-party{padding:.8rem}.ar-compare-summary{font-size:1.02rem}.ar-compare-effect{padding:.8rem}.ar-compare-party p,.ar-compare-effect p{font-size:.94rem}}

/* Four-step document browser, no additional welcome click on JS-enabled pages. */
.ar-programmes{grid-template-columns:repeat(3,minmax(0,1fr))}
.ar-scope .ar-option input[type=checkbox]{appearance:auto;flex:none;width:20px;height:20px;min-width:20px;min-height:20px;margin:.15rem 0 0;accent-color:var(--ar-accent)}
.ar-programmes .ar-option{min-height:90px}
.ar-selection-count{font-size:.84rem;font-weight:700;color:var(--ar-accent);margin:.7rem 0!important}
.ar-angle-group{border-top:1px solid var(--ar-line);padding:1rem 0 .4rem;margin:1.15rem 0}
.ar-angle-group h3{font-size:1.13rem;margin:0 0 .6rem}
.ar-scope .ar-subtopic{margin:.75rem 0 1rem}
.ar-subtopic legend{font-weight:750;font-size:.88rem;color:var(--ar-muted);padding:0}
.ar-subtopic .ar-options{margin:.45rem 0;gap:.45rem}
.ar-scope .ar-angle-option{min-height:48px;padding:.65rem .8rem;border-radius:12px;font-size:.94rem;align-items:center}
.ar-angle-option input[type=checkbox]{margin:0}
.ar-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;border-bottom:1px solid var(--ar-line);padding:.55rem 0 .9rem;margin-bottom:1rem;font-size:.85rem;font-weight:750;color:var(--ar-muted)}
.ar-scope .ar-result-toolbar .ar-secondary{min-height:44px;font-size:.82rem;padding:.5rem .7rem}
.ar-results{display:grid;gap:1rem}
.ar-result-card{border:1px solid var(--ar-line);border-radius:16px;background:#fff;padding:1rem;min-width:0}
.ar-result-card>h3{font-size:1.2rem;margin:0 0 .7rem}
.ar-result-question{padding:.75rem 0;border-top:1px solid var(--ar-line)}
.ar-scope .ar-result-question h4{font-family:inherit;font-size:.96rem;line-height:1.4;margin:0;color:var(--ar-ink)}
.ar-result-question p{font-size:.94rem;margin:.35rem 0}
.ar-result-detail{font-size:.82rem;text-underline-offset:.14em}
.ar-result-proposals{background:var(--ar-soft);border-radius:12px;padding:.8rem;margin:.75rem 0}
.ar-result-proposals .ar-eyebrow{font-size:.71rem}
.ar-result-party-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.ar-result-party-grid[data-ar-single=true]{grid-template-columns:minmax(0,1fr)}
.ar-result-party{min-width:0;font-size:.88rem;line-height:1.5}
.ar-result-party p{margin:.2rem 0}
.ar-result-proposals .ar-small{font-size:.77rem;margin:.5rem 0 0}
.ar-scope .ar-result-link{display:block;font-weight:750;font-size:.9rem;line-height:1.4;min-height:44px;padding:.65rem 0 .25rem;text-underline-offset:.14em}
@media(max-width:620px){.ar-programmes,.ar-result-party-grid{grid-template-columns:minmax(0,1fr)}.ar-programmes .ar-option{min-height:62px}.ar-result-card{padding:.85rem}.ar-result-toolbar{align-items:flex-start}}

/* One selected theme per screen, completion footer below navigation. */
.ar-quiz .ar-step{margin-bottom:1.2rem}
.ar-scope .ar-theme-position{margin:0 0 .4rem}
.ar-quiz .ar-angle-group{border-top:0;padding:0;margin:1.05rem 0 .4rem}
.ar-quiz [data-ar-heading]{scroll-margin-top:7rem}
.ar-progress-footer{border-top:1px solid var(--ar-line);margin-top:1.4rem;padding-top:1rem}
.ar-progress-label{display:flex;align-items:center;justify-content:space-between;gap:.6rem;color:var(--ar-muted);font-size:.87rem;font-weight:650}
.ar-progress-label strong{font-size:1.12rem;font-variant-numeric:tabular-nums;color:var(--ar-accent)}
.ar-scope .ar-progress-footer progress{height:10px;margin:.45rem 0 .35rem}
.ar-progress-footer .ar-small{margin:.35rem 0 0;font-size:.8rem}
.ar-quiz .ar-privacy{margin-top:.8rem!important;padding-top:.45rem;border-top:0}
@media(max-width:620px){.ar-quiz [data-ar-heading]{scroll-margin-top:5rem}.ar-progress-footer{margin-top:1.1rem;padding-top:.8rem}}

/* Local progress panel must not inherit the dark site-wide footer styling. */
.ar-scope .ar-progress-footer{background:transparent;color:var(--ar-ink);padding-inline:0;box-shadow:none}
.ar-programmes .ar-option{align-items:center}
.ar-programmes .ar-option input{margin-top:0}

/* Evidence stays immediately beside the claim, not buried in the general bibliography. */
.ar-question-evidence{display:flex;align-items:baseline;gap:.45rem;flex-wrap:wrap;margin:.45rem 0 .65rem;font-size:.78rem;line-height:1.45;color:var(--ar-muted)}
.ar-evidence-label{font-weight:700;flex:none}
.ar-question-evidence ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.24rem;flex:1;min-width:0}
.ar-question-evidence li{margin:0;padding:0}
.ar-question-evidence a{font-size:inherit;text-underline-offset:.14em}
.ar-scope .ar-result-question .ar-result-detail{display:inline-block;margin-top:.25rem}

/* Keep the quick answers uninterrupted; optional reading follows all results. */
.ar-result-reading{border-top:1px solid var(--ar-line);margin-top:1.75rem;padding-top:1.25rem}
.ar-scope .ar-result-reading h3{margin:.25rem 0 .45rem;font-size:1.25rem}
.ar-reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1rem 0}
.ar-reading-item{background:var(--ar-soft);border:1px solid var(--ar-line);border-radius:12px;padding:.8rem;min-width:0}
.ar-reading-title{display:inline-block;font-size:.95rem;font-weight:750;line-height:1.4;text-underline-offset:.14em}
.ar-reading-item ul{margin:.45rem 0 0;padding-left:1.1rem;font-size:.84rem;line-height:1.5}
.ar-reading-item li{margin:.3rem 0}
.ar-reading-item a{overflow-wrap:anywhere}
@media(max-width:620px){.ar-reading-grid{grid-template-columns:minmax(0,1fr)}}

/* Practical concerns with a precise document question as a secondary line. */
.ar-scope .ar-angle-option{align-items:flex-start;padding:.75rem .85rem}
.ar-scope .ar-angle-option input[type=checkbox]{margin-top:.15rem}
.ar-scope .ar-angle-option strong{font-size:.96rem;line-height:1.35}
.ar-scope .ar-angle-option small{font-size:.82rem;line-height:1.4;margin-top:.25rem}
.ar-scope .ar-angle-option:has(input:checked) small{color:var(--ar-ink)}
