/*
 * 5thAVE Studio — site styles (child of Kadence).
 *
 * Colors and fonts are set in Appearance → Customize (Kadence) and mirrored
 * here as variables. Section classes used in the page content:
 *   .fa-hero, .fa-strip, .fa-section(--paper|--dark), .fa-section-head,
 *   .fa-plans/.fa-plan, .fa-maker, .fa-includes, .fa-about/.fa-facts, .fa-gallery,
 *   .fa-contact/.fa-form-card
 * Block styles (pick them in the editor's "Styles" panel) start with is-style-fa-*.
 */

:root {
	--fa-pink: #ef4d84;
	--fa-pink-ink: #cf2f68;
	--fa-pink-deep: #a8224f;
	--fa-yellow: #f3b90d;
	--fa-blue: #00b1e9;
	--fa-blue-ink: #007da8;
	--fa-charcoal: #524e4d;
	--fa-ink: #1f1c1b;
	--fa-text: #3d3937;
	--fa-muted: #6b6460;
	--fa-line: #e8e2da;
	--fa-line-strong: #d6cec4;
	--fa-paper: #f7f4f0;
	--fa-white: #fff;

	--fa-font-display: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--fa-radius: 18px;
	--fa-radius-sm: 12px;
	--fa-shadow: 0 1px 2px rgba(31, 28, 27, 0.06), 0 12px 32px -18px rgba(31, 28, 27, 0.28);
	--fa-shadow-lift: 0 2px 4px rgba(31, 28, 27, 0.06), 0 22px 44px -20px rgba(31, 28, 27, 0.38);
	--fa-section-y: clamp(64px, 9vw, 112px);
	--fa-stripe: linear-gradient(90deg, var(--fa-pink) 0 33.33%, var(--fa-yellow) 33.33% 66.66%, var(--fa-blue) 66.66% 100%);
	--fa-header-offset: 84px;
}

/* ------------------------------------------------------------------------
 * Base
 * --------------------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: var(--fa-header-offset);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--fa-yellow);
	color: var(--fa-ink);
}

:focus-visible {
	outline: 3px solid var(--fa-blue);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* Full-bleed sections sit flush against each other. */
.single-content > .fa-hero,
.single-content > .fa-strip,
.single-content > .fa-section,
.single-content > .wp-block-cover.alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

/* Kadence spaces stacked groups with margin-bottom; inside flex/grid rows that skews alignment. */
.single-content .fa-plans > *,
.single-content .fa-includes__list > *,
.single-content .fa-facts > *,
.single-content .fa-contact-list > *,
.single-content .fa-grid > * {
	margin-top: 0;
	margin-bottom: 0;
}

.fa-center {
	text-align: center;
}

.fa-center-buttons,
.wp-block-buttons.fa-center-buttons {
	justify-content: center;
}

/* ------------------------------------------------------------------------
 * Buttons
 * --------------------------------------------------------------------- */

.wp-block-button__link,
.wp-element-button,
.button,
button[type="submit"] {
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background: transparent;
	color: var(--fa-pink-ink);
	border: 2px solid currentColor;
	padding: 13px 24px;
	box-shadow: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-element-button:hover {
	background: var(--fa-pink-ink);
	border-color: var(--fa-pink-ink);
	color: var(--fa-white);
}

/* Outline buttons on dark backgrounds. */
.fa-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.fa-section--dark .wp-block-button.is-style-outline > .wp-block-button__link,
.is-style-fa-card-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--fa-white);
	border-color: rgba(255, 255, 255, 0.75);
}

.fa-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.fa-section--dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.is-style-fa-card-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--fa-white);
	border-color: var(--fa-white);
	color: var(--fa-ink);
}

/* ------------------------------------------------------------------------
 * Header
 * --------------------------------------------------------------------- */

.site-branding a.brand img {
	border-radius: 6px;
	transition: width 0.2s ease, max-width 0.2s ease;
}

/* Nav: animated underline in brand pink. */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	position: relative;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a::after {
	content: "";
	position: absolute;
	left: calc(var(--global-menu-item-spacing, 1.15em) / 2);
	right: calc(var(--global-menu-item-spacing, 1.15em) / 2);
	bottom: 0.35em;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s ease;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after,
.main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible::after {
	transform: scaleX(1);
}

/* Transparent header: soft shade behind it so the nav reads on any photo. */
.transparent-header #masthead::before {
	content: "";
	position: absolute;
	inset: 0 0 -40px;
	background: linear-gradient(180deg, rgba(20, 18, 17, 0.55) 0%, rgba(20, 18, 17, 0) 100%);
	pointer-events: none;
	z-index: 0;
}

.transparent-header #masthead > * {
	position: relative;
	z-index: 1;
}

/* Sticky (scrolled) header: add the brand stripe (Kadence makes it position: fixed). */
.kadence-sticky-header.item-is-stuck::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 3px;
	background: var(--fa-stripe);
}

.header-button-wrap .header-button {
	box-shadow: 0 8px 20px -10px rgba(207, 47, 104, 0.7);
}

/* Mobile drawer. */
#mobile-drawer .drawer-inner {
	color: rgba(255, 255, 255, 0.82);
}

#mobile-drawer .drawer-inner::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--fa-stripe);
}

#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
	font-family: var(--fa-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	padding-top: 0.9em;
	padding-bottom: 0.9em;
}

#mobile-drawer .mobile-header-button-wrap {
	margin-top: 1.5em;
}

