/* Asteria prototype, round 2 v9: the classes as a row of arch cards. Every card says everything
   on its own: photo, name, level, length, what you do and a button. Tabs above show all five.
   On a computer the row slides sideways while you scroll; on a phone you swipe it. */
.cls { position: relative; background: var(--sand); overflow: hidden; --cw: clamp(270px, 25vw, 360px); }
.cl-pin { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; min-height: 100svh; padding-block: 92px 100px; background: var(--sand); }
.cl-head { text-align: center; }
.cl-head h2 { margin: 8px 0 0; font-size: clamp(38px, 4.6vw, 76px); }

/* Tabs: the five classes at a glance, the active one is filled. */
.cl-nav { display: flex; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.cl-nav::-webkit-scrollbar { display: none; }
.cl-nav button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; color: var(--cocoa); transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s; }
.cl-nav [aria-pressed="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--paper); }

/* The row of cards. Side padding lets the first and last card sit in the middle. */
/* Room under the cards for their shadow; the negative margin keeps the layout where it was. */
.cl-view { margin-bottom: -64px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cl-view::-webkit-scrollbar { display: none; }
.cl-view.driven { overflow: hidden; scroll-snap-type: none; }
.cl-track { list-style: none; margin: 0; display: flex; gap: clamp(14px, 1.8vw, 26px); padding: 18px calc(50vw - var(--cw) / 2) 90px; width: max-content; }
.cl-card { flex: none; width: var(--cw); scroll-snap-align: center; display: grid; grid-template-rows: auto 1fr; border-radius: 999px 999px 28px 28px; background: var(--paper); box-shadow: 0 24px 50px rgba(47, 34, 27, 0.1); overflow: hidden; transform-origin: 50% 70%; transition: box-shadow 0.5s var(--ease); }
.cl-card.on { box-shadow: 0 30px 60px rgba(47, 34, 27, 0.2), 0 0 0 2px var(--tint); }
.cl-ph { position: relative; height: clamp(140px, calc(100svh - 650px), 300px); overflow: hidden; background: var(--linen); }
.cl-ph img { position: absolute; inset: 0 -12%; width: 124%; height: 100%; object-fit: cover; }
.cl-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--tint) 45%, transparent), transparent 55%); }
.cl-n { position: absolute; z-index: 1; bottom: 12px; inset-inline-start: 18px; font: 600 13px var(--body); letter-spacing: 0.2em; color: var(--paper); direction: ltr; unicode-bidi: isolate; }
.cl-body { display: grid; align-content: start; gap: 10px; padding: 18px 22px 22px; }
.cl-body h3 { margin: 0; font: 600 clamp(26px, 2.2vw, 34px)/1.05 var(--display); letter-spacing: -0.02em; }
.cl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cl-chips li { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 16%, var(--sand)); font-size: 13px; color: var(--cocoa); }
.cl-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--taupe); }
.cl-cta { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--cocoa); color: var(--paper); font-size: 14px; font-weight: 500; transition: transform 0.25s var(--ease), background 0.3s; }
.cl-cta:hover { background: var(--clay); }
.cl-cta:active { transform: scale(0.96); }
.cl-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cl-hint { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--taupe); }

@media (max-width: 760px) {
  .cls { --cw: min(82vw, 340px); }
  .cl-pin { min-height: 0; padding-block: 96px 70px; gap: 16px; }
  .cl-head h2 { font-size: 32px; }
  .cl-nav { justify-content: flex-start; padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); }
  .cl-ph { height: 220px; }
}
@media (min-width: 761px) { .cl-hint { display: none; } }
