/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	/* Deeper than the mock-up's #4fa9ab so white text on it reaches 4.6:1. */
	--teal: #2c8183;
	--teal-dark: #0f3c3d;
	--teal-darker: #0a2e2f;
	--ink: #0f2b2c;
	--yellow: #ffd93b;
	--bg: #eef6f5;
	--line: #dcebea;
	--line-2: #cfe2e1;
	/* Design greys darkened slightly within the same hue to reach 4.5:1 on white and on --bg. */
	--muted: #527675;
	--muted-2: #5a7a7a;
	--text-2: #3d5f5e;
	--text-3: #24494a;
	--link: #1b7577;
	--success: #17855a;
	--danger: #a32a2a;
	--on-teal: #e0f1f0;
	--footer-text: #b9d6d5;
	--overlay: rgba(15, 43, 44, .5);
	--shadow: 0 8px 24px rgba(15, 60, 61, .16);
	--gutter: clamp(16px, 4vw, 40px);
	--font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
	/* Height of the WordPress admin bar when it is fixed, so sticky parts sit below it. */
	--sticky-top: 0px;
	--composer-h: 68px;
}

body.admin-bar { --sticky-top: 32px; }

@media (max-width: 782px) {
	body.admin-bar { --sticky-top: 46px; }
}

@media (max-width: 600px) {
	body.admin-bar { --sticky-top: 0px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	font-family: var(--font);
	color: var(--ink);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; }

mark { background: none; color: var(--yellow); }

.yt-ico { display: block; flex: none; }

.yt-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.yt-skip {
	position: absolute;
	left: 12px;
	top: -80px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--ink);
	color: #fff;
}

.yt-skip:focus { top: calc(var(--sticky-top) + 12px); color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.yt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: var(--teal-dark);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color .2s ease;
}

.yt-btn:hover { background: var(--teal-darker); color: #fff; text-decoration: none; }
.yt-btn.is-copied { background: var(--success); }

.yt-btn--ghost {
	height: 52px;
	border: 1px solid var(--line-2);
	border-radius: 12px;
	background: #fff;
	color: var(--teal-dark);
}

.yt-btn--ghost:hover { background: var(--bg); color: var(--teal-dark); }

.yt-btn--big { height: 52px; border-radius: 12px; font-size: 16px; }

.yt-link-btn {
	padding: 0;
	border: 0;
	background: none;
	color: var(--link);
	font-size: inherit;
	text-decoration: underline;
}

.yt-text-btn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	min-height: 40px;
	margin-top: 12px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--link);
	font-size: 14px;
	font-weight: 500;
}

.yt-close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: var(--bg);
	color: var(--teal-dark);
}

.yt-close:hover { background: var(--line); }

.yt-pill {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--teal-dark);
	font-size: 14px;
	font-weight: 500;
}

.yt-pill:hover { color: var(--teal-dark); text-decoration: none; border-color: var(--teal-dark); }
.yt-pill.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.yt-header { background: var(--teal); }

.yt-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px var(--gutter);
	display: flex;
	align-items: center;
	gap: 24px;
}

.yt-logo {
	font-weight: 800;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.1;
	letter-spacing: -.5px;
	color: var(--yellow);
	text-shadow: 0 2px 0 var(--teal-dark);
	white-space: nowrap;
}

.yt-logo:hover { color: var(--yellow); text-decoration: none; }

.yt-header__spacer { flex: 1; }

.yt-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }

.yt-nav__link {
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: #fff;
	white-space: nowrap;
}

