/* /wp-content/themes/landtw-gp/style.css */
/*
Theme Name: LandTW GP Child
Theme URI: https://landtw.com/
Description: GeneratePress child theme for landtw.com — 2019 layout replication.
Author: LandTW
Template: generatepress
Version: 0.1
Text Domain: landtw-gp
*/

/* === Localized header (Hugo-style signboard) ============================ */

.landtw-localized-header {
	background: #ffffff;
	color: #333333;
}

/* Row 1 — red signboard, white text */
.landtw-signboard {
	text-align: center;
	padding: 0 1rem;
}

.landtw-signboard__link,
.landtw-signboard__link:hover,
.landtw-signboard__link:focus,
.landtw-signboard__link:visited {
	color: inherit;
	text-decoration: none;
}

.landtw-signboard__title {
	margin: 0;
	font-size: clamp(24px, 6vw, 64px);
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/*
 * Mobile: <br class="landtw-signboard__break"> renders, breaking the line
 * before the full-width space + brand name.
 * Desktop (>= 768px): hide the <br> so the title stays on one visual line;
 * the full-width space (　) in markup provides the inter-phrase gap.
 * Mirrors Hugo's <br class="md:hidden">.
 */
.landtw-signboard__break {
	display: inline;
}

/* The full-width space only separates the phrases on one line (desktop). */
.landtw-signboard__gap {
	display: none;
}

@media (min-width: 768px) {
	.landtw-signboard__break {
		display: none;
	}
	.landtw-signboard__gap {
		display: inline;
	}
	.landtw-signboard__title {
		white-space: nowrap;
	}
}

/* Row 2 — tagline + CTA */
.landtw-gp-header-row {
	padding-block: 0 4px;
}

.landtw-gp-header-row__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	align-items: center;
}

@media (min-width: 768px) {
	.landtw-gp-header-row__inner {
		grid-template-columns: 7fr 3fr;
		gap: 1rem;
	}
}

.landtw-tagline__text {
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
	text-align: justify;
}

/* Mobile: 16px reads comfortably on phones; 1.4 keeps the full positioning
   copy compact (same block height as the old 14px / 1.6). */
@media (max-width: 767px) {
	.landtw-tagline__text {
		font-size: 16px;
		line-height: 1.4;
	}
}

/* Phone + LINE CTA */
/* Phone number, note and LINE button read as one contact block: the block
   shrink-wraps to the phone number's width, sits at the right, and its rows
   share that width with centred text. */
.landtw-cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	justify-self: end;
	width: max-content;
	max-width: 100%;
	text-align: center;
}

.landtw-cta__phone-number,
.landtw-cta__phone-number:hover,
.landtw-cta__phone-number:focus,
.landtw-cta__phone-number:visited {
	display: block;
	font-size: 30px;
	font-weight: 800;
	color: #d9534f;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.landtw-cta__phone-note {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #333;
}

/* LINE CTA: a pill as wide as the phone number above it. #05873d keeps LINE's green family with 4.6:1 contrast for the
   white text (LINE's own #06c755 is 2.3:1). */
.landtw-cta__line,
.landtw-cta__line:hover,
.landtw-cta__line:focus,
.landtw-cta__line:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 4px;
	padding: 3px 12px;
	border-radius: 999px;
	background: #05873d;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.landtw-cta__line:hover,
.landtw-cta__line:focus {
	background: #046e32;
}

.landtw-cta__line .fa-line {
	font-size: 1.15em;
}

/* Phones: the contact lines carry the conversion, so set them larger. */
@media (max-width: 767px) {
	.landtw-cta__phone-note,
	.landtw-cta__line,
	.landtw-cta__line:hover,
	.landtw-cta__line:focus,
	.landtw-cta__line:visited {
		font-size: 16px;
	}
}

/* Row 3 — restored WordPress menu navigation */
.landtw-nav {
	background: transparent;
	margin-top: 0;
}

.landtw-nav__toggle {
	display: inline-block;
	padding: 10px;
	border: 0;
	background: transparent;
	color: #333333;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.landtw-nav__menu,
.landtw-nav__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.landtw-nav__menu {
	display: none;
}

.landtw-nav__menu.is-open {
	display: block;
}

.landtw-nav__item {
	position: relative;
}

.landtw-nav__link,
.landtw-nav__link:hover,
.landtw-nav__link:focus,
.landtw-nav__link:visited {
	display: block;
	padding: 10px;
	border: 1px solid transparent;
	color: #000000;
	font-size: 18px;
	font-weight: normal;
	line-height: 25.71428572px;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 300ms;
}

.landtw-nav__link:hover,
.landtw-nav__link:focus {
	background: #cccccc;
	color: #555555;
	border-color: #dddddd;
	font-weight: bold;
}

.landtw-nav__chevron {
	/* CSS-drawn triangle (the ▽ glyph is hidden). Gap to the label is
	   --landtw-nav-chevron-gap; size via the border widths below. */
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: var(--landtw-nav-chevron-gap, 4px);
	border-top: 5px solid currentColor;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
	font-size: 0;
	line-height: 0;
	vertical-align: middle;
}

.landtw-nav__submenu {
	display: none;
	background: #ffffff;
	z-index: 1001;
}

.landtw-nav__item--has-children:hover > .landtw-nav__submenu,
.landtw-nav__item--has-children:focus-within > .landtw-nav__submenu {
	display: block;
}

@media (min-width: 768px) {
	.landtw-nav__toggle {
		display: none;
	}

	.landtw-nav__menu {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		background-color: #ffffff;
		border-top: 1px solid #dddddd;
		border-bottom: 1px solid #dddddd;
		border-radius: 0;
		position: relative;
		overflow: visible;
	}

	.landtw-nav__menu > .landtw-nav__item + .landtw-nav__item {
		margin: 0;
	}

	.landtw-nav__menu > .landtw-nav__item > .landtw-nav__link {
		position: relative;
		display: block;
		padding: 10px var(--landtw-nav-pad-x, 12px);
		margin-top: -1px;
		margin-bottom: -1px;
		margin-right: 4px;
		box-sizing: border-box;
		background: transparent;
		color: #000000;
		font-size: 18px;
		font-weight: normal;
		line-height: 25.71428572px;
		border-top: 1px solid #dddddd;
		border-right: 1px solid transparent;
		border-bottom: 1px solid transparent;
		border-left: 1px solid transparent;
		border-radius: 0;
		white-space: nowrap;
		transition: all 300ms;
	}

	.landtw-nav__menu > .landtw-nav__item > .landtw-nav__link:hover,
	.landtw-nav__menu > .landtw-nav__item > .landtw-nav__link:focus,
	.landtw-nav__menu > .landtw-nav__item--has-children:hover > .landtw-nav__link,
	.landtw-nav__menu > .landtw-nav__item--has-children:focus-within > .landtw-nav__link {
		background-color: #cccccc;
		color: #000000;
		font-weight: bold;
		margin-top: -8px;
		padding: 17px var(--landtw-nav-pad-x, 12px) 10px;
		border: 1px solid #dddddd;
		border-bottom-color: #ffffff;
		border-radius: 10px 10px 0 0;
		text-decoration: none;
		z-index: 5;
	}

	.landtw-nav__menu > .current-menu-item > .landtw-nav__link,
	.landtw-nav__menu > .current_page_item > .landtw-nav__link,
	.landtw-nav__menu > .current-menu-parent > .landtw-nav__link,
	.landtw-nav__menu > .current-menu-ancestor > .landtw-nav__link {
		background-color: #ffffff;
		color: #555555;
		font-weight: normal;
		margin-top: -8px;
		padding: 17px var(--landtw-nav-pad-x, 12px) 10px;
		border: 1px solid #dddddd;
		border-bottom-color: #ffffff;
		border-radius: 10px 10px 0 0;
		box-shadow: 0 -3px 3px 0 rgba(51, 51, 51, 0.28);
		z-index: 10;
	}

	.landtw-nav__menu > .current-menu-item > .landtw-nav__link:hover,
	.landtw-nav__menu > .current_page_item > .landtw-nav__link:hover,
	.landtw-nav__menu > .current-menu-parent > .landtw-nav__link:hover,
	.landtw-nav__menu > .current-menu-ancestor > .landtw-nav__link:hover {
		background-color: #ffffff;
		color: #555555;
		font-weight: normal;
	}

	.landtw-nav__submenu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 160px;
		padding: 0 5px;
		margin: 1px;
		border: 0;
		background-color: #ffffff;
		border-radius: 0 0 15px 15px;
		box-shadow: 0 1px 5px 0 rgba(51, 51, 51, 0.25);
	}

	.landtw-nav__submenu .landtw-nav__link {
		display: block;
		padding: 10px;
		background-color: #ffffff;
		color: #000000;
		font-size: 18px;
		font-weight: normal;
		line-height: 25.71428572px;
		height: auto;
		margin: 0;
		border: 0;
		border-bottom: 1px solid #cccccc;
		border-radius: 0;
		box-shadow: none;
		text-align: left;
		text-transform: none;
		white-space: nowrap;
		transition: all 300ms ease 100ms;
	}

	.landtw-nav__submenu .landtw-nav__link:hover,
	.landtw-nav__submenu .landtw-nav__link:focus {
		background-color: #d8d87d;
		color: #555555;
		font-weight: bold;
		border-radius: 5px 5px 20px 20px;
		height: auto;
		margin: 0;
		text-decoration: none;
	}

	.landtw-nav__submenu li:last-child .landtw-nav__link {
		border-bottom: 0;
	}
}

