/* Public/marketing and account-page styles.
   This starts as the current shared public bundle so public pages can move
   away from the app CSS without changing their appearance. */
@import url("/assets/css/mm.css");
@import url("/assets/css/main.css");

.public-header {
  padding: 0 12px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.58)),
    url("/assets/images/public-header-bg.jpg") center 42% / cover no-repeat;
}

.public-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.top-nav-menu {
  position: relative;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.82);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle:hover,
.top-nav-menu[open] .menu-toggle {
  background: rgba(23, 25, 27, 0.92);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-bars {
  position: relative;
}

.menu-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.menu-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.menu-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #111214;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.menu-item:hover {
  background: #17191b;
  text-decoration: none;
}

.menu-group[hidden] {
  display: none;
}

.menu-divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(255,255,255,0.08);
}

.public-brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.hero-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-media {
  min-width: 0;
  max-width: 100%;
}

.hero-image {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

@media (max-width: 480px) {
  .hero-card {
    padding: 14px;
    gap: 12px;
  }

  .hero-copy h1 {
    margin-top: 0;
    font-size: 1.8rem;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
    max-height: 220px;
    border-radius: 12px;
  }
}

@media (min-width: 760px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    align-items: center;
  }

  .hero-image {
    max-height: 300px;
  }
}
