/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #103126;
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(39,195,111,0.18) 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 10%, rgba(10,143,70,0.10) 0%, transparent 55%),
    #ffffff;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: #0a8f46;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}
.skip-link:focus { left: 12px; }

/* Layout */
.container {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 122, 68, 0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(10, 143, 70, 0.16));
}
.brand-text { min-width: 0; }
.brand-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-subtitle {
  font-size: 0.92rem;
  opacity: 0.8;
}

.right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.meta-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #0c7040;
  background: rgba(10, 143, 70, 0.08);
  border: 1px solid rgba(10, 143, 70, 0.14);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(14, 122, 68, 0.12);
  color: #0a8f46;
  text-decoration: none;
  font-weight: 900;
  transition: transform .08s ease, filter .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 22px rgba(10, 143, 70, 0.08);
}
.back-link::before { content: "←"; }
.back-link:hover { transform: translateY(-1px); filter: brightness(0.96); }
.back-link:active { transform: translateY(0); }

/* Main */
.main { padding: 18px 0 28px; }

/* Doc container */
.doc {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(14, 122, 68, 0.10);
  border-radius: 22px;
  box-shadow:
    0 18px 40px rgba(10, 143, 70, 0.10),
    0 1px 0 rgba(255,255,255,0.8) inset;
  overflow: hidden;
  position: relative;
}
.doc::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(650px 300px at 25% 0%, rgba(39,195,111,0.14), transparent 60%);
  pointer-events: none;
}
.doc > * { position: relative; }

.doc-header {
  padding: 22px 22px 10px;
  border-bottom: 1px solid rgba(14, 122, 68, 0.10);
  background: rgba(255,255,255,0.65);
}
.doc-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.2px;
  font-weight: 950;
  color: #0a8f46;
}
.doc-updated {
  margin: 10px 0 0;
  color: rgba(16,49,38,0.76);
  font-weight: 700;
}

/* Body spacing */
.doc-section {
  padding: 16px 22px;
}
.doc-section + .doc-section {
  border-top: 1px solid rgba(14, 122, 68, 0.08);
}

.doc-h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  color: #103126;
  font-weight: 900;
}
.doc-h3 {
  margin: 14px 0 8px;
  font-size: 1.02rem;
  color: rgba(16,49,38,0.92);
  font-weight: 900;
}

.doc-paragraph {
  margin: 10px 0;
  line-height: 1.85;
  font-size: 1.02rem;
  color: rgba(16,49,38,0.92);
  max-width: 92ch;
}

/* Lists like docs */
.doc-list {
  margin: 8px 0 0;
  padding-left: 22px;
  line-height: 1.85;
}
.doc-list li { margin: 6px 0; }

/* Info blocks */
.info-block {
  background: rgba(10, 143, 70, 0.05);
  border: 1px solid rgba(10, 143, 70, 0.12);
  border-radius: 16px;
  padding: 14px 14px;
}
.info-block p {
  margin: 8px 0;
  line-height: 1.75;
}

/* Links */
a {
  color: #0a8f46;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { filter: brightness(0.94); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 16px 12px 18px;
  font-size: 0.92rem;
  color: rgba(58,92,80,0.92);
  border-top: 1px solid rgba(14, 122, 68, 0.10);
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(8px);
}

/* Responsividade */
@media (max-width: 740px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .right { width: 100%; justify-content: flex-start; }
  .meta-pill { width: 100%; text-align: center; }
  .back-link { width: 100%; justify-content: center; }
  .doc-header, .doc-section { padding-left: 16px; padding-right: 16px; }
  .doc-paragraph { max-width: none; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
