/*
Theme Name: RemoveMyMugshot
Theme URI: https://removemymugshot.org/
Author: Alex Adekola
Author URI: https://removemymugshot.org/
Description: A WordPress block theme for RemoveMyMugshot.org. Plus Jakarta Sans on paper white, ink navy and brand blue, pill actions and soft-tinted surfaces. Every colour, size and spacing value is a theme.json token, so Global Styles genuinely controls the site. No framework, no build step, one stylesheet.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: removemymugshot
Tags: block-theme, full-site-editing, business, blog, one-column, two-columns, custom-colors, custom-logo, custom-menu, block-patterns, accessibility-ready, sticky-post, threaded-comments
*/

/* ==========================================================================
   This file is the port of the design's theme-base.css. It carries only what
   inline styles and theme.json cannot express: resets, focus and selection,
   scroll-reveal state, breakpoints, and the hover/pressed states that the
   design authored as `style-hover` attributes in the Claude Design preview.
   Every colour and size below reads from a theme.json token.
   ========================================================================== */

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

body {
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

img { max-width: 100%; height: auto; }

::selection { background: #D9E7FD; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 2px;
	border-radius: var(--wp--custom--radius--sm);
}

input::placeholder,
textarea::placeholder { color: var(--wp--preset--color--placeholder); }

/* Anchor targets clear the sticky header. */
:target { scroll-margin-top: var(--wp--custom--header--offset); }

.rmm-anchor { scroll-margin-top: var(--wp--custom--header--offset); }

/* --- Accessibility ------------------------------------------------------- */

.skip-link:focus {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	padding: 14px 22px;
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--preset--shadow--panel);
	z-index: 100000;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* --- Disclosure (FAQ) ---------------------------------------------------- */

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary .rmm-plus,
details[open] summary [data-plus] { transform: rotate(45deg); }

.rmm-plus,
[data-plus] {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue);
	transition: transform 0.2s ease;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-size: var(--wp--preset--font-size--h4);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--ink);
}

.wp-block-details > *:not(summary) {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.72;
	color: var(--wp--preset--color--muted);
	max-width: var(--wp--custom--measure--lead);
}

/* --- Scroll reveals ------------------------------------------------------
   Hidden state is gated on html[data-anim-ready], which the script sets
   itself. With JS off, blocked, or reduced-motion, everything renders
   visible. .rmm-reveal reveals one element; .rmm-reveal-group staggers its
   children. The data-* forms are kept so markup pasted straight out of the
   design still animates inside a core/html block.
   ------------------------------------------------------------------------ */

html[data-anim-ready] .rmm-reveal,
html[data-anim-ready] [data-anim] {
	opacity: 0;
	transform: translateY(18px);
}

html[data-anim-ready] .rmm-reveal[data-shown],
html[data-anim-ready] [data-anim][data-shown] {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.7s var(--wp--custom--ease),
		transform 0.7s var(--wp--custom--ease);
}

html[data-anim-ready] .rmm-reveal-group > *,
html[data-anim-ready] [data-anim-group] > * {
	opacity: 0;
	transform: translateY(18px);
}

html[data-anim-ready] .rmm-reveal-group[data-shown] > *,
html[data-anim-ready] [data-anim-group][data-shown] > * {
	opacity: 1;
	transform: none;
	transition:
		opacity 0.65s var(--wp--custom--ease),
		transform 0.65s var(--wp--custom--ease);
}

html[data-anim-ready] .rmm-reveal-group[data-shown] > :nth-child(2),
html[data-anim-ready] [data-anim-group][data-shown] > :nth-child(2) { transition-delay: 0.08s; }
html[data-anim-ready] .rmm-reveal-group[data-shown] > :nth-child(3),
html[data-anim-ready] [data-anim-group][data-shown] > :nth-child(3) { transition-delay: 0.16s; }
html[data-anim-ready] .rmm-reveal-group[data-shown] > :nth-child(4),
html[data-anim-ready] [data-anim-group][data-shown] > :nth-child(4) { transition-delay: 0.24s; }
html[data-anim-ready] .rmm-reveal-group[data-shown] > :nth-child(5),
html[data-anim-ready] [data-anim-group][data-shown] > :nth-child(5) { transition-delay: 0.32s; }
html[data-anim-ready] .rmm-reveal-group[data-shown] > :nth-child(6),
html[data-anim-ready] [data-anim-group][data-shown] > :nth-child(6) { transition-delay: 0.4s; }

