/* Registration dialog — uses the palette and type of css/style.css. */
/* Under the Lens with side cards (auto-filled from Substack): keep chip, title and button inside the shorter cards */
@container blk (max-height:300px){.item h3,.item p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.feat p{display:none}}
@container blk (max-height:200px){.item{padding:14px 18px;gap:6px}.item h3{font-size:19px}.item .pill{padding:8px 14px;font-size:13.5px}}
@container blk (max-height:145px){.item h3{-webkit-line-clamp:1}}
.t-email .acts{display:flex;gap:10px;align-items:center;flex-wrap:nowrap}
.t-email .acts .btn{border:0;cursor:pointer}

.reg{margin:auto;padding:0;border:0;background:transparent;color:#000;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:visible}
.reg::backdrop{background:rgba(10,10,10,.78)}
.reg[open]{animation:pop .3s ease}
.reg-box{position:relative;background:var(--yellow);border-radius:28px;padding:28px 28px 24px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
.reg h2{font-family:var(--display);font-weight:800;font-size:clamp(28px,6vw,40px);line-height:1;letter-spacing:-.03em;margin:0 40px 10px 0}
.reg-intro{font-size:15px;line-height:1.45;color:rgba(0,0,0,.78);margin-bottom:18px}
.reg-x{position:absolute;right:16px;top:16px;width:36px;height:36px;border-radius:50%;background:#000;color:var(--yellow);font-size:22px;line-height:1;display:grid;place-items:center}
.reg-form{display:grid;gap:14px}
.reg-field{display:grid;gap:6px}
.reg-field label{font-weight:700;font-size:14px}
.reg-req{color:#b0005a}
.reg-field input,.reg-field select,.reg-field textarea{width:100%;font:inherit;font-size:16px;color:#000;background:#fff;border:2px solid #000;border-radius:14px;padding:11px 14px;min-height:48px}
.reg-field select{appearance:none;-webkit-appearance:none;padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center/18px}
.reg-field input:focus-visible,.reg-field select:focus-visible,.reg-field textarea:focus-visible{outline:3px solid #000;outline-offset:2px}
.reg-field [aria-invalid="true"]{border-color:#b0005a;box-shadow:3px 3px 0 #b0005a}
.reg-check{grid-template-columns:auto 1fr;align-items:center}
.reg-check input{width:22px;height:22px;min-height:0;accent-color:#000}
.reg-multi{border:0;padding:0;margin:0;min-width:0;display:grid;gap:8px}
.reg-multi legend{font-weight:700;font-size:14px;padding:0;margin-bottom:6px}
.reg-opt{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600;background:#fff;border:2px solid #000;border-radius:14px;padding:10px 14px;cursor:pointer;min-height:46px}
.reg-opt input{width:20px;height:20px;min-height:0;padding:0;border:0;accent-color:#000;flex:none}
.reg-opt:has(input:checked){background:#000;color:#fff}
.reg-opt:has(input:checked) input{accent-color:var(--lime)}
.reg-multi[aria-invalid="true"] .reg-opt{border-color:#b0005a}
.reg-other{width:100%;font:inherit;font-size:16px;color:#000;background:#fff;border:2px solid #000;border-radius:14px;padding:11px 14px;min-height:48px}
.reg-other[hidden]{display:none}
.reg-help{font-size:13px;color:rgba(0,0,0,.7)}
.reg-err{font-size:13px;font-weight:700;color:#b0005a;min-height:0}
.reg-err:empty{display:none}
.reg-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.reg-ts{min-height:65px}
.reg-submit{justify-self:start;border:0;min-height:48px}
.reg-submit:disabled{opacity:.6;cursor:progress;transform:none}
.reg-status{font-size:14px;font-weight:600;min-height:1.2em}
.reg-status.bad{color:#b0005a}
.reg-done{display:grid;gap:14px;outline:none}
.reg-done[hidden]{display:none}
.reg-done p{font-size:16px;line-height:1.45}
.reg-done .btn{justify-self:start}

@media (max-width:819px){
  /* two stacked compact buttons; strip padding/gap tightened so both fit at 360px */
  .t-email{padding:0 12px;gap:8px}
  .t-email .acts{flex-direction:column;align-items:stretch;gap:4px;flex:none}
  .t-email .acts .btn{padding:6px 10px;font-size:12.5px;line-height:16px;text-align:center}
  .reg-box{padding:22px 18px 18px;border-radius:24px}
}
