.variant-page main {
  display: block;
  height: auto;
  min-height: 300px;
  max-width: 1100px;
  margin: 28px auto;
  padding: 30px;
  overflow: visible;
}
.variant-page h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  letter-spacing: -1px;
}
.variant-page h2 {
  font: 26px var(--font);
  margin: 0 0 16px;
}
.variant-page h3 {
  font-size: 17px;
}
.variant-page p,
.variant-page li {
  font-size: 16px;
  line-height: 1.7;
}
.variant-page .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--c-526762);
  margin: 16px 0;
}
.variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.variant-actions a,
.variant-actions button {
  display: inline-flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  min-height: 46px;
  font-size: 16px;
}
.variant-page section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  overflow-wrap: anywhere;
}
.variant-page .evidence-card {
  font-size: 16px;
}
.variant-page .record-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.variant-page .record-links {
  padding: 0;
  list-style: none;
}
.variant-page .record-links > div,
.variant-page .record-links > li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
.variant-page .record-links > div > a:first-child,
.variant-page .record-links > li > a:first-child {
  display: block;
}
.variant-page .record-links small {
  display: block;
}
.variant-page .name-list {
  max-height: 400px;
}
.variant-page .name-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.variant-page .muted {
  color: var(--c-61726d);
}
.variant-page .v-glyphs {
  font-size: 36px;
}
.variant-page .note,
.variant-page .small-disclaimer {
  font-size: 15px;
}
.variant-page details > summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 17px;
}
.variant-page a {
  overflow-wrap: anywhere;
}
.variant-page header .tools > a {
  font-size: 15px;
}
.node-detail-link {
  display: inline-block;
  padding: 8px 0;
  min-height: 36px;
}
.tree-node .rowname a,
.v-name a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-a6b9ac);
  text-underline-offset: 3px;
}
.variant-page footer.credit {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px 40px;
  border-top: 1px solid var(--line);
  color: var(--c-526762);
}
.variant-page footer.credit p {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .variant-page main {
    margin: 18px 12px;
    padding: 20px 16px;
  }
  .variant-page footer.credit {
    margin: 0 12px;
    padding: 18px 16px 32px;
  }
  .variant-page footer.credit p {
    font-size: 15px;
  }
  .variant-page header {
    gap: 14px;
  }
  .variant-page .record-links {
    grid-template-columns: 1fr;
  }
  .variant-page .meta {
    font-size: 14px;
  }
  .variant-page h1 {
    letter-spacing: 0;
  }
  .variant-page p,
  .variant-page li {
    font-size: 17px;
  }
}
.lmap-figure {
  margin: 20px 0 8px;
}
.lmap {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  background: var(--c-f9faf7);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lmap-sphere {
  fill: var(--c-e6eeec);
}
.lmap-land {
  fill: var(--c-cdd6cf);
}
/* Every point of every map (record pages and the top page's map view, dist/explore.js):
   a white outline that keeps its width at every zoom, and a darker one under the pointer. */
.lmap circle,
.lmap .lmap-ctx rect {
  stroke: var(--c-ffffff);
  stroke-width: 0.6px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
@media (hover: hover) {
  .lmap circle:hover,
  .lmap .lmap-ctx rect:hover {
    stroke: var(--ink);
  }
}
.lmap-ctx rect {
  fill: var(--c-8fa29c);
  stroke-width: 1.5px;
}
/* The point whose box is open (dist/map-zoom.js, PICK_SHARE also draws it larger): a thick ring
   in the text colour, which stands out from every point colour and from land and sea in both
   themes. */
.lmap circle.lmap-picked,
.lmap .lmap-ctx rect.lmap-picked {
  stroke: var(--ink);
  stroke-width: 2.5px;
  fill-opacity: 1;
}
/* Every point of a record's map is drawn alike (tools/build_paths.py, map_html): a size or
   colour for the record's own point would set families and languages apart, since Glottolog's
   point for a family is computed from its members (.claude/rules/interface-text.md). The
   .lmap-self group stays in tools/languoid_map.py; it takes the same fill, and
   tools/build_site.sh fails if either sets a fill of its own. */
.lmap-main circle,
.lmap-self circle {
  fill: var(--orange);
}
.lmap-main circle {
  fill-opacity: 0.85;
}
.lmap-self circle {
  stroke-width: 1.5px;
}
/* The locator is hidden while the view is wider than half the world (languoid_map.py,
   dist/map-zoom.js). */
.lmap-inset-off {
  display: none;
}
.lmap-inset .lmap-sphere {
  fill: var(--c-f2f5f3);
  stroke: var(--c-9fb0aa);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.lmap-inset rect {
  fill: var(--orange);
  fill-opacity: 0.25;
  stroke: var(--orange);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.lmap-wrap {
  position: relative;
}
.lmap {
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.lmap.lmap-drag {
  cursor: grabbing;
}
.lmap:focus {
  outline: none;
}
.lmap:focus-visible {
  outline: 3px solid var(--c-ce8654);
  outline-offset: 2px;
}
.lmap-border,
.lmap-disputed {
  stroke: var(--c-9fb0aa);
  stroke-width: 0.6px;
}
.lmap-disputed {
  stroke-dasharray: 3 2;
}
.lmap-inset .lmap-border,
.lmap-inset .lmap-disputed {
  display: none;
}
.lmap-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.lmap-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--c-ffffff);
  color: var(--ink);
}
/* Every button in the bar shows an SVG icon (icon() in dist/map-zoom.js), not text, so it
   looks and sits the same in every font and browser (the owner's request, 2026-11-23). */
.lmap-tools button:hover {
  background: var(--c-e3e9df);
}
/* Two buttons as one box split by a line, [ - | + ] and [ < | > ] (pair() in dist/map-zoom.js):
   the halves touch, the first keeps its end border as the line, and only the outer corners are
   round. Logical sides, so the box mirrors in right-to-left languages like the rest of the bar. */
.lmap-tools .lmap-pair {
  display: flex;
}
.lmap-tools .lmap-pair button:first-child {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.lmap-tools .lmap-pair button:last-child {
  border-inline-start: 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
.lmap-tools .lmap-pair button:focus-visible {
  position: relative;
}
/* The previous, next and reset arrows point the other way on right-to-left pages, as the < and >
   characters they replace did. */
[dir='rtl'] .lmap-tools .lmap-step svg,
[dir='rtl'] .lmap-tools .lmap-reset svg {
  transform: scaleX(-1);
}
.lmap-tools .lmap-reset {
  display: none;
}
.lmap-moved + .lmap-tools .lmap-reset {
  display: inline-flex;
}
/* Record pages after the merge with the atlas (tools/build_paths.py): classification cards, conflicts,
   debates, the branch tree and the Hugging Face models. */
.variant-page .classification .evidence-card p,
.variant-page .conflicts .evidence-card p,
.variant-page .debate .evidence-card p {
  margin: 6px 0;
}
.variant-page .classification .evidence-card p a,
.variant-page .conflicts .conflict-witness a {
  display: inline;
  margin: 0;
  padding: 0;
  min-height: 0;
}
.variant-page .classification h3 {
  margin-top: 24px;
}
.variant-page .evidence-card {
  padding: 14px 16px;
}
.variant-page .show-tree {
  font-size: 16px;
  padding: 12px 16px;
  min-height: 46px;
}
.variant-page .hf-models {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin: 0;
  background: none;
  border-radius: 0;
  border-inline-start: 0;
  border-inline-end: 0;
  border-bottom: 0;
}
.variant-page > .domain-nav,
body > .domain-nav {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0;
}
@media (max-width: 1164px) {
  .variant-page > .domain-nav,
  body > .domain-nav {
    margin: 16px 32px 0;
  }
}
@media (max-width: 700px) {
  .variant-page > .domain-nav,
  body > .domain-nav {
    margin: 12px 12px 0;
  }
}
.variant-page .toolbar details > summary {
  font-size: 12px;
  padding: 6px 7px;
}
@media (max-width: 700px) {
  .variant-page .toolbar details > summary {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 8px;
  }
}
/* Map view (dist/map-zoom.js): the map, or the box marked lmap-host around it, fills the window. */
.lmap-tools .lmap-full-btn {
  padding: 0;
}
.lmap-full-open,
.lmap-full-open body {
  overflow: hidden;
}
.lmap-full {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-f9faf7);
}
.lmap-full .lmap-wrap {
  height: 100%;
}
.lmap-full .lmap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
/* The map view keeps its buttons, its key and its lines the same size on the screen when the
   browser zooms the page, in and out, at every zoom level and after zooming back (the owner's
   requests, 2026-11-22 and 2026-11-23). Zooming in makes the window narrower in CSS pixels and
   zooming out makes it wider, so with a mouse they follow a scale that dist/map-zoom.js
   (screenScale()) works out as the window's longer side divided by --lmap-screen-base: 1 when
   that side is 1280 CSS pixels (a 1920 px screen at 150%), more when it is wider, less when it
   is narrower. Above 1 (--lmap-screen-grow) the boxes' lengths are multiplied and what is
   inside them (icons, the key's entries) is enlarged with zoom; borders are never zoomed,
   because WebKit rounds a border to whole device pixels before zooming it. Below 1
   (--lmap-screen-shrink) the boxes are shrunk with transform, because lengths under a pixel
   would meet the browser's smallest font size and whole-pixel borders and grow again. The
   lines are multiplied by both. The map's own zoom never touches them (the buttons and
   the key sit outside the svg; the lines keep their width with vector-effect). Touch screens
   have no --lmap-screen-base, so the scale is 1 and the buttons stay 44 px for a finger; pinch
   zoom there does not change the layout. */
@media (pointer: fine) {
  .lmap-full {
    --lmap-screen-base: 1280;
  }
}
.lmap-full .lmap-tools {
  top: calc(12px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
  right: calc(12px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
  gap: calc(6px * var(--lmap-screen-grow));
  transform: scale(var(--lmap-screen-shrink));
  transform-origin: top right;
}
.lmap-full .lmap-tools button {
  min-width: calc(44px * var(--lmap-screen-grow));
  height: calc(44px * var(--lmap-screen-grow));
  padding: 0 calc(8px * var(--lmap-screen-grow));
  border-width: calc(1px * var(--lmap-screen-grow));
  border-radius: calc(5px * var(--lmap-screen-grow));
}
.lmap-full .lmap-tools .lmap-full-btn {
  padding: 0;
}
.lmap-full .lmap-tools button svg {
  zoom: var(--lmap-screen-grow);
}
/* The lines of the map in the map view: borders and the locator's frames. */
.lmap-full .lmap-border,
.lmap-full .lmap-disputed {
  stroke-width: calc(0.6px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
}
.lmap-full .lmap-disputed {
  stroke-dasharray: calc(3px * var(--lmap-screen-grow) * var(--lmap-screen-shrink))
    calc(2px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
}
.lmap-full .lmap-inset .lmap-sphere {
  stroke-width: calc(1px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
}
.lmap-full .lmap-inset rect {
  stroke-width: calc(1.5px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
}
/* The key of the points (tools/build_paths.py): under the map, and over it in the map view.
   The marks repeat the colours and shapes of .lmap-main and .lmap-ctx above. */
.lmap-key {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-61726d);
}
.lmap-key li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.lmap-key li::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
}
.lmap-key-main::before {
  background: var(--orange);
  border-radius: 50%;
}
.lmap-key-ctx::before {
  background: var(--c-8fa29c);
}
/* An entry of the top page's colour key (dist/explore.js): the value's colour and its count. */
.lmap-key-value::before {
  background: var(--key-colour);
  border-radius: 50%;
}
.lmap-key small {
  font-size: 12px;
}
/* A key entry with points is a button (dist/map-zoom.js): it goes to its points. */
.lmap-key-btn {
  -webkit-appearance: none;
  appearance: none;
  /* The name and the count (top page) stay apart in either writing direction. */
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
@media (hover: hover) {
  .lmap-key-btn:hover {
    text-decoration: underline;
  }
}
.lmap-full .lmap-key {
  position: absolute;
  bottom: calc(12px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
  inset-inline-start: calc(12px * var(--lmap-screen-grow) * var(--lmap-screen-shrink));
  /* Leaves the bottom right to the locator (.lmap-inset, 22% of the map's width), measured
     before the transform below. */
  max-width: calc(70% / var(--lmap-screen-shrink));
  margin: 0;
  padding: calc(8px * var(--lmap-screen-grow)) calc(12px * var(--lmap-screen-grow));
  flex-direction: column;
  gap: calc(4px * var(--lmap-screen-grow)) calc(16px * var(--lmap-screen-grow));
  background: var(--c-ffffff);
  border: calc(1px * var(--lmap-screen-grow)) solid var(--line);
  border-radius: calc(6px * var(--lmap-screen-grow));
  color: var(--ink);
  /* Keeps its size on the screen like the buttons (--lmap-screen-base above). */
  transform: scale(var(--lmap-screen-shrink));
  transform-origin: bottom left;
}
[dir='rtl'] .lmap-full .lmap-key {
  transform-origin: bottom right;
}
.lmap-full .lmap-key > li {
  zoom: var(--lmap-screen-grow);
}
/* The records of a tapped point, each linked to its page. */
.lmap-pop {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(290px, calc(100% - 16px));
  max-height: min(320px, calc(100% - 16px));
  overflow: auto;
  padding-block: 10px;
  padding-inline: 14px 40px;
  background: var(--c-ffffff);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.lmap-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lmap-pop li {
  padding: 3px 0;
  overflow-wrap: anywhere;
}
.lmap-pop a {
  font-weight: 600;
}
.lmap-pop-close {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}
