/* Tien ich Viet 4.1 — compact discovery dashboard, progressive enhancement */
.tiv41-dashboard{margin:18px 0 24px;padding:24px;border:1px solid #d9e8e5;border-radius:22px;background:linear-gradient(135deg,#f2faf8,#f6f8ff);box-shadow:0 10px 30px rgba(15,47,62,.045)}
.tiv41-topline{font-size:12px;font-weight:800;letter-spacing:.08em;color:#08745c;text-transform:uppercase}
.tiv41-dashboard h1,.tiv41-dashboard h2{font-size:clamp(23px,3.5vw,34px);margin:8px 0;color:#142c3d;line-height:1.25}
.tiv41-dashboard>p{font-size:14px;color:#536b7b;line-height:1.6;margin:0 0 18px}
.tiv41-search{display:flex;align-items:center;gap:10px;background:white;border:1px solid #cbdedb;border-radius:14px;padding:0 15px;min-height:54px}
.tiv41-search input{width:100%;border:0;background:transparent;outline:none;font:inherit;font-size:16px;min-width:0;color:#193447}
.tiv41-search:focus-within{outline:3px solid #a8e8d5}
.tiv41-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.tiv41-categories a{background:white;border:1px solid #dbe7e4;border-radius:14px;padding:16px 13px;text-decoration:none;color:#19374a;display:flex;flex-direction:column;gap:6px;min-width:0;transition:transform .15s,border-color .15s}
.tiv41-categories a:hover,.tiv41-categories a:focus-visible{border-color:#159b7d;transform:translateY(-2px)}
.tiv41-categories strong{font-size:14px;line-height:1.4}
.tiv41-categories small{font-size:12px;color:#607687;line-height:1.5}
.tiv41-icon{font-size:24px;line-height:1.3}
.tiv41-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.tiv41-shortcuts a{font-size:12px;font-weight:750;color:#08785c;background:#e3f5ee;border:1px solid #c7e8db;border-radius:999px;padding:9px 13px;text-decoration:none}
.tiv41-disclosure{border:1px solid #dce8e4;border-radius:16px;background:#fff;margin:14px 0;overflow:hidden}
.tiv41-disclosure>summary{cursor:pointer;list-style:none;padding:17px 20px;font-weight:800;color:#183548;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tiv41-disclosure>summary::-webkit-details-marker{display:none}
.tiv41-disclosure>summary:after{content:'+';font-size:24px;color:#087b60}
.tiv41-disclosure[open]>summary:after{content:'−'}
.tiv41-disclosure>section{margin:0!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.tiv41-disclosure>section .overline{display:none}
@media(max-width:820px){.tiv41-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.tiv41-dashboard{padding:18px 14px}.tiv41-categories a{padding:14px 11px}}
@media(max-width:380px){.tiv41-categories{grid-template-columns:1fr 1fr}.tiv41-categories strong{font-size:13px}.tiv41-categories small{font-size:11px}}
@media print{.tiv41-dashboard{display:none}.tiv41-disclosure>summary{display:none}}

/* 4.1.1: Search-first homepage — tools immediately after dashboard */
.tiv41-compact-home>.hero,.tiv41-compact-home>.tiv41-disclosure,.tiv41-compact-home>.source-banner,.tiv41-compact-home>.why,.tiv41-compact-home>.editorial,.tiv41-compact-home>.faq,.tiv41-compact-home>.t40-hero-highlight{display:none}
.tiv41-compact-home.tiv41-expanded>.hero,.tiv41-compact-home.tiv41-expanded>.tiv41-disclosure,.tiv41-compact-home.tiv41-expanded>.source-banner,.tiv41-compact-home.tiv41-expanded>.why,.tiv41-compact-home.tiv41-expanded>.editorial,.tiv41-compact-home.tiv41-expanded>.faq,.tiv41-compact-home.tiv41-expanded>.t40-hero-highlight{display:block}
.tiv41-compact-home .tiv41-dashboard{margin-top:12px;margin-bottom:14px}
.tiv41-compact-home #tools{margin-top:0}
.tiv41-results{background:#fff;border:1px solid #d6e5df;border-radius:14px;padding:8px;margin-top:9px;box-shadow:0 12px 25px rgba(0,0,0,.05)}
.tiv41-results[hidden]{display:none}
.tiv41-results p{font-size:12px;font-weight:800;margin:7px 10px;color:#607486}
.tiv41-results a{display:flex;flex-direction:column;gap:2px;text-decoration:none;border-radius:9px;padding:10px 12px;color:#173449}
.tiv41-results a:hover,.tiv41-results a:focus-visible{background:#eaf7f1}
.tiv41-results a strong{font-size:13px}
.tiv41-results a small{font-size:11px;color:#687e8b}
.tiv41-reveal{display:block;margin:20px auto 25px;padding:12px 20px;background:#fff;border:1px solid #c7dcd4;border-radius:12px;color:#087457;font-weight:800;cursor:pointer}
@media(max-width:640px){.tiv41-dashboard h2{font-size:23px}.tiv41-dashboard>p{margin-bottom:12px}.tiv41-categories{gap:7px;margin-top:12px}.tiv41-categories a{padding:11px 10px;gap:3px}.tiv41-icon{font-size:19px}.tiv41-shortcuts{margin-top:10px}.tiv41-shortcuts a{padding:7px 10px}}

/* Hide legacy promo placed outside main */
.tiv-v38-section{display:none!important}

.tiv41-status{font-size:13px;color:#365b58;margin:8px 2px 0;min-height:1.5em}
.tiv41-status:empty{display:none}
.tiv41-resource-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:16px}
.tiv41-resource-links a{font-size:13px;font-weight:650;color:#17664f;display:flex;gap:5px;align-items:center}
.tiv41-resource-links small{display:none}
.tiv41-resource-links .tiv41-icon{font-size:15px}
#show-more-tools[hidden]{display:none}
.tiv41-compact-home .tiv41-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:640px){.tiv41-compact-home .tiv41-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.tiv41-categories a{display:grid;grid-template-columns:24px 1fr;align-items:center;gap:7px;min-height:54px}.tiv41-categories small{display:none}.tiv41-dashboard h1{font-size:26px}}
@media print{.tiv41-dashboard{display:block;background:none;border:0;box-shadow:none}.tiv41-dashboard>*:not(h1){display:none}}
/* Let the header wrap on tablet widths instead of widening the whole page. */
@media(min-width:641px) and (max-width:1100px){.site-header{height:auto;min-height:94px;padding:18px 0;flex-wrap:wrap;gap:16px}.site-header nav{order:3;flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;gap:12px 20px}.site-header .header-label{margin-left:auto}}