#mobile-drawer .mobile-header-button-wrap .button {
	width: 100%;
	justify-content: center;
	text-align: center;
}

#mobile-drawer .mobile-html {
	margin-top: 1.75em;
	font-size: 0.95rem;
	line-height: 1.6;
}

#mobile-drawer .mobile-html a {
	color: var(--fa-white);
	text-decoration: none;
}

/* ------------------------------------------------------------------------
 * Hero (Cover block). Works with an image or a video background.
 * --------------------------------------------------------------------- */

.wp-block-cover.fa-hero {
	padding-top: calc(var(--fa-header-offset) + 48px);
	padding-bottom: 88px;
	color: var(--fa-white);
}

.wp-block-cover.fa-hero .wp-block-cover__background.has-background-dim {
	/* Darker at the top (header) and bottom, lighter in the middle. */
	background: linear-gradient(180deg, rgba(20, 18, 17, 0.74) 0%, rgba(20, 18, 17, 0.56) 38%, rgba(20, 18, 17, 0.6) 70%, rgba(20, 18, 17, 0.85) 100%) !important;
	opacity: 1 !important;
}

.fa-hero--home {
	text-align: center;
}

.fa-hero--home .wp-block-cover__inner-container {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.fa-hero .is-style-fa-eyebrow {
	color: var(--fa-yellow);
	background: rgba(20, 18, 17, 0.6);
	padding: 8px 16px 8px 12px;
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fa-hero .fa-hero__title {
	color: var(--fa-white);
	font-size: clamp(2.6rem, 7.2vw, 5.6rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0.2em 0 0.3em;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.fa-hero__title mark {
	background: transparent;
	padding: 0;
}

.fa-hero .fa-hero__lead {
	font-size: clamp(1.1rem, 1.6vw, 1.32rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

/* Links in the hero text: the default pink is too dark on the photo. */
.fa-hero .fa-hero__lead a {
	color: var(--fa-white);
	text-decoration: underline;
	text-decoration-color: var(--fa-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.fa-hero .fa-hero__lead a:hover,
.fa-hero .fa-hero__lead a:focus-visible {
	color: var(--fa-yellow);
}

.fa-hero__actions {
	justify-content: center;
	gap: 14px;
	margin-top: 34px;
}

.fa-hero__actions .wp-block-button__link {
	font-size: 1.05rem;
	padding: 17px 32px;
}

.fa-hero__actions .is-style-outline .wp-block-button__link {
	padding: 15px 30px;
}

/* Scroll cue. */
.fa-hero--home::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 26px;
	width: 26px;
	height: 26px;
	margin-left: -13px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	opacity: 0.85;
	animation: fa-bob 2.2s ease-in-out infinite;
	z-index: 2;
}

@keyframes fa-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(7px); }
}

/* Inner-page variant: text lines up with the header logo, left aligned.
   (Beats core's "custom content position" rules, which set width:auto; margin:0.) */
.wp-block-cover.fa-hero--page.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,
.wp-block-cover.fa-hero--page .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--global-content-width, 1240px);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}

.fa-hero--page .wp-block-cover__inner-container > * {
	max-width: 760px;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.fa-hero--page .fa-hero__title {
	font-size: clamp(2.3rem, 5vw, 4rem);
}

/* ------------------------------------------------------------------------
 * CTA strip under the hero
 * --------------------------------------------------------------------- */

.fa-strip {
	background: var(--fa-yellow);
	color: var(--fa-ink);
	padding: 18px 1.5rem;
	text-align: center;
}

.single-content .fa-strip p.fa-strip__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
}

.fa-strip strong {
	font-family: var(--fa-font-display);
	font-weight: 800;
}

.fa-strip a {
	color: var(--fa-ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	margin-left: 6px;
	white-space: nowrap;
}

.fa-strip a::after {
	content: " →";
}

.fa-strip a:hover {
	color: var(--fa-pink-deep);
}

/* ------------------------------------------------------------------------
 * Sections
 * --------------------------------------------------------------------- */

.fa-section {
	padding-top: var(--fa-section-y);
	padding-bottom: var(--fa-section-y);
}

.fa-section--paper {
	background: var(--fa-paper);
}

.fa-section--dark {
	background: var(--fa-ink);
	color: rgba(255, 255, 255, 0.78);
}

.fa-section--dark h1,
.fa-section--dark h2,
.fa-section--dark h3,
.fa-section--dark h4 {
	color: var(--fa-white);
}

.fa-section--dark a:not(.wp-block-button__link) {
	color: var(--fa-yellow);
}

.fa-section-head {
	text-align: center;
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: clamp(36px, 5vw, 56px) !important;
}

.fa-section-head h2 {
	margin-top: 0.15em;
}

/* Eyebrow label: brand stripe + small caps. */
.is-style-fa-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--fa-font-display);
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fa-pink-ink);
	margin-bottom: 0.9em !important;
}

.is-style-fa-eyebrow::before {
	content: "";
	flex: none;
	width: 30px;
	height: 4px;
	border-radius: 2px;
	background: var(--fa-stripe);
}

.fa-section--dark .is-style-fa-eyebrow {
	color: var(--fa-yellow);
}

.single-content .is-style-fa-eyebrow + h1,
.single-content .is-style-fa-eyebrow + h2,
.single-content .is-style-fa-eyebrow + h3 {
	margin-top: 0;
}

.fa-section-head .is-style-fa-eyebrow {
	justify-content: center;
}

.is-style-fa-lead {
	font-size: clamp(1.1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	color: var(--fa-muted);
}

.fa-section--dark .is-style-fa-lead {
	color: rgba(255, 255, 255, 0.75);
}

.is-style-fa-display {
	font-size: clamp(2.6rem, 6vw, 4.6rem) !important;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

/* ------------------------------------------------------------------------
 * Memberships
 * --------------------------------------------------------------------- */

.fa-plans {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 20px;
	max-width: 1320px !important;
}

.single-content .fa-plans > .fa-plan {
	margin: 0;
}

.fa-plan {
	--fa-plan-color: var(--fa-blue);
	--fa-plan-ink: var(--fa-blue-ink);
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: var(--fa-white);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius);
	padding: 30px 22px 24px;
	box-shadow: var(--fa-shadow);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fa-plan::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--fa-plan-color);
}

.fa-plan:hover {
	transform: translateY(-4px);
	box-shadow: var(--fa-shadow-lift);
}

.fa-plan--pink {
	--fa-plan-color: var(--fa-pink);
	--fa-plan-ink: var(--fa-pink-ink);
}

.fa-plan--yellow {
	--fa-plan-color: var(--fa-yellow);
	--fa-plan-ink: #8a6500;
}

.single-content .fa-plan h3.fa-plan__name {
	font-size: 1.12rem;
	line-height: 1.25;
	margin: 0 0 14px;
	min-height: 2.6em;
}

.fa-plan__name span {
	display: block;
	margin-top: 4px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fa-plan-ink);
}

