/* Bible Genealogies: styles. Light, rounded, phone first. */
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-wght-italic.woff2) format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  --ink: #1f1f1f; --ink2: #444746; --ink3: #5f6368;
  --line: #dadce0; --line2: #c4c7c5;
  --paper: #ffffff; --wash: #f6f8fc; --wash2: #eef2f8;
  --accent: #1967d2; --accent-t: #e8f0fe;
  --bar: 60px; --panel: 392px; --peek: 112px;
  --shadow: 0 1px 2px rgba(60,64,67,.18), 0 2px 8px rgba(60,64,67,.10);
  --shadow2: 0 4px 10px rgba(60,64,67,.16), 0 12px 32px rgba(60,64,67,.14);
  --c: #5f6368; --t: #f1f3f4;
}
.c-blue { --c: #1967d2; --t: #e8f0fe; } .c-red { --c: #c5221f; --t: #fce8e6; }
.c-green { --c: #188038; --t: #e6f4ea; } .c-amber { --c: #a85d00; --t: #fef3d0; }
.c-teal { --c: #007b83; --t: #dff3f5; } .c-purple { --c: #8430ce; --t: #f3e8fd; }
.c-pink { --c: #c2185b; --t: #fde7f1; } .c-orange { --c: #c25400; --t: #feeedd; }
.c-indigo { --c: #3949ab; --t: #e8eaf6; } .c-brown { --c: #795548; --t: #f1ebe8; }
.c-grey { --c: #5f6368; --t: #f1f3f4; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 16px/1.5 Figtree, "Segoe UI", Roboto, system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #8ab4f8; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
#bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 30; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.01em; flex: none; border-radius: 12px; padding: 4px; }
.brand span { display: none; }
#barsearch { flex: 1; min-width: 0; max-width: 520px; }
#nav { display: none; gap: 4px; margin-left: auto; }
#nav a { text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; padding: 9px 14px; border-radius: 999px; }
#nav a:hover { background: var(--wash2); }
#nav a.on { background: var(--accent-t); color: var(--accent); }
#menubtn { flex: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); }
#menubtn:hover { background: var(--wash2); }
#nav.open { display: flex; flex-direction: column; position: fixed; top: calc(var(--bar) + 6px); right: 8px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow2); padding: 8px; min-width: 190px; }
#nav.open a { padding: 12px 16px; font-size: 16px; }
body.home #barsearch { visibility: hidden; }
@media (min-width: 760px) {
  .brand span { display: inline; }
  #nav { display: flex; } #menubtn { display: none; }
  #bar { padding: 0 20px; gap: 18px; }
}

/* ---------- search / picker ---------- */
.picker { position: relative; }
.picker .field { display: flex; align-items: center; gap: 6px; background: var(--wash2); border: 1.5px solid transparent; border-radius: 999px; padding: 0 6px 0 16px; height: 44px; }
.picker.big .field { height: 58px; background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); padding-left: 22px; }
.picker .field:focus-within { background: var(--paper); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-t); }
.picker input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 100%; font-size: 16px; }
.picker.big input { font-size: 18px; }
.picker .go { flex: none; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; height: 34px; padding: 0 14px; font-size: 14px; }
.picker.big .go { height: 44px; padding: 0 20px; font-size: 16px; }
.picker .clear { flex: none; border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; color: var(--ink3); font-size: 18px; line-height: 1; }
.picker .results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow2); max-height: min(62vh, 480px); overflow: auto; padding: 6px; }
#barsearch .picker .results { position: fixed; left: 8px; right: 8px; top: calc(var(--bar) - 4px); }
@media (min-width: 760px) { #barsearch .picker .results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); } }
.results .hint { padding: 10px 14px; color: var(--ink3); font-size: 14px; }
.res { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 14px; min-height: 56px; }
.res:hover, .res.sel { background: var(--wash2); }
.res .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 6px; }
.res .dot.sq { border-radius: 4px; }
.res b { font-weight: 700; }
.res .who { color: var(--ink2); font-size: 14px; line-height: 1.35; }
.res .sum { color: var(--ink3); font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picked { display: flex; align-items: center; gap: 10px; background: var(--t); border: 1.5px solid var(--c); border-radius: 18px; padding: 8px 8px 8px 16px; min-height: 58px; }
.picked .txt { flex: 1; min-width: 0; line-height: 1.3; }
.picked .txt b { display: block; }
.picked .txt span { font-size: 13.5px; color: var(--ink2); }
.picked button { flex: none; border: 0; background: rgba(255,255,255,.7); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }

/* ---------- pages ---------- */
#page { padding: calc(var(--bar) + 24px) 20px 64px; max-width: 880px; margin: 0 auto; outline: none; }
#page.wide { max-width: 1040px; }
h1 { font-size: clamp(30px, 7.4vw, 52px); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
.lede { font-size: 18px; color: var(--ink2); max-width: 34em; }
.muted { color: var(--ink3); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 16px; }
.sec { margin-top: 44px; }

.hero { padding-top: clamp(8px, 4vh, 40px); }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 16px; }
.hero .picker { margin-top: 26px; max-width: 560px; }
.tries { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink3); }

.orbit { margin: 34px -8px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.planet { --d: 150px; width: var(--d); height: var(--d); border-radius: 50%; border: 2px solid var(--c); background: var(--t); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.planet:hover { transform: scale(1.04); box-shadow: var(--shadow2); }
.planet b { font-size: 17px; line-height: 1.15; color: var(--c); font-weight: 800; }
.planet span { font-size: 13px; line-height: 1.25; color: var(--ink2); margin-top: 6px; }
.planet.s2 { --d: 132px; } .planet.s3 { --d: 152px; } .planet.s4 { --d: 172px; }
@media (max-width: 380px) { .planet.s2 { --d: 122px; } .planet.s3 { --d: 140px; } .planet.s4 { --d: 158px; } }
@media (min-width: 760px) { .planet.s2 { --d: 150px; } .planet.s3 { --d: 176px; } .planet.s4 { --d: 200px; } .planet b { font-size: 19px; } .planet span { font-size: 14px; } .orbit { gap: 18px; } }

.legend { display: grid; gap: 10px; }
.legend div { display: flex; gap: 10px; align-items: baseline; }
.legend .chip { flex: none; min-width: 118px; justify-content: center; }
@media (min-width: 640px) { .legend { grid-template-columns: 1fr 1fr; } }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 650; line-height: 1.4; white-space: nowrap; background: var(--t); color: var(--c); }
.chip.stated { --c: #188038; --t: #e6f4ea; } .chip.inferred { --c: #1967d2; --t: #e8f0fe; }
.chip.tradition { --c: #8430ce; --t: #f3e8fd; } .chip.debated { --c: #a85d00; --t: #fef3d0; }
.chip.plain { --c: var(--ink2); --t: var(--wash2); }
a.chip, button.chip { text-decoration: none; border: 0; }
a.chip:hover, button.chip:hover { filter: brightness(.96); }
.gchip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 14px; font-weight: 650; background: var(--t); color: var(--c); text-decoration: none; border: 0; min-height: 34px; }
.gchip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--accent); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--accent-t); border-color: var(--accent-t); }
.btn.fill { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.fill:hover { filter: brightness(1.08); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ref { color: var(--ink3); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 2px; white-space: nowrap; }
a.ref:hover { color: var(--accent); }
.refs { color: var(--ink3); font-size: 13.5px; }

.card { background: var(--wash); border-radius: 22px; padding: 18px; }
.note { border-radius: 18px; padding: 14px 16px; background: var(--t); font-size: 15px; line-height: 1.45; }
.note b { color: var(--c); display: block; font-size: 13.5px; margin-bottom: 2px; }
.note.variant { --c: #a85d00; --t: #fef7e0; } .note.identity { --c: #8430ce; --t: #f6eefe; } .note.debate { --c: #c25400; --t: #fef0e3; }
.note .refs { display: block; margin-top: 6px; }

/* ---------- stage (tree canvas) ---------- */
#stage { position: fixed; inset: var(--bar) 0 0 0; overflow: hidden; background: var(--wash); }
#canvas { position: absolute; inset: 0; touch-action: none; cursor: grab; background-image: radial-gradient(circle, #d5dbe6 1.2px, transparent 1.4px); background-size: 26px 26px; }
#canvas.drag { cursor: grabbing; }
#world { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; will-change: transform; }
#edges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
#edges path { fill: none; stroke: #aab1bd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#edges path.inferred { stroke-dasharray: 6 5; }
#edges path.tradition { stroke-dasharray: 1.5 5; }
#edges path.debated { stroke-dasharray: 6 5; stroke: #d08a1c; }
#edges circle { fill: var(--wash); stroke: #aab1bd; stroke-width: 1.8; }
.node { position: absolute; left: 0; top: 0; margin: 0; border: 0; padding: 0; font: inherit; color: var(--ink); will-change: transform; }
.node.frame { background: #e9edf5; border-radius: 22px; pointer-events: none; z-index: 1; }
.node.frame span { position: absolute; left: 14px; top: 7px; font-size: 12.5px; font-weight: 650; color: var(--ink3); white-space: nowrap; }
.node.person { z-index: 2; background: var(--paper); border: 1.5px solid var(--line2); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2px 8px 2px 14px; line-height: 1.12; box-shadow: 0 1px 1.5px rgba(60,64,67,.12); overflow: hidden; }
.node.person::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.node.person .nm { font-size: 14px; font-weight: 560; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.node.person.key .nm { font-weight: 760; }
.node.person.long .nm { font-size: 12.5px; }
.node.person .gl { font-size: 11px; font-weight: 650; color: var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 1px; }
.node.person.away { background: var(--t); border-color: var(--c); border-radius: 26px; }
.node.person.away::before { display: none; }
.node.person.away { padding-left: 8px; }
.node.person.unnamed { border-style: dashed; }
.node.person.unnamed .nm { font-style: italic; font-weight: 500; }
.node.person:hover { box-shadow: var(--shadow); border-color: var(--c); }
.node.person.focus { z-index: 3; background: var(--c); border-color: var(--c); color: #fff; border-radius: 24px; padding: 4px 12px; box-shadow: 0 3px 8px rgba(60,64,67,.24), 0 10px 24px rgba(60,64,67,.18); }
.node.person.focus::before { display: none; }
.node.person.focus .nm { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.node.person.focus .gl { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.node.person .diff { position: absolute; right: 5px; top: 3px; font-size: 10px; font-weight: 800; color: #a85d00; }
.node.bubble { z-index: 2; border-radius: 50%; background: var(--t); border: 2px solid var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; line-height: 1.12; }
.node.bubble .nm { font-size: 13.5px; font-weight: 800; color: var(--c); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.node.bubble .gl { font-size: 11.5px; color: var(--ink2); margin-top: 3px; }
.node.bubble:hover { box-shadow: var(--shadow2); }
.node.tag { z-index: 1; pointer-events: none; font-size: 12.5px; font-weight: 650; color: var(--ink3); display: flex; align-items: center; justify-content: center; white-space: nowrap; }

#crumbs { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 6px; align-items: center; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(var(--wash) 60%, transparent); pointer-events: none; }
#crumbs::-webkit-scrollbar { display: none; }
#crumbs > * { pointer-events: auto; flex: none; }
#crumbs .sep { color: var(--line2); font-weight: 700; }
#crumbs .gchip { background: var(--paper); box-shadow: 0 0 0 1.5px var(--line) inset; min-height: 32px; font-size: 13.5px; padding: 4px 11px 4px 8px; }
#crumbs .gchip.here { background: var(--t); box-shadow: 0 0 0 1.5px var(--c) inset; }
#zoom { position: absolute; right: 12px; bottom: calc(var(--peek) + 12px); display: flex; flex-direction: column; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
#zoom button { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink2); display: grid; place-items: center; }
#zoom button:hover { background: var(--wash2); }
#zoom button + button { border-top: 1px solid var(--line); }
@media (max-width: 899px) { #zoom button[data-z="in"], #zoom button[data-z="out"] { display: none; } #zoom button { border-top: 0 !important; } }

#sheet { position: absolute; left: 0; right: 0; bottom: 0; height: min(76%, 640px); transform: translateY(calc(100% - var(--peek))); transition: transform .32s cubic-bezier(.2,.8,.2,1); background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -2px 12px rgba(60,64,67,.16); display: flex; flex-direction: column; z-index: 5; }
#sheet.open { transform: none; }
#sheet .head { flex: none; border: 0; background: none; text-align: left; padding: 10px 20px 12px; width: 100%; min-height: var(--peek); display: block; position: relative; border-radius: 26px 26px 0 0; }
#sheet .head::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 10px; }
#sheet .head h2 { font-size: 24px; letter-spacing: -.015em; padding-right: 96px; }
#sheet .head .who { color: var(--ink2); font-size: 15px; line-height: 1.3; margin-top: 2px; padding-right: 96px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#sheet .head .more { position: absolute; right: 16px; top: 30px; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-t); border-radius: 999px; padding: 7px 13px; }
#sheet .body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 32px; }
#sheet .body > * + * { margin-top: 18px; }
#sheet h3 { font-size: 15px; color: var(--ink3); font-weight: 700; margin-bottom: 8px; }
#sheet p { font-size: 16px; }
.fam { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fam li { background: var(--wash); border-radius: 16px; padding: 10px 12px; }
.fam .top { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.fam .plink { font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; }
.fam .plink::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fam .plink:hover { border-color: var(--c); }
.fam .rel { color: var(--ink2); font-size: 14.5px; }
.fam .why { font-size: 14px; color: var(--ink2); margin-top: 6px; line-height: 1.4; }
.fam .refs { display: block; margin-top: 5px; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.events li { padding-left: 16px; position: relative; line-height: 1.4; }
.events li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.events .refs { display: block; }
@media (min-width: 900px) {
  #sheet { left: auto; top: 0; right: 0; bottom: 0; width: var(--panel); height: auto; transform: none !important; border-radius: 0; box-shadow: -1px 0 0 var(--line); }
  #sheet .head { cursor: default; min-height: 0; padding: 26px 26px 14px; }
  #sheet .head::before, #sheet .head .more { display: none; }
  #sheet .head h2, #sheet .head .who { padding-right: 0; }
  #sheet .head h2 { font-size: 30px; }
  #sheet .body { padding: 4px 26px 40px; }
  #zoom { right: calc(var(--panel) + 16px); bottom: 16px; }
  #crumbs { right: var(--panel); padding: 12px 16px; }
}

/* ---------- bridge (two groups) ---------- */
.bridge { text-align: center; padding-top: 8px; }
.bridge .pair { display: flex; align-items: center; justify-content: center; margin: 26px auto 22px; max-width: 560px; }
.bridge .world { flex: none; width: min(42vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--t); border: 2.5px solid var(--c); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; animation: pop .5s cubic-bezier(.2,.9,.3,1.2) both; }
.bridge .world:last-child { animation-delay: .08s; }
.bridge .world a.nm { font-size: clamp(19px, 5.4vw, 26px); font-weight: 800; color: var(--c); text-decoration: none; line-height: 1.1; letter-spacing: -.01em; }
.bridge .world .gchip { background: var(--paper); font-size: 13px; padding: 4px 10px 4px 8px; min-height: 30px; white-space: normal; line-height: 1.15; text-align: left; }
.bridge .tie { flex: 1; min-width: 28px; max-width: 110px; height: 0; border-top: 2.5px solid var(--line2); position: relative; }
.bridge .tie.inferred, .bridge .tie.debated { border-top-style: dashed; }
.bridge .tie { z-index: 2; }
.bridge .tie span { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); background: var(--paper); border: 1.5px solid var(--line2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.bridge p { max-width: 30em; margin-left: auto; margin-right: auto; }
.bridge .btns { justify-content: center; margin-top: 22px; }

/* ---------- compare / connect ---------- */
.form2 { display: grid; gap: 12px; }
@media (min-width: 720px) { .form2 { grid-template-columns: 1fr 1fr; } }
.form2 label { font-size: 14px; font-weight: 700; color: var(--ink3); display: block; margin-bottom: 6px; }
select { width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); padding: 0 14px; font-size: 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets a { text-decoration: none; background: var(--wash2); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; }
.presets a:hover { background: var(--accent-t); color: var(--accent); }
.verdict { font-size: clamp(22px, 5.4vw, 30px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }

.braid { --a: #1967d2; --at: #e8f0fe; --b: #c2185b; --bt: #fde7f1; margin-top: 8px; }
.braid .heads { position: sticky; top: var(--bar); z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 0; background: linear-gradient(var(--paper) 78%, transparent); }
.braid .heads div { border-radius: 16px; padding: 8px 12px; font-weight: 750; font-size: 15px; line-height: 1.2; text-align: center; }
.braid .heads span { display: block; font-weight: 500; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.braid .heads .ha { background: var(--at); color: var(--a); } .braid .heads .hb { background: var(--bt); color: var(--b); }
.seg { position: relative; display: grid; gap: 8px; justify-items: center; padding: 4px 0; }
.seg.both::before, .seg .col::before { content: ""; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: var(--line); transform: translateX(-1px); z-index: 0; }
.seg.split { grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; padding: 14px 0; }
.seg.split::before, .seg.split::after { content: ""; position: absolute; left: 25%; right: 25%; height: 2px; background: var(--line); }
.seg.split::before { top: 0; } .seg.split::after { bottom: 0; }
.seg .col { position: relative; display: grid; gap: 8px; justify-items: center; align-content: start; min-height: 100%; }
.seg .col::before { top: -14px; bottom: -14px; }
.seg .gap { position: relative; z-index: 1; font-size: 13px; color: var(--ink3); background: var(--paper); padding: 4px 8px; text-align: center; }
.bp { position: relative; z-index: 1; max-width: 100%; text-align: center; }
.bp a { display: inline-block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line2); border-radius: 999px; padding: 7px 16px; font-weight: 650; min-height: 40px; line-height: 1.4; }
.bp a:hover { border-color: var(--accent); }
.seg.both .bp a { background: #e6f4ea; border-color: #188038; color: #0d5a26; font-weight: 750; }
.col.ca .bp a { background: var(--at); border-color: var(--a); } .col.cb .bp a { background: var(--bt); border-color: var(--b); }
.bp.end a { box-shadow: 0 0 0 3px var(--accent-t); }
.bp .as { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.bp .nt { display: block; font-size: 13px; color: var(--ink2); line-height: 1.35; margin: 4px auto 2px; max-width: 24em; background: var(--paper); padding: 2px 4px; }
.bp .step { display: block; font-size: 12.5px; color: var(--ink3); background: var(--paper); margin-bottom: 3px; padding: 1px 4px; }
.fold { position: relative; z-index: 1; border: 1.5px dashed var(--line2); background: var(--paper); border-radius: 999px; padding: 8px 16px; font-weight: 650; color: var(--accent); font-size: 14.5px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { background: var(--wash); border-radius: 16px; padding: 10px 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink3); font-size: 13.5px; }
.prose p + p { margin-top: 12px; }
.prose { max-width: 40em; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
