/* Small site-wide fixes that load after main.css (functions.php). */

/* Instagram widget (Elfsight): the Posts / Followers / Following labels render
   at 50% opacity, about 3:1 contrast on the white header, below the 4.5:1 that
   WCAG and PageSpeed require. Full opacity in a mid grey is 7:1. */
.eapps-instagram-feed-header-stats-item-label { opacity: 1 !important; color: #595959 !important; }

/* CMO and design pass, Nov 12, 2026 (0.19.49)
   1) Tighter section rhythm: two stacked sections left 144px of empty page on
      laptops. Now about 112px on laptops, 80px on tablets, 64px on phones. */
:root{--section-py:56px;--section-py-sm:44px}
@media (max-width:900px){:root{--section-py:40px;--section-py-sm:32px}.section{padding-block:40px}}
@media (max-width:600px){:root{--section-py:32px;--section-py-sm:28px}.section{padding-block:32px}}

/* 2) Featured products between 901 and 1100px: three columns of eighteen made
      the section six rows and about 2,800px tall. Four columns, three rows,
      with Shop All right under them. */
@media (min-width:901px) and (max-width:1100px){
  .featured__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px var(--gap-md);margin:48px 0}
  .featured__grid > .pcard:nth-child(n+13){display:none}
}
@media (min-width:1101px){.featured__grid{row-gap:48px;margin:48px 0}}

/* 3) Deals page hero: its buttons sat below the first screen on short laptop
      windows (560px panel floor) and on every phone (fixed 732px panel). The
      panel now fits the window, so Order Now shows without scrolling. */
@media (min-width:901px) and (max-height:760px){
  .wd-hero{padding-top:80px}
  .wd-hero__panel{height:calc(100svh - 92px);min-height:440px}
  .wd-hero__content{bottom:40px}
}
@media (max-width:900px){
  .wd-hero__panel{height:min(732px,calc(100svh - 84px));min-height:480px}
}

/* 4) Headings are one face, one style: italic words pasted into neighborhood
      and blog headings render upright. */
h1 i,h1 em,h2 i,h2 em,h3 i,h3 em{font-style:normal}

/* 5) The soft top fade behind the logo ended at the logo's baseline, so
      headings scrolled up through the logo. It now runs past the controls. */
.site-header.is-stuck::before{height:calc(128px + var(--kn-st));
  background:linear-gradient(to bottom,rgba(248,251,242,.97) 0%,rgba(248,251,242,.92) 58%,rgba(248,251,242,0) 100%)}

/* 6) Phone footer: four link lists stacked in one column made it about 1,900px
      tall. Shop and About Us, Follow Us and Visit Us now sit side by side; the
      sign-up keeps its own full row. */
@media (max-width:640px){
  .site-footer__top{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:32px 12px!important}
  .site-footer__signup{grid-column:1/-1}
  .site-footer__col ul{gap:12px}
  .site-footer__col-title{white-space:normal}
}

/* 7) Product pages on phones: Add to Cart was under the first screen. The
      photo is shorter, quantity and Add to Cart share one row, and a floating
      Add to Cart (footer.php) shows while the real one is off screen. */
.kn-fab--add{border:0;font-family:inherit;cursor:pointer}
@media (max-width:600px){
  .product-single__media{aspect-ratio:auto!important;height:max(200px,34svh);padding:16px!important}
  .product-single__media img{max-height:100%;width:auto;margin-inline:auto;object-fit:contain}
  .product-single__buy{display:flex!important;flex-direction:row!important;align-items:stretch;gap:10px}
  .product-single__buy .qty-stepper{flex:none}
  .product-single__buy .product-single__add{flex:1;min-width:0}
}

/* 8) Phones: the bigger logo sat 4px from the screen edge. */
@media (max-width:600px){.site-header__inner{padding-inline:12px!important}}

/* 9) Contact: the heading sat left while the line under it was centered. */
.contact__head{margin-inline:auto;text-align:center}
.contact__head .h2,.contact__head h1{text-align:center}