.single-content .fa-plan p.fa-plan__price {
	margin: 0 0 10px;
	color: var(--fa-muted);
	font-size: 0.95rem;
	line-height: 1.1;
}

.fa-plan__price strong {
	font-family: var(--fa-font-display);
	font-size: 2.6rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--fa-ink);
}

.fa-plan__price span {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.single-content .fa-plan p.fa-plan__desc {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--fa-muted);
	margin: 0 0 18px;
	min-height: 3em;
}

.fa-plan .is-style-fa-checks {
	border-top: 1px solid var(--fa-line);
	padding-top: 16px;
	margin-bottom: 22px;
	font-size: 0.92rem;
}

.fa-plan .is-style-fa-checks li::before {
	background-color: var(--fa-plan-ink);
}

.single-content .fa-plan .fa-plan__cta {
	margin-top: auto;
	margin-bottom: 0;
}

.fa-plan__cta .wp-block-button {
	width: 100%;
}

.fa-plan__cta .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
	padding: 13px 16px;
	font-size: 0.95rem;
}

.fa-plan__cta .is-style-outline .wp-block-button__link {
	padding: 11px 14px;
}

@media (max-width: 1179px) {
	.fa-plan {
		flex: 0 1 calc((100% - 40px) / 3);
	}
}

@media (max-width: 767px) {
	.fa-plan {
		flex: 0 1 calc((100% - 20px) / 2);
	}

	.single-content .fa-plan h3.fa-plan__name,
	.single-content .fa-plan p.fa-plan__desc {
		min-height: 0;
	}
}

@media (max-width: 519px) {
	.fa-plan {
		flex: 1 1 100%;
	}
}

/* "Every membership includes" row. */
.fa-includes {
	margin-top: clamp(40px, 5vw, 64px) !important;
	text-align: center;
}

.single-content .fa-includes p.fa-includes__title {
	font-family: var(--fa-font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fa-muted);
	margin-bottom: 20px;
}

.fa-includes__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 30px;
}

.fa-include {
	display: flex;
	align-items: center;
	gap: 10px;
}

.single-content .fa-include > * {
	margin: 0 !important;
}

.fa-include .fa-icon--tile {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.fa-include .fa-icon .fa-svg {
	width: 20px;
	height: 20px;
}

.fa-include p {
	font-weight: 600;
	color: var(--fa-ink);
	font-size: 0.97rem;
}

/* HackPGH makerspace band under the plan cards. */
.fa-maker {
	position: relative;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px 36px;
	max-width: 1320px !important;
	margin-top: 20px !important;
	padding: 22px 32px 22px 22px;
	background: var(--fa-white);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius);
	box-shadow: var(--fa-shadow);
	overflow: hidden;
}

.fa-maker::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--fa-stripe);
}

.single-content .fa-maker > *,
.single-content .fa-maker figure.fa-maker__photo {
	margin: 0;
}

.fa-maker__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--fa-radius-sm);
}

.single-content .fa-maker p.fa-maker__tag {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fa-blue-ink);
}

.single-content .fa-maker h3.fa-maker__title {
	margin: 0 0 10px;
	font-size: 1.45rem;
	line-height: 1.2;
}

.single-content .fa-maker__body p {
	margin: 0 0 10px;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--fa-muted);
}

.single-content .fa-maker__body p:last-child {
	margin-bottom: 0;
}

.single-content .fa-maker__body p.fa-maker__how {
	color: var(--fa-ink);
	font-size: 0.93rem;
}

