/* Публичный сайт: лендинг и раздел «Калмыцкий язык» (docs/technical/seo.md). */
:root {
  --sand: #FBE3B8; --sand-2: #FFF5E6; --card: #FFFFFF; --ink: #3B2416; --ink-2: #6B4A36;
  --brown: #6C3C25; --blue: #1F4FB5; --blue-2: #173E8F; --red: #DE1A1B; --gold: #F2C230;
  --line: #EBCF9E; --radius: 24px;
  --shadow: 0 10px 30px rgba(108, 60, 37, .08), 0 2px 6px rgba(108, 60, 37, .05);
  /* Облака и силуэты Элисты — в decor.css (подключается раньше этого файла). */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  /* Тёплый песочный градиент сверху вниз; облачка по краям — только на широком экране (ниже). */
  background: linear-gradient(var(--sand), var(--sand-2)) top / 100% 640px no-repeat, var(--sand-2);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; padding-bottom: 88px;
}
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); font-weight: 850; }
h2 { font-size: clamp(1.55rem, 5vw, 2.2rem); font-weight: 800; text-align: center; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: 1.1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 750;
  font-size: 1.05rem; padding: 1rem 1.5rem; border-radius: 999px; min-height: 56px;
  box-shadow: 0 6px 0 var(--blue-2), 0 12px 24px rgba(31, 79, 181, .25);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--blue-2); }
