/* Affiliate pages, ported from teflinstitute.com's ti-affiliate-v2.css (Nov 2026) in tefl.ie colours and fonts:
   Become an Affiliate v2 (page-templates/become-an-affiliate-v2.php) and the simple affiliate pages
   (page-templates/affiliate-simple.php: login, Affiliate Area, thank-you, terms). Everything is scoped under .tav2. */

/* Full-bleed sections: lift Astra's container width limit on these templates only. */
body.tefl-affiliate-v2 #content > .ast-container,
body.tefl-affiliate-simple #content > .ast-container {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
body.tefl-affiliate-v2 #primary,
body.tefl-affiliate-simple #primary {
    margin: 0;
    padding: 0;
    width: 100%;
}

.tav2 {
    --tav2-navy: #123137;
    --tav2-navy-2: #026f71;
    --tav2-mint: #9fd8cf;
    --tav2-accent: #e87731;
    --tav2-accent-dk: #cf6424;
    --tav2-ink: #123137;
    --tav2-muted: #4c6068;
    --tav2-tint: #faf7f0;
    --tav2-line: #e2dad2;
    --tav2-radius: 16px;
    color: var(--tav2-ink);
    width: 100%;
    flex: 1 1 100%; /* tefl.ie's .ast-container is a flex row */
    font-family: Figtree, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: clip;
}
.tav2 *,
.tav2 *::before,
.tav2 *::after {
    box-sizing: border-box;
}
.tav2 h1,
.tav2 h2,
.tav2 h3 {
    color: inherit !important;
    font-family: Salmond, system-ui, serif;
    margin: 0;
}
.tav2 p {
    margin: 0 0 1em;
}
.tav2 a {
    color: var(--tav2-navy-2);
}

.tav2-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.tav2-section {
    padding: 72px 0;
    background: #fff;
}
.tav2-section--tint {
    background: var(--tav2-tint);
}
.tav2-h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 32px !important;
}
.tav2-h2--small {
    font-size: 22px;
    margin-bottom: 16px !important;
}

/* Buttons */
.tav2-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .15s ease, background-color .15s ease;
}
.tav2-btn:hover {
    transform: translateY(-1px);
}
.tav2 .tav2-btn--accent {
    background: var(--tav2-accent);
    color: #fff !important;
}
.tav2 .tav2-btn--accent:hover {
    background: var(--tav2-accent-dk);
}
.tav2 .tav2-btn--ghost {
    border: 2px solid rgba(255, 255, 255, .7);
    color: #fff !important;
}
.tav2 .tav2-btn--ghost:hover {
    border-color: #fff;
}

/* Hero */
.tav2-hero {
    background: radial-gradient(1200px 500px at 85% 20%, var(--tav2-navy-2) 0%, transparent 60%), var(--tav2-navy);
    color: #fff;
    padding: 80px 0;
}
.tav2-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.tav2-eyebrow {
    color: var(--tav2-mint);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 16px !important;
}
.tav2 .tav2-hero__title {
    color: #fff !important;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 20px;
}
.tav2-hero__lead {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
}
.tav2-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}
.tav2-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
}
.tav2-hero__points li::before {
    content: "\2713";
    color: var(--tav2-mint);
    font-weight: 700;
    margin-right: 8px;
}
.tav2-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--tav2-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* Facts strip */
.tav2-facts {
    margin-top: -36px;
    position: relative;
}
.tav2-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tav2-fact {
    background: #fff;
    border: 1px solid var(--tav2-line);
    border-radius: var(--tav2-radius);
    padding: 22px 24px;
    box-shadow: 0 10px 30px rgba(15, 48, 66, .08);
}
.tav2-fact__value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--tav2-navy);
    line-height: 1.1;
}
.tav2-fact__label {
    display: block;
    margin-top: 4px;
    color: var(--tav2-muted);
    font-size: 15px;
}

/* How it works */
.tav2-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tav2-step {
    border: 1px solid var(--tav2-line);
    border-radius: var(--tav2-radius);
    padding: 28px;
}
.tav2-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tav2-navy);
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
}
.tav2 .tav2-step__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.tav2-step p {
    color: var(--tav2-muted);
    margin: 0;
}

