/* ============================================================
   Advertorial Cards
   Used by [dosaze_card] and [pd_dosaze_heading]
   ============================================================ */

/* ---- Outer wrapper ---- */
.adv-card {
    width: 100%;
    max-width: 700px;
    padding: 0 16px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .adv-card {
        padding: 0;
    }
}

/* ---- Top ribbon block (yellow-bordered "Clear Choice" header) ---- */
.adv-card__ribbon-wrap {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-top: 8px solid #facc15;
    border-right: 8px solid #facc15;
    border-left: 8px solid #facc15;
    padding: 24px 32px 40px;
    box-sizing: border-box;
}

.adv-card__ribbon {
    display: inline-block;
    background-color: #fde047;
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 6px 12px;
}

.adv-card__title {
    font-size: 32px;
    line-height: 1.15;
    margin: 16px 0 0;
}

.adv-card__brand {
    color: #4b5563;
    margin-top: 4px;
}

.adv-card__brand-name {
    font-weight: 600;
}

/* ---- Optional brand seal / badge (circular image, bottom-right of ribbon) ---- */
.adv-card__badge {
    position: absolute;
    bottom: 0;
    right: 70px;
    transform: translate(50%, 50%);
    width: 100px;
    height: 96px;
    border-radius: 9999px;
    background-color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv-card__badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .adv-card__badge {
        right: 118px;
        width: 130px;
        height: 130px;
    }
}

/* ---- Full-width hero image below ribbon ---- */
.adv-card__hero {
    width: 100%;
    display: block;
}

/* ---- Light-blue panel that holds the score card ---- */
.adv-card__panel {
    padding: 14px 12px 30px;
    background-color: #BFE1F0;
}

.adv-card__inner {
    background-color: #fff;
    border-radius: 16px;
    padding: 12px;
}

@media (min-width: 768px) {
    .adv-card__inner {
        padding: 10px;
    }
}

/* ---- Score grid (ranking circle | product photo | letter grade) ---- */
.adv-card__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
}

.adv-card__cell {
    border: 1px solid hsla(0, 2%, 50%, 0.267);
    color: #5c5959;
    padding: 5px;
}

.adv-card__product-photo {
    grid-column: 1 / 3;
    grid-row: 2;
    border-right: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adv-card__product-photo img {
    max-width: 100%;
    height: auto;
}

.adv-card__ranking {
    display: flex;
    flex-direction: column;
    font-size: 90%;
    grid-column: 3 / 5;
    grid-row: 2;
    align-items: center;
    justify-content: center;
    border-right: none;
}

.adv-card__ranking-circle {
    position: relative;
    height: 100px;
    width: 100px;
}

.adv-card__ranking-circle svg {
    height: 100px;
    width: 100px;
}

.adv-card__ranking-circle svg circle {
    fill: none;
    stroke-width: 10;
    stroke: #1b3d5f;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    stroke-linecap: round;
    transform: translate(5px, 5px);
}

.adv-card__ranking-circle svg circle:first-child {
    stroke-dashoffset: 0;
    stroke: #f3f3f3;
}

.adv-card__ranking-circle svg circle:nth-child(2) {
    /* stroke-dashoffset set inline based on score_pct */
}

.adv-card__ranking-number {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.adv-card__ranking-votes {
    position: absolute;
    top: 65px;
    width: 100%;
    display: flex;
    justify-content: center;
    color: rgba(92, 89, 89, 0.795);
    font-size: 10px;
}

.adv-card__grade {
    display: block;
    grid-column: 5 / 7;
    grid-row: 2;
    text-align: center;
}

.adv-card__grade-letter {
    font-size: 350%;
    height: 70%;
}

.adv-card__grade-text {
    font-size: 75%;
}

/* ---- CTA button row ---- */
.adv-card__cta-row {
    grid-column: 1 / 7;
    grid-row: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.adv-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #94F2FF;
    color: #000;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border-radius: 9999px;
    transition: background-color 0.2s ease;
}

.adv-card__cta:hover {
    background-color: #22d3ee;
    text-decoration: none;
}

/* ---- Score rows (label, bar, value) ---- */
.adv-card__score {
    grid-column: 1 / 7;
    border-bottom: 1px solid hsla(0, 2%, 50%, 0.267);
    color: #5c5959;
    font-size: 3vw;
    font-style: italic;
    padding: 12px 5px;
}

.adv-card__score-label {
    float: left;
    width: 100%;
}

.adv-card__bar {
    float: left;
    width: 85%;
    margin-top: 6px;
    height: 10px;
    background-color: hsla(0, 2%, 50%, 0.267);
    border-radius: 10em;
    position: relative;
}

.adv-card__bar-fill {
    height: 10px;
    background-color: #1b3d5f;
    border-radius: 10em;
}

.adv-card__score-value {
    float: right;
    margin-top: 3px;
}

/* ---- Pros / Cons split row ---- */
.adv-card__pros,
.adv-card__cons {
    grid-column: span 3;
    color: #5c5959;
    font-size: 90%;
    font-weight: 700;
    padding: 10px;
}

.adv-card__pros {
    grid-column: 1 / 4;
    border-right: 1px solid hsla(0, 2%, 50%, 0.267);
}

.adv-card__cons {
    grid-column: 4 / 7;
}

.adv-card__bullet {
    font-size: 75%;
    font-weight: 400;
    overflow: hidden;
}

.adv-card__bullet-mark {
    float: left;
}

.adv-card__bullet-mark--pros {
    color: green;
}

.adv-card__bullet-mark--cons {
    color: red;
}

.adv-card__bullet-text {
    margin-left: 20px;
    margin-top: 10px;
}

/* ---- Larger screens ---- */
@media screen and (min-width: 640px) {
    .adv-card__ranking-circle,
    .adv-card__ranking-circle svg {
        height: 150px;
        width: 150px;
    }

    .adv-card__ranking-number {
        font-size: 30px;
    }

    .adv-card__ranking-votes {
        font-size: 15px;
        top: 95px;
    }

    .adv-card__grade-letter {
        font-size: 450%;
    }

    .adv-card__grade-text,
    .adv-card__score {
        font-size: 100%;
    }

    .adv-card__score {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .adv-card__score-value {
        margin-top: 5px;
    }

    .adv-card__bar {
        height: 15px;
        width: 90%;
        margin-top: 10px;
    }

    .adv-card__bar-fill {
        height: 15px;
    }

    .adv-card__pros,
    .adv-card__cons {
        font-size: 100%;
        padding: 20px;
    }

    .adv-card__bullet {
        font-size: 100%;
        font-weight: 400;
    }
}

/* ============================================================
   Dosaze Heading ([pd_dosaze_heading])
   ============================================================ */

.pd-heading-container {
    margin-left: 0;
}

.pd-heading-title {
    color: rgba(12, 12, 12, 1);
    font-family: p22-mackinac-pro, serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 2rem;
}

.pd-heading-author {
    color: #585858;
    font-family: Quicksand, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 1rem;
}

@media (max-width: 767px) {
    .pd-heading-title {
        font-size: 1.75rem;
        line-height: 2.125rem;
    }

    .pd-heading-author {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .pd-heading-container {
        max-width: 350px;
        margin-right: 2rem;
    }

    .pd-heading-title {
        margin-bottom: 5rem;
    }

    .pd-heading-author {
        margin-top: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .pd-heading-container {
        max-width: 575px;
    }
}