/* Never hide content inside the editor — the canvas has no IntersectionObserver run. */
.editor-styles-wrapper .rmm-reveal,
.editor-styles-wrapper .rmm-reveal-group > * {
	opacity: 1 !important;
	transform: none !important;
}

/* --- Grid utilities ------------------------------------------------------
   The design's data-r hooks. Both the class and the original attribute are
   honoured so design markup can be pasted verbatim.
   ------------------------------------------------------------------------ */

.rmm-grid { display: grid; }

.rmm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rmm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rmm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rmm-aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--wp--preset--spacing--100);
	align-items: start;
}

.rmm-split {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: var(--wp--preset--spacing--100);
	align-items: start;
}

.rmm-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 72px;
	align-items: start;
}

.rmm-sticky {
	position: sticky;
	top: var(--wp--custom--header--offset);
}

/* The gradient call-to-action banner. */
.rmm-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--wp--preset--spacing--80);
	align-items: center;
	padding: var(--wp--preset--spacing--100);
	border-radius: var(--wp--custom--radius--round);
}

.rmm-cols-2 { display: grid; grid-template-columns: 1fr 1fr; }

@media (max-width: 1180px) {
	.rmm-hero-grid, [data-r="hero"] { grid-template-columns: 1fr !important; gap: var(--wp--preset--spacing--90) !important; }
	.rmm-split,     [data-r="split"] { grid-template-columns: 1fr !important; gap: var(--wp--preset--spacing--80) !important; }
	.rmm-aside,     [data-r="aside"] { grid-template-columns: 1fr !important; gap: var(--wp--preset--spacing--90) !important; }
	.rmm-cta,       [data-r="cta"]   { grid-template-columns: 1fr !important; padding: var(--wp--preset--spacing--90) !important; }
	[data-r="nav"] { display: none !important; }
	.rmm-sticky { position: static; }
}

@media (max-width: 960px) {
	.rmm-grid-3, [data-r="grid3"],
	.rmm-grid-4, [data-r="grid4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.rmm-footer-grid, [data-r="footer"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--wp--preset--spacing--80) !important; }
	.rmm-cols-2, [data-r="cols2"] { grid-template-columns: 1fr !important; gap: var(--wp--preset--spacing--50) !important; }
}

@media (max-width: 720px) {
	.rmm-grid-2, [data-r="grid2"],
	.rmm-grid-3, [data-r="grid3"],
	.rmm-grid-4, [data-r="grid4"] { grid-template-columns: 1fr !important; }
	.rmm-footer-grid, [data-r="footer"] { grid-template-columns: 1fr !important; }
	.rmm-cta, [data-r="cta"] { padding: 34px !important; border-radius: var(--wp--custom--radius--xxxl) !important; }
}

@media (max-width: 520px) {
	.rmm-form-grid, [data-r="formgrid"] { grid-template-columns: 1fr !important; }
}

/* --- Measure -------------------------------------------------------------- */

.rmm-measure-prose { max-width: var(--wp--custom--measure--prose); }
.rmm-measure-lead  { max-width: var(--wp--custom--measure--lead); }
.rmm-measure-tight { max-width: var(--wp--custom--measure--tight); }

/* --- Eyebrow pill --------------------------------------------------------- */

.rmm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue-dark);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	padding: 8px 15px;
	border-radius: var(--wp--custom--radius--pill);
	margin: 0;
}

.rmm-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--blue);
	flex: none;
}

/* --- Buttons -------------------------------------------------------------- */

.rmm-btn,
.rmm-btn-primary,
.rmm-btn-secondary,
.rmm-btn-onink,
.rmm-btn-onink-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	border-radius: var(--wp--custom--radius--pill);
	padding: 16px 30px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rmm-btn-primary {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--base);
	border: 1px solid transparent;
	box-shadow: var(--wp--preset--shadow--button-lg);
}
.rmm-btn-primary:hover,
.rmm-btn-primary:focus { background: var(--wp--preset--color--blue-dark); color: var(--wp--preset--color--base); }
.rmm-btn-primary:active { background: var(--wp--preset--color--blue-deep); }

