/* ==========================================================================
   Chamamento de Artigos Jurídicos · Edital nº 2/VPC/2026 · AJURIS
   Direção: "publicação jurídica de prestígio, em versão digital".

   Ordem: 1 Tokens · 2 Base · 3 Layout · 4 Componentes (landing) ·
          5 Formulário · 6 Utilitários · 7 Movimento · 8 Impressão

   Tema único: claro (papel marfim). Superfícies em três planos para o
   cabeçalho, as faixas e os blocos se destacarem do fundo.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
    color-scheme: light;

    /* Superfícies — fundo papel · plano branco (cabeçalho, faixas, cartões) · plano quente (notas, rodapé) */
    --bg:            #F6F4EF;
    --surface-1:     #FFFFFF;
    --surface-2:     #ECE6DB;
    --line:          rgb(13 13 13 / .16);   /* hairline */
    --line-strong:   rgb(13 13 13 / .32);
    --line-ui:       #857F75;   /* contorno de controles e marcadores: ≥3,2:1 em papel, branco e quente (WCAG 1.4.11) */
    --header-shadow: 0 1px 0 rgb(13 13 13 / .04), 0 8px 20px -14px rgb(13 13 13 / .28);

    /* Texto — 3 níveis (AA sobre --bg e --surface-*) */
    --text-1:        #111111;   /* 17,6:1 · 17,9:1 */
    --text-2:        #4A4A4A;   /*  8,1:1 · 11,4:1 */
    --text-3:        #656565;   /* ≥4,8:1 (inclusive sobre --surface-2) · 6,6:1 */

    /* Marca — vermelho institucional, uso pontual */
    --brand-mark:    #F20505;                         /* só marcas gráficas, nunca texto */
    --brand-fill:    #C8161D;   /* botões: branco sobre ele = 5,9:1 */
    --brand-fill-hover: #A31218;
    --brand-text:    #B3141A;   /* texto/links: 6,3:1 · 5,8:1 */
    --on-brand:      #FFFFFF;

    /* Laranja — restrito a estado/destaque */
    --accent:        #F26E22;                         /* pontos de estado, fios */
    --accent-ui:     #C8541A;   /* laranja para indicadores de estado sobre fundo claro: 4,4:1 no branco, ≥3:1 sobre o trilho */
    --accent-text:   #A3470F;   /* 5,5:1 · 7,1:1 */

    --success:       #2E7D32;
    --error:         #B3141A;
    --focus:         #1F4FD1;   /* azul só no foco: distinto de erro e marca */

    --tint-brand:    #F8ECEC;
    --tint-accent:   #F7EEE7;
    --tint-success:  #EAF3EA;

    /* Tipografia — escala modular 1,25 com clamp() */
    --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
    --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --step--2: .75rem;                                            /* 12px  */
    --step--1: .8125rem;                                          /* 13px  */
    --step-0:  clamp(1rem, .975rem + .1vw, 1.0625rem);            /* 16–17 */
    --step-1:  clamp(1.125rem, 1.08rem + .2vw, 1.25rem);          /* 18–20 */
    --step-2:  clamp(1.25rem, 1.14rem + .5vw, 1.5625rem);         /* 20–25 */
    --step-3:  clamp(1.5rem, 1.3rem + .9vw, 1.953rem);            /* 24–31 */
    --step-4:  clamp(1.75rem, 1.42rem + 1.5vw, 2.441rem);         /* 28–39 · h2 */
    --step-5:  clamp(2.125rem, 1.6rem + 2.4vw, 3.052rem);         /* 34–49 */
    --step-6:  clamp(2.375rem, 1.55rem + 3.6vw, 4.5rem);          /* 38–72 · h1 */

    /* Tamanhos funcionais fora da escala de títulos (texto de apoio e interface) */
    --fs-micro:   .6875rem;   /* 11px · referências, botão pequeno, subtítulo da marca */
    --fs-label:   .75rem;     /* 12px · etiquetas em caixa alta, botões, status */
    --fs-caption: .8125rem;   /* 13px · legendas, metadados, mensagens de campo */
    --fs-sm:      .9375rem;   /* 15px · texto secundário: tabelas, menu, rótulos */

    /* Espaçamento entre letras e entrelinha */
    --track-label:   .14em;   /* toda caixa alta */
    --track-display: -.02em;  /* serifa ≥ h2 */
    --track-title:   -.01em;  /* serifa em subtítulos */
    --lh-display: 1.06; --lh-heading: 1.12; --lh-title: 1.2; --lh-snug: 1.3; --lh-ui: 1.4; --lh-body: 1.65;

    /* Espaço — escala de 8px */
    --s-1: .25rem; --s-2: .5rem; --s-3: 1rem; --s-4: 1.5rem; --s-5: 2rem;
    --s-6: 3rem;   --s-7: 4rem;  --s-8: 6rem; --s-9: 8rem;

    --r-1: 4px;
    --r-2: 8px;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .04);
    --shadow-2: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px rgb(0 0 0 / .12);

    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --dur-1: 200ms;
    --dur-2: 320ms;
    --dur-3: 400ms;

    --header-h: 60px;
    --measure: 68ch;
    --container: 1240px;
}

/* ---------- 2. Base ------------------------------------------------------ */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-1);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: var(--lh-body);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--text-1); margin: 0; }
h1, h2, .serif { font-family: var(--font-serif); font-optical-sizing: auto; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; font-size: var(--step-1); line-height: var(--lh-snug); }
p { margin: 0 0 var(--s-3); color: inherit; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
small, .small { font-size: var(--step--1); }
em, i { font-style: italic; }

a {
    color: var(--brand-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
    transition: text-decoration-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
a:hover { color: var(--brand-text); text-decoration-color: currentColor; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }

::selection { background: color-mix(in srgb, var(--brand-fill) 22%, transparent); }

.skip-link {
    position: absolute; left: var(--s-3); top: -60px; z-index: 2000;
    padding: var(--s-2) var(--s-3); border-radius: var(--r-1);
    background: var(--text-1); color: var(--bg); text-decoration: none; font-weight: 600;
    transition: top var(--dur-1) var(--ease-out);
}
.skip-link:focus { top: var(--s-2); color: var(--bg); }

/* ---------- 3. Layout ---------------------------------------------------- */

.container { max-width: var(--container); padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.measure { max-width: var(--measure); }

/* Documento: índice fixo à esquerda + capítulos (≥1200px) */
.doc { display: block; }
@media (min-width: 1200px) {
    .doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--s-7); }
}
.doc > * { min-width: 0; }

/* ---------- 4. Componentes (landing) ------------------------------------ */

/* 4.1 Progresso de leitura */
.read-progress {
    position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1040;
    background: var(--brand-mark); transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}

/* 4.2 Cabeçalho */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: color-mix(in srgb, var(--surface-1) 94%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--header-shadow); border-bottom-color: transparent; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }

/* Assinatura: símbolo oficial intacto · fio de 1px · nome serifado · etiqueta em caixa alta */
.brand { display: inline-flex; align-items: center; gap: .875rem; color: var(--text-1); text-decoration: none; }
.brand:hover { color: var(--text-1); }
.brand svg { width: 22px; height: auto; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.brand:hover svg { transform: translateY(-1px); }
.ajuris-mark .t-side { fill: var(--accent); }
.ajuris-mark .t-main { fill: var(--brand-mark); }
.brand-rule { width: 1px; height: 30px; background: var(--line-strong); flex: none; }
.brand-text { display: grid; gap: .1875rem; }
.brand-name {
    display: block; font-family: var(--font-serif); font-weight: 600; font-size: var(--step-0); line-height: 1;
    letter-spacing: .18em; margin-right: -.18em; /* compensa o espaçamento da última letra */
}
.brand-sub {
    display: block; font: 600 var(--fs-micro)/1.25 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3);
    transition: color var(--dur-1) var(--ease-out);
}
.brand:hover .brand-sub { color: var(--text-2); }
@media (max-width: 374.98px) { .brand-rule { display: none; } .brand { gap: .625rem; } }

.site-nav { display: flex; align-items: center; gap: var(--s-4); }
.site-nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn-cta):not(.btn-ghost) {
    display: block; padding: .5rem .625rem; font: 600 var(--fs-label)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase;
    color: var(--text-2); text-decoration: none; border-radius: var(--r-1);
    box-shadow: inset 0 -1px 0 transparent; transition: color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.site-nav a:not(.btn-cta):not(.btn-ghost):hover { color: var(--text-1); }
.site-nav a[aria-current] { color: var(--text-1); box-shadow: inset 0 -1px 0 var(--brand-fill); border-radius: 0; }
.site-nav .btn-sm { flex: none; white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-nav { gap: var(--s-3); }
    .site-nav a:not(.btn-cta):not(.btn-ghost) { padding: .5rem .3125rem; letter-spacing: .12em; }
}

.nav-toggle {
    display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--line-ui); border-radius: var(--r-1); background: transparent; color: var(--text-1);
}

@media (max-width: 991.98px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column; align-items: stretch;
        gap: var(--s-3); padding: var(--s-3) 20px var(--s-4); background: var(--surface-1); box-shadow: var(--header-shadow); border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; }
    .site-nav a:not(.btn-cta):not(.btn-ghost) { padding: .625rem 0; font-size: var(--fs-label); line-height: 1.4; border-bottom: 1px solid var(--line); border-radius: 0; }
    .site-nav a[aria-current] { box-shadow: inset 2px 0 0 var(--brand-fill); padding-left: var(--s-3); }
}

/* 4.3 Botões */
/* Linguagem editorial: caixa alta espaçada (como as etiquetas), cantos de 2px, fio de 1px.
   Principal com seta fina que avança no hover; secundário em fio que escurece. */
