/* ==========================================================================
   Fonts
   ========================================================================== */

/* Main typeface used throughout the landing page. */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;600;700&display=swap");


/* ==========================================================================
   Landing page design settings
   ========================================================================== */

/*
 * Change these variables to customise the main colours
 * used throughout the landing page.
 */
:root {
  /* Main page background. */
  --lp-page-bg: #ffffff;

  /* Background of the course title/hero section. */
  --lp-hero-bg: #045c64;

  /* Background of the course information cards. */
  --lp-card-bg: #f4f4f4;

  /* Background of the "All course instances" banner. */
  --lp-band-bg: #c0d6d8;

  /* Background of the page footer. */
  --lp-footer-bg: #b8b8b8;

  /* Accent colour used for highlighted decorative elements. */
  --lp-accent: #a9c845;

  /* Background colour used for CTA elements. */
  --lp-cta-bg: #82aeb2;

  /* Background colour of course-instance pills. */
  --lp-pill-bg: #491f53;

  /* Text colour used for headings and other strongly emphasised text. */
  --lp-text-strong: #101010;

  /* Default body text colour. */
  --lp-text-body: #3a3a3a;

  /* Text colour used for less prominent text. */
  --lp-text-muted: #3a3a3a;

  /* White used for text and interface elements on dark backgrounds. */
  --lp-white: #ffffff;

  /* Background colour of keyword tags. */
  --lp-keyword-bg: #a9c8451a;
}

/* ==========================================================================
   Base page layout
   ========================================================================== */

/* Allow the page layout to fill the full browser height. */
html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--lp-page-bg);
  color: var(--lp-text-body);
  font-family: "Lato", "Helvetica Neue", sans-serif;
}


/* ==========================================================================
   Quarto layout overrides
   ========================================================================== */

/*
 * Hide Quarto's default page title because the landing page uses its own
 * title in _sections/hero.qmd.
 */
#title-block-header {
  display: none;
}

/*
 * Remove Quarto's default content width, margins, and padding so that landing
 * page sections can span the full browser width.
 */
#quarto-content,
main.content,
.quarto-container {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Ensure the Quarto content area fills at least the full browser height. */
#quarto-content {
  min-height: 100vh;
}

/*
 * Override Quarto's page grid so the landing-page content can extend to the
 * bottom of the page.
 */
#quarto-content.page-rows-contents > main.content {
  grid-row: content-top / page-bottom;
}

/*
 * Use a flexible full-height content area. This allows .landing-shell to
 * control the vertical landing-page layout.
 */
main.content {
  display: flex;
  min-height: 100vh;
}

/* Hide Quarto's automatic heading anchor-link icons on the landing page. */
a.anchorjs-link {
  display: none;
}


/* ==========================================================================
   Landing page shell
   ========================================================================== */

/*
 * Main wrapper around all landing-page sections.
 * Uses a vertical flex layout and fills the available browser height.
 */
.landing-shell {
  flex: 1 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--lp-page-bg);
  padding-bottom: 0;
}


/* ==========================================================================
   Template onboarding banner
   ========================================================================== */

/*
 * Template-only banner displayed above the landing-page hero.
 * This banner links to the SciLifeLab Course Page Template User Guide and
 * should be removed when the template is adapted for a course.
 */
.template-banner {
  padding: 0.8rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  background: #f3dfb3;
  color: #292929;
}

/* Remove the default paragraph margin inside the banner. */
.template-banner p {
  margin: 0;
}

/* Style the User Guide link so that it remains prominent in the banner. */
.template-banner a {
  color: #292929;
  font-weight: 700;
  margin-left: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}


/* ==========================================================================
   Hero
   ========================================================================== */

/*
 * Main course header containing the course title, subtitle, organisation
 * logo(s), and action buttons.
 *
 * The background gradient can be changed here to customise the hero colours.
 */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.1rem;
  padding: 4rem clamp(1.35rem, 3.4vw, 2.6rem) 1.75rem;
  background:
  linear-gradient(
    135deg,
    var(--lp-hero-bg) 0%,
    #0d6d75 55%,
    var(--lp-hero-bg) 100%
  );
  color: var(--lp-white);
  border-radius: 0 0 0.3rem 0.3rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/*
 * Add a subtle translucent highlight over the hero background.
 * This is decorative and does not affect the hero content.
 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 50%,
      rgba(255, 255, 255, 0.09) 70%,
      transparent 85%
    );
  pointer-events: none;
  z-index: 0;
}


/* ==========================================================================
   Hero content
   ========================================================================== */

