/* ══════════════════════════════════════════════════════════════════
   ĐỐI TÁC PHÁT TRIỂN — /doi-tac-phat-trien (Views/Landing/Collaborator)
   ------------------------------------------------------------------
   Giao diện viết bằng utility Tailwind trong markup (biên dịch ở dtpt.min.css, nguồn dtpt.src.css).
   File này viết tay, chỉ giữ những gì utility không làm được:
     1) font Inter tự lưu trữ (dải 100–900 như bản thiết kế) + token phạm vi trang,
     2) vá cascade của theme vne-v3 — luật KHÔNG nằm trong @layer luôn thắng utility,
     3) ghi đè footer dùng chung (_FooterTailwind: thanh cố định + bảng thông tin) cho khớp bản thiết kế — chỉ ở trang này,
     4) primitive dùng lặp lại (@layer components để utility vẫn ghi đè được):
        .dtpt-wrap · .dtpt-section · .dtpt-eyebrow · .dtpt-h2 · .dtpt-h3 · .dtpt-btn · .dtpt-link · .dtpt-icon ·
        .dtpt-step · .dtpt-input
   Mốc responsive bám bản thiết kế 11/2026: 1100 · 960 · 760 · 580 · 560 · 480 · 380px (+ 767.98px của thanh footer).
   ══════════════════════════════════════════════════════════════════ */

/* Inter biến thiên (100–900) — cùng bộ file với /cong-bo-ho-so. Bản thiết kế dùng độ đậm lẻ 550 / 650: nạp từng mức rời
   (Google Fonts 400;500;…) thì trình duyệt làm tròn 650 → 700, chữ đậm hơn bản gốc. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../images/trust-verified/inter-vietnamese.woff2") format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../images/trust-verified/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../../images/trust-verified/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Header dính 85px (71px ≤760px): bấm mục nav / nút "#dang-ky" thì đầu khối không bị header che. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (max-width: 760px) { html { scroll-padding-top: 90px; } }

body.dtpt-page {
    /* Menu / footer dùng chung chạy Inter như bản thiết kế. */
    --font-display: "Inter", Arial, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
    /* Thanh footer cố định (_FooterTailwind, bg-brand-900) lấy đúng màu của bản thiết kế. */
    --brand-900: #172e3b;
    overflow-x: hidden;
    overflow-x: clip;
}

/* base.css khai `.vne-v3 a { color: inherit; text-decoration: none }` NGOÀI @layer nên mọi utility màu chữ / gạch chân
   đặt trên thẻ <a> mất tác dụng. revert-layer trả quyền quyết định về lớp components / utilities. */
#dtpt-root a { color: revert-layer; text-decoration: revert-layer; }

/* Bản thiết kế để <button> con trỏ bàn tay (preflight Tailwind v4 để mặc định); bỏ độ trễ chạm đúp trên điện thoại. */
#dtpt-root button { cursor: pointer; }
#dtpt-root button:disabled { cursor: wait; }
#dtpt-root :is(a, button, summary, label) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#dtpt-root :is(a, button, summary, [tabindex]):focus-visible { outline: 3px solid #e87500; outline-offset: 5px; }
/* Ô logo của dải "Mạng lưới" nằm sát mép khung cuộn — viền focus vẽ vào trong để không bị cắt. */
#dtpt-root .dtpt-network a:focus-visible { outline-offset: -3px; }
/* Dải "Mạng lưới" ẩn thanh cuộn ngang (chốt 11/11/2026 — thanh xám dưới dải logo nhìn thừa): vẫn vuốt / lăn chuột ngang /
   phím mũi tên được, vẫn tự trôi và có nút tạm dừng. */
#dtpt-root .dtpt-network { scrollbar-width: none; -ms-overflow-style: none; }
#dtpt-root .dtpt-network::-webkit-scrollbar { display: none; }
#dtpt-root ::selection { background: #f9d5ad; color: #233e4e; }

/* Thanh footer cố định dùng chung (_FooterTailwind) — bám đúng số đo thanh footer của bản thiết kế ở mọi bề ngang.
   CHỈ ghi đè ở trang này: component dùng chung giữ nguyên cho các trang khác (thanh đó hiện ở mọi trang từ 768px).
   Khác component: line-height cố định 21px; lề ngang 32px (≤1023) · 16px (≤819) · 12px (≤380); khoảng cách các mục
   8px (≤819); ẩn icon quả cầu (≤380); "Hỗ trợ tài nguyên" xếp flex như mục "Liên hệ". Dưới 768px các mục phụ đã ẩn sẵn
   (hidden md:…) — đúng như bản thiết kế, không cần ghi đè. */
