/*
 * Rose Green Pharmacy — layout layer for the Elementor templates.
 * Loaded after Elementor's generated CSS so it wins the cascade.
 * Styles are keyed off CSS classes set on containers/widgets in the
 * Elementor templates (header, footer, homepage, inner pages).
 */

/* =============================================================
   0. Container display repair
   Elementor renders every container as `display: var(--display)`, and
   `--display` is written straight from the "Container Layout" control,
   whose only valid values are `flex` and `grid`. The seeded full-width
   sections stored `full-width` instead, which is not a <display> value —
   so those nine containers resolve to `display: inline`, their
   backgrounds stop painting as a block and their layout collapses.
   (Class `e-full-width` is only ever emitted by that bad value; a real
   full-width container gets `e-con-full`.)

   Once they are flex they also need a direction: none of the nine had
   one written, so they would fall back to Elementor's `row` and start
   laying their sections out side by side. The seeder's intent for every
   one of these wrappers is a vertical stack.

   Specificity deliberately outranks Elementor's generated
   `.elementor-NN .elementor-element-*` rule so this holds whichever
   order the stylesheets load in. `flex-direction` itself has to be
   written out: Elementor only binds `--flex-direction` for containers
   carrying the `e-flex` class, which these don't, so there is no rule
   to lean on. Both the container and its `.e-con-inner` need it — the
   inner is what actually holds the children.
   ============================================================= */
.elementor .e-con.e-full-width:not(.e-grid),
.elementor .e-con.e-full-width:not(.e-grid) > .e-con-inner {
	--display: flex;
	flex-direction: column;
}

/* The announcement bar is the one wrapper that opts into a horizontal
   run (text + open/closed chip), so put it back to a row. */
.elementor .e-con.rg-announce,
.elementor .e-con.rg-announce > .e-con-inner {
	flex-direction: row;
}

/* NHS Blue owns this strip. The seeder baked forest into the container
   and Elementor's generated rule (`(0,4,0)` with a :not guard) outranks
   the plain class, so this restates the background at `(0,5,0)` — the
   `.rg-cta` pattern, one ancestor up. The 100vmax full-bleed shadow in
   style.css takes its colour from --rg-announce and follows along. */
.elementor .elementor-element.e-con.rg-announce:not(.elementor-motion-effects-element-type-background) {
	background-color: var(--rg-announce);
	background-image: none;
}

/* =============================================================
   1. Header
   ============================================================= */
.rg-header {
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.rg-header .elementor-widget-image .elementor-widget-container,
.rg-header .elementor-widget-image {
	line-height: 0;
}

/* Announcement bar */
.rg-announce .elementor-widget-text-editor,
.rg-announce .elementor-widget-heading {
	margin: 0;
}

/* The strip sits inside Elementor's 1180px boxed container, so once the
   window is wider than that it stops short of both edges and leaves cream
   showing either side. Spreading a 100vmax shadow in the bar's own colour
   paints the full header width, and the clip-path trims it back to the
   bar's own height. Shadow is ink rather than layout, so overflow is
   unaffected. */
.rg-announce {
	box-shadow: 0 0 0 100vmax var(--rg-announce);
	clip-path: inset(0 -100vmax 0 -100vmax);
}

/* The opening-status chip lives twice on the landing view: here in the
   announce bar and again as the hero chip above the headline. Keep the hero
   copy (it sits with the CTA) and drop this one — same content, one screen. */
.rg-announce .rgp-status {
	display: none;
}

/* Logo: the header carries the real `rose-green-logo.png` — the lockup the
   site is known by, seeded as an Image widget (attachment 1049) and linked
   to the home page. The file was trimmed to 940x834 and its background
   made transparent in GD, so it sits cleanly on the `--rg-header-bg` bar.
   The footer keeps the typographic wordmark: the PNG's ground would read
   as a grey box on the dark footer there.

   The widget renders a bare `<img>` inside the widget container; `auto`
   width keeps it at the natural aspect and `.rg-logo img` in this file
   sets the bar height (74px, stepping down on smaller screens). */
.rg-logo .elementor-widget-container {
	max-width: none !important;
	width: auto !important;
}

.rg-header .rg-logo a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

/* Bar height, not width: the PNG's aspect (940x834) is kept by pairing a
   fixed height with `auto` width, and Elementor's own `max-width: 100%`
   on the img can never bind at these sizes. Steps down as the bar does. */
.rg-header .rg-logo img {
	display: block;
	width: auto;
	height: 74px;
}

@media (max-width: 1024px) {
	.rg-header .rg-logo img {
		height: 60px;
	}
}

@media (max-width: 767px) {
	.rg-header .rg-logo img {
		height: 54px;
	}
}

/* Nav: single row, pill links */
.rg-header .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-nav-menu {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rg-header .elementor-widget-nav-menu .elementor-nav-menu--main .elementor-nav-menu > li {
	flex: 0 0 auto;
}

/* The bar is a space-between flex row of logo / nav / actions. Size each
   to its content: Elementor's default lets the nav shrink to 0 min-width,
   so its nowrap menu overflowed rightwards on top of the phone chip, while
   the actions block grew into ~250px of dead space. */
.rg-header__bar > .e-con-inner > * {
	flex: 0 0 auto;
}

/* The header template's outer container ships Elementor's default 20px
   flex gap, which printed a band of nothing between the announce strip
   and the bar — two flush surfaces that belong together. The bar's own
   14px block padding read as more dead air above the logo; 10px keeps
   the bar present without it. */
.rg-header > .e-con-inner {
	row-gap: 0 !important;
	gap: 0 !important;
}

.rg-header__bar > .e-con-inner {
	padding-block: 10px !important;
}

.rg-header .elementor-widget-nav-menu {
	min-width: max-content;
}

.rg-header .elementor-widget-nav-menu .elementor-nav-menu--main a.elementor-item {
	padding: 0.5rem 0.95rem;
	background: transparent;
}

.rg-header .rg-header__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.6rem;
	align-items: center;
	justify-content: flex-end;
	/* Override the blanket `0 0 auto` above: this wrapper's `.e-con-inner`
	   is `width: 100%` + `flex: 1 1 auto`, so with no shrinking it resolves
	   to the full bar width and pushes the page 645px wide. Letting it
	   shrink lets it settle at its content width and stay inside the bar. */
	flex: 0 1 auto;
	min-width: 0;
	/* Content-sized rather than free-space-sized: shrinking alone settles it
	   at the leftover width of the bar, leaving a gap after the button. */
	width: max-content;
}

.rg-header .rg-header__actions .elementor-widget-button,
.rg-header .rg-header__actions .rg-btn {
	flex: 0 0 auto;
}

/* Phone control in header actions. The 3px amber bar that used to sit
   here was a decorative accent on an element that does not need one — a
   hairline reads as a considered divider between the number and the CTA
   instead of as an ornament. */
.rg-phone-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.05rem 0.5rem 1.1rem;
	border: 0;
	border-left: 1px solid var(--rg-line);
	border-radius: 0;
	background: transparent;
	color: var(--rg-forest) !important;
	font-weight: 650;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
	.rg-phone-chip:hover {
		background: var(--rg-sand);
		color: var(--rg-pine) !important;
		text-decoration: none;
	}
}

.rg-phone-chip svg {
	width: 16px;
	height: 16px;
	color: var(--rg-leaf);
}

/* Tablet: one row needs logo (135) + full nav (464) + chip and CTA (322)
   plus gaps — about 961px, which the bar only has above ~1009px of
   viewport. Below that the logo and nav can't shrink (min-width:
   max-content), so the row used to push the page wide. Give the nav its
   own line instead: wordmark and CTA share the first line, the menu takes
   the second. Scoped to 768+ so the mobile burger layout below 768 is
   untouched.

   The wrap needs !important and the header compound: Elementor's
   `.elementor .e-con.e-flex > .e-con-inner { flex-wrap: var(--flex-wrap) }`
   is (0,3,0) and outranked the old two-class selector, so this rule
   half-applied — order and width won, the wrap didn't, and the row stayed
   a single overflowing line with the actions wrapper (the one shrinkable
   child) squeezed to zero width. The burger block below 1024 already
   wins its own war with this compound + !important, so mirror it here. */
@media (min-width: 768px) and (max-width: 1060px) {
	.rg-header .rg-header__bar > .e-con-inner {
		flex-wrap: wrap !important;
		row-gap: 6px;
	}

	.rg-header .elementor-widget-nav-menu {
		order: 3;
		width: 100%;
	}
}

/* =============================================================
   2. Hero — full-bleed photograph
   ============================================================= */
/* The hero container itself carries the shelf photograph as an Elementor
   background (cover, centered) under a forest scrim overlay — both seeded
   in rg-seed.php, so the photo IS the hero, edge to edge. The old paper
   washes, leaf blobs and green cross are gone: with a real photograph in
   place they were noise. */

/* The photograph carries the first screen. Copy sits on a scrim with a single
   gold rule, rather than inside a floating glass component.

   The scrim is a pseudo-element so it needs no markup and cannot be switched
   off by the panel, and the inner container is lifted above it so the copy
   stays in front of the gradient rather than under it.

   Two generated rules own that same pseudo-element and were quietly ruining
   it. `frontend.min.css` writes `.e-con::before { opacity: var(--overlay-opacity) }`
   and this container's overlay opacity is 0.5; `uploads/elementor/css/post-14.css`
   adds its own `background-color: rgba(15,31,20,.55)` at (0,4,0). So the
   gradient was being painted at half strength on top of a flat grey — the
   milky wash that made the hero read as a stock photo with a tint on it.
   layout.css loads last but cannot out-specify (0,4,0) with one class, so the
   two properties carrying the scrim are pinned outright. */
.rg-hero {
	isolation: isolate;
}

.rg-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 1 !important;
	background-color: transparent !important;
	/* Three layers, each doing one job.
	   The ramp used to sit at 0.93–0.96 right across the copy and only
	   opened up in the last quarter, so the frame carried a green veil
	   end to end and the shelving was never actually a photograph. The
	   panel below now carries the contrast the type needs, which lets the
	   ramp come down a long way: it holds enough forest to keep the
	   ceiling lights from glaring behind the status line, then drops away
	   completely by the right edge so the right-hand third is the picture
	   and not a tint. The top layer frames the photo against the sticky
	   header, the bottom settles it into the trust strip. */
	background-image:
		linear-gradient(
			to bottom,
			rgba(8, 30, 18, 0.32) 0%,
			rgba(8, 30, 18, 0) 24%
		),
		linear-gradient(
			to top,
			rgba(11, 39, 24, 0.56) 0%,
			rgba(11, 39, 24, 0.16) 25%,
			rgba(11, 39, 24, 0) 46%
		),
		linear-gradient(
			101deg,
			rgba(13, 44, 27, 0.86) 0%,
			rgba(14, 47, 29, 0.84) 26%,
			rgba(15, 50, 31, 0.79) 44%,
			rgba(17, 55, 33, 0.73) 56%,
			rgba(21, 66, 40, 0.57) 65%,
			rgba(25, 75, 46, 0.34) 74%,
			rgba(28, 84, 51, 0.15) 83%,
			rgba(31, 93, 57, 0.05) 92%,
			rgba(33, 100, 61, 0) 100%
		);
}

/* `.e-con.e-flex > .e-con-inner` in frontend.min.css reads justify-content
   from a custom property at (0,3,0), which outranked the one class this was
   written as — so the panel stayed pinned to the top of the photo regardless.
   Three classes and a type selector clear it; the container's own 96px of
   padding then splits evenly above and below. */
.elementor .elementor-element.rg-hero > .e-con-inner {
	position: relative;
	z-index: 1;
	justify-content: center;
}

.rg-hero__panel {
	/* 42rem so the headline can grow to its new scale without the first line
	   breaking short of "pharmacy". */
	max-width: 42rem;
	/* The ramp above is deliberately light now, so the panel has to carry
	   the contrast the copy needs. Padding goes on all four sides: the left
	   keeps the same clamp it already had, so the type stays on the 49px
	   line the rest of the page hangs off, and the other three give the
	   measure a framed ground instead of leaving it to float on the photo.
	   The vertical padding is taken back out of the space the container
	   centres above and below, so the hero's own height does not move. */
	padding: clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.35rem, 2.4vw, 1.85rem) clamp(1rem, 2vw, 1.5rem);
	/*   Frosted rather than flat: a dark tint over a blur keeps the measure
   legible while the photograph still reads through it, and the blur is
   what separates this slab from the sharp shelving outside it. The tint
   is greened to the reference (the panel sampled ~#1F2F1E over the
   photo) instead of the old neutral-black ramp. No
   shadow — the hairline does the framing, the way every other edge
   on this site does. */
	background: linear-gradient(180deg, rgba(11, 32, 16, 0.66) 0%, rgba(12, 36, 18, 0.58) 100%);
	-webkit-backdrop-filter: blur(20px) saturate(118%);
	backdrop-filter: blur(20px) saturate(118%);
   /* --rg-amber all but disappeared against the deepened scrim; the
      frame is drawn in the lime accent instead, with the left one
      carrying the weight it always had. */
	border: 1px solid rgba(166, 200, 98, 0.38);
	border-left: 3px solid rgba(166, 200, 98, 0.85);
	border-radius: 0;
	box-shadow: none;
}

/* The call-to-action row is wrapped in its own Elementor container, which
   inherits the 10px horizontal default padding that a bare container gets —
   so the buttons started 10px right of the headline and the lead above them.
   The padding arrives through logical longhands off `--padding-left`, both
   declared at (0,1,0) on `.e-con`, so a descendant selector is enough to
   clear it. */
