.cl-spoed-body {
  --cl-spoed-blue: #306edc;
  --cl-spoed-pink: #ff3c74;
  --cl-spoed-pale-blue: #e9f3fa;
  --cl-spoed-text: #666666;
  --cl-spoed-black: #000000;
  --cl-spoed-white: #ffffff;
  --cl-spoed-placeholder: #d9d9d9;
}

.cl-spoed-page,
.cl-spoed-page *,
.cl-spoed-page *::before,
.cl-spoed-page *::after {
  box-sizing: border-box;
}

.cl-spoed-body {
  /* Typography belongs to the content below, preserving the host site's chrome. */
  margin: 0 auto;
}

.cl-spoed-body--archive {
  background: var(--cl-spoed-pale-blue);
}

.cl-spoed-body--single {
  background: var(--cl-spoed-white);
}

.cl-spoed-page {
  width: 100%;
  overflow-wrap: anywhere;
}

.cl-spoed-page :where(h1, h2, p, figure) {
  margin: 0;
}

.cl-spoed-page img {
  display: block;
  max-width: 100%;
}

.cl-spoed-page .container {
  width: min(calc(100% - 160px), 1300px);
  max-width: 1300px;
  padding-inline: 0;
  margin-inline: auto;
}

.cl-spoed-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -10px;
}

.cl-spoed-page [class^="col-"],
.cl-spoed-page [class*=" col-"] {
  min-width: 0;
  padding-inline: 10px;
}

.cl-spoed-page .col-4 {
  width: 33.333333%;
}

.cl-spoed-page .col-6 {
  width: 50%;
}

.cl-spoed-page .col-12 {
  width: 100%;
}

.cl-spoed-inner {
  width: min(100%, 1050px);
  margin-inline: auto;
}

.cl-spoed-hero {
  position: relative;
  z-index: 2;
  overflow: visible;
  border-bottom-right-radius: 1000px;
  background: var(--cl-spoed-blue);
  color: var(--cl-spoed-white);
}

.cl-spoed-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 503fr) minmax(0, 483fr);
  column-gap: 64px;
  align-items: start;
  padding-top: 101px;
}

.cl-spoed-hero__copy {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 24px;
}

.cl-spoed-hero__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cl-spoed-hero__date,
.cl-spoed-hero__excerpt,
.cl-spoed-hero__author,
.cl-spoed-card__date,
.cl-spoed-card__excerpt,
.cl-spoed-copy p {
  font-weight: 400;
}

.cl-spoed-hero__date,
.cl-spoed-hero__excerpt,
.cl-spoed-hero__author {
  font-size: 18px;
  line-height: 1.5;
}

.cl-spoed-hero__story {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cl-spoed-hero__title {
  width: 100%;
  color: inherit;
  font-family: "europa", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.125;
}

.cl-spoed-hero__excerpt {
  width: 100%;
}

.cl-spoed-hero__author {
  margin-top: 49px;
  opacity: 0.7;
}

.cl-spoed-hero--single .cl-spoed-hero__author {
  margin-top: 76px;
}

.cl-spoed-hero__media {
  width: 100%;
  margin-bottom: -49px;
  aspect-ratio: 483 / 445;
  border-radius: 18px;
  background: var(--cl-spoed-placeholder);
  overflow: hidden;
}

.cl-spoed-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cl-spoed-black);
  font-family: "europa", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.cl-spoed-link--light {
  color: var(--cl-spoed-white);
}

.cl-spoed-link img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.cl-spoed-link:hover span,
.cl-spoed-link:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cl-spoed-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.cl-spoed-archive {
  position: relative;
  z-index: 1;
  padding-block: 100px;
  background: var(--cl-spoed-pale-blue);
}

.cl-spoed-archive__grid,
.cl-spoed-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
}

.cl-spoed-archive__grid {
  row-gap: 40px;
}

.cl-spoed-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cl-spoed-card__media {
  width: 100%;
  aspect-ratio: 483 / 445;
  border-radius: 18px;
  background: var(--cl-spoed-placeholder);
  overflow: hidden;
}