/* Why choose us */
.tav2-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tav2-why__card {
    background: #fff;
    border-radius: var(--tav2-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tav2-why__pre {
    font-size: 14px;
    color: var(--tav2-muted);
}
.tav2-why__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--tav2-navy);
    line-height: 1.15;
}
.tav2-why__sub {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 13px;
}
.tav2-why__small {
    margin-top: 6px;
    font-size: 14px;
    color: var(--tav2-muted);
    overflow-wrap: anywhere;
}

/* Video + FAQ */
.tav2-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.tav2-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--tav2-radius);
    overflow: hidden;
    background: #000;
}
.tav2-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.tav2-qa {
    border-bottom: 1px solid var(--tav2-line);
}
.tav2-qa summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 36px 16px 0;
    font-weight: 700;
    font-size: 17px;
    position: relative;
}
.tav2-qa summary::-webkit-details-marker {
    display: none;
}
.tav2-qa summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 12px;
    font-size: 24px;
    font-weight: 400;
    color: var(--tav2-navy);
}
.tav2-qa[open] summary::after {
    content: "\2212";
}
.tav2-qa__answer {
    padding: 0 0 16px;
    color: var(--tav2-muted);
    line-height: 1.6;
}
.tav2-qa__answer p:last-child {
    margin-bottom: 0;
}

/* Join: aside + form card */
.tav2-join {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}
.tav2-join__aside {
    position: sticky;
    top: 24px;
}
.tav2-checklist {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.tav2-checklist li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
}
.tav2-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tav2-mint);
    color: var(--tav2-ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 20px;
}
.tav2-team {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.tav2-team img {
    width: calc(50% - 6px);
    max-width: 200px;
    height: auto;
    border-radius: 12px;
}
.tav2-join__contact {
    font-size: 15px;
    color: var(--tav2-muted);
}
.tav2-join__form {
    background: #fff;
    border-radius: var(--tav2-radius);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(15, 48, 66, .08);
}
.tav2-login-note {
    background: var(--tav2-tint);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
}

/* Registration form (AffiliateWP block or shortcode) */
.tav2 .affwp-register-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.tav2 .affwp-register-form legend {
    font-size: 22px;
    font-weight: 700;
    padding: 0;
    margin-bottom: 20px;
}
.tav2 .affwp-register-form fieldset p {
    display: block;
    margin: 0 0 18px;
}
.tav2 .affwp-register-form .affwp-field-label,
.tav2 .affwp-register-form label {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--tav2-ink);
}
.tav2 .affwp-register-form .affwp-field-label .required {
    font-size: 13px;
    font-weight: 400;
    color: var(--tav2-muted);
}
.tav2 .affwp-register-form input[type="text"],
.tav2 .affwp-register-form input[type="email"],
.tav2 .affwp-register-form input[type="url"],
.tav2 .affwp-register-form input[type="password"],
.tav2 .affwp-register-form select,
.tav2 .affwp-register-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfd8de;
    border-radius: 10px;
    background: #fff;
    color: var(--tav2-ink);
    font-size: 16px;
}
.tav2 .affwp-register-form input:focus,
.tav2 .affwp-register-form select:focus,
.tav2 .affwp-register-form textarea:focus {
    outline: 2px solid var(--tav2-mint);
    outline-offset: 1px;
    border-color: var(--tav2-navy-2);
}
.tav2 .affwp-register-form p.affwp-field-help {
    margin: -10px 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tav2-muted);
}
.tav2 .affwp-register-form p:has(> .affwp-field-terms-of-use) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}
.tav2 .affwp-register-form .affwp-field-terms-of-use {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}
.tav2 .affwp-register-form p:has(> .affwp-field-terms-of-use) .affwp-field-label {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    font-weight: 400;
}
.tav2 .affwp-register-form .affwp-field-label a {
    text-decoration: underline;
}
.tav2 .affwp-register-form input[type="submit"] {
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--tav2-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.tav2 .affwp-register-form input[type="submit"]:hover {
    background: var(--tav2-navy-2);
}
.tav2 .affwp-errors {
    margin: 0 0 16px;
}
.tav2 .affwp-error {
    background: #fdecea;
    color: #8a1f11;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 6px;
}

/* Closing CTA */
.tav2-cta {
    background: var(--tav2-navy);
    color: #fff;
    padding: 56px 0;
}
.tav2-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tav2-cta .tav2-h2 {
    margin-bottom: 8px !important;
    color: #fff !important;
}
.tav2-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
}

