/**
 * WP Tea — base (typography, lists, code, forms)
 * Source: Site Editor Additional CSS (powder GS) + tea fork policy.
 * News-site reading chrome (not the CLREQ cn-read pack — that stays off until per-module tune).
 */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	font-family: "wenfeng-albbpht", "Source Han Sans SC", "Noto Sans CJK SC", "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC", "Noto Sans CJK TC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Match live wptea.com Additional CSS */
b,
strong,
th {
	border-bottom: 1px dotted #a2a2a2;
}

ul {
	list-style-type: square;
}

:where(ol, ul) {
	padding-left: 0;
}

/* Footer / chrome: Powder :where(.is-style-no-style) loses to `ul{square}` above */
.site-statistics ul,
.site-statistics .wp-block-list.is-style-no-style,
.wp-block-list.is-style-no-style {
	list-style: none !important;
	list-style-type: none !important;
	padding-left: 0 !important;
	margin-left: 0;
}

.site-statistics li {
	list-style: none !important;
}

.wp-block-code code {
	overflow-x: auto !important;
	white-space: pre-line !important;
}

*:not(.wp-block-code) > code {
	background-color: rgb(255 255 255 / 0%) !important;
	font-size: 16px !important;
}

input,
select,
textarea {
	border-radius: 8px !important;
	font-size: 18px !important;
}

.wp-block-categories-dropdown select,
.wp-block-categories select {
	width: 100%;
	max-width: 28rem;
	margin-inline: auto;
	display: block;
	padding: 0.55em 2em 0.55em 0.9em;
	font-size: 14px !important;
	line-height: 1.4;
	color: #3a3a3a;
	background-color: #fff;
	border: 1px solid #ddd;
}

.wp-block-post-comments-form input[type="submit"] {
	padding: 10px 25px;
}

/* Existing Cyberforums / DIS topic bridge (discourse_* meta) */
.wenpai-wptea-dis-link {
	margin: 0.75em 0 1.25em;
	font-size: 0.95em;
}

.wenpai-wptea-dis-link a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Mobile nav: keep hamburger readable on tea header */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: inherit;
}

/* Was Block Visibility hideOnScreenSize.small — class name kept for FSE markup */
@media (max-width: 767.98px) {
	.wpcy-hide-on-small {
		display: none !important;
	}
}

/* Page QR (wenpai-theme-kit module) — tea brand */
:root {
	--wenpai-page-qr-btn-bg: #1d2327;
	--wenpai-page-qr-btn-fg: #fff;
	--wenpai-page-qr-btn-bg-hover: #2c3338;
}

/* Page like (wenpai-theme-kit) — tea, aligned with former WP ULike default */
:root {
	--wenpai-page-like-btn-bg: #e0e0e0;
	--wenpai-page-like-btn-fg: #616161;
	--wenpai-page-like-btn-bg-hover: #d5d5d5;
	--wenpai-page-like-count-bg: #fff;
	--wenpai-page-like-count-fg: #616161;
	--wenpai-page-like-count-border: #bdbdbd;
	--wenpai-page-like-active: #e91e63;
}


/* wptea-mobile-title-like — 2026-11-01
 * Wayback size: homepage h1 has-large → large clamp(20…24px).
 * Do not belt font-size (old clamp max 3rem → 48px).
 * Weight: feibisi 2026-11-01 — theme headings all 400 (not Powder GS thin 100). */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 400 !important;
}

@media (max-width: 767.98px) {
	.entry-header .is-content-justification-space-between,
	.entry-header .wp-block-group.alignwide.has-contrast-color {
		flex-wrap: wrap !important;
		row-gap: 0.5rem;
	}

	/* Count bubble notch: translate before rotate so tip centers on mobile */
	.wenpai-page-like__count:before {
		top: 50%;
		transform: translateY(-50%) rotate(45deg);
	}
}
