:root {
  color-scheme: light;
  --page: #f3f6f3;
  --surface: #ffffff;
  --ink: #1d2922;
  --muted: #59665e;
  --green: #2f6b4f;
  --green-dark: #214f3a;
  --line: #e2e9e3;
  --radius: 16px;
  --shadow: 0 12px 32px rgb(23 45 31 / 7%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page) !important;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.site-shell {
  width: min(100% - 2rem, 72rem) !important;
  margin: 2rem auto !important;
  border: 0;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed;
}

.site-shell > tbody > tr > td:first-child {
  width: 100% !important;
}

.site-shell > tbody > tr > td[width="20"] {
  display: none;
}

.site-shell .logo {
  height: 112px !important;
  padding: 1rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--surface) !important;
  background-image: none !important;
}

.site-shell .site-header-row {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-shell .site-logo-link {
  display: flex;
  min-width: 0;
  flex: 0 1 540px;
  align-items: center;
  text-decoration: none;
}

.site-shell .logo .site-logo {
  display: block;
  width: 100%;
  max-height: 82px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.site-shell .dmen {
  border: 0 !important;
  background: transparent !important;
}

.site-shell .dmen > td {
  width: 100% !important;
  height: auto !important;
  padding: 0.6rem 1.5rem;
  border-block: 1px solid var(--line);
  background: var(--surface) !important;
}

.site-shell .primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.85rem;
  align-items: center;
  justify-content: center;
}

.site-shell .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.site-shell .nav-divider {
  height: 1rem;
  border-left: 1px solid var(--line);
}

.site-shell .dmen td {
  height: auto !important;
}

.site-shell .dmen,
.site-shell .dmen font,
.site-shell .dmen a {
  font-family: inherit;
}

.site-shell .dmen .link {
  display: inline-block;
  margin-right: 0;
  padding: 0.25rem 0;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-shell .dmen .link:hover {
  color: var(--green);
  text-decoration: none;
}

.language-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.language-label {
  padding: 0.3rem 0.35rem 0.3rem 0.6rem;
  color: var(--muted);
  font-weight: 500;
}

.language-toggle a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--green-dark);
  text-decoration: none;
}

.language-toggle a[aria-current="true"] {
  background: var(--green-dark);
  color: #fff;
}

.site-content {
  height: auto !important;
  min-height: 20rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--surface) !important;
  background-image: none !important;
  vertical-align: top;
}

.site-content > center {
  display: block;
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  text-align: left;
}

.site-content font,
.site-content .verde,
.site-content .verdet,
.site-content .sverde {
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
}

.site-content .bverde {
  padding: 0.9rem 1rem 0.25rem !important;
  border: 0 !important;
  background: none !important;
  color: var(--green-dark);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.site-content .bnorm {
  padding: 0.4rem 1rem 1rem !important;
  border: 0 !important;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.75;
}

.site-content a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

.site-content a:hover {
  color: var(--green-dark);
}

.site-content a:focus-visible,
.site-shell a:focus-visible {
  outline: 3px solid #8bb79a;
  outline-offset: 3px;
  border-radius: 3px;
}

.site-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.site-content table {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-collapse: separate;
  border-spacing: 0;
}

.site-content center > table {
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-content center > table td {
  width: auto !important;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.site-content .showN {
  display: none;
}

.site-content .showY {
  display: table-row;
}

.site-content a[onclick] {
  cursor: pointer;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-card,
.article-detail {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card h2,
.article-detail h1 {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.35;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a:hover {
  text-decoration: underline;
}

.article-card > p,
.article-detail > p {
  margin: 0.7rem 0;
  color: var(--muted);
}

.article-meta {
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.1rem !important;
}

.article-button {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.article-button:hover {
  background: var(--green-dark);
}

.page-heading {
  margin: 0 0 0.5rem;
  color: var(--green-dark);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.page-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 62rem;
  margin: 0 auto;
  text-align: left;
}

.home-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.latest-article {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.latest-article .article-meta {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.latest-article h1 {
  margin: 0.5rem 0 1rem;
  color: var(--green-dark);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.4;
}

.latest-article > p:not(.article-meta, .article-actions) {
  color: var(--muted);
  line-height: 1.75;
}

.contact-details {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 1.5rem 0 0;
}

.contact-details > div {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-details dt {
  margin-bottom: 0.3rem;
  color: var(--green-dark);
  font-weight: 700;
}

.contact-details dd {
  margin: 0;
  color: var(--muted);
}

.contact-details img {
  width: auto;
  max-width: 100%;
}

.external-links {
  display: grid;
  gap: 0.6rem;
  max-width: 48rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.external-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.external-links li span {
  color: var(--ink);
}

.external-links li a {
  flex: 0 0 auto;
  font-weight: 600;
}

.site-shell .branco {
  height: auto !important;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface) !important;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

body.home .site-content > center > table {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.home .site-content > center > table > tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.home .site-content > center > table > tbody > tr {
  display: contents;
}

body.home .site-content > center > table > tbody > tr > td {
  display: block;
  padding: 0;
}

body.home .site-content > center > table img {
  display: block;
  width: min(100%, 38rem);
  margin: 0 auto 1.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body.home .site-content table[width="500"] {
  max-width: 44rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface) !important;
  box-shadow: var(--shadow);
}

body.home .site-content table[width="500"] td {
  padding: 1rem 1.2rem;
}

body.home .site-content table[width="500"] .bnorm {
  display: block;
}

body.home .site-content table[width="500"] img {
  width: auto;
  margin: 0;
  aspect-ratio: auto;
}

@media (max-width: 760px) {
  .site-shell {
    width: 100% !important;
    margin: 0 !important;
  }

  .site-shell .logo {
    height: auto !important;
    padding-inline: 1rem;
    border-radius: 0;
  }

  .site-shell .site-header-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .site-shell .site-logo-link {
    flex-basis: 100%;
  }

  .site-shell .language-toggle {
    margin-left: auto;
  }

  .site-shell .logo .site-logo {
    width: min(100%, 460px);
    max-height: 60px;
  }

  .site-shell .dmen > td {
    padding: 0.55rem 0.8rem;
  }

  .site-shell .dmen > td {
    display: block;
    width: 100% !important;
  }

  .site-shell .primary-nav {
    gap: 0.35rem 0.4rem;
  }

  .site-shell .nav-item {
    gap: 0.4rem;
  }

  .site-shell .dmen .link {
    font-size: 0.84rem;
  }

  .site-content {
    min-height: 0;
    padding: 1rem;
  }

  .home-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-image {
    max-height: 20rem;
  }

  .site-content center > table {
    margin-bottom: 1rem;
  }

  .site-content center > table td {
    padding: 0.65rem 0.75rem;
  }

  body.home .site-content > center > table > tbody {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home .site-content > center > table > tbody > tr > td {
    width: 100% !important;
  }

  body.home .site-content table[width="500"] td {
    padding: 0.9rem;
  }

  .site-shell .branco {
    padding: 0.9rem 1rem;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 140ms ease;
  }
}
