/*
 * Layout editorial interno.
 * Intencionalmente enxuto: prioridade em leitura, indexação e responsividade.
 * As cores são herdadas dos tokens atuais e serão refinadas depois.
 */
.uk-inner { min-height: 60vh; background: var(--uk-white); }
.uk-inner__hero { background: var(--uk-mist); padding: clamp(3rem,6vw,5.5rem) 0; border-bottom: 1px solid var(--uk-border); }
.uk-inner__hero h1 { max-width: 100%; margin: 0; font-size: clamp(2.3rem,4.8vw,4rem); font-weight: 600; overflow-wrap: break-word; }
.uk-inner__hero > .uk-container > p:not(.uk-eyebrow),
.uk-archive-description { max-width: 650px; margin: 1rem 0 0; color: var(--uk-muted); font-size: 1.08rem; }
.uk-inner__body { padding-block: clamp(3rem,6.5vw,6rem); }
.uk-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.7rem; color: var(--uk-muted); font-size: .85rem; }
.uk-breadcrumb a { text-underline-offset: .3em; }
.uk-article__meta { margin-top: 1.25rem; color: var(--uk-muted); font-size: .9rem; }
.uk-article__cover { padding-top: 3rem; }
.uk-article__cover img { width: 100%; height: auto; max-height: 580px; object-fit: cover; border-radius: var(--uk-radius); }

/* WordPress editor / semantic post content */
.uk-prose { font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.85; color: var(--uk-ink); overflow-wrap: anywhere; }
.uk-prose > :first-child { margin-top: 0; }
.uk-prose > :last-child { margin-bottom: 0; }
.uk-prose p, .uk-prose ul, .uk-prose ol, .uk-prose blockquote { margin-block: 0 1.55rem; }
.uk-prose h2, .uk-prose h3, .uk-prose h4 { margin: 2.35rem 0 1rem; line-height: 1.25; font-weight: 600; scroll-margin-top: 5rem; }
.uk-prose h2 { font-size: clamp(1.55rem,2.6vw,2.05rem); }
.uk-prose h3 { font-size: clamp(1.25rem,2vw,1.5rem); }
.uk-prose h4 { font-size: 1.15rem; }
.uk-prose ul, .uk-prose ol { padding-left: 1.5rem; }
.uk-prose li + li { margin-top: .45rem; }
.uk-prose a { color: var(--uk-magenta-rich); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.uk-prose img { max-width: 100%; height: auto; }
.uk-prose figure { max-width: 100%; margin: 2rem 0; }
.uk-prose figcaption { font-size: .84rem; color: var(--uk-muted); text-align: center; }
.uk-prose blockquote { border-left: 3px solid var(--uk-magenta); padding: .65rem 0 .65rem 1.5rem; font-size: 1.15em; }
.uk-prose pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: var(--uk-mist); border-radius: var(--uk-radius); font-size: .85em; }
.uk-prose code { overflow-wrap: anywhere; }
.uk-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.uk-prose th, .uk-prose td { border: 1px solid var(--uk-border); padding: .65rem .8rem; text-align: left; }
.uk-prose iframe { max-width: 100%; }
.uk-prose .wp-block-image img { height: auto; }
.uk-prose .alignwide, .uk-prose .alignfull { max-width: 100%; }
.uk-prose .wp-block-button__link { display: inline-block; background: var(--uk-magenta); color: #fff; text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--uk-radius); }
.uk-prose .wp-block-separator { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--uk-border); }

/* Blog index, archives, and cards */
.uk-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.25rem,3vw,2.5rem); }
.uk-post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ebe6f0; border-radius: var(--uk-radius); background: var(--uk-white); }
.uk-post-card__media { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--uk-mist); }
.uk-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.uk-post-card__media:hover img { transform: scale(1.035); }
/* Fallback institucional para posts sem imagem destacada.
 * Composição decorativa sem imagens externas ou texto sublinhado. */