@media (max-width: 1199px) {
	.landtw-nav {
		margin-top: 0;
	}

	/* Keep all top-level service items on one row at the 940px container. */
	.landtw-nav__menu {
		--landtw-nav-pad-x: 7px;
	}

	.landtw-nav__menu > .landtw-nav__item > .landtw-nav__link {
		font-size: 16px;
		line-height: 16px;
	}
}

@media (max-width: 991px) {
	.landtw-nav {
		margin-top: 0;
	}

	.landtw-nav__menu > .landtw-nav__item > .landtw-nav__link {
		line-height: 16px;
	}
}

@media (max-width: 767px) {
	.landtw-nav__menu {
		padding: 5px;
	}

	.landtw-nav__menu.is-open {
		display: block;
	}

	.landtw-nav__item {
		display: block;
		width: auto;
	}

	.landtw-nav__submenu {
		position: static;
		box-shadow: none;
	}

	.landtw-nav__link,
	.landtw-nav__link:hover,
	.landtw-nav__link:focus,
	.landtw-nav__link:visited {
		margin: 0;
		padding: 10px;
		border: 1px solid transparent;
		line-height: 25.71428572px;
	}

	.landtw-nav__link:hover,
	.landtw-nav__link:focus {
		border-color: #dddddd;
	}
}

/* Right sidebar — manually curated article navigation */
.landtw-sidebar-article-nav {
	width: 100%;
	max-width: 240px;
	margin: 12px auto 17px;
	background: #ffffff;
	border: 1px solid #d8d8d8;
}

