/* _proto/D2/chart.css — the spelling chart, phone first (designer D2), on the
   village page, in the drawer under a row of the villages sheet, and on the
   records, places and how-to-read pages. The tokens, type, dots and line are
   the spelling map's own (site/chart.css); the line view and the plain cards
   are new. */

/* ── tokens: the record colours, the line, the cards (site/chart.css's own) ── */
:root{
  --acc-p:#A87A1C; --acc-c:#5C7E4E; --acc-oc:#6F8C5F; --acc-w:#3E6591; --acc-mk:#8A4470; --acc-gv:#7A6A48; --acc-sv:#3F7F86;
  --fcard:#FBF7E9;
  --sm-line:#2A2118; --sm-rail:#E2D9BE; --sm-guide:#EAE2C8; --sm-colhi:rgba(184,72,12,.06);
  --sm-gapline:#8A8170; --sm-tip:#1D160E; --sm-tip-ink:#F4EED8;
  --d2-tap:rgba(184,72,12,.07); --d2-open:rgba(184,72,12,.05);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --acc-p:#D9A640; --acc-c:#7FA36E; --acc-oc:#9DB88C; --acc-w:#7299C8; --acc-mk:#C27BA8; --acc-gv:#A8956A; --acc-sv:#6FB3BA;
  --fcard:#1A1710;
  --sm-line:#E8DFC6; --sm-rail:#2E2920; --sm-guide:#211D16; --sm-colhi:rgba(255,138,61,.08);
  --sm-gapline:#8C826E; --sm-tip:#F4EED8; --sm-tip-ink:#1D160E;
  --d2-tap:rgba(255,138,61,.09); --d2-open:rgba(255,138,61,.06);
}}
:root[data-theme="dark"]{
  --acc-p:#D9A640; --acc-c:#7FA36E; --acc-oc:#9DB88C; --acc-w:#7299C8; --acc-mk:#C27BA8; --acc-gv:#A8956A; --acc-sv:#6FB3BA;
  --fcard:#1A1710;
  --sm-line:#E8DFC6; --sm-rail:#2E2920; --sm-guide:#211D16; --sm-colhi:rgba(255,138,61,.08);
  --sm-gapline:#8C826E; --sm-tip:#F4EED8; --sm-tip-ink:#1D160E;
  --d2-tap:rgba(255,138,61,.09); --d2-open:rgba(255,138,61,.06);
}

.d2{container:d2 / inline-size;position:relative;--smbg:var(--paper);min-width:0}
.d2.in-drawer{--smbg:var(--sheet)}
.d2 .gur,.d2p .gur{font-family:var(--gur)}
.d2 p,.d2p p{margin:0}
.d2 h3{font:inherit;letter-spacing:normal;text-transform:none;color:inherit;border-top:0;padding-top:0;margin:0;font-weight:400}
.d2 a,.d2p a{color:var(--sign)}
.acc-p{--acc:var(--acc-p)} .acc-c{--acc:var(--acc-c)} .acc-oc{--acc:var(--acc-oc)} .acc-w{--acc:var(--acc-w)}
.acc-mk{--acc:var(--acc-mk)} .acc-gv{--acc:var(--acc-gv)} .acc-sv{--acc:var(--acc-sv)}


/* ══════════════════════════════════════════════ THE LINE (phone) ══════
   --gap: how far one spelling's column stands from the next (chart.js sets it
   from the number of spellings); a stop stands in its own column. The line runs
   at 13 px inside a stop (the middle of its 26 px dot column), drawn as one
   segment per row of text, so it lengthens with whatever the row holds. */
.ln{--bw:26px;--bx:13px;--lw:4px;--by:15px}
/* English, on a phone, said small under the Punjabi */
.ln .en,.d2-endf .en{display:block;font-family:var(--grot);font-size:12.5px;line-height:1.4;color:var(--soft);font-style:normal;font-weight:400;letter-spacing:0;text-transform:none}
.ln-block{margin:0 0 26px}
/* the line's meaning, one small plain line right under the first line (no box, no bar) */
.ln-only{margin:10px 0 0!important;padding:0 0 0 calc(var(--bw) + 10px);max-width:60ch}
.ln-only .gur{font-size:14.5px;color:var(--ink);line-height:1.55}
.ln-bh{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0 0 8px;padding:0;font-weight:400}
.ln-bh > .gur{font-size:16px;font-weight:600;color:var(--soft);line-height:1.3}
.ln-bh .ln-bhe{flex-basis:100%;margin-top:-2px}
.ln-bhn{font-family:var(--grot);font-size:13.5px;color:var(--soft)}
.ln-bhn .gur{font-size:16px;color:var(--soft);font-weight:400}
.ln-note{font-family:var(--grot);font-size:13.5px;line-height:1.45;color:var(--soft);margin:2px 0 10px!important;max-width:60ch}
.ln-note .gur{display:block;font-size:14px;color:var(--soft);line-height:1.55}
.ln-none{font-family:var(--grot);font-size:14.5px;color:var(--soft);padding:4px 0 8px}
.ln-none .gur{display:block;font-size:15.5px}

.ln-path{position:relative}
.ln-stop{position:relative}
/* one straight line: a new spelling is set apart from the records above it only by space */
.ln-stop:not(.first) > .ln-tap > .ln-name{padding-top:12px}
.ln-tap{display:block;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;
  cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:6px;position:relative;min-height:48px}
.ln-tap:active .ln-row{background-color:var(--d2-tap)}
@media (hover:hover){ .ln-tap:hover .ln-row{background-color:var(--d2-tap)} }
.ln-tap:focus{outline:none}
.ln-tap:focus-visible{outline:2px solid var(--sign);outline-offset:2px}
.ln-stop.open > .ln-tap .ln-row{background-color:var(--d2-open)}
.ln-row{display:block;position:relative;padding:3px 10px 3px calc(var(--bw) + 10px);min-width:0}
.ln-row:first-child{border-radius:6px 6px 0 0}
/* the line: one segment per row */
.ln-row::before{content:"";position:absolute;left:calc(var(--bx) - var(--lw) / 2);width:var(--lw);top:0;bottom:0;
  background:var(--sm-line);border-radius:0}
.ln-row.l-none::before,.ln-row.l-dot::before{display:none}
.ln-row.l-start::before{top:var(--by);border-radius:2px 2px 0 0}
.ln-row.l-end::before{bottom:auto;height:var(--by);border-radius:0 0 2px 2px}
/* the record dot: one per source, on the line, beside its words */
.ln-src::after{content:"";position:absolute;left:calc(var(--bx) - 8px);top:calc(var(--by) - 8px);width:16px;height:16px;border-radius:50%;
  background:var(--acc);box-sizing:border-box}
