/* Partners page-specific rules (base.css already loaded) */

/* Two-column partner blocks (uses same proportions as base .section but separate name) */
.partner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--gap);
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.partner:last-of-type { border-bottom: 0; }

/* Text column */
.partner h2 {
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.partner p { margin: 0 0 .9rem; }
.partner .bullets { margin: .25rem 0 1rem 1.25rem; }
.partner .bullets li { margin: .25rem 0; }

/* ===== Improved FAQ block ===== */
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.faq h3 {
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  color: var(--text);
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: .5rem 0;
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  background: #fff;
  transition: background .2s ease;
}
.faq summary:hover { background: rgba(0,0,0,.03); }
.faq summary:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 2px;
  border-radius: 10px;
}
.faq summary::after {
  content: "▾";
  font-size: 1rem;
  line-height: 1;
  transform-origin: 50% 50%;
  transition: transform .2s ease;
  color: var(--text);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > *:not(summary) {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

/* ===== Links (partners page content only) ===== */
.partner a,
.faq a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid rgba(238, 205, 246, 0.6);
  font-weight: 500;
  transition: border-color .25s ease, color .25s ease;
}
.partner a:hover,
.partner a:focus,
.faq a:hover,
.faq a:focus {
  border-bottom-color: var(--lilac);
  color: var(--text);
}
.partner a:visited,
.faq a:visited { color: var(--text); }
.partner a:focus-visible,
.faq a:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Image frame for partner figures: show full image inside */
.figure { aspect-ratio: 4/3; background: #fff; }
.figure img { object-fit: contain; width: 100%; height: 100%; }

/* ===== Mobile fix: stack columns and make images full-width (no squeeze) ===== */
@media (max-width: 900px) {
  .partner {
    grid-template-columns: 1fr;           /* stack */
  }
  .partner .col-text { order: 1; }
  .partner .col-media { order: 2; }

  /* Let the figure size itself naturally on mobile */
  .figure {
    aspect-ratio: auto;                   /* drop fixed ratio */
  }
  .figure img {
    width: 100%;
    height: auto;                         /* keep full image visible */
    object-fit: contain;
  }
}
/* --- Static FAQ layout (no clicking) --- */
.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.faq h3 {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.faq-item + .faq-item {
  border-top: 1px dashed var(--line);
  margin-top: .75rem;
  padding-top: .75rem;
}

.question {
  font-weight: 700;
  color: var(--text);
  margin-bottom: .25rem;
}

.answer {
  color: var(--muted);
  margin: 0 0 .25rem;
}

/* Links inside FAQ answers */
.faq a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid rgba(238, 205, 246, 0.6);
  font-weight: 500;
  transition: border-color .25s ease, color .25s ease;
}
.faq a:hover,
.faq a:focus {
  border-bottom-color: var(--lilac);
  color: var(--text);
}
