/* The class tile and the class pages' column, shared by Classes (classes.html) and a class's own page (class.html).
   Oct 2 2026: these rules lived inline in Live Classes; the calendar made three pages draw the same tile, and three copies
   of one tile drift. Since Oct 5 2026 the week, the replays and the calendar are one page, Classes. Markup: js/classes.js
   (SBMClasses.card) on top of the Library's rows (assets/css/rows.css, js/rows.js). */
:root { --lc-live: #E5484D; }
.lc { max-width: 1240px; margin: 0 auto; }
.lc section { margin: 0; scroll-margin-top: 24px; }
.lc > .lc-seg, .lc > section { margin-top: 48px; }
.lc-seg { scroll-margin-top: 24px; }
/* the Library's billboard and rows, edge to edge in this column: the Library's side gutter belongs to its wide page */
.lc .billboard, .lc .row { max-width: none; padding-left: 0; padding-right: 0; padding-bottom: 0; }
.lc .billboard { padding-top: 0; }
.lc .row__head { margin-bottom: 4px; }
.lc__sub { color: var(--text-muted); line-height: 1.6; margin: 4px 6px 10px; max-width: 70ch; font-size: 0.95rem; }
.lc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lc-live); flex: none; animation: lcPulse 1.4s ease-out infinite; }
@keyframes lcPulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,0.6); } 70% { box-shadow: 0 0 0 9px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
@media (prefers-reduced-motion: reduce) { .lc-dot { animation: none; } }
.lc .billboard__rank-meta b { color: var(--gold-light); }
/* a class's hours in the viewer's own time zone with PST beside them (js/local-time.js, Nov 21 2026) can wrap the billboard's rank
   line on a phone: the pill then keeps rounded corners instead of turning into an oval (one line still reads as a full pill) */
.lc .billboard__rank { border-radius: 18px; }

/* a class: the art tile with its own buttons, the free class plain, a Live session gold, a locked one dimmed */
.lc-card .tile__caption { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
/* a class's topic is a sentence, not a course name: it may take two lines (the Library's one line rule would cut
   "The Market Pyramid: three tiers, three mindsets" mid word). Two lines for every tile keeps the row level. */
.lc-card .tile__caption-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
                                line-height: 1.25; min-height: 2.5em; }
.tile--card:hover { transform: translateY(-4px); }
.lc-card--live .tile__chip { background: var(--gold-grad); color: #1a1408; border-color: transparent; font-style: normal; font-weight: 800;
                             font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
.lc-card.is-locked .tile__art img { filter: grayscale(0.35) brightness(0.62); }
/* a class that has happened: still on the calendar (a week reads whole), set back */
.lc-card.is-done .tile__art img { filter: grayscale(0.6) brightness(0.5); }
.lc-card.is-done .tile__caption-title, .lc-card.is-done .lc-blurb { color: var(--text-muted); }
.lc-when { color: var(--gold-light); font-size: 0.86rem; font-weight: 700; }
.lc-blurb { margin: 0; color: var(--text-bright); font-size: 0.9rem; line-height: 1.55; }
.lc-blurb b { color: var(--white); font-weight: 700; }
.tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.lc-saved { color: var(--gold-light); font-weight: 800; font-size: 0.88rem; }
.lc-lock { color: var(--text-muted); font-size: 0.84rem; }
.lc-join { display: inline-flex; align-items: center; gap: 8px; }
.lc-empty { color: var(--text-muted); margin: 4px 6px 0; }
.lc-lockico { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--gold-light); }
.lc-lockico svg { width: 13px; height: 13px; }
/* the way from a class tile to its syllabus: a quiet link beside the tile's button */
.lc-more { color: var(--gold-light); font-size: 0.86rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.lc-more:hover { border-bottom-color: var(--gold-border); }
/* the line JT asked for wherever the calendar shows: dates and topics can change, members are told ahead of time */
.lc-notice { color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; margin: 14px 6px 0; }

/* A WEEK IS NEVER A SHELF WITH CLASSES OUT OF SIGHT (.lc-stack on a row, Oct 2 2026). The Library's row scrolls sideways
   once its tiles stop fitting: right for browsing courses, wrong for a schedule, because a member choosing what to go to
   has to see the whole week. The first phone render showed one class a week with the other three behind a swipe, and a
   free member's week opened on a locked Monday class with their own Tuesday class out of sight.
     - below the width where four tiles fit side by side, the week's classes WRAP onto more lines
     - on a phone they are a LIST, the way Netflix lists a season's episodes on a phone: the picture as a thumbnail, the
       day and the topic beside it, what you leave with and the button under them
   verify_class_calendar.py K3 and K12 measure it at every width. */
@media (max-width: 1339px) {
  .lc-stack .row__scroller { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
}
@media (max-width: 720px) {
  .lc-stack .row__scroller { flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 8px 0 4px; }
  .lc-stack .lc-card { flex: none; min-width: 0; display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto 1fr;
                       column-gap: 12px; row-gap: 6px; align-items: start; padding: 10px; border: 1px solid var(--border-subtle);
                       border-radius: 12px; background: var(--card); }
  .lc-stack .lc-card:hover { transform: none; }
  .lc-stack .lc-card .tile__art { grid-column: 1; grid-row: 1 / span 2; box-shadow: none; border-radius: 6px; }
  /* the caption's own lines become the card's: the day and the topic sit beside the picture, the rest runs full width */
  .lc-stack .lc-card .tile__caption { display: contents; }
  .lc-stack .lc-card .lc-when { grid-column: 2; grid-row: 1; font-size: 0.8rem; line-height: 1.35; }
  .lc-stack .lc-card .tile__caption-title { grid-column: 2; grid-row: 2; min-height: 0; -webkit-line-clamp: 4; }
  .lc-stack .lc-card .lc-blurb, .lc-stack .lc-card .tile__actions { grid-column: 1 / -1; }
  .lc-stack .lc-card .tile__actions { margin-top: 0; }
  /* the thumbnail keeps the series' name and its Free or Live badge; the day, the time and the lock are said beside it */
  .lc-stack .lc-card .tile__art-overlay, .lc-stack .lc-card .tile__art:has(.tile__len) .tile__art-overlay { padding: 6px 8px; }
  .lc-stack .lc-card .tile__art-title { font-size: 0.7rem; line-height: 1; }
  .lc-stack .lc-card .tile__art-title em, .lc-stack .lc-card .tile__len, .lc-stack .lc-card .tile__status { display: none; }
  .lc-stack .lc-card .tile__chip { top: 6px; left: 6px; padding: 3px 7px; font-size: 0.66rem; }
  .lc-stack .lc-card--live .tile__chip { font-size: 0.56rem; padding: 3px 7px; }
}

/* ---------- ONE CLASSES PAGE (Oct 5 2026) ----------
   JT: "adding all classes together into one areas ... the (small mba live) courses with a lock on them for those that do
   not have the paid membership and a pop up/gateway for them to sign up". He approved these as drawn in the mockups
   (handover/portal-menu-classes-shop-2026-10-05): the tile is the same one, with four things added.

   FREE READS AT A GLANCE. The Free badge is a solid pill, the twin of the gold Live badge (it was gold italic words on
   dark glass, easy to miss beside a lock). A free member must never read the page as their free MBA having shrunk. */
.lc-card--free .tile__chip { background: var(--white); color: #12100f; border-color: transparent; font-style: normal; font-weight: 800;
                             font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
/* THE LOCK, SAID. Community's lock line for the Small Business MBA Live space (community.html .sp-tile__lock), on a class:
   the lock and "Small Business MBA Live members only" in gold. Its twin says why an open tile is open. */
.lc-lockline { display: inline-flex; align-items: flex-start; gap: 7px; color: var(--gold-light); font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.lc-lockline svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
.lc-lockline span { text-wrap: balance; }
.lc-have { display: inline-flex; align-items: flex-start; gap: 7px; color: var(--text-bright); font-size: 0.8rem; font-weight: 700; line-height: 1.3; }
.lc-have i { font-style: normal; color: #9fd8a8; }
/* A LOCKED CLASS'S BUTTON THIS WEEK is the portal's outline button in gold words (JT, Oct 5 2026: "agreed"). Filled gold
   stays with the member's own next step ("Save my seat") and the gateway's one button. */
.lc-unlock { color: var(--gold-light); }
/* THE BUTTONS OF A ROW SIT ON ONE LINE: what a class leaves you with runs one to three lines, and the buttons under it
   used to start wherever the words ended. On a phone the tile is a list item (below) and lays itself out. */
@media (min-width: 721px) {
  .lc-card { display: flex; flex-direction: column; }
  .lc-card .tile__caption { flex: 1; }
  .lc-card .tile__actions { margin-top: auto; padding-top: 6px; }
}
/* ... AND ARE ONE HEIGHT. "Save my seat" is a <button> and "Unlock with Live" a link; the portal's button sets no line
   height, so a button drew 33px tall beside a link's 40px (measured Oct 5 2026, the first time the two shared a row). */
.lc-card .tile__actions .btn { line-height: 1.7; }
@media (max-width: 720px) {
  /* the list hides the status pill (above): a locked class still to come keeps its lock, as a small round badge on the
     picture. Only a pill that carries the lock: a class that has happened says "Held", and an empty badge says nothing. */
  .lc-stack .lc-card.is-locked .tile__status:has(.lc-lockico) { display: inline-flex; top: auto; right: 6px; bottom: 6px; padding: 5px; font-size: 0;
    letter-spacing: 0; border-color: var(--gold-border); background: rgba(10,10,12,0.82); }
  .lc-stack .lc-card.is-locked .tile__status .lc-lockico { margin: 0; }
  .lc-stack .lc-card--free .tile__chip { font-size: 0.56rem; padding: 3px 7px; }
  .lc-stack .lc-card .lc-lockline, .lc-stack .lc-card .lc-have { grid-column: 1 / -1; }
}

/* The right sidebar, the same one the lessons and the replays carry (JT, Sep 21: every portal page ships with it).
   These are lesson.html's sidebar rules, kept identical so the pages read as one product. */
.lsb__status { font-size: var(--fs-sm); color: var(--text-bright); line-height: 1.45; }
.lsb__status b { color: var(--gold-light); }
.lsb__btn { width: 100%; margin-top: 12px; }
.lsb__btn + .lsb__btn { margin-top: 8px; }
.lsb__secs { display: flex; flex-direction: column; }
.lsb__sec { display: flex; gap: 10px; align-items: baseline; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-muted); font-size: var(--fs-sm); text-decoration: none; line-height: 1.35; transition: color var(--t), background var(--t); }
.lsb__sec:hover { color: var(--gold-light); background: rgba(244,240,231,0.05); }
.lsb__sec.on { color: var(--gold-light); background: var(--gold-dim); }
.lsb__num { flex: none; min-width: 20px; font-size: var(--fs-xs); font-weight: 800; color: var(--gold); }
.lsb__lessons { list-style: none; margin: 0; padding: 0; max-height: 44vh; overflow-y: auto; }
.lsb__lesson { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-bright); font-size: var(--fs-sm); text-decoration: none; line-height: 1.35; }
.lsb__lesson:hover { background: rgba(244,240,231,0.05); color: var(--gold-light); }
.lsb__t { flex: 1; min-width: 0; }
.lsb__tag { flex: none; font-size: var(--fs-xs); font-weight: 800; color: var(--gold); }
@media (max-width: 680px) {
  .lc .billboard__actions .btn { width: 100%; }
}
