/* ============================================================
   Utbildning — list pages (course app), after the design reference
   hrnytt-utbildning/ui_kits/utbildning (CoursesPage) and the shared
   platform shell in ui_kits/rekryteringsguiden (HeroBand, FilterPanel,
   pagination). Dark hero, search + "Filtrera" on one row, filter panel
   under the row, removable chips, three-column card grid.
   Values come from hr-tokens.css. Content follows the site container
   (1180 px, 24 px padding) so it lines up with the header and footer.
   ============================================================ */

body.page-home main.container:has(.ut-hero) {
  padding-top: 0;
}

.page-utbildning .nav-links a[href="/utbildning/"] {
  color: var(--hr-green-link);
}

.ut-page {
  font-family: var(--hr-font-body);
  color: var(--hr-ink);
  padding-bottom: 32px;
}

/* The site has no global border-box; set it for this page's own components. */
.ut-page [class^="ut-"],
.ut-page [class*=" ut-"] {
  box-sizing: border-box;
}

.ut-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero: dark band, full bleed ---------- */
.ut-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-color: var(--hr-green-deep);
  background-image:
    linear-gradient(rgba(10, 42, 27, 0.62), rgba(10, 42, 27, 0.62)),
    url("../media/images/utbildning-hero-dark.jpg");
  background-size: cover;
  background-position: center 40%;
  border-bottom: var(--hr-section-rule);
  color: #ffffff;
}

.ut-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.ut-crumb {
  font-size: var(--hr-meta-sm);
  color: rgba(255, 255, 255, 0.82);
  padding: 22px 0 40px;
}

.ut-crumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-crumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

.ut-crumb a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.ut-crumb a:hover {
  color: #ffffff;
}

.ut-hero__body {
  padding-bottom: 48px;
}

.ut-hero__kicker {
  font-size: var(--hr-kicker);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-xwide);
  text-transform: uppercase;
  color: var(--hr-illu-200);
  margin: 0 0 18px;
}

.ut-hero__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: 1.1;
  color: #ffffff;
  max-width: 22ch;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ut-hero__lead {
  font-size: 19px;
  font-weight: var(--hr-w-semibold);
  line-height: 1.45;
  color: #ffffff;
  max-width: 760px;
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Search + Filtrera ---------- */
.ut-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}

.ut-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 380px;
}

.ut-search__icon {
  position: absolute;
  left: 20px;
  display: flex;
  color: var(--hr-graphite);
  pointer-events: none;
}

.ut-search__input {
  width: 100%;
  height: var(--hr-h-input);
  padding: 0 20px 0 52px;
  border: var(--hr-input-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  font-family: var(--hr-font-body);
  font-size: var(--hr-dek);
  color: var(--hr-ink);
  outline: none;
  transition: border-color var(--hr-dur-color) ease, box-shadow var(--hr-dur-color) ease;
}

.ut-search__input::placeholder {
  color: var(--hr-graphite);
}

.ut-search__input:focus {
  border-color: var(--hr-green-cta);
  box-shadow: var(--hr-focus-ring);
}

/* Buttons: pill, outline for "Filtrera", filled cta (no-JS submit only). */
.ut-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--hr-radius-pill);
  font-family: var(--hr-font-body);
  font-size: var(--hr-ui-lg);
  font-weight: var(--hr-w-semibold);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--hr-dur-color) var(--hr-ease),
    color var(--hr-dur-color) var(--hr-ease),
    border-color var(--hr-dur-color) var(--hr-ease);
}

.ut-btn:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.ut-btn--outline {
  background: transparent;
  color: var(--hr-green-link);
  border-color: var(--hr-green-link);
}

.ut-btn--outline:hover {
  background: var(--hr-green-deep);
  border-color: var(--hr-green-deep);
  color: var(--hr-paper);
}

.ut-btn--cta {
  background: var(--hr-green-cta);
  color: #ffffff;
}

.ut-btn--cta:hover {
  background: var(--hr-green-deep);
}

/* ---------- Filter panel ---------- */
.ut-filter-panel {
  margin-top: 16px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-paper);
}

.ut-filter-panel[hidden] {
  display: none;
}

.ut-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 0;
}

.ut-filter-panel__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  margin: 0;
}

.ut-icon-btn {
  display: grid;
  place-items: center;
  width: var(--hr-h-icon-btn);
  height: var(--hr-h-icon-btn);
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  color: var(--hr-ink);
  cursor: pointer;
}