/* Tablet */
@media (max-width: 1000px) {
    .tav2-hero__inner,
    .tav2-faq,
    .tav2-join {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .tav2-hero__media {
        max-width: 560px;
    }
    .tav2-facts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tav2-why {
        grid-template-columns: repeat(2, 1fr);
    }
    .tav2-join__aside {
        position: static;
    }
}

/* Phone (tefl.ie's mobile header is not fixed, so no extra top padding is needed) */
@media (max-width: 640px) {
    .tav2-wrap {
        padding: 0 16px;
    }
    .tav2-hero {
        padding: 48px 0 64px;
    }
    .tav2-hero__media img {
        height: 200px;
        object-fit: cover;
        object-position: center 30%;
    }
    .tav2-section {
        padding: 48px 0;
    }
    .tav2-hero__actions .tav2-btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .tav2-steps,
    .tav2-why {
        grid-template-columns: 1fr;
    }
    .tav2-fact {
        padding: 16px;
    }
    .tav2-fact__value {
        font-size: 24px;
    }
    .tav2-join__form {
        padding: 20px 16px;
    }
    .tav2-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Simple affiliate pages (page-affiliate-simple.php) ---------- */

.tav2-band {
    background: radial-gradient(900px 400px at 85% 0%, var(--tav2-navy-2) 0%, transparent 60%), var(--tav2-navy);
    color: #fff;
    padding: 56px 0 96px;
}
.tav2 .tav2-band__title {
    color: #fff !important;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 800;
}
.tav2-band__lead {
    margin: 14px 0 0 !important;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
}
.tav2-simple__body {
    display: flow-root; /* keeps the card's negative top margin from collapsing through */
    background: var(--tav2-tint);
    padding: 0 0 72px;
}
.tav2-card {
    background: #fff;
    border-radius: var(--tav2-radius);
    box-shadow: 0 10px 30px rgba(15, 48, 66, .08);
    padding: 40px;
    margin: -56px auto 0;
    position: relative;
}
.tav2-simple--narrow .tav2-card {
    max-width: 520px;
}
.tav2-simple--prose .tav2-card {
    max-width: 820px;
}
.tav2-simple--narrow .tav2-band .tav2-wrap,
.tav2-simple--prose .tav2-band .tav2-wrap {
    text-align: center;
}
.tav2-simple--narrow .tav2-band__lead,
.tav2-simple--prose .tav2-band__lead {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Long-form content (thank-you, terms) */
.tav2-prose {
    font-size: 17px;
    line-height: 1.7;
}
.tav2-prose h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 36px 0 12px !important;
}
.tav2-prose h2:first-child {
    margin-top: 0 !important;
}
.tav2-prose ul,
.tav2-prose ol {
    margin: 0 0 1.2em 1.4em;
    padding: 0;
}
.tav2-prose li {
    margin-bottom: 8px;
}
.tav2-prose li::marker {
    color: var(--tav2-navy);
    font-weight: 700;
}
.tav2-prose a {
    color: var(--tav2-navy-2);
    text-decoration: underline;
}
.tav2 a.tefl-affwp-button {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--tav2-navy);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}
.tav2 a.tefl-affwp-button:hover {
    background: var(--tav2-navy-2);
}

/* Login form (AffiliateWP) */
.tav2 .affwp-login-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.tav2 .affwp-login-form legend {
    font-size: 22px;
    font-weight: 700;
    padding: 0;
    margin-bottom: 20px;
}
.tav2 .affwp-login-form p {
    margin: 0 0 18px;
}
.tav2 .affwp-login-form label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    color: var(--tav2-ink);
}
.tav2 .affwp-login-form input[type="text"],
.tav2 .affwp-login-form input[type="password"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfd8de;
    border-radius: 10px;
    background: #fff;
    color: var(--tav2-ink);
    font-size: 16px;
}
.tav2 .affwp-login-form label.affwp-user-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}
.tav2 .affwp-login-form input[type="submit"] {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--tav2-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.tav2 .affwp-login-form input[type="submit"]:hover {
    background: var(--tav2-navy-2);
}
.tav2 .affwp-lost-password a {
    color: var(--tav2-navy-2);
}
.tav2 .tefl-affwp-apply {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--tav2-line);
    text-align: center;
}
.tav2 .tefl-affwp-apply a {
    font-weight: 700;
    color: var(--tav2-navy-2);
}

