/* Layout: a fashion-house lookbook. Strict black and white, a Didone display set very large, tracked capitals for labels,
   wide margins and an off-center column, so the white space does the work. */
:root { --bg: #ffffff; --ink: #0a0a0a; --muted: #777777; --line: #0a0a0a;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif; }
:root[data-theme="dark"] { --bg: #0a0a0a; --ink: #f5f5f5; --muted: #8c8c8c; --line: #f5f5f5; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.75; }
a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .35s ease; }
a:hover { background-size: 0 1px; background-position: 100% 100%; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.caps { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }

/* Masthead */
.top { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; }
.top nav { display: flex; gap: 28px; flex-wrap: wrap; }
.top nav a { background: none; }
.top nav a:hover { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 640px) { .top nav { display: none; } }

/* Hero */
.hero { padding-block: clamp(80px, 16vw, 200px) clamp(64px, 10vw, 140px); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 15vw, 210px); line-height: .86; letter-spacing: -.035em; margin: 0; }
.hero h1 i { display: block; padding-left: clamp(40px, 14vw, 240px); }
.hero .meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
@media (max-width: 720px) { .hero .meta { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Sections */
section { padding-block: clamp(72px, 10vw, 140px); }
.sec { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 6vw, 96px); }
@media (max-width: 820px) { .sec { grid-template-columns: minmax(0, 1fr); } }
.sec > .label { color: var(--muted); padding-top: 14px; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 0 0 40px; text-wrap: balance; }
p { margin: 0 0 18px; max-width: 58ch; }
.intro p:first-of-type { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 400; max-width: 30ch; margin-bottom: 36px; }

/* Entries */
.entries { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 8px 40px; padding-block: 32px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.entry h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; margin: 0 0 10px; }
.entry .caps { color: var(--muted); display: block; line-height: 2; }
.entry p { margin: 0; padding-top: 6px; }

/* Quote */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 22ch; font-family: var(--display); font-style: italic; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.15; letter-spacing: -.01em; }
.quote .caps { display: block; margin-top: 36px; color: var(--muted); }

/* Press */
.press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 32px; padding-block: 18px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .press li { grid-template-columns: minmax(0, 1fr); } }
.press .caps { color: var(--muted); padding-top: 4px; }
.press a { font-family: var(--display); font-size: 19px; line-height: 1.35; background-size: 0 1px; }
.press a:hover { background-size: 100% 1px; background-position: 0 100%; }

/* Habatat timeline */
.timeline { border-top: 1px solid var(--line); }
.tl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .tl { grid-template-columns: minmax(0, 1fr); } }
.tl .yr { font-family: var(--display); font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.tl p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 56px; }
@media (max-width: 640px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stats div { border-top: 1px solid var(--line); padding-top: 14px; }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5vw, 64px); line-height: 1; margin-bottom: 8px; }
.stats .caps { color: var(--muted); }
.pull { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; max-width: 32ch; margin: 56px 0 8px; }
.pull + .caps { color: var(--muted); display: block; }

/* Artists */
.artists { font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.7; margin: 0; max-width: none; }
.artists span { white-space: nowrap; }
.artists a { background-size: 0 1px; }
.artists a:hover { background-size: 100% 1px; background-position: 0 100%; }
.artists span:not(:last-child)::after { content: " / "; color: var(--muted); white-space: normal; }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 720px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact .caps { display: block; color: var(--muted); margin-bottom: 10px; }
.sel { user-select: all; }

footer { padding-block: 40px 56px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); }

/* Load: a single slow reveal of the name */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { display: inline-block; animation: rise 1.4s cubic-bezier(.2,.7,.1,1) both; }
  .hero h1 i { animation: rise 1.4s .18s cubic-bezier(.2,.7,.1,1) both; }
  @keyframes rise { from { opacity: .001; transform: translateY(.25em); } to { opacity: 1; transform: none; } }
}