.ln-stop.open .ln-src::after{box-shadow:0 0 0 2px var(--smbg),0 0 0 3.5px var(--acc)}
@media (hover:hover){ .ln-tap:hover .ln-src::after{box-shadow:0 0 0 3px var(--smbg),0 0 0 4.5px var(--acc)} }

.ln-name{padding-top:5px;padding-bottom:4px;padding-right:6px}
.ln-name::after{content:"";display:table;clear:both}
.ln-form{display:block;color:var(--ink);overflow-wrap:break-word}
.ln-form.g{font-family:var(--gur);font-weight:600;font-size:26px;line-height:1.3}
.ln-form.r{font-family:var(--grot);font-weight:600;font-size:21px;line-height:1.25;letter-spacing:-.008em}
.in-drawer .ln-form.g{font-size:24px}
.in-drawer .ln-form.r{font-size:20px}
/* a small chevron at the right of a spelling: the whole row opens its records (no pill) */
.ln-open{float:right;width:10px;height:10px;margin:16px 6px 0 12px;border-right:2px solid var(--sign);border-bottom:2px solid var(--sign);
  transform:rotate(45deg);transition:transform .15s ease;opacity:.85}
.ln-tap[aria-expanded="true"] .ln-open{transform:rotate(-135deg);margin-top:22px}

