/* Farmas: layout editorial para artigos individuais.
   Escopo restrito a single.php. Não altera diretório, home ou listagens. */
.fdm-editorial-single {
  background: #f5f8f6;
  color: #253b32;
  padding-bottom: 76px;
  min-height: 60vh;
}
.fdm-editorial-single .fdm-article-breadcrumb {
  padding: 17px 0 10px;
  background: #fff;
  border-bottom: 1px solid #e7edea;
}
.fdm-editorial-single .fdm-article-breadcrumb .container {
  max-width: 1200px;
}
.fdm-editorial-single .fdm-article-wrap {
  width: min(100% - 40px, 1016px);
  margin: 36px auto 0;
  display: block;
}
.fdm-editorial-single .fdm-article-card {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4ebe7;
  border-radius: 20px;
  box-shadow: 0 14px 48px rgba(16, 69, 43, .055);
  padding: clamp(24px, 5.2vw, 66px);
  overflow-wrap: break-word;
}
.fdm-editorial-single .fdm-article-eyebrow {
  color: #078949;
  text-transform: uppercase;
  letter-spacing: .115em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 20px;
}
.fdm-editorial-single .fdm-article-header h1 {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.19;
  letter-spacing: -.035em;
  font-weight: 700;
  color: #183a2d;
  margin: 0 0 19px;
  max-width: 920px;
}
.fdm-editorial-single .fdm-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 22px;
  color: #677b72;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.fdm-editorial-single .fdm-article-image {
  margin: 0 0 clamp(25px, 3.5vw, 46px);
  overflow: hidden;
  width: 100%;
  border-radius: 13px;
  background: #ecf2ee;
  aspect-ratio: 16 / 8;
}
.fdm-editorial-single .fdm-article-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fdm-editorial-single .fdm-article-content {
  color: #2c3f37;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.84;
}
.fdm-editorial-single .fdm-article-content > * + * {
  margin-top: 18px;
}
.fdm-editorial-single .fdm-article-content p,
.fdm-editorial-single .fdm-article-content li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  overflow-wrap: break-word;
}
.fdm-editorial-single .fdm-article-content p {
  margin-bottom: 18px;
}
.fdm-editorial-single .fdm-article-content h2 {
  color: #164633;
  font-size: clamp(23px, 2.25vw, 30px);
  line-height: 1.33;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 42px 0 17px;
}
.fdm-editorial-single .fdm-article-content h3 {
  color: #20533a;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.45;
  font-weight: 700;
  margin: 30px 0 13px;
}
.fdm-editorial-single .fdm-article-content h4 {
  color: #20533a;
  font-size: 18px;
  line-height: 1.5;
  margin: 22px 0 11px;
}
.fdm-editorial-single .fdm-article-content strong {
  color: #1b382a;
  font-weight: 700;
}
.fdm-editorial-single .fdm-article-content a,
.fdm-editorial-single .fdm-article-links a {
  color: #037e47;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.fdm-editorial-single .fdm-article-content a:hover,
.fdm-editorial-single .fdm-article-content a:focus-visible {
  color: #04472d;
}
.fdm-editorial-single .fdm-article-content ul,
.fdm-editorial-single .fdm-article-content ol {
  margin: 14px 0 24px;
  padding-left: 26px;
  list-style-position: outside;
}
.fdm-editorial-single .fdm-article-content ul { list-style-type: disc; }
.fdm-editorial-single .fdm-article-content ol { list-style-type: decimal; }
.fdm-editorial-single .fdm-article-content li { margin: 9px 0; padding-left: 4px; }
.fdm-editorial-single .fdm-article-content blockquote {
  margin: 26px 0;
  padding: 20px 26px;
  background: #f0f8f2;
  border-left: 4px solid #159c57;
  border-radius: 0 10px 10px 0;
}
.fdm-editorial-single .fdm-article-content blockquote p:last-child { margin-bottom: 0; }
.fdm-editorial-single .fdm-article-content img,
.fdm-editorial-single .fdm-article-content video,
.fdm-editorial-single .fdm-article-content iframe {
  max-width: 100%;
  height: auto;
}
.fdm-editorial-single .fdm-article-content figure { margin: 23px 0; max-width: 100%; }
.fdm-editorial-single .fdm-article-content table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 15px;
  line-height: 1.5;
  margin: 22px 0 30px;
  border: 1px solid #dce9e1;
  border-radius: 10px;
}
.fdm-editorial-single .fdm-article-content th,
.fdm-editorial-single .fdm-article-content td {
  text-align: left;
  vertical-align: top;
  padding: 13px 16px;
  border-bottom: 1px solid #e2ebe5;
  min-width: 110px;
}
.fdm-editorial-single .fdm-article-content th {
  background: #eaf6ed;
  color: #194c34;
  font-weight: 700;
}
.fdm-editorial-single .fdm-article-content tr:nth-child(even) td {
  background: #f8fbf8;
}
.fdm-editorial-single .fdm-article-content hr {
  border: 0;
  border-top: 1px solid #e4ebe7;
  margin: 32px 0;
}
.fdm-editorial-single .fdm-article-links {
  background: #f8fbf9;
  border: 1px solid #e1ece5;
  border-radius: 14px;
  padding: 24px;
  margin: 42px 0;
}
.fdm-editorial-single .fdm-article-links h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #1c5335;
}
.fdm-editorial-single .fdm-article-links h3 {
  font-size: 16px;
  color: #295640;
  margin: 14px 0 10px;
}
.fdm-editorial-single .fdm-article-links ul {
  list-style: disc;
  padding-left: 22px;
}
.fdm-editorial-single .fdm-article-links li {
  margin: 8px 0;
  line-height: 1.6;
}
.fdm-editorial-single .fdm-article-next {
  background: #0f573a;
  padding: clamp(24px, 4vw, 39px);
  color: #f2fff8;
  border-radius: 14px;
  margin-top: 48px;
}
.fdm-editorial-single .fdm-article-next-kicker {
  color: #b8e9c9;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 11px;
  font-weight: 700;
}
.fdm-editorial-single .fdm-article-next h2 {
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.35;
  font-size: clamp(21px, 2.2vw, 28px);
}
.fdm-editorial-single .fdm-article-next p:not(.fdm-article-next-kicker) {
  font-size: 15px;
  line-height: 1.75;
  color: #e1f2e6;
  margin-bottom: 20px;
}
.fdm-editorial-single .fdm-article-back {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  background: white;
  color: #145b39;
  font-size: 14px;
  font-weight: 700;
}
.fdm-editorial-single .fdm-article-back:hover,
.fdm-editorial-single .fdm-article-back:focus-visible {
  color: #075032;
  background: #e7f9ed;
}
.fdm-editorial-single .fdm-article-related {
  margin: 48px 0 0;
}
.fdm-editorial-single .fdm-article-related .title_rel h2 {
  font-size: 25px;
  color: #1e4b36;
  margin-bottom: 20px;
}
.fdm-editorial-single .fdm-article-related .list.rel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.fdm-editorial-single .fdm-article-related .list.rel .item {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.fdm-editorial-single .fdm-article-related .list.rel .item img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .fdm-editorial-single .fdm-article-wrap { width: min(100% - 28px, 820px); margin-top: 22px; }
  .fdm-editorial-single .fdm-article-card { padding: 28px 25px; }
  .fdm-editorial-single .fdm-article-related .list.rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .fdm-editorial-single { padding-bottom: 45px; }
  .fdm-editorial-single .fdm-article-wrap { width: calc(100% - 20px); margin-top: 12px; }
  .fdm-editorial-single .fdm-article-card { border-radius: 12px; padding: 23px 17px; }
  .fdm-editorial-single .fdm-article-eyebrow { font-size: 10px; margin-bottom: 13px; }
  .fdm-editorial-single .fdm-article-meta { font-size: 12px; gap: 4px 10px; margin-bottom: 20px; }
  .fdm-editorial-single .fdm-article-image { border-radius: 8px; margin-bottom: 26px; aspect-ratio: 16 / 10; }
  .fdm-editorial-single .fdm-article-content { font-size: 16px; line-height: 1.8; }
  .fdm-editorial-single .fdm-article-content h2 { margin-top: 30px; }
  .fdm-editorial-single .fdm-article-content th,
  .fdm-editorial-single .fdm-article-content td { padding: 10px 12px; font-size: 13px; min-width: 94px; }
  .fdm-editorial-single .fdm-article-related .list.rel { grid-template-columns: 1fr; gap: 14px; }
  .fdm-editorial-single .fdm-article-next { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .fdm-editorial-single a { transition: none; }
}