.rmm-btn-secondary {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line-strong);
}
.rmm-btn-secondary:hover,
.rmm-btn-secondary:focus {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue-dark);
}

/* Compact variant used in the sticky header. */
.rmm-btn-sm {
	font-size: var(--wp--preset--font-size--small);
	padding: 12px 22px;
	box-shadow: var(--wp--preset--shadow--button);
}

/* Actions sitting on an ink/gradient surface. */
.rmm-btn-onink {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	border: 1px solid transparent;
	font-weight: 700;
}
.rmm-btn-onink:hover,
.rmm-btn-onink:focus { background: var(--wp--preset--color--tint); color: var(--wp--preset--color--ink); }

.rmm-btn-onink-ghost {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--base);
	border: 1px solid rgba(255, 255, 255, 0.28);
}
.rmm-btn-onink-ghost:hover,
.rmm-btn-onink-ghost:focus { background: rgba(255, 255, 255, 0.18); color: var(--wp--preset--color--base); }

.rmm-btn-block { width: 100%; }

/* --- Surfaces ------------------------------------------------------------- */

.rmm-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xxl);
	padding: var(--wp--preset--spacing--60);
}

.rmm-card-hover { transition: background-color 0.2s ease, border-color 0.2s ease; }
.rmm-card-hover:hover {
	border-color: #C6DAF7;
	background: var(--wp--preset--color--surface-alt);
}

.rmm-panel {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xxxl);
	padding: 30px;
	box-shadow: var(--wp--preset--shadow--card);
}

.rmm-callout {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--wp--preset--color--tint);
	border-radius: var(--wp--custom--radius--xxl);
	padding: 24px 26px;
}
.rmm-callout p { color: var(--wp--preset--color--blue-deep); margin: 0; }

/* Numbered step row — the 01/02/03 list on the guidelines page. */
.rmm-step {
	display: flex;
	gap: 16px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xl);
	padding: var(--wp--preset--spacing--60);
}
.rmm-step-num {
	flex: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 800;
	color: var(--wp--preset--color--blue);
	line-height: 1.6;
}

/* Ghost numeral card — the 68px watermark on the home process cards.
   Blocks cannot carry a data-num attribute, so the numeral ships as a span;
   the ::before form is kept for markup pasted straight out of the design. */
.rmm-numbered { position: relative; overflow: hidden; }
.rmm-numbered > *:not(.rmm-ghost-num) { position: relative; z-index: 1; }

.rmm-ghost-num,
.rmm-numbered[data-num]::before {
	content: attr(data-num);
	position: absolute;
	top: 14px;
	right: 24px;
	font-size: 68px;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--wp--preset--color--tint-ghost);
	pointer-events: none;
	z-index: 0;
}

/* Contributor / person row. */
.rmm-person {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.rmm-person > div { min-width: 0; }

/* Heading-plus-action row, as used by the corrections card. */
.rmm-cta-row {
	display: flex;
	gap: 22px;
	align-items: center;
	flex-wrap: wrap;
}
.rmm-cta-row > div:first-child { flex: 1; min-width: 240px; }

.rmm-icon-tile {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--tint);
}

.rmm-avatar {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue-dark);
	display: grid;
	place-items: center;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 800;
}

.rmm-chip {
	display: inline-flex;
	align-items: center;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--slate);
	background: var(--wp--preset--color--chip);
	border: 1px solid var(--wp--preset--color--chip-line);
	border-radius: var(--wp--custom--radius--pill);
	padding: 11px 20px;
}

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

.rmm-announcement {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--on-ink-bar);
	font-size: var(--wp--preset--font-size--meta);
	line-height: 1;
}
.rmm-announcement a { color: var(--wp--preset--color--base); font-weight: 600; }
.rmm-announcement a:hover { color: var(--wp--preset--color--base); text-decoration: underline; }

.rmm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.rmm-header-inner {
	max-width: 1200px;
	margin-inline: auto;
	min-height: var(--wp--custom--header--height);
}