/* multi-page additions */
.top nav a[aria-current="page"] { text-decoration: line-through; text-decoration-thickness: 1px; }
.top .brand { background: none; }
.mnav { display: none; }
@media (max-width: 640px) {
  .mnav { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-block: 0 20px; }
  .mnav a { background: none; }
}
.pagehead { padding-block: clamp(64px, 12vw, 150px) clamp(24px, 4vw, 48px); }
.pagehead h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 11vw, 150px); line-height: .9; letter-spacing: -.03em; margin: 0; }
.pagehead p { margin: 28px 0 0; max-width: 46ch; color: var(--muted); }
.photo figure { margin: 0; max-width: 620px; }
.photo img { display: block; width: 100%; height: auto; }
.photo.wide figure { max-width: none; }
.photo figcaption { color: var(--muted); margin-top: 16px; line-height: 2; }
.next { padding-block: 72px; }
.pagehead h1 sup.c { font-size: .28em; vertical-align: super; letter-spacing: 0; margin-left: .05em; }
/* hero with portrait: name full width on top, portrait below right, details below left */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); gap: 40px clamp(32px, 5vw, 80px); align-items: end; }
.hero-split .hero-text { grid-column: 1 / -1; min-width: 0; }
.hero-split .hero-portrait { grid-column: 2; grid-row: 2; margin: 0; }
.hero-split .meta { grid-column: 1; grid-row: 2; margin-top: 0; align-self: end; }
.hero-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-split .hero-portrait, .hero-split .meta { grid-column: 1; grid-row: auto; }
  .hero-portrait { max-width: 360px; }
}
/* first-person bio */
.bio p { font-family: var(--display); font-size: clamp(22px, 2.5vw, 32px); line-height: 1.4; max-width: 34ch; margin: 0 0 22px; }
.bio .caps { color: var(--muted); }
/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .services { grid-template-columns: minmax(0, 1fr); } }
.services div { padding-block: 26px; border-bottom: 1px solid var(--line); }
.services h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 8px; }
.services p { margin: 0; }
/* feature */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 720px) { .feature { grid-template-columns: minmax(0, 1fr); } }
.feature figure { margin: 0; }
.feature img { display: block; width: 100%; height: auto; }
.feature figcaption { color: var(--muted); margin-top: 14px; line-height: 2; }
/* endorsements */
.endorse { display: grid; gap: 56px; }
.endorse blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; max-width: 28ch; }
.endorse .caps { display: block; color: var(--muted); margin-top: 16px; }
/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid .caps { display: block; color: var(--muted); margin-bottom: 10px; }
.contact-grid p { margin: 0; }
.social { display: flex; flex-wrap: wrap; gap: 12px 28px; }

.partner > .caps { display: block; color: var(--muted); margin: 6px 0 20px; }
.partner-photo { float: right; width: min(300px, 38%); margin: 6px 0 24px 40px; }
.partner-photo img { display: block; width: 100%; height: auto; }
.partner-photo figcaption { color: var(--muted); margin-top: 10px; }
.partner .entries { clear: both; }
@media (max-width: 640px) { .partner-photo { float: none; width: 100%; max-width: 360px; margin: 0 0 24px; } }

.founder { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; overflow: hidden; }
.founder-name { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 0; }
.founder-role { display: block; color: var(--muted); margin: 6px 0 18px; }
.acc-h { color: var(--muted); margin: 26px 0 8px; font-weight: 400; }
.acc { list-style: none; margin: 0; padding: 0; }
.acc li { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.acc li .caps { color: var(--muted); white-space: nowrap; }

.bfa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); margin-top: 24px; }
@media (max-width: 640px) { .bfa { grid-template-columns: minmax(0, 1fr); } }
.bfa-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 20px; padding-block: 14px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.bfa-row .caps { color: var(--muted); padding-top: 3px; }
.bfa-row p { margin: 0; }

