/* Spain Atmosphere - site styles.
   Calm, cool base. Spanish red and gold only as small accents (top stripe,
   link underlines, the mark). The only blue is the verification check itself. */

:root {
	--paper: #F6F7F9;
	--white: #FFFFFF;
	--mist: #E9ECF1;
	--line: #D6DAE2;
	--ink: #1E2330;
	--slate: #2D3340;
	--muted: #5A6172;
	--red: #AA151B;
	--gold: #F1BF00;
	--check: #1083FE;
	/* Titles and brand: Bricolage Grotesque. Running text: Source Sans 3. */
	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-text: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 72rem;
	--measure: 40rem;
	--gutter: max(1.25rem, calc((100% - var(--wrap)) / 2));
	--radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.1875rem;
	line-height: 1.6;
	font-weight: 400;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0 0 0.6em;
	color: var(--ink);
	text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 650; }

a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--red);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.2em;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible {
	outline: 3px solid var(--check);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Skip link and top stripe */
.sa-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	background: var(--slate);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: 8px;
}
.sa-skip:focus { top: 1rem; }

.sa-stripe {
	height: 6px;
	background: linear-gradient(to bottom, var(--red) 0 25%, var(--gold) 25% 75%, var(--red) 75% 100%);
}

/* Header */
.sa-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem 2rem;
	padding: 1.1rem var(--gutter);
	flex-wrap: wrap;
}
.sa-brand {
	font-family: var(--font-display);
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	margin-right: auto;
}
.sa-nav {
	display: flex;
	gap: 0.25rem 1.5rem;
	font-size: 1.05rem;
}
.sa-nav a {
	text-decoration: none;
	color: var(--muted);
	padding: 0.25rem 0;
}
.sa-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.sa-lang {
	display: inline-flex;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 3px;
	background: var(--white);
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1;
}
.sa-lang > * { padding: 0.4rem 0.7rem; border-radius: 999px; text-decoration: none; }
.sa-lang [aria-current] { background: var(--slate); color: #fff; }
.sa-lang a { color: var(--muted); }
.sa-lang a:hover { color: var(--ink); background: var(--mist); }

@media (max-width: 760px) {
	.sa-nav {
		order: 3;
		width: 100%;
		overflow-x: auto;
		gap: 1.25rem;
		padding-bottom: 0.25rem;
		scrollbar-width: none;
	}
	.sa-nav a { white-space: nowrap; }
}

/* Sections of the one pager */
.sa-home > .sa-section {
	padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
	margin: 0;
	scroll-margin-top: 1rem;
}
.sa-home > .sa-section + .sa-section:not(.sa-band) { border-top: 1px solid var(--line); }
.sa-band + .sa-section { border-top: 0 !important; }
.sa-band { background: var(--mist); }

.sa-section > h2,
.sa-section > p,
.sa-section > ul,
.sa-section > ol { max-width: var(--measure); }
.sa-section > .sa-lead { max-width: 36rem; }

.sa-lead {
	font-size: clamp(1.3rem, 2vw, 1.45rem);
	line-height: 1.5;
	color: var(--ink);
}
.sa-small { font-size: 1rem; color: var(--muted); }

/* Split sections: heading on the left, text on the right (wide screens) */
@media (min-width: 900px) {
	.sa-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		column-gap: clamp(2.5rem, 6vw, 6rem);
		align-items: start;
	}
	.sa-split > * { grid-column: 2; }
	.sa-split > h2 { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 1.5rem; }
	.sa-split > :nth-child(2) { margin-top: 0.35rem; }
}

/* Hero */
.sa-home > .sa-hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.sa-hero > .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
	margin: 0;
}
.sa-hero > .wp-block-columns > .wp-block-column:first-child { flex: 1.25 1 0; }
.sa-hero > .wp-block-columns > .wp-block-column:last-child { flex: 1 1 0; }
.sa-hero h1 { max-width: 15ch; margin-bottom: 0.45em; }
.sa-hero .sa-lead { max-width: 34rem; }
.sa-trust {
	margin-top: 1.75rem;
	font-size: 1.03rem;
	color: var(--muted);
	max-width: 30rem;
}