/* Affiliate Area dashboard */
.tav2 ul#affwp-affiliate-dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0 0 20px;
    list-style: none;
    border-bottom: 1px solid var(--tav2-line);
}
.tav2 li.affwp-affiliate-dashboard-tab a {
    display: block;
    margin: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--tav2-tint);
    color: var(--tav2-ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.tav2 li.affwp-affiliate-dashboard-tab a:hover {
    background: #e6edf0;
}
.tav2 li.affwp-affiliate-dashboard-tab.active a {
    background: var(--tav2-navy);
    color: #fff;
}
.tav2 li.affwp-affiliate-dashboard-tab:last-child a {
    background: transparent;
    color: var(--tav2-muted);
}
.tav2-simple--wide .tav2-card {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .tav2-band {
        padding: 40px 0 80px;
    }
    .tav2-card {
        padding: 24px 18px;
        margin-top: -48px;
    }
    .tav2-prose {
        font-size: 16px;
    }
    .tav2 ul#affwp-affiliate-dashboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
    .tav2 li.affwp-affiliate-dashboard-tab {
        flex: 0 0 auto;
    }
}

/* Affiliate Area > Creatives (AffiliateWP grid view): image-only cards, details open in the plugin's modal. */
.tav2 .affwp-creatives-view--as-grid .affwp-creative-name,
.tav2 .affwp-creatives-view--as-grid [data-content="type"] {
    display: none;
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative {
    border: 1px solid var(--tav2-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--tav2-tint);
    transition: box-shadow .15s ease, transform .15s ease;
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative:hover {
    box-shadow: 0 10px 24px rgba(15, 48, 66, .12);
    transform: translateY(-2px);
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative [data-modal] {
    cursor: zoom-in;
}

/* ---------- Affiliate Area dashboard tabs (AffiliateWP templates) ---------- */

.tav2 .affwp-tab-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tav2-ink);
    margin: 0 0 20px;
}
.tav2 .affwp-tab-content h4:not(:first-child) {
    margin-top: 36px;
}
.tav2 .affwp-tab-content p,
.tav2 .affwp-tab-content .description {
    color: var(--tav2-muted);
}

/* Cards (Affiliate URLs) */
.tav2 .affwp-card {
    border: 1px solid var(--tav2-line);
    border-radius: 14px;
    box-shadow: none;
    background: #fff;
    padding: 0;
    margin: 0 0 20px;
    overflow: hidden;
}
.tav2 .affwp-card__header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}
.tav2 .affwp-card__header p {
    margin: 0;
}
.tav2 .affwp-card__footer {
    border-top: 1px solid var(--tav2-line);
}
.tav2 .affwp-affiliate-link__display {
    display: flex;
    gap: 12px;
}
.tav2 .affwp-affiliate-link__display input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Fields and buttons inside the tabs */
.tav2 .affwp-tab-content input[type="text"],
.tav2 .affwp-tab-content input[type="url"],
.tav2 .affwp-tab-content input[type="email"],
.tav2 .affwp-tab-content select {
    padding: 11px 14px;
    border: 1px solid #cfd8de;
    border-radius: 10px;
    background: #fff;
    color: var(--tav2-ink);
    font-size: 15px;
    max-width: 100%;
}
.tav2 .affwp-tab-content input[readonly] {
    background: var(--tav2-tint);
}
.tav2 .affwp-tab-content label {
    display: block;
    font-weight: 600;
    color: var(--tav2-ink);
    margin: 0 0 6px;
}
.tav2 .affwp-tab-content .button,
.tav2 .affwp-tab-content input[type="submit"],
.tav2 .affwp-tab-content button.button {
    display: inline-block;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--tav2-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}
.tav2 .affwp-tab-content .button:hover,
.tav2 .affwp-tab-content input[type="submit"]:hover {
    background: var(--tav2-navy-2);
}
.tav2 #affwp-generator-toggle-campaign {
    color: var(--tav2-navy-2);
    font-weight: 600;
}

/* Tables (Statistics, Referrals, Payouts, Visits, Coupons) */
.tav2 .affwp-tab-content table.affwp-table {
    width: 100%;
    margin: 0 0 24px;
    border: 1px solid var(--tav2-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}
.tav2 .affwp-tab-content table.affwp-table th {
    background: var(--tav2-tint);
    color: var(--tav2-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--tav2-line);
}
.tav2 .affwp-tab-content table.affwp-table td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--tav2-line);
    vertical-align: middle;
}
.tav2 .affwp-tab-content table.affwp-table tr:last-child td {
    border-bottom: 0;
}
.tav2 .affwp-tab-content .affwp-table-wrap {
    overflow-x: auto;
}
.tav2 .affwp-tab-content .affwp-pagination {
    margin-top: 8px;
}