.gtree, .gtree ul { list-style: none; margin: 0; padding: 0; }
.gtree ul { margin-left: 22px; padding-left: 26px; border-left: 1px solid var(--line); }
.gtree li { position: relative; padding: 14px 0 0; }
.gtree ul > li::before { content: ""; position: absolute; left: -26px; top: 32px; width: 20px; border-top: 1px solid var(--line); }
.gtree .who { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.gtree .root > .who { font-size: clamp(30px, 3.6vw, 46px); }
.gtree .where { display: block; color: var(--muted); margin-top: 4px; line-height: 1.8; }
.lineage { color: var(--ink); white-space: nowrap; }

.aindex { columns: 3 220px; column-gap: 40px; margin-top: 24px; }
.aindex span { display: block; break-inside: avoid; padding: 3px 0; color: var(--muted); }
.aindex span.on { color: var(--ink); }
.aindex span.on::before { content: "CF  "; font-size: 9px; vertical-align: 2px; }

.tree-nav { margin: 36px 0 8px; border-top: 1px solid var(--line); }
.tree-nav > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.tree-nav p { margin: 0; line-height: 1.9; }
.tree-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; margin-right: 14px; white-space: nowrap; }
.tree-nav a:hover { border-bottom-color: var(--ink); }
.tree-nav .caps { color: var(--muted); }
.tree-ctl { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.tree-ctl button, .gtree .tg { background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; }
.tree-ctl button { padding: 8px 14px; }
.tree-ctl button:hover, .gtree .tg:hover { border-color: var(--ink); }
.gtree li, .tree-h { scroll-margin-top: 24px; }
.gtree li.br > .who { cursor: pointer; }
.gtree .tg { margin-left: 12px; padding: 1px 8px; font-size: 11px; letter-spacing: .08em; vertical-align: 6px; }
.gtree .tg::before { content: "−  "; }
.gtree li.closed > .tg::before { content: "+  "; }
.gtree li.closed > ul { display: none; }
.gtree .xl { font-size: .5em; margin-left: 3px; color: var(--muted); }
@media (max-width: 640px) { .tree-nav > div { grid-template-columns: 1fr; } }
@media print { .gtree li.closed > ul { display: block; } .tree-nav, .gtree .tg { display: none; } }

/* collapsible lists */
.folds { margin-top: 20px; border-top: 1px solid var(--line); }
details.fold { border-bottom: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px; padding: 18px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
details.fold[open] > summary::after { content: "−"; }
details.fold > summary h3 { margin: 0; font-size: 1.15rem; }
details.fold .fold-n { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
details.fold > p { margin: 0 0 22px; max-width: 72ch; }
details.fold > summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.artist-search { display: flex; gap: 16px; align-items: baseline; margin: 8px 0 28px; flex-wrap: wrap; }
.artist-search input { flex: 1 1 260px; max-width: 420px; font: inherit; padding: 10px 0; border: 0; border-bottom: 1px solid var(--fg, currentColor); background: transparent; color: inherit; }
.artist-search input:focus { outline: none; border-bottom-width: 2px; }
.artist-search .count { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
p.artists span.hide { display: none; }

/* museum photo grid */
.mus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin-top: 24px; }
.mus-card { margin: 0; }
.mus-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(1); background: var(--line); }
.mus-card figcaption { display: grid; gap: 2px; margin-top: 10px; }
.mus-card figcaption span { color: var(--muted); font-size: 13px; }
.mus-card figcaption small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.mus-card .mus-note { font-style: normal; font-size: 14px; line-height: 1.45; margin: 4px 0 2px; }
.mus-card figcaption small a { color: inherit; }

.gift-hab { color: var(--fg, currentColor); font-size: 14px; }

.kit { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.kit-h { color: var(--muted); font-weight: 400; margin: 0 0 10px; }
.kit-type { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
.kit-type label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.kit-name { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; max-width: 560px; }
.kit-name .caps { color: var(--muted); }
.kit-name input { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
.kit-name input:focus { outline: none; border-bottom-color: var(--ink); }
.kit-out { margin-top: 24px; }
.kit-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.kit-n { font-family: var(--display); font-size: 30px; line-height: 1; }
.kit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
.kit-row code { flex: 1 1 260px; font-size: 12px; overflow-wrap: anywhere; color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); padding: 10px 12px; }
.kit-row button, .kit-btn { background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; padding: 9px 16px; cursor: pointer; text-decoration: none; }
.kit-row .kit-main, .kit-btn#kit-mail { background: var(--ink); color: var(--bg); }
.kit-row button:hover, .kit-btn:hover { background: var(--ink); color: var(--bg); }
.kit-badge-row img { display: block; }
.kit-hows { margin-top: 18px; }
.kit-hows > .caps { color: var(--muted); display: block; margin-bottom: 6px; }
.kit-how { border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent); }
.kit-how summary { cursor: pointer; padding: 10px 0; }
.kit-how p { margin: 0 0 12px; color: var(--muted); }
.kit-code { margin-top: 12px; }
.kit-note { color: var(--muted); margin-top: 10px; }

.pf-kicker { display: block; color: var(--muted); margin-bottom: 22px; }
.pf-kicker a { color: inherit; }
.pf-h { color: var(--muted); font-weight: 400; margin: 28px 0 8px; }
.pf-cta { margin-top: 24px; }

:root { --gm-inst: #b3261e; --gm-mus: #1f5fa8; --gm-sch: #2e7d32; --gm-art: #c77700; }
.gm-bar { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 0; border-top: 1px solid var(--line); }
.gm-bar label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.gm-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
#gm { height: 72vh; min-height: 420px; border: 1px solid var(--line); }
.gm-cluster span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.leaflet-popup-content { font-family: inherit; }
.leaflet-popup-content .caps { color: #777; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }

.tree-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin-top: 28px; }
.tree-form label { display: flex; flex-direction: column; gap: 8px; }
.tree-form label.wide, .tree-form button { grid-column: 1 / -1; }
.tree-form label .caps { color: var(--muted); }
.tree-form input, .tree-form select, .tree-form textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; }
.tree-form input:focus, .tree-form select:focus, .tree-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.tree-form label.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.tree-form label.check input { margin-top: 5px; }
.tree-form button { justify-self: start; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 14px 26px; cursor: pointer; font: inherit; }
.tree-form button:hover { background: transparent; color: var(--ink); }
.form-thanks { margin-top: 24px; }
.gtree .self { color: var(--ink); border: 1px solid var(--line); padding: 1px 6px; margin-right: 6px; }
@media (max-width: 640px) { .tree-form { grid-template-columns: 1fr; } }

.im-country { border-top: 1px solid var(--line); }
.im-country:last-of-type { border-bottom: 1px solid var(--line); }
.im-country summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; }
.im-country summary::-webkit-details-marker { display: none; }
.im-country summary .im-c { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); }
.im-country summary .im-c::before { content: "+"; display: inline-block; width: 1.1em; font-family: var(--body, inherit); font-size: .7em; color: var(--muted); }
.im-country[open] summary .im-c::before { content: "−"; }
.im-list a, .bfa-row .caps a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.im-meta { color: var(--muted); white-space: nowrap; }
.im-list { list-style: none; margin: 0 0 24px; padding: 0; columns: 2 260px; column-gap: 48px; }
.im-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent); break-inside: avoid; }
.im-list .n { color: var(--muted); font-variant-numeric: tabular-nums; }

