/* Personal Design page: intro + small print around the app. The app itself is styled by pd.css (scoped to .pd-root). */
.pd-site{max-width:1320px;margin:0 auto;padding:clamp(28px,5vw,72px) clamp(14px,3vw,40px) clamp(36px,6vw,88px)}
.pd-hero{display:grid;gap:14px;margin:0 0 clamp(20px,3vw,36px);max-width:860px;position:relative}
.pd-datum{position:absolute;left:-6vw;width:90vw;max-width:1320px;top:-40px;bottom:-40px;z-index:0;pointer-events:none;opacity:.65;overflow:hidden}.pd-datum canvas{display:block}.pd-hero>*:not(.pd-datum){position:relative;z-index:1}
.pd-hero .pd-kicker{margin:0;font:600 13px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.14em;text-transform:uppercase}
.pd-hero h1{margin:0;font-size:clamp(40px,8vw,92px);line-height:.95;letter-spacing:-.01em;text-transform:uppercase;font-weight:700}
.pd-hero h1 em{font-style:normal;color:#c7713d}
.pd-hero p{margin:0;font-size:clamp(16px,1.6vw,19px);line-height:1.55;max-width:720px}
.pd-fine{margin:clamp(20px,3vw,36px) 0 0;max-width:860px;font:13px/1.55 ui-monospace,Consolas,monospace;opacity:.85}
.pd-fine a{text-decoration:underline;color:inherit;display:inline-block;padding:15px 2px;margin:-15px 0}
/* touch targets >= 44 px on this page (the site shell header/footer are separate) */
.pd-root #pd-switch,.pd-root #pd-theme{min-height:44px;min-width:44px}
.ra-cookie-banner button{min-height:44px;min-width:44px}
.pd-site .pd-root{border:1px solid currentColor;margin:0}
.pd-extabs{display:flex;gap:6px;margin:0 0 8px;flex-wrap:wrap}.pd-extabs button[aria-pressed=true]{background:#262622;color:#fff}
.pd-faq{max-width:1180px;margin:clamp(36px,6vw,80px) 0 0;column-count:1!important;columns:auto!important}
.pd-faq-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px 56px}
@media (min-width:900px){.pd-faq-grid{grid-template-columns:minmax(0,4fr) minmax(0,7fr)}}
.pd-faq-routes .k,.pd-faq-still .k{display:block;margin:0 0 12px;font:600 12px/1.4 ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:#927643}
.pd-faq-route{border-top:1px solid currentColor;padding:18px 0 22px}.pd-faq .pd-faq-h{margin:0 0 8px;font:400 22px/1.25 inherit;text-transform:none;color:inherit!important}.pd-faq-route p{margin:0 0 12px;max-width:44ch;font-size:15px;line-height:1.55}
.pd-faq a.pd-faq-go,.pd-faq-still a{display:inline-block;padding:12px 0 4px;margin-top:2px;min-height:44px;color:inherit;text-decoration:none;border-bottom:1px solid #c9a96e;font-size:16px}
.pd-faq-still{border-top:1px solid currentColor;margin-top:28px;padding-top:22px}.pd-faq .pd-faq-hh{margin:0 0 10px;font-size:clamp(24px,3vw,32px);line-height:1.15}.pd-faq-still p{margin:0 0 10px;max-width:60ch;font-size:16px;line-height:1.55}
.pd-faq h2{margin:0 0 18px;font-size:clamp(26px,4vw,44px);line-height:1;letter-spacing:-.01em;text-transform:uppercase;font-weight:700}
.pd-faq details{border-top:1px solid currentColor}.pd-faq details:last-child{border-bottom:1px solid currentColor}
.pd-faq summary{cursor:pointer;min-height:48px;display:flex;align-items:center;gap:14px;padding:10px 0;font:600 16px/1.4 inherit;list-style:none}
.pd-faq summary::-webkit-details-marker{display:none}.pd-faq summary::after{content:"+";margin-left:auto;font:400 22px/1 ui-monospace,Consolas,monospace}
.pd-faq details[open] summary::after{content:"\2212"}.pd-faq summary:focus-visible{outline:2px solid #c7713d;outline-offset:2px}
.pd-faq details p{margin:0 0 16px;max-width:720px;font-size:16px;line-height:1.6}

/* DE22 (MAX approved P2-5): parcel picker labels Find your next step / Still unsure? #927643 on white 4.29:1 -> #8a6d3c 4.85:1. Light theme only. */
html:not([data-ra-theme="dark"]) .pd-faq-routes span.k, html:not([data-ra-theme="dark"]) .pd-faq-still span.k { color: #8a6d3c !important; }


/* DE25 (owner-approved layout, CSS only): "Your study" group first, then "Your details", consent boxes directly above Start now. No DOM or wording change. */
#pd-order .pd-order { display: flex; flex-direction: column; }
#pd-order .pd-order > * { order: 10; }
#pd-order .pd-order > h2 { order: 0; }
#pd-order .pd-order > p.pd-attach:nth-of-type(1) { order: 1; }
#pd-order .pd-order > .pd-lvls { order: 2; }
#pd-order .pd-order > p.pd-attach:nth-of-type(2) { order: 3; margin: 6px 0 36px; }
#pd-order .pd-order > .pd-row { order: 4; }
#pd-order .pd-order > label.pd-l { order: 5; }
#pd-order .pd-order > textarea { order: 5; }
#pd-order .pd-order > .pd-startnow { order: 6; }
/* each "Full text" block sits under the term it belongs to; the button and the hints follow the pair */
#pd-order .pd-order > .pd-consent { order: 7; }
#pd-order .pd-order > #pd-consent-disclosure { order: 8; }
#pd-order .pd-order > .pd-consent.pd-early { order: 9; }
#pd-order .pd-order > #pd-early-disclosure { order: 10; }
#pd-order .pd-order > #pd-ts { order: 11; }
#pd-order .pd-order > #pd-order-c { order: 12; align-self: flex-start; }
#pd-order .pd-order > #pd-order-hint { order: 12; }
#pd-order .pd-order > #pd-order-msg { order: 12; }
#pd-order .pd-order > .pd-hp { order: 14; }
#pd-order .pd-order > .pd-consent + .pd-consent { margin-top: 6px; }

/* DE26 proto v2 (dark-mode checked): study chooser colour bars, hover tint, focus ring. CSS only, no DOM or JS change.
   Contrast: text >= 4.5:1 both themes; bars >= 3:1 (WCAG 1.4.11); focus ring = current text colour. */
main.pd-site .pd-study-options button {
  position: relative;
  padding-left: 22px;
  transition: background-color .2s ease, color .2s ease;
}
main.pd-site .pd-study-options button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #9a5326;            /* Architecture: copper (light 5.3:1, dark uses #b06a3a) */
}
main.pd-site .pd-study-options button:nth-child(2)::before {
  background: #a88440;            /* Interior: brass line, 3.2:1 on light (dark uses #c9a96e, 7.8:1) */
}
main.pd-site .pd-study-options button:nth-child(3)::before {
  background: currentColor;       /* Both: ink in light, light ink in dark */
}
main.pd-site .pd-study-options button:hover,
main.pd-site .pd-study-options button:focus-visible {
  background: rgba(154, 83, 38, .12);   /* copper tint, works on light and dark */
  color: inherit;
}
main.pd-site .pd-study-options button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
html[data-ra-theme="dark"] main.pd-site .pd-study-options button:nth-child(1)::before { background: #b06a3a; }
html[data-ra-theme="dark"] main.pd-site .pd-study-options button:nth-child(2)::before { background: #c9a96e; }
@media (prefers-color-scheme: dark) {
  html:not([data-ra-theme="light"]) main.pd-site .pd-study-options button:nth-child(1)::before { background: #b06a3a; }
  html:not([data-ra-theme="light"]) main.pd-site .pd-study-options button:nth-child(2)::before { background: #c9a96e; }
}
@media (prefers-reduced-motion: reduce) {
  main.pd-site .pd-study-options button { transition: none; }
}


/* Q-FIX (impeccable audit 29 Oct): .pd-fine is de-emphasised with opacity:.85, and the legal links inside it
   take the site's --ra-accent-text #9a5326 (de-upgrades.css "main p a:not([class])"). Ancestor opacity cannot be
   undone by a descendant, so the rendered privacy/terms links measured 4.23:1 on the white PD shell and 3.91:1 on
   the paper pages, both under the 4.5 AA floor for 13-18px text. The fine print keeps its muted tone; the links
   take the deeper rust the map annotations already use (#7a3f17, de-upgrades.css:160) = 5.62:1 on white / 5.19:1
   on paper after the .85 fade. Selector carries :not([class]) so it outranks the de-upgrades rule it replaces.
   Light only: dark has its own link override in ra-theme.css and already passed (measured in the dark sweep). */
html:not([data-ra-theme="dark"]) .pd-fine a:not([class]) { color: #7a3f17; }