.btn .tg { width: 22px; height: 22px; flex: none; }
.note { margin-top: .9rem; color: var(--ink-2); font-size: .95rem; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.top-link { font-weight: 700; text-decoration: none; font-size: .95rem; }

.hero { position: relative; z-index: 0; border-radius: 0 0 36px 36px; overflow: hidden;
  background: var(--elista) center bottom / 500px auto no-repeat,
    var(--hills) center bottom / 500px auto repeat-x,
    linear-gradient(var(--sand) 40%, color-mix(in srgb, var(--sand) 55%, var(--sand-2))); }
.hero-grid { display: grid; gap: .6rem; align-items: center; padding: 8px 0 104px; position: relative; }
/* Облачка вокруг Зары: на телефоне — по бокам от неё, на ПК — у правой колонки. Слой под текстом. */
.hero-grid::before { content: ""; position: absolute; z-index: -1; inset: -64px -16px 0; pointer-events: none;
  background: var(--cloud-swirl) right -78px top 146px / 210px auto no-repeat, var(--cloud-small) left -8px top 96px / 120px auto no-repeat; }
.hello { display: inline-block; background: #fff; color: var(--brown); font-weight: 750;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem; font-size: .95rem; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin: 1rem 0 1.6rem; }
.zara { width: 168px; height: auto; aspect-ratio: 1; border-radius: 50%; margin: 0 auto;
  border: 6px solid #fff; box-shadow: 0 18px 40px rgba(108, 60, 37, .22); display: block; order: -1; margin-top: -4px; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; padding: 0; list-style: none; }
.facts li { background: rgba(255, 255, 255, .7); padding: .3rem .8rem; border-radius: 999px; font-size: .92rem; font-weight: 650; }
.facts li b { color: var(--red); }

section { padding: 56px 0 8px; }
.sec-head { text-align: center; margin-bottom: 1.6rem; }
.sec-head .knot { width: 34px; height: 34px; color: var(--gold); display: block; margin: 0 auto .6rem; }
.sec-head p { margin-top: .6rem; color: var(--ink-2); }
.grid { display: grid; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; box-shadow: var(--shadow); }
.card .emoji { font-size: 1.9rem; line-height: 1; margin-bottom: .6rem; display: block; }
.card p { color: var(--ink-2); margin-top: .45rem; }
.fits { margin-top: .8rem !important; font-weight: 700; color: var(--blue) !important; }
.solo { margin-top: 14px; display: grid; gap: 1rem; align-items: center; border: 2px solid var(--gold); }
.btn-ghost { background: var(--card); color: var(--blue); border: 2px solid var(--blue); box-shadow: none; min-height: 52px; }
.btn-ghost:active { box-shadow: none; }

.trial { background: var(--card); border: 2px solid var(--gold); border-radius: 28px; padding: 1.5rem 1.3rem; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .8rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233B2416' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.badge { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: .85rem;
  padding: .25rem .7rem; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase; }

.price { text-align: center; background: var(--brown); color: #fff; border-radius: 28px; padding: 2rem 1.3rem; box-shadow: 0 14px 34px rgba(108, 60, 37, .22); }
.price .big { font-size: clamp(2.6rem, 10vw, 3.6rem); font-weight: 850; line-height: 1; margin: .6rem 0 .3rem; }
.price .big small { font-size: 1.1rem; font-weight: 650; opacity: .85; }
.price .free { display: inline-block; margin-top: .9rem; background: var(--gold); color: var(--ink); font-weight: 800; padding: .4rem 1rem; border-radius: 999px; }
.price ul { list-style: none; padding: 0; margin: 1.4rem auto 0; max-width: 520px; text-align: left; display: grid; gap: .55rem; }
.price li { padding-left: 1.6rem; position: relative; color: #FBE9D2; }
.price li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; font-size: .8rem; top: .25rem; }

.steps { counter-reset: s; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 850; font-size: 1.2rem; display: grid; place-items: center; }
.step p { color: var(--ink-2); margin-top: .25rem; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 0 1.2rem; box-shadow: var(--shadow); }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; font-weight: 600; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 1rem; color: var(--ink-2); }

.final { text-align: center; border-radius: 36px; padding: 2.4rem 1.3rem 6rem; margin-top: 56px; box-shadow: var(--shadow);
  background: var(--cloud-small) left -4px top 30px / 116px auto no-repeat, var(--cloud-heap) right -36px top 96px / 136px auto no-repeat,
    var(--elista) center bottom / 420px auto no-repeat,
    var(--hills) center bottom / 420px auto repeat-x, var(--sand); }
.final img { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; margin-bottom: 1rem; }
.final p { margin: .7rem 0 1.5rem; color: var(--ink-2); }

footer { padding: 2rem 0 1rem; color: var(--ink-2); font-size: .9rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: .8rem; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 245, 230, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.sticky .btn { width: 100%; box-shadow: 0 4px 0 var(--blue-2); }
/* Нижняя кнопка видна, только когда на экране нет другой кнопки записи (скрипт внизу). */
.sticky { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.sticky.show { transform: none; visibility: visible; transition: transform .25s ease; }

/* Плашка о cookie и Яндекс Метрике (docs/technical/web-analytics.md): не блокирует страницу. Стоит в
   разметке после нижней кнопки записи и, когда та видна, поднимается над ней, чтобы не закрывать. */
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 11;
  max-width: 460px; display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem .7rem 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 6px 18px rgba(108, 60, 37, .12);
  color: var(--ink-2); font-size: .88rem; line-height: 1.4; transition: bottom .25s ease; }
.cookie-note[hidden] { display: none; }
.cookie-note button { flex: none; font: inherit; font-weight: 750; color: #fff; background: var(--blue); border: 0;
  border-radius: 999px; padding: .5rem 1rem; min-height: 40px; cursor: pointer; }
.cookie-note button:hover { background: var(--blue-2); }
.sticky.show ~ .cookie-note { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* Раздел «Калмыцкий язык»: хаб и статьи. */
/* Шапка прозрачная: под ней песочный градиент страницы. Облачка заходят под хлебные крошки и заголовок —
   на телефоне они в основном за краем экрана, чтобы не мешать читать. */
.page-top .wrap { position: relative; }
/* `.top` задаёт отступ 14px 0 и перебивал поля `.wrap`: шапка прилипала к краям экрана. */
.page-top .top { padding: 14px 16px; }
.page-top .wrap::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -150px; pointer-events: none;
  background: var(--cloud-long) right -84px top 128px / 160px auto no-repeat; }
/* Шапка статьи по ширине текста — логотип и «Записаться» над колонкой, а не шире её. */
.page-top .wrap { max-width: 820px; }
.article { max-width: 820px; }
.article > h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-top: .4rem; text-wrap: balance; }
.article .answer { margin: 1rem 0 .4rem; }
.article .meta { color: var(--ink-2); font-size: .9rem; margin-top: .6rem; }
.article .sources { margin-top: 2rem; color: var(--ink-2); font-size: .9rem; }
.article .sources h2 { font-size: 1rem; margin: 0 0 .4rem; }
.article .sources ul { margin: 0; padding-left: 1.2rem; }
.article .sources li { margin: .2rem 0; overflow-wrap: anywhere; }
.article section { padding-top: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; padding: 18px 0 6px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1rem 1.2rem; margin-top: 1.6rem; box-shadow: var(--shadow); }
.toc ol { margin: .5rem 0 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.toc a { text-decoration: none; }
.topic h2 { text-align: left; font-size: clamp(1.3rem, 4.4vw, 1.7rem); text-wrap: balance; scroll-margin-top: 16px; }
.topic > p { margin-top: .7rem; }
.words-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.words { width: 100%; border-collapse: collapse; font-size: 1rem; }
.words th, .words td { padding: .65rem .6rem; text-align: left; vertical-align: top; }
.words th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.words tr + tr td { border-top: 1px solid var(--line); }
.words td:first-child { width: 55%; }
.words .xal { display: block; font-weight: 750; color: var(--brown); }
.words .read { display: block; margin-top: .15rem; color: var(--ink-2); font-style: italic; font-size: .9rem; }
.has-audio { cursor: pointer; }
.has-audio:hover td { background: var(--sand-2); }
.say { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; color: inherit; font: inherit; border-radius: 8px; }
.say:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.say .speaker { width: 1.15em; height: 1.15em; flex: none; color: var(--blue); }
.say.is-playing .speaker { color: var(--red); }
.say.is-playing .wave { animation: say-wave .8s ease-in-out infinite alternate; }
@keyframes say-wave { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .say.is-playing .wave { animation: none; } }
.say-cards { display: grid; gap: 14px; margin-top: 1rem; }
@media (min-width: 720px) { .say-cards { grid-template-columns: 1fr 1fr; } }
.say-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; scroll-margin-top: 16px; }
.say-card:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.say-card .when { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700; }
.say-card .xal { font-weight: 750; color: var(--brown); font-size: 1.1rem; white-space: pre-line; }
.say-card .read { color: var(--ink-2); font-style: italic; font-size: .95rem; }
.say-card .ru { white-space: pre-line; }
.say-card .fold-body { display: flex; flex-direction: column; gap: .45rem; }
.say-card.is-folded .fold-body { max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.fold-toggle { align-self: flex-start; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--blue); background: none; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.fold-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.inline-cta { margin-top: 40px; background: var(--card); border: 2px solid var(--gold); border-radius: 24px; padding: 1.3rem; display: grid; gap: 1rem; box-shadow: var(--shadow); }
.article-card { display: block; color: var(--ink); text-decoration: none; position: relative; }
.article-card:hover { border-color: var(--gold); }
.article-card h3 { color: var(--blue); }
.draft-tag, .draft-bar { background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; }
.draft-tag { display: inline-block; margin-top: .6rem; padding: .15rem .6rem; border-radius: 999px; }
.draft-bar { text-align: center; padding: .5rem 16px; }
mark.ph { background: none; color: var(--red); font-weight: 700; }
.is-draft mark.ph { background: #FFE1E1; border-radius: 4px; padding: 0 .2em; }
.center { text-align: center; }
/* Хаб: липкие чипы рубрик (на телефоне листаются вбок), путь новичка, блоки рубрик. */
.chips { position: sticky; top: 0; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 1.4rem -16px 0; padding: .6rem 16px; background: rgba(255, 245, 230, .94); backdrop-filter: blur(8px); }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem; }
.chips a:hover { border-color: var(--gold); }
.article section[id] { scroll-margin-top: 64px; }
#now h2, #first-steps h2, .rubric h2 { text-align: left; font-size: clamp(1.3rem, 4.4vw, 1.7rem); margin-bottom: 1rem; }
#first-steps h2 { margin-bottom: .3rem; }
.hub-sub { color: var(--ink-2); margin-bottom: 1rem; }
#now, #first-steps, .rubric { padding-top: 36px; }
.path { list-style: none; margin: 0; padding: 0; }
.path h3 a { text-decoration: none; }
.path-cta { margin-top: 1.4rem; }
.counter { display: block; margin-top: .5rem; font-size: .85rem; color: var(--ink-2); font-weight: 650; }
/* Статья: ярлык рубрики над заголовком и «Шаг N из 3». */
.rubric-tag { display: inline-block; margin-top: .6rem; padding: .2rem .7rem; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .85rem; font-weight: 650; }
.rubric-tag:hover { border-color: var(--gold); }
.next-step { margin-top: 32px; padding: 1rem 1.2rem; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-weight: 650; box-shadow: var(--shadow); }
.next-step span { color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; padding: 24px 0 64px; }
  .zara { order: 0; width: 340px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .trial { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 2.2rem; }
  .trial .checks { margin: 0; }
  .steps.grid { grid-template-columns: repeat(3, 1fr); }
  /* Хаб на ПК: путь новичка списком, чипы не липнут — экран и так вмещает всё. */
  .steps.grid.path { grid-template-columns: 1fr; gap: 18px; }
  .chips { position: static; background: none; backdrop-filter: none; flex-wrap: wrap; }
  .faq { max-width: 760px; margin: 0 auto; }
  .inline-cta { grid-template-columns: 1fr auto; align-items: center; }
  .solo { grid-template-columns: auto 1fr auto; gap: 1.4rem; }
  .solo .emoji { margin: 0; }
  /* Силуэты Элисты не растягиваем: 900px по центру, по бокам продолжаются холмы. */
  .hero { background-size: 900px auto, 900px auto, auto;
    background-position: left calc(50% + 170px) bottom, left calc(50% + 170px) bottom, 0 0; }
  .hero-grid::before { inset: -40px -200px 0 0;
    background: var(--cloud-swirl) right 130px top 30px / 280px auto no-repeat, var(--cloud-wisp) right 0 bottom 250px / 230px auto no-repeat; }
}
/* Широкий экран: облачка в полях по бокам от колонки текста, а не под ним. */
@media (min-width: 1100px) {
  body { background:
    var(--cloud-swirl) left -10px top 980px / 240px auto no-repeat, var(--cloud-heap) right -20px top 1560px / 190px auto no-repeat,
    var(--cloud-wisp) left 0 top 2380px / 220px auto no-repeat, var(--cloud-puff) right -40px top 3150px / 230px auto no-repeat,
    linear-gradient(var(--sand), var(--sand-2)) top / 100% 640px no-repeat, var(--sand-2); }
  .page-top .wrap::before { inset: 0 -170px -170px;
    background: var(--cloud-long) right -10px top 46px / 240px auto no-repeat, var(--cloud-small) left 10px top 140px / 150px auto no-repeat; }
}

/* Каталог имён и страница имени (docs/technical/kalmyk-names.md). */
.name-search { position: relative; display: flex; gap: .5rem; margin-top: 1.4rem; }
.name-search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; }
.name-search input:focus { outline: none; border-color: var(--blue); }
.name-search button { min-height: 52px; padding: 0 1.3rem; border-radius: 999px; border: 0; background: var(--blue); color: #fff;
  font: inherit; font-weight: 750; cursor: pointer; }
.name-suggest { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: .3rem; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 30px rgba(108, 60, 37, .18); }
.name-suggest a { display: flex; align-items: baseline; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.name-suggest a:hover, .name-suggest a.active { background: var(--sand-2); }
.name-suggest .m { color: var(--ink-2); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-tabs a[aria-current], .name-filter a[aria-current], .abc a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.name-tabs small, .name-filter small { opacity: .7; font-weight: 600; }
/* На телефоне отбор по происхождению — одна строка, листается вбок, как чипы. */
.name-filter { display: flex; align-items: center; gap: .4rem; margin: .4rem -16px 0; padding: 0 16px; overflow-x: auto;
  scrollbar-width: none; font-size: .9rem; color: var(--ink-2); }
.name-filter::-webkit-scrollbar { display: none; }
.name-filter > * { flex: none; white-space: nowrap; }
@media (min-width: 760px) { .name-filter { flex-wrap: wrap; overflow: visible; margin: .4rem 0 0; padding: 0; } }
.name-filter a { padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.abc { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }
.abc a { min-width: 2.3rem; height: 2.3rem; display: grid; place-items: center; padding: 0 .5rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; }
.abc a:hover, .name-filter a:hover { border-color: var(--gold); }
.article section.names { padding-top: 18px; }
.name-count { color: var(--ink-2); font-size: .92rem; margin-bottom: .6rem; }
.name-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .name-list { grid-template-columns: 1fr 1fr; } }
.name-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding: .7rem .9rem; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%;
  box-shadow: 0 4px 14px rgba(108, 60, 37, .06); }
.name-list a:hover { border-color: var(--gold); }
.name-list b, .name-suggest b { color: var(--blue); font-weight: 750; }
.name-list .m { flex-basis: 100%; color: var(--ink-2); font-size: .92rem; }
.g { font-size: .72rem; font-weight: 750; padding: .05rem .4rem; border-radius: 6px; background: var(--sand); color: var(--brown); }
.g-f { background: #FDE2E2; color: #9B1C1C; }
.g-m { background: #E3EBFB; color: var(--blue-2); }
.unknown { color: var(--ink-2); font-style: italic; }
.name-list .weak::before { content: "≈ "; }
.weak-note { display: block; margin-top: .3rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.2rem; align-items: center; }
.pager a, .pager span { min-width: 2.4rem; height: 2.4rem; padding: 0 .7rem; display: grid; place-items: center; border-radius: 10px; text-decoration: none; }
.pager a { background: var(--card); border: 1px solid var(--line); }
.pager [aria-current] { background: var(--blue); color: #fff; font-weight: 750; }
.pager .gap { min-width: auto; padding: 0; }
.name-sources ul { margin: .7rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.name-sources small { color: var(--ink-2); }
.name-card { margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.name-card > div { background: var(--card); padding: .85rem 1.1rem; }
.name-card .wide { grid-column: 1 / -1; }
.name-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 700; }
.name-card dd { margin: .2rem 0 0; font-weight: 650; }
.name-card .name-meaning { font-size: 1.35rem; font-weight: 800; color: var(--brown); }
.name-card .name-meaning .unknown, .name-card .name-meaning a { font-size: 1rem; font-weight: 600; }
.name-card .xal { font-size: 1.2rem; color: var(--brown); }
.name-school { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 18px; border: 2px dashed var(--gold); background: var(--card); box-shadow: var(--shadow); }
.name-pager { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: 32px; padding: .9rem 1.1rem;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-weight: 650; box-shadow: var(--shadow); }
.name-pager a { text-decoration: none; }
