/* Base layout and element defaults */
/* Prevent body scroll on iOS (layout uses fixed-height grid with internal scrollable .page) */
html,
body {
  --ease-2: ease-in-out;
  overflow: hidden;
  height: 100%;
}

h1,
h2,
h3 {
  max-inline-size: initial;
}
h1 {
  font-size: var(--font-size-5);
}
h2 {
  font-size: var(--font-size-4);
}
h3 {
  font-size: var(--font-size-3);
}

input,
select {
  width: 100%;
}

label + input,
label + select {
  margin-block-start: var(--size-2);
}
table {
  border: none;
}

/* Generic page layout */
.page-wrapper {
  display: grid;
  grid-template-rows: auto auto 1fr;
  /* grid-template-rows: auto auto 1fr auto; */
  height: 100dvh;
  overflow-y: auto;
}
.page {
  padding: var(--size-4);
}
@media (max-width: 768px) {
  .page {
    padding: var(--size-1);
  }
}
.page-content--form {
  align-self: center;
  margin-inline: auto;
  max-width: var(--size-content-3);
  width: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: var(--size-2);
  background-color: var(--wa-color-surface-default);
  h1 {
    margin: 0;
  }
  .page-header__logo {
    display: flex;
    align-items: center;
    gap: var(--size-2);
    text-decoration: none;
    transition:
      color 0.2s var(--ease-2),
      transform 0.2s var(--ease-2);
    color: var(--wa-color-text-normal);
  }

  .page-header__logo-mark {
    height: 28px;
    width: auto;
  }

  .page-header__logo:hover {
    transform: translateY(-2px);
  }

  .page-header__actions {
    display: flex;
    gap: var(--size-3);
    align-items: center;
  }
}

.no-account-blank-state {
  grid-row: 2 / span 2;
}
