/*
Theme Name:        Activate the Nation
Theme URI:         https://example.com/atn
Author:            REVA Digital
Author URI:        https://example.com
Description:       Full-site-editing block theme for Activate the Nation. Paper and ink, light and dark, following the reader's device with a three-state toggle. Anton display over Mulish body, Oswald for utility caps, Caveat for the handwritten accent. Every section is a block pattern.
Version: 2.0.0
Requires at least: 7.0
Tested up to:      7.0
Requires PHP:      8.1
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       atn
Tags:              full-site-editing, block-patterns, block-styles, block-templates, woocommerce, custom-colors, custom-logo, editor-style, featured-images, rtl-language-support, translation-ready, wide-blocks
*/

/* ─────────────────────────── ATN tokens ───────────────────────────
 *
 * Light and dark, following the reader's device, with a toggle that overrides.
 *
 * WHY THE VALUES LIVE HERE AND NOT IN theme.json
 * theme.json ships the *light* literals and this file redeclares the preset
 * variables generated from them. Putting `var(--atn-ink)` directly into
 * theme.json would be shorter, but it breaks everything that reads a palette
 * entry as data rather than paint: duotone presets compile server-side into SVG
 * colour matrices and cannot parse a var(), editor swatches render empty, and
 * the contrast checker goes quiet. Real hex in theme.json also means that if
 * this stylesheet ever fails to load, the site degrades to a coherent light
 * page instead of an unstyled one.
 *
 * THREE STATES, NOT TWO
 * A reader is explicitly light, explicitly dark, or — the default, and the one
 * everyone forgets — has stated no preference. So the bare :root block is a
 * COMPLETE palette. Defining a colour only inside a media query is what gives
 * the no-preference reader one theme's ink on the other theme's ground.
 *
 * Light is the base. `[data-atn-theme="light"]` needs no block of its own:
 * neither override matches it, so it falls through here.
 */
