/* =========================================================================
   6 Point Cannabis — design system
   Reverse-engineered from the designer's masters (Sept 2026).
   Every selector is namespaced under .sp-* or .sp-scope so nothing here can
   reach the rest of the Kadence theme.

   Palette sampled from the masters:
     ink      #000000  (+ grunge tile)
     olive    #637732
     green    #224118
     gold     #FFCD1E
     cream    #FFFFFD  (+ paper tile)
     ocm      #FFF701
   ========================================================================= */

html:root {
	--sp-ink: #000000;
	--sp-ink-soft: #0d0d0d;
	--sp-olive: #637732;
	--sp-green: #224118;
	--sp-gold: #ffcd1e;
	--sp-gold-ink: #111100;
	--sp-cream: #fffffd;
	--sp-cream-ink: #14160f;
	--sp-ocm: #fff701;

	--sp-serif: "Merriweather", Georgia, "Times New Roman", serif;
	--sp-sans: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Type scale. Re-measured against Dave's artwork at a 1440px layout:
	   hero 56-60, section titles 40-44, nav 24, section subtitle 28-30,
	   small line 20-22, body copy up to 32. The previous body step (~16.5px
	   at 1440) was well under Dave's, which is why the copy read too small. */
	--sp-fs-hero: clamp(2.6rem, 4.01vw, 4.8rem);
	--sp-fs-h2: clamp(1.75rem, 3.13vw, 3.75rem);
	--sp-fs-h3: clamp(1.4rem, 2.4vw, 2.9rem);
	--sp-fs-nav: clamp(.9rem, 1.56vw, 1.9rem);
	--sp-fs-lede: clamp(1.05rem, 1.75vw, 2.1rem);
	--sp-fs-body: clamp(1rem, 1.5vw, 1.8rem);

	--sp-wrap: 1200px;
	--sp-gutter: clamp(1.25rem, 8.75vw, 10.5rem);
	--sp-radius: 18px;
	--sp-radius-lg: 26px;
}

/* ---------------------------------------------------------------- textures */
.sp-scope {
	background-color: var(--sp-cream);
	background-image: url("texture-cream-paper.jpg");
	background-repeat: repeat;
	color: var(--sp-cream-ink);
	font-family: var(--sp-sans);
}

.sp-wrap { max-width: var(--sp-wrap); margin: 0 auto; padding-inline: var(--sp-gutter); }
.sp-wrap--wide { max-width: 1584px; }

.sp-scope .sp-h2, h2.sp-h2 { font-family: var(--sp-serif); font-weight: 700; line-height: 1.08; margin: 0; }
.sp-scope .sp-h2,
h2.sp-h2 {
	font-size: var(--sp-fs-h2);
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--sp-gold);
	text-align: center;
}
.sp-h2--ink { color: var(--sp-cream-ink); }
.sp-lede { font-size: var(--sp-fs-lede); line-height: 1.6; }
.sp-small { font-size: .875rem; opacity: .85; }
.sp-center { text-align: center; }

.sp-rule {
	width: 96px;
	height: 3px;
	background: var(--sp-gold);
	border: 0;
	margin: 1rem auto;
}

/* Generic content links. Wrapped in :where() so this rule contributes no
   specificity of its own - otherwise it would beat the single-class button and
   card rules below (an <a class="sp-btn"> sits inside a <p>, and .sp-card IS an
   anchor, so a bare `.sp-scope a` rule silently recolours both). */
.sp-scope :where(p, li, td) a { color: var(--sp-olive); text-decoration: underline; text-underline-offset: .18em; }

.sp-scope a.sp-card { color: inherit; text-decoration: none; }

/* ----------------------------------------------- announcement / notice card */
.sp-notice {
	max-width: 540px;
	margin-left: auto;
	background: var(--sp-cream);
	border: 3px solid var(--sp-gold);
	border-radius: 12px;
	padding: 1rem 1.1rem 1rem 3.2rem;
	position: relative;
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
	font-size: 1.5rem;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--sp-cream-ink);
}
.sp-notice::before {
	content: "!";
	position: absolute;
	left: .85rem;
	top: .8rem;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--sp-gold);
	color: var(--sp-gold-ink);
	font-weight: 700;
	display: grid;
	place-items: center;
	font-family: var(--sp-sans);
}
.sp-notice__kicker {
	display: block;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sp-olive);
	font-size: .8rem;
	margin-bottom: .35rem;
}
.sp-notice__close {
	display: block;
	margin-top: .6rem;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sp-olive);
}

