* { box-sizing: border-box; }

body.mm-letter-page {
    margin: 0 !important;
    min-height: 100vh;
    color: #ffffff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    background:
        linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.78)),
        url('/bg.webp') center/cover fixed no-repeat !important;
}

body.mm-letter-page > table:nth-of-type(1),
body.mm-letter-page > table:nth-of-type(2),
body.mm-letter-page > table:nth-of-type(4) {
    display: none !important;
}

.mm-letter-hero,
.mm-letter-footer {
    width: min(760px, calc(100% - 32px));
    margin: 0 auto;
}

.mm-letter-hero {
    padding: 24px 0 22px;
}

.mm-letter-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 42px;
}

.mm-letter-logo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 12px;
}

.mm-letter-nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.mm-letter-nav a,
.mm-letter-footer a,
.mm-letter-hero-action {
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.mm-letter-nav-links a,
.mm-letter-hero-action,
.mm-letter-footer a {
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    transition: background .2s, transform .2s;
}

.mm-letter-nav-links a:hover,
.mm-letter-hero-action:hover,
.mm-letter-footer a:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}

.mm-letter-kicker {
    margin: 0 0 14px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.mm-letter-hero h1 {
    max-width: 100%;
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.04;
    font-weight: 900;
}

.mm-letter-standfirst {
    max-width: 100%;
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}

.mm-letter-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

body.mm-letter-page > table:nth-of-type(3) {
    background: transparent !important;
}

body.mm-letter-page > table:nth-of-type(3) > tbody > tr > td {
    padding: 0 16px 40px !important;
}

body.mm-letter-page > table:nth-of-type(3) > tbody > tr > td > table {
    max-width: 760px !important;
}

body.mm-letter-page > table:nth-of-type(3) > tbody > tr > td > table > tbody > tr > td {
    color: #ffffff !important;
    padding: 36px clamp(20px, 5vw, 44px) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.12) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.42) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

body.mm-letter-page > table:nth-of-type(3) p,
body.mm-letter-page > table:nth-of-type(3) td,
body.mm-letter-page > table:nth-of-type(3) h1,
body.mm-letter-page > table:nth-of-type(3) h2 {
    color: #ffffff !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

body.mm-letter-page > table:nth-of-type(3) p {
    font-size: 17px !important;
    line-height: 1.72 !important;
    font-weight: 500 !important;
}

body.mm-letter-page > table:nth-of-type(3) h1 {
    font-size: 30px !important;
    line-height: 1.12 !important;
}

body.mm-letter-page > table:nth-of-type(3) h2 {
    font-size: 28px !important;
    line-height: 1.16 !important;
}

body.mm-letter-page > table:nth-of-type(3) a {
    color: #ffffff !important;
}

body.mm-letter-page > table:nth-of-type(3) table[style*="background-color:rgba(219,234,254"],
body.mm-letter-page > table:nth-of-type(3) td[style*="background-color:rgba(219,234,254"] {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.14) !important;
    box-shadow: none !important;
}

body.mm-letter-page > table:nth-of-type(3) td[style*="border-left:4px"] {
    border-left-color: rgba(236,72,153,.82) !important;
}

body.mm-letter-page > table:nth-of-type(3) img {
    max-width: 100%;
}

body.mm-letter-page > table:nth-of-type(3) p:has(a[href="[UNSUBSCRIBEURL]"]) {
    display: none !important;
}

body.mm-letter-page > table:nth-of-type(3) a[href="[UNSUBSCRIBEURL]"] {
    display: none !important;
}

.mm-letter-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 0 36px;
}

@media (max-width: 640px) {
    .mm-letter-hero,
    .mm-letter-footer {
        width: min(100% - 24px, 760px);
    }

    .mm-letter-nav {
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .mm-letter-logo {
        width: 58px;
        height: 58px;
    }

    .mm-letter-nav-links {
        gap: 8px;
    }

    .mm-letter-nav-links a {
        padding: 10px 11px;
        font-size: 12px;
    }

    .mm-letter-hero h1 {
        font-size: 32px;
    }

    .mm-letter-standfirst {
        font-size: 16px;
    }

    body.mm-letter-page > table:nth-of-type(3) > tbody > tr > td {
        padding: 0 12px 30px !important;
    }

    body.mm-letter-page > table:nth-of-type(3) > tbody > tr > td > table > tbody > tr > td {
        padding: 26px 18px !important;
        border-radius: 20px !important;
    }

    body.mm-letter-page > table:nth-of-type(3) p {
        font-size: 16px !important;
    }
}
