/*
Theme Name: life-with-saki-astra-child
Theme URI: https://lifewithsaki.com/
Description: Update-safe Astra child theme for Life with Saki category hubs.
Author: Life with Saki
Template: astra
Version: 1.0.0
Text Domain: life-with-saki-astra-child
WPVibe: yes
*/

/*
 * Keep the existing homepage mascot's circular wrapper aligned with the
 * 140px image size. The core component otherwise expands to its grid column.
 */
.home .ejl-why-saki__image {
	width: 140px;
	max-width: 140px;
	height: 140px;
	margin-inline: auto;
}

.home .ejl-why-saki__image img {
	width: 100% !important;
	height: 100% !important;
}

.ap-hub {
	--ap-ink: #102638;
	--ap-deep: #071a2a;
	--ap-deep-2: #0c2d42;
	--ap-paper: #f7f4ec;
	--ap-card: #ffffff;
	--ap-line: #dce3e5;
	--ap-muted: #5c6d78;
	--ap-sea: #147b86;
	--ap-sea-soft: #e3f3f2;
	--ap-sun: #edaa38;
	--ap-red: #c64c3c;
	color: var(--ap-ink);
	background: var(--ap-paper);
	font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
	line-height: 1.65;
	overflow: hidden;
}

.ap-hub *,
.ap-hub *::before,
.ap-hub *::after {
	box-sizing: border-box;
}

.ap-hub a {
	color: inherit;
}

.ap-hub img {
	display: block;
	width: 100%;
	height: auto;
}

.ap-wrap {
	width: min(1160px, calc(100% - 40px));
	margin-inline: auto;
}

.ap-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(72px, 10vw, 132px) 0 70px;
	color: #fff;
	background:
		radial-gradient(circle at 82% 18%, rgba(237, 170, 56, .24), transparent 24%),
		linear-gradient(135deg, var(--ap-deep) 0%, var(--ap-deep-2) 58%, #125565 100%);
}

.ap-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .18;
	background-image:
		linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
}

.ap-kicker,
.ap-section-label {
	display: inline-block;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ap-kicker {
	margin-bottom: 18px;
	color: #9de2dd;
}

.ap-hero h1 {
	max-width: 900px;
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(42px, 7vw, 78px);
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: .98;
}

.ap-hero-copy {
	max-width: 790px;
	margin: 24px 0 0;
	color: #e8f0f2;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.58;
}

.ap-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.ap-hero-meta span {
	padding: 8px 12px;
	border: 1px solid rgba(255,255,255,.24);
	border-radius: 999px;
	background: rgba(255,255,255,.09);
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	backdrop-filter: blur(8px);
}

.ap-main {
	padding: 54px 0 86px;
}

.ap-definition-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 42px;
}

.ap-definition {
	padding: 22px 24px;
	border: 1px solid var(--ap-line);
	border-radius: 18px;
	background: rgba(255,255,255,.72);
}

.ap-definition h2 {
	margin: 0 0 7px;
	color: var(--ap-ink);
	font-size: 21px;
	line-height: 1.25;
}

.ap-definition p {
	margin: 0;
	color: var(--ap-muted);
	font-size: 15px;
}

.ap-jump {
	margin: 0 0 54px;
	padding: 24px;
	border-radius: 22px;
	background: var(--ap-card);
	box-shadow: 0 10px 34px rgba(16,38,56,.07);
}

.ap-jump-row + .ap-jump-row {
	margin-top: 17px;
	padding-top: 17px;
	border-top: 1px solid var(--ap-line);
}

.ap-jump strong {
	display: block;
	margin-bottom: 10px;
	color: var(--ap-muted);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ap-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.ap-chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #cbd8dc;
	border-radius: 999px;
	background: #fff;
	color: var(--ap-ink);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.ap-chip:hover,
.ap-chip:focus-visible {
	border-color: var(--ap-sea);
	color: var(--ap-sea);
	transform: translateY(-1px);
}

.ap-routes-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 34px;
}

.ap-section-label {
	color: var(--ap-sea);
}

.ap-routes-head h2,
.ap-group-title,
.ap-how h2,
.ap-planning h2 {
	color: var(--ap-ink);
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -.035em;
}

.ap-routes-head h2 {
	margin: 5px 0 0;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.06;
}

.ap-routes-head p {
	max-width: 470px;
	margin: 0;
	color: var(--ap-muted);
}

.ap-route-group {
	margin: 0 0 60px;
	scroll-margin-top: 28px;
}

.ap-group-title {
	margin: 0 0 18px;
	font-size: clamp(27px, 3.5vw, 38px);
	line-height: 1.15;
}

.ap-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ap-route-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ap-line);
	border-radius: 22px;
	background: var(--ap-card);
	box-shadow: 0 9px 28px rgba(16,38,56,.06);
	scroll-margin-top: 28px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ap-route-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 38px rgba(16,38,56,.12);
}

.ap-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #163b4d, #147b86);
}

.ap-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.ap-route-card:hover .ap-card-media img {
	transform: scale(1.025);
}