.cl-spoed-card__info {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 16px;
}

.cl-spoed-card__body {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.cl-spoed-card__date,
.cl-spoed-card__excerpt {
  color: var(--cl-spoed-text);
  font-size: 18px;
  line-height: 1.5;
}

.cl-spoed-card__date {
  display: block;
}

.cl-spoed-card__title,
.cl-spoed-copy h2 {
  color: var(--cl-spoed-black);
  font-family: "europa", Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.cl-spoed-card__title span,
.cl-spoed-copy h2 span {
  color: var(--cl-spoed-pink);
}

.cl-spoed-article {
  position: relative;
  z-index: 1;
  padding-block: 100px;
  background: var(--cl-spoed-white);
}

.cl-spoed-article__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cl-spoed-copy h2 {
  margin-bottom: 31px;
}

.cl-spoed-copy p {
  color: var(--cl-spoed-text);
  font-size: 18px;
  line-height: 1.5;
}

.cl-spoed-copy p + p {
  margin-top: 27px;
}

.cl-spoed-article__media {
  width: 100%;
}

.cl-spoed-article__placeholder {
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: 8px;
  background: var(--cl-spoed-placeholder);
}

.cl-spoed-related {
  padding-block: 100px 150px;
  background: var(--cl-spoed-pale-blue);
}

.cl-spoed-related__grid {
  row-gap: 56px;
}

@media (min-width: 1201px) and (max-width: 1500px) {
  .cl-spoed-page .container {
    width: min(calc(100% - 160px), 1300px);
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .cl-spoed-page .container {
    width: min(calc(100% - 120px), 1300px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .cl-spoed-page .container {
    width: min(calc(100% - 80px), 1300px);
  }
}

@media (max-width: 1024px) {
  .cl-spoed-hero__title {
    font-size: clamp(40px, 5vw, 48px);
  }

  .cl-spoed-archive,
  .cl-spoed-article {
    padding-block: 80px;
  }

  .cl-spoed-archive__grid,
  .cl-spoed-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cl-spoed-related {
    padding-block: 80px 110px;
  }
}

@media (max-width: 767px) {
  .cl-spoed-page .container {
    width: min(calc(100% - 40px), 1300px);
  }

  .cl-spoed-page .row {
    margin-inline: 0;
  }

  .cl-spoed-page [class^="col-"],
  .cl-spoed-page [class*=" col-"] {
    padding-inline: 0;
  }

  .cl-spoed-hero {
    min-height: 0;
    border-bottom-right-radius: 220px;
  }

  .cl-spoed-hero__inner {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-block: 64px 80px;
  }

  .cl-spoed-hero__copy {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .cl-spoed-hero__title {
    font-size: clamp(38px, 11vw, 48px);
  }

  .cl-spoed-hero__date,
  .cl-spoed-hero__excerpt,
  .cl-spoed-hero__author {
    font-size: 17px;
  }

  .cl-spoed-hero__author,
  .cl-spoed-hero--single .cl-spoed-hero__author {
    margin-top: 32px;
  }

  .cl-spoed-hero__media {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 0;
  }

  .cl-spoed-archive,
  .cl-spoed-article {
    padding-block: 72px;
  }

  .cl-spoed-archive__grid,
  .cl-spoed-related__grid {
    grid-template-columns: 1fr;
    row-gap: 56px;
  }

  .cl-spoed-copy h2 {
    margin-bottom: 24px;
  }

  .cl-spoed-copy p,
  .cl-spoed-card__date,
  .cl-spoed-card__excerpt {
    font-size: 17px;
  }

  .cl-spoed-copy p + p {
    margin-top: 22px;
  }

  .cl-spoed-article__content {
    gap: 32px;
  }

  .cl-spoed-related {
    padding-block: 72px 100px;
  }
}

@media (max-width: 390px) {
  .cl-spoed-hero__title {
    font-size: 36px;
  }

  .cl-spoed-card__title,
  .cl-spoed-copy h2 {
    font-size: 22px;
  }
}

/* Only the blog content is scoped here; existing site chrome stays theme-owned. */
.cl-spoed-page { font: 400 18px/1.5 "europa", Arial, sans-serif; color: #666; }
.cl-spoed-page .row { width: auto; }
.cl-spoed-page .col-12 { flex: 0 0 100%; max-width: 100%; }
.cl-spoed-page :where(h1, h2, h3, h4, h5, h6) { text-transform: none; letter-spacing: normal; }
.cl-spoed-page .cl-spoed-media__image { width: 100%; height: 100%; object-fit: cover; }
.cl-spoed-card > .cl-spoed-link { margin-top: auto; }
.cl-spoed-hero__author { padding-bottom: 1px; }
.cl-spoed-entry-content { display: block; }
.cl-spoed-entry-content > * + * { margin-top: 27px; }
.cl-spoed-entry-content :where(h2, h3, h4, h5, h6) { color: #000; font-family: "europa", Arial, sans-serif; font-weight: 700; line-height: 1.2; }
.cl-spoed-entry-content h2 { font-size: 24px; line-height: 1.1; margin-block: 40px 31px; }
.cl-spoed-entry-content h2 span[aria-hidden="true"] { color: #ff3c74; }
.cl-spoed-entry-content h3 { font-size: 22px; }
.cl-spoed-entry-content > :first-child { margin-top: 0; }
.cl-spoed-entry-content :where(p, li) { font-size: 18px; line-height: 1.5; }
.cl-spoed-entry-content ul { list-style: disc; padding-inline-start: 1.5em; }
.cl-spoed-entry-content ol { list-style: decimal; padding-inline-start: 1.5em; }
.cl-spoed-entry-content li + li { margin-top: 0.5em; }
.cl-spoed-entry-content .wp-block-gallery { list-style: none; padding-inline-start: 0; }
.cl-spoed-entry-content a { color: #235bbd; text-decoration: underline; text-underline-offset: 3px; }
.cl-spoed-entry-content a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cl-spoed-entry-content :where(figure, .wp-block-image) { max-width: 100%; margin-block: 40px; }
.cl-spoed-entry-content :where(img, video, iframe) { max-width: 100%; }
.cl-spoed-entry-content img { height: auto; border-radius: 8px; }
.cl-spoed-entry-content :where(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; }
.cl-spoed-entry-content .wp-block-table { overflow-x: auto; }
.cl-spoed-entry-content table { width: 100%; border-collapse: collapse; }
.cl-spoed-entry-content :where(td, th) { border: 1px solid #ccc; padding: 12px; }
.cl-spoed-entry-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.cl-spoed-entry-content blockquote { margin-inline: 0; padding-left: 24px; border-left: 4px solid #306edc; }
.cl-spoed-entry-content :where(input, textarea, select, button) { max-width: 100%; font: inherit; }
.cl-spoed-empty-heading { padding-block: 80px; background: #306edc; color: #fff; }
.cl-spoed-empty-heading h1 { color: inherit; }
.cl-spoed-pagination { margin-top: 64px; }
.cl-spoed-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; list-style: none; }
.cl-spoed-pagination :where(a, span) { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 4px; }
.cl-spoed-pagination a { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.cl-spoed-pagination :where(.current, a:hover) { background: #306edc; color: #fff; }
.cl-spoed-pagination a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
@media (max-width: 1024px) and (min-width: 768px) {
  .cl-spoed-hero__inner { column-gap: 32px; }
}
@media (max-width: 767px) {
  .cl-spoed-entry-content :where(p, li) { font-size: 17px; }
  .cl-spoed-entry-content > * + * { margin-top: 22px; }
  .cl-spoed-entry-content h2 { margin-block: 32px 24px; }
  .cl-spoed-entry-content :where(figure, .wp-block-image) { margin-block: 32px; }
  .cl-spoed-entry-content > :first-child { margin-top: 0; }
}
@media (max-width: 390px) {
  .cl-spoed-entry-content h2 { font-size: 22px; }
}
/* The blog supplies its own blue curve; the host's page decoration is separate. */
.cl-spoed-body > .curve { display: none; }
.cl-spoed-body > header { background: var(--cl-spoed-blue); }
.cl-spoed-body > .main { padding-top: 0; border-top: 7.7rem solid var(--cl-spoed-blue); }
.cl-spoed-page .cl-spoed-hero { top: auto; left: auto; right: auto; }
.cl-spoed-page .cl-spoed-link { color: var(--cl-spoed-black); }
.cl-spoed-page .cl-spoed-link--light { color: var(--cl-spoed-white); }
/* Keep the host's fixed navigation below WordPress's authenticated toolbar. */
.cl-spoed-body.admin-bar > header { top: 32px; }
@media (max-width: 782px) {
  .cl-spoed-body.admin-bar > header { top: 46px; }
}

/* Completed archive annotations, adapted to the existing Spoedkoerier design. */
.cl-spoed-body--archive .cl-spoed-card__media { display: block; }
.cl-spoed-body--archive .cl-spoed-card__title a { color: inherit; font: inherit; text-decoration: none; }
.cl-spoed-body--archive :is(.cl-spoed-card__media, .cl-spoed-card__title a):focus-visible { outline: 2px solid var(--cl-spoed-blue); outline-offset: 4px; }
.cl-spoed-body--archive .cl-spoed-pagination a:hover { color: #fff; }
@media (max-width: 1024px) and (min-width: 768px) {
  .cl-spoed-body--archive .cl-spoed-hero__title { font-size: 6rem; }
}
@media (max-width: 767px) {
  .cl-spoed-body--archive .cl-spoed-hero__title { font-size: 4rem; }
}

/* Desktop/laptop excerpt cap; tablet and mobile wrapping stays unchanged. */
@media (min-width: 1025px) {
  .cl-spoed-body--archive :is(.cl-spoed-hero__excerpt, .cl-spoed-card__excerpt) {
    min-height: 3.75em;
    max-height: none;
    overflow: visible;
  }
}

/* Longer excerpt text only on desktop/laptop; preserve compact text below. */
.cl-spoed-excerpt--desktop { display: none; }
@media (min-width: 1025px) {
 .cl-spoed-body--archive .cl-spoed-excerpt--compact { display: none; }
 .cl-spoed-body--archive .cl-spoed-excerpt--desktop { display: inline; }
}

/* Featured article links inherit the existing hero design. */
.cl-spoed-body--archive .cl-spoed-hero__title a { color: inherit; font: inherit; text-decoration: none; }
.cl-spoed-body--archive a.cl-spoed-hero__media { display: block; }
.cl-spoed-body--archive :is(.cl-spoed-hero__title a, a.cl-spoed-hero__media):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Desktop featured summary: natural full lines and a closer reading link. */
@media (min-width: 1025px) {
 .cl-spoed-body--archive .cl-spoed-hero__excerpt { min-height: 0; }
 .cl-spoed-body--archive .cl-spoed-hero__main { gap: 8px; }
}

/* Tablet blog and single-post titles: approved 48px size. */
@media (min-width: 768px) and (max-width: 1024px) {
 .cl-spoed-body .cl-spoed-hero__title { font-size: 48px; }
}

/* Match the host Home container and its 15px horizontal gutters. */
.cl-spoed-page .container { width: 100%; max-width: none; padding-inline: 15px; }
.cl-spoed-page .cl-spoed-inner { width: 100%; }
@media (min-width: 576px) { .cl-spoed-page .container { max-width: 540px; } }
@media (min-width: 768px) { .cl-spoed-page .container { max-width: 720px; } }
@media (min-width: 992px) { .cl-spoed-page .container { max-width: 960px; } }
@media (min-width: 1199.98px) { .cl-spoed-page .container { max-width: 144rem; } }

/* Grid images follow their existing width without vertical elongation. */
.cl-spoed-page .cl-spoed-card__media { height: auto; aspect-ratio: 1 / 1; }

/* Shorter Blog and related-post grid images on desktop and laptop. */
@media (min-width: 1025px) {
 .cl-spoed-body--archive .cl-spoed-card__media,
 .cl-spoed-body--single .cl-spoed-related__grid .cl-spoed-card__media { aspect-ratio: 4 / 3; }
}
