/*
 * AimClips "Brand Reticle" layout. Colors, fonts, sizes and button basics live in theme.json;
 * this file covers what theme.json can't: the section layouts from the design handoff, their
 * responsive steps, forms, and the header/footer. Loaded on the site and in the editor.
 *
 * Breakpoints (from the handoff README): ≤1279px narrower gutters, ≤1023px grids stack,
 * ≤639px single column and smaller headings.
 */

:root {
	--ac-radius-sm: 8px;
	--ac-radius-field: 10px;
	--ac-radius-btn: 12px;
	--ac-radius-card: 20px;
	--ac-radius-lg: 24px;
	--ac-gap: 16px;
	/* The plugin's app page sizes its iframe to the space under the sticky header. */
	--acm-header-height: 81px;
}

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

body {
	/* Declared on body (not :root) so it follows the responsive gutter overrides below. */
	--ac-gutter: var(--wp--style--root--padding-left, 48px);
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks > * {
	margin-block: 0;
}

.aim,
.ac-accent {
	color: var(--wp--preset--color--accent);
}

.ac-muted {
	color: var(--wp--preset--color--muted);
}

.ac-mono {
	font-family: var(--wp--preset--font-family--mono);
}

.ac-eyebrow {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

.ac-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
}

.ac-measure-640 { max-width: 640px; }
.ac-measure-700 { max-width: 700px; }

/* Containers laid out with flex/grid below manage their own spacing, so drop the flow margins
   WordPress adds between blocks. (.wp-block-group raises specificity above core's rule.) */
:is(.ac-grid, .ac-hero, .ac-hero__copy, .ac-hero__art, .ac-stack, .ac-card, .ac-step__body, .ac-split, .ac-shots, .ac-shots__side, .ac-cta, .ac-stat, .ac-member, .ac-contact-card, .ac-faq, .ac-phone, .ac-pricing).wp-block-group > * {
	margin-block: 0;
}

/* Landing pages: sections stack edge to edge; each section sets its own padding. */
.ac-landing > .wp-block-post-content > * {
	margin-block: 0;
}

.ac-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.ac-stack--lg { gap: 40px; }
.ac-stack > .alignwide,
.ac-stack > .wp-block-image,
.ac-stack > .ac-grid,
.ac-stack > .ac-shots { align-self: stretch; }

.ac-section {
	padding-block: 80px 72px;
}

.ac-section--rule {
	border-top: 1px solid var(--wp--preset--color--line);
	padding-block: 88px;
}

.ac-section--flush-top {
	padding-top: 0;
}

.ac-grid {
	display: grid;
	gap: var(--ac-gap);
}

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

.ac-split {
	display: grid;
	gap: 56px;
	align-items: start;
}

.ac-split--about { grid-template-columns: 1.2fr 1fr; align-items: end; }
.ac-split--faq { grid-template-columns: 1fr 1.6fr; }
.ac-split--contact { grid-template-columns: 1fr 1.2fr; }
.ac-split--auth { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }

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

.wp-block-buttons {
	gap: 12px;
}

.ac-btn-secondary .wp-block-button__link {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--line);
	font-weight: 600;
}

.ac-btn-secondary .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--muted);
}

.ac-btn-inverse .wp-block-button__link {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--text);
	font-size: 17px;
	padding: 18px 28px;
}

.ac-btn-inverse .wp-block-button__link:hover {
	background: #1b2029;
	color: var(--wp--preset--color--text);
}

.ac-btn-sm .wp-block-button__link {
	font-size: 15px;
	padding: 11px 18px;
	border-radius: var(--ac-radius-field);
}

.ac-btn-block .wp-block-button__link {
	width: 100%;
	padding: 14px;
	border-radius: var(--ac-radius-field);
	font-size: 15px;
}

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

.wp-site-blocks > :has(> .ac-header) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > :has(> .ac-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.ac-header {
	gap: 24px;
	padding: 20px var(--ac-gutter);
	background: var(--wp--preset--color--ink);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ac-brand {
	margin: 0;
	flex-shrink: 0;
}

.ac-brand a,
.ac-footer__brand a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--wp--preset--color--text);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
}

.ac-brand img {
	width: 32px;
	height: 32px;
	display: block;
}

.ac-brand .aim,
.ac-footer__brand .aim {
	margin-right: -12px; /* "Aim" and "Clips" read as one word; the gap is for the mark only */
}

.ac-nav .wp-block-navigation__container {
	gap: 4px;
}

.ac-nav .wp-block-navigation-item__content {
	padding: 8px 14px;
	border-radius: var(--ac-radius-sm);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.ac-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ac-nav .current-menu-item > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

/* Mobile menu overlay */
.ac-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px var(--ac-gutter);
}

.ac-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: 20px;
	padding: 10px 14px;
}

.ac-actions {
	gap: 20px;
	flex-shrink: 0;
}