.rg-hero__panel .e-con {
	padding-left: 0;
	padding-right: 0;
}

/* style.css §1 sets `.elementor-widget-heading h1.elementor-heading-title`
   to the ink colour at (0,2,1), which outranked the (0,2,0) this used to be
   written as — so the hero headline rendered dark-on-photo. Three classes
   puts it ahead of that rule regardless of stylesheet order. */
.elementor .rg-hero .elementor-heading-title {
	color: #fff;
	text-wrap: balance;
}

/* The emphasis stays a colour shift only — now the lime of the shopfront
   signage, sampled from the reference: a light leaf green that reads
   clearly over the panel's dark tint. Italic was a display flourish
   borrowed from the reference sites, but set in Poppins 600 it reads as a
   wobble in an otherwise upright headline — and a real pharmacy's hero does
   not need one. The tag stays for the stress it carries in the sentence. */
.rg-hero .rg-hero__title em {
	font-style: normal;
	color: var(--rg-lime, #A6C862);
	font-weight: 600;
}

.elementor .e-con.e-con > .e-con-inner > .rg-lead,
.elementor .elementor .e-con > .e-con-inner > .rg-lead {
	max-width: none;
}

.rg-hero .rg-lead {
	color: #E7EFE6;
	font-size: 1.22rem;
	line-height: 1.6;
	max-width: 54ch;
}

/* The status line drops its pill entirely. Even de-glassed it was still a
   hairline badge — the shape the rest of this design was pulled away from —
   and on a scrim this deep it needs no backing to be legible. As a plain
   line with a gold dot it reads as an eyebrow over the headline. */
.rg-hero .rgp-status {
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 0;
	color: #EDF4EC;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.012em;
}

.rg-hero .rgp-status--closed .rgp-status__icon {
	color: var(--rg-lime, #A6C862);
}

.rg-hero .rgp-status--open .rgp-status__icon {
	color: #6FD08E;
}

/* style.css §12 caps this at 17ch and 2.9rem, which held the headline to two
   short lines at a size too small for a first screen. The panel's measure is
   now the only constraint, so the scale can run to its full range. */
.rg-hero .rg-hero__title .elementor-heading-title {
	font-size: clamp(2.6rem, 5.1vw, 3.8rem);
	line-height: 1.03;
	letter-spacing: -0.03em;
	max-width: none;
}

/* The primary CTA was being overridden by Elementor's generated
   `.elementor-14 .elementor-element.elementor-element-… .elementor-button`
   at (0,4,0), which resolves the kit token `--e-global-color-rg-forest` to
   #1E4D2B. A dark green button on a dark green scrim measured 1.33:1 against
   the ground — it read as a hole in the photograph, and the outlined
   secondary beside it looked like the louder of the two. Five classes out-rank
   that rule whatever order the stylesheets load in.

   On a ground this dark the primary is the light fill, which is what
   `.rg-btn--light` already does on the closing band. --rg-amber is too heavy
   to carry a call to action here, so the warm accent stays where it earns its
   place: the headline emphasis, the rule, the status dot. */
.elementor .elementor-element.rg-hero .rg-btn--rose .elementor-button {
	background: #FBFAF4;
	color: var(--rg-forest-deep);
	padding: 1.08rem 2rem;
	font-size: 1.06rem;
	font-weight: 600;
	letter-spacing: -0.012em;
	box-shadow: 0 16px 34px -18px rgba(3, 16, 9, 0.9);
}

.elementor .elementor-element.rg-hero .rg-btn--rose .elementor-button:focus-visible {
	background: #fff;
	color: var(--rg-forest-deep);
}

@media (hover: hover) {
	.elementor .elementor-element.rg-hero .rg-btn--rose .elementor-button:hover {
		background: #fff;
		color: var(--rg-forest-deep);
	}
}

.elementor .elementor-element.rg-hero .rg-btn--ghost .elementor-button {
	border: 1px solid rgba(255, 255, 255, 0.62);
	box-shadow: none;
	color: #fff;
	padding: 1.08rem 2rem;
	font-size: 1.06rem;
	font-weight: 600;
	letter-spacing: -0.012em;
}

.elementor .elementor-element.rg-hero .rg-btn--ghost .elementor-button:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

@media (hover: hover) {
	.elementor .elementor-element.rg-hero .rg-btn--ghost .elementor-button:hover {
		background: rgba(255, 255, 255, 0.12);
		border-color: #fff;
		color: #fff;
	}
}

@media (max-width: 767px) {
	/* Below the breakpoint the copy runs the full width of the photo, so a
	   left-to-right ramp would leave the tail of every line over the bright
	   end of the image. Flatten it and lift the floor instead. */
	.rg-hero::before {
		/* The ramp is horizontal, and below the breakpoint the copy runs the
		   full width of the photo — so flatten to a single even floor.
		   background-color is pinned in the rule above, hence the !important. */
		background-image: none;
		background-color: rgba(10, 36, 22, 0.93) !important;
	}

	.rg-hero__panel {
		/* The floor above is already at 0.93, so a blur would have nothing
		   to reveal — take the glass and the three-sided hairline back off
		   and leave the mobile panel exactly as it was: a gold rule, no
		   backing, and the vertical padding desktop needs removed so the
		   copy does not gain a box it never had. */
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-top: 0;
		border-right: 0;
		border-bottom: 0;
		padding-top: 0;
		padding-right: 0;
		padding-bottom: 0;
		padding-left: 1rem;
		border-left-width: 2px;
	}
}

/* The split-row media treatment (offset frame + rounded photo column) is
   gone with it — the photograph now runs the whole hero, and the panel's
   max-width keeps the copy's measure in check. */

/* Hero card (unused placeholder kept for future hero aside) */
.rg-hero-card {
	background: #fff;
	border: 1px solid var(--rg-line-soft);
	border-radius: var(--rg-radius-lg);
	box-shadow: var(--rg-shadow-2);
	padding: 1.6rem 1.75rem;
	max-width: 340px;
}

.rg-hero-card__eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rg-leaf);
	margin-bottom: 0.75rem;
}

.rg-hero-card .rg-hero-card__divider {
	height: 1px;
	background: var(--rg-line-soft);
	margin: 1rem 0;
	border: 0;
}

/* =============================================================
   3. Section scaffolding helpers
   ============================================================= */
/* Tinted band sections (services etc.)
   Flat fills, not tint→paper gradients: a real pharmacy page uses solid
   section colours, and the gradient only ever read as a soft glow. */
.rg-band-tint {
	background: var(--rg-sand);
}

.rg-band-mist {
	background: var(--rg-mist);
}

/* 2-up split rows: checklist + steps etc. Columns anchor to the TOP.
   Centring was the original read, but it shoved the shorter column down
   by half the height difference — the visit-us row's "Find us" kicker
   sat below "Visit us", and the repeat section's opening hairline
   floated at an arbitrary offset. Top-aligned, both kickers share a
   baseline and every rule reads as a deliberate line across the row. */
@media (min-width: 1025px) {
	.rg-two-col > .elementor-container,
	.elementor .rg-two-col > .e-con-inner {
		display: grid;
		grid-template-columns: 46fr 54fr;
		gap: 56px;
		align-items: start;
	}
}

/* Benefits strip: the four-tick checklist re-parented full-width under
   the repeat section's split (see the seeder note). Four across reads as
   one row of reassurance; two and one below tablet, where the labels
   would starve. Overrides the checklist's own auto-fit, which at this
   width would deal them 2+2. */
.rg-benefits {
	margin-top: 2.5rem;
	padding: 0;
}

.rg-benefits .rg-checklist {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.rg-benefits .rg-checklist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 0.9rem;
	}
}

@media (max-width: 640px) {
	.rg-benefits .rg-checklist {
		grid-template-columns: 1fr;
	}
}

/* Health advice strip: outbound chips to NHS.uk's own guides. Inline-flex
   chips rather than cards — these leave the site, so they should look
   like signposts, not destinations. */
.rgp-health-strip {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.rgp-health-strip a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--rg-line);
	border-radius: 999px;
	background: var(--rg-paper);
	color: var(--rg-pine);
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rgp-health-strip a span {
	color: var(--rg-amber);
	font-weight: 500;
}

@media (hover: hover) {
	.rgp-health-strip a:hover {
		border-color: var(--rg-leaf);
		background: var(--rg-mist);
	}
}

/* =============================================================
   Page imagery — the four real photographs placed where they earn
   their spot (About portrait, PF poster, welcome poster, shelves).
   All arrive as Image widgets, so the owner can swap any of them.
   ============================================================= */
/* About: the Superintendent's portrait. Portrait crop off the 3:2
   original, left-hung like every other block on the page. The width cap
   needs !important: Elementor's generated per-widget CSS sets the
   wrapper's width at (0,4,0), which outranks any plain class here. */
.rg-about-photo.elementor-widget-image,
.rg-about-photo {
	width: auto !important;
	max-width: 420px !important;
	margin: 0.5rem 0 0.25rem;
}

.rg-about-photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	border: 1px solid var(--rg-line);
}

/* The two posters are portrait documents photographed straight — treat
   them like the printed matter they are: capped height, hairline frame,
   no radius. Capped so they illustrate rather than dominate. */
.rg-page-poster.elementor-widget-image,
.rg-page-poster {
	width: auto !important;
	max-width: 360px !important;
	margin: 0.5rem 0 0.25rem;
}

.rg-page-poster img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--rg-line);
}

/* Services: a landscape shelf photo, full-measure above the card rows. */
.rg-page-photo {
	margin: 0.5rem 0 0.25rem;
}

.rg-page-photo img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	display: block;
	border: 1px solid var(--rg-line);
}

@media (max-width: 767px) {
	.rg-page-photo img {
		aspect-ratio: 16 / 10;
	}

	.rg-about-photo,
	.rg-page-poster {
		max-width: 300px !important;
	}
}

/* Person block (About): the Superintendent Pharmacist, given the same
   initials-disc treatment the plugin uses elsewhere. */
.rg-person {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rg-line);
}

.rg-person__avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--rg-pine);
	color: #fff;
	font-family: var(--rg-font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

.rg-person h2 {
	margin: 0 0 0.15rem;
	/* A name plate, not a section head — the band's h2 rule scopes to
	   direct children and skips this nested one on purpose. */
	font-size: 1.35rem;
	line-height: 1.2;
}

.rg-person__role {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--rg-bark);
}

.rg-person p:last-child {
	margin-bottom: 0;
}

/* Reviews block (Contact): an honest signpost, not fabricated stars. */
.rg-reviews {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rg-line);
}

/* Its heading sits inside the .rg-reviews div, so the band's
   direct-child h2 rule never reaches it — without this it rendered at
   the 45.6px display clamp and out-shouted the page title. */
.rg-reviews h2 {
	font-size: 1.45rem;
	line-height: 1.3;
	margin: 0 0 0.4rem;
}

.rg-reviews p:last-child {
	margin-bottom: 0;
}

/* Footer: 4-up columns
   Scoped with `>` : the column inners are also descendants of
   .rg-footer-cols, and giving them this 4-track template is what was
   squeezing each column's content into ~13px slivers. */
@media (min-width: 1025px) {
	.rg-footer-cols > .elementor-container,
	.elementor .rg-footer-cols > .e-con-inner {
		display: grid;
		grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
		gap: 48px;
		align-items: start;
	}
}

/* Deep forest stat band (uses Elementor bg; keep contrast) */
.rg-band-forest .rg-shell {
	position: relative;
}

/* Footer inner spacing */
/* No padding-top of its own: the footer's inner container already carries
   72px, so the clamp here was stacking on top of it and putting 141px of
   empty green between the amber rule and the wordmark. The bottom keeps
   its measure — that one has no inner padding to double up with. */
.rg-footer {
	padding: 0 0 2rem;
}

.rg-footer .rg-footer__note {
	color: #9FB49A;
	font-size: 0.92rem;
	line-height: 1.6;
}

/* Footer wordmark: the typographic logo inherits the palette, but the
   default forest ink still isn't light enough on the deep forest band —
   lift the name to cream and the sub-line to the footer's sage green.
   The header copy (light cream surface) keeps the original colors. */
.rg-footer .rg-wordmark {
	color: #F4F1E7;
}

.rg-footer .rg-wordmark__sub {
	color: #9FB49A;
}

/* =============================================================
   4. Stat band
   ============================================================= */
.rg-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	padding: 0;
}

/* No boxes. Each figure is a tight lockup: icon and numeral share one
   grid row on a common centre line, the caption spans beneath the whole
   row — so the icon reads as part of the figure instead of a speck
   marooned two rows up. Split by hairlines; three translucent cards
   floating on a dark colour is the last piece of template decoration
   left on the page.

   The three widget wrappers ARE the grid parts (the seeded classes sit
   on them): icon col 1 / row 1, numeral col 2 / row 1, caption spanning
   row 2. Row 1's 12px column gap is the icon–digit air — no margins —
   and `align-items: center` puts the glyph on the digits' centre line. */
.rg-stat {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 0.55rem;
	align-items: center;
	background: none;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 0;
	padding: 0.3rem 0 0.3rem 1.9rem;
}

.rg-stat:first-child {
	border-left: 0;
	padding-left: 0;
}

.rg-stat > .rg-stat__icon {
	grid-column: 1;
	grid-row: 1;
}

.rg-stat > .rg-stat__number {
	grid-column: 2;
	grid-row: 1;
}

