/* Untangled History. Design rules: /root/untangledhistory/STYLE.md. Colour names match the approved drafts. */

/* ---------- tokens: dark (default) and light ---------- */
:root, :root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0E1116; --surface: #171B22; --fg: #ECE6DA; --prose: #D9D3C7; --muted: #BDB6A8;
	--accent: #D9AE66; --accentText: #D9AE66; --accentLine: rgba(217,174,102,.5);
	--line: rgba(217,174,102,.25); --line2: rgba(236,230,218,.3); --panel: #13171E;
	--btnBg: #D9AE66; --btnFg: #0E1116; --tabOnBg: #D9AE66; --tabOnFg: #0E1116; --blurbEdge: #8EA2C2;
	--pin: #D9AE66; --pinOn: #F0CB8C; --pinRing: rgba(217,174,102,.35); --pinBorder: #0E1116;
	--labelBg: rgba(14,17,22,.85); --labelFg: #ECE6DA; --labelOnBg: #D9AE66; --labelOnFg: #0E1116;
	--ptlOff: rgba(217,174,102,.45);
}
:root[data-theme="light"] {
	color-scheme: light;
	--bg: #F5F1E8; --surface: #FFFFFF; --fg: #17202E; --prose: #2B3445; --muted: #4A5263;
	--accent: #B98A3E; --accentText: #865914; --accentLine: rgba(134,89,20,.45);
	--line: rgba(23,32,46,.14); --line2: rgba(23,32,46,.25); --panel: #17202E;
	--btnBg: #17202E; --btnFg: #F5F1E8; --tabOnBg: #17202E; --tabOnFg: #F5F1E8; --blurbEdge: #4F6D96;
	--pin: #17202E; --pinOn: #865914; --pinRing: rgba(134,89,20,.28); --pinBorder: #FFFFFF;
	--labelBg: rgba(255,255,255,.92); --labelFg: #17202E; --labelOnBg: #865914; --labelOnFg: #FFFFFF;
	--ptlOff: rgba(23,32,46,.35);
}
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		color-scheme: light;
		--bg: #F5F1E8; --surface: #FFFFFF; --fg: #17202E; --prose: #2B3445; --muted: #4A5263;
		--accent: #B98A3E; --accentText: #865914; --accentLine: rgba(134,89,20,.45);
		--line: rgba(23,32,46,.14); --line2: rgba(23,32,46,.25); --panel: #17202E;
		--btnBg: #17202E; --btnFg: #F5F1E8; --tabOnBg: #17202E; --tabOnFg: #F5F1E8; --blurbEdge: #4F6D96;
		--pin: #17202E; --pinOn: #865914; --pinRing: rgba(134,89,20,.28); --pinBorder: #FFFFFF;
		--labelBg: rgba(255,255,255,.92); --labelFg: #17202E; --labelOnBg: #865914; --labelOnFg: #FFFFFF;
		--ptlOff: rgba(23,32,46,.35);
	}
}
/* Show the matching element for the current theme (map images, toggle label). */
.uh-only-light { display: none !important; }
:root[data-theme="light"] .uh-only-light { display: revert !important; }
:root[data-theme="light"] .uh-only-dark { display: none !important; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .uh-only-light { display: revert !important; }
	:root:not([data-theme="dark"]) .uh-only-dark { display: none !important; }
}
.uh-toggle .uh-only-dark, .uh-toggle .uh-only-light { align-items: center; gap: 8px; }
.uh-toggle .uh-only-dark { display: inline-flex !important; }
:root[data-theme="light"] .uh-toggle .uh-only-dark { display: none !important; }
:root[data-theme="light"] .uh-toggle .uh-only-light { display: inline-flex !important; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .uh-toggle .uh-only-dark { display: none !important; }
	:root:not([data-theme="dark"]) .uh-toggle .uh-only-light { display: inline-flex !important; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--fg); background: var(--bg); transition: background .3s, color .3s; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accentText); outline-offset: 2px; }
.uh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.uh-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--btnBg); color: var(--btnFg); font-weight: 700; }
.uh-skip:focus { top: 12px; }

