/* The Participant Network registration panel (house scene). Two pages per route at every size.
   Desktop and tablet: a panel on the right, its right edge on the shared right inset (language button, Contact link),
   so the house-scene headline and both its buttons on the left stay uncovered.
   Phones (max-width 700px): the shared full-width panel. Builds on the .panel / .pb rules in film.html. */
#panel-join{margin:auto var(--in) auto auto;width:min(580px,calc(100vw - 2 * var(--in)));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
/* desktop: centred in the gap between the header and the footer links, so it never covers the logo or the menu */
@media (min-width:701px){
 #panel-join{--top:calc(20px + var(--logo-h) * .82 + 6px);--bot:46px;top:var(--top);bottom:var(--bot);max-height:calc(100vh - var(--top) - var(--bot));max-height:calc(100dvh - var(--top) - var(--bot))}
}
/* the body never scrolls in this panel, so it needs no focus ring of its own */
#panel-join .pb:focus{outline:none}
/* health care professional page 2: permission sits beside the country (US state drops under the country) */
.reg [data-route="hcp"] .sB{grid-auto-flow:row dense}
.reg [data-route="hcp"] .sB .consent{grid-column:2;grid-row:span 2;margin-top:10px}
.reg [data-route="hcp"] .sB .row.ctry>.f:nth-child(2){grid-column:1}
#panel-join::backdrop{background:#1D002B2e}
/* the house-scene headline and buttons stay in view beside the panel from 1180px wide; below that the 580px panel
   would cover the headline (it overlaps from about 1126px), so the copy hides as before */