.rg-stat > .rg-stat__label {
	grid-column: 1 / -1;
	grid-row: 2;
}

.rg-stat__number {
	font-family: var(--rg-font-display);
	font-size: clamp(2.1rem, 3.5vw, 2.9rem);
	font-weight: 600;
	color: #fff;
	line-height: 1;
}

/* "48h" — the unit steps down and takes the lime accent, so the digits
   do the shouting and the unit reads as a tail, not a second figure.
   The icon grid cell is collapsed to zero when the icon widget is
   retired — see the display:none on .rg-stat__icon below. */
.rg-stat__unit {
	font-size: 0.52em;
	font-weight: 600;
	color: var(--rg-lime, #A6C862);
	margin-left: 0.04em;
}

.rg-stat__label {
	color: #C9D8C4;
	font-size: 0.95rem;
	font-weight: 500;
}

/* =============================================================
   4a. Featured service card + asymmetry
   ============================================================= */
/* The services list was six equal rows — the machine rhythm. The lead
   card now runs as a two-column unit: copy left, the real counter photo
   right, so the grid opens with a face instead of a fifth icon.
   Compound selector with the base .rg-card class so the override wins
   the tie against the base card grid rule further down. */
.elementor .rgp-services .rg-card.rg-service--featured {
	grid-template-columns: minmax(0, 1fr) minmax(280px, 40%);
	column-gap: 0;
	align-items: stretch;
	padding: 0;
}

.elementor .rgp-services .rg-card.rg-service--featured > .e-con:first-child {
	padding: 1.6rem 1.9rem;
}

/* The photo half of the featured card. The class now sits on the Image
   widget's wrapper (a real widget, editable in Elementor): zero its own
   padding, and hide the widget gap the container would add, so the
   picture bleeds to the card's three free edges. */
.elementor .rgp-services .rg-service--featured .rg-service-featured__photo.elementor-widget-image,
.rg-service--featured .rg-service-featured__photo {
	display: block;
	padding: 0;
	line-height: 0;
	margin: 0;
}

.rg-service--featured .rg-service-featured__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The widget injects a spacer div after the img (the source of phantom
   height under an object-fit fill) — flatten it. */
.rg-service--featured .rg-service-featured__photo .elementor-widget-spacer,
.rg-service--featured .rg-service-featured__photo > .elementor-widget-container {
	line-height: 0;
}

@media (max-width: 1024px) {
	.elementor .rgp-services .rg-card.rg-service--featured {
		grid-template-columns: 1fr;
	}

	/* On phones the photo leads at 150px — a postcard, not a billboard —
	   and the copy keeps the row paddings every other card uses. */
	.rg-service--featured .rg-service-featured__photo img {
		max-height: 150px;
	}

	.elementor .rgp-services .rg-card.rg-service--featured > .e-con:first-child {
		padding: 1.15rem 1.25rem;
	}
}

/* =============================================================
   4c. Trust plaque straddling the hero hem
   ============================================================= */
/* One element somewhere has to break the flat stack of rectangles, or
   every section reads as generated rows. The trust line — now a small-
   caps plaque — hangs half over the hero's hem: the photo bleeds behind
   it, the paper plaque sits on top, and the boundary stops being a
   straight line. Only at desktop; on small screens the plaque returns
   to the flow. */
@media (min-width: 1025px) {
	.elementor .e-con.rg-shell:has(> .e-con-inner > .rgp-trust),
	.elementor .e-con.rg-shell:has(> .e-con-inner > .e-con-inner .rgp-trust) {
		position: relative;
		z-index: 2;
		margin-top: -34px;
		background: var(--rg-paper);
		border: 1px solid var(--rg-line);
		border-radius: 0;
		box-shadow: var(--rg-shadow-2);
	}

	/* The shell's own top padding would sit inside the plaque; halve it so
	   the overlap looks hung, not pasted. */
	.elementor .e-con.rg-shell:has(> .e-con-inner .rgp-trust) > .e-con-inner {
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

/* =============================================================
   4b. Visit section
   ============================================================= */
/* The visit split inherits .rg-two-col's 46/54, which hands the FIND US
   column 570px for ~430px of content — the widest thing in it is the
   buttons row, and the rest is an address block that hugs its text. The
   hours table, on the other side, absorbs any width you give it. So the
   visit row flips the ratio: hours 56, address 44. The buttons row inside
   then fills its column so the pair reaches the same right edge as the
   table opposite instead of stopping short and stranding the rest. */
@media (min-width: 1025px) {
	.elementor .rg-visit .rg-two-col > .e-con-inner,
	.rg-visit .rg-two-col > .elementor-container {
		grid-template-columns: 56fr 44fr;
	}

	.rg-visit .rg-col:last-child .rg-btn--rose,
	.rg-visit .rg-col:last-child .rg-btn--ghost {
		flex: 1 1 0;
	}

	.rg-visit .rg-col:last-child .rg-btn--ghost .elementor-button {
		width: 100%;
	}

	.rg-visit .rg-col:last-child .rg-btn--rose .elementor-button {
		width: 100%;
	}
}

/* =============================================================
   5. CTA band
   ============================================================= */
.rg-cta {
	position: relative;
	overflow: hidden;
	border-left: 4px solid var(--rg-leaf);
	border-radius: 0;
	/* Flat forest carries the band; a whisper of the real shopfront sits
	   behind it at 5% — texture reads human, gradients read generated.
	   The photo is injected as a CSS var from functions.php (the storefront
	   asset already in the media library) and pinned via ::before so it
	   never boxes the copy. The old gradient stays as the paint beneath. */
	background: var(--rg-forest);
	color: #fff;
}

.rg-cta-band-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: var(--rg-cta-photo, none);
	background-size: cover;
	background-position: center;
	opacity: 0.05;
}

.rg-cta-band-photo > .e-con-inner,
.rg-cta-band-photo .elementor-widget {
	position: relative;
	z-index: 1;
}

/* Elementor bakes a 120deg gradient straight into this container's generated
   CSS, at `.elementor-14 .elementor-element.<id>:not(...)` = (0,4,0). The
   plain `.rg-cta` above can't reach it, so match that specificity with
   selectors taken only from the element's own classes. */
.elementor-element.e-con.rg-cta:not(.elementor-motion-effects-element-type-background) {
	background-color: var(--rg-forest);
	background-image: none;
}

.rg-cta::after {
	content: none;
}

/* `.rg-cta h2` / `.rg-cta .elementor-heading-title` were (0,1,1) and
   (0,2,0) — both under style.css's blanket
   `.elementor-widget-heading h2.elementor-heading-title` (0,2,1), which
   paints every Elementor h2 `--rg-ink`. On this band that resolved to a
   near-black heading on dark green at 1.16:1, and it is the one heading
   in the theme the specificity fix has to reach past the global reset for.
   `.elementor ` lifts the pair above it. */
.elementor .rg-cta h2,
.elementor .rg-cta .elementor-heading-title {
	color: #fff;
}

.rg-cta p {
	color: #D8E7D6;
}

/* The band is 1028px wide with 928px of usable measure, but its three
   children were stacked and left-hung: a heading, a two-line lead and two
   buttons all down the left edge. That leaves the right third of a full-
   width dark card — the most expensive real estate on the page — empty,
   which is how a band composed as one column reads as a column the layout
   simply never filled.

   Row one keeps the full measure so the headline stays on one line (617px
   of 928px, with room). Row two splits: copy left, actions pushed right
   and centred against it. The gap grows from 18 to 40 because two columns
   need a trough, not a paragraph gap.

   Below 1025px the stacked order is the right one — there isn't the width
   to hold copy and buttons abreast, and the actions drop under the lead
   on their own line as before. */
@media (min-width: 1025px) {
	.elementor .elementor-element.rg-cta-band > .e-con-inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 18px 40px;
		align-items: center;
	}

	.elementor .elementor-element.rg-cta-band > .e-con-inner > :nth-child(1) {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.elementor .elementor-element.rg-cta-band > .e-con-inner > :nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	.elementor .elementor-element.rg-cta-band > .e-con-inner > :nth-child(3) {
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
	}
}

/* =============================================================
   6. Plugin component bridges (Rose Green Pharmacy Core)
   ============================================================= */
/* Map plugin palette variables to the theme tokens so both layers
   always agree, and sharpen its components. */
:root {
	--rgp-forest: var(--rg-forest);
	--rgp-pine: var(--rg-pine);
	--rgp-leaf: var(--rg-leaf);
	--rgp-mist: var(--rg-mist);
	--rgp-amber: var(--rg-amber);
	--rgp-line: var(--rg-line-soft);
	--rgp-radius: var(--rg-radius);
}

.rgp-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	background: var(--rg-mist);
	border: 1px solid var(--rg-line-soft);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--rg-forest);
	line-height: 1.3;
}

/* The indicator is a clock face, not a dot: it carries meaning the circle
   never did, and the infinite pulse it used to run has gone with it — an
   animation that read the same open or shut is a template flourish, not a
   signal. Stroke colour is the only thing that changes state. */
.rgp-status .rgp-status__icon {
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
}

.rgp-status--open .rgp-status__icon {
	color: #3FA45C;
}

.rgp-status--closed .rgp-status__icon {
	color: var(--rg-amber);
}

/* Hours table styling lives in style.css, keyed off `.rgp-hours` — the
   class the plugin actually emits. The block that used to sit here
   targeted `.rgp-hours-table` / `.rgp-today`, neither of which exists. */

/* Repeat prescriptions — the order card.
   The plugin ships `.rgp-order-by` with no theme styles at all (its own
   components.css is deliberately unenqueued), so what rendered was a
   hairline box behind an amber left rule: the visual grammar of a warning
   callout, not of a call to action — and the primary CTA inside it was an
   unstyled inline link. Directly beneath sat the checklist with its filled
   pine discs, leaving the left column as three competing containers set
   against the right column's four quiet steps.
   One container now. The status line, the turnaround note and a real button
   share a single mist card; the checklist drops onto the plain ground
   below as reassurance rather than as a second list. The amber goes
   because this is the section's own ask — a caution colour undercuts the
   one action we are asking the reader to take. */
.rgp-order-by {
	background: var(--rg-mist);
	border: 1px solid rgba(27, 82, 49, 0.1);
	border-radius: var(--rg-radius-lg);
	padding: 1.5rem 1.5rem 1.6rem;
	box-shadow: none;
}

/* The plugin stamps "Repeat prescriptions" on this card wherever it
   renders. On the homepage that duplicates the section's own kicker
   one line above; on the inner page it duplicates the page title. The
   headline, meta line and CTA carry everything the card needs. */
.rgp-order-by__kicker {
	display: none;
}

.rgp-order-by__headline {
	margin: 0;
	font-family: var(--rg-font-body);
	font-size: 1.03rem;
	font-weight: 600;
	letter-spacing: -0.004em;
	color: var(--rg-forest);
	line-height: 1.5;
}

/* The turnaround line carries a middle-dot separator, and `balance` in
   style.css split the string so evenly that the dot opened the second line
   — it read as a bullet, not a sentence. Sized to hold the whole line in
   the card (0.8rem lands ~13px inside the 388px of content width), with
   `pretty` as the fallback for narrower columns where it still has to wrap.
   Specificity beats the `.rgp-order-by p` balance rule by a class. */
.rgp-order-by .rgp-order-by__meta {
	/* Top separates the fine print from the status line; the bottom margin
	   is the one that matters — with 0, the CTA sat flush against the text
	   and the card read as one dense block. */
	margin: 0.8rem 0 0.95rem;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--rg-bark);
	line-height: 1.55;
	text-wrap: pretty;
}

.rgp-emergency {
	background: var(--rg-amber-tint);
	border: 1px solid rgba(111, 76, 16, 0.18);
	border-left: 4px solid var(--rg-amber);
	border-radius: var(--rg-radius-sm);
	padding: 1.2rem 1.4rem;
}

.rgp-emergency a {
	color: var(--rg-amber-dark);
	font-weight: 650;
}

/* The warning triangle rides inside the h3, which already sets the red —
   the icon only needs a size and a baseline tuck so it sits on the text
   line instead of straddling it. */
.rgp-emergency__icon {
	width: 20px;
	height: 20px;
	vertical-align: -4px;
}

/* The plugin's `.rgp-button` family is defined only in components.css,
   which the theme intentionally does not enqueue, so every variant — plain,
   --light, --ghost, --danger — has been rendering as a bare inline text
   link. This is the theme's bridge for all of them. Declared after
   `.rgp-emergency a` on purpose: both are (0,1,1), so source order decides
   and the button colours have to be the ones that win there.
   Prefixed with `a.` throughout so the variant modifiers beat the base at
   equal source position rather than losing to it. */
a.rgp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.7rem 1.3rem;
	border: 1px solid transparent;
	border-radius: var(--rg-radius-sm);
	background: var(--rg-forest);
	color: var(--rg-paper);
	font-family: var(--rg-font-body);
	font-size: 0.97rem;
	font-weight: 600;
	letter-spacing: 0.005em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 16px 30px -24px rgba(14, 46, 28, 0.95);
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.rgp-button:focus-visible {
	outline: 2px solid var(--rg-forest);
	outline-offset: 3px;
}

.rgp-button__icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* Same mark, theme-side: the CTA band's "Call us instead" phone glyph.
   It cannot live in the seeded label — Elementor runs button text through
   wp_kses_post(), which deletes inline SVG wholesale — so it is drawn in
   CSS instead: a masked data-URI sized to the label, coloured by the
   button's own text colour. Scoped to the --phone modifier the seeder adds
   so no other button grows a glyph. */
