/* v4.7 crawlable-result and mobile-stability additions. */
.sym-grid {
	grid-auto-rows: 1fr;
}

.cutecore-actions {
	grid-template-columns: repeat(3, 1fr);
}

[data-cute-card][hidden],
[data-cutecore-slot][hidden],
[data-japanese-card][hidden],
.aesthetic-symbol-card[hidden] {
	display: none !important;
}

.sym-card,
.tool-result-card {
	content-visibility: auto;
	contain-intrinsic-size: 130px;
}

.sym-card:not(.wide) {
	min-height: 118px;
}

.sym-card:not(.wide) > .sym {
	height: 72px;
	min-height: 72px;
	max-height: 72px;
	overflow: hidden;
	white-space: nowrap;
}

.sym-card.wide {
	min-height: 140px;
}

.sym-card.wide > .sym {
	height: 94px;
	min-height: 94px;
	max-height: 94px;
	padding: 10px 14px;
	overflow: hidden;
	overflow-wrap: normal;
	word-break: normal;
	white-space: pre;
	font-size: clamp(14px, 2vw, 18px);
	line-height: 1.3;
}

.tool-result-card {
	height: 174px;
	min-height: 174px;
}

.tool-result-card .tool-result-name {
	height: 40px;
	min-height: 40px;
	overflow: hidden;
}

.tool-result-card > .sym {
	height: 88px;
	min-height: 88px;
	max-height: 88px;
	overflow: hidden;
	white-space: nowrap;
}

.server-style-results {
	align-items: stretch;
}

.server-style-index {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid var(--cas-border);
	border-radius: 16px;
	background: var(--cas-bg);
}

.server-style-index h2 {
	font-size: 1.35rem;
}

.server-style-index ul {
	margin: 0;
	padding-left: 20px;
	columns: 3 220px;
	column-gap: 32px;
	color: #695e7d;
	font-size: .84rem;
}

.server-style-index li {
	break-inside: avoid;
	margin: 0 0 5px;
}

.page-fact-block {
	margin: 26px 0;
	padding: 18px 20px;
	border: 1px solid var(--cas-border);
	border-left: 4px solid var(--cas-secondary);
	border-radius: 14px;
	background: var(--cas-card);
	box-shadow: 0 6px 20px rgba(51, 37, 78, .04);
}

.page-fact-block strong {
	font-family: Quicksand, sans-serif;
}

.page-fact-block p {
	margin: 7px 0 0;
	color: #625574;
}

.article-byline {
	margin: -4px 0 14px;
	color: #766b8b;
	font-size: .9rem;
}

.footer-glyph-strip {
	padding: 18px 0;
	text-align: center;
	color: var(--cas-primary);
	font-size: 1.2rem;
	letter-spacing: .08em;
}

