/* Hub: start page and About. Look: paper, ink, two accents as family code, no gradients, no blur. */
.hub { padding-bottom: 40px; }
.hub .brand { gap: 8px; }
.hub .mark { display: block; }
.lead { font-size: 22px; line-height: 1.2; margin: 18px 0 8px; max-width: 22em; }
.tree { display: block; width: 375px; max-width: 100%; height: auto; margin: 0 auto; touch-action: pan-y; overflow: visible; }
.wrap { max-width: 640px; }
.hub .wrap { padding: 0 0 20px; }
.hub .lead, .hub .all, .hub .prose { padding-left: 20px; padding-right: 20px; }
.tree text { font-family: var(--serif); fill: var(--ink); pointer-events: none; }
.ruler line { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; stroke-dasharray: 2 5; }
.ruler text { font-family: var(--mono); font-size: 13px; fill: var(--ink); fill-opacity: .8; }
.ruler .era { font-size: 12px; fill-opacity: 1; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.edge { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transition: opacity 160ms var(--ease); }
.edge.s-strong { stroke-width: 4; }
.edge.s-weak { stroke-width: 2.5; stroke-dasharray: 2 7; }
.ready .edge:not(.s-weak) { animation: draw 700ms var(--ease) both; stroke-dasharray: 1; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node { cursor: pointer; transition: opacity 160ms var(--ease); outline: none; }
.node .hit { fill: transparent; }
.node .disc { stroke: var(--ink); stroke-width: 2.5; }
.node .wob { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-opacity: .55; }
.node.fam-salsa .disc { fill: var(--meer); }
.node.fam-bachata .disc { fill: var(--achiote); }
.node.fam-shared .disc { fill: var(--paper); }
.node .groove { fill: none; stroke: var(--paper); stroke-opacity: .55; stroke-width: 1.5; }
.node.fam-shared .groove { stroke: var(--ink); stroke-opacity: .3; }
.node .hole { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.node.fam-salsa .nm, .node.fam-bachata .nm, .node.fam-salsa .yr, .node.fam-bachata .yr { fill: #fff; font-weight: 600; }
.node .yr { font-family: var(--mono); font-size: 13px; letter-spacing: -.02em; }
.node.k-root.fam-salsa .disc { fill: var(--paper); }
.node.k-root .nm { font-weight: 600; }
.node.k-root .nm { paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; }
.node.st-soon .disc { fill: var(--paper); }
.node.st-soon .nm, .node.st-soon .yr { fill: var(--ink); font-weight: 600; }
.node.st-soon.fam-salsa .disc { stroke: var(--meer); stroke-width: 4; }
.node.st-soon.fam-bachata .disc { stroke: var(--achiote); stroke-width: 4; }
.node.k-main .nm { font-size: 14px; }
.node:focus-visible .disc { stroke: var(--meer); stroke-width: 5; }
.node.cur .disc { stroke: var(--platano); stroke-width: 6; }
.has-sel .node:not(.on), .has-sel .edge:not(.on) { opacity: .25; }
.hub .all { margin-top: 12px; }
.all h2 { font-size: 20px; margin-bottom: 6px; }
.all ul { padding: 0; margin: 0; list-style: none; }
.all li { min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid rgba(35, 26, 21, .2); }
.all li a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.more { font-size: 15px; }
.about-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; }

.sheet-hub { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 50vh; overflow-y: auto; background: var(--paper); border-top: 3px solid var(--ink); padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 200ms var(--ease); }
.sheet-hub[hidden] { display: none; }
.sheet-hub.up { transform: none; }
.sh-close { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: none; }
.sh-close span { position: absolute; left: 14px; top: 22px; width: 20px; height: 3px; background: var(--ink); transform: rotate(45deg); }
.sh-close span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: rotate(90deg); }
.sh-name { font-size: 26px; padding-right: 44px; }
.sh-meta { font-family: var(--mono); font-size: 14px; margin: 6px 0 10px; }
.sh-tag { font-weight: 600; margin: 0 0 6px; }
.sh-gave { margin: 0 0 10px; }
.sh-h { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 4px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: var(--paper); border-radius: 22px; font-weight: 600; }
.none { color: rgba(35, 26, 21, .8); font-size: 15px; }
.edge-s { font-size: 15px; margin: 6px 0 0; }
.go { display: inline-flex; align-items: center; margin-top: 16px; text-decoration: none; background: var(--achiote); color: #fff; font-size: 17px; }
.soon-note { margin: 14px 0 0; font-size: 15px; }
.prose h1 { font-size: 34px; margin: 24px 0 8px; }
.prose h2 { font-size: 22px; margin: 26px 0 6px; }
.prose p { margin: 0 0 12px; max-width: 34em; }
@media (min-width: 700px) { .sheet-hub { left: 50%; right: auto; width: 520px; margin-left: -260px; } }
@media (prefers-reduced-motion: reduce) { .ready .edge { animation: none !important; } .sheet-hub { transition: none; } }

/* r14: kicker with ink rule, drawn badges, tap-me chip (same house style as the chapters) */
.hub .kick { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--achiote); margin: 16px 0 0; padding: 0 20px; }
.hub .kick::before { content: ""; display: block; width: 56px; height: 6px; background: var(--ink); margin: 0 0 10px; }
.hub .hub-kick + .lead { margin-top: 4px; }
.bd { fill: var(--platano); stroke: var(--ink); stroke-width: 2.5; } .bd-sh { fill: var(--ink); }
.badge .ic * { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge .ic ellipse, .badge .ic rect { stroke-width: 1.8; }
.node .badge { transition: transform 120ms var(--ease); }
.node:hover .badge { transform: translate(var(--bx, 0), var(--by, 0)); }
.tm { font: 500 12px var(--mono) !important; letter-spacing: .06em; text-transform: uppercase; fill: var(--ink) !important; font-family: var(--mono) !important; }
.tapme .bd { fill: var(--platano); }
.tm-in { transform-box: fill-box; transform-origin: center; animation: tapme 1.6s ease-in-out infinite; }
@keyframes tapme { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px) scale(1.06); } }
.picked .tapme, .has-sel .tapme { display: none; }
.hub .prose .kick { padding: 0; }
@media (prefers-reduced-motion: reduce) { .tm-in { animation: none; } }

/* r14: About: source card with grade chips, marks on headings, count line */
.about .prose h1 { margin-top: 4px; }
.prose h2 { display: flex; align-items: center; gap: 10px; }
.mk { flex: none; fill: var(--platano); stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(2px 2px 0 var(--ink)); }
.gcard { border: 2px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); background: #fff6; padding: 14px 16px 12px; margin: 10px 0 12px; max-width: 34em; }
.gc-h { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--achiote); margin: 0 0 10px; }
.gchips { display: flex; gap: 10px; justify-content: space-between; }
.gchips .gchip { flex: 1 1 0; }
.gchip { min-width: 64px; min-height: 56px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); font: 700 22px var(--serif); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: transform 120ms var(--ease), box-shadow 120ms var(--ease); }
.gchip small { font: 500 12px var(--mono); margin-top: 4px; }
.gchip[aria-pressed="true"] { background: var(--platano); transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.gcard .gtext { margin: 14px 0 0; min-height: 5.2em; font-size: 16px; }
.gcount { font: 500 14px/1.4 var(--mono); margin: 16px 0 6px; max-width: 34em; }
.about .btn.go.back { display: inline-flex; align-items: center; text-decoration: none; background: var(--achiote); color: #fff; margin: 8px 0 0; font-size: 17px; }
