/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.breadcrumbs li + li {
  margin-top: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: var(--space-2);
  color: var(--color-ink-muted);
}

.breadcrumbs [aria-current] {
  color: var(--color-ink-muted);
}

/* On a narrow screen the trail is one link back to the level above, which saves the lines it would wrap onto */
@media (max-width: 39.99em) {
  .breadcrumbs li {
    display: none;
  }

  .breadcrumbs li:nth-last-child(2) {
    display: list-item;
  }

  .breadcrumbs li:nth-last-child(2)::before {
    content: none;
  }

  .breadcrumbs li:nth-last-child(2) a::before {
    content: "\2039\00a0";
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.button--secondary {
  border-color: var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.button--secondary:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}

.button--accent {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.button--accent:hover {
  background: color-mix(in srgb, var(--color-yellow), black 10%);
  color: var(--color-ink);
}

/* Callouts */
.callout {
  padding: var(--space-4) var(--space-5);
  border-inline-start: 4px solid var(--callout-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--callout-bg);
}

.callout--info {
  --callout-accent: var(--color-primary);
  --callout-bg: var(--color-primary-tint);
}

.callout--tip {
  --callout-accent: var(--color-teal);
  --callout-bg: var(--color-teal-tint);
}

.callout--highlight {
  --callout-accent: var(--color-yellow);
  --callout-bg: var(--color-yellow-tint);
}

.callout--warning {
  --callout-accent: var(--color-salmon);
  --callout-bg: var(--color-salmon-tint);
}

.callout__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

/* 10px circle, in rem so it scales with the user's text size */
.callout__title::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--callout-accent);
}

.callout__body > * + * {
  margin-top: var(--space-3);
}

/* Short answer: the article's answer up front, between a primary rule and a border rule */
.short-answer {
  padding: var(--space-4) var(--space-5) var(--space-5);
  border-top: 3px solid var(--color-primary);
  background: var(--color-primary-tint);
}

.short-answer__label {
  margin-bottom: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: var(--leading-tight);
  text-transform: uppercase;
}

.short-answer > :not(.short-answer__label) {
  font-family: var(--font-body);
  font-size: var(--text-lede);
  line-height: 1.5;
}

.short-answer > * + :not(.short-answer__label) {
  margin-top: var(--space-3);
}

/* Pull quote: a standout line from the article, not a quotation from elsewhere */
.pullquote {
  margin-inline: 0;
  padding: var(--space-5);
  border-block: 2px solid var(--color-teal);
}

.pullquote blockquote {
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-style: normal;
  font-weight: 500;
  line-height: var(--leading-tight);
}

.pullquote blockquote > * + * {
  margin-top: var(--space-3);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  position: relative;
  padding: var(--space-4) var(--space-7) var(--space-4) 0;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 500;
  line-height: var(--leading-tight);
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--space-2);
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.faq__item[open] > .faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq__answer {
  padding-bottom: var(--space-4);
}

.faq__answer > * + * {
  margin-top: var(--space-3);
}

/* Kit form block. The Kit embed sits inside .kit-form__embed and inherits these styles. */
.kit-form {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

/* Tinted: the default, for use inside articles */
.kit-form--tinted {
  background: var(--color-primary-tint);
  color: var(--color-ink);
}

/* Solid: for standalone sign-up pages only */
.kit-form--solid {
  background: var(--color-primary);
  color: var(--color-white);
}

.kit-form--solid a {
  --link-color: var(--color-link-on-primary);
  --link-hover-color: var(--color-link-on-primary);
}

.kit-form--solid :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.kit-form__title {
  color: inherit;
}

.kit-form__text {
  margin-top: var(--space-2);
}

.kit-form__embed {
  margin-top: var(--space-5);
}

.kit-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
}

.kit-form__field {
  flex: 1 1 16rem;
}

.kit-form label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-ui);
  font-weight: 500;
}

.kit-form input[type="email"],
.kit-form input[type="text"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem var(--space-3);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.kit-form--solid input[type="email"],
.kit-form--solid input[type="text"] {
  border-color: var(--color-white);
}

.kit-form__note {
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

/* Search form and the Pagefind results on /search/ */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-end;
}

.search-form__field {
  flex: 1 1 16rem;
}

.search-form label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-ui);
  font-weight: 500;
}