.rg-btn--phone .elementor-button::after,
a.rgp-button--phone::after {
	content: "";
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8 10a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8 10a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* On a dark ground the primary flips to the light fill — the same rule the
   hero and closing band already follow. */
a.rgp-button--light {
	background: var(--rg-paper);
	color: var(--rg-forest);
	box-shadow: 0 16px 30px -24px rgba(0, 0, 0, 0.7);
}

a.rgp-button--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: none;
}

a.rgp-button--danger {
	background: #B3261E;
	color: #fff;
}

.rgp-emergency__actions,
.rgp-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.15rem;
}

/* Inside the order card this link is the section's entire point, so it gets
   the trailing arrow the card links already use — scoped to this card so a
   "Call 999" button never grows one. */
.rgp-order-by .rgp-button::after {
	content: "\2192";
	font-weight: 500;
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	a.rgp-button:hover {
		background: var(--rg-forest-deep);
		transform: translateY(-1px);
		box-shadow: 0 20px 34px -24px rgba(14, 46, 28, 1);
	}
	a.rgp-button--light:hover {
		background: #fff;
		color: var(--rg-forest-deep);
	}
	a.rgp-button--ghost:hover {
		background: rgba(255, 255, 255, 0.12);
	}
	a.rgp-button--danger:hover {
		background: #8C1D16;
	}
	.rgp-order-by .rgp-button:hover::after {
		transform: translateX(3px);
	}
}

/* Trust strip — styled as a quiet credentials line rather than a row of
   marketing ticks: smaller, muted, wider tracking. Left-aligned to sit
   with the hero copy above it; a centred row of ticks floating in the
   middle of the page is a generated pattern. */
.rgp-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.1rem;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	color: var(--rg-bark);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rgp-trust .rgp-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.rgp-trust .rgp-trust__sep {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--rg-sage);
	opacity: 0.7;
}

/* Services read as a practical directory: a clear name, one sentence and
   a defined next action, separated by rules instead of floating cards. */
.rgp-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	/* Container defaults: Elementor gives `.e-con` 10px of padding, which
	   would pull the whole register 10px right of the column above it. */
	padding: 0;
	border-top: 1px solid var(--rg-line);
}

/* These rows are <a> elements, and style.css §5 styles the card anchor as
   `.elementor a.rg-card` — (0,2,1), which outranks the (0,2,0) this block
   started with and quietly reverted every property below back to the
   floating-card treatment. `.elementor ` lifts it to (0,3,0) so the ledger
   wins on its own merits rather than on stylesheet order. */
.elementor .rgp-services .rg-card,
.rgp-services a.rg-card {
	display: grid;
	grid-template-columns: var(--rg-service-icon-col, 48px) minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	column-gap: var(--rg-service-gap, 1.25rem);
	row-gap: 0.25rem;
	align-items: center;
	padding: 1.25rem var(--rg-service-pad-x, 1rem);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rg-line);
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	box-sizing: border-box;
	width: 100%;
}

.rgp-services .rg-card__icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: var(--rg-service-icon-size, 44px);
	height: var(--rg-service-icon-size, 44px);
	margin: 0;
	border: 0;
	border-radius: 6px;
	background: var(--rg-mist);
	flex-shrink: 0;
}

.rgp-services .rg-card h3,
.rgp-services .rg-card .rg-card__title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-family: var(--rg-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}

/* The body is its own widget now, so the grid placement moves to the
   wrapper (which is the grid item); the `<p>` inside keeps only its
   measure. */
.rgp-services .rg-card__body {
	grid-column: 2;
	grid-row: 2;
}

.rgp-services .rg-card p {
	max-width: var(--rg-service-desc-max-width, 680px);
	margin: 0;
	line-height: 1.55;
}

.rgp-services .rg-card__link {
	grid-column: 3;
	grid-row: 1 / span 2;
	margin: 0 0 0 0.5rem;
	padding: 0.35rem 0.75rem;
	white-space: nowrap;
	justify-self: end;
	flex-shrink: 0;
}

@media (hover: hover) {
	/* Same specificity trap as the base rule above: `.elementor a.rg-card:hover`
	   is (0,3,1) and would otherwise win, putting the white card background
	   back on hover of a row that is meant to stay transparent. */
	.elementor .rgp-services .rg-card:hover,
	.rgp-services a.rg-card:hover {
		background: transparent;
		border-bottom-color: var(--rg-brick);
	}

	.rgp-services .rg-card:hover .rg-card__icon {
		background: var(--rg-mist);
		color: var(--rg-pine);
	}
}

@media (max-width: 840px) {
	.elementor .rgp-services .rg-card,
	.rgp-services a.rg-card {
		grid-template-columns: var(--rg-service-icon-col, 44px) minmax(0, 1fr);
		padding: 1.15rem var(--rg-service-pad-x, 0.75rem);
	}

	.rgp-services .rg-card__icon {
		width: 40px;
		height: 40px;
	}

	.rgp-services .rg-card__link {
		grid-column: 2;
		grid-row: 3;
		margin-top: 0.4rem;
		margin-left: 0;
		justify-self: start;
	}
}

	.rg-stats {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.rg-stat {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.22);
		padding: 1.05rem 0;
	}

	/* Keep the icon–digit lockup at the smaller mobile scale: the icon
	   centres against the digits with the same 10px air, caption below. */
	.rg-stat {
		column-gap: 10px;
	}


	.rg-stat:first-child {
		border-top: 0;
		padding-top: 0;
	}
}

/* Pharmacy First conditions use the same ledger treatment, so the service
   reads like a useful eligibility list rather than six promotional tiles. */
.rgp-conditions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 0;
	border-top: 1px solid var(--rg-line);
}

.rgp-condition {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rg-line);
	border-radius: 0;
	padding: 1.15rem 1.25rem;
	/* A container of two widgets now rather than an `<h3>` and a `<p>` in
	   flow: the 0.3rem between them is the margin `.rgp-condition h3` used
	   to carry, moved onto the container because the heading widget zeroes
	   its own. The raw chips rosegreen_detail_sections() prints at render
	   time are still plain `<div>`s, where that margin still does the work
	   — hence the matching `.elementor-heading-title` reset below. */
	gap: 0.3rem;
	box-shadow: none;
	color: var(--rg-ink);
	transition: border-color 0.2s ease;
}

.rgp-condition .elementor-heading-title {
	margin: 0;
}

.rgp-condition h3 {
	margin: 0 0 0.3rem;
	font-family: var(--rg-font-body);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0;
}

/* The eligibility chip — who the service is for, as data rather than a
   fourth sentence of prose. Small caps on the mist ground; sits between
   the name and the one-line description. */
