/*
 * Psicocultura's native category and tag archive skin.
 * Shared taxonomy composition remains in the GIK25 archive engine.
 * Never affect TotalDesign or a legacy Elementor archive.
 */
body.pc-native-archive {
  --td-archive-text: #172332;
  --td-archive-muted: #556674;
  --td-archive-border: #e4ebee;
  --td-archive-surface: #fff;
  --td-archive-soft: #f4fafb;
  --td-archive-accent: #087f88;
  --td-archive-radius: 20px;
  --td-archive-width: 1180px;
  --pc-archive-teal: #12b9c3;
  --pc-archive-pink: #ef4f88;
  --pc-archive-shadow: 0 12px 32px rgba(23, 35, 50, .085);
}

body.pc-native-archive .td-category-archive {
  background: radial-gradient(circle at 10% 0%, rgba(18,185,195,.055), transparent 22rem),
              linear-gradient(180deg, #fff 0%, #fbfdfd 100%);
}

body.pc-native-archive .td-category-archive__shell {
  max-width: 1180px;
  padding-block: 22px 64px;
}

body.pc-native-archive .td-category-breadcrumbs {
  margin-bottom: 17px;
  color: #71818e;
  font-size: .82rem;
}

body.pc-native-archive .td-category-breadcrumbs a:hover,
body.pc-native-archive .td-category-breadcrumbs a:focus-visible {
  color: #079ca7;
}

body.pc-native-archive .td-category-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: none;
  min-height: 0;
  margin-bottom: 30px;
  padding: clamp(24px, 3.5vw, 42px);
  border: 1px solid #d9ecef;
  border-radius: 22px;
  background: radial-gradient(circle at 94% 3%, rgba(239,79,136,.11), transparent 23rem),
              linear-gradient(130deg, #f0fbfc, #fff 72%);
  color: #172332;
  box-shadow: 0 10px 28px rgba(23,35,50,.045);
}

body.pc-native-archive .td-category-hero::after {
  display: none;
}

body.pc-native-archive .td-category-hero__eyebrow {
  margin: 0;
  color: #087f88;
  font: 800 .75rem/1.35 "Alata", "Roboto", sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body.pc-native-archive .td-category-hero h1 {
  margin: 0;
  max-width: 100%;
  color: #172332;
  font: 600 clamp(1.85rem, 3.4vw, 2.9rem)/1.12 "Roboto Slab", Georgia, serif;
  letter-spacing: -.028em;
  overflow-wrap: anywhere;
}

body.pc-native-archive .td-category-hero__description {
  margin-top: 6px;
  max-width: 770px;
  color: #4f6070;
  font-size: clamp(.94rem, 1.12vw, 1.03rem);
  line-height: 1.65;
}

body.pc-native-archive .td-hero-text-content {
  gap: 10px;
}

body.pc-native-archive .td-hero-sidebar {
  width: 100%;
}

body.pc-native-archive .td-category-semantic__stats span {
  border-color: #d1ebee;
  background: #fff;
}

body.pc-native-archive .td-category-semantic__stats strong {
  color: #087f88;
}

body.pc-native-archive .td-category-hero__actions a,
body.pc-native-archive .td-category-ingresso-chip {
  border: 1px solid #b7e5e8;
  background: #fff;
  color: #087f88;
}

body.pc-native-archive .td-category-hero__actions a:hover,
body.pc-native-archive .td-category-ingresso-chip:hover {
  background: #12b9c3;
  color: #fff;
}

body.pc-native-archive .td-category-results__heading {
  border-bottom-color: #e4ebee;
}

body.pc-native-archive .td-category-results__heading h2,
body.pc-native-archive .td-category-taxonomy__header h2,
body.pc-native-archive .td-category-semantic__intro h2 {
  color: #172332;
  font: 400 clamp(1.35rem, 2vw, 1.85rem)/1.15 "Alata", "Roboto", sans-serif;
}

body.pc-native-archive .td-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.pc-native-archive .td-category-card,
body.pc-native-archive .td-category-card:first-child,
body.pc-native-archive .td-category-card.td-category-card--lead,
body.pc-native-archive .td-category-card.td-category-card--no-media {
  display: flex !important;
  flex-direction: column;
  grid-column: auto !important;
  min-width: 0;
  border: 1px solid #e4ebee;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--pc-archive-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.pc-native-archive .td-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 34px rgba(23,35,50,.12);
}

body.pc-native-archive .td-category-card__media,
body.pc-native-archive .td-category-card:first-child .td-category-card__media,
body.pc-native-archive .td-category-card.td-category-card--lead .td-category-card__media {
  display: block;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #e7f3f5;
}

body.pc-native-archive .td-category-card--no-media .td-category-card__media {
  display: none !important;
}

body.pc-native-archive .td-category-card__body,
body.pc-native-archive .td-category-card:first-child .td-category-card__body,
body.pc-native-archive .td-category-card.td-category-card--lead .td-category-card__body,
body.pc-native-archive .td-category-card.td-category-card--no-media .td-category-card__body {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 19px !important;
}

body.pc-native-archive .td-category-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 10px;
  color: #71818e;
  font-size: .74rem;
  line-height: 1.5;
}

body.pc-native-archive .td-category-card__topic {
  color: #087f88;
  font-size: .7rem;
}

body.pc-native-archive .td-category-card__author {
  color: #556674;
  font-weight: 600;
}

body.pc-native-archive .td-category-card__separator {
  margin-inline: 2px;
  color: #aab8be;
}

body.pc-native-archive .td-category-card h3,
body.pc-native-archive .td-category-card:first-child h3,
body.pc-native-archive .td-category-card.td-category-card--lead h3 {
  margin: 0;
  font: 600 clamp(1.04rem, 1.2vw, 1.2rem)/1.25 "Roboto Slab", Georgia, serif;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

body.pc-native-archive .td-category-card h3 a {
  color: #172332;
}

body.pc-native-archive .td-category-card h3 a:hover,
body.pc-native-archive .td-category-card h3 a:focus-visible {
  color: #087f88;
}

body.pc-native-archive .td-category-card__excerpt {
  margin: 12px 0 17px;
  color: #4f6070;
  font-size: .88rem !important;
  line-height: 1.56;
}

body.pc-native-archive .td-category-card__read-more {
  align-self: flex-start;
  margin-top: auto;
  min-height: 32px;
  color: #087f88;
  font-size: .83rem;
  font-weight: 800;
}

body.pc-native-archive .td-category-card__read-more:hover,
body.pc-native-archive .td-category-card__read-more:focus-visible {
  color: #cb3e72;
}

body.pc-native-archive .td-category-taxonomy-card {
  border: 1px solid #dcebee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(23,35,50,.065);
}

body.pc-native-archive .td-category-semantic,
body.pc-native-archive .td-tag-surface,
body.pc-native-archive .td-category-filter-bar {
  border-color: #dcebee;
  background: #f4fafb;
}

body.pc-native-archive .td-category-pagination > ul.page-numbers > li > .page-numbers.current {
  border-color: #087f88;
  background: #087f88;
}

body.pc-native-archive .td-category-pagination > ul.page-numbers > li > a.page-numbers:hover,
body.pc-native-archive .td-category-pagination > ul.page-numbers > li > a.page-numbers:focus-visible {
  border-color: #12b9c3;
  background: #edf9fa;
}

@media (max-width: 980px) {
  body.pc-native-archive .td-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.pc-native-archive .td-category-archive__shell {
    padding-block: 16px 42px;
  }
  body.pc-native-archive .td-category-hero {
    padding: 23px 19px;
    margin-bottom: 25px;
  }
  body.pc-native-archive .td-category-hero h1 {
    font-size: clamp(1.7rem, 7.7vw, 2.25rem);
  }
  body.pc-native-archive .td-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.pc-native-archive .td-category-card__body,
  body.pc-native-archive .td-category-card:first-child .td-category-card__body,
  body.pc-native-archive .td-category-card.td-category-card--lead .td-category-card__body {
    padding: 17px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pc-native-archive .td-category-card {
    transition: none;
  }
}

/* The original taxonomy description stays fully available without monopolizing
   the category's first screen (native HTML details, no JavaScript required). */
body.pc-native-archive .td-category-hero__description-preview {
  margin: 0 0 9px;
}
body.pc-native-archive .td-category-hero__description-more {
  font-size: .9rem;
}
body.pc-native-archive .td-category-hero__description-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #087f88;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
body.pc-native-archive .td-category-hero__description-more summary:focus-visible {
  outline: 3px solid rgba(18,185,195,.45);
  outline-offset: 3px;
}
body.pc-native-archive .td-category-hero__description-full {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #dcebee;
}

/* A social artwork can contain text: don't crop it into a landscape cover. */
body.pc-native-archive .td-category-card.tag-da-instagram .td-category-card__media {
  aspect-ratio: 4 / 5;
  background: #f3fafb;
}
body.pc-native-archive .td-category-card.tag-da-instagram .td-category-card__image {
  object-fit: contain;
}
