/*
 * PARAVANA site shell (round 10, staging, 2026-11-20). PLAN.md step 2.
 * One masthead on every page: the approved mod4-5 horizontal non-converging bold wordmark
 * (black ink in the light skin, white ink in the dark skin; DS03/DS04), with the tagline
 * "Find the Divine" once, directly under it (DS05). One shared content rail (DS14).
 */

/* Wordmark: both approved images are printed; the skin decides which one shows. */
.site-branding .pv-wordmark-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none !important;
  line-height: 1;
}
.site-branding .pv-wordmark-link img.pv-wordmark {
  display: block;
  /* the theme sizes .site-branding img at 150 px wide, 60-74 px tall; the wordmark needs its own size */
  width: auto !important;
  height: 30px !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
}
.site-branding .pv-wordmark-link img.pv-wordmark--dark { display: none; }
html[data-bx-mode="dark"] .site-branding .pv-wordmark-link img.pv-wordmark--light { display: none; }
html[data-bx-mode="dark"] .site-branding .pv-wordmark-link img.pv-wordmark--dark { display: block; }
.site-branding .pv-tagline {
  display: block;
  font-family: var(--pv-font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--global-font-color, #505050);
}
html[data-bx-mode="dark"] .site-branding .pv-tagline { color: var(--pv-d-muted); }
body.home.pv-public-shell .site-branding .pv-tagline { color: var(--pv-ink, #f5f1e8) !important; }
@media (max-width: 767px) {
  .site-branding .pv-wordmark-link img.pv-wordmark { height: 22px !important; }
  .site-branding .pv-tagline { font-size: 11px; }
}

/* One content rail and wide gutter for header, page content and footer. DS14's starting spec is v74's 1152 px;
 * 1200 px is used so the full six-item primary menu (DS06) fits beside the wordmark at 1440 px. */
html:root { --pv-rail: 1200px; --pv-gutter: 24px; }
@media (max-width: 767px) { html:root { --pv-gutter: 14px; } }
.site-header .container,
.site-header-wrapper .container,
.site-sub-header .container,
.site-content > .container,
.site-footer .container,
#colophon .container {
  max-width: calc(var(--pv-rail) + 2 * var(--pv-gutter));
  padding-left: var(--pv-gutter);
  padding-right: var(--pv-gutter);
  box-sizing: border-box;
}

/* Footer: ordinary Nunito Sans links (DS18); content and destinations unchanged. */
#colophon, #colophon a, .site-footer, .site-footer a, .site-info, .site-info a { font-family: var(--pv-font-text); }


/* Round 12 (staging, 2026-11-20): every page, both skins. */
/* ---------- Floating light/dark toggle: never over content ----------
 * global.min.css fixes it at top:50%; right:0. The 1200 px content rail leaves room for the 40 px control only
 * when the window is at least 1300 px wide. Below that, it sits after the footer, centred (extends R3's phone rule). */
@media (max-width: 1299px) {
  .switch-mode.bx-color-mode-toggle-floating {
    position: static !important;
    display: flex !important;
    justify-content: center;
    margin: 16px auto 24px !important;
    transform: none !important;
  }
}

/* Round 15 (staging, 2026-11-20): with the header account control now "Log in / Sign up", tighten the
 * primary menu a little more so all six items fit beside it (the theme folds anything past ul width - 90px). */
@media (min-width: 1024px) {
  .site-header .main-navigation ul#primary-menu > li > a { padding-left: 5px !important; padding-right: 5px !important; }
  .main-navigation ul#primary-menu > li { margin-inline-start: 0.2em; }
  .main-navigation ul#primary-menu > li:first-child { margin-inline-start: 0; }
}

/* Round 17 (staging, 2026-11-20): keyboard focus in the header and footer uses the accent token
 * (was the theme's navy), and the closed side cart's "Close" link is out of the Tab order. */
.site-header :is(a, button):focus-visible,
.site-footer :is(a, button):focus-visible,
#colophon :is(a, button):focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--pv-l-accent) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}
html[data-bx-mode="dark"] .site-header :is(a, button):focus-visible,
html[data-bx-mode="dark"] .site-footer :is(a, button):focus-visible,
html[data-bx-mode="dark"] #colophon :is(a, button):focus-visible,
html[data-bx-mode="dark"] .skip-link:focus-visible {
  outline-color: var(--pv-d-accent) !important;
}
body:not(.buddyx-cart-opened) .buddyx-cart-widget-side {
  visibility: hidden;
  transition: transform .3s, visibility 0s linear .3s;
}
body.buddyx-cart-opened .buddyx-cart-widget-side {
  visibility: visible;
  transition: transform .3s, visibility 0s;
}