.rmm-brand { display: flex; align-items: center; gap: 10px; color: var(--wp--preset--color--ink); }
.rmm-brand:hover { color: var(--wp--preset--color--ink); }

.rmm-phone,
.rmm-phone a {
	color: var(--wp--preset--color--ink);
	font-size: 15.5px;
	font-weight: 700;
	white-space: nowrap;
	margin: 0;
}
.rmm-phone:hover,
.rmm-phone a:hover { color: var(--wp--preset--color--blue); }

/* The design hides the inline nav below 1180px; the block nav's own
   responsive machinery takes over from there. */
@media (max-width: 1180px) {
	.rmm-header .rmm-nav-desktop { display: none !important; }
}

/* --- Breadcrumb ----------------------------------------------------------- */

.rmm-crumbs {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--subtle);
	margin: 0;
}
.rmm-crumbs a { color: var(--wp--preset--color--subtle); }
.rmm-crumbs a:hover { color: var(--wp--preset--color--blue); }
.rmm-crumbs [aria-current="page"] { color: var(--wp--preset--color--ink); font-weight: 600; }

/* --- On-this-page nav ----------------------------------------------------- */

.rmm-toc { display: flex; flex-direction: column; gap: 10px; font-size: var(--wp--preset--font-size--small); }
.rmm-toc a { color: var(--wp--preset--color--blue); }
.rmm-toc a:hover { color: var(--wp--preset--color--blue-dark); }

/* --- Footer --------------------------------------------------------------- */

.rmm-footer { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--on-ink); }

.rmm-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--90);
	max-width: 1200px;
	margin-inline: auto;
	padding: 72px 32px 40px;
}

.rmm-footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 1200px;
	margin-inline: auto;
	padding: 28px 32px 44px;
}

.rmm-footer-legal {
	display: flex;
	gap: var(--wp--preset--spacing--60);
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--on-ink-faint);
	margin: 0;
}

@media (max-width: 720px) {
	.rmm-header-inner,
	.rmm-footer-grid,
	.rmm-footer-bottom {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

.rmm-footer h2,
.rmm-footer h3 { color: var(--wp--preset--color--on-ink-label); }

.rmm-footer-link { color: var(--wp--preset--color--on-ink); }
.rmm-footer-link:hover { color: var(--wp--preset--color--base); }

.rmm-legal-link { color: var(--wp--preset--color--on-ink-faint); }
.rmm-legal-link:hover { color: var(--wp--preset--color--base); }

.rmm-footer-rule { border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* The navigation block inside the footer inherits ink-surface link colours. */
.rmm-footer .wp-block-navigation,
.rmm-footer .wp-block-navigation a { color: var(--wp--preset--color--on-ink); }
.rmm-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--base); }

/* --- Ink surfaces --------------------------------------------------------- */

.rmm-on-ink,
.rmm-on-ink p { color: var(--wp--preset--color--on-ink); }
.rmm-on-ink h1,
.rmm-on-ink h2,
.rmm-on-ink h3,
.rmm-on-ink h4 { color: var(--wp--preset--color--base); }
.rmm-on-ink a:not([class*="rmm-btn"]) { color: var(--wp--preset--color--base); }

/* Decorative radial bloom used behind heroes and the CTA banner. */
.rmm-bloom { position: relative; overflow: hidden; }
.rmm-bloom > * { position: relative; }
.rmm-bloom::after {
	content: "";
	position: absolute;
	top: -180px;
	right: -140px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(67, 184, 245, 0.28), rgba(67, 184, 245, 0) 68%);
	pointer-events: none;
	z-index: 0;
}
.rmm-bloom-ink::after {
	top: -160px;
	right: -80px;
	width: 460px;
	height: 460px;
	background: radial-gradient(circle, rgba(67, 184, 245, 0.34), rgba(67, 184, 245, 0) 68%);
}

/* Gradient-filled headline fragment. */
.rmm-gradient-text {
	background: var(--wp--preset--gradient--brand-sweep);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Forms ---------------------------------------------------------------- */

.rmm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.rmm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rmm-field > span {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}
.rmm-field-full { grid-column: 1 / -1; }

.rmm-input {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 15px;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--line-field);
	border-radius: var(--wp--custom--radius--md);
}
.rmm-input:focus { border-color: var(--wp--preset--color--blue); }

