/* All rules stay inside the article. Override --predicto-* in a theme if desired. */
.predicto-article {
    --predicto-accent: #17634d;
    --predicto-on-accent: #fff;
    --predicto-line: color-mix(in srgb, currentColor 18%, transparent);
    --predicto-tint: color-mix(in srgb, currentColor 4%, transparent);
    box-sizing: border-box;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    margin: 1.5rem 0 3rem;
}
.predicto-article *, .predicto-article *::before, .predicto-article *::after { box-sizing: border-box; }
.predicto-article .predicto-welcome, .predicto-article .predicto-footer {
    border: 1px solid var(--predicto-line, #8886);
    border-radius: 1rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    background: var(--predicto-tint, #8881);
}
.predicto-article .predicto-welcome { border-top: 4px solid var(--predicto-accent); }
.predicto-article .predicto-eyebrow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
    font-size: .75rem;
    line-height: 1.5;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-weight: 600;
}
.predicto-article .predicto-summary {
    margin: 1.1rem 0 0;
    font-size: clamp(1.125rem, 2.3vw, 1.45rem);
    line-height: 1.55;
    font-weight: 500;
    color: inherit;
}
.predicto-article .predicto-offers { margin-top: 1.75rem; }
.predicto-article .predicto-footer .predicto-offers { margin-top: 0; }
.predicto-article .predicto-offers-title { margin: 0 0 .75rem; font-size: .875rem; font-weight: 600; }
.predicto-article .predicto-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.predicto-article a.predicto-affiliate {
    display: inline-flex;
    flex: 1 1 11rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: .85rem 1.15rem;
    border: 2px solid var(--predicto-accent);
    border-radius: .5rem;
    background: var(--predicto-accent);
    color: var(--predicto-on-accent);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    box-shadow: none;
}
.predicto-article a.predicto-affiliate:hover { filter: brightness(1.12); text-decoration: underline; }
.predicto-article a:focus-visible, .predicto-article .predicto-table-scroll:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}
.predicto-article .predicto-offers-note { margin: .75rem 0 0; font-size: .8rem; line-height: 1.5; }
.predicto-article .predicto-body { margin: 2.5rem 0; }
.predicto-article .predicto-body h2, .predicto-article .predicto-body h3,
.predicto-article .predicto-body h4 {
    font-family: inherit;
    color: inherit;
    line-height: 1.3;
    margin: 2rem 0 1rem;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}
.predicto-article .predicto-body h2 { font-size: 1.5em; }
.predicto-article .predicto-body h3 { font-size: 1.2em; }
.predicto-article .predicto-body p { margin: 0 0 1.2rem; color: inherit; }
.predicto-article .predicto-body ul, .predicto-article .predicto-body ol { margin: 1rem 0; padding-inline-start: 1.5rem; }
.predicto-article .predicto-body li { margin: .4rem 0; }
.predicto-article .predicto-body img { display: block; max-width: 100%; height: auto; border-radius: .75rem; margin: 1.5rem auto; }
.predicto-article .predicto-body figure { margin: 1.5rem 0; max-width: 100%; }
.predicto-article .predicto-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--predicto-line, #8886); border-radius: .5rem; }
.predicto-article .predicto-body table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font: inherit; font-size: .9rem; background: transparent; color: inherit; }
.predicto-article .predicto-body th, .predicto-article .predicto-body td {
    padding: .85rem 1rem;
    text-align: start;
    vertical-align: top;
    border: 0;
    border-bottom: 1px solid var(--predicto-line, #8886);
    background: transparent;
    color: inherit;
    min-width: 7rem;
    line-height: 1.5;
}
.predicto-article .predicto-body th { background: var(--predicto-tint, #8881); font-weight: 650; }
.predicto-article .predicto-body tr:last-child td { border-bottom: 0; }
.predicto-article .predicto-body caption { padding: .8rem 1rem; text-align: start; font-weight: 600; color: inherit; }
@media (max-width: 480px) {
    .predicto-article .predicto-actions { flex-direction: column; }
    .predicto-article a.predicto-affiliate { flex-basis: auto; width: 100%; }
    .predicto-article .predicto-body th, .predicto-article .predicto-body td { padding: .75rem; }
}
.predicto-article .predicto-author {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--predicto-line, #8886);
    font: inherit;
    font-size: .9em;
    color: inherit;
    overflow-wrap: anywhere;
}
.predicto-article .predicto-author-name { font-weight: 600; }
@media print {
    .predicto-article .predicto-offers, .predicto-article .predicto-footer { display: none; }
    .predicto-article .predicto-table-scroll { overflow: visible; }
}
