/* Liru Hu · Emergent — component styles. Colors and type scale live in theme.json. */

:root {
	/* Paper (reading) palette is the default; .lh-dark switches a section to the night palette. */
	--lh-ink: #0C1622;
	--lh-bg: var(--wp--preset--color--paper, #F7F4EF);
	--lh-panel: #FFFFFF;
	--lh-panel-2: #EFE8DE;
	--lh-line: rgba(20, 32, 44, .12);
	--lh-line-2: rgba(20, 32, 44, .22);
	--lh-text: #14202C;
	--lh-muted: #4A5568;
	--lh-dim: #5F6B7A;
	--lh-cyan: #0B6E85;
	--lh-gold: #8F5600;
	--lh-amber: #F2B84B;
	--lh-ghost: rgba(20, 32, 44, .25);
	--lh-shadow: 0 1px 2px rgba(20, 32, 44, .06), 0 10px 28px -10px rgba(20, 32, 44, .18);
	--lh-mono: var(--wp--preset--font-family--mono, 'IBM Plex Mono', monospace);
	--lh-wide: 1240px;
	--lh-kick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%238F5600' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='6' r='4.5' fill='none' stroke='%238F5600' stroke-width='1.3'/%3E%3C/svg%3E");
	--lh-squig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 11'%3E%3Cpolyline points='3,7 12,3 21,9 30,4 39,8 48,3 57,7' fill='none' stroke='%238F5600' stroke-width='1.4' opacity='.8'/%3E%3Ccircle cx='3' cy='7' r='1.8' fill='%238F5600'/%3E%3Ccircle cx='21' cy='9' r='1.8' fill='%238F5600'/%3E%3Ccircle cx='39' cy='8' r='1.8' fill='%238F5600'/%3E%3Ccircle cx='57' cy='7' r='1.8' fill='%238F5600'/%3E%3C/svg%3E");
}
.lh-dark {
	--lh-bg: #0C1622;
	--lh-panel: #0F1D2C;
	--lh-panel-2: #13243A;
	--lh-line: #1E2D3E;
	--lh-line-2: #2A3B4F;
	--lh-text: #E9EEF4;
	--lh-muted: #B9C5D3;
	--lh-dim: #8FA0B4;
	--lh-cyan: #7FD6E2;
	--lh-gold: #F2B84B;
	--lh-ghost: #3A4D63;
	--lh-kick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%23FFCF96' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='6' r='4.5' fill='none' stroke='%23FFCF96' stroke-width='1.3'/%3E%3C/svg%3E");
	--lh-squig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 11'%3E%3Cpolyline points='3,7 12,3 21,9 30,4 39,8 48,3 57,7' fill='none' stroke='%23FFCF96' stroke-width='1.4' opacity='.8'/%3E%3Ccircle cx='3' cy='7' r='1.8' fill='%23FFCF96'/%3E%3Ccircle cx='21' cy='9' r='1.8' fill='%23FFCF96'/%3E%3Ccircle cx='39' cy='8' r='1.8' fill='%23FFCF96'/%3E%3Ccircle cx='57' cy='7' r='1.8' fill='%23FFCF96'/%3E%3C/svg%3E");
	background-color: var(--lh-bg);
	color: var(--lh-text);
}
.lh-dark a:where(:not(.wp-element-button)) { color: var(--lh-cyan); }
.lh-dark a:where(:not(.wp-element-button)):hover { color: var(--lh-gold); }
.lh-dark .wp-block-button__link:hover { background: #E9EEF4; color: #0C1622; }
:where(h1, h2, h3, h4) { color: var(--lh-text); }

body { -webkit-font-smoothing: antialiased; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--lh-amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lh-amber); color: var(--lh-ink); }

/* ---------- Header ---------- */
.lh-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--lh-amber); color: var(--lh-ink); padding: .6rem 1rem; font-weight: 600; }
.lh-skip:focus { left: 1rem; top: 1rem; }
.lh-header { border-bottom: 1px solid var(--lh-line); margin: 0 !important; }
.lh-header .wp-block-shortcode, .lh-footer .wp-block-shortcode { margin: 0; }
.lh-header__inner { max-width: var(--lh-wide); margin: 0 auto; padding: 1.25rem clamp(1.25rem, 4vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.lh-brand { font-family: var(--lh-mono); font-weight: 500; font-size: 1.125rem; color: var(--lh-text); text-decoration: none; }
.lh-brand span { color: var(--lh-gold); }
.lh-brand:hover { color: var(--lh-text); }
.lh-header__menu { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.lh-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9375rem; }
.lh-nav a { color: #C9D3DF; text-decoration: none; padding: .55rem 0; }
.lh-nav a:hover { color: var(--lh-gold); }
.lh-nav a[aria-current="page"] { color: var(--lh-text); text-decoration: underline; text-decoration-color: var(--lh-gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lh-lang { display: flex; gap: 2px; border: 1px solid var(--lh-line-2); border-radius: 8px; padding: 3px; }
.lh-lang a { color: #C9D3DF; text-decoration: none; font-size: .875rem; padding: .45rem .75rem; border-radius: 6px; min-height: 2.25rem; display: inline-flex; align-items: center; }
.lh-lang a:hover { color: var(--lh-text); background: var(--lh-panel-2); }
.lh-lang a[aria-current="true"] { background: var(--lh-amber); color: var(--lh-ink); }
.lh-menu-toggle { display: none; background: transparent; color: var(--lh-text); border: 1px solid var(--lh-line-2); border-radius: 8px; padding: .55rem 1rem; font: inherit; font-size: .9375rem; min-height: 44px; cursor: pointer; }
@media (max-width: 900px) {
	.lh-js .lh-menu-toggle { display: inline-flex; align-items: center; }
	.lh-header__menu { width: 100%; flex-direction: column; align-items: flex-start; gap: 1rem; padding-bottom: .5rem; }
	.lh-js .lh-header__menu { display: none; }
	.lh-js .lh-header__menu.is-open { display: flex; }
	.lh-nav { flex-direction: column; gap: 0; width: 100%; }
	.lh-nav a { padding: .75rem 0; border-top: 1px solid var(--lh-line); font-size: 1.0625rem; }
}

/* ---------- Footer ---------- */

/* ---------- Layout ---------- */
.lh-main { padding-bottom: 0; }
.lh-main > .wp-block-post-content > :last-child { margin-bottom: 0; }
.lh-section { border-top: 1px solid var(--lh-line); padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.lh-section.is-flush { border-top: 0; }
.lh-page-head { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--40); border-bottom: 1px solid var(--lh-line); margin-bottom: var(--wp--preset--spacing--50); }
.lh-page-head .wp-block-post-title { margin: 0; font-size: var(--wp--preset--font-size--xxl); }

/* ---------- Type helpers ---------- */
.lh-eyebrow, .lh-label { font-family: var(--lh-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--lh-gold); margin-bottom: 0; }
.lh-lede { font-size: var(--wp--preset--font-size--lg); color: var(--lh-muted); line-height: 1.6; }
.lh-muted { color: var(--lh-muted); }
.lh-meta { font-family: var(--lh-mono); font-size: .75rem; color: var(--lh-dim); margin: 0; }
.lh-meta.is-amber { color: var(--lh-gold); }

/* ---------- Hero ---------- */
.lh-hero { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--40) !important; }
.lh-hero h1 { text-wrap: balance; margin-top: .75rem; }
.lh-hero .lh-lede { margin: 0; }

/* ---------- Research threads ---------- */
.lh-threads { border-top: 2px solid var(--lh-line-2); }
.lh-thread { padding-top: 1.4rem; }
.lh-thread h3 { margin: .6rem 0 .5rem; }
.lh-thread p:not(.lh-label) { color: var(--lh-muted); font-size: .9375rem; margin: 0; }
.lh-thread .lh-more { font-size: .875rem; font-weight: 600; margin-top: .75rem; }

/* ---------- Publication / item rows ---------- */
.lh-pub { border-top: 1px solid var(--lh-line); padding: 1rem 0; margin: 0 !important; }
.lh-pub:last-child { border-bottom: 1px solid var(--lh-line); }
.lh-pub .lh-pub-title { margin: .25rem 0 0; font-size: 1.0625rem; line-height: 1.45; }
.lh-pub .lh-pub-title a { color: var(--lh-text); text-decoration: none; }
.lh-pub .lh-pub-title a:hover { color: var(--lh-gold); }
.lh-publist { list-style: none; padding-left: 0 !important; margin: 0; }
.lh-publist li { border-top: 1px solid var(--lh-line); padding: .9rem 0; line-height: 1.55; color: var(--lh-muted); }
.lh-publist li:last-child { border-bottom: 1px solid var(--lh-line); }
.lh-publist strong { color: var(--lh-text); font-weight: 600; }
.lh-publist em { color: var(--lh-text); }
.lh-publist .lh-tag { font-family: var(--lh-mono); font-size: .75rem; color: var(--lh-gold); margin-left: .35rem; }

/* ---------- Cards and buttons ---------- */
.is-style-lh-card, .lh-card { background: var(--lh-amber); color: var(--lh-ink); border-radius: 16px; padding: 2rem !important; }
.is-style-lh-card :where(h2, h3, p, a), .lh-card :where(h2, h3, p, a) { color: var(--lh-ink); }
.is-style-lh-card .lh-label, .lh-card .lh-label { color: var(--lh-ink); }
.is-style-lh-card .wp-block-button__link, .lh-card .wp-block-button__link { background: var(--lh-ink); color: var(--lh-gold); }
.is-style-lh-card .wp-block-button__link:hover, .lh-card .wp-block-button__link:hover { background: #1E2D3E; color: var(--lh-gold); }
.lh-panel { background: var(--lh-panel); border: 1px solid var(--lh-line); border-radius: 16px; padding: 1.75rem !important; }
.wp-block-button.is-style-lh-ghost .wp-block-button__link { background: transparent; color: var(--lh-text); border: 1px solid var(--lh-ghost); }
.wp-block-button.is-style-lh-ghost .wp-block-button__link:hover { border-color: var(--lh-gold); color: var(--lh-gold); }
.is-style-lh-card .wp-block-button.is-style-lh-ghost .wp-block-button__link { color: var(--lh-ink); border-color: var(--lh-ink); }

/* ---------- Lists, details ---------- */
.lh-checklist { list-style: none; padding-left: 0 !important; }
.lh-checklist li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; color: var(--lh-muted); }
.lh-checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--lh-cyan); }
.wp-block-details { border-top: 1px solid var(--lh-line); padding: .9rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; }
.wp-block-table table { border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 0; border-top: 1px solid var(--lh-line); padding: .75rem .75rem .75rem 0; vertical-align: top; }
.wp-block-table td:first-child { font-family: var(--lh-mono); font-size: .8125rem; color: var(--lh-dim); white-space: nowrap; }

/* ---------- Simulation ---------- */
.lh-sim { display: flex; flex-direction: column; gap: .9rem; }
.lh-sim__stage { border: 1px solid var(--lh-line); border-radius: 16px; overflow: hidden; background: var(--lh-panel); }
.lh-sim__stage svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.lh-sim__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; }
.lh-sim__hint { margin: 0; color: var(--lh-muted); font-size: .9375rem; line-height: 1.55; flex: 1 1 26rem; }
.lh-sim__ctrl { display: flex; flex-wrap: wrap; gap: .5rem; }
.lh-sim__btn { background: transparent; color: var(--lh-text); border: 1px solid var(--lh-ghost); border-radius: 8px; padding: .6rem 1rem; min-height: 44px; font: inherit; font-size: .9375rem; cursor: pointer; }
.lh-sim__btn:hover { border-color: var(--lh-gold); color: var(--lh-gold); }
.lh-sim__btn.is-primary { background: var(--lh-amber); color: var(--lh-ink); border-color: var(--lh-gold); font-weight: 600; }
.lh-sim__btn.is-primary:hover { background: var(--lh-text); border-color: var(--lh-text); color: var(--lh-ink); }
.lh-sim__metrics { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--lh-mono); font-size: .8125rem; color: var(--lh-dim); }
.lh-sim__metrics strong { color: var(--lh-text); font-weight: 500; }
.lh-sim__metrics strong.is-cyan { color: var(--lh-cyan); }
.lh-sim__metrics strong.is-amber { color: var(--lh-gold); }
.lh-sim__cite { margin: 0; font-family: var(--lh-mono); font-size: .75rem; color: var(--lh-dim); }
.lh-sim:fullscreen { background: var(--lh-ink); padding: 2rem; justify-content: center; overflow: auto; }
.lh-sim:fullscreen .lh-sim__stage { max-height: 78vh; }
.lh-sim:fullscreen .lh-sim__stage svg { max-height: 78vh; }

/* ---------- News ---------- */
.lh-newslist .wp-block-post-template { gap: 1.25rem; }
.lh-news-item { border-top: 2px solid var(--lh-line-2); padding-top: 1rem; height: 100%; }
.lh-news-item .wp-block-post-title { margin: .4rem 0; line-height: 1.35; }
.lh-news-item .wp-block-post-title a { color: var(--lh-text); text-decoration: none; }
.lh-news-item .wp-block-post-title a:hover { color: var(--lh-gold); }
.lh-news-item .wp-block-post-excerpt { color: var(--lh-muted); font-size: .9375rem; }
.lh-news-item .wp-block-post-excerpt__more-text { display: none; }

/* ---------- Publications tools ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.lh-pub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.lh-pub-search { flex: 1 1 16rem; min-height: 44px; background: var(--lh-panel); color: var(--lh-text); border: 1px solid var(--lh-line-2); border-radius: 8px; padding: .55rem .85rem; font: inherit; font-size: .9375rem; }
.lh-pub-search:focus { outline: 2px solid var(--lh-amber); outline-offset: 1px; }
.lh-pub-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lh-chip { background: transparent; color: var(--lh-muted); border: 1px solid var(--lh-line-2); border-radius: 999px; padding: .45rem .85rem; min-height: 36px; font: inherit; font-size: .8125rem; cursor: pointer; }
.lh-chip:hover { color: var(--lh-text); border-color: var(--lh-dim); }
.lh-chip[aria-pressed="true"] { background: var(--lh-amber); border-color: var(--lh-gold); color: var(--lh-ink); font-weight: 600; }
.lh-pub-count, .lh-pub-none { width: 100%; margin: 0; font-family: var(--lh-mono); font-size: .75rem; color: var(--lh-dim); }
.lh-pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-top: .5rem; }
.lh-pub-tag { font-family: var(--lh-mono); font-size: .6875rem; color: var(--lh-ink); background: #7FD6E2; border-radius: 4px; padding: .1rem .4rem; }
.lh-pub-tag.is-see { background: #B79CFF; } .lh-pub-tag.is-teach { background: #A5D86E; } .lh-pub-tag.is-model { background: var(--lh-amber); }
.lh-pub-btn { background: transparent; color: var(--lh-muted); border: 1px solid var(--lh-line-2); border-radius: 6px; padding: .2rem .55rem; min-height: 28px; font: inherit; font-size: .75rem; cursor: pointer; }
.lh-pub-btn:hover { color: var(--lh-gold); border-color: var(--lh-gold); }
.lh-pub-bib { margin: .5rem 0 0; padding: .75rem; background: var(--lh-panel); border: 1px solid var(--lh-line); border-radius: 8px; font-family: var(--lh-mono); font-size: .75rem; line-height: 1.5; color: var(--lh-muted); white-space: pre-wrap; word-break: break-word; }

/* ---------- Profile links ---------- */
.lh-profiles { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.lh-profile { display: inline-flex; align-items: center; gap: .4rem; color: var(--lh-muted); text-decoration: none; font-size: .875rem; min-height: 32px; }
.lh-profile:hover { color: var(--lh-gold); }
.lh-profile svg { flex: none; }

/* ---------- Print (CV, publications) ---------- */
@media print {
	:root { --lh-ink: #fff; --lh-panel: #fff; --lh-panel-2: #fff; --lh-line: #ccc; --lh-line-2: #ccc; --lh-text: #000; --lh-muted: #222; --lh-dim: #444; --lh-cyan: #035e6b; --lh-amber: #8a5a00; }
	body { background: #fff !important; color: #000 !important; font-size: 11pt; }
	.lh-header, .lh-footer, .lh-sim, .lh-pub-tools, .lh-pub-actions, .lh-pub-bib-wrap, .wp-block-buttons, .lh-menu-toggle, .lh-copy-btn, .lh-pub-btn, .lh-pub-badges, .lh-explore { display: none !important; }
	.lh-copyable { padding-bottom: 1rem; }
	a { color: #000 !important; text-decoration: underline; }
	.lh-section { padding-top: 1rem !important; padding-bottom: 1rem !important; border-color: #ccc; break-inside: avoid-page; }
	.lh-publist li { break-inside: avoid; }
	h1, h2, h3 { color: #000 !important; break-after: avoid; }
}

/* ---------- Editor helpers ---------- */
.editor-styles-wrapper .wp-block-shortcode { font-family: var(--lh-mono); font-size: .8125rem; }

/* ---------- Callouts, copyable text, badges ---------- */
.lh-callout { border: 1px solid var(--lh-amber); border-radius: 10px; padding: .9rem 1.1rem; color: var(--lh-text); background: rgba(242, 184, 75, .07); }
.lh-copyable { position: relative; background: var(--lh-panel); border: 1px solid var(--lh-line); border-radius: 10px; padding: 1rem 1.1rem 2.75rem; color: var(--lh-muted); }
.lh-copy-btn { position: absolute; right: .75rem; bottom: .75rem; }
.lh-chip.is-featured[aria-pressed="false"] { color: var(--lh-gold); border-color: rgba(242, 184, 75, .5); }
.lh-pub-badges { display: inline-flex; align-items: center; gap: .4rem; }
.lh-pub-badges:empty { display: none; }
.lh-explore { border: 1px solid var(--lh-line); border-radius: 16px; padding: 1.25rem !important; margin-block: 1.5rem !important; background: rgba(15, 29, 44, .6); }
.lh-explore h4 { font-size: var(--wp--preset--font-size--sm); font-family: var(--lh-mono); color: var(--lh-gold); font-weight: 500; letter-spacing: .04em; }
.lh-explore ol { color: var(--lh-muted); padding-left: 1.25rem; }
.lh-explore ol li { margin-bottom: .4rem; }
.lh-pubs .lh-section { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--40) !important; }
.lh-pubs .lh-pub-tools + .lh-section { border-top: 0; padding-top: 0 !important; }

/* Review fixes */
.is-style-lh-card :focus-visible, .lh-card :focus-visible, .lh-callout :focus-visible { outline-color: var(--lh-ink); }
.lh-callout a:focus-visible { outline-color: var(--lh-gold); }
.lh-publist a, .lh-pub-title a, .lh-profile span { overflow-wrap: anywhere; }
.lh-pub-bib-wrap { margin-top: .5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.lh-pub-bib-wrap[hidden] { display: none; }
.lh-pub-bib-wrap .lh-pub-bib { margin: 0; width: 100%; box-sizing: border-box; }


/* =====================================================================
   v2 design: paper body, dark bands, kickers, story, numbers, cards
   ===================================================================== */
.wp-site-blocks > * + * { margin-block-start: 0; }
.lh-main { margin-top: 0 !important; }
.lh-main > .wp-block-post-content > :first-child { margin-top: 0; }
.lh-band, .lh-home-hero, .lh-stats { margin-top: 0 !important; margin-bottom: 0 !important; }
.lh-band + *, .lh-home-hero + *, .lh-stats + * { margin-top: 0 !important; }
.lh-js .lh-band ~ .wp-block-group.alignwide:first-of-type, .lh-chapter:first-of-type { border-top: 0; }

/* Kickers: a small English label over a localized heading, and the turn-taking squiggle under a heading */
.lh-kicker { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--lh-gold); }
.lh-kicker::before { content: ""; flex: none; width: 18px; height: 12px; background: var(--lh-kick) no-repeat center / contain; }
.lh-dark .lh-kicker { color: #FFCF96; }
.lh-sq { margin-top: 0 !important; }
.lh-sq::after { content: ""; display: block; width: 62px; height: 11px; margin-top: .7rem; background: var(--lh-squig) no-repeat left center / contain; }
.lh-hero-kicker { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lh-amber) !important; }
.lh-hero-kicker::before { content: ""; flex: none; width: 34px; height: 8px; background: linear-gradient(var(--lh-amber), var(--lh-amber)) left top / 34px 1.2px no-repeat, linear-gradient(rgba(242, 184, 75, .6), rgba(242, 184, 75, .6)) left bottom / 24px 1.2px no-repeat; }

/* Dark page band (inner-page hero) with a starry strip at the bottom */
.lh-band { position: relative; padding-top: 3.5rem !important; padding-bottom: 112px !important; }
.lh-band::after, .lh-footer__sky { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: url(../img/horizon.svg) center bottom / auto 96px repeat-x; pointer-events: none; }
.lh-band h1 { margin: .9rem 0 .6rem; text-wrap: balance; }
.lh-band .lh-lede { max-width: 54rem; color: var(--lh-muted); }
.lh-jumps { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-family: var(--lh-mono); font-size: .8125rem; color: var(--lh-dim); margin-top: .5rem; }
.lh-jumps a { text-decoration: none; padding: .35rem 0; }

/* Chapters: heading column + content column, on paper */
.lh-chapter { border-top: 1px solid var(--lh-line); padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; margin-top: 0 !important; }
.lh-chapter > .wp-block-columns { gap: 1.25rem 4rem; margin: 0; }
.lh-chapter h2 { font-size: var(--wp--preset--font-size--xl); }

/* Cards */
.lh-card-w { background: var(--lh-panel); border-radius: 16px; box-shadow: var(--lh-shadow); padding: 1.4rem 1.5rem !important; }
.lh-dark .lh-card-w { box-shadow: none; border: 1px solid var(--lh-line); }
.lh-card-w > * { margin-block: 0; }
.lh-card-w > * + * { margin-top: .6rem !important; }
.lh-card-w h3 { font-size: 1.1875rem; line-height: 1.35; }
.lh-card-w p:not(.lh-num):not(.lh-facts) { color: var(--lh-muted); font-size: .9375rem; line-height: 1.6; }
.lh-num { font-family: var(--lh-mono); font-size: 1.75rem; line-height: 1; color: var(--lh-gold); }
.lh-facts { display: flex; flex-wrap: wrap; gap: .35rem; font-family: var(--lh-mono); font-size: .75rem; }
.lh-facts span { border: 1px solid var(--lh-line-2); border-radius: 6px; padding: .15rem .5rem; color: var(--lh-muted); }
.lh-facts span:first-child { color: var(--lh-gold); }
.lh-cards { gap: 1.1rem !important; }

/* Homepage hero: text over the animated research story */
.lh-home-hero { position: relative; overflow: hidden; background: #0A1420 !important; padding-top: 4rem !important; padding-bottom: 2.25rem !important; }
.lh-home-hero > .wp-block-group { position: relative; z-index: 1; }
.lh-home-hero h1 { font-size: clamp(2.25rem, 4.2vw, 3.625rem); max-width: 40rem; margin: 1.1rem 0 1rem; text-wrap: balance; }
.lh-home-hero .lh-lede { max-width: 36rem; margin: 0 0 1.25rem; }
.lh-home-hero .wp-block-buttons { margin-bottom: 1rem; }
.lh-home-hero .wp-block-button.is-style-lh-ghost .wp-block-button__link { background: rgba(12, 22, 34, .5); }
.lh-pill { margin: 0; }
.lh-pill a { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid rgba(233, 238, 244, .22); background: rgba(12, 22, 34, .55); border-radius: 999px; padding: .3rem 1rem .3rem .3rem; color: #E9EEF4 !important; text-decoration: none; font-size: .875rem; line-height: 1.4; }
.lh-pill a:hover { border-color: var(--lh-amber); }
.lh-pill b { background: var(--lh-amber); color: #0C1622; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; letter-spacing: .04em; }
.lh-story__scene { position: absolute; left: 0; right: 0; top: 0; height: 820px; z-index: 0; pointer-events: none; }
.lh-story__scene svg { display: block; width: 100%; height: 100%; }
.lh-story__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 32, .96) 0%, rgba(10, 20, 32, .6) 40%, rgba(10, 20, 32, 0) 58%), linear-gradient(180deg, rgba(10, 20, 32, 0) 72%, #0A1420 100%); }
.lh-story { position: relative; z-index: 1; margin-top: 3.5rem; }
.lh-home-hero > .wp-block-html, .lh-home-hero > .lh-story { position: static; }
.lh-story__bar { position: relative; z-index: 1; background: rgba(10, 20, 32, .8); border: 1px solid rgba(233, 238, 244, .14); border-radius: 20px; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1.1rem 2.5rem; backdrop-filter: blur(6px); }
.lh-story__copy { flex: 1 1 28rem; min-width: 0; }
.lh-story__nav { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; }
.lh-story__nav:empty { display: none; }
.lh-story__label { margin: 0 0 .4rem; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; color: var(--lh-dim); }
.lh-story__list { list-style: none; margin: 0; padding: 0; }
.lh-story__list li + li { margin-top: 1rem; }
.lh-story.is-live .lh-story__list li { display: none; }
.lh-story.is-live .lh-story__list li.is-current { display: block; }
.lh-story__when { margin: 0; font-size: .875rem; color: var(--lh-muted); }
.lh-story__when span { font-family: var(--lh-mono); color: var(--lh-amber); margin-right: .4rem; }
.lh-story__title { margin: .3rem 0 .35rem; font-size: 1.5rem; line-height: 1.2; color: #FFFFFF; }
.lh-story__text { margin: 0 0 .4rem; font-size: .9375rem; line-height: 1.55; color: var(--lh-muted); min-height: 2.9em; }
.lh-story__key { font-size: .875rem; text-decoration: none; }
.lh-story__line { position: absolute; left: 0; right: 0; top: 0; height: 0; }
.lh-story__line::before, .lh-story__fill { content: ""; position: absolute; left: 10%; top: 13px; height: 2px; background: rgba(233, 238, 244, .14); }
.lh-story__line::before { right: 10%; }
.lh-story__fill { background: var(--lh-amber); width: 0; transition: width .2s linear; }
.lh-story__stops { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.lh-story__stop { background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; cursor: pointer; color: var(--lh-dim); font: inherit; min-height: 44px; }
.lh-story__dot { margin-top: 9px; width: 9px; height: 9px; border-radius: 50%; background: #0A1420; border: 1.5px solid var(--lh-dim); box-sizing: border-box; }
.lh-story__stop.is-past .lh-story__dot { background: var(--lh-amber); border-color: var(--lh-amber); }
.lh-story__stop.is-on .lh-story__dot { margin-top: 6px; width: 15px; height: 15px; background: var(--lh-amber); border-color: var(--lh-amber); box-shadow: 0 0 0 5px rgba(242, 184, 75, .22); }
.lh-story__yr { font-family: var(--lh-mono); font-size: .75rem; }
.lh-story__stop.is-on .lh-story__yr { color: var(--lh-amber); font-weight: 600; }
.lh-story__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.lh-story__legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .75rem; color: var(--lh-dim); }
.lh-story__legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lh-story__legend i { display: inline-block; width: 18px; height: 2px; border-radius: 2px; }
.lh-story__legend i.is-ts { background: #F2B84B; } .lh-story__legend i.is-ss { background: #7FD6E2; }
.lh-story__legend i.is-idea { width: 8px; height: 8px; border-radius: 50%; background: #F2B84B; box-shadow: 0 0 6px #F2B84B; }
.lh-story__ctrl { display: flex; align-items: center; gap: .4rem; }
.lh-story__play { background: transparent; color: #E9EEF4; border: 1px solid rgba(233, 238, 244, .25); border-radius: 999px; padding: .35rem .9rem; min-height: 36px; font: inherit; font-size: .8125rem; cursor: pointer; }
.lh-story__play:hover { border-color: var(--lh-amber); color: var(--lh-amber); }
.lh-story__skip { font-size: .8125rem; font-weight: 600; text-decoration: none; color: var(--lh-amber) !important; padding: .35rem .4rem; }
@media (max-width: 781px) {
	.lh-story__scene { height: 560px; opacity: .55; }
	.lh-home-hero h1 { font-size: 2.25rem; }
}

/* Numbers band */
.lh-stats { position: relative; overflow: hidden; background: #0B1242 !important; padding-top: 5rem !important; padding-bottom: 6.5rem !important; }
.lh-stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 110%, rgba(122, 79, 192, .55), transparent 70%), radial-gradient(50% 60% at 8% 0%, rgba(35, 80, 255, .35), transparent 70%); pointer-events: none; }
.lh-stats::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46 L0 26 C 240 2, 480 2, 720 22 S 1200 44, 1440 18 L1440 46 Z' fill='%23F7F4EF'/%3E%3Cpath d='M0 26 C 240 2, 480 2, 720 22 S 1200 44, 1440 18' fill='none' stroke='%23F2B84B' opacity='.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.lh-stats > * { position: relative; }
.lh-stats h2 { color: #FFFFFF; font-size: var(--wp--preset--font-size--xxl); }
.lh-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem 0; margin-top: 2rem; }
.lh-stat { display: flex; flex-direction: column; gap: .6rem; padding: .4rem 1.25rem; border-left: 1px solid rgba(233, 238, 244, .1); }
.lh-stat:first-child { border-left: 0; padding-left: 0; }
.lh-stat svg { width: 28px; height: 28px; fill: none; stroke: #9FB4FF; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lh-stat__n { font-family: var(--lh-mono); font-size: clamp(2.25rem, 3.6vw, 3.125rem); line-height: 1; font-weight: 500; color: #FFFFFF; letter-spacing: -.02em; }
.lh-stat__l { font-size: .9375rem; line-height: 1.4; color: var(--lh-muted); }
.lh-stats__note { margin-top: 2rem; font-family: var(--lh-mono); font-size: .75rem; color: var(--lh-dim); }

/* Try-it model on a dark card, latest columns, PhD band */
.lh-darkcard { border-radius: 18px; padding: 1.4rem !important; }
.lh-latest > .wp-block-columns { gap: 1.4rem; }
.lh-latest .lh-card-w { height: 100%; padding: 1.6rem 1.75rem !important; }
.lh-latest h2 { font-size: var(--wp--preset--font-size--xl); }
.lh-news { border-top: 1px solid var(--lh-line); padding: .9rem 0; margin: 0 !important; }
.lh-news > * { margin: 0 !important; }
.lh-news .lh-meta { display: flex; gap: .6rem; align-items: center; }
.lh-news .lh-meta b { font-family: var(--wp--preset--font-family--sans); font-size: .625rem; letter-spacing: .14em; font-weight: 600; color: var(--lh-cyan); border: 1px solid var(--lh-cyan); border-radius: 4px; padding: .05rem .4rem; }
.lh-news p:last-child { margin-top: .35rem !important; color: var(--lh-text); font-size: 1rem; line-height: 1.5; }
.lh-join { border-radius: 20px; padding: 2.25rem 2.5rem !important; }
.lh-join .lh-kicker { color: #0C1622 !important; }
.lh-join .lh-kicker::before { filter: brightness(0); }

/* Talks timeline: horizontal cards with a dashed wave */
.lh-timeline-wrap { position: relative; padding-top: 30px; }
.lh-timeline-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q25 2 50 12 T100 12' fill='none' stroke='%238F5600' stroke-width='1.4' stroke-dasharray='5 6' opacity='.55'/%3E%3C/svg%3E") left center / 100px 24px repeat-x; }
.lh-timeline { overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem !important; gap: 1rem !important; }
.lh-timeline > .lh-card-w { flex: 0 0 250px; scroll-snap-align: start; }
.lh-year { font-family: var(--lh-mono); font-size: 1.875rem; line-height: 1; color: var(--lh-cyan) !important; }
.lh-badge { align-self: flex-start; display: inline-block; font-size: .6875rem !important; font-weight: 600; letter-spacing: .08em; color: #0C1622 !important; background: var(--lh-amber); border-radius: 4px; padding: .1rem .45rem; }

/* Video */
.lh-video video { width: 100%; border-radius: 18px; box-shadow: var(--lh-shadow); background: #0C1622; }

/* Footer: contacts grouped by purpose, under a starry strip */
.lh-footer { position: relative; padding-top: 96px; margin-top: 0 !important; background: #0A131D !important; }
.lh-footer__sky { top: 0; bottom: auto; }
.lh-footer__inner { max-width: var(--lh-wide); margin: 0 auto; padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem; }
.lh-footer__groups { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; }
.lh-footer__group { flex: 1 1 13rem; display: flex; flex-direction: column; gap: .4rem; font-size: .9375rem; color: var(--lh-muted); }
.lh-footer__group a { color: var(--lh-text) !important; text-decoration: none; }
.lh-footer__group a:hover { color: var(--lh-amber) !important; }
.lh-footer__label { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lh-amber); }
.lh-footer__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lh-amber); }
.lh-footer__line { margin: 1.75rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--lh-line); font-family: var(--lh-mono); font-size: .75rem; line-height: 1.7; color: var(--lh-dim); }
@media print { .lh-story, .lh-stats, .lh-band::after, .lh-footer__sky { display: none !important; } .lh-band { padding-bottom: 1rem !important; } }
.lh-chapter.is-first { border-top: 0; padding-top: 5rem !important; }
.lh-join { margin-top: 1rem !important; margin-bottom: 4.5rem !important; }
.lh-join .wp-block-buttons { justify-content: flex-end; }
.lh-band .lh-callout { max-width: 54rem; margin: .25rem 0 .75rem; }
.lh-pubs { padding-bottom: 3rem; }

.wp-block-group, .wp-block-column { box-sizing: border-box; }
.lh-home-hero .lh-pill + .lh-hero-kicker { margin-top: 1.4rem !important; }

/* =====================================================================
   2.1 Tighter rhythm for inner pages (Liru, 2026-11-25: too sparse)
   ===================================================================== */
.lh-band { padding-top: 2.75rem !important; padding-bottom: 84px !important; }
.lh-band::after { height: 72px; background-size: auto 72px; }
.lh-band h1 { margin: .55rem 0 .35rem; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.lh-band .lh-lede { font-size: 1.0625rem; margin-bottom: .2rem; }
.lh-band .lh-jumps { margin-top: .25rem; }
.lh-chapter { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.lh-chapter.is-first, .lh-band + .lh-chapter { border-top: 0; padding-top: 2.75rem !important; }
.lh-chapter > .wp-block-columns { gap: 1rem 3rem; }
.lh-chapter h2 { font-size: 1.5rem; line-height: 1.25; }
.lh-chapter p { margin-block: 0 .75rem; }
.lh-kicker { margin-bottom: .3rem; }
.lh-sq::after { margin-top: .45rem; }
.lh-pair > .wp-block-columns { gap: 2rem 3.5rem; margin: 0; }
.lh-pair .lh-publist { margin-top: .75rem; }
.lh-publist li { padding: .7rem 0; }
.lh-cvlist li { padding: .5rem 0; font-size: .96875rem; color: var(--lh-text); }
.lh-cvlist li:has(> strong:first-child) { padding-left: 6rem; text-indent: -6rem; }
.lh-cvlist li > strong:first-child { display: inline-block; width: 6rem; text-indent: 0; font-family: var(--lh-mono); font-size: .8125rem; font-weight: 400; color: var(--lh-gold); }
.lh-pubs .lh-section { padding-top: 2rem !important; padding-bottom: 1.5rem !important; }
.lh-card-w { padding: 1.2rem 1.3rem !important; }
.lh-cards { gap: 1rem !important; }
.lh-timeline { padding-bottom: .75rem !important; }
.lh-slides { margin-top: auto !important; font-size: .875rem !important; }

/* Full-text PDF: the one filled button in each publication entry */
.lh-pub-btn.is-pdf { background: var(--lh-amber); border-color: var(--lh-amber); color: #0C1622; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.lh-pub-btn.is-pdf:hover { background: #0C1622; border-color: #0C1622; color: var(--lh-amber); }
.lh-publist a.lh-pdf { font-size: .8125rem; }

/* Project videos */
.lh-demo { margin-top: 0 !important; }
.lh-demo + .lh-demo { border-top: 1px solid var(--lh-line); margin-top: 1.75rem !important; padding-top: 1.75rem; }
.lh-demo > .wp-block-columns { gap: 1.5rem 2.5rem; margin: 0; }
.lh-demo h3 { margin: 0 0 .5rem; }
.lh-demo .wp-block-buttons { margin: .9rem 0 .6rem; }
.lh-video { margin: 0; }
.lh-video figcaption { font-size: .8125rem; color: var(--lh-dim); margin-top: .5rem; }
