/* ---------------------------------------------------------------------------
 * rush-store-context.css — direct-link notice (§37), intent banner (§15) and
 * the §11 store-row marks. Loaded on every page. The header switcher lives in
 * rush-chrome.css and the selector (now the entry layer) in rush-entry.css.
 *
 * Colour discipline (brand_rush_card_doctrine, "ink acts, gold marks"):
 *   • --rush-gold        #ffaa00  FILLS only, and only for the one thing on a
 *                                 surface that deserves the whole hit.
 *   • --rush-gold-text   #9a5e00  the ONLY gold allowed as foreground text on
 *                                 the light paper surface (AA at ~4.6:1;
 *                                 gold-deep is 2.6:1 and is a fill token).
 *   • Repeated controls are INK at rest and gold only marks state. The store
 *     cards spend gold on exactly ONE thing — the SELECTED card, whose gold
 *     ring and gold "Your store" flag are a single state expression. Hover is
 *     an ink ring, "Closest to you" is an ink outline, and the distance line
 *     is ink, so gold in this dialog is never ambiguous.
 *   • The only other gold is the panel's 6px cap, which is load-bearing: it
 *     is the 1:1 silhouette match with the age-gate panel §34 hands off from.
 * On the dark header the full gold is fine as foreground: it sits on carbon,
 * not on paper.
 * ------------------------------------------------------------------------ */

/* ── Shared: screen-reader text. rush-home.css scopes its own copy to
 *    .rush-home, and the dialog is printed OUTSIDE that wrapper. ────────── */
.rush-storesw .screen-reader-text,
div.rush-entry .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Scroll lock, shared by the age gate and the selector so the lock is
 * CONTINUOUS across the handoff (§34) — see functions.php. */
body.rush-store-locked {
	overflow: hidden;
}

/* ══ §10 Header switcher — MOVED to rush-chrome.css (redesign r1). ═════ */

/* ══ §7 Location selector dialog — MOVED to rush-entry.css (redesign r1).
 * The selector is now Step B of the entry layer (rush_canna_entry()); every
 * data-rush-store-* hook it binds is unchanged. Per-store photo framing
 * (the old [data-slug] zoom rules) is retired: derivatives carry the crop. ═ */

/* ══ §37 Direct-link context notice ═════════════════════════════════════
 * Non-blocking by design: it sits in normal flow above the content, it is
 * never a modal, and the page underneath is fully usable whether or not the
 * visitor reads it. */

.rush-storenote {
	background: var(--t-bg-2);
	border-bottom: 1px solid var(--t-line);
	color: var(--t-fg);
	/* r2 fix (P1 CLS): the notice is bound client-side on /locations/<slug>/
	 * when the saved store differs; as a flow element it pushed <main> 63px
	 * (CLS 0.04). It now floats under the fixed header — still non-blocking,
	 * still dismissable — and never moves the page. */
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 790;
	border-bottom: 0;
	border-top: 1px solid var(--t-gold);
	box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18); /* fixed: toast drop on any surface */
	padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
	.rush-storenote { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: 0; } /* above the dock */
}

.rush-storenote[hidden] {
	display: none;
}

.rush-storenote-inner {
	width: min(100% - 32px, var(--rush-max-width, 1220px));
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 11px 0;
}

.rush-storenote-copy {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
}

.rush-storenote-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-left: auto;
}

