/**
 * WordPress / Elementor / plugin bridges.
 * Does not change the approved design tokens — only maps CMS chrome onto them.
 */

/* Canvas alias — SPA CSS uses .site; templates also send .vatax-shell. */
.vatax-shell.site,
.vatax-shell { /* rules live on .site in app.css */ }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Homepage content from the page editor should not pick up prose measure. */
.home-content.entry-content > * + * { margin-top: 0; }
.home-content .service-grid,
.home-content .tool-grid,
.home-content .quote-grid,
.home-content .article-grid { margin-top: 16px; }

/* Admin bar sits above the atmosphere layer. */
.admin-bar .atmosphere,
.admin-bar .edge-art { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .atmosphere,
  .admin-bar .edge-art { top: 46px; }
}

/* Screen-reader text already covered by .visually-hidden. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Align core blocks with the approved prose measure. */
.site-main .alignwide { max-width: 100%; }
.site-main .alignfull { width: 100%; }

/* WordPress pagination → approved .pager pills. */
.nav-links,
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.page-numbers,
.nav-links a,
.nav-links span {
  min-width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  padding: 0 10px;
}
.page-numbers.current,
.nav-links .current {
  background: var(--indigo);
  color: #fff;
  box-shadow: none;
}

/* Comments inherit form-card language. */
.comment-list { list-style: none; margin: 24px 0; }
.comment-body {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 0 0 1px var(--line);
  margin-bottom: 12px;
}
.comment-respond { margin-top: 28px; }

/* Search form in widgets / 404. */
.search-form,
.searchbar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.search-form input[type="search"],
.searchbar input[type="search"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 12px 16px;
  background: #fff;
}

/* Primary menu — WordPress walker output. */
.header .nav .menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header .nav .menu-item {
  position: relative;
}
.header .nav .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s var(--ease);
  list-style: none;
  z-index: 50;
}
.header .nav .menu-item:hover > .sub-menu,
.header .nav .menu-item:focus-within > .sub-menu,
.header .nav .menu-item.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header .nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
}
.header .nav .sub-menu a:hover { background: var(--lilac); color: var(--ink); }
.header .nav .current-menu-item > a,
.header .nav .current_page_item > a { color: var(--ink); }

.mobile-nav .menu { list-style: none; margin: 0; padding: 0; }
.mobile-nav .menu a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .sub-menu {
  list-style: none;
  padding-left: 14px;
}

/* Footer widget menus. */
.footer .menu { list-style: none; margin: 0; padding: 0; }
.footer .menu a { display: block; padding: 4px 0; }

/* Skip link visible on focus. */
.skip-link:focus {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  clip: auto;
  width: auto;
  height: auto;
}

/* GTranslate / language widgets — sit quietly in the header if present. */
.header .gtranslate_wrapper,
.header .gt_switcher {
  margin-left: 8px;
}

/* Ultimate Member / LearnDash / Woo — inherit form and card language, do not restyle their logic. */
.um .um-form,
.learndash-wrapper .ld-item-list,
.woocommerce .woocommerce-message,
.woocommerce form.checkout {
  border-radius: 22px;
}

/* Elementor — stretch boxed sections to the approved canvas, not a second max-width. */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100%;
}
.elementor-kit-vatax .elementor-button,
.elementor-button {
  border-radius: 999px;
}
body.elementor-page .site-main {
  padding-bottom: 48px;
}

/* Keep Elementor headings on the approved type ramp when they use theme fonts. */
.elementor-heading-title {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* Focus rings — accessible, not a visual redesign. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* Article content produced by WordPress / Elementor. */
.entry-content,
.prose {
  word-wrap: break-word;
}
.entry-content > * + * { margin-top: 0.85em; }
.entry-content h2,
.entry-content h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.5em;
}
.entry-content h2 { font-size: 32px; }
.entry-content h3 { font-size: 24px; }
.entry-content img { border-radius: 16px; }

/* Sticky header offset when admin bar is present. */
.toc { top: 96px; }
.admin-bar .toc { top: 128px; }