.ln-var{font-family:var(--grot);font-size:14px;line-height:1.5;color:var(--soft);padding-top:0;padding-bottom:4px}
.ln-vf{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.ln-vf.g{font-family:var(--gur);font-size:24px;line-height:1.35}
.ln-vf.r{font-family:var(--grot);font-size:19.5px;line-height:1.3}
.ln-var .ln-yrs{color:var(--ink);margin:0 4px}
.ln-vw{display:block;white-space:normal}
.ln-vw .gur{font-size:15px;margin-right:2px}

.ln-src{padding-top:4px;padding-bottom:4px;font-family:var(--grot);font-size:14.5px;line-height:1.45;color:var(--soft)}
.ln-who{color:var(--ink)}
.ln-who .gur{font-size:16.5px;font-weight:600;line-height:1.4;margin-right:3px}
.ln-en{color:var(--soft)}
.ln-yrs{font-family:var(--grot);font-weight:600;font-size:15px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:normal}
.ln-src .ln-yrs{margin-left:4px;font-weight:500;color:var(--soft)}
.yr{white-space:nowrap}
.yr small{font-weight:400;font-size:12.5px;color:var(--soft)}
.yr small .gur{font-size:13px}
.ys{color:var(--soft);font-weight:400}


/* the card under a stop: each of its records, as written, with where to read it */
.ln-card{position:relative;margin:4px 0 8px calc(var(--bw) + 6px)}
.ln-card.l-pass::before{content:"";position:absolute;left:calc(var(--bx) - var(--lw) / 2 - var(--bw) - 6px);width:var(--lw);top:-4px;bottom:-8px;
  background:var(--sm-line)}
.ln-card[hidden]{display:none}
.lc-t{font-family:var(--grot);font-size:13px;color:var(--soft);margin:0 0 6px!important}
.lc-t .gur{font-size:14.5px;color:var(--ink);margin-right:3px}
.lc-list{list-style:none;margin:0;padding:0;background:var(--fcard);border:1px solid var(--rule);border-radius:4px;overflow:hidden}
.lc-i{padding:9px 12px 4px 12px;border-left:4px solid var(--acc);border-top:1px solid var(--rule)}
.lc-i:first-child{border-top:0}
.lc-h{font-family:var(--grot);font-size:13.5px;line-height:1.4;color:var(--soft)}
.lc-h b{font-family:var(--mono);font-size:14px;font-weight:500;color:var(--ink);margin-right:4px}
.lc-h span{color:var(--ink)}
.lc-dd{color:var(--soft)!important}
.lc-v{color:var(--ink);font-weight:600;overflow-wrap:break-word;margin:0 0 1px!important}
.lc-v.g{font-family:var(--gur);font-size:23px;line-height:1.4}
.lc-v.r{font-family:var(--grot);font-size:19px;line-height:1.3}
.lc-d,.lc-a{font-family:var(--grot);font-size:13px;line-height:1.45;color:var(--soft)}
.lc-a .gur{display:block;font-size:14px}
.lc-go{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,92px),1fr));gap:0 12px;margin:2px 0 0!important;max-width:420px}
.lc-go a{display:flex;flex-direction:column;justify-content:center;min-height:48px;padding:3px 0;text-decoration:none;position:relative}
.lc-go a .gur{font-size:16px;font-weight:600;line-height:1.35;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.lc-go a > span:not(.gur):not(.vh){font-family:var(--grot);font-size:12.5px;line-height:1.3;color:var(--soft)}
.lc-go a .gur::after{font-family:var(--grot);font-weight:400;margin-left:5px;display:inline-block;text-decoration:none}
.lc-src .gur::after{content:"↗"}
.lc-full .gur::after{content:"→"}
.lc-dl .gur::after{content:"↓"}
/* the handbook's page and the size of its download, beside the link (the page anchor does not survive a download) */
.lc-bk{font-family:var(--grot);font-size:14px;line-height:1.45;color:var(--ink);margin:4px 0 0!important;max-width:46ch}
.lc-bk .gur{font-size:15px}
.lc-book{display:block}
.lc-bw{display:block;color:var(--soft);font-size:13px}
.lc-bw .gur{font-size:14px;color:var(--ink)}
.lc-go a:hover > span:not(.gur){color:var(--sign)}
.lc-prop{margin:6px 0 0!important}
.lc-prop .gur{font-size:13.5px;color:var(--soft);line-height:1.5}
.lc-close{display:flex;align-items:center;gap:8px;margin:6px 0 2px auto;min-height:44px;padding:0 14px;border:1px solid var(--rule);
  border-radius:4px;background:var(--smbg);color:var(--ink);font-family:var(--grot);font-size:14px;cursor:pointer}
.lc-close .gur{font-size:15.5px;font-weight:600}
.lc-close:hover{border-color:var(--ink)}
.d2-pepsu{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;
  border:1px solid var(--acc-oc);padding:1px 5px;margin-left:4px;white-space:nowrap;color:var(--ink)}

/* ── off the line: no date, former names ── */
.d2-end{margin:4px 0 18px}
.d2-end h3{font-family:var(--grot);font-size:14px;font-weight:400;color:var(--soft);margin:0 0 6px;padding-top:9px;border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.d2-end h3 > .gur{font-size:18px;font-weight:600;color:var(--wrong)}
.d2-end h3 > span{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--wrong)}
.d2-end h3 small{flex-basis:100%;font-size:13.5px;line-height:1.45}
.d2-end h3 small .gur{font-size:14.5px;margin-right:4px}
.d2-end ul{list-style:none;margin:0;padding:0}
.le-i{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;padding:6px 0 2px 12px;border-left:4px solid var(--acc);margin:0 0 8px}
.le-v{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.le-v.g{font-family:var(--gur);font-size:24px;line-height:1.35}
.le-v.r{font-family:var(--grot);font-size:19px}
.le-s{font-family:var(--grot);font-size:14px;color:var(--ink)}
.le-s .gur{font-size:15.5px;font-weight:600;margin-right:3px}
.le-m{flex-basis:100%;font-family:var(--grot);font-size:13px;color:var(--soft);font-style:italic}
.le-go{flex-basis:100%}

.d2-prop{font-family:var(--grot);font-size:13.5px;font-style:italic;line-height:1.5;color:var(--soft);margin:6px 0 12px!important;max-width:72ch}
.d2-prop .gur{display:block;font-style:normal;font-size:15px;color:var(--ink)}
.d2[data-view="line"] .d2-prop .en{display:block;font-size:12.5px}

/* the pages one tap away */
.d2-more{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:8px;margin:4px 0 6px}
.d2-more a{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:60px;padding:9px 40px 9px 14px;position:relative;
  border:1px solid var(--rule);border-radius:4px;background:var(--fcard);text-decoration:none;color:var(--ink)}
.d2-more a .gur{font-size:17px;font-weight:600;line-height:1.35}
.d2-more a > span:last-child{font-family:var(--grot);font-size:13px;color:var(--soft)}
.d2-more a::after{content:"→";position:absolute;right:14px;top:50%;transform:translateY(-50%);font-family:var(--grot);font-size:18px;color:var(--sign)}
.d2-more a:hover{border-color:var(--sign)}
.in-drawer .d2-more a{background:var(--paper)}

/* ══════════════════════════════════════════════ THE MAP (wide) ══════ */
.wm{--labw:clamp(190px,24%,300px);--rowh:48px;
  /* a form written over its dot is kept inside the map by layout(); until that has run, it may not widen the page */
  overflow-x:clip;overflow-clip-margin:0}
.in-drawer .wm{--labw:clamp(180px,21%,280px);--rowh:40px}
.wm-how{font-family:var(--grot);font-size:13.5px;color:var(--soft);margin:0 0 10px!important}
.wm-how .gur{font-size:15.5px;color:var(--ink);margin-right:6px}
.wm-axis{display:grid;grid-template-columns:var(--labw) minmax(0,1fr);border-bottom:1.5px solid var(--ink)}
.wm-axt{position:relative;height:46px}
.ax-g{position:absolute;top:0;font-family:var(--mono);font-size:10px;letter-spacing:.03em;text-transform:uppercase;
  color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;
  border-top:1px solid var(--soft);padding-top:4px;line-height:1.2;box-sizing:border-box}
.ax-y{position:absolute;bottom:6px;transform:translateX(-50%);font-family:var(--mono);font-size:13px;font-weight:600;
  color:var(--ink);line-height:1;white-space:nowrap;padding:2px 3px;border-radius:2px}
.ax-y.empty{color:var(--soft);font-weight:400}
.ax-y.on{background:var(--ink);color:var(--smbg)}
@container d2 (max-width:860px){ .ax-y{font-size:11.5px} }
.wm-body{position:relative;display:grid;grid-template-columns:var(--labw) minmax(0,1fr);--spread:18px}
.wm-bh{grid-column:1 / -1;display:flex;align-items:baseline;gap:10px;padding:10px 0 0;font-family:var(--mono);font-size:10.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--wrong);position:relative;z-index:2}
.wm-bh .gur{letter-spacing:0;text-transform:none;font-size:14px}
.wm-bhn{letter-spacing:.02em;text-transform:none;color:var(--soft);font-family:var(--grot);font-size:12px}
.wm-bhn .gur{font-size:12.5px;margin-right:3px}
.wm-bh.next{border-top:1px solid var(--rule);margin-top:6px;padding-top:11px}
.wm-none{grid-column:1 / -1;font-family:var(--grot);font-style:italic;font-size:13px;color:var(--soft);padding:8px 0}
.wm-lab{min-height:var(--rowh);display:flex;align-items:center;padding:3px 12px 3px 0;position:relative;z-index:2;min-width:0}
.wm-lab.wrapped::before{content:"";flex:none;align-self:stretch;width:2px;margin:3px 8px 3px 0;background:var(--sm-gapline);opacity:.7}
.wm-forms{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 20px;min-width:0;overflow-x:clip;overflow-y:visible}
.wm-alt{display:inline-flex;align-items:baseline;min-width:0;margin-left:-20px}
.wm-sep{flex:none;width:20px;text-align:center;font-family:var(--grot);color:var(--soft);font-size:15px}
.wm-form{min-width:0;overflow-wrap:anywhere;color:var(--ink)}
.wm-form.g{font-family:var(--gur);font-weight:600;font-size:clamp(21px,2.1vw,26px);line-height:1.3}
.wm-form.r{font-family:var(--grot);font-weight:600;font-size:clamp(17px,1.6vw,19.5px);line-height:1.22;letter-spacing:-.01em}
.in-drawer .wm-form.g{font-size:21px}
.in-drawer .wm-form.r{font-size:16.5px}
.wm-trk{min-height:var(--rowh);position:relative;z-index:3}
.wm-svg{position:absolute;left:0;top:0;z-index:1;pointer-events:none;overflow:visible}
.wm-svg .guide{stroke:var(--sm-guide);stroke-width:1}
.wm-svg .rail{stroke:var(--sm-rail);stroke-width:1}
.wm-svg .colhi{fill:var(--sm-colhi)}
.wm-svg .ln{fill:none;stroke:var(--sm-line);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.wm-svg .ln.gurmukhi{stroke-width:4}
.wm-svg .ln.gap{stroke:var(--sm-gapline);stroke-width:2.2;stroke-dasharray:0 6.5}
/* one kind of dot: a record, in its source's colour */
.wd{position:absolute;left:calc(var(--x) + var(--j) * var(--spread));top:50%;width:32px;height:32px;margin:-16px 0 0 -16px;
  padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;z-index:2}
.wd::before{content:"";position:absolute;left:8px;top:8px;width:16px;height:16px;border-radius:50%;box-sizing:border-box;
  background:var(--acc);box-shadow:0 0 0 3px var(--smbg);transition:transform .15s ease}
.wd:hover::before{transform:scale(1.22)}
.wd.on::after,.wd:focus-visible::after{content:"";position:absolute;inset:3px;border-radius:50%;border:2px solid var(--ink)}
.wd:focus{outline:none}
.wd:focus-visible::after{border-color:var(--sign);inset:1px}
@media (pointer:coarse){ .wd{width:44px;height:44px;margin:-22px 0 0 -22px} .wd::before{left:14px;top:14px} .wm-body{--spread:23px} }
/* dots of one year on one row stand apart far enough that each one's middle is its own to tap */
.wm-notes{position:absolute;inset:0;z-index:2;pointer-events:none}
.wm-note{position:absolute;transform:translateY(-50%);display:flex;justify-content:flex-end;overflow:hidden}
.wm-note span{font-family:var(--grot);font-style:italic;font-size:12px;line-height:1.3;color:var(--soft);white-space:nowrap;
  overflow:hidden;background:var(--smbg);padding:0 8px 0 8px}
.wm-vl{position:absolute;left:calc(var(--x) + var(--j) * var(--spread));top:50%;transform:translate(-50%,calc(-100% - 11px));
  font-family:var(--grot);font-size:11px;line-height:1.1;color:var(--soft);white-space:nowrap;letter-spacing:.01em;
  pointer-events:none;max-width:150px;overflow:hidden;text-overflow:ellipsis;translate:var(--dx,0px) 0;z-index:2}
.wm-vl.g{font-family:var(--gur);font-size:12.5px}
.wm-vl.hid{visibility:hidden}
.wm-tip{position:absolute;z-index:6;pointer-events:none;background:var(--sm-tip);color:var(--sm-tip-ink);
  padding:7px 11px 8px;border-radius:3px;max-width:300px;font-family:var(--grot);font-size:12px;line-height:1.4;
  box-shadow:0 8px 22px rgba(20,14,6,.22)}
.wm-tip b{display:block;font-size:18px;font-weight:600;line-height:1.25;margin-bottom:2px}
.wm-tip b.g{font-family:var(--gur);font-size:20px}
.wm-tip span{display:block;opacity:.92}

/* the record card under the map */
.wm-card{margin:12px 0 4px}
.wm-card:focus{outline:none}
.wm-card:focus-visible .wc{outline:2px solid var(--sign);outline-offset:2px}
.wc{border:1px solid var(--rule);border-top:3px solid var(--acc);background:var(--fcard);border-radius:2px}
.in-drawer .wc{background:var(--paper)}
.wc-nav{display:flex;align-items:center;gap:6px 10px;padding:0 4px;border-bottom:1px solid var(--rule);
  font-family:var(--mono);font-size:11px;color:var(--soft);letter-spacing:.03em}
.wc-pos{margin:0 auto}
.wc-step{font-family:var(--grot);font-size:13px;color:var(--ink);background:none;border:0;padding:4px 10px;min-height:44px;cursor:pointer}
.wc-step .gur{font-size:14.5px}
.wc-step:disabled{color:var(--soft);opacity:.5;cursor:default}
.wc-step:not(:disabled):hover{color:var(--sign)}
.wc-close{font:inherit;font-size:15px;color:var(--ink);background:none;border:1px solid var(--rule);width:44px;height:44px;cursor:pointer;border-radius:2px;margin:4px 0}
.wc-close:hover{border-color:var(--ink)}
.wc-in{padding:10px 16px 6px}
.wc-v{color:var(--ink);font-weight:600;overflow-wrap:anywhere;margin:2px 0 2px!important}
.wc-v.g{font-family:var(--gur);font-size:28px;line-height:1.4}
.wc-v.r{font-family:var(--grot);font-size:23px;line-height:1.3}

/* the legend, always shown, in words */
.wm-legend{margin:12px 0 14px;font-family:var(--grot);font-size:13px;line-height:1.5;color:var(--soft);display:grid;gap:5px}
.wm-legend .gur{font-size:14px;color:var(--ink);margin-right:4px}
.wm-legend p{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:baseline;gap:0 4px}
.wm-legend p > span:only-child{grid-column:1 / -1}
.wm-legend i{display:inline-block;flex:none;align-self:center}
.wm-legend .wl-txt .gur{display:block}
.wl-dots{display:flex!important;flex-wrap:wrap;gap:4px 16px!important;align-items:center}
.wl-k{flex-basis:100%}
.wl-a{display:inline-flex;align-items:center;color:var(--ink)}
.wl-a i{width:12px;height:12px;border-radius:50%;background:var(--acc)}
.wl-a .gur{font-size:13.5px}
.wl-ln{width:26px;height:4px;border-radius:2px;background:var(--sm-line)}
.wl-same{width:4px;height:18px;border-radius:2px;background:var(--sm-line);margin-left:11px}
.wl-a i{margin-right:6px}
.wl-row{width:26px;height:12px;border-top:1px solid var(--sm-rail);border-bottom:1px solid var(--sm-rail);box-sizing:border-box}
.wl-gap{width:26px;height:3px;background:radial-gradient(circle,var(--sm-gapline) 1.2px,transparent 1.5px) 0 50%/6.5px 3px repeat-x}

/* ── the drawer's head (the villages sheet) ── */
.d2-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin:0 0 6px}
.d2-name{flex:1 1 auto;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;overflow-wrap:anywhere}
.d2-name:focus{outline:none}
.d2-name:focus-visible{outline:2px solid var(--sign);outline-offset:3px}
.d2-name .gur{font-size:24px;font-weight:600;line-height:1.3}
.d2-rom{font-family:var(--grot);font-size:15px;color:var(--soft)}
.d2-half{align-self:center}
.d2-acts{flex:none;display:flex;align-items:center;gap:10px;margin-left:auto}

/* ── the drawer in the villages sheet (site/chart.css's own) ── */
.sheet tr.is-open td{box-shadow:inset 0 0 0 9999px rgba(184,72,12,.07)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sheet tr.is-open td{box-shadow:inset 0 0 0 9999px rgba(255,138,61,.09)}}
:root[data-theme="dark"] .sheet tr.is-open td{box-shadow:inset 0 0 0 9999px rgba(255,138,61,.09)}
.sheet tbody tr.sm-drawer td{height:auto;padding:0;vertical-align:top;background:var(--sheet);
  border-top:2px solid var(--ink);border-bottom:2px solid var(--ink)}
.sheet tbody tr.sm-drawer:hover td,.sheet tbody tr.sm-drawer td.cx{box-shadow:none;background-image:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sheet tbody tr.sm-drawer:hover td{box-shadow:none}}
:root[data-theme="dark"] .sheet tbody tr.sm-drawer:hover td{box-shadow:none}
.dr-in > .d2{max-width:1440px}
@media (max-width:1100px){ .sheet table.has-chart thead th{position:static} }
.dr-in{padding:12px clamp(14px,1.8vw,24px) 14px;scroll-margin-top:var(--drtop,140px)}
.dr-in:focus{outline:none}
.dr-pick{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid var(--faint);min-height:44px;padding:6px 14px;margin-right:10px;border-radius:999px;
  background:var(--board);color:var(--board-ink);text-decoration:none;font-family:var(--grot);font-size:13px;font-weight:600}
.d2 .d2-acts a.dr-pick,.d2 .d2-acts a.dr-pick span{color:var(--board-ink)}
.d2 .d2-acts a.dr-pick .gur{font-family:var(--gur);font-size:15px}
.d2 .d2-acts a.dr-pick .en{font-family:var(--grot);font-size:12px;opacity:.9}
.dr-pick:focus-visible{outline:3px solid var(--sign);outline-offset:2px}
.dr-page{font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;color:var(--sign);
  min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.dr-page .gur{font-size:14px;letter-spacing:0;margin-right:6px}
.dr-close{border:1px solid var(--grid);background:var(--paper);color:var(--ink);min-width:44px;height:44px;cursor:pointer;
  font-family:var(--grot);font-size:13px;line-height:1;border-radius:2px;display:inline-flex;align-items:center;gap:6px;padding:0 10px}
.dr-close .gur{font-size:14px}
.dr-close:hover{border-color:var(--ink)}
@media (max-width:640px){
  .sheet tbody tr.sm-drawer{display:block;margin:-6px 0 8px;border:1px solid var(--grid);border-top:0;background:var(--sheet)}
  .sheet tbody tr.sm-drawer td{display:block;border:0;border-top:2px solid var(--ink)}
  .dr-in{padding:12px 12px 14px}
  .d2-acts{flex-basis:100%;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .dr-pick{flex:1 0 100%;justify-content:center;margin-right:0;white-space:nowrap}
  .dr-page{display:block;white-space:normal;flex:1 1 auto;min-width:0;line-height:1.4;padding:11px 0}
  .dr-close{flex:none;white-space:nowrap}
}

/* ══════════════════════════════════════ THE PAGES ONE TAP AWAY ══════ */
.d2p{padding-bottom:clamp(30px,5vw,60px)}
.d2p-head{padding:clamp(22px,4vw,46px) 0 8px}
.d2p-head .crumb a{border-bottom-color:var(--rule)}
.d2p-name{font-family:var(--gur);font-weight:600;font-size:clamp(36px,7vw,64px);line-height:1.15;margin:10px 0 2px!important;overflow-wrap:anywhere}
.d2p-name .half{font-family:var(--mono);font-size:.3em;vertical-align:.9em;margin-left:.25em;padding:2px 7px;color:var(--soft);
  background:var(--band);border:1px solid var(--rule);border-radius:2px;font-weight:400}
.d2p-rom{font-family:var(--grot);font-size:16px;color:var(--soft)}
.d2p-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-family:var(--grot);font-size:15px;font-weight:600;margin-top:6px}
.d2p-back .gur{font-size:16px}
.d2p-back::before{content:"←";font-weight:400}
.d2p h1.d2p-t{font-family:var(--gur);font-weight:600;font-size:clamp(24px,4vw,32px);line-height:1.3;margin:22px 0 2px;
  padding-top:14px;border-top:2px solid var(--ink)}
.d2p h1.d2p-t span{display:block;font-family:var(--display);font-weight:600;font-size:clamp(18px,2.4vw,22px);letter-spacing:-.01em;color:var(--soft)}
.d2p-lede{font-family:var(--grot);font-size:15px;line-height:1.55;color:var(--soft);max-width:68ch;margin:8px 0 14px!important}
.d2p-lede .gur{display:block;font-size:16.5px;color:var(--ink);line-height:1.6}
.d2p h2{font-family:var(--gur);font-size:21px;font-weight:600;color:var(--wrong);margin:26px 0 8px;padding-top:10px;border-top:1px solid var(--rule)}
.d2p h2 > span:not(.gur){font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:400;margin-left:8px}
.d2p h2 small{display:block;font-family:var(--grot);font-size:13.5px;color:var(--soft);font-weight:400;margin-top:2px}

/* records */
.rp-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.rp-i{background:var(--fcard);border:1px solid var(--rule);border-left:5px solid var(--acc);border-radius:3px;padding:12px 14px 10px;
  scroll-margin-top:76px}
@media (max-width:640px){ .rp-i{scroll-margin-top:14px} }
.rp-i:target,.rp-i.is-target{box-shadow:0 0 0 3px var(--sign)}
.rp-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;font-family:var(--grot);font-size:14px;color:var(--soft)}
.rp-y{font-family:var(--mono);font-size:16px;font-weight:500;color:var(--ink)}
.rp-flag{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);border:1px solid var(--rule);
  padding:1px 6px;border-radius:2px;background:var(--band)}