.btn-cta, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
    min-height: 50px; padding: 0 1.625rem; border-radius: 2px; border: 1px solid transparent;
    font: 600 var(--fs-label)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase;
    text-decoration: none; cursor: pointer; text-align: center;
    transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.btn-cta i, .btn-ghost i { font-size: 1rem; line-height: 1; letter-spacing: 0; }
.btn-cta { background: var(--brand-fill); color: var(--on-brand); }
.btn-cta::after {
    content: "\F138"; font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1; letter-spacing: 0; text-transform: none;
    transition: transform var(--dur-2) var(--ease-out);
}
.btn-cta:hover { background: var(--brand-fill-hover); color: var(--on-brand); }
.btn-cta:hover::after { transform: translateX(4px); }
.btn-cta.is-loading::after, .btn-cta.no-arrow::after { display: none; }
.btn-ghost { background: transparent; color: var(--text-1); border-color: var(--line-ui); }
.btn-ghost:hover { color: var(--text-1); border-color: var(--text-1); background: color-mix(in srgb, var(--text-1) 4%, transparent); }
.btn-sm { min-height: 36px; padding: 0 1rem; font-size: var(--fs-micro); letter-spacing: var(--track-label); gap: .5rem; }
.btn-sm i, .btn-sm::after { font-size: .875rem; }
.btn-cta:disabled, .btn-cta[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (max-width: 575.98px) { .btn-cta, .btn-ghost { padding: 0 1.125rem; } }
.btn-link {
    display: inline-flex; align-items: center; gap: .375rem; padding: 0; border: 0; background: none;
    font: 600 var(--fs-sm)/var(--lh-ui) var(--font-sans); color: var(--brand-text); cursor: pointer;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 60%, transparent);
}
.btn-link:hover { text-decoration-color: currentColor; }

/* 4.4 Eyebrow, títulos e lead */
.eyebrow {
    display: block; margin-bottom: var(--s-3);
    font: 600 var(--fs-label)/var(--lh-ui) var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--brand-text);
}
.eyebrow--muted { color: var(--text-3); }
.lead-editorial { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.5; color: var(--text-1); max-width: 60ch; }
.text-2 { color: var(--text-2) !important; }
.text-3 { color: var(--text-3) !important; }

/* 4.5 Referência "item x.x": chip sobrescrito com dica */
.ref {
    position: relative; display: inline-block; margin-left: .2em; padding: 0 .3em;
    font: 600 var(--fs-micro)/1.45 var(--font-sans); font-variant-numeric: tabular-nums; letter-spacing: .02em;
    vertical-align: .35em; color: var(--text-3); text-decoration: none; text-transform: none;
    border: 1px solid var(--line-ui); border-radius: 3px; white-space: nowrap;
    transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.ref::before { content: "item "; font-weight: 500; }
.ref:hover, .ref:focus-visible { color: var(--brand-text); border-color: currentColor; }
/* A dica só existe no layout durante hover/foco: oculta, não gera rolagem horizontal.
   Perto das bordas o JS aplica .ref--start / .ref--end para alinhá-la para dentro. */
@keyframes tip-in { from { opacity: 0; transform: translate(var(--tip-x, -50%), 4px); } to { opacity: 1; transform: translate(var(--tip-x, -50%), 0); } }
.ref::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 20;
    display: none; transform: translate(var(--tip-x, -50%), 0); padding: .375rem .5rem; border-radius: var(--r-1);
    background: var(--text-1); color: var(--bg); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0; line-height: var(--lh-snug);
    white-space: nowrap; pointer-events: none;
}
.ref--start::after { left: 0; --tip-x: 0; }
.ref--end::after { left: auto; right: 0; --tip-x: 0; }
@media (hover: hover) {
    .ref:hover::after { display: block; animation: tip-in var(--dur-1) var(--ease-out); }
}
.ref:focus-visible::after { display: block; animation: tip-in var(--dur-1) var(--ease-out); }

/* 4.6 Hero */
.hero { position: relative; overflow: hidden; padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .hero { padding: var(--s-8) 0 var(--s-8); } }
.hero .container { position: relative; }
.hero .row { position: relative; z-index: 1; }
.hero h1 { font-size: var(--step-6); font-weight: 600; line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: 17ch; margin-bottom: var(--s-3); text-wrap: balance; }
.hero-subtitle { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: var(--step-3); line-height: var(--lh-title); color: var(--text-2); margin-bottom: var(--s-4); }
.hero-lead { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.5; color: var(--text-2); max-width: 58ch; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: var(--s-4); }
@media (max-width: 575.98px) {
    .hero { padding-top: var(--s-5); }
    .hero-lead { font-size: var(--step-0); margin-bottom: var(--s-4); }
    .hero-actions .btn-cta, .hero-actions .btn-ghost { flex: 1 1 auto; }
}

/* Marca do hero (≥992px): o topo da faixa superior do triângulo central fica na linha do eyebrow
   ("Edital de Chamamento nº…") e o desenho fica centrado sobre o bloco do prazo.
   A coluna lateral ocupa a altura toda da linha (prazo embaixo) e serve de referência.
   --wm-cap: topo das maiúsculas do eyebrow a partir do topo da coluna (Inter 12px/1,4 ≈ 4px).
   33/1980: distância do topo do viewBox até a borda externa do traço do triângulo central. */
.hero-watermark {
    --wm-w: clamp(240px, 24vw, 340px);
    --wm-cap: 4px;
    position: absolute; z-index: 0; top: calc(var(--wm-cap) - var(--wm-w) * 33 / 1980);
    left: calc(var(--bs-gutter-x) * .5 + var(--s-5)); right: calc(var(--bs-gutter-x) * .5); margin-inline: auto;
    width: var(--wm-w); max-width: calc(100% - var(--bs-gutter-x) - var(--s-5)); height: auto; pointer-events: none;
}
@media (min-width: 992px) {
    .hero-side { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
}
/* Traço nas cores da marca (~1,7px a 340px) e preenchimento sutil que surge após o desenho */
.hero-watermark polygon { stroke-width: 10; stroke-linejoin: miter; fill-opacity: 0; }
.hero-watermark .wm-l, .hero-watermark .wm-r { stroke: color-mix(in srgb, var(--accent) 72%, transparent); fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.hero-watermark .wm-main { stroke: color-mix(in srgb, var(--brand-mark) 70%, transparent); fill: color-mix(in srgb, var(--brand-mark) 7%, transparent); }
.hero-watermark .wm-glow { fill: none; }
@media (max-width: 991.98px) { .hero-watermark { display: none; } }

/* Coluna lateral do hero: prazo */
.hero-aside { display: grid; gap: var(--s-4); }
@media (min-width: 992px) { .hero-aside { padding-left: var(--s-5); border-left: 1px solid var(--line); } }

/* Bloco do prazo: conteúdo centrado no cartão (etiqueta, contagem, data e atalho de calendário no mesmo eixo) */
.deadline { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5) var(--s-4); box-shadow: var(--shadow-1); }
.deadline-value { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .25rem .5rem; margin: var(--s-3) 0 var(--s-2); font-family: var(--font-serif); color: var(--text-1); }
.deadline-value .num { font-size: var(--step-5); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums lining-nums; letter-spacing: var(--track-display); }
.deadline-value .unit { font-size: var(--step-0); color: var(--text-2); }
.deadline-value .sep { color: var(--text-3); margin: 0 .125rem; }
.deadline-date { font-size: var(--step--1); color: var(--text-2); margin-bottom: var(--s-3); }

/* Status: linha editorial (sem cápsula), ponto com pulso lento quando aberto */
.status-pill {
    display: inline-flex; align-items: center; gap: .625rem;
    font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.status-pill .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.status-pill.is-aberta .dot { background: var(--success); }
.status-pill.is-aberta .dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--success);
    opacity: 0; animation: status-pulse 2.4s var(--ease-out) infinite;
}
@keyframes status-pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.status-pill.is-antes .dot { background: var(--accent-ui); }
.status-pill.is-encerrada .dot { background: var(--error); }
@media (prefers-reduced-motion: reduce) { .status-pill .dot::after { display: none; } }

/* 4.7 Ficha técnica */
.fact-sheet { background: var(--surface-1); border-bottom: 1px solid var(--line); }
.fact-sheet dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 768px) { .fact-sheet dl { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: var(--s-4) var(--s-3) var(--s-4) 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) {
    .fact { padding: var(--s-5) var(--s-4); border-top: 0; border-left: 1px solid var(--line); }
    .fact:first-child { border-left: 0; padding-left: 0; }
}
.fact:nth-child(-n+2) { border-top: 0; }
.fact dt { font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-2); }
.fact dd { margin: 0; font-family: var(--font-serif); font-size: var(--step-3); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); font-variant-numeric: oldstyle-nums; }
.fact dd small { display: block; margin-top: .25rem; font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: 400; letter-spacing: 0; line-height: var(--lh-ui); color: var(--text-2); }

