.slankekoden-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  width: min(72rem, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}
.slankekoden-story {
  display: flex;
  flex-direction: column;
  padding: clamp(.75rem, 1.8vw, 1.25rem);
  overflow: hidden;
  border-radius: 1.25rem;
  background: #edf3eb;
  color: inherit;
  text-decoration: none;
}
.slankekoden-story + .slankekoden-story { background: #f7eee3; }
.slankekoden-story img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; border-radius: .8rem; }
.slankekoden-story-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 1rem .45rem .45rem; }
.slankekoden-story h2 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.12; }
.slankekoden-story-more { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.slankekoden-story:focus-visible { outline: 3px solid #17352c; outline-offset: 4px; }


.slankekoden-story:nth-child(3) { background: #e9f0e7; }
.slankekoden-story:nth-child(4) { background: #f6eee4; }
.slankekoden-story:first-child img,
.story-expandable img { object-position: center 15%; }
.story-expandable > summary { display: block; cursor: pointer; }
.story-expandable > summary::-webkit-details-marker { display: none; }
.story-expandable > summary:focus-visible { outline: 3px solid #17352c; outline-offset: -3px; }
.story-expanded { margin: .7rem .45rem; }

.slankekoden-stories {
  grid-template-columns: repeat(4, minmax(13rem, 1fr));
  align-items: stretch;
  gap: .85rem;
  overflow-x: auto;
  padding: .3rem .3rem .8rem;
}
.slankekoden-story { padding: .65rem; border-radius: .9rem; }
.slankekoden-story-copy { padding: .65rem .25rem .25rem; }
.slankekoden-story h2 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.slankekoden-story p { font-size: .9rem; }

.slankekoden-story img {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
}
.slankekoden-story-copy { gap: .6rem; }
.slankekoden-story-copy > p { margin: 0; }
.slankekoden-story h2 { text-align: left; }
.slankekoden-story-more { padding-top: .25rem; }
.story-expandable > summary {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.slankekoden-stories:has(.story-expandable[open]) {
  align-items: start;
}

.formula-note {
  max-width: 52ch;
  margin: 1rem auto 0;
  padding-inline: .75rem;
  text-align: center;
  line-height: 1.6;
}

#kurs .course-overview-grid {
  row-gap: .5rem;
}
#kurs .course-overview-grid > article {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 7;
  margin-bottom: .8rem;
  min-width: 0;
}
#kurs .course-overview-grid > article > :first-child {
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}
#kurs .course-overview-grid > article > :is(.kicker, h4, p, .course-booking) {
  margin-block: 0;
}
#kurs .course-overview-grid .course-card-options {
  margin: 0;
}
#kurs .course-overview-grid .course-card-options details { margin: 0; }

#kurs .course-overview-grid > article:last-child {
  grid-column: auto;
  width: auto;
  justify-self: stretch;
}

#kurs .course-overview-grid > article {
  background: #eaf1e7;
  border-color: #d5e3d3;
}
#kurs .course-card-options summary.course-read-label,
#kurs .course-overview-grid > article > .course-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: min(100%, 11.5rem);
  min-height: 44px;
  box-sizing: border-box;
  margin-inline: auto;
  padding: .6rem .85rem;
  background: #f58b38;
  color: #222a20;
  border-radius: 8px;
  font-size: .92rem;
  text-align: center;
}
#kurs .course-card-options summary.course-read-label:hover,
#kurs .course-overview-grid > article > .course-booking:hover { background: #ff9e54; }
#kurs .course-card-prices h5 { margin: .65rem 0 .25rem; font-size: .92rem; }
#kurs .course-overview-grid > article > .course-booking { justify-self: center; }
#kurs .course-card-options summary.course-read-label { list-style: none; }
#kurs .course-card-options summary.course-read-label::-webkit-details-marker { display: none; }
