/* The documentation look (branch alt_vision): a white header with the name and tagline, a deep purple
   sidebar with a line icon for each top-level page, breadcrumbs and "On this page", all in Durham
   purple. Loaded after extra.css, which it overrides where they differ. */

:root {
  --sb-bg: #2a0e2f;                          /* the sidebar: a deep Durham purple */
  --sb-fg: rgba(255, 255, 255, 0.78);
  --sb-hover: rgba(255, 255, 255, 0.08);
  --sb-active: var(--durham-purple-light);
  --page-line: #e7e2ea;
}

/* Inter throughout (extra.css names Open Sans on body directly) */
body, input { font-family: var(--md-text-font-family); }

/* ── layout: the full width, the sidebar on the left edge, the text filling the space beside it ── */
.md-grid { max-width: none; }
.md-main__inner { margin-top: 0; }
.md-content { padding: 0; }                     /* extra.css padded it 2rem by 4rem, for the old centred layout */
.md-content__inner { padding-top: 1rem; }
@media screen and (min-width: 76.25em) {
  /* the purple column, the whole height of the page: Material gives the sticky sidebar no height of
     its own (the menu overflows it), so the column is painted behind it on .md-main, which Material
     stretches to the footer even when the page is short */
  .md-main { background: linear-gradient(to right, var(--sb-bg) 13rem, transparent 13rem); }
  .md-sidebar--secondary { border-left: 1px solid var(--page-line); }
}

/* ── header: white, the logo, the name and the tagline, search and the repository icon ── */
.md-header {
  background: #fff;
  color: var(--durham-ink);
  box-shadow: 0 1px 0 var(--page-line);
}
.md-header--shadow { box-shadow: 0 1px 0 var(--page-line), 0 0.2rem 0.6rem rgba(42, 14, 47, 0.06); }
.md-header__button.md-logo img, .md-header__button.md-logo svg { height: 1.7rem; }
.md-header__topic:first-child { font-weight: 800; color: var(--durham-purple); letter-spacing: 0.01em; }
@media screen and (min-width: 60em) {
  .md-header__topic:first-child .md-ellipsis::after {
    content: "Material Point Method for large-deformation soil\2013structure interaction";
    margin-left: 1.4rem;
    font-weight: 400;
    font-size: 0.62rem;
    letter-spacing: 0;
    color: var(--md-default-fg-color--light);
  }
}
/* keep the name and tagline when scrolling (Material would swap in the page title) */
.md-header__title--active .md-header__topic:first-child { opacity: 1; transform: none; pointer-events: auto; z-index: 0; }
.md-header__topic + .md-header__topic { display: none; }