/* 4.8 Índice lateral */
.toc { display: none; }
@media (min-width: 1200px) {
    .toc { display: block; position: sticky; top: calc(var(--header-h) + var(--s-6)); align-self: start; padding-top: var(--s-8); }
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
    display: grid; grid-template-columns: 1.75rem 1fr; padding: .4375rem 0 .4375rem var(--s-3); margin-left: -1px;
    font-size: var(--fs-caption); line-height: var(--lh-snug); color: var(--text-3); text-decoration: none; border-left: 2px solid transparent;
    transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.toc a span { font-family: var(--font-serif); font-variant-numeric: lining-nums tabular-nums; }
.toc a:hover { color: var(--text-1); }
.toc a[aria-current] { color: var(--text-1); border-left-color: var(--brand-fill); font-weight: 500; }

/* 4.9 Capítulos */
.chapter { padding: var(--s-7) 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
@media (min-width: 992px) { .chapter { padding: 5rem 0; } }
.chapter-head { margin-bottom: var(--s-5); max-width: 44rem; }
.chapter-num {
    display: block; margin-bottom: var(--s-3); font-family: var(--font-serif); font-weight: 400;
    font-size: var(--step-5); line-height: 1; letter-spacing: var(--track-display);
    color: color-mix(in srgb, var(--brand-text) 55%, var(--text-3)); font-variant-numeric: lining-nums tabular-nums;
}
.chapter-head h2 { font-size: var(--step-4); font-weight: 600; line-height: var(--lh-heading); letter-spacing: var(--track-display); margin-bottom: var(--s-3); text-wrap: balance; }
.chapter-head p { color: var(--text-2); max-width: 60ch; }
.chapter h3 { margin-bottom: var(--s-2); }
.subhead { font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--s-3); }

/* 4.10 Notas laterais (antes: callouts) */
.note { padding: var(--s-4) 0 0; border-top: 1px solid var(--line-strong); }
.note h3 { font-size: var(--step-0); margin-bottom: var(--s-1); }
.note p { color: var(--text-2); }

/* 4.11 Público-alvo */
.audience-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .audience-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.audience-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); line-height: 1.4; }
.audience-list i { font-size: 1.25rem; color: var(--text-3); flex: none; width: 1.5rem; text-align: center; }

/* 4.12 Cronograma */
.timeline { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; grid-template-columns: 1fr; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.tl-step { position: relative; padding: 0 0 var(--s-5) var(--s-5); }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-ui); }
.tl-state { display: block; font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-1); }
.tl-title { font-weight: 600; font-size: var(--step-0); line-height: var(--lh-snug); margin-bottom: .125rem; }
.tl-when { color: var(--text-2); font-size: .9375rem; font-variant-numeric: oldstyle-nums; }
.tl-step.is-done .tl-dot { background: var(--text-3); border-color: var(--text-3); }
.tl-step.is-done .tl-title { color: var(--text-2); }
.tl-step.is-current .tl-dot { background: var(--accent-ui); border-color: var(--accent-ui); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-ui) 22%, transparent); }
.tl-step.is-current .tl-state { color: var(--accent-text); }
@media (min-width: 768px) {
    .timeline { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-4); }
    .timeline::before { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
    .tl-step { padding: var(--s-5) 0 0; }
    .tl-dot { top: 0; }
}
.timeline-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.timeline-foot p { color: var(--text-3); font-size: var(--step--1); margin: 0; }

/* 4.13 Regras */
.rules { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-6); }
@media (min-width: 768px) { .rules { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.rule { padding-top: var(--s-3); border-top: 1px solid var(--line-strong); }
.rule p { color: var(--text-2); }

.editor-note { background: var(--surface-2); border-left: 3px solid var(--brand-fill); border-radius: 0 var(--r-2) var(--r-2) 0; padding: var(--s-5) var(--s-4); }
@media (min-width: 768px) { .editor-note { padding: var(--s-5) var(--s-6); } }
.editor-note .eyebrow { color: var(--text-3); }
.editor-note h3 { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); margin-bottom: var(--s-4); }
.editor-note .cols { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .editor-note .cols { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }

.check-list, .x-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .x-list li { position: relative; padding-left: 1.625rem; margin-bottom: .625rem; color: var(--text-1); }
.check-list li::before, .x-list li::before { position: absolute; left: 0; top: .05em; font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1.5; }
.check-list li::before { content: "\F633"; color: var(--success); }
.x-list li::before { content: "\F659"; color: var(--error); }

/* 4.14 Requisitos: ficha técnica */
.spec-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec-table caption { caption-side: top; padding: 0 0 var(--s-3); text-align: left; }
.spec-table th, .spec-table td { padding: .8125rem 0; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; padding-right: var(--s-3); font-weight: 600; color: var(--text-1); }
.spec-table td { color: var(--text-2); font-variant-numeric: oldstyle-nums; }

.structure { counter-reset: st; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.structure li { counter-increment: st; display: grid; grid-template-columns: 2.25rem 1fr; padding: .8125rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.structure li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-serif); color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; }

.deliverables { display: grid; grid-template-columns: 1fr; gap: var(--s-4); margin: var(--s-6) 0; padding: var(--s-4) 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .deliverables { grid-template-columns: repeat(3, 1fr); } }
.deliverables div { display: flex; gap: .75rem; }
.deliverables i { font-size: 1.375rem; color: var(--text-3); line-height: 1.2; }
.deliverables strong { display: block; }
.deliverables span { color: var(--text-2); font-size: var(--fs-sm); }

/* Checklist "Seu artigo está pronto?": contagem em serifa (como o prazo do hero), barra com um
   segmento por item (--ck-total, definido no HTML), itens em grupos e caixa de seleção própria
   que fica verde ao conferir (mesmo verde das etapas concluídas do formulário). */
.checklist {
    --ck-gap: 3px;                                                     /* vão entre os segmentos da barra */
    --ck-hover: color-mix(in srgb, var(--text-1) 4%, transparent);    /* fundo do item sob o cursor */
    background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4);
}
@media (min-width: 768px) { .checklist { padding: var(--s-5); } }
@media (max-width: 575.98px) { .checklist { padding: var(--s-4) var(--s-3); } }
.checklist-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-3) var(--s-5); }
.checklist-intro { flex: 1 1 20rem; min-width: 0; }
.checklist-intro .eyebrow { margin-bottom: var(--s-2); }
.checklist-head h3 { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); margin-bottom: var(--s-2); }
.checklist-intro p { font-size: var(--fs-sm); color: var(--text-2); }
.checklist-score { flex: none; display: grid; justify-items: end; gap: .5rem; text-align: right; }
.checklist-score-num {
    font-family: var(--font-serif); font-size: var(--step-5); font-weight: 600; line-height: .85; letter-spacing: var(--track-display);
    font-variant-numeric: lining-nums tabular-nums; color: var(--text-1); transition: color var(--dur-2) var(--ease-out);
}
.checklist-score-total { font-size: .5em; font-weight: 400; letter-spacing: 0; color: var(--text-3); margin-left: .1em; }
.checklist-score-label { font: 600 var(--fs-micro)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
@media (max-width: 575.98px) {
    .checklist-score { grid-auto-flow: column; align-items: baseline; justify-items: start; gap: .625rem; }
    .checklist-score-num { font-size: var(--step-4); }
}
/* A barra passa 1 vão além da largura para o último segmento terminar rente à borda */
.checklist-bar {
    width: calc(100% + var(--ck-gap)); height: 6px; margin: var(--s-4) 0 var(--s-5);
    background: color-mix(in srgb, var(--text-1) 11%, transparent);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--ck-total, 12) - var(--ck-gap)), transparent 0 calc(100% / var(--ck-total, 12)));
            mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--ck-total, 12) - var(--ck-gap)), transparent 0 calc(100% / var(--ck-total, 12)));
}
.checklist-bar span { display: block; height: 100%; width: 0; background: var(--brand-fill); transition: width var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out); }
.checklist.is-complete .checklist-bar span { background: var(--success); }
.checklist.is-complete .checklist-score-num { color: var(--success); }

.checklist-group + .checklist-group { margin-top: var(--s-4); }
.checklist-group-title {
    display: flex; align-items: center; gap: .75rem; margin: 0 0 var(--s-1);
    font: 600 var(--fs-label)/var(--lh-ui) var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3);
    transition: color var(--dur-2) var(--ease-out);
}
.checklist-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Grupo todo conferido: título em verde com a marca de conferido */
.checklist-group:not(:has([data-checklist-item]:not(:checked))) .checklist-group-title { color: var(--success); }
.checklist-group:not(:has([data-checklist-item]:not(:checked))) .checklist-group-title::before {
    content: "\F633"; font-family: "bootstrap-icons"; font-size: .9375rem; line-height: 1; letter-spacing: 0; margin-right: -.375rem;
}
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist-item {
    display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: .875rem; align-items: start;
    margin: 0 calc(-1 * var(--s-2)); padding: .625rem var(--s-2); border-radius: var(--r-1);
    font-size: var(--fs-sm); line-height: 1.5; color: var(--text-1); cursor: pointer;
    transition: background-color var(--dur-1) var(--ease-out);
}
.checklist-item:hover { background: var(--ck-hover); }
.checklist-item input {
    -webkit-appearance: none; appearance: none; width: 1.25rem; height: 1.25rem; margin: .0625rem 0 0; flex: none; cursor: pointer;
    border: 1.5px solid var(--line-ui); border-radius: 6px; background: var(--surface-1) no-repeat center / 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25' d='M3.5 8.5l3 3 6-7'/%3e%3c/svg%3e");
    transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), background-size var(--dur-2) var(--ease-out);
}
.checklist-item:hover input:not(:checked) { border-color: var(--text-2); }
.checklist-item input:checked { background-color: var(--success); border-color: var(--success); background-size: .875rem; }
.checklist-item input:focus-visible { outline-offset: 2px; border-radius: 6px; }
.checklist-item input:checked + span { color: var(--text-2); }

