/* A1 Party Rentals: WordPress-only fixes, loaded after site.css.
   site.css is the static build's stylesheet, copied unchanged; do not fork it. */

/* ---------- 1. Fonts ----------
   site.css loads its faces from /assets/fonts/ (the static site root). Same faces with theme-relative
   URLs; for identical descriptors the later @font-face wins, so the static paths are never requested. */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- 2. Admin bar (logged-in views) ----------
   The header is not sticky (site.css: .site-top is in the flow, or absolute over a dark hero), so only the
   fixed/sticky pieces and the over-hero overlay move down by the bar's height. */
html:has(> body.admin-bar) { scroll-padding-top: calc(1.5rem + var(--wp-admin--admin-bar--height, 32px)); }
.admin-bar.over-hero .site-top { top: var(--wp-admin--admin-bar--height, 32px); }
.admin-bar .drawer { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .drawer { top: 0; } } /* the bar scrolls away below 600px */
@media (min-width: 1040px) {
  .admin-bar .filters, .admin-bar .qside, .admin-bar .article-layout aside { top: calc(1.5rem + var(--wp-admin--admin-bar--height, 32px)); }
}
@media (min-width: 980px) { .admin-bar .pdp-buy { top: calc(1.5rem + var(--wp-admin--admin-bar--height, 32px)); } }
@media (min-width: 1000px) { .admin-bar .policy-layout nav { top: calc(1.5rem + var(--wp-admin--admin-bar--height, 32px)); } }

/* ---------- 3. Elementor wrappers ----------
   Theme widgets (Elementor names starting "a1") print the same sections the static build puts directly
   in <main>. On the front end their Elementor wrappers are taken out of the box tree, so layout, sticky
   and spacing behave exactly as in the static build. Containers holding only theme widgets go too;
   containers with stock Elementor widgets keep their boxes. The editor keeps every box (it needs them
   for selection) with Elementor's default padding, gaps and widget spacing neutralised. */
body:not(.elementor-editor-active) main .elementor,
body:not(.elementor-editor-active) main [class*="elementor-widget-a1"],
body:not(.elementor-editor-active) main [class*="elementor-widget-a1"] > .elementor-widget-container,
body:not(.elementor-editor-active) main .e-con:not(:has(> .elementor-element:not([class*="elementor-widget-a1"]), > .e-con-inner > .elementor-element:not([class*="elementor-widget-a1"]))),
body:not(.elementor-editor-active) main .e-con:not(:has(> .elementor-element:not([class*="elementor-widget-a1"]), > .e-con-inner > .elementor-element:not([class*="elementor-widget-a1"]))) > .e-con-inner { display: contents; }
main .e-con:has(> [class*="elementor-widget-a1"]), main .e-con:has(> .e-con-inner > [class*="elementor-widget-a1"]),
main .e-con:has(> [class*="elementor-widget-a1"]) > .e-con-inner, main .e-con:has(> .e-con-inner > [class*="elementor-widget-a1"]) > .e-con-inner {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px; --content-width: 100%; --container-max-width: 100%; --width: 100%;
  padding: 0; max-width: none; width: 100%;
}
main .elementor [class*="elementor-widget-a1"]:not(:last-child) { margin-block-end: 0; }
main .elementor [class*="elementor-widget-a1"] > .elementor-widget-container { margin: 0; padding: 0; }
/* Reveal-on-scroll content stays visible while editing */
.elementor-editor-active [data-reveal], .elementor-editor-active [data-reveal="mask"] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- 4. Elementor reset guards ----------
   Elementor's frontend.min.css resets links, images, embeds and figures inside .elementor
   (.elementor a{text-decoration:none}, .elementor img{height:auto;border-radius:0}, figure{margin:0}).
   Every site.css rule setting those properties is restated with a uniform specificity bump, so the
   site's own cascade is unchanged. GENERATED by: node tools/gen-elementor-guards.mjs (re-run if site.css changes). */
