/* Reading and navigation styles for the Tail 工具網 GeneratePress site. */
body.wp-theme-generatepress {
	--tail-ink: #14243a;
	--tail-muted: #46586e;
	--tail-accent: #075e66;
	--tail-page: #f3f6f9;
	--tail-line: #dbe4ec;
	color: var(--tail-ink);
	background: var(--tail-page);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.wp-theme-generatepress :where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid #148b98;
	outline-offset: 3px;
}

.wp-theme-generatepress .site-header {
	border-bottom: 1px solid var(--tail-line);
}

.wp-theme-generatepress .inside-header {
	padding: 16px clamp(18px, 3vw, 40px);
}

.wp-theme-generatepress .main-title {
	font-size: clamp(1.18rem, 2vw, 1.55rem);
	letter-spacing: .015em;
}

.wp-theme-generatepress .site-logo img {
	width: auto;
	max-height: 52px;
}

.wp-theme-generatepress .site-content {
	padding: clamp(16px, 3vw, 36px);
}

.wp-theme-generatepress .entry-title,
.wp-theme-generatepress .entry-title a {
	color: var(--tail-ink);
	overflow-wrap: anywhere;
}

.wp-theme-generatepress .entry-title a:hover,
.wp-theme-generatepress .entry-title a:focus-visible {
	color: var(--tail-accent);
	text-decoration: underline;
	text-underline-offset: .18em;
}

.wp-theme-generatepress .entry-meta,
.wp-theme-generatepress .entry-meta a {
	color: var(--tail-muted);
}

.tail-intro {
	grid-column: 1 / -1;
	min-width: 0;
	padding: clamp(24px, 5vw, 58px);
	border: 1px solid #244658;
	border-radius: 22px;
	background: radial-gradient(ellipse at 100% 0, #145861, transparent 67%), #10263b;
	color: #fff;
}

.tail-intro h2 {
	color: inherit;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 750;
	line-height: 1.3;
	margin: 0 0 .35em;
}

.tail-intro p {
	color: #dce9f1;
	margin: 0 0 1.35rem;
	line-height: 1.7;
}

.tail-search {
	display: flex;
	gap: 8px;
	max-width: 620px;
}

.tail-search input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 100%;
	min-height: 46px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #fff;
	color: var(--tail-ink);
}

.tail-search button {
	flex: none;
	min-height: 46px;
	padding: 8px clamp(10px, 2vw, 20px);
	border: 1px solid transparent;
	border-radius: 8px;
	background: #a3e9df;
	color: #123343;
	font-weight: 700;
}

.tail-search button:hover,
.tail-search button:focus-visible {
	background: #caf6ee;
	color: #123343;
}

.tail-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.tail-topics a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 5px 12px;
	border: 1px solid #8babbb;
	border-radius: 999px;
	color: white;
	font-size: .9rem;
}

.tail-topics a:hover,
.tail-topics a:focus-visible {
	background: #e8f6f7;
	color: #123343;
}

.blog.wp-theme-generatepress .site-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(14px, 2.2vw, 26px);
	margin: 0;
}

.tail-feed-title {
	grid-column: 1 / -1;
	margin: 4px 0 0;
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	font-weight: 750;
}

.blog.wp-theme-generatepress .site-main > article {
	margin: 0;
	min-width: 0;
}

.blog.wp-theme-generatepress .inside-article,
.single-post.wp-theme-generatepress .inside-article {
	border: 1px solid var(--tail-line);
	border-radius: 16px;
	background: white;
}

.blog.wp-theme-generatepress .inside-article {
	height: 100%;
	box-sizing: border-box;
	padding: clamp(18px, 2.7vw, 32px);
}

.tail-card-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 8px;
	margin-bottom: 10px;
}

.tail-card-topics a {
	border-radius: 6px;
	background: #e8f4f3;
	color: var(--tail-accent);
	font-size: .8125rem;
	font-weight: 650;
	padding: 5px 8px;
}

.tail-card-topics a:hover {
	text-decoration: underline;
}

.blog.wp-theme-generatepress .entry-title {
	font-size: clamp(1.18rem, 2.25vw, 1.55rem);
	font-weight: 740;
	line-height: 1.45;
}

