/**
 * guies-practiques.css
 */

body.guies-practiques #main {
  padding-top: 0;
}

.guides-page {
  background: var(--muted-bg);
}


/* INTRO */

.guides-intro {
  padding: 48px 0 0;
  background: var(--muted-bg);
}

.guides-intro p {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.75;
}



/* LLISTAT DE GUIES */

.guides-list-section {
  padding: 54px 0 90px;
}

.guides-category-card {
  padding: 28px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.guides-category-card + .guides-category-card {
  margin-top: 34px;
}

.guides-category-heading h2 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.guides-category-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--orange);
}

@media (min-width: 900px) {

  .guides-category-card {
    padding: 42px;
  }

  .guides-category-card + .guides-category-card {
    margin-top: 44px;
  }
}


/* FILES DE GUIA */

.guides-list {
  display: grid;
  gap: 12px;
}

.guide-row {
  display: block;
  padding: 12px;
  border-radius: 20px;
  background: var(--muted-bg);
  border: 1px solid var(--border);
}

.guide-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
}

.guide-row.has-description {
  cursor: default;
}

.guide-row.is-open {
  background: #ffffff;
  box-shadow: var(--shadow-small);
}

.guide-row-main {
  min-width: 0;
}

.guide-row-title,
.guide-row-toggle {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
}

.guide-row-title span,
.guide-row-toggle span {
  display: block;
}

.guide-row-toggle {
  position: relative;
  padding-right: 30px;
  cursor: pointer;
}

.guide-row-toggle::after {
  content: "";
  position: absolute;
  top: 0.35em;
  right: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease, top 0.18s ease;
}

.guide-row-toggle[aria-expanded="true"]::after {
  top: 0.55em;
  transform: rotate(225deg);
}

.guide-row-toggle:hover,
.guide-row-toggle:focus {
  color: var(--green);
}

.guide-row-toggle:focus-visible {
  outline: 3px solid rgba(47, 143, 131, 0.25);
  outline-offset: 4px;
  border-radius: 10px;
}

.guide-row-description-inner {
  padding-top: 12px;
}

.guide-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-row-actions .guide-pdf-link.btn-primary {
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.04em;
  min-height: 0;
}


.guide-row-description {
  display: block;
}

.guide-row-description.collapsing {
  overflow: hidden;
  transition: height 0.35s ease;
}

.guide-row-description p {
  margin: 0;
  max-width: 860px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

.guide-row-description p + p {
  margin-top: 0.8em;
}

@media (min-width: 720px) {
  .guide-row {
      padding: 14px 20px;
    }

    .guide-row-head {
      column-gap: 20px;
    }

  .guide-row-title,
  .guide-row-toggle {
    font-size: 1.12rem;
  }
  .guide-row-actions .guide-pdf-link.btn-primary {
    padding: 14px 20px;
  }

}