.search-form input[type="search"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem var(--space-3);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

.search-page__form {
  max-width: 40rem;
}

/* The count line is the articles page's: h5-styled, above a rule in the primary blue that starts the rows */
.search-status {
  margin: var(--space-6) 0 var(--space-3);
}

.search-status:empty {
  display: none;
}

.search-results {
  border-top: 3px solid var(--color-primary);
}

.search-results .article-index {
  margin-top: 0;
}

.search-more {
  margin-top: var(--space-5);
}

/* Article card */
/* One column, then two, then three. Cards grow to fill a short last row. */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.card-grid > .card {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 40em) {
  .card-grid > .card {
    flex-basis: calc((100% - var(--space-5)) / 2 - 1px);
  }
}

@media (min-width: 64em) {
  .card-grid > .card {
    flex-basis: calc((100% - 2 * var(--space-5)) / 3 - 1px);
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  color: var(--color-ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.card__category {
  color: var(--color-teal-dark);
  font-weight: 600;
}

.card__description mark {
  padding-inline: 0.15em;
  border-radius: var(--radius-sm);
  background: var(--color-yellow-tint);
  color: inherit;
}

.card__title {
  font-size: var(--text-h3);
}

.card__description {
  color: var(--color-ink-muted);
}

/* Site header and main navigation: one wrapping cluster, no JavaScript, no breakpoints.
   The wordmark and navigation share a row when they fit; otherwise the navigation wraps
   below the wordmark, then onto further lines. */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-6);
  padding-block: var(--space-2);
}

.site-header__brand,
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 700;
  line-height: var(--leading-tight);
  text-decoration: none;
}

.site-header__brand {
  --link-color: var(--color-ink);
  --link-hover-color: var(--color-primary);
}

/* Header and footer links: no underline at rest; on hover one appears in the link's colour, with no background */
.site-header__brand,
.site-footer__brand,
.site-nav a,
.site-footer__nav a,
.site-footer__links a {
  text-decoration: none;
}

.site-header__brand:hover,
.site-footer__brand:hover,
.site-footer__nav a:hover,
.site-footer__links a:hover {
  background: none;
  box-shadow: none;
  padding-bottom: 0;
  text-decoration: underline;
  text-decoration-color: currentcolor;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--gap-nav);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

/* The main navigation does not underline on hover (the colour change is the cue); the current page keeps its underline */
.site-nav a:hover {
  background: none;
  box-shadow: none;
  padding-bottom: 0;
}

/* At least 44px tall to tap */
.site-nav a {
  --link-color: var(--color-ink);
  --link-hover-color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-ui);
  font-size: 1rem; /* the same on every screen: body text grows on wide screens, the navigation does not */
  font-weight: 500;
  line-height: var(--leading-tight);
  text-decoration: none;
}

.site-nav a[aria-current] {
  --link-color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 0.1875rem;
  text-underline-offset: 0.45em;
}

/* Site footer */
.site-footer {
  margin-top: var(--space-9);
  background: var(--color-ink);
  color: var(--color-white);
}

.site-footer :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-6);
}

.site-footer__bottom {
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.site-footer--compact {
  margin-top: 0; /* the page above already ends with its own space */
}

.site-footer--compact .site-footer__bottom {
  padding-top: 0;
  border-top: 0;
}

.site-footer a {
  --link-color: var(--color-white);
  --link-hover-color: var(--color-yellow);
}

.site-footer__nav ul,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--gap-nav);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-ui);
}

.site-footer__nav li + li,
.site-footer__links li + li {
  margin-top: 0;
}

/* The same type as the main navigation, on every screen */
.site-footer__nav a,
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--leading-tight);
}

/* The privacy and LinkedIn links: regular weight, copyright size, on the right */
.site-footer__links {
  margin-inline-start: auto;
  font-size: var(--text-label);
}

.site-footer__links a,
.site-footer__links button {
  font-size: var(--text-label);
  font-weight: 400;
}

/* "Cookie settings" is a button (it opens the consent bar) but reads as one of the footer links */
.site-footer__links button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-white);
  font-family: var(--font-ui);
  line-height: var(--leading-tight);
  cursor: pointer;
}

.site-footer__links button:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.site-footer__links button:focus-visible {
  outline-color: var(--color-focus-on-dark);
}

/* Page and article layouts */
.page-header {
  padding-block: var(--space-6) var(--space-5);
}

