/* ==========================================================
   ARQUEOLOGIA NÃO É BIOLOGIA · the essay's own skin
   The body in layers, as Intersexo 1 reads it: a clinical light
   face, glass slides, and one colour per layer (chromosome slate,
   hormone sage, receptor taupe, gonad mauve, anatomy rose).
   Loaded after ensaio.css. Contrast of every pair: qa/checar_estatico.py.
   ========================================================== */
:root {
  --arq-papel: #ffffff;        /* lab label */
  --arq-papel-tinta: #1a1a2e;  /* ink on the label */
  --arq-papel-suave: #4b5064;  /* soft ink on the label */
  --arq-musgo: #2e5e46;        /* stamp "agrees" */
  --arq-ferrugem: #8a2a2a;     /* stamp "disagrees" */
  --arq-argila: #46586a;       /* a layer before: written by puberty, with testosterone */
  --arq-osso: #f1e3e9;         /* a layer changed */
  --arq-rocha: #2b2e42;        /* a layer that stays */
  --arq-cromossomo: #5a7a8a; --arq-hormonio: #6a8a7a; --arq-receptor: #8a7a6a; --arq-gonada: #7a6a8a; --arq-anatomia: #8a6a7a;
}

/* ---------- mock badge ---------- */
.arq-mock {
  position: absolute; z-index: 3; top: calc(var(--barra-altura) + 0.9rem); left: var(--margem);
  font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem; border-radius: var(--pilula);
  color: var(--titulo); background: color-mix(in srgb, var(--fundo) 80%, transparent);
  border: 1px dashed color-mix(in srgb, var(--acento) 70%, transparent);
}

/* ---------- hero: the photographed slides stay in frame on narrow and tall screens ---------- */
@media (max-width: 999px), (max-aspect-ratio: 1/1) {
  html[data-hero="pintura-cheia"] .hero-arte img { object-position: 74% 30%; }
  /* the house veil stays as it is, and the words get a frosted pane of their own: on a phone the eyebrow
     crosses the slate slide and the subtitle the rose one, and measured against the darkest 5 % of the
     ground they read 3.7 and 3.3 (23/11/2026). The pane follows the text wherever it wraps. */
  html[data-hero="pintura-cheia"] .hero-texto { isolation: isolate; }
  html[data-hero="pintura-cheia"] .hero-texto::before {
    content: ''; position: absolute; z-index: -1; inset: -2.5rem calc(-1 * var(--margem)) -1.5rem;
    background: color-mix(in srgb, var(--fundo) 82%, transparent);
    -webkit-mask: linear-gradient(to bottom, transparent, #000 2.5rem); mask: linear-gradient(to bottom, transparent, #000 2.5rem);
    pointer-events: none;
  }
}

/* ---------- hero: a stack of glass slides, one per layer of the body (drawn, decorative) ---------- */
.arq-coluna { display: none; }
@media (min-width: 1000px) {
  /* the words of the hero keep clear of the column and of the tag that hangs to its left */
  html[data-hero="pintura-cheia"] .hero-texto { max-width: min(860px, calc(100vw - clamp(250px, 23vw, 350px) - clamp(2rem, 6vw, 7rem) - 14.5rem)); }
  .arq-coluna {
    display: flex; flex-direction: column; position: absolute; z-index: 0;
    right: clamp(2rem, 6vw, 7rem); top: calc(var(--barra-altura) + 3.4rem); bottom: 9vh;
    width: clamp(250px, 23vw, 350px);
    font-family: var(--fonte-mono); color: var(--titulo);
  }
  html.js .arq-coluna { opacity: 0; transform: translateY(10px); transition: opacity 900ms ease 500ms, transform 900ms var(--ease) 500ms; }
  html.js .hero.is-pronto .arq-coluna { opacity: 1; transform: none; }
}
.arq-coluna-topo, .arq-coluna-fundo {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--suave);
  text-shadow: 0 0 4px var(--fundo), 0 0 12px var(--fundo);
}
.arq-coluna-topo { padding-bottom: 0.45rem; border-bottom: 1px solid color-mix(in srgb, var(--titulo) 55%, transparent); }
.arq-coluna-fundo { padding-top: 0.45rem; text-align: right; }
.arq-estratos { list-style: none; margin: 0; padding: 0.35rem 0; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
/* each slide: frosted glass with a thin tissue section in the colour of its layer */
.arq-e {
  position: relative; flex: 1; display: flex; align-items: center; gap: 0.6rem;
  padding: 0 0.8rem; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--titulo);
  border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18) 70%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 22px -16px rgba(26, 26, 46, 0.3);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