.fa-maker__cta {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.fa-maker__cta .wp-block-button__link {
	display: block;
	text-align: center;
	white-space: nowrap;
	font-size: 0.95rem;
	padding: 11px 22px;
}

/* Second button reads as a plain link to HackPGH's own site. */
.fa-maker__cta .fa-maker__site .wp-block-button__link {
	background: transparent;
	color: var(--fa-ink);
	border: 0;
	box-shadow: none;
	text-decoration: underline;
	text-decoration-color: var(--fa-line-strong);
	text-underline-offset: 4px;
}

.fa-maker__cta .fa-maker__site .wp-block-button__link::after {
	content: " ↗";
}

.fa-maker__cta .fa-maker__site .wp-block-button__link:hover {
	color: var(--fa-pink-ink);
	text-decoration-color: currentColor;
}

@media (max-width: 1023px) {
	.fa-maker {
		grid-template-columns: 220px minmax(0, 1fr);
		padding-right: 22px;
	}

	.fa-maker__cta {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

@media (max-width: 639px) {
	.fa-maker {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 18px 18px 22px;
	}

	.fa-maker__photo img {
		aspect-ratio: 16 / 9;
	}

	.fa-maker__cta {
		grid-column: auto;
		flex-direction: column;
		align-items: stretch;
	}
}

/* ------------------------------------------------------------------------
 * About
 * --------------------------------------------------------------------- */

.fa-about {
	gap: clamp(32px, 6vw, 80px) !important;
}

.fa-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 28px !important;
}

.fa-fact {
	background: var(--fa-paper);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius-sm);
	padding: 18px 16px;
}

.single-content .fa-fact > * {
	margin-bottom: 0;
}

.fa-fact .fa-icon--tile {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	margin-bottom: 12px !important;
}

.fa-fact .fa-icon .fa-svg {
	width: 20px;
	height: 20px;
}

.single-content .fa-fact p {
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--fa-muted);
}

.single-content .fa-fact p.fa-fact__title {
	font-family: var(--fa-font-display);
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--fa-ink);
	margin-bottom: 2px;
}

@media (max-width: 600px) {
	.fa-facts {
		grid-template-columns: 1fr;
	}

	.fa-fact {
		display: grid;
		grid-template-columns: 40px 1fr;
		column-gap: 14px;
		align-items: center;
	}

	.fa-fact .fa-icon--tile {
		grid-row: span 2;
		margin-bottom: 0 !important;
	}
}

/* ------------------------------------------------------------------------
 * Gallery
 * --------------------------------------------------------------------- */

.wp-block-gallery.fa-gallery.has-nested-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.wp-block-gallery.fa-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	aspect-ratio: 4 / 3;
	border-radius: var(--fa-radius-sm);
	overflow: hidden;
}

.wp-block-gallery.fa-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.wp-block-gallery.fa-gallery figure.wp-block-image:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {
	.wp-block-gallery.fa-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

/* ------------------------------------------------------------------------
 * Contact / Book a tour
 * --------------------------------------------------------------------- */

.fa-contact {
	gap: clamp(32px, 5vw, 64px) !important;
}

.fa-contact-list {
	margin-top: 28px !important;
	display: grid;
	gap: 18px;
}

.fa-contact-item {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	align-items: start;
}

.single-content .fa-contact-item > * {
	margin: 0;
}

.fa-contact-item .fa-icon--tile {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.fa-contact-item .fa-icon .fa-svg {
	width: 20px;
	height: 20px;
}

.fa-contact-item p {
	line-height: 1.5;
	color: var(--fa-ink);
}

.fa-contact-item__label {
	display: block;
	font-family: var(--fa-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fa-muted);
	margin-bottom: 2px;
}

.fa-contact-item a {
	color: var(--fa-ink);
	font-weight: 600;
	text-decoration: none;
}

.fa-contact-item a:hover {
	color: var(--fa-pink-ink);
	text-decoration: underline;
}

.fa-form-card {
	background: var(--fa-white);
	border: 1px solid var(--fa-line);
	border-radius: 22px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: var(--fa-shadow);
	position: relative;
	overflow: hidden;
}

.fa-form-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--fa-stripe);
}

.single-content .fa-form-card h3 {
	margin-top: 0;
	margin-bottom: 22px;
}

.fa-form-submit {
	font-size: 1rem;
}

/* ------------------------------------------------------------------------
 * Icon tiles (5thAVE Icon block) — circles, like the amenity icons.
 * --------------------------------------------------------------------- */

.fa-icon--tile {
	border-radius: 50%;
}

/* ------------------------------------------------------------------------
 * Block styles
 * --------------------------------------------------------------------- */

/* Checkmark list. */
ul.is-style-fa-checks {
	list-style: none;
	padding-left: 0 !important;
}

ul.is-style-fa-checks li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 9px;
	line-height: 1.45;
}

ul.is-style-fa-checks li:last-child {
	margin-bottom: 0;
}

ul.is-style-fa-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	width: 18px;
	height: 18px;
	background-color: var(--fa-pink-ink);
	-webkit-mask: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Image with an offset color block behind it. */
figure[class*="is-style-fa-frame-"] {
	--fa-frame: var(--fa-pink);
	position: relative;
	margin-right: 18px !important;
	margin-bottom: 18px !important;
	isolation: isolate;
}

figure[class*="is-style-fa-frame-"]::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	border-radius: var(--fa-radius);
	background: var(--fa-frame);
	z-index: -1;
}

figure[class*="is-style-fa-frame-"] img {
	border-radius: var(--fa-radius);
	display: block;
	width: 100%;
}

figure.is-style-fa-frame-yellow { --fa-frame: var(--fa-yellow); }
figure.is-style-fa-frame-blue { --fa-frame: var(--fa-blue); }

figure.is-style-fa-rounded img {
	border-radius: var(--fa-radius);
}

/* Cards. */
.wp-block-group.is-style-fa-card {
	background: var(--fa-white);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius);
	padding: clamp(22px, 3vw, 32px);
	box-shadow: var(--fa-shadow);
}