:root {
	/* Both palettes, always defined, so any scope can reach either. */
	--atn-l-ground: #f8f4e9;
	--atn-l-surface: #fffdf6;
	--atn-l-surface-2: #f2ecdc;
	--atn-l-ink: #17120d;
	--atn-l-body: #4c4338;
	--atn-l-muted: #8c8274;
	--atn-l-hairline: #e3dac6;
	--atn-l-hairline-strong: #cfc3a9;
	--atn-l-gold: #e9b949;
	--atn-l-gold-ink: #8a6712;
	--atn-l-gold-wash: #fbf0d2;
	--atn-l-ember: #d4623c;
	--atn-l-clay: #b8503f;
	--atn-l-clay-wash: #fae8e2;
	--atn-l-shadow: 0 1px 2px rgba(23,18,13,.05), 0 12px 32px -18px rgba(23,18,13,.28);

	--atn-d-ground: #100e0c;
	--atn-d-surface: #1a1613;
	--atn-d-surface-2: #221d18;
	--atn-d-ink: #f6f0e3;
	--atn-d-body: #bfb6a6;
	--atn-d-muted: #8a8175;
	--atn-d-hairline: #2c2621;
	--atn-d-hairline-strong: #3d352c;
	--atn-d-gold: #efc258;
	--atn-d-gold-ink: #efc258;
	--atn-d-gold-wash: #2a2317;
	--atn-d-ember: #e5744c;
	--atn-d-clay: #cb6152;
	--atn-d-clay-wash: #2b1d19;
	--atn-d-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.8);

	/* ── the live set: light ── */
	color-scheme: light;

	--atn-ground: var(--atn-l-ground);
	--atn-surface: var(--atn-l-surface);
	--atn-surface-2: var(--atn-l-surface-2);
	--atn-ink: var(--atn-l-ink);
	--atn-body: var(--atn-l-body);
	--atn-muted: var(--atn-l-muted);
	--atn-hairline: var(--atn-l-hairline);
	--atn-hairline-strong: var(--atn-l-hairline-strong);
	--atn-gold: var(--atn-l-gold);
	--atn-gold-ink: var(--atn-l-gold-ink);
	--atn-gold-wash: var(--atn-l-gold-wash);
	--atn-ember: var(--atn-l-ember);
	--atn-clay: var(--atn-l-clay);
	--atn-clay-wash: var(--atn-l-clay-wash);
	--atn-shadow: var(--atn-l-shadow);

	/* The opposite mode, for inverted bands. */
	--atn-inv-ground: var(--atn-d-ground);
	--atn-inv-surface: var(--atn-d-surface);
	--atn-inv-surface-2: var(--atn-d-surface-2);
	--atn-inv-ink: var(--atn-d-ink);
	--atn-inv-body: var(--atn-d-body);
	--atn-inv-muted: var(--atn-d-muted);
	--atn-inv-hairline: var(--atn-d-hairline);
	--atn-inv-hairline-strong: var(--atn-d-hairline-strong);
	--atn-inv-gold: var(--atn-d-gold);
	--atn-inv-gold-ink: var(--atn-d-gold-ink);
	--atn-inv-gold-wash: var(--atn-d-gold-wash);
	--atn-inv-ember: var(--atn-d-ember);
	--atn-inv-clay: var(--atn-d-clay);
	--atn-inv-clay-wash: var(--atn-d-clay-wash);
	--atn-inv-shadow: var(--atn-d-shadow);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-atn-theme]) {
		color-scheme: dark;

		--atn-ground: var(--atn-d-ground);
		--atn-surface: var(--atn-d-surface);
		--atn-surface-2: var(--atn-d-surface-2);
		--atn-ink: var(--atn-d-ink);
		--atn-body: var(--atn-d-body);
		--atn-muted: var(--atn-d-muted);
		--atn-hairline: var(--atn-d-hairline);
		--atn-hairline-strong: var(--atn-d-hairline-strong);
		--atn-gold: var(--atn-d-gold);
		--atn-gold-ink: var(--atn-d-gold-ink);
		--atn-gold-wash: var(--atn-d-gold-wash);
		--atn-ember: var(--atn-d-ember);
		--atn-clay: var(--atn-d-clay);
		--atn-clay-wash: var(--atn-d-clay-wash);
		--atn-shadow: var(--atn-d-shadow);

		--atn-inv-ground: var(--atn-l-ground);
		--atn-inv-surface: var(--atn-l-surface);
		--atn-inv-surface-2: var(--atn-l-surface-2);
		--atn-inv-ink: var(--atn-l-ink);
		--atn-inv-body: var(--atn-l-body);
		--atn-inv-muted: var(--atn-l-muted);
		--atn-inv-hairline: var(--atn-l-hairline);
		--atn-inv-hairline-strong: var(--atn-l-hairline-strong);
		--atn-inv-gold: var(--atn-l-gold);
		--atn-inv-gold-ink: var(--atn-l-gold-ink);
		--atn-inv-gold-wash: var(--atn-l-gold-wash);
		--atn-inv-ember: var(--atn-l-ember);
		--atn-inv-clay: var(--atn-l-clay);
		--atn-inv-clay-wash: var(--atn-l-clay-wash);
		--atn-inv-shadow: var(--atn-l-shadow);
	}
}

/* The explicit dark choice. Same body as the block above, and the duplication is
 * deliberate — the selectors are mutually exclusive, so neither covers for the
 * other. Add a token, add it in BOTH. */
:root[data-atn-theme="dark"] {
	color-scheme: dark;

	--atn-ground: var(--atn-d-ground);
	--atn-surface: var(--atn-d-surface);
	--atn-surface-2: var(--atn-d-surface-2);
	--atn-ink: var(--atn-d-ink);
	--atn-body: var(--atn-d-body);
	--atn-muted: var(--atn-d-muted);
	--atn-hairline: var(--atn-d-hairline);
	--atn-hairline-strong: var(--atn-d-hairline-strong);
	--atn-gold: var(--atn-d-gold);
	--atn-gold-ink: var(--atn-d-gold-ink);
	--atn-gold-wash: var(--atn-d-gold-wash);
	--atn-ember: var(--atn-d-ember);
	--atn-clay: var(--atn-d-clay);
	--atn-clay-wash: var(--atn-d-clay-wash);
	--atn-shadow: var(--atn-d-shadow);

	--atn-inv-ground: var(--atn-l-ground);
	--atn-inv-surface: var(--atn-l-surface);
	--atn-inv-surface-2: var(--atn-l-surface-2);
	--atn-inv-ink: var(--atn-l-ink);
	--atn-inv-body: var(--atn-l-body);
	--atn-inv-muted: var(--atn-l-muted);
	--atn-inv-hairline: var(--atn-l-hairline);
	--atn-inv-hairline-strong: var(--atn-l-hairline-strong);
	--atn-inv-gold: var(--atn-l-gold);
	--atn-inv-gold-ink: var(--atn-l-gold-ink);
	--atn-inv-gold-wash: var(--atn-l-gold-wash);
	--atn-inv-ember: var(--atn-l-ember);
	--atn-inv-clay: var(--atn-l-clay);
	--atn-inv-clay-wash: var(--atn-l-clay-wash);
	--atn-inv-shadow: var(--atn-l-shadow);
}