.ut-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.ut-filter-panel__body {
  padding: 22px 28px 26px;
}

.ut-filter-label {
  font-size: var(--hr-kicker-sm);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-kicker);
  text-transform: uppercase;
  color: var(--hr-graphite);
  margin: 0 0 12px;
  padding: 0;
}

.ut-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

/* Category and subcategory pills are links; selected = link-green fill. */
.ut-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  color: var(--hr-ink);
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
  white-space: nowrap;
}

.ut-pill__count {
  font-weight: var(--hr-w-regular);
  opacity: 0.6;
}

.ut-pill[aria-current="true"] {
  background: var(--hr-green-link);
  border-color: var(--hr-green-link);
  color: #ffffff;
}

.ut-pill[aria-current="true"] .ut-pill__count {
  opacity: 0.85;
}

.ut-pill:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

/* One choice per group: real radios, the label is the pill. */
.ut-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 32px;
}

.ut-segment {
  flex: 1 1 300px;
  min-width: 0;
  border: none;
  margin: 0;
  padding: 0;
}

.ut-segment__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ut-segment__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ut-segment__option {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-paper);
  color: var(--hr-ink);
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  cursor: pointer;
}

.ut-segment__input:checked + .ut-segment__option {
  background: var(--hr-green-link);
  border-color: var(--hr-green-link);
  color: #ffffff;
}

.ut-segment__input:focus-visible + .ut-segment__option {
  box-shadow: var(--hr-focus-ring);
}

.ut-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.ut-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--hr-dek-sm);
  color: var(--hr-ink);
  cursor: pointer;
}

.ut-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hr-green-cta);
}

.ut-filter-panel__submit {
  margin-top: 24px;
}

/* ---------- Result bar: count + active filter chips ---------- */
.ut-results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  margin-top: 20px;
}

.ut-results__count {
  font-size: var(--hr-meta);
  color: var(--hr-graphite);
  margin: 0 6px 0 0;
}

.ut-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 14px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-mint);
  color: var(--hr-ink);
  font-size: var(--hr-meta);
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
}

.ut-chip:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

/* ---------- Course grid and card ---------- */
.ut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hr-grid-gap);
  margin-top: 16px;
}

/* Service card: hairline border, no shadow. Hover turns only the title and
   the arrow green; nothing moves and the image does not scale. */
.ut-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--hr-grid-border);
  border-radius: var(--hr-radius);
  overflow: hidden;
  background: var(--hr-paper);
  color: inherit;
  text-decoration: none;
  box-shadow: none;
}

.ut-card:focus-visible {
  outline: none;
  box-shadow: var(--hr-focus-ring);
}

.ut-card__media {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--hr-mint);
}

.ut-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ut-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 20px;
}

.ut-card__kicker {
  font-size: var(--hr-kicker-sm);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-kicker);
  text-transform: uppercase;
  color: var(--hr-graphite);
  margin: 0 0 12px;
}

.ut-card__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: 1.2;
  color: var(--hr-ink);
  margin: 0 0 10px;
  text-wrap: balance;
  transition: color var(--hr-dur-title) var(--hr-ease);
}

.ut-card__provider {
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-semibold);
  line-height: 1.4;
  color: var(--hr-ink);
  margin: 0 0 4px;
}

.ut-card__meta {
  font-size: var(--hr-meta);
  line-height: 1.45;
  color: var(--hr-graphite);
  margin: 0 0 3px;
}

.ut-card__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 19px;
}

.ut-card__arrow {
  display: flex;
  color: var(--hr-ink);
  transition: color var(--hr-dur-title) var(--hr-ease);
}

.ut-card:hover .ut-card__title,
.ut-card:hover .ut-card__arrow {
  color: var(--hr-green-brand);
}

/* Paid course banner: a full grid row after the sixth card. */
.ut-grid__ad {
  grid-column: 1 / -1;
}

.ut-grid__ad-label {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: var(--hr-graphite);
  margin: 0 0 8px;
}

.ut-grid__ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hr-radius);
}

.ut-grid__ad .ut-grid__ad-mobile {
  display: none;
}

.ut-empty {
  padding: 48px 0;
  font-size: 18px;
  margin: 0;
}

