.mv-related-links a {
    display: grid;
    gap: 0.28rem;
}

.mv-related-links a strong {
    display: block;
    color: var(--mv-text);
    font-size: 1rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.mv-related-links a span {
    display: block;
    color: var(--mv-muted);
    font-size: 0.88rem;
    font-weight: 450;
    line-height: 1.35;
}

.mv-related-links a:hover strong {
    color: var(--mv-accent);
}

.mv-article-toc a {
    color: inherit;
    text-decoration: none;
}

.mv-article-toc a:hover {
    color: var(--mv-accent);
}

.mv-source-card {
    max-width: none;
}

.mv-source-card h2 {
    margin: 0.45rem 0 0;
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.mv-source-card .mv-source-date {
    margin: 0.45rem 0 0;
    color: var(--mv-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.mv-source-links {
    display: grid;
    gap: 0.65rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.mv-source-links li {
    margin: 0;
}

.mv-source-links a {
    color: var(--mv-text);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

.mv-source-links a:hover {
    color: var(--mv-accent);
}

.mv-prose h1,
.mv-prose h2,
.mv-prose h3,
.mv-prose h4 {
    scroll-margin-top: 6rem;
}

/* Reusable partner CTA component. Configure per page via partner_ctas frontmatter. */
.mv-partner-cta {
    margin: 2rem 0 2.35rem;
    padding: clamp(1.2rem, 3vw, 1.75rem);
    border: 1px solid var(--mv-partner-border, #d7c3b6);
    border-radius: 24px;
    background:
        linear-gradient(135deg, var(--mv-partner-bg, #fffaf7) 0%, #fff 62%, color-mix(in srgb, var(--mv-partner-bg, #fffaf7) 74%, #ead8cd) 100%);
    box-shadow: 0 22px 58px rgba(44, 30, 24, 0.13);
}

.mv-partner-cta__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.15rem;
    margin: 0 0 0.45rem;
}

.mv-partner-cta__logo {
    display: block;
    width: min(285px, 100%);
    height: auto;
    margin: 0;
}

.mv-partner-cta__label {
    flex: 1 1 220px;
    min-width: 0;
    color: var(--mv-partner-accent, #7c3f2c);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.mv-partner-cta__title {
    max-width: 760px;
    margin: 0 0 0.7rem;
    color: #171927;
    font-size: clamp(1.8rem, 4.6vw, 2.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.mv-partner-cta__text {
    max-width: 720px;
    margin: 0 0 1.25rem;
    color: #424756;
    font-size: 1.06rem;
    line-height: 1.58;
}

.mv-partner-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 1rem 1.55rem;
    border-radius: 16px;
    background: var(--mv-partner-button, #b94716);
    color: var(--mv-partner-button-text, #fff) !important;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 16px 30px color-mix(in srgb, var(--mv-partner-button, #b94716) 28%, transparent);
}

.mv-partner-cta__button:hover {
    color: var(--mv-partner-button-text, #fff) !important;
    filter: brightness(0.96);
    text-decoration: none;
}

@media (max-width: 560px) {
    .mv-partner-cta__label { text-align: left; }

    .mv-partner-cta__button {
        width: 100%;
    }
}

/* mv:mobile-article-content-first-v2:start */
@media (max-width: 760px) {
  /*
   * Mobile content order for article and hub pages.
   *
   * Some MiniVibe pages render secondary rails (“På sidan”, “Fortsätt läsa”)
   * before the main article in DOM order. On desktop that can work as a rail,
   * but on mobile the visitor should see the actual page title/content first.
   *
   * v2 intentionally targets the real structural pattern instead of a single
   * class name: a container inside <main> with both content/article and
   * aside/nav/rail children. Desktop is untouched.
   */
  main :where(div, section):has(
    > :where(article, .mv-article-main, .mv-article-content, .mv-article-body, .mv-page-main, .mv-page-content, .mv-hub-main, .mv-hub-content, .mv-prose, .mv-content)
  ):has(
    > :where(aside, nav, .mv-article-sidebar, .mv-article-aside, .mv-article-rail, .mv-page-sidebar, .mv-hub-sidebar, .mv-toc, .mv-toc-rail, .mv-related, .mv-related-rail, .mv-continue-reading)
  ) {
    display: flex !important;
    flex-direction: column !important;
  }

  main :where(div, section):has(
    > :where(article, .mv-article-main, .mv-article-content, .mv-article-body, .mv-page-main, .mv-page-content, .mv-hub-main, .mv-hub-content, .mv-prose, .mv-content)
  ):has(
    > :where(aside, nav, .mv-article-sidebar, .mv-article-aside, .mv-article-rail, .mv-page-sidebar, .mv-hub-sidebar, .mv-toc, .mv-toc-rail, .mv-related, .mv-related-rail, .mv-continue-reading)
  ) > :where(article, .mv-article-main, .mv-article-content, .mv-article-body, .mv-page-main, .mv-page-content, .mv-hub-main, .mv-hub-content, .mv-prose, .mv-content) {
    order: 1 !important;
  }

  main :where(div, section):has(
    > :where(article, .mv-article-main, .mv-article-content, .mv-article-body, .mv-page-main, .mv-page-content, .mv-hub-main, .mv-hub-content, .mv-prose, .mv-content)
  ):has(
    > :where(aside, nav, .mv-article-sidebar, .mv-article-aside, .mv-article-rail, .mv-page-sidebar, .mv-hub-sidebar, .mv-toc, .mv-toc-rail, .mv-related, .mv-related-rail, .mv-continue-reading)
  ) > :where(aside, nav, .mv-article-sidebar, .mv-article-aside, .mv-article-rail, .mv-page-sidebar, .mv-hub-sidebar, .mv-toc, .mv-toc-rail, .mv-related, .mv-related-rail, .mv-continue-reading) {
    order: 2 !important;
  }
}
/* mv:mobile-article-content-first-v2:end */