/* ── the bridge ──
 *
 * WordPress generated `--wp--preset--color--*` from theme.json's literals, and
 * every block class and every styles.* rule paints through those names.
 * Repointing them at the tokens above is what makes the whole site follow the
 * mode without touching a single block.
 *
 * `:root:root` is 0,2,0 so it beats core's `:root` whatever the print order.
 * The selector list matters: a custom property containing var() resolves against
 * the element it is DECLARED on, so a scope that redefines --atn-ink does not
 * change an inherited --wp--preset--color--ink. Each scope re-runs the bridge.
 */
:root:root,
.atn-invert,
.atn-force-dark {
	--wp--preset--color--ground: var(--atn-ground);
	--wp--preset--color--surface: var(--atn-surface);
	--wp--preset--color--surface-2: var(--atn-surface-2);
	--wp--preset--color--ink: var(--atn-ink);
	--wp--preset--color--body: var(--atn-body);
	--wp--preset--color--muted: var(--atn-muted);
	--wp--preset--color--hairline: var(--atn-hairline);
	--wp--preset--color--hairline-strong: var(--atn-hairline-strong);
	--wp--preset--color--gold: var(--atn-gold);
	--wp--preset--color--gold-ink: var(--atn-gold-ink);
	--wp--preset--color--gold-wash: var(--atn-gold-wash);
	--wp--preset--color--ember: var(--atn-ember);
	--wp--preset--color--clay: var(--atn-clay);
	--wp--preset--color--clay-wash: var(--atn-clay-wash);
	--wp--preset--color--on-gold: #241b06;
	--wp--preset--color--on-ink: var(--atn-ground);
}

.atn-invert {
	color-scheme: dark;

	--atn-ground: var(--atn-inv-ground);
	--atn-surface: var(--atn-inv-surface);
	--atn-surface-2: var(--atn-inv-surface-2);
	--atn-ink: var(--atn-inv-ink);
	--atn-body: var(--atn-inv-body);
	--atn-muted: var(--atn-inv-muted);
	--atn-hairline: var(--atn-inv-hairline);
	--atn-hairline-strong: var(--atn-inv-hairline-strong);
	--atn-gold: var(--atn-inv-gold);
	--atn-gold-ink: var(--atn-inv-gold-ink);
	--atn-gold-wash: var(--atn-inv-gold-wash);
	--atn-ember: var(--atn-inv-ember);
	--atn-clay: var(--atn-inv-clay);
	--atn-clay-wash: var(--atn-inv-clay-wash);
	--atn-shadow: var(--atn-inv-shadow);

	background-color: var(--atn-ground);
	color: var(--atn-body);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-atn-theme]) .atn-invert { color-scheme: light; }
}

:root[data-atn-theme="dark"] .atn-invert { color-scheme: light; }

.atn-force-dark {
	color-scheme: dark;

	--atn-ground: var(--atn-d-ground);
	--atn-surface: var(--atn-d-surface);
	--atn-surface-2: var(--atn-d-surface-2);
	--atn-ink: var(--atn-d-ink);
	--atn-body: var(--atn-d-body);
	--atn-muted: var(--atn-d-muted);
	--atn-hairline: var(--atn-d-hairline);
	--atn-hairline-strong: var(--atn-d-hairline-strong);
	--atn-gold: var(--atn-d-gold);
	--atn-gold-ink: var(--atn-d-gold-ink);
	--atn-gold-wash: var(--atn-d-gold-wash);
	--atn-ember: var(--atn-d-ember);
	--atn-clay: var(--atn-d-clay);
	--atn-clay-wash: var(--atn-d-clay-wash);
	--atn-shadow: var(--atn-d-shadow);
}