.ut-empty a,
.ut-textlink {
  color: var(--hr-green-link);
  font-weight: var(--hr-w-semibold);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.ut-empty a:hover,
.ut-textlink:hover {
  color: var(--hr-green-deep);
}

/* ---------- Pagination ---------- */
.ut-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.ut-pagination__item {
  padding: 10px 16px;
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-graphite);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

a.ut-pagination__item:hover {
  color: var(--hr-green-deep);
}

.ut-pagination__item--off {
  opacity: 0.45;
}

.ut-pagination__current {
  padding: 10px 22px;
  border-radius: var(--hr-radius-pill);
  background: var(--hr-mint);
  color: var(--hr-green-deep);
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-bold);
}

/* ---------- Category extras: articles and topic text ---------- */
.ut-extra {
  border-top: var(--hr-section-rule);
  margin-top: 64px;
  padding-top: 34px;
}

.ut-extra__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ut-extra__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-box);
  line-height: 1.14;
  margin: 0;
}

.ut-textlink--caps {
  font-size: var(--hr-kicker-xs);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
}

.ut-extra .all-content__grid {
  margin: 0;
}

/* Topic text from the admin (rich text), in reading width. */
.ut-prose {
  max-width: var(--hr-maxw-read);
  padding-top: 6px;
  font-size: var(--hr-dek);
  line-height: 1.6;
}

.ut-prose > :first-child {
  margin-top: 0;
}

.ut-prose h1,
.ut-prose h2 {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-puff-sm);
  line-height: 1.14;
  margin: 36px 0 14px;
  text-wrap: balance;
}

.ut-prose h3 {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-card);
  line-height: 1.25;
  margin: 28px 0 6px;
}

.ut-prose h4 {
  font-size: var(--hr-dek);
  font-weight: var(--hr-w-bold);
  line-height: 1.3;
  margin: 18px 0 6px;
}

.ut-prose p,
.ut-prose ul,
.ut-prose ol {
  margin: 0 0 14px;
}

.ut-prose a {
  color: var(--hr-green-link);
}

/* ============================================================
   Course page (CoursePage in the reference): "← Alla utbildningar"
   above the breadcrumb, content left, fact card with the one action
   to the right.
   ============================================================ */
.ut-course {
  padding-bottom: 88px;
}

.ut-trail {
  padding: 28px 0 48px;
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.ut-trail a {
  color: var(--hr-graphite);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.ut-trail a:hover {
  color: var(--hr-ink);
}

.ut-trail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.ut-trail__crumbs {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-trail__crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--hr-middot);
}

.ut-trail__crumbs [aria-current] {
  color: var(--hr-ink);
}

/* On the course page the trail sits right under the menu (main already
   has 30px top padding). */
.ut-course .ut-trail {
  padding-top: 0;
  padding-bottom: 36px;
}

.ut-course__layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 56px;
}

.ut-course__main {
  flex: 1 1 520px;
  min-width: 0;
}

.ut-course__aside {
  flex: 0 1 340px;
  min-width: 260px;
  position: sticky;
  top: 148px;
}

.ut-course__kicker {
  font-size: var(--hr-kicker-sm);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-kicker);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.ut-course__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: 1.1;
  margin: 0 0 14px;
  text-wrap: balance;
}

.ut-course__provider {
  font-size: 19px;
  font-weight: var(--hr-w-semibold);
  margin: 0 0 28px;
}

.ut-course__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--hr-radius);
  margin-bottom: 32px;
}

/* Description from the admin (rich text). */
.ut-course__body {
  font-size: 18px;
  line-height: 1.55;
}

.ut-course__body p,
.ut-course__body ul,
.ut-course__body ol {
  margin: 0 0 18px;
  line-height: 1.55;
}

.ut-course__body a,
.ut-points__body a {
  color: var(--hr-green-link);
}

.ut-course__cta {
  margin-top: 10px;
}

.ut-course__cta--end {
  margin-top: 36px;
}

.ut-btn--block {
  display: flex;
  width: 100%;
  height: var(--hr-h-btn);
  padding: 0 26px;
}

/* "Ur kursinnehållet" on sand, so it reads as its own block. */
.ut-points {
  margin-top: 44px;
  padding: 28px 30px 30px;
  border-radius: var(--hr-radius);
  background: var(--hr-sand);
}

.ut-points__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-box);
  line-height: 1.14;
  margin: 0 0 16px;
}

.ut-points__body p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--hr-graphite);
  margin: 0 0 16px;
}

.ut-points__body ul,
.ut-points__body ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.ut-points__body li {
  font-size: var(--hr-dek);
  line-height: 1.55;
}

.ut-points__body li::marker {
  color: var(--hr-green-link);
}

.ut-points__body li p {
  font-size: inherit;
  color: inherit;
  margin: 0;
}