/* The title and meta keep to the reading width; the breadcrumb runs the full width */
.page-header > :not(.breadcrumbs) {
  max-width: var(--width-prose);
}

.page-header > * + * {
  margin-top: var(--space-4);
}

/* A breadcrumb sits as far below the header rule as the wordmark's text sits above it (20px) */
.page-header:has(> .breadcrumbs:first-child),
.landing:has(> .breadcrumbs:first-child) {
  padding-top: calc(var(--space-4) + var(--space-1));
}

.page-header--title-hidden {
  padding-bottom: 0;
}

/* An article's title and byline in a full-width primary tint band, the text on the page's left edge */
.page-header > .article-hero {
  max-width: none;
  margin-top: calc(var(--space-4) + var(--space-1) - 1px); /* the breadcrumb text sits 21px below the header rule; the same 21px above the band (the line box adds 1px below the text) */
  margin-inline: calc(50% - 50vw);
  padding: var(--space-7) calc(50vw - 50%);
  background: var(--color-primary-tint);
}

.article-hero > * {
  max-width: var(--width-prose);
}

.article-hero > * + * {
  margin-top: var(--space-4);
}

/* The same 20px again from the band to the short answer and the column beside it */
.layout-article .page-header:has(.article-hero) {
  padding-bottom: calc(var(--space-4) + var(--space-1));
}