/* Payouts summary */
.tav2 .affwp-payout-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}
.tav2 .affwp-payout-summary__stat {
    background: var(--tav2-tint);
    border-radius: 12px;
    padding: 16px 18px;
}
.tav2 .affwp-payout-summary__label {
    display: block;
    font-size: 13px;
    color: var(--tav2-muted);
}
.tav2 .affwp-payout-summary__value {
    display: block;
    margin-top: 4px;
    font-size: 24px;
    font-weight: 800;
    color: var(--tav2-navy);
}

/* Graphs filter */
.tav2 #affwp-graphs-filter .tablenav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}
.tav2 #affwp-date-range-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Coupons: make the code stand out */
.tav2 #affwp-affiliate-dashboard-coupons table.affwp-table td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    color: var(--tav2-navy);
    letter-spacing: .03em;
}
.tav2 .affwp-vcc-edit-link-wrap a {
    color: var(--tav2-navy-2);
    font-weight: 600;
}
.tav2 .affwp-vcc-pending-code {
    margin-top: 6px;
    font-size: 14px;
    color: var(--tav2-muted);
}

/* Settings form */
.tav2 #affwp-affiliate-dashboard-profile-form .affwp-wrap {
    display: block;
    margin: 0 0 20px;
}
.tav2 #affwp-affiliate-dashboard-profile-form input[type="email"],
.tav2 #affwp-affiliate-dashboard-profile-form input[type="text"] {
    width: 100%;
    max-width: 480px;
}
.tav2 .affwp-send-notifications-wrap {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.tav2 .affwp-send-notifications-wrap label {
    margin: 0;
    font-weight: 400;
}

@media (max-width: 640px) {
    .tav2 .affwp-affiliate-link__display {
        flex-direction: column;
    }
    .tav2 .affwp-tab-content table.affwp-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Creatives grid: cards follow each banner's own shape (no fixed square). With the masonry script
   (.tefl-masonry, added by ti-affiliate-signup.php) cards pack into columns; without it they sit in a normal grid. */
.tav2 .affwp-creatives-view--as-grid {
    --gap: 16px;
    align-items: start;
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative-preview {
    aspect-ratio: auto;
    height: auto;
    margin: 0;
    padding: 14px;
    border: 0;
    align-items: center;
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
}
.tav2 .affwp-creatives-view--as-grid .affwp-creative[data-type="text_link"] .affwp-creative-preview {
    padding: 18px;
    justify-content: flex-start;
    font-weight: 600;
}
.tav2 .affwp-creatives-view--as-grid.tefl-masonry {
    grid-auto-rows: 4px;
    row-gap: 0;
}

/* ---------- tefl.ie additions ---------- */

/* Why join: icon + text cards (ACF why_choose_us > choose_us_points) */
.tav2-why__card--icon {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
.tav2-why__icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--tav2-navy-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tav2-why__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* the ACF icons are dark line art; show them white on the teal tile */
}
.tav2-why__text {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tav2-ink);
}
.tav2-faq__intro {
    color: var(--tav2-muted);
    margin-bottom: 24px !important;
}
.tav2 .tav2-band__title,
.tav2 .tav2-h2 {
    font-weight: 700;
}

/* Affiliate Area extras below the tabs (affiliatewp/dashboard.php: handbook, affiliate manager, Facebook group) */
.tav2 .tav2-extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--tav2-line);
}
.tav2 .tav2-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--tav2-tint);
    border-radius: 14px;
    padding: 22px;
}
.tav2 .tav2-extra img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}
.tav2 .tav2-extra--manager img {
    border-radius: 50%;
}
.tav2 .tav2-extra__title {
    font-family: Salmond, system-ui, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--tav2-ink);
}
.tav2 .tav2-extra__text,
.tav2 .tav2-extra__text p {
    margin: 0;
    font-size: 15px;
    color: var(--tav2-muted);
}
.tav2 .tav2-extra a.tav2-extra__link {
    margin-top: auto;
    font-weight: 700;
    color: var(--tav2-navy-2);
}
@media (max-width: 900px) {
    .tav2 .tav2-extras {
        grid-template-columns: 1fr;
    }
}