.yt-nav__link:hover { color: #fff; text-decoration: none; border-bottom-color: rgba(255, 255, 255, .6); }
.yt-nav__link.is-active { border-bottom-color: var(--yellow); }

.yt-header__tools { display: flex; align-items: center; gap: 8px; }

.yt-head-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.yt-head-btn:hover { background: rgba(255, 255, 255, .28); color: #fff; text-decoration: none; }

.yt-head-btn__badge {
	position: absolute;
	top: 3px;
	right: 3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--ink);
	font: 600 10px/17px var(--mono);
	text-align: center;
}

.yt-head-btn__badge[hidden] { display: none; }

.yt-head-btn--menu { display: none; }

@media (max-width: 899px) {
	.yt-header__inner { gap: 16px; }
	.yt-nav { gap: 16px; }
	.yt-header__tools { gap: 6px; }
}

@media (max-width: 639px) {
	.yt-header__inner { gap: 8px; }
	.yt-nav,
	.yt-head-btn--lang { display: none; }
	.yt-head-btn--menu { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.yt-hero { background: var(--teal); }

.yt-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4px var(--gutter) 56px;
}

.yt-hero--home .yt-hero__inner { padding-bottom: clamp(44px, 6vw, 52px); }

.yt-hero__title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(22px, 3.6vw, 38px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -.5px;
	color: #fff;
	text-wrap: pretty;
}

.yt-hero__title--page {
	max-width: none;
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -1px;
}

/* ==========================================================================
   Composer (sticky text box)
   ========================================================================== */
.yt-composer {
	position: sticky;
	top: var(--sticky-top);
	z-index: 20;
	margin-top: -28px;
	padding: 0 clamp(12px, 4vw, 40px);
}

.yt-composer__box {
	max-width: 1120px;
	margin: 0 auto;
	padding: 10px 12px 10px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow);
	transition: box-shadow .2s ease;
}

.yt-composer__box:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(15, 60, 61, .22); }

.yt-composer__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	max-height: 140px;
	padding: 11px 0;
	border: 0;
	outline: 0;
	resize: none;
	overflow-y: auto;
	background: transparent;
	font-size: clamp(17px, 2.2vw, 22px);
	line-height: 26px;
	color: var(--ink);
	field-sizing: content;
}

.yt-composer__input::placeholder { color: var(--muted-2); }

.yt-composer__count {
	font: 500 12px var(--mono);
	color: var(--muted-2);
	white-space: nowrap;
}

.yt-composer__clear {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
}

.yt-composer__clear:hover { border-color: var(--teal-dark); }
.yt-composer__clear .yt-ico { display: none; }

@media (max-width: 639px) {
	.yt-composer__count { display: none; }
	.yt-composer__clear { padding: 0; }
	.yt-composer__clear-label { display: none; }
	.yt-composer__clear .yt-ico { display: block; }
}

/* ==========================================================================
   Home layout: sidebar + style grid
   ========================================================================== */
.yt-home {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px var(--gutter) 56px;
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.yt-home__content { flex: 1; min-width: 0; }

.yt-side { display: none; }

@media (min-width: 1024px) {
	.yt-side {
		display: block;
		flex: none;
		width: 232px;
		position: sticky;
		top: calc(var(--sticky-top) + var(--composer-h) + 24px);
		max-height: calc(100vh - var(--sticky-top) - var(--composer-h) - 40px);
		overflow-y: auto;
		scrollbar-width: thin;
		padding: 12px 10px;
		border: 1px solid var(--line);
		border-radius: 16px;
		background: #fff;
	}

	.yt-chips { display: none; }
}

.yt-side__all,
.yt-side__family {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
}

.yt-side__all { min-height: 40px; font-size: 15px; font-weight: 600; color: var(--ink); }

.yt-side__group { margin-top: 8px; }

.yt-side__family {
	min-height: 36px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}

.yt-side__all:hover,
.yt-side__family:hover { background: var(--bg); }

.yt-side__all.is-active,
.yt-side__family.is-active { background: var(--teal-dark); color: #fff; }

.yt-count { font: 500 11px var(--mono); opacity: .75; }

.yt-side__item {
	display: block;
	min-height: 32px;
	padding: 6px 10px 6px 18px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 20px;
	color: var(--text-3);
}

.yt-side__item:hover { background: var(--bg); color: var(--text-3); text-decoration: none; }

.yt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
}

.yt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 520px;
	min-width: 0;
	padding: 2px 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.yt-chips::-webkit-scrollbar { display: none; }

@media (max-width: 639px) {
	.yt-chips { flex-wrap: nowrap; }
}

.yt-chip {
	flex: none;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	color: var(--teal-dark);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.yt-chip:hover { border-color: var(--teal-dark); }
.yt-chip.is-active { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }

.yt-filter {
	flex: 1 1 220px;
	max-width: 100%;
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	outline: 0;
	background: #fff;
	font-size: 16px;
	color: var(--ink);
}

.yt-filter::placeholder { color: var(--muted-2); }
.yt-filter:focus-visible { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(15, 60, 61, .15); }

.yt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 12px;
}

.yt-grid--rest { margin-top: 12px; }

.yt-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 10px 12px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	outline: 3px solid transparent;
	outline-offset: -1px;
	background: #fff;
	scroll-margin-top: calc(var(--sticky-top) + var(--composer-h) + 24px);
	transition: outline-color .3s ease;
}