/* 10) Neighborhoods hero on phones: Order Now and Shop Deals wrapped onto two
       rows at two different widths. Side by side, same size, like the homepage. */
@media (max-width:600px){
  .nbh-hero__actions{flex-wrap:nowrap!important;justify-content:center;gap:8px}
  .nbh-hero__actions .btn{flex:1 1 0;max-width:220px;padding-inline:12px;white-space:nowrap}
}

/* 11) Deals hero: the long intro clipped the title on short phones. Four lines
       show, "Read more" opens the rest in place. No words removed. */
.wd-hero__more{display:inline;align-self:center;background:none;border:0;padding:4px 0;color:#fff;font:inherit;font-size:14px;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.wd-hero__more[hidden]{display:none}
@media (max-width:900px),(max-height:760px){
  .wd-hero__lede:not(.is-open){display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
  .wd-hero__copy{gap:16px}
}
@media (max-width:900px){.wd-hero__panel:has(.wd-hero__lede.is-open){height:auto;min-height:0;padding-top:140px}
  .wd-hero__panel:has(.wd-hero__lede.is-open) .wd-hero__content{position:relative;left:auto;right:auto;bottom:auto;padding:0 16px 40px}}
@media (min-width:1101px){.wd-hero__more{align-self:flex-start}}

/* 12) Blog sort (build rule 4): Newest first or Oldest first, under the topic chips. */
.blog__sort{display:flex;justify-content:center;gap:8px;margin:-16px 0 28px;font-size:14px}
.blog__sort-link{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;color:var(--c-text-muted,#666)}
.blog__sort-link.is-active{color:var(--c-black,#000);font-weight:600;text-decoration:underline;text-underline-offset:4px}

/* 13) Consent banner on phones (see assets/js/consent-fit.js): while it is open,
       the hero buttons move up by its height so they stay on the first screen. */
@media (max-width:600px){
  html.kn-consent-open .home .hero{padding-top:max(100px,calc(clamp(120px,min(68.3vw,calc(100svh - 300px)),68.3vw) - var(--kn-consent-h,0px)))!important;transition:padding-top .25s ease}
  html.kn-consent-open .wd-hero__panel{height:max(420px,calc(min(732px,calc(100svh - 84px)) - var(--kn-consent-h,0px)))}
  html.kn-consent-open .kn-fab{bottom:calc(16px + var(--kn-consent-h,0px))}
}

/* 14) Category tile titles (ComplyMo contrast check): a darker band behind the
       label at the foot of each photo, plus a soft shadow on the text. */
.tile--category.tile--img::after{background:linear-gradient(to bottom,rgba(0,0,0,0) 35%,rgba(0,0,0,.28) 62%,rgba(0,0,0,.62) 100%)}
.tile--category .tile__title{text-shadow:0 1px 12px rgba(0,0,0,.45)}

/* 15) Screen check, Nov 12 (staging 0.19.60). */
/* Desktop nav at 1201-1300px: "Account" ran into the search circle. Tighter link gaps fit the row. */
@media (min-width:1201px) and (max-width:1300px){
  #primary-menu{gap:12px!important}
  .site-header.is-stuck .site-header__nav{padding-inline:16px}
}
/* iPhone and iPad zoom into any form field under 16px when it is tapped. */
@media (max-width:900px),(pointer:coarse){
  .gform_wrapper input:not([type=checkbox]):not([type=radio]):not([type=submit]),
  .gform_wrapper select,.gform_wrapper textarea,.shop-select{font-size:16px!important}
}
/* Finger-sized targets (44px) on touch screens, without changing the look on a mouse. */
@media (pointer:coarse){
  .chip,.shop-filters__clear{min-height:44px;display:inline-flex;align-items:center}
  .shop-facet__head,.shop-facet__opt,.faq__q{min-height:44px}
  .wd-hero__more,.wd-why__readmore{min-height:44px;display:inline-flex;align-items:center}
  .gform_wrapper .ginput_container input:not([type=checkbox]):not([type=radio]){min-height:44px}
  .nbh-links__item{min-height:44px;display:inline-flex;align-items:center}
}

/* 16. Carousels never end on blank space (Milan, Nov 15, 2026).
   A full-bleed rail is a carousel: cards run past the screen edge on either
   side. The old ::after end spacer kept the last card on the container line,
   so a rail scrolled to its end (the deals wall centres today, so Sat/Sun do
   that on load) showed a cut card on the left and an empty band on the right.
   With the spacer gone, the last card ends flush with the screen edge. */
.hscroll.hscroll--bleed::after{content:none;display:none}

/* 17. Shop films (inc/films.php, template-parts/film-hero.php, cmo-site-pass
   Nov 16, 2026). The still is a real <img>, the video fades in over it once it
   is actually playing, so no frame of the page is ever blank or black. */
.kush-film__still{display:block}
.kush-film__still img{width:100%;height:100%;object-fit:cover;display:block}
.kush-film__video{object-fit:cover;opacity:0;transition:opacity .6s ease;pointer-events:none}
.kush-film__video.is-playing{opacity:1}
@media (prefers-reduced-motion:reduce){.kush-film__video{display:none}}

/* Sub pages whose header carries only a title and buttons: a shorter panel,
   so the first section starts on the first screen. */
.wd-hero--short .wd-hero__panel{height:min(560px,calc(100svh - 104px));min-height:420px}
@media (max-width:900px){.wd-hero--short .wd-hero__panel{height:min(600px,calc(100svh - 84px));min-height:420px}}

/* The section after a film header no longer needs to clear the floating nav. */
.contact.contact--after-film{padding-top:48px}
.reviews-page.reviews-page--after-film{padding-top:40px}
.reviews-page--after-film .reviews-page__embed{margin-top:0}
.nbh-single.nbh-single--after-film{padding-top:32px;max-width:calc(820px + 2 * var(--container-pad,48px))}
@media (max-width:900px){
  .contact.contact--after-film{padding-top:32px}
  .reviews-page.reviews-page--after-film{padding-top:28px}
}

/* Neighborhood pages: the category list renders as one row of chips (see the
   the_content filter in inc/neighborhoods.php), the intro line reads as a lead
   instead of italics, and the text sits in one centered reading column. */
.nbh-chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}
.nbh-chips .chip{min-height:44px;padding:10px 18px;text-decoration:none;color:var(--c-text,#111)}
.nbh-single__content em{font-style:normal}
.nbh-single__content > p:first-child{font-size:var(--fs-20,20px);line-height:1.5;color:var(--c-text,#111);margin-bottom:8px}

/* Footer: the shop in action behind it. isolation lets the film sit at
   z-index -1 inside the footer, under the scrim (::before) and the content. */
.site-footer--film{isolation:isolate;background-color:#141712}
.site-footer__film{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.site-footer--film::before{background:linear-gradient(180deg,rgba(0,0,0,.74) 0%,rgba(0,0,0,.62) 50%,rgba(0,0,0,.8) 100%)}
/* Footer fits the window: less air above the columns and the wordmark. */
.site-footer{padding-top:56px}
.site-footer__lede{margin-bottom:28px}
.site-footer__license{margin-top:28px}
.site-footer__wordmark{margin-top:32px}
@media (max-width:900px){.site-footer{padding-top:40px}.site-footer__wordmark{margin-top:40px}}

/* Footer link columns fold into rows on phones (assets/js/films.js wires the
   taps). Every link stays in the HTML; the four groups cost one row each. */
@media (max-width:640px){
  .site-footer__top{gap:0!important;grid-template-columns:1fr 1fr!important}
  .site-footer__signup{grid-column:1/-1}
  .site-footer__col{text-align:center}
  .site-footer__col:nth-last-child(-n+2){border-bottom:1px solid rgba(255,255,255,.16)}
  .site-footer__col.is-open{grid-column:1/-1}
  .site-footer__signup{margin-bottom:24px}
  .site-footer__col{border-top:1px solid rgba(255,255,255,.16)}
  .site-footer__col-title{margin:0}
  .site-footer__col-title button{all:unset;box-sizing:border-box;display:flex;width:100%;min-height:52px;align-items:center;justify-content:center;gap:10px;cursor:pointer;font:inherit;color:inherit}
  .site-footer__col-title button::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
  .site-footer__col.is-open .site-footer__col-title button::after{transform:translateY(2px) rotate(-135deg)}
  .site-footer__col-title button:focus-visible{outline:2px solid #fff;outline-offset:2px}
  .site-footer__col.is-folding ul{display:none}
  .site-footer__col.is-folding.is-open ul{display:flex;padding-bottom:20px}
}

/* 18. Section rhythm (cmo-site-pass, Nov 16, 2026). 120px above AND below every
   section put 240px of empty band between two of them on a laptop, more than a
   third of a 680px window. Halved, sections read as one story and each fits
   the window. Phones keep a slightly tighter rhythm. */
:root{--section-py:72px;--section-py-sm:56px}
@media (max-width:900px){:root{--section-py:48px;--section-py-sm:36px}}

/* 19. Touch targets (screen check, Nov 16): 44px minimum wherever a finger is
   the pointer, without changing the look on a mouse. */
@media (pointer:coarse){
  .site-header__search-btn,.site-header__toggle,.site-header__cart{width:44px!important;height:44px!important}
  .site-header__logo .site-logo{min-height:44px;display:flex!important;align-items:center}
  .pcard-mini__add,.product-card__add{width:44px!important;height:44px!important}
  .carousel-controls button,.carousel-controls a{min-width:44px;min-height:44px}
}
/* Blog cards: the category and read-time line now sits under the title. */
.blog-card__top{margin:-4px 0 0}


/* 20) Catalog header (shop + category/brand/type pages), Nov 17.
   Crumbs, title and count sit left on one axis, no dead space above the grid;
   on phones Filters and Sort share one row, half and half. */
.shop--catalog{padding-top:124px}
.shop--catalog .product-single__crumbs{margin-bottom:6px}
.shop--catalog .shop__head{text-align:left;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px;row-gap:2px;margin-bottom:20px}
.shop--catalog .shop__head>*{margin-inline:0}
.shop--catalog .shop__head h1{margin:0}
.shop__count{margin:0;font-size:var(--fs-14);color:var(--c-text-muted)}
.shop__count strong{color:var(--c-text);font-weight:var(--fw-medium)}
.shop--catalog .shop__lede{flex:0 0 100%;max-width:none;padding-right:max(0px,calc(100% - 640px));margin-top:6px;text-align:left}
.shop--catalog .shop-toolbar__count{display:none}
@media (max-width:860px){
  .shop--catalog{padding-top:98px}
  .shop--catalog .shop__head{margin-bottom:14px}
  .shop--catalog .shop-toolbar{margin-bottom:16px}
  .shop--catalog .shop-toolbar__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .shop--catalog .shop-toolbar__filter-btn{width:100%;justify-content:center}
  .shop--catalog .shop-toolbar__sort{margin:0;width:100%;min-width:0}
  .shop--catalog .shop-toolbar__sort .shop-select{width:100%;min-width:0;height:44px}
  .shop--catalog .shop-toolbar__chips{margin-top:10px}
}

/* 21) White bar under the footer, Nov 19. Section glows (.section--glow-*::before)
   overhang their section by up to 512px; on the last section before the footer
   that overhang ran past the footer and added blank page below it. Clip the
   glows at the end of <main>. overflow:clip (not hidden) so <main> does not
   become a scroll container and the sticky shop filters keep working. */
.site-main{overflow:clip}
