/* Glossário: artigos longos com figuras. */
.gl .wrap { padding-bottom: var(--sp-3xl); }
.ar-top { padding: var(--sp-2xl) 0 var(--sp-xl); border-bottom: var(--bw) solid var(--ink); position: relative; }
.ar .ar-top::after { content: ''; position: absolute; left: 0; bottom: calc(-1 * var(--bw) - 8px); width: 120px; height: 8px; background: var(--ac); }
.ar-top .label a { color: inherit; }
.ar-top .h1 { margin: 12px 0 18px; font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem); max-width: 24ch; }
.ar-dek { margin: 0; max-width: 48ch; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.4; }
.ar-meta { margin: 18px 0 0; color: var(--ink-3); }

.ar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: var(--sp-3xl); align-items: start; }
.ar-body { min-width: 0; }
.ar-sec { padding-top: var(--sp-2xl); scroll-margin-top: 90px; }
.ar-sec h2 { margin: 0 0 var(--sp-lg); font-weight: 800; font-stretch: 88%; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); line-height: 1.15; max-width: 32ch; text-wrap: balance; }
.ar-body p, .ar-body li { max-width: 68ch; font-size: 1.08rem; line-height: 1.7; }
.ar-body p { margin: 0 0 1.05em; }
.ar-body ul { margin: 0 0 1.2em; padding-left: 1.2em; display: grid; gap: .35em; }
.ar-body code { font: inherit; font-weight: 700; background: var(--paper-2); padding: 0 .3em; }
.ar-body [id]:not(section) { scroll-margin-top: 110px; }
.cite { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--ink-3); white-space: nowrap; }
.cite:hover { text-decoration-color: var(--m); }
.ar-f { max-width: none !important; margin: 1.2em 0 1.4em !important; padding: 16px 20px; border: var(--bw) solid var(--ink); border-left-width: 8px; border-left-color: var(--ac, var(--ink));
  background: var(--paper-2); font-size: 1.1rem !important; overflow-x: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* figuras */
.ar-fig { margin: var(--sp-xl) 0; padding: var(--sp-lg); border: var(--bw) solid var(--ink); background: var(--paper); max-width: 860px; }
.ar-fig figcaption { margin-top: var(--sp-md); padding-top: 12px; border-top: 1px solid var(--ink); font-size: .92rem; line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.ar-fig figcaption b { color: var(--ink); }
.ar-svg { display: block; width: 100%; height: auto; color: var(--ink); overflow: visible; }
.ar-svg text { fill: currentColor; font-size: 13px; font-weight: 600; font-family: inherit; }
.ar-svg text.s { font-size: 12px; font-weight: 500; opacity: .8; }
.ar-svg text.b { font-weight: 800; font-size: 13.5px; }
.ar-svg text.w { fill: #fff; }
.ar-svg text.c { fill: var(--c); opacity: 1; font-weight: 800; }
.ar-k { margin: 14px 0 8px !important; font-size: .74rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3 !important; }
.ar-k:first-child { margin-top: 0 !important; }
.ar-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-lg); }

.ar-board { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; padding: 14px; background: #777; max-width: 340px; }
.ar-board i { aspect-ratio: 1; display: block; }
.ar-ans { margin-top: 10px; font-size: .9rem; }
.ar-ans summary { cursor: pointer; font-weight: 700; }

.ar-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.ar-pair { display: grid; gap: 6px; font-size: .9rem; }
.ar-pair.below b { color: var(--ink-3); }
.ar-pp { display: flex; height: 92px; border: 1.5px solid var(--ink); }
.ar-pp.big { height: 120px; }
.ar-pp i { flex: 1; display: block; }

.ar-strip { display: flex; height: 44px; border: 1.5px solid var(--ink); }
.ar-strip.big { height: 64px; }
.ar-strip i, .ar-grad i { flex: 1; display: block; }
.ar-grad { display: flex; height: 56px; border: 1.5px solid var(--ink); }
.ar-grad.q { height: 80px; }
.ar-lab2 { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .85rem; font-weight: 600; }

.ar-caps { display: flex; gap: 4px; }
.ar-caps span { flex: 1; display: grid; gap: 4px; }
.ar-caps i { display: block; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); }
.ar-caps span.off i { outline: 3px solid var(--m); outline-offset: 2px; }
.ar-caps em { font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; text-align: center; }

.ar-levels { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.ar-levels > div { padding: 16px; display: grid; gap: 8px; align-content: start; }
.ar-levels > div + div { border-left: 1.5px solid var(--ink); }
.ar-levels strong { font-weight: 850; font-stretch: 62%; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.ar-levels dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 4px 0; font-size: .88rem; }
.ar-levels dt { color: var(--ink-2); }
.ar-levels dd { margin: 0; font-weight: 800; text-align: right; }
.ar-wbar { display: flex; height: 14px; border: 1.5px solid var(--ink); }
.ar-wbar i { display: block; }

.ar-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1.5px solid var(--ink); }
.ar-big > div { padding: 18px; display: grid; gap: 8px; align-content: start; border-right: 1.5px solid var(--ink); }
.ar-big > div:last-child { border-right: 0; }
.ar-big strong { font-weight: 850; font-stretch: 62%; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .9; color: var(--ac, var(--ink)); }
.ar-big span { font-size: .9rem; line-height: 1.4; }

.ar-bars { display: grid; gap: 10px; }
.ar-bars > div { display: grid; grid-template-columns: 200px 1fr 50px; gap: 14px; align-items: center; }
.ar-bars span { display: grid; }
.ar-bars em { font-style: normal; font-size: .8rem; color: var(--ink-2); }
.ar-bt { height: 22px; border: 1.5px solid var(--ink); }
.ar-bt i { display: block; height: 100%; background: var(--ac, var(--ink)); }
.ar-tot { padding-top: 10px; border-top: 1.5px solid var(--ink); }

.ar-sur { height: 200px; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.ar-sur i { width: 90px; height: 90px; display: block; }

.ar-types { display: grid; grid-template-columns: 150px repeat(3, 1fr); border: 1.5px solid var(--ink); }
.ar-types > div { padding: 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: grid; gap: 4px; align-content: start; font-size: .88rem; }
.ar-types .ar-th { font-weight: 800; background: var(--paper-2); }
.ar-types em { font-style: normal; font-weight: 500; font-size: .78rem; color: var(--ink-2); }
.ar-types strong { font-size: 1rem; }

.ar-time { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1.5px solid var(--ink); }
.ar-time li { padding: 14px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--ink); font-size: .85rem !important; line-height: 1.4 !important; }
.ar-time li:last-child { border-right: 0; }
.ar-time b { font-weight: 850; font-stretch: 62%; font-size: 2rem; line-height: 1; color: var(--ac, var(--ink)); }
.ar-time strong { font-size: .95rem; }

.ar-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1.5px solid var(--ink); counter-reset: ck; }
.ar-check li { counter-increment: ck; padding: 16px 16px 16px 60px; position: relative; display: grid; gap: 4px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: .92rem !important; line-height: 1.4 !important; }
.ar-check li::before { content: counter(ck); position: absolute; left: 16px; top: 12px; font-weight: 850; font-stretch: 62%; font-size: 2rem; line-height: 1; color: var(--ac, var(--ink)); }