.landtw-sidebar-article-nav__title {
	padding: 0.55rem 0.7rem;
	background: #3b5897;
	color: #ffffff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.landtw-sidebar-article-nav__list,
.landtw-sidebar-article-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.landtw-sidebar-article-nav__list li {
	margin: 0;
	border-top: 1px solid #e5e5e5;
}

.landtw-sidebar-article-nav__list > li:first-child {
	border-top: 0;
}

.landtw-sidebar-article-nav__list a,
.landtw-sidebar-article-nav__list a:visited {
	display: block;
	padding: 0.5rem 0.7rem;
	color: var(--landtw-link-color, #3177bd);
	font-size: 16px;
	line-height: 1.45;
	text-decoration: none;
}

.landtw-sidebar-article-nav__list .sub-menu a {
	padding-left: 1.4rem;
	font-size: 15px;
}

.landtw-sidebar-article-nav__list a:hover,
.landtw-sidebar-article-nav__list a:focus {
	background: #f2f5fb;
	text-decoration: underline;
}

.landtw-sidebar-article-nav__list .current-menu-item > a,
.landtw-sidebar-article-nav__list .current-menu-parent > a,
.landtw-sidebar-article-nav__list .current-menu-ancestor > a,
.landtw-sidebar-article-nav__list .current-category-ancestor > a {
	background: #e9eef8;
	color: #243c73;
	font-weight: 700;
}

/* Right sidebar — contact CTA */
.landtw-gp-sidebar-cta {
	width: 100%;
	max-width: 240px;
	margin: 12px auto 17px;
	border-radius: 10px;
	background-color: #000094;
	color: #ffffff;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	line-height: 25.71428572px;
	overflow: hidden;
}

.landtw-gp-sidebar-cta__headline {
	padding: 0.1rem 0.5rem 0;
}

.landtw-gp-sidebar-cta__headline p,
.landtw-gp-sidebar-cta__hours,
.landtw-footer p {
	margin: 0;
}

.landtw-gp-sidebar-cta__phone {
	margin: 0 0 6px;
	font-size: 24px;
	line-height: 1.2;
}

.landtw-gp-sidebar-cta__phone a,
.landtw-gp-sidebar-cta__phone a:hover,
.landtw-gp-sidebar-cta__phone a:focus,
.landtw-gp-sidebar-cta__phone a:visited {
	color: #ffffff;
	text-decoration: none;
}

.landtw-gp-sidebar-cta__icon {
	display: inline-block;
	margin-right: 0.1rem;
	font-size: 16px;
}

.landtw-gp-sidebar-cta__cols {
	display: grid;
	grid-template-columns: 7fr 5fr;
	column-gap: 0;
	align-items: end;
}

.landtw-gp-sidebar-cta__left,
.landtw-gp-sidebar-cta__right {
	display: flex;
	align-items: end;
	justify-content: flex-start;
	min-width: 0;
}

.landtw-gp-sidebar-cta__left {
	flex-direction: column;
	align-items: center;
	padding: 6px 0 6px 10px;
	text-align: center;
}

.landtw-gp-sidebar-cta__hours {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

.landtw-gp-sidebar-cta__btn,
.landtw-gp-sidebar-cta__btn:hover,
.landtw-gp-sidebar-cta__btn:focus,
.landtw-gp-sidebar-cta__btn:visited {
	display: inline-block;
	margin: 10px 0 6px;
	padding: 0.35rem 0.9rem;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: #ffffff;
	color: #000094;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
}

.landtw-gp-sidebar-cta__right img {
	display: block;
	width: auto;
	height: 100%;
	max-height: 195px;
}

@media (max-width: 991px) {
	.landtw-gp-sidebar-cta {
		font-size: 16px;
		line-height: 1.4;
	}

	.landtw-gp-sidebar-cta__phone {
		font-size: 21px;
	}

	.landtw-gp-sidebar-cta__cols {
		grid-template-columns: minmax(0, 1.3fr) minmax(88px, 0.7fr);
	}

	.landtw-gp-sidebar-cta__hours,
	.landtw-gp-sidebar-cta__btn {
		font-size: 14px;
	}

	.landtw-gp-sidebar-cta__right img {
		max-height: 190px;
	}
}

@media (max-width: 767px) {
	.landtw-gp-sidebar-cta {
		font-size: 15px;
		line-height: 1.35;
	}

	.landtw-gp-sidebar-cta__phone {
		font-size: 19px;
	}
}

.landtw-sidebar-card {
	width: 100%;
	max-width: 240px;
	margin: 0 auto 17px;
	line-height: 1.6;
	text-align: center;
}

.landtw-sidebar-card__title {
	width: 100%;
	background: #c3c4c7;
	padding: 0.4rem 0.5rem;
	font-weight: 700;
	line-height: 1.35;
}

.landtw-sidebar-card__content {
	width: 100%;
	background: #ffffff;
	padding: 0.35rem 0.45rem;
	font-size: 18px;
	/* Same line pitch as body copy (17px × 1.4286 ≈ 24.3px). */
	line-height: 1.35;
	text-align: left;
}

.landtw-sidebar-card__content--center {
	text-align: center;
}

.landtw-sidebar-card__content p {
	margin: 0 0 0.35rem;
}

.landtw-sidebar-card__content p:last-child {
	margin-bottom: 0;
}

.landtw-sidebar-card__image {
	width: 100%;
	padding: 0.5rem;
	text-align: center;
}

.landtw-sidebar-card__content:has(+ .landtw-sidebar-card__image) {
	padding-bottom: 0.25rem;
}

.landtw-sidebar-card__content + .landtw-sidebar-card__image {
	padding-top: 0;
	padding-bottom: 0.35rem;
}

.landtw-sidebar-card__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.landtw-sidebar-card__line,
.landtw-sidebar-card__line:hover,
.landtw-sidebar-card__line:focus,
.landtw-sidebar-card__line:visited {
	display: inline-block;
	margin-top: 0.4rem;
	background: #06c755;
	color: #ffffff;
	padding: 0.4rem 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

/* Footer — 原版 verbatim port (3-col grid + dark/light strip)
 * 色票：紅 #ff0000 / 深石板灰 #2f4f4f / 純藍 #0000ff /
 *       白字藍底 #fff on #0000ff / 兩格淺灰底 #efefef /
 *       底部 strip 淺灰 #dddddd 黑字 11px 圓底角
 */
.landtw-footer {
	background: #fff;
	color: #000;
}

.landtw-footer p {
	margin: 0;
}

.landtw-footer a,
.landtw-footer a:visited {
	color: inherit;
	text-decoration: none;
}

.landtw-footer a:hover,
.landtw-footer a:focus {
	text-decoration: underline;
}

.landtw-footer img.emoji {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.1em;
	margin: 0 0.05em 0 0.1em;
}

.landtw-footer__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

.landtw-footer__col {
	background: #efefef;
	padding: 0.9rem 1rem;
	font-size: 16px;
	line-height: 1.6;
	color: #000;
}

.landtw-footer__col--claims {
	text-align: center;
}

.landtw-footer__col--qr {
	text-align: center;
}

.landtw-footer__qr-title {
	margin: 0 0 0.6rem;
	font-weight: 700;
}

.landtw-footer__qr-link,
.landtw-footer__qr-link:visited {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

.landtw-footer__qr-img {
	display: block;
	width: 120px;
	height: 120px;
	max-width: 100%;
	margin: 0 auto;
	padding: 4px;
	background: #ffffff;
	border: 1px solid #d8d8d8;
	box-sizing: border-box;
}

.landtw-footer__qr-id {
	display: block;
	margin-top: 0.4rem;
	font-weight: 700;
	color: #06c755;
}

.landtw-footer__qr-note {
	margin: 0.3rem 0 0;
	font-size: 13px;
}

.landtw-footer__pill {
	color: #fff;
	background-color: #0000ff;
	padding: 0 0.2em;
}

.landtw-footer__strip {
	background: #dddddd;
	color: #000;
	font-family: "Noto Sans", Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
	font-size: 11px;
	line-height: 15.7px;
	text-align: center;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
	padding-block: 8px 10px;
}

.landtw-footer__strip b {
	color: #000;
	font-weight: 700;
}

/* no-sidebar layout: Col 3 隱藏、grid 變 2 欄
 * GeneratePress body classes: .no-sidebar / .full-width-content
 */
body.no-sidebar .landtw-footer__grid,
body.full-width-content .landtw-footer__grid {
	grid-template-columns: 1fr 1fr;
}

body.no-sidebar .landtw-footer__col--qr,
body.full-width-content .landtw-footer__col--qr {
	display: none;
}

@media (max-width: 720px) {
	.landtw-footer__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.landtw-district-grid {
	margin: 0 auto;
	padding: 0.75rem 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	font-size: 14px;
	line-height: 1.2;
	color: #444;
	text-align: center;
	max-width: 1000px;
}

.landtw-district-grid-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem 1rem;
}

.landtw-district-grid-col {
	margin: 0;
	padding: 0;
	list-style: none;
	column-width: 132px;
	column-gap: 1rem;
}

.landtw-district-grid-col li {
	margin: 0;
	padding: 0.15rem 0;
	list-style: none;
	break-inside: avoid;
}

.landtw-district-grid-col li.is-hub {
	font-weight: 700;
}

@media (max-width: 600px) {
	.landtw-district-grid {
		font-size: 13px;
	}
	.landtw-district-grid-col {
		column-width: 105px;
		column-gap: 0.5rem;
	}
}

.landtw-district-grid a,
.landtw-district-grid a:visited {
	color: #444;
	text-decoration: none;
}

.landtw-district-grid a:hover,
.landtw-district-grid a:focus {
	text-decoration: underline;
}

/* Sidebar card 2-column layout — fires when the sidebar container is
 * wide enough for two 240px-capped cards plus gap (~500px). Uses a
 * container query so it tracks the *sidebar* width, not the viewport.
 * container-type is scoped to <768px only: at >=768px the sticky-sidebar
 * library positions the sidebar with position:fixed, and a container-type
 * ancestor would become that fixed element's containing block — breaking
 * the positioning so the sidebar overlaps the footer. Sticky is disabled
 * below 768px, so container-type is safe there.
 */
@media (max-width: 767.98px) {
	.inside-right-sidebar {
		container-type: inline-size;
	}
}

@container (min-width: 500px) {
	.inside-right-sidebar .sticky-sidebar-root__inner,
	.inside-right-sidebar:has(> .landtw-sidebar-card) {
		column-count: 2;
		column-gap: 1rem;
		max-width: 540px;
		margin-left: auto;
		margin-right: auto;
	}

	.inside-right-sidebar .landtw-sidebar-card,
	.inside-right-sidebar .landtw-gp-sidebar-cta {
		break-inside: avoid;
	}
}

/* LandTW design tokens — link color is read by district-grid, sidebar
 * link list, and entry-content links. Tune here, propagates everywhere
 * that opts into the variable.
 */
:root {
	--landtw-container-sm: 750px;
	--landtw-container-md: 970px;
	--landtw-container-lg: 1170px;
	--landtw-gutter: 15px;
	--landtw-link-color: #3177bd;
	--landtw-uc-h3-size: 1.2rem;
	--landtw-uc-h3-weight: 700;
	--landtw-uc-h3-margin-top: 1rem;
	--landtw-uc-h3-margin-bottom: 0;
	--landtw-heading-color: #3b5897;
}

.landtw-nav__inner,
.landtw-gp-header-row,
.landtw-footer__grid,
.landtw-footer__strip,
.site-content {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--landtw-gutter);
}

@media (min-width: 768px) {
	.landtw-nav__inner,
	.landtw-gp-header-row,
	.landtw-footer__grid,
	.landtw-footer__strip,
	.site-content {
		max-width: var(--landtw-container-sm);
	}
}

@media (min-width: 992px) {
	.landtw-nav__inner,
	.landtw-gp-header-row,
	.landtw-footer__grid,
	.landtw-footer__strip,
	.site-content {
		max-width: var(--landtw-container-md);
	}
}

@media (min-width: 1200px) {
	.landtw-nav__inner,
	.landtw-gp-header-row,
	.landtw-footer__grid,
	.landtw-footer__strip,
	.site-content {
		max-width: var(--landtw-container-lg);
	}
}

.entry-content a,
.entry-content a:visited {
	color: var(--landtw-link-color);
}

.entry-content h2,
.under-content-normal h2,
.under-content-inheritance h2,
.under-content-gift h2,
.under-content-will h2,
.under-content-disclaimer h2,
h2.wp-block-heading {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin-top: 1.25rem;
	margin-bottom: 0.3rem;
	color: var(--landtw-heading-color);
	border-left: 4px solid var(--landtw-heading-color);
	padding-left: 0.6rem;
}

.entry-content h3,
.under-content-normal h3,
.under-content-inheritance h3,
.under-content-gift h3,
.under-content-will h3,
.under-content-disclaimer h3,
h3.wp-block-heading {
	font-size: var(--landtw-uc-h3-size);
	font-weight: var(--landtw-uc-h3-weight);
	color: var(--landtw-heading-color);
	margin-block-start: var(--landtw-uc-h3-margin-top);
	margin-block-end: var(--landtw-uc-h3-margin-bottom);
	margin-inline: 0;
	line-height: 1.5;
}

/* H4 sub-headings (older articles) read like H3, a step smaller, instead of the
   large black GP default that looked louder than the H2 above them. */
.entry-content h4,
h4.wp-block-heading {
	font-size: 17px;
	font-weight: 700;
	color: var(--landtw-heading-color);
	margin: 0.8rem 0 0;
	line-height: 1.5;
}

/* Closing CTA after under-content templates; content = synced pattern (inc/tail-cta.php). */
.under-content-cta {
	margin-top: 1.5rem;
	padding: 1rem 1.1rem;
	border: 2px solid var(--landtw-heading-color);
	border-radius: 8px;
	background: #f7f8fb;
}

.under-content-cta > .wp-block-group__inner-container {
	padding: 0;
	margin: 0;
	max-width: none;
}

.under-content-cta p {
	margin: 0 0 0.6rem;
}

.under-content-cta__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--landtw-heading-color);
}

.under-content-cta .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.8rem 0;
}

.under-content-cta .wp-block-button {
	flex: 1 1 200px;
	margin: 0;
}

.under-content-cta a.wp-block-button__link,
.under-content-cta a.wp-block-button__link:visited {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	background: var(--landtw-heading-color);
}

.under-content-cta .under-content-cta__btn--line a.wp-block-button__link {
	background: #06c755;
}

.under-content-cta__note {
	font-size: 0.9rem;
	color: #555;
}

.wp-block-heading {
	font-size: 1.8rem;
	margin-top: 1.5rem;
	margin-bottom: 0.3rem;
}

.inside-right-sidebar,
.widget-area.sidebar {
	padding-left: 0;
}

.separate-containers .site-main {
	margin: 0;
}

.separate-containers .inside-article {
	padding: 10px;
}

/*
 * GP's dynamic CSS gives every classic-theme group inner container the full
 * content padding (40px desktop / 30px mobile). Plain groups are only layout
 * wrappers, so that padding indents content and stacks once per nesting level.
 * Groups that carry their own background keep GP's padding.
 */
.site-main .wp-block-group:not(.has-background) > .wp-block-group__inner-container {
	padding: 0;
}

/* GP's 40px hr margin leaves ~80px of empty space around block separators;
   8px keeps stacked cards (e.g. the front-page service cards) compact. */
.entry-content .wp-block-separator {
	margin-top: 8px;
	margin-bottom: 8px;
}

.entry-title {
	margin-top: 0;
	margin-bottom: 0;
	padding-bottom: 0;
	color: #000000;
	border-top: 0;
	border-right: 0;
	border-bottom: 1px solid #cccccc;
	border-left: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
}

@media (max-width: 1199px) {
	.entry-title {
		font-size: 30px;
		line-height: 1.15;
	}
}

@media (max-width: 991px) {
	.entry-title {
		font-size: 24px;
		line-height: 1.15;
	}
}

@media (max-width: 767px) {
	h1.entry-title,
	h2.entry-title,
	.entry-title {
		margin-top: 0;
		padding-top: 0;
		padding-bottom: 0;
		color: #9b5f60;
		font-size: 26px;
		font-weight: normal;
		line-height: 1.15;
	}
}

/* =====================================================================
 * Service hub (/services/)
 * Core Gutenberg blocks remain the authoring surface; these classes only
 * provide the card, navigation, and CTA presentation for this one page.
 * ===================================================================== */

.page-id-2096 .landtw-service-hub {
	--landtw-service-accent: #9b5f60;
	--landtw-service-heading: #3b5897;
	--landtw-service-border: #e2e6ed;
	--landtw-service-soft: #f7f8fb;
}

.page-id-2096 .landtw-service-hero {
	margin-block: 0 2rem;
	padding: clamp(1.25rem, 4vw, 2.25rem);
	border: 1px solid var(--landtw-service-border);
	border-left: 5px solid var(--landtw-service-accent);
	border-radius: 12px;
	background: #fffaf9;
}

.page-id-2096 .landtw-service-hero__lead {
	margin-bottom: 1rem;
	font-size: clamp(1.05rem, 2.2vw, 1.2rem);
	line-height: 1.75;
}

.page-id-2096 .landtw-service-trust {
	margin-block: 1rem;
}

/* Classic-theme groups wrap children in an inner container; grid that wrapper. */
.page-id-2096 .landtw-service-trust > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

.page-id-2096 .landtw-service-trust p {
	margin: 0;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	background: #fff;
	font-weight: 700;
	text-align: center;
}

.page-id-2096 .landtw-service-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-block: 0 2rem;
}

