/**
 * /courses/ (public/archive-courses.php): the page's own few rules.
 *
 * The page is the one course list (course-list.css) under the subject page's
 * title, tabs and apprenticeship block (subject-routes.css). This sheet only
 * adds what /courses/ has and a subject page does not: the line under the
 * title and the Subject choice. Nothing here names a colour; nothing is under
 * the theme's minimum type size (--fs-min).
 */

.dncg-courses-page .dncg-routes {
  padding-top: 3rem;
}

.dncg-courses-page .dncg-routes .dncg-routes__title {
  margin-bottom: .6rem;
}

.dncg-courses-page .dncg-courses-page__lede {
  max-width: 40em;
  margin: 0 0 1.4rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
}

/* The finder's line (dncg-search) sits under the title, on the page's left,
   and is a link here: the view's one filled button is further down. */
.dncg-courses-hero-content .dncg-choose-inline {
  justify-content: flex-start;
  margin: 0 0 1.4rem;
  text-align: left;
}

.dncg-courses-page .dncg-choose-inline .dncg-choose__open {
  padding: 0;
  border-radius: 0;
  background: none;
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.dncg-courses-page .dncg-choose-inline .dncg-choose__open:hover {
  color: var(--text-heading);
  text-decoration-thickness: .14em;
}

.dncg-courses-page .dncg-choose-inline .dncg-choose__open:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ---- the Subject choice: a field, its button, the way on to the subject's page ---- */
.dncg-courses-subject {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .8rem 1.2rem;
  margin: 0 0 1.6rem;
}

.dncg-courses-subject__field {
  display: grid;
  gap: .35rem;
  flex: 0 1 24rem;
  min-width: 0;
}

.dncg-courses-page .dncg-courses-subject label {
  margin: 0;
  font-size: var(--fs-min);
  font-weight: 700;
  color: var(--text-heading);
}

.dncg-courses-page .dncg-courses-subject select {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: .45rem 2.4rem .45rem .8rem;
  border: 2px solid var(--control-border);
  border-radius: var(--radius-md);
  background-color: var(--white);
  font-size: var(--fs-min);
  color: var(--text);
  /* The browser's own arrow: the theme takes it off every select. */
  -webkit-appearance: menulist;
  appearance: auto;
}

/* Outlined: the view's one filled button is further down. */
.dncg-courses-page .dncg-courses-subject__go {
  min-height: 2.75rem;
  margin: 0;
  padding: .45rem 1.2rem;
  border: 2px solid var(--text-heading);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: var(--fs-min);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  cursor: pointer;
}

.dncg-courses-page .dncg-courses-subject__go:hover {
  background: var(--text-heading);
  color: var(--white);
}

.dncg-courses-page .dncg-courses-subject__more {
  align-self: flex-end;
  padding-bottom: .6rem;
  font-size: var(--fs-min);
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.dncg-courses-subject select:focus-visible,
.dncg-courses-subject__go:focus-visible,
.dncg-courses-subject__more:focus-visible,
.dncg-courses-page__none a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.dncg-courses-page .dncg-courses-page__none {
  font-size: var(--fs-min);
}

.dncg-courses-page .dncg-courses-page__none a {
  font-weight: 700;
  color: var(--blue-text);
  text-decoration: underline;
}

/* The apprenticeship block's three steps start under the tabs, not on a rule
   of their own: on this page there is no list above them. */
.dncg-courses-page .dncg-routes__jobs .dncg-jobs {
  margin-top: .4rem;
}