.footer-glyph-strip span {
	margin-right: 10px;
	color: var(--cas-muted);
	font-family: Quicksand, sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.page-glyph-strip {
	color: var(--cas-primary);
	font-size: 1.15rem;
	letter-spacing: .08em;
}

.existing-page-content {
	margin-top: 26px;
}

.about-owner {
	scroll-margin-top: 90px;
}

.field-help.is-over {
	color: #b2395d;
}

.cutecore-card-slot,
.cute-symbol-grid > [data-cute-card],
.japanese-emoticon-grid > [data-japanese-card] {
	min-width: 0;
	height: 100%;
}

@media (max-width: 700px) {
	.sym-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.sym-card.is-long-symbol {
		grid-column: span 2;
	}

	.sym-card.is-extra-long-symbol {
		grid-column: 1 / -1;
	}

	.sym-card:not(.wide) {
		min-height: 112px;
	}

	.sym-card:not(.wide) > .sym {
		height: 66px;
		min-height: 66px;
		max-height: 66px;
		padding-inline: 7px;
	}

	.sym-card.wide {
		min-height: 132px;
	}

	.sym-card.wide > .sym {
		height: 86px;
		min-height: 86px;
		max-height: 86px;
		padding: 8px 10px;
		font-size: 14px;
	}

	.tool-result-card {
		height: 166px;
		min-height: 166px;
	}

	.tool-result-card > .sym {
		height: 80px;
		min-height: 80px;
		max-height: 80px;
		font-size: 17px;
	}

	.server-style-index {
		padding: 16px;
	}

	.server-style-index ul {
		columns: 2 135px;
		font-size: .78rem;
	}

	.page-fact-block {
		margin: 20px 0;
		padding: 16px;
	}

	.footer-glyph-strip {
		padding: 14px 0;
	}

	.footer-glyph-strip span {
		display: block;
		margin: 0 0 3px;
	}

	.page-hero {
		padding-top: 20px;
	}

	.page-hero h1 {
		font-size: clamp(1.8rem, 9vw, 2.5rem);
	}
}

@media (max-width: 380px) {
	.sym-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	.server-style-index ul {
		columns: 1;
	}

	.sym-actions {
		padding-inline: 3px;
	}
}

/* Contact forms are authored directly in /contact/ and remain plugin-owned. */
.existing-page-content .wpcf7,
.existing-page-content .wpforms-container,
.existing-page-content .fluentform,
.existing-page-content > form {
	width: 100%;
	max-width: 760px;
	margin: 24px auto;
	padding: clamp(16px, 3vw, 28px);
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e8e1f5;
	border-radius: 18px;
}

.existing-page-content form :is(input, textarea, select) {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	box-sizing: border-box;
}

.existing-page-content form textarea {
	min-height: 140px;
	resize: vertical;
}

.contact-form-editor-note {
	border: 2px dashed #9a6bd0;
}

.archive-heading .archive-title {
	margin: 0 0 8px;
	color: #33254e;
	font-family: "Quicksand", sans-serif;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 700;
	line-height: 1.12;
}

/* v4.8 progressive results, touch targets and content-driven card geometry. */
.progressive-result-browser {
	display: grid;
	gap: 14px;
}

.result-browser-toolbar {
	display: grid;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.standard-library-toolbar {
	display: grid;
	margin: 12px 0 2px;
	padding: 12px;
	grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
	align-items: end;
	gap: 10px;
	border: 1px solid var(--cas-border);
	border-radius: 14px;
	background: rgba(255, 255, 255, .72);
}

.standard-library-toolbar .search-status {
	margin: 0;
	grid-column: 1 / -1;
}

.result-search-label input {
	width: 100%;
	min-height: 44px;
	padding: 9px 13px;
	border: 1px solid var(--cas-border);
	border-radius: 12px;
	background: var(--cas-bg);
	color: var(--cas-ink);
}

.result-filter-chips {
	display: flex;
	min-width: 0;
	overflow-x: auto;
	padding: 2px 2px 5px;
	gap: 6px;
	scrollbar-width: thin;
	overscroll-behavior-inline: contain;
}

.result-filter-chips .pill-link {
	min-height: 40px;
	padding: 7px 12px;
	flex: 0 0 auto;
}

.progressive-result-footer {
	display: grid;
	place-items: center;
	gap: 7px;
}

.result-browser-footer {
	display: grid;
	margin-top: 14px;
	place-items: center;
	gap: 7px;
}

.tool-check {
	min-height: 48px;
	padding: 10px 12px;
	align-content: center;
	grid-template-columns: 20px minmax(0, 1fr);
	border: 1px solid var(--cas-border);
	border-radius: 12px;
	background: var(--cas-bg);
}

.tool-check input {
	width: 18px;
	height: 18px;
	margin: 0;
}

.combo-starters {
	display: grid;
	margin-top: 12px;
	padding-top: 22px;
	gap: 12px;
	border-top: 1px solid var(--cas-border);
}

.combo-starters h3 {
	margin-bottom: 0;
}

.combo-palette button {
	min-width: 44px;
	min-height: 44px;
}

.tool-search-results .tool-result-name {
	font-size: .68rem;
}

.unicode-filter-selects {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unicode-card-details {
	padding: 0 12px 10px;
	color: #695e7d;
	font-size: .72rem;
	word-break: break-word;
}

.unicode-card-details summary {
	min-height: 40px;
	display: flex;
	align-items: center;
	color: var(--cas-primary);
	cursor: pointer;
}

.unicode-card-details p {
	margin: 0;
}

.unicode-empty-state .preset-buttons {
	justify-content: center;
	margin-top: 10px;
}

.progressive-result-footer p {
	margin: 0;
	color: var(--cas-muted);
	font-size: .82rem;
}

.progressive-sentinel {
	display: block;
	width: 1px;
	height: 1px;
}

.result-empty-state {
	grid-column: 1 / -1;
	margin: 0;
	padding: 22px;
	border: 1px dashed var(--cas-border);
	border-radius: 14px;
	color: #695e7d;
	text-align: center;
}

.server-style-index > summary {
	min-height: 44px;
	font-family: Quicksand, sans-serif;
	font-weight: 700;
	cursor: pointer;
}

.tool-result-card,
.bio-generated-card {
	height: auto !important;
	min-height: 174px;
	overflow: visible;
}

.tool-result-card .tool-result-name {
	height: auto;
	min-height: 40px;
	overflow: visible;
}

.tool-result-card > .sym {
	height: auto;
	min-height: 88px;
	max-height: none;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	scrollbar-width: thin;
}

.bio-generated-card > .sym,
.bio-preset-card > .sym {
	height: auto;
	min-height: 96px;
	max-height: none;
	overflow: visible;
	white-space: pre-wrap;
	word-break: normal;
}

.bio-builder-form .tool-options {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bio-builder-form :is(.tool-input, .tool-select) {
	min-width: 0;
	text-overflow: ellipsis;
}

.sym-card.is-long-symbol > .sym,
.sym-card.is-extra-long-symbol > .sym {
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	word-break: normal;
	scrollbar-width: thin;
}

@media (max-width: 900px) {
	.result-browser-toolbar {
		grid-template-columns: 1fr;
	}

	.bio-builder-form .tool-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.standard-library-toolbar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.sym-grid,
	.aesthetic-symbol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bio-builder-form .tool-options {
		grid-template-columns: 1fr;
	}

	.unicode-filter-selects {
		grid-template-columns: 1fr;
	}

	.sym-actions {
		padding-inline: 4px;
	}

	.sym-actions button {
		width: 100%;
		min-width: 44px;
		height: 44px;
		min-height: 44px;
	}

	.tool-result-card,
	.bio-generated-card {
		min-height: 166px;
	}

	.tool-result-card > .sym {
		height: auto;
		min-height: 80px;
		max-height: none;
	}
}

/* v4.8.2: compact collection controls and content-driven card geometry. */
.sym-grid {
	grid-auto-rows: auto;
	align-items: stretch;
}

.sym-card.is-card-small {
	grid-column: span 1;
}

.sym-card.is-card-medium {
	grid-column: span 2;
}

.sym-card.is-card-large {
	grid-column: span 3;
}

.sym-card.is-card-xlarge {
	grid-column: span 4;
}

.sym-card.is-multiline-card {
	height: 100%;
	min-height: 142px;
}

.sym-card.is-multiline-card > .sym {
	height: auto;
	min-height: 96px;
	max-height: none;
	padding: 12px;
	overflow-x: auto;
	overflow-y: visible;
	justify-content: flex-start;
	white-space: pre;
	word-break: normal;
	overflow-wrap: normal;
	font-size: clamp(13px, 1.35vw, 18px);
	line-height: 1.35;
	text-align: left;
	scrollbar-width: thin;
}

.tool-result-card[hidden],
[data-server-style-card][hidden],
[data-standard-card][hidden] {
	display: none !important;
}

.standard-library-toolbar {
	position: relative;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	padding: 10px;
}

.standard-library-search {
	margin: 0;
	font-size: 0;
}

.standard-library-search .tool-input {
	min-height: 44px;
	font-size: .9rem;
}

.standard-filter-menu {
	position: relative;
	z-index: 30;
}

.standard-filter-menu > summary {
	display: inline-flex;
	width: 172px;
	min-height: 44px;
	padding: 8px 12px;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border: 1px solid var(--cas-border);
	border-radius: 12px;
	background: var(--cas-card);
	color: var(--cas-ink);
	font-family: Quicksand, sans-serif;
	font-size: .8rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.standard-filter-menu > summary::-webkit-details-marker {
	display: none;
}

.standard-filter-menu > summary::after {
	content: "⌄";
	color: var(--cas-primary);
}

.standard-filter-menu > summary strong {
	max-width: 82px;
	overflow: hidden;
	color: var(--cas-primary);
	font-size: .72rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.standard-filter-popover {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	display: grid;
	width: min(360px, calc(100vw - 40px));
	max-height: min(420px, 70vh);
	padding: 8px;
	overflow-y: auto;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	border: 1px solid var(--cas-border);
	border-radius: 14px;
	background: var(--cas-card);
	box-shadow: var(--cas-shadow);
}

.standard-filter-popover .pill-link {
	width: 100%;
	min-height: 38px;
	padding: 7px 9px;
	justify-content: flex-start;
	border-radius: 9px;
	font-size: .75rem;
	text-align: left;
}

.standard-library-toolbar .search-status {
	font-size: .78rem;
}

[data-tool="gaming-name"] .tool-options {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.unicode-symbol-card {
	min-height: 116px !important;
}

.unicode-symbol-card > .sym {
	min-height: 70px !important;
	font-size: 26px;
}

[data-japanese-random] {
	width: auto;
	min-width: 0;
	padding-inline: 16px;
	align-self: end;
	justify-self: start;
}

@media (max-width: 700px) {
	.sym-grid,
	.aesthetic-symbol-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: row dense;
	}

	.sym-card.is-card-medium,
	.sym-card.is-card-large,
	.sym-card.is-card-xlarge,
	.sym-card.is-long-symbol,
	.sym-card.is-extra-long-symbol {
		grid-column: 1 / -1;
	}

	.sym-card.is-multiline-card > .sym {
		min-height: 90px;
		padding: 10px;
		font-size: clamp(12px, 3.6vw, 15px);
	}

	.standard-library-toolbar {
		grid-template-columns: minmax(0, 1fr) 112px;
		gap: 8px;
	}

	.standard-filter-menu > summary {
		width: 112px;
		padding-inline: 9px;
	}

	.standard-filter-menu > summary span {
		display: none;
	}

	.standard-filter-menu > summary strong {
		max-width: 76px;
		font-size: .76rem;
	}

	.standard-filter-popover {
		width: min(320px, calc(100vw - 32px));
	}

	[data-tool="gaming-name"] .tool-options {
		grid-template-columns: 1fr;
	}

	.unicode-symbol-card {
		min-height: 110px !important;
	}
}

@media (max-width: 380px) {
	.standard-library-toolbar {
		grid-template-columns: minmax(0, 1fr) 104px;
		padding: 8px;
	}

	.standard-filter-menu > summary {
		width: 104px;
	}

	.standard-filter-popover {
		width: min(304px, calc(100vw - 24px));
	}
}

/* v4.8.3: allow the three ornamental collections to use the vertical room
   required by combining marks, bows, wings and horned glyph clusters. */
.sym-card.is-ornament-fit {
	min-height: 132px;
}

.sym-card.is-ornament-fit > .sym {
	height: auto;
	min-height: 86px;
	max-height: none;
	padding: 14px 12px;
	overflow-y: visible;
	line-height: 1.55;
}

.sym-card.is-ornament-fit.has-tall-glyphs > .sym {
	min-height: 94px;
	padding-block: 17px;
}

@media (max-width: 700px) {
	.sym-card.is-ornament-fit {
		min-height: 126px;
	}

	.sym-card.is-ornament-fit > .sym {
		min-height: 82px;
		padding: 13px 10px;
	}
}
.cas-network-resource {
	margin: 20px 0 0;
}

.cas-network-resource a {
	color: var(--cas-primary);
	font-weight: 700;
	text-underline-offset: 3px;
}

.language-menu {
	position: relative;
	flex: 0 0 auto;
}

.language-menu > summary {
	display: inline-flex;
	min-width: 58px;
	min-height: 44px;
	padding: 8px 10px;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 1px solid var(--cas-border);
	border-radius: 12px;
	background: var(--cas-card);
	color: var(--cas-ink);
	font-family: "Quicksand", sans-serif;
	font-size: .82rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.language-menu > summary::-webkit-details-marker {
	display: none;
}

.language-menu-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1200;
	display: grid;
	width: 220px;
	max-height: min(70vh, 420px);
	padding: 8px;
	overflow-y: auto;
	gap: 3px;
	border: 1px solid var(--cas-border);
	border-radius: 14px;
	background: var(--cas-card);
	box-shadow: var(--cas-shadow);
}

.language-menu-popover a {
	display: flex;
	min-height: 42px;
	padding: 8px 11px;
	align-items: center;
	border-radius: 9px;
	color: var(--cas-ink);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
}

.language-menu-popover a:hover,
.language-menu-popover a[aria-current="page"] {
	background: var(--cas-bg);
	color: var(--cas-primary);
}

.locale-home-content .content-section p {
	max-width: 900px;
}

@media (max-width: 620px) {
	.language-menu > summary {
		min-width: 50px;
		padding-inline: 8px;
	}

	.language-menu-popover {
		right: 0;
		width: min(220px, calc(100vw - 28px));
	}
}

/* v4.9.0: progressive collections reveal automatically. Compatibility
   controls stay in the DOM for older scripts but never add visible clutter. */
[data-aesthetic-load-more],
[data-standard-load-more],
[data-cute-load-more],
[data-cute-toggle],
[data-cutecore-load-more],
[data-bio-load-more],
[data-game-load-more],
[data-unicode-load-more],
[data-combo-load-more],
[data-combo-starters-more] {
	display: none !important;
}

[data-bio-section-toggle] {
	display: none !important;
}

[data-server-style-slot] {
	display: flex;
	min-width: 0;
}

[data-server-style-slot][hidden] {
	display: none !important;
}

[data-server-style-slot] > .sym-card {
	width: 100%;
}

@media (max-width: 620px) {
	.aesthetic-library-heading {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 9px;
	}

	.aesthetic-search-control input {
		height: 56px;
		padding-left: 42px;
		font-size: 1rem;
	}

	.aesthetic-search-control button {
		width: 56px;
		height: 56px;
	}
}