.rush-storenote-btn {
	min-height: 40px;
	padding: 0 15px;
	border: 1px solid var(--t-fg);
	border-radius: var(--rush-radius, 8px);
	background: transparent;
	color: var(--t-fg);
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 12.5px;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rush-storenote-btn:hover {
	background: var(--t-gold);
	border-color: var(--t-gold);
	color: var(--t-on-gold);
}

.rush-storenote-back {
	font-size: 13px;
	font-weight: 800;
	color: var(--t-gold-text);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

@media (max-width: 680px) {
	.rush-storenote-actions {
		margin-left: 0;
	}
}

/* ══ Store-aware intent banner (§15, 'intent' routes) ═══════════════════ */

.rush-storeintent {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	padding: 12px 16px;
	border: 1px solid var(--t-line);
	border-radius: var(--rush-radius, 8px);
	background: var(--t-bg-3);
	font-size: 14px;
	line-height: 1.45;
}

.rush-storeintent[hidden] {
	display: none;
}

/* The store name is the only emphasis this line needs — gold as TEXT on the
 * light surface, which is what --rush-gold-text exists for. (An earlier pass
 * used a thick gold border-left; that side-tab accent is not a shape this
 * theme uses anywhere, and it fought the rounded corner.) */
.rush-storeintent [data-rush-store-name] {
	font-weight: 900;
	color: var(--t-gold-text);
}

.rush-storeintent-cta {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 17px;
	border: 1px solid var(--t-fg);
	border-radius: var(--rush-radius, 8px);
	background: var(--t-fg);
	color: var(--t-bg);
	font-family: "Work Sans", "Helvetica Neue", sans-serif;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	margin-left: auto;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rush-storeintent-cta:hover {
	background: var(--t-gold);
	border-color: var(--t-gold);
	color: var(--t-on-gold);
}

.rush-storeintent-cta:focus-visible {
	outline: 3px solid var(--t-fg);
	outline-offset: 2px;
	box-shadow: 0 0 0 7px var(--t-glow);
}

@media (max-width: 680px) {
	.rush-storeintent-cta {
		margin-left: 0;
	}
}

/* ══ Neutral /shop/ picker page (§15) ═══════════════════════════════════ */

.rush-shoppicker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

/* ══ Reduced motion ════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
	.rush-storenote-btn,
	.rush-storeintent-cta {
		transition: none;
	}
}

/* ═══════════════════════════════════════════════════════════════════════
 * §11 — STORE-BOUND SURFACES ON THE PAGE (Phase B)
 *
 * The selector dialog above marks its own cards. These rules do the same job
 * for the enumerated store lists that live in the PAGE — the footer, the
 * /locations/ hub, /contact/, /deals/, the /shop/ picker, /about/ and /faq/ —
 * so a visitor can see at a glance which of the listed stores is theirs.
 *
 * Two hard rules carried over from the dialog:
 *
 *   1. MARKS, NOT SURFACE SWAPS. The active row is announced by an OUTLINE
 *      plus a pill, never by a border that changes width or a background that
 *      changes the box. outline is painted outside the box model, so marking a
 *      row cannot reflow the grid it sits in (brand_rush_card_doctrine: ratty
 *      grids are box-model bugs).
 *
 *   2. RATION THE GOLD. Gold appears here for exactly one thing — "this is
 *      your store". Open/closed is a dot in currentColor, never a second gold
 *      spend, so gold in a store list keeps meaning one thing.
 *
 * These lists sit on BOTH the light page and the dark footer, so everything
 * below either inherits currentColor or uses the gold FILL with ink text
 * (legible on both). Gold as FOREGROUND text would need --rush-gold-text
 * (#9a5e00) and is not used here at all.
 * ═════════════════════════════════════════════════════════════════════ */

.rush-storerow.is-mine {
	/* Not a border: a 1px→2px border swap is exactly the box-model jitter the
	 * card doctrine warns about. outline reserves no space.
	 *
	 * GOLD-TEXT, not gold-deep. This outline is a non-text UI indicator and
	 * therefore owes 3:1 against its own background (WCAG 1.4.11); --rush-gold-deep
	 * measures 2.59:1 on the paper these rows sit on, which is exactly what
	 * rush-base.css means by "gold-deep 2.6:1 — fills only". --rush-gold-text
	 * is 5.05:1 on paper and still 3.8:1 on the dark footer, so ONE value is
	 * legal everywhere the mark appears. The footer, which has contrast to
	 * spare, keeps the brighter gold below. */
	outline: 2px solid var(--t-gold-text);
	outline-offset: 2px;
	border-radius: var(--rush-radius, 14px);
}

/* On the dark footer the brighter gold is both on-brand and comfortably
 * compliant (7.4:1 on #080808), so the mark keeps its warmth there. */
.rush-footer-stores .rush-storerow.is-mine,
.rush-footer-links a.rush-storerow.is-mine {
	outline-color: var(--t-gold);
}

/* FOCUS MUST NOT BE MISTAKEN FOR THE MARK.
 * rush-home.css focuses links with 3px solid var(--rush-gold) at offset 3px.
 * On a row that is ALSO the visitor's store that ring lands on the same
 * property as the mark above, so it replaces it — tabbing onto your own store
 * erased the "your store" outline and left two states separated by 1px of
 * width and a hue nudge. The dialog already solved this (an INK ring plus a
 * gold halo, see the focus block near the top of this file); the row surfaces
 * now match it, so focus reads as focus and the mark survives underneath as
 * the halo. box-shadow is used deliberately: it never reflows anything. */
.rush-storerow.is-mine:focus-visible {
	outline: 3px solid var(--t-fg);
	outline-offset: 3px;
	box-shadow: 0 0 0 7px var(--t-glow);
}

.rush-footer-stores .rush-storerow.is-mine:focus-visible,
.rush-footer-links a.rush-storerow.is-mine:focus-visible {
	outline-color: var(--t-fg);
	box-shadow: 0 0 0 7px var(--t-glow);
}

/* RESERVED SPACE. The flag row is always in the DOM and always occupies its
 * line, whether or not anything is in it — so the "Your store" pill and the
 * open/closed chip appear on hydration without moving a single pixel of the
 * content below them. This is the no-layout-shift half of the §11 rule; the
 * other half is that PHP never prints either value (a cached page cannot
 * carry a clock, and must not carry one visitor's store). */
.rush-storerow .rush-storerow-flags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 22px;
	margin: 8px 0 0;
}

.rush-storerow .rush-storerow-your {
	display: inline-flex;
	align-items: center;
	height: 22px;
	margin: 0;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--t-gold);
	color: var(--t-on-gold);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.1em;
	line-height: 22px;
	text-transform: uppercase;
}

/* Open / closed: a dot and a word, inheriting the surrounding colour so the
 * same markup reads correctly on the light cards and in the dark footer.
 * data-open is written by rush-store-context.js; when the store's hours are
 * not confidently parseable the element stays hidden and says nothing at all,
 * because a wrong "Open now" is worse than a blank. */
.rush-storerow .rush-storerow-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.09em;
	line-height: 22px;
	text-transform: uppercase;
	color: currentColor;
	opacity: 0.95;
}

