/* THRYV Collective: WordPress-only overrides. base.css (= the site's site.css,
   verbatim) is never edited; everything WordPress or Elementor needs on top
   lives here. Loaded after base.css on every page. */

/* ---- 1. Fonts ---------------------------------------------------------------
   base.css names /assets/fonts/<file>, the path the static site served from its
   root; the same four files live in the theme (assets/fonts/). A later @font-face
   with the same family, style, weight range and unicode-range replaces the
   earlier one, so the four faces below (copied from base.css by script, only
   the URL changed) re-point every face at the theme's copies.
   functions-main.php preloads the two the site preloads. */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-latin-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-latin-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/jost-latin-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/jost-latinext-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---- 2. Elementor's wrappers add nothing ------------------------------------
   Every section is one lhtc-* widget inside one full-bleed container
   (widgets/_setup-00-lib.php lhtc_setup_container): no padding, gap, margin or
   max-width around it, so the geometry is the site's <main> > <section>.
   A container the client adds by hand keeps whatever padding they give it; only
   Elementor's 10px default is taken away (the kit's own default, zeroed here and
   by the site one-shot). */
body { --container-default-padding-top: 0px; --container-default-padding-right: 0px; --container-default-padding-bottom: 0px; --container-default-padding-left: 0px; }
/* .lhtc-group: one container holding several sections, carrying the class of a wrapper the site prints around
   them (About's .ab-body, the block its "on this page" bar stays inside). Same zeroing; it keeps its box. */
.e-con.lhtc-bleed, .e-con.lhtc-bleed > .e-con-inner,
.e-con.lhtc-group, .e-con.lhtc-group > .e-con-inner { display: block; }
.e-con.lhtc-bleed,
.e-con.lhtc-bleed > .e-con-inner,
.e-con.lhtc-group,
.e-con.lhtc-group > .e-con-inner {
  --padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
  --padding-block-start: 0; --padding-block-end: 0; --padding-inline-start: 0; --padding-inline-end: 0;
  --margin-top: 0; --margin-bottom: 0; --margin-block-start: 0; --margin-block-end: 0;
  --gap: 0; --row-gap: 0; --column-gap: 0;
  max-width: none; width: 100%; padding: 0; margin: 0; gap: 0;
}
.elementor-widget.lhtc-w, .elementor-widget[class*="elementor-widget-lhtc-"] { margin-block-end: 0; --widgets-spacing: 0; --kit-widget-spacing: 0; }
.elementor-widget.lhtc-w > .elementor-widget-container, .elementor-widget[class*="elementor-widget-lhtc-"] > .elementor-widget-container { width: 100%; margin: 0; padding: 0; }

/* The header and footer templates (Theme Builder): their wrappers vanish, so the
   design's own <header>, <nav>, <footer> and <aside> stay the only landmarks and
   the fixed header and mobile menu are laid out against the viewport. inc/chrome.php
   also lifts the header and the mobile menu out to <body> on the front end, where
   main.js expects them. Front end only: in the editor a widget keeps its box for
   the selection handles. */
body:not(.elementor-editor-active) .elementor-location-header, body:not(.elementor-editor-active) .elementor-location-header .e-con,
body:not(.elementor-editor-active) .elementor-location-header .elementor-widget, body:not(.elementor-editor-active) .elementor-location-header .elementor-widget-container,
body:not(.elementor-editor-active) .elementor-location-footer, body:not(.elementor-editor-active) .elementor-location-footer .e-con,
body:not(.elementor-editor-active) .elementor-location-footer .elementor-widget, body:not(.elementor-editor-active) .elementor-location-footer .elementor-widget-container { display: contents; }

/* ---- 3. Sticky across sections ----------------------------------------------
   base.css: .sx-nav (a service page's "on this page" bar) is position: sticky
   inside <main>, so it follows the whole page. Under Elementor its own widget and
   container would be its containing block and it would scroll away at once; they
   are taken out of the box tree, which leaves the page's .elementor wrapper (the
   whole of <main>) as the block it sticks in. Front end only. */