/* Customer testimonial: graphite rule, no quote icon. */
.ut-quote {
  margin: 36px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--hr-graphite);
}

.ut-quote__text {
  font-family: var(--hr-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--hr-h-card);
  margin: 0;
}

.ut-quote__cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 14px;
  color: var(--hr-graphite);
}

/* Film and pictures (admin), when a course has them. */
.ut-course__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.ut-course__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--hr-radius);
}

.ut-course__video {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border-radius: var(--hr-radius);
  overflow: hidden;
  background: var(--hr-mint);
}

.ut-course__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ut-course__more {
  margin: 24px 0 0;
  font-size: 14px;
}

/* Fact card */
.ut-facts {
  padding: 26px 28px 28px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius);
  background: var(--hr-paper);
}

.ut-facts__kicker {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: var(--hr-graphite);
  margin: 0 0 18px;
}

.ut-facts__list {
  margin: 0 0 24px;
}

.ut-facts__list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.ut-facts__list > div + div {
  border-top: var(--hr-row-divider);
}

.ut-facts__list dt {
  font-size: var(--hr-meta-sm);
  color: var(--hr-graphite);
}

.ut-facts__list dd {
  margin: 0;
  font-size: var(--hr-meta-sm);
  font-weight: var(--hr-w-semibold);
  text-align: right;
}

.ut-facts__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: var(--hr-row-divider);
  font-size: 14px;
}

.ut-course__admin {
  margin: 14px 0 0;
  font-size: var(--hr-meta-sm);
}

.ut-course__admin a {
  color: var(--hr-graphite);
}

/* ============================================================
   Provider page (ProviderPage in the reference): logo plate, name,
   bio and links, then the provider's courses in the card grid.
   ============================================================ */
.ut-provider__head {
  max-width: var(--hr-maxw-read);
}

.ut-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 64px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: var(--hr-card-border);
  border-radius: var(--hr-radius-avatar);
  background: var(--hr-paper);
}

.ut-logo-plate img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 228px;
  object-fit: contain;
}

.ut-logo-plate--initials {
  width: 52px;
  height: 52px;
  padding: 0;
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-dek-sm);
  color: var(--hr-green-link);
}

.ut-provider__title {
  font-family: var(--hr-font-display);
  font-weight: var(--hr-w-bold);
  font-size: var(--hr-h-page);
  line-height: 1.1;
  margin: 0 0 20px;
  text-wrap: balance;
}

.ut-provider__bio {
  font-size: 18px;
  line-height: 1.55;
}

.ut-provider__bio p,
.ut-provider__bio ul {
  margin: 0 0 18px;
  line-height: 1.55;
}

.ut-provider__bio > :last-child {
  margin-bottom: 0;
}

.ut-provider__bio a {
  color: var(--hr-green-link);
}

/* Secondary links without a button surface (Hemsida, e-post). */
.ut-iconlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
}

.ut-iconlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--hr-dek-sm);
  font-weight: var(--hr-w-semibold);
  color: var(--hr-green-link);
  text-decoration: none;
  transition: color var(--hr-dur-color) ease;
}

.ut-iconlink:hover {
  color: var(--hr-green-deep);
}

.ut-iconlink svg {
  flex: none;
}

.ut-provider__contact {
  margin: 16px 0 0;
  font-size: var(--hr-meta);
  color: var(--hr-graphite);
}

.ut-provider__contact a {
  color: inherit;
}

.ut-provider__courses {
  border-top: var(--hr-section-rule);
  margin-top: 44px;
  padding: 28px 0 88px;
}

.ut-provider__count {
  font-size: var(--hr-kicker-xs);
  font-weight: var(--hr-w-bold);
  letter-spacing: var(--hr-track-wide);
  text-transform: uppercase;
  color: var(--hr-graphite);
  margin: 0 0 20px;
}

.ut-provider__courses .ut-grid {
  margin-top: 0;
}

/* ---------- Site typography overrides ----------
   pages.css applies the homepage typography to every .page-home page:
   .page-home h1 (28px), .page-home main h2/h3:not(.card-title) (20px),
   h2/h3 margins with !important, and p line-height 1.6. Out-specify it
   (and, for the margins, out-important it) for this page's own elements. */
body.page-home .ut-page h1,
body.page-home .ut-page h2,
body.page-home .ut-page h3 {
  letter-spacing: normal;
}

