body {
  margin: 0;
}

#site {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(max-content, 1fr);
  grid-template-areas: "logo primary account";
  align-items: center;
  gap: .5rem 1rem;
}

header nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: .5rem 1rem;
}

.logo-slot {
  grid-area: logo;
  width: 3rem;
  height: 2rem;
}

.primary-nav {
  grid-area: primary;
  justify-content: center;
}

.account-nav {
  grid-area: account;
  justify-self: end;
}

main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

main.search-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block-start: clamp(.5rem, 3vh, 2rem);
  text-align: center;
}

footer {
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 36rem) {
  .header-logout {
    display: none;
  }
  header, header nav {
    gap: .4rem .65rem;
  }
  .logo-slot {
    width: 1.5rem;
  }
  .account-nav {
    gap: .25rem;
  }
}

@media (max-width: 25rem) {
  header {
    font-size: .875rem;
  }
  header, header nav {
    column-gap: .25rem;
  }
}

.share-wizard {
  max-width: 58rem;
  margin-inline: auto;
}
.share-steps {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 .7rem;
  border-bottom: 1px solid;
}
.share-steps [aria-current] {
  font-weight: bold;
  text-decoration: underline;
}
.share-wizard textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
}
.share-wizard fieldset {
  min-width: 0;
  margin-block: .6rem;
}
.share-wizard fieldset label {
  display: inline-block;
  margin-block: .25rem;
}

.share-tools {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: .4rem;
  background: Canvas;
}

#batch-dialog {
  box-sizing: border-box;
  width: min(42rem, calc(100% - 1rem));
  max-height: 92dvh;
  overflow: auto;
}

#batch-dialog label {
  display: inline-block;
  margin-block: .25rem;
}

.batch-results {
  max-height: 28dvh;
  overflow: auto;
  overflow-wrap: anywhere;
}

/* Keep text entry at the mobile browser's native reading size. */
@media (max-width:760px), (pointer:coarse) {
  input:not([type=checkbox],[type=radio],[type=file],[type=hidden]),textarea,select {font-size:16px!important;}
}
