/* Cloudappie Tech Notes / template tech-note-v1. Semantic article HTML only. */
.article-detail-page .article-byline{margin-bottom:12px;padding-bottom:18px}
.article-detail-page .article-publisher{margin:0 0 32px;color:#6c8092;font-size:.78rem;line-height:1.6;overflow-wrap:anywhere}
.article-template-body{margin:0;background:#f4f7fb;color:#18314a;font:16px/1.65 "Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif}
.article-template-body *,.article-document *{box-sizing:border-box}.article-template-body a{color:inherit;text-decoration:none}.article-template-body p{margin-top:0}.article-preview-masthead{background:#081a2f;color:white;min-height:76px;padding:22px max(6%,calc((100% - 1080px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px}.article-preview-masthead>strong{font-size:1.4rem;letter-spacing:-.055em}.article-preview-masthead>strong>span{color:#62d2ed}.article-preview-masthead>span{font-size:.66rem;letter-spacing:.2em;color:#86a8c0}.article-document{background:#f4f7fb;color:#18314a;padding:50px 5% 65px;font:16px/1.65 "Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif}.article-paper{max-width:1000px;margin:0 auto;background:#fff;border:1px solid #e0e8f0;border-radius:17px;padding:clamp(28px,6vw,72px);box-shadow:0 14px 48px #14345406}.article-kicker{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:24px;color:#4c7c9c;font-size:.65rem;font-weight:650;letter-spacing:.14em;text-transform:uppercase}.article-kicker>span:first-child{background:#eaf6fa;border:1px solid #cfe6f0;border-radius:6px;padding:6px 10px;font-size:.63rem;letter-spacing:.08em;color:#2d779b}.article-kicker-separator{color:#c5d4df}.article-headline{font-size:clamp(2rem,4.7vw,3.6rem)!important;line-height:1.1!important;letter-spacing:-.055em!important;font-weight:650!important;color:#102b44!important;max-width:820px!important;margin:0 0 24px!important;overflow-wrap:anywhere}.article-deck{font-size:clamp(1rem,2.1vw,1.18rem)!important;line-height:1.8!important;color:#6c8092!important;max-width:780px;margin:0 0 28px!important;overflow-wrap:anywhere}.article-byline{display:flex;align-items:center;gap:13px;margin:0 0 39px;padding:0 0 30px;border-bottom:1px solid #e4ebf2;color:#2f4a63}.article-author-mark{width:41px;height:41px;display:grid;place-items:center;background:linear-gradient(135deg,#113955,#235f80);color:#8be0f3;border-radius:50%;font-weight:700;font-size:1rem;flex:none}.article-byline>div>strong{display:block;font-weight:650;font-size:.8rem}.article-byline>div>span{display:block;color:#91a0ae;font-size:.7rem;margin-top:2px}.article-rich-content{font-size:1rem;line-height:1.9;color:#52677c;overflow-wrap:anywhere}.article-rich-content h2{font-size:1.65rem!important;line-height:1.28!important;letter-spacing:-.035em!important;color:#173952!important;margin:40px 0 18px!important;max-width:none!important;font-weight:650!important}.article-rich-content h3{font-size:1.2rem!important;line-height:1.4!important;letter-spacing:-.02em!important;color:#244761!important;margin:30px 0 14px!important;font-weight:650!important}.article-rich-content h4{font-size:1.02rem!important;line-height:1.5!important;color:#35556c!important;margin:26px 0 12px!important}.article-rich-content>:first-child{margin-top:0!important}.article-rich-content p{font-size:1rem!important;line-height:1.9!important;color:#52677c!important;margin:0 0 20px!important;white-space:normal!important}.article-rich-content strong,.article-rich-content b{color:#2c4a62;font-weight:650}.article-rich-content a{color:#1681ad!important;text-decoration:underline!important;text-decoration-color:#96c9db!important;text-underline-offset:4px;word-break:break-word}.article-rich-content a:hover{color:#095673!important}.article-rich-content ul,.article-rich-content ol{padding-left:24px;margin:14px 0 27px}.article-rich-content li{padding-left:6px;margin:10px 0;line-height:1.8}.article-rich-content li::marker{color:#358eaf}.article-rich-content blockquote,.article-rich-content aside{padding:26px 29px;margin:31px 0;background:#edf7fa;border:1px solid #d9eaf0;border-left:4px solid #4cbedb;border-radius:0 10px 10px 0;color:#3d6c83}.article-rich-content blockquote p,.article-rich-content aside p{font-size:1.08rem!important;line-height:1.8!important;color:#3b6b80!important;margin-bottom:0!important}.article-rich-content blockquote p+p,.article-rich-content aside p+p{margin-top:13px!important}.article-rich-content blockquote strong{color:#24627b}.article-rich-content pre{white-space:pre-wrap;word-break:break-word;background:#0d263c;color:#b9deed;border:1px solid #1c3f56;border-radius:12px;padding:25px 27px;margin:27px 0;overflow:auto;font: .82rem/1.85 "SFMono-Regular",Consolas,"Liberation Mono",monospace}.article-rich-content code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.86em;background:#edf3f7;color:#28718e;padding:3px 6px;border-radius:4px}.article-rich-content pre code{padding:0;background:transparent;color:inherit;font-size:inherit;white-space:pre-wrap}.article-rich-content table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dbe5ee;border-radius:10px;margin:26px 0 31px;overflow:hidden;font-size:.84rem;table-layout:fixed;background:#fff}.article-rich-content table caption{padding:10px;text-align:left;color:#46677f;font-size:.78rem}.article-rich-content th,.article-rich-content td{padding:14px 17px;vertical-align:top;border-bottom:1px solid #e4ecf3;border-right:1px solid #e4ecf3;text-align:left;font-weight:400;word-break:break-word;line-height:1.7}.article-rich-content th{font-size:.72rem;letter-spacing:.03em;background:#eff5f9;color:#42647c;font-weight:650}.article-rich-content th:last-child,.article-rich-content td:last-child{border-right:0}.article-rich-content tr:last-child td{border-bottom:0}.article-rich-content hr{height:1px;border:0;background:#e1eaf1;margin:35px 0}.article-rich-content div,.article-rich-content span{max-width:100%}.article-endnote{margin-top:46px;padding:32px 34px;border-radius:13px;background:linear-gradient(120deg,#0d2b44,#194c66);color:white}.article-endnote>span{font-size:.57rem;letter-spacing:.17em;color:#83c0d5;font-weight:600}.article-endnote h2{font-size:1.45rem!important;line-height:1.3;letter-spacing:-.03em;margin:12px 0 9px!important;color:#fff!important}.article-endnote p{font-size:.85rem!important;color:#a8cadb!important;line-height:1.7!important;margin:0 0 19px!important}.article-endnote>a{display:inline-flex;align-items:center;gap:27px;border:1px solid #6fbed44d;padding:10px 14px;border-radius:7px;color:#b9ecf5!important;font-size:.76rem;font-weight:600;text-decoration:none!important}.article-endnote>a:hover{background:#ffffff0b}.article-template-footer{padding:25px 6%;background:#081a2f;color:#6c8fa9;text-align:center;font-size:.68rem}.article-public-breadcrumb{max-width:1000px;margin:0 auto 23px;display:flex;gap:9px;align-items:center;color:#89a0b2;font-size:.75rem}.article-public-breadcrumb>a{color:#547c98}.article-public-breadcrumb>a:hover{color:#237ba5}.article-detail-page{padding-top:37px}.article-detail-page .article-paper{margin-top:0}.article-detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}.article-detail-tags>span{background:#f2f6f9;border:1px solid #e1e9ef;color:#7890a3;padding:5px 10px;font-size:.67rem;border-radius:5px}.article-preview .article-paper{box-shadow:none}.article-template-body a:focus-visible,.article-document a:focus-visible{outline:3px solid #2c9fc5;outline-offset:4px}
@media(max-width:650px){.article-document{padding:25px 4% 34px}.article-paper{padding:29px 23px;border-radius:12px}.article-headline{font-size:2.1rem!important;letter-spacing:-.045em!important;margin-bottom:20px!important}.article-deck{font-size:1rem!important;line-height:1.75!important}.article-kicker{font-size:.52rem;gap:8px;margin-bottom:21px}.article-kicker>span:first-child{font-size:.56rem;padding:5px 8px}.article-byline{margin-bottom:30px;padding-bottom:24px}.article-rich-content,.article-rich-content p{font-size:.93rem!important;line-height:1.85!important}.article-rich-content h2{font-size:1.43rem!important;margin-top:32px!important}.article-rich-content h3{font-size:1.12rem!important}.article-rich-content blockquote,.article-rich-content aside{padding:21px;margin:25px 0}.article-rich-content blockquote p,.article-rich-content aside p{font-size:1rem!important}.article-rich-content pre{padding:20px;font-size:.73rem}.article-rich-content th,.article-rich-content td{padding:11px 10px;font-size:.73rem}.article-endnote{padding:26px 23px;margin-top:33px}.article-endnote h2{font-size:1.3rem!important}.article-preview-masthead{padding:20px 6%;min-height:67px}.article-preview-masthead>strong{font-size:1.25rem}.article-preview-masthead>span{font-size:.58rem}.article-public-breadcrumb{font-size:.69rem;margin-bottom:20px}}
@media print{.article-document{padding:0;background:white}.article-paper{border:0;box-shadow:none;padding:20px}.article-preview-masthead,.article-template-footer,.article-endnote,.article-public-breadcrumb{display:none}.article-rich-content pre,.article-rich-content blockquote,.article-rich-content table{break-inside:avoid}.article-headline{font-size:32pt!important}}


/* Cloudappie article body overrides - append to the END of article-template.css.
   Uses markup retained by the current HTML sanitizer.
   .article-paper covers public pages, saved previews and live previews.
   Keep this block unlayered: the existing rules are unlayered too. */

/* 1. Override the old !important typography rules. */
.article-paper .article-rich-content,
.article-paper .article-rich-content * {
    box-sizing: border-box;
}

.article-paper .article-rich-content {
    color: #344861 !important;
    font-size: 1rem !important;
    line-height: 1.85 !important;
    overflow-wrap: anywhere;
}

    .article-paper .article-rich-content p {
        color: inherit !important;
        font-size: inherit !important;
        line-height: inherit !important;
        margin: 0 0 1.15rem !important;
        white-space: normal !important;
    }

    .article-paper .article-rich-content h2 {
        color: #12345b !important;
        font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.025em !important;
        margin: 2.5rem 0 1.15rem !important;
    }

    .article-paper .article-rich-content h3 {
        color: #255392 !important;
        font-size: 1.18rem !important;
        font-weight: 700 !important;
        line-height: 1.45 !important;
        margin: 1.65rem 0 0.8rem !important;
    }

    .article-paper .article-rich-content h4 {
        color: #31587c !important;
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
        margin: 1.4rem 0 0.7rem !important;
    }

    .article-paper .article-rich-content strong,
    .article-paper .article-rich-content b {
        color: inherit;
        font-weight: 700;
    }

    .article-paper .article-rich-content a[href] {
        color: #1358ba !important;
        text-decoration: underline !important;
        text-decoration-color: #95b9ed !important;
        text-underline-offset: 0.2em;
    }

        .article-paper .article-rich-content a[href]:hover {
            color: #7042b8 !important;
            text-decoration-color: currentColor !important;
        }

    .article-paper .article-rich-content a:not([href]) {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* 2. Introductory panels in the supplied article fragments. */
    .article-paper .article-rich-content > div > div:first-child > p:first-child,
    .article-paper .article-rich-content > div > p:first-of-type {
        padding: 1.3rem 1.4rem;
        color: #20466b !important;
        background: linear-gradient(120deg, #eaf4ff, #eefbf9);
        border-left: 4px solid #21a9c7;
        border-radius: 0 12px 12px 0;
    }

    .article-paper .article-rich-content blockquote,
    .article-paper .article-rich-content aside {
        color: #204f69;
        background: #edf8fb;
        border: 1px solid #cee7ef;
        border-left: 4px solid #21a9c7;
        border-radius: 0 12px 12px 0;
        padding: 1.3rem 1.4rem;
        margin: 1.7rem 0;
    }

        .article-paper .article-rich-content blockquote > p:last-child,
        .article-paper .article-rich-content aside > p:last-child {
            margin-bottom: 0 !important;
        }

    /* 3. Restore spacing and badges on headings with two direct spans.
   Example: <h2><span>01</span><span>Section title</span></h2> */
    .article-paper .article-rich-content h2:has(> span:first-child + span:last-child) {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
    }

        .article-paper .article-rich-content h2:has(> span:first-child + span:last-child) > span:first-child {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 2.5rem;
            min-height: 2.5rem;
            padding: 0.25rem;
            background: linear-gradient(135deg, #1768d5, #7352bf);
            color: #fff !important;
            border-radius: 10px;
            font-size: 0.9rem !important;
            font-weight: 750;
            line-height: 1 !important;
            letter-spacing: 0;
        }

        .article-paper .article-rich-content h2:has(> span:first-child + span:last-child) > span:last-child {
            display: block;
            min-width: 0;
        }

    /* 4. Keep normal lists and reference numbering readable. */
    .article-paper .article-rich-content ul,
    .article-paper .article-rich-content ol {
        margin: 1rem 0 1.5rem;
        padding-left: 1.5rem;
    }

    .article-paper .article-rich-content li {
        margin: 0.65rem 0;
        padding-left: 0.2rem;
        line-height: 1.8;
    }

        .article-paper .article-rich-content li::marker {
            color: #246ac4;
            font-weight: 700;
        }

    /* 5. Numbered steps already contain their own number spans.
   Only this structure loses native numbering; reference lists keep it. */
    .article-paper .article-rich-content ol:has(> li > span + div) {
        padding: 0;
        list-style: none;
    }

    .article-paper .article-rich-content ol > li:has(> span + div) {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.1rem;
        margin: 0 0 0.8rem;
        background: #f2f7ff;
        border: 1px solid #dbe6f6;
        border-radius: 12px;
    }

        .article-paper .article-rich-content ol > li:has(> span + div) > span:empty {
            display: none;
        }

        .article-paper .article-rich-content ol > li:has(> span + div) > span:not(:empty) {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 2.4rem;
            min-height: 2.4rem;
            padding: 0.2rem;
            background: #1c63c7;
            color: #fff;
            border-radius: 50%;
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1;
        }

        .article-paper .article-rich-content ol > li:has(> span + div) > div {
            flex: 1 1 0;
            min-width: 0;
        }

    /* 6. Restore the existing FAQ cards: heading followed by answer div. */
    .article-paper .article-rich-content > div > div > div:has(> h3:first-child + div > p) {
        margin: 1rem 0;
        padding: 1.2rem 1.3rem;
        background: #f7faff;
        border: 1px solid #dce6f5;
        border-left: 4px solid #7960c6;
        border-radius: 12px;
    }

        .article-paper .article-rich-content > div > div > div:has(> h3:first-child + div > p) > h3 {
            margin-top: 0 !important;
        }

    /* 7. Hybrid article: the existing adjacent Pros / Cons panels. */
    .article-paper .article-rich-content > div > div > div:has(> div > h3 + ul) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        margin: 1.3rem 0 2rem;
    }

        .article-paper .article-rich-content > div > div > div:has(> div > h3 + ul) > div {
            min-width: 0;
            padding: 1.25rem;
            background: #ecf8f2;
            border: 1px solid #cce6da;
            border-top: 4px solid #21836b;
            border-radius: 12px;
        }

            .article-paper .article-rich-content > div > div > div:has(> div > h3 + ul) > div + div {
                background: #fff7e9;
                border-color: #f0dfbf;
                border-top-color: #ca872c;
            }

            .article-paper .article-rich-content > div > div > div:has(> div > h3 + ul) > div > h3 {
                display: flex;
                align-items: center;
                gap: 0.6rem;
                margin-top: 0 !important;
            }

/* 8. Narrow screens. Keep this AFTER the older mobile rules. */
@media (max-width: 650px) {
    .article-paper .article-rich-content {
        font-size: 0.97rem !important;
    }

        .article-paper .article-rich-content h2 {
            font-size: 1.4rem !important;
            margin-top: 2rem !important;
        }

        .article-paper .article-rich-content > div > div > div:has(> div > h3 + ul) {
            grid-template-columns: 1fr;
        }
}

/* Keep badge numbers readable when print backgrounds are disabled. */
@media print {
    .article-paper .article-rich-content h2:has(> span:first-child + span:last-child) > span:first-child,
    .article-paper .article-rich-content ol > li:has(> span + div) > span {
        color: #111 !important;
        background: none !important;
    }
}

/* Template-owned Canadian history panel; kept outside article-rich-content. */
.article-paper .article-history {
    box-sizing: border-box;
    margin: 2.5rem 0 0;
    padding: 1.5rem 1.65rem;
    background: linear-gradient(120deg, #eef6fd, #f6faff);
    border: 1px solid #d5e6f4;
    border-left: 4px solid #4a9fc8;
    border-radius: 12px;
    color: #344861 !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
    overflow-wrap: anywhere;
}

.article-paper .article-history > h2 {
    max-width: none !important;
    margin: 0 0 0.8rem !important;
    color: #173f64 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em !important;
}

.article-paper .article-history > p {
    margin: 0 0 0.85rem !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
}

.article-paper .article-history > p:last-child {
    margin-bottom: 0 !important;
}

.article-paper .article-history strong {
    color: #21496b !important;
    font-weight: 700 !important;
}

/* Keep the existing dark CTA styling, with a compact gap after the history. */
.article-paper .article-history + .article-endnote {
    margin-top: 1rem;
}

@media (max-width: 650px) {
    .article-paper .article-history {
        margin-top: 2rem;
        padding: 1.2rem;
        font-size: 0.95rem !important;
    }

    .article-paper .article-history > h2 {
        font-size: 1.2rem !important;
    }
}

@media print {
    .article-paper .article-history {
        margin-top: 1.5rem;
        padding: 1rem;
        background: none !important;
        border-color: #b7b7b7;
        border-left-color: #777;
        color: #111 !important;
        break-inside: avoid;
    }

    .article-paper .article-history > h2,
    .article-paper .article-history strong {
        color: #111 !important;
    }
}
