/* Glossaire : page index classique sur papier (fil d'Ariane, titre, champ de recherche, lettres A–Z, deux colonnes), puis l’appel final commun (.ps-endcta). */

/* ---------- Feuille ---------- */

.gl-paper {
  overflow-x: clip;
  color: var(--ps-ink);
  background:
    radial-gradient(900px 620px at 90% 0%, rgba(244, 81, 30, 0.12), transparent 70%),
    var(--ps-paper);
}

.gl-sheet {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.ps-page main .gl-paper a {
  color: var(--ps-orange-dark);
}

.ps-page main .gl-paper a:hover {
  color: var(--ps-orange);
}

.gl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a7266;
  font-size: 14px;
}

.ps-page main .gl-crumbs a {
  color: #8a7266;
  text-decoration: none;
}

.ps-page main .gl-crumbs a:hover {
  color: var(--ps-ink);
}

.gl-crumbs [aria-current="page"] {
  color: var(--ps-ink);
}

/* Titre de page : même échelle que l'index des articles (pas de titre géant ni de lettres en contour). */
.ps-page main .gl-h1 {
  margin: 0;
  color: var(--ps-ink);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ps-page .gl-lead {
  max-width: 38em;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.gl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Recherche et lettres ---------- */

/* Champ de recherche classique : cadre arrondi, loupe, taille de texte normale. */
.gl-searchbox {
  position: relative;
  max-width: 640px;
}

.gl-search-ico {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #8a7266;
  transform: translateY(-50%);
  pointer-events: none;
}

.ps-page main .gl-search {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 18px 0 50px;
  border: 1px solid #d8c6b9;
  border-radius: var(--ps-radius-pill);
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--ps-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gl-search::placeholder {
  color: #9c8576;
  opacity: 1;
}

.ps-page main .gl-search:hover {
  border-color: #b9a597;
}

.ps-page main .gl-search:focus,
.ps-page main .gl-search:focus-visible {
  border-color: var(--ps-orange);
  box-shadow: 0 0 0 3px rgba(244, 81, 30, 0.18);
  outline: none;
}

.gl-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.ps-page main .gl-rail .gl-l {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(244, 81, 30, 0.08);
  color: var(--ps-ink);
  font-family: var(--ps-font-mono);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ps-page main .gl-rail .gl-l:hover {
  background: var(--ps-ink);
  color: #fff;
}

.ps-page main .gl-rail .gl-l.is-off {
  background: transparent;
  color: #cdbcb0;
  pointer-events: none;
}

/* Les fiches complètes : pastilles teintées, sans barre latérale. */
.gl-full {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gl-full-label {
  margin-right: 6px;
  color: #8a7266;
  font-family: var(--ps-font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.ps-page main .gl-full a {
  padding: 6px 12px;
  border: 1px solid #e3d2c6;
  border-radius: var(--ps-radius-pill);
  background: transparent;
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ps-page main .gl-full a:hover {
  border-color: var(--ps-ink);
  background: var(--ps-ink);
  color: #fff;
}

/* ---------- Colonnes du dictionnaire ---------- */

.gl-cols {
  columns: 2;
  column-gap: 56px;
  column-rule: 1px solid #d8c6b9;
}

.gl-grp {
  break-inside: avoid-column;
}

.gl-grp[hidden],
.gl-e[hidden],
.gl-empty[hidden] {
  display: none;
}

/* Lettre de section : lettre pleine, taille de sous-titre, filet dessous. */
.ps-page .gl-k {
  display: block;
  margin: 0;
  padding: 28px 0 8px;
  border-bottom: 1.5px solid var(--ps-ink);
  color: var(--ps-orange-dark);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.gl-e {
  padding: 16px 0;
  border-bottom: 1px solid #e3d2c6;
  break-inside: avoid;
}

.ps-page .gl-head {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
}

.ps-page main .gl-paper .gl-term {
  color: var(--ps-ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ps-page main .gl-paper .gl-term:hover {
  color: var(--ps-orange-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Nature du mot : petite pastille teintée, en Satoshi. */
.gl-nat {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--ps-radius-pill);
  background: rgba(244, 81, 30, 0.12);
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 5px;
  text-transform: uppercase;
}

.ps-page .gl-def {
  margin-top: 6px;
  color: var(--ps-muted-light);
  font-size: 17px;
  line-height: 1.55;
}

.ps-page .gl-x {
  margin-top: 6px;
  color: var(--ps-muted-light);
  font-size: 16px;
  line-height: 1.5;
}

.ps-page .gl-empty {
  color: var(--ps-muted-light);
  font-size: 18px;
}

/* Règle d'usage : petite note à coche (ul.ps-note). */
.ps-page main .gl-rule {
  padding-top: 12px;
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px) {
  .gl-sheet {
    padding-top: 32px;
    padding-bottom: 72px;
  }

  .gl-cols {
    columns: 1;
  }

  .ps-page main .gl-h1 {
    font-size: clamp(34px, 9vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-page main .gl-rail .gl-l,
  .ps-page main .gl-full a {
    transition: none;
  }
}