.uk-post-card__placeholder {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, var(--uk-magenta), var(--uk-purple));
  text-decoration: none;
}
.uk-post-card__placeholder::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border: clamp(18px, 2vw, 36px) solid rgba(255,255,255,.14);
  border-radius: 50%;
  inset: -35% auto auto -24%;
}
.uk-post-card__placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 36%;
  height: 150%;
  top: -25%;
  right: 8%;
  transform: rotate(28deg);
  background: rgba(255,255,255,.09);
}
.uk-post-card__media .uk-post-card__placeholder-logo {
  display: block;
  width: min(54%, 205px);
  height: auto;
  max-height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 5px rgba(40,15,50,.12));
}
.uk-post-card__media:hover .uk-post-card__placeholder-logo { transform: none; }
.uk-post-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.5rem; }
.uk-post-card__meta { margin-bottom: .65rem; font-size: .82rem; color: var(--uk-muted); }
.uk-post-card__title { margin-bottom: 1rem; font-size: clamp(1.3rem,1.6vw,1.6rem); line-height: 1.3; overflow-wrap: anywhere; }
.uk-post-card__title a { text-decoration: none; }
.uk-post-card__title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.uk-post-card__excerpt { color: var(--uk-muted); font-size: .95rem; }
.uk-post-card__cta {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: .7rem 1.2rem;
  background: var(--uk-purple);
  border-color: var(--uk-purple);
  color: var(--uk-white);
  font-size: .88rem;
  font-weight: 600;
  gap: .8rem;
}
.uk-post-card__cta:hover,
.uk-post-card__cta:focus-visible {
  background: var(--uk-magenta-rich);
  border-color: var(--uk-magenta-rich);
  color: var(--uk-white);
}
.uk-pagination { margin-top: 3rem; }
.uk-pagination .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; }
.uk-pagination a, .uk-pagination .current { display: inline-flex; padding: .6rem .85rem; min-height: 42px; align-items: center; border-radius: var(--uk-radius); border: 1px solid var(--uk-border); text-decoration: none; font-weight: 600; }
.uk-pagination .current { background: var(--uk-magenta); color: #fff; border-color: var(--uk-magenta); }
.uk-empty { max-width: 680px; }
.uk-empty h2 { font-size: 1.8rem; }

/* Related article navigation */
.uk-article__tags { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--uk-border); font-size: .85rem; }
.uk-article__navigation { margin-top: 2rem; }
.uk-article__navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.uk-article__navigation .nav-previous, .uk-article__navigation .nav-next { min-width: 0; }
.uk-article__navigation a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; padding: 1.25rem; border: 1px solid var(--uk-border); border-radius: var(--uk-radius); overflow-wrap: anywhere; }
.uk-article__navigation a:hover { background: var(--uk-mist); }
.uk-nav-label { color: var(--uk-muted); font-size: .8rem; }
.uk-article__back { margin: 2rem 0 0; }
.uk-page-links { margin-top: 2rem; }
.uk-inner--not-found .uk-inner__body { padding-block: clamp(6rem,10vw,9rem); }
.uk-inner--not-found h1 { font-size: clamp(2rem,4vw,3.4rem); }

@media (max-width: 1020px) {
  .uk-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .uk-post-grid { grid-template-columns: 1fr; }
  .uk-post-card__body { padding: 1.25rem; }
  .uk-inner__hero { padding-block: 2.7rem; }
  .uk-inner__body { padding-block: 2.5rem; }
  .uk-article__cover { padding-top: 1.5rem; }
  .uk-article__navigation .nav-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .uk-post-card__media img { transition: none; }
}


/* Template Página SEO: estrutura independente do tema visual definitivo. */
.uk-seo__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, 290px);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}
.uk-seo__content { min-width: 0; }
.uk-seo__summary {
  max-width: 66ch;
  margin: 1.5rem 0 0;
  color: var(--uk-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}
.uk-seo__cover { padding-top: 2.5rem; }
.uk-seo__cover img {
  display: block;
  width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: cover;
  border-radius: var(--uk-radius);
}
.uk-seo__aside { position: sticky; top: 6.5rem; }
.uk-seo__cta {
  padding: clamp(1.25rem, 2vw, 2rem);
  background: var(--uk-mist);
  border: 0;
  border-top: 3px solid var(--uk-magenta);
  border-radius: var(--uk-radius);
}
.uk-seo__cta .uk-eyebrow { margin-bottom: .75rem; }
.uk-seo__cta h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.uk-seo__cta p:not(.uk-eyebrow) { color: var(--uk-muted); font-size: .94rem; }
.uk-seo__cta .uk-button { width: 100%; }
.uk-seo__cta .uk-text-link { font-size: .9rem; }

@media (max-width: 820px) {
  .uk-seo__layout { grid-template-columns: minmax(0, 1fr); }
  .uk-seo__aside { position: static; }
  .uk-seo__cta { max-width: 540px; }
}


/* HTML site map: editorial links in two equal columns, without new cards. */
.uk-site-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 3rem;
}
.uk-site-map__column { min-width: 0; }
.uk-site-map__column h2 {
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--uk-border);
  color: var(--uk-ink);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 600;
}
.uk-site-map__links {
  display: grid;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.uk-site-map__links li { margin: 0; }
.uk-site-map__links a {
  display: inline-block;
  color: var(--uk-purple);
  text-decoration: none;
  text-underline-offset: .3em;
  line-height: 1.55;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  overflow-wrap: anywhere;
}
.uk-site-map__links a:hover,
.uk-site-map__links a:focus-visible {
  color: var(--uk-magenta-rich);
  text-decoration: underline;
}
.uk-site-map__empty {
  max-width: 40ch;
  margin: 0;
  color: var(--uk-muted);
  line-height: 1.75;
}
@media (max-width: 640px) {
  .uk-site-map__grid { grid-template-columns: 1fr; }
}


/* Links editoriais entre páginas SEO já publicadas; sem novo componente visual. */
.uk-seo__related {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--uk-border);
}
.uk-seo__related h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 600;
}
.uk-seo__related ul { margin: 0; padding-left: 1.3rem; }
.uk-seo__related li + li { margin-top: .5rem; }
.uk-seo__related a {
  color: var(--uk-magenta-rich);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