.rgp-condition__chip {
	display: inline-block;
	width: fit-content;
	margin: 0 0 0.45rem;
	padding: 0.18rem 0.55rem;
	border: 1px solid var(--rg-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: var(--rg-forest);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rgp-condition p {
	margin: 0;
	color: var(--rg-bark);
	font-weight: 400;
}

@media (min-width: 641px) {
	.rgp-condition:nth-child(odd) {
		border-right: 1px solid var(--rg-line);
		padding-left: 0;
		padding-right: 1.5rem;
	}

	.rgp-condition:nth-child(even) {
		padding-left: 1.5rem;
		padding-right: 0;
	}

	/* An odd item count leaves the last cell without a neighbour: its right
	   divider would draw a line into nothing. */
	.rgp-condition:last-child {
		border-right: 0;
		padding-right: 0;
	}
}

@media (max-width: 640px) {
	.rgp-conditions {
		grid-template-columns: 1fr;
	}

	.rgp-condition {
		padding-inline: 0;
	}
}

/* Nine conditions (seven Pharmacy First plus urgent medicine supply and
   the blood pressure check, as the in-pharmacy poster lists) fill a 3×3
   exactly. Declared after the 641px block on purpose and written as a
   complete scheme, not a patch on the two-column odd/even rules: those
   still match here, so every property they set is restated for the three-
   column shape — uniform gutters, dividers on a cell's LEFT edge, first
   column flush with the heading above, last column flush right. The first
   attempt only patched the third column, and the leftover odd/even
   paddings zig-zagged columns one and three in and out, row by row. */
@media (min-width: 900px) {
	.rgp-conditions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Every box property restated per column position at the same (0,2,0)
	   weight as the two-column odd/even rules above — those stay in play
	   at this width, so anything not restated here leaks through and
	   zig-zags the columns row by row. Dividers live on a cell's LEFT
	   edge (columns two and three); column one stays flush with the
	   heading above and column three flush right. */
	.rgp-condition:nth-child(3n + 1) {
		border-left: 0;
		border-right: 0;
		padding-left: 0;
		padding-right: 1.5rem;
	}

	.rgp-condition:nth-child(3n + 2) {
		border-left: 1px solid var(--rg-line);
		border-right: 0;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.rgp-condition:nth-child(3n) {
		border-left: 1px solid var(--rg-line);
		border-right: 0;
		padding-left: 1.5rem;
		padding-right: 0;
	}
}

@media (hover: hover) {
	.rgp-condition:hover {
		background: transparent;
		border-bottom-color: var(--rg-brick);
	}
}

/* =============================================================
   7. Inner pages: page-title band
   The band is the outer Elementor container; its .e-con-inner is the
   shell, and it ships padding-inline: 0 because it expects the outer
   element to carry the inset. The old `padding: clamp(...) 0` here did
   two bad things: it zeroed that inset (so every inner page ran its copy
   flush to the window edge) and it stacked a second helping of vertical
   rhythm on top of the 90/64/44 Elementor already applies — ~145px of
   empty sand above a three-line intro. The two radial washes were also
   the last layered-atmosphere holdout; the band is flat sand now.
   Rhythm and inset are redeclared at the foot of this file, after the
   `.rg-shell` media rules, so they win on order rather than on weight.
   ============================================================= */
.rg-pagehead {
	position: relative;
	overflow: hidden;
	background: var(--rg-sand);
	border-bottom: 1px solid var(--rg-line-soft);
}

.rg-pagehead .elementor-heading-title {
	margin: 0;
}

/* Photo variant: same band, photograph behind the title. The scrim is
   painted by ::before — Elementor's overlay div never renders on these
   containers, and the home hero already works this way. The paint rules
   below flip the type to the home hero's palette so the same words that
   read ink-on-sand read white-on-forest here. Only the band's own
   widgets are scoped: the page body stacks in a separate paper band. */
.elementor .rg-pagehead--photo {
	background-color: var(--rg-forest) !important;
}

/* The scrim must carry the contrast alone — a bright shelf photo at
   30% washes the lead out entirely (that was the v1 lesson). Deep left
   where the text sits, opening up to the right where the photo shows. */
.elementor .rg-pagehead--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 1 !important;
	background-color: transparent !important;
	background-image:
		linear-gradient(
			101deg,
			rgba(9, 28, 16, 0.90) 0%,
			rgba(10, 30, 17, 0.82) 34%,
			rgba(12, 34, 19, 0.66) 55%,
			rgba(16, 42, 24, 0.44) 74%,
			rgba(20, 50, 29, 0.30) 100%
		),
		linear-gradient(
			to top,
			rgba(8, 26, 15, 0.45) 0%,
			rgba(8, 26, 15, 0) 30%
		);
}

.elementor .rg-pagehead--photo > .e-con-inner {
	position: relative;
	z-index: 1;
}

.elementor .rg-pagehead--photo .elementor-heading-title {
	color: #fff;
}

.elementor .rg-pagehead--photo .rg-kicker {
	color: var(--rg-lime);
}

.elementor .rg-pagehead--photo .elementor-widget-text-editor {
	color: #E7F0E3;
	font-size: 1.08rem;
}

.elementor .rg-pagehead--photo .elementor-widget-text-editor a {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* The lead paragraph is the only body child seeded into the band (the
   rest of the page stacks in bands below it); keep it quiet, not white. */
.elementor .rg-pagehead--photo .elementor-widget-text-editor p {
	max-width: none;
}

/* The breadcrumb sits above the band on sand — unchanged. But its last
   crumb (this page) should not claim contrast against a photo it does
   not overlap; no change needed, just documented. */

/* =============================================================
   8. Motion & polish
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
	.rg-card,
	.rg-step,
	.rg-phone-chip,
	.rg-btn .elementor-button {
		transition: none;
	}
}

/* =============================================================
   8. Responsive rhythm
   Elementor's generated CSS zeroes container padding vars on small
   screens and doesn't emit mobile rules for seeded values, so the
   section rhythm is enforced here. !important beats Elementor's
   per-element specificity; scope is mobile/tablet only.
   ============================================================= */
@media (max-width: 1024px) {
	.rg-shell {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}@media (max-width: 1024px) {
	/* Header switches to the burger below 1025 (the nav widget is seeded
	   with dropdown: tablet, matching this breakpoint). Same squeeze as
	   mobile — Elementor's generated CSS zeroes the seeded row direction
	   and its wrap rule outranks a two-class selector. */
	.rg-header .rg-header__bar .e-con-inner {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		gap: 10px !important;
	}

	.rg-header__bar .e-con-inner > * {
		min-width: 0;
	}

	.rg-phone-chip {
		display: none !important;
	}

	/* The nav has collapsed to a toggle here, so the bar has far more room
	   than the desktop row it shares with five links and two actions — the
	   wordmark needs no reduction of its own at this width. */

	.rg-header__actions {
		gap: 6px !important;
	}

	.rg-header__actions .rg-btn .elementor-button {
		padding: 0.45rem 0.75rem !important;
		font-size: 0.8rem !important;
		white-space: nowrap;
	}

	/* Widget gap + dropdown margin add 28px of phantom height under the
	   toggle; collapse both. --menu-height must be defined here: Elementor
	   Pro scopes it to .elementor-nav-menu--toggle, a class the seeded
	   widget never receives, so without it the open menu computes 0. */
	.rg-header .elementor-widget-nav-menu {
		min-width: 0;
		gap: 0 !important;
		--gap: 0px;
		--menu-height: 80vh;
		position: static !important; /* Elementor sets relative on widgets — that would trap the dropdown panel inside the 40px burger; let it anchor to the bar below */
		width: auto !important; /* Elementor stretches the widget to the inner width (974px at tablet), blowing the row out after the wordmark; hug the burger instead */
		flex: 0 0 auto !important;
		/* Menu goes on the RIGHT: wordmark left, CTA beside it, burger last —
		   the thumb position every mobile header uses. Without the order,
		   the burger floats just after the logo with dead space before the
		   actions cluster. */
		order: 3;
	}

	.rg-header .rg-header__actions {
		order: 2;
	}

	/* The shut panel is display:block/height:0 but still ~145px wide, and
	   as a flex child it steals that width from the row (the CTA overflowed
	   its slot). Float it under the bar instead; its width then tracks the
	   bar, not the widget. Elementor's JS only animates max-height via
	   --menu-height, which we define above, so this is safe. */
	.rg-header .rg-header__bar,
	.rg-header .rg-header__bar.rg-shell {
		position: relative !important;
	}

	.rg-header .elementor-nav-menu--dropdown {
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		right: 0 !important;
		margin: 0 !important;
		/* Same ground as the bar: the panel hangs off it and should read as
		   one surface, not a cream sheet under a grey bar. */
		background: var(--rg-header-bg);
		border: 1px solid var(--rg-line);
			border-top: 0;
			border-radius: 0;
		box-shadow: none;
	}
}

@media (max-width: 767px) {
	.rg-shell {
		padding-top: 44px !important;
		padding-bottom: 44px !important;
		}

	.rg-hero .rg-shell {
		padding-top: 60px !important;
		padding-bottom: 60px !important;
	}

	.rg-cta-band {
		padding-top: 36px !important;
		padding-bottom: 36px !important;
		padding-left: 22px !important;
		padding-right: 22px !important;
	}

	.rg-footer .rg-shell {
		padding-top: 52px !important;
		padding-bottom: 24px !important;
	}

	.rg-header__bar.rg-shell,
	.rg-header .rg-header__bar {
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}

	/* Two-column splits stack comfortably */
	.rg-two-col {
		gap: 32px !important;
	}

	/* Phones: keep the lockup compact so the toggle and the phone action
	   still clear it on a narrow bar. */
	.rg-header .rg-wordmark__name {
		font-size: 1.12rem;
	}

	.rg-header .rg-wordmark__sub {
		font-size: 0.5rem;
		letter-spacing: 0.26em;
	}

	.rg-header .elementor-menu-toggle {
		padding: 0.35rem 0.5rem;
	}
}

/* Elementor editor: keep our absolute decor out of the canvas grid */
.elementor-editor-active .rg-hero__deco,
.elementor-editor-active .rg-hero__leaf {
	display: none;
}

/* =============================================================
   9. Inner pages: band rhythm, copy and lists
   Declared at the foot of the file, after every `.rg-shell` media rule,
   because those rules also target `.rg-pagehead` (it carries both
   classes) with !important. Same weight, later in the file, wins.
   ============================================================= */

/* The band draws the background only — vertical rhythm belongs to the
   inner wrapper, the inset to the band. */
.rg-pagehead,
.rg-pagehead.rg-shell {
	padding-block: 0 !important;
	/* The inset lives on the INNER box, not here: the header, footer and
	   breadcrumb all centre a 1180px box and put their 24px inside it, so
	   their text edge lands at (vw − 1180)/2 + 24. With the inset on the
	   outer container the inner box re-centred 24px wider and every page
	   title sat 24px left of the breadcrumb directly above it. */
	padding-inline: 0 !important;
}

.rg-pagehead > .e-con-inner {
	padding-top: var(--padding-top, clamp(2.75rem, 5vw, 4.25rem)) !important;
	padding-bottom: var(--padding-bottom, clamp(2.75rem, 5vw, 4.25rem)) !important;
	padding-left: var(--padding-left, 24px) !important;
	padding-right: var(--padding-right, 24px) !important;
}

/* The paper band hosting a photo page's body mirrors the pagehead's
   inset system: the band paints, the inner box paces. Elementor's
   generator zeroed the seeded vertical padding on this container, so
   the rhythm is re-asserted here rather than trusted from the database
   — and the outer padding is zeroed for the same text-edge alignment
   reason as the pagehead above. */
.rg-pagebody,
.rg-pagebody.rg-shell {
	padding-block: 0 !important;
	padding-inline: 0 !important;
}

.rg-pagebody > .e-con-inner {
	padding-top: var(--padding-top, clamp(2.5rem, 4.5vw, 3.75rem)) !important;
	padding-bottom: var(--padding-bottom, clamp(2.5rem, 4.5vw, 3.75rem)) !important;
	padding-left: var(--padding-left, 24px) !important;
	padding-right: var(--padding-right, 24px) !important;
}

/* Photo heroes run shorter than the old 320px+ bands but never below a
   floor — 220px desktop / 180px mobile keeps the photograph present
   even where a page's title block is short (Contact). The floor is on
   the outer container with !important: Elementor's generated CSS writes
   min-height:0 variants that would otherwise win the tie. */
.rg-pagehead--photo > .e-con-inner {
	padding-top: var(--padding-top, clamp(2.1rem, 3.6vw, 3rem)) !important;
	padding-bottom: var(--padding-bottom, clamp(2.1rem, 3.6vw, 3rem)) !important;
}

.elementor .rg-pagehead--photo,
.rg-pagehead--photo {
	min-height: 220px !important;
}

@media (max-width: 767px) {
	.elementor .rg-pagehead--photo,
	.rg-pagehead--photo {
		min-height: 180px !important;
	}
}

/* The lead on a photo hero is the band's only body copy; give it the
   measure and weight that survives the scrim. */
.rg-pagehead--photo .rg-lead {
	color: #E4EEDF;
	font-weight: 450;
	text-wrap: balance;
}

@media (max-width: 1024px) {
	.rg-pagehead,
	.rg-pagehead.rg-shell {
		/* Re-assert outer 0 against the generic .rg-shell squeeze above; the
		   inset moves to the inner box (see the base rule). */
		padding-inline: 0 !important;
	}

	.rg-pagebody,
	.rg-pagebody.rg-shell {
		padding-inline: 0 !important;
	}

	.rg-pagehead > .e-con-inner,
	.rg-pagebody > .e-con-inner {
		padding-left: var(--padding-left, 20px) !important;
		padding-right: var(--padding-right, 20px) !important;
	}

	/* The band squeezed to 20px, so the trail and the form follow it — at
	   24px each, their text sat 4px right of the page title above. Tag
	   prefix beats the (0,1,0) base rules, which are declared later in the
	   file than this block and would win on source order alone. */
	nav.rg-breadcrumb {
		padding-inline: 20px;
	}

	section.rg-form {
		padding-inline: 20px;
	}
}

/* Display scale for the inner-page title: the bare `h1` reset hands down
   40px, which reads small under a full-bleed band. Kept just above the
   home hero's own clamp so a page title feels like a title rather than a
   paragraph, and never allowed to bottom out below the reset — the first
   attempt used 3.6vw, which computed to 39.1px at 1076 and made the rule
   a fraction smaller than the thing it replaced.

   Scoped to the `h1`: the eyebrow above it is an Elementor heading widget
   too (`.rg-kicker`, rendered as a div), so a bare `.elementor-heading-title`
   here scaled it to 43px as well and the band ran two equal titles back to
   back. */
.rg-pagehead h1.elementor-heading-title {
	font-size: clamp(2.15rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* Every line in the band stays on a readable measure — the second
   paragraph on /about was running the full 1076px shell. */
.rg-pagehead .elementor-widget-text-editor p,
.rg-pagebody .elementor-widget-text-editor p {
	max-width: none;
}

/* Body h2s are section heads, not page titles: the bare h2 clamp had
   "Dr. Rose Green" rendering at 45.6px — larger than the page's own h1.
   The .rg-pagehead twin covers the no-hero pages (accessibility), this
   covers the paper band the photo pages moved their body into. */
.rg-pagehead .elementor-widget-text-editor > h2,
.rg-pagebody .elementor-widget-text-editor > h2 {
	font-size: 1.6rem;
	line-height: 1.25;
	margin: 2.35rem 0 0.6rem;
	text-wrap: balance;
}

.rg-pagehead .elementor-widget-text-editor > h2:first-child,
.rg-pagebody .elementor-widget-text-editor > h2:first-child {
	margin-top: 0;
}

/* The address line on /contact leads with a bold run; give it the
   weight of a real address rather than an emphasised fragment.
   Scoped to a strong inside the first paragraph so the .rg-lead
   openers on the other six pages are untouched. */
.rg-pagehead .elementor-widget-text-editor > p:first-child strong,
.rg-pagebody .elementor-widget-text-editor > p:first-child strong,
/* The contact group filter wraps the address run in
   .rg-contact__details, which demotes the paragraphs from direct
   children — match them inside the group as well. */
.rg-contact__details > p:first-child strong {
	font-family: var(--rg-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--rg-forest);
}

/* Services and Pharmacy First ship their content as a bare <ul>: six
   plain bullets stacked down one long column. Read as a service register
   rather than a grid of floating cards. */
.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist),
.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) {
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--rg-line);
}

.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist) li,
.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) li {
	position: relative;
	padding: 0.9rem 1.15rem 0.9rem 2.65rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rg-line);
	border-radius: 0;
	color: var(--rg-ink);
	font-weight: 600;
	line-height: 1.45;
	min-width: 0;
	overflow-wrap: anywhere;
	transition: border-color 0.2s ease;
}

.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist) li::before,
.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) li::before {
	content: "\2713";
	position: absolute;
	left: 1.05rem;
	top: 0.95rem;
	color: var(--rg-leaf);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

@media (min-width: 640px) {
	.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist) li:nth-child(odd),
	.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) li:nth-child(odd) {
		border-right: 1px solid var(--rg-line);
	}
}

@media (max-width: 639px) {
	.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist),
.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) {
		grid-template-columns: 1fr;
	}
}

@media (hover: hover) {
	.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist) li:hover,
	.rg-pagebody .elementor-widget-text-editor > ul:not(.rg-checklist) li:hover {
		border-bottom-color: var(--rg-brick);
	}
}

/* /contact is address + phone + hours table in one widget. Split it at the
   table: details left, hours right.

   Grouping matters more than the split does. In a grid, an item spanning
   several auto tracks has its height distributed into them, so the tall
   hours table dragged row two down and opened a ~146px hole *between* the
   address and the phone number. A float keeps the paragraphs together but
   can only be placed where it sits in the flow — after them — so it dropped
   the table underneath. Only one row with two cells fixes it, and the
   paragraphs have to be a single cell to do that: functions.php groups them
   into `.rg-contact__details` as the page renders, without touching the
   database. If that grouping is ever missing (the owner reshapes the
   widget), the float fallback below still avoids the hole. */
@media (min-width: 900px) {
	/* The contact split used to target `.rg-pagehead` only; since the photo
	   heroes moved the body into `.rg-pagebody`, the widget lives there —
	   either class hosts it now. */
	.rg-pagehead .elementor-widget-text-editor:has(> .rg-opening-hours),
	.rg-pagebody .elementor-widget-text-editor:has(> .rg-opening-hours) {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		column-gap: clamp(1.5rem, 4vw, 3.5rem);
		align-items: start;
	}

	.rg-pagehead .elementor-widget-text-editor:has(> .rg-opening-hours) > table {
		grid-column: 2;
		grid-row: 1;
		margin-top: 0;
	}

	.rg-contact__details {
		grid-column: 1;
	}

	.rg-pagehead .elementor-widget-text-editor:has(> .rg-opening-hours):not(:has(> .rg-contact__details)),
	.rg-pagebody .elementor-widget-text-editor:has(> .rg-opening-hours):not(:has(> .rg-contact__details)) {
		display: flow-root;
		grid-template-columns: none;
	}

	.rg-pagehead .elementor-widget-text-editor:has(> .rg-opening-hours):not(:has(> .rg-contact__details)) > table {
		float: right;
		grid-column: auto;
		width: 56%;
		max-width: 560px;
		margin: 0 0 1.25rem clamp(1.5rem, 4vw, 3.5rem);
	}
}

/* =============================================================
   10. Inner pages: closing band
   Rendered by the theme (functions.php) after the Elementor content —
   every inner page previously ended on a paragraph and then the footer.
   ============================================================= */
.rg-next {
	background: var(--rg-mist);
	padding: clamp(2.5rem, 5vw, 3.75rem) 24px;
}

.rg-next__shell {
	max-width: 1180px;
	margin-inline: auto;
	display: grid;
	gap: 2.25rem;
}

@media (min-width: 900px) {
	.rg-next__shell {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 4rem);
		/* Stretched, not start-aligned: the link list runs ~336px against
		   a ~166px intro, and start-aligning left a third of the band
		   empty. */
		align-items: stretch;
	}
}