/* Remove default margins added to text containers by Quarto/Pandoc. */
.hero__brand,
.hero__title,
.hero__subtitle,
.section-title,
.landing-footer__meta {
  margin: 0;
}

.hero__brand p,
.hero__title p,
.hero__subtitle p,
.section-title p,
.landing-footer__meta p {
  margin: 0;
}


/* ==========================================================================
   Hero organisation logo(s)
   ========================================================================== */

/*
 * Position organisation logos in the upper-right corner of the hero.
 * Multiple logos stay on one row and shrink together when horizontal space
 * is insufficient.
 */
.hero__brand {
  position: absolute;
  top: 2rem;
  right: clamp(1.35rem, 3.4vw, 2.6rem);
  display: flex;
  flex-wrap: nowrap;
  /* Align logos along their bottom edge. */
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  max-width: min(32rem, 52vw);
  justify-self: end;
}

.hero__brand-item {
  display: flex;
  align-items: flex-end;
  /* Allow logos to shrink so they all fit on a single row. */
  flex: 0 1 auto;
  min-width: 0;
  padding-right: 0.6rem;
}

/*
 * Maximum displayed height of organisation logos.
 * Change max-height if larger or smaller logos are preferred.
 */
.hero__partner-logo {
  display: block;
  height: auto;
  max-height: 3.5rem;
  width: auto;
  max-width: 100%;
}


/* ==========================================================================
   Hero title and subtitle
   ========================================================================== */

/* Constrain the width of the title/subtitle area for readability. */
.hero__copy {
  display: grid;
  gap: 0.95rem;
  max-width: 50rem;
  padding-top: 2.3rem;
}

/*
 * Course title typography.
 * clamp() allows the title size to adapt to the browser width.
 */
.hero__title p {
  font-size: clamp(3.5rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Course subtitle typography and maximum line width. */
.hero__subtitle p {
  max-width: 35rem;
  font-size: clamp(1.45rem, 1.45vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--lp-white);
}


/* ==========================================================================
   Hero action buttons
   ========================================================================== */

/*
 * Arrange the current-instance and registration buttons horizontally.
 * Buttons wrap automatically on narrower screens.
 */
.hero__actions ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1rem;
  padding: 0;
  justify-content: flex-start;
}

.hero__actions li {
  margin: 0;
}

/* Remove default link underlines from button-style links. */
.hero-cta,
.instance-pill {
  text-decoration: none;
}

/* Shared base appearance of hero action buttons. */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.6rem;
  border-radius: 0.5rem;
  background: var(--lp-cta-bg);
  color: var(--lp-white);
  font-size: 1rem;
  font-weight: 500;
  box-shadow: none;
  transition: background 150ms ease, transform 150ms ease;
}

/* Slightly lift and brighten interactive elements when hovered. */
.hero-cta:hover,
.instance-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Add an arrow after the primary "View current instance" action. */
.hero-cta--primary::after {
  content: "→";
  font-size: 1.05em;
  line-height: 1;
}

/*
 * Primary hero action.
 * The primary action links to the current course instance.
 */
.hero-cta--primary {
  background: var(--lp-white);
  color: var(--lp-hero-bg);
}


/* ==========================================================================
   Information card grids
   ========================================================================== */

/*
 * Base two-column grid used for the landing-page information cards.
 * Change the gap to increase or decrease the space between cards.
 */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding-inline: clamp(0.75rem, 2vw, 1rem);
}

/*
 * Layout of the four upper information cards:
 *
 * +----------------------+----------------------+
 * | Course content       | Learning outcomes    |
 * |                      +----------------------+
 * |                      | Topics covered       |
 * +----------------------+                      |
 * | Keywords             |                      |
 * +----------------------+----------------------+
 *
 * The grid-area assignments below determine which card occupies each area.
 */
.cards-grid--top {
  padding-top: 0.6rem;
  align-items: stretch;
  grid-template-areas:
    "course-content learning-outcomes"
    "course-content topics-covered"
    "keywords topics-covered";
}

/*
 * Two-column grid containing the lower information cards
 * (for example, course founders and contributors).
 */
.cards-grid--bottom {
  padding-top: 0.6rem;
  align-items: stretch;
}