.ac-actions__link {
	margin: 0;
}

.ac-actions__link a {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.ac-actions__link a:hover {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ac-actions .wp-block-button__link {
	white-space: nowrap;
}

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

.ac-footer {
	gap: 16px 32px;
	align-items: center;
	padding: 40px var(--ac-gutter);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ac-footer > * {
	margin: 0;
}

.ac-footer__brand a {
	font-size: 18px;
}

.ac-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.ac-footer__links a {
	color: var(--wp--preset--color--muted);
}

.ac-footer__links a:hover {
	color: var(--wp--preset--color--text);
}

/* ---- Hero ---------------------------------------------------------------- */

.ac-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding-block: 96px 72px;
}

.ac-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.ac-hero__title {
	line-height: 0.98;
}

.ac-hero__lead {
	max-width: 500px;
}

.ac-pill {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--accent-tint-line);
	background: var(--wp--preset--color--accent-tint);
	color: var(--wp--preset--color--accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

mark.has-inline-color {
	background: transparent;
}

.ac-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ac-checks li::before {
	content: "✓ ";
}

/* In the editor each list item wraps its text in a block-level box; keep the ✓ beside it. */
.editor-styles-wrapper .ac-checks li {
	display: flex;
	gap: 0.25em;
}

.ac-checks--stacked {
	flex-direction: column;
	gap: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 15px;
	color: var(--wp--preset--color--text);
}

.ac-hero__art {
	position: relative;
	height: 520px;
}

.ac-hero__art figure {
	margin: 0;
}

.ac-hero__screen {
	position: absolute;
	inset: 0 80px 60px 0;
}

.ac-hero__art .ac-hero__screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ac-live-chip {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: var(--ac-radius-sm);
	background: var(--wp--preset--color--ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.ac-live-chip::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
}

.ac-phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 210px;
	aspect-ratio: 9 / 16;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 6px solid var(--wp--preset--color--ink);
	border-radius: 22px;
	outline: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--surface);
}

.ac-phone__cam {
	height: 32%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ac-phone__game {
	flex: 1;
	min-height: 0;
}

.ac-phone figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ac-kill-chip {
	position: absolute;
	left: 50%;
	bottom: 44px;
	transform: translateX(-50%);
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.ac-phone__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--wp--preset--color--text);
}

/* ---- Placeholder / image frames ----------------------------------------- */

.ac-ph {
	margin: 0;
}

.ac-ph img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card);
	object-fit: cover;
	background: var(--wp--preset--color--surface);
}

.ac-ph--wide img { aspect-ratio: 21 / 8; border-radius: var(--ac-radius-lg); }
.ac-member__photo img { aspect-ratio: 1; border-radius: 16px; }
.ac-auth-art img { aspect-ratio: 4 / 3; border-radius: var(--ac-radius-lg); }
.ac-rounded img { border-radius: var(--ac-radius-card); }

/* ---- Cards --------------------------------------------------------------- */

.ac-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card);
}

.ac-card h3 {
	margin: 0;
}

.ac-stat {
	padding: 24px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
}

.ac-stat__value {
	font-size: var(--wp--preset--font-size--stat);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.ac-stat__label {
	margin-top: 4px !important;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ac-stats {
	padding-bottom: 72px;
}

.ac-step {
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.ac-step__shot img {
	aspect-ratio: 4 / 3;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
}

.ac-step__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.ac-step__num {
	font-size: 12px;
	color: var(--wp--preset--color--accent);
}

.ac-icon-tile {
	margin: 0;
}

.ac-icon-tile img {
	display: block;
	width: 40px;
	height: 40px;
	border: 1px solid var(--wp--preset--color--accent-tint-line);
	border-radius: var(--ac-radius-field);
	background: var(--wp--preset--color--accent-tint);
}

/* ---- CTA banner ---------------------------------------------------------- */

.ac-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 88px !important;
	padding: 56px;
	border-radius: var(--ac-radius-lg);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.ac-cta .ac-cta__title {
	max-width: 640px;
	color: var(--wp--preset--color--ink);
	letter-spacing: -0.03em;
}

.ac-cta .wp-block-buttons {
	flex-shrink: 0;
}

/* ---- Features: screenshots ---------------------------------------------- */

.ac-title-sm {
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ac-shots {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--ac-gap);
}

.ac-shots__main img {
	aspect-ratio: 16 / 10;
	height: 100%;
}

.ac-shots__side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: var(--ac-gap);
}

.ac-shots__side img {
	height: 100%;
}

/* ---- Pricing ------------------------------------------------------------- */

.ac-pricing {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.ac-pricing__head {
	align-items: center;
	text-align: center;
}

.ac-subline {
	font-size: 18px;
}

.ac-billing {
	width: fit-content;
	margin: 8px auto 0 !important;
	gap: 0;
	padding: 4px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-btn);
	background: var(--wp--preset--color--surface);
}

.ac-billing .wp-block-button__link {
	padding: 9px 18px;
	border-radius: 9px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	font-weight: 600;
}

.ac-billing .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--text);
}

