:root {
	--ink: #1B1A17;
	--muted: #5F5B52;
	--acc: #C23A1C;
	--acc-strong: #A8301A;
	--acc-hi: #FF7A57;
	--tint: #FFF1EB;
	--tint-2: #FFF5F1;
	--tint-3: #FFF8F5;
	--tint-4: #FBE9DF;
	--stone: #F4F2EE;
	--paper: #FAF8F3;
	--warn-ink: #5A2516;
	--ok: #2F7D4F;
	--ok-bg: #EEF7F1;
	--gold: #C9A227;
	--line: rgba(27, 26, 23, .12);
	--line-soft: rgba(27, 26, 23, .1);
	--line-mid: rgba(27, 26, 23, .15);
	--line-strong: rgba(27, 26, 23, .2);
	--acc-line: rgba(194, 58, 28, .18);
	--ring: 0 0 0 4px rgba(194, 58, 28, .18);
	--tool-shadow: 0 2px 4px rgba(27, 26, 23, .04), 0 28px 56px -28px rgba(194, 58, 28, .28);
	--f-head: 'Lexend', system-ui, sans-serif;
	--f-body: 'Be Vietnam Pro', system-ui, sans-serif;
	--f-mono: 'JetBrains Mono', ui-monospace, monospace;
	--wrap: 1200px;
	--gut: 20px;
	--hdr-full: 61px;
	--hdr: 61px;
}