.yt-card[hidden] { display: none; }
.yt-card.is-highlight { outline-color: var(--yellow); }

.yt-card__body { flex: 1; min-width: 0; cursor: pointer; }

.yt-card__name {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--muted);
}

.yt-card__out {
	margin: 0;
	padding-top: 2px;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.4;
	color: var(--ink);
	white-space: pre-line;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.js .yt-card__out:not(.is-ready) { visibility: hidden; }

/* Enclosing marks (⃝ ⃞ ⃟ ⃠ ⃣) only exist in symbol fonts; text fonts draw an empty box instead. */
.yt-card--symbols .yt-card__out,
.yt-font-symbols { font-family: 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', var(--font); }

.yt-card__eye {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--muted);
}

.yt-card__eye:hover { border-color: var(--line-2); color: var(--teal-dark); }

.yt-card__copy { flex: none; min-width: 76px; }

@media (max-width: 639px) {
	.yt-card__eye { display: none; }
}

.yt-empty { padding: 56px 0; text-align: center; font-size: 16px; color: var(--muted); }
.yt-empty[hidden] { display: none; }

.yt-ad {
	display: flex;
	justify-content: center;
	min-height: 100px;
	margin: 20px 0;
	overflow: hidden;
}

.yt-ad[hidden] { display: none; }
.yt-ad + .yt-grid--rest { margin-top: 0; }

.yt-home__about {
	margin: 48px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid var(--line-2);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(20px, 4vw, 48px);
}

.yt-home__about > .wp-block-columns { display: contents; }

.yt-home__about h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; line-height: 1.3; }

.yt-home__about p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-2);
	text-wrap: pretty;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.yt-footer { background: var(--teal-dark); color: var(--footer-text); }

.yt-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	font-size: 14px;
}

.yt-footer__brand { font-weight: 800; font-size: 20px; color: var(--yellow); }

.yt-footer__nav,
.yt-footer__langs { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.yt-footer a { display: inline-block; padding: 4px 0; color: var(--footer-text); }
.yt-footer a:hover { color: #fff; }
.yt-footer__langs [aria-current] { padding: 4px 0; color: #fff; font-weight: 600; }
.yt-footer__spacer { flex: 1; }

/* ==========================================================================
   Dialogs
   ========================================================================== */
dialog {
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

dialog::backdrop { background: var(--overlay); }

html:has(dialog[open]) { overflow: hidden; }

.yt-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(300px, 82vw);
	height: 100%;
	margin: 0;
}

.yt-drawer[data-yt-dialog="history"] { width: min(380px, 90vw); }

.yt-drawer__panel {
	height: 100%;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow-y: auto;
	background: #fff;
	box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
}

.yt-drawer[open] .yt-drawer__panel { animation: yt-slide-in .22s ease-out; }

@keyframes yt-slide-in {
	from { transform: translateX(100%); }
}

.yt-drawer__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.yt-drawer__title { font-size: 22px; font-weight: 800; color: var(--teal-dark); }
.yt-drawer__note { margin: -8px 0 12px; font-size: 13px; color: var(--muted); }

.yt-drawer__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 17px;
	color: var(--ink);
}

.yt-drawer__link:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.yt-drawer__link.is-active { background: var(--bg); }

.yt-drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }

.yt-search {
	position: fixed;
	inset: calc(var(--sticky-top) + 12px) 0 auto;
	width: min(640px, calc(100vw - 24px));
	margin: 0 auto;
}

.yt-search__panel {
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(15, 43, 44, .25);
}

.yt-search__form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 10px 18px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
}

.yt-search__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 18px;
	color: var(--ink);
}

.yt-search__input::placeholder { color: var(--muted-2); }

.yt-search__results {
	max-height: min(60vh, 420px);
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	list-style: none;
}

.yt-search__results:empty { display: none; }

.yt-search__results a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 6px 12px;
	border-radius: 10px;
	color: var(--ink);
}

.yt-search__results a:hover,
.yt-search__results a:focus-visible { background: var(--bg); text-decoration: none; }

.yt-search__sample {
	max-width: 50%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 16px;
	color: var(--muted);
}

.yt-search__none { padding: 12px; color: var(--muted); }

.yt-search__hint { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: var(--muted); }