body.dtpt-page #tp-footer-tw { line-height: 21px; }
@media (min-width: 768px) {
    body.dtpt-page #tp-footer-tw > div > div:last-child li:nth-child(2) { display: flex; align-items: center; }
}
@media (max-width: 1023px) {
    body.dtpt-page #tp-footer-tw { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 819px) {
    body.dtpt-page #tp-footer-tw { padding-left: 16px; padding-right: 16px; }
    body.dtpt-page #tp-footer-tw > div { gap: 10px; }
    body.dtpt-page #tp-footer-tw > div > div,
    body.dtpt-page #tp-footer-tw > div > div > ul { gap: 8px; }
}
/* Bản thiết kế 11/2026: dưới 768px thanh footer KHÔNG dính đáy nữa mà nằm cuối trang — đáy màn hình nhường cho nút
   "Đăng ký" dính đáy của trang (Index.cshtml). #dtpt-root bỏ luôn khoảng đệm 56px ở mốc này (lte-767:pb-[0]). */
@media (max-width: 767.98px) {
    body.dtpt-page #tp-footer-tw { position: static; }
}
@media (max-width: 380px) {
    body.dtpt-page #tp-footer-tw { padding-left: 12px; padding-right: 12px; }
    body.dtpt-page #tp-footer-tw > div > div:last-child li :is(svg, i) { display: none; }
}

/* Bảng "Thông tin VNEtrust" mở từ thanh footer (bottom-sheet của _FooterTailwind) — bám .tp-footer-tw-sheet /
   .homepage-footer-* của bản thiết kế. Nội dung giữ của component; trang này chỉ đổi màu, nhịp dòng, khoảng cách, cỡ logo.
   Khung nội dung = div thứ 2 của sheet (div thứ 1 là thanh nút đóng dính trên). */