/* Buttons */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}
.wp-block-button__link,
.sa-button {
	display: inline-block;
	background: var(--slate);
	color: #fff;
	border: 1.5px solid var(--slate);
	border-radius: 10px;
	padding: 0.8rem 1.25rem;
	font-family: var(--font-text);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.wp-block-button__link:hover,
.sa-button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--slate);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--white); color: var(--ink); }

/* The example verified-account card */
.sa-card { margin: 0 0 0 auto; max-width: 26rem; }
.sa-card__frame {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(30, 35, 48, 0.06), 0 18px 40px -18px rgba(30, 35, 48, 0.28);
	padding: 0 1.4rem 1.2rem;
}
.sa-card__banner {
	height: 92px;
	margin: 0 -1.4rem;
	background: #D5DBE5;
	border-bottom: 1px solid var(--line);
}
.sa-card__avatar {
	font-family: var(--font-display);
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--slate);
	border: 4px solid var(--white);
	margin-top: -38px;
	margin-bottom: 0.6rem;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.9rem;
	letter-spacing: -0.03em;
}
.sa-card__name {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.sa-card__check { flex: none; width: 22px; height: 22px; }
.sa-card__handle { color: var(--muted); margin: 0 0 0.6rem; }
.sa-card__bio { margin: 0 0 1rem; }
.sa-card__by {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 1rem;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: 0.85rem;
	margin: 0;
}
.sa-card__caption {
	margin-top: 1.4rem;
	font-size: 0.97rem;
	color: var(--muted);
	max-width: 26rem;
}

/* What we do */
.sa-duo { gap: clamp(1.5rem, 4vw, 3.5rem) !important; margin: 2rem 0 0; }
.sa-duo h3 { font-size: 1.5rem; }
.sa-duo p { max-width: 32rem; }

.sa-facts {
	list-style: none;
	padding: 0;
	margin: 2.5rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.25rem 2rem;
	max-width: none !important;
}
.sa-facts li {
	border-top: 2px solid var(--ink);
	padding-top: 0.8rem;
	font-size: 1.05rem;
	color: var(--muted);
}
.sa-facts strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 0.2rem; }

/* What the check means */
.sa-section > h3 { margin-top: 2.25rem; max-width: var(--measure); }
.sa-rule--top { margin: 1.5rem 0 0.5rem; }
.sa-rule--top + .sa-steps { margin-top: 3rem; }
.sa-not {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
}
.sa-not li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.45rem;
}
.sa-not li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.62em;
	width: 0.95rem;
	height: 2px;
	background: var(--red);
}
.sa-rule {
	border-left: 4px solid var(--red);
	padding: 0.2rem 0 0.2rem 1.25rem;
	margin-top: 2.5rem;
	max-width: var(--measure);
}
.sa-rule h3 { margin-bottom: 0.35em; }
.sa-rule p { margin: 0; }

/* Lists */
.sa-lists { margin-top: 2.5rem; }
.sa-lists__group + .sa-lists__group { margin-top: 2.75rem; }
.sa-lists__title { font-size: 1.2rem; margin-bottom: 0.3rem; }
.sa-lists__note { font-size: 1rem; color: var(--muted); margin: 0 0 1rem; max-width: var(--measure); }
.sa-lists__title + .sa-lists__grid { margin-top: 1rem; }
.sa-lists__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
	grid-auto-rows: 1fr;
	gap: 0.85rem;
}
.sa-list {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0.9rem;
	align-items: start;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.75rem 0.9rem 0.75rem 0.75rem;
}
.sa-list__avatar {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
}
.sa-list__avatar--blank {
	font-family: var(--font-display);
	display: grid;
	place-items: center;
	background: var(--slate);
	color: #fff;
	font-weight: 700;
	font-size: 1.3rem;
}
.sa-list__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sa-list__name {
	font-weight: 650;
	font-size: 1.05rem;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.sa-list__name:hover { text-decoration: underline; text-decoration-color: var(--red); }
.sa-list__count { font-size: 0.95rem; color: var(--muted); }
.sa-list__pack { font-size: 0.95rem; margin-top: 0.2rem; align-self: flex-start; }
.sa-lists__meta { margin: 1.25rem 0 0; font-size: 0.93rem; color: var(--muted); }

/* Steps */
.sa-steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
	margin: 2.25rem 0 2rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.75rem 2rem;
	max-width: none !important;
}
.sa-steps li {
	counter-increment: step;
	font-size: 1.05rem;
	color: var(--muted);
}
.sa-steps li::before {
	font-family: var(--font-display);
	content: counter(step);
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--slate);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	margin-bottom: 0.8rem;
}
.sa-steps strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 0.25rem; }