.yt-history { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.yt-history__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.yt-history__body { flex: 1; min-width: 0; }

.yt-history__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
	white-space: pre-line;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.yt-history__time { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.yt-history__item .yt-btn { width: 44px; padding: 0; }

.yt-history__empty { margin: 8px 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.yt-history__empty:empty,
.yt-text-btn[hidden] { display: none; }

.yt-sheet {
	width: min(520px, calc(100vw - 48px));
	max-height: 90vh;
	margin: auto;
}

.yt-sheet__panel {
	max-height: 90vh;
	padding: 14px 22px calc(24px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow-y: auto;
	border-radius: 18px;
	background: #fff;
}

.yt-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yt-sheet__title { font-size: 20px; font-weight: 600; }

.yt-mockpost {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.yt-mockpost__who { display: flex; align-items: center; gap: 10px; }

.yt-mockpost__avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: repeating-linear-gradient(45deg, var(--line) 0 4px, var(--bg) 4px 8px);
}

.yt-mockpost__name { display: block; font-size: 14px; font-weight: 600; }
.yt-mockpost__meta { display: block; font-size: 12px; color: var(--muted-2); }

.yt-mockpost__text {
	margin: 0;
	font-size: 19px;
	line-height: 1.4;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.yt-sheet__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.yt-sheet__actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }

@media (max-width: 639px) {
	.yt-sheet { width: 100%; margin: auto 0 0; }
	.yt-sheet__panel { border-radius: 22px 22px 0 0; }
}

.yt-toast {
	position: fixed;
	inset: auto auto calc(20px + env(safe-area-inset-bottom)) 50%;
	z-index: 70;
	width: max-content;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	text-align: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
	transform: translateX(-50%);
	overflow: visible;
}

.yt-toast[hidden] { display: none; }
.yt-toast.is-error { background: var(--danger); }

/* Hidden helper used for the copy fallback in browsers without the Clipboard API. */
.yt-offscreen { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* ==========================================================================
   Page hero extras: breadcrumb, intro, meta line
   ========================================================================== */
.yt-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--on-teal);
}

.yt-crumbs > * { padding: 4px 0; }
.yt-crumbs a { color: #fff; }
.yt-crumbs a:hover { color: #fff; }

.yt-hero__title--page { margin-bottom: 10px; }

.yt-hero__intro {
	max-width: 640px;
	margin: 0;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.5;
	color: #fff;
	text-wrap: pretty;
}

.yt-hero__meta { margin: 0; font: 500 13px var(--mono); color: var(--on-teal); }
.yt-hero__intro + .yt-hero__meta { margin-top: 10px; }
.yt-hero__inner--page { padding-bottom: 48px; }

/* ==========================================================================
   Generator page (one style group or tool)
   ========================================================================== */
.yt-sp {
	width: 100%;
	max-width: 1200px;
	margin: -32px auto 0;
	padding: 0 var(--gutter) 56px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
}

.yt-sp__body { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.yt-sp__aside { flex: 1 1 280px; max-width: 100%; display: flex; flex-direction: column; gap: 20px; }

.yt-sp__h2 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.3; }

.yt-tool { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(15, 60, 61, .14); }

.yt-tool__input { padding: 18px 20px 0; }

.yt-tool__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

.yt-tool__textarea {
	display: block;
	width: 100%;
	padding: 6px 0 14px;
	border: 0;
	outline: 0;
	resize: vertical;
	background: transparent;
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.4;
	color: var(--ink);
}

.yt-tool__textarea::placeholder { color: var(--muted-2); }
.yt-tool:focus-within { box-shadow: 0 8px 24px rgba(15, 60, 61, .14), 0 0 0 3px rgba(15, 60, 61, .22); }

.yt-tool__result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: var(--teal-dark);
}

.yt-tool__out {
	flex: 1 1 280px;
	min-width: 0;
	margin: 0;
	font-size: clamp(22px, 3.4vw, 32px);
	line-height: 1.3;
	color: #fff;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.js .yt-tool__out:not(.is-ready) { visibility: hidden; }

.yt-tool__actions { flex: none; display: flex; gap: 8px; }

.yt-btn--line {
	height: 52px;
	padding: 0 18px;
	border: 1px solid #3d6e6e;
	border-radius: 12px;
	background: transparent;
	color: #fff;
}

.yt-btn--line:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

.yt-btn--accent {
	height: 52px;
	min-width: 120px;
	border-radius: 12px;
	background: var(--yellow);
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
}

.yt-btn--accent:hover { background: #ffe36b; color: var(--ink); }
.yt-btn--accent.is-copied { background: var(--success); color: #fff; }

.yt-sp__list { display: flex; flex-direction: column; gap: 10px; }

.yt-card--row { gap: 12px; }
.yt-card--row .yt-card__body { cursor: default; }
.yt-card--row .yt-card__copy { min-width: 88px; }
.yt-card--row .yt-card__out { white-space: pre-wrap; }

.yt-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.yt-steps li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

.yt-steps__num { font: 500 12px var(--mono); color: var(--link); }
.yt-steps b { font-size: 17px; }
.yt-steps li > span:last-child { font-size: 15px; line-height: 1.5; color: var(--text-2); }

.yt-panel {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

.yt-panel__title { margin: 0 0 10px; font-size: 17px; font-weight: 600; }

.yt-panel__links { display: flex; flex-direction: column; }

.yt-panel__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	border-bottom: 1px solid var(--bg);
	font-size: 15px;
	color: var(--ink);
}

.yt-panel__links a:last-child { border-bottom: 0; }
.yt-panel__links a:hover { color: var(--teal-dark); }
.yt-panel__sample { flex: none; max-width: 45%; overflow: hidden; white-space: nowrap; color: var(--muted); }

.yt-panel__eyebrow { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }

.yt-panel__toc { display: flex; flex-direction: column; }

.yt-panel__toc a {
	display: flex;
	align-items: center;
	min-height: 40px;
	font-size: 15px;
	line-height: 1.3;
	color: var(--ink);
}

.yt-sp__aside .yt-ad { min-height: 250px; margin: 0; }

/* ==========================================================================
   Long-form content (page body, style page notes, FAQ blocks)
   ========================================================================== */
.yt-content { font-size: 17px; line-height: 1.7; color: var(--text-3); }
.yt-content > :first-child { margin-top: 0; }

.yt-content h2 {
	margin: 36px 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
	scroll-margin-top: calc(var(--sticky-top) + 16px);
}

.yt-content h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.yt-content p { margin: 0 0 20px; text-wrap: pretty; }
.yt-content a { text-decoration: underline; }
.yt-content ul,
.yt-content ol { margin: 0 0 20px; padding-left: 24px; }
.yt-content li + li { margin-top: 6px; }

.yt-content blockquote {
	margin: 0 0 20px;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	color: var(--text-2);
}

.yt-content blockquote p:last-child { margin: 0; }

.yt-content img { max-width: 100%; height: auto; border-radius: 14px; }

/* Consecutive Details blocks read as one FAQ box, like the mock-up. */
.yt-content details {
	border: 1px solid var(--line);
	border-bottom-width: 0;
	background: #fff;
}

.yt-content details:not(details + details) { border-radius: 14px 14px 0 0; }
.yt-content details:not(:has(+ details)) { border-bottom-width: 1px; border-radius: 0 0 14px 14px; margin-bottom: 20px; }
.yt-content details:not(details + details):not(:has(+ details)) { border-radius: 14px; }
.yt-content details + details { border-top-color: var(--bg); }

.yt-content summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

.yt-content summary::-webkit-details-marker { display: none; }

.yt-content summary::after {
	content: '+';
	flex: none;
	font-size: 20px;
	font-weight: 400;
	color: var(--link);
}

.yt-content details[open] > summary::after { content: '\2212'; }

.yt-content details > :not(summary) { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* ==========================================================================
   Plain pages (About, Privacy…)
   ========================================================================== */
.yt-doc {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px var(--gutter) 64px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}

.yt-doc__body { flex: 1 1 560px; min-width: 0; max-width: 720px; }

.yt-doc__aside { flex: 1 1 220px; max-width: 100%; position: sticky; top: calc(var(--sticky-top) + 24px); }

@media (max-width: 899px) {
	.yt-doc__aside { position: static; order: -1; }
}

/* ==========================================================================
   Symbols page
   ========================================================================== */
.yt-tray .yt-composer__box { gap: 10px; }

.yt-tray__label { flex: none; font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }

.yt-tray__text {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	display: flex;
	align-items: center;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: 24px;
	letter-spacing: 2px;
	white-space: nowrap;
	color: var(--ink);
}

.yt-tray__text.is-empty { font-size: 15px; line-height: 1.3; letter-spacing: 0; white-space: normal; color: var(--muted-2); }
.yt-tray__text::-webkit-scrollbar { display: none; }

.yt-tray .yt-btn { flex: none; min-width: 96px; }

.yt-sym { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter) 56px; }

.yt-chips--always { display: flex; }

@media (min-width: 1024px) {
	.yt-sym .yt-chips--always { display: flex; }
}

.yt-sym .yt-toolbar { margin-bottom: 24px; }

.yt-sym__group + .yt-sym__group { margin-top: 32px; }
.yt-sym__group[hidden] { display: none; }

.yt-sym__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 20px; font-weight: 600; }

.yt-sym__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }

.yt-sym__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 6px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	font-size: 26px;
	color: var(--ink);
	transition: background-color .2s ease, border-color .2s ease;
}

.yt-sym__btn:hover { border-color: var(--line-2); background: var(--bg); }
.yt-sym__btn.is-last { border-color: #e8c22a; background: var(--yellow); }
.yt-sym__btn[hidden] { display: none; }
.yt-sym__btn--wide { grid-column: span 2; font-size: 18px; white-space: nowrap; }
.yt-sym__btn--xwide { grid-column: span 3; }

.yt-sym__content { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-2); }

/* ==========================================================================
   Blog: list, cards, pagination
   ========================================================================== */
.yt-blog {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px var(--gutter) 64px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.yt-chips--links .yt-chip { display: inline-flex; align-items: center; }
.yt-chips--links .yt-chip:hover { text-decoration: none; color: var(--teal-dark); }
.yt-chips--links .yt-chip.is-active:hover { color: #fff; }

@media (min-width: 1024px) {
	.yt-blog .yt-chips--always { display: flex; }
}

.yt-visual {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--teal-dark);
}

.yt-visual__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.yt-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--teal-dark);
}

.yt-tile__glyph {
	font-size: clamp(48px, 7vw, 84px);
	line-height: 1;
	color: var(--yellow);
	text-shadow: 0 3px 0 rgba(0, 0, 0, .25);
}

.yt-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	color: var(--ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.yt-post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }

.yt-post-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }

.yt-eyebrow { font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--link); }

.yt-post-card__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }

.yt-post-card__meta { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }

.yt-post-card--featured {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
	border-radius: 18px;
}

.yt-post-card--featured .yt-visual { aspect-ratio: auto; min-height: 240px; }
.yt-post-card--featured .yt-post-card__body { justify-content: center; gap: 12px; padding: clamp(20px, 3vw, 36px); }
.yt-post-card--featured .yt-eyebrow { font-size: 12px; }
.yt-post-card--featured .yt-post-card__title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.2; }
.yt-post-card__excerpt { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.yt-post-card--featured .yt-post-card__meta { margin-top: 0; padding-top: 0; font-size: 14px; }

.yt-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}

.yt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.yt-pager__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	color: var(--teal-dark);
}

.yt-pager__item:hover { border-color: var(--teal-dark); text-decoration: none; }
.yt-pager__item.current { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
.yt-pager__item.dots { border: 0; background: none; }

/* ==========================================================================
   Single post
   ========================================================================== */
.yt-hero__inner--narrow { max-width: 800px; padding-bottom: 120px; }

.yt-hero__title--post {
	max-width: none;
	margin: 0 0 14px;
	font-size: clamp(28px, 4.6vw, 46px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.8px;
}

.yt-byline { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: #fff; }

.yt-byline__avatar {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--yellow);
	box-shadow: inset 0 0 0 6px var(--teal-dark);
}

.yt-post { width: 100%; max-width: 800px; margin: -88px auto 0; padding: 0 var(--gutter) 64px; }

.yt-visual--hero { margin: 0 0 36px; border: 1px solid var(--line-2); border-radius: 18px; }

.yt-content--post { font-size: 18px; line-height: 1.75; }

.yt-content .yt-ad { margin: 0 0 24px; }

.yt-post__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--line-2);
}