/* guards:start */
.elementor.elementor video { max-width: 100%; }
.elementor.elementor a { text-decoration-line: underline; text-decoration-thickness: 1px; }
.elementor.elementor a:hover { text-decoration-color: var(--coral); }
.elementor.elementor .btn { text-decoration: none; }
.elementor.elementor .btn:hover { text-decoration: none; box-shadow: var(--shadow-2); }
.elementor.elementor .btn-ghost:hover { box-shadow: none; }
.elementor.elementor .btn[disabled], .elementor.elementor .btn[aria-disabled="true"] { box-shadow: none; }
.elementor.elementor .link-arrow { text-decoration: none; }
.elementor.elementor .chip { text-decoration: none; }
.elementor.elementor .cs-card, .elementor.elementor .cs-dir h3 a, .elementor.elementor .fv-grid h3 a { text-decoration: none; }
.elementor.elementor .cs-dir h3 a:hover, .elementor.elementor .fv-grid h3 a:hover { text-decoration: underline; }
.elementor.elementor .rs-dims a, .elementor.elementor .area-map .pin { text-decoration: none; }
.elementor.elementor .search-box input:focus { box-shadow: 0 0 0 4px rgba(23,112,53,.18); }
.elementor.elementor .suggest { box-shadow: var(--shadow-3); }
.elementor.elementor .suggest a, .elementor.elementor .suggest .s-empty { text-decoration: none; }
.elementor.elementor .suggest .s-img img { height: 100%; }
.elementor.elementor .hero-slide img { height: 100%; }
@media (min-width: 700px) { .elementor.elementor .hero-slide.is-small img { height: min(100%, calc(var(--nh) * 1.15px)); } } /* a small slide shows at about its own size (site.css, A1 2026-11-15) */
.elementor.elementor .scroll-cue { text-decoration: none; }
.elementor.elementor .phero.has-img > img, .elementor.elementor .phero.has-img .phero-img { height: 100%; }
.elementor.elementor .crumbs a { text-decoration: none; }
.elementor.elementor .crumbs a:hover { text-decoration: underline; }
.elementor.elementor .card { box-shadow: var(--shadow-1); }
.elementor.elementor .pcard:hover { box-shadow: var(--shadow-2); }
.elementor.elementor .pcard-media img { height: 100%; }
.elementor.elementor .pcard h3 a { text-decoration: none; }
.elementor.elementor .fav-btn { box-shadow: var(--shadow-1); }
.elementor.elementor .ccard { text-decoration: none; }
.elementor.elementor .ccard img { height: 100%; }
.elementor.elementor .ccard.cutout img { height: 170px; }
.elementor.elementor .epick { text-decoration: none; }
.elementor.elementor .epick img { height: 100%; }
.elementor.elementor.elementor.elementor .review { margin: 0 0 1rem; }
.elementor.elementor .gallery-main img { height: 100%; }
.elementor.elementor .thumbs img { height: 100%; }
.elementor.elementor .buybox { box-shadow: var(--shadow-1); }
.elementor.elementor .field input:focus, .elementor.elementor .field select:focus, .elementor.elementor .field textarea:focus, .elementor.elementor .input:focus { box-shadow: 0 0 0 4px rgba(23,112,53,.16); }
.elementor.elementor .tabs-nav a { text-decoration: none; }
.elementor.elementor .qitem .qi-img img { height: 100%; }
.elementor.elementor .qitem h3 a { text-decoration: none; }
.elementor.elementor .text-btn { text-decoration: underline; }
.elementor.elementor.elementor.elementor .masonry figure { margin: 0 0 1rem; }
.elementor.elementor .work-card { text-decoration: none; }
.elementor.elementor .work-card img { height: 100%; }
.elementor.elementor .combo li .ci img { height: 100%; }
.elementor.elementor .combo li a { text-decoration: none; }
.elementor.elementor .area-list a { text-decoration: none; }
.elementor.elementor .post-card { text-decoration: none; }
.elementor.elementor .post-card:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.elementor.elementor .post-card .ph img { height: 100%; }
.elementor.elementor .prose img { border-radius: var(--r-lg); }
.elementor.elementor .toc a { text-decoration: none; }
.elementor.elementor .toc a:hover { text-decoration: underline; }
.elementor.elementor .cta-band > img { height: 100%; }
.elementor.elementor .ccontact { text-decoration: none; }
.elementor.elementor .map-frame iframe { width: 100%; border: 0; }
.elementor.elementor .ev-hero .ev-img img { height: 100%; }
@media print { .elementor.elementor a { text-decoration-line: underline; text-decoration: none; } }
.elementor.elementor .hero-review { text-decoration: none; }
.elementor.elementor .hero-review:hover { text-decoration: none; }
.elementor.elementor .hero-review u { text-decoration-color: var(--green); }
/* 2026-11-17/18: guards for the new hero facts and the installation cards (gen-elementor-guards.mjs lines, added by hand so the
   rest of this block stays as reviewed) */
.elementor.elementor .hero-facts li { box-shadow: 0 1px 2px rgba(18,18,18,.05), 0 8px 20px -12px rgba(18,18,18,.22); }
.elementor.elementor .has-img .hero-facts li, .elementor.elementor .ev-hero .hero-facts li { box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.elementor.elementor .inst-card .stretch { text-decoration: none; }
.elementor.elementor .inst-card:hover h3 { text-decoration: underline; }
/* guards:end */

/* ---------- 5. WooCommerce notices (WooCommerce's own CSS is not loaded) ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 1rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--royal-soft); color: #125C2B; font-size: var(--fs-sm); }
.woocommerce-error { background: var(--gold-soft); color: var(--err); }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 1rem; font-weight: 600; }

/* ---------- 6. WordPress core helpers ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phones (2026-11-11): the event and page header photo sits whole in a band under the logo (end of site.css).
   The Elementor-strength height:100% rules above must not stretch it back to the full header. */
@media (max-width: 699px) {
  .elementor.elementor .ev-hero .ev-img img, .elementor.elementor .phero.has-img > img, .elementor.elementor .phero.has-img .phero-img { height: auto; }
}
