/* Public journey: 1140px workspace, 760px reading measure, 8/16/24/32 spacing. */
.entry-page,
.catalog,
.auth-page,
.public-content {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
}
.entry-page > h1,
.catalog-heading h1,
.community-page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
/* A centered welcome, separate from the members' catalog controls. */
body > main:has(> .entry-welcome) {
  display: grid;
  place-items: center;
  padding-block: 40px;
}
.entry-gate {
  width: 100%;
  max-width: 680px;
  margin: 24px auto;
  padding: 24px 16px;
  text-align: center;
}
.entry-welcome { margin: 0; }
.entry-intro :is(h1, h2) {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.entry-intro > p {
  max-width: 420px;
  margin: 18px auto 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}
.entry-intro > .link-button {
  min-height: 48px;
  padding-inline: 24px;
  gap: 16px;
}
.entry-steps {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}
.entry-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.entry-steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  border-radius: 50%;
}
.entry-steps strong {
  font-size: 14px;
}
.entry-steps p {
  font-size: 13px;
  line-height: 1.6;
  margin: 5px 0 0;
  color: var(--muted);
}
.entry-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 24px 0 0;
}
.entry-notice {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 24px;
  max-width: 760px;
}
.entry-notice p {
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
  color: var(--muted);
}
.entry-notice a {
  font-size: 13px;
  font-weight: 600;
}
.entry-empty {
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin: 24px 0;
}
.entry-empty h2 {
  font-size: 24px;
  margin: 8px 0 14px;
}
.entry-empty p {
  color: var(--muted);
  line-height: 1.65;
}
.entry-empty .button-row {
  margin-top: 20px;
}
.auth-page {
  max-width: 400px;
  padding-top: clamp(24px, 7vh, 64px);
}
.auth-page .signin {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px #00000008;
}
.auth-page .signin h1 {
  font-size: 24px;
  margin: 0 0 8px;
  text-align: center;
}
.auth-intro {
  margin: 0 0 24px;
  color: var(--muted);
  text-align: center;
}
.auth-page .google-signin {
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #747775;
  border-radius: 8px;
  background: #fff;
  color: #1f1f1f;
  text-decoration: none;
  font: 500 14px/20px Arial, sans-serif;
}
.google-signin img {
  display: block;
  width: 20px;
  height: 20px;
}
.google-signin:hover {
  box-shadow: 0 1px 3px #0003;
}
.passkey-signin {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 8px;
  font-weight: 500;
}
.passkey-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 12px;
}
.passkey-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.passkey-list li > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.passkey-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.passkey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.passkey-actions button {
  min-height: 44px;
  padding: 8px 12px;
}
#passkey-settings .auth-form {
  margin-top: 20px;
  gap: 12px;
}
#passkey-settings-status:empty {
  display: none;
}
.auth-page button,
.auth-page input {
  min-height: 48px;
}
.auth-form {
  display: grid;
  gap: 20px;
}
.auth-form label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
}
.auth-form input {
  background: #fff;
  font-size: 16px;
  border-radius: 8px;
}
.auth-form > .primary {
  width: 100%;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.auth-alternative {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.auth-page .auth-text-button {
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  text-underline-offset: 3px;
}
.auth-text-button:hover {
  text-decoration: underline;
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -12px;
}
.auth-label-row label {
  margin-bottom: 0;
}
.code-step > .google-signin,
.code-step > .passkey-signin,
.code-step > #passkey-signin-status,
.code-step > .signin-divider,
.code-step > .auth-alternative,
.code-step > .notice,
.code-step > .muted {
  display: none;
}
.code-step .auth-intro {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 20px;
}
body:has(.code-step) .site-footer {
  display: none;
}
body:has(.auth-page) main {
  padding-bottom: 16px;
}
.code-step .auth-form {
  gap: 12px;
}
.code-step .auth-field > label {
  text-align: center;
}
.code-input {
  position: relative;
  container-type: inline-size;
}
.code-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.code-slots span {
  display: grid;
  place-items: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: 500 26px/1 ui-monospace, monospace;
}
.code-slots .code-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #19345526;
}
.code-slots .code-selected {
  background: var(--brand-soft);
}
.code-input:has([aria-invalid="true"]) .code-slots span {
  border-color: #9b3029;
}
.code-input #signin-code {
  position: absolute;
  inset: 0;
  height: 52px;
  padding: 0 0 0 calc((100cqw - 40px) / 12 - .5ch);
  border: 0;
  opacity: 0;
  font: 26px/1 ui-monospace, monospace;
  letter-spacing: calc((100cqw + 8px) / 6 - 1ch);
}
.code-feedback {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.code-feedback.is-error {
  color: #9b3029;
}
.code-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.code-step #code-delivery {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.code-delivery:empty,
#profile-feedback:empty {
  display: none;
}
.field-error {
  font-size: 12px;
  color: #9b3029;
  margin: 6px 0 12px;
  line-height: 1.5;
}
.field-error:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: #9b3029;
}
.reservation-policy {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--white);
}
.reservation-policy summary {
  font-weight: 600;
  font-size: 14px;
}
.reservation-policy ol {
  padding-left: 20px;
}
.reservation-policy li {
  font-size: 13px;
  line-height: 1.65;
  margin: 12px 0;
  color: var(--muted);
}
.reservation-policy strong {
  color: var(--ink);
}
.membership-guide {
  margin: 12px 0 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
  line-height: 1.6;
}
.membership-guide p {
  margin: 5px 0;
  color: var(--muted);
}
.community-card .community-action-note {
  max-width: 440px;
}
.community-card[data-join-target="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.location-privacy {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
  line-height: 1.5;
}
.city-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: min(85dvh, var(--city-dialog-height, 85dvh));
  overflow-y: auto;
}
.city-dialog .place-results {
  max-height: 240px;
  overflow-y: auto;
}
.city-dialog .place-results button {
  min-height: 48px;
}
.city-suggestions {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.city-suggestions button {
  text-align: left;
}
.city-suggestions small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.public-page .public-content {
  flex: 1;
  padding: 32px 24px;
}
.public-page nav a {
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  color: var(--brand);
  text-decoration: none;
}
.legal-document {
  max-width: 760px;
  margin: 0 auto;
}
.legal-document h1 {
  font-size: 30px;
  margin: 10px 0 20px;
}
.legal-meta {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.legal-copy {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.legal-copy h2,
.legal-copy h3,
.legal-copy h4 {
  margin: 28px 0 12px;
  line-height: 1.35;
}
.legal-copy h2 {
  font-size: 24px;
}
.legal-copy h3 {
  font-size: 20px;
}
.legal-copy h4 {
  font-size: 17px;
}
.legal-copy li {
  margin-bottom: 8px;
}
.legal-copy ul,
.legal-copy ol {
  padding-left: 22px;
}
.legal-copy hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
#terms-dialog {
  max-width: 800px;
}
#terms-dialog .legal-copy {
  max-height: 55dvh;
  overflow-y: auto;
  padding-right: 12px;
}
@media (max-width: 700px) {
  .entry-page > h1,
  .catalog-heading h1,
  .community-page-heading h1 {
    font-size: 24px;
  }
  .auth-page {
    padding-top: 0;
  }
  .auth-page .signin {
    padding: 22px;
  }
  .entry-empty {
    padding: 22px;
  }
  .entry-notice {
    padding: 16px;
  }
  .public-page .public-content {
    padding: 24px 14px 84px;
  }
  .public-page nav a {
    flex: 1;
    text-align: center;
    padding: 16px 6px;
  }
  .city-dialog {
    margin: 12px auto;
    top: 0;
  }
  .city-dialog .place-results {
    max-height: 180px;
  }
  .community-utilities .button-row {
    flex-wrap: wrap;
  }
}
@media(max-width:700px) { .membership-guide { padding: 14px 16px; } }
@media (max-width: 720px) and (max-height: 620px) {
  .auth-page .signin {
    padding: 16px;
  }
  .auth-page .auth-intro {
    margin-bottom: 16px;
  }
  .auth-page .auth-form {
    gap: 12px;
  }
  .auth-page .signin-divider {
    margin: 12px 0;
  }
  body:has(.auth-page) .site-footer {
    display: none;
  }
}

.welcome-secondary { display: block; width: fit-content; margin: 12px auto 0; padding: 12px; min-height: 44px; color: var(--muted); font-size: 13px; text-underline-offset: 4px; }