.page-id-2096 .landtw-service-quick-links .wp-block-button__link {
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--landtw-service-heading);
	border-radius: 999px;
	background: #fff;
	color: var(--landtw-service-heading);
	font-size: 0.95rem;
	font-weight: 700;
}

.page-id-2096 .landtw-service-quick-links .wp-block-button__link:hover,
.page-id-2096 .landtw-service-quick-links .wp-block-button__link:focus {
	background: var(--landtw-service-heading);
	color: #fff;
}

.page-id-2096 .landtw-service-section {
	margin-block: 2.5rem;
}

.page-id-2096 .landtw-service-section > h2 {
	margin-bottom: 0.5rem;
	color: var(--landtw-service-heading);
}

.page-id-2096 .landtw-service-card-grid.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}

.page-id-2096 .landtw-service-card-grid > .wp-block-column {
	display: flex;
}

.page-id-2096 .landtw-service-card {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.2rem;
	border: 1px solid var(--landtw-service-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(42, 54, 78, 0.06);
}

.page-id-2096 .landtw-service-card h3 {
	margin: 0 0 0.55rem;
	color: var(--landtw-service-heading);
	font-size: 1.12rem;
}

.page-id-2096 .landtw-service-card p {
	margin-bottom: 0.75rem;
}

.page-id-2096 .landtw-service-card__tag {
	color: #666;
	font-size: 0.9rem;
}

.page-id-2096 .landtw-service-card__link {
	margin-top: auto;
	font-weight: 700;
}

.page-id-2096 .landtw-service-support,
.page-id-2096 .landtw-service-areas,
.page-id-2096 .landtw-service-why,
.page-id-2096 .landtw-service-final-cta {
	margin-block: 2.5rem;
	padding: clamp(1.1rem, 3vw, 1.75rem);
	border-radius: 12px;
	background: var(--landtw-service-soft);
}

.page-id-2096 .landtw-service-final-cta {
	background: #3b5897;
	color: #fff;
	text-align: center;
}

.page-id-2096 .landtw-service-final-cta h2 {
	color: #fff;
}

.page-id-2096 .landtw-service-final-cta .wp-block-button__link {
	background: #fff;
	color: #3b5897;
	font-weight: 700;
}

.page-id-2096 .landtw-service-faq .wp-block-details {
	margin-bottom: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--landtw-service-border);
	border-radius: 8px;
	background: #fff;
}

