/* U-Affiliate post boxes, table and FAQ in the brand palette (2026-10-20).
 * The writer (OC run-u-affiliate.py) emits fixed inline styles, so each box is matched
 * by its inline colour and restyled here; no post HTML and no pipeline code changes.
 * Loaded on the preview page, and on every single once uaff_post_style_live = 1. */

.entry-content h2 {
    color: var(--ua-indigo);
    position: relative;
    padding-bottom: 10px;
}
.entry-content h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--ua-teal);
}

/* shared box frame */
.entry-content div[style*="#f0fdfa"],
.entry-content div[style*="#fff8e1"],
.entry-content div[style*="#f5f5f5"],
.entry-content div[style*="#f6f7fb"] {
    border-radius: 12px !important;
    padding: 18px 22px !important;
    margin: 26px 0 !important;
    border: 1px solid transparent !important;
    border-left-width: 5px !important;
}
.entry-content div[style*="#f0fdfa"] > p:last-child,
.entry-content div[style*="#fff8e1"] > p:last-child,
.entry-content div[style*="#f5f5f5"] > p:last-child {
    margin-bottom: 0;
}
.entry-content div[style*="#f0fdfa"] strong:first-child,
.entry-content div[style*="#fff8e1"] strong:first-child,
.entry-content div[style*="#f5f5f5"] > p > strong:first-child {
    display: block;
    margin-bottom: 4px;
    font-size: 12.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Bottom Line: indigo */
.entry-content div[style*="#f0fdfa"] {
    background: #eef1f8 !important;
    border-color: #d9dfee !important;
    border-left-color: var(--ua-indigo) !important;
}
.entry-content div[style*="#f0fdfa"] strong:first-child {
    color: var(--ua-indigo);
}

/* Buyer Persona / Worth Knowing: coral */
.entry-content div[style*="#fff8e1"] {
    background: #fff2ee !important;
    border-color: #fbd9d0 !important;
    border-left-color: var(--ua-coral) !important;
}
.entry-content div[style*="#fff8e1"] strong:first-child {
    color: var(--ua-coral-text);
}
/* Two-Way Take: the "For publishers:" / "For merchants:" lead-ins stay inline */
.entry-content div[style*="#fff8e1"] p + p > strong:first-child {
    display: inline;
    margin: 0;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ua-indigo);
}
.entry-content div[style*="#fff8e1"] p + p {
    margin: 6px 0 0;
}

/* Quick Takeaways (the grey box that holds an h2): teal checklist */
.entry-content div[style*="#f5f5f5"]:has(> h2) {
    background: #edf7f6 !important;
    border-color: #cfe9e6 !important;
    border-left-color: var(--ua-teal) !important;
}
.entry-content div[style*="#f5f5f5"]:has(> h2) > h2 {
    margin-top: 0;
    font-size: 21px;
}
.entry-content div[style*="#f5f5f5"]:has(> h2) > h2::after {
    display: none;
}
.entry-content div[style*="#f5f5f5"]:has(> h2) ul {
    list-style: none !important;
    padding-left: 0 !important;
}
.entry-content div[style*="#f5f5f5"]:has(> h2) li {
    position: relative;
    padding-left: 28px;
    margin: 8px 0;
}
.entry-content div[style*="#f5f5f5"]:has(> h2) li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .42em;
    width: 14px;
    height: 8px;
    border-left: 3px solid var(--ua-teal-text);
    border-bottom: 3px solid var(--ua-teal-text);
    transform: rotate(-45deg);
}

/* Pro tip from Ronen (the grey box without an h2): cream with an indigo rule */
.entry-content div[style*="#f5f5f5"]:not(:has(> h2)) {
    background: var(--ua-cream) !important;
    border-color: var(--ua-cream-line) !important;
    border-left-color: var(--ua-indigo) !important;
}
.entry-content div[style*="#f5f5f5"]:not(:has(> h2)) strong:first-child {
    color: var(--ua-indigo);
}

/* audio player box */
.entry-content div[style*="#f6f7fb"] {
    background: #f4f5fa !important;
    border-color: #e1e5f0 !important;
    border-left-color: var(--ua-teal) !important;
    padding: 12px 18px !important;
}
.entry-content div[style*="#f6f7fb"] span[style*="#2d2a45"] {
    color: var(--ua-indigo) !important;
}

/* comparison table */
.entry-content table[style*="border-collapse"] {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #e3e6ee !important;
    border-radius: 12px;
    overflow: hidden;
}
.entry-content table[style*="border-collapse"] caption {
    caption-side: top;
    color: var(--ua-muted);
    font-weight: 600 !important;
    font-size: 14px !important;
}
.entry-content table[style*="border-collapse"] thead tr {
    background-color: var(--ua-indigo) !important;
}
.entry-content table[style*="border-collapse"] th,
.entry-content table[style*="border-collapse"] td {
    border: 0 !important;
    border-bottom: 1px solid #eceff5 !important;
    padding: 11px 14px !important;
    vertical-align: top;
}
.entry-content table[style*="border-collapse"] th {
    color: #fff;
    font-size: 14px;
    letter-spacing: .02em;
}
.entry-content table[style*="border-collapse"] tbody tr:nth-child(even) {
    background: #faf6ee;
}
.entry-content table[style*="border-collapse"] tbody tr:last-child td {
    border-bottom: 0 !important;
}
.entry-content table[style*="border-collapse"] td:first-child {
    font-weight: 600;
    color: var(--ua-indigo);
}

/* FAQ: the theme draws a 2px grey frame with 45px padding round every <dl> */
.entry-content dl {
    border: 0 !important;
    padding: 0 !important;
    margin: 8px 0 24px !important;
    background: none !important;
}
.entry-content dl dt {
    position: relative;
    margin: 0 !important;
    padding: 18px 0 6px 40px;
    border-top: 1px solid var(--ua-cream-line);
    color: var(--ua-indigo);
    font-size: 18px;
    line-height: 1.35;
}
.entry-content dl dt:first-of-type {
    border-top: 0;
}
.entry-content dl dt::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 17px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--ua-coral);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}
.entry-content dl dd {
    margin: 0 !important;
    padding: 0 0 18px 40px !important;
    color: #3a3d46;
    line-height: 1.65;
}