.rp-flag .gur{letter-spacing:0;text-transform:none;font-size:12.5px}
.rp-v{color:var(--ink);font-weight:600;overflow-wrap:anywhere;margin:4px 0 4px!important}
.rp-v.g{font-family:var(--gur);font-size:28px;line-height:1.35}
.rp-v.r{font-family:var(--grot);font-size:23px;line-height:1.25}
.rp-src{font-family:var(--grot);font-size:14.5px;line-height:1.5;color:var(--ink)}
.rp-src b{font-weight:600}
.rp-src a{display:inline-flex;align-items:center;min-height:44px}
.rp-cmp{font-family:var(--grot);font-size:14px;line-height:1.5;color:var(--ink);margin:2px 0 4px!important}
.rp-cmp.cmp-same,.rp-cmp.cmp-first,.rp-cmp.cmp-undated,.rp-cmp.cmp-former{color:var(--soft)}
.rp-cmp .gur{font-size:15.5px}
.rp-i .sd-line,.rp-i .sd-notes{font-family:var(--grot);font-size:13.5px;line-height:1.55;color:var(--soft);margin:0}
.rp-i .sd-line b{color:var(--ink)}
.rp-i .sd-prop{font-style:italic;color:var(--ink)}
.rp-i .sd-notes{margin:2px 0 4px}
.rp-ctx{margin-top:6px;padding-top:6px;border-top:1px dashed var(--rule)}
.rp-ctx .sd-k,.rp-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--soft);margin:0 0 2px!important}
.rp-ctx .gur{font-size:15px}
.rp-i .d2-pepsu{margin-left:6px}

