/* ==========================================================================
   RGP theme — component layer. Loaded on the front end AND in the editor.
   Every colour is a role variable (--rgp-*). Section styles only remap roles,
   so any block placed inside a Midnight section is automatically legible.
   ========================================================================== */

:root {
	--c-midnight: var(--wp--preset--color--midnight);
	--c-slate: var(--wp--preset--color--slate);
	--c-ivory: var(--wp--preset--color--ivory);
	--c-paper: var(--wp--preset--color--paper);
	--c-sand: var(--wp--preset--color--sandstone);

	/* Light roles (default) */
	--rgp-surface: var(--c-ivory);
	--rgp-surface-alt: var(--c-paper);
	--rgp-surface-panel: var(--c-sand);
	--rgp-ink: var(--wp--preset--color--deep-text);
	--rgp-ink-heading: var(--c-midnight);
	--rgp-ink-muted: var(--wp--preset--color--taupe-ink);
	--rgp-accent: var(--wp--preset--color--clay-deep);
	--rgp-accent-decor: var(--wp--preset--color--clay);
	--rgp-premium: var(--wp--preset--color--bronze-deep);
	--rgp-border: var(--wp--preset--color--taupe);
	--rgp-hairline: #D8CCBA;
	--rgp-grid-line: #C9BBA7;
	--rgp-focus: var(--c-slate);
	--rgp-btn-bg: var(--c-midnight);
	--rgp-btn-ink: var(--c-ivory);
	--rgp-btn-hover: var(--c-slate);
	--rgp-conv-bg: var(--wp--preset--color--clay-deep);
	--rgp-conv-ink: var(--c-ivory);
	--rgp-error: #9A2F2A;

	--rgp-radius-sm: var(--wp--custom--radius--sm);
	--rgp-radius-md: var(--wp--custom--radius--md);
	--rgp-radius-lg: var(--wp--custom--radius--lg);
	--rgp-fast: var(--wp--custom--duration--fast);
	--rgp-slow: var(--wp--custom--duration--slow);
	--rgp-gutter: clamp(16px, 4vw, 32px);
	--rgp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark roles: Midnight sections, footer, dark hero, mobile menu */
.is-style-section-midnight,
.rgp-dark,
.wp-block-navigation__responsive-container.is-menu-open {
	--rgp-surface: var(--c-midnight);
	--rgp-surface-alt: #1E3249;
	--rgp-surface-panel: var(--c-slate);
	--rgp-ink: var(--wp--preset--color--light-text);
	--rgp-ink-heading: var(--wp--preset--color--light-text);
	--rgp-ink-muted: #C4B8A8;
	--rgp-accent: #D4926F;
	--rgp-accent-decor: #C98262;
	--rgp-premium: var(--wp--preset--color--bronze);
	--rgp-border: #7F8A96;
	--rgp-hairline: #2F4A63;
	--rgp-grid-line: #3A5872;
	--rgp-focus: var(--wp--preset--color--mist);
	--rgp-btn-bg: var(--c-ivory);
	--rgp-btn-ink: var(--c-midnight);
	--rgp-btn-hover: var(--c-sand);
	--rgp-conv-bg: #D4926F;
	--rgp-conv-ink: var(--c-midnight);
	--rgp-error: #F0A39C;
	color-scheme: dark;
}

/* ---------- Section styles (Group block → Styles panel) ---------- */
.is-style-section-ivory,
.is-style-section-paper,
.is-style-section-sandstone,
.is-style-section-midnight,
.is-style-section-mission {
	position: relative;
	background: var(--rgp-surface);
	color: var(--rgp-ink);
	padding-block: var(--wp--preset--spacing--90);
	margin-block: 0 !important;
}
.is-style-section-paper { --rgp-surface: var(--c-paper); --rgp-surface-alt: var(--c-ivory); }
.is-style-section-sandstone { --rgp-surface: var(--c-sand); --rgp-surface-alt: var(--c-paper); --rgp-surface-panel: var(--c-ivory); }
.is-style-section-midnight { background: var(--wp--preset--gradient--mist-midnight), var(--c-midnight); }
.is-style-section-mission { background: var(--wp--preset--gradient--ivory-sandstone); padding-block: var(--wp--preset--spacing--110); }
.is-style-section-ivory::before,
.is-style-section-sandstone::before,
.is-style-section-mission::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--rgp-grain); opacity: .5; mix-blend-mode: multiply;
}
.is-style-section-ivory > *, .is-style-section-sandstone > *, .is-style-section-mission > * { position: relative; }
.rgp-section-lg { padding-block: var(--wp--preset--spacing--100) !important; }
.rgp-section-xl { padding-block: var(--wp--preset--spacing--110) !important; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-block-start: 0; }
main.rgp-main { margin-top: 0; }
main.rgp-main > .wp-block-post-content > * { margin-block-start: 0; }