.blog.wp-theme-generatepress .post-image a {
	display: block;
}

.blog.wp-theme-generatepress .post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
}

.blog.wp-theme-generatepress .entry-summary {
	margin-top: 16px;
	color: var(--tail-muted);
	line-height: 1.7;
}

.wp-theme-generatepress .read-more {
	display: inline-block;
	color: var(--tail-accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.blog.wp-theme-generatepress .paging-navigation {
	grid-column: 1 / -1;
	border: 1px solid var(--tail-line);
	border-radius: 12px;
}

.wp-theme-generatepress .paging-navigation .page-numbers {
	display: inline-block;
	padding: 8px;
}

.single-post.wp-theme-generatepress .site-main {
	max-width: 960px;
	margin: 0 auto;
}

.single-post.wp-theme-generatepress .inside-article {
	padding: clamp(18px, 5vw, 62px);
}

.single-post.wp-theme-generatepress .featured-image img,
.single-post.wp-theme-generatepress .entry-content img {
	border-radius: 12px;
}

.single-post.wp-theme-generatepress .entry-title {
	font-size: clamp(1.75rem, 4vw, 2.85rem);
	font-weight: 760;
	line-height: 1.3;
}

.single-post.wp-theme-generatepress .entry-content {
	font-size: clamp(1.02rem, 1.3vw, 1.14rem);
	line-height: 1.85;
	overflow-wrap: anywhere;
}

.single-post.wp-theme-generatepress .entry-content :is(h2, h3, h4) {
	margin: 1.65em 0 .6em;
	color: var(--tail-ink);
	font-weight: 740;
	line-height: 1.42;
}

.single-post.wp-theme-generatepress .entry-content h2 {
	font-size: clamp(1.38rem, 2.6vw, 1.85rem);
}

.single-post.wp-theme-generatepress .entry-content a {
	color: var(--tail-accent);
	text-underline-offset: .18em;
}

.single-post.wp-theme-generatepress .entry-content pre {
	max-width: 100%;
	overflow: auto;
	padding: 16px 18px;
	border: 1px solid #25374b;
	border-radius: 10px;
	background: #14243a;
	color: #edf4fa;
	font-size: .875rem;
	line-height: 1.65;
	white-space: pre;
}

.single-post.wp-theme-generatepress .entry-content pre code {
	color: inherit;
	background: transparent;
}

.single-post.wp-theme-generatepress .entry-content .wp-block-table {
	overflow-x: auto;
}

.wp-theme-generatepress .site-info {
	border-top: 1px solid var(--tail-line);
}

@media (max-width: 650px) {
	.blog.wp-theme-generatepress .site-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.tail-intro {
		border-radius: 16px;
	}

	.tail-search input[type="search"] {
		font-size: 16px;
	}
}

.wp-theme-generatepress .main-navigation .main-nav ul li a {
	font-weight: 650;
}

.wp-theme-generatepress .main-navigation .main-nav ul li.current-menu-item > a {
	color: var(--tail-accent);
}

.single-post.wp-theme-generatepress .entry-content,
.single-post.wp-theme-generatepress .entry-content :is(h2, h3, h4) {
	font-family: inherit;
}

.tail-ad-placement {
	box-sizing: border-box;
	min-width: 0;
	width: calc(100% - 2 * clamp(16px, 3vw, 36px));
	max-width: 1128px;
	margin-inline: auto;
}

.tail-ad-article {
	max-width: 834px;
}

.tail-ad-placement .advads-adlabel {
	display: none;
	margin-bottom: 8px;
	text-align: center;
	font-size: .75rem;
	color: var(--tail-muted);
}

.tail-ad-placement:has(ins.adsbygoogle:is([data-ad-status="filled"], [data-ad-status="unfill-optimized"])) {
	margin-block: 28px;
	padding-block: 16px;
	border-block: 1px solid var(--tail-line);
}

.tail-ad-placement:has(ins.adsbygoogle:is([data-ad-status="filled"], [data-ad-status="unfill-optimized"])) .advads-adlabel {
	display: block;
}

.tail-ad-placement:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
	display: none;
}
