/* Shared menu styling, loaded by both the gallery and the coloring app.
   Falls back across the two stylesheets' variable names where they differ. */
#menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 12, 0.5);
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#menu-panel {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(92vw, 420px);
  max-height: 78vh;
  overflow-y: auto;
  padding: 14px 18px 18px;
  text-align: left;
}
#menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
#menu-nav { display: flex; gap: 4px; flex-wrap: wrap; }
#menu-nav button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
}
#menu-nav button.active { background: #ece5d6; color: var(--ink); }
#menu-close {
  border: none;
  background: transparent;
  font-size: 22px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 8px;
}
.menu-page h3 { font-size: 16px; margin-bottom: 8px; }
.menu-page p, .menu-page li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.menu-page p { margin-bottom: 10px; }
.menu-page ul { padding-left: 18px; display: grid; gap: 6px; }

.buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 12px;
}
#buy-cover {
  width: 104px;
  height: 104px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(20, 16, 8, 0.22);
  flex: none;
}
.buy-row h3 { margin-bottom: 3px; }
.buy-muted { color: var(--ink-soft); font-size: 12.5px; }
#menu-panel .affiliate-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 10px;
}

.buy-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 4px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 6px 0 14px;
}
.contact-logo { width: 96px; height: 96px; flex: none; }
.contact-details { text-align: right; margin-left: auto; }
.contact-details p { margin-bottom: 6px; }
.contact-details a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.contact-imprint {
  color: var(--ink-soft);
  font-size: 12.5px;
  border-top: 1px solid var(--bar-edge, var(--edge, #d8d0bf));
  padding-top: 10px;
}