#tree-visual { padding-block: 8px 48px; }
.tv-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.tv-label { color: var(--muted); }
.tv-ctl { display: flex; gap: 10px; flex-wrap: wrap; }
.tv-ctl button, .tv-ctl a { background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.tv-ctl button:hover, .tv-ctl a:hover { background: var(--ink); color: var(--bg); }
.tv-detail { min-height: 74px; padding: 18px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.tv-name { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.tv-page { color: var(--ink); }
.tv-cap { color: var(--muted); line-height: 1.8; max-width: 90ch; }
.tv-scroll { overflow: auto; border-top: 1px solid color-mix(in srgb, var(--line) 25%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent);
  cursor: grab; max-height: 78vh; -webkit-overflow-scrolling: touch; }
.tv-scroll.drag { cursor: grabbing; user-select: none; }
.tv-svg { display: block; }
.tv-svg .lk { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.tv-svg .nd circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.tv-svg .nd.kids circle { fill: var(--ink); }
.tv-svg .nd.open circle { fill: var(--bg); }
.tv-svg .nd text { fill: var(--ink); font-size: 13px; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; cursor: pointer; }
.tv-svg .nd.cat text { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; fill: var(--muted); }
.tv-svg .nd.root text { font-family: var(--display); font-size: 18px; }
.tv-svg .nd.sel text { text-decoration: underline; }
.tv-svg .nd.self text { font-style: italic; }
.tv-svg .cnt { fill: var(--muted); font-size: 10px; }

.im-list li.hit, .bfa-row span.hit { outline: 1px solid var(--ink); outline-offset: 4px; }
.lib-list { columns: 1; }
.mn-ours { display: inline-block; vertical-align: middle; font-family: var(--body, inherit); font-size: 10px; border: 1px solid var(--line); padding: 2px 6px; margin-left: 8px; color: var(--ink); }

.next a { font-family: var(--display); font-style: italic; font-size: clamp(30px, 4vw, 52px); background-size: 0 1px; }
.next a:hover { background-size: 100% 1px; background-position: 0 100%; }