/* the colour of the layer as a thin edge of the slide, so the photographed slides show through */
.arq-e::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; border-radius: 6px 0 0 6px; background: var(--arq-camada, var(--arq-cromossomo)); }
.arq-e-1 { --arq-camada: var(--arq-anatomia); }
.arq-e-2 { --arq-camada: var(--arq-receptor); }
.arq-e-3 { --arq-camada: var(--arq-hormonio); }
.arq-e-4 { --arq-camada: var(--arq-gonada); }
.arq-e-5 { --arq-camada: #9a9aa8; }
.arq-e-6 { --arq-camada: var(--arq-cromossomo); }
.arq-ue { font-size: 0.6rem; color: var(--acento); min-width: 1.6em; }
/* the tag of the term, tied by a string to the deep layers */
.arq-fio { position: absolute; left: -52%; top: 0; width: 152%; max-width: none; height: 100%; overflow: visible; pointer-events: none; }
.arq-fio path { fill: none; stroke: var(--suave); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 3 3; }
/* the pin in the deepest slide, where the string of the label ends */
.arq-prego { position: absolute; left: 0; top: 89.5%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--acento-2); box-shadow: 0 0 0 2px #fff; }
/* the lab label of the term */
.arq-placa {
  position: absolute; right: calc(100% + 0.3rem); top: 76%; max-width: 13rem; white-space: nowrap;
  font-family: var(--fonte-mono); font-size: 0.8rem; line-height: 1.35; letter-spacing: 0.02em;
  padding: 0.55rem 1.7rem 0.55rem 0.9rem; border-radius: 10px 4px 4px 10px;
  color: var(--arq-papel-tinta); background: var(--arq-papel); border: 1px solid rgba(26, 26, 46, 0.16);
  box-shadow: 0 12px 26px -10px rgba(26, 26, 46, 0.35);
  transform-origin: 88% 50%; transform: rotate(-5deg);
}
.arq-placa-furo { position: absolute; right: 0.55rem; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem; border-radius: 50%; background: var(--fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
/* particles rising through the medium, the way cells drift in a dish */
.arq-poeira { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.arq-poeira i { position: absolute; bottom: -4%; width: 6px; height: 6px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--arq-cromossomo) 70%, transparent); background: color-mix(in srgb, var(--arq-anatomia) 18%, transparent); opacity: 0; }
.arq-poeira i:nth-child(3n) { width: 9px; height: 9px; border-color: color-mix(in srgb, var(--arq-anatomia) 70%, transparent); }
.arq-poeira i:nth-child(1) { left: 12%; } .arq-poeira i:nth-child(2) { left: 26%; } .arq-poeira i:nth-child(3) { left: 39%; } .arq-poeira i:nth-child(4) { left: 51%; }
.arq-poeira i:nth-child(5) { left: 63%; } .arq-poeira i:nth-child(6) { left: 74%; } .arq-poeira i:nth-child(7) { left: 85%; } .arq-poeira i:nth-child(8) { left: 93%; }
@media (prefers-reduced-motion: no-preference) {
  .arq-poeira i { animation: arq-cair 9s linear infinite; }
  .arq-poeira i:nth-child(2n) { animation-duration: 12s; } .arq-poeira i:nth-child(3n) { animation-duration: 15s; }
  .arq-poeira i:nth-child(1) { animation-delay: -1s; } .arq-poeira i:nth-child(2) { animation-delay: -6s; } .arq-poeira i:nth-child(3) { animation-delay: -3s; }
  .arq-poeira i:nth-child(4) { animation-delay: -9s; } .arq-poeira i:nth-child(5) { animation-delay: -4.5s; } .arq-poeira i:nth-child(6) { animation-delay: -11s; }
  .arq-poeira i:nth-child(7) { animation-delay: -7.5s; } .arq-poeira i:nth-child(8) { animation-delay: -2s; }
  .arq-placa { animation: arq-balanco 7s ease-in-out infinite alternate; }
}
@keyframes arq-cair { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.85; } 50% { transform: translate(6px, -38vh); } 85% { opacity: 0.5; } 100% { transform: translate(-4px, -78vh); opacity: 0; } }
@keyframes arq-balanco { from { transform: rotate(-6.5deg); } to { transform: rotate(-3deg); } }
/* the house pause and an off-screen hero stop the motion */
html.is-pausado .arq-poeira i, html.is-pausado .arq-placa, .hero:not(.is-visivel-arq) .arq-poeira i, .hero:not(.is-visivel-arq) .arq-placa { animation-play-state: paused; }

/* ---------- block VI plate: the excavated keel ---------- */
html[data-pranchas="larga"] #cap-17 .prancha img { object-position: 50% 58%; }

/* ==========================================================
   FIG. 1 · four rulers
   ========================================================== */
.rg, .es { padding: clamp(0.75rem, 0.5rem + 1vw, 1.2rem); }
.rg { display: flex; flex-direction: column; gap: 1rem; }
.rg-reguas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.rg-regua {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
  min-height: 74px; padding: 0.7rem 0.8rem 1.4rem; text-align: left; cursor: var(--cursor-ativo, pointer);
  border-radius: 8px; border: 1px solid var(--linha-2); background: color-mix(in srgb, var(--fundo) 70%, transparent); color: var(--texto);
  transition: border-color 200ms ease, background 200ms ease;
}
.rg-regua:hover { border-color: color-mix(in srgb, var(--acento) 60%, transparent); }
.rg-regua[aria-pressed="true"] { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, var(--fundo)); }
.rg-regua:focus-visible, .rg-ficha:focus-visible, .es-tempo:focus-visible, .es-cirurgia:focus-visible, .es-marca:focus-visible { outline: 2px solid var(--acento-2); outline-offset: 3px; }
.rg-regua-nome { font-family: var(--fonte-titulo); font-size: 1.12rem; font-weight: 600; color: var(--titulo); line-height: 1.1; }
.rg-regua-estado { font-family: var(--fonte-mono); font-size: 0.68rem; color: var(--suave); }
.rg-regua.is-rachada .rg-regua-estado { color: var(--alerta); }
/* the photographic scale bar of an excavation: alternating segments */
.rg-escala { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.55rem; height: 6px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--acento) 0 12.5%, var(--arq-anatomia) 12.5% 25%); opacity: 0.85; }
.rg-racha { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem; height: 14px; width: calc(100% - 1.6rem); opacity: 0; overflow: visible; }
.rg-racha path { fill: none; stroke: var(--alerta); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: bevel; }
.rg-regua.is-rachada .rg-racha { opacity: 1; }
.rg-regua.is-rachada .rg-escala { clip-path: polygon(0 0, 54% 0, 50% 100%, 0 100%, 0 0, 57% 0, 100% 0, 100% 100%, 52% 100%); }
.rg-cabeca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding: 0 0.2rem; }
.rg-regra { font-family: var(--fonte-titulo); font-style: italic; font-size: var(--t-lg); color: var(--titulo); }
.rg-camada { font-family: var(--fonte-mono); font-size: 0.74rem; color: var(--acento-2); }
.rg-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0.8rem; }
.rg-ficha {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: auto; align-content: start; gap: 0.45rem 0.5rem; min-height: 9.5rem; text-align: left;
  padding: 0.9rem 1rem 0.9rem 1.9rem; border: 0; border-radius: 4px 12px 12px 4px; cursor: var(--cursor-ativo, pointer);
  background: var(--arq-papel); color: var(--arq-papel-tinta); border: 1px solid rgba(26, 26, 46, 0.14); box-shadow: 0 10px 22px -12px rgba(26, 26, 46, 0.4);
  transform: rotate(-0.6deg); transition: transform 300ms var(--ease);
}
.rg-ficha:nth-child(2n) { transform: rotate(0.7deg); }
.rg-ficha::before { content: ''; position: absolute; left: 0.7rem; top: 1.05rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fig-fundo); box-shadow: inset 0 0 0 1.5px var(--arq-papel-suave); }
.rg-ficha:not(.is-medida):hover { transform: rotate(0deg) translateY(-2px); }
.rg-ficha.is-medida { cursor: default; }
/* one row for the record number and the stamp; the rest spans the card */
.rg-ficha-num { grid-column: 1; grid-row: 1; align-self: center; font-family: var(--fonte-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--arq-papel-suave); }
.rg-ficha-d { grid-column: 1 / -1; font-size: 0.92rem; line-height: 1.35; font-weight: 500; }
.rg-ficha-medir, .rg-ficha-res { grid-column: 1 / -1; }
.rg-ficha-medir { margin-top: auto; align-self: end; justify-self: start; font-family: var(--fonte-mono); font-size: 0.72rem; padding: 0.15rem 0.6rem; border-radius: var(--pilula); border: 1px solid var(--arq-papel-suave); color: var(--arq-papel-tinta); }
.rg-ficha-res { display: none; flex-direction: column; gap: 0.2rem; margin-top: auto; font-size: 0.82rem; line-height: 1.35; }
.rg-linha-r { color: var(--arq-papel-suave); }
.rg-ficha.is-medida .rg-ficha-medir { display: none; }
.rg-ficha.is-medida .rg-ficha-res { display: flex; }
.rg-carimbo { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; font-family: var(--fonte-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.1rem 0.45rem; border: 2px solid currentColor; border-radius: 4px; color: var(--arq-musgo); transform: rotate(6deg); opacity: 0; }
.rg-ficha.is-medida .rg-carimbo { opacity: 1; }
.rg-ficha.is-discorda .rg-carimbo { color: var(--arq-ferrugem); }
.rg-ficha.is-etapa .rg-carimbo { color: var(--arq-papel-suave); }
.rg-ficha.is-discorda { box-shadow: 0 10px 22px -12px rgba(26, 26, 46, 0.4), inset 0 0 0 2px color-mix(in srgb, var(--arq-ferrugem) 55%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .rg-ficha.is-recem .rg-carimbo { animation: rg-carimbar 420ms var(--ease); }
  .rg-ficha:not(.is-medida) .rg-ficha-medir { animation: rg-chamar 2.6s ease-in-out infinite; }
}
@keyframes rg-carimbar { from { transform: rotate(6deg) scale(1.8); opacity: 0; } to { transform: rotate(6deg) scale(1); opacity: 1; } }
@keyframes rg-chamar { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--arq-papel-suave) 0%, transparent); } 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--arq-papel-suave) 25%, transparent); } }
html.is-pausado .rg-ficha-medir { animation: none; }
.rg-contador { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--suave); }
@media (max-width: 720px) { .rg-reguas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================
   FIG. 2 · layers in time
   ========================================================== */
.es { display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 2fr); gap: 1.4rem; align-items: start; }
.es-controle { position: sticky; top: calc(var(--barra-altura) + 1rem); display: flex; flex-direction: column; gap: 0.7rem; }
.es-rotulo { font-family: var(--fonte-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--suave); }
.es-tempo { width: 100%; accent-color: var(--acento); height: 36px; cursor: var(--cursor-ativo, pointer); }
.es-marcas { display: flex; flex-direction: column; gap: 0.25rem; }
.es-marca { text-align: left; font-family: var(--fonte-mono); font-size: 0.78rem; padding: 0.35rem 0.6rem; border-radius: 6px; border: 1px solid transparent; color: var(--fraco); background: none; cursor: var(--cursor-ativo, pointer); min-height: 32px; }
.es-marca.is-passada { color: var(--suave); }
.es-marca.is-atual { color: var(--titulo); border-color: var(--acento); background: color-mix(in srgb, var(--acento) 14%, transparent); }
.es-conta { font-family: var(--fonte-mono); font-size: 0.8rem; color: var(--texto); padding-top: 0.4rem; border-top: 1px solid var(--linha-2); }
.es-cirurgia { align-self: flex-start; min-height: 44px; padding: 0.5rem 1rem; border-radius: var(--pilula); border: 1px solid var(--acento-2); color: var(--titulo); background: color-mix(in srgb, var(--acento-2) 12%, transparent); cursor: var(--cursor-ativo, pointer); font-size: 0.86rem; }
.es-cirurgia[aria-pressed="true"] { background: color-mix(in srgb, var(--acento-2) 30%, transparent); }
.es-poco { position: relative; padding-left: 1.6rem; }
/* identity: a vein of another mineral that crosses every layer and never changes (chapter 7) */
.es-veia { position: absolute; left: 0; top: 0; bottom: 0; width: 1.1rem; margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--fonte-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-align: center; color: #1a1a2e;
  background: linear-gradient(180deg, #e9c27a, #d39a4c 60%, #e9c27a); border-radius: 3px; overflow: hidden; white-space: nowrap; }
.es-coluna { list-style: none; margin: 0; padding: 0; border: 1px solid var(--linha-2); border-radius: 6px; overflow: hidden; }
.es-banda {
  position: relative; display: grid; grid-template-columns: 2.1rem minmax(7rem, 0.9fr) minmax(0, 2fr) auto; gap: 0.2rem 0.7rem; align-items: center;
  min-height: 3.1rem; padding: 0.55rem 0.8rem; border-top: 1px dashed rgba(255, 255, 255, 0.35);
  color: #ffffff; background-color: var(--arq-argila); transition: background-color 500ms ease, color 500ms ease;
}
.es-banda:first-child { border-top: 0; }
.es-banda::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; }
.es-banda[data-estado="antes"]::before { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 7px); }
.es-banda[data-estado="mudou"] { background-color: var(--arq-osso); color: var(--arq-papel-tinta); }
.es-banda[data-estado="mudou"]::before { background: radial-gradient(circle, rgba(90, 60, 30, 0.5) 1px, transparent 1.4px) 0 0 / 10px 10px; }
.es-banda[data-estado="parte"] { background: linear-gradient(90deg, var(--arq-osso) 0 58%, #d9c6d0 58% 100%); color: var(--arq-papel-tinta); }
.es-banda[data-estado="fica"] { background-color: var(--arq-rocha); }
.es-banda[data-estado="fica"]::before { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 6px); }
.es-banda[data-estado="cirurgia"] { background-color: #e6ebf0; color: var(--arq-papel-tinta); outline: 1px dashed color-mix(in srgb, var(--acento-2) 70%, transparent); outline-offset: -4px; }
.es-ue { font-family: var(--fonte-mono); font-size: 0.66rem; opacity: 0.8; }
.es-nome { font-weight: 600; font-size: 0.9rem; position: relative; }
.es-txt { font-size: 0.84rem; line-height: 1.4; position: relative; }
.es-selo { position: relative; font-family: var(--fonte-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.1rem 0.45rem; border-radius: 4px; border: 1.5px solid currentColor; white-space: nowrap; }
.es-banda[data-estado="mudou"] .es-selo { color: var(--arq-musgo); }
.es-banda[data-estado="parte"] .es-selo { color: var(--arq-papel-tinta); }
.es-banda[data-estado="fica"] .es-selo { color: #c9d8e2; }
.es-banda[data-estado="cirurgia"] .es-selo { color: var(--acento-2); }
.es-banda[data-estado="antes"] .es-selo { color: #e3ecf2; }
/* the brush sweep when a layer changes */
.es-banda::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 244, 220, 0.55), transparent); transform: translateX(-100%); }
.es-banda.is-varrendo::after { animation: es-varrer 700ms ease-out; }
@keyframes es-varrer { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(100%); } }
@media (max-width: 760px) {
  .es { grid-template-columns: 1fr; }
  .es-controle { position: static; }
  .es-marcas { flex-direction: row; flex-wrap: wrap; }
  .es-banda { grid-template-columns: 1.8rem minmax(0, 1fr) auto; }
  .es-ue { grid-row: 1; grid-column: 1; }
  .es-nome { grid-row: 1; grid-column: 2; }
  .es-selo { grid-row: 1; grid-column: 3; }
  .es-txt { grid-row: 2; grid-column: 2 / 4; }
}

/* ---------- the end of every piece (these two and the ones in figuras.css): a line under the stage, never a layer over it.
   The final state (cracked rulers, changed layers) is what the reader has to see. ---------- */
.interativo .palco-resultado { position: static; inset: auto; z-index: auto; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0.6rem 1rem; padding: 0.2rem 0 0; text-align: left; background: none; }
.interativo .palco-resultado-linha { max-width: none; font-size: var(--t-lg); }
.es-resultado { grid-column: 1 / -1; }

/* ---------- performance pass (23 Nov 2026, qa/diag_celular.cjs) ---------- */
/* Chapters, sources and glossary far from the screen skip style and layout, as in Intersexo 2. The reading mode
   eases --m1 and --m2 on body, and those colours inherit: every frame of the ease restyled the whole page, about
   2,400 elements and 90 ms a frame in the phone profile (4x CPU), 8 s of style in one scroll of the essay. The
   remembered size (auto) keeps the scroll steady after the first visit; the estimates are the mean chapter at
   390 and 1185 px. Nothing inside a chapter paints outside its box (checked at both widths), so the paint
   containment cuts nothing. */
article.capitulo { content-visibility: auto; contain-intrinsic-size: auto 5800px; }
.fontes { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.glossario-lista { content-visibility: auto; contain-intrinsic-size: auto 4300px; }
@media (min-width: 900px) {
  article.capitulo { contain-intrinsic-size: auto 3800px; }
  .glossario-lista { contain-intrinsic-size: auto 2100px; }
}
/* For two frames of a language switch the whole essay is drawn (BP.switchLang): swapping the language under skipped
   chapters made the renderer fall in headless Edge, 24 Nov 2026. */
html.is-trocando-idioma article.capitulo, html.is-trocando-idioma .fontes, html.is-trocando-idioma .glossario-lista { content-visibility: visible; }
/* The bar is built by ensaio.js, after the first paint on a slow phone: in flow above the hero, it pushed the hero
   52 px down (a layout shift of 0.06). Its place is kept until it arrives, as padding on the body (a margin on the
   hero collapsed through the body, and then the body itself moved). */
html.js body:not(:has(> .barra)) { padding-top: var(--barra-altura); }
/* The Google fonts arrive after the first paint on a phone, and the hero's lines grew when EB Garamond, DM Sans and
   DM Mono replaced Georgia, Arial and Courier New (a layout shift of 0.05). Each system face is sized to its web
   font (advance width of a PT and EN sample and font box, measured by canvas in Edge with the fonts loaded, the
   method of tools/home-sobrio-20261121/font_metrics.cjs, whose DM Mono numbers came out the same). Where the system
   face is missing (Android), the stack falls through to the next family, as before. */
@font-face { font-family: "EB Garamond Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-style: normal; font-weight: 600 700; size-adjust: 78.64%; ascent-override: 128.44%; descent-override: 38.15%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Fallback"; src: local("Georgia"); font-style: normal; font-weight: 400 500; size-adjust: 89.20%; ascent-override: 113.23%; descent-override: 33.63%; line-gap-override: 0%; }
@font-face { font-family: "EB Garamond Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; font-weight: 400 600; size-adjust: 83.97%; ascent-override: 120.28%; descent-override: 35.73%; line-gap-override: 0%; }
/* DM Sans is variable with an optical-size axis: wider at text sizes than at display sizes (103.7 % of Arial at 17 px,
   92 % from 48 px up). Its faces are sized at 17 px, the size of the text it sets; measured at 100 px they kept the
   hero's thesis one line short of DM Sans, and the swap still added that line. */
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"), local("ArialMT"); font-style: normal; font-weight: 400 500; size-adjust: 103.17%; ascent-override: 95.96%; descent-override: 30.05%; line-gap-override: 0%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-style: normal; font-weight: 600 700; size-adjust: 99.05%; ascent-override: 99.95%; descent-override: 31.30%; line-gap-override: 0%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial Italic"), local("Arial-ItalicMT"); font-style: italic; font-weight: 400 600; size-adjust: 103.91%; ascent-override: 95.28%; descent-override: 29.83%; line-gap-override: 0%; }
/* in capitals DM Sans is narrower than Arial (90.5 % at the hero's 11.7 px, both languages): the hero's lines set in
   capitals (eyebrow and facts) take their own face, or the reserve broke the eyebrow in two lines */
@font-face { font-family: "DM Sans Caps Fallback"; src: local("Arial"), local("ArialMT"); font-style: normal; font-weight: 400 500; size-adjust: 90.46%; ascent-override: 109.44%; descent-override: 34.27%; line-gap-override: 0%; }
.hero-olho, .hero-fatos li { font-family: 'DM Sans', 'DM Sans Caps Fallback', 'Helvetica Neue', Arial, sans-serif; }
/* the hero's measures were in ch, the width of the zero of the face in use: with the reserve on screen they came out
   narrower and the thesis wrapped one line more on the desktop. The same widths in em, measured in the web fonts
   (46ch of DM Sans at the thesis' 18.6 px, 40ch of EB Garamond italic), hold with either face. */
.hero-tese { max-width: 31.65em; }
.hero-sub { max-width: 19.88em; }
@font-face { font-family: "DM Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"); font-style: normal; font-weight: 400 500; size-adjust: 99.98%; ascent-override: 99.02%; descent-override: 31.01%; line-gap-override: 0%; }

/* ---------- print: the static versions carry the argument ---------- */
@media print {
  .arq-mock, .arq-coluna { display: none !important; }
  article.capitulo, .fontes, .glossario-lista { content-visibility: visible; }
}
