/* Shared Happystoryworld brand and navigation treatment. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  height: auto;
  gap: 20px;
  background: rgba(255, 253, 248, .95);
  border-bottom: 1px solid rgba(93, 80, 189, .1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #243042;
  font-size: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, #ffca4b, #ff9f5a);
  font-size: 22px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  color: #26314d;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.brand-tagline {
  color: #667087;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 10px;
  border: 1px solid #ece8dc;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.site-menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: #26314d;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-header .site-nav a,
.site-header .site-nav .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #667087;
  font: inherit;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-nav a.active,
.site-header .site-nav a[aria-current="page"] {
  background: #f2efff;
  color: #5d50bd;
}

.site-header .site-nav .link-button { cursor: pointer; }
.site-header .site-nav .hidden { display: none; }

@media (max-width: 800px) {
  .site-header {
    gap: 8px;
    padding: 10px 4%;
  }
}

@media (max-width: 680px) {
  .site-header { position: sticky; flex-wrap: nowrap; }
  .site-menu-toggle { display: block; }
  .site-header .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 4%;
    z-index: 50;
    width: min(230px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px;
    border: 1px solid #ece8dc;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(51, 49, 90, .16);
  }
  .site-header.menu-open .site-nav { display: flex; }
  .site-header .site-nav a,
  .site-header .site-nav .link-button {
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    font-size: .86rem;
  }
}