.ap-route-type {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(7,26,42,.88);
	color: #fff;
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.ap-card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.ap-card-work {
	margin-bottom: 7px;
	color: var(--ap-sea);
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ap-card-copy h3 {
	margin: 0;
	color: var(--ap-ink);
	font-size: 23px;
	line-height: 1.2;
	letter-spacing: -.025em;
}

.ap-card-copy h3 a {
	text-decoration: none;
}

.ap-card-copy h3 a:hover,
.ap-card-copy h3 a:focus-visible {
	color: var(--ap-sea);
}

.ap-card-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 14px 0;
}

.ap-card-facts span {
	padding: 5px 8px;
	border-radius: 8px;
	background: var(--ap-sea-soft);
	color: #175d64;
	font-size: 11px;
	font-weight: 800;
}

.ap-card-excerpt {
	margin: 0 0 18px;
	color: var(--ap-muted);
	font-size: 14px;
	line-height: 1.55;
}

.ap-card-link {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	color: var(--ap-sea);
	font-size: 14px;
	font-weight: 850;
	text-decoration: none;
}

.ap-card-link::after {
	content: "→";
	margin-left: 7px;
	transition: transform .18s ease;
}

.ap-card-link:hover::after {
	transform: translateX(3px);
}

.ap-how {
	margin: 68px 0 0;
	padding: clamp(28px, 5vw, 48px);
	border-radius: 28px;
	background: var(--ap-deep);
	color: #fff;
}

.ap-how h2 {
	margin: 5px 0 24px;
	color: #fff;
	font-size: clamp(31px, 4vw, 44px);
}

.ap-how-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.ap-step {
	padding: 20px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 17px;
	background: rgba(255,255,255,.07);
}

.ap-step b {
	display: block;
	margin-bottom: 9px;
	color: #8edbd6;
	font-size: 12px;
	letter-spacing: .08em;
}

.ap-step strong {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
}

.ap-step p {
	margin: 0;
	color: #ccdadd;
	font-size: 14px;
}

.ap-value {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 22px;
	align-items: start;
	margin: 22px 0 68px;
	padding: 28px;
	border: 1px solid var(--ap-line);
	border-radius: 22px;
	background: #fff;
}

.ap-value h2 {
	margin: 0;
	color: var(--ap-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(27px, 3vw, 37px);
	line-height: 1.16;
	letter-spacing: -.03em;
}

.ap-value p {
	margin: 0;
	color: var(--ap-muted);
}

.ap-planning {
	padding-top: 4px;
}

.ap-planning h2 {
	margin: 5px 0 20px;
	font-size: clamp(29px, 4vw, 40px);
}

.ap-planning-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.ap-plan-link {
	display: block;
	padding: 18px;
	border: 1px solid var(--ap-line);
	border-radius: 16px;
	background: #fff;
	text-decoration: none;
}

.ap-plan-link small {
	display: block;
	margin-bottom: 6px;
	color: var(--ap-sea);
	font-size: 10px;
	font-weight: 850;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ap-plan-link strong {
	display: block;
	line-height: 1.3;
}

.ap-plan-link:hover,
.ap-plan-link:focus-visible {
	border-color: var(--ap-sea);
	box-shadow: 0 8px 24px rgba(20,123,134,.09);
}

.ap-pagination {
	margin-top: 58px;
}

.ap-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ap-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--ap-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ap-ink);
	text-decoration: none;
}

.ap-pagination .page-numbers.current {
	border-color: var(--ap-sea);
	background: var(--ap-sea);
	color: #fff;
}

@media (max-width: 900px) {
	.ap-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ap-planning-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ap-routes-head,
	.ap-value {
		grid-template-columns: 1fr;
	}

	.ap-routes-head {
		display: block;
	}

	.ap-routes-head p {
		margin-top: 14px;
	}

	.ap-value {
		display: grid;
	}
}

@media (max-width: 620px) {
	.ap-wrap {
		width: min(100% - 24px, 1160px);
	}

	.ap-hero {
		padding: 62px 0 48px;
	}

	.ap-hero h1 {
		font-size: clamp(40px, 13vw, 58px);
		line-height: 1;
	}

	.ap-hero-copy {
		font-size: 17px;
	}

	.ap-main {
		padding: 34px 0 60px;
	}

	.ap-definition-grid,
	.ap-card-grid,
	.ap-how-grid,
	.ap-planning-grid,
	.ap-value {
		grid-template-columns: 1fr;
	}

	.ap-definition {
		padding: 18px;
	}

	.ap-jump {
		margin-bottom: 42px;
		padding: 18px;
	}

	.ap-route-group {
		margin-bottom: 46px;
	}

	.ap-route-card {
		border-radius: 18px;
	}

	.ap-card-copy {
		padding: 18px;
	}

	.ap-card-copy h3 {
		font-size: 22px;
	}

	.ap-how {
		margin-top: 52px;
		padding: 24px 18px;
		border-radius: 22px;
	}

	.ap-value {
		margin-bottom: 52px;
		padding: 22px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-hub *,
	.ap-hub *::before,
	.ap-hub *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