@media screen and (min-width: 60em) {
  .md-search__form { border-radius: 0.3rem; }
  .md-search__input {
    background-color: #f6f3f7;
    border: 1px solid var(--page-line);
    border-radius: 0.3rem;
    color: var(--durham-ink);
  }
  .md-search__input:hover { background-color: #f0ecf2; }
  .md-search__input::placeholder { color: rgba(0, 42, 65, 0.5); }
  .md-search__icon { color: rgba(0, 42, 65, 0.55); }
}
.md-header__source { width: auto; max-width: none; }
.md-header .md-source__repository { display: none; }
.md-header .md-source { color: var(--durham-ink); }

/* ── sidebar: Material's own colours re-pointed, so everything inside it turns light-on-dark ── */
.md-sidebar--primary {
  --md-default-bg-color: var(--sb-bg);
  --md-default-fg-color: #fff;
  --md-default-fg-color--light: rgba(255, 255, 255, 0.72);
  --md-default-fg-color--lighter: rgba(255, 255, 255, 0.32);
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.1);
  --md-typeset-a-color: #fff;
  --md-accent-fg-color: #fff;
  color: var(--sb-fg);
}
.md-sidebar--primary .md-nav__link { color: var(--sb-fg); }
.md-sidebar--primary .md-nav__link:is(:hover, :focus),
.md-sidebar--primary .md-nav__item--active > .md-nav__link { color: #fff; }
.md-sidebar--primary .md-nav__link--active { font-weight: 600; }

@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { background: var(--sb-bg); width: 13rem; padding: 0.8rem 0 0; }
  .md-sidebar--primary .md-sidebar__scrollwrap { margin: 0; }
  .md-sidebar--primary .md-sidebar__inner { padding: 0; }      /* Material keeps the menu to 11.5rem */
  /* extra.css set the old menu right to left, right-aligned against the centred page: undone */
  .md-sidebar--primary .md-nav, .md-sidebar--primary .md-nav__item { direction: ltr; }
  .md-sidebar--primary .md-nav__link { justify-content: flex-start; text-align: left; }
  .md-sidebar--primary .md-nav { font-size: 0.68rem; }
  .md-nav--primary > .md-nav__title { display: none; }      /* the site name: it is in the header */
  .md-nav--primary > .md-nav__list { padding: 0 0.5rem; }
  .md-nav--primary .md-nav__item { padding: 0; }

  /* top level: a row with its icon; the arrow of a section at the right */
  .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
    margin: 0.1rem 0;
    padding: 0.42rem 0.55rem;
    border-radius: 0.3rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    font-weight: 600;
  }
  .md-nav--primary .md-nav__link .md-nav__icon { margin-left: auto; }
  .md-sidebar--primary .md-nav__link .md-ellipsis { flex: 1 1 auto; text-align: left; }

  /* inside a section: indented under the text, smaller rows (on the list, so a closed section
     leaves no gap) */
  .md-nav--primary .md-nav__item--nested > .md-nav > .md-nav__list { margin: 0 0 0.3rem 1.7rem; }
  .md-nav--primary .md-nav .md-nav .md-nav__link { margin: 0.05rem 0; padding: 0.22rem 0.5rem; border-radius: 0.25rem; }
  /* extra.css shrank and padded the deeper levels for the old top tabs: undone, one size below the top */
  .md-sidebar--primary .md-nav .md-nav .md-nav .md-nav__link,
  .md-sidebar--primary .md-nav .md-nav .md-nav .md-nav .md-nav__link { font-size: 0.95em; padding-right: 0.5rem; }
  .md-nav--primary .md-nav .md-nav .md-nav .md-nav__list { margin-left: 0.8rem; }

  .md-sidebar--primary .md-nav__link:hover { background: var(--sb-hover); }
  .md-sidebar--primary .md-nav__link--active,
  .md-sidebar--primary .md-nav__link--active:hover { background: var(--sb-active); color: #fff; }
}
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link::before {
  content: "";
  flex: 0 0 auto;
  width: 0.95rem;
  height: 0.95rem;
  margin-right: 0.1rem;
  background-color: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}