.ac-pricing:not(.is-annual) .ac-billing__monthly .wp-block-button__link,
.ac-pricing.is-annual .ac-billing__annual .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.ac-pricing:not(.is-annual) .ac-price--annual,
.ac-pricing.is-annual .ac-price--monthly {
	display: none;
}

/* In the editor both prices stay visible so each can be edited. */
.editor-styles-wrapper .ac-pricing .ac-price {
	display: block;
}

.editor-styles-wrapper .ac-price--annual::after {
	content: "  (annual price)";
	font-size: 12px;
}

.ac-plan {
	gap: 22px;
	padding: 32px;
}

.ac-plan--featured {
	background: var(--wp--preset--color--accent-card);
	border-color: var(--wp--preset--color--accent);
}

.ac-plan__head {
	align-items: center;
}

.ac-plan__head > * {
	margin: 0;
}

.ac-plan__tag {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--accent);
}

.ac-price {
	margin: 0;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.ac-price strong {
	margin-right: 4px;
	font-size: var(--wp--preset--font-size--price);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--wp--preset--color--text);
}

.ac-plan .wp-block-buttons {
	width: 100%;
}

.ac-compare {
	margin: 0;
	overflow-x: auto;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card);
	background: var(--wp--preset--color--surface);
}

.ac-compare table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
}

.ac-compare :is(th, td) {
	padding: 16px 28px;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	text-align: left;
	font-size: 15px;
	font-weight: 500;
}

.ac-compare thead :is(th, td) {
	border-top: 0;
	border-bottom: 0;
	font-weight: 600;
}

.ac-compare thead th:first-child,
.ac-compare tbody td:first-child {
	width: 40%;
}

.ac-compare tbody td:first-child {
	color: var(--wp--preset--color--muted);
}

/* ---- About --------------------------------------------------------------- */

.ac-member {
	display: flex;
	flex-direction: column;
}

.ac-member__name {
	margin-top: 14px !important;
	font-size: 17px;
	font-weight: 700;
}

.ac-member__role {
	margin-top: 4px !important;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

/* ---- FAQ (Details blocks) ------------------------------------------------ */

.ac-faq__item {
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ac-faq__item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ac-faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	list-style: none;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	line-height: 1.35;
}

.ac-faq__item summary::-webkit-details-marker {
	display: none;
}

.ac-faq__item summary::after {
	content: "+";
	color: var(--wp--preset--color--accent);
	font-weight: 500;
}

.ac-faq__item[open] summary::after {
	content: "−";
}

.ac-faq__item > :not(summary) {
	max-width: 640px;
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
}

/* ---- Contact ------------------------------------------------------------- */

.ac-contact-card {
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
}

.ac-contact-card__label {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.ac-contact-card__value {
	margin-top: 4px !important;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* ---- Forms (contact form, auth card; markup from the membership plugin) -- */

.ac-form-card,
.ac-auth {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card);
	background: var(--wp--preset--color--surface);
}

.ac-auth {
	padding: 36px;
}

.ac-form-card form,
.ac-auth form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.ac-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.ac-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.ac-field :is(input, select, textarea) {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-field);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.ac-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #9aa3ad 50%), linear-gradient(135deg, #9aa3ad 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 40px;
}

.ac-field textarea {
	height: 160px;
	padding: 14px 16px;
	resize: vertical;
}

.ac-field ::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.ac-field :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
}

.ac-field.has-error :is(input, select, textarea) {
	border-color: var(--wp--preset--color--accent);
}

.ac-help {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--accent);
}

.ac-visually-hidden,
.ac-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ac-submit {
	width: 100%;
	padding: 14px !important;
	border: 0;
	border-radius: var(--ac-radius-field) !important;
	font-size: 15px !important;
	cursor: pointer;
}

.ac-submit.is-busy {
	pointer-events: none;
}

.ac-notice {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-field);
	font-size: 14px;
}

.ac-notice--error {
	border-color: var(--wp--preset--color--accent-tint-line);
	background: var(--wp--preset--color--accent-tint);
}

.ac-notice--ok {
	background: var(--wp--preset--color--ink);
}

/* Auth card */
.ac-seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 4px;
	border-radius: var(--ac-radius-field);
	background: var(--wp--preset--color--ink);
}

.ac-seg a {
	padding: 9px;
	border-radius: var(--ac-radius-sm);
	color: var(--wp--preset--color--text);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.ac-seg a:hover {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.ac-seg a.is-active {
	background: var(--wp--preset--color--line);
}

.ac-auth__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--auth);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.ac-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	border: 1px solid transparent;
	border-radius: var(--ac-radius-field);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	box-sizing: border-box;
}