/* Contact list */
.sa-contact {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}
.sa-contact li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.sa-contact li:first-child { border-top: 1px solid var(--line); }

/* Plain lists inside sections share the dash marker of .sa-not, in slate */
.sa-section ul.wp-block-list:not([class*="sa-"]) { list-style: none; padding: 0; }
.sa-section ul.wp-block-list:not([class*="sa-"]) > li { position: relative; padding-left: 1.9rem; margin-bottom: 0.45rem; }
.sa-section ul.wp-block-list:not([class*="sa-"]) > li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.62em;
	width: 0.95rem;
	height: 2px;
	background: var(--slate);
}
.sa-prose ul,
.sa-prose ol { padding-left: 1.3rem; }
.sa-section li::marker,
.sa-prose li::marker { color: var(--muted); }

/* Reading pages (criteria, legal, privacy) */
.sa-page {
	max-width: calc(42rem + 2.5rem); /* about 80 characters per line in Source Sans 3 */
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(4rem, 8vw, 6rem);
}
.sa-page__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.sa-page__lead { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }
.sa-page__head { margin-bottom: 2.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.sa-prose h2 { font-size: 1.6rem; margin-top: 2.6rem; }
.sa-prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.sa-prose li { margin-bottom: 0.35rem; }
.sa-prose .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.sa-prose table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
.sa-prose th, .sa-prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.sa-prose th { font-weight: 650; border-bottom: 2px solid var(--ink); }
.sa-prose .wp-block-table thead { border-bottom: 0; }
.sa-prose .wp-block-table td, .sa-prose .wp-block-table th { border-left: 0; border-right: 0; border-top: 0; }

/* Footer */
.sa-footer {
	background: var(--slate);
	color: #DCE0E8;
	font-size: 1.03rem;
}
.sa-footer a { color: #fff; text-decoration-color: var(--gold); }
.sa-footer a:hover { text-decoration-color: #fff; }
.sa-footer__inner {
	display: grid;
	grid-template-columns: 1.3fr 1.2fr 0.7fr;
	gap: 2rem 3rem;
	padding: 3.5rem var(--gutter) 2.5rem;
}
.sa-footer__brand {
	font-family: var(--font-display);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
}
.sa-footer__label { display: block; font-size: 0.9rem; color: #A9B0BE; }
.sa-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.sa-footer__fine {
	margin: 0;
	padding: 1.25rem var(--gutter) 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
	color: #A9B0BE;
}
@media (max-width: 860px) {
	.sa-footer__inner { grid-template-columns: 1fr; }
}

/* WordPress core bits */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Addresses and handles never break at their hyphen */
a[href^="mailto:"],
a[href^="https://mu.social/profile/"] { white-space: nowrap; }

/* Hero card centred against the text (block-library forces align-items on columns) */
.sa-hero .wp-block-column:last-child { align-self: center; }

/* Comfortable tap targets in the footer */
.sa-footer__links a { padding-block: 0.3rem; }
.sa-footer__contact p { margin-bottom: 1.1rem; }
.sa-footer__label { margin-bottom: 0.15rem; }

/* Inline code (list names in the criteria). */
.sa-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--mist); border-radius: 4px; padding: 0.1em 0.35em; white-space: nowrap; }
