/* Blog typography and links, including rich-text content. */
.mp-article .mp-article-body,
.mp-article .mp-article-body p,
.mp-article .mp-article-body li,
.mp-article .mp-article-body blockquote {
    text-align: justify;
}

.mp-article h1,
.mp-article h2,
.mp-article h3,
.mp-article h4,
.mp-article h5,
.mp-article h6,
.mp-article button,
.mp-article input,
.mp-article textarea,
.mp-article select,
.mp-article cite {
    font-family: 'DIN', sans-serif;
}

.mp-article a,
.mp-article a:link,
.mp-article a:visited,
.mp-article a:hover,
.mp-article a:focus,
.mp-article a:active {
    color: var(--red);
    text-decoration: none;
}

.mp-article a h2,
.mp-article a h3 {
    color: inherit;
}

/* Structured, JSON-driven article components. */
.mp-structured-section,
.mp-stat-section,
.mp-related {
    margin-bottom: 56px;
    margin-top: 56px;
}

.mp-section-intro {
    color: #5f5d5a;
    margin: -6px 0 24px;
    max-width: 720px;
}

.mp-image-text-media { position: relative; }
.mp-image-text-media:before {
    background: var(--red);
    border-radius: 12px;
    content: "";
    inset: 14px -14px -14px 14px;
    opacity: .12;
    position: absolute;
}
.mp-image-text-media img { position: relative; width: 100%; }
.mp-image-text.mp-image-right .mp-image-text-media { order: 2; }
.mp-image-text.mp-image-right img { order: initial; }

