@charset "UTF-8";

:root {
    --black: #212427;
    --green: #03a64a;
    --ash: #999999;
    --silver: #efefef;
    --star-size: 17px;
    --star-color: #b6b6b6;
    --star-background: #03a64a;
}

.Stars {
    --percent: calc(var(--rating) / 5 * 100%);
    display: inline-block;
    font-size: var(--star-size);
    font-family: Times, sans-serif;
    line-height: 1;
}

.Stars::before {
    content: "★★★★★";
    letter-spacing: 0;
    background: linear-gradient(90deg,
    var(--star-background) var(--percent),
    var(--star-color) var(--percent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--black);
}

@media (min-width: 768px) {
    .card__cta > a.use-qrcode {
        display: none;
    }

    .top-three-cards .wrapper .bottom-section > a.use-qrcode {
        display: none;
    }

    .card__cta > div.stamp-container.use-qrcode {
        display: none;
    }

    div.qrcode-wrapper {
        display: flex;
        flex-direction: column;
        background-color: var(--green);
        justify-content: center;
        padding: 20px 10px 0;
        align-items: center;
        border-radius: 10px;
        max-width: 75%;
        width: 80%;
        margin: auto;
    }

    div.qrcode-wrapper img {
        max-width: 80%;
    }

    div.qrcode-wrapper p {
        font-weight: bold;
        color: white;
        padding: 10px 0;
    }

    div.top-three-card.position_1 .cta-section.use-qrcode {
        gap: 20px;
    }

    div.top-three-card .cta-section.use-qrcode {
        justify-content: flex-start;
        gap: 5px;
    }

    div.top-three-card.position_1 div.top3-qrcode-wrapper {
        padding: 20px 10px 0 10px;
    }

    div.top3-qrcode-wrapper {
        display: flex;
        flex-direction: column;
        background-color: var(--green);
        justify-content: center;
        padding: 15px 10px 0 10px;
        align-items: center;
        border-radius: 10px;
    }

    div.top-three-card.position_1 div.top3-qrcode-wrapper img {
        max-width: 100%;
    }

    div.top-three-card div.top3-qrcode-wrapper img {
        max-width: 80%;
    }

    div.top3-qrcode-wrapper p {
        font-weight: bold;
        color: white;
        padding: 10px 0;
    }
}

/* ====== Card Ribbon (pseudo-elements) ======= */

.card__ribbon {
    position: absolute;
    top: 12px;
    left: -8px;
    z-index: 1;
}

.card__ribbon::before {
    top: 32px;
    left: 0;
    position: absolute;
    content: "";
    display: block;
    border-bottom: 5px solid var(--black);
    border-top: 5px solid var(--black);
    border-right: 8px solid var(--black);
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.card__ribbon::after {
    font-size: 14px;
    position: absolute;
    content: attr(data-label);
    top: 0;
    left: 0;
    padding: 0.5rem;
    width: 9rem;
    background: var(--black);
    color: white;
    text-align: center;
}

/* ====== Faq Section ======= */
.faq__each {
    padding: 60px 0;
    border-bottom: 1px solid #ddd;
}

.faq__each h3 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.faq__each p {
    font-size: 18px;
    line-height: 32px;
}

/* ===== Top Three Section (pseudo-element only) ==== */

.top-three-card .position-ribbon::before {
    top: 40px;
    left: 0;
    position: absolute;
    content: "";
    display: block;
    border-bottom: 5px solid var(--black);
    border-top: 5px solid var(--black);
    border-right: 8px solid var(--black);
    border-left-color: transparent;
    border-bottom-color: transparent;
}

/* ====== Long Ribbon & Collapsible (pseudo-elements + JS toggle) ======= */

.long__ribbon::after {
    top: 41px;
    right: 0;
    position: absolute;
    content: "";
    display: block;
    border-top: 6px solid var(--black);
    border-right: 5px solid var(--black);
    border-left: 3px solid var(--black);
    border-right-color: transparent;
    border-bottom-color: transparent;
}


/* ====== Disclosure arrow (pseudo-element) ======= */

.disclosure::before {
    top: -6px;
    right: 60px;
    position: absolute;
    content: "";
    display: block;
    border-top: 15px solid var(--black);
    border-right: 15px solid var(--black);
    border-bottom-color: transparent;
    border-right-color: transparent;
    transform: rotate(45deg);
}

/* ====== Blog (still uses CSS classes) ======= */

.post__subtext > h2 {
    font-size: revert;
    font-weight: revert;
}

/* ====== Free Content ======= */

div.free-content * {
    font-size: revert;
    font-weight: revert;
    list-style: revert;
    margin: 0;
    padding: revert;
}

div.free-content h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

div.free-content h2 {
    font-size: 24px;
}

div.free-content p,
div.free-content ol,
div.free-content ul,
div.free-content li {
    font-size: 18px;
    line-height: 32px;
}

div.free-content div.free_content_cta {
    width: 100%;
    padding: 30px 30%;
}
div.free-content div.free_content_cta > a {
    display: flex;
    background: var(--green);
    color: #fff;
    align-items: center;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 16px 22px;
    justify-content: center;
    gap: 15px;
    border-radius: 4px;
}

/* ====== Data Table ======= */

div.custom-data-table-wrapper {
    overflow-x: auto;
    padding: 1rem 0;
    margin: auto;
    width: 100%;
    font-size: 15px;
}

div.custom-data-table-wrapper > table.custom-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

.custom-data-table thead th {
    text-align: left;
    font-weight: 900;
    border-bottom: 2px solid var(--black);
}

.custom-data-table thead th:first-child {
    font-weight: 900;
}

.custom-data-table th a, .custom-data-table td a {
    font-weight: 900;
    text-decoration: underline;
    color: var(--green);
}

.custom-data-table th {
    padding: 0.75rem;
}

.custom-data-table td {
    padding: 0.75rem;
    word-wrap: break-word;
}

.custom-data-table th:first-child,
.custom-data-table td:first-child {
    min-width: 200px;
}

.custom-data-table th:first-child {
    font-weight: normal;
}

.custom-data-table tbody tr:nth-child(odd) {
    background-color: #f0f0f0;
}

.custom-data-table tbody tr:nth-child(even) {
    background-color: white;
}

/** MEDIA QUERIES */
@media screen and (max-width: 768px) {

    .card__ribbon::after {
        font-size: 11px;
        padding: 0.4rem;
        width: 107px;
        font-weight: lighter;
    }

    .card__ribbon::before {
        top: 29px;
    }

    .card__ribbon {
        top: 5px;
    }

    .faq__section {
        padding: 0 10px;
    }

    .faq__each {
        padding: 32px 0;
        border-bottom: 1px solid #ddd;
    }

    .faq__each h3 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 16px;
    }

    .faq__each p {
        font-size: 14px;
        line-height: 26px;
    }

    .long__ribbon::after {
        top: 100%;
        border-right: 3px solid transparent;
    }

    .disclosure::before {
        right: 50%;
    }

    div.free-content {
        padding-top: 32px;
    }

    div.free-content h1 {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 16px;
        text-align: center;
    }

    div.free-content h2 {
        font-size: 18px;
    }

    div.free-content p,
    div.free-content li,
    div.free-content ol,
    div.free-content ul {
        font-size: 14px;
        line-height: 26px;
    }

    div.free-content div.free_content_cta {
        padding: 30px;
    }

    div.free-content div.free_content_cta > a{
        font-size: 14px;
    }

    div.custom-data-table-wrapper {
        display: none;
    }
}

/** TRADINGVIEW */
.tradingview-widget-container {
    height: 44px !important;
}

.tradingview-widget-container > iframe {
    pointer-events: none !important;
}

.tradingview-widget-copyright {
    display: none !important;
}

/** COMMON */
div.page__title > h1.post-title {
    line-height: 45px;
}

.card__ribbon::after {
    width: 200px;
}

p.qrcode-disclaimer {
    text-align: center;
}

@media screen and (max-width: 768px) {
    p.qrcode-disclaimer {
        display: none;
    }

    .Stars {
        font-size: 15px;
    }

    div.post__date {
        justify-content: center;
    }

    div.page__title > h1.post-title {
        line-height: 35px;
    }

    .top-140 {
        top: 140px;
    }

    .switch__each {
        line-height: 10px;
    }

    .card__ribbon {
        top: 7px;
    }
    .card__ribbon::after {
        width: 150px;
    }

    div.qrcode-wrapper {
        display: none;
    }
}