/* ---------- Typography helpers ---------- */
.rgp-display, .rgp-statement, .rgp-serif {
	font-family: var(--wp--preset--font-family--serif) !important;
	font-weight: 500 !important;
	letter-spacing: -0.012em;
	text-wrap: balance;
	color: var(--rgp-ink-heading);
}
.rgp-display { font-size: var(--wp--preset--font-size--display) !important; line-height: .98 !important; }
.rgp-statement { font-size: var(--wp--preset--font-size--statement) !important; line-height: 1.06 !important; }
h1, h2, h3, h4 { text-wrap: balance; }
.rgp-eyebrow {
	font-size: var(--wp--preset--font-size--label) !important;
	font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--rgp-accent); margin-bottom: 0;
}
.rgp-eyebrow + * { margin-top: var(--wp--preset--spacing--40) !important; }
.rgp-premium-text { color: var(--rgp-premium) !important; }
.rgp-lead { font-size: var(--wp--preset--font-size--body-lg); line-height: 1.55; max-width: 60ch; }
.rgp-muted { color: var(--rgp-ink-muted); }
.rgp-emph { color: var(--rgp-accent); }
.rgp-center { text-align: center; margin-inline: auto; }
p { max-width: 68ch; }
.has-text-align-center, .rgp-center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color var(--rgp-fast), color var(--rgp-fast), border-color var(--rgp-fast), transform var(--rgp-fast); text-decoration: none; }
.wp-block-button__link:active { transform: translateY(1px); }
.wp-block-button__link:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent; color: var(--rgp-ink-heading); border-color: var(--rgp-ink-heading);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: var(--rgp-surface-panel); color: var(--rgp-ink-heading); border-color: var(--rgp-ink-heading); }
.wp-block-button.is-style-conversion .wp-block-button__link { background: var(--rgp-conv-bg); color: var(--rgp-conv-ink); border-color: var(--rgp-conv-bg); }
.wp-block-button.is-style-conversion .wp-block-button__link:hover { filter: brightness(.92); background: var(--rgp-conv-bg); border-color: var(--rgp-conv-bg); }
.wp-block-button.is-style-tertiary .wp-block-button__link {
	background: none; border: 0; border-radius: 0; padding: 0 0 3px; min-height: 0;
	color: var(--rgp-ink-heading); border-bottom: 1.5px solid var(--rgp-accent-decor);
}
.wp-block-button.is-style-tertiary .wp-block-button__link::after { content: "→"; transition: transform var(--rgp-fast); }
.wp-block-button.is-style-tertiary .wp-block-button__link:hover::after { transform: translateX(4px); }
@media (max-width: 600px) { .wp-element-button, .wp-block-button__link { min-height: 48px; } }

/* ---------- Header ---------- */
.rgp-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--rgp-surface) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--rgp-fast), padding var(--rgp-fast);
}
.admin-bar .rgp-header { top: var(--wp-admin--admin-bar--height, 0px); }
.rgp-header.is-scrolled { border-bottom-color: var(--rgp-hairline); }
.rgp-header__inner { min-height: 80px; transition: min-height var(--rgp-fast); }
.rgp-header.is-scrolled .rgp-header__inner { min-height: 64px; }
.rgp-mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rgp-ink-heading) !important; }
.rgp-mark svg { width: 40px; height: 40px; flex: none; }
.rgp-mark__name { font: 600 14px/1.15 var(--wp--preset--font-family--sans); letter-spacing: .02em; }
.rgp-mark__name small { display: block; font-weight: 500; font-size: 12px; color: var(--rgp-ink-muted); letter-spacing: .04em; }
.rgp-header .wp-block-navigation a { text-decoration: none; color: var(--rgp-ink); padding-block: 6px; border-bottom: 2px solid transparent; }
.rgp-header .wp-block-navigation a:hover { border-bottom-color: var(--rgp-accent-decor); }
.rgp-header .wp-block-navigation .current-menu-item > a,
.rgp-header .wp-block-navigation a[aria-current="page"] { border-bottom-color: var(--rgp-ink-heading); }
.rgp-lang { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--rgp-ink-muted); white-space: nowrap; margin: 0; }
.rgp-lang a { color: var(--rgp-ink-muted); text-decoration: none; }
.rgp-lang a[aria-current] { color: var(--rgp-ink-heading); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--c-midnight) !important; color: var(--rgp-ink) !important; padding: 24px var(--rgp-gutter); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { font-size: 26px; font-weight: 600; color: var(--rgp-ink) !important; }
@media (max-width: 781px) {
	.rgp-header .rgp-header__cta { display: none; }
	.rgp-mark__name { display: none; }
}

/* ---------- Grid motif (hero axes) ---------- */
.rgp-axes { position: relative; overflow: hidden; }
.rgp-axes::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(var(--rgp-grid-line), var(--rgp-grid-line)) 0 38% / 100% 1px no-repeat,
		linear-gradient(var(--rgp-grid-line), var(--rgp-grid-line)) 61% 0 / 1px 100% no-repeat;
	opacity: .7;
}
.rgp-axes > * { position: relative; z-index: 1; }
@media (max-width: 781px) { .rgp-axes::after { display: none; } }

/* ---------- Media ---------- */
.rgp-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rgp-radius-md); display: block; }
.rgp-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rgp-radius-md); display: block; }
.rgp-bw img { filter: grayscale(1) contrast(1.05); }