/* ==========================================================================
   Information cards
   ========================================================================== */

/*
 * Shared appearance of all information cards.
 * The main card background can be changed with --lp-card-bg in :root.
 */
.cards-grid .info-card {
  background: var(--lp-card-bg);
  border-radius: 0.4rem;
  border: 0.2px solid #e6e6e6;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  min-height: 0;
}

/* Assign each upper information card to its named grid area. */
.info-card--course-content {
  grid-area: course-content;
}

.info-card--learning-outcomes {
  grid-area: learning-outcomes;
}

.info-card--topics-covered {
  grid-area: topics-covered;
}

.info-card--keywords {
  grid-area: keywords;
}

/* Give the lower information cards a consistent minimum height. */
.cards-grid--bottom .info-card {
  min-height: 11.75rem;
}


/* ==========================================================================
   Information card headings and icons
   ========================================================================== */

/* Arrange each card icon and heading on the same row. */
.info-card__header {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  margin-bottom: 1rem;
}

/*
 * Coloured container behind each card icon.
 * Change --lp-accent in :root to customise its background colour.
 */
.info-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.5rem;
  background: var(--lp-accent);
}

/* Control the displayed size of icons inside the icon container. */
.info-card__icon-img {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
}

/* Typography used for information card headings. */
.info-card__heading {
  margin: 0;
  font-size: clamp(1.7rem, 1.75vw, 2.1rem);
  font-weight: 600;
  line-height: 1.04;
  color: var(--lp-text-strong);
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}


/* ==========================================================================
   Information card text and lists
   ========================================================================== */

/* Shared typography for card text and people lists. */
.card-copy p,
.card-copy li,
.people-list li {
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--lp-text-body);
}

/* Remove default list spacing so card-specific spacing can be applied below. */
.card-copy ol,
.card-copy ul,
.people-list ul {
  margin: 0;
  padding: 0;
}

/* Keep enough indentation for numbered lists. */
.card-copy ol {
  padding-left: 1.35rem;
}

/* Remove the browser's default bullet style from unordered card lists. */
.card-copy ul {
  list-style: none;
}

/* Add space for the custom dash used as the list marker. */
.card-copy ul li {
  position: relative;
  padding-left: 1rem;
}

/* Use a dash instead of the browser's default bullet marker. */
.card-copy ul li::before {
  content: "-";
  position: absolute;
  left: 0;
}

/* Add vertical space between consecutive paragraphs in the upper cards. */
.cards-grid--top .card-copy p + p {
  margin-top: 0.72rem;
}

/* Space numbered list items consistently in the upper cards. */
.cards-grid--top .card-copy ol {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.25rem;
}

/* Space unordered list items consistently in the upper cards. */
.cards-grid--top .card-copy ul {
  display: grid;
  gap: 0.18rem;
}


/* ==========================================================================
   Keyword tags
   ========================================================================== */

/*
 * Display keywords as compact tags instead of a vertical list.
 * Tags automatically wrap onto another line when necessary.
 */
.cards-grid--top .info-card--keywords .card-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/*
 * Appearance of individual keyword tags.
 * Change the background and text colour here to customise the tags.
 */
.cards-grid--top .info-card--keywords .card-copy ul li {
  padding: 0.24rem 0.62rem;
  padding-left: 0.62rem;
  border-radius: 999px;
  background: var(--lp-keyword-bg);
  color: #30481a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Keyword tags do not use the custom dash marker used by normal card lists. */
.cards-grid--top .info-card--keywords .card-copy ul li::before {
  content: none;
}


/* ==========================================================================
   Course founders and contributors
   ========================================================================== */

/* Display names as a simple vertical list without browser bullet markers. */
.people-list ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

/* Add slightly more space between names in the lower cards. */
.cards-grid--bottom .people-list ul {
  gap: 0.55rem;
}

/* Keep names visually consistent with the surrounding body text. */
.people-list strong {
  font-weight: 400;
}


/* ==========================================================================
   All course instances banner
   ========================================================================== */

/*
 * Two-column banner containing a decorative course image on the left and
 * links to available course instances on the right.
 *
 * The banner background can be changed with --lp-band-bg in :root.
 */
.instances-band {
  display: grid;
  grid-template-columns: clamp(12rem, 22vw, 26rem) minmax(0, 1fr);
  gap: 0;
  margin: 0.6rem 0 0;
  background: var(--lp-band-bg);
  border-radius: 0.22rem;
  border: 1px solid #cfe0e2;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  align-items: stretch;
}


/* ==========================================================================
   Course instances banner image
   ========================================================================== */

/*
 * Container for the decorative course image.
 * The image itself is set in _sections/instances-band.qmd.
 */
.instances-band__media {
  position: relative;
  display: block;
  align-self: stretch;
  min-width: 0;
  min-height: 10rem;
  overflow: hidden;
}

/*
 * Fill the available image area while preserving the image proportions.
 * object-fit: cover may crop part of the image to fill the available space.
 * Change object-position to control which part of the image remains visible.
 */
.instances-band__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* ==========================================================================
   Course instances banner content
   ========================================================================== */

/* Position the banner heading and course-instance links beside the image. */
.instances-band__content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.68rem;
  padding: 1rem 1.35rem 1.05rem;
}

