/*
 * cassiopeia_wtg content blocks used in article HTML (content/pages/*.html):
 * .wtg-hero, .wtg-facts, .wtg-cards/.wtg-card, .wtg-paths/.wtg-path, .wtg-steps, .wtg-cta, .wtg-faq, .wtg-gallery.
 */

.wtg-main { min-height: 50vh; padding-block: 2rem 3rem; }
.wtg-main:focus { outline: none; }
.wtg-eyebrow {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wtg-accent);
}

/* Hero (dark steel panel) */
.wtg-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
	margin-bottom: 2.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: calc(var(--wtg-radius) * 1.5);
	background: linear-gradient(135deg, rgb(255 255 255 / 0) 35%, rgb(255 255 255 / 0.09) 100%), var(--wtg-hero-bg);
	color: var(--wtg-hero-text);
}
.wtg-site .wtg-hero h1 { color: var(--wtg-hero-text); }
.wtg-hero .wtg-eyebrow { color: var(--wtg-highlight); }
.wtg-hero__lead { max-width: 60ch; font-size: 1.2rem; color: color-mix(in srgb, var(--wtg-hero-text) 85%, var(--wtg-hero-bg)); }
.wtg-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.wtg-hero .wtg-btn--ghost { border-color: var(--wtg-hero-text); color: var(--wtg-hero-text) !important; }
.wtg-hero .wtg-btn--ghost:hover { border-color: var(--wtg-primary); }
.wtg-hero :focus-visible { outline-color: var(--wtg-highlight); }
.wtg-hero__media { text-align: center; }
.wtg-hero__media img { width: auto; max-height: 20rem; }

.wtg-facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.wtg-facts li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.wtg-facts [class*="fa-"] { color: var(--wtg-accent); }
.wtg-hero .wtg-facts [class*="fa-"] { color: var(--wtg-highlight); }

/* Cards */
.wtg-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}
.wtg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid rgb(0 0 0 / 0.1);
	border-top: 4px solid var(--wtg-primary);
	border-radius: var(--wtg-radius);
}
.wtg-card h2, .wtg-card h3 { margin: 0; font-size: 1.2rem; }
.wtg-card p { margin: 0; }
.wtg-card__icon { font-size: 1.6rem; color: var(--wtg-accent); }
.wtg-card a.wtg-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wtg-card:focus-within { outline: 3px solid var(--wtg-primary); outline-offset: 3px; }
.wtg-card a.wtg-card__link:focus-visible { outline: none; }
.wtg-card:hover { border-color: var(--wtg-accent); }

/* Two paths (home) */
.wtg-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.wtg-path {
	position: relative;
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 1.25rem;
	align-items: center;
	padding: 1.5rem;
	background: #ffffff;
	border: 2px solid rgb(0 0 0 / 0.08);
	border-radius: calc(var(--wtg-radius) * 1.5);
}
.wtg-path:hover, .wtg-path:focus-within { border-color: var(--wtg-primary); }
.wtg-path__logo { display: grid; place-items: center; height: 6rem; border-radius: var(--wtg-radius); background: var(--wtg-hero-bg); }
.wtg-path__logo img { width: 5rem; height: auto; }
.wtg-path h2, .wtg-path h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.wtg-path p { margin: 0; }
.wtg-path a::after { content: ""; position: absolute; inset: 0; }

/* Numbered steps */
.wtg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: step; }
.wtg-steps li { position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: var(--wtg-surface); border-radius: var(--wtg-radius); counter-increment: step; }
.wtg-steps li::before {
	content: counter(step);
	position: absolute;
	top: 1.1rem;
	left: 1.1rem;
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	background: var(--wtg-hero-bg);
	color: #ffffff;
	font-weight: 800;
}

/* Call-to-action band */
.wtg-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin: 2.5rem 0 0;
	padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
	border-left: 6px solid var(--wtg-highlight);
	border-radius: calc(var(--wtg-radius) * 1.5);
	background: linear-gradient(135deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / 0.08)), var(--wtg-hero-bg);
	color: var(--wtg-hero-text);
}
.wtg-site .wtg-cta h2 { margin: 0; font-size: 1.4rem; color: var(--wtg-hero-text); }
.wtg-cta p { margin: 0.25rem 0 0; }
.wtg-cta .wtg-btn { background: var(--wtg-accent); border-color: var(--wtg-accent); }
.wtg-cta .wtg-btn:hover { background: var(--wtg-primary); border-color: var(--wtg-primary); }
.wtg-cta :focus-visible { outline-color: var(--wtg-highlight); }

/* FAQ */
.wtg-faq details { margin-bottom: 0.75rem; padding: 0 1.25rem; border: 1px solid rgb(0 0 0 / 0.12); border-radius: var(--wtg-radius); }
.wtg-faq summary { min-height: 2.75rem; padding: 0.9rem 0; font-weight: 700; cursor: pointer; }
.wtg-faq details[open] summary { margin-bottom: 0.75rem; border-bottom: 1px solid rgb(0 0 0 / 0.08); }

/* Gallery */
.wtg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.wtg-gallery figure { margin: 0; }
.wtg-gallery a { display: block; border-radius: var(--wtg-radius); }
.wtg-gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--wtg-radius); }
.wtg-gallery figcaption { margin-top: 0.4rem; font-size: 0.95rem; color: var(--wtg-muted); }

/* Joomla system messages */
.wtg-site joomla-alert { border-radius: var(--wtg-radius); }

@media (max-width: 56rem) {
	.wtg-hero { grid-template-columns: 1fr; }
	.wtg-hero__media { order: -1; }
	.wtg-hero__media img { max-height: 6rem; }
}