/* An article page: more room between the breadcrumb and the title */
.layout-article .page-header .breadcrumbs + h1 {
  margin-top: var(--space-6);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  color: var(--color-ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.article-faq {
  margin-top: var(--space-8);
}

.article-faq > h2 {
  margin-bottom: var(--space-4);
}

/* Article page: the text beside a column with its tags and related articles (below the text on narrow screens) */
.article-layout {
  display: grid;
  gap: var(--space-7) var(--space-8);
}

.article-layout__main {
  min-width: 0;
}

.article-aside > * + * {
  margin-top: var(--space-6);
}

/* In the column the label sits above the pills */
.article-aside .tag-list {
  display: block;
}

/* The tags label is styled as the heading of the related articles panel below it */
.article-aside .tag-list__label {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-ink);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: var(--leading-heading);
}

@media (min-width: 64em) {
  .article-layout {
    grid-template-columns: minmax(0, var(--width-prose)) 20rem;
    justify-content: space-between;
    align-items: start;
  }

  .article-aside {
    position: sticky;
    top: var(--space-5);
  }
}

.article-list {
  margin-top: var(--space-6);
}

/* Tag list: pill links beside the article, as on the WordPress site */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.tag-list__label {
  font-weight: 600;
}

.tag-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li + li {
  margin-top: 0;
}

.tag-list a {
  --link-color: var(--color-ink);
  --link-hover-color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem; /* 36px at every screen size */
  padding-inline: var(--pill-padding);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  text-decoration: none;
}

.tag-list a:hover {
  border-color: var(--color-primary);
}

/* Landing pages: a sequence of layout blocks */
.landing {
  padding-top: var(--space-6);
}

.landing > * + * {
  margin-top: var(--space-8);
}

/* Plain text on a landing page: a reading-width block, centred on the page with the text still left-aligned */
.landing > :is(p, ul, ol) {
  max-width: var(--width-prose);
  margin-inline: auto;
}

.landing > :is(p, ul, ol) + :is(p, ul, ol) {
  margin-top: var(--space-5);
}

.landing > .landing-topics {
  margin-top: var(--space-5);
}

/* Topic columns straight after plain text (the Topics page) are the main content, so they get more room */
.landing > p + .landing-topics {
  margin-top: var(--space-7);
}

.landing > .band + .band {
  margin-top: 0;
}

.landing > .band:last-child {
  margin-bottom: calc(var(--space-9) * -1); /* meet the footer */
}

/* Hero: the page's opening statement, centred */
.hero {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: var(--space-6);
  text-align: center;
}

.hero > :is(h1, h2) {
  font-size: var(--text-h1);
  font-weight: 700;
}
.hero > p {
  margin-top: var(--space-4);
  font-size: var(--text-lede);
  line-height: 1.5;
}

.hero > .actions {
  justify-content: center;
  margin-top: var(--space-5);
}

/* Tinted hero: the same opening as the home page, a full-width pale blue band that meets the header */
.hero--tint {
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: var(--space-8) max(var(--gutter), calc(50vw - 24rem));
  background: var(--color-primary-tint);
}

.landing > .hero--tint {
  margin-top: calc(var(--space-6) * -1);
}

.hero--tint > :is(h1, h2) {
  text-wrap: balance;
}

/* Under a breadcrumb the tint hero starts below it, on the page background, as an article's band does */
.landing > .breadcrumbs:first-child ~ .hero--tint:first-of-type {
  margin-top: calc(var(--space-4) + var(--space-1) - 1px);
}

/* Lead hero: the paragraph straight after the title is a subtitle, set in the heading face */
.hero--lead > :is(h1, h2) + p {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

/* Actions: one or more buttons in a row */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.actions > p {
  display: contents;
}

/* Feature grid: icon, heading and text, at most three to a row. Rows wrap, and a short
   last row shares the full width (three then two gives thirds, then halves). */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.feature {
  flex: 1 1 calc((100% - 2 * var(--space-6)) / 3);
  min-width: min(100%, 16rem);
}

.features > :not(.feature) {
  flex: 0 0 100%;
  padding-inline: max(0px, (100% - var(--width-prose)) / 2); /* a full row, prose-width text */
  text-align: center;
}

.features > .actions {
  justify-content: center;
}

.features > :is(h2, p) + p {
  margin-top: calc(var(--space-3) - var(--space-6));
}

.feature > * + * {
  margin-top: var(--space-3);
}

.feature > p:has(> img:only-child) {
  display: flex;
  justify-content: center;
}

.feature img {
  width: 3.5rem;
  height: auto;
}

.feature > :is(h2, h3) {
  text-align: center;
}

/* A feature title that is an h2 (the topics page) keeps the h3 look */
.feature > h2 {
  font-size: var(--text-h3);
  font-weight: 500;
}

.feature > .actions {
  justify-content: center;
  margin-top: var(--space-4);
}

/* Column: a centred reading column on the page background */
.column {
  max-width: var(--width-prose);
  margin-inline: auto;
}

.column--center {
  text-align: center;
}

.column > * + * {
  margin-top: var(--space-4);
}

.column > * + h2 {
  margin-top: var(--space-7);
}

.column > .actions {
  margin-top: var(--space-5);
}

/* Topic page: the text, and the list of its articles in a column beside it (below the text on narrow screens) */
.cluster-layout {
  display: grid;
  gap: var(--space-7) var(--space-8);
}

.cluster-layout__main {
  min-width: 0;
}

.cluster-aside {
  display: grid;
  gap: var(--space-7);
}

/* The rules run the full width of the column; the text inside is inset from them */
.side-panel h2 {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-ink);
  font-size: var(--text-h4);
}

.side-panel > .tag-list {
  margin-top: var(--space-3);
  padding-inline: calc(var(--space-3) / 2);
}

.side-panel__count {
  color: var(--color-ink-muted);
  font-weight: 400;
}

.side-panel__more {
  margin-top: var(--space-4);
  padding-inline: calc(var(--space-3) / 2);
  font-family: var(--font-ui);
  font-weight: 600;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  margin: 0;
  padding: var(--space-3) calc(var(--space-3) / 2);
  border-bottom: 1px solid var(--color-border);
  line-height: var(--leading-tight);
}

.side-list a {
  font-family: var(--font-ui);
  font-weight: 500;
}

/* A topic's sub-topics: the name, and its article count at the end of the row */
/* The row is a flex container, so its link is a block and the hover padding (for wrapped links) would take space and move the row */
.side-list--topics a:hover {
  padding-bottom: 0;
}

.side-list--topics .side-panel__count {
  font-family: var(--font-ui);
}

.side-list--topics li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
}

.side-list__date {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 400;
}

@media (min-width: 64em) {
  .cluster-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .cluster-aside {
    position: sticky;
    top: var(--space-5);
  }
}

/* A cluster page's intro: reading-width text with full-width bands between its sections */
.cluster-intro {
  max-width: none;
}

.cluster-intro > :not(.band, .article-list) {
  max-width: var(--width-prose);
}

.cluster-intro > .band,
.cluster-intro > .article-list {
  margin-top: var(--space-8);
}

.cluster-intro > .band + .band {
  margin-top: 0;
}

