/* 95-hour mat: a training curriculum drawn as a yoga mat */
.mat-plan { margin: 0 0 2rem; }
.mat-plan__mat {
  display: flex;
  gap: 3px;
  padding: 10px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  border: 1px solid var(--border);
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--brand) 22%, var(--surface));
  min-height: 112px;
}
.mat-seg {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 65%, var(--ink));
  color: var(--surface);
  overflow: hidden;
}
.mat-seg:nth-child(2) { background: color-mix(in srgb, var(--brand) 85%, var(--ink)); }
.mat-seg:nth-child(3) { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); color: var(--ink); }
.mat-seg:nth-child(4) { background: color-mix(in srgb, var(--brand) 40%, var(--surface)); color: var(--ink); }
.mat-seg--open {
  background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--brand) 12%, transparent) 8px 10px), var(--surface);
  color: var(--muted);
  border: 1px dashed var(--border);
}
.mat-seg__h { font-weight: 700; font-size: 1.15rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mat-seg__t { font-size: .78rem; line-height: 1.2; }
.pose-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.pose-card {
  position: relative;
  padding: 14px 14px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
}
.pose-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: linear-gradient(225deg, color-mix(in srgb, var(--brand) 18%, var(--surface)) 50%, transparent 50%);
  border-top-right-radius: var(--radius);
}
.pose-card__n { display: block; font-weight: 700; font-size: 1.3rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.pose-card p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.mat-plan figcaption { margin-top: 12px; }
.aff-box a { color: color-mix(in srgb, var(--brand) 55%, var(--ink)); }
/* consistent card images */
lg-cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}
/* format groups fill the row */
lg-groups [class*="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
}
@media (max-width: 760px) {
  .mat-plan__mat { flex-direction: column; border-radius: 20px; min-height: 0; }
  .mat-seg { flex: none; flex-direction: row; align-items: baseline; justify-content: space-between; padding: 8px 12px; min-height: calc(var(--w) * 1.6px + 30px); }
  .pose-row { grid-template-columns: repeat(2, 1fr); }
}