.ac-social--twitch { background: #9146ff; color: #fff; }
.ac-social--youtube { background: var(--wp--preset--color--text); color: var(--wp--preset--color--ink); }
.ac-social--discord { background: transparent; color: var(--wp--preset--color--text); border-color: var(--wp--preset--color--line); }

.ac-social[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.ac-soon {
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(14, 17, 22, 0.35);
	font-size: 11px;
	font-weight: 700;
}

.ac-social--discord .ac-soon {
	background: var(--wp--preset--color--line);
}

.ac-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

.ac-divider::before,
.ac-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--wp--preset--color--line);
}

.ac-fine {
	margin: 0;
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

.ac-fine a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
}

/* ---- Spinner ------------------------------------------------------------- */

.ac-spinner {
	display: inline-block;
}

.ac-spinner--inline {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	vertical-align: -5px;
}

figure.ac-spinner {
	margin-block: 24px;
}

/* ---- Default pages, posts and lists -------------------------------------- */

.ac-main.ac-section > .wp-block-post-title {
	margin-bottom: 32px;
}

.ac-post-meta {
	gap: 16px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.ac-card-grid > li {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-card);
	background: var(--wp--preset--color--surface);
}

.ac-card-grid > li:hover {
	border-color: var(--wp--preset--color--muted);
}

.ac-card-grid .wp-block-post-featured-image {
	margin: 0;
}

.ac-card-grid__body {
	padding: 20px 24px 24px;
}

.ac-card-grid__body > * + * {
	margin-top: 8px;
}

.ac-pagination {
	margin-top: 40px;
}

.wp-block-search__input {
	min-height: 50px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ac-radius-field);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.wp-block-search__button {
	border-radius: var(--ac-radius-field);
	padding: 0 20px;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1279px) {
	html body {
		--wp--style--root--padding-left: 32px;
		--wp--style--root--padding-right: 32px;
		--wp--preset--font-size--hero: 64px;
	}

	.ac-nav .wp-block-navigation-item__content {
		padding: 8px 10px;
	}
}

@media (max-width: 1023px) {
	.ac-hero,
	.ac-split,
	.ac-split--about,
	.ac-split--faq,
	.ac-split--contact,
	.ac-split--auth,
	.ac-shots {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-hero {
		padding-block: 64px 56px;
	}

	.ac-hero__art {
		height: 440px;
	}

	.ac-split {
		gap: 40px;
	}

	.ac-split--auth .ac-auth-art {
		display: none;
	}

	.ac-split--auth .ac-auth,
	.ac-split--auth > * {
		max-width: 480px;
		width: 100%;
		margin-inline: auto !important;
	}

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

	.ac-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 40px;
	}

	.ac-actions__link {
		display: none;
	}

	.ac-header {
		gap: 12px;
	}
}

@media (max-width: 639px) {
	html body {
		--wp--style--root--padding-left: 20px;
		--wp--style--root--padding-right: 20px;
		--wp--preset--font-size--hero: 44px;
		--wp--preset--font-size--display-xl: 44px;
		--wp--preset--font-size--display-l: 34px;
		--wp--preset--font-size--display-m: 34px;
		--wp--preset--font-size--display-s: 28px;
		--wp--preset--font-size--price: 44px;
	}

	.ac-section {
		padding-block: 56px 48px;
	}

	.ac-section--rule {
		padding-block: 56px;
	}

	.ac-section--flush-top {
		padding-top: 0;
	}

	.ac-grid-2,
	.ac-grid-3,
	.ac-grid-4,
	.ac-field-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.ac-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ac-hero__art {
		height: 340px;
	}

	.ac-hero__screen {
		inset: 0 48px 48px 0;
	}

	.ac-phone {
		width: 140px;
		border-width: 4px;
		border-radius: 16px;
	}

	.ac-kill-chip {
		font-size: 13px;
		bottom: 34px;
	}

	.ac-cta {
		padding: 32px 24px;
		margin-bottom: 56px !important;
	}

	.ac-auth,
	.ac-form-card {
		padding: 24px;
	}

	.ac-brand a {
		font-size: 20px;
	}

	.ac-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* "My account" menu item (members only): from 1024px the header shows it as a text link. */
@media (min-width: 1024px) {
	.ac-nav .ac-menu-account {
		display: none;
	}
}

/* Below 1024px the nav collapses into the Navigation block's menu button, after the header
   button. Core only collapses below 600px, so 600–1023px is switched over here. */
@media (max-width: 1023px) {
	.ac-header .ac-nav {
		order: 3;
	}

	.ac-header .ac-actions {
		margin-left: auto;
	}

	.ac-header .ac-btn-sm .wp-block-button__link {
		padding: 10px 14px;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.ac-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ac-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}
