/* Base
 * Brand: NNTmux blue color scheme (mirrored from resources/css/app.css `[data-color-scheme="blue"]`).
 * CSS variables don't render in most mail clients, so values are inlined here. */

body,
body *:not(html):not(style):not(br):not(tr):not(code) {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    position: relative;
}

body {
    -webkit-text-size-adjust: none;
    background-color: #f8fafc;
    color: #334155;
    height: 100%;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    width: 100% !important;
}

p,
ul,
ol,
blockquote {
    line-height: 1.5;
    text-align: start;
}

a {
    color: #2563eb;
}

a img {
    border: none;
}

/* Typography */

h1 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    text-align: start;
}

h2 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    text-align: start;
}

h3 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    text-align: left;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
    text-align: left;
    color: #334155;
}

p.sub {
    font-size: 12px;
    color: #64748b;
}

img {
    max-width: 100%;
}

/* Layout */

.wrapper {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    width: 100%;
}

.content {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Header */

.header {
    padding: 28px 0 18px;
    text-align: center;
    background-color: #f8fafc;
}

.header a {
    color: #0f172a;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
}

/* Logo */

.logo {
    height: 56px;
    margin-top: 4px;
    margin-bottom: 6px;
    max-height: 56px;
    width: auto;
}

/* Body */

.body {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    background-color: #f8fafc;
    border-bottom: 1px solid #f8fafc;
    border-top: 1px solid #f8fafc;
    margin: 0;
    padding: 0;
    width: 100%;
}

.inner-body {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 600px;
    background-color: #ffffff;
    border-color: #e2e8f0;
    border-radius: 10px;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    margin: 0 auto;
    padding: 0;
    width: 600px;
}

/* Body prose links only — do not target `.button` anchors or CTA label text
   becomes the same blue as the fill after CSS inlining (looks "blank"). */
.inner-body .content-cell p a,
.inner-body .content-cell li a,
.inner-body .content-cell td a,
.inner-body .content-cell th a,
.inner-body .content-cell blockquote a,
.inner-body .panel-content a,
.inner-body .subcopy a {
    color: #2563eb;
    word-break: break-all;
}

/* Subcopy */

.subcopy {
    border-top: 1px solid #e2e8f0;
    margin-top: 28px;
    padding-top: 24px;
}

.subcopy p {
    font-size: 13px;
    color: #64748b;
}

/* Footer */

.footer {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 600px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 600px;
}

.footer p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.footer a {
    color: #64748b;
    text-decoration: underline;
}

/* Tables */

.table table {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    margin: 24px auto;
    width: 100%;
}

.table th {
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    text-align: left;
}

.table td {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.content-cell {
    max-width: 100vw;
    padding: 36px 40px;
}

/* Buttons */

.action {
    -premailer-cellpadding: 0;
    -premailer-cellspacing: 0;
    -premailer-width: 100%;
    margin: 28px auto;
    padding: 0;
    text-align: center;
    width: 100%;
    float: unset;
}

.button {
    -webkit-text-size-adjust: none;
    border-radius: 6px;
    color: #fff;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.button-blue,
.button-primary {
    background-color: #2563eb;
    border-bottom: 10px solid #2563eb;
    border-left: 22px solid #2563eb;
    border-right: 22px solid #2563eb;
    border-top: 10px solid #2563eb;
}

.button-green,
.button-success {
    background-color: #16a34a;
    border-bottom: 10px solid #16a34a;
    border-left: 22px solid #16a34a;
    border-right: 22px solid #16a34a;
    border-top: 10px solid #16a34a;
}

.button-red,
.button-error {
    background-color: #dc2626;
    border-bottom: 10px solid #dc2626;
    border-left: 22px solid #dc2626;
    border-right: 22px solid #dc2626;
    border-top: 10px solid #dc2626;
}

/* Keep CTA label readable if a generic `a { color: … }` or inliner order wins */
.inner-body a.button,
.inner-body a.button-primary,
.inner-body a.button-blue,
.inner-body a.button-success,
.inner-body a.button-green,
.inner-body a.button-error,
.inner-body a.button-red {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-decoration: none !important;
}

/* Panels */

.panel {
    border-left: #2563eb solid 4px;
    border-radius: 0 6px 6px 0;
    margin: 22px 0;
    overflow: hidden;
}

.panel-content {
    background-color: #eff6ff;
    color: #1e3a8a;
    padding: 16px 20px;
}

.panel-content p {
    color: #1e3a8a;
    font-size: 15px;
}

.panel-item {
    padding: 0;
}

.panel-item p:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Utilities */

.break-all {
    word-break: break-all;
}
