/* The Learning Centre section pages, as today's look (ADR 0142; templates pages/_section.html and
   pages/_section_pager.html). Loaded on those ten pages alone, from pages/listing.html, so no other page changes.

   Each size is today's, from the classes today's section page carried (its own style kit's scale) and measured
   on the web archive's copy of /learning-centre/investing-and-wealth-creation (29 Aug 2026) at 1440 and 390
   pixels, the heading's from today's style file of 4 Dec 2026 (ADR 0149): the heading at 40 pixels on 43 pixel
   lines with 32 pixels under it, and it and the card titles drawn with the heading font's small letters at half
   the size (font-size-adjust: 0.5), as today's font-['Futura'] class on them did; the topic buttons 20 pixels
   apart in a row up to 1000 pixels wide, wrapping, centred, on a computer only; white cards up to 896 pixels
   wide in a column with 30 pixels of room all round, each with 30 pixels of room top and bottom and 20 at the
   sides, and today's large shadow; the picture and the words side by side from 768 pixels (two fifths and three
   fifths, half and half from 1024), one above the other on a phone; the cards 20 pixels apart; the pager's count
   in today's small grey words and its numbers in today's large bold navy, 4 pixels apart, the page shown in
   orange. The round topic buttons and the orange card buttons take today's own button styles (today-words.css),
   sized here as today's.

   Today's colours and spacing are kept: the orange buttons' white words, the page's own topic button in orange
   and the grey count fall under WCAG 2.2 AA's contrast, and the page numbers sit closer than its 24 pixel
   targets ask; each is listed in content/accessibility-visible-changes.yaml for Phase 1 or Wealth Within's
   agreement (specification section 11). The orange page number shown is left by the check for a person to
   judge, so it is not on that list. */

.lc-section .lc-section__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
}

.lc-section .lc-section__heading {
  margin: 0 0 32px;
  color: var(--colour-heading);
  font-size: var(--text-h1);
  font-size-adjust: 0.5; /* today's font-['Futura'] class on this heading, as in today-words.css */
  line-height: var(--line-h1);
  text-align: center;
}

/* Today's podcast page: its FeedSpot badge right under the heading (4 pixels), at the picture's own size. */
.lc-section .lc-section__heading--badged {
  margin-bottom: 4px;
}

.lc-section .lc-section__badge {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Share Trading Tips' opening words (ADR 0149), as today's: up to 950 pixels wide with 30 pixels of room all
   round, the paragraphs 20 pixels apart, and the cards drawn 50 pixels up into the room under them. On a phone
   too, as today's. */
.lc-section .lc-section__opening {
  width: 100%;
  max-width: 950px;
  margin-bottom: -50px;
  padding: 30px;
  box-sizing: border-box;
}

.lc-section .lc-section__opening > p {
  margin: 0;
}

.lc-section .lc-section__opening > p + p {
  margin-top: 20px;
}

/* Today's topic buttons showed on a computer only. */
.lc-section .lc-section__topics {
  display: none;
  width: 100%;
  max-width: 1000px;
}

@media (min-width: 48em) {
  .lc-section .lc-section__topics {
    display: block;
  }
}

.lc-section .lc-section__topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.lc-section .lc-section__topic {
  padding: 10px 20px;
  white-space: nowrap;
}

.lc-section .lc-section__cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  padding: 30px;
  box-sizing: border-box;
}

/* A card: white, rounded, today's large shadow. */
.lc-section .lc-card {
  width: 100%;
  max-width: 56rem;
  padding: 30px 20px;
  box-sizing: border-box;
  border-radius: var(--radius);
  background: var(--colour-white);
  box-shadow: var(--shadow-large);
}

.lc-section .lc-card__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 11px;
}

