/* ============================================================================
   EUX Blocks — eux/tyro-hero (parent shell)
   ----------------------------------------------------------------------------
   Styled wrapper around InnerBlocks. Mirrors service-hero/style.css structure.

   Cream is the default theme (Tyro page uses a warm cream background).
   Light and Dark variants follow the same token pattern as service-hero.

   Typography rules target classes applied by the InnerBlocks template:
     .eux-tyro-hero__title   — core/heading h1
     .eux-tyro-hero__sub     — core/paragraph lede copy
     .eux-tyro-hero__ctas    — core/buttons wrapper
     .eux-tyro-hero__proof   — core/list proof points

   The visual column (.eux-tyro-hero__visual-col) and its contents
   (photo + terminal + floating tag) live in eux/tyro-hero-visual's CSS.
   ============================================================================ */

.eux-block--tyro-hero { display: block; }

/* ---- Shell ---------------------------------------------------------------- */
.eux-block--tyro-hero {
	padding: 120px 0 96px;
	position: relative;
	overflow: hidden;
}

/* Bottom rule */
.eux-block--tyro-hero::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--eux-ink-100);
	pointer-events: none;
}

/* ---- Theme backgrounds + text colour ------------------------------------- */
.eux-block--tyro-hero.eux-tyro-hero--cream {
	background: var(--eux-cream-100);
	color: var(--eux-ink-900);
}
.eux-block--tyro-hero.eux-tyro-hero--light {
	background: var(--eux-white);
	color: var(--eux-ink-900);
}
.eux-block--tyro-hero.eux-tyro-hero--dark {
	background: #0a0a0a;
	color: var(--eux-cream);
}

/* Gradient overlay — dark only */
.eux-block--tyro-hero.eux-tyro-hero--dark::before {
	content: '';
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 60% 60% at 80% 20%, rgba(114, 14, 236, 0.22), transparent 60%),
		radial-gradient(ellipse 80% 50% at 0% 90%, rgba(114, 14, 236, 0.10), transparent 60%);
	z-index: 0;
}
.eux-block--tyro-hero.eux-tyro-hero--dark.eux-block--accent-wp::before {
	background:
		radial-gradient(ellipse 60% 60% at 80% 20%, rgba(33, 117, 155, 0.22), transparent 60%),
		radial-gradient(ellipse 80% 50% at 0% 90%, rgba(33, 117, 155, 0.10), transparent 60%);
}

.eux-block--tyro-hero .eux-tyro-hero__inner {
	position: relative;
	z-index: 1;
}

/* ---- Eyebrow — dark overrides (cream/light inherit shared.css default) ---- */
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-eyebrow {
	color: var(--eux-woo-200);
}
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-eyebrow::before {
	background: var(--eux-woo-200);
}

/* ---- Columns layout ------------------------------------------------------- */
.eux-block--tyro-hero .wp-block-columns.eux-tyro-hero__cols {
	gap: 48px;
	margin: 0;
	align-items: center;
}
@media (min-width: 980px) {
	.eux-block--tyro-hero .wp-block-columns.eux-tyro-hero__cols {
		gap: 80px;
	}
}
@media (max-width: 720px) {
	.eux-block--tyro-hero .wp-block-column {
		flex-basis: 100% !important;
	}
}

/*
 * Right column — needs overflow visible so the floating terminal and tag
 * (positioned absolute inside eux/tyro-hero-visual) can extend beyond the
 * column boundary into the gap. The parent hero clips at section level.
 */
.eux-block--tyro-hero .eux-tyro-hero__visual-col {
	overflow: visible;
}