.uh-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.uh-section { padding-top: 40px; padding-bottom: 40px; }
.uh-section--first { padding-top: 64px; }
.uh-section--last { padding-bottom: 80px; }
.uh-section--facts { padding-top: 48px; padding-bottom: 24px; }
.uh-stack-4 { display: flex; flex-direction: column; gap: 4px; }
.uh-stack-8 { display: flex; flex-direction: column; gap: 8px; }
.uh-mono { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 600; }
.uh-muted { color: var(--muted); }
.uh-accent { color: var(--accentText); }
.uh-gold { color: #E6BE78; }
.uh-strong { font-weight: 600; }
.uh-link { font-weight: 600; color: var(--accentText); }
.uh-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accentText); }
.uh-eyebrow--sm { letter-spacing: .16em; }
.uh-eyebrow--panel { color: #E6BE78; }
.uh-h1 { margin: 6px 0 12px; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.12; }
.uh-h2 { margin: 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 32px; line-height: 1.2; }
.uh-h2--lg { font-size: 34px; letter-spacing: .02em; }
.uh-h2--md { font-size: 30px; }
.uh-h2--sm { font-size: 26px; }
.uh-h3 { margin: 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.15; }
.uh-h3--md { font-size: 26px; }
.uh-h3--sm { font-size: 20px; margin-bottom: 14px; }
.uh-lead { font-size: 18px; line-height: 1.6; max-width: 680px; margin: 0 0 24px; }
.uh-note { margin-top: 40px; font-size: 15px; }

.uh-grid { display: grid; gap: 22px; }
.uh-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.uh-grid--250 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.uh-grid--200 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.uh-grid--160 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }

.uh-sechead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.uh-sechead--end { align-items: flex-end; }
.uh-sechead--rule { align-items: baseline; gap: 12px; margin-bottom: 22px; border-bottom: 2px solid var(--fg); padding-bottom: 12px; }
#map .uh-sechead { margin-bottom: 16px; }