.rgp-video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--rgp-radius-md); overflow: hidden; background: var(--wp--preset--gradient--midnight-slate); }
.rgp-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rgp-video::after { content: ""; position: absolute; inset: 0; background: rgba(22, 38, 58, .3); pointer-events: none; transition: background var(--rgp-fast); }
.rgp-video:hover::after { background: rgba(22, 38, 58, .18); }
.rgp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.rgp-video__play {
	position: absolute; z-index: 1; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
	border-radius: 50%; border: 0; background: var(--c-ivory); display: grid; place-items: center; cursor: pointer;
	transition: transform var(--rgp-fast);
}
.rgp-video__play:hover { transform: translate(-50%, -50%) scale(1.06); }
.rgp-video__play:focus-visible { outline: 2px solid var(--wp--preset--color--mist); outline-offset: 4px; }
.rgp-video__play svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--wp--preset--color--clay-deep); }
.rgp-video__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-weight: 600; color: var(--rgp-ink-heading); font-size: 16px; }
.rgp-video__meta span { font-weight: 400; color: var(--rgp-ink-muted); }
.rgp-video-grid { display: grid; gap: var(--wp--preset--spacing--50); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rgp-video-grid .rgp-video__meta { font-size: 15px; }
@media (max-width: 781px) {
	.rgp-video-grid { grid-template-columns: 1fr; }
	.rgp-video--hero { border-radius: 0; margin-inline: calc(var(--rgp-gutter) * -1); width: calc(100% + 2 * var(--rgp-gutter)); }
}

/* ---------- Cards ---------- */
.rgp-cards { display: grid; gap: var(--wp--preset--spacing--50); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rgp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .rgp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rgp-cards--4 { grid-template-columns: 1fr; } }
.rgp-card {
	display: flex; flex-direction: column; gap: 12px;
	padding: var(--wp--preset--spacing--60);
	background: var(--rgp-surface-alt); color: var(--rgp-ink);
	border: 1px solid var(--rgp-hairline); border-radius: var(--rgp-radius-md);
	box-shadow: var(--wp--custom--shadow--card);
	text-decoration: none;
	transition: transform var(--rgp-fast), box-shadow var(--rgp-fast), border-color var(--rgp-fast);
}
a.rgp-card:hover { transform: translateY(-2px); box-shadow: var(--wp--custom--shadow--lift); border-color: var(--rgp-border); }
a.rgp-card:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-card h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.rgp-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--rgp-ink-muted); }
.rgp-card .rgp-eyebrow { font-size: 12px; }
.rgp-card__img { margin: calc(var(--wp--preset--spacing--60) * -1) calc(var(--wp--preset--spacing--60) * -1) 8px; }
.rgp-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rgp-radius-md) var(--rgp-radius-md) 0 0; display: block; }
.rgp-card__link { margin-top: auto !important; padding-top: 8px; font-weight: 600; font-size: 16px; }
.rgp-card__link a { color: var(--rgp-ink-heading); text-decoration: none; display: inline-flex; gap: 8px; }
.rgp-card__link a::after { content: "→"; transition: transform var(--rgp-fast); }
.rgp-card__link a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rgp-card:hover .rgp-card__link a::after { transform: translateX(4px); }
.rgp-card { position: relative; }
.rgp-card:has(.rgp-card__link a):hover { transform: translateY(-2px); box-shadow: var(--wp--custom--shadow--lift); border-color: var(--rgp-border); }
.rgp-card:has(.rgp-card__link a:focus-visible) { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-card__link a:focus-visible { outline: none; }
.rgp-card > *, .rgp-cards > *, .rgp-card .wp-block-image { margin-block: 0 !important; }
.rgp-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.editor-styles-wrapper .rgp-card__link a::before { display: none; }
.rgp-card--panel { background: var(--rgp-surface-panel); }
.rgp-card--panel .rgp-eyebrow { color: var(--rgp-ink-heading); }
.rgp-card--premium { border-top: 2px solid var(--rgp-premium); }

/* Pathway list (mobile) */
@media (max-width: 600px) {
	.rgp-pathways { gap: 0; }
	.rgp-pathways .rgp-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; background: none; border: 0; border-bottom: 1px solid var(--rgp-hairline); border-radius: 0; box-shadow: none; padding: 18px 0; gap: 4px 12px; }
	.rgp-pathways .rgp-card > * { flex-basis: 100%; }
	.rgp-pathways .rgp-card .rgp-card__link { position: static; font-size: 0; padding: 0; } .rgp-pathways .rgp-card .rgp-card__link a::after { display: none; }
	.rgp-pathways .rgp-card h3 { font-size: 20px; }
	.rgp-pathways .rgp-card h3::after { content: " →"; color: var(--rgp-accent); }
}

/* BioTypes 2×2 */
.rgp-biotypes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--rgp-grid-line); border-radius: var(--rgp-radius-md); overflow: hidden; border: 1px solid var(--rgp-grid-line); }
.rgp-biotype { background: var(--rgp-surface-alt); padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); border-top: 4px solid var(--tone); display: flex; flex-direction: column; gap: 10px; }
.rgp-biotype h3 { margin: 0; }
.rgp-biotype p { margin: 0; color: var(--rgp-ink-muted); font-size: 16px; }
.rgp-biotype svg { width: 36px; height: 36px; }
.rgp-biotype svg .f { fill: var(--tone); }
.rgp-biotype svg .l { stroke: var(--rgp-grid-line); stroke-width: 1.5; fill: none; }
@media (max-width: 600px) { .rgp-biotypes { grid-template-columns: 1fr; } }