.rg-next h2 {
	font-family: var(--rg-font-display);
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.16;
	letter-spacing: -0.015em;
	color: var(--rg-forest);
	margin: 0 0 0.6rem;
	text-wrap: balance;
}

.rg-next h3 {
	font-family: var(--rg-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-pine);
	margin: 0 0 0.85rem;
}

.rg-next p {
	color: var(--rg-bark);
	max-width: 56ch;
	margin: 0;
}

.rg-next__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 1.5rem;
}

.rg-next__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.3rem;
	border-radius: var(--rg-radius-sm);
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Same rule as the header CTA: on a light surface the primary is solid
   green — the amber fill that used to sit here on mist read as a muddy
   brown-gold. Amber is the accent for dark grounds only. */
.rg-next__actions a.is-primary {
	background: var(--rg-forest);
	color: #fff;
}

.rg-next__actions a.is-primary:focus-visible {
	background: var(--rg-forest-deep);
}

@media (hover: hover) {
	.rg-next__actions a.is-primary:hover {
		background: var(--rg-forest-deep);
	}
}

.rg-next__actions a.is-ghost {
	background: transparent;
	border-color: rgba(18, 58, 36, 0.24);
	color: var(--rg-forest);
}

.rg-next__actions a.is-ghost:focus-visible {
	background: #FCFDFB;
	border-color: var(--rg-pine);
}

@media (hover: hover) {
	.rg-next__actions a.is-ghost:hover {
		background: #FCFDFB;
		border-color: var(--rg-pine);
	}
}

.rg-next__links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
}

.rg-next__links li {
	min-width: 0;
}

.rg-next__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 44px;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(18, 58, 36, 0.12);
	color: var(--rg-forest);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.rg-next__links a::after {
	content: "\2192";
	flex: 0 0 auto;
	color: var(--rg-leaf);
	transition: transform 0.2s ease;
}

.rg-next__links a:focus-visible {
	color: var(--rg-pine);
}

@media (hover: hover) {
	.rg-next__links a:hover {
		color: var(--rg-pine);
	}

	.rg-next__links a:hover::after {
		transform: translateX(3px);
	}
}

/* Declared after the base `.rg-next__actions` rule above so the auto margin
   wins the specificity tie — the first attempt sat before it and was
   silently overridden, leaving the calls to action where the copy ended. */
@media (min-width: 900px) {
	.rg-next__intro {
		display: flex;
		flex-direction: column;
	}

	.rg-next__actions {
		margin-top: auto;
		padding-top: 1.5rem;
	}
}

@media (max-width: 767px) {
	.rg-next {
		padding-inline: 20px;
	}

	.rg-next__actions a {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rg-pagehead .elementor-widget-text-editor > ul:not(.rg-checklist) li,
	.rg-next__actions a,
	.rg-next__links a,
	.rg-next__links a::after {
		transition: none;
	}
}

/* =============================================================
   11. The 404 page
   ============================================================= */
/* 404.php renders plain markup — there is no Elementor container behind
   it — so the inner-page band has to be restated rather than inherited.
   `.rg-pagehead`'s rhythm lives on its `.e-con-inner` child, which a
   template doesn't have, and `.rg-shell`'s width comes from Elementor's
   generated CSS rather than from this file. The rules below cover both:
   sand band, the same eyebrow and title scale as a real inner page, and a
   measure narrow enough that a lost reader can actually scan it. */
.rg-404 {
	background: var(--rg-sand);
	border-bottom: 1px solid var(--rg-line-soft);
}

.rg-404__inner {
	max-width: 62ch;
	margin-inline: auto;
	padding: clamp(3.5rem, 7vw, 6rem) 24px;
}

.rg-404 h1 {
	font-size: clamp(2.15rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin-block: 0.35rem 1rem;
}

.rg-404 .rg-lead {
	max-width: 62ch;
}

/* The search a lost visitor actually wants, dressed as a site control.
   The submit control is a bare <button>, which is exactly what the bare-
   control reset in style.css section 12 exists for — without it, this
   renders in the WordPress pink from Hello Elementor's reset. */
.rg-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.9rem;
}

.rg-search__label {
	width: 100%;
	font-family: var(--rg-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-pine);
}

.rg-search__input {
	flex: 1 1 15rem;
	min-height: 44px;
	min-width: 0;
	padding: 0.7rem 0.95rem;
	border: 1px solid rgba(27, 82, 49, 0.24);
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-ink);
	font-family: var(--rg-font-body);
	font-size: 1rem;
}

.rg-search__input::placeholder {
	color: var(--rg-bark);
	opacity: 1;
}

.rg-search__input:focus-visible {
	border-color: var(--rg-leaf);
}

.rg-search__submit {
	min-height: 44px;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--rg-pine);
	border-radius: var(--rg-radius-sm);
	background: var(--rg-forest);
	color: #fff;
	font-family: var(--rg-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rg-search__submit:focus-visible {
	background: var(--rg-pine);
	border-color: var(--rg-pine);
	color: #fff;
}

@media (hover: hover) {
	.rg-search__submit:hover {
		background: var(--rg-pine);
		border-color: var(--rg-pine);
		color: #fff;
	}
}

.rg-404 .rg-next__actions {
	margin-top: 1.9rem;
}

/* The last line of defence: the four pages worth sending someone to. */
.rg-404__nav {
	margin-top: 2.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--rg-line-soft);
}

.rg-404__nav h2 {
	font-family: var(--rg-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-pine);
	margin: 0 0 0.9rem;
}

.rg-404__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.rg-404__nav a {
	color: var(--rg-pine);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (hover: hover) {
	.rg-404__nav a:hover {
		color: var(--rg-forest);
	}
}

/* =============================================================
   12. Service forms
   ============================================================= */
/* Appended below the page band rather than inside it, so these sit on the
   body background at the same measure as the shell they follow. Fields
   run two or three across because registration asks for seven of them and
   a single 1028px-wide column reads as a spreadsheet; text areas and the
   service picker opt out and take the whole row. */
.rg-form {
	/* The shell measure, not its own: 1180px border-box with the same 24px
	   inset puts the heading at exactly the text edge of the header, footer
	   and page band above it. The old 1076px box centred 52px right of
	   everything and read as a misplaced panel. */
	max-width: 1180px;
	box-sizing: border-box;
	margin-inline: auto;
	padding: clamp(2.5rem, 5vw, 4rem) 24px 0;
}

.rg-form--contact,
.rg-form:last-of-type {
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.rg-form + .rg-form {
	border-top: 1px solid var(--rg-line-soft);
}

.rg-form h2 {
	margin-bottom: 0.6rem;
	/* The bare h2 clamp (2.85rem) rendered larger than the page's own h1
	   and read as a second page title — this is a section head. */
	font-size: 1.6rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.rg-form__intro {
	max-width: none;
	margin-bottom: 1.75rem;
	line-height: 1.7;
}

.rg-form__form {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 1.15rem 1.25rem;
	align-content: start;
}

.rg-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	min-width: 0;
}

.rg-form__field--wide,
.rg-form__check,
.rg-form__actions,
.rg-form__note,
.rg-form__notice {
	grid-column: 1 / -1;
}

.rg-form__field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--rg-forest);
}

.rg-form__req {
	color: var(--rg-danger);
	margin-left: 0.2rem;
}

.rg-form__field input:not([type="checkbox"]),
.rg-form__field select,
.rg-form__field textarea {
	min-height: 44px;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(27, 82, 49, 0.24);
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-ink);
	font-family: var(--rg-font-body);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rg-form__field textarea {
	min-height: 7rem;
	resize: vertical;
}

.rg-form__field input:focus-visible,
.rg-form__field select:focus-visible,
.rg-form__field textarea:focus-visible {
	border-color: var(--rg-leaf);
	outline: 2.5px solid var(--rg-leaf);
	outline-offset: 1px;
}

.rg-form__field input::placeholder,
.rg-form__field textarea::placeholder {
	color: var(--rg-bark);
	opacity: 1;
}

.rg-form__check {
	margin: 0;
}

.rg-form__check label {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	font-weight: 500;
	color: var(--rg-ink);
	cursor: pointer;
	line-height: 1.55;
}

.rg-form__check input {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.25rem;
	accent-color: var(--rg-pine);
}

.rg-form__hint {
	display: block;
	font-size: 0.85rem;
	color: var(--rg-bark);
	line-height: 1.5;
}

.rg-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.rg-form__actions a,
.rg-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--rg-pine);
	border-radius: var(--rg-radius-sm);
	background: var(--rg-forest);
	color: #fff;
	font-family: var(--rg-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rg-form__submit:focus-visible {
	background: var(--rg-pine);
	border-color: var(--rg-pine);
	color: #fff;
}

@media (hover: hover) {
	.rg-form__submit:hover {
		background: var(--rg-pine);
		border-color: var(--rg-pine);
		color: #fff;
	}
}

/* Light surface, so solid green by the same rule as the header and closing
   CTAs — amber is reserved for dark grounds and for small marks. */
.rg-form__actions a.is-primary {
	background: var(--rg-forest);
	border-color: var(--rg-forest);
	color: #fff;
}

.rg-form__actions a.is-primary:focus-visible {
	background: var(--rg-forest-deep);
	border-color: var(--rg-forest-deep);
	color: #fff;
}

@media (hover: hover) {
	.rg-form__actions a.is-primary:hover {
		background: var(--rg-forest-deep);
		border-color: var(--rg-forest-deep);
		color: #fff;
	}
}

.rg-form__actions a.is-ghost {
	background: transparent;
	border-color: rgba(18, 58, 36, 0.24);
	color: var(--rg-forest);
}

.rg-form__actions a.is-ghost:focus-visible {
	background: #FCFDFB;
	border-color: var(--rg-pine);
	color: var(--rg-forest);
}

@media (hover: hover) {
	.rg-form__actions a.is-ghost:hover {
		background: #FCFDFB;
		border-color: var(--rg-pine);
		color: var(--rg-forest);
	}
}

.rg-form__note {
	margin: 0;
	font-size: 0.92rem;
	color: var(--rg-bark);
}

/* The counter-voice line under the submit button — set smaller and
   quieter than the “or call” note so the pair read as one reassurance
   block: what happens next, then the fallback. */
.rg-form__reassure {
	margin: 0.85rem 0 0;
	font-size: 0.92rem;
	color: var(--rg-forest);
}

.rg-form__notice {
	margin: 0;
	padding: 1rem 1.15rem;
	border-radius: var(--rg-radius-sm);
	font-size: 0.97rem;
	line-height: 1.6;
}

.rg-form__notice--ok {
	background: var(--rg-mist);
	border: 1px solid rgba(46, 125, 70, 0.35);
	color: var(--rg-forest);
}

.rg-form__notice--bad {
	background: rgba(179, 38, 30, 0.06);
	border: 1px solid rgba(179, 38, 30, 0.4);
	color: #8C1D17;
}

.rg-form__notice ul {
	margin: 0.45rem 0 0;
	padding-left: 1.15rem;
}

/* The honeypot. Off-screen rather than `display: none`, because a bot
   that checks computed visibility before filling a field is a bot worth
   having fooled. `tabindex="-1"` keeps it out of the tab order so a
   keyboard user never lands in a field they cannot see. */
.rg-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* =============================================================
   13. The privacy notice
   ============================================================= */
/* Served from the theme rather than a page — see
   rosegreen_serve_privacy_policy() in functions.php. Two bands, the same
   inner measure: a sand title block that matches the inner-page head, and
   a paper column carrying the notice itself. Long-form copy wants a
   narrower measure than the shell offers, so both sections cap at 68ch
   rather than spanning the full 1076px. */
.rg-doc {
	background: var(--rg-sand);
	border-bottom: 1px solid var(--rg-line-soft);
}

.rg-doc__body {
	background: var(--rg-paper);
}

.rg-doc__inner {
	max-width: 68ch;
	margin-inline: auto;
	padding: clamp(2.75rem, 6vw, 5rem) 24px;
}

.rg-doc h1 {
	font-size: clamp(2.15rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
	margin-block: 0.35rem 1rem;
}

.rg-doc__meta {
	margin: 1.4rem 0 0;
	font-size: 0.86rem;
	color: var(--rg-bark);
}

/* Section headings: the reset hands h2 down to clamp(1.7rem, 3vw, 2.4rem),
   which is a display size and turns a nine-section notice into nine
   competing titles. */
.rg-doc h2 {
	font-size: 1.22rem;
	font-weight: 600;
	margin: 2.35rem 0 0.6rem;
	text-wrap: balance;
}

.rg-doc__body h2:first-child {
	margin-top: 0;
}

.rg-doc p,
.rg-doc li {
	line-height: 1.75;
}

.rg-doc p {
	margin-bottom: 1rem;
}

.rg-doc ul {
	margin: 0 0 1.1rem;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.5rem;
}

.rg-doc a {
	color: var(--rg-pine);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (hover: hover) {
	.rg-doc a:hover {
		color: var(--rg-forest);
	}
}

/* =============================================================
   14. Detail blocks on the thin inner pages
   Rendered by rosegreen_detail_sections() in functions.php, immediately
   before the closing band.
   ============================================================= */
/* The band colour comes from the same helper the home page's services
   band uses, so this sand is the same sand. Padding sits on the section
   (so the tint runs edge to edge) and the content in a shell that copies
   Elementor's: `min(100%, 1180px)` with 24px of inline padding, which
   lands on exactly the same measure as the page content above it. */
.rg-detail {
	padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
}

.rg-detail__shell {
	max-width: min(100%, 1180px);
	margin-inline: auto;
	padding-inline: 24px;
}

.rg-detail__shell > h2:first-child,
.rg-detail__shell > .rg-kicker + h2 {
	margin-block-start: 0;
}

/* The bare h2 clamp (45.6px at this width) out-sized the photo hero's
   own 44px h1 — a section head cannot shout over the page title. Same
   scale as the closing band's h2 so the two trailing bands agree. */
.rg-detail__shell > h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.16;
}

.rg-detail__shell > .rg-kicker:first-child {
	margin-block-start: 0;
}

.rg-detail__shell > *:last-child {
	margin-block-end: 0;
}

/* =============================================================
   15. Section reveals
   ============================================================= */
/* Nothing here applies unless the inline head snippet in functions.php has
   put `rg-js` on <html>. That snippet only does so when
   IntersectionObserver exists and the visitor has not asked for reduced
   motion, and it takes the class back off if assets/js/reveal.js never
   sets its ready flag — so content is visible by default, and a missing or
   blocked script cannot leave a section of the page invisible.

   `transition` sits on the *visible* state rather than the hidden one on
   purpose: reveal.js adds `.rg-reveal` by hand after first paint, and a
   transition on that rule would animate the page out for a frame before
   it animated back in. The offset stays small and the duration short —
   this is a nudge, not an entrance. */
.rg-js .rg-reveal {
	opacity: 0;
	transform: translateY(12px);
}

.rg-js .rg-reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
	.rg-js .rg-reveal {
		opacity: 1;
		transform: none;
	}
}

/* =============================================================
   16. Editorial additions
   FAQ, registration facts, breadcrumb — all emitted by
   rosegreen_extra_sections() and rosegreen_breadcrumb() in functions.php.
   ============================================================= */

/* Questions and answers set as a two-column editorial spread: the question
   holds the left edge and the answer runs beside it, so the eye can run
   down the questions alone. Single column below 900px, where there is no
   measure left to share. */
.rg-faq {
	border-top: 1px solid var(--rg-line);
	margin-top: 1.75rem;
}

.rg-faq__item {
	display: grid;
	gap: 0.35rem 2.25rem;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--rg-line);
}