.page-id-2096 .landtw-service-faq summary {
	cursor: pointer;
	font-weight: 700;
}

@media (max-width: 767px) {
	.page-id-2096 .landtw-service-trust > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
	}

	.page-id-2096 .landtw-service-quick-links {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.4rem;
		scrollbar-width: thin;
	}

	.page-id-2096 .landtw-service-quick-links .wp-block-button {
		flex: 0 0 auto;
	}
}

@media (max-width: 1024px) {
	.page-id-2096 .landtw-service-card-grid.wp-block-columns {
		grid-template-columns: 1fr;
	}
}

/* =====================================================================
 * Google Ads 廣告著陸頁 (page-landing.php)
 * 無導航、無側欄、無頁尾，聚焦單一 CTA。
 * ===================================================================== */

/* --- 關閉不需要的全站元素 --- */
.landtw-landing .landtw-floating-buttons,
.landtw-landing .landtw-localized-header,
.landtw-landing .landtw-footer,
.landtw-landing .landtw-district-grid,
.landtw-landing .landtw-under-content,
.landtw-landing .landtw-related-posts,
.landtw-landing #right-sidebar,
.landtw-landing .sidebar,
.landtw-landing .generate-back-to-top {
	display: none !important;
}

/* --- 頁面容器 --- */
.landtw-landing {
	background: #fff;
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- 頂欄：品牌 + 電話 --- */
.landtw-landing-header {
	background: #b22222;
	color: #fff;
	padding: 0 1rem;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.landtw-landing-header__inner {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 52px;
}

.landtw-landing-brand {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.landtw-landing-brand:hover {
	color: #fff;
	text-decoration: none;
}

.landtw-landing-phone {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.landtw-landing-phone:hover {
	color: #ffd700;
	text-decoration: none;
}

/* --- 主內容區 --- */
.landtw-landing-main {
	max-width: 800px;
	margin: 2rem auto 0;
	padding: 0 1rem 10rem;
}

.landtw-landing-article {
	background: #fff;
}

.landtw-landing-title {
	font-size: clamp(24px, 5vw, 36px);
	font-weight: 700;
	line-height: 1.3;
	color: #b22222;
	margin: 0 0 1.5rem;
	padding: 0;
}

/* 與 GP entry-content 相容：保留既有文章樣式 */
.landtw-landing-content.entry-content h2 {
	font-size: clamp(20px, 4vw, 28px);
	line-height: 1.4;
	color: #333;
	margin: 2rem 0 0.75rem;
}

.landtw-landing-content.entry-content h3 {
	font-size: clamp(17px, 3.5vw, 22px);
	line-height: 1.4;
	color: #555;
	margin: 1.5rem 0 0.5rem;
}

.landtw-landing-content.entry-content p {
	margin: 0 0 1.25rem;
	line-height: 1.8;
	font-size: 16px;
}

.landtw-landing-content.entry-content ul,
.landtw-landing-content.entry-content ol {
	padding-left: 1.5rem;
	margin: 0 0 1.25rem;
}

.landtw-landing-content.entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.7;
}

/* --- 底部 CTA 列 --- */
.landtw-landing-cta-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 2px solid #b22222;
	padding: 0.75rem 1rem;
	z-index: 999;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

.landtw-landing-cta-bar__inner {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	justify-content: center;
}

.landtw-landing-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: opacity 0.15s;
	white-space: nowrap;
}

.landtw-landing-btn:hover {
	opacity: 0.9;
	text-decoration: none;
}

.landtw-landing-btn--phone {
	background: #b22222;
	color: #fff;
}

.landtw-landing-btn--phone:hover {
	color: #ffd700;
}

.landtw-landing-btn--line {
	background: #06c755;
	color: #fff;
}

.landtw-landing-btn--line:hover {
	color: #fff;
}

/* --- 桌面調整 --- */
@media (min-width: 768px) {
	.landtw-landing-header__inner {
		height: 56px;
	}

	.landtw-landing-brand {
		font-size: 20px;
	}

	.landtw-landing-phone {
		font-size: 17px;
	}

	.landtw-landing-main {
		margin-top: 3rem;
		padding-bottom: 10rem;
	}

	.landtw-landing-cta-bar {
		padding: 1rem 2rem;
	}

	.landtw-landing-cta-bar__inner {
		flex-direction: row;
		gap: 1rem;
	}

	.landtw-landing-btn {
		padding: 1rem 2rem;
		font-size: 18px;
	}
}

/* Native FAQ (core/details with the landtw-faq class) — sitewide, matches the
   /services/ FAQ cards. Replaces the Yoast FAQ block look. */
.wp-block-details.landtw-faq {
	margin: 0 0 0.75rem;
	padding: 0;
	border: 1px solid #d9dee8;
	border-radius: 8px;
	background: #fff;
}

.wp-block-details.landtw-faq > summary {
	position: relative;
	padding: 0.85rem 2.6rem 0.85rem 1rem;
	color: #3b5897;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

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

.wp-block-details.landtw-faq > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	color: #3177bd;
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1;
}

.wp-block-details.landtw-faq[open] > summary::after {
	content: "−";
}

.wp-block-details.landtw-faq[open] > summary {
	border-bottom: 1px solid #e5e9f0;
}

.wp-block-details.landtw-faq > :not(summary) {
	margin: 0;
	padding: 0.75rem 1rem 0.9rem;
}

/* 代書費一覽 box at the top of service hub pages (group block, class
   landtw-fee-box, anchor #fee). Menu items 「XXX代書費用」 link to #fee. */
.wp-block-group.landtw-fee-box {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem 0.7rem;
	border: 2px solid #3177bd;
	border-radius: 8px;
	background: #f5f9fd;
	scroll-margin-top: 90px;
}

.wp-block-group.landtw-fee-box .landtw-fee-box__title {
	margin: 0 0 0.4rem;
	padding: 0;
	border: 0;
	color: #3b5897;
	font-size: 1.15rem;
}

.wp-block-group.landtw-fee-box .wp-block-table {
	margin: 0;
}

.wp-block-group.landtw-fee-box .wp-block-table table {
	border: 0;
	border-collapse: collapse;
}

.wp-block-group.landtw-fee-box .wp-block-table td {
	padding: 0.35rem 0;
	border: 0;
	border-bottom: 1px dashed #c9d7e8;
}

.wp-block-group.landtw-fee-box .wp-block-table td:last-child {
	color: #c00000;
	font-weight: 700;
	text-align: right;
	white-space: nowrap;
}

.wp-block-group.landtw-fee-box .wp-block-table tr:last-child td {
	border-bottom: 0;
}

.wp-block-group.landtw-fee-box .wp-block-table td a {
	color: #3177bd;
	font-weight: 400;
}

.wp-block-group.landtw-fee-box .wp-block-table,
.wp-block-group.landtw-fee-box .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.wp-block-group.landtw-fee-box .wp-block-table table {
	margin-bottom: 0;
}

/* =====================================================================
 * Compact post archives (blog home, category, tag, /topic/<slug>/).
 * body.landtw-archive-list is added by functions.php on those views only.
 * One white list: each post is a row (title, updated date, two-line
 * excerpt, optional 96px thumbnail on the right). Selectors carry the
 * .separate-containers context so they outrank GP's 0,2,0 layout rules.
 * ===================================================================== */

.landtw-archive-list.separate-containers .page-header {
	margin-bottom: 0;
	/* Same tight box as a single post's .inside-article (GP default 40px). */
	padding: 10px;
	border-bottom: 1px solid #e2e6ed;
}

/* Archive H1 follows the single-post title (.entry-title): size per
   breakpoint, weight, line-height 1.15 and no bottom margin. */
.landtw-archive-list.separate-containers .page-header .page-title {
	margin: 0;
	padding: 0;
	color: #000000;
	border-bottom: 1px solid #cccccc;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
}

@media (max-width: 1199px) {
	.landtw-archive-list.separate-containers .page-header .page-title {
		font-size: 30px;
	}
}

@media (max-width: 991px) {
	.landtw-archive-list.separate-containers .page-header .page-title {
		font-size: 24px;
	}
}

@media (max-width: 767px) {
	.landtw-archive-list.separate-containers .page-header .page-title {
		color: #9b5f60;
		font-size: 26px;
		font-weight: normal;
	}
}

.landtw-archive-list.separate-containers .page-header .landtw-fee-box {
	margin: 1rem 0 0;
}

.landtw-archive-list.separate-containers .site-main > article {
	margin-bottom: 0;
}

.landtw-archive-list.separate-containers .site-main > article .inside-article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"header image"
		"summary image";
	column-gap: 1rem;
	align-items: start;
	padding: 0.7rem 1.5rem;
	border-bottom: 1px solid #e2e6ed;
}

.landtw-archive-list.separate-containers .site-main > article .entry-header {
	grid-area: header;
}

.landtw-archive-list.separate-containers .site-main > article .entry-title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
	color: #000000;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.landtw-archive-list.separate-containers .site-main > article .entry-title a {
	color: inherit;
}