/* Mini generator inside articles ([try_styles]). */
.yt-try {
	overflow: hidden;
	margin: 0 0 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	font-size: 16px;
	line-height: 1.4;
}

.yt-try__input { padding: 14px 16px; }

.yt-try__input input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	outline: 0;
	font-size: 17px;
	color: var(--ink);
}

.yt-try__input input:focus-visible { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(15, 60, 61, .15); }

.yt-try__row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-top: 1px solid var(--bg); }

.yt-try__out {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	font-size: 19px;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.js .yt-try__out:not(.is-ready) { visibility: hidden; }
.yt-try .yt-btn { flex: none; min-width: 84px; font-size: 14px; }

.yt-content .yt-tip {
	margin: 0 0 20px;
	padding: 16px 20px;
	border-left: 4px solid var(--yellow);
	border-radius: 0 12px 12px 0;
	background: #fff;
	font-size: 16px;
	color: var(--text-2);
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.yt-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	scroll-margin-top: calc(var(--sticky-top) + 16px);
}

.yt-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }

.yt-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-3); }

.yt-form__field input,
.yt-form__field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	outline: 0;
	background: #fff;
	font-size: 16px;
	font-weight: 400;
	color: var(--ink);
}

.yt-form__field input { height: 48px; }
.yt-form__field textarea { resize: vertical; }