.checklist-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem var(--s-4); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.checklist-reset {
    display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .5rem; margin-right: -.5rem; border: 0; border-radius: var(--r-1);
    background: none; color: var(--text-2); font: 500 var(--fs-sm)/var(--lh-ui) var(--font-sans); cursor: pointer;
    transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.checklist-reset:hover { color: var(--text-1); background: var(--ck-hover); }
/* Dentro de uma etapa do formulário: mesmo fundo dos blocos de autor e título abaixo do da etapa */
.form-step .checklist { --ck-hover: var(--surface-1); background: var(--bg); margin-bottom: var(--s-4); }
.form-step .checklist-head h3 { font-size: var(--step-2); }

/* 4.15 Critérios */
.criteria { counter-reset: none; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .criteria { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.criteria li { display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); line-height: 1.4; }
.roman { font-family: var(--font-serif); font-weight: 300; font-size: var(--step-3); line-height: 1; color: var(--text-3); }

/* 4.16 Publicação: mockup da obra */
.book-figure { margin: 0; }
.book {
    position: relative; aspect-ratio: 2 / 3; width: min(100%, 240px); margin-inline: auto;
    display: flex; flex-direction: column; padding: 28px 22px 22px 30px;
    background: #F4EFE6; color: #111111; border-radius: 2px 6px 6px 2px;
    box-shadow: inset 8px 0 0 #E4DCCD, inset 9px 0 0 rgb(0 0 0 / .06), 0 1px 2px rgb(0 0 0 / .08), 0 18px 36px -18px rgb(0 0 0 / .35);
}
.book-org { font: 700 .5625rem/1 var(--font-sans); letter-spacing: .24em; color: #6B6B6B; }
.book-rule { width: 28px; height: 2px; background: #C8161D; margin: 18px 0 14px; }
.book-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -.01em; }
.book-sub { font-family: var(--font-serif); font-style: italic; font-size: .8125rem; color: #4A4A4A; margin-top: 8px; }
.book-foot { margin-top: auto; font: 500 .5625rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: #6B6B6B; }
.book-figure figcaption { margin-top: var(--s-3); text-align: center; font-size: var(--fs-caption); color: var(--text-3); }

.pub-list { margin: 0; }
.pub-list div { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.pub-list div:first-child { border-top: 1px solid var(--line); }
.pub-list dt { font-weight: 600; margin-bottom: .125rem; }
.pub-list dd { margin: 0; color: var(--text-2); }

/* 4.17 Edital */
.doc-card { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; padding: var(--s-4); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-2); transition: border-color var(--dur-1) var(--ease-out); }
.doc-card:hover { border-color: var(--line-strong); }
.doc-info { display: flex; gap: var(--s-3); align-items: center; }
.doc-icon { display: grid; place-items: center; width: 48px; height: 60px; flex: none; border: 1px solid var(--line-strong); border-radius: 2px 10px 2px 2px; font: 600 var(--fs-micro)/1 var(--font-sans); letter-spacing: var(--track-label); color: var(--brand-text); }
.doc-info h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); }
.doc-meta { font-size: var(--step--1); color: var(--text-3); font-variant-numeric: tabular-nums; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* 4.18 Perguntas frequentes */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
    padding: var(--s-3) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--step-1); line-height: var(--lh-snug);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "\F64D"; font-family: "bootstrap-icons"; font-weight: 400; font-size: 1rem; color: var(--text-3);
    transition: transform var(--dur-1) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-text); }
.faq .answer { padding: 0 0 var(--s-4); color: var(--text-2); max-width: var(--measure); }

/* 4.19 Encerramento (CTA final) */
.closing { padding: var(--s-7) 0 var(--s-8); }
.closing-box {
    display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-4);
    background: var(--surface-1); border: 1px solid var(--line); border-top: 2px solid var(--brand-fill); border-radius: 0 0 var(--r-2) var(--r-2);
}
@media (min-width: 992px) { .closing-box { grid-template-columns: 1.4fr 1fr; align-items: end; padding: var(--s-6); gap: var(--s-6); } }
.closing-box h2 { font-size: var(--step-5); font-weight: 600; line-height: var(--lh-display); letter-spacing: var(--track-display); margin-bottom: var(--s-3); }
.closing-box p { color: var(--text-2); max-width: 52ch; }
.closing-side { display: grid; gap: var(--s-3); }
@media (min-width: 992px) { .closing-side { padding-left: var(--s-5); border-left: 1px solid var(--line); } }
.closing-deadline { font-family: var(--font-serif); font-size: var(--step-2); line-height: var(--lh-title); font-variant-numeric: oldstyle-nums; }

/* 4.20 Rodapé */
/* Rodapé claro: superfície quente, separada da página por um fio */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line-strong); padding: var(--s-7) 0 var(--s-5); font-size: var(--fs-sm); color: var(--text-2); }
.site-footer h2 { font-family: var(--font-sans); font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text-1); }
.footer-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--step--1); }

/* 4.21 Páginas de texto (privacidade) */
.page-head { padding: var(--s-6) 0 var(--s-4); }
.page-head h1 { font-size: var(--step-5); font-weight: 600; line-height: var(--lh-display); letter-spacing: var(--track-display); margin-bottom: var(--s-3); }
.page-head p { color: var(--text-2); max-width: 60ch; }
.prose { max-width: var(--measure); padding-bottom: var(--s-8); }
.prose h2 { font-size: var(--step-3); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); margin: var(--s-6) 0 var(--s-3); }
.prose ul { padding-left: 1.25rem; margin-bottom: var(--s-3); }
.prose li { margin-bottom: .375rem; }

/* ---------- 5. Formulário /submissao ------------------------------------- */

.form-shell { display: grid; grid-template-columns: 1fr; gap: var(--s-4); align-items: start; padding-bottom: var(--s-8); }
@media (min-width: 992px) { .form-shell { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); } }
.form-shell > * { min-width: 0; }

/* Stepper */
.stepper { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
@media (max-width: 991.98px) {
    .stepper { top: var(--header-h); z-index: 20; margin: 0 -20px; padding: .75rem 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
}
.stepper-progress { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--s-2); font-variant-numeric: tabular-nums; }
.stepper-progress strong { color: var(--text-1); font-weight: 600; }
.stepper-bar { height: 3px; background: rgb(13 13 13 / .2); overflow: hidden; margin-bottom: var(--s-4); }
.stepper-bar span { display: block; height: 100%; width: 0; background: var(--brand-fill); transition: width var(--dur-2) var(--ease-out); }
@media (max-width: 991.98px) { .stepper-bar { margin-bottom: 0; } }
.steps { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
@media (max-width: 991.98px) { .steps, .stepper .aside-note { display: none; } }
.steps button {
    display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: center; width: 100%;
    padding: .5rem 0; border: 0; background: none; text-align: left; color: var(--text-3); font: 500 var(--fs-sm)/var(--lh-snug) var(--font-sans); cursor: pointer;
}
.steps button:disabled { cursor: default; }
.steps .n {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--line-ui); font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-3); background: var(--bg);
}
.steps li.is-current button { color: var(--text-1); font-weight: 600; }
.steps li.is-current .n { border-color: var(--brand-fill); color: var(--brand-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-fill) 16%, transparent); }
.steps li.is-done button { color: var(--text-2); }
.steps li.is-done .n { background: var(--success); border-color: var(--success); color: #FFFFFF; font-size: 0; }
.steps li.is-done .n::before { content: "\F633"; font-family: "bootstrap-icons"; font-size: .875rem; }
.aside-note { font-size: var(--step--1); color: var(--text-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.aside-note p { margin-bottom: .5rem; }

.draft-status { display: flex; gap: .5rem; align-items: baseline; font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--s-3); min-height: 1.4em; }
.draft-status i { color: var(--success); }
.draft-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); align-items: center; padding: .875rem var(--s-3); margin-bottom: var(--s-4); background: var(--tint-success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); border-radius: var(--r-1); font-size: .9375rem; }

/* Etapas */
.form-step { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); margin-bottom: var(--s-4); }
@media (min-width: 768px) { .form-step { padding: var(--s-5); } }
.js .is-wizard .form-step:not(.is-active) { display: none; }
.form-step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.form-step-head h2 { font-size: var(--step-3); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); }
.form-step-head h2:focus { outline: none; }
.form-step-head .hint { font-size: var(--step--1); color: var(--text-3); }
.step-nav { display: none; justify-content: space-between; gap: .75rem; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.js .step-nav { display: flex; }
.step-nav .btn-cta { margin-left: auto; }

/* Campos (sobre Bootstrap) */
.form-label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .375rem; color: var(--text-1); }
.form-label .req { color: var(--brand-text); margin-left: 2px; }
.form-label .opt { color: var(--text-3); font-weight: 400; }
.form-control, .form-select {
    min-height: 48px; padding: .625rem .875rem; font-size: 1rem; color: var(--text-1);
    background-color: var(--surface-1); border: 1px solid var(--line-ui); border-radius: var(--r-1);
    transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.form-control::placeholder { color: var(--text-3); opacity: 1; }
.form-control:hover, .form-select:hover { border-color: var(--text-3); }
.form-control:focus, .form-select:focus {
    color: var(--text-1); background-color: var(--surface-1); border-color: var(--brand-fill);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-fill) 20%, transparent);
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M3 6l5 5 5-5'/%3e%3c/svg%3e");
}
.form-select option { background: var(--surface-1); color: var(--text-1); }
textarea.form-control { min-height: 128px; line-height: 1.55; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--error); background-image: none; padding-right: .875rem; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 20%, transparent); }
.invalid-feedback { display: none; margin-top: .375rem; font-size: var(--fs-caption); color: var(--error); }
.invalid-feedback:not(:empty) { display: block; }
.invalid-feedback::before { content: "\F33B"; font-family: "bootstrap-icons"; margin-right: .375rem; }
.field-meta { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: .375rem; font-size: var(--step--1); color: var(--text-3); }
.count { font-variant-numeric: tabular-nums; }
.count.is-over { color: var(--error); font-weight: 600; }