/* referências e lateral */
.ar-refs { padding-top: var(--sp-2xl); margin-top: var(--sp-xl); border-top: var(--bw) solid var(--ink); scroll-margin-top: 90px; }
.ar-refs h2 { margin: 0 0 var(--sp-md); font-weight: 850; font-stretch: 62%; text-transform: uppercase; font-size: 2rem; }
.ar-refs ol { margin: 0; padding-left: 1.6em; display: grid; gap: 10px; }
.ar-refs li { font-size: .9rem !important; line-height: 1.5 !important; color: var(--ink-2); scroll-margin-top: 110px; }
.ar-refs li:target { color: var(--ink); background: var(--paper-2); outline: 2px solid var(--m); outline-offset: 4px; }
.ar-refs a { color: inherit; overflow-wrap: anywhere; }

.ar-side { position: sticky; top: 96px; padding-top: var(--sp-2xl); display: grid; gap: var(--sp-lg); }
.ar-toc { display: grid; border-top: var(--bw) solid var(--ink); }
.ar-toc .label { padding: 10px 0; }
.ar-toc a { padding: 8px 0; border-top: 1px solid var(--ink); color: inherit; text-decoration: none; font-weight: 700; font-size: .88rem; line-height: 1.3; }
.ar-toc a:hover { color: var(--m); }
.ar-cta { width: 100%; }

/* cartões e índice */
.gl-more { margin-top: var(--sp-3xl); }
.gl-more > .label, .gl-terms > .label { display: block; margin-bottom: var(--sp-md); }
.gl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gl-cards.big { margin-top: var(--sp-2xl); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.gl-card { display: grid; align-content: start; gap: 10px; padding: 0 20px 20px; border: var(--bw) solid var(--ink); color: inherit; text-decoration: none; background: var(--paper);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.gl-card-bar { display: block; height: 14px; margin: 0 -20px 6px; background: var(--ac); border-bottom: var(--bw) solid var(--ink); }
.gl-card strong { font-weight: 850; font-stretch: 62%; font-size: 1.75rem; line-height: .95; text-transform: uppercase; }
.gl-cards.big .gl-card strong { font-size: 2.2rem; }
.gl-card span { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.gl-card em { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.gl-card:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.gl-terms { margin-top: var(--sp-3xl); }
.gl-terms dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 24px; border-top: var(--bw) solid var(--ink); }
.gl-terms dl > div { padding: 14px 0 16px; border-bottom: 1px solid var(--ink); }
.gl-terms dt a { font-weight: 800; color: inherit; }
.gl-terms dd { margin: 6px 0 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 960px) {
  .ar-grid { grid-template-columns: 1fr; gap: 0; }
  .ar-side { position: static; padding-top: var(--sp-xl); }
  .ar-toc { display: none; }
}
@media (max-width: 700px) {
  .ar-fig { padding: 14px; }
  .ar-body p, .ar-body li { font-size: 1.02rem; }
  .ar-levels { grid-template-columns: 1fr; }
  .ar-levels > div + div { border-left: 0; border-top: 1.5px solid var(--ink); }
  .ar-bars > div { grid-template-columns: 1fr 44px; }
  .ar-bars > div > span { grid-column: 1 / -1; }
  .ar-types { grid-template-columns: 1fr 1fr 1fr; }
  .ar-types > div:first-child { display: none; }
  .ar-types > div:nth-child(4n + 1) { grid-column: 1 / -1; background: var(--ink); color: var(--paper); }
  .ar-types > div:nth-child(4n + 1) em { color: inherit; }
  .ar-big > div { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .ar-pp { height: 70px; }
}
@media (prefers-reduced-motion: reduce) { .gl-card { transition: none; } }
.ar-cols.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) {
  .ar-svg text { font-size: 17px; }
  .ar-svg text.s { font-size: 16px; }
  .ar-svg text.b { font-size: 17px; }
  .ar-cols.two { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ar-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ar-types > div { padding: 8px; font-size: .78rem; hyphens: auto; overflow-wrap: anywhere; }
  .ar-types strong { font-size: .86rem; }
}