/* Shared styling for landing-page section headings. */
.section-title {
  margin-bottom: 0.4rem;
}

.section-title p {
  font-size: clamp(1.32rem, 1.7vw, 1.7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--lp-text-strong);
}

/* Adjust the section heading specifically within the instances banner. */
.instances-band__title {
  margin-bottom: 0;
}

.instances-band__title p {
  font-size: clamp(1.32rem, 1.55vw, 1.62rem);
  line-height: 1.02;
}


/* ==========================================================================
   Course instance links
   ========================================================================== */

/* Remove the browser's default list styling from course-instance lists. */
.instance-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
 * Arrange course instances in fixed-width columns.
 * Additional instances automatically wrap onto another row.
 */
.instance-grid--band ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 10.75rem));
  gap: 0.65rem;
}

.instance-grid--band li {
  display: flex;
}

/* Base appearance of each course-instance link. */
.instance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(4, 92, 100, 0.09);
  border-radius: 0.56rem;
  background: var(--lp-white);
  color: var(--lp-text-strong);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
}

/*
 * Highlight the current course instance.
 * Change --lp-pill-bg in :root to customise its background colour.
 */
.instance-pill--current {
  border-color: transparent;
  background: var(--lp-pill-bg);
  color: var(--lp-white);
  box-shadow: 0 3px 6px rgba(73, 31, 83, 0.24);
}


/* ==========================================================================
   Footer
   ========================================================================== */

/*
 * Landing-page footer containing licence/build information on the left and
 * the repository link on the right.
 *
 * The footer background can be changed with --lp-footer-bg in :root.
 */
.landing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin: auto 0 0;
  margin-top: 0.6rem;
  padding: 0.72rem clamp(0.75rem, 2vw, 1rem);
  background: var(--lp-footer-bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-radius: 0.3rem 0.3rem 0 0;
}


/* ==========================================================================
   Footer text
   ========================================================================== */

/* Position the footer metadata and allow it to use the available width. */
.landing-footer__meta {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 2.65rem;
}

/* Typography used for licence and build information. */
.landing-footer__meta p {
  font-size: 0.7rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
   Footer repository link
   ========================================================================== */

/* Position the repository link on the right side of the footer. */
.landing-footer__actions {
  display: flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
}

.landing-footer__image-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
}

/*
 * Control the displayed size of the repository image/logo.
 * Increase or decrease height to change its size.
 */
.landing-footer__image {
  display: block;
  height: 2rem;
  width: auto;
}

/* Keep links visible against the footer background. */
.landing-footer a {
  color: inherit;
  text-decoration: underline;
}

/* Change footer link colour on hover. */
.landing-footer a:hover {
  color: var(--lp-hero-bg);
}


/* ==========================================================================
   Responsive layout
   ========================================================================== */

/*
 * The following media queries adapt the landing page to smaller screens.
 *
 * 1024px and below: compact tablet/laptop layout.
 * 768px and below:  single-column tablet/mobile layout.
 * 414px and below:  compact mobile-phone layout.
 *
 * These rules normally do not need to be changed when adapting the template
 * for a course.
 */


/* ==========================================================================
   Tablet and smaller screens (1024px and below)
   ========================================================================== */