.rg-faq__item h3 {
	margin: 0;
	font-family: var(--rg-font-body);
	font-size: 1.05rem;
	font-weight: 650;
	line-height: 1.4;
	letter-spacing: -0.005em;
	color: var(--rg-forest);
}

.rg-faq__item p {
	margin: 0;
	max-width: none;
	color: var(--rg-bark);
	line-height: 1.65;
}

@media (min-width: 900px) {
	.rg-faq__item {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
		align-items: start;
	}
}

/* Registration facts read as a ruled strip — three figures a patient can
   check, not three cards. */
.rg-facts {
	list-style: none;
	margin: 1.75rem 0;
	padding: 0;
	border-top: 1px solid var(--rg-line);
	border-bottom: 1px solid var(--rg-line);
	display: grid;
}

.rg-facts li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 1rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--rg-line-soft);
}

.rg-facts li:last-child {
	border-bottom: 0;
}

.rg-facts__label {
	font-size: 0.74rem;
	font-weight: 650;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rg-bark);
	min-width: 11rem;
}

.rg-facts__value {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rg-ink);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
	.rg-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-bottom: 1px solid var(--rg-line);
	}

	.rg-facts li {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.3rem;
		padding: 1.15rem 1.5rem;
		border-bottom: 0;
		border-left: 1px solid var(--rg-line);
	}

	.rg-facts li:first-child {
		border-left: 0;
		padding-left: 0;
	}
}

.rg-detail__lead {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--rg-bark);
	max-width: none;
	margin-block: 1.5rem 0;
}

.rg-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.rg-inline-link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
	margin-top: 1.25rem;
	color: var(--rg-pine);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition: color 0.18s ease;
}

.rg-inline-link__arrow {
	font-size: 0.9em;
	/* Amber is reserved for the closed chip and the emergency box — an
	   amber arrow on a calm green link read as a third accent the page
	   never asked for. The arrow follows the link colour instead. */
	color: inherit;
}

@media (hover: hover) {
	.rg-inline-link:hover {
		color: var(--rg-forest);
		text-decoration-color: var(--rg-brick);
	}
}

/* The trail sits above the page head on its own line: one row of small
   type, the current page in ink and not linked, so it never competes with
   the title underneath it.

   `position: relative` is load-bearing. Elementor's containers are
   positioned, so the sand page head paints in the positioned phase — after
   this — and buried the trail completely while it measured as present and
   visible. Raising it into the same phase, later in the tree, puts it
   back on top. */
.rg-breadcrumb {
	position: relative;
	z-index: 1;
	max-width: min(100%, 1180px);
	margin-inline: auto;
	padding: 1.1rem 24px 0.25rem;
}

.rg-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	letter-spacing: 0.005em;
}

.rg-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--rg-bark);
}

.rg-breadcrumb li + li::before {
	content: "/";
	color: var(--rg-line);
}

.rg-breadcrumb a {
	color: var(--rg-bark);
	text-decoration: none;
	transition: color 0.18s ease;
}

.rg-breadcrumb li[aria-current] {
	color: var(--rg-ink);
	font-weight: 600;
}

@media (hover: hover) {
	.rg-breadcrumb a:hover {
		color: var(--rg-forest);
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

/* =============================================================
   28. Order Medication Wizard ([rgp_order_form])
   ============================================================= */
.rgp-order-wizard {
	background: #FBFAF4;
	border: 1px solid #D8D2C2;
	border-radius: 12px;
	overflow: hidden;
	margin: 2.5rem 0;
	box-shadow: 0 4px 24px rgba(18, 58, 36, 0.05);
}

.rgp-wizard__header {
	padding: 2.5rem 2rem 1.75rem;
	text-align: center;
	border-bottom: 1px solid #E5E0D3;
	background: #fff;
}

.rgp-wizard__badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--rg-pine);
	background: var(--rg-mist);
	padding: 4px 12px;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.rgp-wizard__title {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	font-weight: 600;
	color: var(--rg-forest);
	margin: 0;
	line-height: 1.15;
}

.rgp-wizard__steps-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #F4F1E7;
	border-bottom: 1px solid #D8D2C2;
}

.rgp-wizard__step-tab {
	padding: 14px 16px;
	border-right: 1px solid #D8D2C2;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 3px;
	transition: background 0.2s ease;
	user-select: none;
}

.rgp-wizard__step-tab:last-child {
	border-right: none;
}

.rgp-wizard__step-tab.is-active {
	background: #FBFAF4;
}

.rgp-step-tab__num {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #939084;
}

.rgp-wizard__step-tab.is-active .rgp-step-tab__num {
	color: var(--rg-leaf);
}

.rgp-wizard__step-tab.is-complete .rgp-step-tab__num {
	color: var(--rg-pine);
	font-weight: 800;
}

.rgp-step-tab__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: #939084;
}

.rgp-wizard__step-tab.is-active .rgp-step-tab__label,
.rgp-wizard__step-tab.is-complete .rgp-step-tab__label {
	color: var(--rg-forest);
}

.rgp-wizard__pane {
	display: none;
	padding: 2.5rem 2rem;
}

.rgp-wizard__pane.is-active {
	display: block;
}

.rgp-pane__eyebrow {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--rg-leaf);
	margin-bottom: 0.5rem;
}

.rgp-pane__title {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: clamp(1.4rem, 2vw, 1.8rem);
	font-weight: 600;
	color: var(--rg-forest);
	margin: 0 0 1.75rem;
	letter-spacing: -0.01em;
}

.rgp-form-grid {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.rgp-form-grid--2col {
	grid-template-columns: 1fr 1fr;
}

.rgp-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.rgp-form-group label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--rg-ink);
}

.rgp-form-group input,
.rgp-form-group textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #C8C2B3;
	border-radius: 6px;
	background: #fff;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--rg-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	outline: none;
	box-sizing: border-box;
}

.rgp-form-group input:focus,
.rgp-form-group textarea:focus {
	border-color: var(--rg-pine);
	box-shadow: 0 0 0 3px rgba(27, 82, 49, 0.15);
}

.rgp-form-group input.is-invalid {
	border-color: #B22222 !important;
	background: #FFFDFD;
}

.rgp-req {
	color: #B22222;
	font-weight: 700;
}

.rgp-opt {
	font-weight: 400;
	color: #8C827A;
	font-size: 0.8rem;
}

.rgp-hint {
	font-size: 0.78rem;
	color: #766E65;
	margin-top: 2px;
	line-height: 1.35;
}

/* Meds Dynamic List */
.rgp-meds-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rgp-med-row {
	display: grid;
	grid-template-columns: 1.2fr 1fr auto;
	gap: 12px;
	align-items: flex-end;
	background: #fff;
	padding: 12px 16px;
	border: 1px solid #D8D2C2;
	border-radius: 6px;
}

.rgp-med-remove {
	width: 42px;
	height: 42px;
	border: 1px solid #D8D2C2;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	color: #939084;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	padding: 0;
	flex-shrink: 0;
}

.rgp-med-remove:hover {
	background: #FDF2F2;
	color: #B22222;
	border-color: #F8B4B4;
}

.rgp-btn-add-med {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1.5px dashed var(--rg-pine);
	color: var(--rg-pine);
	padding: 11px 20px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
	transition: all 0.18s ease;
	margin-top: 10px;
	font-family: inherit;
}

.rgp-btn-add-med:hover {
	background: var(--rg-mist);
}

/* Collection Options */
.rgp-collection-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rgp-collection-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 22px;
	border: 1.5px solid #D8D2C2;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rgp-collection-card:hover {
	border-color: var(--rg-moss);
}

.rgp-collection-card.is-selected {
	border-color: var(--rg-pine);
	background: #F4F8F5;
}

.rgp-collection-card input[type="radio"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--rg-pine);
	cursor: pointer;
}

.rgp-collection-card__content {
	flex-grow: 1;
}

.rgp-collection-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.rgp-collection-card__title {
	font-weight: 700;
	font-size: 1rem;
	color: var(--rg-forest);
}

.rgp-collection-card__badge {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--rg-pine);
	color: #fff;
	padding: 2px 8px;
	border-radius: 4px;
}

.rgp-collection-card__desc {
	font-size: 0.85rem;
	color: #555;
	margin: 0;
	line-height: 1.45;
}

/* Summary Box */
.rgp-summary-box {
	background: #fff;
	border: 1px solid #D8D2C2;
	border-radius: 8px;
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}

.rgp-summary-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ECE7DC;
}

.rgp-summary-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.rgp-summary-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #8C827A;
}

.rgp-summary-value {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--rg-forest);
}

.rgp-summary-note {
	font-size: 0.85rem;
	color: #766E65;
	line-height: 1.5;
	margin: 0;
}

/* Actions & Buttons */
.rgp-error-banner {
	background: #FDF2F2;
	border: 1px solid #F8B4B4;
	color: #9B1C1C;
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 0.9rem;
	margin: 0 2rem 1.5rem;
	font-weight: 500;
}

.rgp-wizard__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	border-top: 1px solid #E5E0D3;
	background: #FAF7F0;
}

.rgp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.18s ease;
	text-decoration: none;
	font-family: inherit;
	border: 1px solid transparent;
}

.rgp-btn--primary {
	background: var(--rg-forest);
	color: #fff;
	border-color: var(--rg-forest);
}

.rgp-btn--primary:hover {
	background: var(--rg-pine);
	color: #fff;
}

.rgp-btn--secondary {
	background: #ECE7DC;
	color: #36342e;
	border-color: #D8D2C2;
}

.rgp-btn--secondary:hover {
	background: #E0DAD0;
}

.rgp-btn--ghost {
	background: transparent;
	color: var(--rg-forest);
	border-color: #D8D2C2;
}

.rgp-btn--ghost:hover {
	background: var(--rg-sand);
}

.rgp-btn--sm {
	padding: 8px 16px;
	font-size: 0.85rem;
}

/* Success Pane */
.rgp-success-pane {
	padding: 4.5rem 2rem;
	text-align: center;
	background: #fff;
	border-radius: 12px;
}

.rgp-success-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--rg-mist);
	color: var(--rg-leaf);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.rgp-success-title {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: clamp(2rem, 3.5vw, 2.5rem);
	font-weight: 500;
	color: var(--rg-forest);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

.rgp-success-body {
	max-width: 500px;
	margin: 0 auto 2.25rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--rg-bark);
}

.rgp-success-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.rgp-wizard__steps-bar {
		grid-template-columns: repeat(2, 1fr);
	}
	.rgp-wizard__step-tab:nth-child(2) {
		border-right: none;
	}
	.rgp-wizard__step-tab:nth-child(1),
	.rgp-wizard__step-tab:nth-child(2) {
		border-bottom: 1px solid #D8D2C2;
	}
	.rgp-form-grid--2col {
		grid-template-columns: 1fr;
	}
	.rgp-med-row {
		grid-template-columns: 1fr;
	}
	.rgp-summary-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* =============================================================
   29. Google Reviews Widget ([rgp_google_reviews])
   ============================================================= */
.rgp-google-reviews {
	background: #FBFAF4;
	border: 1px solid #D8D2C2;
	border-radius: 12px;
	padding: 2.5rem 2rem;
	margin: 3rem 0;
	box-shadow: 0 4px 20px rgba(18, 58, 36, 0.04);
}

.rgp-reviews__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ECE7DC;
}

.rgp-reviews__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rgp-reviews__headline {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #766E65;
}

.rgp-reviews__score {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.rgp-score-num {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--rg-forest);
}