/* -------------------------------------------------------------- VIP band */
.sp-band--vip { background: var(--sp-olive); color: #fff; }
.sp-band--vip.is-gold { background: var(--sp-gold); color: var(--sp-gold-ink); }
.sp-vip {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) minmax(320px, 1.1fr);
	gap: clamp(1.25rem, 3vw, 2.75rem);
	align-items: center;
	padding: clamp(1.75rem, 4vw, 3rem) 0;
}
.sp-vip__mark { width: 100%; max-width: 220px; height: auto; }
.sp-vip__copy p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }

.sp-vip__form { display: grid; gap: .55rem; }
.sp-consent {
	flex: 1;
	font-size: .62rem;
	line-height: 1.35;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0;
	opacity: .95;
}

/* -------------------------------------------------------- search (headers) */
.sp-search {
	display: flex;
	max-width: 420px;
	margin-left: auto;
	border: 2px solid var(--sp-ink);
	background: #fff;
}
.sp-search input {
	flex: 1;
	border: 0;
	padding: .7rem .9rem;
	font-family: var(--sp-sans);
	font-size: .85rem;
	letter-spacing: .08em;
}
.sp-search input::placeholder { color: #7b7b74; letter-spacing: .14em; text-transform: uppercase; }
.sp-search button {
	background: var(--sp-ink);
	color: #fff;
	border: 0;
	padding: .7rem 1.4rem;
	font-family: var(--sp-sans);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: .78rem;
}

/* -------------------------------------------------------- photo strip band */
.sp-strip { background: var(--sp-gold); padding: clamp(1.5rem, 4vw, 3rem) 0; }
.sp-strip__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(.6rem, 1.5vw, 1.1rem);
}
.sp-strip img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--sp-radius);
	display: block;
}

/* ------------------------------------------------------------- card grids */
.sp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
}

.sp-card {
	position: relative;
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: var(--sp-radius-lg);
	overflow: hidden;
	background: #fff;
}
.sp-card__media { position: relative; }
.sp-card__media img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}
.sp-card__media.is-black { background: #000; }
.sp-card__media.is-black img { object-fit: contain; padding: 4%; }

.sp-card__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: .85rem 1rem 1rem;
	text-align: center;
	color: #fff;
	background: var(--sp-green);
}

.sp-card__tag {
	display: block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: .25rem;
}
.sp-card__title {
	display: block;
	font-family: var(--sp-serif);
	font-weight: 700;
	font-size: clamp(1.05rem, 1.8vw, 1.5rem);
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sp-card__cta {
	display: block;
	margin-top: .4rem;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: .15em;
}
.sp-card__media.is-black + .sp-card__cap { background: var(--sp-olive); }

/* house-cultivar badge {
	position: absolute;
	top: 6%;
	right: 6%;
	width: 20%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background: var(--sp-gold);
	color: var(--sp-gold-ink);
	display: grid;
	place-items: center;
	text-align: center;
	font-family: var(--sp-serif);
	font-weight: 700;
	font-size: clamp(.5rem, 1vw, .8rem);
	line-height: 1.05;
	padding: 6%;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	z-index: 2;
}

/* --------------------------------------------------------------- sections */
.sp-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.sp-section--tight { padding: clamp(1.75rem, 4vw, 3rem) 0; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
	.sp-vip { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.sp-vip__copy { max-width: 46ch; }
	.sp-vip__form { width: 100%; max-width: 560px; }
	.sp-grid { grid-template-columns: repeat(2, 1fr); }
	.sp-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.sp-grid { grid-template-columns: 1fr; }
	.sp-notice { margin: 0 auto; }
	.sp-search { margin: 0 0 1rem; max-width: none; }}

/* -------------------------------------------------------------------------
   Happenings archive (child-theme home.php).
   The caption colour is chosen by the WordPress category class that
   post_class() writes onto the <article>, so a new category needs a rule here.
   ------------------------------------------------------------------------- */
.sp-card { display: block; }
a.sp-card__link { display: block; color: inherit; text-decoration: none; }
a.sp-card__link:hover .sp-card__title { text-decoration: underline; text-underline-offset: .15em; }

.category-events .sp-card__cap        { background: var(--sp-olive); }
.category-competitions .sp-card__cap  { background: var(--sp-green); }
.category-press-releases .sp-card__cap{ background: var(--sp-green); }
.category-blogging .sp-card__cap      { background: var(--sp-ink); }

.sp-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	margin-top: 2.5rem;
	font-family: var(--sp-sans);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .85rem;
}
.sp-pager a,
.sp-pager span {
	display: inline-block;
	padding: .5rem .8rem;
	border-radius: 8px;
	text-decoration: none;
	color: var(--sp-cream-ink);
}
.sp-pager .current { background: var(--sp-olive); color: #fff; }
.sp-pager a:hover { background: var(--sp-gold); color: var(--sp-gold-ink); }

/* -------------------------------------------------------------------------
   Header — the design shows a solid black textured bar with gold nav.
   Kadence was set to a transparent header, so the nav sat directly on the hero
   photo and was unreadable. The theme setting is flipped too; this stylesheet
   owns the texture because Kadence's header background repeat is 'cover'.
   ------------------------------------------------------------------------- */
/* Kadence emits its own .site-header-row-container-inner{background-color:#000}
   in an inline <style> that lands AFTER this sheet, so plain declarations lost
   and the bar rendered pure black. Same texture tile as the dark sections. */
.site-header-row-container-inner,
#masthead .site-header-row-container-inner,
header#masthead .site-header-row-container-inner {
	background-color: var(--sp-ink) !important;
	background-image: url("texture-black-grunge.jpg") !important;
	background-repeat: repeat !important;
	background-size: auto !important;
	background-position: 0 0 !important;
}
#main-header .main-navigation a,
.site-header .main-navigation a {
	color: var(--sp-gold);
	font-family: var(--sp-sans);
	font-weight: 500;
	font-size: var(--sp-fs-nav);
	letter-spacing: .12em;
	text-transform: uppercase;
}
#main-header .main-navigation a:hover,
#main-header .main-navigation li.current-menu-item > a {
	color: #fff;
}