body:not(.elementor-editor-active) .e-con.lhtc-bleed:has(> .elementor-widget > .sx-nav),
body:not(.elementor-editor-active) .e-con.lhtc-bleed:has(> .elementor-widget > .elementor-widget-container > .sx-nav),
body:not(.elementor-editor-active) .elementor-widget:has(> .sx-nav),
body:not(.elementor-editor-active) .elementor-widget:has(> .elementor-widget-container > .sx-nav),
body:not(.elementor-editor-active) .elementor-widget-container:has(> .sx-nav) { display: contents; }
/* The page's own Elementor wrapper goes too: on the site the bar sticks inside <main>, and <main> also holds the
   books band, which WordPress prints after the Elementor document (chrome). Without this the bar let go at the end
   of the document, one books band early (12 Nov sticky check: 911px early at 1280, 1886px at 390). */
body:not(.elementor-editor-active) main > .elementor:has(> .e-con.lhtc-bleed > .elementor-widget > .sx-nav),
body:not(.elementor-editor-active) main > .elementor:has(> .e-con.lhtc-bleed > .elementor-widget > .elementor-widget-container > .sx-nav) { display: contents; }

/* ---- 3b. Page scrolling -----------------------------------------------------
   Elementor's frontend CSS sets html { scroll-behavior: smooth } (in its "elementor" layer, under
   prefers-reduced-motion: no-preference); the site leaves it at auto and lets Lenis and main.js do the smoothing.
   With smooth on, ScrollTrigger also copies it into an inline style on <html>, and every scroll that Lenis does not
   drive (a native anchor jump, focus, scrollTo) glides instead of jumping. An unlayered rule outranks the layer. */
html { scroll-behavior: auto; }

/* ---- 4. The WordPress toolbar -----------------------------------------------
   The header is fixed to the top of the viewport; a logged-in editor's toolbar
   sits there too. */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .site-header.is-scrolled { top: 0; } }

/* ---- 5. The Style tab's switches (widgets/_base.php) --------------------------
   Motion off: the section is shown still. main.js reveals with inline styles, so
   these rules have to out-rank them. */
.lhtc-motion-off *, .lhtc-motion-off *::before, .lhtc-motion-off *::after { animation-play-state: paused !important; transition: none !important; }
.lhtc-motion-off [data-reveal], .lhtc-motion-off [data-stagger] > *, .lhtc-reveal-off [data-reveal], .lhtc-reveal-off [data-stagger] > * { opacity: 1 !important; transform: none !important; }
.lhtc-motion-off [data-split], .lhtc-reveal-off [data-split] { visibility: visible !important; opacity: 1 !important; }
.lhtc-motion-off .split-line, .lhtc-reveal-off .split-line { transform: none !important; }
.lhtc-motion-off .draw, .lhtc-motion-off .ring path, .lhtc-motion-off svg.ring { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }

/* ---- 6. Insurance ----------------------------------------------------------- */
.elementor-widget[class*="elementor-widget-lhtc-"] [hidden], .site-header [hidden], .site-footer [hidden], .cookie[hidden] { display: none !important; }

/* ---- 7. Posts and pages written in the dashboard (inc/posts.php) -------------
   The block editor's markup inside the site's prose column, the featured image
   under the heading, and the list of posts. Scoped to .lhtc-doc / .lhtc-listing /
   .lhtc-more, which only these pages carry, so no built page changes. */