.author { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); margin-bottom: var(--s-3); background: var(--bg); }
.author-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.author-title { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-weight: 600; }
.author-tag { font: 600 var(--fs-micro)/var(--lh-ui) var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); }
.btn-remove { display: inline-flex; align-items: center; gap: .375rem; padding: .375rem .5rem; border: 0; border-radius: var(--r-1); background: none; color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; cursor: pointer; }
.btn-remove:hover { color: var(--error); background: var(--tint-brand); }
.btn-add {
    display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .875rem;
    border: 1px dashed var(--line-ui); border-radius: var(--r-2); background: transparent; color: var(--brand-text); font-weight: 600; cursor: pointer;
    transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.btn-add:hover { border-color: var(--brand-text); background: var(--tint-brand); }
.btn-add[hidden] { display: none; }

.dropzone {
    position: relative; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-3);
    border: 1px dashed var(--line-ui); border-radius: var(--r-2); background: var(--bg);
    transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand-text); background: var(--tint-brand); }
.dropzone:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.dropzone.is-filled { border-style: solid; border-color: var(--success); background: var(--tint-success); }
.dropzone.is-invalid { border-color: var(--error); }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-icon { font-size: 1.75rem; line-height: 1; color: var(--text-3); flex: none; }
.dropzone.is-filled .dz-icon { color: var(--success); }
.dz-title { font-weight: 600; word-break: break-word; }
.dz-file { font-size: var(--step--1); color: var(--text-2); }
/* Arquivos do artigo: as duas áreas de upload lado a lado com a mesma altura.
   Cada coluna vira "display: contents" e seus itens caem numa grade de 2 colunas:
   rótulos na 1ª linha, áreas de upload na 2ª (mesma altura, mesmo que a dica de uma
   quebre em mais linhas); erros e avisos do PDF vêm abaixo, sem desalinhar as áreas. */
@media (min-width: 768px) {
    .files-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; column-gap: var(--bs-gutter-x, 1rem); row-gap: 0; margin: 0; }
    .files-grid > .files-col { display: contents; }
    .files-grid > .files-col:first-child > * { grid-column: 1; }
    .files-grid > .files-col:last-child > * { grid-column: 2; }
    .files-grid .form-label { align-self: end; }
}
.dropzone-sm { padding: var(--s-3); }
.dropzone-sm .dz-icon { font-size: 1.5rem; }

/* Arquivos do artigo: dois cartões de envio que não se confundem — número (vira ✓ verde ao anexar),
   selo do formato, nome da versão, etiqueta "com / sem o nome dos autores" (laranja no PDF, como o
   guia de anonimização logo abaixo) e botão de escolha visível. */
.files-head { margin: var(--s-5) 0 var(--s-4); }
.files-head h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); margin-bottom: var(--s-2); }
.files-head p { font-size: var(--fs-sm); color: var(--text-2); max-width: 64ch; }
.files-label { display: flex; align-items: center; gap: .625rem; }
.files-num {
    display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: var(--text-1); color: var(--bg); font: 600 var(--fs-label)/1 var(--font-sans); font-variant-numeric: tabular-nums;
    transition: background-color var(--dur-2) var(--ease-out);
}
.files-col:has(.dropzone.is-filled) .files-num { background: var(--success); font-size: 0; }
.files-col:has(.dropzone.is-filled) .files-num::before { content: "\F633"; font-family: "bootstrap-icons"; font-size: .8125rem; line-height: 1; color: #FFFFFF; }

.dropzone-doc {
    flex-direction: column; justify-content: center; text-align: center; gap: var(--s-3);
    min-height: 17rem; padding: var(--s-5) var(--s-4);
    border: 1.5px dashed color-mix(in srgb, var(--brand-fill) 45%, var(--line-ui)); background: var(--bg);
}
.dropzone-doc:hover, .dropzone-doc.is-drag { border-color: var(--brand-fill); background: var(--tint-brand); }
.dropzone-doc.is-filled { border-style: solid; border-color: var(--success); background: var(--tint-success); }
.dropzone-doc.is-invalid { border-color: var(--error); }
@media (max-width: 767.98px) { .dropzone-doc { min-height: 0; padding: var(--s-4) var(--s-3); } }

/* Selo do formato: folha com canto dobrado, linhas de texto e a extensão numa faixa */
.dz-badge {
    position: relative; display: flex; align-items: flex-end; justify-content: center; flex: none;
    width: 3.25rem; height: 4.125rem; padding-bottom: .5rem;
    border: 1.5px solid var(--line-strong); border-radius: 3px 12px 3px 3px;
    background:
        linear-gradient(var(--line-strong) 0 0) .5rem .625rem / 1.125rem 2px no-repeat,
        linear-gradient(var(--line) 0 0) .5rem 1rem / 1.75rem 2px no-repeat,
        linear-gradient(var(--line) 0 0) .5rem 1.375rem / 1.5rem 2px no-repeat,
        var(--surface-1);
    box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 10px 20px -14px rgb(0 0 0 / .4);
    transition: transform var(--dur-2) var(--ease-out);
}
.dz-badge > span { padding: .25rem .375rem; border-radius: 2px; background: var(--text-1); color: #FFFFFF; font: 700 var(--fs-micro)/1 var(--font-sans); letter-spacing: .08em; }
.dropzone-doc--pdf .dz-badge > span { background: var(--brand-fill); }
.dz-badge::after {
    content: "\F633"; position: absolute; right: -.625rem; bottom: -.5rem; display: grid; place-items: center;
    width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--success); color: #FFFFFF; box-shadow: 0 0 0 2px var(--tint-success);
    font: .875rem/1 "bootstrap-icons"; transform: scale(0); transition: transform var(--dur-2) var(--ease-out);
}
.dropzone-doc:hover .dz-badge, .dropzone-doc.is-drag .dz-badge { transform: translateY(-3px); }
.dropzone-doc.is-filled .dz-badge::after { transform: scale(1); }
/* PDF escolhido: a miniatura da 1ª página ocupa o lugar do selo */
.dropzone-doc .dz-thumb { width: 2.9375rem; height: 4.125rem; }   /* A4 na altura do selo: os títulos dos dois cartões ficam na mesma linha */
.dropzone:has(.dz-thumb:not([hidden])) .dz-badge { display: none; }

.dz-head { display: grid; justify-items: center; gap: .5rem; }
.dz-kind { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); color: var(--text-1); }
.dz-tag {
    display: inline-flex; align-items: center; gap: .375rem; padding: .3125rem .75rem; border-radius: 999px;
    font: 600 var(--fs-label)/1.2 var(--font-sans); background: var(--surface-1); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dropzone-doc--pdf .dz-tag { background: var(--tint-accent); color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ui) 45%, transparent); }

.dropzone-doc .dz-body { display: grid; justify-items: center; gap: .5rem; min-width: 0; max-width: 100%; }
.dropzone-doc .dz-title {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 40px; padding: 0 1.125rem;
    border: 1px solid var(--brand-fill); border-radius: 2px; background: var(--surface-1); color: var(--brand-text);
    font: 600 var(--fs-label)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase;
    transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.dropzone-doc .dz-title::before { content: "\F603"; font: .9375rem/1 "bootstrap-icons"; }
.dropzone-doc:hover .dz-title, .dropzone-doc.is-drag .dz-title { background: var(--brand-fill); color: var(--on-brand); }
.dropzone-doc.is-filled .dz-title {
    min-height: 0; padding: 0; border: 0; background: none; color: var(--text-1);
    font: 600 var(--step-0)/1.35 var(--font-sans); letter-spacing: 0; text-transform: none; word-break: break-word;
}
.dropzone-doc.is-filled .dz-title::before { content: "\F26A"; color: var(--success); }
.dropzone-doc .dz-file { font-size: var(--fs-caption); color: var(--text-3); }
.dropzone-doc.is-filled .dz-file { color: var(--text-2); }

/* Minicurrículo: texto OU arquivo (seletor de duas opções) */
.cv-mode { display: inline-flex; flex-wrap: wrap; gap: 0; margin-bottom: var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-1); overflow: hidden; }
.cv-mode-opt { position: relative; margin: 0; cursor: pointer; }
.cv-mode-opt + .cv-mode-opt { border-left: 1px solid var(--line-strong); }
.cv-mode-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cv-mode-opt span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); background: var(--surface-1); transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.cv-mode-opt:hover span { color: var(--text-1); background: var(--surface-2); }
.cv-mode-opt input:checked + span { color: var(--on-brand); background: var(--brand-fill); }
.cv-mode-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; }
.cv-panel[hidden] { display: none; }
.cv-no-js { font-size: var(--step--1); color: var(--text-3); margin-bottom: var(--s-2); }
html.js .cv-no-js { display: none; }
html:not(.js) .cv-panel + .cv-panel { margin-top: var(--s-3); }

.guide { margin-top: var(--s-4); padding: var(--s-4); background: var(--surface-2); border-left: 3px solid var(--accent-ui); border-radius: 0 var(--r-2) var(--r-2) 0; }
.guide h3 { font-size: var(--step-0); margin-bottom: var(--s-2); }
.guide p { color: var(--text-2); }

.decl { display: flex; gap: .875rem; align-items: flex-start; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.decl:last-of-type { border-bottom: 0; }
.decl .form-check-input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: .2rem; border: 1px solid var(--text-3); background-color: var(--surface-1); cursor: pointer; }
.decl .form-check-input:checked { background-color: var(--brand-fill); border-color: var(--brand-fill); }
.decl .form-check-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-fill) 20%, transparent); border-color: var(--brand-fill); }
.decl .form-check-input.is-invalid { border-color: var(--error); }
.decl label { cursor: pointer; font-size: .9375rem; }
.decl-all { padding: .875rem var(--s-3); margin-bottom: var(--s-2); background: var(--surface-2); border-radius: var(--r-1); border-bottom: 0; font-weight: 600; }

