/* Site da UBL. Layout: revista de capa única; números grandes em condensada, leitura em serifada, rótulos em sans.
   Cada seção carrega sua própria cor (--ed), definida no conteúdo. */
:root {
  --milk: #f7f6f3;      /* fundo: branco-leite neutro */
  --paper: #ffffff;     /* superfícies */
  --ink: #1c1c22;       /* texto */
  --muted: #5d5d66;     /* texto secundário */
  --line: #e2e0dc;      /* filetes */
  --indigo: #4652a0;    /* azul do texto do logo da UBL */
  --leaf: #8fb9e6;      /* azul-claro do "L" do logo */
  --on-ed: #ffffff;
  --ed-lift: 0%;        /* clareia as cores das edições no tema escuro */
  --shade: rgba(20, 20, 22, .62);

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "Manrope", "Segoe UI", system-ui, sans-serif;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2.125rem; --s4: 3rem; --s5: 4.5rem;
  --maxw: 1240px;
  --read: 40rem;
}
/* Site sempre claro (decisão do cliente: sem fundo escuro/azul, mesmo com o computador no modo escuro). */
:root { color-scheme: light; }

/* Modelos de cores, escolhidos no painel admin (atributo data-tema no <html>). "ubl" é o padrão acima. */
:root[data-tema="leite"] { --milk: #f7f6f3; --paper: #ffffff; --ink: #1a1a1c; --muted: #5c5c62; --line: #e2e0dc; --indigo: #3e4095; --leaf: #6bbe50; }
:root[data-tema="pasto"] { --milk: #f3f5ef; --paper: #ffffff; --ink: #1b2418; --muted: #56604f; --line: #dde3d6; --indigo: #2e6b34; --leaf: #c48a1a; }
:root[data-tema="cerrado"] { --milk: #f8f2ea; --paper: #fffdf9; --ink: #2a1d14; --muted: #6b5a4b; --line: #e8dccd; --indigo: #a5481f; --leaf: #4f7a2a; }
:root[data-tema="ipe"] { --milk: #faf7ee; --paper: #ffffff; --ink: #231f2b; --muted: #5f5868; --line: #e7e1d3; --indigo: #6b3fa0; --leaf: #d8a400; }
:root[data-tema="creme"] { --milk: #f6efe2; --paper: #fffaf1; --ink: #2b2118; --muted: #6e6253; --line: #e6dac6; --indigo: #8a4b1f; --leaf: #2f6b4f; }
:root[data-tema="ceu"] { --milk: #eef4fa; --paper: #ffffff; --ink: #102033; --muted: #4f6176; --line: #d6e2ee; --indigo: #1565c0; --leaf: #f2a900; }
:root[data-tema="branco"] { --milk: #ffffff; --paper: #f6f6f6; --ink: #141414; --muted: #555555; --line: #e6e6e6; --indigo: #c8102e; --leaf: #141414; }
:root[data-tema="areia"] { --milk: #efe8dc; --paper: #f8f4ec; --ink: #26221c; --muted: #6b6457; --line: #ddd3c2; --indigo: #3b5b2e; --leaf: #b5651d; }
:root[data-tema="grafite"] { --milk: #151516; --paper: #1e1e20; --ink: #f0efe9; --muted: #a9a8a2; --line: #323235; --indigo: #e8c547; --leaf: #e8c547; --on-ed: #151516; --ed-lift: 45%; color-scheme: dark; }
:root[data-tema="grafite"] .gate button { color: var(--milk); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 var(--s1)/1.6 var(--f-body);
  font-optical-sizing: auto; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap, .mast__in, .cover__in, .feat__in, .legado__in, .foot__in {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.edc { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }

.eyebrow {
  font: 700 var(--s-1)/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.pill {
  display: inline-block; padding: .3em .7em; border-radius: 99px; letter-spacing: .08em;
  background: color-mix(in oklab, var(--ed, var(--indigo)), white var(--ed-lift)); color: var(--on-ed);
}
.sec-h {
  font: 800 clamp(1.6rem, 2.6vw, 2rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em;
  margin: 0 0 1.5rem; text-wrap: balance;
  display: flex; align-items: center; gap: 1rem;
}
.sec-h::after { content: ""; flex: 1; height: 3px; background: var(--ink); }

/* ---------- senha ---------- */
.is-locked body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--indigo);
  background-image: radial-gradient(circle at 20% 15%, rgba(255,255,255,.14) 0 18%, transparent 19%), radial-gradient(circle at 85% 80%, rgba(255,255,255,.1) 0 22%, transparent 23%);
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.gate[hidden] { display: none !important; }
.gate form {
  width: min(26rem, 100%); background: var(--paper); color: var(--ink); border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); text-align: center;
}
.gate img { width: 96px; margin: 0 auto 1rem; }
.gate h1 { font: 800 var(--s3)/1 var(--f-display); text-transform: uppercase; margin: 0 0 .35rem; }
.gate p { font: 500 var(--s0)/1.5 var(--f-ui); color: var(--muted); margin: 0 0 1.25rem; }
.gate label { display: block; text-align: left; font: 700 var(--s-1) var(--f-ui); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.gate input {
  width: 100%; font: 500 1.125rem var(--f-ui); padding: .8rem 1rem; border-radius: 10px;
  border: 2px solid var(--line); background: var(--milk); color: var(--ink);
}
.gate button {
  margin-top: 1rem; width: 100%; font: 800 1rem var(--f-ui); letter-spacing: .04em; padding: .9rem; border: 0; border-radius: 10px;
  background: var(--indigo); color: var(--paper); cursor: pointer;
}
.gate .gate__erro { color: #c0392b; font-weight: 700; margin: .75rem 0 0; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* ---------- cabeçalho ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.mast {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; padding-block: .4rem; }
.mast__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.5rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.mast__brand b { color: var(--indigo); font-weight: 900; }
.mast__nav { display: flex; gap: .25rem; flex-wrap: wrap; font: 800 var(--s0) var(--f-ui); }
.mast__nav a { text-decoration: none; padding: .45rem .7rem; border-radius: 8px; }
.mast__nav a:hover { background: var(--milk); }
.mast__nav a[aria-current="page"] { background: color-mix(in oklab, var(--ed), white var(--ed-lift)); color: var(--on-ed); }
.mast__more { color: var(--muted); font-weight: 600; }

/* ---------- capa ---------- */
.cover { background: var(--paper); border-bottom: 1px solid var(--line); }
.cover__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cover__text { min-width: 0; }
.cover__h {
  font: 900 clamp(2.1rem, 4.4vw, 3.9rem)/.95 var(--f-display); text-transform: uppercase; margin: 0 0 1.25rem; text-wrap: balance; letter-spacing: -.005em;
}
.cover__dek { font: 400 italic clamp(1.15rem, 1.6vw, 1.4rem)/1.45 var(--f-body); color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }
.cover__lines { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.cover__lines a { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cover__yr { font: 900 2.6rem/1 var(--f-display); color: color-mix(in oklab, var(--ed), white var(--ed-lift)); transition: transform .2s; }
.cover__lt { font: 600 var(--s1)/1.3 var(--f-body); }
.cover__lt small { display: block; font: 700 .72rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cover__lines a:hover .cover__yr { transform: translateX(6px); }
.cover__img { margin: 0; min-width: 0; }
.cover__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 4px; }
.cover__img figcaption, .ed__credit { font: 500 var(--s-1)/1.4 var(--f-ui); color: var(--muted); margin-top: .6rem; }

/* ---------- apresentação ---------- */
.intro { display: grid; grid-template-columns: 11rem minmax(0, var(--read)); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); justify-content: center; }
.intro__stamp {
  width: 11rem; height: 11rem; border-radius: 50%; border: 3px solid var(--indigo); color: var(--indigo);
  display: grid; place-content: center; text-align: center; transform: rotate(-8deg); align-self: start;
  font-family: var(--f-display); text-transform: uppercase; line-height: .95;
}
.intro__stamp span:first-child { font-size: 3.6rem; font-weight: 900; }
.intro__stamp span:nth-child(2) { font-size: 1.5rem; font-weight: 800; }
.intro__stamp small { font: 700 .62rem/1.3 var(--f-ui); letter-spacing: .1em; margin-top: .4rem; padding-inline: 1.2rem; }
.intro__body { min-width: 0; }
.intro__body p { margin: 0 0 1.1em; }
.lede::first-letter { float: left; font: 900 4.6em/.8 var(--f-display); margin: .06em .1em 0 0; color: var(--indigo); }

/* ---------- destaques de edição ---------- */
.feat { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--milk); }
.feat:nth-of-type(odd) { background: var(--paper); }
.feat__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 7vw, 6rem); align-items: center; }
/* ano em cima da foto, sem sobrepor o texto */
.feat__media { min-width: 0; display: grid; gap: .6rem; }
.feat--flip .feat__media { order: 2; }
.feat__year { font: 900 clamp(3.2rem, 6vw, 5rem)/.85 var(--f-display); letter-spacing: -.01em; color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.feat--flip .feat__year { text-align: right; }
.feat__img { position: relative; display: block; border-radius: 4px; overflow: hidden; box-shadow: 14px 14px 0 color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.feat--flip .feat__img { box-shadow: -14px 14px 0 color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.feat__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.feat__img:hover img { transform: scale(1.03); }
.feat__text { position: relative; z-index: 1; min-width: 0; }
.feat__h { font: 900 clamp(1.8rem, 3.1vw, 2.8rem)/.98 var(--f-display); text-transform: uppercase; margin: 0 0 1rem; text-wrap: balance; }
.feat__h a { text-decoration: none; }
.feat__h a:hover { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.feat__dek { font-size: var(--s1); margin: 0 0 .6rem; max-width: 36rem; }
.feat__meta { font: 600 var(--s-1) var(--f-ui); color: var(--muted); margin: 0 0 1.5rem; }
.feat__nums { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.feat__nums b { display: block; font: 900 2.2rem/1 var(--f-display); color: color-mix(in oklab, var(--ed), white var(--ed-lift)); font-variant-numeric: tabular-nums; }
.feat__nums span { display: block; font: 600 .8rem/1.3 var(--f-ui); color: var(--muted); margin-top: .3rem; }
.btn {
  display: inline-flex; gap: .5rem; align-items: center; text-decoration: none;
  font: 800 var(--s0) var(--f-ui); padding: .85rem 1.3rem; border-radius: 99px;
  background: var(--ink); color: var(--milk); transition: background .2s, transform .2s;
}
.btn:hover { background: color-mix(in oklab, var(--ed), white var(--ed-lift)); color: var(--on-ed); transform: translateY(-2px); }

/* ---------- linha do tempo ---------- */
.tl { padding-block: clamp(3rem, 6vw, 5rem); }
.tl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.tl__list li { padding: 1rem 1rem 1.25rem 0; border-bottom: 1px solid var(--line); font: 500 .95rem/1.45 var(--f-ui); position: relative; }
.tl__list time { display: block; font: 800 1.35rem/1.2 var(--f-display); letter-spacing: .02em; margin-bottom: .3rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl__list li.is-ed time { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.tl__list li.is-ed::before { content: ""; position: absolute; top: -3px; left: 0; width: 3rem; height: 3px; background: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.tl__list a { font-weight: 700; }

/* ---------- tabelas ---------- */
.tbl { overflow-x: auto; margin: 1.75rem 0; border-top: 3px solid var(--ink); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: collapse; font: 500 .9rem/1.45 var(--f-ui); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); }
.tbl thead th { font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl tbody th { font-weight: 700; }
.tbl table { min-width: 34rem; }
.comp { padding-block: clamp(3rem, 6vw, 5rem); }
.comp__intro { max-width: var(--read); margin: 0; }
.tbl--comp table { min-width: 46rem; }
.tbl--comp thead th { font: 900 1.8rem/1 var(--f-display); letter-spacing: 0; text-transform: none; }
.tbl--comp thead th a { text-decoration: none; color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.tbl--comp tbody th { width: 11rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- legado ---------- */
.legado { background: var(--ink); color: var(--milk); }
.legado__in { padding-block: clamp(3rem, 7vw, 6rem); }
.legado .eyebrow { color: inherit; opacity: .8; }
.legado p { text-align: justify; hyphens: auto; font: 400 clamp(1.35rem, 2.6vw, 2.1rem)/1.35 var(--f-body); margin: 0; max-width: 54rem; text-wrap: pretty; }
.legado__in--img { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.legado__in--img p { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.legado__fig { margin: 0; }
.legado__fig img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 4px solid #fff; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55); }
.legado__fig figcaption { margin-top: .7rem; font: 500 .85rem/1.45 var(--f-ui); color: inherit; opacity: .85; }
@media (max-width: 760px) { .legado__in--img { grid-template-columns: 1fr; } }

/* ---------- fontes ---------- */
.fontes { padding-block: clamp(3rem, 6vw, 5rem); }
.fontes ul { columns: 2 22rem; column-gap: 3rem; margin: 0; padding: 0; list-style: none; font: 500 .88rem/1.5 var(--f-ui); color: var(--muted); }
.fontes li { break-inside: avoid; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.fontes a { color: var(--ink); }

/* ---------- edição ---------- */
/* abertura da edição: foto limpa, sem texto por cima; título e dados logo abaixo */
.ed__hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.ed__photo { margin: 0; }
.ed__photo img { width: 100%; height: clamp(15rem, 48vw, 38rem); object-fit: cover; object-position: center 40%; }
.ed__photo figcaption { max-width: var(--maxw); margin-inline: auto; font: 500 var(--s-1)/1.4 var(--f-ui); color: var(--muted); padding-block: .6rem 0; }
.ed__head {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem) max(16px, env(safe-area-inset-right, 0px)) clamp(2rem, 4vw, 3rem) max(16px, env(safe-area-inset-left, 0px));
}
.ed__headtext { min-width: 0; }
.ed__year { font: 900 clamp(3.8rem, 9vw, 7.5rem)/.8 var(--f-display); letter-spacing: -.02em; color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.ed__h { font: 900 clamp(1.7rem, 3.2vw, 2.7rem)/1 var(--f-display); text-transform: uppercase; margin: 0 0 1rem; max-width: 28ch; text-wrap: balance; }
.ed__dek { font: italic 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.45 var(--f-body); max-width: 44rem; margin: 0 0 1.5rem; color: var(--muted); }
.ed__meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; padding-top: 1rem; border-top: 2px solid var(--ink); }
.ed__meta dt { font: 800 .7rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ed__meta dd { margin: .2rem 0 0; font: 600 .95rem/1.35 var(--f-ui); max-width: 22rem; }
@media (max-width: 760px) { .ed__head { grid-template-columns: minmax(0, 1fr); } }
.ed__grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(0, 20rem); gap: clamp(2rem, 5vw, 5rem); padding-block: 2.5rem 4rem; justify-content: center; align-items: start; }
.ed__side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 2rem; }

.art { min-width: 0; }
.art > p { margin: 0 0 1.15em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.art .lede { font-size: 1.28rem; }
.art .lede::first-letter { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.art__h {
  font: 900 clamp(1.4rem, 2.2vw, 1.75rem)/1.05 var(--f-display); text-transform: uppercase; margin: 2.75rem 0 1rem; text-wrap: balance;
  padding-top: 1rem; border-top: 3px solid color-mix(in oklab, var(--ed), white var(--ed-lift));
}
.art em { font-style: italic; }
.art > p > em:first-child { font-weight: 600; }
.art a { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.art__note { font: 500 .85rem/1.5 var(--f-ui); color: var(--muted); margin: -.25rem 0 1.5rem; padding-left: .9rem; border-left: 2px solid var(--line); }
.art__list { margin: 0 0 1.4em; padding-left: 1.2rem; }
.art__list li { margin-bottom: .55em; padding-left: .3rem; }
.art__list li::marker { color: color-mix(in oklab, var(--ed), white var(--ed-lift)); }
.art__list--num li::marker { font: 900 1.1em var(--f-display); }

.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.zoom:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.fig { margin: 2rem auto; }
.fig img, .gal__item img { width: 100%; border-radius: 3px; background: var(--line); }
.fig figcaption, .gal figcaption { font: 500 .84rem/1.45 var(--f-ui); color: var(--muted); margin-top: .55rem; }
.fig--wide { max-width: 100%; }
.fig--small { max-width: 100%; }
.fig--portrait { max-width: 100%; }
.gal { margin: 2rem auto; }
.gal__grid { display: grid; gap: .75rem; }
.gal--2 .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gal--3 .gal__grid, .gal--many .gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gal__item { margin: 0; min-width: 0; }
.gal:not(.gal--portrait) .gal__item img { aspect-ratio: 4 / 3; object-fit: cover; }
.gal--many .gal__item:first-child { grid-column: span 2; grid-row: span 2; }
.gal--many .gal__item:first-child img { height: 100%; aspect-ratio: auto; }
.gal--many .gal__item:first-child { display: flex; flex-direction: column; }
.gal--many .gal__item:first-child .zoom { flex: 1; min-height: 0; }
.gal__cap { margin-top: .7rem; }
/* tamanho escolhido no admin (sempre centralizado e dentro da coluna do texto) */
.fig.tam--pequena, .gal.tam--pequena { max-width: 40%; }
.fig.tam--media, .gal.tam--media { max-width: 60%; }
.fig.tam--grande, .gal.tam--grande { max-width: 80%; }
.fig.tam--cheia, .gal.tam--cheia { max-width: 100%; }
.fig figcaption { text-align: left; }

.nutri {
  border: 3px solid var(--ink); background: var(--paper); padding: .7rem .9rem .8rem;
  font-family: var(--f-ui); color: var(--ink);
}
.nutri__head { border-bottom: 10px solid var(--ink); padding-bottom: .4rem; margin-bottom: .2rem; }
.nutri__t { display: block; font: 900 1.7rem/1 var(--f-display); text-transform: uppercase; }
.nutri__s { display: block; font: 600 .8rem var(--f-ui); margin-top: .25rem; }
.nutri dl { margin: 0; }
.nutri__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--ink); }
.nutri__row:last-child { border-bottom-width: 5px; }
.nutri dt { font: 600 .82rem/1.3 var(--f-ui); }
.nutri dd { margin: 0; font: 900 1.45rem/1 var(--f-display); white-space: nowrap; color: color-mix(in oklab, var(--ed), white var(--ed-lift)); font-variant-numeric: tabular-nums; }
.nutri__foot { font: 600 .74rem/1.4 var(--f-ui); margin: .55rem 0 0; }

.pq { margin: 0; padding: 0; }
.pq p { font: italic 500 1.45rem/1.3 var(--f-body); margin: 0 0 .6rem; text-wrap: balance; }
.pq p::after { content: "\201D"; display: block; text-align: right; font: 900 4.5rem/.6 var(--f-display); color: color-mix(in oklab, var(--ed), white var(--ed-lift)); margin-top: .8rem; height: 1.7rem; }
.pq p::before { content: "\201C"; display: block; font: 900 4.5rem/.6 var(--f-display); color: color-mix(in oklab, var(--ed), white var(--ed-lift)); margin-bottom: .3rem; }
.pq cite { font: 700 .78rem/1.4 var(--f-ui); font-style: normal; color: var(--muted); letter-spacing: .03em; }

.ed__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-block: 0 4rem; }
.ed__nav a { text-decoration: none; padding: 1.25rem 1.4rem; border: 2px solid var(--line); border-radius: 6px; display: grid; gap: .2rem; background: var(--paper); transition: border-color .2s; }
.ed__nav a:hover { border-color: color-mix(in oklab, var(--ed, var(--indigo)), white var(--ed-lift)); }
.ed__nav small { font: 700 .74rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ed__nav b { font: 900 2.6rem/1 var(--f-display); color: color-mix(in oklab, var(--ed, var(--indigo)), white var(--ed-lift)); }
.ed__nav span { font-size: 1rem; }
.ed__next { text-align: right; }

/* ---------- rodapé ---------- */
.foot { background: var(--ink); color: var(--milk); }
.foot__in { padding-block: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; gap: .9rem; align-items: center; }
.foot__brand img { background: #fff; border-radius: 50%; padding: 4px; }
.foot__brand strong { display: block; font: 900 1.6rem/1 var(--f-display); text-transform: uppercase; }
.foot__brand span { font: 500 .85rem var(--f-ui); opacity: .75; }
.foot p { font: 500 .9rem/1.5 var(--f-ui); opacity: .9; margin: 0; max-width: 40rem; }
.foot__side { display: grid; gap: .9rem; max-width: 40rem; }
.foot__cred { font-size: .8rem !important; opacity: .75 !important; }
.foot__fotos { display: inline-block; margin-top: .35rem; font-style: italic; }
.foot__real { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot__parceiro { display: block; height: 48px; width: auto; background: #fff; border-radius: 12px; padding: 7px 12px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.foot p a { color: inherit; }
.foot__ct { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1.4rem; text-decoration: none; white-space: nowrap; }
.foot__ct:last-child { margin-right: 0; }
.foot__ct span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor, transparent 60%); }
.foot__ct:hover span { text-decoration-color: currentColor; }
.foot__ct svg { width: 18px; height: 18px; fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- lightbox ---------- */
.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
.lb::backdrop { background: rgba(6, 7, 20, .9); }
.lb figure { margin: 0; display: grid; gap: .6rem; justify-items: center; }
.lb img { max-height: 84vh; width: auto; border-radius: 3px; }
.lb figcaption { color: #e9ebf8; font: 500 .9rem/1.45 var(--f-ui); max-width: 60rem; text-align: center; }
.lb__close { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); right: calc(env(safe-area-inset-right, 0px) + 12px); font: 800 1rem var(--f-ui); background: #fff; color: #141738; border: 0; border-radius: 99px; padding: .55rem 1rem; cursor: pointer; }

.err { padding-block: 4rem; }
.loading { min-height: 60vh; display: grid; place-items: center; font: 700 1rem var(--f-ui); color: var(--muted); }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .cover__in, .feat__in, .ed__grid { grid-template-columns: minmax(0, 1fr); }
  .feat--flip .feat__media { order: 0; }
  .feat--flip .feat__year { text-align: left; }
  .ed__side { position: static; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
  .tl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig.tam--pequena, .gal.tam--pequena { max-width: 70%; }
  .fig.tam--media, .gal.tam--media, .fig.tam--grande, .gal.tam--grande { max-width: 100%; }
}
@media (max-width: 640px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__stamp { width: 8.5rem; height: 8.5rem; }
  .intro__stamp span:first-child { font-size: 2.7rem; }
  .intro__stamp span:nth-child(2) { font-size: 1.1rem; }
  .intro__stamp small { font-size: .5rem; }
  .tl__list { grid-template-columns: minmax(0, 1fr); }
  .feat__nums { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .feat__nums li { display: flex; gap: .8rem; align-items: baseline; }
  .feat__nums span { margin: 0; }
  .gal--3 .gal__grid, .gal--many .gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal--many .gal__item:first-child { grid-row: auto; }
  .ed__nav { grid-template-columns: minmax(0, 1fr); }
  .ed__next { text-align: left; }
  .mast__brand span { font-size: 1.25rem; }
  .mast__more { display: none; }
  .fig--portrait, .fig--wide, .fig--small { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- cores do logo: azul como base, verde nos detalhes ---------- */
.mast { border-bottom: 3px solid var(--leaf); }
.sec-h::after { background: linear-gradient(90deg, var(--indigo) 0 40%, var(--leaf) 40% 100%); }
.cover__lines { border-top-color: var(--indigo); }
.cover .eyebrow, .intro .sec-h, .tl .sec-h, .comp .sec-h, .fontes .sec-h { color: var(--indigo); }
.cover .eyebrow::before { content: ""; width: 1.6rem; height: 4px; border-radius: 2px; background: var(--leaf); }
.intro__stamp { border-color: var(--leaf); color: var(--indigo); }
.feat__nums { border-top-color: var(--leaf); }
.tl__list, .tbl { border-top-color: var(--indigo); }
.tl__list li:not(.is-ed)::before { content: ""; position: absolute; top: -3px; left: 0; width: 1.5rem; height: 3px; background: var(--leaf); }
.legado { background: var(--indigo); color: #fff; }
.legado .eyebrow { color: var(--leaf); opacity: 1; }
.foot { border-top: 6px solid var(--leaf); }
.btn:hover { background: var(--leaf); color: #10173d; }
.pq p::before, .pq p::after { color: var(--leaf); }
.art__list li::marker { color: var(--leaf); }
.art__note { border-left-color: var(--leaf); }
.nutri__head { border-bottom-color: var(--indigo); }
.nutri__row:last-child { border-bottom-color: var(--indigo); }
.ed__meta { border-top-color: var(--leaf); border-top-width: 3px; }
.ed__hero { border-bottom: 3px solid var(--leaf); }

/* logo medalha: tamanho fixo e sem fundo */
.mast__brand img { height: auto; max-width: 40vw; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.foot__brand img { background: none; padding: 0; border-radius: 0; }

/* ---------- UBL: variações quando um bloco opcional está vazio ---------- */
.mast__brand span { font-size: clamp(1.05rem, 2.1vw, 1.5rem); }
.cover__in--sem-foto { grid-template-columns: minmax(0, 1fr); max-width: 60rem; }
.intro--sem-selo { grid-template-columns: minmax(0, var(--read)); }
.ed__grid--solo { grid-template-columns: minmax(0, var(--read)); }
.feat--sem-foto .feat__in { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.feat--sem-foto.feat--flip .feat__media { order: 0; }
.feat--sem-foto .feat__year { text-align: left; }
.ed__nav b { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.foot__brand img { width: auto; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
@media (max-width: 640px) {
  .feat--sem-foto .feat__in { grid-template-columns: minmax(0, 1fr); }
}
.legado p + p { margin-top: 1em; }
/* ---------- vídeos (MP4) ---------- */
.fig--video video { display: block; width: 100%; height: auto; border-radius: 3px; background: #000; aspect-ratio: auto 16 / 9; }
.fig--abertura { margin-top: 0; }
.fig.tam--pequena.fig--video, .fig.tam--media.fig--video { min-width: 18rem; }
