/**
 * Landing pages — Amity.
 *
 * A separate visual language from the rest of the site: Amberly Script
 * headings at 60px, a navy / teal / terracotta palette, torn-paper edges
 * between bands, and lists centred as a block rather than run to the measure.
 *
 * Everything is scoped to `.amity-landing`, the class the landing bands carry,
 * so none of it can reach an ordinary page. Measurements are taken from live's
 * `/natural-power/` at 1920.
 */

/* --------------------------------------------------------------------------
   The hero: a 150px script wordmark in two colours with the banner floated
   right, lifted 8.25rem so it runs up behind the header.
   -------------------------------------------------------------------------- */

.amity-landing-hero .fw-section__inner {
	overflow: hidden;
}

.amity-landing-hero .wp-block-image {
	float: right;
	margin: -8.25rem 0 0 2rem;
	width: 400px;
	max-width: 40%;
}

.amity-landing-hero .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content .amity-landing-hero .amity-landing-hero__title {
	font-family: 'Amberly Script', 'Intelo Alt', cursive;
	font-size: 150px;
	line-height: 225px;
	font-weight: 600;
	text-transform: capitalize;
	margin: 132px 0 16px;
	text-align: left;
}

/* The two words are set in the brand green and the brand terracotta. */
.entry-content .amity-landing-hero .amity-landing-hero__title span:first-child { color: var(--fw-secondary, #95A372); }
.entry-content .amity-landing-hero .amity-landing-hero__title span:last-child  { color: var(--fw-primary, #B25F55); }

.entry-content .amity-landing-hero .amity-landing-hero__sub {
	font-size: 42px;
	line-height: 42px;
	font-weight: 600;
	color: var(--fw-grey, #5A5A5A);
	margin: 0 0 16px;
	text-align: left;
	text-transform: none;
}

/* --------------------------------------------------------------------------
   Band headings
   -------------------------------------------------------------------------- */

/* The sitewide `.entry-content h2:not([class*="fw-"])` rule is one point more
   specific than a bare class, so the landing title needs the band in the
   selector or it silently keeps the body H2's 0/16 margins. */
.entry-content .amity-landing .amity-landing__title {
	font-family: 'Amberly Script', 'Intelo Alt', cursive;
	font-size: 60px;
	line-height: 60px;
	font-weight: 600;
	text-transform: capitalize;
	margin: 50px 0 32px;
}

/* The course price and participant-limit lines are not script — they are the
   body face, bold, at 20px. */
.entry-content .amity-landing .amity-landing__price,
.entry-content .amity-landing .amity-landing__limit,
.entry-content .amity-landing .amity-landing__icon-label {
	font-family: inherit;
	text-transform: none;
}

.entry-content .amity-landing .amity-landing__price,
.entry-content .amity-landing .amity-landing__limit {
	font-size: 20px;
	line-height: 20px;
	font-weight: 700;
	margin: 20px 0 16px;
}

.entry-content .amity-landing .amity-landing__icon-label {
	font-size: 1.17rem;
	line-height: 1.17rem;
	font-weight: 700;
	margin: 18.72px 0 16px;
}

/* --------------------------------------------------------------------------
   Lists — centred as a block, bullets kept, text left-aligned inside.
   -------------------------------------------------------------------------- */

.entry-content .amity-landing__list {
	display: table;
	margin: 20px auto;
	padding-left: 40px;
	text-align: left;
	list-style: disc;
}

.entry-content .amity-landing__list li {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Icon rows — three fixed-width columns, centred, not stretched to the rail.
   -------------------------------------------------------------------------- */

.entry-content .amity-landing__icons {
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}

.entry-content .amity-landing__icons > .wp-block-column {
	flex: 0 0 250px;
	text-align: center;
	margin: 15px 0;
}

.entry-content .amity-landing__icons .wp-block-image {
	margin: 0 auto;
}

.entry-content .amity-landing__icons .wp-block-image img {
	width: 100px;
	height: 100px;
}

/* --------------------------------------------------------------------------
   The course dates table — ruled, centred, 20px cells, no outer border.
   -------------------------------------------------------------------------- */

.entry-content .amity-landing__first-date p,
.entry-content p.amity-landing__first-date {
	margin: 16px 0;
}

.entry-content .amity-landing__dates {
	margin: 40px auto;
	width: auto;
}

.entry-content .amity-landing__dates table {
	width: auto;
	margin: 0 auto;
	border: 0;
	border-collapse: collapse;
}

.entry-content .amity-landing__dates td {
	padding: 20px;
	text-align: center;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-top: 0;
	border-bottom: 0;
}

.entry-content .amity-landing__dates tr + tr td {
	border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.entry-content .amity-landing__dates td:first-child { border-left: 0; }
.entry-content .amity-landing__dates td:last-child  { border-right: 0; }

/* --------------------------------------------------------------------------
   Buttons — larger than the site's standard, and always centred.
   -------------------------------------------------------------------------- */

.entry-content .amity-landing__button .wp-block-button__link {
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
	padding: 10px 20px;
}

/* --------------------------------------------------------------------------
   The portrait-beside-copy band.
   -------------------------------------------------------------------------- */

.entry-content .amity-landing__split {
	gap: 1.25rem;
	align-items: flex-start;
}

.entry-content .amity-landing__split .wp-block-image {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Band rhythm. Live runs 20px above and 50px below each band, and the bands
   themselves carry the page's background rather than the page doing so.
   -------------------------------------------------------------------------- */

.amity-landing.fw-section {
	--fw-section-pt: 20px;
	--fw-section-pb: 50px;
}

.amity-landing-hero.fw-section {
	--fw-section-pt: 0;
	--fw-section-pb: 0;
}

/* Body copy inside a landing band is centred unless the band says otherwise,
   and never justified the way the rest of the site's pages are.

   The :not() guard matters: this scores (0,2,1), the same as
   `.entry-content p.has-text-align-center`, and loads later — so without it
   `inherit` beat every paragraph an editor had explicitly aligned, and the
   alignment migration's work on the landing pages was silently undone. */
.entry-content .amity-landing p:not([class*="has-text-align"]) {
	text-align: inherit;
}

@media (max-width: 1024px) {
	.entry-content .amity-landing-hero .amity-landing-hero__title {
		font-size: 84px;
		line-height: 1.1;
		margin-top: 2rem;
	}

	.entry-content .amity-landing-hero .amity-landing-hero__sub { font-size: 28px; line-height: 1.2; }
	.entry-content .amity-landing__title    { font-size: 40px; line-height: 1.1; }

	.amity-landing-hero .wp-block-image {
		float: none;
		margin: 0 auto 1.5rem;
		max-width: 100%;
	}
}
