/*
 * Shared public-page shell, derived from approved mockup 01y tokens.
 * All selectors are scoped to .pv-public-shell so native BuddyBoss and
 * WooCommerce runtime screens keep their plugin-owned presentation.
 */

body.pv-public-shell {
  --pv-ink: #f7f0e7;
  --pv-ink-muted: #bcb5ad;
  --pv-ground: #090909;
  --pv-surface: #111110;
  --pv-surface-raised: #181715;
  --pv-line: rgba(247, 240, 231, 0.15);
  --pv-line-strong: rgba(247, 240, 231, 0.3);
  --pv-paper: #f4ead2;
  --pv-on-paper: #11100e;
  --pv-focus: #ffd630;
  --pv-ribbon: linear-gradient(90deg, #062447, #d92f8a, #b91733, #ffd630, #f4ead2);
  background: var(--pv-ground);
  color: var(--pv-ink);
  font-family: "Nunito Sans", Arial, sans-serif;
}

html[data-theme="light"] body.pv-public-shell,
html.light-mode body.pv-public-shell {
  --pv-ink: #171511;
  --pv-ink-muted: #5f5a52;
  --pv-ground: #f4efe5;
  --pv-surface: #fffaf1;
  --pv-surface-raised: #fffdf8;
  --pv-line: rgba(23, 21, 17, 0.14);
  --pv-line-strong: rgba(23, 21, 17, 0.28);
  --pv-paper: #171511;
  --pv-on-paper: #fffaf1;
  --pv-focus: #062447;
}

body.pv-public-shell #masthead,
body.pv-public-shell .site-header {
  position: relative;
  border-bottom: 1px solid var(--pv-line);
  background: var(--pv-ground);
  color: var(--pv-ink);
}

body.pv-public-shell #masthead::after,
body.pv-public-shell .site-header::after,
body.pv-public-shell #colophon::before,
body.pv-public-shell .site-footer::before {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  height: 3px;
  content: "";
  background: var(--pv-ribbon);
}

body.pv-public-shell #masthead::after,
body.pv-public-shell .site-header::after {
  bottom: -3px;
}

body.pv-public-shell #masthead .site-title,
body.pv-public-shell #masthead .site-title a,
body.pv-public-shell #masthead .site-description {
  color: var(--pv-ink);
  font-family: "Nunito", "Nunito Sans", sans-serif;
}

body.pv-public-shell .main-navigation a,
body.pv-public-shell .primary-menu-container a {
  position: relative;
  color: var(--pv-ink);
  font-family: "Nunito", "Nunito Sans", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

body.pv-public-shell .main-navigation .current-menu-item > a::after,
body.pv-public-shell .main-navigation a:hover::after,
body.pv-public-shell .main-navigation a:focus-visible::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  display: block;
  height: 2px;
  content: "";
  background: var(--pv-focus);
}

body.pv-public-shell .main-navigation ul ul,
body.pv-public-shell .primary-menu-container ul ul {
  border: 1px solid var(--pv-line-strong);
  background: var(--pv-surface-raised);
}

body.pv-public-shell .main-navigation ul ul a,
body.pv-public-shell .primary-menu-container ul ul a {
  color: var(--pv-ink);
}

body.pv-public-shell .site-content {
  background: var(--pv-ground);
}

body.pv-public-shell :focus-visible {
  outline: 3px solid var(--pv-focus);
  outline-offset: 4px;
}

body.pv-public-shell #colophon,
body.pv-public-shell .site-footer,
body.pv-public-shell .site-info {
  position: relative;
  background: var(--pv-ground);
  color: var(--pv-ink-muted);
}

body.pv-public-shell #colophon a,
body.pv-public-shell .site-footer a {
  color: var(--pv-ink);
}

body.pv-public-shell #colophon::before,
body.pv-public-shell .site-footer::before {
  top: 0;
}

@media (max-width: 680px) {
  body.pv-public-shell .main-navigation a,
  body.pv-public-shell .primary-menu-container a {
    min-height: 44px;
    align-items: center;
  }
}

/* Row82: keep public page text and surfaces in the same active palette. */
body.pv-public-shell.page { background-color: var(--pv-ground); }
body.pv-public-shell .entry-content :is(h1,h2,h3,h4,h5,h6),
body.pv-public-shell .entry-content a { color: var(--pv-ink); }
body.pv-public-shell .entry-content p.pv-eyebrow { color: var(--pv-ink-muted); }

/* Homepage header and hero contrast. Staging, 2026-11-19 (CHECKOUT-FIXES row 6).
 * style.css pins body.home #masthead links to cream with !important, which is
 * cream-on-cream in the light skin; the shell's heading rule makes the hero H1
 * near-black on the black hero. Scope: homepage with the public shell only.
 */
body.home.pv-public-shell #masthead a {
  color: var(--pv-ink, #f5f1e8) !important;
}

body.home.pv-public-shell .pv-home-hero h1 {
  color: #ffffff !important;
}

/* Round 6 (staging, 2026-11-19): light skin homepage section headings.
 * The Row82 shell rule `body.pv-public-shell .entry-content :is(h1..h6){color:var(--pv-ink)}` turns them
 * near-black (#171511) in the light skin, but every .pv-home section keeps its dark background (#0a0a0a/#111).
 * Restore the homepage's own white headings (style.css `.pv-home h1,.pv-home h2{color:#fff}`) in both skins.
 */
body.home.pv-public-shell .pv-home :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff !important;
}
/* Same cause for the plain text links in the homepage cards ("Find Your Community", "Browse Art"...):
 * the shell turns `.entry-content a` near-black in the light skin. Restore the homepage's own gold
 * links (style.css `.pv-home a{color:#ffd630}`); the .pv-button buttons keep their own styling. */
body.home.pv-public-shell .pv-home a:not(.pv-button) {
  color: #ffd630 !important;
}
