/* Sanskrit Names: the names tool's own parts (writer PA, 26 November 2026; contract names/PAGES.md). Everything here sits under
   the prefix nm2-. Colours come from the tokens in sv.css, which theme-light.css swaps for the light theme; the seal badges sit
   on the fire field or on deep teal, which both themes keep dark. The one colour of its own is the closed door's muted red.
   No animation anywhere; the only transition (a hover tint) is off under reduced motion. */

:root{--nm2-closed:#ec8a7c}

/* ---------- headings: heavy sans ---------- */
.nm2-sec{margin:0 0 26px;min-width:0;overflow-wrap:anywhere}
.nm2-sec .nm2-h{position:relative;margin:0 0 12px;padding:0;font:800 clamp(22px,4.6vw,28px)/1.3 var(--display);color:var(--ink);letter-spacing:0}
/* the frame's heading tick (.sv-main h2::before) is cut to a tick shape and sat above these headings as stray orange marks: none here */
.nm2-sec .nm2-h::before{display:none}
.sv-card.nmm>h2::before,.sv-card.nmm h2::before{display:none}
/* the two actions under the quality scores keep normal section spacing from the next heading */
.nm2-more{margin:18px 0 32px}
.nm2-sec .nm2-h3{margin:20px 0 6px;font:800 20px/1.4 var(--display);color:var(--ink)}

/* ---------- the list: any list of name cards is a grid (1 column on a phone, 2 from 700px, 3 from 1100px) ---------- */
.nm2-grid,:where(ul,ol,div):has(>.nm2-card),:where(ul,ol):has(>li>.nm2-card){display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 22px;padding:0;list-style:none}
.nm2-grid>*,:where(ul,ol):has(>li>.nm2-card)>li{min-width:0;margin:0}
@media (min-width:700px){.nm2-grid,:where(ul,ol,div):has(>.nm2-card),:where(ul,ol):has(>li>.nm2-card){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.nm2-grid,:where(ul,ol,div):has(>.nm2-card),:where(ul,ol):has(>li>.nm2-card){grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- a name card: the Devanagari hangs from the gold line ---------- */
.nm2-card{display:flex;flex-direction:column;gap:6px;height:100%;min-width:0;padding:16px 16px 16px;border:1px solid var(--line);border-top:0;
  border-radius:4px 4px 16px 16px;background:var(--panel);box-shadow:inset 0 3px 0 var(--rule);color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.nm2-card:hover{background:var(--panel2);color:var(--ink)}
.nm2-card:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px 4px 16px 16px}
.nm2-card__top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px 12px}
.nm2-card__name{display:flex;flex-direction:column;min-width:0}
.nm2-card .nm2-card__sa{font:800 clamp(28px,7.4vw,36px)/1.4 var(--deva);color:var(--ink)}
.nm2-card .nm2-card__ro{font:700 18px/1.4 var(--ui);color:var(--light)}
.nm2-stem{display:block;margin:2px 0 0;font-size:16px;line-height:1.5;color:var(--soft)}
.nm2-stem [lang=sa]{color:var(--light)}
.nm2-card__sense{font-size:17px;line-height:1.55;color:var(--soft)}
.nm2-marks{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:4px}
.nm2-mk{display:inline-flex;align-items:center;max-width:100%;padding:2px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line2);
  font:600 16px/1.5 var(--ui);color:var(--soft)}
.nm2-mk--made{box-shadow:inset 0 0 0 1.5px var(--rule);color:var(--gold)}
.nm2-mk--today{color:var(--ink)}

/* ---------- the seal: a stamped mark, double frame, Hindi name large, English under it ---------- */
.nm2-seal{--sk:var(--deep-fire);position:relative;isolation:isolate;overflow:hidden;display:inline-grid;grid-template-columns:auto minmax(0,auto);
  grid-template-areas:"mk hi" "mk en";align-items:center;column-gap:10px;max-width:100%;padding:8px 14px 9px 12px;border:2px solid var(--sk);border-radius:6px;
  background:var(--deep);color:var(--deep-ink);text-align:left;vertical-align:middle;flex:none}
.nm2-seal::before{content:"";position:absolute;inset:3px;border:1px solid var(--sk);border-radius:3px;opacity:.75;pointer-events:none}
.nm2-seal .nm2-seal__hi{grid-area:hi;font:800 22px/1.3 var(--deva);color:var(--sk);overflow-wrap:anywhere}
.nm2-seal .nm2-seal__en{grid-area:en;font:700 15px/1.35 var(--ui);color:var(--deep-ink)}
.nm2-seal__mk{grid-area:mk;position:relative;width:20px;height:20px}
.nm2-seal__mk::before,.nm2-seal__mk::after{content:"";position:absolute;box-sizing:border-box}

/* full seal: gold on saffron fire; the mark an eight-point star */
.nm2-seal--full{--sk:var(--fire-rule);background:var(--fire)}
.nm2-seal--full .nm2-seal__en{color:#fff}
.nm2-seal--full .nm2-seal__mk::before,.nm2-seal--full .nm2-seal__mk::after{inset:3px;background:var(--fire-rule)}
.nm2-seal--full .nm2-seal__mk::after{transform:rotate(45deg)}
/* Manu's seal and the auspicious name: saffron line on teal; the mark a diamond with a centre */
.nm2-seal--manu,.nm2-seal--shubh{--sk:var(--deep-fire)}
:is(.nm2-seal--manu,.nm2-seal--shubh) .nm2-seal__mk::before{inset:3px;border:2px solid var(--sk);transform:rotate(45deg)}
:is(.nm2-seal--manu,.nm2-seal--shubh) .nm2-seal__mk::after{inset:8px;background:var(--sk);transform:rotate(45deg)}
/* the closed door: a muted red line; the mark a ring struck through */
.nm2-seal--closed{--sk:var(--nm2-closed)}
.nm2-seal--closed .nm2-seal__mk::before{inset:1px;border:2px solid var(--sk);border-radius:50%}
.nm2-seal--closed .nm2-seal__mk::after{left:2px;right:2px;top:50%;height:2px;margin-top:-1px;background:var(--sk);transform:rotate(-45deg)}
/* not in the lists, not yet read: a quiet line; the mark an open ring */
.nm2-seal--not-listed,.nm2-seal--unread{--sk:var(--deep-soft)}
:is(.nm2-seal--not-listed,.nm2-seal--unread) .nm2-seal__mk::before{inset:3px;border:2px dashed var(--sk);border-radius:50%}

/* sizes */
.nm2-seal--sm{column-gap:8px;padding:5px 10px 6px 9px}
.nm2-seal--sm .nm2-seal__hi{font-size:17px}
.nm2-seal--sm .nm2-seal__en{font-size:14px}
.nm2-seal--sm .nm2-seal__mk{width:14px;height:14px}
.nm2-seal--sm.nm2-seal--full .nm2-seal__mk::before,.nm2-seal--sm.nm2-seal--full .nm2-seal__mk::after{inset:2px}
.nm2-seal--sm:is(.nm2-seal--manu,.nm2-seal--shubh) .nm2-seal__mk::after{inset:5px}
.nm2-seal--lg{column-gap:16px;padding:16px 24px 18px 18px;border-width:3px;border-radius:8px}
.nm2-seal--lg::before{inset:5px;border-width:1.5px}
.nm2-seal--lg .nm2-seal__hi{font-size:clamp(26px,7.5vw,46px)}
.nm2-seal--lg .nm2-seal__en{font-size:18px}
.nm2-seal--lg .nm2-seal__mk{width:34px;height:34px}
.nm2-seal--lg.nm2-seal--full .nm2-seal__mk::before,.nm2-seal--lg.nm2-seal--full .nm2-seal__mk::after{inset:5px}
.nm2-seal--lg:is(.nm2-seal--manu,.nm2-seal--shubh) .nm2-seal__mk::before{inset:5px;border-width:3px}
.nm2-seal--lg:is(.nm2-seal--manu,.nm2-seal--shubh) .nm2-seal__mk::after{inset:13px}
.nm2-seal--lg.nm2-seal--closed .nm2-seal__mk::before{border-width:3px}
.nm2-seal--lg.nm2-seal--closed .nm2-seal__mk::after{height:3px;margin-top:-1.5px}
/* the large badge carries its own name as an outlined ghost word, clipped inside the stamp */
.nm2-seal--lg::after{content:attr(data-ghost);content:attr(data-ghost) / "";position:absolute;z-index:-1;right:-.12em;bottom:-.42em;
  font:800 clamp(64px,16vw,110px)/1 var(--deva);color:transparent;-webkit-text-stroke:1.5px var(--ghost-fire);white-space:nowrap;pointer-events:none;opacity:.28}

/* ---------- the dials ---------- */
.nm2-dials__list{border-top:1px solid var(--line)}
.nm2-dial{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"lab" "bar" "word";gap:6px 18px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
@media (min-width:700px){.nm2-dial{grid-template-columns:minmax(10rem,14rem) minmax(0,1fr) minmax(8rem,13rem);grid-template-areas:"lab bar word"}}
.nm2-dial__lab{grid-area:lab;display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;font:600 17px/1.4 var(--ui);color:var(--soft)}
.nm2-dial .nm2-dial__sa{font:800 21px/1.45 var(--deva);color:var(--ink)}
.nm2-dial__track{grid-area:bar;min-width:0}
.nm2-dial__word{grid-area:word;font:700 17px/1.4 var(--ui);color:var(--light)}
.nm2-dial--none .nm2-dial__word{color:var(--mute);font-weight:600}
.nm2-bar{position:relative;display:block;height:12px;border-radius:6px;background:var(--hair);box-shadow:inset 0 0 0 1px var(--line)}
.nm2-bar__fill{position:absolute;left:0;top:0;bottom:0;width:var(--v,0%);border-radius:inherit;background:linear-gradient(90deg,var(--saff),var(--rule))}
.nm2-bar--none{background:repeating-linear-gradient(90deg,var(--line2) 0 6px,transparent 6px 12px)}
/* माधुर्य–ओज: two ends, a marker placed by sweetness (left end all sweetness, right end all force) */
.nm2-bar--two{margin:6px 0 0;background:linear-gradient(90deg,var(--rule),var(--saff))}
.nm2-bar__pin{position:absolute;top:-6px;bottom:-6px;left:calc((100% - 8px) * var(--p,50) / 100);width:8px;border-radius:4px;background:var(--ink);box-shadow:0 0 0 2px var(--panel)}
.nm2-ends{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font:600 16px/1.3 var(--ui);color:var(--soft)}

/* ---------- the rule sheet ---------- */
.nm2-tests{list-style:none;margin:0 0 8px;padding:0}
.nm2-test{display:grid;grid-template-columns:28px minmax(0,1fr);gap:0 14px;padding:12px 0;border-bottom:1px solid var(--line)}
.nm2-test__b{min-width:0}
.nm2-test .nm2-test__s{margin:0;font-size:18px;line-height:1.6;color:var(--ink);max-width:70ch}
.nm2-test .nm2-test__src{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:4px 0 0;font-size:17px;line-height:1.5;color:var(--soft)}
.nm2-tag{display:inline-block;padding:1px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line2);font:700 16px/1.5 var(--ui);color:var(--ink)}
.nm2-test--gate .nm2-tag{box-shadow:inset 0 0 0 1.5px var(--rule);color:var(--gold)}
.nm2-test__from{font-style:italic}
/* the tick and the cross, drawn */
.nm2-tick{position:relative;display:block;width:28px;height:28px;margin-top:2px;border-radius:50%;box-shadow:inset 0 0 0 2px currentColor}
.nm2-tick--yes{color:var(--green)}
.nm2-tick--yes::before{content:"";position:absolute;left:10px;top:6px;width:7px;height:12px;border:solid currentColor;border-width:0 3px 3px 0;transform:rotate(45deg)}
.nm2-tick--no{color:var(--ember)}
.nm2-tick--no::before,.nm2-tick--no::after{content:"";position:absolute;left:7px;right:7px;top:12.5px;height:3px;border-radius:2px;background:currentColor;transform:rotate(45deg)}
.nm2-tick--no::after{transform:rotate(-45deg)}
.nm2-test--gate.nm2-test--no{box-shadow:inset 3px 0 0 var(--ember);padding-left:10px}

/* ---------- borne by ---------- */
.nm2-blist{list-style:none;margin:0;padding:0}
.nm2-bearer{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:17px;line-height:1.55}
.nm2-bearer .nm2-bearer__n{font:800 21px/1.45 var(--deva);color:var(--ink)}
.nm2-bearer__w{color:var(--ink)}
.nm2-bearer__y{color:var(--soft)}
.nm2-bearer--villain .nm2-bearer__w{color:var(--ember)}

/* ---------- the making: parts and steps as a small chain of joined links ---------- */
.nm2-making__mark{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 14px}
.nm2-making__by{font-size:17px;color:var(--soft);font-style:italic}
.nm2-chain{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;align-items:flex-start}
.nm2-chain>li{position:relative;display:flex;flex-direction:column;max-width:100%;min-width:0;padding:8px 14px;border-radius:12px;background:var(--panel2);
  box-shadow:inset 0 0 0 1px var(--line2);font-size:17px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.nm2-chain>li+li{margin-top:18px}
.nm2-chain>li+li::before{content:"";position:absolute;left:24px;top:-19px;width:3px;height:18px;border-radius:2px;background:var(--rule)}
.nm2-chain .nm2-chain__rule{color:var(--soft)}
.nm2-chain .nm2-chain__end{background:var(--fire);box-shadow:none;color:#fff}
.nm2-chain .nm2-part__sa{font:800 26px/1.4 var(--deva)}
.nm2-chain .nm2-part__ro{font:700 17px/1.4 var(--ui);color:var(--light)}
.nm2-chain .nm2-chain__end .nm2-part__ro{color:#fff}
.nm2-part__g{color:var(--soft)}
@media (min-width:700px){
  .nm2-chain{flex-direction:row;flex-wrap:wrap;align-items:stretch;row-gap:14px}
  .nm2-chain>li+li{margin:0 0 0 24px}
  .nm2-chain>li+li::before{left:-23px;top:50%;width:22px;height:3px;margin-top:-1.5px}
  .nm2-chain>li{justify-content:center}
}

/* ---------- what name lists say ---------- */
.nm2-truth__two{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 12px}
@media (min-width:700px){.nm2-truth__two{grid-template-columns:repeat(2,minmax(0,1fr))}}
.nm2-say{min-width:0;padding:14px 16px;border-radius:14px;background:var(--panel2);box-shadow:inset 0 0 0 1px var(--line)}
.nm2-say.sv-ref{margin:0;border:0}
.nm2-say--held{box-shadow:inset 0 3px 0 var(--rule),inset 0 0 0 1px var(--line)}
.nm2-say .nm2-say__l{margin:0 0 4px;font:700 16px/1.4 var(--ui);color:var(--soft)}
.nm2-say .nm2-say__t{margin:0;font-size:18px;line-height:1.6;color:var(--ink)}
.nm2-truth .nm2-truth__say{margin:0;font-size:18px;line-height:1.6;color:var(--ink);max-width:70ch}

/* ---------- sense as a name ---------- */
.nm2-sense{display:flex;flex-direction:column;gap:2px;margin:0 0 16px;max-width:70ch}
.nm2-sense .nm2-sense__l{font:700 16px/1.4 var(--ui);color:var(--soft)}
.nm2-sense .nm2-sense__t{font-size:19px;line-height:1.65;color:var(--ink)}

/* ==========================================================================================================================
   Round three (26 November 2026): Vedic and divine first, qualities scored, never an empty answer
   ========================================================================================================================== */

/* ---------- the Veda and the divine marks: a small gold dot for the Veda, a flame-saffron one for a god's or goddess's name ---------- */
.nm2-mk__dot{flex:none;width:10px;height:10px;margin-right:7px;border-radius:50%}
.nm2-mk--veda{box-shadow:inset 0 0 0 1.5px var(--rule);color:var(--gold)}
.nm2-mk--veda .nm2-mk__dot{background:var(--rule);box-shadow:0 0 0 2px color-mix(in srgb,var(--rule) 30%,transparent)}
.nm2-mk--divine{box-shadow:inset 0 0 0 1.5px var(--saff);color:var(--light)}
.nm2-mk--divine .nm2-mk__dot{background:var(--saff);border-radius:50% 50% 50% 0;transform:rotate(-45deg)}

/* ---------- the match badge: bold saffron on deep teal, readable at a glance ---------- */
.nm2-match{display:inline-flex;align-items:baseline;gap:7px;max-width:100%;padding:4px 12px 5px;border-radius:8px;background:var(--deep);
  box-shadow:inset 0 0 0 1.5px var(--deep-fire);color:var(--deep-ink);white-space:nowrap}
.nm2-match .nm2-match__n{font:800 22px/1.25 var(--display);color:var(--deep-fire)}
.nm2-match__w{font:700 16px/1.3 var(--ui);color:var(--deep-ink)}

/* ---------- a card with a match: the head row carries the badge and the word "Closest" ---------- */
.nm2-card__head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.nm2-card__near{display:inline-block;padding:2px 10px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line2);font:700 16px/1.5 var(--ui);color:var(--soft)}
.nm2-card--near{border-style:dashed}

/* ---------- the asked qualities' scores in small, inside a card ---------- */
.nm2-tss{display:flex;flex-direction:column;gap:5px;padding:4px 0 2px}
.nm2-ts{display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr) 2.6rem;align-items:center;gap:10px;font:600 16px/1.35 var(--ui);color:var(--soft)}
.nm2-ts__n{min-width:0;overflow-wrap:anywhere}
.nm2-ts__bar{position:relative;display:block;height:8px;border-radius:4px;background:var(--hair);box-shadow:inset 0 0 0 1px var(--line)}
.nm2-ts__fill{position:absolute;left:0;top:0;bottom:0;width:var(--v,0%);border-radius:inherit;background:linear-gradient(90deg,var(--saff),var(--rule))}
.nm2-ts__v{text-align:right;font-weight:800;color:var(--ink)}

/* ---------- the panel "Quality scores": name, bar, number, and the meaning under it ---------- */
.nm2-trs{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.nm2-tr{padding:10px 0;border-bottom:1px solid var(--line)}
.nm2-tr__row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lab v" "bar bar";align-items:center;gap:6px 14px}
@media (min-width:700px){.nm2-tr__row{grid-template-columns:minmax(10rem,15rem) minmax(0,1fr) 5.5rem;grid-template-areas:"lab bar v"}}
.nm2-tr__lab{grid-area:lab;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}
.nm2-tr .nm2-tr__n{font:800 19px/1.4 var(--display);color:var(--ink)}
.nm2-tr a.nm2-tr__n{text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:4px}
.nm2-tr a.nm2-tr__n:hover{color:var(--light)}
.nm2-tr a.nm2-tr__n:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-tr__a{display:inline-block;padding:0 9px;border-radius:999px;background:var(--saff);color:var(--on-saff);font:700 15px/1.6 var(--ui)}
.nm2-tr--asked{box-shadow:inset 3px 0 0 var(--saff);padding-left:12px}
.nm2-tr__bar{grid-area:bar;min-width:0}
.nm2-tr__v{grid-area:v;text-align:right;font:600 16px/1.3 var(--ui);color:var(--soft);white-space:nowrap}
.nm2-tr__v b{font:800 21px/1.2 var(--display);color:var(--ink)}
.nm2-tr__of{margin-left:2px}
.nm2-tr__d{margin:6px 0 0}
.nm2-tr__d>summary{display:inline-block;cursor:pointer;font:600 16px/1.5 var(--ui);color:var(--light)}
.nm2-tr__d>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-tr .nm2-tr__m{margin:6px 0 2px;max-width:70ch;font-size:17px;line-height:1.6;color:var(--ink)}

/* ---------- the deity line under the name ---------- */
.nm2-divine{display:flex;align-items:center;gap:10px;margin:0 0 14px;font:700 19px/1.45 var(--ui);color:var(--ink)}
.nm2-divine__mk{flex:none;width:14px;height:14px;border-radius:50% 50% 50% 0;background:var(--saff);transform:rotate(-45deg)}

/* ---------- the panel "This word in the Veda" ---------- */
.nm2-mns{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
@media (min-width:1000px){.nm2-mns{grid-template-columns:repeat(auto-fit,minmax(18rem,1fr))}}
.nm2-mn{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px 16px;border-radius:14px;background:var(--panel2);
  box-shadow:inset 0 3px 0 var(--rule),inset 0 0 0 1px var(--line);overflow-wrap:anywhere}
.nm2-mn .nm2-mn__ref{margin:0;font:700 16px/1.4 var(--ui);color:var(--gold)}
.nm2-mn .nm2-mn__line{margin:0;font:600 21px/1.7 var(--sa);color:var(--ink)}
.nm2-mn__go{align-self:flex-start;margin-top:auto;font:700 17px/1.5 var(--ui);color:var(--light);text-decoration:underline;text-underline-offset:4px}
.nm2-mn__go:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* ---------- the quality chips: clearly on or off, thumb-sized, wrapping in rows ---------- */
.nm2-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
.nm2-chip{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:46px;max-width:100%;padding:6px 16px 6px 12px;border-radius:999px;
  background:var(--panel);box-shadow:inset 0 0 0 1.5px var(--line2);font:700 17px/1.3 var(--ui);color:var(--ink);cursor:pointer;user-select:none}
.nm2-chip input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--saff);cursor:pointer}
.nm2-chip__t{min-width:0;overflow-wrap:anywhere}
.nm2-chip:hover{background:var(--panel2)}
.nm2-chip:has(input:checked){background:var(--saff);box-shadow:inset 0 0 0 2px var(--rule);color:var(--on-saff)}
.nm2-chip:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}
.nm2-chip input:focus-visible{outline:none}
@supports not selector(:has(*)){.nm2-chip input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}}

/* ---------- motion and plain mode ---------- */
@media (prefers-reduced-motion:no-preference){.nm2-card{transition:background-color .15s ease}.nm2-chip{transition:background-color .15s ease}}
html.sv-plain .nm2-seal--lg::after{display:none}
@media print{.nm2-seal--lg::after{display:none}.nm2-card{break-inside:avoid}}
/* ==========================================================================================================================
   Round 2, writer R2c (28 November 2026): four plain choices at the door, answers under the box, a name's page that explains
   itself. Colours and fonts come from the frame's tokens and shared classes (sv-btn, sv-btn--primary) only.
   ========================================================================================================================== */

/* ---------- the door: the box, then four large worded buttons, two by two on a phone ---------- */
.nmb-go{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;min-width:0}
.nmb-go .sv-btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:52px;margin:0;padding:8px 10px;
  white-space:normal;text-align:center;font-size:17px;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
@media (min-width:700px){.nmb-go{grid-template-columns:repeat(4,minmax(0,1fr))}}
.nmb-ctl{display:flex;flex-direction:column;gap:10px;min-width:0;max-width:100%}
/* while the box holds text the four buttons and the choices fold away: the names stand straight under the box */
#nmb.is-typed .nmb-go,#nmb.is-typed .nmb-ctl{display:none}
.nmb-qd{max-width:100%}
.nmb-qd>.nmb-qs{display:block;min-width:0;max-width:100%;padding-top:4px}
.nmb-qd .nm2-chips{flex-wrap:wrap;overflow:visible;margin:0}

/* ---------- the head over the names: the exact name, one plain count line, "the closest" ---------- */
.nmb-head{min-width:0;margin:0 0 4px}
.nmb-head--n~.nmb-n{display:none}
.nmb-head .nmb-n--plain{margin:8px 0 6px;font:600 18px/1.5 var(--ui);color:var(--ink)}
.nmb-head .nmb-n--plain b{color:var(--gold)}
.nmb-head .nmb-close{margin:8px 0 6px}

/* ---------- a name's first screen ---------- */
.nmh{display:flex;flex-direction:column;gap:12px;margin:0 0 22px;min-width:0}
.nmh-acts{display:flex;flex-wrap:wrap;gap:8px;margin:0;min-width:0}
.nmh-acts .sv-btn{min-height:44px;margin:0}
.nmh-acts .nmh-pic{flex-basis:100%}
.nmh-mean{margin:0;max-width:70ch;font-size:19px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere}
.nmh-k{display:inline-block;margin-right:8px;font:700 16px/1.4 var(--ui);color:var(--soft)}
.nmh-seal{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.nmh-sl{margin:0;max-width:70ch;font-size:17px;line-height:1.5;color:var(--ink)}
.nmh-do{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:2px 0 0;min-width:0}
.nmh-do .sv-btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;margin:0;padding:6px 10px;
  white-space:normal;text-align:center;line-height:1.3;text-decoration:none;overflow-wrap:anywhere}
@media (min-width:900px){.nmh-do{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* one plain line under a panel's heading, saying what its numbers or terms mean */
.nm2-note{margin:-4px 0 12px;max-width:70ch;font-size:17px;line-height:1.55;color:var(--soft)}
/* the Devanagari / Roman switch sits low on the page */
.nm2s-slot{margin:22px 0 0;min-width:0}
.nm2s-slot:empty{display:none}

/* Assembler, round three: on a phone the 24 quality chips must not fill two screens. The pill itself shows on or off, so the
   small square is hidden where the browser can colour the pill (:has); three chips fit a 360px row. */
@supports selector(:has(*)){@media (max-width:640px){.nm2-chips{gap:8px}.nm2-chip{min-height:42px;padding:5px 13px;gap:0;font-size:16px}
.nm2-chip input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}}}
/* Scorecard at the top of a name page (owner, 28 Nov 2026): compact tiles, visible at a glance */
.nm2-dials__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:0}
@media (min-width:700px){.nm2-dials__list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
.nm2-dials__list .nm2-dial{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"lab" "bar" "word"!important;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2,rgba(255,255,255,.04))}
.nm2-dials__list .nm2-dial__lab{font:600 15px/1.35 var(--ui)}
.nm2-dials__list .nm2-dial .nm2-dial__sa{display:block;font-size:17px;line-height:1.3}
.nm2-dials__list .nm2-dial__word{font:600 14px/1.35 var(--ui)}
.nm2-dials.nm2-sec{margin-top:14px}
.nm2-score{display:inline-flex;align-items:baseline;gap:1px;flex:none;padding:2px 9px;border-radius:999px;font:800 17px/1.4 var(--ui);color:#fff;background:#2f7d4f}
.nm2-score small{font:600 13px/1 var(--ui);opacity:.9}
.nm2-score--mid{background:#a8670c}.nm2-score--lo{background:#9b2c2c}
.nm2-dials>h2 .nm2-score,.nm2-dials .nm2-score{margin-left:10px;vertical-align:middle}
.nm2-schead{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin-bottom:10px}
.nm2-schead>h2{margin:0!important}
.nm2-dials .nm2-schead .nm2-score{margin-left:0;font-size:20px}
.rw-gist .nm2-score{align-self:center;margin-right:6px}

/* ---------- F2 (29 Nov 2026): Divine Names and Sanskrit Names as one; the full scorecard wherever a name opens ---------- */
/* the gold badge "दिव्य नाम · Divine name": both languages always, like the seal */
.nm2-dv{display:inline-flex;align-items:center;flex-wrap:wrap;gap:2px 6px;flex:none;max-width:100%;padding:3px 10px 3px 8px;border-radius:999px;
  background:var(--sun);color:var(--on-sun);font:800 14px/1.35 var(--ui);vertical-align:middle;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.nm2-dv .nm2-dv__hi{font:800 15px/1.35 var(--deva)}
.nm2-dv .nm2-dv__sep{opacity:.7}
.nm2-dv__mk{width:10px;height:10px;flex:none;background:var(--on-sun);transform:rotate(45deg);border-radius:2px}
.nm2-dvin{display:inline;font:600 15px/1.5 var(--ui);color:var(--soft)}
.nm2-dvin__l{font-weight:800;color:var(--gold)}
a.nm2-dvin__a{color:var(--gold);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;overflow-wrap:anywhere}
a.nm2-dvin__a:hover{color:var(--light)}
.nm2-dvl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:8px 0}
.nm2-card__dv{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.nm2-card--dv{box-shadow:inset 0 3px 0 var(--sun),inset 0 0 0 1px rgba(242,193,78,.45)}
.rw-gist.nm2-rw-dv .nm2-dv{align-self:center;margin-right:6px;padding:2px 8px;font-size:13px}
.rw-gist.nm2-rw-dv .nm2-dv .nm2-dv__hi{font-size:14px}
@media (max-width:520px){.rw-gist.nm2-rw-dv .nm2-dv .nm2-dv__sep,.rw-gist.nm2-rw-dv .nm2-dv .nm2-dv__en{display:none}}

/* the first choice of a names search: All names · Divine names only, two large toggle buttons */
.nm2-dt{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0;border:0;min-width:0;max-width:560px}
.nm2-dt__b{position:relative;display:flex;align-items:center;justify-content:center;min-height:52px;padding:8px 12px;border:2px solid var(--line2);border-radius:12px;
  font:800 17px/1.3 var(--ui);color:var(--ink);text-align:center;text-decoration:none;cursor:pointer;background:var(--panel)}
.nm2-dt__b input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.nm2-dt__b:has(input:checked),.nm2-dt__b.is-on{background:var(--sun);border-color:var(--sun);color:var(--on-sun)}
.nm2-dt__b:has(input:focus-visible),a.nm2-dt__b:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
a.nm2-dt__b:hover{color:var(--ink);border-color:var(--sun)}
a.nm2-dt__b.is-on:hover{color:var(--on-sun)}
.nm2-dvon{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}

/* divine names held only in the lists, shown above the names a search finds */
.nm2-dvx{margin:10px 0 14px;padding:12px 14px;border:1px solid rgba(242,193,78,.55);border-left:4px solid var(--sun);border-radius:10px;background:var(--lamp)}
.nm2-dvx__h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;font:700 17px/1.4 var(--ui);color:var(--ink)}
.nm2-dvx__list{list-style:none;margin:0;padding:0}
.nm2-dvx__i{margin:0;padding:6px 0;border-top:1px solid var(--line)}
.nm2-dvx__i:first-child{border-top:0}
.nm2-dvx__a{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;min-height:44px;color:var(--ink);text-decoration:none}
.nm2-dvx__a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-dvx__sa{font:800 24px/1.35 var(--deva);color:var(--ink);overflow-wrap:anywhere}
.nm2-dvx__ro{font:700 17px/1.4 var(--ui);font-style:normal;color:var(--gold)}
.nm2-dvx__from{font:700 15px/1.4 var(--ui);color:var(--gold);text-decoration:underline;text-underline-offset:.2em}
.nm2-dvx__m{flex:1 0 100%;font-size:17px;line-height:1.5;color:var(--soft)}
.nm2-dvx__in{display:block;margin-top:2px}

/* the name page: where this name is a name of God */
.nm2-dvw{padding:14px 16px;border:1px solid rgba(242,193,78,.5);border-top:4px solid var(--sun);border-radius:12px;background:var(--panel)}
.nm2-dvw__list{list-style:none;margin:0;padding:0}
.nm2-dvw__i{margin:0;padding:10px 0;border-top:1px solid var(--line)}
.nm2-dvw__i:first-child{border-top:0;padding-top:2px}
.nm2-dvw__h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 4px}
a.nm2-dvw__a{font:800 18px/1.4 var(--ui);color:var(--gold);text-decoration:underline;text-underline-offset:.2em}
.nm2-dvw__nm{font:700 22px/1.35 var(--deva);color:var(--ink)}
.nm2-dvw__ro{font:600 16px/1.4 var(--ui);color:var(--light)}
.nm2-dvw__dy{margin:6px 0;padding:8px 12px;border-left:3px solid var(--gold);background:var(--lamp)}
.nm2-dvw__k{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 4px;font-size:15px;color:var(--gold)}
.nm2-dvw__t{margin:0;font:500 18px/1.7 var(--deva);color:var(--ink);max-width:70ch}
.nm2-dvw__sa{margin:4px 0 0;font:500 17px/1.6 var(--deva);color:var(--soft);max-width:70ch}
.nm2-dvw__g{margin:4px 0 0;font-size:17px;line-height:1.55;color:var(--soft);max-width:70ch}
.nm2-dvw__ref{display:inline-block;margin-right:6px;padding:0 6px;border:1px solid var(--line2);border-radius:4px;font-size:13px;line-height:1.6;color:var(--mute)}
.nm2-dvw .nm2-note{margin:8px 0 0}

/* the full scorecard in small: the overall, then each part as a labelled bar with its number */
.nm2-mini{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.nm2-mini__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin:0 0 8px}
.nm2-mini__h{font:800 17px/1.3 var(--display);color:var(--ink)}
.nm2-mini__o{display:inline-flex;align-items:center;gap:6px;font:700 15px/1.3 var(--ui);color:var(--soft)}
.nm2-mini__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:6px 18px}
@media (min-width:700px){.nm2-mini__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.nm2-mini__i{display:grid;grid-template-columns:minmax(0,1fr) minmax(64px,34%) 2.6em;align-items:center;gap:4px 10px;margin:0;min-width:0}
.nm2-mini__l{min-width:0;font:700 15px/1.3 var(--ui);color:var(--ink);overflow-wrap:anywhere}
.nm2-mini__l [lang=sa]{font:700 15px/1.3 var(--deva);color:var(--gold);margin-right:2px}
.nm2-mini__l small{display:block;font:600 13px/1.35 var(--ui);color:var(--soft)}
.nm2-mini__bar{min-width:0}
.nm2-mini__bar .nm2-bar{height:8px}
.nm2-mini__i--two .nm2-bar--two{margin:0}
.nm2-mini__i--two .nm2-bar__pin{top:-4px;bottom:-4px;width:6px}
.nm2-mini__i--two .nm2-ends{margin-top:4px;font-size:13px}
.nm2-mini__n{font:800 16px/1.2 var(--ui);color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.nm2-mini__n--none{color:var(--mute);font-weight:600}
.nm2-mini__i--none .nm2-mini__l{color:var(--soft)}
.nm2-mini__note{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--soft);max-width:72ch}
/* a card's fold under it: the full scorecard and the divine places */
.nm2-fold{margin:6px 0 0;min-width:0}
.nm2-fold>summary{cursor:pointer;display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font:700 16px/1.3 var(--ui);color:var(--gold)}
.nm2-fold>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* F5: the ⓘ beside a dial, the melody scorecard, the Character note */
.nm2-info{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;margin-left:2px;border-radius:50%;font:700 18px/1 var(--ui);color:var(--gold);text-decoration:none}
.nm2-info:hover{color:var(--ink)}
.nm2-info:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-dials__note{margin:10px 0 0;font-size:15px}
.nm2-mel{margin:12px 0 0;border:1px solid var(--line);border-left:4px solid var(--saff);border-radius:12px;background:var(--panel2)}
.nm2-mel>summary{cursor:pointer;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;min-height:44px;padding:10px 14px;list-style-position:inside}
.nm2-mel>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-mel__h{font:800 17px/1.4 var(--display);color:var(--ink)}
.nm2-mel__h [lang=sa]{font:800 18px/1.4 var(--deva);color:var(--gold);margin-right:4px}
.nm2-mel__s{font:600 15px/1.45 var(--ui);color:var(--soft)}
.nm2-mel[open]>summary{border-bottom:1px solid var(--line)}
.nm2-mel .nm2-mel__list{padding:4px 14px 2px}
.nm2-mel__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px}
@media (min-width:900px){.nm2-mel__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.nm2-mel__i{display:grid;grid-template-columns:minmax(0,1fr) minmax(70px,34%) 2.4em;grid-template-areas:"l b n" "y y y";align-items:center;gap:2px 10px;margin:0;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.nm2-mel__l{grid-area:l;min-width:0;font:700 16px/1.35 var(--ui);color:var(--ink)}
.nm2-mel__w{display:block;font:600 13px/1.35 var(--ui);color:var(--mute)}
.nm2-mel__bar{grid-area:b;min-width:0}
.nm2-mel__bar .nm2-bar{height:9px}
.nm2-mel__n{grid-area:n;font:800 17px/1.2 var(--ui);color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.nm2-mel__why{grid-area:y;font:500 15px/1.45 var(--ui);color:var(--soft);overflow-wrap:anywhere}
.nm2-mel__note{margin:0;padding:10px 14px 12px;font-size:15px;line-height:1.55;color:var(--soft);max-width:75ch}
.nm2-mel__note a,.nm2-mini__note a{color:var(--gold);text-decoration:underline;text-underline-offset:.2em}

/* F5: /names/melody-method */
.nm2-mm{max-width:100%}
.nm2-mm>p,.nm2-mm__list{max-width:72ch;font-size:17px;line-height:1.65}
.nm2-mm__lead{font-size:clamp(18px,2.2vw,21px)!important;line-height:1.6;color:var(--ink)}
.nm2-mm .nm2-h{margin-top:34px!important;scroll-margin-top:92px}
.nm2-mm__list{margin:0 0 16px;padding-left:1.2em}
.nm2-mm__list li{margin:0 0 10px}
.nm2-mm__demo{margin:18px 0 8px;padding:16px 18px}
.nm2-mm__demo-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 6px;font:600 18px/1.4 var(--ui);color:var(--soft)}
.nm2-mm__demo-h [lang=sa]{font:800 34px/1.3 var(--deva);color:var(--ink)}
.nm2-mm__big{font:800 clamp(34px,6vw,48px)/1 var(--display);color:var(--gold)}
.nm2-mm__w{font-weight:800;white-space:nowrap}
.nm2-mm__t td,.nm2-mm__t th{vertical-align:top}
.nm2-mm__ex td,.nm2-mm__ex th{text-align:right;font-variant-numeric:tabular-nums}
.nm2-mm__ex th[scope=row],.nm2-mm__ex td[lang]{text-align:left}
.nm2-mm__more{margin:16px 0 8px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
.nm2-mm__more>summary{cursor:pointer;min-height:44px;padding:10px 0;font:700 17px/1.4 var(--ui);color:var(--gold)}
.nm2-mm__more>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.nm2-mm__more .sv-table{margin:0 0 12px}
.nm2-verse{grid-column:1/-1;margin-top:6px;font-size:14px}
.nm2-verse summary{cursor:pointer;color:var(--sv-accent,#c9561a);font-weight:600}
.nm2-verse__dev{font-size:17px;line-height:1.6;margin:.4em 0}
.nm2-verse__ref{font-size:13px;opacity:.8;margin:0 0 .3em}