/* ─────────────────────────── components ───────────────────────────
 *
 * Layout is core blocks — group, columns, buttons. What lives here is only what
 * a block cannot express: the reticle brackets on the connect card, the marquee,
 * the region list, the phone. Everything reads from the tokens above, so all of
 * it flips with the mode for free.
 */

body { -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:where(a):focus-visible,
:where(button):focus-visible,
:where(input, select, textarea):focus-visible {
	outline: 2px solid var(--atn-ember);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── utility type ── */
.atn-eyebrow {
	font-family: var(--wp--preset--font-family--util);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--atn-gold-ink);
}

.atn-script {
	font-family: var(--wp--preset--font-family--script);
	font-weight: 700;
	color: var(--atn-ember);
	text-transform: none;
	letter-spacing: 0;
}

/* A scripture reference, styled as a quiet underlined link. */
.atn-verse a,
a.atn-verse {
	font-family: var(--wp--preset--font-family--util);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--atn-gold-ink);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.atn-fine { font-size: 13.5px; color: var(--atn-muted); line-height: 1.5; }

/* ── header ── */
.atn-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--atn-ground) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--atn-hairline);
}

.atn-logo { display: inline-block; line-height: 0; }
.atn-logo img { display: none; width: var(--atn-logo-width, 190px); height: auto; }
.atn-logo .atn-logo__light { display: block; }

@media (prefers-color-scheme: dark) {
	:root:not([data-atn-theme]) .atn-logo .atn-logo__light { display: none; }
	:root:not([data-atn-theme]) .atn-logo .atn-logo__dark { display: block; }
}

:root[data-atn-theme="dark"] .atn-logo .atn-logo__light { display: none; }
:root[data-atn-theme="dark"] .atn-logo .atn-logo__dark { display: block; }
.atn-force-dark .atn-logo .atn-logo__light { display: none; }
.atn-force-dark .atn-logo .atn-logo__dark { display: block; }

/* ── the three-state theme control ──
 *
 * Auto / Light / Dark, matching the app's AtnThemeMode. "Auto" is stored as the
 * ABSENCE of the key, so a reader who never touches it and one who resets to
 * auto are the same code path — and the un-stamped state is handled entirely by
 * the media query, with no JavaScript in the common case.
 */
.atn-theme {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--atn-hairline-strong);
	border-radius: 999px;
}

.atn-theme button {
	background: transparent;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	padding: 6px 11px;
	font-family: var(--wp--preset--font-family--util);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--atn-muted);
	display: inline-flex;
	align-items: center;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.atn-theme button:hover { color: var(--atn-ink); }
.atn-theme button[aria-pressed="true"] { background: var(--atn-ink); color: var(--atn-ground); }
.atn-theme svg { width: 14px; height: 14px; }

/* ── hero ── */
.atn-hero { position: relative; overflow: hidden; }

/* The warm glow behind the headline. A pseudo-element rather than a div: it is
 * decoration, and decoration in the markup is one more thing an editor has to
 * click around in the canvas. */
.atn-hero::before {
	content: "";
	position: absolute;
	inset: auto -10% 40% auto;
	width: min(520px, 60vw);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--atn-ember), transparent 68%);
	opacity: 0.13;
	pointer-events: none;
	filter: blur(6px);
}

/* ── the connect card ──
 * The reticle brackets are the signature: two corners of the logo's crosshair,
 * drawn round the card that starts a conversation. Pseudo-elements so no block
 * markup carries decoration.
 */
.atn-connect {
	position: relative;
	background: var(--atn-surface);
	border: 1px solid var(--atn-hairline);
	border-radius: 22px;
	box-shadow: var(--atn-shadow);
}

.atn-connect::before,
.atn-connect::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	border: 2px solid var(--atn-ember);
	pointer-events: none;
}

