/* ==========================================================================
   Ryan Golds — Base Camp
   ========================================================================== */

:root {
	--rg-radius: 24px;
	--rg-radius-sm: 16px;
	--rg-dash: #C9B894;
	--rg-line: #E3D6BA;
	--rg-muted: #4E5A4F;
	--rg-tile-gap: 16px;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* ---------- Mode visibility -------------------------------------------- */

html[data-rg-mode="weekend"] .is-style-rg-weekday,
html[data-rg-mode="weekday"] .is-style-rg-weekend { display: none !important; }

/* A hidden mode's block must not leave its spacing behind. */
html[data-rg-mode="weekday"] .is-style-rg-weekend:first-child + .is-style-rg-weekday,
html[data-rg-mode="weekend"] .is-style-rg-weekday:first-child + .is-style-rg-weekend { margin-block-start: 0 !important; }

/* Hero copy: both modes share one grid cell, so the hero is the same size in either mode. */
.rg-hero__copy { display: grid !important; }
.rg-hero__copy > * { grid-area: 1 / 1; margin: 0 !important; }
html .rg-hero__copy > .is-style-rg-weekend,
html .rg-hero__copy > .is-style-rg-weekday { display: block !important; }
html[data-rg-mode="weekend"] .rg-hero__copy > .is-style-rg-weekday,
html[data-rg-mode="weekday"] .rg-hero__copy > .is-style-rg-weekend { visibility: hidden; }
.editor-styles-wrapper .rg-hero__copy { display: block !important; }
.editor-styles-wrapper .rg-hero__copy > * + * { margin-top: 40px !important; }

/* In the editor both modes show, labelled. */
.editor-styles-wrapper .is-style-rg-weekend,
.editor-styles-wrapper .is-style-rg-weekday { position: relative; outline: 2px dashed rgba(31, 42, 34, 0.25); outline-offset: 6px; }
.editor-styles-wrapper .is-style-rg-weekend::before,
.editor-styles-wrapper .is-style-rg-weekday::before {
	position: absolute; top: -26px; left: 0; z-index: 5;
	padding: 2px 8px; border-radius: 4px;
	font: 500 11px/1.6 "DM Mono", monospace; color: #F3EAD7;
}
.editor-styles-wrapper .is-style-rg-weekend::before { content: "SAT–SUN ONLY"; background: #2F4F3A; }
.editor-styles-wrapper .is-style-rg-weekday::before { content: "MON–FRI ONLY"; background: #22313B; }

/* ---------- Utilities ---------------------------------------------------- */

.rg-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: 0.875rem; letter-spacing: 0.04em; margin: 0; }
.rg-sign {
	display: inline-block; width: fit-content; margin: 0;
	padding: 6px 12px; border-radius: 6px;
	background: var(--wp--preset--color--bark); color: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.rg-sign a { color: inherit; text-decoration: none; }
.rg-lede { max-width: 560px; font-size: 1.1875rem; }
.rg-section { margin-top: clamp(4rem, 8vw, 6.5rem) !important; }
.rg-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rg-section-head > * { margin: 0 !important; }
.rg-more a { font-weight: 600; color: var(--wp--preset--color--ember); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.rg-more a:hover { text-decoration: underline; }
h1 em, h2 em, h3 em, .wp-block-heading em { font-weight: 600; }

/* ---------- Header ------------------------------------------------------- */

.rg-topbar { background: var(--wp--preset--color--sand); border-bottom: 1px solid var(--rg-line); }
.rg-header { padding-block: 16px; gap: 16px; position: relative; z-index: 3; }
.rg-brand { gap: 10px; }
.rg-brand .wp-block-site-title a { color: var(--wp--preset--color--ink); }
.rg-nav a { text-decoration: none; padding: 12px; }
.rg-header__end { gap: 12px !important; align-items: center; }
.rg-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ember); }

/* The toggle only matters where the hero is. */


/* ---------- Mode toggle -------------------------------------------------- */

.rg-mode-toggle {
	position: relative; isolation: isolate;
	display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(31, 42, 34, 0.12);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 34px -14px rgba(31, 42, 34, 0.35);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* The sliding pill behind the active option. */
.rg-mode-toggle::before {
	content: ""; position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px);
	border-radius: 999px; background: var(--wp--preset--color--forest);
	box-shadow: 0 8px 18px -8px rgba(31, 42, 34, 0.6);
	transform: translateX(100%);
	transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.55s ease;
}
html[data-rg-mode="weekday"] .rg-mode-toggle::before { transform: translateX(0); background: var(--wp--preset--color--slate); }
.rg-mode-toggle button {
	display: flex; align-items: center; gap: 12px;
	min-height: 64px; padding: 8px 26px 8px 10px; border: 0; border-radius: 999px;
	background: transparent; color: var(--wp--preset--color--ink); text-align: left;
	font-family: var(--wp--preset--font-family--body); cursor: pointer;
	transition: color 0.35s ease 0.1s;
}
.rg-mode-toggle button:hover .rg-mode-toggle__icon { transform: rotate(-8deg) scale(1.06); }
.rg-mode-toggle button:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 3px; }
.rg-mode-toggle__icon {
	flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	background: rgba(31, 42, 34, 0.07); transition: background-color 0.35s ease, transform 0.3s ease;
}
.rg-mode-toggle__icon svg { width: 22px; height: 22px; }
.rg-mode-toggle__label { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.rg-mode-toggle__days { font: 500 0.6875rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.rg-mode-toggle__name { font: italic 800 1.3125rem/1 var(--wp--preset--font-family--display); letter-spacing: -0.01em; white-space: nowrap; }
html[data-rg-mode="weekend"] .rg-mode-toggle button[data-mode="weekend"],
html[data-rg-mode="weekday"] .rg-mode-toggle button[data-mode="weekday"] { color: var(--wp--preset--color--sand); }
html[data-rg-mode="weekend"] .rg-mode-toggle button[data-mode="weekend"] .rg-mode-toggle__icon,
html[data-rg-mode="weekday"] .rg-mode-toggle button[data-mode="weekday"] .rg-mode-toggle__icon { background: rgba(243, 234, 215, 0.16); }
/* Compact version in the header on inner pages: icons only. */
body.home .rg-header .rg-mode-toggle { display: none; }
.rg-header .rg-mode-toggle { padding: 4px; box-shadow: none; background: rgba(255, 255, 255, 0.5); }
.rg-header .rg-mode-toggle::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); box-shadow: none; }
.rg-header .rg-mode-toggle button { min-height: 44px; min-width: 52px; padding: 0; justify-content: center; }
.rg-header .rg-mode-toggle__icon { width: 36px; height: 36px; background: transparent !important; animation: none !important; }
.rg-header .rg-mode-toggle__icon svg { width: 20px; height: 20px; }
.rg-header .rg-mode-toggle__label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.rg-header .rg-mode-toggle button:hover .rg-mode-toggle__icon { transform: none; }

/* Footer version: dark glass, sized for the bottom row. */
.rg-footer .rg-mode-toggle,
html[data-rg-mode] .rg-footer .rg-mode-toggle {
	background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.rg-footer .rg-mode-toggle::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.rg-footer .rg-mode-toggle button,
html[data-rg-mode] .rg-footer .rg-mode-toggle button { min-height: 52px; padding: 6px 18px 6px 8px; color: var(--wp--preset--color--sand); }
.rg-footer .rg-mode-toggle__icon,
html[data-rg-mode] .rg-footer .rg-mode-toggle__icon { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.08); animation: none !important; }
.rg-footer .rg-mode-toggle__icon svg { width: 19px; height: 19px; }
.rg-footer .rg-mode-toggle__name { font-size: 1.0625rem; }
.rg-footer__base { align-items: center !important; }
@media (max-width: 760px) {
	.rg-footer__base { flex-direction: column; align-items: flex-start !important; gap: 18px !important; }
	.rg-footer .rg-mode-toggle { width: 100%; box-sizing: border-box; }
}

/* A gentle nudge on the option you're not on. */
html[data-rg-mode="weekend"] .rg-mode-toggle button[data-mode="weekday"] .rg-mode-toggle__icon,
html[data-rg-mode="weekday"] .rg-mode-toggle button[data-mode="weekend"] .rg-mode-toggle__icon { animation: rg-nudge 2.2s ease-out 1.2s 3; }
@keyframes rg-nudge {
	0% { box-shadow: 0 0 0 0 rgba(185, 83, 31, 0.45); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(185, 83, 31, 0); }
}

/* ---------- Hero --------------------------------------------------------- */

.rg-hero { position: relative; overflow: hidden; background: var(--wp--preset--color--dawn); transition: background-color 0.4s ease; }
html[data-rg-mode="weekday"] .rg-hero { background: var(--wp--preset--color--mist); }
.rg-hero > * { margin-block: 0 !important; }
.rg-hero__top {
	position: relative; z-index: 2; padding-top: 16px;
	display: flex !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px;
}
.rg-hero__top > * { margin: 0 !important; }
.rg-hero__copy { position: relative; flex: 1 1 560px; min-width: 0; }
.rg-hero__switch { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 4px; }
.rg-hero__switch > * { margin: 0 !important; }
.rg-hero__hint {
	display: inline-flex; align-items: flex-end; gap: 6px; margin: 0; padding-right: 64px;
	font: italic 600 1.0625rem/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--bark);
}
html[data-rg-mode="weekday"] .rg-hero__hint { color: var(--wp--preset--color--slate); }
.rg-hero__hint svg { transform: translateY(10px); }
@media (max-width: 760px) {
	.rg-hero__switch { flex: 1 1 100%; align-items: stretch; }
	.rg-hero__switch .rg-mode-toggle { width: 100%; box-sizing: border-box; }
	.rg-hero__hint { padding-right: 0; align-self: flex-start; }
	.rg-hero__hint svg { transform: translateY(10px) scaleX(-1) rotate(-20deg); order: -1; display: none; }
	.rg-mode-toggle button { padding-right: 12px; gap: 10px; min-height: 58px; }
	.rg-mode-toggle__icon { width: 40px; height: 40px; }
	.rg-mode-toggle__name { font-size: 1.125rem; }
}
.rg-hero__copy .rg-eyebrow { font-size: 0.8125rem; }
.rg-hero__copy .wp-block-heading { max-width: 880px; margin-top: 10px; font-size: clamp(2.25rem, 4.4vw, 4.25rem); line-height: 0.98; }
.rg-hero__copy .rg-lede { margin-top: 14px; max-width: 520px; font-size: 1.0625rem; line-height: 1.5; }
.rg-hero > .rg-scene { margin-top: -12px !important; position: relative; z-index: 1; }

