/*
 * TEFL and Beyond — block style variations.
 *
 * Loaded on the front end AND inside the block editor, so a style picked in
 * the sidebar looks the same in both places.
 *
 * IMPORTANT: this file may only use --wp--preset--* custom properties (which
 * theme.json emits in both contexts). Never the theme's own --c-* / --r-*
 * tokens, because those are not guaranteed to resolve inside the editor canvas.
 */

/* ---------------------------------------------------------------------------
 * Group — "Panel card"
 * The dark card used all over the site: panel gradient, hairline, deep lift.
 * ------------------------------------------------------------------------ */
.wp-block-group.is-style-tefl-panel {
	background: var(--wp--preset--gradient--panel-fade);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 28px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	color: var(--wp--preset--color--soft);
}

.wp-block-group.is-style-tefl-panel > :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------------------
 * Group — "Spotlight panel"
 * Same card, lit from the top-right in signal green. For the one block on the
 * page you actually want people to click.
 * ------------------------------------------------------------------------ */
.wp-block-group.is-style-tefl-spotlight {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--gradient--panel-fade);
	border: 1px solid var(--wp--preset--color--green-deep);
	border-radius: 28px;
	box-shadow: var(--wp--preset--shadow--glow-green);
	padding: clamp(1.75rem, 1rem + 3vw, 3rem);
	color: var(--wp--preset--color--soft);
}

.wp-block-group.is-style-tefl-spotlight::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 85% -10%, rgba(0, 230, 118, 0.18), transparent 58%);
	pointer-events: none;
}

.wp-block-group.is-style-tefl-spotlight > * {
	position: relative;
}

.wp-block-group.is-style-tefl-spotlight > :where(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------------------
 * Group — "Rule band"
 * A hairline above and below with generous breathing room. Good for a row of
 * short trust statements.
 * ------------------------------------------------------------------------ */
.wp-block-group.is-style-tefl-rule-band {
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-top: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	padding-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

/* ---------------------------------------------------------------------------
 * Button — "Ghost outline"
 * The quiet second button that sits next to the green one.
 * ------------------------------------------------------------------------ */
.wp-block-button.is-style-tefl-ghost > .wp-block-button__link {
	background: rgba(255, 255, 255, 0.02);
	background-image: none;
	color: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--line-2);
	border-radius: 999px;
	transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}

.wp-block-button.is-style-tefl-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-tefl-ghost > .wp-block-button__link:focus {
	background: rgba(0, 230, 118, 0.08);
	background-image: none;
	border-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------------------
 * Paragraph — "Eyebrow label"
 * The little green monospace kicker above a heading.
 * ------------------------------------------------------------------------ */
.wp-block-paragraph.is-style-tefl-eyebrow,
p.is-style-tefl-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green);
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.75rem;
}

p.is-style-tefl-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 1px;
	background: var(--wp--preset--color--green);
	box-shadow: 0 0 8px var(--wp--preset--color--green);
}

p.is-style-tefl-eyebrow.has-text-align-center {
	justify-content: center;
}

p.is-style-tefl-eyebrow.has-text-align-center::before {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Paragraph — "Lead paragraph"
 * The bigger intro sentence under a section heading.
 * ------------------------------------------------------------------------ */
.wp-block-paragraph.is-style-tefl-lead,
p.is-style-tefl-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
	max-width: 46ch;
}

p.is-style-tefl-lead.has-text-align-center {
	margin-left: auto;
	margin-right: auto;
}

/* ---------------------------------------------------------------------------
 * List — "Ticked list"
 * Green ticks instead of bullets. For "what's included" style lists.
 * ------------------------------------------------------------------------ */
ul.is-style-tefl-check {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

ul.is-style-tefl-check > li {
	position: relative;
	padding-left: 1.9rem;
	margin-bottom: 0.65rem;
	color: var(--wp--preset--color--soft);
}

ul.is-style-tefl-check > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--wp--preset--color--green);
	border-bottom: 2px solid var(--wp--preset--color--green);
	transform: rotate(-45deg);
}

/* ---------------------------------------------------------------------------
 * Image — "Framed image"
 * Rounded, hairlined and lifted off the dark background.
 * ------------------------------------------------------------------------ */
.wp-block-image.is-style-tefl-framed img {
	border-radius: 20px;
	border: 1px solid var(--wp--preset--color--line-2);
	box-shadow: var(--wp--preset--shadow--card);
	display: block;
}

.wp-block-image.is-style-tefl-framed figcaption {
	color: var(--wp--preset--color--soft);
}

/* ---------------------------------------------------------------------------
 * Separator — "Brand rule"
 * A green hairline that fades out at both ends.
 * ------------------------------------------------------------------------ */
.wp-block-separator.is-style-tefl-brand-rule {
	height: 1px;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--green), transparent);
	opacity: 0.85;
	max-width: 100%;
}