/* Method grid */
.rgp-method svg { width: 100%; height: auto; display: block; max-width: 560px; }
.rgp-method .ax { stroke: var(--rgp-grid-line); stroke-width: 1.5; }
.rgp-method .q { fill: none; stroke: var(--wp--preset--color--mist); stroke-opacity: .7; stroke-width: 1.5; }
.rgp-method .pt { fill: var(--rgp-accent-decor); }
.rgp-method .t { font: 600 13px var(--wp--preset--font-family--sans); letter-spacing: .12em; fill: var(--rgp-ink-heading); }
.rgp-method .s { font: 400 14px var(--wp--preset--font-family--sans); fill: var(--rgp-ink-muted); }
@media (prefers-reduced-motion: no-preference) {
	.rgp-method.is-visible .ax { stroke-dasharray: 700; animation: rgp-draw var(--rgp-slow) ease-out both; }
	.rgp-method.is-visible .pt { animation: rgp-pop 300ms 450ms ease-out both; }
}
@keyframes rgp-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes rgp-pop { from { opacity: 0; } to { opacity: 1; } }
.rgp-layers { list-style: none; padding: 0; margin-inline: 0; display: grid; gap: 0; }
.rgp-layers li { padding: 20px 0; border-top: 1px solid var(--rgp-hairline); display: grid; grid-template-columns: 2.5rem 1fr; gap: 4px 12px; }
.rgp-layers li:last-child { border-bottom: 1px solid var(--rgp-hairline); }
.rgp-layers b { grid-column: 2; font-size: 20px; color: var(--rgp-ink-heading); }
.rgp-layers span { grid-column: 2; color: var(--rgp-ink-muted); font-size: 16px; }
.rgp-layers i { grid-row: span 2; font-style: normal; font: 600 13px/2 var(--wp--preset--font-family--sans); letter-spacing: .1em; color: var(--rgp-accent); }

/* Quote */
.rgp-quote { border: 0 !important; padding: 24px 0 0 !important; border-top: 1.5px solid var(--rgp-accent-decor) !important; margin-inline: 0 !important; margin-block: var(--wp--preset--spacing--70) !important; max-width: 24ch; }
.rgp-quote p { font: inherit; margin: 0; max-width: none; }
.rgp-quote cite { display: block; margin-top: 16px; font: 600 13px/1.3 var(--wp--preset--font-family--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rgp-ink-muted); font-style: normal; }

/* Credential list */
.rgp-creds { list-style: none; padding: 0; margin-inline: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.rgp-creds li { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rgp-ink-muted); }
.rgp-creds li b { display: block; font: 500 34px/1 var(--wp--preset--font-family--serif); letter-spacing: 0; text-transform: none; color: var(--rgp-ink-heading); margin-bottom: 6px; }

/* Certification ladder */
.rgp-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); position: relative; counter-reset: lvl; }
.rgp-ladder::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--rgp-premium); opacity: .6; }
.rgp-ladder > div { position: relative; padding-top: 56px; }
.rgp-ladder > div::before { counter-increment: lvl; content: counter(lvl, upper-roman); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rgp-premium); background: var(--rgp-surface); display: grid; place-items: center; font: 600 15px var(--wp--preset--font-family--serif); color: var(--rgp-premium); }
.rgp-ladder h3 { margin: 0 0 8px; font-size: 22px; }
.rgp-ladder p { margin: 0; color: var(--rgp-ink-muted); font-size: 16px; }
@media (max-width: 781px) { .rgp-ladder { grid-template-columns: 1fr; } .rgp-ladder::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .rgp-ladder > div { padding: 0 0 0 64px; min-height: 44px; } }

/* Organizations logos */
.rgp-logos { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; list-style: none; padding: 0; margin-inline: 0; }
.rgp-logos li { font: 600 17px var(--wp--preset--font-family--sans); letter-spacing: .06em; color: var(--rgp-ink-muted); opacity: .9; }

/* Resources */
.rgp-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rgp-accent); }
.rgp-resource-list { list-style: none; margin-inline: 0; padding: 0; }
.rgp-resource-list li { border-top: 1px solid var(--rgp-hairline); padding: 20px 0; }
.rgp-resource-list li:last-child { border-bottom: 1px solid var(--rgp-hairline); }
.rgp-resource-list a { display: block; text-decoration: none; color: var(--rgp-ink-heading); font-weight: 600; font-size: 20px; line-height: 1.3; margin-top: 4px; }
.rgp-resource-list a:hover { color: var(--rgp-accent); }

/* Programs filter chips */
.rgp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-inline: 0; }
.rgp-chips li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--rgp-radius-sm); border: 1px solid var(--rgp-border); color: var(--rgp-ink-heading); }
.rgp-chips li[aria-current] { background: var(--rgp-btn-bg); color: var(--rgp-btn-ink); border-color: var(--rgp-btn-bg); }
.rgp-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rgp-ink-muted); margin: 0; }

/* Forms */
.rgp-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rgp-form label { display: block; font-size: 15px; font-weight: 600; color: var(--rgp-ink-heading); margin-bottom: 6px; }
.rgp-form input[type="email"], .rgp-form input[type="text"] { height: 52px; padding: 0 16px; min-width: min(100%, 300px); border: 1px solid var(--rgp-border); border-radius: var(--rgp-radius-sm); background: var(--rgp-surface-alt); color: var(--rgp-ink); font: 400 17px var(--wp--preset--font-family--sans); }
.rgp-form input:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-form button { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--rgp-btn-bg); color: var(--rgp-btn-ink); font: 600 16px var(--wp--preset--font-family--sans); cursor: pointer; }
.rgp-form button:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-form__help { flex-basis: 100%; font-size: 14px; color: var(--rgp-ink-muted); margin: 0; }