/* ---------- Scenes ------------------------------------------------------- */

.rg-scene svg { display: block; width: 100%; }
.rg-scene--weekend svg,
.rg-scene--weekday svg { height: clamp(220px, 27vw, 400px); }
.rg-scene--treeline svg { height: 90px; }
.rg-scene--nightcamp svg,
.rg-scene--basecamp-night svg { height: clamp(200px, 26vw, 380px); }
.rg-scene--campfire svg { width: 56px; height: 56px; }
.rg-scene--mark svg { width: 38px; height: 38px; }
.rg-scene--mark, .rg-scene--campfire { line-height: 0; }
.rg-brand { align-items: center !important; }
.rg-brand > * { margin: 0 !important; }
.rg-brand .wp-block-site-title { line-height: 1; }

/* ---------- Bento grid --------------------------------------------------- */

.rg-bento { display: flex !important; flex-wrap: wrap; gap: var(--rg-tile-gap); }
.rg-bento > * { margin: 0 !important; flex: 1 1 300px; min-width: 0; }
.rg-bento > .rg-wide { flex: 2 1 560px; }

.rg-tile {
	display: flex !important; flex-direction: column; justify-content: space-between; gap: 18px;
	min-height: 280px; padding: 28px; border-radius: var(--rg-radius); box-sizing: border-box;
}
.rg-tile > * { margin: 0 !important; }
.rg-tile.rg-tall { min-height: 460px; }
.rg-tile--photo { padding: 14px; }
.rg-tile--photo .rg-tile__body { padding: 8px 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.rg-tile--photo .rg-tile__body > * { margin: 0 !important; }
.rg-tile__title { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.02; margin: 0; }
.rg-tile__big { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 3.75rem; line-height: 1; letter-spacing: -0.04em; margin: 0; }
.rg-tile__label { font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; margin: 0; }
.rg-tile p { font-size: 0.9375rem; line-height: 1.5; }
.rg-tile a { color: inherit; }

.rg-photo { position: relative; margin: 0 !important; flex: 1 1 0; min-height: 240px; border-radius: var(--rg-radius-sm); overflow: hidden; background: rgba(0, 0, 0, 0.08); }
.rg-photo a { position: absolute; inset: 0; display: block; }
.rg-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Mon–Fri: "two rooms" — desk and gym as a matching photo pair, then a strip of three detail cards. */
.rg-bento.rg-bento--grid {
	display: grid !important; gap: var(--rg-tile-gap);
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-rows: 540px 200px;
	grid-template-areas: "desk desk desk gym gym gym" "job job job match match match";
}
.rg-bento--grid > * { flex: none; min-height: 0 !important; }
.rg-a-desk { grid-area: desk; } .rg-a-job { grid-area: job; } .rg-a-gym { grid-area: gym; }
.rg-a-match { grid-area: match; }
/* Arsenal crest sits small in the corner of the Matchday tile. */
.rg-a-match { position: relative; }
.rg-crest { position: absolute; top: 22px; right: 24px; margin: 0 !important; width: 56px; line-height: 0; }
.rg-crest img { width: 56px; height: auto; opacity: 0.95; }
.rg-a-match .rg-tile__label, .rg-a-match .rg-tile__title { padding-right: 72px; }

/* Photo cards: full bleed, caption over a soft shade. */
.rg-bento--grid .rg-tile--photo { position: relative; padding: 0; overflow: hidden; display: block !important; isolation: isolate; clip-path: inset(0 round var(--rg-radius)); }
.rg-bento--grid .rg-tile--photo .rg-photo { position: absolute; inset: 0; min-height: 0; border-radius: 0; }
.rg-bento--grid .rg-tile--photo .rg-tile__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
	padding: 80px 30px 28px;
	background: linear-gradient(to top, rgba(14, 21, 26, 0.86) 15%, rgba(14, 21, 26, 0));
	color: var(--wp--preset--color--sand);
}
.rg-bento--grid .rg-tile--photo .rg-tile__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.rg-bento--grid .rg-tile--photo .rg-tile__body p:not(.rg-tile__title) { color: #D5DEE3; max-width: 42ch; font-size: 1rem; }

/* Detail cards: compact and consistent. */
.rg-bento--grid > .rg-tile:not(.rg-tile--photo) { justify-content: flex-start; gap: 8px; padding: 24px 26px; }
.rg-bento--grid > .rg-tile:not(.rg-tile--photo) > .wp-block-group > * + * { margin-top: 6px !important; }
.rg-bento--grid > .rg-tile:not(.rg-tile--photo) .rg-tile__title { font-size: 1.5rem; }
.rg-bento--grid > .rg-tile:not(.rg-tile--photo) .rg-icon svg { width: 26px; height: 26px; }
.rg-bento--grid .rg-a-job .wp-block-buttons { margin-top: auto !important; }
.rg-bento--grid .rg-a-job .wp-block-button__link { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.rg-bento--grid .rg-a-job { flex-direction: column; }

@media (max-width: 1100px) {
	.rg-bento.rg-bento--grid { grid-template-rows: 440px auto; }
	.rg-bento--grid > .rg-tile:not(.rg-tile--photo) { min-height: 220px !important; }
}
@media (max-width: 760px) {
	.rg-bento.rg-bento--grid {
		grid-template-columns: 1fr; grid-template-rows: 420px 420px auto auto;
		grid-template-areas: "desk" "gym" "job" "match";
	}
	.rg-bento--grid > .rg-tile:not(.rg-tile--photo) { min-height: 0 !important; }
}

/* Real photos: natural colour, a slow camera drift, a touch brighter on hover. */
.rg-photo--real img { transform-origin: 50% 40%; animation: rg-drift 22s ease-in-out infinite alternate; transition: filter 0.6s ease; }
.rg-photo--desk img { object-position: 55% 52%; }
.rg-photo--gym img { object-position: 50% 34%; animation-delay: -9s; }
.rg-tile:hover .rg-photo--real img { filter: brightness(1.08); }
@keyframes rg-drift {
	from { transform: scale(1.04) translate(-1%, 0.5%); }
	to { transform: scale(1.1) translate(1.2%, -1%); }
}

/* Photo tiles in the short row match the text tiles beside them. */
.rg-tile--photo:not(.rg-tall) .rg-photo { min-height: 110px; }

.rg-tile--forest { background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand); }
.rg-tile--forest p:not(.rg-tile__title) { color: #C9D6C4; }
.rg-tile--paper { background: var(--wp--preset--color--paper); border: 1px solid var(--rg-line); }
.rg-tile--paper p:not(.rg-tile__title):not(.rg-tile__label) { color: var(--rg-muted); }
.rg-tile--sun { background: var(--wp--preset--color--sun); }
.rg-tile--sun .rg-tile__label { color: #4A3416; }
.rg-tile--lake { background: var(--wp--preset--color--lake); color: var(--wp--preset--color--sand); }
.rg-tile--slate { background: var(--wp--preset--color--slate); color: var(--wp--preset--color--sand); }
.rg-tile--slate p:not(.rg-tile__title) { color: #C3CFD6; }
.rg-tile--fog { background: var(--wp--preset--color--fog); }
.rg-tile--ember { background: var(--wp--preset--color--ember); color: var(--wp--preset--color--paper); }
.rg-tile--ember p:not(.rg-tile__title) { color: #FBE3D2; }
.rg-tile--forest .rg-tile__label, .rg-tile--lake .rg-tile__label { color: #D5E3E6; }
.rg-tile--paper .rg-tile__label { color: #8A4A1E; }

.rg-icon { line-height: 0; margin: 0; }
.rg-icon svg { width: 32px; height: 32px; }

.rg-chips { display: flex !important; flex-wrap: wrap; gap: 8px; }
.rg-chips > * { margin: 0 !important; }
.rg-chip { padding: 8px 14px; border-radius: 999px; background: rgba(243, 234, 215, 0.16); font-size: 0.9375rem !important; font-weight: 500; }

/* The "latest camp" tile is a live query. */
.rg-latest, .rg-latest .wp-block-post-template, .rg-latest .wp-block-post { display: flex; flex-direction: column; flex: 1; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rg-latest .wp-block-post-featured-image { margin: 0; flex: 1; min-height: 220px; border-radius: var(--rg-radius-sm); overflow: hidden; background: #D9C9A6; }
.rg-latest .wp-block-post-featured-image a, .rg-latest .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rg-latest__meta { padding: 6px 10px 12px; }
.rg-latest__meta > * { margin: 0 !important; }
.rg-latest .wp-block-post-date { color: #8A4A1E; }
.rg-latest .wp-block-post-title { font-size: 1.75rem; line-height: 1.05; margin-top: 8px !important; }

/* ---------- Trail log ---------------------------------------------------- */

.rg-log .wp-block-post-template { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px dashed var(--rg-dash); }
.rg-log .wp-block-post { margin: 0; border-bottom: 2px dashed var(--rg-dash); }
.rg-log__row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 24px 0; }
.rg-log__row > * { margin: 0 !important; }
.rg-log .wp-block-post-date { flex: 0 0 130px; color: #6B5A3E; }
.rg-log .wp-block-post-title { flex: 999 1 320px; min-width: 0; font-size: 1.625rem; line-height: 1.1; }
.rg-log .wp-block-post-title a:hover { color: var(--wp--preset--color--ember); }
.rg-log .wp-block-post-terms { flex: 0 0 auto; display: flex; gap: 6px; flex-wrap: wrap; font-size: 0; }
.rg-log .wp-block-post-terms a,
.rg-cards .wp-block-post-terms a,
.rg-single-terms a {
	display: inline-block; padding: 6px 12px; border-radius: 6px;
	background: var(--wp--preset--color--forest); color: var(--wp--preset--color--sand);
	font: 0.75rem/1.2 var(--wp--preset--font-family--mono); text-decoration: none;
}
.rg-log .wp-block-post-terms .wp-block-post-terms__separator { display: none; }

/* ---------- Post cards (blog / archives) -------------------------------- */

.rg-cards .wp-block-post { background: var(--wp--preset--color--paper); border: 1px solid var(--rg-line); border-radius: var(--rg-radius); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.rg-cards .wp-block-post > * { margin: 0 !important; }
.rg-cards .wp-block-post-featured-image { border-radius: var(--rg-radius-sm); overflow: hidden; background: #D9C9A6; aspect-ratio: 4 / 3; }
.rg-cards .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.rg-cards__body { padding: 6px 10px 12px; }
.rg-cards__body > * { margin: 0 !important; }
.rg-cards__body > * + * { margin-top: 10px !important; }
.rg-cards .wp-block-post-title { font-size: 1.5rem; line-height: 1.1; }
.rg-cards .wp-block-post-excerpt { color: var(--rg-muted); font-size: 0.9375rem; }
.rg-cards .wp-block-post-excerpt__more-link { display: none; }
.rg-cards .wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.rg-cards .wp-block-post-terms { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0; }

.wp-block-query-pagination { margin-top: 48px !important; font-family: var(--wp--preset--font-family--mono); }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Single post / page ------------------------------------------ */

.rg-single-head { padding-top: clamp(2.5rem, 6vw, 5rem); }
.rg-single-head .wp-block-post-title { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.03em; }
.rg-single-meta { gap: 14px; font-family: var(--wp--preset--font-family--mono); font-size: 0.8125rem; color: #6B5A3E; }
.rg-single-meta > * { margin: 0 !important; }
.rg-single-terms { display: flex; gap: 6px; flex-wrap: wrap; font-size: 0; }
.rg-single-terms .wp-block-post-terms__separator { display: none; }
.rg-single-image img { border-radius: var(--rg-radius); width: 100%; max-height: 720px; object-fit: cover; }
.rg-prose { font-size: 1.1875rem; line-height: 1.7; }
.rg-prose > * + * { margin-top: 1.25em; }
.rg-prose h2, .rg-prose h3 { margin-top: 2em; }
.rg-prose img { border-radius: var(--rg-radius-sm); }
.rg-prose blockquote { border: 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--wp--preset--color--ember); font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.5rem; }
.rg-prose .wp-block-gallery img { border-radius: 12px; }
.rg-post-nav { border-top: 2px dashed var(--rg-dash); padding-top: 28px; gap: 24px; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.25rem; }
.rg-post-nav a { text-decoration: none; }

/* ---------- Camera roll (polaroids) ------------------------------------- */

.rg-polaroids .wp-block-gallery,
.rg-polaroids #sbi_images { gap: 22px !important; }
.rg-polaroids .wp-block-gallery .wp-block-image,
.rg-polaroids #sb_instagram .sbi_item {
	background: var(--wp--preset--color--paper) !important;
	padding: 10px 10px 34px !important;
	box-shadow: 0 6px 18px rgba(60, 45, 20, 0.14);
	transform: rotate(-1.8deg);
	transition: transform 0.25s ease;
	box-sizing: border-box;
}
.rg-polaroids .wp-block-gallery .wp-block-image:nth-child(even),
.rg-polaroids #sb_instagram .sbi_item:nth-child(even) { transform: rotate(1.6deg); }
.rg-polaroids .wp-block-gallery .wp-block-image:nth-child(3n),
.rg-polaroids #sb_instagram .sbi_item:nth-child(3n) { transform: rotate(-0.8deg); }
.rg-polaroids .wp-block-gallery .wp-block-image:hover,
.rg-polaroids #sb_instagram .sbi_item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.rg-polaroids .wp-block-gallery .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0 !important; }
.rg-polaroids .wp-block-gallery figcaption { position: static !important; background: none !important; color: var(--wp--preset--color--ink) !important; font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 600; font-size: 1rem !important; text-align: center; padding: 12px 4px 0 !important; }
.rg-polaroids #sb_instagram { padding: 0 !important; }
.rg-polaroids #sb_instagram .sb_instagram_header, .rg-polaroids #sb_instagram #sbi_load { display: none; }

/* ---------- Footer (campfire) ------------------------------------------- */

.rg-footer { position: relative; margin-top: clamp(3rem, 6vw, 5rem) !important; background: transparent; color: var(--wp--preset--color--sand); overflow: hidden; }
.rg-footer > * { margin-block: 0 !important; }
.rg-footer .rg-scene--nightcamp,
.rg-footer .rg-scene--basecamp-night { margin-bottom: -2px !important; }
html[data-rg-mode="weekday"] .rg-footer__sky { background-color: #141E26; }
html[data-rg-mode="weekday"] .rg-footer__base { border-top-color: #2A3A46; }
html[data-rg-mode="weekday"] .rg-footer__cta .wp-block-heading em { color: #F6D9A0; }
.rg-footer__sky { transition: background-color 0.4s ease; }
.rg-footer__sky { padding-top: 8px !important; }
.rg-footer__sky {
	position: relative; padding-top: 48px; padding-bottom: 36px;
	background-color: var(--wp--preset--color--night);
	background-image:
		radial-gradient(1.6px 1.6px at 8% 14%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 21% 32%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 32% 10%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 44% 40%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.6px 1.6px at 57% 18%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 68% 46%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.8px 1.8px at 79% 12%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 90% 34%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 96% 8%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.2px 1.2px at 15% 60%, #F3EAD7 50%, transparent 51%),
		radial-gradient(1.4px 1.4px at 74% 70%, #F3EAD7 50%, transparent 51%);
	background-repeat: no-repeat;
}
.rg-footer__cta { gap: 32px; align-items: flex-end !important; }
.rg-footer__cta > * { margin: 0 !important; }
.rg-footer__cta .wp-block-heading { max-width: 760px; margin-top: 18px !important; color: var(--wp--preset--color--sand); }
.rg-footer__cta .wp-block-heading em { color: var(--wp--preset--color--sun); }
.rg-footer .wp-block-button__link { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--night); }
.rg-footer .wp-block-button__link:hover { background: var(--wp--preset--color--sand); color: var(--wp--preset--color--night); }
.rg-footer__base { margin-top: 64px !important; padding-top: 24px; border-top: 1px solid #2E4237; gap: 12px; font-size: 0.875rem; color: #B9C4B6; }
.rg-footer__base > * { margin: 0 !important; }
.rg-footer a { color: #B9C4B6; }
.rg-footer .rg-social .wp-social-link,
.rg-footer .rg-social .wp-social-link a { color: #F3EAD7 !important; fill: #F3EAD7; }

/* ---------- 404 + search ------------------------------------------------ */

.rg-404 { text-align: left; padding-block: clamp(3rem, 8vw, 6rem); }
.wp-block-search__input { border-radius: 999px; border: 1px solid var(--rg-line); padding: 0.8rem 1.2rem; background: var(--wp--preset--color--paper); }
.wp-block-search__button { margin-left: 8px; }

/* ---------- Mode switch: lights out, then reveal ------------------------ */

.rg-lights {
	position: fixed; inset: 0; z-index: 100000;
	display: grid; place-items: center;
	background-color: #0B110E; opacity: 0;
	transition: opacity 0.45s cubic-bezier(0.55, 0, 1, 0.45);
	cursor: progress; pointer-events: all;
}
.rg-lights.is-dark { opacity: 1; }
.rg-lights.is-revealing { transition: none; }

.rg-lights__star {
	position: absolute; width: 2px; height: 2px; border-radius: 50%;
	background: #F3EAD7; opacity: 0;
	animation: rg-twinkle 1.6s ease-in-out infinite alternate;
}
@keyframes rg-twinkle { from { opacity: 0.1; } to { opacity: 0.85; } }

.rg-lights__card {
	position: relative; text-align: center; color: #F3EAD7;
	opacity: 0; transform: translateY(10px);
	transition: opacity 0.45s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.rg-lights.is-dark .rg-lights__card { opacity: 1; transform: none; }
.rg-lights.is-revealing .rg-lights__card { opacity: 0; transform: scale(0.94); transition: opacity 0.3s ease, transform 0.3s ease; }

.rg-lights__icon { line-height: 0; margin: 0 auto 18px; width: 88px; height: 88px; }
.rg-lights__icon svg { width: 100%; height: 100%; overflow: visible; }
.rg-lights__eyebrow { margin: 0; font: 500 0.75rem/1.4 var(--wp--preset--font-family--mono); letter-spacing: 0.22em; text-transform: uppercase; color: #9FB0A4; }
.rg-lights__title { margin: 6px 0 0; font: italic 600 clamp(2.25rem, 5vw, 3.5rem)/1 var(--wp--preset--font-family--display); letter-spacing: -0.02em; }

/* Icon: the campfire catches / the lamp flickers on. */
.rg-lights__halo { opacity: 0; transition: opacity 0.6s ease; filter: blur(8px); }
.rg-lights.is-lit .rg-lights__halo { opacity: 0.35; }
.rg-lights__flame { transform-origin: 40px 66px; transform: scale(0); }
.rg-lights.is-lit .rg-lights__flame { animation: rg-ignite 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, rg-flicker-fire 0.18s ease-in-out 0.55s infinite alternate; }
@keyframes rg-ignite { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes rg-flicker-fire { from { transform: scale(1, 1); } to { transform: scale(0.96, 1.05); } }
.rg-lights__bulb { fill: #3A4A54; }
.rg-lights--weekday.is-lit .rg-lights__bulb { animation: rg-bulb 0.6s steps(1) forwards; }
.rg-lights--weekday.is-lit .rg-lights__halo { animation: rg-lamp 0.6s steps(1) forwards; }
@keyframes rg-bulb { 0% { fill: #FFD994; } 15% { fill: #3A4A54; } 30% { fill: #FFD994; } 42% { fill: #3A4A54; } 55%, 100% { fill: #FFF1C9; } }
@keyframes rg-lamp { 0% { opacity: 0.3; } 15% { opacity: 0; } 30% { opacity: 0.25; } 42% { opacity: 0; } 55%, 100% { opacity: 0.4; } }

/* As the light spreads: the scene settles like eyes adjusting, the words lift in. */
html.rg-reveal .rg-hero > .rg-scene svg { animation: rg-adjust 1.5s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: 50% 70%; }
html.rg-reveal .rg-hero__copy > * { animation: rg-lift-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
@keyframes rg-adjust { from { transform: scale(1.06); filter: brightness(0.75) saturate(0.8); } }
@keyframes rg-lift-in { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Night mode: Sat–Sun puts the whole site after dark. Mon–Fri is day.
   ========================================================================== */

:root {
	--rg-n-bg: #0F1714;
	--rg-n-surface: #18231E;
	--rg-n-surface-2: #213029;
	--rg-n-text: #ECE5D5;
	--rg-n-muted: #A9B4A6;
	--rg-n-line: #2B3A32;
	--rg-n-dash: #3A4A40;
	--rg-n-accent: #E8B86B;
	--rg-n-ember: #E9844E;
	--rg-n-sky: #0E1722;
}
body, .rg-topbar, .rg-hero, .rg-tile, .rg-cards .wp-block-post, .rg-footer__sky { transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease; }

html[data-rg-mode="weekend"] body { background-color: var(--rg-n-bg); color: var(--rg-n-text); }
html[data-rg-mode="weekend"] :where(body) a:where(:not(.wp-element-button)) { color: var(--rg-n-text); }
html[data-rg-mode="weekend"] :where(body) a:where(:not(.wp-element-button)):hover { color: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .wp-element-button,
html[data-rg-mode="weekend"] .wp-block-button__link { background-color: var(--rg-n-accent); color: #111916; }
html[data-rg-mode="weekend"] .wp-element-button:hover,
html[data-rg-mode="weekend"] .wp-block-button__link:hover { background-color: var(--rg-n-text); color: #111916; }
html[data-rg-mode="weekend"] .is-style-outline .wp-block-button__link { background: transparent; color: var(--rg-n-text); border-color: var(--rg-n-text); }

/* Header + hero */
html[data-rg-mode="weekend"] .rg-topbar { background: var(--rg-n-bg); border-bottom-color: var(--rg-n-line); }
html[data-rg-mode="weekend"] .rg-hero { background: var(--rg-n-sky); }
html[data-rg-mode="weekend"] .rg-brand .wp-block-site-title a,
html[data-rg-mode="weekend"] .rg-nav a { color: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-scene--mark circle { fill: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-scene--mark path { fill: var(--rg-n-bg); }
html[data-rg-mode="weekend"] .rg-scene--mark path + path { fill: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-hero__hint { color: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-mode-toggle { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6); }
html[data-rg-mode="weekend"] .rg-mode-toggle button { color: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-mode-toggle__icon { background: rgba(255, 255, 255, 0.08); }
html[data-rg-mode="weekend"] .rg-mode-toggle::before { background: var(--wp--preset--color--forest); box-shadow: 0 0 0 1px rgba(232, 184, 107, 0.25), 0 8px 24px -6px rgba(232, 184, 107, 0.35); }

/* Tiles */
html[data-rg-mode="weekend"] .rg-tile--paper { background: var(--rg-n-surface); border-color: var(--rg-n-line); color: var(--rg-n-text); }
html[data-rg-mode="weekend"] .rg-tile--paper p:not(.rg-tile__title):not(.rg-tile__label) { color: var(--rg-n-muted); }
html[data-rg-mode="weekend"] .rg-tile--paper .rg-tile__label,
html[data-rg-mode="weekend"] .rg-latest .wp-block-post-date { color: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-tile--sun { color: var(--wp--preset--color--ink); }
html[data-rg-mode="weekend"] .rg-tile--paper .rg-icon svg { stroke: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-latest .wp-block-post-featured-image { background: var(--rg-n-surface-2); }

/* Section heads, trail log, cards, posts */
html[data-rg-mode="weekend"] .rg-more a,
html[data-rg-mode="weekend"] .rg-more a:hover { color: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-log .wp-block-post-template,
html[data-rg-mode="weekend"] .rg-log .wp-block-post { border-color: var(--rg-n-dash); }
html[data-rg-mode="weekend"] .rg-log .wp-block-post-date,
html[data-rg-mode="weekend"] .rg-single-meta { color: #B7A27A; }
html[data-rg-mode="weekend"] .rg-log .wp-block-post-title a:hover { color: var(--rg-n-accent); }
html[data-rg-mode="weekend"] .rg-cards .wp-block-post { background: var(--rg-n-surface); border-color: var(--rg-n-line); }
html[data-rg-mode="weekend"] .rg-cards .wp-block-post-excerpt { color: var(--rg-n-muted); }
html[data-rg-mode="weekend"] .rg-cards .wp-block-post-featured-image { background: var(--rg-n-surface-2); }
html[data-rg-mode="weekend"] .rg-post-nav { border-color: var(--rg-n-dash); }
html[data-rg-mode="weekend"] .rg-prose blockquote { border-left-color: var(--rg-n-ember); }
html[data-rg-mode="weekend"] .wp-block-search__input { background: var(--rg-n-surface); border-color: var(--rg-n-line); color: var(--rg-n-text); }

/* Footer: deeper night under the campfire */
html[data-rg-mode="weekend"] .rg-footer__sky { background-color: #0B110F; }
html[data-rg-mode="weekend"] .rg-footer__base { border-top-color: #1E2A24; }
html[data-rg-mode="weekend"] .rg-footer .wp-block-button__link { background: var(--rg-n-accent); color: #0B110F; }


/* ---------- Motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.rg-hero, .rg-mode-toggle button, .rg-mode-toggle::before, .rg-polaroids *, .rg-footer__sky, .rg-hero__copy > * { transition: none !important; }
	.rg-lights, .rg-lights * { display: none !important; }
	.rg-photo--real img { animation: none !important; transition: none !important; }
}

/* Icon buttons: keep arrows and crosses dead centre */
.rg-roll__btn, .rg-trip__lb-btn, .rg-vx__nav button, .rg-walk__nav button { display: inline-grid !important; place-items: center; padding: 0 !important; line-height: 1; }
.rg-roll__btn svg, .rg-trip__lb-btn svg, .rg-vx__nav button svg, .rg-walk__nav button svg { display: block; }

/* ---------- Mobile menu: the trail map ----------------------------------- */

.rg-nav__num, .rg-nav__desc, .rg-nav__van, .rg-nav__foot { display: none; }

/* Open button: two lines of different lengths, no stock icon. */
.rg-nav .wp-block-navigation__responsive-container-open {
	position: relative; width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.55); border: 1px solid var(--rg-line); color: var(--wp--preset--color--ink);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}
.rg-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.rg-nav .wp-block-navigation__responsive-container-open::before,
.rg-nav .wp-block-navigation__responsive-container-open::after {
	content: ""; position: absolute; left: 13px; height: 2.5px; border-radius: 2px; background: currentColor;
	transition: width 0.3s ease, transform 0.3s ease;
}
.rg-nav .wp-block-navigation__responsive-container-open::before { top: 18px; width: 22px; }
.rg-nav .wp-block-navigation__responsive-container-open::after { top: 26px; width: 14px; }
.rg-nav .wp-block-navigation__responsive-container-open:hover::after { width: 22px; }
.rg-nav .wp-block-navigation__responsive-container-open:active { transform: scale(0.92); }
html[data-rg-mode="weekend"] .rg-nav .wp-block-navigation__responsive-container-open { background: var(--rg-n-surface); border-color: var(--rg-n-line); color: var(--rg-n-text); }

/* The overlay */
.rg-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	--nav-bg: #22392B; --nav-text: #F3EAD7; --nav-muted: rgba(243, 234, 215, 0.62); --nav-line: rgba(243, 234, 215, 0.16);
	padding: 0 !important; background-color: var(--nav-bg) !important; color: var(--nav-text) !important;
	background-image:
		repeating-radial-gradient(ellipse at 110% -10%, transparent 0 34px, var(--nav-line) 35px 36px, transparent 37px 70px),
		repeating-radial-gradient(ellipse at -20% 115%, transparent 0 40px, rgba(243, 234, 215, 0.08) 41px 42px, transparent 43px 80px) !important;
	animation: rg-nav-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
html[data-rg-mode="weekend"] .rg-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open { --nav-bg: #0B1310; }
@keyframes rg-nav-in { from { clip-path: circle(0 at calc(100% - 44px) 44px); } to { clip-path: circle(150% at calc(100% - 44px) 44px); } }

.rg-nav .is-menu-open .wp-block-navigation__responsive-close,
.rg-nav .is-menu-open .wp-block-navigation__responsive-dialog { height: 100%; max-width: none; }
.rg-nav .is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "Where to next?"; display: block; padding: 30px 24px 0; font: italic 600 1.25rem/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--sun);
}
.rg-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 18px !important; right: 18px !important; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--nav-line); color: var(--nav-text); transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}
.rg-nav .is-menu-open .wp-block-navigation__responsive-container-close:hover { transform: rotate(90deg); background: rgba(243, 234, 215, 0.08); }
.rg-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { fill: currentColor; }

.rg-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	position: relative; display: flex !important; flex-direction: column; align-items: stretch !important; justify-content: flex-start;
	min-height: calc(100% - 52px); padding: 34px 24px 28px 70px !important; gap: 0 !important;
}
.rg-nav .is-menu-open .wp-block-navigation__container { position: relative; align-items: stretch !important; gap: 4px !important; width: 100%; }
.rg-nav .is-menu-open .wp-block-navigation__container::before { /* the trail */
	content: ""; position: absolute; left: -33px; top: 34px; bottom: 34px; width: 0; border-left: 3px dashed rgba(232, 184, 107, 0.45);
}
.rg-nav .is-menu-open .wp-block-navigation-item {
	position: relative; width: 100%; opacity: 0; transform: translateX(-18px);
	animation: rg-nav-item 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.12s + var(--i, 0) * 0.06s);
}
@keyframes rg-nav-item { to { opacity: 1; transform: none; } }
.rg-nav .is-menu-open .wp-block-navigation-item::before { /* waypoint */
	content: ""; position: absolute; left: -37px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
	background: var(--nav-bg); border: 2.5px solid var(--wp--preset--color--sun); transition: transform 0.3s ease, background-color 0.3s ease;
}
.rg-nav .is-menu-open .wp-block-navigation-item.is-here::before { background: var(--wp--preset--color--sun); }
.rg-nav .is-menu-open .wp-block-navigation-item__content {
	display: grid !important; grid-template-columns: 34px 1fr; column-gap: 8px; align-items: baseline; width: 100%; padding: 14px 0 !important;
	color: var(--nav-text) !important; border-bottom: 1px solid var(--nav-line); transition: transform 0.3s ease;
}
.rg-nav .is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { border-bottom: 0; }
.rg-nav .is-menu-open .wp-block-navigation-item__label { font: 600 clamp(2rem, 9vw, 2.75rem)/1.05 var(--wp--preset--font-family--display); transition: color 0.2s ease; }
.rg-nav .is-menu-open .rg-nav__num { display: block; grid-row: span 2; align-self: start; padding-top: 0.6em; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); color: var(--wp--preset--color--sun); }
.rg-nav .is-menu-open .rg-nav__desc { display: block; grid-column: 2; margin-top: 4px; font: 400 0.9375rem/1.3 var(--wp--preset--font-family--body); color: var(--nav-muted); }
.rg-nav .is-menu-open .wp-block-navigation-item.is-pointed .wp-block-navigation-item__content { transform: translateX(6px); }
.rg-nav .is-menu-open .wp-block-navigation-item.is-pointed .wp-block-navigation-item__label,
.rg-nav .is-menu-open .wp-block-navigation-item.is-here .wp-block-navigation-item__label { color: var(--wp--preset--color--sun); }
.rg-nav .is-menu-open .wp-block-navigation-item.is-here .wp-block-navigation-item__label::after {
	content: "here"; margin-left: 10px; padding: 3px 7px; border-radius: 999px; vertical-align: middle;
	font: 500 0.625rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--wp--preset--color--sun); color: #1F2A22;
}
.rg-nav .is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--wp--preset--color--sun); outline-offset: 4px; }

/* The van, driving the trail */
.rg-nav .is-menu-open .rg-nav__van {
	display: block; position: absolute; left: 20px; top: 0; width: 38px; height: 22px; z-index: 2; pointer-events: none;
	transform: translate3d(0, 0, 0); transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.rg-nav .is-menu-open .rg-nav__van svg { display: block; width: 100%; height: auto; transform: rotate(90deg); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.rg-nav .is-menu-open .rg-nav__van:not(.is-parked) { opacity: 0; }
.rg-nav .is-menu-open .rg-nav__van.is-parked { opacity: 1; transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.3s ease 0.3s; }

/* Sign-off */
.rg-nav .is-menu-open .rg-nav__foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px;
	opacity: 0; animation: rg-nav-item 0.5s ease 0.5s both;
}
.rg-nav .is-menu-open .rg-nav__foot p { margin: 0; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--nav-muted); }
.rg-nav .is-menu-open .rg-nav__flip {
	padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--nav-line); background: transparent; color: var(--nav-text); cursor: pointer;
	font: 600 0.9375rem/1 var(--wp--preset--font-family--body); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.rg-nav .is-menu-open .rg-nav__flip:hover { background: rgba(243, 234, 215, 0.08); border-color: var(--wp--preset--color--sun); }

@media (prefers-reduced-motion: reduce) {
	.rg-nav .is-menu-open, .rg-nav .is-menu-open *:not(.rg-nav__van):not(svg) { animation: none !important; opacity: 1 !important; transform: none !important; }
	.rg-nav .is-menu-open .rg-nav__van svg { transform: rotate(90deg) !important; }
}

/* ---------- Every page starts flush under the header border ------------- */
.wp-site-blocks > .rg-topbar + *,
.wp-site-blocks > .rg-topbar + * > main:first-child { margin-block-start: 0 !important; }
/* Plain templates keep their breathing room, as padding inside the page instead. */
.wp-site-blocks > .rg-topbar + main.wp-block-group:not([class*="rg-"]) { padding-top: max(var(--wp--style--block-gap, 1.25rem), 1.25rem); }

/* Footer base: credit and socials on the left, the switcher on the right. */
.rg-footer__credit span { display: block; }
.rg-footer__credit span:first-child { color: var(--wp--preset--color--sand); font-weight: 500; }
.rg-footer__credit span + span { margin-top: 4px; }
@media (min-width: 761px) {
	.rg-footer__base { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px !important; row-gap: 14px !important; align-items: center !important; }
	.rg-footer__base > .rg-footer__credit { grid-column: 1; grid-row: 1; }
	.rg-footer__base > .rg-social { grid-column: 1; grid-row: 2; justify-content: flex-start; }
	.rg-footer__base > .rg-mode-toggle { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
}
@media (max-width: 760px) {
	.rg-footer__base > .rg-social { order: 1; }
	.rg-footer__base > .rg-mode-toggle { order: 2; }
}

/* ---------- Keep exploring (end of every post) --------------------------- */
.rg-explore { margin-top: clamp(4rem, 8vw, 6rem) !important; margin-bottom: clamp(3rem, 6vw, 5rem) !important; }
.rg-explore__kicker { margin: 0 0 14px !important; font: 500 0.75rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--ember); }
.rg-explore__grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-auto-rows: minmax(190px, auto); }
.rg-explore__grid--1 { grid-template-columns: 1fr; }
.rg-explore__grid--2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.rg-explore__grid--3 .is-lead { grid-row: span 2; }
.rg-explore__card {
	position: relative; display: flex; align-items: flex-end; min-height: 190px; padding: 24px 88px 24px 26px; overflow: hidden; isolation: isolate;
	border-radius: 26px; text-decoration: none !important; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--sand) !important;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.rg-explore__card.is-lead { min-height: 400px; padding: clamp(26px, 4vw, 44px); padding-right: 110px; }
.rg-explore__card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease; filter: saturate(0.9); }
.rg-explore__card.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 23, 20, 0.05) 20%, rgba(15, 23, 20, 0.85) 100%); }
.rg-explore__card:not(.has-img)::after { content: ""; position: absolute; right: -60px; bottom: -80px; z-index: -1; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 132, 78, 0.5), rgba(233, 132, 78, 0)); }
.rg-explore__card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(31, 42, 34, 0.7); }
.rg-explore__card:hover img { transform: scale(1.08); filter: saturate(1.05); }
.rg-explore__card:focus-visible { outline: 3px solid var(--wp--preset--color--ember); outline-offset: 4px; }
.rg-explore__body { display: flex; flex-direction: column; gap: 8px; }
.rg-explore__label { font: 500 0.6875rem/1 var(--wp--preset--font-family--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--sun); }
.rg-explore__title { font: 800 clamp(1.25rem, 2vw, 1.6rem)/1.1 var(--wp--preset--font-family--display); max-width: 24ch; text-wrap: balance; }
.rg-explore__card.is-lead .rg-explore__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.rg-explore__meta { font-size: 0.875rem; color: rgba(243, 234, 215, 0.75); }
.rg-explore__go { position: absolute; right: 22px; bottom: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink); font-size: 1.15rem; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rg-explore__card.is-lead .rg-explore__go { width: 60px; height: 60px; right: clamp(24px, 4vw, 40px); bottom: clamp(24px, 4vw, 40px); font-size: 1.4rem; }
.rg-explore__card:hover .rg-explore__go { transform: translateX(5px); }
.rg-explore__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.rg-explore__back { gap: 8px; font-weight: 600; color: var(--wp--preset--color--ember) !important; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.rg-explore__back:hover { text-decoration: underline; }
.rg-explore__random {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--rg-line);
	color: var(--wp--preset--color--ink) !important; text-decoration: none; font-weight: 600; transition: border-color 0.2s ease, transform 0.3s ease;
}
.rg-explore__random:hover { border-color: var(--wp--preset--color--ember); }
.rg-explore__random:hover svg { animation: rg-explore-roll 0.6s ease; }
@keyframes rg-explore-roll { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
	.rg-explore__grid, .rg-explore__grid--2 { grid-template-columns: 1fr; }
	.rg-explore__grid--3 .is-lead { grid-row: auto; }
	.rg-explore__card.is-lead { min-height: 300px; padding-right: 26px; padding-bottom: 96px; }
	.rg-explore__card { padding-bottom: 84px; padding-right: 26px; }
}
html[data-rg-mode="weekend"] .rg-explore__card { background: #0B120F; border: 1px solid var(--rg-n-line); }
html[data-rg-mode="weekend"] .rg-explore__kicker, html[data-rg-mode="weekend"] .rg-explore__back { color: var(--rg-n-ember) !important; }
html[data-rg-mode="weekend"] .rg-explore__random { border-color: var(--rg-n-line); color: var(--rg-n-text) !important; }
@media (prefers-reduced-motion: reduce) { .rg-explore__card, .rg-explore__card img, .rg-explore__go { transition: none; } .rg-explore__random:hover svg { animation: none; } }

/* ---------- One arrow, everywhere ----------------------------------------- */
/* The same line-and-head arrow as the round buttons, drawn with a mask so it takes the text colour. */
.rg-arr, .rg-go .wp-block-button__link::after,
.wp-block-query-pagination-previous::before, .wp-block-query-pagination-next::after {
	content: ""; display: inline-block; flex: none; width: 1.05em; height: 1.05em; vertical-align: -0.16em; 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rg-arr--left, .wp-block-query-pagination-previous::before { transform: scaleX(-1); }
.rg-arr--down { transform: rotate(90deg); }
.rg-arr--out { transform: rotate(-45deg); }
.rg-go .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; }
.rg-go .wp-block-button__link::after { margin-right: -2px; }
.wp-block-query-pagination-previous, .wp-block-query-pagination-next { display: inline-flex; align-items: center; gap: 8px; }
.wp-block-button__link:has(.rg-arr) { display: inline-flex; align-items: center; gap: 10px; }
/* Nudge on hover, same everywhere */
a:hover > .rg-arr:not(.rg-arr--left):not(.rg-arr--down):not(.rg-arr--out), button:hover > .rg-arr:not(.rg-arr--left), .rg-go .wp-block-button__link:hover::after, .wp-block-query-pagination-next:hover::after { transform: translateX(3px); }
a:hover > .rg-arr--left, .wp-block-query-pagination-previous:hover::before { transform: scaleX(-1) translateX(3px); }
a:hover > .rg-arr--out { transform: rotate(-45deg) translateX(2px); }
/* Inside round "go" buttons, the arrow sizes to the circle */
.rg-dive__go .rg-arr, .rg-explore__go .rg-arr { width: 20px; height: 20px; vertical-align: 0; }
.rg-explore__card.is-lead .rg-explore__go .rg-arr, .rg-trip__next-go .rg-arr { width: 24px; height: 24px; vertical-align: 0; }
.rg-trip__hl-go .rg-arr { width: 15px; height: 15px; vertical-align: 0; }
.rg-trip__cue .rg-arr { width: 22px; height: 22px; vertical-align: 0; }
.rg-reach__arrow .rg-arr { width: 1.1em; height: 1.1em; }
@media (prefers-reduced-motion: reduce) { .rg-arr { transition: none; } }