.cluster-intro > .band:last-child {
  margin-bottom: calc(var(--space-9) * -1); /* meet the footer */
}

/* Band: a full-width coloured section */
.band {
  margin-inline: calc(50% - 50vw);
  padding-block: var(--space-8);
}

.band__content {
  max-width: calc(var(--width-prose) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band__content > * + * {
  margin-top: var(--space-4);
}

.band__content > .actions {
  margin-top: var(--space-5);
}

.band--primary,
.band--ink,
.band--muted {
  color: var(--color-white);
}

.band--primary {
  background: var(--color-primary);
}

.band--ink {
  background: var(--color-ink);
}

.band--muted {
  background: var(--color-ink-muted);
}

.band--primary h2,
.band--ink h2,
.band--muted h2 {
  color: inherit;
}

.band--primary a:not(.button):hover,
.band--ink a:not(.button):hover,
.band--muted a:not(.button):hover,
.kit-form--solid a:not(.button):hover {
  background: none;
  box-shadow: none;
  padding-bottom: 0;
}

.band--primary a:not(.button),
.band--ink a:not(.button),
.band--muted a:not(.button) {
  --link-color: var(--color-link-on-primary);
  --link-hover-color: var(--color-link-on-primary);
}

.band--primary :focus-visible,
.band--ink :focus-visible,
.band--muted :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

/* On a dark band the primary button would disappear, so it takes the accent colours */
.band--primary .button--primary,
.band--ink .button--primary,
.band--muted .button--primary {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.band--warm {
  background: var(--color-yellow-tint);
}

.band--tint {
  background: var(--color-primary-tint);
}

.band--plain {
  background: var(--color-white);
}

.band--wide .band__content {
  max-width: calc(var(--width-content) + var(--gutter) * 2);
}

/* "Why" band: the heading on the left, the text on the right from 48em (the same as the home page's band) */
.band--why .band__content {
  max-width: calc(var(--width-content) + var(--gutter) * 2);
}

@media (min-width: 48em) {
  .band--why .band__content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    column-gap: var(--space-7);
    align-items: start;
  }

  .band--why .band__content > h2 {
    grid-column: 1;
    grid-row: 1 / span 20;
  }

  .band--why .band__content > :not(h2) {
    grid-column: 2;
  }

  .band--why .band__content > h2 + * {
    margin-top: 0;
  }
}

/* A Kit embed in a band or a hero stays a compact, centred form rather than filling the section */
:is(.band, .hero) .kit-embed {
  max-width: 25rem;
  margin: var(--space-5) auto 0;
}

.band--center {
  text-align: center;
}

.band--center .actions {
  justify-content: center;
}

/* Balanced: the heading and the buttons centred, the text between them left-aligned in the centred column */
.band--balanced .band__content > h2 {
  text-align: center;
}

.band--balanced .actions {
  justify-content: center;
}

/* Split: main content beside an image, stacking when narrow */
.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: center;
}

.split__main > * + * {
  margin-top: var(--space-4);
}

.split__aside img {
  margin-inline: auto;
}

.split--avatar .split__aside img {
  width: min(100%, 16rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.split--card {
  padding: var(--space-5);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.split--card .split__aside img {
  border-radius: var(--radius-md);
}

.split--card h2 {
  font-size: var(--text-h3);
}

/* Article index: one row per article, without cards. Used on the articles page and the search results.
   .article-index--rows adds the date column on the left and the topic on the right (from 48em). */
.article-index {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.article-index__item {
  display: grid;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.article-index__item[hidden],
.browse-month[hidden] {
  display: none;
}

.article-index__title {
  font-size: var(--text-h3); /* one step up from the body text of the description */
}

.article-index__description {
  max-width: var(--width-prose);
  margin: 0;
  color: var(--color-ink-muted);
}

.article-index__date,
.article-index__topic {
  margin: 0;
  color: var(--color-ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-label);
}

.article-index__topic a {
  --link-color: var(--color-teal-dark);
  --link-hover-color: var(--color-teal-dark);
  --link-tint: var(--color-teal-tint);
  font-weight: 600;
}

.article-index__description mark {
  padding-inline: 0.15em;
  border-radius: var(--radius-sm);
  background: var(--color-yellow-tint);
  color: inherit;
}

.article-index--rows .article-index__item {
  grid-template-areas:
    "date topic"
    "title title"
    "desc desc";
  grid-template-columns: 1fr auto;
}

.article-index--rows .article-index__date { grid-area: date; }
.article-index--rows .article-index__title { grid-area: title; }
.article-index--rows .article-index__description { grid-area: desc; }
.article-index--rows .article-index__topic { grid-area: topic; text-align: right; }

@media (min-width: 48em) {
  .article-index--rows .article-index__item {
    grid-template-columns: 9rem minmax(0, 1fr) 9rem;
    grid-template-areas:
      "date title topic"
      "date desc topic";
    align-items: baseline;
  }
}

/* Articles page: the list by month, with a right-hand column (above the list on narrow screens) holding the
   search and the topics. Below 64em the topics are one select; below 40em it sits under the search. */
.browse__header {
  max-width: none;
}

.browse__layout {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.browse-aside > * + * {
  margin-top: var(--space-5);
}

.browse-aside .search-form__field {
  flex-basis: 9rem;
}

.browse-topics h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h4);
}

.browse-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.browse-topics li {
  display: contents;
}

.browse-topics a {
  --link-color: var(--color-ink);
  --link-hover-color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--pill-height);
  padding-inline: var(--pill-padding);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
}

.browse-topics ul ul a {
  font-size: var(--text-label);
}

.browse-topics a:hover {
  border-color: var(--color-primary);
}

.browse-topics a[aria-current] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  --link-color: var(--color-white);
  --link-hover-color: var(--color-white);
}

.browse-topics__count {
  color: var(--color-ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.browse-topics a[aria-current] .browse-topics__count {
  color: inherit;
}

/* The select (made by articles-filter.js) */
.browse-select {
  display: none;
}

.browse-select label {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-ui);
  font-weight: 600;
}

.browse-select select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 2.75rem 0.5rem var(--space-3);
  appearance: none;
  /* The arrow is drawn here so it can sit well in from the right edge */
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231a2233' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right var(--space-4) center / 0.75rem 0.5rem;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}

@media (max-width: 63.99em) {
  /* With the script the select replaces the topic links. Without it the links stay: every topic and sub-topic. */
  .browse-aside.has-select .browse-topics {
    display: none;
  }

  .browse-aside.has-select .browse-select {
    display: block;
  }
}

/* Middle widths: the search and the topics select share a line, with a vertical divider between them */
@media (min-width: 40em) and (max-width: 63.99em) {
  .browse-aside.has-select {
    display: flex;
    align-items: stretch;
    gap: var(--space-5);
  }

  .browse-aside.has-select > * + * {
    margin-top: 0;
  }

  .browse-aside.has-select > .search-form,
  .browse-aside.has-select > .browse-select {
    flex: 1 1 0;
    min-width: 0;
  }

  .browse-aside.has-select > .browse-select {
    padding-left: var(--space-5);
    border-left: 1px solid var(--color-border);
  }
}

/* Wide: the column sits beside the list, with a divider between the search and the topics */
@media (min-width: 64em) {
  .browse__layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--space-8);
    align-items: start;
  }

  .browse-aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: var(--space-5);
  }

  .browse__lists {
    grid-column: 1;
    grid-row: 1;
  }

  .browse-topics {
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border);
  }

  /* A plain list, sub-topics indented beneath their topic */
  .browse-topics ul,
  .browse-topics li {
    display: block;
  }

  .browse-topics ul ul {
    margin-top: var(--space-1);
  }

  .browse-topics a {
    justify-content: space-between;
    width: 100%;
    min-height: 2.5rem;
    padding-inline: var(--space-3);
    border-color: transparent;
    border-radius: var(--radius-sm);
    background: none;
  }

  .browse-topics a:hover {
    border-color: transparent;
    background: var(--color-primary-tint);
  }

  .browse-topics a[aria-current] {
    background: var(--color-primary);
  }

  .browse-topics > ul > li > a {
    font-weight: 600;
  }

  .browse-topics ul ul a {
    min-height: 2.25rem;
    padding-left: calc(var(--space-3) + 0.625rem); /* half the indent beyond the topic text above */
    font-weight: 400;
  }
}