.wp-block-group.is-style-fa-card-dark {
	background: var(--fa-ink);
	color: rgba(255, 255, 255, 0.8);
	border-radius: var(--fa-radius);
	padding: clamp(24px, 4vw, 40px);
}

.wp-block-group.is-style-fa-card-dark h2,
.wp-block-group.is-style-fa-card-dark h3 {
	color: var(--fa-white);
}

/* Brand stripe separator. */
hr.wp-block-separator.is-style-fa-stripe {
	border: 0;
	height: 6px;
	width: 120px;
	max-width: 100%;
	border-radius: 3px;
	background: var(--fa-stripe);
	opacity: 1;
}

/* Big quote. */
.wp-block-quote.is-style-fa-bigquote {
	border: 0;
	padding: 0;
	margin: 0;
}

.wp-block-quote.is-style-fa-bigquote p {
	font-family: var(--fa-font-display);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--fa-ink);
}

.wp-block-quote.is-style-fa-bigquote cite {
	display: block;
	margin-top: 1em;
	font-style: normal;
	font-size: 0.95rem;
	color: var(--fa-muted);
}

.wp-block-quote.is-style-fa-bigquote cite::before {
	content: "— ";
}

.fa-section--dark .wp-block-quote.is-style-fa-bigquote p {
	color: var(--fa-white);
}

/* Small helpers. */
.fa-link-arrow a {
	font-weight: 700;
	text-decoration: none;
}

.fa-link-arrow a::after {
	content: " →";
	transition: margin-left 0.15s ease;
}

.fa-link-arrow a:hover::after {
	margin-left: 4px;
}

.fa-fineprint {
	font-size: 0.9rem;
	color: var(--fa-muted);
}

/* ------------------------------------------------------------------------
 * Standard pages (Residents, Privacy): dark title band
 * --------------------------------------------------------------------- */

.page-hero-section .entry-hero-container-inner,
.post-archive-hero-section .entry-hero-container-inner {
	position: relative;
}

.entry-hero.page-hero-section::after,
.entry-hero.post-hero-section::after,
.entry-hero.post-archive-hero-section::after {
	content: "";
	display: block;
	height: 5px;
	background: var(--fa-stripe);
}

.content-title-style-above .entry-hero .entry-header {
	padding-top: calc(var(--fa-header-offset) + 24px);
}

.content-title-style-above .entry-hero h1 {
	letter-spacing: -0.02em;
}

.single-content h2 {
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.content-width-narrow .single-content .fa-pay,
.content-width-narrow .single-content .fa-form-card {
	margin-bottom: var(--global-md-spacing);
}

.fa-pay {
	background: var(--fa-paper);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius);
	padding: clamp(22px, 4vw, 32px);
}

/* ------------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------- */

#colophon {
	position: relative;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.97rem;
}

#colophon::before {
	content: "";
	display: block;
	height: 5px;
	background: var(--fa-stripe);
}

#colophon .site-middle-footer-wrap .site-footer-row-container-inner {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

#colophon a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

#colophon a:hover {
	color: var(--fa-yellow);
}

#colophon .widget p {
	margin: 0 0 0.85em;
}

#colophon h2.fa-footer-title {
	font-family: var(--fa-font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fa-white);
	margin: 6px 0 16px;
}

#colophon .fa-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

#colophon .fa-footer-links li {
	margin-bottom: 9px;
}

#colophon .fa-footer-logo {
	margin-bottom: 18px;
}

#colophon .fa-footer-logo img {
	border-radius: 4px;
}

#colophon .fa-footer-blurb {
	max-width: 320px;
}

#colophon .fa-footer-contact a {
	color: var(--fa-white);
	font-weight: 600;
}

#colophon .wp-block-buttons {
	margin-top: 18px;
}

#colophon .wp-block-button__link {
	color: var(--fa-white);
}

#colophon .site-bottom-footer-wrap .site-footer-row-container-inner {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.55);
}

#colophon .footer-html p {
	margin: 0;
}

#colophon .footer-navigation ul {
	justify-content: flex-end;
}

#colophon .footer-navigation .menu > li > a {
	color: rgba(255, 255, 255, 0.7);
	padding-top: 0.4em;
	padding-bottom: 0.4em;
}

@media (max-width: 1024px) {
	#colophon .footer-navigation ul {
		justify-content: flex-start;
	}
}

/* Scroll-to-top button. */
#kt-scroll-up,
#kt-scroll-up-reader {
	border-radius: 50%;
}

/* ------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------- */

@media (max-width: 1024px) {
	:root {
		--fa-header-offset: 72px;
	}
}

