/* =========================================================
   Associação Beneficente ETIHAD — estilos globais
   ========================================================= */

:root {
  --verde: #0B4D33;
  --verde-escuro: #083B27;
  --verde-hover: #12603F;
  --dourado: #C9A04E;
  --dourado-claro: #E3C27A;
  --fundo: #FBF8F1;
  --texto: #1F2A24;
  --branco: #FFFFFF;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 150px;
  --gutter: 64px;
  --raio: 14px;
  --sombra: 0 6px 18px rgba(31, 42, 36, 0.10);
  --sombra-forte: 0 14px 30px rgba(31, 42, 36, 0.16);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--verde); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--dourado);
  outline-offset: 3px;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--branco);
  transition: filter .3s ease;
}

.site-header.is-scrolled {
  filter: drop-shadow(0 6px 10px rgba(8, 59, 39, 0.10));
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 52px 0 62px;
  transition: height .3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__emblem {
  width: 124px;
  height: 124px;
  transition: width .3s ease, height .3s ease;
}

.brand__text {
  width: 228px;
  height: auto;
  transition: width .3s ease;
}

.header-divider {
  width: 1px;
  align-self: center;
  height: 100px;
  margin: 0 34px 0 44px;
  background: linear-gradient(180deg, rgba(201,160,78,0) 0%, var(--dourado) 20%, var(--dourado) 80%, rgba(201,160,78,0) 100%);
  flex-shrink: 0;
  transition: height .3s ease;
}

.main-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 9px;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 21.5px;
  font-weight: 400;
  color: var(--verde);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}

.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-link:hover { background: rgba(11, 77, 51, 0.07); }

.nav-link[aria-current="page"] {
  padding: 0 16px;
  height: 50px;
  background: var(--verde);
  color: #fff;
  box-shadow: 0 3px 8px rgba(8, 59, 39, 0.25);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(227,194,122,0), var(--dourado-claro) 25%, var(--dourado) 75%, rgba(201,160,78,0));
}

/* onda dourada abaixo do header */
.header-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  height: 28px;
  margin-top: -1px;
  pointer-events: none;
}

/* Botão hambúrguer (mobile) */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 1px solid rgba(201,160,78,.6);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--verde);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Seções com foto (hero / sobre)
   ========================================================= */

.photo-section {
  position: relative;
  overflow: hidden;
  background: var(--fundo);
}

.photo-section__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 63%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.photo-section__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--fundo) 0%, rgba(251,248,241,.82) 14%, rgba(251,248,241,.35) 30%, rgba(251,248,241,0) 46%);
}

.photo-section__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
}

/* Onda inferior: dourado + verde */
.bottom-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 150px;
  z-index: 3;
  pointer-events: none;
}

/* ---------- Início ---------- */

.hero { min-height: 618px; }

.hero .photo-section__media { width: 64%; background-position: center 35%; }

.hero .photo-section__content {
  padding-top: 94px;
  padding-bottom: 140px;
  max-width: 640px;
}

.hero__kicker {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.1;
  color: var(--verde);
  letter-spacing: 0.2px;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 118px;
  line-height: .86;
  color: var(--verde);
  letter-spacing: 4px;
  margin-left: -4px;
}

.gold-rule {
  width: 460px;
  max-width: 100%;
  height: 2px;
  margin: 8px 0 14px;
  border: 0;
  background: linear-gradient(90deg, rgba(201,160,78,0) 0%, var(--dourado) 12%, var(--dourado-claro) 50%, var(--dourado) 80%, rgba(201,160,78,0) 100%);
}

.hero__slogan {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  color: var(--verde);
}