.mp-numbered-steps { display: grid; gap: 18px; }
.mp-numbered-steps li {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(46,46,48,.05);
    margin: 0;
    padding: 22px 24px;
}
.mp-numbered-steps li:before {
    box-shadow: 0 6px 16px rgba(217,37,28,.22);
    font-size: 18px;
}
.mp-step-copy h3 { color: var(--ink); margin: 1px 0 6px; }
.mp-step-copy p { color: #555; margin: 0; }
.mp-step-copy > :last-child { margin-bottom: 0; }

.mp-card-grid-2 { grid-template-columns: repeat(2,1fr); }
.mp-card-grid-3 { grid-template-columns: repeat(3,1fr); }
.mp-card-grid-4 { grid-template-columns: repeat(4,1fr); }
.mp-card {
    box-shadow: 0 8px 30px rgba(46,46,48,.055);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.mp-card:hover {
    border-color: #f2b7b3;
    box-shadow: 0 14px 34px rgba(46,46,48,.11);
    transform: translateY(-3px);
}
.mp-card img {
    border-radius: 8px;
    margin: -8px -8px 20px;
    max-width: calc(100% + 16px);
    width: calc(100% + 16px);
}
.mp-card-marker {
    background: var(--red);
    border-radius: 999px;
    display: block;
    height: 4px;
    margin-bottom: 18px;
    width: 36px;
}
.mp-card h3 { color: var(--ink); line-height: 1.25; margin: 0 0 10px; }
.mp-card p { color: #5f5d5a; font-size: 16px; line-height: 1.55; margin: 0; }
.mp-card-link-label {
    color: var(--red-dark);
    font-size: 14px;
    font-weight: 800;
    margin-top: auto;
    padding-top: 18px;
}

.mp-check-list,
.mp-bullet-list,
.mp-avoid-list { display: grid; gap: 12px; }
.mp-check-list li,
.mp-bullet-list li,
.mp-avoid-list li {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 34px 1fr;
    margin: 0;
    padding: 17px 20px;
    position: relative;
}
.mp-check-list li:before,
.mp-bullet-list li:before,
.mp-avoid-list li:before {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    left: auto;
    position: static;
    top: auto;
    width: 24px;
}
.mp-check-list li:before { background: #e5f5ed; color: #137a4c; content: "\2713"; }
.mp-bullet-list li:before { background: #fdecea; color: var(--red); content: "\2022"; }
.mp-avoid-list li:before { background: #fff0e6; color: #b85c16; content: "!"; }
.mp-check-list strong,
.mp-bullet-list strong,
.mp-avoid-list strong { display: block; line-height: 1.35; }
.mp-check-list span,
.mp-bullet-list span,
.mp-avoid-list span {
    color: #64615e;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 3px;
}

.mp-box {
    align-items: flex-start;
    border: 1px solid;
    border-left-width: 1px;
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: 46px 1fr;
    padding: 28px 30px;
}
.mp-box-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: 22px;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 46px;
}
.mp-box-icon:before { content: "i"; }
.mp-box h2 { font-size: 24px; margin: 1px 0 8px; }
.mp-box p { margin: 0; }
.mp-box-info { border-color: #b7d5ef; }
.mp-box-info .mp-box-icon { background: #d9ebfa; color: #2878c8; }
.mp-box-warning { border-color: #edcf91; }
.mp-box-warning .mp-box-icon { background: #ffe8b8; color: #9b5b00; }
.mp-box-warning .mp-box-icon:before { content: "!"; }
.mp-box-highlight { border-color: #f2b7b3; }
.mp-box-highlight .mp-box-icon { background: #fbd5d1; color: var(--red-dark); }
.mp-box-highlight .mp-box-icon:before { content: "+"; }

.mp-quote {
    background: #2e2e30;
    border: 0;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    padding: 40px 44px;
    position: relative;
}
.mp-quote:after {
    background: var(--red);
    border-radius: 50%;
    content: "";
    height: 170px;
    opacity: .16;
    position: absolute;
    right: -70px;
    top: -80px;
    width: 170px;
}
.mp-quote-mark {
    color: #f07169;
    font-family: Georgia,serif;
    font-size: 82px;
    left: 23px;
    line-height: 1;
    position: absolute;
    top: 17px;
}
.mp-quote p { font-size: 26px; line-height: 1.4; margin: 18px 0 14px; position: relative; z-index: 1; }
.mp-quote cite { color: #d8d5cc; font-style: normal; position: relative; z-index: 1; }

.mp-stat-bar {
    background: linear-gradient(135deg,#2e2e30,#424245);
    box-shadow: 0 12px 34px rgba(46,46,48,.18);
    gap: 0;
    overflow: hidden;
    padding: 0;
}
.mp-stat-bar div { flex: 1; padding: 30px 22px; position: relative; }
.mp-stat-bar div + div:before {
    background: rgba(255,255,255,.16);
    content: "";
    height: 54%;
    left: 0;
    position: absolute;
    top: 23%;
    width: 1px;
}
.mp-stat-bar strong { color: #fff; font-size: 32px; line-height: 1.1; }
.mp-stat-bar span { color: #d9d7d2; font-size: 14px; line-height: 1.35; margin: 8px auto 0; max-width: 170px; }

.mp-cta {
    align-items: stretch;
    background: linear-gradient(135deg,var(--red),#ab1c15);
    box-shadow: 0 14px 38px rgba(168,28,21,.22);
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
    position: relative;
}
.mp-cta:after {
    border: 22px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
    height: 170px;
    position: absolute;
    right: -72px;
    top: -82px;
    width: 170px;
}
.mp-cta-copy { max-width: none; position: relative; width: 100%; z-index: 1; }
.mp-cta-kicker {
    color: #a81c15;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.mp-cta h2 { font-size: 28px; margin: 6px 0 8px; text-align: left; }
.mp-cta p { color: #fff; margin: 0; opacity: .92; }
.mp-cta-buttons { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: center; position: relative; width: 100%; z-index: 1; }
.mp-blog-button { line-height: 1.2; text-align: center; transition: transform .15s; }
.mp-blog-button:hover { transform: translateY(-2px); }

/* Keep legacy rich-text buttons and rounded CMS buttons consistent in every state. */
.mp-article .btn,
.mp-article .btn:link,
.mp-article .btn:visited,
.mp-article .btn:hover,
.mp-article .btn:focus,
.mp-article .btn:active,
.mp-article .mp-blog-button,
.mp-article .mp-blog-button:link,
.mp-article .mp-blog-button:visited,
.mp-article .mp-blog-button:hover,
.mp-article .mp-blog-button:focus,
.mp-article .mp-blog-button:active,
.mp-article button,
.mp-article button:hover,
.mp-article button:focus,
.mp-article button:active {
    background: var(--red);
    color: #fff;
    text-decoration: none;
}

.mp-related-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,1fr); }
.mp-related-link {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: inherit;
    display: grid;
    gap: 14px;
    grid-template-columns: 42px 1fr;
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color .18s,transform .18s;
}
.mp-related-link:hover { border-color: #f2b7b3; transform: translateX(3px); }
.mp-related-arrow {
    align-items: center;
    background: var(--red);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}
.mp-related-link strong,
.mp-related-link small { display: block; }
.mp-related-link small { color: #666; font-size: 14px; line-height: 1.4; margin-top: 3px; }

.mp-variant-seasonal .mp-card-marker,
.mp-variant-seasonal.mp-cta { background: #c96c08; }
.mp-variant-calm .mp-card-marker,
.mp-variant-money .mp-card-marker { background: #0e7a72; }
.mp-variant-urgent .mp-card-marker { background: #1b6fe8; }
.mp-variant-compare .mp-card:nth-child(2) .mp-card-marker { background: #1b6fe8; }
.mp-variant-compare .mp-card:nth-child(3) .mp-card-marker { background: #7b4fbf; }

@media (max-width:900px) {
    .mp-card-grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width:760px) {
    .mp-structured-section,
    .mp-stat-section,
    .mp-related { margin-bottom: 42px; margin-top: 42px; }
    .mp-card-grid-2,
    .mp-card-grid-3,
    .mp-card-grid-4,
    .mp-related-grid { grid-template-columns: 1fr; }
    .mp-numbered-steps li { grid-template-columns: 44px 1fr; padding: 18px; }
    .mp-box { grid-template-columns: 38px 1fr; padding: 22px 20px; }
    .mp-box-icon { height: 38px; width: 38px; }
    .mp-quote { padding: 32px 26px; }
    .mp-quote-mark { font-size: 66px; left: 12px; top: 14px; }
    .mp-quote p { font-size: 22px; }
    .mp-stat-bar { display: grid; grid-template-columns: 1fr; }
    .mp-stat-bar div + div:before { height: 1px; left: 15%; top: 0; width: 70%; }
    .mp-cta { padding: 30px 24px; }
    .mp-cta-buttons { flex-direction: column; }
    .mp-blog-button { width: 100%; }
}