/* Footer */
.rgp-footer { background: var(--c-midnight); color: var(--rgp-ink); padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--60); position: relative; overflow: hidden; }
.rgp-footer::after { content: ""; position: absolute; right: 48px; top: 0; bottom: 0; width: 1px; background: var(--rgp-hairline); }
.rgp-footer::before { content: ""; position: absolute; right: 0; top: 72px; width: 160px; height: 1px; background: var(--rgp-hairline); }
.rgp-footer h2 { font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.01em; max-width: 16ch; }
.rgp-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; border-block: 1px solid var(--rgp-hairline); }
.rgp-footer__cols h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rgp-premium); margin: 0 0 12px; }
.rgp-footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rgp-footer__cols a, .rgp-footer__legal a { color: var(--rgp-ink-muted); text-decoration: none; font-size: 15px; }
.rgp-footer__cols a:hover, .rgp-footer__legal a:hover { color: var(--rgp-ink); text-decoration: underline; }
.rgp-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--rgp-ink-muted); margin: 0; max-width: none; }
@media (max-width: 781px) { .rgp-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rgp-footer::after, .rgp-footer::before { display: none; } }

/* Sticky mobile CTA */
.rgp-sticky-cta { display: none; }
@media (max-width: 781px) {
	.rgp-sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 100; transform: translateY(160%); visibility: hidden; transition: transform var(--wp--custom--duration--base), visibility var(--wp--custom--duration--base); }
	.rgp-sticky-cta.is-shown { transform: none; visibility: visible; }
	.rgp-sticky-cta a { display: flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 999px; background: var(--c-midnight); color: var(--c-ivory); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(22,38,58,.5); }
	.rgp-sticky-cta a:focus-visible { outline: 2px solid var(--wp--preset--color--mist); outline-offset: 2px; }
}

/* Campaign ticker (landing template only) */
.rgp-ticker { background: var(--c-midnight); color: var(--wp--preset--color--light-text); overflow: hidden; white-space: nowrap; padding: 12px 0; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.rgp-ticker span { display: inline-block; padding-inline: 24px; }
@media (prefers-reduced-motion: no-preference) { .rgp-ticker > div { display: inline-block; animation: rgp-tick 40s linear infinite; } }
@keyframes rgp-tick { to { transform: translateX(-50%); } }

/* Columns: mobile ordering helper */
@media (max-width: 781px) { .rgp-media-first > .wp-block-column:last-child { order: -1; } }

/* FAQ (details block) */
.wp-block-details { border-top: 1px solid var(--rgp-hairline); padding-block: 18px; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--rgp-hairline); }
.wp-block-details summary { font-weight: 600; font-size: 19px; color: var(--rgp-ink-heading); cursor: pointer; }
.wp-block-details summary:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 4px; }

/* Global focus + motion */
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Inner-wide wrappers inside sections: keep rhythm consistent */
.is-style-section-ivory > .alignwide > * + *, .is-style-section-paper > .alignwide > * + *, .is-style-section-sandstone > .alignwide > * + *, .is-style-section-midnight > .alignwide > * + * { margin-block-start: var(--wp--preset--spacing--60); }
.wp-block-columns { gap: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70); }
.rgp-statement + .rgp-cards, .rgp-statement + .rgp-video-figure { margin-top: var(--wp--preset--spacing--70) !important; }
.rgp-header__inner { padding-inline: var(--rgp-gutter) !important; margin-inline: 0 !important; max-width: none !important; gap: 24px; }

.rgp-card > .rgp-card__img { margin: calc(var(--wp--preset--spacing--60) * -1) calc(var(--wp--preset--spacing--60) * -1) 8px !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.rgp-facts span + span::before { content: none; }
@media (max-width: 600px) { .rgp-method { display: none; } }
.is-layout-constrained > .rgp-quote { margin-inline: auto !important; max-width: var(--wp--style--global--content-size, 680px); }
.rgp-video-figure { margin-top: var(--wp--preset--spacing--60) !important; }
.rgp-video-grid .rgp-video-figure { margin-top: 0 !important; }

/* Programs page: on-this-page jump list */
.rgp-jump { border-left: 1px solid var(--rgp-grid-line); padding-left: var(--wp--preset--spacing--60); }
.rgp-jump ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: j; }
.rgp-jump li { counter-increment: j; }
.rgp-jump a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; font-size: 18px; font-weight: 600; color: var(--rgp-ink-heading); text-decoration: none; border-bottom: 1px solid var(--rgp-hairline); }
.rgp-jump a::before { content: counter(j, decimal-leading-zero); font-size: 12px; letter-spacing: .1em; color: var(--rgp-accent); }
.rgp-jump a:hover { color: var(--rgp-accent); }
section[id] { scroll-margin-top: 72px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 781px) { .rgp-jump { border-left: 0; padding-left: 0; } }

/* ---------- Coaching page (v0.3) ---------- */
.rgp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px/1.2 var(--wp--preset--font-family--sans); text-decoration: none; transition: background-color var(--rgp-fast), filter var(--rgp-fast); }
.rgp-btn--primary { background: var(--rgp-btn-bg); color: var(--rgp-btn-ink); }
.rgp-btn--primary:hover { background: var(--rgp-btn-hover); }
.rgp-btn--conversion { background: var(--rgp-conv-bg); color: var(--rgp-conv-ink); }
.rgp-btn--conversion:hover { filter: brightness(.92); }
.rgp-btn--secondary { background: transparent; color: var(--rgp-ink-heading); border-color: var(--rgp-ink-heading); }
.rgp-btn--secondary:hover { background: var(--rgp-surface-panel); }
.rgp-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.rgp-btn:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }

