/* Guides hub and guide pages, V2 editorial edition. Layout after
 * hex.tech/resources/guides: title, short line, grid of cards (art, title,
 * "Ler o guia"). Builds on team-pages.css: same rules, panels and accents. */

/* Hub opening: one large title and its line. */
.team-page .team-page__hero.guides-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 18px;
  min-height: 0;
  padding-block: clamp(40px, 5vw, 84px) clamp(30px, 3.6vw, 52px);
}
.team-page .guides-hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: .96;
  letter-spacing: -.045em;
}
.team-page .guides-hero__lede {
  max-width: 44rem;
  color: var(--team-muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.team-page .guides-index {
  padding-block: clamp(30px, 3.6vw, 56px) clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--team-rule);
}

/* Cards */
.team-page .guides-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.team-page .guides-cards > li { min-width: 0; }
.team-page .guide-card {
  --card-on: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--team-rule);
  border-color: color-mix(in srgb, var(--team-rule), #a18ab4 calc(100% * var(--card-on)));
  border-radius: 6px;
  background: var(--team-panel);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.team-page .guide-card:is(:hover, :focus-visible) {
  --card-on: 1;
  box-shadow: 4px 4px 0 var(--destination-lilac);
}
.team-page .guide-card__art {
  display: grid;
  place-items: center;
  aspect-ratio: 360 / 204;
  padding: clamp(10px, 1.4vw, 18px);
  border-bottom: 1px solid var(--team-rule);
  background: var(--destination-lilac) var(--destination-grain);
}
.team-page .guide-card__art svg,
.team-page .guide-hero__art svg {
  display: block;
  width: 100%;
  height: auto;
}
.team-page .guide-card__copy {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: clamp(16px, 1.6vw, 22px);
}
.team-page .guide-card__title {
  font-size: clamp(1.16rem, 1.55vw, 1.42rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.team-page .guide-card__summary {
  color: var(--team-muted);
  font-size: .9rem;
  line-height: 1.5;
}
.team-page .guide-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--team-accent);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, #a497c8, currentColor calc(100% * var(--card-on)));
  text-underline-offset: 4px;
}

/* Guide page opening: copy on the left, the first step's plate on the right. */
.team-page .guide-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.3rem); }
.team-page .guide-hero__art {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(18px, 3vw, 44px);
  border: 1px solid var(--team-rule);
  border-radius: 6px;
  background: var(--destination-lilac) var(--destination-grain);
  aspect-ratio: 360 / 230;
}

/* What you will learn */
.team-page .guide-learn__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin-top: 26px;
  counter-reset: guide-learn;
}
.team-page .guide-learn__list li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 10px;
  padding-block: 16px;
  border-top: 1px solid var(--team-rule);
  font-size: 1.02rem;
  line-height: 1.55;
  counter-increment: guide-learn;
}
.team-page .guide-learn__list li::before {
  content: counter(guide-learn, decimal-leading-zero);
  color: var(--team-accent);
  font: 400 .78rem/2 var(--team-mono);
  letter-spacing: .06em;
}

/* Steps: same layout as the guides inside product pages. */
.team-page .guide-steps .illustrated-guide__steps article > div > .team-page__label {
  margin: 0 0 14px;
  color: var(--team-accent);
}
.team-page .guide-steps .illustrated-guide__steps article { scroll-margin-top: calc(var(--soceo-nav-height, 76px) + 16px); }

.team-page .guide-where h2 { margin-top: 12px; }
.team-page .guide-more .guides-cards { margin-top: 23px; }

@media (max-width: 1000px) {
  .team-page .guides-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-page .guide-hero__art { max-width: 560px; }
}
@media (max-width: 740px) {
  .team-page .guide-learn__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .team-page .guides-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .team-page .guide-card { transition: none; }
}
