:root {
	--ggw-ink: #173a32;
	--ggw-body: #415a53;
	--ggw-green: #2e8b70;
	--ggw-green-dark: #216b58;
	--ggw-mint: #e8f7f1;
	--ggw-cream: #fff7e8;
	--ggw-orange: #ff7849;
	--ggw-orange-dark: #e85f31;
	--ggw-blue: #edf6fb;
	--ggw-line: #d7e4df;
	--ggw-white: #fff;
}

.ggw-page-shell--local {
	background: linear-gradient(180deg, #f7fcfa 0, #fff 280px);
}

.ggw-local-page-header,
.ggw-local-content,
.ggw-local-hub-nav {
	width: min(1120px, calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.ggw-local-page-header {
	padding: 42px 0 8px;
}

.ggw-local-page-title {
	margin: 0;
	color: var(--ggw-ink);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1.12;
	word-break: keep-all;
}

.ggw-local-content {
	padding-bottom: 80px;
}

.ggw-local,
.ggw-local * {
	box-sizing: border-box;
}

.ggw-local {
	color: var(--ggw-body);
	font-size: 17px;
	line-height: 1.75;
	word-break: keep-all;
}

.ggw-local h2,
.ggw-local h3,
.ggw-local p,
.ggw-local figure {
	margin-top: 0;
}

.ggw-local h2,
.ggw-local h3 {
	color: var(--ggw-ink);
	line-height: 1.3;
}

/* Gutenberg district cards: keep the pictogram and heading on one row. */
.prose .wp-block-column.has-background > p.has-custom-font-size:first-child,
.prose .wp-block-column.has-background > p.has-custom-font-size:first-child + h3.has-custom-font-size {
	display: inline-block;
	vertical-align: middle;
}

.prose .wp-block-column.has-background > p.has-custom-font-size:first-child {
	margin-right: 8px;
	margin-bottom: 10px;
	line-height: 1;
}

.prose .wp-block-column.has-background > p.has-custom-font-size:first-child + h3.has-custom-font-size {
	margin-top: 0 !important;
}

.ggw-local-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin: 12px 0 26px;
	color: #678078;
	font-size: 14px;
}

.ggw-local-breadcrumbs a {
	color: var(--ggw-green-dark);
	text-decoration: none;
}

.ggw-local-breadcrumbs a:hover,
.ggw-local-breadcrumbs a:focus-visible {
	text-decoration: underline;
}

.ggw-local-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
	gap: clamp(28px, 5vw, 68px);
	align-items: center;
	padding: clamp(32px, 6vw, 70px);
	border-radius: 32px;
	background: var(--ggw-mint);
	overflow: hidden;
}

.ggw-local-kicker,
.ggw-local-section__head > p,
.ggw-local-note > div > p,
.ggw-local-cta > p {
	margin-bottom: 12px;
	color: var(--ggw-green-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
}

.ggw-local-hero h2 {
	margin-bottom: 20px;
	font-size: clamp(2.1rem, 4.8vw, 4.2rem);
	font-weight: 850;
	letter-spacing: -.055em;
}

.ggw-local-lead {
	max-width: 620px;
	margin-bottom: 28px;
	font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.ggw-local-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ggw-local-button,
.ggw-local-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.ggw-local-button:hover,
.ggw-local-button:focus-visible,
.ggw-local-cta a:hover,
.ggw-local-cta a:focus-visible {
	transform: translateY(-2px);
}

.ggw-local-button--primary,
.ggw-local-cta a {
	background: var(--ggw-orange);
	box-shadow: 0 10px 24px rgba(232, 95, 49, .2);
	color: var(--ggw-white);
}

.ggw-local-button--primary:hover,
.ggw-local-button--primary:focus-visible,
.ggw-local-cta a:hover,
.ggw-local-cta a:focus-visible {
	background: var(--ggw-orange-dark);
	color: var(--ggw-white);
}

.ggw-local-button--light {
	border: 1px solid rgba(33, 107, 88, .22);
	background: rgba(255, 255, 255, .86);
	color: var(--ggw-green-dark);
}

.ggw-local-hero__image {
	position: relative;
	margin-bottom: 0;
}

.ggw-local-hero__image::before {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: #ffd96b;
	content: "";
}

.ggw-local-hero__image img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	box-shadow: 0 20px 48px rgba(23, 58, 50, .18);
	object-fit: cover;
}

.ggw-local-hero__image figcaption {
	position: relative;
	z-index: 2;
	width: calc(100% - 28px);
	margin: -24px auto 0;
	padding: 13px 18px;
	border-radius: 14px;
	background: var(--ggw-white);
	box-shadow: 0 10px 24px rgba(23, 58, 50, .1);
	color: var(--ggw-ink);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.ggw-local-section {
	padding: clamp(58px, 8vw, 96px) 0 0;
}

.ggw-local-section__head {
	max-width: 760px;
	margin-bottom: 30px;
}

.ggw-local-section__head h2,
.ggw-local-note h2,
.ggw-local-cta h2 {
	margin-bottom: 0;
	font-size: clamp(1.8rem, 3.5vw, 2.85rem);
	font-weight: 850;
	letter-spacing: -.04em;
}

.ggw-local-card-grid,
.ggw-local-grade-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ggw-local-card,
.ggw-local-grade-grid article {
	padding: 30px;
	border: 1px solid var(--ggw-line);
	border-radius: 22px;
	background: var(--ggw-white);
}

.ggw-local-card.is-cream { background: var(--ggw-cream); }
.ggw-local-card.is-blue { background: var(--ggw-blue); }
.ggw-local-card.is-green { background: var(--ggw-mint); }

.ggw-local-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: var(--ggw-white);
	color: var(--ggw-green);
}

.ggw-local-card__icon svg {
	width: 25px;
	height: 25px;
}

.ggw-local-card h3,
.ggw-local-grade-grid h3 {
	margin-bottom: 10px;
	font-size: 1.15rem;
	font-weight: 800;
}

.ggw-local-card p,
.ggw-local-grade-grid p {
	margin-bottom: 0;
}

.ggw-local-note {
	display: grid;
	grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
	gap: 22px 54px;
	align-items: center;
	margin-top: clamp(58px, 8vw, 96px);
	padding: clamp(30px, 5vw, 52px);
	border-left: 6px solid var(--ggw-orange);
	border-radius: 6px 24px 24px 6px;
	background: var(--ggw-cream);
}

.ggw-local-note > div {
	grid-row: span 2;
}

.ggw-local-note > p,
.ggw-local-note > span {
	margin: 0;
}

.ggw-local-note > span {
	font-size: 14px;
}

.ggw-local-grade-grid article span {
	display: inline-block;
	margin-bottom: 18px;
	color: var(--ggw-orange-dark);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .08em;
}

.ggw-local-related {
	padding-top: clamp(50px, 7vw, 78px);
}

.ggw-local-links {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 11px;
}

.ggw-local-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 12px;
	border: 1px solid var(--ggw-line);
	border-radius: 13px;
	background: var(--ggw-white);
	color: var(--ggw-ink);
	font-size: 15px;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
}

.ggw-local-links a:hover,
.ggw-local-links a:focus-visible {
	border-color: var(--ggw-green);
	background: var(--ggw-mint);
	color: var(--ggw-green-dark);
}

.ggw-local-links--dongs {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ggw-local-cta {
	margin-top: clamp(64px, 9vw, 110px);
	padding: clamp(42px, 7vw, 76px) 24px;
	border-radius: 28px;
	background: var(--ggw-green);
	color: #e9fff7;
	text-align: center;
}

.ggw-local-cta > p,
.ggw-local-cta h2 {
	color: var(--ggw-white);
}

.ggw-local-cta span {
	display: block;
	margin: 14px 0 26px;
}

@media (max-width: 880px) {
	.ggw-local-hero {
		grid-template-columns: 1fr;
	}

	.ggw-local-hero__image {
		max-width: 620px;
	}

	.ggw-local-card-grid,
	.ggw-local-grade-grid {
		grid-template-columns: 1fr;
	}

	.ggw-local-links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ggw-local-page-header,
	.ggw-local-content,
	.ggw-local-hub-nav {
		width: min(100% - 28px, 1120px);
	}

	.ggw-local-page-header {
		padding-top: 28px;
	}

	.ggw-local {
		font-size: 16px;
	}

	.ggw-local-hero {
		gap: 34px;
		padding: 30px 20px;
		border-radius: 22px;
	}

	.ggw-local-hero h2 {
		font-size: clamp(2rem, 11vw, 3rem);
	}

	.ggw-local-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.ggw-local-button {
		width: 100%;
	}

	.ggw-local-card,
	.ggw-local-grade-grid article {
		padding: 24px;
	}

	.ggw-local-note {
		grid-template-columns: 1fr;
		padding: 28px 24px;
	}

	.ggw-local-note > div {
		grid-row: auto;
	}

	.ggw-local-links,
	.ggw-local-links--dongs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ggw-local-links a {
		font-size: 14px;
	}
}


/* Seoul generated pages heading normalization - v1.1.7
 * Match subject/dong/dong-subject heading tone to the completed Seoul district-page standard.
 * Scope: generated local pages only.
 */
.ggw-local-hero h2,
.ggw-local-section__head h2,
.ggw-local-note h2,
.ggw-local-cta h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	letter-spacing: -.03em;
	line-height: 1.12;
	word-break: keep-all;
}

.ggw-local-kicker,
.ggw-local-section__head > p,
.ggw-local-note > div > p,
.ggw-local-cta > p {
	letter-spacing: .1em;
}