.hero__text {
  margin: 0 0 22px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--texto);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 226px;
  height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1.5px solid rgba(227, 194, 122, 0.75);
  background: linear-gradient(180deg, #11603F 0%, var(--verde) 55%, var(--verde-escuro) 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 59, 39, 0.28), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.btn__arrow { display: inline-block; transition: transform .25s ease; }

.btn:hover {
  background: linear-gradient(180deg, #187550 0%, var(--verde-hover) 55%, var(--verde) 100%);
  box-shadow: 0 10px 22px rgba(8, 59, 39, 0.32), inset 0 1px 0 rgba(255,255,255,.16);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Sobre Nós ---------- */

.about { min-height: 618px; }

.about .photo-section__media {
  width: 31%;
  background-position: left center;
}

.about .photo-section__media::after {
  background: linear-gradient(90deg, var(--fundo) 0%, rgba(251,248,241,.55) 18%, rgba(251,248,241,0) 42%);
}

/* brilho de pôr do sol à esquerda da foto */
.about::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 22%;
  width: 40%;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 45% at 75% 62%, rgba(246, 214, 160, 0.55), rgba(246, 214, 160, 0) 70%);
  pointer-events: none;
}

.about .photo-section__content {
  padding-top: 62px;
  padding-bottom: 130px;
}

.about__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  color: var(--verde);
}

.about__text {
  max-width: 840px;
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--texto);
}

.values {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 177px);
  gap: 18px;
}

.value-card {
  height: 182px;
  padding: 14px 12px 12px;
  background: #fff;
  border: 2px solid var(--dourado);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-forte);
}

.value-card__icon { width: 54px; height: 54px; margin-bottom: 6px; }

.value-card__title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--verde);
}

.value-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  color: var(--texto);
}

/* ---------- Páginas internas simples ---------- */

.page-intro {
  position: relative;
  min-height: 460px;
  padding: 90px var(--gutter) 190px;
  overflow: hidden;
}

.page-intro__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  color: var(--verde);
}

.page-intro__lead {
  max-width: 720px;
  margin: 0;
  font-size: 19px;
  color: var(--texto);
}

/* =========================================================
   Rodapé
   ========================================================= */

.site-footer {
  background: var(--verde);
  color: #E8EFEA;
  padding: 36px var(--gutter) 28px;
  margin-top: -1px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: var(--fundo);
  border-radius: 12px;
  border: 1px solid rgba(227,194,122,.6);
  text-decoration: none;
}
.footer-brand img:first-child { width: 64px; height: 64px; }
.footer-brand img:last-child { width: 130px; height: auto; }

.footer-about {
  margin: 14px 0 0;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.5;
  color: #D5E2DA;
}

.footer-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--dourado-claro);
}

.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 32px;
}

.footer-links a,
.footer-contact a {
  color: #E8EFEA;
  text-decoration: none;
  font-size: 15px;
  transition: color .2s ease;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--dourado-claro); text-decoration: underline; }

.footer-contact {
  font-style: normal;
  font-size: 15px;
  line-height: 1.9;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(227, 194, 122, 0.35);
  font-size: 14px;
  color: #C9D8CF;
  text-align: center;
}