.lc-section .lc-card__picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lc-section .lc-card__picture img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.lc-section .lc-card__words {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.lc-section .lc-card__words > * + * {
  margin-top: 16px;
}

.lc-section .lc-card__title {
  margin: 0;
  color: var(--colour-heading);
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-size-adjust: 0.5; /* today's font-['Futura'] class on the card's title, as in today-words.css */
  line-height: var(--line-label);
  letter-spacing: normal;
}

.lc-section .lc-card__opening > * + * {
  margin-top: 16px;
}

.lc-section .lc-card__button {
  padding: 10px 24px;
}

@media (min-width: 48em) {
  .lc-section .lc-card__inner {
    flex-direction: row;
    align-items: stretch;
  }

  /* Both columns give way alike when the gap between them needs the room, as today's did. */
  .lc-section .lc-card__picture {
    flex: 0 1 40%;
  }

  /* Today's picture kept a tall shape (12 by 16) beside the words on a tablet. */
  .lc-section .lc-card__picture img {
    aspect-ratio: 12 / 16;
  }

  .lc-section .lc-card__words {
    flex: 0 1 60%;
  }
}

@media (min-width: 64em) {
  .lc-section .lc-card__picture {
    flex-basis: 50%;
  }

  .lc-section .lc-card__picture img {
    aspect-ratio: auto;
  }

  .lc-section .lc-card__words {
    flex-basis: 50%;
  }
}

/* An episode's card (the podcast), as today's: the column has no room round it and each card is as wide as the
   column (1000 pixels), the picture square and at most 300 pixels, centred beside the words, 10 pixels apart, two
   fifths and three fifths at every width from 768 pixels. */
.lc-section .lc-section__cards--podcast {
  padding: 0;
}

.lc-section .lc-card--podcast {
  max-width: none;
}

.lc-section .lc-card--podcast .lc-card__inner {
  align-items: center;
  gap: 10px;
}

.lc-section .lc-card--podcast .lc-card__picture img {
  max-width: min(100%, 300px);
  max-height: 300px;
  aspect-ratio: auto;
}

@media (min-width: 64em) {
  .lc-section .lc-card--podcast .lc-card__picture {
    flex-basis: 40%;
  }

  .lc-section .lc-card--podcast .lc-card__words {
    flex-basis: 60%;
  }
}

/* A show's card (the Stock Market Show), as today's: the picture fills its column, wide (16 by 9), at the top,
   on black, with today's video shadow. Since ADR 0151 it plays the video there, as today's (below); it leads to
   the episode's page only on a card with no listed video, or without the script (ADR 0142). */
.lc-section .lc-card--video .lc-card__picture {
  align-items: flex-start;
}

.lc-section .lc-card--video .lc-card__picture img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
  background: #000;
  box-shadow: var(--shadow-video);
}

/* A show's card plays its episode's video in the card, as today's (ADR 0151): the picture fills a wide (16 by 9)
   button on black, with today's rounded corners and video shadow, and today's plain white triangle over it, 85 by
   60, on a grey panel when pointed at. On a press the button becomes the player, the same size. Hidden until
   wistia.js shows it. */
.lc-section .lc-card__video[hidden] {
  display: none;
}

.lc-section .lc-card__play,
.lc-section .lc-card__video .wistia-video__frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.3rem;
  background: #000;
  box-shadow: var(--shadow-video);
}

.lc-section .lc-card--video .lc-card__video img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.lc-section .lc-card__play-icon {
  position: relative;
  z-index: 1;
  border-radius: 5px;
}

.lc-section .lc-card__play:hover .lc-card__play-icon,
.lc-section .lc-card__play:focus-visible .lc-card__play-icon {
  background-color: rgb(128 128 128 / 66%);
}

/* The picture link after the button shows only while the button is hidden: without the script, it leads to the
   episode as before. */
.lc-section .lc-card__video:not([hidden]) + .lc-card__picture {
  display: none;
}

/* The pager. */
.lc-section .lc-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.lc-section .lc-pager > * + * {
  margin-top: 8px;
}

.lc-section .lc-pager__total {
  color: var(--colour-grey);
  font-size: var(--text-small);
  line-height: var(--line-small);
}

.lc-section .lc-pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--colour-heading);
  font-weight: var(--weight-bold);
}

.lc-section .lc-pager__numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.lc-section .lc-pager__step,
.lc-section .lc-pager__number {
  color: inherit;
  text-decoration: none;
}

.lc-section .lc-pager a:hover {
  text-decoration: underline;
}

.lc-section .lc-pager__number--current {
  color: var(--colour-orange);
}