@media (max-width:1179px){.reg-open .copy{opacity:0!important;pointer-events:none!important}}
#panel-join .ph{padding:12px 14px 10px 28px}
#panel-join .ph h2{font-size:26px}
#panel-join .pb{padding:2px 28px 18px}
.reg .study{margin:12px 0 0;font-size:16px}
.reg .study b{color:var(--dark)}
/* who is registering */
.reg .roles{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.reg .roles button{font:600 15px/1.15 Barlow,Helvetica,Arial,sans-serif;color:var(--dark);background:var(--off);border:1.5px solid var(--dark);border-radius:999px;padding:8px 14px;cursor:pointer}
.reg .roles button:hover{background:var(--lilac)}
.reg .roles button small{display:block;font-size:12px;font-weight:400;opacity:.85}
.reg .roles button[aria-pressed=true]{background:var(--dark);color:var(--off)}
.reg[data-step="2"] .roles,.reg[data-step="done"] .roles,.reg[data-step="done"] .study{display:none}
/* two pages */
.reg form[data-step="1"] .sB,.reg form[data-step="2"] .sA,.reg form[data-step="2"] .sub2{display:none}
.reg form[data-step="1"] [data-back],.reg form[data-step="1"] .submit,.reg form[data-step="2"] [data-next]{display:none}
.reg .sA,.reg .sB{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;align-items:start}
.reg .row.ctry{display:contents}
.reg .step,.reg .kitw,.reg .rh,.reg .condw,.reg .consent{grid-column:1/-1}
.reg .step{margin:14px 0 0;font-size:19px;font-weight:700;line-height:1.2;color:var(--deep)}
.reg .step span{display:block;font-size:14px;font-weight:600;letter-spacing:.02em;color:#3E0066b3;margin-bottom:2px}
.reg .sub2{margin-top:12px}
.reg .sub2 h3,.reg .kitw h3,.reg .rh h3{margin:6px 0 0;font-size:19px}
.reg .intro{margin:4px 0 0;font-size:16px;line-height:1.45}
/* fields */
.reg .f{margin-top:10px;min-width:0}
.reg .f label,.reg legend{display:block;font-size:14.5px;font-weight:600;margin-bottom:5px;padding:0;color:var(--deep)}
.reg label small{font-weight:400;color:#3E0066b3;margin-left:4px;font-size:14px}
.reg fieldset{border:0;margin:10px 0 0;padding:0;min-width:0}
.pb.pb .reg-in,.reg input[type=text],.reg input[type=email],.reg input[type=url],.reg select{width:100%;font:400 16px/1.3 Barlow,Helvetica,Arial,sans-serif;color:var(--deep);background:var(--off);border:1.5px solid var(--purple);border-radius:10px;padding:9px 12px;height:42px}
.reg select{appearance:none;-webkit-appearance:none;padding-right:34px;background:var(--off) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233E0066' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center/12px 8px}
.reg select:focus,.reg input:focus{outline:2px solid var(--dark);outline-offset:1px;border-color:var(--dark)}
.reg .f.bad select{border-color:var(--dark);border-width:2px}
.reg .err{margin:5px 0 0;font-size:14px}
.reg .sex .opts{display:flex;flex-wrap:wrap;gap:4px 16px;min-height:42px;align-items:center}
.reg .sex .opts label{display:inline-flex;align-items:center;gap:7px;margin:0;font-weight:400;font-size:16px;cursor:pointer}
.reg input[type=radio],.reg input[type=checkbox]{accent-color:var(--dark);width:19px;height:19px;margin:0;flex:none}
.reg .ck{display:flex;gap:10px;align-items:flex-start;font-size:15.5px;line-height:1.4;margin-top:8px;cursor:pointer}
.reg .ck input{margin-top:1px}
.reg .ck a{position:relative;z-index:1}
.reg .ck.bad span{color:var(--deep)}.reg .ck.bad input{outline:2px solid var(--dark);outline-offset:1px}
.reg .ck.bad + .err{display:block}
.reg .consent{margin-top:12px}
.reg .consent .t{margin:0;font-size:14.5px;font-weight:600}
.reg .consent .pn{margin:8px 0 0;font-size:15.5px}
.reg .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* condition picker: the list scrolls inside its own box */
.reg .cond{margin-top:10px}
.reg .picker{position:relative}
.reg .sel{display:flex;flex-wrap:wrap;gap:6px}
.reg .sel:not(:empty){margin-bottom:8px}
.reg .chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;background:var(--sky);border-radius:999px;padding:4px 4px 4px 12px;font-size:14.5px;line-height:1.25}
.reg .chip>span{min-width:0}
.reg .chip b{font-weight:700;margin-right:6px}
.reg .chip button{flex:none;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--dark);font:600 18px/1 Barlow,Helvetica,Arial,sans-serif;cursor:pointer}
.reg .chip button:hover{background:var(--off)}
.reg .res{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:4;margin:0;padding:4px;list-style:none;background:var(--off);border:1.5px solid var(--dark);border-radius:10px;box-shadow:0 10px 28px #1D002B33;max-height:min(230px,34vh);overflow:auto;overscroll-behavior:contain}
.reg .res li{padding:7px 10px;border-radius:7px;font-size:15px;line-height:1.3;cursor:pointer}
.reg .res li b{display:inline-block;min-width:4.6em;font-weight:700;color:var(--dark);margin-right:6px}
.reg .res li small{display:block;color:#3E0066b3;font-size:14px;margin-left:calc(4.6em + 6px)}
.reg .res li[aria-selected=true]{background:var(--lilac)}
.reg .res li[aria-disabled=true]{opacity:.5}
.reg .res li.none{cursor:default;color:#3E0066b3}
.reg .cks{display:flex;flex-wrap:wrap;gap:0 18px}
/* checkbox rows inside a field keep the checkbox layout, not the field-label one */
.reg .f label.ck{display:flex;font-weight:400;margin-bottom:0;color:inherit}
/* long submit labels wrap inside the pill instead of clipping */
.reg .act .go{white-space:normal;line-height:1.15;text-align:center}
.reg .ck.sub{font-size:15px}
.reg .oth{margin-top:6px}
/* actions */
.reg .act{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;margin-top:16px}
.reg .act .demo{margin:0;font-size:14px;padding:5px 10px}
.reg .act .btns{display:flex;gap:10px;margin-left:auto}
.reg .act .go,.reg .act .btn2{margin:0;height:46px;padding:0 26px;font-size:16.5px}
.reg .act .btn2{justify-content:center}
/* health care professionals */
.reg .kit{margin-top:12px;grid-template-columns:minmax(0,1fr) 124px}
.reg .kit .kl label{font-size:14.5px;font-weight:600;display:block;margin-bottom:5px}
.reg .linkrow input{height:42px;font-size:15px}
.reg .kit .btn2{margin-top:10px}
.reg .qr{width:124px;height:124px}
/* thank-you */
.reg .done{margin:18px 0 6px}
.reg .done p{margin-top:6px}
/* double opt-in pop-up, as v11 */
dialog.optin{border:0;border-radius:16px;padding:28px 30px 24px;width:min(420px,calc(100vw - 32px));background:var(--off);color:var(--deep);text-align:center;box-shadow:0 24px 64px #1D002B59}
dialog.optin::backdrop{background:#1D002B99}
dialog.optin .mail{width:44px;height:44px;color:var(--dark)}
dialog.optin p{margin:10px 0 0;font-size:17px;line-height:1.5}
dialog.optin p.d{font-size:14px;font-weight:600;display:inline-block;background:var(--lilac);border-radius:8px;padding:5px 10px}
dialog.optin .go{display:block;margin:18px auto 0;font:600 17px/1 Barlow,Helvetica,Arial,sans-serif;color:var(--off);background:var(--dark);border:0;border-radius:999px;padding:14px 34px;cursor:pointer}
dialog.optin .go:hover{background:var(--deep)}
/* short desktop screens */
@media (max-height:700px) and (min-width:701px){
 #panel-join .ph{padding:8px 12px 8px 24px}#panel-join .ph h2{font-size:23px}
 #panel-join .pb{padding:0 24px 14px}
 .reg .roles{margin-top:10px}.reg .roles button{padding:7px 13px;font-size:14.5px}
 .reg .step{margin-top:10px;font-size:18px}
 .reg .f,.reg fieldset{margin-top:8px}
 .reg .act,.reg .consent{margin-top:8px}
 .reg .intro,.reg .ck{font-size:15px;line-height:1.38}
}
@media (max-width:700px){
 #panel-join{margin:auto;width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
 /* t_77bd0fb9: Join sits below the bar logo (the home link) */
 #panel-join{--top:calc(12px + var(--logo-h) * .82 + 6px);top:var(--top);bottom:8px;max-height:calc(100vh - var(--top) - 8px);max-height:calc(100dvh - var(--top) - 8px)}
 dialog.optin{margin:auto;width:calc(100vw - 32px);padding:24px 18px 20px}
 #panel-join::backdrop{background:#1D002B66}
 #panel-join .ph{padding:8px 8px 8px 16px}#panel-join .ph h2{font-size:20px}
 #panel-join .pb{padding:0 16px 14px}
 .reg .sA,.reg .sB{grid-template-columns:minmax(0,1fr)}
 .reg [data-route="hcp"] .sB .consent{grid-column:1/-1;grid-row:auto}
 .reg [data-route="hcp"] .sB .row.ctry>.f:nth-child(2){grid-column:auto}
 .reg .roles{margin-top:10px;gap:6px}.reg .roles button{font-size:14px;padding:7px 11px}
 .reg .step{margin-top:10px;font-size:18px}
 .reg .f,.reg fieldset{margin-top:8px}
 .reg .f label,.reg legend{font-size:14px;margin-bottom:4px}
 .reg input[type=text],.reg input[type=email],.reg input[type=url],.reg select{height:40px;padding:8px 11px}
 .reg .sex .opts{min-height:0;gap:6px 14px}
 .reg .intro,.reg .ck{font-size:15px;line-height:1.38}
 .reg .act,.reg .consent{margin-top:8px}
 .reg .act .go,.reg .act .btn2{height:44px;padding:0 20px}
 .reg .act .btns{width:100%}.reg .act .go{flex:1;height:auto;min-height:44px;padding:6px 14px}
 .reg .kit{grid-template-columns:minmax(0,1fr) 104px;gap:12px}.reg .qr{width:104px;height:104px}
 .reg .kit .btn2{white-space:normal}
}
/* short phones: tighter rhythm so the longest page (health care professional details) still fits */
@media (max-width:700px) and (max-height:820px){
 #panel-join .ph h2{font-size:19px}
 .reg .step{margin-top:6px;font-size:17px}.reg .step span{font-size:14px}
 .reg .sub2{margin-top:6px}.reg .sub2 h3,.reg .kitw h3,.reg .rh h3{font-size:17px;margin-top:2px}
 .reg .intro{font-size:14.5px;line-height:1.33}
 .reg .f,.reg fieldset{margin-top:6px}
 .reg .f label,.reg legend{font-size:14px;margin-bottom:3px}
 .reg input[type=text],.reg input[type=email],.reg input[type=url],.reg select{height:38px;padding:7px 11px}
 .reg .ck{margin-top:6px;font-size:14.5px}.reg .consent{margin-top:8px}.reg .consent .pn{margin-top:6px}
 .reg .act{margin-top:8px}.reg .act .btn2{height:42px}.reg .act .go{min-height:42px}
}
/* Longer languages (t_1722e630): a wider panel and slightly smaller consent text so the v11 legal wording fits short screens unchanged. English is not affected. */
@media (min-width:701px){html:not([lang=en]) #panel-join{width:min(640px,calc(100vw - 2 * var(--in)))}}
@media (max-height:700px) and (min-width:701px){html:not([lang=en]) .reg .ck{font-size:14px;line-height:1.34}html:not([lang=en]) .reg .f label{font-size:14px;margin-bottom:4px}html:not([lang=en]) .reg .consent .pn{font-size:14px}}
@media (max-width:700px) and (max-height:900px){html:not([lang=en]) .reg .ck{font-size:14px;line-height:1.34}html:not([lang=en]) .reg .consent .pn{font-size:14px}}
/* Longer languages, tighter rhythm (t_1722e630): the health care professional page 2 carries a two-line facility label in nl/de/fr; these keep it inside short desktops and 390x844 phones without inner scroll. English is not affected. */
@media (max-height:700px) and (min-width:701px){html:not([lang=en]) .reg .f,html:not([lang=en]) .reg fieldset{margin-top:6px}html:not([lang=en]) .reg .step{margin-top:6px}html:not([lang=en]) .reg .intro{font-size:14px;line-height:1.32}html:not([lang=en]) .reg input[type=text],html:not([lang=en]) .reg input[type=email],html:not([lang=en]) .reg input[type=url],html:not([lang=en]) .reg select{height:38px;padding:7px 11px}}
@media (max-width:700px) and (max-height:900px){html:not([lang=en]) .reg .f,html:not([lang=en]) .reg fieldset{margin-top:6px}html:not([lang=en]) .reg .intro{font-size:14.5px;line-height:1.33}html:not([lang=en]) .reg input[type=text],html:not([lang=en]) .reg input[type=email],html:not([lang=en]) .reg input[type=url],html:not([lang=en]) .reg select{height:38px;padding:7px 11px}}
@media (max-height:700px) and (min-width:701px){html:not([lang=en]) .reg .f label{margin-bottom:2px}html:not([lang=en]) .reg .act{margin-top:5px}}
/* Polish (t_dd83f3cc): the v11 demo note may use the full panel width, so it stays on one line on short desktops and the health care professional page 2 needs no inner scroll. Other languages are not affected. */
html[lang=pl] .reg .act .demo{max-width:none;flex:1 1 100%}
/* t_3912631d F3: validation never pushes the step indicator or the buttons out of view.
   Desktop: when page content (usually error messages) outgrows the gap between header and footer links, the panel
   takes the full screen height instead of scrolling (no change while content fits). Phones: error state uses a tighter
   rhythm; if a long language still needs more room, the step line and the buttons stay pinned in view. */
@media (min-width:701px){#panel-join:has(.bad){--top:8px;--bot:8px}}
@media (max-width:700px){
 .reg form:has(.bad) .f,.reg form:has(.bad) fieldset{margin-top:4px}
 .reg form:has(.bad) .f label,.reg form:has(.bad) legend{margin-bottom:2px}
 .reg form:has(.bad) .err{margin-top:2px;line-height:1.2}
 .reg form:has(.bad) input[type=text],.reg form:has(.bad) input[type=email],.reg form:has(.bad) input[type=url],.reg form:has(.bad) select{height:36px;padding:6px 11px}
 .reg form:has(.bad) .consent{margin-top:6px}.reg form:has(.bad) .ck{margin-top:4px}
 .reg form:has(.bad) .step{margin-top:2px}.reg form:has(.bad) .lead{margin-top:4px}
 .reg form:has(.bad) .act{margin-top:8px;gap:8px}
}
.reg form:has(.bad) .step{position:sticky;top:0;z-index:3;background:var(--off);padding-bottom:2px}
.reg form:has(.bad) .act{position:sticky;bottom:-14px;z-index:3;background:var(--off);padding-bottom:14px;box-shadow:0 -8px 10px -6px var(--off)}
/* t_7b273e16 Q1 (Miguel): phones show one summary line at the top of the page instead of a message under each field,
   and outline each wrong field in red. --err #B3261E: 6.1:1 on the panel background (#F7F7F6), so it also passes as
   text. The ring (1.5px border + 2px shadow, 3px on ticks and radios) is thicker than the normal 1.5px border, so the
   state is not colour-only. Desktop and tablet keep the per-field messages; the summary stays empty and hidden there. */
#panel-join{--err:#B3261E}
.reg .errsum{margin:6px 0 0;font-size:14.5px;line-height:1.3;font-weight:600;color:var(--err)}
.reg .errsum::before{content:"! ";font-weight:700}
.reg .errsum:empty{margin:0}.reg .errsum:empty::before{content:none}
@media (min-width:701px){.reg .errsum{display:none}}
@media (max-width:700px){
 #panel-join .err{display:none!important}
 .reg .f.bad input:not([type=radio]):not([type=checkbox]),.reg .f.bad select{border-color:var(--err);border-width:1.5px;box-shadow:0 0 0 2px var(--err)}
 .reg .f.bad input:not([type=radio]):not([type=checkbox]):focus,.reg .f.bad select:focus{outline-offset:3px}
 .reg .f.bad input[type=radio],.reg .f.bad input[type=checkbox],.reg .ck.bad input{outline:3px solid var(--err);outline-offset:1px}
 .reg form:has(.bad) .errsum{position:sticky;top:var(--stepH,0px);z-index:3;background:var(--off);margin-top:0;padding:2px 0 4px}
}
/* opened over a study: a deeper wash so the panel reads as the study's own last step */
#panel-join.over::backdrop{background:#1D002B40}