@media (max-width: 781px) {
	:root {
		--fa-header-offset: 64px;
	}

	.wp-block-cover.fa-hero {
		padding-bottom: 72px;
	}

	.fa-hero__actions .wp-block-button {
		width: 100%;
	}

	.fa-hero__actions .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
	}

	figure[class*="is-style-fa-frame-"] {
		margin-right: 12px !important;
		margin-bottom: 12px !important;
	}

	figure[class*="is-style-fa-frame-"]::before {
		inset: 12px -12px -12px 12px;
	}

	.fa-contact-list {
		margin-bottom: 8px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ------------------------------------------------------------------------
 * Brand color classes (also generated by WordPress from the editor
 * palette; repeated here so they always work).
 * --------------------------------------------------------------------- */

mark.has-inline-color { background: transparent; }
.has-brand-pink-color { color: var(--fa-pink) !important; }
.has-brand-yellow-color { color: var(--fa-yellow) !important; }
.has-brand-blue-color { color: var(--fa-blue) !important; }
.has-brand-charcoal-color { color: var(--fa-charcoal) !important; }
.has-brand-ink-color { color: var(--fa-ink) !important; }
.has-brand-pink-background-color { background-color: var(--fa-pink) !important; }
.has-brand-yellow-background-color { background-color: var(--fa-yellow) !important; }
.has-brand-blue-background-color { background-color: var(--fa-blue) !important; }
.has-brand-charcoal-background-color { background-color: var(--fa-charcoal) !important; }
.has-brand-ink-background-color { background-color: var(--fa-ink) !important; }

/* ------------------------------------------------------------------------
 * Tweaks
 * --------------------------------------------------------------------- */

.wp-block-gallery.fa-gallery.alignwide {
	max-width: min(1320px, 100% - 2 * var(--global-content-edge-padding, 1.5rem)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.fa-form .fa-form-submit {
	border: 0;
	border-radius: 999px;
	padding: 15px 30px;
	font-family: var(--fa-font-display);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	background: var(--fa-pink-ink);
	color: var(--fa-white);
	cursor: pointer;
	box-shadow: 0 8px 20px -10px rgba(207, 47, 104, 0.7);
}

.fa-form .fa-form-submit:hover,
.fa-form .fa-form-submit:focus-visible {
	background: var(--fa-pink-deep);
	color: var(--fa-white);
	transform: translateY(-1px);
}

/* Side breathing room for full-bleed sections (beats Kadence's .entry-content .alignfull reset). */
.entry-content .wp-block-group.fa-section,
.entry-content .wp-block-group.fa-strip {
	padding-left: var(--global-content-edge-padding, 1.5rem);
	padding-right: var(--global-content-edge-padding, 1.5rem);
}

/* Kadence leaves the "wide" width undefined; give wide-aligned blocks a sensible max. */
:root {
	--global-calc-wide-content-width: 1320px;
}

@media (max-width: 600px) {
	.is-style-fa-eyebrow {
		font-size: 0.7rem !important;
		letter-spacing: 0.1em;
		gap: 10px;
	}

	.is-style-fa-eyebrow::before {
		width: 22px;
	}

	.fa-strip {
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.single-content .fa-strip p.fa-strip__text {
		font-size: 0.95rem;
	}
}

/* ========================================================================
 * Shared components (History page and future pages)
 * ===================================================================== */

/* Simple grids. */
.fa-grid {
	display: grid;
	gap: 20px;
}

.fa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 781px) {
	.fa-grid--2,
	.fa-grid--3 {
		grid-template-columns: 1fr;
	}
}

/* Stat row. */
.fa-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	max-width: 1000px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.fa-stat {
	--fa-stat-color: var(--fa-pink);
	border-top: 4px solid var(--fa-stat-color);
	padding: 18px 6px 0;
	text-align: center;
}

.fa-stat--yellow { --fa-stat-color: var(--fa-yellow); }
.fa-stat--blue { --fa-stat-color: var(--fa-blue); }

.single-content .fa-stat p {
	margin: 0;
}

.single-content .fa-stat p.fa-stat__num {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 2.8rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--fa-ink);
	margin-bottom: 6px;
}

.single-content .fa-stat p.fa-stat__label {
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--fa-muted);
}

@media (max-width: 781px) {
	.fa-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 28px;
	}
}

/* Pill links ("jump to"). */
ul.fa-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 0 !important;
	margin: 40px auto 0 !important;
}

.fa-chips li {
	margin: 0;
}

.fa-chips a {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--fa-line-strong);
	background: var(--fa-white);
	color: var(--fa-ink);
	font-family: var(--fa-font-display);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fa-chips a:hover,
.fa-chips a:focus-visible {
	border-color: var(--fa-pink-ink);
	color: var(--fa-pink-ink);
	transform: translateY(-1px);
}

/* Accordions (Details block). */
.wp-block-details.fa-faq {
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius-sm);
	background: var(--fa-white);
	padding: 0;
	margin-bottom: 12px !important;
	overflow: hidden;
}

.wp-block-details.fa-faq > summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 18px 56px 18px 22px;
	font-family: var(--fa-font-display);
	font-weight: 700;
	color: var(--fa-ink);
}

.wp-block-details.fa-faq > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.fa-faq > summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--fa-pink-ink);
	transition: transform 0.2s ease;
}

.wp-block-details.fa-faq[open] > summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.wp-block-details.fa-faq > :not(summary) {
	padding: 0 22px;
}

.wp-block-details.fa-faq > :last-child {
	padding-bottom: 20px;
}

ol.fa-roll-list {
	columns: 2;
	column-gap: 36px;
	padding-left: 2.4em !important;
	font-size: 0.95rem;
	color: var(--fa-text);
}

ol.fa-roll-list li {
	break-inside: avoid;
	margin-bottom: 4px;
}

@media (max-width: 600px) {
	ol.fa-roll-list {
		columns: 1;
	}
}

/* Document cards. */
.fa-doc h3 {
	font-size: 1.12rem;
	margin-top: 0;
}

.fa-doc h3 a {
	color: var(--fa-ink);
	text-decoration: none;
}

.fa-doc h3 a::before {
	content: "PDF";
	display: inline-block;
	margin-right: 10px;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--fa-pink-ink);
	color: var(--fa-white);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	vertical-align: 3px;
}

.fa-doc h3 a:hover {
	color: var(--fa-pink-ink);
}

.single-content .fa-doc p {
	margin-bottom: 0;
	color: var(--fa-muted);
	font-size: 0.95rem;
}

