/* Public learning catalogue */
body.fs-dashboard:has(#learn.lp-page) {
  background: #f9f1e5;
}
body.fs-dashboard:has(#learn.lp-page) :is(.atelier-header-inner, .workshop-footer-inner),
.fs-dashboard:not(.in-admin) .fs-main:has(> .lp-page) {
  width: min(91%, 1280px);
  max-width: none;
}
.fs-dashboard:not(.in-admin) .fs-main:has(> .lp-page) { padding: 0; }
.fs-dashboard.v2 .fs-main:has(> .lp-page) > .wf-return {
  min-height: 44px;
  padding: 6px 0;
  margin: 4px 0;
  background: none;
  border: none;
  box-shadow: none;
  color: #694b36;
  font-weight: 650;
}
.fs-dashboard.v2 .lp-page {
  --lp-ink: #382416;
  --lp-copy: #604b3a;
  --lp-line: #d9c6ad;
  --lp-paper: #fffaf2;
  --lp-brown: #4e2b1a;
  --glyph-light: #edcca5;
  --glyph-deep: #b98558;
  color: var(--lp-ink);
  margin-bottom: clamp(32px, 4vw, 64px);
}
.lp-page :is(h1,h2,h3,p) { margin: 0; }
.lp-page .lp-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(205px, 18vw, 270px);
  padding: clamp(26px, 3.5vw, 52px);
  border-radius: 12px;
  background: #362417;
}
.lp-page .lp-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  content: '';
  background: linear-gradient(90deg, #362417, #362417d9 14%, #36241732 54%, transparent 75%),
              url('assets/repair-hero.webp') center 53% / cover no-repeat;
}
.lp-page .lp-intro { width: min(53%, 720px); }
.fs-dashboard.v2 .lp-page h1 {
  color: #fff7e9;
  font-size: clamp(38px, 4.6vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.lp-page .lp-intro p {
  margin-top: 15px;
  color: #f6e7d6;
  max-width: 47ch;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
}
.lp-page .lp-library {
  padding-top: clamp(25px, 3vw, 44px);
}
.lp-page .lp-library-head,
.lp-page .lp-tuition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}
.fs-dashboard.v2 .lp-page h2 {
  color: var(--lp-ink);
  font-size: clamp(27px, 2.6vw, 38px);
  letter-spacing: -.04em;
  line-height: 1.13;
}
.lp-page .lp-count {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 5px;
  color: var(--lp-copy);
  font-size: 14px;
}
.lp-page .lp-count strong { color: var(--lp-ink); }
.lp-page .lp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 20px;
}
.lp-page .lp-filters button {
  padding: 8px 17px;
  min-height: 44px;
  border: 1px solid var(--lp-line);
  border-radius: 5px;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.lp-page .lp-filters button[aria-pressed=true] {
  background: var(--lp-brown);
  border-color: var(--lp-brown);
  color: #fffbf1;
}
.lp-page .lp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
}
.lp-page .lp-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lp-paper);
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}
.lp-page .lp-card-art {
  display: grid;
  place-items: center;
  height: clamp(116px, 11vw, 155px);
  background: radial-gradient(ellipse at 51% 45%, #fbf4e9, #eedfc9);
  border-bottom: 1px solid #dfccb2;
  overflow: hidden;
}
.lp-page .lp-card-art img {
  width: 90%;
  height: 100%;
  min-height: 0;
  display: block;
  padding: 9px;
  object-fit: contain;
}
.lp-page .lp-card-art.lp-art-photo img {
  width: 100%;
  padding: 0;
  object-fit: cover;
  object-position: 49% 50%;
}
.lp-page .lp-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: clamp(16px, 1.65vw, 26px);
}
.lp-page .lp-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
  color: var(--lp-copy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.lp-page .lp-card-meta span:last-child { white-space: nowrap; }
.fs-dashboard.v2 .lp-page .lp-card h3, .lp-page .lp-empty h3 {
  margin: 10px 0 8px;
  color: var(--lp-ink);
  font-size: clamp(22px, 1.84vw, 29px);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.lp-page .lp-card-copy p, .lp-page .lp-tuition p {
  color: var(--lp-copy);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.lp-page .lp-card-bottom {
  margin-top: auto;
  padding-top: 18px;
}
.lp-page .lp-action {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--lp-brown);
  border-radius: 5px;
  background: var(--lp-brown);
  color: #fffbf2;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.lp-page .lp-action .icon { flex: none; width: 20px; height: 20px; }
.lp-page .lp-action:disabled { background: #e9ddca; border-color: var(--lp-line); color: #665444; cursor: default; }
.lp-page .lp-progress { margin-bottom: 12px; }
.lp-page .lp-progress span {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 650;
  color: #4d5437;
}
.lp-page .lp-progress progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e4d9c8;
  appearance: none;
}
.lp-page progress::-webkit-progress-bar { background: #e4d9c8; }
.lp-page progress::-webkit-progress-value { background: #65704a; }
.lp-page progress::-moz-progress-bar { background: #65704a; }
.lp-page .lp-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--lp-line);
  border-radius: 8px;
  background: var(--lp-paper);
}
.lp-page .lp-empty h3 { margin: 0; }
.lp-page .lp-empty .lp-action { margin-top: 16px; width: auto; }
.lp-page .lp-tuition {
  margin-top: clamp(22px, 2.7vw, 40px);
  padding: clamp(20px, 2.5vw, 36px);
  background: #efe1ca;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}
.fs-dashboard.v2 .lp-page .lp-tuition h2 { font-size: clamp(23px, 2.2vw, 32px); }
.lp-page .lp-tuition p { max-width: 57ch; margin-top: 7px; }
.lp-page .lp-tuition .lp-action { width: auto; flex: 0 0 auto; }
@media (hover: hover) {
  .lp-page .lp-filters button:hover:not([aria-pressed=true]) { border-color: #ac8864; background: #f4e6d1; }
  .lp-page .lp-action:hover:not(:disabled) { background: #6b3922; }
}
@media (max-width: 940px) {
  .lp-page .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-page .lp-intro { width: 60%; }
}
@media (max-width: 640px) {
  body.fs-dashboard:has(#learn.lp-page) :is(.atelier-header-inner, .workshop-footer-inner),
  .fs-dashboard:not(.in-admin) .fs-main:has(> .lp-page) { width: calc(100% - 32px); }
  .lp-page .lp-hero { min-height: 165px; padding: 23px 18px; }
  .lp-page .lp-hero::before {
    inset-inline-start: 17%;
    opacity: .48;
    background-position: center, 65% center;
  }
  .lp-page .lp-intro { width: 100%; }
  .fs-dashboard.v2 .lp-page h1 { font-size: clamp(32px, 8vw, 45px); }
  .lp-page .lp-intro p { margin-top: 10px; max-width: 40ch; font-size: 16px; }
  .lp-page .lp-library-head { flex-wrap: wrap; gap: 4px 12px; }
  .lp-page .lp-filters { margin: 12px 0 15px; }
  .lp-page .lp-filters button { flex: 1 1 auto; padding: 7px 10px; }
  .lp-page .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-page .lp-card-art { height: 115px; }
  .lp-page .lp-card-meta { font-size: 14px; }
  .lp-page .lp-card h3 { font-size: 24px; }
  .lp-page .lp-action { min-height: 52px; }
  .lp-page .lp-tuition { flex-direction: column; align-items: stretch; }
  .lp-page .lp-tuition .lp-action { width: 100%; }
}
