/* =========================================================
   THORKIA WEB V31 R4.10 · BLOG REPAIRS
   07/09/2026
   Scope: surgical repairs only. No redesign of the 9 article architectures.
   ========================================================= */

/* Final CTA: the generic article-content link rule has greater specificity
   than the button rule. Force readable button labels in all 9 families. */
.article-page .article-content .article-register-btn,
.article-page .article-content .article-register-btn:link,
.article-page .article-content .article-register-btn:visited,
.article-page .article-content .article-register-btn:hover,
.article-page .article-content .article-register-btn:focus-visible{
  color:#fff!important;
  text-decoration:none!important;
}
.article-page .article-content .article-register-btn>span{color:inherit!important}
.article-page .article-content .article-contact-btn,
.article-page .article-content .article-contact-btn:link,
.article-page .article-content .article-contact-btn:visited{
  color:#233a55!important;
  text-decoration:none!important;
}

/* Automation and Agenda deliberately float the cover below the hero box.
   R4.8 also set overflow:hidden on every hero, clipping 37-42px of the image. */
.article-architecture-automatizacion .arch-automation,
.article-architecture-agenda .arch-agenda{overflow:visible!important}
.article-architecture-automatizacion .arch-auto-cover,
.article-architecture-agenda .arch-agenda-cover{position:relative;z-index:1}
.article-architecture-automatizacion .arch-toc-band,
.article-architecture-agenda .arch-agenda-map{position:relative;z-index:2}

/* Horizontal TOC: avoid the 4+1 orphan layout when an article has five H2s.
   Six items are balanced as 3+3; seven retain the intended 4+3 rhythm. */
@media (min-width:1181px){
  .article-page .article-toc-band.toc-count-5 .article-toc-links{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .article-page .article-toc-band.toc-count-6 .article-toc-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
.article-page .article-toc-band .article-toc-links a{
  transition:color .16s ease,background-color .16s ease,border-color .16s ease;
}
.article-page .article-toc-band .article-toc-links a:hover,
.article-page .article-toc-band .article-toc-links a:focus-visible{
  color:var(--a)!important;
  border-top-color:var(--a)!important;
  background:color-mix(in srgb,var(--a) 6%,transparent);
}
@media (min-width:701px) and (max-width:980px){
  .article-page .article-toc-band.toc-count-5 .article-toc-links a:last-child{grid-column:1/-1}
}
@media (max-width:700px){
  .article-page .article-toc-band.toc-count-5 .article-toc-links a:last-child{grid-column:auto}
}
