/* Pristine Pipeline Academy homepage refinement v2.1.
 * Scoped styles: only used by the Academy on the front page.
 * This stylesheet does not modify course, checkout, or account templates.
 */
body .ppa-home-redesign {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: clamp(8px, 2vw, 18px);
}
body .ppa-home-redesign__hero {
  border-radius: 16px;
  padding: clamp(26px, 4vw, 54px);
  margin-block: 16px 14px;
  box-shadow: 0 12px 30px rgba(16, 47, 71, .13);
}
body .ppa-home-redesign__hero h1 {
  font-size: clamp(31px, 4.3vw, 50px) !important;
  line-height: 1.13;
  letter-spacing: -.025em;
  max-width: 900px;
}
body .ppa-home-redesign__actions { gap: 12px; }
body .ppa-home-redesign__button {
  min-height: 46px;
  justify-content: center;
  padding: 12px 20px;
  transition: transform 160ms ease, background-color 160ms ease;
}
body .ppa-home-redesign__button:hover { transform: translateY(-1px); }
body .ppa-home-redesign__section { padding: 20px 0 11px; }
body .ppa-home-redesign__courses,
body .ppa-home-redesign__grid { gap: clamp(12px, 2vw, 18px); }
body .ppa-home-redesign__card {
  min-height: 230px;
  padding: 23px 22px;
  border-radius: 13px;
  border-top-width: 4px;
  box-shadow: 0 8px 22px rgba(18, 53, 74, .07);
}
body .ppa-home-redesign__card h3 {
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.22;
  margin-bottom: 10px;
}
body .ppa-home-redesign__card p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}
body .ppa-home-redesign__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}
body .ppa-home-redesign__links a {
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  min-height: 44px;
  line-height: 1.3;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
body .ppa-home-redesign__links a::after {
  content: '\2197';
  margin-left: 10px;
  flex: 0 0 auto;
  font-size: 17px;
}
body .ppa-home-redesign__course {
  background: #f5f8fa;
  border-radius: 13px;
  padding: 22px;
}
body .ppa-home-redesign__course strong { font-size: clamp(18px, 2vw, 21px); line-height: 1.3; }
body .ppa-home-redesign__course a { min-height: 44px; display: inline-flex; align-items: center; }
body .ppa-home-redesign__legacy { margin-top: 26px; }

/* Only known, previously oversized water refresher flyer images are wrapped
 * by refinements.js. The flyer and course link remain available when opened. */
.ppa-legacy-course-flyer {
  background: #f3f7f9;
  border: 1px solid #cfdae3;
  border-radius: 9px;
  margin: 12px 0 20px;
  padding: 0;
  width: min(100%, 620px);
}
.ppa-legacy-course-flyer summary {
  list-style: none;
  padding: 13px 17px;
  cursor: pointer;
  color: #153c56;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ppa-legacy-course-flyer summary::before { content: '\25B8'; color: #ba902b; }
.ppa-legacy-course-flyer[open] summary::before { content: '\25BE'; }
.ppa-legacy-course-flyer summary::-webkit-details-marker { display: none; }
.ppa-legacy-course-flyer summary:focus-visible {
  outline: 3px solid #b38418;
  outline-offset: 2px;
  border-radius: 9px;
}
.ppa-legacy-course-flyer > a {
  display: block;
  padding: 0 15px 16px;
  max-width: 100%;
}
.ppa-legacy-course-flyer img,
.ppa-legacy-course-flyer picture { display: block; width: min(100%, 360px); height: auto; }
.ppa-legacy-course-flyer img { max-width: 100% !important; }

@media (max-width: 850px) {
  body .ppa-home-redesign__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  body .ppa-home-redesign { padding-inline: 9px; }
  body .ppa-home-redesign__hero { padding: 27px 20px; margin-top: 10px; }
  body .ppa-home-redesign__hero h1 { font-size: clamp(29px, 8.2vw, 38px) !important; }
  body .ppa-home-redesign__hero p { font-size: 16px; line-height: 1.55; }
  body .ppa-home-redesign__actions { flex-direction: column; }
  body .ppa-home-redesign__button { width: 100%; }
  body .ppa-home-redesign__grid,
  body .ppa-home-redesign__courses { grid-template-columns: minmax(0, 1fr); }
  body .ppa-home-redesign__card { padding: 20px; min-height: auto; }
  body .ppa-home-redesign__card h3 { font-size: 21px; }
  body .ppa-home-redesign__links a { font-size: 15px; }
  body .ppa-home-redesign__course { padding: 20px; }
  body .ppa-home-redesign__section { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body .ppa-home-redesign__button { transition: none; }
}