/* Closing call-to-action band. */
.entry-content .wp-block-group.fa-cta {
	background: var(--fa-ink);
	color: rgba(255, 255, 255, 0.8);
	text-align: center;
	padding: clamp(64px, 8vw, 104px) var(--global-content-edge-padding, 1.5rem);
	position: relative;
}

.fa-cta::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: var(--fa-stripe);
}

.fa-cta h2 {
	color: var(--fa-white);
	margin-top: 0;
}

.fa-cta .is-style-fa-lead {
	color: rgba(255, 255, 255, 0.78);
}

.fa-cta .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--fa-white);
	border-color: rgba(255, 255, 255, 0.75);
}

.fa-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--fa-white);
	border-color: var(--fa-white);
	color: var(--fa-ink);
}

/* ========================================================================
 * History: scroll timeline
 *
 * Markup (all core blocks, so entries can be duplicated in the editor):
 *   .fa-tl                     wrapper
 *     .fa-tl__chapter          chapter divider (years pill, title, intro)
 *     .fa-tl__item             entry: .fa-tl__date + .fa-tl__body + .fa-tl__media (image)
 *       --text                 entry without a photo
 *       --today                final, highlighted entry
 * The reveal animation only runs once site.js adds .is-armed.
 * ===================================================================== */

.fa-history-intro {
	text-align: center;
}

.single-content .fa-history-intro .fa-history-intro__quote {
	max-width: 880px;
	margin: 0 auto 56px !important;
}

.fa-history-intro .wp-block-quote.is-style-fa-bigquote p {
	font-size: clamp(1.3rem, 2.4vw, 1.85rem);
}

.fa-tl {
	--fa-tl-progress: 0%;
	--fa-tl-gutter: 120px;
	position: relative;
	max-width: 1180px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Track + scroll-progress fill. */
.fa-tl::before,
.fa-tl::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 4px;
	margin-left: -2px;
	border-radius: 2px;
}

.fa-tl::before {
	bottom: 0;
	background: var(--fa-line);
}

.fa-tl::after {
	height: var(--fa-tl-progress);
	/* Brand colors cycle down the line (seamless repeat). */
	background: linear-gradient(180deg, var(--fa-pink) 0%, var(--fa-yellow) 33%, var(--fa-blue) 66%, var(--fa-pink) 100%);
	background-size: 100% 150vh;
	background-repeat: repeat-y;
}

.single-content .fa-tl > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Chapter dividers. */
.fa-tl__chapter {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 88px 0 36px;
}

.fa-tl__chapter:first-child {
	padding-top: 8px;
}

.single-content .fa-tl__chapter > * {
	margin: 0 auto;
}

.single-content .fa-tl__chapter p.fa-tl__chapter-years {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--fa-ink);
	color: var(--fa-yellow);
	font-family: var(--fa-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.single-content .fa-tl__chapter h2.fa-tl__chapter-title {
	display: table;
	margin: 0 auto;
	padding: 4px 26px;
	background: var(--fa-paper);
	font-size: clamp(1.9rem, 3.8vw, 2.8rem);
	line-height: 1.12;
}

.single-content .fa-tl__chapter p.fa-tl__chapter-intro {
	display: table;
	max-width: 560px;
	margin-top: 8px;
	padding: 4px 18px;
	background: var(--fa-paper);
	color: var(--fa-muted);
	font-size: 1.08rem;
}

/* Entries: [story | date | photo], alternating sides. */
.fa-tl__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--fa-tl-gutter) minmax(0, 1fr);
	grid-template-areas: "body date media";
	align-items: center;
	padding: 34px 0;
}

.fa-tl__item:nth-child(even of .fa-tl__item) {
	grid-template-areas: "media date body";
}

.fa-tl__item--text {
	grid-template-areas: "body date .";
}

.fa-tl__item--text:nth-child(even of .fa-tl__item) {
	grid-template-areas: ". date body";
}

.fa-tl__item > .fa-tl__date { grid-area: date; }
.fa-tl__item > .fa-tl__body { grid-area: body; }
.fa-tl__item > .fa-tl__media { grid-area: media; }

/* Date marker on the line; colors cycle pink → yellow → blue. */
.single-content .fa-tl__item p.fa-tl__date {
	--fa-dot: var(--fa-pink);
	--fa-dot-ink: var(--fa-white);
	justify-self: center;
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 8px 13px;
	border-radius: 999px;
	background: var(--fa-dot);
	color: var(--fa-dot-ink);
	font-family: var(--fa-font-display);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 0 0 7px var(--fa-paper);
}

.fa-tl__item:nth-child(3n + 2 of .fa-tl__item) p.fa-tl__date {
	--fa-dot: var(--fa-yellow);
	--fa-dot-ink: var(--fa-ink);
}

.fa-tl__item:nth-child(3n of .fa-tl__item) p.fa-tl__date {
	--fa-dot: var(--fa-blue-ink);
}

/* Story card. */
.fa-tl__body {
	position: relative;
	background: var(--fa-white);
	border: 1px solid var(--fa-line);
	border-radius: var(--fa-radius);
	padding: clamp(22px, 2.6vw, 32px);
	box-shadow: var(--fa-shadow);
}

