/*
 * GetAStart theme styles.
 * Colors, type and spacing live in theme.json. This file holds the few
 * things theme.json can't express: the logo mark, the growth path,
 * card behavior and block style variations.
 */

/* ---------- Logo mark beside the site title ---------- */
.wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.wp-block-site-title a::before {
	content: "";
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='2' y='18' width='7' height='10' rx='2' fill='%23C9DED3'/%3E%3Crect x='11.5' y='11' width='7' height='17' rx='2' fill='%238DBBA5'/%3E%3Crect x='21' y='3' width='7' height='25' rx='2' fill='%231F6B52'/%3E%3C/svg%3E") no-repeat center / contain;
}
.gas-wordmark-accent {
	color: var(--wp--preset--color--accent);
}

/* ---------- Header ---------- */
.gas-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.gas-header .wp-block-navigation__container {
	gap: 1.75rem;
}

/* ---------- Eyebrow text ---------- */
.gas-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* ---------- Growth path ---------- */
.gas-path__bars {
	align-items: flex-end !important;
	min-height: 290px;
}
.gas-step {
	flex: 1 1 0;
	min-width: 0;
	justify-content: flex-end;
}
.gas-step > * {
	margin: 0 !important;
}
.gas-step__pill {
	align-self: center;
	position: relative;
	z-index: 2;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.4rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
}
.gas-step__label {
	width: 100%;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--ink-soft);
}
.gas-step__label::before {
	content: "";
	display: block;
	width: 100%;
	height: var(--gas-h, 60px);
	margin-bottom: 0.75rem;
	border-radius: 8px 8px 4px 4px;
	background: var(--wp--preset--color--tint-strong);
	box-sizing: border-box;
}
.gas-step--1 { --gas-h: 46px; }
.gas-step--2 { --gas-h: 86px; }
.gas-step--3 { --gas-h: 128px; }
.gas-step--4 { --gas-h: 168px; }
.gas-step--5 { --gas-h: 210px; }

.gas-step.is-done .gas-step__label::before {
	background: var(--wp--preset--color--tint);
}
.gas-step.is-current .gas-step__label {
	color: var(--wp--preset--color--ink);
	font-weight: 800;
}
.gas-step.is-current .gas-step__label::before {
	background: var(--wp--preset--color--accent);
}
.gas-step.is-future .gas-step__label::before {
	background: #F2F7F4;
	border: 2px dashed var(--wp--preset--color--tint-strong);
}

@media (max-width: 600px) {
	.gas-path__bars { min-height: 220px; gap: 6px !important; }
	.gas-step--1 { --gas-h: 30px; }
	.gas-step--2 { --gas-h: 58px; }
	.gas-step--3 { --gas-h: 88px; }
	.gas-step--4 { --gas-h: 116px; }
	.gas-step--5 { --gas-h: 146px; }
	.gas-step__label { font-size: 0.6875rem; }
	.gas-step__pill { font-size: 0.625rem; padding: 0.3rem 0.45rem; }
}

.gas-next-step {
	border-radius: 12px;
}

/* ---------- Cards ---------- */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* Whole milestone card is clickable through its heading link */
.gas-milestone {
	position: relative;
	background: #FBFCFB;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.gas-milestone:hover,
.gas-milestone:focus-within {
	border-color: var(--wp--preset--color--accent-mid);
	box-shadow: var(--wp--preset--shadow--soft);
	transform: translateY(-2px);
}
.gas-milestone h3 a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.gas-milestone h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.gas-milestone__more {
	margin-top: auto !important;
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}
.gas-milestone__num {
	font-weight: 700;
	color: var(--wp--preset--color--accent);
}

/* ---------- Numbered step badges ---------- */
.gas-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--accent);
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1;
}

/* ---------- Dark band ---------- */
.gas-dark a {
	color: var(--wp--preset--color--surface);
}

/* ---------- Disclosure box ---------- */
.gas-disclosure p {
	margin: 0;
}

/* ---------- Button styles ---------- */
.wp-block-button.is-style-outline-ink .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--ink);
}
.wp-block-button.is-style-outline-ink .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
}
.wp-block-button.is-style-text-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	padding-left: 0.25rem;
	padding-right: 0.25rem;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--accent);
}

/* ---------- Checkmark list ---------- */
.is-style-checks {
	list-style: none;
	padding-left: 0;
}
.is-style-checks li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
}
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F6B52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
}

/* ---------- Article content ---------- */
.gas-article .wp-block-table table {
	border-collapse: collapse;
}
.gas-article .wp-block-table th {
	background: var(--wp--preset--color--tint);
	text-align: left;
}
.gas-article .wp-block-table td,
.gas-article .wp-block-table th {
	border: 1px solid var(--wp--preset--color--border);
	padding: 0.75rem 0.9rem;
}

/* ---------- Focus states ---------- */
a:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-mid);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.gas-milestone { transition: none; }
	.gas-milestone:hover, .gas-milestone:focus-within { transform: none; }
}

/* ---------- Flex helpers ---------- */
.gas-grow {
	flex: 1 1 26rem;
	min-width: 0;
}

/* Growth path labels are links but should read as labels */
.gas-step__label a {
	color: inherit;
	text-decoration: none;
}
.gas-step__label a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

.gas-eyebrow a {
	color: inherit;
	text-decoration: none;
}