.lhtc-doc__media { margin: .9rem 0 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.lhtc-doc__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lhtc-doc .prose figure { margin-inline: 0; max-width: 100%; }
.lhtc-doc .prose img { border-radius: var(--r-md); }
.lhtc-doc .prose figcaption, .lhtc-doc .prose .wp-element-caption { margin-top: .7em; font-size: .86rem; line-height: 1.5; color: var(--muted); text-align: left; }
.lhtc-doc .prose blockquote > * + * { margin-top: .6em; }
.lhtc-doc .prose blockquote cite { display: block; margin-top: .9em; font-family: var(--f-sans); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.lhtc-doc .prose .wp-block-table, .lhtc-doc .prose pre { overflow-x: auto; }
.lhtc-doc .prose pre { white-space: pre-wrap; font-size: .9rem; }
.lhtc-doc .prose iframe, .lhtc-doc .prose video { max-width: 100%; }
.lhtc-doc .prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.lhtc-doc .prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.lhtc-doc .prose .aligncenter { margin-inline: auto; }
.lhtc-doc .prose::after { content: ''; display: table; clear: both; }
.lhtc-doc__pages { margin-top: 2.5rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.lhtc-listing .legal__head { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.lhtc-listing .legal__head .lead { margin-top: 0; }
.lhtc-listing__pager { margin-top: clamp(2rem, 3vw, 2.6rem); gap: 1.6rem; }
.lhtc-listing__none { margin-top: 2rem; font-size: 1.075rem; color: var(--text-2); }
.lhtc-more { padding-top: 0; }
.lhtc-listing .svc-row .thumb:empty, .lhtc-more .svc-row .thumb:empty { background: var(--sand); }

/* ---- 8. Plugin layers while the mobile menu is open -------------------------
   The consent banner (Cookie Consent, #cookiez-banner) and the accessibility button (Ally, #ea11y-root) are fixed
   layers above the menu. main.js makes every other body child inert while the menu is open, so a tap on them fell
   through to the menu link underneath. Out of the way while it is open; back when it closes. display, not
   visibility: the banner's paper is set visibility: visible inside its shadow root (inc/consent-a11y.php) and would
   show through a hidden host. The open state is the class html.lhtc-mnav-open, mirrored from #mnav by a small
   observer (inc/consent-a11y.php): an html:has([data-mnav].is-open) rule cost 40 to 60 ms of mobile TBT (13 Nov 2026),
   because every class change anywhere on the page re-tested it. */
html.lhtc-mnav-open #cookiez-banner, html.lhtc-mnav-open #ea11y-root { display: none !important; }

/* ---- 9. The consent box above the Ally button -------------------------------
   Ally's button is z-index 2147483645 and Cookie Consent's box 99999, so on a phone, where the first-visit box spans
   the bottom of the screen, the Ally button (any bottom position Ally offers) sat on the box's buttons. Raising the
   cookiez host puts the box and its re-open icon over the Ally button, and still under Ally's open panel
   (2147483647). position: relative with a z-index only makes a stacking context; the fixed layers inside the shadow
   root still place themselves against the viewport. Section 8 still hides the host while the mobile menu is open. */
#cookiez-banner { position: relative; z-index: 2147483646; }

/* ---- 10. Phones: the plugin buttons docked in the header --------------------
   inc/consent-a11y.php (#lhtc-icon-dock) puts the Ally button and the cookie re-open icon in the header row, left of the
   menu button, and sets html.lhtc-dock (html.lhtc-dock-toc on pages with the contents bar). While they are there the
   header stays in place (the script also removes main.js's .is-hidden), so the service contents bar sticks below the
   header instead of under it, and a section scrolled to from the bar lands below both (main.js subtracts the target's
   scroll-margin-top). */
@media (max-width: 760px) {
  html.lhtc-dock .site-header.is-hidden { transform: none; }
  html.lhtc-dock-toc .sx-nav { top: var(--header-h) !important; }
  html.lhtc-dock-toc main [id] { scroll-margin-top: var(--lhtc-toc-h, 68px); }
}

/* ---- 11. LegitScript, until it certifies the new domain --------------------
   17 Nov 2026: the site moved to thryv-collective.com; LegitScript's certification (seal 49841371) is for
   www.thryvcollective.com. Until LegitScript confirms the new domain, the seal (footer, About) and the
   "LegitScript-certified" claims (home trust list, About) are hidden. Delete this section once LegitScript confirms;
   nothing else needs to change. */
.site-footer__seals, .ab-cert, .hx .trust > li:first-child { display: none !important; }
