/* ══════════════════════════════════════════════════════════════════
   ĐỐ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-head · .dtpt-h2 · .dtpt-h3 · .dtpt-btn · .dtpt-link · .dtpt-icon ·
        .dtpt-step · .dtpt-input
   Mốc responsive bám bản thiết kế 25/11/2026: 1100 · 960 · 920 · 760 · 620 · 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; }
/* "Câu chuyện thành viên" nằm trên nền tối: nút ← → và dải thẻ dùng viền focus cam nhạt, sát hơn (bản thiết kế
   .member-story-controls button / .member-story-list:focus-visible); nút hết chỗ cuộn mờ đi, con trỏ thường. */
#dtpt-root .dtpt-stories :is(button, [tabindex]):focus-visible { outline: 2px solid #ffb053; outline-offset: 3px; }
#dtpt-root .dtpt-stories button:disabled { cursor: default; }
/* Icon thẻ "Bạn được gì khi chủ trì Hub?" là phần tử inline như bản thiết kế (.benefit-icon): dòng chứa icon theo chữ 16px / 1.7
   nên cao hơn icon ~8px — giữ đúng khoảng cách tới tiêu đề thẻ. Theme khai `.vne-v3 svg { display:block }` ngoài @layer. */
#dtpt-root svg.dtpt-benefit-icon { display: inline; vertical-align: baseline; }
#dtpt-root ::selection { background: #f9d5ad; color: #233e4e; }

/* Thanh footer dùng chung (_FooterTailwind — đã theo bản thiết kế, css/site-footer): dưới 768px thanh KHÔNG dính đáy 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 (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #dtpt-root *, #dtpt-root *::before, #dtpt-root *::after { transition: none !important; animation: none !important; }
}

@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): 72px · 64px ≤1100 · 52px ≤760 · 48px ≤480. */
    .dtpt-section { padding-block: 72px; }

    /* Khối tiêu đề đầu mục (bản thiết kế .section-head): cách phần dưới 32px · 24px ≤760. */
    .dtpt-head { margin-bottom: 32px; }

    /* Tiêu đề khối (bản thiết kế .section-head h2): cỡ chữ đổi theo 4 mốc nên khai một chỗ. Tiêu đề h2 KHÔNG nằm trong
       .section-head của bản thiết kế (VNE Hub là gì?, 100 HUB TIÊN PHONG, Câu chuyện thành viên) giãn dòng 1.35 / ≤760 1.4 và
       giãn chữ -.017em — đặt utility tại chỗ. */
    .dtpt-h2 {
        margin: 0;
        font-size: 36px;
        line-height: 1.28;
        font-weight: 650;
        letter-spacing: -.022em;
        text-wrap: balance;
    }
    /* Tiêu đề thẻ (bản thiết kế #noi-dung h3). */
    .dtpt-h3 {
        margin: 0;
        font-size: 20px;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: -.012em;
    }

    /* 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-section { padding-block: 64px; }
        .dtpt-h2 { font-size: 33px; }
    }
    @media (max-width: 960px) {
        .dtpt-wrap { width: calc(100% - 64px); }
    }
    @media (max-width: 760px) {
        .dtpt-wrap { width: calc(100% - 40px); }
        .dtpt-section { padding-block: 52px; }
        .dtpt-head { margin-bottom: 24px; }
        .dtpt-h2 { font-size: 29px; line-height: 1.3; }
        .dtpt-h3 { font-size: 19px; }
        .dtpt-btn { gap: 13px; padding: 12px 21px; }
    }
    @media (max-width: 480px) {
        .dtpt-section { padding-block: 48px; }
        .dtpt-h2 { font-size: 28px; }
    }
}
