/* =========================================================
   Edital Animal SP — peças compartilhadas das páginas internas
   (header sólido e faixa de abertura). Carregado depois de main.css.
   ========================================================= */
.site-header--solid { padding-block: 10px; }

/* ---------- Faixa de abertura (cadastro, termos, privacidade) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white);
  background: #03113b;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(104px, 13vw, 170px);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 80% at 88% 20%, rgba(40, 96, 230, 0.55), transparent 70%),
    radial-gradient(50% 70% at 8% 0%, rgba(17, 70, 214, 0.45), transparent 70%),
    linear-gradient(180deg, #03113b 0%, #061a52 60%, #04123f 100%);
}
.page-hero__bg::before,
.page-hero__bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.page-hero__bg::before { background: url('../img/hero-grunge.webp') center / cover no-repeat; opacity: 0.32; mix-blend-mode: screen; }
.page-hero__bg::after { background: url('../img/speckle.webp') repeat; background-size: 360px; opacity: 0.2; }

.page-hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.9rem, 8.4vw, 5.6rem); line-height: 0.9; letter-spacing: 0.005em;
  text-wrap: balance;
}
.page-hero__lead { margin-top: 16px; max-width: 54ch; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 0.88rem; font-weight: 650; color: rgba(255, 255, 255, 0.92); }
.assurances li { display: inline-flex; align-items: center; gap: 8px; }
.assurances svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }


/* ---------- Páginas de leitura (termos e privacidade) ---------- */
.page-hero--doc { padding-bottom: clamp(88px, 10vw, 130px); }
.page-hero__meta { margin-top: 18px; font-size: 0.86rem; font-weight: 650; color: rgba(255, 255, 255, 0.72); }

.doc {
  position: relative; z-index: 2;
  display: grid; gap: 28px; align-items: start;
  margin-top: clamp(-96px, -8vw, -60px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.doc__body {
  min-width: 0;
  background: var(--white); border-radius: var(--radius);
  padding: clamp(22px, 5vw, 56px);
  box-shadow: 0 2px 0 rgba(11, 11, 15, 0.04), 0 34px 70px -38px rgba(3, 14, 60, 0.55);
}
.doc__toc { display: none; }
@media (min-width: 1024px) {
  .doc { grid-template-columns: 260px minmax(0, 1fr); gap: 36px; }
  .doc__body { max-width: 860px; }
  .doc__toc {
    display: block; position: sticky; top: calc(var(--header-h) + 24px);
    background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px 18px;
  }
  .doc__toc p { padding: 0 8px 10px; font-size: 0.8rem; font-weight: 750; color: rgba(255, 255, 255, 0.6); }
  .doc__toc a {
    display: block; padding: 7px 8px; border-radius: 10px;
    font-size: 0.88rem; line-height: 1.35; color: rgba(255, 255, 255, 0.8); text-decoration: none;
  }
  .doc__toc a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
}

.doc-notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 30px; border-radius: 14px;
  background: var(--yellow-soft); color: var(--ink); font-size: 0.94rem; line-height: 1.5;
}
.doc-notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

.prose { max-width: 68ch; color: var(--ink-700); }
.prose > * + * { margin-top: 14px; }
.prose h2 {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 800; line-height: 1.25; color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2 + * { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); font-weight: 650; text-underline-offset: 3px; }
.todo { padding: 1px 6px; border-radius: 6px; background: #fff0b3; color: #6b4600; font-weight: 700; font-size: 0.92em; }

/* ---------- Faixa do modo demonstração (config Edital::$demo), dentro do header fixo ---------- */
:root { --demo-h: 0px; }
.has-demo { --demo-h: 32px; }
.demo-bar {
  height: var(--demo-h); margin: 10px 0 -10px; padding: 0 var(--gutter);
  background: var(--yellow); color: var(--ink);
  font-size: 0.8rem; font-weight: 600; line-height: var(--demo-h); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-bar strong { font-weight: 800; }
.has-demo .page-hero { padding-top: calc(var(--header-h) + var(--demo-h) + clamp(28px, 6vw, 72px)); }
.has-demo .rail, .has-demo .doc__toc { top: calc(var(--header-h) + var(--demo-h) + 24px); }
@media (max-width: 560px) { .demo-bar__long { display: none; } }