.rgp-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--70); }
.rgp-option { display: flex; flex-direction: column; gap: 14px; padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60); border-radius: var(--rgp-radius-lg); background: var(--rgp-surface-panel); color: var(--rgp-ink); border: 1px solid var(--rgp-hairline); }
.rgp-option.rgp-dark { background: var(--wp--preset--gradient--midnight-slate); border-color: transparent; }
.rgp-option h3 { margin: 0; font: 500 clamp(30px, 2.6vw, 40px)/1.05 var(--wp--preset--font-family--serif); color: var(--rgp-ink-heading); letter-spacing: -.01em; }
.rgp-option .rgp-eyebrow { color: var(--rgp-accent); }
.rgp-option:not(.rgp-dark) .rgp-eyebrow { color: var(--rgp-ink-heading); }
.rgp-option__who { margin: 0; font-size: 17px; color: var(--rgp-ink); }
.rgp-option__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.rgp-option__list li { position: relative; padding-left: 26px; font-size: 16px; }
.rgp-option__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border: 1.5px solid var(--rgp-accent-decor); border-radius: 2px; background: linear-gradient(var(--rgp-accent-decor), var(--rgp-accent-decor)) center / 1.5px 100% no-repeat, linear-gradient(var(--rgp-accent-decor), var(--rgp-accent-decor)) center / 100% 1.5px no-repeat; }
.rgp-option__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rgp-hairline); display: grid; gap: 10px; justify-items: start; }
.rgp-option.rgp-dark .rgp-option__foot { border-top-color: rgba(248,245,239,.18); }
.rgp-option__status { margin: 0; font-size: 14px; font-weight: 600; color: var(--rgp-ink); display: inline-flex; align-items: center; gap: 8px; }
.rgp-option__price { margin: 0; font-size: 15px; color: var(--rgp-ink-muted); }
.rgp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rgp-accent-decor); flex: none; }
.rgp-dot--open { background: #2F6B4F; }
@media (max-width: 781px) { .rgp-options { grid-template-columns: 1fr; } }

.rgp-steps { list-style: none; margin: var(--wp--preset--spacing--60) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); counter-reset: s; }
.rgp-steps li { counter-increment: s; border-top: 1.5px solid var(--rgp-ink-heading); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.rgp-steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--rgp-accent); }
.rgp-steps b { font-size: 19px; color: var(--rgp-ink-heading); }
.rgp-steps span { font-size: 16px; color: var(--rgp-ink-muted); }
@media (max-width: 900px) { .rgp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rgp-steps { grid-template-columns: 1fr; } }

.rgp-coaches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--60); }
.rgp-coach { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: var(--wp--preset--spacing--60); background: var(--rgp-surface-alt); border: 1px solid var(--rgp-hairline); border-radius: var(--rgp-radius-md); box-shadow: var(--wp--custom--shadow--card); }
.rgp-coach__photo { width: 88px; height: 110px; border-radius: var(--rgp-radius-sm); background: var(--wp--preset--gradient--ivory-sandstone); display: grid; place-items: center; font: 500 30px var(--wp--preset--font-family--serif); color: var(--rgp-ink-muted); border: 1px solid var(--rgp-hairline); }
.rgp-coach__body { display: grid; gap: 6px; align-content: start; justify-items: start; }
.rgp-coach h3 { margin: 0; font-size: 20px; }
.rgp-coach .rgp-facts { font-size: 12px; }
.rgp-coach__focus { margin: 0 0 8px; font-size: 15px; color: var(--rgp-ink-muted); }
.rgp-credential { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rgp-premium); }
.rgp-credential::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 50%; }
@media (max-width: 1080px) { .rgp-coaches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rgp-coaches { grid-template-columns: 1fr; } .rgp-coach { grid-template-columns: 72px 1fr; } .rgp-coach__photo { width: 72px; height: 90px; } }

.rgp-request { display: grid; gap: 24px; }
.rgp-request__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.rgp-request__full { grid-column: 1 / -1; }
.rgp-request label { display: block; font-size: 15px; font-weight: 600; color: var(--rgp-ink-heading); margin-bottom: 6px; }
.rgp-request input, .rgp-request select, .rgp-request textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rgp-border); border-radius: var(--rgp-radius-sm); background: var(--rgp-surface-alt); color: var(--rgp-ink); font: 400 17px/1.4 var(--wp--preset--font-family--sans); }
.rgp-request textarea { resize: vertical; }
.rgp-request :is(input, select, textarea):focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-request__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.rgp-request button { min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--rgp-conv-bg); color: var(--rgp-conv-ink); font: 600 16px var(--wp--preset--font-family--sans); cursor: pointer; }
.rgp-request button:focus-visible { outline: 2px solid var(--rgp-focus); outline-offset: 2px; }
.rgp-request__foot .rgp-form__help { flex: 1 1 240px; }
@media (max-width: 600px) { .rgp-request__grid { grid-template-columns: 1fr; } }
.rgp-request *, .rgp-request *::before, .rgp-form input, .rgp-option, .rgp-coach { box-sizing: border-box; }

