/* The door (handoff 2 Nov 2026, section 2), password only (decision D3).
   Values from the handoff. Its `--shg-inv` and `--shg-font-slogan` are the kit's `--inverse` and
   `--font-slogan` (qs-tokens.css); the fallbacks keep the page right if the theme is missing.
   The A3 button is the site's own `.qs-btn--commit` (buttons.css, roll.css), lit Seashell on Bordeaux
   as the business page's quote form does (business.css `.shg-quote`). No animation library. */

html, body.shg-door-page { margin: 0; background: var(--inverse, #4c1e20); }
body.shg-door-page { font-family: var(--font-body, "Google Sans", "Helvetica Neue", Arial, sans-serif); -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shg-door { --l: 255 246 238; position: relative; min-block-size: 100dvh; background: var(--inverse, #4c1e20); color: rgb(var(--l)); }
.shg-door__logo { position: absolute; inset-block-start: 36px; inset-inline-end: 40px; inline-size: 180px; color: rgb(var(--l)); text-decoration: none; }
.shg-door__logo img { display: block; inline-size: 100%; block-size: auto; }
.shg-door__c { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; transform: translate(50%, -50%); inline-size: min(640px, calc(100% - 40px)); }
.shg-door__eb { margin: 0; font-family: var(--font-slogan, "Helvetica Neue", Helvetica, Arial, sans-serif); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; direction: ltr; text-align: start; color: rgb(var(--l) / .55); }
.shg-door__t { margin: 14px 0 0; font-size: clamp(32px, 4vw, 44px); font-weight: 400; line-height: 1.1; }
.shg-door__t:first-child { margin-block-start: 0; }
.shg-door__line { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: rgb(var(--l) / .72); max-inline-size: 46ch; }
.shg-door__f { margin-block-start: 44px; }
.shg-door__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-block-start: 44px; padding-block-end: 14px; border-block-end: 1px solid rgb(var(--l) / .6); }
.shg-door__f > .shg-door__row:first-of-type { margin-block-start: 0; }
.shg-door__f > .shg-door__row + .shg-door__row { margin-block-start: 28px; }
.shg-door__in { border: 0; background: transparent; font: inherit; font-size: 28px; color: rgb(var(--l)); outline: 0; min-inline-size: 0; padding: 0; border-radius: 0; }
.shg-door__in::placeholder { color: rgb(var(--l) / .7); }
/* A typed email reads left to right (its start stays visible), aligned with the Hebrew column. */
.shg-door__in[type="email"]:not(:placeholder-shown) { direction: ltr; text-align: right; }
.shg-door__in[readonly] { color: rgb(var(--l) / .72); }
.shg-door__in:-webkit-autofill { -webkit-text-fill-color: rgb(var(--l)); transition: background-color 9999s; caret-color: rgb(var(--l)); }
.shg-door__arr, .shg-door__eye { border: 0; background: none; padding: 0; color: rgb(var(--l)); cursor: pointer; display: inline-flex; }
.shg-door__arr svg { inline-size: 32px; block-size: 32px; }
.shg-door__eye { opacity: .7; } .shg-door__eye[aria-pressed="true"] { opacity: 1; }
.shg-door__eye svg { inline-size: 26px; block-size: 26px; }
.shg-door__row:focus-within { border-color: rgb(var(--l)); }
.shg-door__arr:focus-visible, .shg-door__eye:focus-visible, .shg-door a:focus-visible, .shg-door__dev input:focus-visible { outline: 2px solid rgb(var(--l)); outline-offset: 4px; border-radius: 4px; }

/* Wrong password: the row turns Pale Sky, the reason under it. */
.shg-door__row.is-wrong, .shg-door__row.is-wrong:focus-within { border-color: var(--pale-sky, #c6dae6); }
.shg-door__row.is-wrong .shg-door__in { color: var(--pale-sky, #c6dae6); }
.shg-door__err { margin: 12px 0 0; font-size: 14.5px; color: rgb(var(--l)); }
.shg-door__err.is-wrong { color: var(--pale-sky, #c6dae6); }

.shg-door__dev { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 22px; font-size: 14.5px; color: rgb(var(--l) / .72); cursor: pointer; }
.shg-door__dev input { inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--pale-sky, #c6dae6); }

.shg-door .qs-btn.qs-btn--commit.shg-door__go { display: flex; inline-size: 100%; margin-block-start: 26px; background: var(--seashell, #fff6ee); color: var(--rich-mahogany, #381b20); }
.shg-door .qs-btn.qs-btn--commit.shg-door__go:focus-visible { outline-color: rgb(var(--l)); }

.shg-door__alt, .shg-door__foot { font-size: 14.5px; color: rgb(var(--l) / .72); }
.shg-door__alt { margin: 18px 0 0; }
.shg-door__foot { margin: 120px 0 0; }
.shg-door a { color: rgb(var(--l)); text-decoration: underline; text-underline-offset: 4px; }
.shg-door a.shg-door__logo { text-decoration: none; }
.shg-door__em { color: rgb(var(--l)); }

/* The join form (ticket 17): five rows in a two column grid, the last spans both (handoff section 2). */
.shg-door__f--join { margin-block-start: 32px; }
.shg-door__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.shg-door__grid .shg-door__row { margin: 0; font-size: 20px; min-block-size: 52px; padding-block-end: 10px; }
.shg-door__grid .shg-door__row:last-child { grid-column: 1 / -1; }
.shg-door__grid .shg-door__in { font-size: 20px; }
.shg-door__in[type="tel"] { text-align: right; }
.shg-door__in[type="tel"]:not(:placeholder-shown) { direction: ltr; }
.shg-door__line .shg-door__em { display: inline-block; direction: ltr; overflow-wrap: anywhere; }
.shg-door__hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; opacity: 0; }

@media (max-width: 640px) {
	.shg-door__logo { inset-block-start: 24px; inset-inline-end: 20px; inline-size: 120px; }
	.shg-door__in { font-size: 20px; }
	.shg-door__arr svg { inline-size: 26px; block-size: 26px; }
	.shg-door__f { margin-block-start: 32px; }
	.shg-door__f > .shg-door__row + .shg-door__row { margin-block-start: 20px; }
	.shg-door__foot { margin-block-start: 56px; }
	.shg-door__f--join { margin-block-start: 24px; }
	.shg-door__grid { grid-template-columns: 1fr; gap: 4px; }
	.shg-door__grid .shg-door__in { font-size: 18px; }
}

/* A short window (landscape phone): the column flows from under the logo instead of centring, so
   nothing is cut off above the fold. Not reached at 1440x900 or 390x844. */
@media (max-height: 680px) {
	.shg-door__c { position: relative; inset: auto; transform: none; margin-inline: auto; padding-block: 96px 48px; }
}