/* ---------- buttons, chips, tags ---------- */
.uh-btnrow { display: flex; flex-wrap: wrap; gap: 14px; }
.uh-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 4px; background: var(--btnBg); color: var(--btnFg); font-weight: 600; border: 0; cursor: pointer; }
.uh-btn--hero { min-height: 50px; padding: 0 28px; background: #D9AE66; color: #0E1116; font-weight: 700; letter-spacing: .02em; }
.uh-btn--ghost { min-height: 50px; padding: 0 24px; border: 1px solid rgba(236,230,218,.5); background: transparent; color: #F4EFE6; }
.uh-btn--gold { align-self: flex-start; margin-top: 6px; background: #D9AE66; color: #0E1116; font-weight: 700; }
.uh-btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
.uh-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.uh-chip, .uh-pill { font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line2); background: transparent; color: var(--fg); }
.uh-chip[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.uh-pill { padding: 0 16px; border-color: var(--line); }
.uh-pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--tabOnFg); }
:root[data-theme="light"] .uh-pill[aria-pressed="true"] { color: #FFFFFF; background: var(--accentText); border-color: var(--accentText); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .uh-pill[aria-pressed="true"] { color: #FFFFFF; background: var(--accentText); border-color: var(--accentText); } }
.uh-pill--panel { min-height: 40px; padding: 0 14px; border-color: #E6BE78; color: #F3F1EA; }
.uh-pill--panel[aria-pressed="true"] { background: #E6BE78 !important; border-color: #E6BE78 !important; color: #0E1116 !important; }
.uh-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.uh-tag { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(236,230,218,.4); color: #F4EFE6; font-size: 13px; font-weight: 600; }
.uh-badge { padding: 2px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.uh-badge--on { border-color: rgba(143,199,154,.6); background: rgba(143,199,154,.14); color: #8FC79A; }
:root[data-theme="light"] .uh-badge--on { border-color: rgba(47,107,59,.45); background: rgba(47,107,59,.08); color: #2F6B3B; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .uh-badge--on { border-color: rgba(47,107,59,.45); background: rgba(47,107,59,.08); color: #2F6B3B; } }

/* ---------- header ---------- */
.uh-header { position: relative; z-index: 20; }
.uh-header__in { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.uh-header--overlay { position: absolute; top: 0; left: 0; right: 0; color: #ECE6DA; }
.uh-header--dark { background: #0E1116; border-bottom: 1px solid rgba(217,174,102,.25); color: #ECE6DA; }
.uh-header--dark .uh-header__in { padding-top: 16px; padding-bottom: 16px; }
.uh-header--plain { border-bottom: 1px solid var(--line); color: var(--fg); }
.uh-header--plain .uh-header__in { padding-top: 18px; padding-bottom: 18px; }
.uh-brand { display: flex; align-items: center; gap: 12px; }
.uh-brand span { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 20px; letter-spacing: .06em; }
.uh-nav { display: flex; flex-wrap: wrap; gap: 26px; font-weight: 500; font-size: 15px; }
.uh-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: #D9AE66; }
.uh-tools { display: flex; gap: 10px; }
.uh-iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(236,230,218,.35); background: rgba(14,17,22,.4); color: #ECE6DA; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.uh-toggle { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(236,230,218,.35); background: rgba(14,17,22,.4); color: #ECE6DA; cursor: pointer; font-size: 14px; font-weight: 600; }
.uh-header--dark .uh-iconbtn, .uh-header--dark .uh-toggle { background: transparent; }
.uh-header--plain .uh-iconbtn, .uh-header--plain .uh-toggle { border-color: var(--line2); background: transparent; color: var(--fg); }
.uh-menubtn { display: none; }
.uh-nav__search { display: none; }
@media (max-width: 380px) {
	.uh-tools [data-search-open] { display: none; }
	.uh-nav__search { display: block; padding: 12px 0; border: 0; border-top: 1px solid rgba(236,230,218,.15); background: none; color: inherit; text-align: left; font-weight: 500; font-size: 15px; cursor: pointer; }
}
@media (max-width: 760px) {
	.uh-header__in { padding: 14px 16px; }
	.uh-menubtn { display: flex; }
	.uh-nav { order: 3; width: 100%; display: none; flex-direction: column; gap: 0; padding: 6px 0 4px; }
	.uh-nav a { padding: 12px 0; border-top: 1px solid rgba(236,230,218,.15); }
	.uh-header--plain .uh-nav a { border-color: var(--line); }
	.uh-header.is-open .uh-nav { display: flex; }
	.uh-header--overlay.is-open { background: rgba(14,17,22,.95); }
	.uh-brand span { font-size: 17px; }
	.uh-toggle { width: 44px; padding: 0; justify-content: center; }
	.uh-toggle span span:not(.uh-sr) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.uh-brand { flex: 1 1 auto; min-width: 0; }
	.uh-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) { .uh-header__in { gap: 10px; } .uh-brand { gap: 10px; } .uh-brand span { font-size: 14px; letter-spacing: .03em; white-space: nowrap; } .uh-tools { gap: 6px; } }

/* ---------- search ---------- */
.uh-search { position: fixed; inset: 0; z-index: 60; background: rgba(8,10,14,.7); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.uh-search__box { width: 100%; max-width: 640px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.uh-search__row { display: flex; gap: 10px; align-items: center; }
.uh-search__row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg); color: var(--fg); font: inherit; font-size: 17px; }
.uh-search .uh-iconbtn { border-color: var(--line2); background: transparent; color: var(--fg); flex: none; }
.uh-search__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.uh-search__list a, .uh-search__list .uh-search__empty { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 8px; }
.uh-search__list a:hover, .uh-search__list a:focus { background: var(--bg); opacity: 1; }
.uh-search__list b { font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 17px; }
.uh-search__list small { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accentText); }

/* ---------- hero (home and story) ---------- */
.uh-hero { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.uh-hero--home { min-height: 760px; }
.uh-hero--story { min-height: 600px; }
.uh-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uh-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.6) 0%, rgba(14,17,22,.2) 35%, rgba(14,17,22,.78) 72%, var(--bg) 100%); }
.uh-hero--story .uh-hero__shade { background: linear-gradient(180deg, rgba(14,17,22,.65) 0%, rgba(14,17,22,.25) 35%, rgba(14,17,22,.8) 72%, var(--bg) 100%); }
.uh-hero__in { position: relative; z-index: 2; margin-top: auto; max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; padding: 120px 24px 72px; display: flex; flex-direction: column; gap: 22px; }
.uh-hero--story .uh-hero__in { padding-bottom: 56px; gap: 18px; }
.uh-hero__eyebrow { display: flex; align-items: center; gap: 14px; color: #E6BE78; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.uh-hero__eyebrow span { width: 40px; height: 1px; background: #E6BE78; }
.uh-hero__title { margin: 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; max-width: 900px; color: #F4EFE6; }
.uh-hero--story .uh-hero__title { font-size: clamp(40px, 6vw, 72px); }
.uh-hero__lead { margin: 0; font-size: 20px; line-height: 1.6; color: #E4DED2; max-width: 620px; }
.uh-hero--story .uh-hero__lead { font-size: 19px; max-width: 680px; }
.uh-hero__years { font-family: 'IBM Plex Mono', monospace; font-size: 15px; font-weight: 600; color: #E6BE78; }
.uh-hero .uh-btnrow { padding-top: 6px; }
@media (max-width: 760px) {
	.uh-hero--home { min-height: 640px; }
	.uh-hero__in { padding: 110px 16px 48px; }
	.uh-hero__lead { font-size: 17px; }
}

/* ---------- breadcrumb ---------- */
.uh-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.uh-crumbs a { text-decoration: underline; }
.uh-crumbs--hero { color: #E4DED2; }
.uh-crumbs--dark { color: #CFC8BA; }

/* ---------- cards ---------- */
.uh-tallcard { position: relative; display: block; height: 440px; border-radius: 10px; overflow: hidden; color: #ECE6DA; border: 1px solid var(--line); }
.uh-tallcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.uh-tallcard:hover img { transform: scale(1.03); }
.uh-tallcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 30%, rgba(14,17,22,.95) 85%); }
.uh-tallcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.uh-tallcard__tag { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #E6BE78; }
.uh-tallcard__title { font-family: Cinzel, Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.25; }
.uh-tallcard__text { font-size: 15px; line-height: 1.5; color: #D8D1C3; }

.uh-qcard { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--fg); }
.uh-qcard--lg { gap: 14px; border-radius: 16px; padding: 26px; }
.uh-qcard--sm { padding: 20px; }
.uh-qcard__label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accentText); }
.uh-qcard--lg .uh-qcard__label { font-size: 13px; }
.uh-qcard__title { font-family: Cinzel, Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.3; }
.uh-qcard--lg .uh-qcard__title { font-size: 23px; line-height: 1.25; }
.uh-qcard--sm .uh-qcard__title { font-size: 19px; }
.uh-qcard__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.uh-qcard__go { margin-top: auto; font-weight: 600; color: var(--accentText); }
.uh-qcard__soon { margin-top: auto; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.uh-qcard.is-soon { border-style: dashed; }

.uh-ccard { display: flex; flex-direction: column; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); overflow: hidden; }
.uh-ccard img { display: block; width: 100%; height: 130px; object-fit: cover; }
.uh-ccard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.uh-ccard__meta { display: flex; justify-content: space-between; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.uh-ccard__n { color: var(--accentText); }
.uh-ccard__title { font-family: Cinzel, Georgia, serif; font-size: 19px; font-weight: 600; line-height: 1.25; }
.uh-ccard__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

.uh-vcard { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; color: #ECE6DA; border: 0; padding: 0; background: #000; text-align: left; width: 100%; }
button.uh-vcard { cursor: pointer; }
.uh-vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uh-vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.uh-vcard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 50%, rgba(14,17,22,.9) 100%); }
.uh-vcard__play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(236,230,218,.92); display: flex; align-items: center; justify-content: center; }
.uh-vcard__soon { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(14,17,22,.8); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: #E6BE78; letter-spacing: .04em; }
.uh-vcard__text { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.uh-vcard__ch { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #E6BE78; }
.uh-vcard__title { font-family: Cinzel, Georgia, serif; font-size: 16px; font-weight: 600; line-height: 1.3; }
.uh-videogrid { max-width: 760px; }

.uh-storycard { display: flex; flex-direction: row; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.uh-storycard img { flex: 0 0 150px; width: 150px; min-height: 230px; object-fit: cover; object-position: center 35%; }
.uh-storycard__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; font-size: 15px; line-height: 1.55; }
.uh-storycard__title { font-family: Cinzel, Georgia, serif; font-size: 22px; font-weight: 600; }

/* ---------- split (text + media) ---------- */
.uh-split { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.uh-split__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.uh-split__text p { margin: 0; font-size: 16px; line-height: 1.6; }
.uh-split__media { flex: 2 1 520px; min-width: 0; }

/* ---------- dark panels (infographics; dark in both themes) ---------- */
.uh-panel { background: var(--panel); color: #F3F1EA; border-radius: 18px; border: 1px solid var(--line); padding: clamp(26px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.uh-panel--top { align-items: stretch; gap: 32px; padding: clamp(24px, 4vw, 44px); border: 0; }
.uh-panel__text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.uh-panel--top .uh-panel__text { flex-basis: 340px; }
.uh-panel__text p { margin: 0; font-size: 16px; line-height: 1.6; color: #C8D0DC; }
.uh-panel--top .uh-panel__text p { line-height: 1.65; }
.uh-panel__side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.uh-sideitem { border-top: 1px solid rgba(230,190,120,.35); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; }
.uh-sideitem .uh-mono { font-size: 12px; color: #E6BE78; }
.uh-bars { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.uh-bars__row { display: flex; align-items: center; gap: 14px; }
.uh-bars__name { width: 150px; flex: none; font-size: 14px; font-weight: 600; }
.uh-bars__bar { height: 14px; border-radius: 7px; background: #6F86A8; width: calc((100% - 230px) * var(--w)); }
.uh-bars__bar.is-light { background: #C9D6E8; }
.uh-bars .uh-mono { font-size: 14px; }
@media (max-width: 520px) { .uh-bars__name { width: 110px; } .uh-bars__bar { width: calc((100% - 180px) * var(--w)); } }

/* ---------- map ---------- */
.uh-map { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.uh-map__frame { flex: 999 1 600px; min-width: 0; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.uh-map__img { display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.uh-pin { position: absolute; transform: translate(-11px, -11px); display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.uh-pin[hidden] { display: none; }
.uh-pin--left { flex-direction: row-reverse; transform: translate(calc(-100% + 11px), -11px); }
.uh-pin__dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pinBorder); background: var(--pin); box-shadow: 0 0 0 3px rgba(0,0,0,.15); flex: none; }
.uh-pin__label { font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 6px; white-space: nowrap; color: var(--labelFg); background: var(--labelBg); }
.uh-pin.is-on { z-index: 2; }
.uh-pin.is-on .uh-pin__dot { background: var(--pinOn); box-shadow: 0 0 0 7px var(--pinRing); }
.uh-pin.is-on .uh-pin__label { color: var(--labelOnFg); background: var(--labelOnBg); }
.uh-map__panel { flex: 1 1 300px; display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.uh-map__panel.has-img { flex-basis: 320px; }
.uh-map__panel img { display: block; width: 100%; height: 220px; object-fit: cover; }
.uh-map__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.uh-map__body p { margin: 0; font-size: 16px; line-height: 1.6; }
.uh-map__body .uh-btnrow { margin-top: auto; padding-top: 8px; gap: 10px; }
@media (max-width: 640px) {
	.uh-pin__label { display: none; }
	.uh-pin.is-on .uh-pin__label { display: inline; }
	.uh-pin { min-width: 44px; justify-content: flex-start; }
}

/* ---------- timeline (home) ---------- */
.uh-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px; }
.uh-timeline__item { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--accent); padding-top: 16px; }
.uh-timeline__year { font-family: Cinzel, Georgia, serif; font-size: 24px; font-weight: 600; color: var(--accentText); }
.uh-timeline__title { font-size: 15px; font-weight: 600; }
.uh-timeline__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- story page ---------- */
.uh-factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.uh-factgrid > div { background: var(--surface); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; font-weight: 500; }
.uh-factgrid .uh-eyebrow { font-weight: 600; }
.uh-ptl { position: relative; height: 92px; margin: 0 8px 26px; }
.uh-ptl__line { position: absolute; left: 0; right: 0; top: 44px; height: 4px; border-radius: 2px; background: var(--line); }
.uh-ptl__seg { position: absolute; top: 0; height: 60px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 28px; }
.uh-ptl__chip { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.uh-ptl__bar { display: block; width: 100%; height: 12px; border-radius: 6px; background: var(--ptlOff); }
.uh-ptl__seg[aria-pressed="true"] .uh-ptl__chip { background: var(--accent); color: var(--tabOnFg); }
:root[data-theme="light"] .uh-ptl__seg[aria-pressed="true"] .uh-ptl__chip { color: #FFFFFF; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .uh-ptl__seg[aria-pressed="true"] .uh-ptl__chip { color: #FFFFFF; } }
.uh-ptl__seg[aria-pressed="true"] .uh-ptl__bar { background: var(--accent); }
.uh-ptl__tick { position: absolute; top: 66px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .uh-ptl__tick:nth-of-type(odd) { display: none; } }
.uh-ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.uh-ptab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 10px 18px; border-radius: 8px; cursor: pointer; text-align: left; border: 1px solid var(--line); background: transparent; color: var(--fg); }
.uh-ptab .uh-mono { font-size: 12px; opacity: .85; }
.uh-ptab__name { font-family: Cinzel, Georgia, serif; font-size: 17px; font-weight: 600; }
.uh-ptab[aria-pressed="true"] { border-color: var(--tabOnBg); background: var(--tabOnBg); color: var(--tabOnFg); }
.uh-partbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.uh-partbox > p { font-size: 16px; line-height: 1.6; }
.uh-partbox__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.uh-partbox__head .uh-mono { font-size: 14px; }

/* ---------- chapter page ---------- */
.uh-chhero { background: #0E1116; color: #ECE6DA; }
.uh-chhero__in { padding-top: 24px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; }
.uh-chvideo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 620px; background: #000; }
.uh-chvideo__fg { position: absolute; top: 0; right: 7%; height: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 80px rgba(0,0,0,.7); }
@media (max-width: 640px) { .uh-chvideo__fg { right: 0; width: 100%; aspect-ratio: auto; object-position: center 30%; } .uh-chvideo .uh-blurbg { display: none; } }
.uh-chvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.uh-chvideo__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.1) 40%, rgba(14,17,22,.9) 100%); }
.uh-chvideo__play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 0; background: rgba(236,230,218,.95); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.uh-chvideo__text { position: absolute; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.uh-chvideo__title { margin: 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: clamp(32px, 5vw, 60px); line-height: 1.05; color: #F4EFE6; }
@media (max-width: 640px) { .uh-chvideo { aspect-ratio: 4 / 5; } }

.uh-chlayout { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.uh-chaside { flex: 1 1 240px; max-width: 300px; align-self: stretch; display: flex; flex-direction: column; gap: 24px; }
.uh-keyfacts { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.uh-keyfacts > div { display: flex; flex-direction: column; gap: 2px; }
.uh-keyfacts .uh-mono { font-size: 12px; }
.uh-keyfacts > div > span:last-child { font-size: 14px; line-height: 1.45; font-weight: 500; }
.uh-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.uh-toc .uh-eyebrow { display: block; padding: 0 0 10px 16px; list-style: none; cursor: pointer; }
.uh-toc .uh-eyebrow::-webkit-details-marker { display: none; }
.uh-toc__box { display: flex; flex-direction: column; }
.uh-toc__box > a { display: block; }
.uh-toc a { padding: 7px 16px; font-size: 15px; font-weight: 500; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.uh-toc a.is-active { color: var(--fg); border-left-color: var(--accent); }
.uh-article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; color: var(--prose); }
@media (max-width: 900px) {
	.uh-chaside { max-width: none; }
	.uh-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px 0 6px; }
	.uh-toc .uh-eyebrow::after { content: " +"; }
	.uh-toc details[open] .uh-eyebrow::after { content: " −"; }
	.uh-chlayout { gap: 32px; }
}
@media (max-width: 640px) { .uh-article { font-size: 17px; } }

/* article content (also used by the question page) */
.prose p { margin: 0; }
.prose h2 { margin: 26px 0 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.2; color: var(--fg); scroll-margin-top: 16px; }
.prose h3 { margin: 8px 0 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: 22px; }
.prose blockquote { margin: 0; padding: 6px 0 6px 20px; border-left: 3px solid #D9AE66; font-style: italic; }
.prose [id] { scroll-margin-top: 16px; }
.prose svg { max-width: 100%; }
@media (max-width: 640px) {
	.prose h2 { font-size: 25px; }
	/* Inline-styled bar rows from the article: give the name column less room on phones. */
	.uh-article [style*="width: 150px; flex: none"], .uh-article [style*="width: 140px; flex: none"] { width: 108px !important; }
	.uh-article [style*="grid-template-columns: 150px 22px 1fr"] { grid-template-columns: 92px 22px 1fr !important; }
}
.fn { position: relative; display: inline-block; margin-left: 2px; padding: 0 2px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; line-height: 1; vertical-align: super; cursor: help; color: var(--accentText); }
.fn .tip { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 270px; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 10px; background: #0B0E13; color: #ECE6DA; border: 1px solid rgba(217,174,102,.45); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); font-family: Inter, system-ui, sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5; text-align: left; white-space: normal; z-index: 30; }
.fn .tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #0B0E13; }
.fn .tip b { display: block; font-size: 14px; color: #F4EFE6; }
.fn .tip i { display: block; margin-top: 6px; font-style: normal; color: #E6BE78; }
.fn:hover .tip, .fn:focus .tip, .fn.is-open .tip { display: block; }
.fn:hover, .fn:focus { opacity: 1; }
.fn.tip-left .tip { left: auto; right: -8px; transform: none; }
.fn.tip-left .tip::after { left: auto; right: 10px; }
.fn.tip-right .tip { left: -8px; transform: none; }
.fn.tip-right .tip::after { left: 14px; }

.uh-prevnext { padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 16px; }
.uh-prevnext__item { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; border: 1px solid var(--line); }
.uh-prevnext__item--next { text-align: right; }
.uh-prevnext .uh-mono { font-size: 12px; }
.uh-prevnext__title { font-family: Cinzel, Georgia, serif; font-size: 19px; font-weight: 600; }

/* ---------- question page ---------- */
.uh-qpage { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; }
@media (max-width: 760px) { .uh-qpage { padding: 32px 16px 56px; } }
.uh-qtitle { margin: 0; font-family: Cinzel, Georgia, serif; font-weight: 600; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.12; }
.uh-qbody { display: flex; flex-direction: column; gap: 22px; color: var(--prose); }
.uh-qbody h2 { margin-top: 12px; font-size: 28px; }
.uh-answer { background: var(--surface); border: 1px solid var(--accentLine); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; color: var(--fg); }
.uh-answer p { font-size: 19px; line-height: 1.6; font-weight: 500; }
.uh-qimg { position: relative; height: 420px; border-radius: 14px; overflow: hidden; background: #0E1116; }
.uh-qimg__fg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 60px rgba(0,0,0,.6); }
.uh-info { background: var(--panel); color: #F3F1EA; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.uh-info__label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #E6BE78; }
.uh-steps__item { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid #7F98BD; padding-top: 12px; }
.uh-steps__item .uh-mono { color: #A9BCD6; }
.uh-steps__title { font-family: Cinzel, Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.3; }
.uh-steps__text { font-size: 14px; line-height: 1.55; color: #C8D0DC; }
.uh-chlink { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.uh-chlink .uh-mono { font-size: 12px; }
.uh-chlink__title { font-family: Cinzel, Georgia, serif; font-size: 20px; font-weight: 600; }
.uh-qsources { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; line-height: 1.55; }

/* ---------- list pages (periods, questions, videos) ---------- */
.uh-listpage { padding-top: 48px; padding-bottom: 80px; }
.uh-term { margin-top: 40px; scroll-margin-top: 16px; }
.uh-term__sub { scroll-margin-top: 16px; }
.uh-term__dates { font-size: 15px; max-width: 620px; }

/* ---------- footer ---------- */
.uh-footer { border-top: 1px solid var(--line); }
.uh-footer__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.uh-footer__in > div { flex: 1 1 360px; max-width: 640px; }
.uh-footer__brand { font-family: Cinzel, Georgia, serif; font-size: 17px; font-weight: 600; color: var(--fg); letter-spacing: .06em; }
.uh-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.uh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.uh-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- homepage: world-history timeline ---------- */
.uh-wtl { display: flex; flex-direction: column; gap: 18px; }
.uh-wtl__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scrollbar-color: var(--line2) transparent; }
.uh-wtl__track { --lane-h: 46px; position: relative; min-width: 1120px; }
.uh-wtl__bands { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.uh-wtl__band { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-left: 1px solid var(--line); }
.uh-wtl__band:first-child { border-left: 0; }
.uh-wtl__bandname { font-family: Cinzel, Georgia, serif; font-size: 16px; font-weight: 600; }
.uh-wtl__banddates { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--muted); }
.uh-wtl__band.is-alt, .uh-wtl__col.is-alt { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.uh-wtl__lanes { position: relative; height: calc(var(--lanes) * var(--lane-h) + 28px); }
.uh-wtl__col { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.uh-wtl__col:first-child { border-left: 0; }
.uh-wtl__range { position: absolute; height: 3px; border-radius: 2px; background: var(--line2); }
.uh-wtl__range.is-live { background: var(--accent); }
.uh-wtl__ev { position: absolute; transform: translateX(-11px); display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 0; border: 0; background: transparent; color: var(--fg); cursor: pointer; text-align: left; transition: opacity .2s; }
.uh-wtl__ev::before { content: ""; position: absolute; inset: -11px -4px; }
.uh-wtl__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid var(--muted); background: var(--surface); }
.uh-wtl__ev.is-live .uh-wtl__dot { border: 3px solid var(--pinBorder); background: var(--pin); box-shadow: 0 0 0 3px var(--pinRing); }
.uh-wtl__label { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); padding: 3px 8px; border-radius: 6px; }
.uh-wtl__ev.is-live .uh-wtl__label { color: var(--fg); }
.uh-wtl__ev.is-on .uh-wtl__dot { border-color: var(--accentText); box-shadow: 0 0 0 6px var(--pinRing); }
.uh-wtl__ev.is-on .uh-wtl__label { background: var(--labelOnBg); color: var(--labelOnFg); }
.uh-wtl__ev.is-dim { opacity: .22; }
.uh-wtl__ev.is-left { flex-direction: row-reverse; transform: translateX(calc(-100% + 11px)); }
.uh-wtl__panel { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.uh-wtl__ptext { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.uh-wtl__ptext p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 680px; }
.uh-wtl__tags { display: flex; flex-wrap: wrap; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.uh-wtl__pact { flex: 0 1 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.uh-wtl__pact .uh-badge, .uh-wtl__tags .uh-badge { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; }
.uh-wtl__soon { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.5; }

/* ---------- homepage: featured story, ways in, how it works ---------- */
.uh-feature { display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.uh-feature > img { flex: 1 1 380px; min-height: 320px; max-height: 620px; width: 100%; object-fit: cover; object-position: center 40%; }
.uh-feature__body { flex: 1 1 440px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.uh-feature__body > p { margin: 0; font-size: 17px; line-height: 1.6; }
.uh-feature__parts { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; }
.uh-feature__parts a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 600; }
.uh-feature__parts li:last-child a { border-bottom: 1px solid var(--line); }
.uh-waycard { position: relative; display: block; height: 260px; border-radius: 12px; overflow: hidden; color: #ECE6DA; border: 1px solid var(--line); }
.uh-waycard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.uh-waycard:hover img { transform: scale(1.03); }
.uh-waycard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,.2) 0%, rgba(14,17,22,.92) 80%); }
.uh-waycard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.uh-waycard__title { font-family: Cinzel, Georgia, serif; font-size: 26px; font-weight: 600; }
.uh-waycard__text { font-size: 15px; line-height: 1.5; color: #D8D1C3; }
.uh-panel--how { align-items: flex-start; }
.uh-how { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 22px; }
.uh-how__item { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid #7F98BD; padding-top: 12px; }
.uh-how__item .uh-mono { color: #A9BCD6; }
.uh-how__title { font-family: Cinzel, Georgia, serif; font-size: 18px; font-weight: 600; }
.uh-how__text { font-size: 14px; line-height: 1.55; color: #C8D0DC; }

.uh-wtl__hint { display: none; font-size: 12px; margin-bottom: -8px; }
@media (max-width: 900px) { .uh-wtl__hint { display: block; } }

/* ---------- songs ---------- */
.uh-vcard__kind { align-self: flex-start; margin-bottom: 4px; padding: 3px 8px; border-radius: 6px; background: rgba(14,17,22,.75); font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: #ECE6DA; }
.uh-songs { display: flex; flex-direction: column; gap: 30px; }
.uh-songs__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 48px; align-items: end; }
.uh-songs__head { display: flex; flex-direction: column; gap: 14px; }
.uh-songs__intro p { margin: 0; font-size: 16px; line-height: 1.6; }
.uh-songs__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 600; font-size: 15px; }
.uh-songs__steps li { display: flex; gap: 12px; align-items: baseline; }
.uh-songs__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.uh-song__style { font-size: 12px; }
.uh-songs__side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.uh-song { display: flex; flex-direction: column; gap: 10px; }
.uh-song__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.uh-song__link { font-size: 14px; }
.uh-qsong { display: flex; gap: 22px; align-items: center; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; line-height: 1.55; }
.uh-qsong__card { flex: 0 0 130px; }
.uh-qsong .uh-vcard__title, .uh-qsong .uh-vcard__soon { display: none; }
@media (max-width: 640px) {
	.uh-songs__list { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
	.uh-songs__list .uh-vcard__title { font-size: 14px; }
	.uh-song__text { font-size: 13px; }
}

/* ---------- portrait pictures in wide places: never enlarged, never cropped into small figures ---------- */
.uh-blurbg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.45) saturate(1.1); }
.uh-hero__panels { display: none; }
@media (min-width: 900px) {
	.uh-hero--split { background: radial-gradient(ellipse 60% 70% at 78% 45%, rgba(217,174,102,.16), transparent 70%), #0E1116; }
	.uh-hero--split .uh-hero__img, .uh-hero--split .uh-hero__shade { display: none; }
	/* text column = container minus the picture panels (panels width = (--ph - 14px) / 2 * 9/16 + --ph * 9/16 + 14px) */
	.uh-hero--split { --ph: 560px; min-height: 0 !important; }
	.uh-hero--split .uh-hero__in { padding-top: 132px; padding-bottom: 80px; padding-right: calc(24px + (var(--ph) - 14px) * 9 / 32 + var(--ph) * 9 / 16 + 14px + 56px); min-height: calc(var(--ph) + 212px); justify-content: center; margin-top: 0; }
	.uh-hero--split .uh-hero__title { font-size: clamp(40px, 4.4vw, 60px); line-height: 1.08; }
	.uh-hero--split .uh-hero__lead { max-width: 560px; }
	.uh-hero--split .uh-hero__panels { top: 132px; }
	.uh-hero__panels { position: absolute; z-index: 1; top: 120px; right: max(24px, calc((100% - 1200px) / 2 + 24px)); display: grid; grid-template-columns: calc((var(--ph) - 14px) / 2 * 9 / 16) calc(var(--ph) * 9 / 16); grid-template-rows: calc((var(--ph) - 14px) / 2) calc((var(--ph) - 14px) / 2); gap: 14px; }
	.uh-hero__p { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid rgba(217,174,102,.3); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
	.uh-hero__p--a { grid-column: 1; grid-row: 1; }
	.uh-hero__p--b { grid-column: 1; grid-row: 2; }
	.uh-hero__p--main { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 640px) { .uh-maplabel-minor { display: none; } }

/* landscape pictures */
.uh-hero__pic { position: absolute; inset: 0; }
.uh-chvideo__wide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uh-storycard.is-wide { flex-direction: column; }
.uh-storycard.is-wide img { flex: none; width: 100%; height: 200px; min-height: 0; object-position: center 55%; }
.uh-figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.uh-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.uh-figure figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* real-object gallery */
.uh-gallery { columns: 4 240px; column-gap: 18px; }
.uh-gallery__item { break-inside: avoid; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.uh-gallery__img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.uh-gallery__img img { display: block; width: 100%; height: auto; }
.uh-gallery__item figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.uh-gallery__item small { font-size: 12px; color: var(--muted); }
.uh-gallery__item small a, .uh-figure figcaption a { text-decoration: underline; }
@media (min-width: 900px) and (max-width: 1180px) { .uh-hero--split { --ph: 440px; } }

/* video player overlay (16:9 videos opened from tall cards) */
.uh-player { position: fixed; inset: 0; z-index: 70; background: rgba(8,10,14,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.uh-player__box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.uh-player__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.uh-player__close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(14,17,22,.8); color: #ECE6DA; font-size: 26px; line-height: 1; cursor: pointer; }
.uh-chvideo__play { z-index: 2; }
