/* REGISTR client portal look switch: "White | Maroon" (owner 2026-11-07, registr-brand.md).
   Loaded ONLY by the client portal pages: account.html, application.html, status.html, first-steps.html.
   The landing page, checkout, terms and privacy never load this file, so they always stay white.
   White = the base look in funnel.css (default). Every Maroon rule starts with html[data-theme=maroon].
   Forms and the main content stay white for easy reading; only the top bar and the help / feature cards change. */

/* The switch (top right of the top bar, every size) */
.theme-sw{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:4px;border-radius:999px;border:1px solid var(--line-strong);background:#FFFFFF;cursor:pointer;font:600 13px var(--f-body);color:var(--muted);flex:0 0 auto;margin-left:auto}
.theme-sw span{padding:7px 10px;border-radius:999px;line-height:1}
.theme-sw[aria-checked=false] .ts-w{background:var(--tint);color:var(--ink)}
.theme-sw[aria-checked=true] .ts-m{background:#5E0615;color:#FFFFFF}
.theme-sw:focus-visible{outline:3px solid var(--red);outline-offset:2px}
nav.top .wrap{gap:10px}
@media (max-width:420px){
  .theme-sw{font-size:12px;padding:3px}.theme-sw span{padding:7px 7px}
  nav.top .logo{font-size:21px}
  nav.top .secure{font-size:0;gap:0}            /* the padlock icon stays; its word hides on small phones */
}

/* Maroon: deep maroon gradient top bar with the white logo */
html[data-theme=maroon] nav.top{background:linear-gradient(180deg,#5E0615,#4A0410);border-bottom-color:#4A0410}
html[data-theme=maroon] nav.top .logo,html[data-theme=maroon] nav.top .logo .dot{color:#FFFFFF}
html[data-theme=maroon] nav.top .logo svg path{fill:#FFFFFF}
html[data-theme=maroon] nav.top .secure{color:#FFE9EC}
html[data-theme=maroon] nav.top .secure svg{stroke:#FFE9EC}
html[data-theme=maroon] nav.top .btn.quiet{color:#FFFFFF}
html[data-theme=maroon] nav.top a:not(.logo):not(.btn),html[data-theme=maroon] nav.top .fine,html[data-theme=maroon] nav.top small{color:#FFE9EC}
html[data-theme=maroon] nav.top .theme-sw{border-color:rgba(255,255,255,.5)}
html[data-theme=maroon] nav.top :focus-visible{outline:3px solid #FFFFFF;outline-offset:2px}

/* Maroon: maple red gradient help / feature cards with the white maple leaf and white text */
html[data-theme=maroon] .need-card,html[data-theme=maroon] .signin-help,html[data-theme=maroon] .track-help,html[data-theme=maroon] .fs-help,html[data-theme=maroon] .done-card{
  position:relative;overflow:hidden;isolation:isolate;border:0;color:#FFFFFF;background:linear-gradient(135deg,#C8071F,#8E0420)}
html[data-theme=maroon] .need-card::after,html[data-theme=maroon] .signin-help::after,html[data-theme=maroon] .track-help::after,html[data-theme=maroon] .fs-help::after,html[data-theme=maroon] .done-card::after{
  content:"";position:absolute;right:-14%;bottom:-30%;width:55%;max-width:220px;aspect-ratio:1;opacity:.14;z-index:-1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M383.8 351.7c2.5-2.5 105.2-92.4 105.2-92.4l-17.5-7.5c-10-4.9-7.4-11.5-5-17.4 2.4-6 20-49.9 20-49.9s-48.4 10.3-58.9 12.7c-8 1.9-11.4-2.9-13.4-8.4l-15.4-38.6-53.9 59.4c-6.9 7.9-17.4 4.9-15-6.9l23.4-119.8-38.4 19.9c-8.5 4.4-13.9 4.4-19.4-4.9L256 32l-31.9 67.9c-5.5 9.4-10.9 9.4-19.4 4.9l-38.4-19.9 23.4 119.8c2.4 11.8-8 14.8-14.9 6.9l-53.9-59.4-15.4 38.6c-2 5.5-5.5 10.3-13.4 8.4-10.5-2.4-58.9-12.7-58.9-12.7s17.6 43.9 20 49.9c2.4 6 5 12.5-5 17.4L24 259.3s102.6 89.9 105.2 92.4c5.5 4.9 4 7.9 2 14.4-2 6.4-16 51.8-16 51.8s37.4-7.9 51.4-10.9c11-2.4 15.9.9 19.4 7.9 3.4 6.9 30.4 62.3 30.4 62.3s28.9-31.4 42.4-45.8c8.4-9.4 15.9-9.4 24.4 0 13.5 14.4 42.4 45.8 42.4 45.8s27-55.3 30.4-62.3c3.5-7 8.4-10.3 19.4-7.9 14 3 51.4 10.9 51.4 10.9s-14-45.4-16-51.8c-2-6.5-3.5-9.5 2-14.4z'/%3E%3C/svg%3E") center/contain no-repeat}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) :is(h1,h2,h3,p,li,b,strong,small,span,.eyebrow,.fine,.muted,.lead,a:not(.btn),summary,label,.todo-note){color:#FFFFFF}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .fine{color:#FFE9EC}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) a:not(.btn){text-decoration:underline}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .btn:not(.line):not(.quiet){background:#FFFFFF;color:#C8071F}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .btn:not(.line):not(.quiet)::before{display:none}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .btn.line{background:transparent;color:#FFFFFF;border-color:#FFFFFF}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .btn.quiet{color:#FFFFFF}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) :is(svg){stroke:#FFFFFF}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) :focus-visible{outline:3px solid #FFFFFF;outline-offset:2px}
html[data-theme=maroon] :is(.need-card,.signin-help,.track-help,.fs-help,.done-card) .x{color:#FFFFFF}
@media print{.theme-sw{display:none}html[data-theme=maroon] nav.top{background:#FFFFFF}}

/* 2026-11-24 audit (WCAG 2.5.8): the logo link back to the tracker is at least 24 px tall at every width (it was 23 px from 414 px up). */
nav.top a.logo{min-height:24px}
/* 2026-11-24 audit: on a phone the round Help button sits top-right (funnel.css); keep the journey bar text out from under it, so the client always sees the step they are on. */
@media (max-width:600px){.flow.journey{padding-right:56px}}
/* 2026-11-24 audit: a folded part title and its answer count stay together (the summary is a flex row; the count never splits from its brackets). */
.rv-step summary .rv-n{margin-left:6px;white-space:nowrap}
/* 2026-11-24 audit (WCAG 2.5.8): the "Back to your tracker" text link in the header is a full tap target (it was 23 px tall). */
nav.top a.fine{display:inline-flex;align-items:center;min-height:44px}