/* places */
.pl-level{margin:0 0 18px}
.pl-seg{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding:9px 0 9px 14px;border-left:4px solid var(--soft);
  border-bottom:1px solid var(--rule);background:var(--fcard)}
.pl-seg + .pl-seg{margin-top:6px}
.pl-seg.unsaid{border-left-style:dashed;background:transparent}
.pl-n{font-family:var(--grot);font-size:21px;font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.pl-seg.unsaid .pl-n{font-style:italic;font-weight:400;color:var(--soft);font-size:17px}
.pl-y{font-family:var(--grot);font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pl-q,.pl-inf{flex-basis:100%;font-family:var(--grot);font-size:13.5px;color:var(--soft)}
.pl-q .gur,.pl-inf .gur{font-size:14.5px;margin-right:3px}
.pl-words{list-style:none;margin:0;padding:0}
.pl-words li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 12px;padding:9px 0;border-top:1px solid var(--rule)}
.pl-words .pl-wy{font-family:var(--mono);font-size:15px;font-weight:500;color:var(--ink)}
.pl-words .pl-ws{font-family:var(--grot);font-size:13.5px;color:var(--soft)}
.pl-words .pl-wt{grid-column:2;font-family:var(--grot);font-size:15.5px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.pl-words .pl-wt .gur{display:block;font-size:17px}

/* how to read */
.hr-list{list-style:none;margin:0;padding:0;display:grid;gap:14px;max-width:760px}
.hr-i{display:grid;grid-template-columns:92px minmax(0,1fr);gap:4px 16px;align-items:start;padding:14px;background:var(--fcard);
  border:1px solid var(--rule);border-radius:4px}
.hr-fig{position:relative;grid-row:1 / span 2;min-height:64px}
.hr-i h2{grid-column:2;border:0;padding:0;margin:0;font-size:20px;color:var(--ink)}
.hr-i h2 > span:not(.gur){display:block;margin:2px 0 0;font-family:var(--grot);font-size:15px;letter-spacing:0;text-transform:none;color:var(--soft);font-weight:600}
.hr-i p{grid-column:2;font-family:var(--grot);font-size:15px;line-height:1.55;color:var(--soft)}
.hr-i p .gur{display:block;font-size:16.5px;color:var(--ink);line-height:1.6}
.hr-fig svg{display:block;overflow:visible}
.hr-fig .ln{stroke:var(--sm-line);stroke-width:4;fill:none;stroke-linecap:round}
.hr-fig .dot{stroke:var(--smbg,var(--paper));stroke-width:3}
.hr-ex{margin-top:20px}
.hr-ex .d2{border:1px solid var(--rule);border-radius:4px;padding:14px;background:var(--paper)}

/* the start page of the prototype */
.ix-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-width:760px}
.ix-list li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;padding:10px 14px;background:var(--fcard);border:1px solid var(--rule);border-radius:4px}
.ix-list .gur{font-size:22px;font-weight:600}
.ix-list .ix-e{font-family:var(--grot);font-size:13.5px;color:var(--soft);flex-basis:100%}
.ix-list a{display:inline-flex;align-items:center;min-height:44px;font-family:var(--grot);font-size:14.5px;font-weight:600}