.single-content .fa-tl__body h3 {
	margin: 0 0 12px;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.single-content .fa-tl__body p {
	font-size: 0.98rem;
	line-height: 1.65;
	margin-bottom: 14px;
}

.single-content .fa-tl__body > :last-child {
	margin-bottom: 0;
}

.single-content .fa-tl__body .wp-block-quote.fa-tl__quote {
	margin: 18px 0;
	padding: 4px 0 4px 18px;
	border-left: 4px solid var(--fa-pink);
	border-top: 0;
	border-right: 0;
	border-bottom: 0;
}

.single-content .fa-tl__body .fa-tl__quote p {
	font-family: var(--fa-font-display);
	font-weight: 600;
	font-size: 1.04rem;
	line-height: 1.45;
	color: var(--fa-ink);
	margin-bottom: 6px;
}

.fa-tl__quote cite {
	display: block;
	font-style: normal;
	font-size: 0.85rem;
	color: var(--fa-muted);
}

.fa-tl__quote cite a {
	color: inherit;
}

.single-content .fa-tl__body .fa-link-arrow {
	margin-top: 4px;
	font-size: 0.95rem;
}

/* Photo. */
.single-content .fa-tl__item figure.fa-tl__media {
	margin: 0;
}

.fa-tl__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--fa-radius);
	box-shadow: var(--fa-shadow-lift);
}

.fa-tl__media.fa-tl__media--portrait {
	justify-self: center;
	max-width: 340px;
	width: 100%;
}

.fa-tl__media.fa-tl__media--portrait img {
	aspect-ratio: 4 / 5;
}

.fa-tl__media figcaption.wp-element-caption {
	margin: 12px 4px 0;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--fa-muted);
	text-align: left;
}

/* Text-only entry and the final "Today" entry. */
.fa-tl__item--text .fa-tl__body {
	border-top: 5px solid var(--fa-yellow);
}

.fa-tl__item--today .fa-tl__body {
	background: var(--fa-ink);
	border-color: var(--fa-ink);
	color: rgba(255, 255, 255, 0.82);
}

.fa-tl__item--today .fa-tl__body h3 {
	color: var(--fa-white);
}

.fa-tl__item--today .wp-block-buttons {
	margin-top: 22px;
	gap: 10px;
}

.fa-tl__item--today .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--fa-white);
	border-color: rgba(255, 255, 255, 0.75);
}

.fa-tl__item--today .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--fa-white);
	color: var(--fa-ink);
}

/* Scroll reveal (armed by site.js; everything is visible without JS). */
.fa-tl__date,
.fa-tl__body,
.fa-tl__media,
.fa-tl__media img,
.fa-tl__chapter > * {
	transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}

.fa-tl.is-armed .fa-tl__item:not(.is-visible) .fa-tl__date {
	opacity: 0;
	transform: scale(0.5);
}

.fa-tl.is-armed .fa-tl__item:not(.is-visible) .fa-tl__body {
	opacity: 0;
	transform: translateX(-56px);
}

.fa-tl.is-armed .fa-tl__item:nth-child(even of .fa-tl__item):not(.is-visible) .fa-tl__body {
	transform: translateX(56px);
}

.fa-tl.is-armed .fa-tl__item:not(.is-visible) .fa-tl__media {
	opacity: 0;
	transform: translateY(40px);
}

.fa-tl.is-armed .fa-tl__item:not(.is-visible) .fa-tl__media img {
	clip-path: inset(0 0 100% 0 round var(--fa-radius));
	transform: scale(1.08);
}

.fa-tl.is-armed .fa-tl__item.is-visible .fa-tl__media img {
	clip-path: inset(0 0 0 0 round var(--fa-radius));
}

.fa-tl.is-armed .fa-tl__item .fa-tl__body { transition-delay: 0.08s; }
.fa-tl.is-armed .fa-tl__item .fa-tl__media,
.fa-tl.is-armed .fa-tl__item .fa-tl__media img { transition-delay: 0.2s; }

.fa-tl.is-armed .fa-tl__chapter:not(.is-visible) > * {
	opacity: 0;
	transform: translateY(26px);
}

/* Tablet & phone: line on the left, one column. */
@media (max-width: 900px) {
	.fa-tl {
		--fa-tl-gutter: 0px;
	}

	.fa-tl::before,
	.fa-tl::after {
		left: 18px;
	}

	.fa-tl__item,
	.fa-tl__item:nth-child(even of .fa-tl__item),
	.fa-tl__item--text,
	.fa-tl__item--text:nth-child(even of .fa-tl__item) {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "date" "body" "media";
		padding: 26px 0 26px 48px;
		align-items: start;
	}

	.single-content .fa-tl__item p.fa-tl__date {
		justify-self: start;
		margin: 0 0 14px -48px;
		box-shadow: 0 0 0 5px var(--fa-paper);
	}

	.single-content .fa-tl__item figure.fa-tl__media {
		margin-top: 16px;
	}

	.fa-tl__media.fa-tl__media--portrait {
		justify-self: start;
	}

	.fa-tl__chapter {
		text-align: left;
		padding: 64px 0 20px 48px;
	}

	.single-content .fa-tl__chapter h2.fa-tl__chapter-title,
	.single-content .fa-tl__chapter p.fa-tl__chapter-intro {
		margin-left: 0;
		padding-left: 0;
		background: transparent;
	}

	.single-content .fa-tl__chapter p.fa-tl__chapter-years {
		margin-left: -48px;
	}

	.fa-tl.is-armed .fa-tl__item:not(.is-visible) .fa-tl__body,
	.fa-tl.is-armed .fa-tl__item:nth-child(even of .fa-tl__item):not(.is-visible) .fa-tl__body {
		transform: translateY(36px);
	}
}
