/* 4 cổng V2 — navy, logo orange, explicit text statuses. */
.gates-v2{--gate-navy:#142d4b;--gate-orange:#f68c1f;max-width:1260px;margin:auto;overflow-wrap:anywhere}
.gates-v2 .page-head h1{max-width:950px}.gate-version{display:flex;align-items:flex-start;gap:20px;padding:18px 22px;margin:20px 0 30px;background:#f3f6fa;border:1px solid #d7e0e8;border-left:4px solid var(--gate-orange);border-radius:12px;color:var(--gate-navy)}
.gate-version p{margin:0;line-height:1.65}.gate-version-tag{white-space:nowrap;font-weight:750;color:#9b4a09;font-size:13px}.gate-main-section{margin:26px 0}.gates-v2 h2{font-size:23px;margin:0 0 22px;color:var(--gate-navy)}
.gate-v2-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.gates-v2 .gate-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;padding:22px;border-radius:16px;border:1px solid #dce3eb;background:#fff;box-shadow:0 6px 20px #142d4b08;color:var(--gate-navy);transition:transform .15s,border-color .15s}
.gates-v2 .gate-card:hover{transform:translateY(-3px);border-color:var(--gate-orange)}.gates-v2 .gate-top{display:flex;align-items:center;justify-content:space-between}.gates-v2 .gate-letter{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--gate-navy);color:#fff;font-size:22px;font-weight:750}.gate-flow-arrow{font-size:24px;color:var(--gate-orange)}.gates-v2 .gate-card h3{font-size:21px;margin:18px 0 10px}.gates-v2 .gate-card p{font-size:15px;line-height:1.65;margin:0 0 16px}.gate-card-time{border-top:1px solid #e6eaf0;padding-top:14px;margin-top:auto}.gate-card-time>span{text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:750;color:#52647b}.gate-card-time p{padding-top:6px}.gates-v2 .gate-open{display:flex;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #e6eaf0;color:#a65009;font-weight:750;font-size:14px}
.gate-single-source{color:#52647b;line-height:1.7}.gates-v2 .panel{padding:26px;border-radius:14px}.gates-v2 .panel p,.gates-v2 .panel li{line-height:1.8}.gates-v2 ol,.gates-v2 ul{padding-left:24px}.gates-v2 li+li{margin-top:12px}.gate-status-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 0}.gate-status-strip p{flex-basis:100%;font-size:14px;margin:0;color:#52647b}.gate-result{border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:13px;font-weight:700;background:#f7f9fc;color:#263c50}.gate-result-0{background:#edf6f1;border-color:#b2cfbe;color:#205c3b}.gate-result-1,.gate-result-2{background:#fff5e9;border-color:#e4c49e;color:#824309}.gate-result-3{background:#fff0ee;border-color:#dfb3ad;color:#9a3226}
.gates-v2 .gate-feedback{display:flex;gap:20px;align-items:center;background:var(--gate-navy);color:#fff;padding:22px;border-radius:12px;margin:26px 0}.gates-v2 .gate-feedback strong{color:var(--gate-orange);white-space:nowrap}.gate-management{margin-top:40px}.gates-v2 .os-disclosure,.gates-v2 .gate-details{border:1px solid #dce3eb;background:white;border-radius:12px;margin:14px 0;overflow:hidden}.gates-v2 summary{padding:19px 22px;cursor:pointer;font-weight:700;color:var(--gate-navy);line-height:1.6}.gates-v2 details>div{padding:8px 24px 24px}.gates-v2 summary:focus-visible,.gates-v2 a:focus-visible{outline:3px solid var(--gate-orange);outline-offset:4px}.gate-reference-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gate-reference-list a{padding:14px;background:#f3f6fa;border-radius:8px;line-height:1.6}
.gates-v2 .gate-switch{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.gates-v2 .gate-switch a{padding:12px 18px;border:1px solid #dce3eb;border-radius:8px;color:var(--gate-navy);text-decoration:none;font-weight:700}.gates-v2 .gate-switch a[aria-current]{background:var(--gate-navy);color:white;border-bottom:3px solid var(--gate-orange)}.gate-section-nav{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 30px}.gate-section-nav a{font-size:14px;font-weight:650}.gate-main-section[id]{scroll-margin-top:90px}
.gates-v2 .gate-check-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:15px;line-height:1.7;border:1px solid #dce3eb;border-radius:12px;overflow:hidden}.gate-check-table caption{text-align:left;font-size:14px;color:#52647b;padding:12px 0}.gates-v2 .gate-check-table thead th{background:var(--gate-navy);color:#fff;font-size:13px;text-transform:none;letter-spacing:0}.gate-check-table th,.gate-check-table td{padding:18px;text-align:left;vertical-align:top;border-bottom:1px solid #e3e9ef}.gate-check-table thead th:first-child{width:24%}.gate-check-table thead th:nth-child(2){width:46%}.gate-check-table thead th:nth-child(3){width:30%}.gate-check-table tbody th{font-weight:700;color:var(--gate-navy);background:#f6f8fb}.gate-check-table tbody tr:last-child>*{border-bottom:0}.gate-check-number{display:block;color:#a65009;font-size:12px;margin-bottom:6px}.gate-check-intro{margin-bottom:10px;color:#52647b}.gate-stop-v2{border:1px solid #e7c4b3!important;border-left:5px solid var(--gate-orange)!important;background:#fff8f2!important}.gate-stop-label{padding-top:16px;border-top:1px solid #ead7c8;color:#934510}.gate-boundary{padding:18px;background:#f0f4f8;border-left:3px solid var(--gate-orange);line-height:1.8;margin-top:20px}.gate-form-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 4px}.gates-v2 .gate-form-buttons a{min-height:48px;display:flex;align-items:center;white-space:normal;text-align:left}.gates-v2 pre{max-width:100%;overflow:auto}.gates-v2 .os-toolbar{flex-wrap:wrap;line-height:1.6}.gates-v2 .table-scroll{max-width:100%;overflow-x:auto}
@media(max-width:1150px){.gate-v2-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.gate-version{display:block;padding:16px}.gate-version-tag{display:block;margin-bottom:8px}.gate-v2-grid{grid-template-columns:1fr;gap:12px}.gates-v2 .gate-card{padding:20px}.gates-v2 .gate-card h3{margin:12px 0 8px}.gates-v2 .panel{padding:18px}.gates-v2 h2{font-size:21px}.gates-v2 .gate-feedback{display:block}.gates-v2 .gate-feedback strong{display:block;margin-bottom:8px}.gate-reference-list{grid-template-columns:1fr}.gates-v2 details>div{padding:4px 16px 20px}.gates-v2 summary{padding:16px}.gates-v2 .gate-check-table,.gate-check-table tbody,.gate-check-table tr{display:block;table-layout:auto;border:0}.gate-check-table thead{display:none}.gate-check-table caption{display:block}.gate-check-table tbody tr{border:1px solid #dce3eb;border-radius:12px;overflow:hidden;margin-bottom:16px;background:#fff}.gates-v2 .gate-check-table tbody th,.gates-v2 .gate-check-table td{display:block;width:auto;padding:14px 16px;border:0}.gate-check-table td:before{content:attr(data-label);display:block;font-size:12px;font-weight:750;color:#a65009;margin-bottom:6px}.gate-check-table tbody th:before{content:attr(data-label);display:block;font-size:12px;font-weight:650;color:#52647b;margin-bottom:4px}.gate-check-number{float:right;margin-left:10px}.gates-v2 .gate-check-table td+td{border-top:1px solid #edf0f4;background:#fafbfc}.gate-form-buttons{display:grid;grid-template-columns:1fr}.gates-v2 .gate-switch{display:grid;grid-template-columns:1fr 1fr}.gates-v2 .gate-switch a{padding:10px;font-size:14px}.gate-status-strip{gap:7px}.gates-v2 .page-head h1{font-size:30px}.gate-reference-v2 .its-source-content{overflow-wrap:anywhere}}

.gates-v2 .gate-switch,.gates-v2 .gate-section-nav{flex-direction:row}.gates-v2 .gate-section-nav a{color:var(--gate-navy);background:white;border:1px solid #dce3eb}.gates-v2 .gate-section-nav a:hover{background:var(--gate-navy);color:white}

@media(max-width:640px){.gates-v2 .gate-main-section[id]{scroll-margin-top:160px}}

/* One compact card set at the control hub; checklist content stays canonical. */
.gates-v2.gate-entry{margin:0;max-width:none}
.gate-entry .gate-v2-grid{gap:14px;margin:16px 0 20px;align-items:start}
.gate-entry .gate-card{padding:18px;height:auto;min-height:0;border-radius:12px}
.gate-entry .gate-card h3{margin:0 0 10px;font-size:20px;line-height:1.4}
.gate-entry .gate-card p{margin:0 0 12px;line-height:1.6}
.gate-entry .gate-card-time{margin-top:0;padding-top:10px}
.gate-entry .gate-card-time>span{font-size:13px;text-transform:none;letter-spacing:0}
.gate-entry .gate-card-time p{padding-top:4px;margin-bottom:10px}
.gate-entry .gate-open{align-items:center;min-height:44px;padding:10px 12px;border:0;border-radius:7px;background:var(--gate-orange);color:var(--gate-navy);box-sizing:border-box}
.gate-entry .gate-open span{color:var(--gate-navy)}
@media(max-width:640px){.gate-entry .gate-v2-grid{grid-template-columns:1fr}.gate-entry .gate-card{padding:18px}.gate-entry .gate-card h3{margin:0 0 8px}}
.gate-entry .gate-open,.gate-entry .gate-open span{color:var(--gate-navy)!important}

/* Control hub cards: navy base with logo-orange accents. */
.gates-v2.gate-entry .gate-card{background:var(--gate-navy);border-color:var(--gate-navy);border-top:3px solid var(--gate-orange);color:#fff}
.gates-v2.gate-entry .gate-card:hover{background:#1b3859;border-color:var(--gate-orange)}
.gates-v2.gate-entry .gate-card h3{color:var(--gate-orange)}
.gates-v2.gate-entry .gate-card p{color:#edf2f7}
.gates-v2.gate-entry .gate-card-time{border-top-color:#ffffff30}
.gates-v2.gate-entry .gate-card-time>span{color:var(--gate-orange)}