/* "Como soube do edital?": opções em blocos clicáveis (rádio próprio à direita), 2 colunas a partir de 576px */
.source { min-width: 0; margin: var(--s-5) 0 0; padding: var(--s-4) 0 0; border: 0; border-top: 1px solid var(--line); }
.source-legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--s-3); font-size: inherit; line-height: inherit; }
.source-legend + * { clear: both; }
.source-title { display: block; margin-bottom: var(--s-1); font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); color: var(--text-1); }
.source-title .req { color: var(--brand-text); margin-left: 2px; }
.source-hint { display: block; font-size: var(--fs-sm); color: var(--text-2); }
.source-grid { display: grid; grid-template-columns: 1fr; gap: .625rem; }
@media (min-width: 576px) { .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.source-opt { position: relative; margin: 0; cursor: pointer; }
.source-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.source-box {
    display: flex; align-items: center; gap: .75rem; height: 100%; padding: .75rem .875rem;
    border: 1px solid var(--line-ui); border-radius: var(--r-1); background: var(--surface-1);
    font-size: var(--fs-sm); font-weight: 500; line-height: var(--lh-snug); color: var(--text-1);
    transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.source-box > i {
    display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--surface-2); color: var(--text-2); font-size: 1rem;
    transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.source-text { flex: 1; min-width: 0; }
.source-text small { display: block; margin-top: .125rem; font-size: var(--fs-caption); font-weight: 400; color: var(--text-3); }
.source-box::after {
    content: ""; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 50%;
    border: 1.5px solid var(--line-ui); background: var(--surface-1);
    transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.source-opt:hover .source-box { border-color: var(--text-2); }
.source-opt input:checked + .source-box { border-color: var(--brand-fill); background: var(--tint-brand); box-shadow: inset 0 0 0 1px var(--brand-fill); }
.source-opt input:checked + .source-box > i { background: var(--brand-fill); color: var(--on-brand); }
.source-opt input:checked + .source-box::after { border-color: var(--brand-fill); background: var(--brand-fill); box-shadow: inset 0 0 0 3px var(--surface-1); }
.source-opt input:focus-visible + .source-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.source.is-invalid .source-box { border-color: var(--error); }
.source > .invalid-feedback { margin-top: var(--s-2); }
.source-other { margin-top: var(--s-3); }
.source-other[hidden] { display: none; }
html:not(.js) .source-other[hidden] { display: block; }
html.js .source-no-js { display: none; }

.review { display: grid; gap: var(--s-4); }
.review-group { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.review-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-2); }
.review-group h3 { font: 600 var(--step--2)/1.4 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: .375rem var(--s-3); font-size: .9375rem; }
.review dt { color: var(--text-3); font-weight: 500; }
.review dd { margin: 0; word-break: break-word; }
.review .is-missing { color: var(--error); }

.error-summary { margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--error); border-left-width: 3px; border-radius: var(--r-1); background: var(--tint-brand); }
.error-summary h2 { font: 600 var(--step-0)/var(--lh-snug) var(--font-sans); color: var(--error); margin-bottom: var(--s-2); }
.error-summary ul { margin: 0; padding-left: 1.125rem; font-size: .9375rem; }
.error-summary:focus { outline: 2px solid var(--focus); outline-offset: 3px; }

.submit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.submit-bar p { font-size: var(--step--1); color: var(--text-3); margin: 0; }

/* Honeypot: fora da tela e fora da árvore de acessibilidade */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Comprovante e estados */
.state-card, .receipt { max-width: 720px; margin: var(--s-6) auto var(--s-8); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5) var(--s-4); }
@media (min-width: 768px) { .state-card, .receipt { padding: var(--s-6); } }
.state-card { text-align: center; }
.state-card h2 { font-size: var(--step-4); font-weight: 600; margin-bottom: var(--s-3); }
.receipt { border-top: 2px solid var(--success); border-radius: 0 0 var(--r-2) var(--r-2); }
.receipt h1 { font-size: var(--step-5); font-weight: 600; line-height: var(--lh-display); letter-spacing: var(--track-display); margin-bottom: var(--s-2); }
.receipt-protocol { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2); margin: var(--s-5) 0; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.receipt-protocol .code { font-family: var(--font-serif); font-size: var(--step-5); font-weight: 600; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.receipt dl { display: grid; grid-template-columns: minmax(120px, 32%) 1fr; gap: .625rem var(--s-3); margin: 0 0 var(--s-5); font-size: .9375rem; }
.receipt dt { color: var(--text-3); }
.receipt dd { margin: 0; }
.receipt ol { padding-left: 1.125rem; color: var(--text-2); }

/* ---------- 5b. Visualizador de PDF (modal) ----------------------------- */

html.pdfv-open { overflow: hidden; }
.pdfv {
    width: min(1040px, calc(100vw - 32px)); height: min(92vh, calc(100dvh - 32px)); max-width: none; max-height: none;
    padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-1); color: var(--text-1);
    box-shadow: var(--shadow-2); overflow: hidden;
}
.pdfv[open] { display: flex; flex-direction: column; animation: pdfv-in var(--dur-2) var(--ease-out); }
.pdfv::backdrop { background: rgb(13 13 13 / .62); }
@keyframes pdfv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) { .pdfv { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }

.pdfv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem var(--s-3); padding: .625rem var(--s-3); border-bottom: 1px solid var(--line); }
.pdfv-title { flex: 1 1 200px; min-width: 0; font: 600 var(--fs-sm)/var(--lh-snug) var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfv-page { font-size: var(--step--1); color: var(--text-2); font-variant-numeric: tabular-nums; }
.pdfv-tools { display: flex; align-items: center; gap: .5rem; }
.pdfv-zoom { display: inline-flex; align-items: center; border: 1px solid var(--line-ui); border-radius: var(--r-1); }
.pdfv-zoom button, .pdfv-close {
    display: grid; place-items: center; width: 36px; height: 34px; border: 0; background: transparent; color: var(--text-1); cursor: pointer; border-radius: var(--r-1);
}
.pdfv-zoom button:hover, .pdfv-close:hover { background: var(--surface-2); }
.pdfv-zoom span { min-width: 3.25rem; text-align: center; font-size: var(--step--1); color: var(--text-2); }
.pdfv-close { width: 40px; height: 40px; border: 1px solid var(--line-ui); }
.pdfv [hidden] { display: none !important; }
@media (max-width: 575.98px) {
    .pdfv-label { display: none; }
    .pdfv-bar { padding: .5rem .75rem; }
    .pdfv-title { flex-basis: calc(100% - 56px); order: 1; }
    .pdfv-tools { order: 2; margin-left: auto; }
    .pdfv-page { order: 3; }
}

.pdfv-warn { padding: .75rem var(--s-3); background: var(--tint-accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: var(--fs-sm); }
.pdfv-warn strong { color: var(--accent-text); }
.pdfv-body { flex: 1; min-height: 0; overflow: auto; background: var(--surface-2); padding: var(--s-3); overscroll-behavior: contain; }
.pdfv-status { padding: var(--s-6) var(--s-3); text-align: center; color: var(--text-2); }
.pdfv-status a { font-weight: 600; }
.pdfv-pages { display: grid; justify-items: center; gap: var(--s-3); }
.pdfv-pageframe { position: relative; background: #FFFFFF; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 6px 20px -10px rgb(0 0 0 / .3); }
.pdfv-pageframe canvas { display: block; }
.pdfv-pageframe::after {
    content: attr(data-n); position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 3px;
    font: 600 var(--fs-micro)/var(--lh-ui) var(--font-sans); color: #4A4A4A; background: rgb(255 255 255 / .85);
}

/* Botão "Visualizar" junto ao upload e aviso de metadados */
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem var(--s-3); margin-top: .5rem; }
.meta-warn { margin-top: .5rem; padding: .625rem .75rem; font-size: var(--fs-caption); background: var(--tint-accent); border-left: 2px solid var(--accent); border-radius: 0 var(--r-1) var(--r-1) 0; }
.meta-warn strong { color: var(--accent-text); }
.file-actions[hidden], .meta-warn[hidden] { display: none !important; }

/* ---------- 6. Utilitários ----------------------------------------------- */

html:not(.js) .js-only, html:not(.js) [data-review], html:not(.js) .stepper { display: none !important; }
html:not(.js) .form-shell { grid-template-columns: 1fr; }
.hairline-top { border-top: 1px solid var(--line); }
.tabular { font-variant-numeric: tabular-nums; }
.oldstyle { font-variant-numeric: oldstyle-nums; }

/* ---------- 7. Movimento (sóbrio) --------------------------------------- */

.reveal-on .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }

/* 7.1 Entrada do hero: sequência de 80ms entre elementos (CSS puro, termina sempre visível) */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-heading > .eyebrow, .hero h1, .hero-subtitle, .hero-lead, .hero-actions, .hero-copy > .status-pill, .hero-aside > .deadline { animation: rise 700ms var(--ease-out) both; }
.hero h1 { animation-delay: 80ms; }
.hero-subtitle { animation-delay: 200ms; }
.hero-lead { animation-delay: 280ms; }
.hero-actions { animation-delay: 360ms; }
.hero-copy > .status-pill { animation-delay: 440ms; }
.hero-aside > .deadline { animation-delay: 520ms; }

/* 7.2 Marca d'água: traços desenhados em sequência (pathLength="1" normaliza o traço) */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wm-fill { to { fill-opacity: 1; } }
.hero-watermark polygon { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1600ms var(--ease-out) forwards, wm-fill 1200ms var(--ease-out) forwards; }
.hero-watermark .wm-l { animation-delay: 250ms, 2000ms; }
.hero-watermark .wm-main { animation-delay: 500ms, 2200ms; animation-duration: 1900ms, 1200ms; }
.hero-watermark .wm-r { animation-delay: 750ms, 2400ms; }

/* 7.2b Depois do desenho: brilho curto (12% do contorno) circulando e flutuação de 6px.
   Começa em 2,6s (fim do traço); pausa fora da tela (.is-paused via JS). */
@keyframes wm-run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes wm-glow-in { to { opacity: 1; } }
@keyframes wm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-watermark .wm-glow {
    stroke-width: 14; stroke-linecap: round; stroke-dasharray: .12 .88; stroke-dashoffset: 1; opacity: 0;
    animation: wm-glow-in 900ms var(--ease-out) 2600ms forwards, wm-run 7s linear 2600ms infinite;
}
.hero-watermark .wm-glow-l, .hero-watermark .wm-glow-r { stroke: var(--accent); }
.hero-watermark .wm-glow-main { stroke: var(--brand-mark); animation-duration: 900ms, 9s; }
.hero-watermark .wm-glow-r { animation-delay: 2600ms, 3800ms; }
.hero-watermark .wm-float { transform-box: fill-box; animation: wm-float 9s ease-in-out 2600ms infinite; }
.hero-watermark.is-paused .wm-glow, .hero-watermark.is-paused .wm-float { animation-play-state: paused; }

/* 7.3 Títulos de capítulo: número, título e abertura em cascata */
.reveal-on .chapter-head.reveal { opacity: 1; transform: none; }
.reveal-on .chapter-head > * { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal-on .chapter-head.is-visible > * { opacity: 1; transform: none; }
.reveal-on .chapter-head.is-visible > :nth-child(2) { transition-delay: 90ms; }
.reveal-on .chapter-head.is-visible > :nth-child(3) { transition-delay: 180ms; }

/* 7.4 Cronograma: a linha se estende e as etapas aparecem uma a uma */
.reveal-on .timeline::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 900ms var(--ease-out) 150ms; }
@media (min-width: 768px) { .reveal-on .timeline::before { transform: scaleX(0); transform-origin: 0 50%; } }
.reveal-on .timeline.is-visible::before { transform: none; }
.reveal-on .timeline .tl-step { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.reveal-on .timeline.is-visible .tl-step { opacity: 1; transform: none; }
.reveal-on .timeline.is-visible .tl-step:nth-child(2) { transition-delay: 180ms; }
.reveal-on .timeline.is-visible .tl-step:nth-child(3) { transition-delay: 360ms; }
.reveal-on .timeline.is-visible .tl-step:nth-child(4) { transition-delay: 540ms; }

/* 7.5 Critérios e público: itens em sequência curta */
.reveal-on .criteria li, .reveal-on .audience-list li { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.reveal-on .criteria.is-visible li, .reveal-on .audience-list.is-visible li { opacity: 1; transform: none; }
.reveal-on .criteria.is-visible li:nth-child(2), .reveal-on .audience-list.is-visible li:nth-child(2) { transition-delay: 60ms; }
.reveal-on .criteria.is-visible li:nth-child(3), .reveal-on .audience-list.is-visible li:nth-child(3) { transition-delay: 120ms; }
.reveal-on .criteria.is-visible li:nth-child(4), .reveal-on .audience-list.is-visible li:nth-child(4) { transition-delay: 180ms; }
.reveal-on .criteria.is-visible li:nth-child(5), .reveal-on .audience-list.is-visible li:nth-child(5) { transition-delay: 240ms; }
.reveal-on .criteria.is-visible li:nth-child(6), .reveal-on .audience-list.is-visible li:nth-child(6) { transition-delay: 300ms; }
.reveal-on .criteria.is-visible li:nth-child(7), .reveal-on .audience-list.is-visible li:nth-child(7) { transition-delay: 360ms; }

/* 7.6 Contagem: número desliza ao mudar; fio do prazo transcorrido cresce na entrada */
@keyframes cd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.deadline-value .num { display: inline-block; }
.deadline-value .num.is-tick { animation: cd-in var(--dur-3) var(--ease-out); }

/* 7.7 Cronograma: fio laranja do início até "hoje" + marcador (posicionados pelo JS) */
.timeline-wrap { position: relative; }
.tl-fill, .tl-today { position: absolute; display: none; pointer-events: none; }
.timeline-wrap.is-placed .tl-fill, .timeline-wrap.is-placed .tl-today { display: block; }
.tl-fill { z-index: 1; background: var(--accent-ui); transform-origin: 0 0; transition: transform 1100ms var(--ease-out) 500ms; }
.tl-today { z-index: 2; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-ui); transition: opacity var(--dur-3) var(--ease-out) 1500ms; }
.tl-today span {
    position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
    font: 600 var(--fs-micro)/1 var(--font-sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--accent-text);
}
.timeline-wrap.is-vertical .tl-today span { display: none; }
.reveal-on .timeline:not(.is-visible) ~ .tl-fill { transform: scale(0); }
.reveal-on .timeline:not(.is-visible) ~ .tl-today { opacity: 0; }
.tl-step { position: relative; z-index: 3; }
.tl-step.is-current .tl-dot { z-index: 3; }

/* 7.8 Índice lateral: fio que acompanha a leitura; número do capítulo atual em destaque */
.toc-track { position: relative; }
.toc-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--text-2); transform-origin: 50% 0; transform: scaleY(0); z-index: 1; pointer-events: none; }
.toc a[aria-current] span { color: var(--brand-text); }
.toc a { position: relative; z-index: 2; }