/* =========================================================
   Animações de entrada
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.value-card.reveal.is-visible:hover { transform: translateY(-4px); }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1280px) {
  :root { --gutter: 40px; }
  .header-inner { padding-left: 40px; }
  .brand__emblem { width: 104px; height: 104px; }
  .brand__text { width: 192px; }
  .header-divider { margin: 0 18px 0 24px; }
  .nav-link { font-size: 17px; padding: 0 10px; }
  .nav-list { gap: 2px; }
  .values { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 900px; }
  .value-card { height: auto; min-height: 182px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 96px; }
  .brand__emblem { width: 76px; height: 76px; }
  .brand__text { width: 150px; }
  .header-divider { display: none; }

  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin: 0;
    padding: 30px 24px 24px;
    background: #fff;
    box-shadow: 0 16px 24px rgba(8, 59, 39, 0.12);
    border-bottom: 2px solid var(--dourado);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { width: 100%; font-size: 19px; height: 50px; padding: 0 16px; }

  .hero__title { font-size: 92px; }
  .hero__kicker { font-size: 38px; }
  .hero__slogan { font-size: 34px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .photo-section__media {
    position: relative;
    width: 100% !important;
    height: 300px;
    background-position: center 40% !important;
  }
  .photo-section__media::after,
  .about .photo-section__media::after {
    background: linear-gradient(180deg, rgba(251,248,241,0) 55%, var(--fundo) 100%);
  }
  .about::before { display: none; }

  .hero, .about { min-height: 0; }
  .hero .photo-section__content,
  .about .photo-section__content { padding-top: 8px; padding-bottom: 120px; max-width: none; }

  .about .photo-section__media { height: 340px; background-position: center 30% !important; }

  .bottom-wave { height: 90px; }

  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 14px; }
  .value-card { height: auto; min-height: 182px; }
  .value-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 80px; }
  .header-inner { padding: 0 16px; }
  .brand { gap: 8px; }
  .brand__emblem { width: 60px; height: 60px; }
  .brand__text { width: 124px; }
  .header-wave { height: 16px; }

  .hero .photo-section__media { height: 240px; }
  .about .photo-section__media { height: 280px; }

  .hero__kicker { font-size: 28px; }
  .hero__title { font-size: 64px; letter-spacing: 2px; }
  .hero__slogan { font-size: 27px; }
  .hero__text { font-size: 17px; }
  .gold-rule { width: 100%; }
  .btn { width: 100%; }

  .about__title, .page-intro__title { font-size: 44px; }
  .about__text { font-size: 17px; line-height: 1.45; }
  .page-intro { padding: 56px 16px 140px; min-height: 360px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 28px 16px 24px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 56px; }
  .value-card { padding: 14px 10px 12px; }
  .value-card__title { font-size: 20px; }
}

@media (max-width: 360px) {
  .values { grid-template-columns: 1fr; }
  .value-card { min-height: 0; padding: 18px 16px; }
  .value-card:last-child { width: auto; justify-self: stretch; }
}

/* =========================================================
   Páginas internas (notícias, transparência, login…)
   ========================================================= */

.page {
  position: relative;
  min-height: 520px;
  padding: 84px var(--gutter) 210px;
  overflow: hidden;
}

.page__intro { max-width: 820px; }

.page__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  color: var(--verde);
}

.page__lead { margin: 0; font-size: 19px; line-height: 1.45; }

.page__body { margin-top: 36px; }