.browse__count {
  margin-bottom: var(--space-3);
}

/* The topic in the count line: the same teal as the topic on each row of the list */
.browse__topic {
  color: var(--color-teal-dark);
  font-weight: 600;
}

.browse-month > h2 {
  padding-top: var(--space-4);
  border-top: 3px solid var(--color-primary);
  font-size: var(--text-h3);
}

.browse-month:not([hidden]) ~ .browse-month:not([hidden]) {
  margin-top: var(--space-8);
}

/* Phones (below 40em): the topic select already shows each topic's count, so the "Showing N articles" line and the month
   headings go. The count line stays as a live region, hidden from sight, so a filtered list still announces how many
   articles it shows. The month headings stay in the page for screen readers. The list reads as one run, newest first, and
   each row keeps its date. The gap from the heading to the search is one spacing step smaller (3rem to 2rem). */
@media (max-width: 39.99em) {
  .browse__count,
  .browse-month > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .browse-month:not([hidden]) ~ .browse-month:not([hidden]) {
    margin-top: 0;
  }

  .browse-month .article-index {
    margin-top: 0;
  }

  .browse__layout {
    margin-top: var(--space-2);
  }
}

.browse__empty {
  padding-block: var(--space-6);
  color: var(--color-ink-muted);
}

/* Controls that are links but have their own shape: the hover tint and its extension do not apply */
.button:hover,
.tag-list a:hover,
.browse-topics a:hover {
  box-shadow: none;
}