/* 7.9 Checklist concluído: confirmação com atalho para a submissão */
@keyframes done-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.checklist-done {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding: var(--s-3) var(--s-4);
    background: var(--tint-success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-radius: var(--r-2);
    animation: done-in var(--dur-3) var(--ease-out);
}
.checklist-done[hidden] { display: none; }
.checklist-done-icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--success); color: #FFFFFF; font-size: 1.125rem; }
.checklist-done-text { flex: 1 1 200px; display: grid; gap: .125rem; }
.checklist-done-text span { font-size: var(--fs-sm); color: var(--text-2); }
.checklist-done .btn-cta { flex: none; }

/* Cards: hover sutil (borda mais forte, sem escala) */
.doc-card:hover, .deadline:hover, .checklist:hover { border-color: var(--line-strong); }
.deadline, .checklist { transition: border-color var(--dur-1) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
    .reveal-on .reveal { opacity: 1; transform: none; }
    .read-progress { display: none; }
    /* sem atraso nem traço oculto: tudo aparece imediatamente */
    .hero-copy > *, .hero-heading > *, .hero-heading::before, .hero-aside, .hero-aside > .deadline, .hero h1 { animation: none !important; }
    .hero-watermark polygon { animation: none !important; stroke-dashoffset: 0; fill-opacity: 1; }
    .hero-watermark .wm-glow { display: none; }
    .hero-watermark .wm-float { animation: none !important; }
}

/* ---------- 8. Impressão ------------------------------------------------- */