/* The announcement slide-in: same card as the design's notice box, but it fills
   the conversion panel and sits clear of the panel's close button. */
.sp-notice--sticky { max-width: none; margin: 0; border-radius: 14px; }
.sp-notice--sticky p { margin: 0; }
.sp-notice--sticky .sp-notice__kicker { padding-right: 2rem; }

/* -------------------------------------------------------------------------
   Band seams. WordPress inserts a default block gap between sibling groups, so
   a cream strip was showing through between the hero / VIP band / dark sections.
   The design butts the bands directly against each other.
   ------------------------------------------------------------------------- */
.sp-scope { --wp--style--block-gap: 0px; }
/* WordPress applies the block gap to every direct child of a flow-layout
   container, which put a cream strip between our bands. Reset margins only -
   never padding, because .sp-section carries the section padding. */
.sp-scope > *,
.sp-scope > * + *,
.sp-scope .is-layout-flow > * + *,
.sp-scope .wp-block-group + .wp-block-group { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* -------------------------------------------------------------------------
   VIP form. The design shows dark uppercase fields and a gold JOIN NOW button;
   Kadence renders its own light inputs and a theme-palette submit button.
   Labels stay as the working form defines them (see STATE.md) - this is
   presentation only.
   ------------------------------------------------------------------------- */
.sp-vip__form input[type="text"],
.sp-vip__form input[type="email"],
.sp-vip__form input[type="tel"],
.sp-vip__form textarea {
	background: var(--sp-ink);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: .8rem .9rem;
	font-family: var(--sp-sans);
	font-size: .85rem;
	min-height: 46px;
	width: 100%;
}
.sp-vip__form input::placeholder { color: #fff; opacity: 1; }
.sp-vip__form label,
.sp-vip__form .kb-form-label,
.sp-vip__form .kadence-blocks-form-field label {
	font-family: var(--sp-sans);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
}
.sp-band--vip.is-gold .sp-vip__form input,
.sp-band--vip.is-gold .sp-vip__form label { color: var(--sp-gold-ink); }
.sp-band--vip.is-gold .sp-vip__form input { background: #fff; color: var(--sp-gold-ink); }

.sp-vip__form button,
.sp-vip__form input[type="submit"],
.sp-vip__form .kt-blocks-form-submit,
.sp-vip__form .kb-advanced-form-submit {
	background: var(--sp-gold) !important;
	color: var(--sp-gold-ink) !important;
	border: 0 !important;
	border-radius: 8px !important;
	padding: .85rem 1.6rem !important;
	font-family: var(--sp-sans) !important;
	font-weight: 700 !important;
	font-size: .95rem !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
}
.sp-band--vip.is-gold .sp-vip__form button,
.sp-band--vip.is-gold .sp-vip__form input[type="submit"] { background: #fff !important; }

/* Header logo: the two badges are ONE combined transparent PNG (equal circles,
   composed from the two real logo files), set as the Kadence custom logo. This
   replaces the earlier CSS ::after hack, so it is Customizer-managed. */

/* Dave's hero slides carry their headline text baked into the artwork, so the
   visible copy is the image. This keeps a real, semantic H1 for search engines
   and screen readers without printing it twice. */
.sp-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
   VIP band content box. Dave's design puts the three groups in a 75.9%-wide
   content box (12.3% inset each side), with the columns splitting 19.5 / 28.9 /
   43.6% of it. Kadence's rowlayout `padding` attribute does not accept a
   percentage - it silently falls back to the 24px default - so the inset has to
   be applied here. The column percentages are already set on the block.
   ------------------------------------------------------------------------- */
.sp-band--vip .kt-row-column-wrap {
	padding-left: 12.3% !important;
	padding-right: 12.3% !important;
}
@media (max-width: 900px) {
	.sp-band--vip .kt-row-column-wrap {
		padding-left: 7% !important;
		padding-right: 7% !important;
	}}

/* -------------------------------------------------------------------------
   Footer (Dave's design): one black textured band holding both logos, the OCM
   licence, the social row and the address, with a full-bleed gold legal strip
   underneath. Kadence's footer was inherited from production as 3 widget
   columns plus a middle and a bottom row - all of which are now empty.
   ------------------------------------------------------------------------- */
.site-footer {
	background-color: #000 !important;
	background-image: url("texture-black-grunge.jpg") !important;
	background-repeat: repeat !important;
	background-size: auto !important;
}
.site-footer .site-footer-row-container-inner,
.site-footer .site-footer-row { background: transparent !important; }

/* the empty middle (social/copyright) and bottom rows are gone from the design */
.site-middle-footer-wrap,
.site-bottom-footer-wrap { display: none !important; }

/* let our single row span the full band, with the design's side inset */
.site-top-footer-wrap .site-container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.site-top-footer-wrap .site-top-footer-inner-wrap { display: block !important; gap: 0 !important; }
.site-top-footer-wrap .site-footer-section { width: 100% !important; }

/* Dave's footer content sits in a 12% inset and the gold strip runs edge to edge */
.site-footer .footer-widget1 .kb-row-layout-wrap { background: transparent; }
.site-footer .footer-widget1 .kb-row-layout-wrap:not(.kt-row-has-bg) .kt-row-column-wrap {
	padding-left: 12.3%;
	padding-right: 12.3%;
}
/* the gold legal strip must bleed, so undo the inset for that row */
.site-footer .footer-widget1 .kt-row-has-bg .kt-row-column-wrap {
	padding-left: 6% !important;
	padding-right: 6% !important;
}
@media (max-width: 767px) {
	.site-footer .footer-widget1 .kb-row-layout-wrap:not(.kt-row-has-bg) .kt-row-column-wrap {
		padding-left: 6%;
		padding-right: 6%;
	}}

/* Kadence stores a row's background in per-page block CSS, which is not emitted
   for a row living inside a widget, so the gold legal strip lost its fill and
   the black legal text sat invisibly on black. Pin it here instead. */
.site-footer .footer-widget1 .kt-row-has-bg {
	background-color: #FFF701 !important;
}
.site-footer .footer-widget1 .kt-row-has-bg,
.site-footer .footer-widget1 .kt-row-has-bg p {
	color: #000000 !important;
}

/* -------------------------------------------------------------------------
   Strain cards. The product photos have different aspect ratios (some 1:1
   studio shots, some tall plant portraits), so every caption bar landed at a
   different height and the three cards in a row did not line up. Pin one image
   height with object-fit so the captions sit on a common baseline.
   ------------------------------------------------------------------------- */
.sp-strains-grid .kb-img {
	width: 100% !important;
	height: 300px !important;
	object-fit: contain !important;
	object-position: center center !important;
	display: block;
}
@media (max-width: 767px) {
	.sp-strains-grid .kb-img { height: 210px !important; }}

/* -------------------------------------------------------------------------
   Paper sections. `.sp-scope` carries the cream paper texture, but pages built
   from Kadence row layouts only get a flat bgColor, so those sections rendered
   flat cream with no texture. Any row given the sp-paper class picks up the
   same tile the rest of the site uses.
   ------------------------------------------------------------------------- */
.sp-paper {
	background-color: #FFFFFD !important;
	background-image: url("texture-cream-paper.jpg") !important;
	background-repeat: repeat !important;
	background-size: auto !important;
	background-position: 0 0 !important;
}

/* -------------------------------------------------------------------------
   VIP band inset. Kadence silently discards % values in the row-layout padding
   attribute (it falls back to 24px), and any CSS keyed to `.sp-band--vip` never
   matched because Kadence HTML-escapes the double dash in custom class names
   (rendered as sp-band\u002d\u002dvip). A single-dash class avoids the escaping.
   Dave's band is inset 12.3% each side, i.e. content = 75.9% of width.
   ------------------------------------------------------------------------- */
.sp-vipband > .kt-row-column-wrap {
	max-width: 75.9%;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 900px) {
	.sp-vipband > .kt-row-column-wrap { max-width: 100%; }}

/* Gold keyline on the dispensary map. kadence/googlemaps registers no border
   attribute at all, and border attrs on a wrapping row render the colour as
   transparent, so the frame has to come from CSS on the block's own className. */
.sp-map-frame { border: 2px solid var(--sp-gold); }

/* -------------------------------------------------------------------------
   Gold keyline under the site header. Home carried a 3px core Separator as its
   first block (theme-palette1, a duller gold); every other page had nothing, so the
   line stopped at the front page. Putting it on the header gives all pages the
   same line from one place, including Happenings, which is template-rendered
   and has no page content to hold a block. Kadence's own header_bottom border
   is not usable here because the bottom header row is collapsed to 0 height.
   ------------------------------------------------------------------------- */
#masthead { border-bottom: 3px solid var(--sp-gold); }

/* -------------------------------------------------------------------------
   Kadence design tokens: display type. `html:root` + !important is deliberate:
   Kadence prints its own token block later in the head, so an equal :root loses.
   The hero headline and eyebrow take their size from these tokens via
   var(--kb-token--primitive--dimension--font-size--xl / --lg), which is why
   Kadence's h1/h2 typography settings had no effect on them. Sizes come from
   Dave's artwork measured at a 1440px layout: headline 56-60, eyebrow 32-34.
   Expressed in vw so they scale with the design rather than snapping at 1440.
   ------------------------------------------------------------------------- */
:root {
	--kb-token--primitive--dimension--font-size--xl: clamp(2.4rem, 4.03vw, 3.625rem) !important;
	--kb-token--primitive--dimension--font-size--lg: clamp(1.5rem, 2.22vw, 2rem) !important;
}


/* -------------------------------------------------------------------------
   Section titles. Dave sets these 40-44px, uppercase, wide-tracked.
   No stylesheet rule sets a font-size on these headings at all - the 50px
   they were rendering at appears to come from an em-based value resolving
   against the 20px body base (2.5em x 20px = 50px), which no amount of
   Kadence typography setting would override. Set explicitly here instead.
   Scoped via [class*=] because the rendered class is kt-adv-heading79_<id>,
   not a bare kt-adv-heading - an exact-class selector silently matches nothing.
   This is the section-title set, so strain card names and body copy are safe.
   !important is required: Kadence's per-block rule is two classes, ours is one.
   ------------------------------------------------------------------------- */
h2[class*="kt-adv-heading"] {
	font-size: clamp(1.9rem, 2.9vw, 2.75rem) !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	line-height: 1.15 !important;
}

/* -------------------------------------------------------------------------
   Our Dispensary - the cream/black join, as Dave draws it.
   The address band is a second row sharing the text column's geometry, so the
   address sits directly below the map. The storefront photo crosses the join:
   it is taken out of flow so the row's height is driven by the text-and-map
   column, while the column itself still stretches to that height, letting the
   photo be sized to row-height + the overhang into the black band.
   ------------------------------------------------------------------------- */
.sp-ink-band {
	background-color: #000 !important;
	background-image: url("texture-black-grunge.jpg") !important;
	background-repeat: repeat !important;
	background-size: 960px auto !important;
	min-height: clamp(260px, 30vw, 620px);
}

/* Hook lives on the image block, not the column: Kadence does not render a
   custom className on kadence/column, so a column-class selector silently
   matches nothing. :has() picks the column that owns this image. */

/* Our Dispensary storefront photo crossing the cream/black join.
   Kadence renders no custom className on kadence/image or kadence/column, so
   neither a block class nor a column class is a usable hook. WordPress always
   renders `wp-image-<attachment-id>` on attachment images, so that is the hook.
   The photo leaves the flow, which lets the text-and-map column drive the row
   height while the photo is sized to that height plus the overhang. */
.kt-inside-inner-col:has(img.wp-image-1244) {
	position: relative;
	height: 100%;
}
.kt-inside-inner-col:has(img.wp-image-1244) > figure {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100% + 25vw);
	margin: 0;
	z-index: 3;
}
.kt-inside-inner-col:has(img.wp-image-1244) > figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* -------------------------------------------------------------------------
   Retailers page. Dave's mockup uses a third-party store-locator widget with a
   search panel and results list. We have no verified retailer list yet, so the
   map stands in as a placeholder and is held to the content measure rather than
   running full-bleed.
   ------------------------------------------------------------------------- */
.sp-retailer-map {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

/* -------------------------------------------------------------------------
   Retailers page: vertical rhythm and the GO BACK link.
   Spacing measured off Dave's master at the 1920 canvas - 222px from the
   header to RETAILERS, 48px down to GO BACK, 58px to the map - expressed in vw
   so it holds at any width. Kadence does not render a custom className on
   kadence/advancedheading, so GO BACK is picked out structurally: it is the
   only heading here whose content is a link.
   ------------------------------------------------------------------------- */
.sp-retailers-head > .kt-row-column-wrap {
	padding-top: 11.5vw !important;
	padding-bottom: 0 !important;
}

.sp-retailers-maprow > .kt-row-column-wrap {
	padding-top: 3vw !important;
}

.sp-retailers-head h2[class*="kt-adv-heading"]:has(> a) {
	font-size: clamp(1.1rem, 2.05vw, 1.9rem) !important;
	letter-spacing: .05em !important;
	margin-top: 2.5vw !important;
	margin-bottom: 0 !important;
	text-transform: none !important;
}

.sp-retailers-head h2[class*="kt-adv-heading"] > a {
	color: #14160f;
	text-decoration: underline;
	text-underline-offset: .22em;
	text-decoration-thickness: 1px;
	transition: color .2s ease;
}

.sp-retailers-head h2[class*="kt-adv-heading"] > a:hover {
	color: #637732;
}

/* -------------------------------------------------------------------------
   Strain detail page (Dave's StrainsDetail mockup).
   Note: these hooks are core/paragraph classes - custom className is NOT
   rendered on kadence/advancedheading, so anything needing a class hook is a
   core block. Row classes do render, hence .sp-strain-media / .sp-strain-awards.
   ------------------------------------------------------------------------- */
.sp-strain-back a {
	color: #637732;
	font-family: var(--sp-sans);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.sp-strain-media img {
	display: block;
	width: 100%;
	height: auto;
}

.sp-strain-desc {
	border: 1px solid #637732;
	border-radius: 14px;
	padding: 1.4rem 1.6rem;
	color: #14160f;
	font-size: 1.1rem;
	line-height: 1.6;
}

.sp-strain-links a {
	color: #637732;
	font-family: var(--sp-sans);
	font-size: .95rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.sp-award-pill {
	display: inline-block;
	background: #ffcd1e;
	color: #14160f;
	border-radius: 999px;
	padding: .5rem 2.4rem;
	font-family: var(--sp-serif);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin: -4.4rem auto 1.8rem;
	position: relative;
	z-index: 2;
}

/* centre the pill: the column has to be the centring context, since the pill
   itself is an inline-block */
.sp-strain-awards .kt-inside-inner-col { text-align: center; }
.sp-strain-awards > .kt-row-column-wrap { padding-top: 3.4rem !important; }
.sp-strain-awards { overflow: visible; }

.sp-strain-awards {
	position: relative;
}

/* -------------------------------------------------------------------------
   Strain carousel (Kadence Advanced Gallery, carousel type) - Dave's card
   treatment: bud on a black rounded panel with the strain name in a gold bar
   beneath. Scoped by the gallery's own id so nothing else is affected.
   The caption sits inside the slide's <a>, so it is forced back into flow;
   Kadence positions it absolutely for the 'bottom' style.
   Bar colour is a single gold rather than Dave's gold/green/olive cycle: Splide
   clones slides, so nth-child colouring would give a clone a different colour
   from the slide it mirrors.
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Strain carousel (Kadence Advanced Gallery, carousel) - Dave's card look:
   bud contained on a black rounded panel with the strain name in a gold bar at
   the bottom of the card. !important is required throughout: Kadence emits
   ID-scoped generated CSS for this block which outranks a class selector, and
   its 'bottom' caption style is an absolutely positioned overlay we are
   re-skinning as a full-width bar rather than moving into flow.
   ------------------------------------------------------------------------- */
.kb-gallery-wrap-id-9_e35551-9b .kadence-blocks-gallery-item-inner {
	background: #000 !important;
	border-radius: 30px !important;
	overflow: hidden !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kb-gal-image-radius {
	border-radius: 0 !important;
	background: #000 !important;
	padding: 1rem !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kb-gallery-image-contain {
	background: #000 !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kb-gallery-image-contain img {
	object-fit: contain !important;
	width: 100% !important;
	height: 100% !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kadence-blocks-gallery-item__caption {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	display: block !important;
	width: auto !important;
	background: #ffcd1e !important;
	color: #14160f !important;
	font-family: var(--sp-serif) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	padding: .8rem .5rem !important;
	margin: 0 !important;
	opacity: 1 !important;
	transform: none !important;
	text-shadow: none !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kadence-blocks-gallery-item__caption * {
	color: #14160f !important;
}

.kb-gallery-wrap-id-9_e35551-9b .kb-gallery-item-link {
	display: block !important;
	text-decoration: none !important;
}

/* The caption div follows the image in the DOM, so simply forcing it back into
   static flow puts the gold bar beneath the image - Dave's card composition.
   (Flex ordering collapsed Kadence's intrinsic-ratio box, so it is not used.) */
.kb-gallery-wrap-id-9_e35551-9b .kadence-blocks-gallery-item__caption {
	position: static !important;
	display: block !important;
	width: 100% !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
	opacity: 1 !important;
}

/* the strip behind the dots/arrows picked up a dark panel; keep it on the paper */
.kb-gallery-wrap-id-9_e35551-9b .splide__pagination,
.kb-gallery-wrap-id-9_e35551-9b .splide__track,
.kb-gallery-wrap-id-9_e35551-9b .splide__list,
.kb-gallery-wrap-id-9_e35551-9b .kb-gallery-ul,
.kb-gallery-wrap-id-9_e35551-9b .kt-blocks-carousel,
.kb-gallery-wrap-id-9_e35551-9b .splide {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}
.kb-gallery-wrap-id-9_e35551-9b .splide__pagination {
	padding-bottom: 1rem;
}

/* ----------------------------------------------------------------
   HAPPENINGS — POST GRID (.sp-hap-posts)
   Page 288 was rebuilt as Kadence blocks so Dave can edit it. The grid
   itself is the Kadence Blocks Pro Posts block; the designer's card puts
   the caption bar OVER the bottom of the image, which the Posts block has
   no control for, so that overlap lives here. Everything else (columns,
   category / title / date) is block settings in wp-admin.
   ------------------------------------------------------------------------- */
.sp-hap-posts.sp-hap-posts { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: clamp(1rem, 2.5vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .sp-hap-posts.sp-hap-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .sp-hap-posts.sp-hap-posts { grid-template-columns: 1fr; } }
.sp-hap-posts .kb-post-list-item { display: block !important; }
.sp-hap-posts article.loop-entry { position: relative; display: block; height: auto !important; margin: 0; border-radius: var(--sp-radius-lg); overflow: hidden; background: #fff; }
.sp-hap-posts .post-thumbnail { display: block; height: auto !important; aspect-ratio: auto !important; }
.sp-hap-posts .post-thumbnail.kadence-thumbnail-ratio-2-3 { padding-top: 0 !important; }
.sp-hap-posts .post-thumbnail-inner { position: static !important; height: auto !important; padding-top: 0 !important; display: block !important; }
.sp-hap-posts .post-thumbnail img { position: static !important; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sp-hap-posts .post-thumbnail, .sp-hap-posts .post-thumbnail figure, .sp-hap-posts .post-thumbnail-inner { margin: 0 !important; }
.sp-hap-posts .post-thumbnail, .sp-hap-posts .post-thumbnail.kadence-thumbnail-ratio-2-3 { padding: 0 !important; line-height: 0; overflow: hidden; }
.sp-hap-posts .post-thumbnail-inner, .sp-hap-posts .post-thumbnail.kadence-thumbnail-ratio-2-3 .post-thumbnail-inner { position: static !important; height: auto !important; padding: 0 !important; }
.sp-hap-posts .post-thumbnail img { position: static !important; display: block !important; vertical-align: top; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.sp-hap-posts article.loop-entry .entry-content-wrap { position: absolute !important; left: 0; right: 0; bottom: 0; padding: .85rem 1rem 1rem; text-align: center; color: #fff; background: var(--sp-green); }
.sp-hap-posts .entry-header { margin: 0; }
.sp-hap-posts .entry-taxonomies { margin: 0 0 .25rem; }
.sp-hap-posts .category-links { display: block; }
.sp-hap-posts .category-links a { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-decoration: none; }
.sp-hap-posts .entry-title { font-family: var(--sp-serif); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.sp-hap-posts .entry-title a { color: #fff; text-decoration: none; }
.sp-hap-posts .entry-meta { margin: .4rem 0 0; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sp-hap-posts .entry-meta a, .sp-hap-posts .entry-meta time { color: #fff; text-decoration: underline; text-underline-offset: .15em; }
.sp-hap-posts .entry-meta time.updated { display: none; }
.sp-hap-posts .entry-footer { display: none; }
.sp-hap-posts article.category-events .entry-content-wrap { background: var(--sp-olive); }
.sp-hap-posts article.category-blogging .entry-content-wrap { background: var(--sp-ink); }
.sp-hap-posts article.category-competitions .entry-content-wrap,
.sp-hap-posts article.category-press-releases .entry-content-wrap { background: var(--sp-green); }/* PAGE 288 - HAPPENINGS (Kadence rebuild). Page 288 is no longer page_for_posts:
   its body holds Kadence blocks, so Dave can edit it in wp-admin. The Posts block
   cannot overlay a caption on the bottom of the image, so that lives here.
   CSS-only because Kadence has no control for it: (1) the wide inset - Kadence
   discards % values in a row's padding attribute and falls back to ~24px, which
   made the cards 443px instead of 375px; (2) the fluid clamp size on the H1.
   Row selectors use the row-layout ids because Kadence does not reliably emit a
   custom className on a row. */
.kb-row-layout-id288_hap-row1 > .kt-row-column-wrap,
.kb-row-layout-id288_hap-strip > .kt-row-column-wrap {
	/* NB: the 4-up photo strip is a row nested INSIDE the strip row, so it must
	   not carry the inset again - doing so made its images 219px, not 284px. */
	max-width: 1584px;
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
}
.kb-row-layout-id288_hap-row1 > .kt-row-column-wrap { padding-block: clamp(1.75rem, 4vw, 3rem); }
.kb-row-layout-id288_hap-strip > .kt-row-column-wrap { padding-block: clamp(1.5rem, 4vw, 3rem); }
.kb-row-layout-id288_hap-strip-grid > .kt-row-column-wrap { gap: clamp(.6rem, 1.5vw, 1.1rem); }

/* the archived template carried the cream-paper scope; a row only gets a flat
   bgColor, so the type stack (and the ink colour) is re-attached here. */
.kb-row-layout-id288_hap-row1 {
	font-family: var(--sp-sans);
	color: var(--sp-cream-ink);
}

/* H1 - display serif, gold, tracked out, fluid. Kadence has no clamp control. */
.sp-hap-title.sp-hap-title {
	font-family: var(--sp-serif) !important;
	font-size: clamp(1.75rem, 3.13vw, 3.75rem) !important;
	color: var(--sp-gold) !important;
	letter-spacing: .12em !important;
	line-height: 1.08;
}

/* search field: core Search block wearing the site's .sp-search skin. The core
   block wraps its input + button in an extra div, so that wrapper has to become
   the flex row that .sp-search assumes. */
.sp-search .wp-block-search__inside-wrapper {
	display: flex;
	flex: 1;
	flex-wrap: nowrap;
	padding: 0;
	border: 0;
	gap: 0;
}
.sp-search .wp-block-search__label { display: none; }
.sp-search.sp-search .wp-block-search__button {
	margin: 0;
	background: var(--sp-ink);
	color: #fff;
	border: 0;
	padding: .7rem 1.4rem;
	font-family: var(--sp-sans);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-size: .78rem;
	border-radius: 0;
}

/* card caption - the eyebrow and date steps Kadence does not expose. */
.sp-hap-posts.sp-hap-posts .category-links a { font-size: .72rem; letter-spacing: .16em; }
.sp-hap-posts.sp-hap-posts .entry-meta { font-size: .68rem; letter-spacing: .12em; }
.sp-hap-posts.sp-hap-posts .entry-content-wrap { padding: .85rem 1rem 1rem; }
