/* Glossário: pesquisa acessível e leitura por ordem alfabética. */
.gl-page [hidden] { display: none !important; }
.gl-shell { width: min(1000px, calc(100% - 3rem)); margin: 0 auto; padding-bottom: 4rem; }
.gl-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding-top: 1.8rem; color: var(--text-soft); font-size: .79rem; }
.gl-breadcrumb a { color: var(--gold-soft); }
.gl-hero { max-width: 800px; margin: 0 auto; padding: 3.8rem 0 2.6rem; text-align: center; }
.gl-hero h1 { font-size: clamp(2.85rem, 6vw, 4.8rem); line-height: 1.1; text-wrap: balance; }
.gl-shell h1 em, .gl-shell h2 em { color: var(--gold-soft); font-style: italic; }
.gl-lead { max-width: 720px; margin: 1.4rem auto 0; color: var(--text); font-size: 1.02rem; }
.gl-context { max-width: 710px; margin: 1.2rem auto 0; color: var(--text-soft); font-size: .88rem; line-height: 1.8; }
.gl-find { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, rgba(34, 48, 75, .28), rgba(184, 154, 90, .025)); }
.gl-find-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.gl-find-heading h2 { font-size: clamp(1.85rem, 3vw, 2.4rem); line-height: 1.2; }
.gl-total { flex-shrink: 0; color: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .65rem; font-size: .75rem; }
.gl-search-form label { display: block; color: var(--text-soft); font-size: .78rem; margin-bottom: .55rem; }
.gl-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .35rem .85rem; border: 1px solid rgba(184, 154, 90, .45); border-radius: 12px; background: rgba(8, 10, 15, .6); }
.gl-search-row:focus-within { border-color: var(--gold-soft); }
.gl-search-row svg { flex-shrink: 0; color: var(--gold-soft); }
.gl-search-row input { flex: 1 1 140px; min-width: 0; width: 100%; min-height: 44px; padding: .55rem .2rem; color: var(--text); border: 0; border-radius: 4px; background: transparent; font: inherit; font-size: 1rem; }
.gl-search-row input::placeholder { color: var(--text-soft); opacity: .85; }
.gl-search-row button, .gl-status-row button { min-height: 40px; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--gold-soft); font-size: .76rem; cursor: pointer; }
.gl-search-form > p { margin: .6rem 0 1.25rem; color: var(--text-soft); font-size: .75rem; }
.gl-alphabet { display: flex; flex-wrap: wrap; gap: .35rem; padding: 1rem 0 0; border-top: 1px solid var(--line); }
.gl-letter { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-height: 42px; color: var(--gold-soft); border: 1px solid transparent; border-radius: 7px; font-size: .85rem; }
.gl-letter.gl-all { width: auto; padding: 0 .75rem; }
a.gl-letter:hover { border-color: var(--line); }
.gl-letter[aria-current="true"] { border-color: var(--gold); color: var(--text); background: rgba(184, 154, 90, .1); }
.gl-letter-unavailable { color: var(--text-soft); opacity: .36; user-select: none; }
.gl-status-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; padding-top: .85rem; }
.gl-status-row p { color: var(--text-soft); font-size: .78rem; margin: 0; }
.gl-noscript { color: var(--text-soft); font-size: .84rem; }
.gl-starting-points { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: 1.35rem .2rem 0; color: var(--text-soft); font-size: .78rem; }
.gl-starting-points > span { color: var(--text-soft); }
.gl-starting-points a { color: var(--gold-soft); padding: .25rem 0; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.gl-groups { scroll-margin-top: 7rem; }
.gl-group { margin-top: 2.6rem; }
.gl-group > h2 { display: flex; align-items: center; gap: 1.3rem; font-size: 3rem; line-height: 1.2; color: var(--gold-soft); margin: 0 0 1rem; scroll-margin-top: 7rem; }
.gl-group-rule { display: block; flex: 1; height: 1px; background: var(--line); }
.gl-entries { border-top: 1px solid var(--line); }
.gl-term { border-bottom: 1px solid var(--line); scroll-margin-top: 7rem; }
.gl-term > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .9rem; cursor: pointer; list-style: none; border-radius: 5px; }
.gl-term > summary::-webkit-details-marker { display: none; }
.gl-term > summary::marker { content: ''; }
.gl-term > summary:hover { background: rgba(184, 154, 90, .035); }
.gl-term-heading { display: grid; grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr); align-items: baseline; gap: .5rem 2rem; flex: 1; min-width: 0; }
.gl-term-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.85rem; line-height: 1.2; color: var(--text); }
.gl-brief { color: var(--text-soft); font-size: .82rem; line-height: 1.6; }
.gl-toggle { position: relative; flex-shrink: 0; display: block; width: 24px; height: 24px; color: var(--gold-soft); }
.gl-toggle::before, .gl-toggle::after { content: ''; position: absolute; display: block; background: currentColor; }
.gl-toggle::before { width: 12px; height: 1px; left: 6px; top: 12px; }
.gl-toggle::after { width: 1px; height: 12px; left: 12px; top: 6px; }
.gl-term[open] .gl-toggle::after { display: none; }
.gl-term[open] > summary .gl-term-title { color: var(--gold-soft); }
.gl-term:target { background: rgba(34, 48, 75, .15); }
.gl-explanation { max-width: 810px; padding: 0 .9rem 1.5rem; }
.gl-definition { margin: .25rem 0 1.2rem; color: var(--text); font-size: .95rem; line-height: 1.85; }
.gl-example { padding: .85rem 1rem; margin: 0 0 1.2rem; color: var(--text-soft); border-left: 2px solid var(--gold); background: rgba(34, 48, 75, .14); font-size: .89rem; line-height: 1.8; }
.gl-example strong { display: block; color: var(--gold-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-bottom: .35rem; }
.gl-related > span { display: block; margin-bottom: .35rem; color: var(--text-soft); font-size: .74rem; }
.gl-related > div { display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.gl-related a { color: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .77rem; }
.gl-reading { margin: 1.2rem 0 0; }
.gl-reading a, .gl-permalink a, .gl-text-links a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.gl-reading a { font-size: .82rem; }
.gl-permalink { margin: .9rem 0 0; }
.gl-permalink a { font-size: .72rem; color: var(--text-soft); }
.gl-empty { text-align: center; padding: 3.5rem 1rem; margin-top: 2rem; border: 1px dashed var(--line); border-radius: 16px; }
.gl-empty h2 { font-size: 2.2rem; line-height: 1.2; }
.gl-empty p { color: var(--text-soft); font-size: .9rem; }
.gl-empty .button { color: var(--gold-soft); cursor: pointer; }
.gl-closing { margin: 3.5rem 0 0; padding: clamp(1.4rem, 4vw, 2.5rem); border-left: 2px solid var(--gold); background: rgba(34, 48, 75, .14); }
.gl-closing h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.2; }
.gl-closing > p:not(.overline) { color: var(--text-soft); max-width: 760px; }
.gl-text-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.gl-text-links a { padding: .3rem 0; font-size: .84rem; }
.gl-bottom-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.gl-bottom-nav a { padding: .65rem 0; color: var(--gold-soft); font-size: .86rem; }
.gl-shell a:focus-visible, .gl-shell summary:focus-visible, .gl-shell button:focus-visible, .gl-shell input:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
@media (max-width: 700px) {
  .gl-hero { padding: 2.8rem 0 2.3rem; }
  .gl-term-heading { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .gl-term > summary { padding: 1.15rem .45rem; }
  .gl-explanation { padding: 0 .45rem 1.4rem; }
  .gl-term-title { font-size: 1.8rem; }
  .gl-starting-points > span { width: 100%; }
}
@media (max-width: 480px) {
  .gl-shell { width: calc(100% - 2rem); padding-bottom: 3rem; }
  .gl-hero h1 { font-size: clamp(2.5rem, 10vw, 3.2rem); }
  .gl-hero .overline { font-size: .65rem; letter-spacing: .14em; }
  .gl-lead { font-size: .96rem; }
  .gl-context { font-size: .83rem; }
  .gl-find { padding: 1.2rem 1rem; }
  .gl-find-heading { align-items: flex-start; }
  .gl-find-heading h2 { font-size: 1.85rem; }
  .gl-total { margin-top: .2rem; font-size: .68rem; }
  .gl-search-row { padding: .3rem .6rem; gap: .35rem; }
  .gl-search-row button { flex: 1 1 100%; margin-bottom: .3rem; }
  .gl-letter { width: 34px; }
  .gl-alphabet { gap: .2rem; }
  .gl-group { margin-top: 2.2rem; }
  .gl-group > h2 { font-size: 2.7rem; }
  .gl-term-title { font-size: 1.75rem; }
  .gl-brief { font-size: .79rem; }
  .gl-definition { font-size: .91rem; }
  .gl-bottom-nav { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gl-page .button { transition: none; }
  .gl-page .button:hover { transform: none; }
}