.atn-connect::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; }
.atn-connect::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 22px 0; }

/* ── marquee ── */
.atn-strip { border-block: 1px solid var(--atn-hairline); background: var(--atn-surface-2); overflow: hidden; }

.atn-strip__track {
	display: flex;
	gap: 36px;
	white-space: nowrap;
	padding: 13px 0;
	font-family: var(--wp--preset--font-family--util);
	font-size: 12.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--atn-muted);
	animation: atn-slide 42s linear infinite;
	width: max-content;
}

.atn-strip__track span { display: inline-flex; align-items: center; gap: 36px; }
.atn-strip__track b { color: var(--atn-ink); font-weight: 600; }
.atn-strip__track em { color: var(--atn-gold); font-style: normal; }

@keyframes atn-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── the rhythm loop ── */
.atn-loop .wp-block-column {
	background: var(--atn-surface);
	border: 1px solid var(--atn-hairline);
	border-radius: 20px;
	padding: 26px 24px 24px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.atn-loop .wp-block-column:hover { transform: translateY(-4px); border-color: var(--atn-hairline-strong); }

.atn-icon {
	width: 44px;
	height: 44px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: var(--atn-gold-wash);
	color: var(--atn-gold-ink);
}

.atn-icon svg { width: 22px; height: 22px; }
.atn-icon--clay { background: var(--atn-clay-wash); color: var(--atn-clay); }
.atn-icon--ember { background: var(--atn-gold-wash); color: var(--atn-ember); }

.atn-ref {
	font-family: var(--wp--preset--font-family--util);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--atn-muted);
}

/* A reference that opens the passage. Quiet until touched — it is a citation
 * first and a link second. */
.atn-ref a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.atn-ref a:hover,
.atn-ref a:focus-visible {
	color: var(--atn-gold-ink);
	border-bottom-color: currentColor;
}

.atn-return {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--script);
	font-size: 22px;
	color: var(--atn-ember);
}

.atn-return svg { width: 26px; height: 26px; }

/* ── one Saturday: a real sequence, so the numbering earns its place ── */
.atn-sat {
	border: 1px solid var(--atn-hairline);
	border-radius: 20px;
	overflow: hidden;
	background: var(--atn-surface);
}

.atn-sat .wp-block-column {
	padding: 26px 22px;
	border-right: 1px solid var(--atn-hairline);
}

.atn-sat .wp-block-column:last-child { border-right: 0; }

.atn-step-n {
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	letter-spacing: 0.16em;
	color: var(--atn-ember);
	text-transform: uppercase;
}

/* ── regions ── */
.atn-regions__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--atn-hairline); }
.atn-regions__row { border-bottom: 1px solid var(--atn-hairline); }

.atn-regions__row button {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	text-align: left;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 18px 14px;
	transition: padding 0.25s ease;
}

.atn-regions__row:hover button { padding-left: 22px; }

.atn-regions__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(20px, 2.2vw, 26px);
	color: var(--atn-ink);
	text-transform: uppercase;
	line-height: 1;
	transition: color 0.25s ease;
}

.atn-regions__count {
	margin-left: auto;
	font-family: var(--wp--preset--font-family--util);
	font-size: 12.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--atn-muted);
	white-space: nowrap;
}

.atn-regions__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--atn-hairline-strong);
	flex: none;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.atn-regions__row[data-active="true"] .atn-regions__name { color: var(--atn-ember); }
.atn-regions__row[data-active="true"] .atn-regions__count { color: var(--atn-body); }
.atn-regions__row[data-active="true"] .atn-regions__dot { background: var(--atn-ember); box-shadow: 0 0 0 5px var(--atn-clay-wash); }

.atn-panel {
	background: var(--atn-surface);
	border: 1px solid var(--atn-hairline);
	border-radius: 20px;
	padding: clamp(24px, 3vw, 32px);
}

/* ── the phone ── */
.atn-phone {
	width: min(320px, 84vw);
	margin-inline: auto;
	border-radius: 42px;
	padding: 11px;
	background: var(--atn-ink);
	box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.55);
	position: relative;
}

