/* Shared doorway theme and components, using the member site's type and palette tokens. */
:root {
  color-scheme: light;
  --bg: #F2F2F5; --bg2: #E9E6F0; --tx: #111114; --tx2: #51505B;
  --gl: #FFF; --gl2: #F5F4F8; --ln: #D5D3DD; --acc: #0019C9; --on-acc: #FFF; --danger: #A22138;
  --r: 24px; --sh: 0 14px 40px rgba(30, 20, 60, .10); --ease: cubic-bezier(.32, .72, 0, 1);
}
html[data-theme="day"][data-pal="purple"] {
  --bg: #F4F0FA; --bg2: #ECE3FA; --tx: #19132A; --tx2: #584C68;
  --gl2: #F7F3FD; --ln: #D5CCE4; --acc: #4B2892;
}
html[data-theme="day"][data-pal="beige"] {
  --bg: #F4EEE3; --bg2: #E9DFCC; --tx: #1C1814; --tx2: #5C5044;
  --gl: #FFFBF3; --gl2: #F7EFE1; --ln: #D8CABB;
}
html[data-theme="night"] {
  color-scheme: dark;
  --bg: #000; --bg2: #151518; --tx: #F5F5F7; --tx2: #B6B5BE;
  --gl: #17171B; --gl2: #242428; --ln: #46454D; --acc: #A9AFFF; --on-acc: #0B1030; --danger: #FFB2BD;
  --sh: 0 20px 50px rgba(0, 0, 0, .35);
}
html[data-theme="night"][data-pal="purple"] {
  --bg: #0B0716; --bg2: #1A0F33; --tx: #F7F4FF; --tx2: #C2B5D8;
  --gl: #1C132B; --gl2: #261A3B; --ln: #4D3C64; --acc: #CDB5FF; --on-acc: #1A0E2C;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--tx); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; font: 400 1rem/1.55 Satoshi, system-ui, sans-serif; }
h1, h2 { margin: 0; font: 600 2rem/1.05 "Clash Display", system-ui, sans-serif; letter-spacing: -.025em; }
h3, p { margin: 0; }
a { color: var(--acc); text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--acc); outline-offset: 3px;
}
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.entry-shell { width: min(100% - 32px, 1120px); margin-inline: auto; }
.entry-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.entry-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); text-decoration: none; font-weight: 700; }
.entry-brand img { display: block; border-radius: 10px; }
.entry-footer {
  margin-block-start: 48px; border-top: 1px solid var(--ln); padding-block: 23px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; color: var(--tx2); font-size: .875rem;
}
.entry-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.entry-footer a { color: inherit; padding-block: 6px; }
.entry-theme { display: flex; align-items: center; gap: 8px; }
.entry-theme select { min-height: 40px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--ln); background: var(--gl); color: var(--tx); }
.entry-button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 17px;
  border-radius: 14px; color: var(--tx); background: var(--gl); border: 1px solid var(--ln); text-decoration: none;
  font-weight: 700; text-align: center; transition: background-color .18s var(--ease);
}
.entry-button:hover { background: var(--gl2); }
.entry-button--primary { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
.entry-button--primary:hover { background: color-mix(in srgb, var(--acc), var(--on-acc) 12%); }
.entry-text-link { display: inline-flex; align-items: center; min-height: 44px; text-align: start; padding: 0; border: 0; color: var(--acc); background: none; text-decoration: underline; }
.entry-card { border: 1px solid var(--ln); border-radius: var(--r); background: var(--gl); box-shadow: var(--sh); }
.entry-skip { position: absolute; z-index: 5; top: 8px; left: 8px; background: var(--gl); color: var(--tx); padding: 10px; transform: translateY(-150%); }
.entry-skip:focus { transform: none; }
.entry-hero { overflow: clip; display: grid; background: var(--bg2); border-radius: var(--r); }
.entry-hero-copy { padding: clamp(24px, 5.5vw, 64px); align-self: center; }
.entry-hero h1 { max-width: 12ch; font-size: clamp(2.65rem, 6.8vw, 5rem); }
.entry-hero p { max-width: 39ch; margin: 16px 0 22px; color: var(--tx2); text-wrap: pretty; }
.entry-hero-art { display: block; width: 100%; height: clamp(185px, 50vw, 315px); object-fit: cover; object-position: center 54%; }
.entry-feature-links, .entry-plans-list { display: grid; gap: 12px; }
.entry-feature-links { margin-block-start: 16px; }
.entry-feature {
  display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--ln); border-radius: 18px; background: var(--gl);
  color: var(--tx); text-decoration: none;
}
.entry-feature:hover { background: var(--gl2); }
.entry-feature p, .entry-plans p { color: var(--tx2); font-size: .94rem; }
.entry-feature h2 { font-size: 1.25rem; }
.entry-plans { margin-block-start: 48px; }
.entry-plans-list { margin-block: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.entry-plans-list article { border: 1px solid var(--ln); border-radius: 16px; padding: 16px; background: var(--gl); }
.entry-plans-list p { margin-block-start: 5px; }
.entry-plans-summary { margin-block: 4px; }
.entry-eyebrow { font-size: .81rem; text-transform: uppercase; letter-spacing: .075em; font-weight: 700; color: var(--tx2); }
.entry-hero p.entry-eyebrow { margin: 0 0 13px; }
.entry-auth { max-width: 450px; margin: clamp(12px, 5vh, 56px) auto 0; padding: clamp(19px, 5vw, 36px); }
.entry-auth .entry-eyebrow { margin-block-end: 8px; }
.entry-auth h1 { font-size: clamp(2rem, 7vw, 2.7rem); }
.entry-auth-intro { margin-top: 8px; color: var(--tx2); }
.entry-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 21px 0 17px; border: 1px solid var(--ln);
  border-radius: 15px; padding: 4px; background: var(--gl2);
}
.entry-tabs button { border: 1px solid transparent; border-radius: 11px; min-height: 44px; background: transparent; font-weight: 700; padding: 5px 7px; }
.entry-tabs button[aria-selected="true"] { background: var(--gl); border-color: var(--ln); }
.entry-methods, .entry-form { display: grid; gap: 10px; }
.entry-methods .entry-button, .entry-form > .entry-button { width: 100%; }
.entry-methods svg { flex: 0 0 18px; }
.entry-field { display: grid; gap: 5px; margin: 0; text-align: start; }
.entry-field label, .entry-field legend { font-weight: 700; }
.entry-form fieldset { border: 0; min-width: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.entry-form input:not([type="checkbox"]), .entry-form select {
  width: 100%; min-width: 0; min-height: 47px; padding: 8px 12px; border: 1px solid var(--ln);
  border-radius: 12px; background: var(--gl2); font-size: 1rem;
}
.entry-form input[aria-invalid="true"] { border: 2px solid var(--danger); }
.entry-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 0 13px; }
.entry-divider { color: var(--tx2); display: flex; align-items: center; gap: 10px; font-size: .85rem; margin-block: 14px; }
.entry-divider::before, .entry-divider::after { content: ""; height: 1px; background: var(--ln); flex: 1; }
.entry-error:not(:empty), .entry-status:not(:empty) {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; color: var(--tx); background: var(--gl2); border: 1px solid var(--ln);
}
.entry-error:not(:empty) { border-color: var(--danger); color: var(--danger); }
.entry-help { color: var(--tx2); font-size: .875rem; }
.entry-check { display: flex; align-items: start; gap: 8px; min-height: 30px; }
.entry-check input { accent-color: var(--acc); min-width: 17px; min-height: 17px; margin-top: 4px; }
.entry-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-chips .entry-button { font-size: .875rem; min-height: 40px; padding: 5px 10px; }
.entry-turnstile { overflow: hidden; min-width: 0; }
.entry-turnstile:empty { display: none; }
.entry-back { margin-bottom: 6px; }
@media (min-width: 680px) {
  .entry-shell { width: min(100% - 72px, 1120px); }
  .entry-hero { grid-template-columns: 1fr 1.08fr; }
  .entry-hero-art { min-height: 420px; height: 100%; }
  .entry-feature-links { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .entry-button { transition: none; }
}