@media (max-width: 1024px) {

  /* Reduce hero spacing on smaller screens. */
  .hero {
    gap: 0.95rem;
    padding: 2.45rem 1.45rem 2.15rem;
  }

  /* Reduce the space available to organisation logos. */
  .hero__brand {
    gap: 0.82rem;
    max-width: min(27rem, 58vw);
  }

  /* Display organisation logos at a smaller size. */
  .hero__partner-logo {
    max-height: 2.45rem;
  }

  /* Slightly reduce information-card heading sizes. */
  .info-card__heading {
    font-size: clamp(1.55rem, 1.9vw, 1.95rem);
  }

  /* Reduce the width of the image column in the course instances banner. */
  .instances-band {
    grid-template-columns: clamp(8.5rem, 18vw, 12rem) minmax(0, 1fr);
  }

  /* Reduce the minimum height of the decorative course image. */
  .instances-band__media {
    min-height: 8.5rem;
  }

  /* Reduce spacing around the course-instance content. */
  .instances-band__content {
    padding: 0.9rem 1rem 0.95rem;
  }

  /* Make course-instance buttons slightly narrower. */
  .instance-grid--band ul {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 10rem));
  }
}


/* ==========================================================================
   Tablet/mobile layout (768px and below)
   ========================================================================== */

@media (max-width: 768px) {

  /* Reduce hero spacing further for narrow screens. */
  .hero {
    gap: 1.1rem;
    padding: 2rem 1rem 1.7rem;
  }

  /*
   * Move organisation logos into the normal page flow instead of positioning
   * them in the upper-right corner of the hero.
   */
  .hero__brand {
    position: static;
    justify-self: start;
    max-width: none;
  }

  /* Reduce organisation logo size. */
  .hero__partner-logo {
    max-height: 2.35rem;
  }

  /*
   * Stack the four upper information cards vertically:
   * Course content → Learning outcomes → Topics covered → Keywords.
   */
  .cards-grid--top {
    grid-template-areas:
      "course-content"
      "learning-outcomes"
      "topics-covered"
      "keywords";
  }

  /*
   * Switch information cards, the instances banner, and the footer to
   * single-column layouts where applicable.
   */
  .cards-grid,
  .instances-band,
  .landing-footer {
    grid-template-columns: 1fr;
  }

  /* Display the decorative course image as a shallow full-width banner. */
  .instances-band__media {
    min-height: 6.15rem;
  }

  .instances-band__content {
    padding: 0.9rem 1rem 1rem;
    gap: 0.7rem;
  }

  /* Adjust the course instances heading for the narrower layout. */
  .instances-band__title p {
    font-size: 1.45rem;
  }

  /*
   * Allow course-instance buttons to resize and wrap according to the
   * available screen width.
   */
  .instance-grid--band ul {
    grid-template-columns: repeat(auto-fit, minmax(10.25rem, 1fr));
    gap: 0.6rem;
  }

  /* Allow the hero action-button container to use the full available width. */
  .hero__actions ul {
    width: 100%;
  }

  /*
   * Keep the footer text and repository image side by side while reducing
   * the surrounding spacing.
   */
  .landing-footer {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
  }
}


/* ==========================================================================
   Small mobile screens (414px and below)
   ========================================================================== */

@media (max-width: 414px) {

  /* Reduce the course title and subtitle sizes for small phone screens. */
  .hero__title p {
    font-size: 2.45rem;
  }

  .hero__subtitle p {
    font-size: 1rem;
  }

  /* Make hero action buttons span the full available width. */
  .hero-cta {
    width: 100%;
    justify-content: space-between;
  }

  /* Adjust information-card heading spacing and sizing. */
  .info-card__header {
    gap: 0.85rem;
  }

  .info-card__icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .info-card__icon-img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .info-card__heading {
    font-size: 1.6rem;
  }

  /* Make footer text more compact on small phone screens. */
  .landing-footer__meta p {
    font-size: 0.68rem;
    line-height: 1.32;
  }

  /* Reduce the height of the decorative course image. */
  .instances-band__media {
    min-height: 5rem;
  }

  /* Reduce spacing inside the course instances banner. */
  .instances-band__content {
    padding: 0.82rem 0.9rem 0.9rem;
  }

  .instances-band__title p {
    font-size: 1.32rem;
  }

  /* Make course-instance buttons more compact. */
  .instance-pill {
    min-height: 2.45rem;
    padding: 0.42rem 0.8rem;
    border-radius: 0.52rem;
    font-size: 0.84rem;
  }
}