@media screen and (max-width: 76.234375em) {
  .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link { justify-content: flex-start; gap: 0.6rem; }
  .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link .md-nav__icon { margin-left: auto; }
}
/* the arrows of the sections (extra.css hid them under the old top tabs) */
.md-sidebar--primary .md-nav__item--nested > .md-nav__link .md-nav__icon { display: inline-block; }
/* the icons, by position in the menu (mkdocs.yml "nav") */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(1) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2z%22/%3E%3C/svg%3E"); }   /* Introduction */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(2) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M5 20h14v-2H5m14-9h-4V3H9v6H5l7 7z%22/%3E%3C/svg%3E"); }   /* Install and run */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(3) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 3 1 9l11 6 9-4.91V17h2V9M5 13.18v4L12 21l7-3.82v-4L12 17z%22/%3E%3C/svg%3E"); }   /* Tutorial problems */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(4) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M6 2c-1.11 0-2 .89-2 2v16a2 2 0 0 0 2 2h4v-1.91L12.09 18H6v-2h8.09l2-2H6v-2h12.09L20 10.09V8l-6-6zm7 1.5L18.5 9H13zm7.15 9.5a.55.55 0 0 0-.4.16l-1.02 1.02 2.09 2.08 1.02-1.01c.21-.22.21-.58 0-.79l-1.3-1.3a.54.54 0 0 0-.39-.16m-2.01 1.77L12 20.92V23h2.08l6.15-6.15z%22/%3E%3C/svg%3E"); }   /* Using the software */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(5) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m13.78 15.3 6 6 2.11-2.16-6-6zm3.72-5.2c-.39 0-.81-.05-1.14-.19L4.97 21.25l-2.11-2.11 7.41-7.4L8.5 9.96l-.72.7-1.45-1.41v2.86l-.7.7-3.52-3.56.7-.7h2.81l-1.4-1.41 3.56-3.56a2.976 2.976 0 0 1 4.22 0L9.89 5.74l1.41 1.4-.71.71 1.79 1.78 1.82-1.88c-.14-.33-.2-.75-.2-1.12a3.49 3.49 0 0 1 3.5-3.52c.59 0 1.11.14 1.58.42L16.41 6.2l1.5 1.5 2.67-2.67c.28.47.42.97.42 1.6 0 1.92-1.55 3.47-3.5 3.47%22/%3E%3C/svg%3E"); }   /* Interactive builder */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(6) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 21.5c-1.35-.85-3.8-1.5-5.5-1.5-1.65 0-3.35.3-4.75 1.05-.1.05-.15.05-.25.05-.25 0-.5-.25-.5-.5V6c.6-.45 1.25-.75 2-1 1.11-.35 2.33-.5 3.5-.5 1.95 0 4.05.4 5.5 1.5 1.45-1.1 3.55-1.5 5.5-1.5 1.17 0 2.39.15 3.5.5.75.25 1.4.55 2 1v14.6c0 .25-.25.5-.5.5-.1 0-.15 0-.25-.05-1.4-.75-3.1-1.05-4.75-1.05-1.7 0-4.15.65-5.5 1.5M12 8v11.5c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5V7c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5m1 3.5c1.11-.68 2.6-1 4.5-1 .91 0 1.76.09 2.5.28V9.23c-.87-.15-1.71-.23-2.5-.23q-2.655 0-4.5.84zm4.5.17c-1.71 0-3.21.26-4.5.79v1.69c1.11-.65 2.6-.99 4.5-.99 1.04 0 1.88.08 2.5.24v-1.5c-.87-.16-1.71-.23-2.5-.23m2.5 2.9c-.87-.16-1.71-.24-2.5-.24-1.83 0-3.33.27-4.5.8v1.69c1.11-.66 2.6-.99 4.5-.99 1.04 0 1.88.08 2.5.24z%22/%3E%3C/svg%3E"); }   /* Technical reference */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(7) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2a7 7 0 0 1 7 7c0 2.38-1.19 4.47-3 5.74V17a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-2.26C6.19 13.47 5 11.38 5 9a7 7 0 0 1 7-7M9 21v-1h6v1a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1m3-17a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58V16h4v-2.42c1.77-.77 3-2.53 3-4.58a5 5 0 0 0-5-5%22/%3E%3C/svg%3E"); }   /* Understanding the software */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(8) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 5a3.5 3.5 0 0 0-3.5 3.5A3.5 3.5 0 0 0 12 12a3.5 3.5 0 0 0 3.5-3.5A3.5 3.5 0 0 0 12 5m0 2a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 10a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 7M5.5 8A2.5 2.5 0 0 0 3 10.5c0 .94.53 1.75 1.29 2.18.36.2.77.32 1.21.32s.85-.12 1.21-.32c.37-.21.68-.51.91-.87A5.42 5.42 0 0 1 6.5 8.5v-.28c-.3-.14-.64-.22-1-.22m13 0c-.36 0-.7.08-1 .22v.28c0 1.2-.39 2.36-1.12 3.31.12.19.25.34.4.49a2.482 2.482 0 0 0 1.72.7c.44 0 .85-.12 1.21-.32.76-.43 1.29-1.24 1.29-2.18A2.5 2.5 0 0 0 18.5 8M12 14c-2.34 0-7 1.17-7 3.5V19h14v-1.5c0-2.33-4.66-3.5-7-3.5m-7.29.55C2.78 14.78 0 15.76 0 17.5V19h3v-1.93c0-1.01.69-1.85 1.71-2.52m14.58 0c1.02.67 1.71 1.51 1.71 2.52V19h3v-1.5c0-1.74-2.78-2.72-4.71-2.95M12 16c1.53 0 3.24.5 4.23 1H7.77c.99-.5 2.7-1 4.23-1%22/%3E%3C/svg%3E"); }   /* Contributors */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(9) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M13 6v8h1.88l-2 4h5.74L21 13.24V6m-6 2h4v4.76L17.38 16h-1.26l2-4H15M3 6v8h1.88l-2 4h5.74L11 13.24V6M5 8h4v4.76L7.38 16H6.12l2-4H5Z%22/%3E%3C/svg%3E"); }   /* Cite this work */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(10) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22m13.33 11.67 2.88 2.91c1.41-1.42 0-2.83 0-2.83l-1.49-1.51c.18-.38.28-.8.28-1.24 0-1.05-.54-1.97-1.36-2.5L15 2.11c-1.91-.58-2.5 1.33-2.5 1.33l-.81 2.59c-1.23.13-2.23.97-2.56 2.15L4.67 9.63c.64 1.9 2.53 1.27 2.53 1.27l2.07-.67c.34.74.96 1.31 1.73 1.59V19s-2 0-2 2v1h6v-1s0-2-2-2v-7.18c.12-.04.23-.1.33-.15M10.5 9A1.5 1.5 0 0 1 12 7.5 1.5 1.5 0 0 1 13.5 9a1.5 1.5 0 0 1-1.5 1.5A1.5 1.5 0 0 1 10.5 9%22/%3E%3C/svg%3E"); }   /* About the project */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(11) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M21.71 8.71c1.25-1.25.68-2.71 0-3.42l-3-3c-1.26-1.25-2.71-.68-3.42 0L13.59 4H11C9.1 4 8 5 7.44 6.15L3 10.59v4l-.71.7c-1.25 1.26-.68 2.71 0 3.42l3 3c.54.54 1.12.74 1.67.74.71 0 1.36-.35 1.75-.74l2.7-2.71H15c1.7 0 2.56-1.06 2.87-2.1 1.13-.3 1.75-1.16 2-2C21.42 14.5 22 13.03 22 12V9h-.59zM20 12c0 .45-.19 1-1 1h-1v1c0 .45-.19 1-1 1h-1v1c0 .45-.19 1-1 1h-4.41l-3.28 3.28c-.31.29-.49.12-.6.01l-2.99-2.98c-.29-.31-.12-.49-.01-.6L5 15.41v-4l2-2V11c0 1.21.8 3 3 3s3-1.79 3-3h7zm.29-4.71L18.59 9H11v2c0 .45-.19 1-1 1s-1-.55-1-1V8c0-.46.17-2 2-2h3.41l2.28-2.28c.31-.29.49-.12.6-.01l2.99 2.98c.29.31.12.49.01.6%22/%3E%3C/svg%3E"); }   /* Partners */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(12) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 20a8 8 0 0 0 8-8 8 8 0 0 0-8-8 8 8 0 0 0-8 8 8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10 10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67-.75 1.23L11 13V7z%22/%3E%3C/svg%3E"); }   /* Coming soon */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(13) > .md-nav__link { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2zm-2 0-8 5-8-5zm0 12H4V8l8 5 8-5z%22/%3E%3C/svg%3E"); }   /* Contact */
/* a line between the documentation and the project pages, above Contributors */
.md-nav--primary > .md-nav__list > .md-nav__item:nth-child(8) {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── headings: bold and dark, a quiet rule under each section ── */
.md-typeset h1 { margin: 0.2rem 0 0.7rem; color: var(--durham-ink); font-weight: 700; letter-spacing: -0.01em; }
.md-typeset h2 { color: var(--durham-ink); font-weight: 700; border-bottom: 1px solid var(--page-line); }
.md-typeset h3, .md-typeset h4 { color: var(--durham-ink); font-weight: 650; }
/* but the "About the project" banner keeps its white title and gold subtitle over the photo */
.md-typeset .hero-content h1 { color: #fff; }
.md-typeset .hero-content h2 { color: var(--durham-gold); border: none; }

/* ── breadcrumbs and "On this page" ── */
.md-path { font-size: 0.62rem; margin-top: 0.2rem; }
.md-path__link { color: var(--md-default-fg-color--light); }
.md-nav--secondary .md-nav__title { color: var(--durham-ink); font-weight: 700; }
.md-nav--secondary .md-nav__link--active { color: var(--durham-purple); font-weight: 600; }

/* ── the Introduction: lead, hero and the two buttons ── */
.md-typeset .lead { font-size: 1.05rem; line-height: 1.45; color: var(--durham-ink); margin: -0.6rem 0 1.1rem; }
/* the hero: class "gif-box" alone, which the caption plugin leaves unnumbered (mkdocs.yml), sized here */
.md-typeset .hero > .gif-box {
  display: block;
  width: 100%;
  max-width: min(48rem, 1000px);             /* no bigger than this (1000 px: the gif's own width), */
  margin: 0 auto;                            /* centred when the text is wider */
  aspect-ratio: auto;
}
/* the box round the hero, as wide as the gif, so the chevron sits on the gif's right edge */
.md-typeset .hero-carousel { position: relative; max-width: min(48rem, 1000px); margin: 0 auto; }
/* the link round the gif: the rounded frame, which clips the frozen frame and the next still as they slide */
.md-typeset .hero-carousel > .hero {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.4rem;
  box-shadow: 0 0.2rem 1rem rgba(42, 14, 47, 0.15);
}
.md-typeset .hero-carousel .hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;                      /* a click still goes to the link */
}
/* a picture inside a sliding layer: the frozen frame, or the next gif's still */
.md-typeset .hero-carousel .hero-fill { display: block; width: 100%; height: 100%; max-width: none; }
/* what each gif shows, in white at the bottom centre; it slides with its picture */
.md-typeset .hero-carousel .hero-caption {
  position: absolute;
  left: 50%;
  bottom: 0.8em;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(0.7rem, 2.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);  /* readable on any colour the soil turns */
  pointer-events: none;
}
.md-typeset .hero-carousel.is-loading .hero-next svg { animation: hero-wait 1s ease-in-out infinite; }
@keyframes hero-wait { 50% { opacity: 0.3; } }
.md-typeset .hero-next {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--durham-purple);
  box-shadow: 0 0.1rem 0.5rem rgba(42, 14, 47, 0.3);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.md-typeset .hero-next[hidden] { display: none; }
.md-typeset .hero-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.md-typeset .hero-next:focus-visible { outline: 2px solid var(--durham-purple); outline-offset: 2px; }
.md-typeset .hero-next svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.md-typeset .cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0.4rem; }
.md-typeset .cta p { display: contents; }
.md-typeset .cta .md-button {
  margin: 0;
  padding: 0.5em 1.1em;
  border: 1px solid var(--durham-purple);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--durham-purple);
  font-weight: 600;
  text-decoration: none;
}
.md-typeset .cta .md-button--primary { background: var(--durham-purple); color: #fff; }
.md-typeset .cta .md-button:is(:hover, :focus) { background: var(--durham-purple-dark); border-color: var(--durham-purple-dark); color: #fff; }

/* the tiles, everywhere: a see-through purple under the pointer, in place of Material's shadow */
.md-typeset .grid.cards > ul > li:is(:hover, :focus-within),
.md-typeset .grid > .card:is(:hover, :focus-within) {
  border-color: color-mix(in srgb, var(--durham-purple) 45%, transparent);
  background: color-mix(in srgb, var(--durham-purple) 8%, transparent);
  box-shadow: none;
}
/* a click anywhere on a tile follows its arrow link (the one starting with an icon): the link's box is
   stretched over the whole tile. The Technical reference tiles, lists of topic links, have none. */
.md-typeset .grid.cards > ul > li { position: relative; }
.md-typeset .grid.cards > ul > li a:has(> .twemoji:first-child)::after {
  content: "";
  position: absolute;
  inset: 0;
}
.md-typeset .cta .md-button .twemoji { margin-right: 0.3em; }