.landtw-archive-list.separate-containers .site-main > article .entry-title a:hover,
.landtw-archive-list.separate-containers .site-main > article .entry-title a:focus {
	color: #3177bd;
}

.landtw-archive-list.separate-containers .site-main > article .entry-meta {
	margin-top: 0;
	color: #6b7280;
	font-size: 0.85rem;
	line-height: 1.4;
	text-align: right;
}

.landtw-archive-list.separate-containers .site-main > article .entry-summary {
	grid-area: summary;
	margin-top: 0.15rem;
}

.landtw-archive-list.separate-containers .site-main > article .entry-summary p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: #444444;
	font-size: 0.95rem;
	line-height: 1.43;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.landtw-archive-list.separate-containers .site-main > article .post-image {
	grid-area: image;
	width: 96px;
	margin: 0.25rem 0 0;
}

.landtw-archive-list.separate-containers .site-main > article .post-image img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 6px;
	object-fit: cover;
}

.landtw-archive-list.separate-containers .paging-navigation {
	margin-top: 20px;
}

@media (max-width: 767px) {
	.landtw-archive-list.separate-containers .site-main > article .inside-article {
		column-gap: 0.75rem;
		padding: 0.8rem 1rem;
	}

	.landtw-archive-list.separate-containers .site-main > article .entry-title {
		color: #000000;
		font-size: 1.08rem;
		font-weight: 700;
		line-height: 1.35;
	}

	.landtw-archive-list.separate-containers .site-main > article .entry-summary p {
		font-size: 0.9rem;
	}

	.landtw-archive-list.separate-containers .site-main > article .post-image,
	.landtw-archive-list.separate-containers .site-main > article .post-image img {
		width: 72px;
		height: 72px;
	}
}

/* 法源依據 / 參考資料: statute and ruling links at the end of legal articles.
   Smaller and muted but fully legible (Google treats invisible or
   zero-size links as hidden-link spam). Links open in a new tab. */
.entry-content p.landtw-sources {
	margin-top: 2rem;
	padding-top: 0.75rem;
	border-top: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 0.85rem;
	line-height: 1.8;
}

.entry-content p.landtw-sources a {
	color: #4b6a9b;
}

/* 重點整理 key-points box near the top of key articles (group block, class
   landtw-keypoints, heading + list; no paragraphs so Easy TOC is not inserted
   inside it). Short scannable bullets for readers and AI answer engines. */
.wp-block-group.landtw-keypoints {
	margin: 0 0 1.5rem;
	padding: 0.9rem 1.1rem 0.6rem;
	border-left: 4px solid #3177bd;
	border-radius: 6px;
	background: #f7f9fc;
}

.wp-block-group.landtw-keypoints .landtw-keypoints__title {
	margin: 0 0 0.4rem;
	padding: 0;
	border: 0;
	color: #3b5897;
	font-size: 1.1rem;
}

.wp-block-group.landtw-keypoints ul {
	margin: 0 0 0 1.2rem;
}

.wp-block-group.landtw-keypoints li {
	margin: 0;
}

/* Opening pitch under the title (plugin landtw-brand-blocks inc/intro-pitch.php).
   Reads as body text on purpose (no box, no divider); phone red like the tail. */
.landtw-intro-pitch {
	margin: 0;
}

.landtw-intro-pitch p {
	margin: 0 0 0.6rem;
}

.landtw-intro-pitch .landtw-intro-pitch__phone {
	color: #ff0000;
	font-weight: 700;
	text-decoration: none;
}

.landtw-intro-pitch .landtw-intro-pitch__line {
	color: #06c755;
	font-weight: 700;
	text-decoration: none;
}

.landtw-intro-pitch .landtw-intro-pitch__email {
	color: inherit;
	text-decoration: none;
}

/* Post meta (「更新：日期 作者」) sits at the right on single posts/pages so it does
   not interrupt reading the title → intro → body flow. */
.single .entry-header .entry-meta,
.page .entry-header .entry-meta {
	margin: 0;
	text-align: right;
}

/* GP adds 2em above .entry-content when anything precedes it (title, meta,
   opening pitch). On singular views the pitch already ends with spacing, so
   the gap is removed. Specificity 0,3,0 beats GP's 0,2,0. */
.single .entry-content:not(:first-child),
.page .entry-content:not(:first-child) {
	margin-top: 0;
}

/* Chinese lists read as one compact cluster: no gap between items, body
   line-height, small space after the list. Ads landings keep their own rules. */
