/* Shared bottom navigation: keep the same geometry and appearance on every screen. */
.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 540px);
  height: calc(78px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 9px 6px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid #E3E9E4;
  background: #fffefb;
  backdrop-filter: none;
}

.bottom-nav .tab {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #879897;
  font: inherit;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav .tab-icon {
  width: 46px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 19px;
}

.bottom-nav .tab-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav .tab.active {
  color: #176E77;
  font-weight: 760;
}

.bottom-nav .tab.active .tab-icon {
  background: #E8EFEA;
}

.bottom-nav .tab:focus-visible {
  outline: 2px solid #5A9DB6;
  outline-offset: -2px;
  border-radius: 12px;
}

/* Shared page heading rhythm follows Piano on every main section. */
.app > .head,
.app > header.head {
  height: 82px;
}

.app .page > .navtop {
  height: 82px;
}

.page-intro {
  padding: 0;
}

.app > .page-intro {
  padding-top: 4px;
}

.page-intro .eyebrow {
  display: block;
  margin: 10px 0 8px;
  color: #176E77;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-intro .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-intro h1 {
  margin: 0;
  color: #183D49;
  font-size: 31px;
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -1.15px;
}

.page-intro .subtitle {
  max-width: 475px;
  margin: 8px 0 21px;
  color: #59737A;
  font-size: 14px;
  line-height: 1.55;
}

/* Keep the fixed bar attached to the viewport, including in iOS Safari. */
.bottom-nav {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: none;
}
