.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: min(1110px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 110px;
}

.page-block {
  display: grid;
  gap: 24px;
}

.page-centered {
  width: min(520px, 100%);
  margin: 64px auto 0;
}

/* ---------- Top bar: leather/wood company band ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(58, 42, 26, 0.96), rgba(42, 32, 21, 0.98));
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 6px 18px rgba(43, 30, 16, 0.4);
}

.topbar-hidden {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-compact {
  font-family: "Rye", "Playfair Display", serif;
  font-size: 1.25rem;
  color: #f0e4c8;
  letter-spacing: 0.02em;
}

.page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: #d8c29a;
  font-size: 1.05rem;
}

.topbar .btn-ghost {
  color: #e8d9ba;
  border-color: rgba(200, 161, 60, 0.55);
}

.topbar .btn-ghost:hover {
  background: rgba(200, 161, 60, 0.18);
}

/* ---------- Bottom nav: frontier tab bar ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(58, 42, 26, 0.97), rgba(38, 28, 18, 0.99));
  border-top: 3px solid var(--brass);
  box-shadow: 0 -6px 18px rgba(43, 30, 16, 0.4);
}

.bottom-nav-hidden {
  display: none;
}

.nav-item {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(233, 220, 193, 0.06);
  color: #d8c29a;
  padding: 10px 12px;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.84rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-item:hover {
  color: #f0e4c8;
}

.nav-item-active {
  border-color: var(--brass);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f3ead6;
}

.view {
  display: none;
}

.view-active {
  display: block;
}

.view-hidden {
  display: none !important;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-block {
  display: grid;
  gap: 16px;
}

.grid {
  display: grid;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gap-16 {
  gap: 16px;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