body.dtpt-page .tp-footer-tw-sheet {
    max-height: 85dvh;
    overscroll-behavior: contain;
    color: #233e4e;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 -10px 40px rgba(22, 44, 79, .16);
}
body.dtpt-page .tp-footer-tw-sheet button[data-footer-close]:hover { background-color: #edf3f7; }
body.dtpt-page .tp-footer-tw-sheet a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Khẩu hiệu: bản thiết kế ghi "Trade with Trust™" — chuỗi dùng chung Footer_Tagline thiếu ™ nên thêm ở trang này. */
body.dtpt-page .tp-footer-tw-sheet > div:last-child > h1:first-child { color: #0b1115; line-height: 1.4; letter-spacing: -.5px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > h1:first-child::after { content: "™"; }
/* 3 cột link: mỗi dòng cao theo chữ nền 16px/1.7 (link 13.5px nằm trong), cách nhau 9px. */
body.dtpt-page .tp-footer-tw-sheet section h3 { color: #0b1115; line-height: 1.5; }
body.dtpt-page .tp-footer-tw-sheet section ul { font-size: inherit; }
body.dtpt-page .tp-footer-tw-sheet section li { margin: 0; }
body.dtpt-page .tp-footer-tw-sheet section li + li { margin-top: 9px; }
body.dtpt-page .tp-footer-tw-sheet section a { color: #536c7b; font-size: 13.5px; line-height: 1.65; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > hr { margin: 28px 0; border-top-color: #d8e3ea; }
/* "NÂNG TẦM THƯƠNG HIỆU" + dòng phụ + dải logo (logo tối đa 200px, không đệm ngang). */
body.dtpt-page .tp-footer-tw-sheet > div:last-child > hr + h1 { margin-top: 0; color: #0b1115; line-height: 1.4; font-weight: 750; letter-spacing: .1px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > h5 { margin: 4px 0 20px; color: #5c7280; font-size: 16px; line-height: 1.7; font-weight: 400; }
body.dtpt-page .tp-footer-tw-sheet div:has(> .img-hover-swap) { padding: 12px 0; }
body.dtpt-page .tp-footer-tw-sheet .img-hover-swap { max-width: 200px; object-fit: contain; }
/* Hợp tác chiến lược / Bản quyền / Đơn vị vận hành. */
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div.text-center { max-width: 1110px; margin: 0 auto 26px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div.text-center > h2 { margin-bottom: 10px; color: #0b1115; line-height: 1.5; font-weight: 750; letter-spacing: .1px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div.text-center > p { color: #536c7b; overflow-wrap: anywhere; }
/* Dòng cuối: © + 2 link (hiện cả trên điện thoại, xuống dòng từng mục như bản thiết kế) · mạng xã hội. */
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child { gap: 22px; padding-bottom: 30px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child > div:first-child { flex-wrap: wrap; gap: 10px; color: #5c7280; line-height: 1.7; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child > div:first-child ul { display: contents; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child > div:first-child a { color: inherit; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child > div:last-child { gap: 10px; }
body.dtpt-page .tp-footer-tw-sheet > div:last-child > div:last-child > div:last-child a { border-radius: 6px; }
@media (max-width: 1024px) {
    body.dtpt-page .tp-footer-tw-sheet > div:last-child { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 819px) {
    body.dtpt-page .tp-footer-tw-sheet > div:last-child { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #dtpt-root *, #dtpt-root *::before, #dtpt-root *::after { transition: none !important; animation: none !important; }
    body.dtpt-page #tp-footer-tw-modal :is(.tp-footer-tw-sheet, .tp-footer-tw-backdrop) { transition: none; }
}

@layer components {
    /* Khung nội dung 1200px, lề 48px mỗi bên (32px ≤960 · 20px ≤760). */
    .dtpt-wrap { width: calc(100% - 96px); max-width: 1200px; margin-inline: auto; }

    /* Khoảng đệm trên / dưới của một khối (bản thiết kế .section): 52px · 40px ≤760 · 34px ≤480. */
    .dtpt-section { padding-block: 52px; }

    /* Nhãn nhỏ đầu khối (bản thiết kế .eyebrow). Màu mặc định cam đậm; khối nào khác màu thì đặt utility tại chỗ. */
    .dtpt-eyebrow {
        margin: 0 0 12px;
        color: #df5700;
        font-size: 13px;
        line-height: 1.6;
        font-weight: 600;
        letter-spacing: .07em;
    }

    /* Tiêu đề khối / tiêu đề thẻ (bản thiết kế #noi-dung h2 / h3): cỡ chữ đổi theo 4 mốc nên khai một chỗ. */
    .dtpt-h2 {
        margin: 0;
        font-size: 36px;
        line-height: 1.35;
        font-weight: 650;
        letter-spacing: -.017em;
        text-wrap: balance;
    }
    .dtpt-h3 {
        margin: 0;
        font-size: 21px;
        line-height: 1.5;
        font-weight: 600;
        letter-spacing: -.015em;
    }

    /* Nút chính (bản thiết kế .button). */
    .dtpt-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        min-height: 54px;
        padding: 13px 25px;
        border: 1px solid #2f5368;
        border-radius: 7px;
        background-color: #2f5368;
        color: #fff;
        font-size: 16px;
        line-height: 1.4;
        font-weight: 600;
        cursor: pointer;
        transition: background-color .18s, transform .18s, box-shadow .18s;
    }
    .dtpt-btn:hover { background-color: #234356; box-shadow: 0 6px 16px rgba(35, 63, 79, .08); transform: translateY(-2px); }
    .dtpt-btn:disabled { opacity: .75; cursor: wait; transform: none; box-shadow: none; }

    /* Link gạch chân cam nhạt (bản thiết kế .text-link). */
    .dtpt-link {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding-block: 5px;
        border-bottom: 1px solid #d7a477;
        font-size: 14px;
        line-height: 1.6;
        font-weight: 700;
        transition: color .18s, gap .18s;
    }
    .dtpt-link:hover { color: #ff8a00; gap: 19px; }

    /* Icon nét (bản thiết kế .icon) — hình lấy từ sprite ở Index.cshtml qua <use href="#dtpt-i-…">. */
    .dtpt-icon {
        width: 22px;
        height: 22px;
        flex: none;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
        vertical-align: middle;
    }

    /* Số thứ tự trong vòng tròn (bản thiết kế .step-index). */
    .dtpt-step {
        display: inline-grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border: 1px solid #cbdbe4;
        border-radius: 50%;
        background-color: #edf4f8;
        color: #2f5368;
        font-size: 13px;
        line-height: 1;
        font-weight: 650;
        font-variant-numeric: tabular-nums;
    }

    /* Ô nhập của form đăng ký (bản thiết kế .register-fields input / select / textarea). */
    .dtpt-input {
        display: block;
        width: 100%;
        min-height: 47px;
        margin-top: 5px;
        padding: 9px 11px;
        border: 1px solid #bbcdd7;
        border-radius: 7px;
        background-color: #f6f8f8;
        color: #233e4e;
        font-size: 16px;
        line-height: 1.45;
        font-weight: 400;
    }
    textarea.dtpt-input { resize: vertical; }
    .dtpt-input:focus-visible { border-color: #2f5368; outline: 2px solid #2f5368; outline-offset: 1px; }
    /* Preflight Tailwind v4 pha màu placeholder theo màu chữ; bản thiết kế để màu mặc định của trình duyệt. */
    .dtpt-input::placeholder { color: #757575; opacity: 1; }

    @media (max-width: 1100px) {
        .dtpt-h2 { font-size: 32px; }
        .dtpt-h3 { font-size: 20px; }
    }
    @media (max-width: 960px) {
        .dtpt-wrap { width: calc(100% - 64px); }
    }
    @media (max-width: 760px) {
        .dtpt-wrap { width: calc(100% - 40px); }
        .dtpt-section { padding-block: 40px; }
        .dtpt-eyebrow { font-size: 12px; }
        .dtpt-h2 { font-size: 29px; line-height: 1.4; }
        .dtpt-btn { gap: 13px; padding: 12px 21px; }
    }
    @media (max-width: 480px) {
        .dtpt-section { padding-block: 34px; }
        .dtpt-h2 { font-size: 27px; }
        .dtpt-h3 { font-size: 19px; }
    }
}