.atn-phone__notch {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 88px;
	height: 22px;
	border-radius: 999px;
	background: var(--atn-ink);
	z-index: 2;
}

.atn-phone__screen {
	background: var(--atn-ground);
	border-radius: 32px;
	overflow: hidden;
	padding: 16px 15px 0;
	border: 1px solid var(--atn-hairline);
}

/* ── stories ── */
.atn-quote {
	background: var(--atn-surface);
	border: 1px solid var(--atn-hairline);
	border-radius: 20px;
	padding: 28px 26px;
}

.atn-hash { font-family: var(--wp--preset--font-family--script); font-size: 22px; color: var(--atn-ember); }

/* ── an ink panel: the churches offer ── */
.atn-panel--ink {
	background: var(--atn-ink);
	color: var(--atn-ground);
	border-radius: 24px;
	padding: clamp(28px, 4vw, 44px);
}

.atn-panel--ink :is(h1, h2, h3, h4) { color: var(--atn-ground); }
.atn-panel--ink p { color: color-mix(in srgb, var(--atn-ground) 72%, transparent); }
.atn-panel--ink li { color: color-mix(in srgb, var(--atn-ground) 82%, transparent); }
.atn-panel--ink .atn-check { color: var(--atn-gold); }

.atn-check svg { width: 18px; height: 18px; }

/* ── scroll reveal ── */
.atn-rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.atn-rise.is-in { opacity: 1; transform: none; }

@media (max-width: 781px) {
	.atn-sat .wp-block-column { border-right: 0; border-bottom: 1px solid var(--atn-hairline); }
	.atn-sat .wp-block-column:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
	.atn-rise { opacity: 1; transform: none; }
}

/* ── the connect card's insides ── */
.atn-connect { padding: clamp(22px, 3vw, 30px); }

.atn-connect__label {
	font-family: var(--wp--preset--font-family--util);
	font-weight: 600;
	font-size: 11.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--atn-muted);
	margin: 0 0 6px;
}

.atn-connect__title { margin: 0 0 6px; }
.atn-connect .atn-fine { margin: 8px 0 0; }
.atn-connect__fine { margin-top: 14px; }
.atn-connect__form { display: block; margin-top: 4px; }

.atn-field { display: grid; gap: 7px; margin-top: 16px; border: 0; padding: 0; min-width: 0; }

.atn-field :is(label, legend) {
	font-family: var(--wp--preset--font-family--util);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--atn-muted);
	padding: 0;
}

.atn-field :is(input, select) {
	width: 100%;
	background: var(--atn-ground);
	border: 1px solid var(--atn-hairline-strong);
	border-radius: 12px;
	padding: 13px 14px;
	/* 16px minimum: anything smaller makes iOS Safari zoom the page on focus. */
	font-size: 16px;
	font-family: inherit;
	color: var(--atn-ink);
	transition: border-color 0.2s ease;
}

.atn-field input::placeholder { color: var(--atn-muted); }
.atn-field :is(input, select):focus { border-color: var(--atn-ember); outline: none; }

/* Radios drawn as pills. The input stays in the DOM and keeps its own focus
 * ring and keyboard behaviour — this is a skin, not a replacement. */
.atn-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.atn-pill { display: inline-flex; cursor: pointer; }
.atn-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.atn-pill span {
	border: 1px solid var(--atn-hairline-strong);
	border-radius: 999px;
	padding: 9px 15px;
	font-family: var(--wp--preset--font-family--util);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--atn-body);
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.atn-pill:hover span { border-color: var(--atn-ember); color: var(--atn-ember); }
.atn-pill input:checked + span { background: var(--atn-ink); border-color: var(--atn-ink); color: var(--atn-ground); }
.atn-pill input:focus-visible + span { outline: 2px solid var(--atn-ember); outline-offset: 3px; }

.atn-connect__form button[type="submit"] {
	margin-top: 22px;
	width: 100%;
	cursor: pointer;
	border: 0;
	border-radius: 999px;
	background: var(--atn-ink);
	color: var(--atn-ground);
	font-family: var(--wp--preset--font-family--util);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	padding: 15px 24px;
	transition: transform 0.16s ease, opacity 0.2s ease;
}