.yt-form__field input:focus-visible,
.yt-form__field textarea:focus-visible { border-color: var(--teal-dark); box-shadow: 0 0 0 3px rgba(15, 60, 61, .15); }

.yt-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.yt-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.yt-form__actions .yt-btn { padding: 0 24px; }

.yt-form__notice { margin: 0 !important; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.yt-form__notice.is-ok { background: #e3f4ec; color: #0e5c3d; }
.yt-form__notice.is-error { background: #fbe8e8; color: #8a1f1f; }

/* ==========================================================================
   Emoji dictionary
   ========================================================================== */
.yt-emoji { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter) 64px; }

.yt-emoji .yt-toolbar { margin-bottom: 24px; }

@media (min-width: 1024px) {
	.yt-emoji .yt-chips--always { display: flex; }
}

.yt-emoji__group + .yt-emoji__group { margin-top: 36px; }
.yt-emoji__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.yt-emoji__head .yt-sym__title { margin: 0; }
.yt-emoji__more { display: inline-flex; align-items: center; min-height: 32px; font-size: 15px; font-weight: 500; }

.yt-emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }

.yt-emo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-height: 104px;
	padding: 12px 8px 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	text-align: center;
	transition: border-color .2s ease, background-color .2s ease;
}

.yt-emo:hover { border-color: var(--line-2); background: var(--bg); color: var(--ink); text-decoration: none; }
.yt-emo[hidden] { display: none; }
.yt-emo__char { font-size: 34px; line-height: 1.1; }

.yt-emo__name {
	font-size: 12px;
	line-height: 1.3;
	color: var(--text-3);
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.yt-emoji__results[hidden],
[data-yt-emoji-browse][hidden] { display: none; }

.yt-emoji-h1 { display: inline-block; margin-right: 6px; }

.yt-emoji-card {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 20px 28px;
	margin: 0 0 32px;
	padding: 24px;
	border: 1px solid var(--line-2);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--shadow);
}

.yt-emoji-card__glyph { font-size: clamp(88px, 14vw, 128px); line-height: 1; }
.yt-emoji-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.yt-emoji-card__code { font: 500 13px var(--mono); color: var(--muted); }
.yt-emoji-card__tones { grid-column: 1 / -1; }
.yt-emoji-card__tone-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }

@media (max-width: 479px) {
	.yt-emoji-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.yt-emoji-card__actions { align-items: center; }
}

.yt-emoji-section { margin-top: 32px; }

.yt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.yt-tags li {
	padding: 6px 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	color: var(--text-3);
}

/* ==========================================================================
   404
   ========================================================================== */
.yt-404 {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 48px var(--gutter) 72px;
	background: var(--teal);
}

.yt-404__inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }

.yt-404__big {
	padding: 0;
	border: 0;
	background: none;
	font-size: clamp(88px, 18vw, 168px);
	font-weight: 800;
	line-height: 1;
	color: var(--yellow);
	text-shadow: 0 4px 0 var(--teal-dark);
}

.yt-404__style { margin: 0; font: 500 12px var(--mono); color: var(--on-teal); }
.yt-404__title { margin: 8px 0 0; font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; color: #fff; }
.yt-404__text { margin: 0; font-size: 17px; line-height: 1.5; color: #fff; text-wrap: pretty; }
.yt-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.yt-404__actions .yt-btn { padding: 0 24px; }

.yt-btn--light { background: #fff; color: var(--teal-dark); }
.yt-btn--light:hover { background: var(--bg); color: var(--teal-dark); }

/* ==========================================================================
   Generic pages
   ========================================================================== */
.yt-page { max-width: 800px; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.yt-prose { font-size: 17px; line-height: 1.7; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
