/* ===========================================================================
 * rush-r3-chrome.css — the SHARED r3 chrome on every secondary page (routes,
 * about/faq, legal, journal single, 404), REDESIGN r3 repair pass.
 *
 * ONE footer (functions.php rush_canna_r3_footer(): the registry-driven ink
 * footer, moved out of rush-r3-routes.css so the pages / docs templates stop
 * shipping their own), the direct-link toast's tap target, and the light
 * theme's inked wordmark. Loads AFTER the page's own r3 sheet. Role tokens
 * only; the few literals are annotated `fixed`.
 * ======================================================================== */

/* ═══ Footer (ink, registry-driven) ═══════════════════════════════════════ */
@property --ghost-y { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.r3r-footer, .r3r-footer *, .r3r-footer *::before, .r3r-footer *::after { box-sizing: border-box; }
.rush-footer.r3r-footer { position: relative; overflow: clip; background-color: var(--t-bg); border-top: 1px solid var(--t-line); font-size: 14px; margin: 0; padding: clamp(56px, 8vw, 96px) 0 calc(28px + 64px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .rush-footer.r3r-footer { padding-bottom: 36px; } }
.rush-footer.r3r-footer > .rush-container { position: relative; z-index: 1; width: min(100% - 32px, var(--rush-max-width)); margin-inline: auto; }
.r3r-footer p, .r3r-footer h2, .r3r-footer h3 { margin: 0; }
.r3r-footer :focus-visible { outline: 2px solid var(--t-focus); outline-offset: 3px; }
/* rush-home.css paints every `.rush-home a:not(.rush-button)` color:inherit at (0,2,1) — the pill roles are restated at (0,3,1). */
.rush-home footer.r3r-footer .rush-btn-ghost, .rush-home footer.r3r-footer .rush-link { color: var(--t-fg); }
.rush-home footer.r3r-footer .rush-btn-ink, .rush-home footer.r3r-footer .rush-btn-paper { color: var(--t-bg); }
.r3r-footer .rush-btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--t-line-strong); background: transparent; font: inherit; font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: border-color 240ms var(--ease-out-cine); }
.r3r-footer .rush-btn-ghost:hover { border-color: var(--t-gold); }
.r3r-footer .rush-eyebrow { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: 0.14em; color: var(--t-gold-text); margin: 0 0 14px; }
.r3r-footer-ghost { position: absolute; right: -6%; bottom: -8%; width: 70vw; max-width: 900px; height: auto; opacity: 0.05; filter: none; pointer-events: none; z-index: 0; transform: translateY(var(--ghost-y, 0%)); }
.r3r-footer-top { display: grid; gap: 18px; align-items: center; margin-bottom: 32px; }
.r3r-footer-logo { width: 160px; height: auto; margin: 0; }
.r3r-footer-blurb { font-weight: 800; font-size: 18px; max-width: 30ch; color: var(--t-fg); }
.rush-footer.r3r-footer .r3r-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 0; padding: 18px 0; border-top: 1px solid var(--t-line); border-bottom: 1px solid var(--t-line); }
.rush-footer.r3r-footer .r3r-footer-legal a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--t-fg); }
.rush-footer.r3r-footer .r3r-footer-legal a.m-ul::after { bottom: 4px; }
.rush-footer.r3r-footer .r3r-footer-legal a:hover { color: var(--t-gold-text); }
.r3r-footer-theme { margin-left: auto; }
.r3r-footer-mine { padding: 28px 0; border-bottom: 1px solid var(--t-line); }
.r3r-footer-panel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.r3r-footer-panel[hidden] { display: none; }
.r3r-footer-panel .rush-eyebrow { margin-bottom: 4px; }
.r3r-footer-panel-name { font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--t-fg); }
.r3r-footer-panel-line { color: var(--t-fg-2); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; }
.r3r-footer-panel-line a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.r3r-footer-panel-line a:hover { color: var(--t-fg); }
.r3r-footer-panel .rush-btn-ghost { margin-top: 10px; }
.r3r-footer-panel .rush-status { color: var(--t-fg); }
.r3r-footer-stores { display: grid; gap: 18px; padding: 28px 0; }
.r3r-footer-store { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 14px; font-size: 14px; color: var(--t-fg-2); }
/* The blade mark: a 30° gold sliver that draws on the visitor's own row. */
.r3r-footer-store::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 6px; background: var(--t-gold); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); transform: scaleY(0); transform-origin: top; transition: transform 400ms var(--ease-out-cine); }
.r3r-footer-store.is-mine { outline: none; color: var(--t-fg); }
.r3r-footer-store.is-mine::before { transform: scaleY(1); }
.r3r-footer-store strong { font-size: 16px; color: var(--t-fg); text-transform: uppercase; letter-spacing: 0.02em; }
.r3r-footer-store strong a { text-decoration: none; }
.r3r-footer-store a { color: var(--t-fg); text-decoration: none; align-self: flex-start; min-height: 24px; display: inline-flex; align-items: center; }
.r3r-footer-store .rush-storerow-flags { display: flex; gap: 8px; align-items: center; min-height: 20px; }
.r3r-footer-store .rush-storerow-status { color: var(--t-fg-2); }
.r3r-footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 8px 0 20px; }
.r3r-footer-links a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--t-fg); }
.r3r-footer-fine { font-size: 12px; color: var(--t-fg-2); }
@media (min-width: 768px) {
	.r3r-footer-top { grid-template-columns: auto 1fr; gap: 32px; }
	.r3r-footer-stores { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
}
@media (min-width: 1024px) {
	.rush-footer.r3r-footer > .rush-container { display: grid; grid-template-columns: 5fr 7fr; column-gap: 48px; grid-template-areas: "top top" "legal legal" "mine stores" "links links" "fine fine"; }
	.r3r-footer-top { grid-area: top; }
	.r3r-footer-legal { grid-area: legal; }
	.r3r-footer-mine { grid-area: mine; border-bottom: 0; padding-right: 24px; border-right: 1px solid var(--t-line); }
	.r3r-footer-stores { grid-area: stores; padding-left: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
	.r3r-footer-links { grid-area: links; border-top: 1px solid var(--t-line); padding-top: 18px; }
	.r3r-footer-fine { grid-area: fine; }
	.r3r-footer-blurb { padding-right: 56px; } /* clear of the fixed slash index */
}
/* Reveals inside the footer settle without the 30° clip once in (the rows are links). */
html.rush-motion .r3r-footer .m-rise.is-in { clip-path: none; }

/* ═══ Header / toast tweaks ══════════════════════════════════════════════ */
/* (The wordmark's light-theme ink filter and its height clamp live in rush-chrome.css / rush-home.css.) */
/* Direct-link toast: the "Back to my saved store" link clears the 24px target floor. */
.rush-storenote-back { display: inline-flex; align-items: center; min-height: 28px; }