/* ---------- Certification page (v0.4) ---------- */
.rgp-cohort { background: rgba(248,245,239,.06); border: 1px solid rgba(182,144,91,.55); border-radius: var(--rgp-radius-lg); padding: var(--wp--preset--spacing--60); display: grid; gap: 14px; color: var(--rgp-ink); box-sizing: border-box; }
.rgp-cohort .rgp-eyebrow { color: var(--rgp-premium); }
.rgp-cohort__date { margin: 0; font: 500 clamp(30px, 2.8vw, 42px)/1.05 var(--wp--preset--font-family--serif); color: var(--rgp-ink-heading); }
.rgp-cohort__facts { margin: 0; display: grid; gap: 0; }
.rgp-cohort__facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rgp-hairline); font-size: 15px; }
.rgp-cohort__facts dt { color: var(--rgp-ink-muted); font-weight: 500; }
.rgp-cohort__facts dd { margin: 0; color: var(--rgp-ink); font-weight: 600; }
.rgp-cohort__note { margin: 0; font-size: 13px; color: var(--rgp-ink-muted); }
@media (max-width: 480px) { .rgp-cohort__facts div { grid-template-columns: 1fr; gap: 2px; } }

.rgp-reqs { list-style: none; margin: 0; padding: 0; display: grid; }
.rgp-reqs li { display: grid; gap: 4px; padding: 20px 0 20px 40px; border-top: 1px solid var(--rgp-hairline); position: relative; }
.rgp-reqs li:last-child { border-bottom: 1px solid var(--rgp-hairline); }
.rgp-reqs li::before { content: ""; position: absolute; left: 0; top: 24px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--rgp-ink-heading); background: radial-gradient(circle, var(--rgp-accent-decor) 0 4px, transparent 4.5px); }
.rgp-reqs b { font-size: 19px; color: var(--rgp-ink-heading); }
.rgp-reqs span { font-size: 16px; color: var(--rgp-ink-muted); }

.rgp-facts--lg { font-size: 14px; gap: 8px 24px; }
.rgp-modules { list-style: none; margin: var(--wp--preset--spacing--60) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); counter-reset: m; }
.rgp-modules li { counter-increment: m; display: grid; gap: 8px; align-content: start; padding: var(--wp--preset--spacing--60); background: var(--rgp-surface-alt); border: 1px solid var(--rgp-hairline); border-radius: var(--rgp-radius-md); }
.rgp-modules li::before { content: "Module " counter(m); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rgp-accent); }
.rgp-modules b { font-size: 20px; line-height: 1.25; color: var(--rgp-ink-heading); }
.rgp-modules span { font-size: 16px; color: var(--rgp-ink-muted); }
@media (max-width: 900px) { .rgp-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rgp-modules { grid-template-columns: 1fr; } }
.rgp-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rgp-steps--5 li:last-child { border-top-color: var(--rgp-premium); }
@media (max-width: 1080px) { .rgp-steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rgp-steps--5 { grid-template-columns: 1fr; } }

.rgp-seal { width: 132px; height: 132px; display: block; margin-bottom: var(--wp--preset--spacing--50); }
.rgp-seal .o { fill: none; stroke: var(--rgp-premium); stroke-width: 1.5; }
.rgp-seal .i { fill: none; stroke: var(--rgp-premium); stroke-width: 1; opacity: .6; }
.rgp-seal .g { stroke: var(--rgp-premium); stroke-width: 1.2; opacity: .8; }
.rgp-seal .p { fill: var(--rgp-accent-decor); }
.rgp-seal .t { font: 600 9.5px var(--wp--preset--font-family--sans); letter-spacing: .22em; fill: var(--rgp-premium); }
.rgp-benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.rgp-benefits li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rgp-premium); }
.rgp-benefits svg { width: 32px; height: 32px; fill: none; stroke: var(--rgp-premium); stroke-width: 1.5; }
.rgp-benefits b { font-size: 20px; color: var(--rgp-ink-heading); }
.rgp-benefits span { font-size: 16px; color: var(--rgp-ink-muted); }
@media (max-width: 600px) { .rgp-benefits { grid-template-columns: 1fr; } }

.rgp-dates { width: 100%; border-collapse: collapse; font-size: 16px; }
.rgp-dates th, .rgp-dates td { text-align: left; padding: 14px 0; border-top: 1px solid var(--rgp-border); vertical-align: top; }
.rgp-dates tr:last-child th, .rgp-dates tr:last-child td { border-bottom: 1px solid var(--rgp-border); }
.rgp-dates th { font-weight: 500; color: var(--rgp-ink-muted); padding-right: 16px; }
.rgp-dates td { font-weight: 600; color: var(--rgp-ink-heading); text-align: right; }
.wp-block-group .rgp-dates { margin-top: 12px; }

.rgp-cohort-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rgp-premium); border-bottom: 1px solid var(--rgp-hairline); }
.rgp-cohort-strip > div { display: grid; gap: 6px; padding: 20px 20px 20px 0; }
.rgp-cohort-strip > div + div { padding-left: 20px; border-left: 1px solid var(--rgp-hairline); }
.rgp-cohort-strip span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rgp-premium); }
.rgp-cohort-strip b { font-size: 18px; color: var(--rgp-ink-heading); font-weight: 600; }
@media (max-width: 900px) { .rgp-cohort-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rgp-cohort-strip > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .rgp-cohort-strip { grid-template-columns: 1fr; } .rgp-cohort-strip > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rgp-hairline); } }