body.page-home .ut-page h1.ut-hero__title {
  font-size: var(--hr-h-page);
  line-height: 1.1;
  margin: 0 0 18px;
}

body.page-home .ut-page h2.ut-filter-panel__title {
  font-size: var(--hr-h-card);
  line-height: var(--hr-lh-card);
  font-weight: var(--hr-w-bold);
  margin: 0 !important;
}

body.page-home .ut-page h2.ut-extra__title {
  font-size: var(--hr-h-box);
  line-height: 1.14;
  font-weight: var(--hr-w-bold);
  margin: 0 !important;
}

body.page-home .ut-page h3.ut-card__title {
  font-size: var(--hr-h-card);
  line-height: 1.2;
  font-weight: var(--hr-w-bold);
  margin: 0 0 10px !important;
}

body.page-home .ut-page .ut-prose h1,
body.page-home .ut-page .ut-prose h2 {
  font-size: var(--hr-h-puff-sm);
  line-height: 1.14;
  font-weight: var(--hr-w-bold);
  margin: 36px 0 14px !important;
}

body.page-home .ut-page .ut-prose h3 {
  font-size: var(--hr-h-card);
  line-height: 1.25;
  font-weight: var(--hr-w-bold);
  margin: 28px 0 6px !important;
}

body.page-home .ut-page .ut-prose > :first-child {
  margin-top: 0 !important;
}

body.page-home .ut-page .ut-hero__kicker,
body.page-home .ut-page .ut-card__kicker,
body.page-home .ut-page .ut-filter-label,
body.page-home .ut-page .ut-grid__ad-label {
  line-height: var(--hr-lh-title);
}

body.page-home .ut-page .ut-hero__lead,
body.page-home .ut-page .ut-card__meta {
  line-height: 1.45;
}

body.page-home .ut-page .ut-card__provider {
  line-height: 1.4;
}

body.page-home .ut-page .ut-results__count,
body.page-home .ut-page .ut-empty {
  line-height: var(--hr-lh-body);
}

body.page-home .ut-page h1.ut-course__title {
  font-size: var(--hr-h-page);
  line-height: 1.1;
  margin: 0 0 14px;
}

body.page-home .ut-page h2.ut-points__title {
  font-size: var(--hr-h-box);
  line-height: 1.14;
  font-weight: var(--hr-w-bold);
  margin: 0 0 16px !important;
}

body.page-home .ut-page .ut-course__body h2,
body.page-home .ut-page .ut-course__body h3 {
  font-size: var(--hr-h-card);
  line-height: 1.25;
  font-weight: var(--hr-w-bold);
  margin: 28px 0 10px !important;
}

body.page-home .ut-page .ut-course__kicker,
body.page-home .ut-page .ut-facts__kicker {
  line-height: var(--hr-lh-title);
}

body.page-home .ut-page .ut-course__provider {
  line-height: 1.45;
}

body.page-home .ut-page .ut-quote__text {
  line-height: 1.4;
}

body.page-home .ut-page .ut-course__more,
body.page-home .ut-page .ut-course__admin,
body.page-home .ut-page .ut-provider__contact {
  line-height: var(--hr-lh-body);
}

body.page-home .ut-page h1.ut-provider__title {
  font-size: var(--hr-h-page);
  line-height: 1.1;
  margin: 0 0 20px;
}

body.page-home .ut-page .ut-provider__count {
  line-height: var(--hr-lh-title);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ut-hero__inner {
    padding: 0 16px;
  }

  body.page-home .ut-page h1.ut-hero__title,
  body.page-home .ut-page h1.ut-course__title,
  body.page-home .ut-page h1.ut-provider__title {
    font-size: 34px;
  }

  .ut-trail {
    padding: 20px 0 32px;
  }

  .ut-course .ut-trail {
    padding-top: 0;
    padding-bottom: 28px;
  }

  /* Stacked: the fact card follows the content and no longer sticks. */
  .ut-course__aside {
    position: static;
    flex-basis: 100%;
  }

  .ut-points {
    padding: 24px 20px;
  }

  .ut-hero__lead {
    font-size: 17px;
  }

  .ut-toolbar {
    margin-top: 32px;
  }

  .ut-filter-panel__head,
  .ut-filter-panel__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ut-grid__ad .ut-grid__ad-desktop {
    display: none;
  }

  .ut-grid__ad .ut-grid__ad-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  .ut-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ut-btn {
    flex: 1 1 auto;
  }

  .ut-course__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .ut-quote__text {
    font-size: 18px;
  }
}