.rgp-stars {
	color: #F4B400;
	font-size: 1.2rem;
	letter-spacing: 2px;
}

.rgp-score-count {
	font-size: 0.85rem;
	color: #555;
	font-weight: 500;
}

.rgp-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.rgp-review-card {
	background: #fff;
	border: 1px solid #E5E0D3;
	border-radius: 8px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.rgp-review-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.rgp-review-card__stars {
	color: #F4B400;
	font-size: 0.95rem;
	letter-spacing: 1px;
}

.rgp-review-card__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--rg-leaf);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.rgp-review-card__quote {
	font-style: italic;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--rg-ink);
	margin: 0 0 16px;
	flex-grow: 1;
}

.rgp-review-card__meta {
	font-size: 0.85rem;
	display: flex;
	flex-direction: column;
	border-top: 1px solid #ECE7DC;
	padding-top: 10px;
}

.rgp-review-card__meta strong {
	color: var(--rg-forest);
}

.rgp-review-card__meta span {
	color: #766E65;
	font-size: 0.78rem;
}

@media (max-width: 900px) {
	.rgp-reviews__grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================================
   30. Blog Parent & Child (Archive & Single Article)
   ============================================================= */
.rg-blog-archive .rg-pagehead,
.rg-single-article .rg-pagehead {
	background: var(--rg-sand);
	border-bottom: 1px solid var(--rg-line-soft);
	padding-block: clamp(2.75rem, 5vw, 4.25rem) !important;
	padding-inline: clamp(20px, 4vw, 24px) !important;
}

.rg-blog-archive .rg-pagehead > * {
	max-width: 1180px;
	margin-inline: auto;
}

.rg-blog-archive .rg-pagehead__title {
	font-family: var(--rg-font-display, var(--font-display, "Playfair Display", Georgia, serif));
	font-size: clamp(2.15rem, 4vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--rg-forest);
	margin: 0 0 1rem;
}

.rg-blog-archive .rg-pagebody {
	max-width: 1228px;
	margin-inline: auto;
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 4.5vw, 3.75rem) !important;
	padding-inline: clamp(20px, 4vw, 24px) !important;
}

.rg-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 28px;
	margin: 1.5rem 0 3rem;
}

.rg-blog-card {
	background: #FBFAF4;
	border: 1px solid #D8D2C2;
	border-radius: 10px;
	padding: 26px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rg-blog-card:hover {
	transform: translateY(-3px);
	border-color: var(--rg-moss);
	box-shadow: 0 8px 24px rgba(18, 58, 36, 0.08);
}

.rg-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.78rem;
	color: #766E65;
	margin-bottom: 12px;
}

.rg-blog-card__cat {
	background: var(--rg-mist);
	color: var(--rg-pine);
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.rg-blog-card__title {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 12px;
}

.rg-blog-card__title a {
	color: var(--rg-forest);
	text-decoration: none;
	transition: color 0.15s ease;
}

.rg-blog-card__title a:hover {
	color: var(--rg-leaf);
}

.rg-blog-card__excerpt {
	font-size: 0.92rem;
	color: #555;
	line-height: 1.6;
	margin-bottom: 18px;
	flex-grow: 1;
}

.rg-blog-card__link {
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--rg-leaf);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: gap 0.15s ease;
}

.rg-blog-card__link:hover {
	gap: 8px;
	text-decoration: underline;
}

/* Single Post */
.rg-single-article .rg-pagehead > * {
	max-width: 800px;
	margin-inline: auto;
}

.rg-article-meta-top {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	color: #766E65;
	margin: 1.5rem 0 1rem;
	flex-wrap: wrap;
}

.rg-article-badge {
	background: var(--rg-mist);
	color: var(--rg-pine);
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 0.72rem;
}

.rg-article-title {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--rg-forest);
	margin: 0 0 1.5rem;
	letter-spacing: -0.02em;
}

.rg-article-author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 1rem;
	border-top: 1px solid #ECE7DC;
}

.rg-author-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--rg-forest);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
}

.rg-author-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--rg-forest);
}

.rg-author-role {
	font-size: 0.8rem;
	color: #766E65;
}

.rg-article-body {
	max-width: 800px;
	margin: 0 auto;
	padding-top: 2.5rem;
	padding-bottom: 5rem;
	padding-inline: clamp(20px, 4vw, 24px) !important;
}

.rg-article-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2B2620;
}

.rg-article-content h2 {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: 1.8rem;
	color: var(--rg-forest);
	margin: 2.5rem 0 1rem;
}

.rg-article-content h3 {
	font-family: var(--font-display, "Playfair Display", Georgia, serif);
	font-size: 1.35rem;
	color: var(--rg-forest);
	margin: 2rem 0 0.75rem;
}

.rg-article-content p {
	margin-bottom: 1.5rem;
}

.rg-article-content ul,
.rg-article-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.rg-article-content li {
	margin-bottom: 0.5rem;
}

.rg-article-cta {
	background: var(--rg-mist);
	border: 1px solid var(--rg-mist-deep);
	border-radius: 10px;
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 3.5rem 0 2rem;
	flex-wrap: wrap;
}

.rg-article-cta__icon {
	color: var(--rg-pine);
	flex-shrink: 0;
}

.rg-article-cta div {
	flex-grow: 1;
}

.rg-article-cta h3 {
	font-size: 1.15rem;
	color: var(--rg-forest);
	margin: 0 0 4px;
}

.rg-article-cta p {
	font-size: 0.9rem;
	color: #555;
	margin: 0;
	line-height: 1.45;
}

.rg-article-footer {
	padding-top: 2rem;
	border-top: 1px solid #ECE7DC;
}




/* -------------------------------------------------------------
   Editor utilities. Add in Elementor under Advanced → CSS Classes.
   They carry !important because the layout rules above use doubled
   `.elementor .e-con.e-con` selectors that beat Elementor's own
   padding / margin / width controls.
   ------------------------------------------------------------- */
.rg-wide,
.rg-wide p { max-width: none !important; }
.rg-pad-0 {
	--padding-top: 0px !important;
	--padding-bottom: 0px !important;
	padding: 0 !important;
}
.rg-pad-sm {
	--padding-top: 16px !important;
	--padding-bottom: 16px !important;
	--padding-left: 16px !important;
	--padding-right: 16px !important;
	padding: 16px !important;
}
.rg-pad-md {
	--padding-top: 32px !important;
	--padding-bottom: 32px !important;
	--padding-left: 32px !important;
	--padding-right: 32px !important;
	padding: 32px !important;
}
.rg-pad-lg {
	--padding-top: 64px !important;
	--padding-bottom: 64px !important;
	--padding-left: 64px !important;
	--padding-right: 64px !important;
	padding: 64px !important;
}
.rg-mt-sm { margin-top: 16px !important; }
.rg-mt-md { margin-top: 32px !important; }
.rg-mt-lg { margin-top: 64px !important; }
.rg-mb-sm { margin-bottom: 16px !important; }
.rg-mb-md { margin-bottom: 32px !important; }
.rg-mb-lg { margin-bottom: 64px !important; }

/* -------------------------------------------------------------
   Service rows: editable icons
   The icon box now accepts whatever the editor puts in it — the
   [rg_icon name="..."] shortcode in a Text Editor widget, an Elementor
   Icon widget (icon library or uploaded SVG), or an Image widget.
   ------------------------------------------------------------- */
.rg-card__icon,
.rg-card__icon p,
.rg-card__icon .elementor-widget-container,
.rg-card__icon .elementor-icon-wrapper,
.rg-card__icon .elementor-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	line-height: 1 !important;
	color: var(--rg-pine, #236838) !important;
}
.rg-card__icon .elementor-icon i,
.rg-card__icon .elementor-icon svg,
.rg-card__icon .elementor-widget-container svg,
.rg-card__icon > svg,
.rg-card__icon svg {
	width: 22px !important;
	height: 22px !important;
	font-size: 22px !important;
	color: var(--rg-pine, #236838) !important;
}
.rg-card__icon svg.e-font-icon-svg,
.rg-card__icon svg:not([fill="none"]) {
	fill: var(--rg-pine, #236838) !important;
}
.rg-card__icon svg[fill="none"] {
	fill: none !important;
	stroke: var(--rg-pine, #236838) !important;
}
.rg-card__icon img { width: 22px; height: 22px; object-fit: contain; }

@media (hover: hover) {
	a.rg-card:hover .rg-card__icon svg.e-font-icon-svg,
	a.rg-card:hover .rg-card__icon svg:not([fill="none"]),
	.rg-card:hover .rg-card__icon svg.e-font-icon-svg,
	.rg-card:hover .rg-card__icon svg:not([fill="none"]) {
		fill: #ffffff !important;
	}
	a.rg-card:hover .rg-card__icon svg[fill="none"],
	.rg-card:hover .rg-card__icon svg[fill="none"] {
		stroke: #ffffff !important;
	}
}

/* -------------------------------------------------------------
   Service rows: editable width
   Elementor → the rows container → Advanced → CSS Classes.
   rg-rows-100 / 90 / 80 / 70 / 60 set the width; add rg-rows-center
   to centre a narrower block. The container's own Width control
   also works if no class is set.
   ------------------------------------------------------------- */
.rgp-services.rg-rows-100 { width: 100% !important; max-width: 100% !important; }
.rgp-services.rg-rows-95  { width: 95%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-90  { width: 90%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-85  { width: 85%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-80  { width: 80%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-75  { width: 75%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-70  { width: 70%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-60  { width: 60%  !important; max-width: 100% !important; }
.rgp-services.rg-rows-center { margin-left: auto !important; margin-right: auto !important; }

/* -------------------------------------------------------------
   Inner element width & spacing controls:
   Apply on the container (via Elementor or Shortcode):
   - Description width: rg-desc-full / rg-desc-wide / rg-desc-med / rg-desc-narrow
   - Row padding: rg-pad-spacious / rg-pad-normal / rg-pad-compact
   - Icon sizing: rg-icon-lg / rg-icon-md / rg-icon-sm
   ------------------------------------------------------------- */
.rgp-services.rg-desc-full .rg-card p { max-width: none !important; }
.rgp-services.rg-desc-wide .rg-card p { max-width: 850px !important; }
.rgp-services.rg-desc-med  .rg-card p { max-width: 680px !important; }
.rgp-services.rg-desc-narrow .rg-card p { max-width: 480px !important; }
.rgp-services.rg-pad-spacious .rg-card { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.rgp-services.rg-pad-normal   .rg-card { padding-left: 1rem !important; padding-right: 1rem !important; }
.rgp-services.rg-pad-compact  .rg-card { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.rgp-services.rg-icon-sm .rg-card__icon { width: 36px !important; height: 36px !important; }
.rgp-services.rg-icon-md .rg-card__icon { width: 44px !important; height: 44px !important; }
.rgp-services.rg-icon-lg .rg-card__icon { width: 52px !important; height: 52px !important; }

/* -------------------------------------------------------------
   Services (admin-managed): badge, highlight, card layout.
   ------------------------------------------------------------- */
.rg-card__badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	background: var(--rg-pine, #236838);
	color: #fff;
	font-family: var(--rg-font-body, inherit);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	vertical-align: middle;
}

.elementor .rgp-services .rg-card.rg-service--highlight,
.rgp-services a.rg-card.rg-service--highlight {
	background: var(--rg-mist, #e8f1ea);
	box-shadow: inset 4px 0 0 var(--rg-pine, #236838);
	padding-left: 1.1rem;
	padding-right: 1.1rem;
}

/* Rows with no description or no button keep a tidy grid. */
.rgp-services .rg-service--nodesc .rg-card__title { grid-row: 1 / span 2; align-self: center; }

/* Card grid. */
.rgp-services.rg-layout-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.1rem;
	border-top: 0;
}
.rgp-services.rg-layout-cards.rg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rgp-services.rg-layout-cards.rg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.elementor .rgp-services.rg-layout-cards .rg-card,
.rgp-services.rg-layout-cards a.rg-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--rg-line, #ddd6c6);
	border-radius: 12px;
	text-decoration: none;
}
.elementor .rgp-services.rg-layout-cards .rg-card.rg-service--highlight,
.rgp-services.rg-layout-cards a.rg-card.rg-service--highlight {
	background: var(--rg-mist, #e8f1ea);
	border-color: var(--rg-pine, #236838);
	box-shadow: none;
	padding: 1.4rem;
}
.rgp-services.rg-layout-cards .rg-card__icon { margin: 0 0 0.35rem; }
.rgp-services.rg-layout-cards .rg-card__title,
.rgp-services.rg-layout-cards .rg-service--nodesc .rg-card__title { grid-row: auto; margin: 0; }
.rgp-services.rg-layout-cards .rg-card p { max-width: none; margin: 0; }
.rgp-services.rg-layout-cards .rg-card__link { margin-top: auto; padding-top: 0.5rem; }

@media (max-width: 900px) {
	.rgp-services.rg-layout-cards.rg-cols-3,
	.rgp-services.rg-layout-cards.rg-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.rgp-services.rg-layout-cards,
	.rgp-services.rg-layout-cards.rg-cols-2,
	.rgp-services.rg-layout-cards.rg-cols-3,
	.rgp-services.rg-layout-cards.rg-cols-4 { grid-template-columns: 1fr; }
}

/* Admin-managed rows are real links; keep the text plain, not underlined. */
.elementor .rgp-services a.rg-card,
.elementor .rgp-services a.rg-card:hover,
.elementor .rgp-services a.rg-card * { text-decoration: none; }