.entry-content ul,
.entry-content ol {
	margin-bottom: 0.6rem;
}

.entry-content li {
	margin-top: 0;
	margin-bottom: 0;
}

/* Easy TOC: collapsed by default (plugin setting). Keep the collapsed bar to one
   compact line on the left so it barely interrupts the body. */
#ez-toc-container {
	padding: 4px 10px;
	margin: 0 0 0.8rem;
}

#ez-toc-container .ez-toc-title-container {
	display: flex;
	align-items: center;
	gap: 8px;
}

#ez-toc-container .ez-toc-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	cursor: pointer;
}

#ez-toc-container .ez-toc-title-toggle .ez-toc-btn {
	padding: 1px 4px;
	line-height: 1;
}

/* Flex parent drops the template whitespace between label and chevron, so
   the gap is exactly --landtw-nav-chevron-gap. Same specificity as the
   desktop link rule (0,3,0), later in the file. */
.landtw-nav__menu .landtw-nav__item--has-children > .landtw-nav__link {
	display: flex;
	align-items: center;
}

/* Archive list: on wider screens the date sits on the title's row, right side,
   so each item saves a line. Mobile keeps it under the title, right-aligned. */
@media (min-width: 768px) {
	.landtw-archive-list.separate-containers .site-main > article .entry-header {
		display: flex;
		align-items: baseline;
		gap: 1rem;
	}

	.landtw-archive-list.separate-containers .site-main > article .entry-header .entry-title {
		flex: 1 1 auto;
		min-width: 0;
	}

	.landtw-archive-list.separate-containers .site-main > article .entry-header .entry-meta {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* Front-page service cards (core/media-text with class landtw-service-card;
   image width 30% is the block's own mediaWidth). The price line sits under
   the card title; prices come from [landtw-price] so they track the fee table. */
.entry-content .landtw-card-price {
	margin: 0 0 0.3rem;
	color: #d40000;
	font-size: 16px;
	font-weight: 700;
}

.entry-content .landtw-card-price strong {
	font-size: 18px;
}

/* Phones: the block stacks image above text; keep the image small and centred. */
@media (max-width: 600px) {
	.entry-content .wp-block-media-text.landtw-service-card.is-stacked-on-mobile > .wp-block-media-text__media {
		width: 60%;
		margin: 0 auto;
	}

	.entry-content .wp-block-media-text.landtw-service-card.is-stacked-on-mobile > .wp-block-media-text__content {
		padding: 4px 0 0;
	}
}

/* Service cards are whole-card links: the title link's ::after covers the
   card (stretched link), a › arrow signals "tap to open", and the border
   reads as a selectable option. Content stays native blocks; the link is the
   heading's own <a>. Separators between cards are redundant with the border. */
.entry-content .wp-block-media-text.landtw-service-card {
	position: relative;
	margin: 0 0 10px;
	padding: 10px 40px 10px 10px;
	border: 1px solid #dde3ec;
	border-radius: 10px;
	background: #ffffff;
	transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}

.entry-content .wp-block-media-text.landtw-service-card::after {
	content: "›";
	position: absolute;
	top: 50%;
	right: 14px;
	color: #9aa5b4;
	font-size: 40px;
	line-height: 1;
	transform: translateY(-50%);
	pointer-events: none;
}

.entry-content .landtw-service-card .wp-block-heading a {
	color: inherit;
	text-decoration: none;
}

.entry-content .landtw-service-card .wp-block-heading a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.entry-content .wp-block-media-text.landtw-service-card:hover,
.entry-content .wp-block-media-text.landtw-service-card:focus-within {
	border-color: var(--landtw-heading-color);
	box-shadow: 0 4px 14px rgba(59, 88, 151, 0.15);
	transform: translateY(-1px);
}

.entry-content .wp-block-media-text.landtw-service-card:hover::after,
.entry-content .wp-block-media-text.landtw-service-card:focus-within::after {
	color: var(--landtw-heading-color);
}

.entry-content .landtw-service-card + .wp-block-separator,
.entry-content .wp-block-separator:has(+ .landtw-service-card) {
	display: none;
}

@media (max-width: 600px) {
	.entry-content .wp-block-media-text.landtw-service-card {
		padding: 10px 34px 10px 10px;
	}

	.entry-content .wp-block-media-text.landtw-service-card::after {
		right: 10px;
		font-size: 34px;
	}
}

/* HTML sitemap page (/sitemap-html/): service links as a wrapped row, per-category
   Query Loop post lists as a compact two-column bullet list. */
.entry-content .landtw-sitemap-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.entry-content .landtw-sitemap-posts {
	margin: 0 0 1em;
}

.entry-content .landtw-sitemap-posts .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
	column-gap: 2em;
}

.entry-content .landtw-sitemap-posts .wp-block-post-template > li {
	position: relative;
	margin: 0 0 4px;
	padding-left: 1em;
	break-inside: avoid;
}

.entry-content .landtw-sitemap-posts .wp-block-post-template > li::before {
	content: "";
	position: absolute;
	top: .65em;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.entry-content .landtw-sitemap-posts .wp-block-post-title {
	margin: 0;
	font-size: inherit;
	font-weight: 400;
	line-height: 1.5;
}

@media (min-width: 769px) {
	.entry-content .landtw-sitemap-posts .wp-block-post-template {
		columns: 2;
	}
}

/* Sitemap: long per-city district lists fold behind a core/details toggle (closed by default). */
.entry-content .wp-block-details.landtw-sitemap-fold {
	margin: 0 0 1em;
}

.entry-content .wp-block-details.landtw-sitemap-fold > summary {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid #dde3ec;
	border-radius: 6px;
	color: var(--landtw-heading-color);
	cursor: pointer;
	list-style: none;
}

.entry-content .wp-block-details.landtw-sitemap-fold > summary::-webkit-details-marker {
	display: none;
}

.entry-content .wp-block-details.landtw-sitemap-fold > summary::after {
	content: " ▾";
}

.entry-content .wp-block-details.landtw-sitemap-fold[open] > summary::after {
	content: " ▴";
}

.entry-content .wp-block-details.landtw-sitemap-fold[open] > summary {
	margin-bottom: 8px;
}

/* /wp-content/plugins/tablepress/css/build/default.css */
.tablepress{--text-color:#111;--head-text-color:var(--text-color);--head-bg-color:#d9edf7;--odd-text-color:var(--text-color);--odd-bg-color:#fff;--even-text-color:var(--text-color);--even-bg-color:#f9f9f9;--hover-text-color:var(--text-color);--hover-bg-color:#f3f3f3;--border-color:#ddd;--padding:0.5rem;border:none;border-collapse:collapse;border-spacing:0;clear:both;margin:0 auto 1rem;table-layout:auto;width:100%}.tablepress>:not(caption)>*>*{background:none;border:none;box-sizing:border-box;float:none!important;padding:var(--padding);text-align:left;vertical-align:top}.tablepress>:where(thead)+tbody>:where(:not(.child))>*,.tablepress>tbody>*~:where(:not(.child))>*,.tablepress>tfoot>:where(:first-child)>*{border-top:1px solid var(--border-color)}.tablepress>:where(thead,tfoot)>tr>*{background-color:var(--head-bg-color);color:var(--head-text-color);font-weight:700;vertical-align:middle;word-break:normal}.tablepress>:where(tbody)>tr>*{color:var(--text-color)}.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))>*{background-color:var(--odd-bg-color);color:var(--odd-text-color)}.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))+:where(.child)>*,.tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))>*{background-color:var(--even-bg-color);color:var(--even-text-color)}.tablepress>.row-hover>tr{content-visibility:auto}.tablepress>.row-hover>tr:has(+.child:hover)>*,.tablepress>.row-hover>tr:hover+:where(.child)>*,.tablepress>.row-hover>tr:where(:not(.dtrg-group)):hover>*{background-color:var(--hover-bg-color);color:var(--hover-text-color)}.tablepress img{border:none;margin:0;max-width:none;padding:0}.tablepress-table-description{clear:both;display:block}.dt-scroll{width:100%}.dt-scroll .tablepress{width:100%!important}div.dt-scroll-body tfoot tr,div.dt-scroll-body thead tr{height:0}div.dt-scroll-body tfoot tr td,div.dt-scroll-body tfoot tr th,div.dt-scroll-body thead tr td,div.dt-scroll-body thead tr th{border-bottom-width:0!important;border-top-width:0!important;height:0!important;padding-bottom:0!important;padding-top:0!important}div.dt-scroll-body tfoot tr td div.dt-scroll-sizing,div.dt-scroll-body tfoot tr th div.dt-scroll-sizing,div.dt-scroll-body thead tr td div.dt-scroll-sizing,div.dt-scroll-body thead tr th div.dt-scroll-sizing{height:0!important;overflow:hidden!important}div.dt-scroll-body>table.dataTable>thead>tr>td,div.dt-scroll-body>table.dataTable>thead>tr>th{overflow:hidden}.tablepress{--head-active-bg-color:#049cdb;--head-active-text-color:var(--head-text-color);--head-sort-arrow-color:var(--head-active-text-color)}.tablepress thead th:active{outline:none}.tablepress thead .dt-orderable-asc .dt-column-order:before,.tablepress thead .dt-ordering-asc .dt-column-order:before{bottom:50%;content:"\25b2";content:"\25b2"/"";display:block;position:absolute}.tablepress thead .dt-orderable-desc .dt-column-order:after,.tablepress thead .dt-ordering-desc .dt-column-order:after{content:"\25bc";content:"\25bc"/"";display:block;position:absolute;top:50%}.tablepress thead .dt-orderable-asc .dt-column-order,.tablepress thead .dt-orderable-desc .dt-column-order,.tablepress thead .dt-ordering-asc .dt-column-order,.tablepress thead .dt-ordering-desc .dt-column-order{color:var(--head-sort-arrow-color);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Noto Sans,Liberation Sans,Arial,sans-serif!important;font-size:14px;height:24px;line-height:12px;position:relative;width:12px}.tablepress thead .dt-orderable-asc .dt-column-order:after,.tablepress thead .dt-orderable-asc .dt-column-order:before,.tablepress thead .dt-orderable-desc .dt-column-order:after,.tablepress thead .dt-orderable-desc .dt-column-order:before,.tablepress thead .dt-ordering-asc .dt-column-order:after,.tablepress thead .dt-ordering-asc .dt-column-order:before,.tablepress thead .dt-ordering-desc .dt-column-order:after,.tablepress thead .dt-ordering-desc .dt-column-order:before{opacity:.2}.tablepress thead .dt-orderable-asc,.tablepress thead .dt-orderable-desc{cursor:pointer;outline-offset:-2px}.tablepress thead .dt-orderable-asc:hover,.tablepress thead .dt-orderable-desc:hover,.tablepress thead .dt-ordering-asc,.tablepress thead .dt-ordering-desc{background-color:var(--head-active-bg-color);color:var(--head-active-text-color)}.tablepress thead .dt-ordering-asc .dt-column-order:before,.tablepress thead .dt-ordering-desc .dt-column-order:after{opacity:.8}.tablepress tfoot>tr>* .dt-column-footer,.tablepress tfoot>tr>* .dt-column-header,.tablepress thead>tr>* .dt-column-footer,.tablepress thead>tr>* .dt-column-header{align-items:center;display:flex;gap:4px;justify-content:space-between}.tablepress tfoot>tr>* .dt-column-footer .dt-column-title,.tablepress tfoot>tr>* .dt-column-header .dt-column-title,.tablepress thead>tr>* .dt-column-footer .dt-column-title,.tablepress thead>tr>* .dt-column-header .dt-column-title{flex-grow:1}.tablepress tfoot>tr>* .dt-column-footer .dt-column-title:empty,.tablepress tfoot>tr>* .dt-column-header .dt-column-title:empty,.tablepress thead>tr>* .dt-column-footer .dt-column-title:empty,.tablepress thead>tr>* .dt-column-header .dt-column-title:empty{display:none}.tablepress:where(.auto-type-alignment) .dt-right,.tablepress:where(.auto-type-alignment) .dt-type-date,.tablepress:where(.auto-type-alignment) .dt-type-numeric{text-align:right}.tablepress:where(.auto-type-alignment) .dt-right .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-right .dt-column-header,.tablepress:where(.auto-type-alignment) .dt-type-date .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-type-date .dt-column-header,.tablepress:where(.auto-type-alignment) .dt-type-numeric .dt-column-footer,.tablepress:where(.auto-type-alignment) .dt-type-numeric .dt-column-header{flex-direction:row-reverse}.dt-container{clear:both;margin-bottom:1rem;position:relative}.dt-container table.tablepress{margin-bottom:0}.dt-container .dt-layout-row{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.dt-container .dt-layout-row.dt-layout-table .dt-layout-cell{display:block;width:100%}.dt-container .dt-layout-cell{display:flex;flex-direction:row;flex-wrap:wrap;gap:1em;padding:5px 0}.dt-container .dt-layout-cell.dt-layout-full{align-items:center;justify-content:space-between;width:100%}.dt-container .dt-layout-cell.dt-layout-full>:only-child{margin:auto}.dt-container .dt-layout-cell.dt-layout-start{align-items:center;justify-content:flex-start;margin-right:auto}.dt-container .dt-layout-cell.dt-layout-end{align-items:center;justify-content:flex-end;margin-left:auto}.dt-container .dt-layout-cell:empty{display:none}.dt-container .dt-input,.dt-container label{display:inline;width:auto}.dt-container .dt-input{font-size:inherit;padding:5px}.dt-container .dt-length,.dt-container .dt-search{align-items:center;display:flex;flex-wrap:wrap;gap:5px;justify-content:center}.dt-container .dt-paging .dt-paging-button{background:#0000;border:1px solid #0000;border-radius:2px;box-sizing:border-box;color:inherit!important;cursor:pointer;display:inline-block;font-size:1em;height:32px;margin-left:2px;min-width:32px;padding:0 5px;text-align:center;text-decoration:none!important;vertical-align:middle}.dt-container .dt-paging .dt-paging-button.current,.dt-container .dt-paging .dt-paging-button:hover{border:1px solid #111}.dt-container .dt-paging .dt-paging-button.disabled,.dt-container .dt-paging .dt-paging-button.disabled:active,.dt-container .dt-paging .dt-paging-button.disabled:hover{border:1px solid #0000;color:#0000004d!important;cursor:default;outline:none}.dt-container .dt-paging>.dt-paging-button:first-child{margin-left:0}.dt-container .dt-paging .ellipsis{padding:0 1em}@media screen and (max-width:767px){.dt-container .dt-layout-row{flex-direction:column}.dt-container .dt-layout-cell{flex-direction:column;padding:.5em 0}}