/* The pills set only side padding, so the hover padding is cancelled for them. A button sets its own padding all
   round, which already beats the hover padding, so it must not be reset: that made the label jump on hover. */
.tag-list a:hover,
.browse-topics a:hover {
  padding-bottom: 0;
}

/* Topic columns: the content pillars as ruled columns, no cards. Icon and title on one row; the title links to
   the topic page and the count to its articles (neither when the topic has no articles yet). Used on the home and
   About pages. */
.topic-columns {
  display: grid;
  gap: var(--space-6) var(--space-7);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.topic-columns__item {
  margin: 0;
  padding-top: var(--space-4);
  border-top: 4px solid var(--color-teal);
}

.topic-columns__item:first-child { border-top-color: var(--color-primary); }
.topic-columns__item:last-child { border-top-color: var(--color-yellow); }

.topic-columns__head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.topic-columns__item img {
  flex: none;
  width: 2.5rem;
  height: auto;
}

.topic-columns__item h3 { font-size: var(--text-h3); }
.topic-columns__item p { margin-top: var(--space-3); }
.topic-columns__more { font-family: var(--font-ui); font-weight: 600; }

@media (min-width: 56em) {
  .topic-columns { grid-template-columns: repeat(3, 1fr); }
}

/* Course cards: the article card with the cover shown whole, two to a row on wide screens */
.card--course .card__image {
  aspect-ratio: auto;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 64em) {
  .card-grid--pair > .card {
    flex-basis: calc((100% - var(--space-5)) / 2 - 1px);
  }
}

/* A course card alone in its row (an odd number of cards puts the last one there) puts the cover on the left and
   the text on the right, half and half, instead of stretching the cover across the whole row */
@media (min-width: 40em) {
  .card-grid--pair > .card--course:last-child:nth-child(odd) {
    flex-direction: row;
  }

  .card-grid--pair > .card--course:last-child:nth-child(odd) .card__image {
    flex: 0 0 50%;
    align-self: stretch;
    width: 50%;
    height: auto;
    background: var(--color-surface); /* the cover's own background, so any extra height below it blends in */
    object-fit: contain;
    object-position: left top;
    border-right: 1px solid var(--color-border);
    border-bottom: 0;
  }

  .card-grid--pair > .card--course:last-child:nth-child(odd) .card__body {
    flex: 1 1 50%;
    justify-content: flex-start;
    padding: var(--space-6);
  }
}

/* Cookie consent bar: fixed to the bottom of the window, over the page, with nothing else blocked.
   The width it is given, not the window's, decides the layout (a container query), so the style guide can
   show it at 320px and 1280px. The script sets --consent-height while the bar is open, so the last of the page
   and any focused link are never hidden behind it. */
.consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  container-type: inline-size;
  border-top: 1px solid var(--color-border-strong);
  background: var(--color-white);
  box-shadow: 0 -0.25rem 1rem rgb(26 34 51 / 0.1);
}

.consent[hidden] {
  display: none;
}

.consent--static {
  position: static;
}

