@charset "UTF-8";
.wrap {
  width: min(calc(100% - 2 * max(var(--gutter),env(safe-area-inset-left),env(safe-area-inset-right))),var(--width));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid;
  padding-top: env(safe-area-inset-top);
}

.mast-row {
  display: flex;
  align-items: center;
  gap: clamp(25px,6vw,105px);
  min-height: clamp(76px,6vw,98px);
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  width: clamp(148px,13.2vw,210px);
}

#nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(24px,4vw,70px);
  font-size: clamp(15px,1.14vw,18px);
  font-weight: bold;
}

#nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

#nav [aria-current] {
  color: var(--red);
}

.compact,#toggle {
  display: none;
}

.crumb {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  font-size: 14px;
}

.crumb a {
  padding-block: 5px;
}

main {
  min-height: 60vh;
  padding-bottom: var(--space);
}

.section {
  padding-block: var(--space);
  border-top: 1px solid var(--ink);
}

.section:last-child {
  padding-bottom: 0;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

footer {
  padding: var(--space) 0 max(24px,env(safe-area-inset-bottom));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.foot-grid nav a {
  display: block;
  padding: .32em 0;
}

.baseline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid;
  padding-top: 25px;
}

@media(max-width:1110px) {
  .mast-row {
    gap: 12px;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand img {
    width: clamp(119px,32vw,165px);
  }

  .compact {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    margin-left: auto;
    min-height: 44px;
  }

  #toggle {
    display: flex;
  }

  #nav {
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    gap: 0;
    font-size: 19px;
    max-height: max(80px, calc(100dvh - 100px - env(safe-area-inset-top)));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #nav a {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 10px 0;
  }

  #toggle[aria-expanded=false]+nav {
    display: none;
  }

}

@media(max-width:740px) {
  .pair {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
  }

  .foot-grid nav a {
    min-height: 40px;
  }

  .foot-grid>.square {
    grid-area: 1/2;
    justify-self: end;
  }

  .crumb {
    padding-block: 10px;
  }

}

.skip:focus {
  position: fixed;
  top: env(safe-area-inset-top);
  left: var(--gutter);
  z-index: 101;
  background: var(--paper);
  padding: 12px;
}
