/* FEATURE_SIMPLE_SQUARE across the whole site (body.mv-simple-site).
   The same warm cream as the Village Square on every page, so moving from
   the Square to a business, club, event or account page no longer drops
   back to white. Only the light theme's tokens are re-pointed; the dark
   theme keeps its own. Masthead markup and styles are shared with the
   Square (simple_square.css, .sqs-*). */

[data-theme="myvillage"] body.mv-simple-site {
  --color-base-100: #fffdf8; /* raised surfaces: cards, inputs, sheets */
  --color-base-200: #faf6ed; /* page */
  --color-base-300: #e6ddc9;
  --color-primary: #174a32;
  --color-primary-content: #faf6ed;
  --sqc-bg: #faf6ed;
  --sqc-bg-soft: #fffdf8;
  --mv-shell-bg: #faf6ed;
  --mv-shell-bg-soft: #fffdf8;
  --mv-shell-border: #e6ddc9;
}

[data-theme="myvillage"] body.mv-simple-site .lp-page {
  --ep-bg: #faf6ed;
  --ep-soft: #fffdf8;
  --ep-availability: #fffdf8;
  --ep-border: #e6ddc9;
}

html:has(body.mv-simple-site) {
  background: var(--color-base-200);
}

body.mv-simple-site {
  --sqs-ink: var(--color-base-content);
  --sqs-muted: color-mix(in oklab, var(--color-base-content) 64%, transparent);
  --sqs-line: color-mix(in oklab, var(--color-base-content) 11%, transparent);
  --sqs-page: var(--color-base-200);
  --sqs-paper: var(--color-base-100);
  --sqs-accent: var(--color-primary);
  --sqs-accent-ink: var(--color-primary-content);
  background: var(--sqs-page);
}

body.mv-simple-site main,
body.mv-simple-site .page-surface-wrapper {
  background: var(--sqs-page);
}

/* The page card sits on the same cream: a quiet border instead of a shadow. */
body.mv-simple-site .page-surface {
  box-shadow: none;
  border-color: var(--sqs-line);
}

/* Hard-coded white utilities in older templates become the lighter card
   cream; the bottom bar and cookie banner sit on the page cream. */
[data-theme="myvillage"] body.mv-simple-site :is(
    .bg-white,
    .bg-gray-50,
    .bg-slate-50,
    .bg-neutral-50,
    .mv-mobile-smart-menu__panel,
    .mv-mobile-create-sheet__panel
  ) {
  background-color: #fffdf8 !important;
}

[data-theme="myvillage"] body.mv-simple-site :is(.mv-mobile-bottom-nav, #cookie-banner) {
  background-color: #faf6ed !important;
}

/* Masthead as a link (other pages) rather than the Square's place button. */
.sqs-masthead__title--link,
.sqs-masthead__title--link:hover {
  text-decoration: none;
  color: var(--sqs-ink) !important;
}

.sqs-masthead__login {
  justify-self: end;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: var(--sqs-accent);
  color: var(--sqs-accent-ink) !important;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.sqs-header--site {
  background: var(--sqs-page);
  border-bottom: 1px solid var(--sqs-line);
}

/* No area chips above it on these pages, so give the masthead its own top space. */
.sqs-header--site .sqs-masthead {
  padding-top: 0.5rem;
  padding-bottom: 0.45rem;
}