.estado {
  padding: 28px;
  border: 1.5px dashed rgba(201, 160, 78, .6);
  border-radius: var(--raio);
  background: rgba(255, 255, 255, .6);
  color: #4A5850;
  text-align: center;
}
.estado--carregando { border-style: solid; color: var(--verde); }
.estado--erro { border-color: #B4442F; color: #8E2F1F; background: #FFF6F3; }

/* Botões extras */
.btn--sm { min-width: 0; height: 40px; padding: 0 18px; font-size: 16px; gap: 8px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: #fff;
  color: var(--verde);
  border: 1.5px solid var(--dourado);
  box-shadow: none;
}
.btn--ghost:hover { background: #FFF8E8; box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Filtros */
.filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filtro {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(201, 160, 78, .7);
  background: #fff;
  color: var(--verde);
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.filtro:hover { background: #FFF8E8; }
.filtro[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }

/* Feed de publicações */
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.post-card {
  background: #fff;
  border: 1.5px solid rgba(201, 160, 78, .55);
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease, opacity .8s ease;
}
.post-card:hover,
.post-card.reveal.is-visible:hover { transform: translateY(-4px); box-shadow: var(--sombra-forte); }

.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.post-card__media { aspect-ratio: 16 / 9; background: #EFE8D8; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__media--vazia { display: grid; place-items: center; background: linear-gradient(135deg, #F4EEDF, #FBF8F1); }
.post-card__media--vazia img { width: 84px; height: 84px; object-fit: contain; opacity: .85; }
.post-card:hover .post-card__media--vazia img { transform: none; }

.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--verde); }
.post-card__excerpt { margin: 0; font-size: 15px; line-height: 1.5; color: #3A463F; }
.post-card__more { margin-top: auto; padding-top: 6px; font-family: var(--serif); font-weight: 500; color: var(--verde); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: #5B6860; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.tag--noticia { background: #E5F0EA; color: var(--verde); }
.tag--comunicado { background: #FBEFD3; color: #7A5A17; }
.tag--fixado { background: var(--verde); color: #fff; }
.tag--oculto { background: #ECECEC; color: #555; }

/* Publicação individual */
.post { max-width: 820px; margin: 0 auto; }
.post__title { margin: 12px 0 20px; font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1.15; color: var(--verde); }
.post__media { margin: 0 0 26px; border-radius: var(--raio); overflow: hidden; border: 1.5px solid rgba(201,160,78,.55); }
.post__media img { width: 100%; max-height: 520px; object-fit: cover; }
.post__body { font-size: 18px; line-height: 1.7; margin-bottom: 32px; }
.post__body p { margin: 0 0 1em; }
.post__body a { color: var(--verde); }

/* Transparência */
.doc-group + .doc-group { margin-top: 34px; }
.doc-group__year {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 14px;
  font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--verde);
}
.doc-group__year::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--dourado), rgba(201,160,78,0)); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px solid rgba(201,160,78,.55);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}
.doc__icon {
  flex-shrink: 0;
  width: 54px; height: 62px;
  display: grid; place-items: end center;
  padding-bottom: 8px;
  border-radius: 6px 16px 6px 6px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .5px;
}
.doc__icon--planilha { background: linear-gradient(160deg, #1A7A4F, var(--verde)); }
.doc__icon--pdf { background: linear-gradient(160deg, #C9563F, #9C3524); }
.doc__info { flex: 1; min-width: 0; }
.doc__title { margin: 0 0 2px; font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--verde); }
.doc__meta { margin: 0; font-size: 14px; color: #5B6860; }
.doc__desc { margin: 6px 0 0; font-size: 15px; }
.doc__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Modal (visualizador de planilha) */
.modal {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 2px solid var(--dourado);
  border-radius: var(--raio);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  color: var(--texto);
}
.modal::backdrop { background: rgba(8, 59, 39, .55); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #EDE5D3; }
.modal__title { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--verde); }
.modal__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F4EEDF; font-size: 26px; line-height: 1; color: var(--verde); cursor: pointer; }
.modal__tabs { display: flex; gap: 6px; padding: 10px 20px 0; flex-wrap: wrap; }
.modal__tabs:empty { display: none; }
.modal__tab { padding: 6px 14px; border: 1px solid #E3D6B5; border-radius: 8px 8px 0 0; background: #FBF8F1; cursor: pointer; font-size: 14px; }
.modal__tab[aria-selected="true"] { background: var(--verde); color: #fff; border-color: var(--verde); }
.modal__body { padding: 16px 20px 20px; overflow: auto; max-height: calc(100vh - 170px); }
.tabela-wrap { overflow: auto; }
.tabela { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.tabela th, .tabela td { padding: 8px 12px; border: 1px solid #E8E0CC; text-align: left; white-space: nowrap; }
.tabela th { background: var(--verde); color: #fff; position: sticky; top: 0; font-weight: 600; }
.tabela tbody tr:nth-child(even) { background: #FBF8F1; }

/* Formulários */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: #34413A; }
.field__hint { font-size: 13px; color: #6A766F; }
.input, .textarea, .select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid #D9CFB8;
  border-radius: 10px;
  background: #fff;
  color: var(--texto);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(11,77,51,.15); }
.form__msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF6F3; color: #8E2F1F; font-size: 15px; }
.form__msg--ok { background: #E8F3EC; color: var(--verde); }
.link-btn { justify-self: center; border: 0; background: none; color: var(--verde); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; padding: 4px; }

/* Login */
.page--login { display: grid; place-items: start center; }
.auth-card {
  width: min(440px, 100%);
  padding: 34px 32px 30px;
  background: #fff;
  border: 2px solid var(--dourado);
  border-radius: 18px;
  box-shadow: var(--sombra-forte);
  text-align: center;
}
.auth-card .form { text-align: left; margin-top: 22px; }
.auth-card__emblem { margin: 0 auto 10px; }
.auth-card__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--verde); }
.auth-card__lead { margin: 0; color: #4A5850; }

@media (max-width: 900px) {
  .page { padding: 48px var(--gutter) 150px; }
  .doc { flex-wrap: wrap; }
  .doc__actions { width: 100%; }
  .doc__actions .btn { flex: 1; }
}

@media (max-width: 600px) {
  .page__title { font-size: 44px; }
  .post__title { font-size: 34px; }
  .feed { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
}
