/* ==========================================================================
   RCMI Toolkit — rcmi/table + rcmi/directory
   Loaded via enqueue_block_assets: frontend AND iframed block editor.
   Colors resolve through CSS custom properties so block-level overrides
   (inline --rcmi-tbl-* vars) win over theme presets.
   ========================================================================== */

/* ================================ rcmi/table ============================ */

.rcmi-table-block{
	--rcmi-tbl-head-bg:#F4F5F5;
	--rcmi-tbl-head-text:#111213;
	--rcmi-tbl-body-bg:#FFFFFF;
	--rcmi-tbl-body-text:#111213;
	--rcmi-tbl-border:#DEE1E2;
	margin: 24px 0;
}
.rcmi-table-block .rcmi-table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.rcmi-table-block .rcmi-table-scroll > table{
	width:100%;
	border-collapse:collapse;
	min-width:var(--rcmi-tbl-min,0);
	font-family:var(--font-body,'Source Sans 3',-apple-system,sans-serif);
	font-size:.95rem;
	line-height:1.5;
}
.rcmi-table-block .rcmi-table-scroll > table > thead > tr > th,
.rcmi-table-block .rcmi-table-scroll > table > tbody > tr > th,
.rcmi-table-block .rcmi-table-scroll > table > tbody > tr > td{
	padding:12px 16px;
	text-align:var(--rcmi-tbl-align,left);
	vertical-align:top;
	border-bottom:1px solid var(--rcmi-tbl-border);
}
.rcmi-table-block .rcmi-table-scroll > table > thead > tr > th,
.rcmi-table-block .rcmi-table-scroll > table > tbody > tr.rcmi-head-row > th{
	background:var(--rcmi-tbl-head-bg);
	color:var(--rcmi-tbl-head-text);
	font-weight:700;
	/* Header alignment is independent of the body (--rcmi-tbl-align). */
	text-align:var(--rcmi-tbl-head-align,var(--rcmi-tbl-align,left));
}
.rcmi-table-block .rcmi-table-scroll > table > tbody > tr > th[scope="row"]{
	background:var(--rcmi-tbl-head-bg);
	color:var(--rcmi-tbl-head-text);
	font-weight:600;
}
.rcmi-table-block .rcmi-table-scroll > table > tbody > tr > td{
	background:var(--rcmi-tbl-body-bg);
	color:var(--rcmi-tbl-body-text);
}

/* ---- Structured cell content: lists, paragraphs, inner tables ---- */
.rcmi-table-block td ul,
.rcmi-table-block th ul,
.rcmi-table-block td ol,
.rcmi-table-block th ol{
	list-style:disc;
	margin:0 0 .5em;
	padding-left:1.5em;
}
.rcmi-table-block td ol,
.rcmi-table-block th ol{ list-style:decimal; }
.rcmi-table-block td li > ul,
.rcmi-table-block td li > ol,
.rcmi-table-block th li > ul,
.rcmi-table-block th li > ol{ margin-bottom:0; }
.rcmi-table-block td p,
.rcmi-table-block th p{ margin:0 0 .5em; }
.rcmi-table-block td p:last-child,
.rcmi-table-block th p:last-child{ margin-bottom:0; }