/* ---- Heading -------------------------------------------------------------- */
.eux-block--tyro-hero h1,
.eux-block--tyro-hero .eux-tyro-hero__title {
	font-family: var(--eux-font-display);
	font-weight: 400;
	font-size: clamp(44px, 5.2vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.028em;
	margin: 0 0 24px;
	color: inherit;
	text-wrap: balance;
	max-width: 16ch;
}

/* em italic accent in heading */
.eux-block--tyro-hero .eux-tyro-hero__title em,
.eux-block--tyro-hero h1 em {
	font-style: italic;
	font-weight: 300;
	color: var(--eux-woo-purple);
}
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__title em,
.eux-block--tyro-hero.eux-tyro-hero--dark h1 em {
	color: var(--eux-woo-300);
}

/* ---- Lede / sub copy ------------------------------------------------------ */
.eux-block--tyro-hero p:not(.eux-eyebrow),
.eux-block--tyro-hero .wp-block-paragraph:not(.eux-eyebrow),
.eux-block--tyro-hero .eux-tyro-hero__sub {
	font-family: var(--eux-font-body);
	font-size: 16px;
	line-height: 1.6;
	max-width: 54ch;
	margin: 0 0 18px;
}
@media (min-width: 1080px) {
	.eux-block--tyro-hero .eux-tyro-hero__sub {
		font-size: 17px !important;
	}
}

/* Per-theme text colour */
.eux-block--tyro-hero.eux-tyro-hero--cream p:not(.eux-eyebrow),
.eux-block--tyro-hero.eux-tyro-hero--cream .eux-tyro-hero__sub,
.eux-block--tyro-hero.eux-tyro-hero--light p:not(.eux-eyebrow),
.eux-block--tyro-hero.eux-tyro-hero--light .eux-tyro-hero__sub {
	color: var(--eux-ink-700);
}
.eux-block--tyro-hero.eux-tyro-hero--dark p:not(.eux-eyebrow),
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__sub {
	color: rgba(244, 240, 236, 0.72);
}

/* ---- CTA buttons ---------------------------------------------------------- */
.eux-block--tyro-hero .wp-block-buttons.eux-tyro-hero__ctas {
	gap: 12px;
	margin-top: 28px;
	margin-bottom: 32px;
}
.eux-block--tyro-hero .wp-block-buttons.eux-tyro-hero__ctas .wp-block-button {
	margin: 0;
}

/* Ghost CTA — ink outline on cream/light, cream outline on dark */
.eux-block--tyro-hero .wp-block-buttons.eux-tyro-hero__ctas .wp-block-button.is-style-eux-tyro-ghost .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--eux-ink-200);
	color: var(--eux-ink-900);
	border-radius: var(--eux-r-pill);
	padding: 14px 22px;
	font-family: var(--eux-font-display);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color var(--eux-dur-fast) var(--eux-ease-out);
}
.eux-block--tyro-hero .wp-block-buttons.eux-tyro-hero__ctas .wp-block-button.is-style-eux-tyro-ghost .wp-block-button__link:hover {
	border-color: var(--eux-ink-900);
	border-bottom: 1px solid var(--eux-ink-900);
	color: var(--eux-ink-900);
}
.eux-block--tyro-hero.eux-tyro-hero--dark .wp-block-buttons.eux-tyro-hero__ctas .wp-block-button.is-style-eux-tyro-ghost .wp-block-button__link {
	border-color: rgba(244, 240, 236, 0.25);
	color: var(--eux-cream);
}
.eux-block--tyro-hero.eux-tyro-hero--dark .wp-block-buttons.eux-tyro-hero__ctas .wp-block-button.is-style-eux-tyro-ghost .wp-block-button__link:hover {
	border-color: rgba(244, 240, 236, 0.7);
	border-bottom: 1px solid rgba(244, 240, 236, 0.7);
	color: var(--eux-cream);
}

/* ---- Proof list ----------------------------------------------------------- */
.eux-block--tyro-hero .wp-block-list.eux-tyro-hero__proof,
.eux-block--tyro-hero ul.eux-tyro-hero__proof {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 28px;
	border-top: 1px solid var(--eux-ink-100);
	max-width: 56ch;
}

.eux-block--tyro-hero.eux-tyro-hero--dark .wp-block-list.eux-tyro-hero__proof,
.eux-block--tyro-hero.eux-tyro-hero--dark ul.eux-tyro-hero__proof {
	border-top-color: rgba(244, 240, 236, 0.12);
}

.eux-block--tyro-hero .eux-tyro-hero__proof li,
.eux-block--tyro-hero .eux-tyro-hero__proof .wp-block-list-item {
	position: relative;
	padding-left: 24px;
	list-style: none;
	font-family: var(--eux-font-body);
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--eux-ink-700);
	padding-bottom: 0;
	margin: 0;
}

.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__proof li,
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__proof .wp-block-list-item {
	color: rgba(244, 240, 236, 0.65);
}

/* Checkmark circle — replaces default ::marker */
.eux-block--tyro-hero .eux-tyro-hero__proof li::marker,
.eux-block--tyro-hero .eux-tyro-hero__proof .wp-block-list-item::marker {
	content: '';
}

.eux-block--tyro-hero .eux-tyro-hero__proof li::before,
.eux-block--tyro-hero .eux-tyro-hero__proof .wp-block-list-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 14px;
	height: 14px;
	border-radius: var(--eux-r-pill);
	background-color: var(--eux-woo-50);
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' stroke='%23720EEC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3%2C6 5%2C8 9%2C4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 8px 8px;
}

.eux-block--tyro-hero .eux-tyro-hero__proof li strong,
.eux-block--tyro-hero .eux-tyro-hero__proof .wp-block-list-item strong {
	font-weight: 600;
	color: var(--eux-ink-900);
}

.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__proof li strong,
.eux-block--tyro-hero.eux-tyro-hero--dark .eux-tyro-hero__proof .wp-block-list-item strong {
	color: var(--eux-cream);
}

/* ---- Editor canvas overrides --------------------------------------------- */
.editor-styles-wrapper .eux-block--tyro-hero {
	padding: 80px 0 64px;
}
.editor-styles-wrapper .eux-block--tyro-hero[data-align="full"] {
	margin-left: 0;
	margin-right: 0;
}

/* Focus outlines per theme */
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--dark .wp-block-heading:focus,
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--dark .wp-block-paragraph:focus {
	outline: 1px dashed rgba(244, 240, 236, 0.3);
	outline-offset: 4px;
}
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--cream .wp-block-heading:focus,
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--cream .wp-block-paragraph:focus,
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--light .wp-block-heading:focus,
.editor-styles-wrapper .eux-block--tyro-hero.eux-tyro-hero--light .wp-block-paragraph:focus {
	outline: 1px dashed rgba(10, 10, 10, 0.2);
	outline-offset: 4px;
}