@media (max-width: 819px) {
	:root { --hdr-full: 105px; --hdr: 105px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding-top: var(--hdr-full);
	background: #fff;
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--acc); }
input, select, textarea, button { font-family: inherit; }
button { cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--acc); }
[hidden] { display: none !important; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.page-top { padding-top: 20px; }
.section { padding-top: 88px; }
.section-sm { padding-top: 56px; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; max-width: 760px; }
.page-head-wide { max-width: none; }
.h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.h1-home { font-size: clamp(26px, 3.4vw, 40px); }
.lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 820px; text-wrap: pretty; }
.h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; margin: 8px 0 0; line-height: 1.1; }
.h2-sm { font-family: var(--f-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.h3 { font-family: var(--f-head); font-weight: 700; font-size: 20px; margin: 0; }
.sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head-sm { margin-bottom: 14px; }
.sec-link { font-weight: 600; font-size: 15px; }
.eyebrow { display: inline-flex; width: fit-content; white-space: nowrap; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--acc-line); color: var(--acc-strong); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.eyebrow-white { background: #fff; margin-bottom: 0; }
.mt-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.grp-title { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
/* Logged-in users: the header sits below the WordPress admin bar, kept fixed on phones too. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	#wpadminbar { position: fixed !important; }
}
.site-header-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--acc-hi); display: grid; place-items: center; font-size: 18px; }
.brand-name { font-family: var(--f-head); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-name span { color: var(--acc); }
.main-nav { flex: 1 1 0; min-width: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { flex: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: rgba(27, 26, 23, .06); color: var(--ink); }
.main-nav a[aria-current="page"] { font-weight: 700; color: var(--acc); background: var(--tint); }
.hdr-search { flex: none; margin-left: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid rgba(27, 26, 23, .18); border-radius: 10px; background: #fff; font-size: 14px; color: var(--muted); }
@media (max-width: 819px) {
	.site-header-in { gap: 8px 20px; }
	.main-nav { order: 3; flex-basis: 100%; }
	.site-header.nav-hidden .main-nav { display: none; }
}

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs-current { color: var(--ink); }

/* Generic controls */
.label-cap { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input-xl { width: 100%; height: 56px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 0 48px 0 16px; font-size: 20px; font-weight: 500; outline: none; background: #fff; color: var(--ink); }
.input-xl:focus { box-shadow: var(--ring); }
.input-wrap { position: relative; display: flex; flex: 1 1 220px; }
.input-clear { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border: none; border-radius: 8px; background: rgba(27, 26, 23, .06); font-size: 18px; color: var(--muted); }
.btn-primary { height: 56px; padding: 0 24px; border: none; border-radius: 12px; background: var(--acc); color: #fff; font-size: 16px; font-weight: 700; flex: none; }
.btn-primary:hover { background: var(--acc-strong); color: #fff; }
.btn-cta { align-self: flex-start; height: 48px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 12px; background: var(--acc); color: #fff; font-weight: 700; font-size: 15px; }
.btn-cta:hover { background: var(--acc-strong); color: #fff; }
.btn-outline { align-self: flex-start; height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; background: #fff; }
.btn-copy { flex: none; height: 44px; min-width: 96px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn-copy.sm { min-width: 84px; padding: 0 12px; font-size: 13px; }
.btn-copy.soft { border: 1px solid rgba(27, 26, 23, .25); }
.btn-copy.is-copied { background: var(--ink); color: #fff; }
.btn-link { flex: none; height: 44px; padding: 0 10px; border: none; background: none; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn-text-acc { align-self: flex-start; border: none; background: none; padding: 4px 0; font-size: 13px; color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chip { flex: none; white-space: nowrap; height: 36px; padding: 0 12px; border: 1px solid var(--line-mid); border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.pill { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-mid); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill[aria-selected="true"], .pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.pill-row::-webkit-scrollbar { display: none; }
.glyph-btn { min-width: 44px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-mid); background: #fff; color: var(--ink); font-size: 16px; }
.glyph-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.glyph-btn.is-word { font-size: 13px; }
.glyph-btn.is-dashed { border-style: dashed; }
.switch { display: flex; align-items: center; gap: 8px; border: none; background: none; font-size: 13px; color: var(--muted); padding: 4px 0; white-space: nowrap; }
.switch-track { width: 34px; height: 20px; border-radius: 999px; background: rgba(27, 26, 23, .25); position: relative; transition: background .15s; flex: none; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] .switch-track { background: var(--acc); }
.switch[aria-checked="true"] .switch-knob { left: 16px; }
.seg { display: flex; background: var(--stone); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); white-space: nowrap; }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27, 26, 23, .12); }
.seg.tint { background: var(--tint); border-radius: 9px; }
.seg.tint button { height: 30px; border-radius: 7px; }
.seg.lg { border-radius: 12px; display: grid; }
.seg.lg button { height: 40px; border-radius: 10px; font-weight: 700; overflow: hidden; }
.mono { font-family: var(--f-mono); }
.codes { font-family: var(--f-mono); font-size: 11px; color: var(--muted); min-height: 14px; overflow-wrap: anywhere; }

/* Tool card (two panes) */
.tool { background: #fff; border: 1px solid rgba(27, 26, 23, .14); border-radius: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); overflow: hidden; box-shadow: var(--tool-shadow); }
.tool.r24 { border-radius: 24px; }
.tool-in { padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 22px; border-right: 1px solid rgba(27, 26, 23, .08); min-width: 0; }
.tool-in.g18 { gap: 18px; }
.tool-out { background: var(--tint-3); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tool-out.g12 { gap: 12px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slot input { height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font-size: 18px; outline: none; background: #fff; min-width: 0; }
.slot input:focus { border-color: var(--ink); }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.palette button { height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.palette button:hover { border-color: var(--ink); background: var(--paper); }
.out-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.out-title { margin: 0; font-family: var(--f-head); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.meta { font-size: 13px; color: var(--muted); }
.empty-box { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty-box p { margin: 0; }
.empty-box .t { font-weight: 600; }
.empty-box .d { font-size: 14px; color: var(--muted); max-width: 300px; }
.empty-glyph { font-size: 34px; color: var(--acc); }
.note-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--tint-4); font-size: 13px; line-height: 1.45; color: var(--warn-ink); }
.results { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.res { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; transition: border-color .15s; }
.res.is-copied { border-color: var(--ink); }
.res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.res-text { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; padding-bottom: 14px; overflow-wrap: anywhere; user-select: all; }
.res-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.res-meta b { font-weight: 600; color: var(--ink); }
.res-note { color: var(--acc-strong); }
.frame-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; }
.frame-text { flex: 1; min-width: 0; font-size: 18px; line-height: 1.5; padding: 6px 0 12px; overflow-wrap: anywhere; user-select: all; }
.fine { margin: auto 0 0; padding-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.fine a { text-decoration: underline; text-underline-offset: 2px; }

/* Glyph tiles */
.tiles { display: grid; gap: 8px; }
.tiles-10 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 819px) {
	.tiles-10 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tiles-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tile { position: relative; min-height: 96px; padding: 14px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); }
.tile:hover { border-color: var(--ink); }
.tile.is-copied { background: var(--tint-4); border-color: var(--acc); }
.tile-g { font-size: 30px; line-height: 1.15; white-space: nowrap; }
.tile-g.long { font-size: 20px; }
.tile-label { font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; }
.tile.is-copied .tile-label { color: var(--acc); font-weight: 700; }
.blank-box { width: 36px; height: 30px; border: 1.5px dashed var(--acc); border-radius: 6px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 9px; color: var(--acc); }

/* Topic cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 12px; display: flex; align-items: center; gap: 14px; transition: border-color .15s, box-shadow .15s; }
a.cat-card:hover { border-color: var(--acc); box-shadow: 0 10px 24px -16px rgba(194, 58, 28, .5); color: var(--ink); }
.cat-icon { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 26px; line-height: 1; overflow: hidden; white-space: nowrap; }
.cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat-rest { font-size: 15px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-arrow { flex: none; color: var(--muted); font-size: 15px; }
.cat-all { background: var(--acc); color: #fff; border-radius: 16px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 82px; }
.cat-all:hover { background: var(--acc-strong); color: #fff; }
.cat-all .t { font-weight: 700; font-size: 15px; }
.cat-all .d { font-size: 13px; opacity: .9; }

/* Fancy block (home) */
.fancy-band { background: var(--tint-2); border: 1px solid rgba(194, 58, 28, .14); border-radius: 24px; padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.fancy-band .h2 { margin: 0; line-height: 1.05; }
.fancy-input { height: 52px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); padding: 0 14px; font-size: 18px; outline: none; }
.fancy-input:focus { box-shadow: var(--ring); }
.fancy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; align-content: start; }
.fancy-row { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fancy-row:hover { border-color: var(--ink); }
.fancy-row.is-copied { border-color: var(--acc); }
.fancy-row-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fancy-row-top .st { font-weight: 600; }
.fancy-row.is-copied .st { color: var(--acc); }
.fancy-row-text { font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.warn-line { font-size: 13px; color: var(--acc-strong); }

/* Platform cards */
.plat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.plat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
a.plat-card:hover { border-color: var(--ink); color: var(--ink); }
.plat-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plat-name { font-family: var(--f-head); font-weight: 700; font-size: 19px; }
.plat-sample { font-size: 18px; height: 52px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; background: var(--tint-2); white-space: nowrap; overflow: hidden; }
.plat-desc { font-size: 13px; color: var(--muted); line-height: 1.4; min-height: 2.8em; }

/* Name rows */
.name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.name-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 10px; }
.name-text { font-size: 20px; line-height: 1.5; padding-bottom: 12px; overflow-wrap: anywhere; user-select: all; }
.name-tag { font-size: 12px; color: var(--muted); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 8px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
a.tool-card:hover { border-color: var(--ink); color: var(--ink); }
.tool-card .n { font-family: var(--f-head); font-weight: 700; font-size: 19px; }
.tool-card .d { font-size: 14px; color: var(--muted); line-height: 1.45; }
.tool-card .ex { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 12px; border-radius: 10px; background: var(--tint-2); overflow-wrap: anywhere; }
.tool-card .ex .f { color: var(--muted); font-size: 13px; flex: none; }
.tool-card .ex .a { color: var(--acc); flex: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.step-art { height: 116px; border-radius: 12px; background: var(--tint-2); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 16px; flex-wrap: wrap; }
.step-input { width: 100%; max-width: 240px; height: 48px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; display: flex; align-items: center; padding: 0 14px; font-size: 18px; font-weight: 500; }
.step-caret { width: 2px; height: 22px; background: var(--acc); margin-left: 2px; }
.step-chip { height: 40px; min-width: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-mid); background: #fff; display: grid; place-items: center; font-size: 16px; }
.step-chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.step-res { width: 100%; max-width: 260px; background: #fff; border: 1px solid var(--ink); border-radius: 12px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 10px; }
.step-res .t { flex: 1; min-width: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.step-res .b { flex: none; height: 36px; padding: 0 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.step-body { display: flex; gap: 14px; align-items: baseline; }
.step-n { font-family: var(--f-head); font-weight: 800; font-size: 28px; color: var(--acc); line-height: 1; }
.step-body .c { display: flex; flex-direction: column; gap: 6px; }
.step-body strong { font-size: 17px; }
.step-body span { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* FAQ */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.faq-aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.faq-aside .h2 { margin: 0; }
.faq-aside p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 320px; }
.faq-box { flex: 2 1 480px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; padding: 12px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; font-size: 20px; color: var(--acc); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 560px; text-wrap: pretty; }

/* Prose (editor content) */
.prose { max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.prose h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-head); font-weight: 700; font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--stone); padding: 1px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--tint-3); }
.prose .big { font-size: 22px; }
@media (max-width: 600px) {
	.prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
	.prose thead { display: none; }
	.prose tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
	.prose td { border: none; padding: 4px 0; }
	.prose td[data-th]::before { content: attr(data-th) ': '; font-weight: 600; color: var(--muted); }
}

/* Library */
.lib-hero { border-radius: 24px; background: var(--tint-2); border: 1px solid rgba(194, 58, 28, .12); padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 44px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.lib-hero .h1 { font-size: clamp(28px, 3.6vw, 42px); }
.lib-hero .lead { max-width: 560px; }
.lib-hero .lead strong { color: var(--ink); }
.lib-search { width: 100%; max-width: 680px; margin-top: 10px; position: relative; display: flex; }
.lib-search svg { position: absolute; left: 18px; top: 18px; }
.lib-search input { width: 100%; height: 56px; border: 1.5px solid var(--ink); border-radius: 16px; padding: 0 52px 0 50px; font-size: 17px; outline: none; background: #fff; box-shadow: 0 12px 28px -18px rgba(194, 58, 28, .45); }
.lib-search input:focus { box-shadow: var(--ring); }
.lib-search .input-clear { border-radius: 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; font-size: 13px; color: var(--muted); }
.lib-bar { position: sticky; top: var(--hdr); z-index: 12; background: #fff; margin-top: 12px; border-bottom: 1px solid var(--line-soft); }
.lib-bar-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.lib-cats { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.lib-cats::-webkit-scrollbar { display: none; }
.lib-cat { flex: none; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-mid); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.lib-cat:hover { border-color: var(--ink); }
.lib-cat[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lib-allbtn { flex: none; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lib-allbtn[aria-expanded="true"] { background: var(--tint); }
@media (max-width: 819px) { .lib-allbtn .lbl { display: none; } }
.lib-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; padding: 4px 0 14px; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; }
.lib-catgrid button { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.lib-catgrid button:hover { border-color: var(--ink); }
.lib-catgrid button[aria-pressed="true"] { border-color: var(--acc); background: var(--tint); color: var(--acc-strong); }
.lib-catgrid .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; font-size: 14px; flex: none; }
.lib-catgrid .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-catgrid .ct { font-size: 12px; font-weight: 500; color: var(--muted); }
.lib-body { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.lib-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.lib-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); min-height: 32px; }
.lib-status strong { color: var(--ink); font-size: 15px; }
.tag-x { height: 36px; padding: 0 12px; border-radius: 999px; border: none; background: var(--ink); font-size: 12px; font-weight: 600; color: #fff; }
.lib-sort { height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font-size: 13px; font-weight: 600; background: #fff; color: var(--ink); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
@media (max-width: 600px) { .lib-grid:not(.combo) { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
.lib-grid.combo { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.lib-item { position: relative; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: border-color .15s; }
.lib-item.is-copied { background: var(--tint); border-color: var(--acc); }
.lib-copy { width: 100%; min-height: 112px; padding: 16px 8px 10px; border: none; background: transparent; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); }
.lib-g { font-size: 32px; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; }
.lib-g.m { font-size: 22px; }
.lib-g.s { font-size: 17px; }
.lib-name { font-size: 12px; line-height: 1.3; text-align: center; color: var(--muted); font-weight: 500; }
.lib-item.is-copied .lib-name { color: var(--acc); font-weight: 700; }
.lib-code { font-family: var(--f-mono); font-size: 10px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.lib-add { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: none; border-radius: 8px; background: rgba(27, 26, 23, .05); font-size: 16px; font-weight: 700; color: var(--ink); }
.lib-add:hover { background: var(--ink); color: #fff; }
.badge-new, .badge-emoji { position: absolute; top: 8px; left: 8px; font-size: 10px; border-radius: 6px; padding: 2px 6px; }
.badge-new { font-weight: 700; color: var(--acc-strong); background: var(--tint); }
.badge-emoji { font-weight: 600; color: var(--muted); background: var(--stone); }
.blank-box.lg { width: 38px; height: 32px; font-size: 10px; font-family: var(--f-body); font-weight: 600; }
.lib-empty { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.lib-empty .ic { font-size: 32px; color: var(--acc); }
.lib-empty strong { font-size: 17px; }
.lib-empty .d { font-size: 14px; color: var(--muted); max-width: 420px; }
.btn-more { display: block; height: 48px; padding: 0 24px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; font-size: 15px; font-weight: 700; margin: 6px auto 0; }
.name-cards + .btn-more { margin-top: 16px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 28px; }
.info-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.info-card strong { font-size: 15px; }
.info-card span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.info-card a { text-decoration: underline; text-underline-offset: 2px; }
.info-card.warm { border: none; background: var(--tint); }
.info-card.warm strong, .info-card.warm span { color: var(--warn-ink); }
.tray { position: sticky; bottom: 0; z-index: 30; margin-top: 24px; background: var(--ink); color: #fff; box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, .4); }
.tray-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gut); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tray-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tray-lbl { font-size: 12px; color: #C9C4B8; }
.tray-text { font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.tray-btn { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 13px; font-weight: 600; }
.tray-copy { height: 44px; min-width: 120px; padding: 0 16px; border-radius: 10px; border: none; background: var(--acc); color: #fff; font-size: 14px; font-weight: 700; }
.tray-copy.is-copied { background: var(--ok); }

/* Spaces tool */
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; color: var(--ink); }
.radio-opt[aria-checked="true"] { border-color: var(--ink); background: var(--tint-3); }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(27, 26, 23, .3); background: #fff; flex: none; box-shadow: inset 0 0 0 3px #fff; }
[aria-checked="true"] > .radio-dot, [aria-selected="true"] .radio-dot { border-color: var(--acc); background: var(--acc); }
.radio-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.radio-txt strong { font-size: 14px; }
.radio-txt span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.ab { flex: none; display: flex; align-items: center; font-size: 18px; font-weight: 600; color: var(--muted); }
.ab i { display: inline-block; font-style: normal; height: 22px; min-width: 2px; background: rgba(194, 58, 28, .2); outline: 1px dashed var(--acc); white-space: pre; }
.ab.box { justify-content: center; width: 84px; height: 40px; border-radius: 10px; background: var(--tint-3); font-size: 20px; color: var(--ink); }
.ab.box i { height: 26px; }
.sp-row2 { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.sp-pos { display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px; }
.seg.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.cols6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; height: 46px; }
.stepper button { width: 44px; height: 44px; border: none; background: none; font-size: 18px; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.stepper.sm { border-radius: 10px; height: 44px; flex: none; }
.stepper.sm button { width: 38px; height: 42px; font-size: 17px; }
.stepper.sm span { min-width: 24px; font-size: 14px; }
.preview { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px; min-height: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; font-size: 32px; font-weight: 500; row-gap: 8px; }
.preview .vis { white-space: pre; }
.preview .inv { display: inline-flex; align-items: center; justify-content: center; height: 40px; border: 1px solid transparent; border-radius: 4px; font-size: 10px; color: var(--acc); font-family: var(--f-mono); white-space: pre; }
.preview .inv.w4 { min-width: 4px; }
.preview .inv.w6 { min-width: 6px; }
.preview .inv.w12 { min-width: 12px; }
.preview .inv.w14 { min-width: 14px; }
.preview .inv.w18 { min-width: 18px; }
.preview.show-inv .inv { border: 1px dashed var(--acc); background: rgba(194, 58, 28, .12); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 11px; color: var(--muted); }
.stat strong { font-size: 18px; }
.stat.acc { border-color: rgba(194, 58, 28, .25); }
.stat.acc span, .stat.acc strong { color: var(--acc-strong); }
.btn-build { height: 54px; border-radius: 12px; border: none; background: var(--acc); color: #fff; font-size: 16px; font-weight: 700; margin-top: auto; }
.btn-build.is-copied { background: var(--ok); }
.last { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.last.on { background: #F1F8F3; border-color: rgba(47, 125, 79, .35); }
.last-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(27, 26, 23, .25); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.last.on .last-dot { background: var(--ok); }
.last-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.last-txt b { font-size: 13px; }
.last-txt span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.sp-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: #fff; }
.sp-row + .sp-row { border-top: 1px solid var(--line-soft); }
.sp-row.is-copied { background: var(--tint-3); }
.sp-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-info .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-info strong { font-size: 15px; }
.sp-info .note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.size-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--stone); color: var(--muted); white-space: nowrap; }
.size-tag.big { background: var(--tint); color: var(--acc-strong); }
.sp-code { flex: none; font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 70px; }
.btn-copy.wide { min-width: 112px; font-size: 13px; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 420px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.panel p { margin: 0; font-size: 14px; color: var(--muted); }
.panel textarea { border: 1.5px solid rgba(27, 26, 23, .25); border-radius: 12px; padding: 12px 14px; font-size: 18px; outline: none; resize: vertical; }
.panel textarea:focus { border-color: var(--ink); }
.side-cards { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.side-cards .info-card { border-radius: 18px; padding: 16px 18px; }
.test-chars { display: flex; flex-wrap: wrap; gap: 4px; }
.test-ch { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; min-width: 44px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.test-ch.inv { border-style: dashed; border-color: var(--acc); background: var(--tint); }
.test-ch .g { font-size: 18px; height: 24px; white-space: pre; }
.test-ch .c { font-family: var(--f-mono); font-size: 9px; color: var(--muted); }

/* Game */
.game-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 8px; margin-bottom: 16px; }
.game-tab { text-align: left; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.game-tab:hover { border-color: var(--ink); color: var(--ink); }
.game-tab[aria-current="page"] { border-color: var(--ink); background: var(--tint-3); }
.game-tab[aria-current="page"] .radio-dot { border-color: var(--acc); background: var(--acc); }
.game-tab .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game-tab strong { font-family: var(--f-head); font-size: 16px; }
.game-tab .s { font-size: 17px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.prefixes .glyph-btn { min-width: 48px; height: 42px; padding: 0 12px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.palette.g48 { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.palette.g48 button { height: 46px; border-radius: 12px; font-size: 16px; }
.adv { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.adv-toggle { border: none; background: none; padding: 4px 0; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; gap: 6px; align-items: center; }
.adv-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.adv-slots label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; }
.adv-slots input { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font-size: 16px; outline: none; min-width: 0; }
.adv-slots input:focus { border-color: var(--ink); }
.adv-slots .codes { font-size: 10px; font-weight: 400; }
.unverified { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.dot.ok { background: var(--ok); }
.len-tag { padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.len-tag.long { background: var(--tint); color: var(--acc-strong); }
.res.g { padding: 10px 10px 10px 16px; }
.res.g .res-text { font-size: 21px; padding-bottom: 8px; }
.limit-note { margin-top: auto; border-radius: 14px; background: #fff; border: 1px solid rgba(201, 162, 39, .45); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.limit-note .i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #FBF3D9; color: #8A6D10; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.ready { border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.ready:hover { border-color: var(--ink); }
.ready-main { flex: 1; padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.ready-text { font-size: 22px; line-height: 1.5; padding-bottom: 6px; overflow-wrap: anywhere; user-select: all; }
.ready-len { font-size: 12px; color: var(--muted); margin-top: auto; }
.ready-actions { display: flex; border-top: 1px solid var(--line-soft); }
.ready-actions button { flex: 1; height: 46px; border: none; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink); }
.ready-actions .ed { border-right: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; color: var(--muted); }
.ready-actions .is-copied { background: var(--ink); color: #fff; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.gl-grid .tile-g { font-size: 24px; }
.gl-grid .tile-label { font-family: var(--f-mono); font-size: 10px; }
.vsteps { list-style: none; margin: 0; padding: 0; }
.vstep { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.vstep-l { display: flex; flex-direction: column; align-items: center; }
.vstep-n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 15px; flex: none; }
.vstep-line { flex: 1; width: 2px; background: var(--line-mid); margin: 6px 0; }
.vstep:last-child .vstep-line { background: transparent; }
.vstep-t { padding: 6px 0 22px; font-size: 15px; line-height: 1.6; }
.game-aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.box-warm { border-radius: 18px; background: var(--tint-2); border: 1px solid rgba(194, 58, 28, .14); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.box-warm strong { font-size: 15px; }
.box-warm span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid rgba(201, 162, 39, .5); white-space: nowrap; color: var(--ink); }
.legend span.ok { border-color: rgba(47, 125, 79, .4); }
.box-line { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.box-line strong { font-size: 14px; }
.link-pill { height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-mid); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.link-pill:hover { border-color: var(--ink); color: var(--ink); }

/* Plain pages */
.page-plain { max-width: 820px; }

/* Footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line-soft); background: var(--tint-3); }
.footer-grid { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.footer-brand .brand-name { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-size: 13px; font-weight: 700; }
.footer-col a { font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--acc); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut) 32px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: var(--muted); line-height: 1.5; }
.footer-note { max-width: 640px; }
.footer-bottom a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Toast */
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; width: min(92vw, 440px); background: var(--ink); color: #F3F0E8; border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); animation: toastIn .2s ease-out; }
.toast.is-error { background: var(--warn-ink); }
.toast.above-tray { bottom: 108px; }
.toast-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--acc-hi); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.toast.is-error .toast-icon { background: #FFB59E; }
.toast-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.toast-title { font-size: 14px; }
.toast-text { font-size: 13px; color: #D9D4C8; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.toast { animation: none; }
}

/* Game page extras */
.panel-plain { flex: 1 1 440px; min-width: 0; }
.seg.lg button { font-size: 13px; }
.seg.cols6 button { font-size: 16px; }
.seg.cols6 button.is-word { font-size: 12px; }
.ready-actions .is-copied.ed { background: #fff; color: var(--muted); }

/* Touch size for text-style controls */
.switch, .btn-text-acc, .adv-toggle { min-height: 44px; }

/* Spacing helpers */
.mt-6 { margin-top: 6px; }
.mt-28 { margin-top: 28px; }
.mb-14 { margin-bottom: 14px; }
.mb-0 { margin-bottom: 0; }
.mr-4 { margin-right: 4px; }
.py-10 { padding: 10px 0; }
.py-14 { padding: 14px 0; }
.w-full { width: 100%; }
.grow { flex: 1 1 160px; justify-content: center; }
.center { justify-content: center; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.meta-12 { font-size: 12px; color: var(--muted); }
.h3-22 { font-size: 22px; }
.lead-16 { font-size: 16px; line-height: 1.6; }
.anchor { scroll-margin-top: calc(var(--hdr) + 64px); }

/* Pills: small variants */
.pill.sm { height: 38px; padding: 0 14px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pill.xs { height: 36px; padding: 0 12px; font-size: 13px; }
.pill-n { font-weight: 500; opacity: .65; font-size: 12px; }
.btn-cta.sm { height: 44px; font-size: 14px; padding: 0 16px; border-radius: 10px; }
.btn-solid { height: 46px; padding: 0 18px; border-radius: 12px; border: none; background: var(--acc); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-solid:hover { background: var(--acc-strong); }
.btn-solid.is-copied { background: var(--ok); }
.btn-outline-lg { height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Topic (symbol category) */
.topic-hero { border-radius: 24px; background: var(--tint-2); border: 1px solid rgba(194, 58, 28, .12); padding: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.topic-hero-text { flex: 1 1 380px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.topic-hero-text .eyebrow { margin-bottom: 0; }
.h1-topic { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.035em; line-height: 1.05; }
.topic-hero-grid { flex: 0 1 400px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hero-glyph { aspect-ratio: 1; padding: 0 2px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 32px; display: grid; place-items: center; color: var(--ink); box-shadow: 0 8px 20px -16px rgba(194, 58, 28, .6); white-space: nowrap; overflow: hidden; }
.hero-glyph.long { font-size: 22px; }
.hero-glyph:hover { border-color: var(--ink); }
.hero-glyph.is-copied { border-color: var(--acc); }
.jump-bar { position: sticky; top: var(--hdr); z-index: 10; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin: 12px calc(-1 * var(--gut)) 0; padding: 10px var(--gut); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; }
.jump-label { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.jump-links { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump-links::-webkit-scrollbar { display: none; }
.jump-links a { flex: none; height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-mid); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.jump-links a[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic-groups { padding-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.grp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grp-title-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.topic-tile { min-height: 120px; padding: 16px 8px 12px; border-radius: 16px; transition: border-color .15s; }
.topic-tile .tile-label { font-size: 12px; font-weight: 500; }
.topic-g { font-size: 34px; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; }
.topic-g.m { font-size: 24px; }
.topic-g.s { font-size: 20px; }
.combo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 0 24px; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.combo-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(27, 26, 23, .08); }
.combo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.combo-g { font-size: 20px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.howto { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.howto-ic { font-size: 22px; }
.howto strong { font-size: 15px; }
.howto span:last-child { font-size: 14px; line-height: 1.55; color: var(--muted); }
.faq-ask { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.faq-ask a { color: var(--acc); font-weight: 600; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.cat-icon.sm { width: 52px; height: 52px; font-size: 24px; }
.ready-actions a.ed { flex: 1; height: 46px; display: grid; place-items: center; border-right: 1px solid var(--line-soft); font-size: 13px; font-weight: 600; color: var(--muted); }

/* Fancy text tool */
.fancy-hero { padding-bottom: 64px; }
.fancy-bar { position: sticky; top: var(--hdr); z-index: 12; padding: 14px 0 12px; margin-top: -34px; transition: background .15s; }
.fancy-bar.is-stuck { background: #fff; box-shadow: 0 1px 0 rgba(27, 26, 23, .08); }
.fancy-bar-in { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.fancy-field { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(194, 58, 28, .5); }
.fancy-field textarea { display: block; width: 100%; min-height: 64px; resize: none; border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px 110px 18px 20px; font-size: 20px; line-height: 1.4; outline: none; background: #fff; color: var(--ink); }
.fancy-field textarea:focus { box-shadow: var(--ring); }
.fancy-field .input-clear { right: 10px; top: 12px; border-radius: 10px; }
.fancy-count { position: absolute; right: 56px; top: 22px; font-size: 12px; color: var(--muted); }
.fancy-count.full { color: var(--acc); }
.fancy-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.fancy-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); padding: 6px 0; }
.note-vn { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 13px; line-height: 1.5; color: var(--warn-ink); }
.note-vn > span { flex: 1 1 300px; }
.switch-warm { color: var(--warn-ink); font-weight: 600; }
.switch-warm .switch-track { background: rgba(90, 37, 22, .3); }
.fancy-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.fancy-sec-title { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-left: 4px; }
.fancy-box { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.fancy-item { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; background: #fff; }
.fancy-item + .fancy-item { border-top: 1px solid var(--line-soft); }
.fancy-item.is-copied { background: var(--tint-3); }
.fancy-out { font-size: 23px; line-height: 1.5; padding-bottom: 4px; overflow-wrap: anywhere; user-select: all; }
.fancy-out.is-sample { color: #8E897D; }
.miss { padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--acc-strong); font-weight: 600; }
.az-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.az { width: 100%; border-collapse: collapse; font-size: 15px; }
.az th, .az td { text-align: center; padding: 4px; border-bottom: 1px solid var(--line-soft); }
.az thead th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 4px; background: var(--tint-3); }
.az tbody th { font-family: var(--f-mono); font-weight: 500; color: var(--muted); width: 64px; }
.az tbody tr:last-child th, .az tbody tr:last-child td { border-bottom: none; }
.az-cell { width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 10px; background: none; font-size: 22px; }
.az-cell:hover { border-color: var(--ink); }
.az-cell.is-copied { background: var(--tint); border-color: var(--acc); }
.az-none { color: #B5B0A6; }

/* Name collection */
.name-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.nm-card .ready-main { gap: 10px; }
.tag-acc, .tag-stone { font-size: 11px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-acc { font-weight: 700; color: var(--acc-strong); background: var(--tint); }
.tag-stone { font-weight: 600; color: var(--muted); background: var(--stone); }
.lib-sort.round { border-radius: 999px; padding: 0 14px; }
.sheet { width: min(100% - 40px, 520px); max-height: 90vh; border: none; border-radius: 20px; padding: 0; }
.sheet::backdrop { background: rgba(27, 26, 23, .45); }
.sheet-in { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sheet-title { font-family: var(--f-head); font-size: 20px; }
.input-clear.static { position: static; }
.sheet-slots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.sheet-slots label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; }
.sheet-slots input { height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font-size: 17px; min-width: 0; outline: none; }
.sheet-slots input.strong { border: 1.5px solid var(--ink); }
.sheet-out { border-radius: 14px; background: var(--tint-3); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sheet-out .ready-text { font-size: 24px; }
.sheet-actions .btn-outline, .sheet-actions .btn-build { height: 48px; margin: 0; display: flex; align-items: center; }
@media (max-width: 639px) {
	.sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}

/* Game hub and tools hub */
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.game-card:hover { border-color: var(--acc); color: var(--ink); box-shadow: 0 14px 30px -20px rgba(194, 58, 28, .55); }
.game-card-glyphs { font-size: 18px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-sec { padding-top: 44px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.tl-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tl-card:hover { border-color: var(--acc); box-shadow: 0 14px 30px -20px rgba(194, 58, 28, .55); color: var(--ink); }
.tl-top { display: flex; gap: 14px; align-items: flex-start; }
.tl-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 20px; white-space: nowrap; overflow: hidden; }
.tl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-tx strong { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.3; }
.tl-tx span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tl-ex { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #FAF8F5; border: 1px solid rgba(27, 26, 23, .06); }
.tl-ex .f { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-ex .a { color: var(--acc); font-weight: 700; }
.tl-ex .t { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-open { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--acc); }
.soon-row { padding: 14px 18px; }
.soon-ex { flex: 0 1 200px; font-size: 16px; color: #8E897D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-dark { margin-top: 48px; border-radius: 20px; background: var(--ink); color: #fff; padding: clamp(20px, 3vw, 28px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-dark-tx { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.cta-dark-tx strong { font-family: var(--f-head); font-size: 20px; }
.cta-dark-tx span { font-size: 14px; line-height: 1.55; color: #C9C4B8; }
.cta-dark .btn-cta { align-self: auto; }

/* Library: topics that have their own page */
.topic-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }

.mt-14 { margin-top: 14px; }

/* Bio generator */
.tool-in.g16, .tool-out.g16 { gap: 16px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.nowrap { flex-wrap: nowrap; }
.ellipsis { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.strong { height: 34px; font-size: 12px; font-weight: 700; border-color: var(--line-strong); }
.bg-white { background: #fff; }
.bio-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.bio-field-top { display: flex; justify-content: space-between; gap: 8px; }
.bio-field-top span { font-weight: 400; color: var(--muted); }
.bio-field input { height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; font-size: 16px; outline: none; background: #fff; }
.bio-field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(194, 58, 28, .12); }
.bio-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bio-head { display: flex; align-items: center; gap: 14px; }
.bio-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: repeating-linear-gradient(45deg, #FFE3D8 0 6px, #FFF1EB 6px 12px); border: 1px solid rgba(194, 58, 28, .15); }
.bio-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bio-who strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio-who span { font-size: 13px; color: var(--muted); }
.bio-text { margin: 0; white-space: pre-wrap; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; user-select: all; min-height: 96px; }
.bio-bar { height: 6px; border-radius: 3px; background: var(--stone); overflow: hidden; }
.bio-bar-fill { height: 6px; width: 0; background: var(--ok); border-radius: 3px; }
.bio-bar-fill.over { background: var(--acc); }
.bio-count { color: var(--ok); font-weight: 700; }
.bio-count.over { color: var(--acc); }
.bio-over { font-size: 13px; color: var(--acc-strong); font-weight: 600; background: var(--tint); border-radius: 10px; padding: 8px 10px; }
.bio-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bio-style { text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--ink); }
.bio-style[aria-checked="true"] { border-color: var(--ink); }
.bio-style-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.bio-style-top .c { font-size: 11px; font-weight: 700; color: var(--ok); }
.bio-style-top .c.over { color: var(--acc); }
.bio-style-s { font-size: 12px; line-height: 1.45; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-glyph.longer { font-size: 15px; }
@media (max-width: 600px) {
	.hero-glyph { font-size: 28px; }
	.hero-glyph.long { font-size: 17px; }
	.hero-glyph.longer { font-size: 12px; }
}

/* Readability and touch sizes on small screens */
.sec-link { display: inline-flex; align-items: center; min-height: 44px; }
.seg.tint button { height: 36px; }
.lib-code, .gl-grid .tile-label, .badge-new, .badge-emoji { font-size: 11px; }
.tile-label { font-size: 12px; }
.blank-box { width: 42px; font-size: 11px; }
.preview .inv { font-size: 11px; }
.badge-new, .badge-emoji { top: 6px; left: 6px; }
.lib-copy { padding-top: 22px; }
.palette button.wide { grid-column: span 2; }
@media (max-width: 600px) {
	.seg.cols4 button { font-size: 12px; padding: 0 2px; }
}
.seg.cols6 button, .seg.cols4 button { padding: 0 2px; }
/* In a column (game page) the 220px basis would become a height. */
.stack-8 > .input-wrap { flex: none; }

/* Blog list */
.blog-topics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.blog-h2 { font-family: var(--f-head); font-weight: 700; font-size: 22px; margin: 0; }
.blog-feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px; margin-top: 14px; }
.post-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; background: #fff; transition: border-color .15s; }
.post-card:hover { border-color: var(--acc); color: var(--ink); }
.post-cover { display: grid; place-items: center; background: var(--tint-2); color: var(--ink); letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.post-card-tx { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-topic { font-size: 12px; font-weight: 700; color: var(--acc-strong); }
.post-card-t { font-family: var(--f-head); font-size: 18px; line-height: 1.35; }
.post-card-d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.post-card-m { font-size: 12px; color: var(--muted); }
.post-card.big { grid-row: 1 / span 2; flex-direction: column; }
.post-card.big .post-cover { flex: 1; min-height: 220px; background: var(--tint); font-size: clamp(40px, 5vw, 60px); }
.post-card.big .post-card-tx { padding: 20px 22px 22px; gap: 8px; }
.post-card.big .post-card-t { font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.01em; }
.post-card.big .post-card-d { font-size: 15px; line-height: 1.6; }
.post-card.side { min-height: 170px; }
.post-card.side .post-cover { flex: 0 0 40%; font-size: 30px; }
.post-card.side .post-card-tx { flex: 1; padding: 16px 18px; justify-content: center; }
.blog-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.meta-13 { font-size: 13px; color: var(--muted); }
.blog-list { display: flex; flex-direction: column; }
.blog-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: 16px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.blog-row:first-child { border-top-color: var(--line-mid); }
.blog-row:hover { color: var(--ink); background: #FFFBF9; }
.blog-row-cover { width: 72px; height: 72px; border-radius: 16px; background: var(--tint-2); display: grid; place-items: center; font-size: 18px; letter-spacing: .02em; overflow: hidden; white-space: nowrap; }
.blog-row-tx { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.blog-row-m { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.blog-row-t { font-family: var(--f-head); font-size: 18px; line-height: 1.35; font-weight: 700; }
.blog-row-d { font-size: 14px; line-height: 1.55; color: var(--muted); }
.blog-row-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-mid); display: grid; place-items: center; font-size: 16px; }
.row-wrap.center { justify-content: center; margin-top: 6px; }
.blog-ask { margin-top: 48px; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.blog-ask-tx { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.blog-ask-tx strong { font-size: 17px; }
.blog-ask-tx span { font-size: 14px; line-height: 1.55; color: var(--muted); }
.blog-ask .btn-cta { align-self: auto; }
.pagination { margin-top: 20px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-mid); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 819px) {
	.blog-feat { grid-template-columns: minmax(0, 1fr); }
	.post-card.big { grid-row: auto; }
}
@media (max-width: 639px) {
	.blog-row { grid-template-columns: 72px minmax(0, 1fr); }
	.blog-row-arrow { display: none; }
	.post-card.side { flex-direction: column; min-height: 0; }
	.post-card.side .post-cover { flex: none; height: 110px; }
}

/* Blog post */
.read-progress { position: fixed; left: 0; right: 0; top: var(--hdr); height: 3px; z-index: 25; pointer-events: none; }
.read-progress span { display: block; height: 3px; width: 0; background: var(--acc); transition: width .1s linear; }
.post-hero { background: var(--tint-2); border-bottom: 1px solid rgba(194, 58, 28, .12); }
.post-hero-in { padding-top: 24px; padding-bottom: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.post-hero-tx { flex: 1 1 520px; max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.post-hero-tx .crumbs { margin: 0; }
.post-pill { align-self: flex-start; white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--acc-line); color: var(--acc-strong); font-size: 12px; font-weight: 600; }
.post-h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.035em; margin: 0; line-height: 1.08; text-wrap: balance; }
.post-lead { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: #3A3732; max-width: 620px; text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.post-try { flex: 0 1 360px; min-width: min(100%, 280px); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 48px -28px rgba(194, 58, 28, .4); }
.post-try-g { font-size: 30px; line-height: 1.5; padding-bottom: 6px; overflow-wrap: anywhere; }
.post-try-act { display: flex; gap: 8px; }
.post-try-act > * { flex: 1; justify-content: center; align-self: auto; }
.toc-bar { display: none; position: sticky; top: var(--hdr); z-index: 15; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.toc-toggle { width: 100%; height: 48px; border: none; background: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 var(--gut); font-size: 14px; font-weight: 600; color: var(--ink); }
.toc-cur { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.toc-k { color: var(--muted); font-weight: 500; }
.toc-ic { flex: none; color: var(--acc); }
.toc-toggle[aria-expanded="true"] .toc-ic { transform: rotate(180deg); }
.toc-drop { display: flex; flex-direction: column; padding: 0 12px 12px; }
.toc-drop[hidden] { display: none; }
.toc-drop a, .toc-side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.toc-drop a[aria-current], .toc-side a[aria-current] { font-weight: 700; color: var(--acc-strong); background: var(--tint-2); }
.toc-n { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.post-main { padding-top: 40px; display: flex; gap: 56px; align-items: flex-start; }
.post-body { flex: 1 1 0; min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.75; color: #2A2824; }
.post-body h2 { font-weight: 700; font-size: 28px; margin-top: 44px; scroll-margin-top: calc(var(--hdr) + 64px); }
.post-body details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
.post-body summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; padding: 10px 0; cursor: pointer; list-style: none; }
.post-body summary::-webkit-details-marker { display: none; }
.post-body summary::after { content: '+'; flex: none; font-size: 20px; color: var(--acc); }
.post-body details[open] summary::after { content: '−'; }
.post-body details p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.post-cta { margin-top: 40px; }
.post-body a.post-cta, .post-body a.post-cta:hover { color: #fff; text-decoration: none; }
.post-aside { flex: 0 0 280px; position: sticky; top: calc(var(--hdr) + 28px); display: flex; flex-direction: column; gap: 24px; }
.toc-side { display: flex; flex-direction: column; gap: 2px; }
.toc-side .label-cap { margin-bottom: 8px; font-size: 12px; }
.toc-side a { border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; padding-left: 12px; }
.toc-side a[aria-current] { border-left-color: var(--acc); }
.aside-tools { display: flex; flex-direction: column; gap: 8px; }
.aside-tools .label-cap { font-size: 12px; }
.aside-tool { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.aside-tool:hover { border-color: var(--acc); }
.post-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 10px; }
.post-card.more { flex-direction: column; }
.post-card.more .post-cover { height: 110px; font-size: 32px; }
.post-card.more .post-card-tx { padding: 16px 18px 18px; }
.post-card.more .post-card-d, .post-card.more .post-card-m { display: none; }
@media (max-width: 959px) {
	.toc-bar { display: block; }
	.post-aside { display: none; }
	.post-main { padding-top: 28px; }
}
@media (max-width: 600px) {
	.post-body { font-size: 16px; }
	.post-body h2 { font-size: 24px; }
}