/* ---- Links inside cells (theme resets a{color:inherit;decoration:none}) ---- */
.rcmi-table-block td a,
.rcmi-table-block th a{
	color:var(--rcmi-tbl-link, var(--color-primary, #C8102E));
	text-decoration:underline;
	text-underline-offset:2px;
}
.rcmi-table-block td a:hover,
.rcmi-table-block th a:hover{
	text-decoration-thickness:2px;
}
/* Header cells can carry light text on a colored background — keep the
   header text color there so the underline alone marks the link. */
.rcmi-table-block thead th a,
.rcmi-table-block tbody tr.rcmi-head-row th a,
.rcmi-table-block tbody th[scope="row"] a{
	color:inherit;
}

/* Inner (nested) table rendered inside a cell — one level only. */
.rcmi-cell-table-scroll{
	overflow-x:auto;
	-webkit-overflow-scrolling:touch;
	max-width:100%;
	min-width:0;
	margin:.5em 0;
}
.rcmi-cell-table{
	width:100%;
	min-width:320px;
	border-collapse:collapse;
	font:inherit;
	font-size:.92em;
}
.rcmi-cell-table caption{
	caption-side:top;
	font-size:.85em;
	font-style:italic;
	color:inherit;
	opacity:.75;
	text-align:center;
	margin:0 0 4px;
}
.rcmi-cell-table > thead > tr > th,
.rcmi-cell-table > tbody > tr > th,
.rcmi-cell-table > tbody > tr > td,
.rcmi-cell-table > tr > td,
.rcmi-cell-table > tr > th{
	padding:6px 10px;
	border:1px solid var(--rcmi-tbl-border,#DEE1E2);
	text-align:left;
	vertical-align:top;
}
/* Explicit colors keep an inner table readable inside a themed outer
   header cell (which may carry white text on a dark background). */
.rcmi-cell-table > thead > tr > th,
.rcmi-cell-table > tbody > tr > th,
.rcmi-cell-table > tr > th{
	background:var(--rcmi-tbl-head-bg,#F4F5F5);
	color:var(--rcmi-tbl-head-text,#111213);
}
.rcmi-cell-table > tbody > tr > td,
.rcmi-cell-table > tr > td{
	background:var(--rcmi-tbl-body-bg,#FFFFFF);
	color:var(--rcmi-tbl-body-text,#111213);
}
.rcmi-cell-table > thead > tr > th{
	font-weight:700;
}
.rcmi-cell-table p{ margin:0 0 .4em; }
.rcmi-cell-table p:last-child{ margin:0; }
.rcmi-table-caption{
	font-size:.8rem;
	font-style:italic;
	color:var(--color-fg-muted,#54585A);
	text-align:center;
	margin-top:10px;
}

/* ---- UH color theme presets ---- */
.rcmi-table--minimal{ --rcmi-tbl-head-bg:#F4F5F5; --rcmi-tbl-head-text:#111213; }
.rcmi-table--uh-red{  --rcmi-tbl-head-bg:#C8102E; --rcmi-tbl-head-text:#FFFFFF; }
.rcmi-table--brick{   --rcmi-tbl-head-bg:#960C22; --rcmi-tbl-head-text:#FFFFFF; }
.rcmi-table--teal{    --rcmi-tbl-head-bg:#00B388; --rcmi-tbl-head-text:#101112; }
.rcmi-table--forest{  --rcmi-tbl-head-bg:#005950; --rcmi-tbl-head-text:#FFFFFF; }
.rcmi-table--slate{   --rcmi-tbl-head-bg:#54585A; --rcmi-tbl-head-text:#FFFFFF; }
.rcmi-table--dark{    --rcmi-tbl-head-bg:#101112; --rcmi-tbl-head-text:#FFFFFF; }
.rcmi-table--gold{    --rcmi-tbl-head-bg:#F6BE00; --rcmi-tbl-head-text:#101112; }
.rcmi-table--cream{   --rcmi-tbl-head-bg:#FFF9D9; --rcmi-tbl-head-text:#101112; }

/* ---- Bordered option: full cell borders (default = row separators only) ---- */
.rcmi-table--bordered .rcmi-table-scroll > table > thead > tr > th,
.rcmi-table--bordered .rcmi-table-scroll > table > tbody > tr > th,
.rcmi-table--bordered .rcmi-table-scroll > table > tbody > tr > td{
	border:1px solid var(--rcmi-tbl-border);
}

/* ---- Striped option: alternates body-row background ---- */
.rcmi-table--striped .rcmi-table-scroll > table > tbody > tr:nth-child(even) > td{
	background:var(--rcmi-tbl-stripe-bg, rgba(16,17,18,.035));
}
/* When supported, derive the stripe tint from the (possibly custom) body bg. */
@supports (background: color-mix(in srgb, red, blue)){
	.rcmi-table--striped .rcmi-table-scroll > table > tbody > tr:nth-child(even) > td{
		background:color-mix(in srgb, var(--rcmi-tbl-body-bg,#FFFFFF) 94%, #101112);
	}
}

/* ---- Stacked mobile mode: each row becomes a labeled card ---- */
@media (max-width: 700px){
	.rcmi-table--stack > .rcmi-table-scroll{ overflow:visible; }
	.rcmi-table--stack .rcmi-table-scroll > table{ min-width:0; }
	.rcmi-table--stack .rcmi-table-scroll > table,
	.rcmi-table--stack .rcmi-table-scroll > table > thead,
	.rcmi-table--stack .rcmi-table-scroll > table > tbody,
	.rcmi-table--stack .rcmi-table-scroll > table > thead > tr,
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr,
	.rcmi-table--stack .rcmi-table-scroll > table > thead > tr > th,
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > th,
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > td{
		display:block; width:100%; box-sizing:border-box;
	}
	/* Keep the header row available to screen readers only — its text also
	   appears per-cell via data-label. */
	.rcmi-table--stack .rcmi-table-scroll > table > thead{
		position:absolute; width:1px; height:1px;
		margin:-1px; padding:0; overflow:hidden;
		clip:rect(0 0 0 0); white-space:nowrap; border:0;
	}
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr{
		border:1px solid var(--rcmi-tbl-border);
		border-radius:8px;
		overflow:hidden;
		margin-bottom:16px;
		background:var(--rcmi-tbl-body-bg);
	}
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > td{
		display:flex;
		flex-wrap:wrap;
		justify-content:space-between;
		align-items:baseline;
		gap:4px 16px;
		border-bottom:1px solid var(--rcmi-tbl-border);
	}
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > td:last-child{ border-bottom:0; }
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > td[data-label]::before{
		content:attr(data-label);
		flex:0 0 42%;
		font-weight:700;
		font-size:.72rem;
		letter-spacing:.06em;
		text-transform:uppercase;
		color:var(--color-fg-muted,#54585A);
	}
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > td > *,
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > th > *{
		min-width:0;
		max-width:100%;
	}
	/* A nested table inside a stacked cell keeps its own layout and scrolls. */
	.rcmi-table--stack .rcmi-cell-table-scroll{ flex:1 1 100%; margin:.4em 0 0; }
	.rcmi-table--stack .rcmi-table-scroll > table > tbody > tr > th[scope="row"]{
		background:var(--rcmi-tbl-head-bg);
		color:var(--rcmi-tbl-head-text);
		font-weight:700;
		padding:12px 16px;
		border-bottom:1px solid var(--rcmi-tbl-border);
	}
	/* Striping is meaningless inside stacked cards. */
	.rcmi-table--stack.rcmi-table--striped .rcmi-table-scroll > table > tbody > tr:nth-child(even) > td{
		background:var(--rcmi-tbl-body-bg);
	}
}

/* ============================== rcmi/directory =========================== */

.rcmi-directory{
	--rcmi-dir-gap:24px;
	display:grid;
	grid-template-columns:1fr;
	gap:var(--rcmi-dir-gap);
	margin:24px 0;
}
.rcmi-directory--cols-2{ grid-template-columns:repeat(2,1fr); }
.rcmi-directory--cols-3{ grid-template-columns:repeat(3,1fr); }
.rcmi-directory--cols-4{ grid-template-columns:repeat(4,1fr); }
.rcmi-directory--cols-6{ grid-template-columns:repeat(6,1fr); }

.rcmi-person{
	display:flex;
	flex-direction:column;
	align-items:center;
	text-align:center;
	border:1px solid var(--color-border,#DEE1E2);
	background:#fff;
	padding:24px;
	transition:border-color .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1);
}
.rcmi-directory--card .rcmi-person:hover{
	border-color:var(--color-fg,#111213);
	box-shadow:0 12px 28px rgba(0,0,0,.06);
	transform:translateY(-3px);
}
.rcmi-directory--plain .rcmi-person{
	border:0;
	background:transparent;
	padding:8px 4px;
}

/* Photo area */
.rcmi-person-photo{
	position:relative;
	flex:none;
	width:150px;
	aspect-ratio:1/1;
	border-radius:50%;
	overflow:hidden;
	background:var(--color-bg-alt,#F4F5F5);
	display:flex;
	align-items:center;
	justify-content:center;
	margin-bottom:16px;
}
.rcmi-person-photo img,
.rcmi-person-photo .rcmi-person-img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}
/* No-photo placeholder: directory-level --rcmi-dir-initials-* vars override
   the slate/white defaults. */
.rcmi-person-photo.is-empty{
	background:var(--rcmi-dir-initials-bg,#54585A);
}
.rcmi-person-photo-link{
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	height:100%;
}
.rcmi-person-initials{
	font-family:var(--font-display,'League Gothic','Arial Narrow',sans-serif);
	font-size:2.6rem;
	letter-spacing:.03em;
	text-transform:uppercase;
	color:var(--rcmi-dir-initials-text,#FFFFFF);
}
.rcmi-directory--photo-rounded .rcmi-person-photo{
	width:170px;
	border-radius:10px;
}
.rcmi-directory--photo-portrait .rcmi-person{
	padding:0;
	align-items:stretch;
	text-align:left;
}
.rcmi-directory--photo-portrait .rcmi-person-photo{
	width:100%;
	aspect-ratio:4/5;
	border-radius:0;
	margin-bottom:0;
}
.rcmi-directory--photo-portrait .rcmi-person-body{ padding:16px 20px 22px; }
.rcmi-directory--photo-portrait .rcmi-person-contact{ justify-content:flex-start; }

/* Text */
.rcmi-person-body{ width:100%; }
.rcmi-person-name{
	font-family:var(--font-body,'Source Sans 3',sans-serif);
	font-size:1.15rem;
	font-weight:700;
	line-height:1.25;
	margin:0;
}
.rcmi-person-name a{ color:inherit; text-decoration:none; }
.rcmi-person-name a:hover{ color:var(--red,#C8102E); }
.rcmi-person-degree{
	font-size:.72rem;
	font-weight:700;
	letter-spacing:.08em;
	color:var(--teal-dark,#007A5E);
	margin:4px 0 0;
}
.rcmi-person-title{
	font-size:.92rem;
	color:var(--color-fg-muted,#54585A);
	margin:6px 0 0;
}
.rcmi-person-bio{
	font-size:.88rem;
	color:var(--color-fg-muted,#54585A);
	margin:10px 0 0;
}
.rcmi-person-contact{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:6px 16px;
	margin:14px 0 0;
	font-size:.85rem;
}
.rcmi-person-contact a,
.rcmi-person-contact span.rcmi-person-email,
.rcmi-person-contact span.rcmi-person-phone{
	display:inline-flex;
	align-items:center;
	gap:6px;
	color:var(--teal-dark,#007A5E);
	text-decoration:none;
}
.rcmi-person-contact a:hover{ text-decoration:underline; }
.rcmi-person-contact svg{ width:14px; height:14px; flex:none; opacity:.75; }
.rcmi-person-link{
	display:inline-flex;
	align-items:center;
	gap:6px;
	margin-top:14px;
	font-size:.78rem;
	font-weight:700;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--red,#C8102E);
	text-decoration:none;
}
.rcmi-person-link svg{ width:14px; height:14px; }
.rcmi-person-link:hover{ color:var(--brick,#960C22); }

/* Responsive grid — mirrors the theme's .card-grid rhythm (≤900 → 2, ≤560 → 1) */
@media (max-width: 1100px){
	.rcmi-directory--cols-6{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 900px){
	.rcmi-directory--cols-3,
	.rcmi-directory--cols-4,
	.rcmi-directory--cols-6{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 560px){
	.rcmi-directory{ grid-template-columns:1fr; }
}

/* ============================ rcmi/feature-cards ======================== */

.rcmi-fc-grid{
	display:grid;
	grid-template-columns:1fr;
	gap:24px;
	margin:24px 0;
}
.rcmi-fc-grid--cols-2{ grid-template-columns:repeat(2,1fr); }
.rcmi-fc-grid--cols-3{ grid-template-columns:repeat(3,1fr); }
.rcmi-fc-grid--cols-4{ grid-template-columns:repeat(4,1fr); }

.rcmi-fc{
	position:relative;
	display:flex;
	flex-direction:column;
	min-width:0;
	margin:0; /* reset <figure> UA margins on hover cards */
	font-family:var(--font-body,'Source Sans 3',-apple-system,sans-serif);
}
.rcmi-fc--linked{ cursor:pointer; }

/* Whole-card link: the anchor wraps the title text, ::after stretches over
   the card (Bootstrap stretched-link pattern). */
.rcmi-fc-link{ color:inherit; text-decoration:none; }
.rcmi-fc-link::after{
	content:'';
	position:absolute;
	inset:0;
	z-index:2;
}
/* Keyboard focus: outline the card only when the card itself is the link;
   CTA cards outline the CTA anchor instead. */
.rcmi-fc--linked:focus-within{
	outline:3px solid #005950;
	outline-offset:2px;
}
.rcmi-fc-cta:focus-visible{
	outline:2px solid #005950;
	outline-offset:3px;
}

/* ------------------------------ content cards ------------------------------ */

.rcmi-fc-grid--content .rcmi-fc,
.rcmi-fc-grid--icon .rcmi-fc{
	background:var(--rcmi-fc-bg,#FFFFFF);
	color:var(--rcmi-fc-text,var(--color-fg,#111213));
	border:1px solid var(--color-border,#DEE1E2);
}
.rcmi-fc-grid--content .rcmi-fc--linked,
.rcmi-fc-grid--icon .rcmi-fc--linked{
	transition:border-color .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s cubic-bezier(.4,0,.2,1);
}
.rcmi-fc-grid--content .rcmi-fc--linked:hover,
.rcmi-fc-grid--icon .rcmi-fc--linked:hover{
	border-color:var(--color-fg,#111213);
	box-shadow:0 12px 28px rgba(0,0,0,.06);
	transform:translateY(-3px);
}

.rcmi-fc-media{
	position:relative;
	overflow:hidden;
	background:var(--rcmi-fc-overlay,#101112);
}
.rcmi-fc-img{
	display:block;
	width:100%;
	height:100%;
	object-fit:cover;
}

/* Image ratios: on the media box for image-top, on the card itself for
   overlay (media is absolute) and hover (the figure is the media box). */
.rcmi-fc-grid--layout-image-top.rcmi-fc-grid--ratio-16-9 .rcmi-fc-media,
.rcmi-fc-grid--layout-overlay.rcmi-fc-grid--ratio-16-9 .rcmi-fc,
.rcmi-fc-grid--hover.rcmi-fc-grid--ratio-16-9 .rcmi-fc{ aspect-ratio:16/9; }
.rcmi-fc-grid--layout-image-top.rcmi-fc-grid--ratio-4-3 .rcmi-fc-media,
.rcmi-fc-grid--layout-overlay.rcmi-fc-grid--ratio-4-3 .rcmi-fc,
.rcmi-fc-grid--hover.rcmi-fc-grid--ratio-4-3 .rcmi-fc{ aspect-ratio:4/3; }
.rcmi-fc-grid--layout-image-top.rcmi-fc-grid--ratio-1-1 .rcmi-fc-media,
.rcmi-fc-grid--layout-overlay.rcmi-fc-grid--ratio-1-1 .rcmi-fc,
.rcmi-fc-grid--hover.rcmi-fc-grid--ratio-1-1 .rcmi-fc{ aspect-ratio:1/1; }
.rcmi-fc-grid--layout-image-top.rcmi-fc-grid--ratio-3-4 .rcmi-fc-media,
.rcmi-fc-grid--layout-overlay.rcmi-fc-grid--ratio-3-4 .rcmi-fc,
.rcmi-fc-grid--hover.rcmi-fc-grid--ratio-3-4 .rcmi-fc{ aspect-ratio:3/4; }

.rcmi-fc-body{
	display:flex;
	flex-direction:column;
	flex:1;
	min-width:0;
	padding:20px;
}
.rcmi-fc-eyebrow{
	font-size:.72rem;
	font-weight:700;
	letter-spacing:.1em;
	text-transform:uppercase;
	color:var(--rcmi-fc-accent,#C8102E);
	margin:0 0 8px;
}
.rcmi-fc-grid--content .rcmi-fc-title,
.rcmi-fc-grid--icon .rcmi-fc-title{
	font-family:var(--font-body,'Source Sans 3',-apple-system,sans-serif);
	font-size:1.2rem;
	font-weight:700;
	line-height:1.25;
	margin:0 0 8px;
}
.rcmi-fc-grid--content .rcmi-fc-text,
.rcmi-fc-grid--icon .rcmi-fc-text{
	font-size:.95rem;
	margin:0;
}
/* CTA link/button is the card's single interactive element when a label
   and URL are set (replacing the whole-card stretched link); it is pushed
   to the body bottom so cards in a row align, while the preceding element
   supplies a fixed 21px gap the auto margin can only grow. */
.rcmi-fc-cta{
	margin-top:auto;
	align-self:flex-start;
	font-size:.8rem;
	font-weight:700;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--rcmi-fc-accent,#C8102E);
	text-decoration:none;
}
a.rcmi-fc-cta:hover{ text-decoration:underline; }
/* Minimum gap above the CTA lives on the previous element — flex sibling
   margins don't collapse, so gap = 21px + auto margin, keeping the CTA
   bottom-aligned across a row while never closer than 21px to the copy. */
.rcmi-fc-body > :has(+ .rcmi-fc-cta){ margin-bottom:21px; }
/* Element class (not a.) so the editor's inert span preview gets the same
   filled-button look as the frontend anchor. */
.rcmi-fc-cta--button{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:.4em;
	box-sizing:border-box;
	padding:.7em 1.25em;
	min-height:44px;
	background:var(--rcmi-fc-cta-bg,var(--red,#C8102E));
	color:#fff;
	border-radius:4px;
}
a.rcmi-fc-cta--button:hover{
	background:var(--brick,#960C22);
	color:#fff;
	text-decoration:none;
}

/* Overlay layout: text sits on the image over a scrim. */
.rcmi-fc-grid--layout-overlay .rcmi-fc{
	overflow:hidden;
	background:var(--rcmi-fc-overlay,#101112);
}
.rcmi-fc-grid--layout-overlay .rcmi-fc-media{
	position:absolute;
	inset:0;
}
.rcmi-fc-grid--layout-overlay .rcmi-fc-body{
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	z-index:1;
	padding:80px 20px 20px;
	color:#fff;
	/* Bottom of the scrim is floored at ~80% opaque so white text holds
	   ≥4.5:1 over bright images; the slider still shapes the top fade. */
	background:linear-gradient(to top,
		color-mix(in srgb, var(--rcmi-fc-overlay,#101112) calc(80% + var(--rcmi-fc-overlay-opacity,.5) * 11%), transparent) 0%,
		color-mix(in srgb, var(--rcmi-fc-overlay,#101112) calc(var(--rcmi-fc-overlay-opacity,.5) * 100%), transparent) 62%,
		transparent 100%);
}
/* Overlay copy is always white for AA contrast on the scrim; the accent
   color stays as a non-text decoration. */
.rcmi-fc-grid--layout-overlay .rcmi-fc-eyebrow{ color:#fff; }
.rcmi-fc-grid--layout-overlay .rcmi-fc-eyebrow::before{
	content:'';
	display:block;
	width:32px;
	height:3px;
	background:var(--rcmi-fc-accent,#C8102E);
	margin-bottom:8px;
}
.rcmi-fc-grid--layout-overlay .rcmi-fc-title{ color:#fff; }
.rcmi-fc-grid--layout-overlay .rcmi-fc-text{ color:rgba(255,255,255,.85); }
.rcmi-fc-grid--layout-overlay .rcmi-fc-cta{
	color:#fff;
	align-self:flex-start;
	border-bottom:2px solid var(--rcmi-fc-accent,#C8102E);
	padding-bottom:4px;
}

/* Corner radius (all card types). overflow:hidden clips image-top media,
   overlay images and hover-effect layers to the rounded corners. */
.rcmi-fc-grid--rounded .rcmi-fc{
	border-radius:var(--rcmi-fc-radius,0);
	overflow:hidden;
}

/* ------------------------------- icon cards ------------------------------- */
/* Dashicon above the copy. --rcmi-fc-icon-color / --rcmi-fc-icon-bg come
   from the parent's Icon color / Icon background; both fall back to the
   accent (shape background = a light accent tint). */
.rcmi-fc-grid--icon{
	--rcmi-fc-icon-box:76px;
	--rcmi-fc-icon-glyph:40px;
	--rcmi-fc-icon-pad:32px; /* roomier than content cards' 20px */
}
.rcmi-fc-grid--icon-size-sm{ --rcmi-fc-icon-box:56px; --rcmi-fc-icon-glyph:28px; }
.rcmi-fc-grid--icon-size-lg{ --rcmi-fc-icon-box:96px; --rcmi-fc-icon-glyph:52px; }
.rcmi-fc-icon{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	flex:none;
	align-self:flex-start;
	box-sizing:border-box;
	width:var(--rcmi-fc-icon-box);
	height:var(--rcmi-fc-icon-box);
	margin:var(--rcmi-fc-icon-pad,20px) var(--rcmi-fc-icon-pad,20px) 0;
	padding:0;
	border:0;
	transition:transform .3s cubic-bezier(.4,0,.2,1), background-color .3s, color .3s;
	color:var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E));
	background:var(--rcmi-fc-icon-bg,color-mix(in srgb, var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E)) 10%, #fff));
	font:inherit;
}
.rcmi-fc-icon .dashicons{
	width:var(--rcmi-fc-icon-glyph);
	height:var(--rcmi-fc-icon-glyph);
	font-size:var(--rcmi-fc-icon-glyph);
	line-height:1;
	color:inherit;
}
.rcmi-fc-grid--icon-circle .rcmi-fc-icon{ border-radius:50%; }
.rcmi-fc-grid--icon-square .rcmi-fc-icon{ border-radius:12px; }
.rcmi-fc-grid--icon-plain .rcmi-fc-icon{
	width:auto;
	height:auto;
	background:none;
}
.rcmi-fc-grid--icon-plain{ --rcmi-fc-icon-glyph:52px; }
.rcmi-fc-grid--icon-plain.rcmi-fc-grid--icon-size-sm{ --rcmi-fc-icon-glyph:36px; }
.rcmi-fc-grid--icon-plain.rcmi-fc-grid--icon-size-lg{ --rcmi-fc-icon-glyph:68px; }
.rcmi-fc-grid--icon .rcmi-fc-body{ padding:var(--rcmi-fc-icon-pad); }
.rcmi-fc-grid--icon .rcmi-fc-icon + .rcmi-fc-body,
.rcmi-fc-grid--icon .rcmi-fc-icon-dropdown + .rcmi-fc-body{ padding-top:20px; }
@media (max-width: 560px){
	.rcmi-fc-grid--icon{ --rcmi-fc-icon-pad:24px; }
}

/* Icon card hover effects (grid-level iconHover). Triggered by hovering
   or keyboard-focusing anywhere in the card. */
.rcmi-fc-grid--icon[class*="rcmi-fc-grid--icon-hover-"] .rcmi-fc{
	transition:transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s;
}
.rcmi-fc-grid--icon-hover-zoom .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{ transform:scale(1.15); }
.rcmi-fc-grid--icon-hover-tilt .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{ transform:rotate(-10deg) scale(1.08); }
.rcmi-fc-grid--icon-hover-spin .rcmi-fc-icon{ transition-duration:.6s; }
.rcmi-fc-grid--icon-hover-spin .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{ transform:rotate(360deg); }
.rcmi-fc-grid--icon-hover-fill .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{
	background:var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E));
	color:var(--rcmi-fc-bg,#FFFFFF);
}
/* Plain icons have no shape to fill — fall back to a gentle zoom. */
.rcmi-fc-grid--icon-plain.rcmi-fc-grid--icon-hover-fill .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{
	background:none;
	color:var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E));
	transform:scale(1.1);
}
.rcmi-fc-grid--icon-hover-lift .rcmi-fc:is(:hover,:focus-within){
	transform:translateY(-6px);
	box-shadow:0 16px 32px rgba(0,0,0,.1);
	border-color:var(--color-fg,#111213);
}
/* Editor: :focus-within would fire whenever text is being edited. */
.editor-styles-wrapper [class*="rcmi-fc-grid--icon-hover-"] .rcmi-fc:not(:hover):focus-within .rcmi-fc-icon,
.editor-styles-wrapper .rcmi-fc-grid--icon-hover-lift .rcmi-fc:not(:hover):focus-within{
	transform:none;
	box-shadow:none;
}
.editor-styles-wrapper .rcmi-fc-grid--icon-hover-fill .rcmi-fc:not(:hover):focus-within .rcmi-fc-icon{
	background:var(--rcmi-fc-icon-bg,color-mix(in srgb, var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E)) 10%, #fff));
	color:var(--rcmi-fc-icon-color,var(--rcmi-fc-accent,#C8102E));
}
/* Icon alignment (icon only) and text alignment (eyebrow/title/text/CTA)
   are independent. */
.rcmi-fc-grid--icon-align-center .rcmi-fc-icon{ align-self:center; }
.rcmi-fc-grid--icon-align-right .rcmi-fc-icon{ align-self:flex-end; }
.rcmi-fc-grid--text-align-center .rcmi-fc-body{ text-align:center; }
.rcmi-fc-grid--text-align-right .rcmi-fc-body{ text-align:right; }
.rcmi-fc-grid--text-align-center .rcmi-fc-cta{ align-self:center; }
.rcmi-fc-grid--text-align-right .rcmi-fc-cta{ align-self:flex-end; }
/* Editor: InnerBlocks wraps the toggle in a Dropdown div. */
.rcmi-fc-icon-dropdown{ display:flex; flex-direction:column; align-items:flex-start; }
.rcmi-fc-grid--icon-align-center .rcmi-fc-icon-dropdown{ align-items:center; }
.rcmi-fc-grid--icon-align-right .rcmi-fc-icon-dropdown{ align-items:flex-end; }
.rcmi-fc-icon-dropdown .rcmi-fc-icon{ align-self:auto; cursor:pointer; }
.rcmi-fc-icon--empty{ outline:1px dashed currentColor; outline-offset:2px; opacity:.6; }

/* Horizontal layout: image column left, text right. */
.rcmi-fc-grid--layout-horizontal .rcmi-fc{ flex-direction:row; }
.rcmi-fc-grid--layout-horizontal .rcmi-fc-media{ flex:0 0 42%; min-height:200px; }

/* ------------------------------- hover cards ------------------------------- */
/* Ports of the Codrops HoverEffectIdeas set (tympanus.net), mapped onto our
   shared figure>img+figcaption>.rcmi-fc-cap>.rcmi-fc-title+.rcmi-fc-text
   markup and the --rcmi-fc-* custom properties. */

.rcmi-fc-grid--hover .rcmi-fc{
	overflow:hidden;
	background:var(--rcmi-fc-overlay,#101112);
	text-align:center;
	container-type:inline-size;
}
/* Base caption styles sit in :where() so every effect's own rules always
   win regardless of specificity — the figure is a container so caption
   padding, title and text scale with card width via cqi. */
:where(.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-img){
	position:absolute;
	inset:0;
	opacity:.8;
}
:where(.rcmi-fc-grid--hover .rcmi-fc figcaption){
	position:absolute;
	inset:0;
	padding:clamp(.7em,5cqi,2em);
	color:#fff;
	text-transform:uppercase;
	backface-visibility:hidden;
}
.rcmi-fc-grid--hover .rcmi-fc figcaption::before,
.rcmi-fc-grid--hover .rcmi-fc figcaption::after{ pointer-events:none; }
:where(.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-title){
	font-family:var(--font-display,'League Gothic','Arial Narrow',sans-serif);
	font-size:clamp(1.15rem,9cqi,2.1rem);
	font-weight:400;
	line-height:1.05;
	margin:0;
	/* Cap at two lines so long titles can't overflow the frame. */
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	overflow:hidden;
}
/* Linked titles keep their line boxes inside the anchor — clamp it too. */
:where(.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-link){
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:2;
	overflow:hidden;
}
:where(.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-text){
	font-size:clamp(.7rem,3.4cqi,.92rem);
	letter-spacing:1px;
	margin:0;
}
/* Small cards can't hold long copy — clamp the text rather than overflow. */
.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-text{
	display:-webkit-box;
	-webkit-box-orient:vertical;
	-webkit-line-clamp:3;
	overflow:hidden;
}

/*----- Lily: bottom-half copy slides up, image slides right -----*/
.rcmi-fc--effect-lily .rcmi-fc-img{
	max-width:none;
	width:calc(100% + 50px);
	opacity:.7;
	transition:opacity .35s, transform .35s;
	transform:translate3d(-40px,0,0);
}
.rcmi-fc--effect-lily figcaption{ text-align:left; }
.rcmi-fc--effect-lily .rcmi-fc-cap{
	position:absolute;
	bottom:0;
	left:0;
	padding:clamp(.5em,5cqi,2em);
	width:100%;
	height:50%;
}
.rcmi-fc--effect-lily .rcmi-fc-title,
.rcmi-fc--effect-lily .rcmi-fc-text{ transform:translate3d(0,clamp(12px,15cqi,40px),0); }
.rcmi-fc--effect-lily .rcmi-fc-title{ transition:transform .35s; }
.rcmi-fc--effect-lily .rcmi-fc-text{
	color:rgba(255,255,255,.8);
	opacity:0;
	transition:opacity .2s, transform .35s;
}
.rcmi-fc--effect-lily:is(:hover,:focus-within) .rcmi-fc-img{
	opacity:1;
	transform:translate3d(0,0,0);
}
.rcmi-fc--effect-lily:is(:hover,:focus-within) .rcmi-fc-title{ transform:translate3d(0,0,0); }
.rcmi-fc--effect-lily:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:translate3d(0,0,0);
	transition-delay:.05s;
	transition-duration:.35s;
}

/*----- Sadie: rising gradient scrim, centered title lifts, text fades -----*/
.rcmi-fc--effect-sadie figcaption::before{
	position:absolute;
	inset:0;
	content:'';
	background:linear-gradient(to bottom,
		color-mix(in srgb, var(--rcmi-fc-overlay,#101112) 0%, transparent) 0%,
		color-mix(in srgb, var(--rcmi-fc-overlay,#101112) 80%, transparent) 75%);
	opacity:0;
	transform:translate3d(0,50%,0);
}
.rcmi-fc--effect-sadie .rcmi-fc-title{
	position:absolute;
	top:50%;
	left:0;
	width:100%;
	color:var(--rcmi-fc-overlay,#101112);
	transition:transform .35s, color .35s;
	transform:translate3d(0,-50%,0);
}
.rcmi-fc--effect-sadie figcaption::before,
.rcmi-fc--effect-sadie .rcmi-fc-text{ transition:opacity .35s, transform .35s; }
.rcmi-fc--effect-sadie .rcmi-fc-text{
	position:absolute;
	bottom:0;
	left:0;
	padding:clamp(.5em,5cqi,2em);
	width:100%;
	opacity:0;
	transform:translate3d(0,10px,0);
}
.rcmi-fc--effect-sadie:is(:hover,:focus-within) .rcmi-fc-title{
	color:#fff;
	transform:translate3d(0,-50%,0) translate3d(0,-40px,0);
}
.rcmi-fc--effect-sadie:is(:hover,:focus-within) figcaption::before,
.rcmi-fc--effect-sadie:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:translate3d(0,0,0);
}

/*----- Layla: crossing frame lines expand, copy drifts into place -----*/
.rcmi-fc--effect-layla figcaption{ padding:clamp(1em,9cqi,3em); }
.rcmi-fc--effect-layla figcaption::before,
.rcmi-fc--effect-layla figcaption::after{
	position:absolute;
	content:'';
	opacity:0;
}
.rcmi-fc--effect-layla figcaption::before{
	top:clamp(24px,14cqi,50px); right:clamp(14px,8cqi,30px); bottom:clamp(24px,14cqi,50px); left:clamp(14px,8cqi,30px);
	border-top:1px solid var(--rcmi-fc-accent,#fff);
	border-bottom:1px solid var(--rcmi-fc-accent,#fff);
	transform:scale(0,1);
	transform-origin:0 0;
}
.rcmi-fc--effect-layla figcaption::after{
	top:clamp(14px,8cqi,30px); right:clamp(24px,14cqi,50px); bottom:clamp(14px,8cqi,30px); left:clamp(24px,14cqi,50px);
	border-right:1px solid var(--rcmi-fc-accent,#fff);
	border-left:1px solid var(--rcmi-fc-accent,#fff);
	transform:scale(1,0);
	transform-origin:100% 0;
}
.rcmi-fc--effect-layla .rcmi-fc-title{
	padding-top:26%;
	transition:transform .35s;
}
.rcmi-fc--effect-layla .rcmi-fc-text{
	padding:.5em 2em;
	text-transform:none;
	opacity:0;
	transform:translate3d(0,-10px,0);
}
/* The image is oversized so the -30px pan never reveals the frame (same
   trick as the parallax layers). */
.rcmi-fc--effect-layla .rcmi-fc-img{
	height:calc(100% + 30px);
}
.rcmi-fc--effect-layla .rcmi-fc-img,
.rcmi-fc--effect-layla .rcmi-fc-title{ transform:translate3d(0,-30px,0); }
.rcmi-fc--effect-layla .rcmi-fc-img,
.rcmi-fc--effect-layla figcaption::before,
.rcmi-fc--effect-layla figcaption::after,
.rcmi-fc--effect-layla .rcmi-fc-text{ transition:opacity .35s, transform .35s; }
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-img{
	opacity:.7;
	transform:translate3d(0,0,0);
}
.rcmi-fc--effect-layla:is(:hover,:focus-within) figcaption::before,
.rcmi-fc--effect-layla:is(:hover,:focus-within) figcaption::after{
	opacity:1;
	transform:scale(1);
}
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-title,
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:translate3d(0,0,0);
}
.rcmi-fc--effect-layla:is(:hover,:focus-within) figcaption::after,
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-title,
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-text,
.rcmi-fc--effect-layla:is(:hover,:focus-within) .rcmi-fc-img{ transition-delay:.15s; }

/*----- Oscar: framed inset + copy scale in over fading overlay -----*/
.rcmi-fc--effect-oscar .rcmi-fc-img{
	opacity:.9;
	transition:opacity .35s;
}
.rcmi-fc--effect-oscar figcaption{
	padding:clamp(1em,9cqi,3em);
	background-color:color-mix(in srgb, var(--rcmi-fc-overlay,#101112) 70%, transparent);
	transition:background-color .35s;
}
.rcmi-fc--effect-oscar figcaption::before{
	position:absolute;
	top:clamp(14px,8cqi,30px); right:clamp(14px,8cqi,30px); bottom:clamp(14px,8cqi,30px); left:clamp(14px,8cqi,30px);
	border:1px solid var(--rcmi-fc-accent,#fff);
	content:'';
}
.rcmi-fc--effect-oscar .rcmi-fc-title{
	margin:20% 0 10px;
	transition:transform .35s;
	transform:translate3d(0,100%,0);
}
.rcmi-fc--effect-oscar figcaption::before,
.rcmi-fc--effect-oscar .rcmi-fc-text{
	opacity:0;
	transition:opacity .35s, transform .35s;
	transform:scale(0);
}
.rcmi-fc--effect-oscar:is(:hover,:focus-within) .rcmi-fc-title{ transform:translate3d(0,0,0); }
.rcmi-fc--effect-oscar:is(:hover,:focus-within) figcaption::before,
.rcmi-fc--effect-oscar:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:scale(1);
}
.rcmi-fc--effect-oscar:is(:hover,:focus-within) figcaption{ background-color:transparent; }
.rcmi-fc--effect-oscar:is(:hover,:focus-within) .rcmi-fc-img{ opacity:.4; }

/*----- Ruby: image settles, bordered text frame scales in -----*/
.rcmi-fc--effect-ruby .rcmi-fc-img{
	opacity:.7;
	transition:opacity .35s, transform .35s;
	transform:scale(1.15);
}
.rcmi-fc--effect-ruby .rcmi-fc-title{
	margin-top:20%;
	transition:transform .35s;
	transform:translate3d(0,20px,0);
}
.rcmi-fc--effect-ruby .rcmi-fc-text{
	margin:1em 0 0;
	padding:clamp(.6em,6cqi,2em);
	border:1px solid var(--rcmi-fc-accent,#fff);
	opacity:0;
	transition:opacity .35s, transform .35s;
	transform:translate3d(0,20px,0) scale(1.1);
}
.rcmi-fc--effect-ruby:is(:hover,:focus-within) .rcmi-fc-img{
	opacity:.5;
	transform:scale(1.03);
}
.rcmi-fc--effect-ruby:is(:hover,:focus-within) .rcmi-fc-title{ transform:translate3d(0,0,0); }
.rcmi-fc--effect-ruby:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:translate3d(0,0,0) scale(1);
}

/*----- Honey: accent bar slides up, copy settles onto it -----*/
.rcmi-fc--effect-honey .rcmi-fc-img{
	opacity:.9;
	transition:opacity .35s;
}
.rcmi-fc--effect-honey figcaption::before{
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:10px;
	background:var(--rcmi-fc-accent,#fff);
	content:'';
	transform:translate3d(0,10px,0);
}
.rcmi-fc--effect-honey .rcmi-fc-cap{
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	padding:clamp(.4em,3cqi,1em) clamp(.6em,5cqi,1.5em);
	text-align:left;
}
.rcmi-fc--effect-honey .rcmi-fc-title{ transform:translate3d(0,-30px,0); }
.rcmi-fc--effect-honey .rcmi-fc-text{
	margin:0 0 .4em;
	text-transform:none;
	color:rgba(255,255,255,.85);
	opacity:0;
	transform:translate3d(0,-30px,0);
}
.rcmi-fc--effect-honey figcaption::before,
.rcmi-fc--effect-honey .rcmi-fc-title,
.rcmi-fc--effect-honey .rcmi-fc-text{ transition:opacity .35s, transform .35s; }
.rcmi-fc--effect-honey:is(:hover,:focus-within) .rcmi-fc-img{ opacity:.5; }
.rcmi-fc--effect-honey:is(:hover,:focus-within) figcaption::before,
.rcmi-fc--effect-honey:is(:hover,:focus-within) .rcmi-fc-title,
.rcmi-fc--effect-honey:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transform:translate3d(0,0,0);
}

/*----- Zoe: caption bar slides up, description fades in over image -----*/
/* The image stays put; a light caption bar holding the title and text
   slides up from the bottom. Everything inside the figure's box (clips). */
.rcmi-fc--effect-zoe figcaption{
	top:auto;
	right:0;
	bottom:0;
	left:0;
	height:auto;
	padding:.8em 1em;
	background:var(--rcmi-fc-bg,#FFFFFF);
	color:var(--rcmi-fc-text,#3C4A50);
	text-align:left;
	transition:transform .35s;
	transform:translate3d(0,101%,0);
}
.rcmi-fc--effect-zoe .rcmi-fc-title{
	font-size:clamp(1.1rem,7cqi,1.5rem);
	line-height:1.15;
	margin:0 0 .15em;
	transition:transform .35s;
	transform:translate3d(0,200%,0);
}
.rcmi-fc--effect-zoe .rcmi-fc-text{
	font-size:clamp(.68rem,3.2cqi,.85rem);
	letter-spacing:0;
	text-transform:none;
	line-height:1.35;
	color:inherit;
}
.rcmi-fc--effect-zoe:is(:hover,:focus-within) figcaption{ transform:translate3d(0,0,0); }
.rcmi-fc--effect-zoe:is(:hover,:focus-within) .rcmi-fc-title{
	transform:translate3d(0,0,0);
	transition-delay:.05s;
}
.rcmi-fc--effect-zoe:is(:hover,:focus-within) .rcmi-fc-text{ opacity:1; }

/*----- Apollo: diagonal light sweep, bordered-right text fades in -----*/
.rcmi-fc--effect-apollo .rcmi-fc-img{
	opacity:.95;
	transition:opacity .35s, transform .35s;
	transform:scale3d(1.05,1.05,1);
}
.rcmi-fc--effect-apollo figcaption::before{
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
	background:rgba(255,255,255,.5);
	content:'';
	transition:transform .6s;
	transform:scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,-100%,0);
}
.rcmi-fc--effect-apollo .rcmi-fc-title{ text-align:left; }
.rcmi-fc--effect-apollo .rcmi-fc-text{
	position:absolute;
	right:0;
	bottom:0;
	margin:clamp(.8em,9cqi,3em);
	padding:0 1em;
	max-width:150px;
	border-right:4px solid var(--rcmi-fc-accent,#fff);
	text-align:right;
	opacity:0;
	transition:opacity .35s;
}
.rcmi-fc--effect-apollo:is(:hover,:focus-within) .rcmi-fc-img{
	opacity:.6;
	transform:scale3d(1,1,1);
}
.rcmi-fc--effect-apollo:is(:hover,:focus-within) figcaption::before{
	transform:scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}
.rcmi-fc--effect-apollo:is(:hover,:focus-within) .rcmi-fc-text{
	opacity:1;
	transition-delay:.1s;
}

/*----- Hover-card CTA: a stable anchor pinned to the caption's bottom
   strip — outside .rcmi-fc-cap so effect transforms never move it and it
   stays reachable without hovering. .rcmi-fc--has-cta reserves the bottom
   space per effect so nothing overlaps it. -----*/
.rcmi-fc-grid--hover .rcmi-fc--has-cta .rcmi-fc-cta{
	position:absolute;
	bottom:clamp(.6em,4cqi,1.3em);
	left:50%;
	transform:translateX(-50%);
	z-index:4;
	margin:0;
	padding:0;
	max-width:calc(100% - 1.5em);
	color:#fff;
}
.rcmi-fc-grid--hover .rcmi-fc--has-cta .rcmi-fc-cta--button{
	padding:.7em 1.25em;
}
/* CTA-mode copy is trimmed so the ~4.2em strip never collides: the text
   clamps to two lines and tall top offsets are reduced per effect. */
.rcmi-fc-grid--hover .rcmi-fc--has-cta .rcmi-fc-text{ -webkit-line-clamp:2; }
/* Lily's cap is bottom-anchored at fixed 50% height — let it grow upward
   so a title+text never spills onto the CTA strip. */
.rcmi-fc--effect-lily.rcmi-fc--has-cta .rcmi-fc-cap{
	height:auto;
	max-height:calc(100% - 2.6em);
	padding-bottom:4.5em;
}
.rcmi-fc--effect-sadie.rcmi-fc--has-cta .rcmi-fc-text{ bottom:4em; }
.rcmi-fc--effect-layla.rcmi-fc--has-cta figcaption,
.rcmi-fc--effect-oscar.rcmi-fc--has-cta figcaption,
.rcmi-fc--effect-ruby.rcmi-fc--has-cta figcaption,
.rcmi-fc--effect-apollo.rcmi-fc--has-cta figcaption{ padding-bottom:4.5em; }
/* Top offsets that push copy toward the strip are reduced in CTA mode. */
.rcmi-fc--effect-layla.rcmi-fc--has-cta .rcmi-fc-title{ padding-top:14%; }
.rcmi-fc--effect-oscar.rcmi-fc--has-cta .rcmi-fc-title{ margin-top:12%; }
.rcmi-fc--effect-ruby.rcmi-fc--has-cta .rcmi-fc-title{ margin-top:10%; }
/* Honey's copy sits on the accent bar — lift it fully clear of the CTA. */
.rcmi-fc--effect-honey.rcmi-fc--has-cta .rcmi-fc-cap{ bottom:4.2em; }
/* Zoe's figcaption is a sliding caption bar parked below the card until
   hover — with a CTA the bar instead peeks ~4.2em so the CTA (reordered to
   the top of the bar) stays reachable, then slides up fully on hover. */
.rcmi-fc--effect-zoe.rcmi-fc--has-cta figcaption{
	display:flex;
	flex-direction:column;
	/* Peek sized for the tallest CTA (44px button + bar padding + margin). */
	transform:translate3d(0,calc(100% - 4.2em),0);
}
.rcmi-fc--effect-zoe.rcmi-fc--has-cta .rcmi-fc-cta{
	position:static;
	transform:none;
	order:-1;
	display:inline-block;
	margin:0 0 .6em;
	text-align:left;
	color:var(--rcmi-fc-accent,#C8102E);
}
.rcmi-fc--effect-zoe.rcmi-fc--has-cta:is(:hover,:focus-within) figcaption{
	transform:translate3d(0,0,0);
}
/* Apollo's copy is a bottom-right text block — lift it clear of the
   centered CTA strip so narrow cards can't collide horizontally. */
.rcmi-fc--effect-apollo.rcmi-fc--has-cta .rcmi-fc-text{ bottom:4em; }

/* The filled-button variant must stay white-on-red even where an effect
   or layout recolors the text CTA (overlay scrim, hover captions, zoe's
   light bar). Highest-specificity rules, declared last — the :hover
   pairing keeps the dark-red hover reachable under them. */
.rcmi-fc-grid .rcmi-fc .rcmi-fc-cta.rcmi-fc-cta--button{
	background:var(--rcmi-fc-cta-bg,var(--red,#C8102E));
	color:#fff;
}
.rcmi-fc-grid .rcmi-fc a.rcmi-fc-cta.rcmi-fc-cta--button:hover{
	background:var(--brick,#960C22);
	color:#fff;
}

/* Touch devices: no hover — show the revealed state statically. Apollo's
   diagonal flash stays parked off-canvas (a transform reset would paint it
   over the card); Sadie's title keeps its centered offset. */
@media (hover:none){
	.rcmi-fc-grid--hover .rcmi-fc figcaption,
	.rcmi-fc-grid--hover .rcmi-fc figcaption::before,
	.rcmi-fc-grid--hover .rcmi-fc figcaption::after,
	.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-cap,
	.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-title,
	.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-text{
		opacity:1;
		transform:none;
	}
	.rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-img{ transform:none; }
	.rcmi-fc-grid--hover .rcmi-fc--effect-apollo figcaption::before{
		transform:scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
	}
	.rcmi-fc-grid--hover .rcmi-fc--effect-sadie .rcmi-fc-title{
		color:#fff;
		transform:translate3d(0,-50%,0) translate3d(0,-40px,0);
	}
}

@media (prefers-reduced-motion: reduce){
	/* Motion hover effects become static; Fill (a color change) stays. */
	.rcmi-fc-grid--icon .rcmi-fc:is(:hover,:focus-within),
	.rcmi-fc-grid--icon .rcmi-fc:is(:hover,:focus-within) .rcmi-fc-icon{
		transform:none !important;
	}
	.rcmi-fc,
	.rcmi-fc::before,
	.rcmi-fc::after,
	.rcmi-fc *,
	.rcmi-fc *::before,
	.rcmi-fc *::after{
		transition:none !important;
	}
}

/* Responsive — mirrors the directory rhythm (≤900 → 2, ≤560 → 1); horizontal
   cards stack the image above the text at ≤700px. */
@media (max-width:900px){
	.rcmi-fc-grid--cols-3,
	.rcmi-fc-grid--cols-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:700px){
	.rcmi-fc-grid--layout-horizontal .rcmi-fc{ flex-direction:column; }
	.rcmi-fc-grid--layout-horizontal .rcmi-fc-media{
		flex:none;
		min-height:0;
		aspect-ratio:16/9;
	}
}
@media (max-width:560px){
	.rcmi-fc-grid{ grid-template-columns:1fr; }
}

/* ==================== shared card layout (opt-in) ==================== */
/* rcmi/directory + rcmi/feature-cards: cardMaxWidth caps each card,
   cardAlignment justifies rows. Only rendered when a cap or non-left
   alignment is set — default blocks keep the grid rules above.
   The flex container is itself capped to exactly one row of capped cards
   so the column count stays the maximum per row even when cards are
   narrower than their share; justify-content then aligns each row —
   including an incomplete final row — inside the capped container, and
   the --center/--right modifiers align the container itself. */
.rcmi-directory.rcmi-card-layout,
.rcmi-fc-grid.rcmi-card-layout{
	--rcmi-card-gap:24px;
	display:flex;
	flex-wrap:wrap;
	justify-content:var(--rcmi-card-justify,flex-start);
	gap:var(--rcmi-card-gap);
	max-width:calc(
		var(--rcmi-card-columns,1)
			* min(var(--rcmi-card-max-width,100%), (100% - (var(--rcmi-card-columns,1) - 1) * var(--rcmi-card-gap)) / var(--rcmi-card-columns,1))
		+ (var(--rcmi-card-columns,1) - 1) * var(--rcmi-card-gap)
	);
}
.rcmi-card-layout--center{ margin-left:auto; margin-right:auto; }
.rcmi-card-layout--right{ margin-left:auto; }
.rcmi-directory.rcmi-card-layout > .rcmi-person,
.rcmi-fc-grid.rcmi-card-layout > .rcmi-fc,
.editor-styles-wrapper .rcmi-directory.rcmi-card-layout .wp-block-rcmi-directory-person,
.editor-styles-wrapper .rcmi-fc-grid.rcmi-card-layout .wp-block-rcmi-feature-card{
	flex:0 1 min(var(--rcmi-card-max-width,100%), calc((100% - (var(--rcmi-card-columns,1) - 1) * var(--rcmi-card-gap)) / var(--rcmi-card-columns,1)));
	min-width:0;
	/* Basis measures the content box — force border-box so the cap means
	   the card's visual width even on themes without a global reset. */
	box-sizing:border-box;
}
/* Responsive column collapse mirrors the grid rules: the effective column
   count drops via --rcmi-card-columns so rows and the container cap both
   recompute. !important is required — the block emits the desktop column
   count as an inline custom property, which otherwise always wins. */
@media (max-width:1100px){
	.rcmi-directory--cols-6.rcmi-card-layout{ --rcmi-card-columns:3 !important; }
}
@media (max-width:900px){
	.rcmi-directory--cols-3.rcmi-card-layout,
	.rcmi-directory--cols-4.rcmi-card-layout,
	.rcmi-directory--cols-6.rcmi-card-layout{ --rcmi-card-columns:2 !important; }
	.rcmi-fc-grid--cols-3.rcmi-card-layout,
	.rcmi-fc-grid--cols-4.rcmi-card-layout{ --rcmi-card-columns:2 !important; }
}
@media (max-width:560px){
	.rcmi-directory.rcmi-card-layout,
	.rcmi-fc-grid.rcmi-card-layout{ --rcmi-card-columns:1 !important; }
}

/* ============================ editor-only styles ========================= */
/* These classes only exist inside the block editor. */

/* Table: selection + editable cells */
.editor-styles-wrapper .rcmi-table-block .rcmi-table-scroll > table > thead > tr > th,
.editor-styles-wrapper .rcmi-table-block .rcmi-table-scroll > table > tbody > tr > th,
.editor-styles-wrapper .rcmi-table-block .rcmi-table-scroll > table > tbody > tr > td{
	position:relative;
	min-width:72px;
}
.editor-styles-wrapper .rcmi-table-block .rcmi-td.is-in-range{
	box-shadow:inset 0 0 0 999px rgba(0,124,186,.08);
	outline:2px solid rgba(0,124,186,.45);
	outline-offset:-2px;
}
.editor-styles-wrapper .rcmi-table-block .rcmi-td.is-head{
	outline:2px solid #007cba;
	outline-offset:-2px;
}
.editor-styles-wrapper .rcmi-table-block .rcmi-td-inner{ min-height:1.4em; }

/* Table: structured cell preview (non-editable) + cell editor modal */
.editor-styles-wrapper .rcmi-table-block .rcmi-td-structured{
	cursor:default;
}
.editor-styles-wrapper .rcmi-table-block .rcmi-td-structured > :first-child{
	margin-top:0;
}
.rcmi-td-edit-btn{
	display:block;
	margin-top:8px;
}
.rcmi-cell-editor-modal{ max-width:760px; }
.rcmi-cell-editor-modal .wp-editor-wrap,
.rcmi-cell-editor-modal iframe{ width:100%; }
.rcmi-cell-editor-error{ margin:10px 0 0; }
.rcmi-cell-table-controls{
	border-top:1px solid #ddd;
	margin-top:16px;
	padding-top:12px;
}
.rcmi-cell-table-controls h3{
	font-size:13px;
	margin:0 0 10px;
}
.rcmi-cell-table-row{
	display:flex;
	flex-wrap:wrap;
	gap:6px;
	margin-bottom:12px;
}
.rcmi-cell-table-insert{
	display:grid;
	grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
	gap:8px 12px;
	align-items:end;
}
.rcmi-cell-table-insert .components-base-control{ margin-bottom:0; }
.rcmi-cell-table-note{
	font-size:12px;
	color:#757575;
	margin:8px 0 0;
	grid-column:1 / -1;
}
.rcmi-cell-editor-actions{
	display:flex;
	justify-content:flex-end;
	gap:8px;
	margin-top:16px;
	border-top:1px solid #ddd;
	padding-top:12px;
}

/* Directory: photo picker + remove button + add-person tile */
.rcmi-dir-photo-btn{
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	gap:6px;
	width:100%;
	height:100%;
	border:0;
	background:transparent;
	cursor:pointer;
	padding:0;
	font:inherit;
}
.rcmi-person-photo.is-empty .rcmi-dir-photo-btn:hover{ background:rgba(0,0,0,.04); }
.rcmi-dir-photo-hint{
	font-size:.68rem;
	font-weight:600;
	letter-spacing:.04em;
	text-transform:uppercase;
	/* Only renders inside the is-empty placeholder — follow its text color
	   so it stays legible on custom placeholder backgrounds. */
	color:var(--rcmi-dir-initials-text,#FFFFFF);
	opacity:.72;
}
/* InnerBlocks wrappers sit between the grid and person cards — display:contents
   keeps the grid treating each .rcmi-person block as a direct grid item. */
.editor-styles-wrapper .rcmi-directory .block-editor-inner-blocks,
.editor-styles-wrapper .rcmi-directory .block-editor-block-list__layout{
	display:contents;
}
/* Person blocks inside the directory get their own selection outline. */
.editor-styles-wrapper .rcmi-directory .wp-block-rcmi-directory-person.rcmi-person{
	outline:none;
}
.editor-styles-wrapper .rcmi-directory .wp-block-rcmi-directory-person.rcmi-person.is-selected,
.editor-styles-wrapper .rcmi-directory .wp-block-rcmi-directory-person.rcmi-person.has-child-selected{
	box-shadow:0 0 0 1.5px var(--wp-admin-theme-color,#007cba);
	border-radius:12px;
}
.rcmi-directory-add{
	border:2px dashed var(--color-border,#DEE1E2);
	background:transparent;
	border-radius:4px;
	min-height:140px;
	cursor:pointer;
	font-family:inherit;
	font-size:.9rem;
	font-weight:600;
	color:var(--color-fg-muted,#54585A);
	transition:border-color .2s,color .2s;
}
.rcmi-directory-add:hover{
	border-color:var(--red,#C8102E);
	color:var(--red,#C8102E);
}

/* Sidebar helper text + color rows */
.rcmi-color-help{
	font-size:12px;
	color:#757575;
	margin:0 0 12px;
}
.rcmi-color-field{ margin-bottom:16px; }
.rcmi-color-field .components-base-control__label{
	font-weight:600;
	margin-bottom:6px;
}

/* Feature cards: InnerBlocks wrappers → display:contents so cards stay direct
   grid items; selection outline; media pick button; dashed add tile. */
.editor-styles-wrapper .rcmi-fc-grid .block-editor-inner-blocks,
.editor-styles-wrapper .rcmi-fc-grid .block-editor-block-list__layout{
	display:contents;
}
.editor-styles-wrapper .rcmi-fc-grid .wp-block-rcmi-feature-card.rcmi-fc{
	outline:none;
}
.editor-styles-wrapper .rcmi-fc-grid .wp-block-rcmi-feature-card.rcmi-fc.is-selected,
.editor-styles-wrapper .rcmi-fc-grid .wp-block-rcmi-feature-card.rcmi-fc.has-child-selected{
	box-shadow:0 0 0 1.5px var(--wp-admin-theme-color,#007cba);
}
/* The stretched-link overlay covers the whole card — it would swallow every
   editor click, so it is inert inside the editor. */
.editor-styles-wrapper .rcmi-fc .rcmi-fc-link::after{ pointer-events:none; }
/* Media pick button fills the media box / figure (same pattern as the
   directory photo button). */
.rcmi-fc-img-btn{
	position:absolute;
	inset:0;
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	height:100%;
	border:0;
	background:transparent;
	padding:0;
	cursor:pointer;
}
.rcmi-fc-img-hint{
	font-size:.68rem;
	font-weight:600;
	letter-spacing:.04em;
	text-transform:uppercase;
	color:rgba(255,255,255,.72);
}
/* Hover cards: the caption layer covers the image — let clicks pass through
   to the media button except on the editable title/text/CTA themselves. */
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc figcaption{ pointer-events:none; }
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-title,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-text,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc .rcmi-fc-cta{ pointer-events:auto; }
/* The real editor wraps our appender in a .block-list-appender.wp-block
   div — that wrapper is the flex item, so give it display:contents (scoped
   to the direct list layout) and let the tile itself carry the card-like
   footprint instead of collapsing to content width. */
.editor-styles-wrapper .rcmi-card-layout > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender{
	display:contents;
}
.editor-styles-wrapper .rcmi-card-layout .rcmi-directory-add,
.editor-styles-wrapper .rcmi-card-layout .rcmi-fc-add{
	flex:0 1 min(var(--rcmi-card-max-width,240px), calc((100% - (var(--rcmi-card-columns,1) - 1) * var(--rcmi-card-gap,24px)) / var(--rcmi-card-columns,1)));
	min-width:0;
}
/* A selected hover card shows its revealed state so caption text is editable. */
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) figcaption,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) figcaption::before,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) figcaption::after,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) .rcmi-fc-cap,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) .rcmi-fc-title,
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc:is(.is-selected,.has-child-selected) .rcmi-fc-text{
	opacity:1;
	transform:none;
}
/* Apollo's diagonal flash must stay parked off-canvas (a transform reset
   would paint it over the card); Sadie's title keeps its centered offset. */
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc--effect-apollo:is(.is-selected,.has-child-selected) figcaption::before{
	transform:scale3d(1.9,1.4,1) rotate3d(0,0,1,45deg) translate3d(0,100%,0);
}
.editor-styles-wrapper .rcmi-fc-grid--hover .rcmi-fc--effect-sadie:is(.is-selected,.has-child-selected) .rcmi-fc-title{
	color:#fff;
	transform:translate3d(0,-50%,0) translate3d(0,-40px,0);
}
.rcmi-fc-add{
	border:2px dashed var(--color-border,#DEE1E2);
	background:transparent;
	border-radius:4px;
	min-height:140px;
	cursor:pointer;
	font-family:inherit;
	font-size:.9rem;
	font-weight:600;
	color:var(--color-fg-muted,#54585A);
	transition:border-color .2s,color .2s;
}
.rcmi-fc-add:hover{
	border-color:var(--red,#C8102E);
	color:var(--red,#C8102E);
}

/* Feature Cards icon picker (editor sidebar + canvas popover). */
.rcmi-fc-iconpicker{ width:100%; }
.rcmi-fc-iconpicker-popover .components-popover__content{ width:300px; padding:12px; }
.rcmi-fc-iconpicker__grid{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(36px,1fr));
	gap:4px;
	max-height:240px;
	overflow-y:auto;
	margin-top:8px;
	padding:2px;
}
.rcmi-fc-iconpicker__item{
	display:flex;
	align-items:center;
	justify-content:center;
	height:36px;
	padding:0;
	border:1px solid transparent;
	border-radius:4px;
	background:none;
	color:#1e1e1e;
	cursor:pointer;
}
.rcmi-fc-iconpicker__item:hover{ background:#f0f0f0; }
.rcmi-fc-iconpicker__item:focus-visible{ outline:2px solid var(--wp-admin-theme-color,#3858e9); outline-offset:0; }
.rcmi-fc-iconpicker__item.is-selected{
	background:var(--wp-admin-theme-color,#3858e9);
	color:#fff;
}
.rcmi-fc-iconpicker__empty,
.rcmi-fc-iconpicker__count{ margin:8px 0 0; font-size:12px; color:#757575; }
.rcmi-fc-iconpicker__empty{ grid-column:1 / -1; }
.rcmi-fc-iconpicker__current{
	display:flex;
	align-items:center;
	gap:8px;
	margin-bottom:12px;
}
.rcmi-fc-iconpicker__current .components-button{ margin-left:auto; }