@media (max-width:620px){
  .hr-i{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 14px}
  .hr-fig{grid-row:auto;min-height:0}
  .hr-i h2,.hr-i p{grid-column:1}
  .pl-words li{grid-template-columns:52px minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce){ .d2 *,.d2p *{transition:none!important} }


/* ── names wrap only between words (chart-simple.js fitNames sets a word too wide smaller) ── */
.d2 .ln-form,.d2 .ln-vf,.d2 .lc-v,.d2 .le-v,.d2 .wc-v,.d2 .wm-form,.d2 .d2-name,.d2 .d2-rom,.d2p .rp-v,.d2p .d2p-name{
  overflow-wrap:normal;word-break:normal;hyphens:manual}
.nm-cut{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── very narrow (a small phone with its text set very large) ── */
@container d2 (max-width:259px){
  .ln-card{margin-left:calc(var(--bw) + 2px)}
  .lc-i{padding-left:8px;padding-right:8px}
}


/* ══════════════════════════════ TAP-TO-OPEN SECTIONS (details.fold) ══════
   A head that says what is inside and a word that says what a tap does (ਖੋਲ੍ਹੋ / ਬੰਦ ਕਰੋ).
   .fold-w stands open on wide screens with its head not shown (attachChart / attachFolds). */
.fold{margin:0 0 14px;border:1px solid var(--rule);border-radius:6px;background:var(--fcard)}
.in-drawer .fold{background:var(--paper)}
.fold > summary{list-style:none;display:flex;align-items:center;gap:6px 12px;min-height:56px;padding:8px 12px 8px 14px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;border-radius:6px}
.fold > summary::-webkit-details-marker{display:none}
.fold > summary:focus{outline:none}
.fold > summary:focus-visible{outline:2px solid var(--sign);outline-offset:2px}
.fold > summary:active{background:var(--d2-tap)}
.fold[open] > summary{border-bottom:1px solid var(--rule);border-radius:6px 6px 0 0}
.fold > summary > :first-child{flex:1 1 auto;min-width:0}
.fold-t > .gur{font-size:18px;font-weight:600;color:var(--ink);line-height:1.35}
.fold-n{font-family:var(--grot);color:var(--soft)}
.fold-n .gur{font-size:15.5px;color:var(--ink)}
.fold-o{flex:none;padding:1px 12px 2px;border:1.5px solid var(--sign);border-radius:999px;color:var(--sign);font-size:15px;font-weight:600;
  line-height:1.5;white-space:nowrap;background:var(--smbg,var(--paper))}
.fold-o2{display:none}
.fold[open] > summary .fold-o1{display:none}
.fold[open] > summary .fold-o2{display:inline}
.fold > :not(summary){margin-left:12px;margin-right:12px}
.fold > :last-child:not(summary){margin-bottom:12px}
.ln-fold{margin-top:0}
.ln-fold > summary .ln-bh{margin:0;padding:0;border:0}
.ln-fold > .ln-note:first-of-type{margin-top:10px!important}
.ln-fold > .ln-path,.ln-fold > .ln-none{margin-top:12px}
.d2-endf .d2-end:first-of-type h3{border-top:0}
.d2[data-view="map"] .fold-w{border:0;background:none;border-radius:0}
.d2[data-view="map"] .fold-w > summary{display:none}
.d2[data-view="map"] .fold-w > :not(summary){margin-left:0;margin-right:0}
.d2[data-view="map"] .d2-endf .d2-end:first-of-type h3{border-top:1px solid var(--rule)}
/* folds of the page itself (village.html): open on wide screens, their head hidden */
@media (min-width:768px){
  .fold-page{border:0;background:none;border-radius:0;margin:0}
  .fold-page > summary{display:none}
  .fold-page > :not(summary){margin-left:0;margin-right:0}
}

/* ══════════════════════════════ THE PLAIN ANSWER (village.html, under the name) ══════ */
.ans{min-width:0;margin:14px 0 4px;padding:0;max-width:640px}
.ans .gur{font-family:var(--gur)}
.ans p{margin:0}
.ans-q .gur{display:block;font-size:17px;font-weight:500;line-height:1.45;color:var(--soft)}
.ans .en{display:block;font-family:var(--grot);font-size:12.5px;line-height:1.4;color:var(--soft);margin-top:1px}
.ans-list{list-style:none;margin:8px 0 6px;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
.ans-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;min-width:0}
.ans-f{min-width:0;max-width:100%;font-size:34px;font-weight:700;line-height:1.3;color:var(--ink);overflow-wrap:normal;word-break:normal}
.ans-y{font-family:var(--grot);font-size:15px;font-weight:600;color:var(--soft);font-variant-numeric:tabular-nums}
.ans-y .gur{font-weight:400;font-size:15px}
.ans-r{font-family:var(--grot);font-size:16px;line-height:1.5;color:var(--ink);margin-top:8px!important;padding-top:8px;border-top:1px solid var(--rule)}
.ans-r > .gur{display:block;font-size:15.5px;color:var(--soft)}
.ans-rf{font-weight:600}
.ans-sep{color:var(--soft)}
.ans-how{margin-top:8px!important}
.ans-how .gur{font-size:14px;color:var(--soft);line-height:1.5}
.ans-why{white-space:nowrap}
.ans-why .gur{color:var(--sign);font-size:14px}

/* ══════════════════════════════ THE VILLAGE PAGE ON A PHONE ══════
   Punjabi first: the English heads and the long English lines step aside; the census number
   (a code, not a name) is on the records page. */
.fold-t .gur,.fold-o .gur{font-family:var(--gur)}
.foot-fold{margin:0 0 4px}
.foot-fold .fine{margin:12px 0 0}
/* the heading's name is the land record's: said so when the records write it more than one way */
.h-says{font-family:var(--grot);font-size:12.5px;line-height:1.4;color:var(--soft);margin-top:6px;max-width:60ch}
.h-says .gur{display:block;font-size:14.5px;color:var(--ink)}
.ph-only{display:none}
@media (max-width:619px){
  .vhead .sub-code,.h-en,.askbox .en-ph,.signs .en-ph,.ans .en{display:none}
  .ans-r{border-top:0;padding-top:0;margin-top:4px!important}
  /* the answer names the spellings small; the line below writes them big (said big once, not twice) */
  .ans-q .gur{font-size:15.5px}
  .ans-list{margin:4px 0 2px;display:flex;flex-wrap:wrap;gap:0 16px}
  .ans-f{font-size:22px;font-weight:600}
  .ans-y{font-size:14px}
  .ans-r{font-size:15px}
  .signs > h2{display:none}
  .signs .emptyfam{padding:10px 0}
  .vhead{padding-top:18px}
  .vhead .ghost{opacity:.35}
  .vhead .big{margin-top:8px}
  .vhead .sub{margin-top:4px}
  .ph-only{display:inline}
  .stance{font-size:13px!important}
}

/* ══════════════════════════════ MINIMAL ON A PHONE (the line view) ══════
   The name, the answer and the line(s); everything else is said once, small, or one tap away.
   English sub-lines step aside wherever a Punjabi line says the same (the Roman line keeps its own). */
.d2[data-view="line"] .d2-prop{display:none}
.d2[data-view="line"] .d2-endf .en,.d2[data-view="line"] .d2-end h3 > span:not(.gur),.d2[data-view="line"] .d2-end h3 small{display:none}
.d2[data-view="line"] .d2-endf .fold-n .gur{font-size:14.5px;color:var(--soft)}
.d2[data-view="line"] .fold{border:0;border-top:1px solid var(--rule);border-radius:0;background:none;margin:0}
.d2[data-view="line"] .fold > summary{padding:6px 0;min-height:52px;border-radius:0}
.d2[data-view="line"] .fold[open] > summary{border-bottom:0}
.d2[data-view="line"] .fold > :not(summary){margin-left:0;margin-right:0}
.d2[data-view="line"] .fold-t > .gur,.d2[data-view="line"] .ln-fold .ln-bh > .gur{font-size:16.5px;color:var(--ink)}
.d2[data-view="line"] .fold-o{border:0;padding:0 2px;font-size:14px;font-weight:600}
.d2[data-view="line"] .ln-block.roman{margin-top:4px}
.d2[data-view="line"] .ln-block.roman:not(.ln-fold) > .ln-bh{padding-top:12px;border-top:1px solid var(--rule)}
/* the pages one tap away: one plain list, no boxes */
.d2[data-view="line"] .d2-more{display:block;margin:8px 0 0;border-top:1px solid var(--rule)}
.d2[data-view="line"] .d2-more a{min-height:48px;padding:6px 28px 6px 0;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:none}
.d2[data-view="line"] .d2-more a .gur{font-size:16px;font-weight:500}
.d2[data-view="line"] .d2-more a > span:last-child{display:none}
.d2[data-view="line"] .d2-more a::after{right:2px;font-size:16px}

/* ══════════════════════════════════════════════ THE TABLE (every width) ══════
   The village page as one plain table: year | the name as the record writes it | which record.
   A thin line with one dot per record (the record's colour) runs down the year column. A name
   written with other letters than the record before it (same script) is set in the accent. */
.vt-page{max-width:800px;padding-top:clamp(22px,4vw,44px)}
.vt-page .en,.vt .en{font-family:var(--grot);font-weight:400;font-style:normal;letter-spacing:0;text-transform:none;color:var(--soft)}
.vt-head .big{font-family:var(--gur);font-size:clamp(40px,10vw,64px);font-weight:600;line-height:1.15;margin:0;overflow-wrap:normal}
.vt-where,.vt-part{margin:6px 0 0;line-height:1.45}
.vt-where a{color:var(--ink);text-decoration:none;display:inline-block;padding:2px 0}
.vt-where a:hover .gur{text-decoration:underline;text-underline-offset:3px}
.vt-where .gur,.vt-part .gur{font-size:17px}
.vt-where .en,.vt-part .en{display:block;font-size:13px}
.vt-part{margin-top:8px}
.vt-say{font-family:var(--gur);font-size:19px;font-weight:600;line-height:1.45;margin:26px 0 8px;letter-spacing:0;text-transform:none;color:var(--ink);border:0;padding:0}
.vt-say .en{display:block;font-size:13.5px}
.in-drawer .vt-say{margin-top:8px}

.vt-t{width:100%;margin:0}
.vt-hr,.vt-r{display:grid;grid-template-columns:74px minmax(0,1fr) minmax(0,34%);border-bottom:1px solid var(--rule)}
.vt-hr > div{padding:0 8px 6px 0;align-self:end}
.vt-hr .gur{display:block;font-size:13.5px;line-height:1.35;color:var(--soft)}
.vt-hr .en{display:block;font-size:11.5px;line-height:1.3}
.vt-hr .vt-y{padding-left:22px}
.vt-r > div{min-width:0}
.vt-r .vt-y{position:relative;padding-left:22px}
/* the line: one segment per row, starting at the first dot and ending at the last */
.vt-r .vt-y::before{content:"";position:absolute;left:5px;top:0;bottom:-1px;width:2px;background:var(--sm-rail)}
.vt-bd > .vt-r:first-child .vt-y::before{top:22px}
.vt-bd > .vt-r:nth-last-child(2) .vt-y::before{bottom:calc(100% - 22px)}
.vt-bd > .vt-r.open:nth-last-child(2) .vt-y::before{bottom:-1px}
.vt-dot{position:absolute;left:0;top:16px;width:12px;height:12px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 2px var(--paper);z-index:1}
.in-drawer .vt-dot{box-shadow:0 0 0 2px var(--sheet)}
.vt-yt{display:block;font-family:var(--mono);font-size:15px;line-height:1.3;padding:12px 4px 10px 0;color:var(--ink)}
.vt-tap{display:block;width:100%;min-height:48px;margin:0;padding:8px 8px 8px 0;background:none;border:0;border-radius:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.vt-tap:focus-visible{outline:2px solid var(--sign);outline-offset:-2px}
.vt-v{display:block;color:var(--ink);font-weight:600;overflow-wrap:normal;word-break:normal}
.vt-v.g{font-family:var(--gur);font-size:24px;line-height:1.35}
.vt-v.r{font-family:var(--grot);font-size:19px;line-height:1.35}
.vt-r.ch .vt-v{color:var(--sign)}
.vt-r .vt-s{padding:12px 0 10px}
.vt-s .gur{display:block;font-size:15.5px;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.vt-s .en{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.vt-r{cursor:pointer}
@media (hover:hover){.vt-r:hover{background:var(--d2-tap)}}
.vt-r.open{background:var(--d2-open);border-bottom-color:transparent}
.vt-cr[hidden]{display:none}
.vt-cr{display:block;background:var(--d2-open);border-bottom:1px solid var(--rule)}
.vt-cc{position:relative;padding:0 0 12px 22px}
.vt-cc::before{content:"";position:absolute;left:5px;top:0;bottom:-1px;width:2px;background:var(--sm-rail)}
.vt-bd > .vt-cr:last-child .vt-cc::before{display:none}
.vt-card{background:var(--fcard);border:1px solid var(--rule);border-left:4px solid var(--acc);border-radius:4px;padding:10px 12px 6px}
.vt-card .vt-cp{font-size:16px;font-weight:600;margin-right:6px}
.vt-card .vt-ce{display:block;font-size:13px;color:var(--soft)}
.vt-card .lc-prop .en{display:block;font-size:12.5px;line-height:1.4}
.vt-key,.vt-note{font-size:14px;line-height:1.5;margin:10px 0 0!important}
.vt-key .gur,.vt-note .gur{font-size:15px;color:var(--ink)}
.vt-key .en,.vt-note .en{display:block;font-size:12.5px}
.vt-sw{font-family:var(--gur);font-weight:600;color:var(--sign);margin-right:6px}
.vt-why{display:inline}
.vt-none{margin:6px 0 0!important;font-size:15px}
.vt-none .en{display:block;font-size:13px}
.vt-more{margin:26px 0 0}
.vt-more h3{font-family:var(--gur)!important;font-size:16.5px!important;font-weight:600!important;color:var(--ink)!important;margin:0 0 6px!important}
.vt-more h3 .en{font-size:12.5px;margin-left:4px}

/* below the table: one button, one small link, then the plain "More" list */
.vt-after{margin:30px 0 10px}
.vt-ask{display:block;width:100%;max-width:520px;min-height:56px;padding:12px 18px;background:var(--board);color:var(--board-ink);
  border:1px solid var(--rule);border-radius:6px;text-align:left;cursor:pointer;font:inherit}
.vt-ask .gur{display:block;font-size:17.5px;font-weight:600;line-height:1.4}
.vt-ask .en{display:block;font-size:13px;line-height:1.4;color:var(--board-ink);opacity:.85}
.vt-ask:hover,.vt-ask:focus-visible{background:var(--sign-lit)}
.agecard.vt-age{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;min-height:44px;margin:12px 0 0;padding:10px 0;
  border:0;background:none;max-width:none;color:var(--sign)}
.vt-age .gur{font-size:16.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.vt-age .en{font-size:13px}
.vt-mh{font-family:var(--gur);font-size:16.5px;font-weight:600;line-height:1.4;margin:26px 0 2px;padding-top:16px;border-top:1px solid var(--rule);
  letter-spacing:0;text-transform:none;color:var(--ink)}
.vt-mh .en{font-size:12.5px;margin-left:4px}
.vt-after .d2-more,.vt .d2-more{display:block;margin:0}
.vt-after .d2-more a,.vt .d2-more a{min-height:52px;padding:8px 32px 8px 0;border:0;border-bottom:1px solid var(--rule);border-radius:0;background:none}
.vt .d2-more{margin-top:22px;border-top:1px solid var(--rule)}
.vt-after .d2-more a .gur,.vt .d2-more a .gur{font-size:16px}
.vt-after .d2-more a::after,.vt .d2-more a::after{right:4px}

/* very narrow (a phone at large text): the record stands under the name */
@media (max-width:340px){
  .vt-hr,.vt-r{grid-template-columns:58px minmax(0,1fr)}
  .vt-hr .vt-s{display:none}
  .vt-r .vt-y{grid-row:1 / span 2}
  .vt-r .vt-s{grid-column:2;padding:0 0 10px}
}
@media (min-width:768px){
  .vt-hr,.vt-r{grid-template-columns:92px minmax(0,1fr) minmax(0,30%)}
  .vt-v.g{font-size:26px}
  .vt-v.r{font-size:20px}
}
