/* ==========================================================================
   Campaign Module — paid campaign content on candidate profile posts
   Uses the theme's own custom properties so it tracks the site palette,
   but deliberately leans on --font1 (body sans) throughout so it never
   reads as editorial copy set in --font2.
   ========================================================================== */

.campaign-module {
    border: 1px solid var(--text-color);
    border-top: 5px solid var(--text-color);
    padding: 28px 28px 18px;
    margin: 56px 0 24px;
    font-family: var(--font1), sans-serif;
    color: var(--text-color);
}

/* --- Paid label ------------------------------------------------------- */

.campaign-module__flag {
    display: inline-block;
    background: var(--text-color);
    color: var(--background-color);
    font-family: var(--font1), sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 10px;
    margin-bottom: 14px;
}

.campaign-module__disclosure {
    font-family: var(--font1), sans-serif;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.75;
    margin: 0 0 24px;
}

/* --- Body ------------------------------------------------------------- */

.campaign-module__body h3 {
    font-family: var(--font3), sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--text-color);
}

.campaign-module__body h3:first-child { margin-top: 0; }

.campaign-module__body p,
.campaign-module__body li {
    font-family: var(--font1), sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.campaign-module__body ul { list-style: none; padding: 0; margin: 0; }

.campaign-module__body ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.campaign-module__body ul li:last-child { border-bottom: 0; }

/* --- Video ------------------------------------------------------------ */

.campaign-module__video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 12px 0 0;
}

.campaign-module__video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* --- Gallery ----------------------------------------------------------
   A native Ghost gallery card placed immediately after the module.
   Ghost cards can't nest inside an HTML card, so the gallery sits as a
   sibling; these rules pull it visually into the same panel and make the
   caption read as a paid label rather than an editorial cutline.
   ---------------------------------------------------------------------- */

.campaign-module--open {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 8px;
}

.campaign-module--open + .kg-card.kg-gallery-card {
    border-left: 1px solid var(--text-color);
    border-right: 1px solid var(--text-color);
    margin: 0;
    padding: 0 28px 8px;
}

.campaign-module--open + .kg-gallery-card figcaption,
.campaign-module__gallery-note {
    font-family: var(--font1), sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    opacity: 0.7;
    text-align: left;
    padding-top: 8px;
}

.campaign-module--close {
    border-top: 0;
    margin-top: 0;
    padding-top: 8px;
}

@media (max-width: 600px) {
    .campaign-module--open + .kg-card.kg-gallery-card { padding: 0 18px 8px; }
}

/* --- Action links ----------------------------------------------------- */

.campaign-module__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.campaign-module__actions a {
    font-family: var(--font1), sans-serif;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 10px 18px;
    transition: opacity var(--ease-transition) 0.2s;
}

.campaign-module__actions a:hover {
    background: var(--text-color);
    color: var(--background-color);
}

/* --- Footer ----------------------------------------------------------- */

.campaign-module__footer {
    border-top: 1px solid var(--text-color);
    margin-top: 28px;
    padding-top: 12px;
    font-family: var(--font1), sans-serif;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.65;
}

.campaign-module__footer a { color: var(--text-color); }

/* --- Mobile ----------------------------------------------------------- */

@media (max-width: 600px) {
    .campaign-module { padding: 20px 18px 14px; margin: 40px 0 20px; }
    .campaign-module__actions a { flex: 1 1 100%; text-align: center; }
}
