/* Shared navigation effects. No display, layout, routing, pagination or data changes.
 * Explicit components keep editor controls, reader tools and carousel dots independent. */
body.wp-theme-psyguild-theme{
 --pg-nav-duration:.18s;
 --pg-nav-hover:color-mix(in srgb,var(--pg-stage-primary) 10%,var(--pg-block-bg));
 --pg-nav-active:var(--pg-highlight-gradient);
 --pg-nav-active-hover:var(--pg-highlight-gradient-hover);
 --pg-nav-active-text:var(--pg-highlight-text);
 --pg-nav-active-shadow:inset 0 -2px 0 var(--pg-highlight-edge),0 3px 8px color-mix(in srgb,var(--pg-primary-deep) 18%,transparent);
 --pg-nav-line:linear-gradient(90deg,var(--pg-interactive-accent),var(--pg-secondary));
}
/* Header links use one underline below their own label. The old ::after
 * simultaneously owned an underline and a dropdown arrow, shifting it left. */
@media(min-width:768px){
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a{
  position:relative!important;color:var(--pg-muted)!important;background:none!important;box-shadow:none!important;
  text-shadow:none!important;transform:none!important;clip-path:none!important;font-weight:var(--pg-weight-action)!important;
  transition:color var(--pg-nav-duration) ease!important;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a::before{
  content:'';position:absolute;left:0;right:auto;top:auto;bottom:-1px;width:100%;height:3px;
  margin:0;border:0;border-radius:3px;background:var(--pg-nav-line);pointer-events:none;
  opacity:0;transform:scaleX(.55);transform-origin:left center;
  box-shadow:0 1px 7px color-mix(in srgb,var(--pg-primary) 22%,transparent);
  transition:opacity var(--pg-nav-duration) ease,transform var(--pg-nav-duration) ease;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a::after{content:none!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li:is(.current-menu-item,.current-menu-parent,.current-menu-ancestor,.current_page_item,.current_page_parent,.current_page_ancestor)>a,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a:is([aria-current="page"],:hover,:focus-visible){color:var(--pg-interactive-accent)!important;background:none!important;box-shadow:none!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li:is(.current-menu-item,.current-menu-parent,.current-menu-ancestor,.current_page_item,.current_page_parent,.current_page_ancestor)>a,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a[aria-current="page"]{font-weight:var(--pg-weight-action)!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li:is(.current-menu-item,.current-menu-parent,.current-menu-ancestor,.current_page_item,.current_page_parent,.current_page_ancestor,.is-open)>a::before,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a:is([aria-current="page"],:hover,:focus-visible)::before{opacity:1;transform:scaleX(1)}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a:focus-visible{outline:2px solid var(--pg-tab-focus,var(--pg-interactive-accent));outline-offset:-3px}
 /* No second underline inside dropdown items. Existing popup controls remain. */
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-main-nav .sub-menu a::after{content:none!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu a{color:var(--pg-text)!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important;transform:none!important;transition:color var(--pg-nav-duration) ease,background-color var(--pg-nav-duration) ease!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu a:is(:hover,:focus-visible,[aria-current="page"]),
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu li:is(.current-menu-item,.current_page_item)>a{color:var(--pg-interactive-accent)!important;background:var(--pg-nav-hover)!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu a:focus-visible{outline:2px solid var(--pg-tab-focus,var(--pg-interactive-accent));outline-offset:-3px}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-site-header .pg-main-nav .sub-menu{transition:opacity var(--pg-nav-duration) ease,transform var(--pg-nav-duration) ease,visibility var(--pg-nav-duration) ease}
}
@media(min-width:1024px){
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>.menu-item-has-children>a::after{
  content:''!important;position:static!important;display:inline-block;left:auto!important;right:auto;top:auto;bottom:auto!important;
  width:.42rem!important;height:.42rem!important;margin:0 0 0 .45rem;border:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  border-radius:0!important;background:none!important;box-shadow:none!important;opacity:.7!important;pointer-events:none;
  transform:translateY(-.12rem) rotate(45deg)!important;transition:transform var(--pg-nav-duration) ease;
 }
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>.menu-item-has-children:is(:hover,:focus-within,.is-open)>a::after{transform:translateY(.08rem) rotate(225deg)!important}
}
/* Tabs and category chips share colour, elevation and timing, retaining their
 * existing shapes, spacing, progress, scroll containers and hidden states. */
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a){
 font-family:var(--pg-interface-font)!important;font-weight:var(--pg-weight-action)!important;color:var(--pg-muted)!important;background:transparent!important;
 border-color:var(--pg-brand-line)!important;box-shadow:none!important;text-shadow:none!important;transform:none!important;
 transition:color var(--pg-nav-duration) ease,background-color var(--pg-nav-duration) ease,box-shadow var(--pg-nav-duration) ease!important;
}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a):hover:not(:disabled):not([aria-disabled="true"]){background:var(--pg-nav-hover)!important;color:var(--pg-interactive-accent)!important}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a):is(.is-active,.active,[aria-selected="true"],[aria-current="page"],[aria-current="true"]),
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-sub-nav li.current-menu-item>a,
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .woocommerce-tabs :where(.tabs)>li.active>a{
 --pg-tab-focus:var(--pg-nav-active-text);
 background:var(--pg-nav-active)!important;color:var(--pg-nav-active-text)!important;border-color:transparent!important;
 box-shadow:var(--pg-nav-active-shadow)!important;font-weight:var(--pg-weight-action)!important;
}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a):is(.is-active,.active,[aria-selected="true"],[aria-current="page"],[aria-current="true"]):hover:not(:disabled):not([aria-disabled="true"]){background:var(--pg-nav-active-hover)!important;color:var(--pg-nav-active-text)!important}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a):focus-visible{outline:2px solid var(--pg-tab-focus,var(--pg-interactive-accent));outline-offset:-3px}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) :is(.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn):is(:disabled,[aria-disabled="true"]){opacity:.55}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-newsroom-tab .pg-tab-progress{background:var(--pg-highlight-text)!important}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .woocommerce-tabs :where(.tabs)>li.active>a:hover:not(:disabled):not([aria-disabled="true"]),
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-sub-nav li.current-menu-item>a:hover:not(:disabled):not([aria-disabled="true"]){background:var(--pg-nav-active-hover)!important;color:var(--pg-nav-active-text)!important}
/* Vertical menus and the mobile app bar keep their layout and contrast. */
.pg-portal-sidebar{--pg-menu-active-text:var(--pg-color-white)}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) :is(.pg-portal-nav-item,.pg-sidebar-link,.pg-sidebar-menu a,.pg-personal-nav-sheet a,.pg-header-account__links a,.pg-bottom-tab,.pg-personal-bottom-nav a,.woocommerce-MyAccount-navigation a){transition:color var(--pg-nav-duration) ease,background-color var(--pg-nav-duration) ease,box-shadow var(--pg-nav-duration) ease!important;transform:none!important}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) :is(.pg-portal-nav-item,.pg-sidebar-link,.pg-sidebar-menu a,.pg-personal-nav-sheet a,.pg-management-sheet nav a,.pg-header-account__links a,.pg-bottom-tab,.pg-personal-bottom-nav a,.pg-personal-bottom-nav button,.woocommerce-MyAccount-navigation a):is(:hover,.is-active,[aria-current="page"],[aria-expanded="true"]),
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .pg-sidebar-menu li.current-menu-item>a,
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) .woocommerce-MyAccount-navigation .is-active>a{background:var(--pg-nav-active)!important;color:var(--pg-nav-active-text)!important;box-shadow:none!important}
html body.wp-theme-psyguild-theme:not(.pg-book-reader-active) :is(.pg-portal-nav-item,.pg-sidebar-link,.pg-sidebar-menu a,.pg-personal-nav-sheet a,.pg-header-account__links a,.pg-bottom-tab,.pg-personal-bottom-nav a,.woocommerce-MyAccount-navigation a):focus-visible{outline:2px solid var(--pg-tab-focus,var(--pg-interactive-accent));outline-offset:-3px}
@media(prefers-reduced-motion:reduce){
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) :is(.pg-main-nav>li>a,.pg-author-tab,.pg-newsroom-tab,.pg-knowledge-tab-btn,.pg-hub-tab-btn,.pg-hub-category-btn,.pg-event-tab-btn,.pg-search-tab,.pg-filter-btn,.pg-system-tab,.pg-sub-nav a,.woocommerce-tabs :where(.tabs)>li>a,.pg-category-tabs>a,.pg-category-tabs>button,.pg-filter-tabs>a,.pg-filter-tabs>button,.pg-tabs>a,.pg-tabs>button,.pg-portal-nav-item,.pg-sidebar-link,.pg-sidebar-menu a,.pg-personal-nav-sheet a,.pg-header-account__links a,.pg-bottom-tab,.pg-personal-bottom-nav a,.woocommerce-MyAccount-navigation a){transition:none!important}
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu a,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav .sub-menu,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a::before,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>li>a::after,
 html body.wp-theme-psyguild-theme:not(.pg-book-reader-active):is(.pg-theme-light,.pg-theme-dark) .pg-site-header .pg-main-nav>.menu-item-has-children>a::after{transition:none!important}
}

/* Shared by the desktop rail and the drawer on standalone public pages. */
.pg-rail-channels{flex:0 0 auto;min-width:0;padding:14px;border:1px solid var(--pg-border);border-radius:12px;background:var(--pg-block-bg);box-shadow:var(--pg-brand-shadow);font-family:var(--pg-interface-font)}
.pg-rail-channels>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:10px;color:var(--pg-text);font-size:13px;font-weight:600;cursor:pointer;list-style:none}
.pg-rail-channels>summary::-webkit-details-marker{display:none}
.pg-rail-channels[open]>summary{margin-bottom:8px}
.pg-rail-channels[open]>summary>span{transform:rotate(180deg)}
.pg-rail-channels nav{display:grid;gap:2px}
.pg-rail-channels a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:5px 8px;border-radius:7px;color:var(--pg-muted);font-size:12px;text-decoration:none}
.pg-rail-channels a:hover{background:var(--pg-bg-soft);color:var(--pg-link)}
.pg-rail-channels svg{width:17px;height:17px;flex:none}
.pg-rail-channels :is(a,summary):focus-visible{outline:2px solid var(--pg-primary);outline-offset:2px}