/* ---------- Resources page (v0.5) ---------- */
.rgp-bts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--60); }
.rgp-bt { background: var(--rgp-surface-alt); border: 1px solid var(--rgp-hairline); border-top: 4px solid var(--tone); border-radius: var(--rgp-radius-md); padding: var(--wp--preset--spacing--60); display: grid; gap: 18px; box-sizing: border-box; }
.rgp-bt header { display: grid; gap: 8px; }
.rgp-bt header svg { width: 36px; height: 36px; }
.rgp-bt svg .f { fill: var(--tone); }
.rgp-bt svg .l { stroke: var(--rgp-grid-line); stroke-width: 1.5; fill: none; }
.rgp-bt h3 { margin: 0; font: 500 clamp(30px, 2.6vw, 38px)/1.05 var(--wp--preset--font-family--serif); color: var(--rgp-ink-heading); }
.rgp-bt__line { margin: 0; font-size: 17px; color: var(--rgp-ink); }
.rgp-bt dl { margin: 0; display: grid; }
.rgp-bt dl div { display: grid; grid-template-columns: 10rem 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rgp-hairline); font-size: 15px; }
.rgp-bt dt { font-weight: 600; color: var(--rgp-ink-heading); }
.rgp-bt dd { margin: 0; color: var(--rgp-ink-muted); }
@media (max-width: 860px) { .rgp-bts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rgp-bt dl div { grid-template-columns: 1fr; gap: 2px; } }

.rgp-social { list-style: none; margin: var(--wp--preset--spacing--60) 0 var(--wp--preset--spacing--70); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rgp-social a { position: relative; display: grid; gap: 4px; padding: 20px 20px 22px; border: 1px solid var(--rgp-border); border-radius: var(--rgp-radius-md); text-decoration: none; color: var(--rgp-ink); background: var(--rgp-surface-alt); transition: border-color var(--rgp-fast), transform var(--rgp-fast); height: 100%; box-sizing: border-box; }
.rgp-social a:hover { border-color: var(--rgp-ink-heading); transform: translateY(-2px); }
.rgp-social__name { font-weight: 700; font-size: 18px; color: var(--rgp-ink-heading); }
.rgp-social__handle { font-size: 15px; color: var(--rgp-accent); font-weight: 600; }
.rgp-social__what { font-size: 14px; color: var(--rgp-ink-muted); }
.rgp-social__go { position: absolute; top: 18px; right: 18px; color: var(--rgp-ink-heading); transition: transform var(--rgp-fast); }
.rgp-social a:hover .rgp-social__go { transform: translateX(3px); }
@media (max-width: 1080px) { .rgp-social { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rgp-social { grid-template-columns: 1fr 1fr; } }

.rgp-posts { list-style: none; margin: 16px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rgp-posts a { display: block; position: relative; border-radius: var(--rgp-radius-sm); overflow: hidden; text-decoration: none; aspect-ratio: 4 / 5; background: var(--rgp-surface-panel); }
.rgp-posts img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--rgp-slow); }
.rgp-posts a:hover img { transform: scale(1.04); }
.rgp-post__meta { position: absolute; inset: auto 0 0 0; padding: 28px 12px 12px; background: linear-gradient(transparent, rgba(22,38,58,.85)); color: #F8F5EF; font-size: 13px; display: grid; gap: 2px; }
.rgp-post__meta b { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #E7D9C4; }
@media (max-width: 1080px) { .rgp-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rgp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rgp-dark .rgp-form, .is-style-section-midnight .rgp-form { margin-bottom: 20px; }

/* ---------- About page (v0.6) ---------- */
.rgp-team { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--wp--preset--spacing--60); padding-block: var(--wp--preset--spacing--70); border-top: 1px solid var(--rgp-hairline); scroll-margin-top: 72px; }
.rgp-team:first-of-type { margin-top: var(--wp--preset--spacing--60); }
.rgp-team__head { display: grid; gap: 10px; align-content: start; }
.rgp-team__head .rgp-eyebrow { font-size: 14px !important; color: var(--rgp-ink-heading); }
.rgp-team__purpose { margin: 0; font-size: 16px; color: var(--rgp-ink-muted); }
.rgp-team__link { font-size: 15px; font-weight: 600; color: var(--rgp-ink-heading); text-decoration: none; border-bottom: 1.5px solid var(--rgp-accent-decor); justify-self: start; padding-bottom: 2px; }
.rgp-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--50); }
.rgp-member { display: grid; gap: 6px; align-content: start; }
.rgp-member__photo { aspect-ratio: 4 / 5; border-radius: var(--rgp-radius-md); background: var(--wp--preset--gradient--ivory-sandstone); border: 1px solid var(--rgp-hairline); display: grid; place-items: center; font: 500 40px var(--wp--preset--font-family--serif); color: var(--rgp-ink-muted); margin-bottom: 10px; }
.rgp-member--lead .rgp-member__photo { background: var(--wp--preset--gradient--midnight-slate); color: #C4B8A8; border-color: transparent; }
.rgp-member__role { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rgp-accent); }
.rgp-member h4 { margin: 0; font-size: 19px; color: var(--rgp-ink-heading); }
.rgp-member p:last-child { margin: 0; font-size: 15px; color: var(--rgp-ink-muted); }
@media (max-width: 900px) { .rgp-team { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .rgp-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } .rgp-member__photo { font-size: 30px; } }

.rgp-contact { list-style: none; margin: 0 0 var(--wp--preset--spacing--60); padding: 0; }
.rgp-contact li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rgp-hairline); }
.rgp-contact li:last-child { border-bottom: 1px solid var(--rgp-hairline); }
.rgp-contact span { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rgp-ink-muted); }
.rgp-contact b { font-size: 19px; color: var(--rgp-ink-heading); font-weight: 600; }
:lang(es) .rgp-modules li::before { content: "Módulo " counter(m); }