/* --- Fluent Forms inside the hero card -----------------------------------
   Scoped to .rmm-form-card on purpose: the site has other Fluent Forms and
   this must not restyle them. To adopt these styles site-wide, change the
   .rmm-form-card prefix below to .fluentform.

   Targeted by element rather than by .ff-* class wherever possible, so the
   styling survives Fluent Forms markup changes between versions. The handful
   of .ff-* selectors below are only for spacing and the column grid, which
   element selectors cannot reach.
   ------------------------------------------------------------------------ */

.rmm-form-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--huge);
	padding: 34px;
	box-shadow: var(--wp--preset--shadow--panel);
}

.rmm-form-card input[type="text"],
.rmm-form-card input[type="email"],
.rmm-form-card input[type="tel"],
.rmm-form-card input[type="number"],
.rmm-form-card input[type="url"],
.rmm-form-card input[type="date"],
.rmm-form-card select,
.rmm-form-card textarea {
	width: 100%;
	min-width: 0;
	height: 48px;
	padding: 0 15px;
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--surface-alt);
	border: 1px solid var(--wp--preset--color--line-field);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.rmm-form-card textarea {
	height: auto;
	min-height: 118px;
	padding: 14px 15px;
	line-height: 1.6;
	resize: vertical;
}

.rmm-form-card input:focus,
.rmm-form-card select:focus,
.rmm-form-card textarea:focus {
	border-color: var(--wp--preset--color--blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 104, 227, 0.12);
}

.rmm-form-card label {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	line-height: 1.4;
}

.rmm-form-card button[type="submit"],
.rmm-form-card input[type="submit"] {
	width: 100%;
	height: 52px;
	margin: 0;
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--blue);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	cursor: pointer;
	box-shadow: var(--wp--preset--shadow--button-lg);
	transition: background-color 0.18s ease;
}

.rmm-form-card button[type="submit"]:hover,
.rmm-form-card input[type="submit"]:hover { background: var(--wp--preset--color--blue-dark); }
.rmm-form-card button[type="submit"]:active,
.rmm-form-card input[type="submit"]:active { background: var(--wp--preset--color--blue-deep); }

/* Fluent Forms structural bits. */
.rmm-form-card .ff-el-group { margin-bottom: 16px; }
.rmm-form-card .ff-el-input--label { margin-bottom: 7px; padding: 0; }
.rmm-form-card .ff-el-input--label label { margin: 0; }
.rmm-form-card .ff-t-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rmm-form-card .ff-t-container .ff-t-cell { width: auto; padding: 0; }
.rmm-form-card .ff-el-group.ff-el-form-bottom { margin-top: 20px; margin-bottom: 0; }
.rmm-form-card .ff-el-is-error .ff-el-form-control { border-color: #D64545; }
.rmm-form-card .error-text,
.rmm-form-card .text-danger {
	font-size: var(--wp--preset--font-size--tiny);
	color: #D64545;
	margin-top: 5px;
}
.rmm-form-card .ff-message-success {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue-deep);
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	padding: 18px 20px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

@media (max-width: 520px) {
	.rmm-form-card .ff-t-container { grid-template-columns: 1fr !important; }
}

/* --- Post lists ----------------------------------------------------------- */

.rmm-post-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--xxxl);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.rmm-post-card:hover {
	border-color: #C6DAF7;
	box-shadow: var(--wp--preset--shadow--card);
}
.rmm-post-card .wp-block-post-featured-image img { border-radius: 0; }

.wp-block-post-title a { color: inherit; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--blue); }

/* --- Pagination ----------------------------------------------------------- */

.wp-block-query-pagination {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--body);
}
.wp-block-query-pagination-numbers .page-numbers:hover {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--blue-dark);
}
.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--base);
}

/* --- Editor parity -------------------------------------------------------- */

.editor-styles-wrapper .rmm-header { position: static; }
.editor-styles-wrapper .rmm-sticky { position: static; }