.rush-storerow .rush-storerow-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.rush-storerow .rush-storerow-status[data-open="false"] {
	/* r2 fix (P1): .6 over --t-fg-2 put "Opens 9 AM" at 3.8:1 in the footer;
	 * closed reads through the hollow dot + colour, not through fading. */
	opacity: 1;
	color: var(--t-fg-2);
}

/* RESERVED, NOT REMOVED.
 *
 * These two marks are the only things on the page that appear on hydration,
 * so they are the only things that could move content underneath them. They
 * therefore keep their box and hide with `visibility`, never `display:none`:
 * the slot exists in the very first painted frame and JS only fills it in.
 *
 * (Measured, not assumed: with display:none the footer's 153px column fitted
 * the lone status chip on one line at 22px, then wrapped to 52px the moment
 * the "Your store" pill appeared — a 30px jump on every store change.)
 *
 * Everything ELSE that hydrates is genuinely absent when it has nothing to
 * say, and gets display:none below. */
.rush-storerow .rush-storerow-your[hidden],
.rush-storerow .rush-storerow-status[hidden] {
	display: inline-flex;
	visibility: hidden;
}

/* [hidden] must win over the display rules above (and over any inherited
 * display:block the surrounding component sets on span/a). Listed explicitly
 * rather than relying on the UA sheet, which display:* overrides. */
[data-rush-store-field][hidden],
[data-rush-store-when][hidden] {
	display: none !important;
}

/* The reserved slots come back in for the two marks — the rule above is the
 * general case, this is the documented exception. */
.rush-storerow .rush-storerow-your[hidden],
.rush-storerow .rush-storerow-status[hidden] {
	display: inline-flex !important;
}

/* The footer store grid sets `display:block; margin-top:8px` on every span it
 * contains; the flag row is a span, so it needs to win that on specificity
 * (two classes beat one class + one element). Same for the dark surface: the
 * gold pill keeps its ink text, the status dot inherits the muted footer
 * colour it sits in.
 *
 * The footer column is ~153px — too narrow for the pill and the chip side by
 * side in any font — so here they STACK, in two fixed 22px rows that exist
 * whether or not anything is in them. Deterministic height, no dependence on
 * how wide "Closed now" happens to render. */
.rush-footer-stores .rush-storerow-flags {
	display: grid;
	grid-auto-flow: row;
	grid-auto-rows: 22px;
	align-content: start;
	justify-items: start;
	gap: 4px;
	min-height: 48px;
}

.rush-footer-stores .rush-storerow-status {
	color: var(--t-fg-2);
}

/* A footer store link (rush-route.php) and a FAQ call button (page-faq.php)
 * ARE the row — there is no flag line inside them to hold the "Your store"
 * pill, and adding text on hydration would reflow a pill that is already
 * sized to its label. So on those two surfaces the mark is the outline, and
 * the non-visual half is aria-current="true", which rush-store-context.js sets
 * on every .is-mine row. (An earlier `font-weight: 900` here was a no-op: both
 * surfaces already render every sibling at 900, so it distinguished nothing.
 * It is not replaced with 950/1000 either — those are not real weights for
 * Work Sans and would silently round back to 900.) */

@media (prefers-reduced-motion: reduce) {
	.rush-storerow.is-mine {
		transition: none;
	}
}

/* Below 980px the footer store grid drops to a single full-width column
 * (rush-home.css), so the pill and the chip fit side by side again with room
 * to spare — even for the wider "Closed now". Back to one reserved 22px line,
 * which reclaims the 26px the stacked layout holds open on a phone. Still
 * reserved, still shift-free: the slots exist before hydration either way. */
@media (max-width: 980px) {
	.rush-footer-stores .rush-storerow-flags {
		display: flex;
		grid-auto-rows: auto;
		min-height: 22px;
	}
}