.atn-connect__form button[type="submit"]:hover { transform: translateY(-2px); }

/* ── the app feature list ── */
.atn-app__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.atn-app__list li { font-size: 15.5px; }

.atn-app__list strong {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: 17px;
	text-transform: uppercase;
	color: var(--atn-ink);
	letter-spacing: 0.03em;
}

/* ── a ticked list ── */
.atn-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.atn-check-list li {
	position: relative;
	padding-left: 30px;
	font-size: 15.5px;
}

.atn-check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 15px;
	height: 8px;
	border-left: 2.4px solid var(--atn-gold);
	border-bottom: 2.4px solid var(--atn-gold);
	transform: rotate(-45deg);
}

/* ── the phone's insides ── */
.atn-phone__bar { display: flex; justify-content: space-between; font-size: 10px; color: var(--atn-muted); font-weight: 800; padding: 2px 6px 16px; }

.atn-phone__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 26px;
	color: var(--atn-ink);
	text-transform: uppercase;
	line-height: 0.9;
	margin-bottom: 2px;
}

.atn-phone__title .atn-script { font-size: 26px; }

.atn-phone__sub {
	font-family: var(--wp--preset--font-family--util);
	font-size: 9.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--atn-muted);
	margin-bottom: 14px;
}

.atn-phone__card { background: var(--atn-surface); border: 1px solid var(--atn-hairline); border-radius: 16px; padding: 15px; margin-bottom: 16px; }

.atn-phone__kicker {
	font-family: var(--wp--preset--font-family--util);
	font-size: 9px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--atn-gold-ink);
	margin-bottom: 6px;
}

.atn-phone__cardtitle { font-family: var(--wp--preset--font-family--display); font-size: 16px; color: var(--atn-ink); text-transform: uppercase; margin-bottom: 8px; }
.atn-phone__body { font-size: 11.5px; line-height: 1.55; color: var(--atn-body); margin: 0; }
.atn-phone__ref { font-family: var(--wp--preset--font-family--util); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--atn-gold-ink); margin-top: 10px; }

/* ── footer ── */
.atn-foot-head {
	font-family: var(--wp--preset--font-family--util);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--atn-ink);
}

.atn-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.atn-foot-list a { color: var(--atn-body); text-decoration: none; font-size: 15px; }
.atn-foot-list a:hover { color: var(--atn-ember); }
.atn-foot-bottom { font-size: 13.5px; color: var(--atn-muted); }

/* ── notices ── */
.atn-notice { border-radius: 12px; padding: 1rem 1.25rem; font-size: 15px; margin: 0 0 16px; }

/* A lede is a paragraph you are meant to read in one breath, so it takes a
 * measure rather than the column's full width. */
.atn-hero .has-large-font-size,
.atn-rise > .has-large-font-size { max-width: 52ch; }

/* The button's hover lift. Colour is theme.json's job; movement is not
 * expressible there. */
.wp-element-button,
.wp-block-button__link { transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.wp-element-button:hover,
.wp-block-button__link:hover { transform: translateY(-2px); }

/* Outline buttons: the comp's quiet secondary. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-width: 1px;
	border-color: var(--atn-hairline-strong);
	color: var(--atn-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: transparent;
	border-color: var(--atn-ember);
	color: var(--atn-ember);
}

/* The header nav's underline-on-hover. */
.atn-header .wp-block-navigation-item__content {
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	opacity: 0.82;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.atn-header .wp-block-navigation-item__content:hover { opacity: 1; border-bottom-color: var(--atn-ember); }


/* ── the header on a phone ──
 *
 * Desktop order is logo · nav · picker. On a phone the nav collapses to core's
 * hamburger, and the row re-orders so the picker sits beside it and the
 * hamburger lands flush against the right edge of the content box — thumb
 * territory, and where every other site puts it.
 */
@media (max-width: 781px) {
	.atn-header .wp-block-group > .atn-logo { order: 1; }
	.atn-header .wp-block-group > .atn-theme { order: 2; margin-left: auto; }
	.atn-header .wp-block-group > .wp-block-navigation { order: 3; }
	.atn-header .wp-block-navigation__responsive-container-open { margin: 0; padding: 0; }
}