.consent__inner {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.consent__text {
  max-width: 75ch;
  text-wrap: pretty;
  margin: 0;
  font-family: var(--font-ui);
  line-height: var(--leading-tight);
}

.consent__actions {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: var(--space-3);
}

@container (min-width: 40em) {
  .consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6);
  }

  .consent__actions .button {
    min-width: 8rem;
  }
}

html {
  scroll-padding-bottom: var(--consent-height, 0px);
}

body {
  padding-bottom: var(--consent-height, 0px);
}

/* Course landing page (layout course.njk, chrome: minimal): a dark opening, a reading column with a sign-up
   panel that stays beside it, and a closing band in place of the site footer */
.site-header--dark {
  border-bottom-color: transparent;
  background: var(--color-ink);
}

.site-header--dark .site-header__brand {
  --link-color: var(--color-white);
  --link-hover-color: var(--color-white);
}

.course-hero {
  background: var(--color-ink);
  color: var(--color-white);
}

.course-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-6) clamp(var(--space-6), 6vw, var(--space-8));
  align-items: center;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(var(--space-7), 6vw, var(--space-9)) var(--gutter);
}

.course-hero h2 {
  color: inherit;
}

.course-hero__main > h2 {
  font-size: clamp(2.6rem, 1.2rem + 5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.course-hero__main > p {
  margin-top: var(--space-5);
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--color-border);
}

/* The paragraph straight after the title is the subtitle */
.course-hero__main > h2 + p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
}

.course-hero__main strong {
  font-family: var(--font-heading);
  color: var(--color-yellow);
}

.course-hero__main > .actions {
  margin-top: var(--space-6);
}

.course-hero .button--primary {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.course-hero .button--primary:hover {
  background: color-mix(in srgb, var(--color-yellow), white 20%);
  color: var(--color-ink);
}

.course-hero :focus-visible,
.site-header--dark :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.course-hero__side {
  padding-top: var(--space-5);
  border-top: 2px solid var(--color-yellow);
}

.course-hero__side > h2 {
  font-size: var(--text-h3);
  font-weight: 500;
}

.course-hero__side ol {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: module;
}

.course-hero__side li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.25);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: var(--leading-tight);
  counter-increment: module;
}

.course-hero__side li::before {
  content: counter(module);
  font-weight: 600;
  color: var(--color-yellow);
}

.course-hero__side ol + p {
  margin-top: var(--space-5);
  font-size: 0.95rem;
  color: var(--color-border);
}

.course-cols {
  display: grid;
  grid-template-columns: minmax(0, 41rem) 20rem;
  gap: var(--space-6) clamp(var(--space-6), 6vw, var(--space-9));
  justify-content: space-between;
  align-items: start;
  max-width: calc(var(--width-content) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(var(--space-7), 6vw, var(--space-9)) var(--gutter);
}

.course-main > * + * {
  margin-top: var(--space-4);
}

.course-main > :is(h2, .course-outcomes, .course-plan) {
  margin-top: var(--space-8);
}

.course-main > h2,
.course-outcomes > h2 {
  font-size: var(--text-h2);
}

/* The opening statement: the problem, set large. Its heading stays for assistive technology. */
.course-lead > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.course-lead > p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
}

.course-lead > p + p {
  margin-top: var(--space-5);
  color: var(--color-primary);
}

.course-outcomes > ul {
  margin: var(--space-5) 0 0;
  padding: 0;
  border-top: 2px solid var(--color-ink);
  list-style: none;
}

.course-outcomes li {
  margin: 0;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.course-outcomes li strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
}

.course-plan {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-teal-tint);
}

.course-plan > h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h3);
}

.course-aside {
  position: sticky;
  top: var(--space-5);
}

.course-panel {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-primary-tint);
}

.course-panel > h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-h3);
}

.course-panel > p {
  font-size: 0.95rem;
}

.course-panel :is(.kit-embed, .formkit-form) {
  margin-top: var(--space-4);
}

/* Kit's form keeps its own padding below the button; take back the same amount added above */
.course-panel .formkit-form {
  margin-bottom: calc(var(--space-4) * -1);
}

.course-aside > p {
  margin-top: var(--space-5);
  padding-inline: var(--space-1);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 56rem) {
  .course-hero__in,
  .course-cols {
    grid-template-columns: 1fr;
  }

  .course-aside {
    position: static;
  }
}