@media print {
    @page { margin: 18mm 16mm; }
    :root { color-scheme: light; --bg: #FFFFFF; --surface-1: #FFFFFF; --surface-2: #FFFFFF; --text-1: #000000; --text-2: #222222; --text-3: #444444; --line: #CCCCCC; --line-strong: #999999; }
    body { font-size: 11pt; line-height: 1.5; }
    .site-header, .read-progress, .toc, .hero-actions, .hero-watermark, .closing, .site-footer .footer-grid > :not(:first-child),
    .checklist-actions, .timeline-foot button, .doc-actions, .skip-link, .nav-toggle, .pdfv { display: none !important; }
    .hero, .chapter { padding: 12pt 0; }
    .chapter { break-inside: auto; }
    .chapter-head, .tl-step, .criteria li, .faq details, .spec-table tr { break-inside: avoid; }
    .reveal-on .reveal, .reveal-on .chapter-head > *, .reveal-on .timeline .tl-step, .reveal-on .criteria li, .reveal-on .audience-list li, .hero-copy > *, .hero-heading > *, .hero-aside, .hero-aside > .deadline { opacity: 1 !important; transform: none !important; animation: none !important; }
    .reveal-on .timeline::before { transform: none !important; }
    .ref { border: 0; padding: 0; vertical-align: baseline; font-size: 8pt; color: #444444; }
    .ref::before { content: "(item "; }
    .ref::after { content: ")"; display: inline !important; position: static; transform: none; background: none; color: inherit; padding: 0; font-size: inherit; animation: none; }
    .faq details > * { display: block; }
    .faq summary::after { display: none; }
    .book { box-shadow: none; border: 1px solid #CCCCCC; }
    a { color: #000000; text-decoration: none; }

    /* No papel: sem contagem regressiva (fica velha) nem atalho de calendário; vale a data */
    .deadline-value, [data-ics] { display: none !important; }
    /* Fio e marcador de "hoje" são posicionados por JS na largura da tela: no papel, só os estados das etapas */
    .tl-fill, .tl-today { display: none !important; }
    /* Quebras de página: blocos curtos inteiros e títulos sempre junto do texto que introduzem */
    .fact-sheet dl, .deliverables, .deadline, .doc-card, .checklist-done { break-inside: avoid; }
    .checklist-done .btn-cta { display: none !important; }
    h2, h3, .subhead, .chapter-head, .eyebrow { break-after: avoid; }
    .checklist { border: 0; padding: 0; }
    /* No papel: sem contagem nem barra; as caixas saem com o traço (e o verde, se marcadas) para conferir à mão */
    .checklist-score, .checklist-bar { display: none !important; }
    .checklist-group { break-inside: avoid; margin-top: 10pt; }
    .checklist-item { margin: 0; padding: 4pt 0; }
    .checklist-item input { -webkit-print-color-adjust: exact; print-color-adjust: exact; border-color: #666666; }
    .print-url { display: block !important; }

    /* Impressão só do checklist */
    /* .doc fica dentro de um .container: esconder os blocos-irmãos pelo nome, não "main > *:not(.doc)" */
    body.print-checklist .hero, body.print-checklist .fact-sheet, body.print-checklist .closing,
    body.print-checklist .doc > .toc,
    body.print-checklist .chapter:not(#requisitos),
    body.print-checklist #requisitos > :not(.checklist),
    body.print-checklist .site-footer { display: none !important; }
    body.print-checklist #requisitos { border: 0; padding: 0; }
    body.print-checklist .checklist { border: 0; padding: 0; }

    /* ...e na página do formulário, onde o checklist fica na etapa "Arquivos" */
    body.print-checklist .page-head, body.print-checklist .stepper,
    body.print-checklist #submission-form > :not([data-step="2"]),
    body.print-checklist #submission-form [data-step="2"] > :not(.checklist) { display: none !important; }
    body.print-checklist .form-shell { display: block; padding: 0; }
    body.print-checklist #submission-form [data-step="2"] { display: block !important; border: 0; padding: 0; margin: 0; }
}

/* Botões das etapas no celular: rótulo curto numa linha, botão ocupa a largura restante */
@media (max-width: 575.98px) {
    .btn-suffix { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .step-nav .btn-cta, .submit-bar .btn-cta { flex: 1 1 auto; }
}

/* ==========================================================================
   Refinamentos editoriais
   ========================================================================== */

/* 1. Hero: fio vertical na cor da marca à esquerda do título (desenha de cima para baixo) */
.hero-heading { position: relative; padding-left: 1.75rem; margin-bottom: var(--s-4); }
.hero-heading::before {
    content: ""; position: absolute; left: 0; top: .25rem; bottom: .5rem; width: 2px; background: var(--brand-fill);
    transform-origin: 50% 0; animation: rule-in 900ms var(--ease-out) 120ms both;
}
@keyframes rule-in { from { transform: scaleY(0); } to { transform: none; } }
.hero-heading .hero-subtitle { margin-bottom: 0; }
@media (max-width: 575.98px) { .hero-heading { padding-left: 1rem; } }

/* 2. Numeração dos capítulos na margem esquerda do texto (≥1200px) */
@media (min-width: 1200px) {
    .doc { column-gap: 6rem; }
    .chapter-head { position: relative; }
    .chapter-num { position: absolute; right: calc(100% + 1.5rem); top: -.3rem; margin: 0; text-align: right; }
}

/* 3. Papel com grão quase imperceptível (SVG inline, ~1 KB, sem requisição) */
:root {
    --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
body { background-image: var(--paper-grain); background-size: 220px 220px; }
@media (max-width: 991.98px) { .stepper { background-image: var(--paper-grain); background-size: 220px 220px; } }
@media print { body { background-image: none; } }

/* 4. Capitular no parágrafo de abertura (uma única vez na página) */
.dropcap::first-letter { font-family: var(--font-serif); font-weight: 600; font-variant-numeric: lining-nums; color: var(--brand-text); }
@supports (initial-letter: 3) {
    .dropcap::first-letter { initial-letter: 3; margin-right: .14em; }
}
@supports not (initial-letter: 3) {
    .dropcap::first-letter { float: left; font-size: 3.9em; line-height: .8; padding: .08em .12em 0 0; }
}

/* 7. Miniatura real do edital no cartão (1ª página, levemente inclinada como a capa do livro) */
.doc-thumb {
    position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 90px; overflow: hidden;
    background: #FFFFFF; border: 1px solid var(--line); border-radius: 2px;
    box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 10px 22px -12px rgb(0 0 0 / .35);
    transform: rotate(-2.5deg); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
    text-decoration: none;
}
.doc-thumb:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 26px -12px rgb(0 0 0 / .38); }
.doc-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity var(--dur-3) var(--ease-out); }
.doc-thumb.is-ready canvas { opacity: 1; }
.doc-thumb .doc-icon { border: 0; width: auto; height: auto; }
.doc-thumb.is-ready .doc-icon { visibility: hidden; }

/* 11. "Inscreva-se" do cabeçalho vira sólido quando o botão principal do hero sai da tela */
.site-nav .btn-ghost[data-header-cta] { transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out); }
.site-nav .btn-ghost.is-solid { background: var(--brand-fill); border-color: var(--brand-fill); color: var(--on-brand); }
.site-nav .btn-ghost.is-solid:hover { background: var(--brand-fill-hover); border-color: var(--brand-fill-hover); color: var(--on-brand); }

/* Hero no celular: título e botões na primeira dobra (360×640) */
.eyebrow-short { display: none; }
@media (max-width: 575.98px) {
    .eyebrow-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .eyebrow-short { display: inline; }
    .hero { padding-top: var(--s-4); }
    .hero-heading { margin-bottom: var(--s-3); }
}

/* Cabeçalho compacto ao rolar: 60 → 52px e subtítulo da marca some suavemente.
   A variável --header-h muda na raiz, então scroll-padding e elementos "sticky" acompanham. */
html.header-compact { --header-h: 52px; }
.header-bar { transition: min-height var(--dur-2) var(--ease-out); }
.brand-rule { transition: height var(--dur-2) var(--ease-out); }
.site-header .brand-rule { height: 22px; }
html.header-compact .site-header .brand-rule { height: 18px; }

/* Formulário e páginas internas na mesma linguagem da landing page */
.title-rule { position: relative; padding-left: 1.5rem; margin-bottom: var(--s-3); }
.title-rule::before {
    content: ""; position: absolute; left: 0; top: .25rem; bottom: .35rem; width: 2px; background: var(--brand-fill);
    transform-origin: 50% 0; animation: rule-in 900ms var(--ease-out) 80ms both;
}
.title-rule h1 { margin-bottom: 0; }
@media (max-width: 575.98px) { .title-rule { padding-left: 1rem; } }

.step-num {
    font-family: var(--font-serif); font-weight: 400; font-variant-numeric: lining-nums tabular-nums;
    color: color-mix(in srgb, var(--brand-text) 55%, var(--text-3)); margin-right: .5rem;
}

/* Miniatura do PDF escolhido pelo autor, no lugar do ícone da área de upload */
.dz-thumb {
    position: relative; display: block; flex: none; width: 40px; height: 56px; overflow: hidden; background: #FFFFFF;
    border: 1px solid var(--line); border-radius: 2px; transform: rotate(-2.5deg);
    box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 8px 16px -10px rgb(0 0 0 / .35);
}
.dz-thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dz-thumb:not([hidden]) + .dz-icon, .dropzone:has(.dz-thumb:not([hidden])) .dz-icon { display: none; }
@media (prefers-reduced-motion: reduce) { .title-rule::before { animation: none; } }
.dz-thumb[hidden] { display: none; }

/* Página 404 */
.not-found { max-width: 52rem; padding: var(--s-7) 0 var(--s-8); }
.not-found h1 { font-size: var(--step-5); font-weight: 600; line-height: var(--lh-display); letter-spacing: var(--track-display); }
.not-found-lead { font-family: var(--font-serif); font-size: var(--step-2); line-height: 1.5; color: var(--text-2); max-width: 44ch; margin-bottom: var(--s-6); }
.not-found-links { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .not-found-links { grid-template-columns: repeat(3, 1fr); } }
.not-found-links a {
    display: grid; gap: .25rem; height: 100%; padding: var(--s-4); text-decoration: none; color: var(--text-1);
    background: var(--surface-1); border: 1px solid var(--line); border-top: 2px solid var(--brand-fill); border-radius: 0 0 var(--r-2) var(--r-2);
    transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.not-found-links a:hover { border-color: var(--line-strong); border-top-color: var(--brand-fill-hover); transform: translateY(-2px); color: var(--text-1); }
.not-found-links .subhead { margin: 0; }
.nf-title { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 600; line-height: var(--lh-title); letter-spacing: var(--track-title); }
.nf-text { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- Notebooks (janela baixa) -------------------------------------
   1366×768, 1440×900 e 1920×1080 a 125% deixam ~650–780px úteis de altura. Aqui os títulos
   passam a acompanhar também a altura da janela e os respiros encolhem um degrau, para que
   título, chamada, botões e prazo caibam na primeira dobra. Monitores altos e celular não mudam. */
@media screen and (min-width: 992px) and (max-height: 860px) {
    :root {
        --step-2: clamp(1.1875rem, 1.1rem + .3vw, 1.375rem);  /* 19–22 */
        --step-3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);    /* 22–28 */
        --step-4: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);    /* 26–34 */
        --step-5: clamp(2rem, 1.5rem + 1.6vw, 2.625rem);      /* 32–42 */
        --step-6: clamp(2.375rem, .5rem + 7vh, 3.75rem);      /* 38–60, pela altura da janela */
    }
    .hero { padding: var(--s-6) 0; }
    .hero h1 { max-width: 22ch; }
    .hero-heading { margin-bottom: var(--s-3); }
    .hero-subtitle { font-size: var(--step-2); }
    .hero-lead { font-size: var(--step-1); margin-bottom: var(--s-4); }
    .hero-actions { margin-bottom: var(--s-3); }
    .hero-watermark { --wm-w: clamp(200px, 17vw, 260px); }
    .deadline { padding: var(--s-4); }
    .chapter { padding: var(--s-7) 0; }
    .closing { padding: var(--s-6) 0 var(--s-7); }
    .page-head { padding: var(--s-5) 0 var(--s-3); }
    .not-found { padding: var(--s-6) 0 var(--s-7); }
}

/* Endereço do site só na impressão: quem lê no papel precisa saber onde submeter */
.print-url { display: none; margin: var(--s-2) 0 0; }
/* Chrome recente oculta o conteúdo de <details> fechado via ::details-content; regra isolada
   porque um pseudo-elemento desconhecido invalidaria o seletor inteiro em navegadores antigos */
@media print { .faq details::details-content { content-visibility: visible; display: block; } }
