/* /english-trainer - the trainer's promo page (2026-10-19, templates/trainer-promo.twig).
   Built from the home page parts: the .home-find hero card, .section-heading,
   tile borders and radii; colours and sizes are site.css variables. */

/* hero: the home search card's background and padding */
.tp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 32px 30px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #EEF2FF 0%, #F7F9FF 55%, #FFF4EE 100%);
  box-shadow: var(--shadow);
}
.tp-hero .breadcrumb { margin-bottom: 14px; }
.tp-hero h1 { margin: 0 0 10px; color: var(--ink); font-size: 32px; font-weight: 900; line-height: 1.2; }
.tp-lead { max-width: 560px; margin: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.tp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 800; text-decoration: none;
}
.tp-btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tp-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 var(--line);
  color: var(--primary-dark); font-size: 13px; font-weight: 700;
}
.tp-chips svg { width: 15px; height: 15px; flex: none; }
/* the pictures have a white background: multiply lets the card's colour through */
.tp-hero-art { display: flex; align-items: flex-end; gap: 4px; padding-right: 8px; }
.tp-hero-art img { display: block; width: auto; height: 220px; mix-blend-mode: multiply; }

/* topics: 4 / 3 / 2 / 1 per row */
.tp-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tp-topic {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-topic:hover { border-color: #C9D3FB; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.tp-topic-art { display: flex; justify-content: center; height: 96px; margin-bottom: 4px; }
.tp-topic-art img { height: 96px; width: auto; }
.tp-topic-level { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 800; }
.tp-topic strong { font-size: 17px; font-weight: 900; }
.tp-topic-text { flex: 1; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tp-topic-go { margin-top: 4px; color: var(--primary); font-size: 14px; font-weight: 800; }

/* task types: one row of five */
.tp-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tp-kinds li {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper);
}
.tp-kind-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); }
.tp-kind-icon svg { width: 22px; height: 22px; }
.tp-kinds strong { font-size: 15px; font-weight: 800; color: var(--ink); }
.tp-kinds small { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* how it helps: three tiles like the home rubric tiles */
.tp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tp-why-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.tp-why-item img { flex: none; }
.tp-why-item strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 900; color: var(--ink); }
.tp-why-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* final call */
.tp-final {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 28px; margin: 0 0 40px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, #EEF2FF 0%, #F7F9FF 55%, #FFF4EE 100%);
}
.tp-final img { height: 110px; width: auto; mix-blend-mode: multiply; }
.tp-final div { flex: 1; }
.tp-final h2 { margin: 0 0 4px; font-size: 24px; font-weight: 900; color: var(--ink); }
.tp-final p { margin: 0; color: var(--muted); }

/* the detailed part: plain article text */
.tp-more { color: #334155; line-height: 1.6; }
.tp-more h2 { margin: 0 0 6px; font-size: 26px; font-weight: 900; color: var(--ink); }
.tp-more h3 { margin: 26px 0 10px; font-size: 20px; font-weight: 900; color: var(--ink); }
.tp-more p { margin: 0 0 12px; }
.tp-steps, .tp-topic-list, .tp-who ul { margin: 0; padding-left: 22px; }
.tp-steps li, .tp-topic-list li, .tp-who li { margin-bottom: 6px; }
.tp-who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tp-faq details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.tp-faq summary { padding: 12px 16px; font-weight: 800; cursor: pointer; color: var(--ink); }
.tp-faq details p { margin: 0; padding: 0 16px 14px; }

@media (max-width: 1100px) {
  .tp-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tp-hero { grid-template-columns: 1fr; padding: 22px 20px; }
  .tp-hero-art { justify-content: center; padding: 0; }
  .tp-hero-art img { height: 170px; }
  .tp-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-why, .tp-who { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tp-hero h1 { font-size: 26px; }
  .tp-lead { font-size: 16px; }
  .tp-btn { width: 100%; justify-content: center; }
  /* one topic per row, picture on the left: seven tall cards made the page too long */
  .tp-topics { grid-template-columns: 1fr; }
  .tp-topic { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: start; }
  .tp-topic-art { grid-row: 1 / span 4; height: 92px; margin: 0; }
  .tp-topic-art img { height: 92px; max-width: 76px; object-fit: contain; }
  .tp-topic-level { justify-self: start; }
  /* task types: a compact list, icon on the left */
  .tp-kinds { grid-template-columns: 1fr; gap: 8px; }
  .tp-kinds li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; justify-items: start; align-items: center; text-align: left; padding: 10px 14px; }
  .tp-kind-icon { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
  .tp-final { flex-direction: column; text-align: center; padding: 18px; }
  .tp-final .tp-btn { width: 100%; }
}
