/* =====================================================================
   TRANG CHI TIẾT DỰ ÁN (resources/views/frontend/detail/*)
   Chỉ dùng lớp dt-*: file này còn được nạp trong trang in PDF cùng toàn bộ brochure.
   Chữ trên ảnh luôn nằm trên lớp tối chuyển màu (không phủ phim đỏ), tên dự án chữ trắng
   với vạch vàng; màu đỏ chỉ dành cho nút chính, thanh tiến trình và điểm nhấn nhỏ.
   ===================================================================== */
:root {
    --dt-gold: #f5aa58;
    --dt-gold-ink: #7a5a20;
    --dt-red-ink: #c4161c;
    --dt-ink: #222;
    --dt-muted: #4a4a4a;
    --dt-line: rgba(34, 34, 34, .12);
    --dt-gold-grad: linear-gradient(90deg, rgba(167, 123, 52, 1) 0%, rgba(245, 170, 88, 1) 49%, rgba(167, 123, 52, 1) 100%);
    --dt-pad-top: 4.5rem;
    --dt-pad-bottom: 6rem;
    --dt-pad-x: 1rem;
    --dt-rail: 0px;
}
@media only screen and (min-width: 62rem) {
    :root {
        --dt-pad-top: 5rem;
        --dt-pad-bottom: 6.5rem;
        --dt-pad-x: clamp(2rem, 3.4vw, 4rem);
        --dt-rail: 4.5rem;
    }
}
@media only screen and (min-width: 62rem) and (max-height: 760px) {
    :root {
        --dt-pad-top: 4.25rem;
        --dt-pad-bottom: 5.5rem;
    }
}

/* ---------- Khung chung của mỗi màn ---------- */
.dt-sec {
    color: var(--dt-ink);
}
.dt-sec .section-bg {
    overflow: hidden;
    background-color: #141414;
}
.dt-sec.dt-light .section-bg {
    background-color: #f3f1ee;
}
/* Không transform .section-bg vì main.js dùng nó để trượt ảnh, hiệu ứng phóng ảnh đặt ở img */
.dt-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform-origin: 50% 60%;
}
.dt-hero.no-media .section-bg {
    background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(227, 6, 19, .22) 0%, rgba(227, 6, 19, 0) 70%), #1b1b1b;
}
.dt-scrim {
    pointer-events: none;
}
.dt-content {
    display: flex;
    flex-direction: column;
    padding: var(--dt-pad-top) calc(var(--dt-pad-x) + var(--dt-rail)) var(--dt-pad-bottom) var(--dt-pad-x);
}
.dt-dark {
    color: #fff;
}
/* Thanh cuộn của các ô nội dung: mảnh, trung tính thay cho thanh đỏ chung của trang */
.dt-sec .overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 34, 34, .28) transparent;
}
.dt-dark .overflow-y-auto {
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
}

/* ---------- Chữ ---------- */
.dt-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    margin: 0 0 .9rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--dt-red-ink);
}
.dt-dark .dt-eyebrow {
    color: var(--dt-gold);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.dt-eyebrow__icon {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.dt-eyebrow__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}
.dt-title {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: var(--dt-ink);
}
.dt-title--xl {
    font-size: clamp(1.75rem, 1.1rem + 3.2vw, 5rem);
}
.dt-title--lg {
    font-size: clamp(1.5rem, 1rem + 2vw, 3.25rem);
}
.dt-title--md {
    font-size: clamp(1.35rem, .95rem + 1.4vw, 2.5rem);
}
.dt-dark .dt-title {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.dt-rule {
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 2px;
    margin: 1.1rem 0;
    background: var(--dt-gold-grad);
}
.dt-loc {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--dt-muted);
}
.dt-dark .dt-loc {
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.dt-loc svg {
    flex: 0 0 auto;
    width: 1.05em;
    height: 1.05em;
    margin-top: .22em;
    fill: var(--dt-red-ink);
}
.dt-dark .dt-loc svg {
    fill: var(--dt-gold);
}

/* ---------- Số liệu lớn ---------- */
.dt-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1rem;
}
.dt-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    min-width: 9rem;
    max-width: 22rem;
    padding: .25rem 1.75rem;
    text-align: center;
}
.dt-stat__value.is-short {
    white-space: nowrap;
}
.dt-stat + .dt-stat {
    border-left: 1px solid rgba(245, 170, 88, .45);
}
.dt-stat__value {
    font-family: var(--heading-font);
    font-size: clamp(1.25rem, .9rem + 1.2vw, 2.25rem);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
    text-wrap: balance;
}
/* Chữ dẫn "khoảng", "từ" không nhỏ hơn 11px */
.dt-stat__value small {
    font-family: var(--body-font);
    font-size: max(.42em, .6875rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: .45em;
    opacity: .85;
}
.dt-stat__note {
    font-size: var(--fs-xs);
    font-style: italic;
    line-height: 1.3;
    color: rgba(255, 255, 255, .85);
}
.dt-stat__label {
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
}

/* ---------- Thông số dạng bảng (nền sáng) ---------- */
.dt-lead {
    margin: 0 0 1rem;
    font-size: var(--fs-md);
    line-height: 1.65;
    color: #333;
}
.dt-specs {
    margin: 0;
    border-top: 1px solid var(--dt-line);
}
.dt-spec {
    padding: .7rem 0;
    border-bottom: 1px solid var(--dt-line);
}
.dt-spec dt {
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dt-gold-ink);
}
.dt-spec dd {
    margin: .2rem 0 0;
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--dt-ink);
}
.dt-rich {
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--dt-ink);
}
.dt-rich table {
    width: 100% !important;
    height: auto !important;
    border: 0;
    border-collapse: collapse;
}
.dt-rich tr {
    height: auto !important;
}
.dt-rich td {
    display: block;
    width: auto !important;
    height: auto !important;
    padding: 0 0 1rem;
    border: 0;
    vertical-align: top;
}
.dt-rich p {
    margin: 0 0 .5rem;
    font-weight: 600;
}
.dt-rich ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--dt-line);
}
.dt-rich li {
    padding: .55rem 0;
    border-bottom: 1px solid var(--dt-line);
}
.dt-rich li strong,
.dt-rich li b {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--dt-gold-ink);
}
.dt-belongs {
    margin: 1.25rem 0 0;
    font-size: var(--fs-sm);
    font-style: italic;
    color: var(--dt-muted);
}
.dt-belongs a {
    color: var(--dt-red-ink);
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Nút ---------- */
.dt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2rem;
}
.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    max-width: 100%;
    min-height: 2.75rem;
    padding: .5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    background: rgba(20, 20, 20, .18);
    color: #fff;
    font-family: var(--body-font);
    font-size: var(--fs-sm);
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.dt-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dt-btn svg,
.dt-card__go svg,
.dt-list__go svg,
.dt-back svg,
.dt-cue svg,
.dt-zoom svg {
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dt-btn--primary {
    border-color: var(--color-red);
    background: var(--color-red);
}
.dt-btn:hover {
    border-color: #fff;
    background: #fff;
    color: var(--color-red);
}
.dt-light .dt-btn {
    border-color: rgba(34, 34, 34, .55);
    background: transparent;
    color: var(--dt-ink);
}
.dt-light .dt-btn:hover {
    border-color: var(--dt-ink);
    background: var(--dt-ink);
    color: #fff;
}
.dt-light .dt-btn--primary {
    border-color: var(--color-red);
    background: var(--color-red);
    color: #fff;
}
.dt-btn:focus-visible,
.dt-tile:focus-visible,
.dt-card a:focus-visible,
.dt-list a:focus-visible,
.dt-feature:focus-visible,
.dt-back:focus-visible,
.dt-crumbs a:focus-visible,
.dt-cue:focus-visible,
.dt-belongs a:focus-visible {
    outline: 2px solid var(--dt-gold);
    outline-offset: 3px;
}
.dt-next {
    display: none;
}

/* ---------- Ô ảnh ---------- */
.dt-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: .25rem;
    background: #1d1d1d;
}
.dt-tile img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .8s ease;
}
.dt-tile:hover img {
    transform: scale(1.05);
}
/* Ô ảnh trên nền sáng: nền chờ màu lụa thay cho ô đen khi ảnh chưa tải xong */
.dt-light .dt-tile,
.dt-light .dt-feature__media,
.dt-light .dt-card__media,
.dt-light .dt-card__media img {
    background-color: #e6e1d9;
}
/* Ảnh tải chậm: detail.js gắn dt-wait lúc chờ để chỉ thấy nền chờ, ảnh về đủ mới hiện (không hiện nửa ảnh đang tải) */
img.dt-wait {
    opacity: 0;
}
.dt-zoom {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(20, 20, 20, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .3s ease, transform .3s ease;
}
.dt-tile:hover .dt-zoom,
.dt-tile:focus-visible .dt-zoom {
    opacity: 1;
    transform: none;
}
@media (hover: none) {
    .dt-zoom {
        opacity: 1;
        transform: none;
    }
}
.dt-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 16, 16, .6);
    color: #fff;
    font-family: var(--heading-font);
    font-size: var(--fs-2xl);
}

/* ---------- 1. Màn mở đầu ---------- */
.dt-scrim--hero {
    background:
        linear-gradient(180deg, rgba(14, 14, 14, .6) 0%, rgba(14, 14, 14, 0) 24%),
        radial-gradient(ellipse 62% 58% at 50% 52%, rgba(14, 14, 14, .74) 0%, rgba(14, 14, 14, .5) 55%, rgba(14, 14, 14, .22) 100%),
        linear-gradient(0deg, rgba(14, 14, 14, .85) 0%, rgba(14, 14, 14, 0) 45%);
}
.dt-hero .dt-content {
    align-items: center;
    justify-content: center;
    padding-left: max(var(--dt-pad-x), var(--dt-rail));
    padding-right: max(var(--dt-pad-x), var(--dt-rail));
    text-align: center;
}
.dt-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 64rem;
}
.dt-hero__inner > * {
    max-width: 100%;
}
.dt-hero .dt-eyebrow,
.dt-hero .dt-loc {
    justify-content: center;
}
.dt-hero .dt-loc {
    max-width: 44rem;
    font-style: italic;
}
.dt-hero .dt-rule {
    margin-inline: auto;
}
/* Dải số liệu trên tấm kính mờ cho chữ nhỏ luôn rõ trên mọi ảnh */
.dt-hero .dt-stats {
    margin-top: 1.75rem;
    padding: .9rem .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1rem;
    background: rgba(14, 14, 14, .4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.dt-cue {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .25rem .5rem;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .85);
    font-family: var(--body-font);
    font-size: var(--fs-xs);
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
    transform: translateX(-50%);
}
.dt-cue span {
    display: none;
}
.dt-cue svg {
    width: 1.25rem;
    height: 1.25rem;
    animation: bridgeArrow 1.6s ease-in-out infinite;
}

/* ---------- 2. Thông tin dự án ---------- */
.dt-overview .dt-content {
    gap: 1rem;
}
.dt-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.dt-info__head {
    flex: 0 0 auto;
}
.dt-info__body {
    flex: 0 1 auto;
    min-height: 0;
    margin-top: 1.25rem;
    padding-right: .5rem;
}
.dt-info .dt-next {
    margin-top: 1rem;
}
.dt-mosaic {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: .5rem;
    height: 30vw;
    max-height: 13rem;
}
/* Bộ ảnh riêng cho bản in (bắt đầu từ ảnh 0) chỉ hiện trong trang in */
.dt-only-print,
.dt-mosaic.dt-mosaic--print {
    display: none;
}
.dt-mosaic .dt-tile:nth-child(n+3) {
    display: none;
}
.dt-mosaic .dt-tile:first-child {
    border-top-left-radius: 2rem;
}
.dt-mosaic--1 {
    grid-template-columns: 1fr;
}

/* ---------- 3. Tường ảnh ---------- */
.dt-wall .dt-content {
    gap: 1rem;
}
.dt-wall__head {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}
.dt-wall__title {
    min-width: 0;
}
.dt-wall__title .dt-eyebrow {
    margin-bottom: .5rem;
}
.dt-wall__scroll {
    flex: 1 1 auto;
    min-height: 0;
}
.dt-wall__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 22vh;
    gap: .5rem;
}
.dt-wall__grid .dt-tile:first-child {
    grid-column: span 2;
}
.dt-wall__grid .dt-more {
    display: none;
}
.dt-wall .dt-next {
    flex: 0 0 auto;
}

/* ---------- 4. Mục lục dự án thành phần ---------- */
.dt-index .dt-content {
    gap: 1rem;
}
.dt-index__head {
    flex: 0 0 auto;
}
.dt-cards {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: .75rem;
    min-height: 0;
    padding: .25rem .25rem .75rem;
}
/* Điện thoại: thẻ nằm ngang, ảnh nhỏ bên trái, tên chữ đậm trên nền trắng */
.dt-card {
    position: relative;
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    flex: 0 0 auto;
    overflow: hidden;
    border-top-left-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .45);
    transition: transform .4s ease, box-shadow .4s ease;
}
.dt-card__main,
.dt-card__media {
    display: contents;
    color: inherit;
}
.dt-card__media img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    min-height: 5.75rem;
    max-width: none;
    object-fit: cover;
    background: #1d1d1d;
    transition: transform .8s ease;
}
.dt-card__no {
    position: absolute;
    top: .45rem;
    left: .6rem;
    z-index: 2;
    font-family: var(--heading-font);
    font-size: var(--fs-md);
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.dt-card__name {
    position: relative;
    display: -webkit-box;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    padding: .7rem .9rem 0;
    font-family: var(--heading-font);
    font-size: var(--fs-sm);
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--dt-ink);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.dt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    padding: .45rem .9rem .6rem;
    font-size: var(--fs-xs);
    color: var(--dt-muted);
}
.dt-card__go {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--dt-red-ink);
    font-weight: 600;
    white-space: nowrap;
}
.dt-card__go:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 5. Màn của từng dự án thành phần ---------- */
.dt-scrim--side {
    background: linear-gradient(0deg, rgba(14, 14, 14, .92) 0%, rgba(14, 14, 14, .8) 50%, rgba(14, 14, 14, .45) 70%, rgba(14, 14, 14, .1) 88%);
}
.dt-chapter.no-media .dt-scrim--side {
    background-color: rgba(16, 16, 16, .35);
}
.dt-chapter .dt-content {
    flex-direction: row;
    align-items: flex-end;
}
.dt-chapter__body {
    width: 100%;
    max-height: 58vh;
    max-height: 58dvh;
    padding-right: .5rem;
}
.dt-chapter__no {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin: 0 0 .75rem;
    font-family: var(--heading-font);
    font-size: var(--fs-md);
    color: var(--dt-gold);
}
.dt-chapter__no b {
    font-size: var(--fs-3xl);
    font-weight: 400;
    line-height: 1;
}
.dt-chapter__no span {
    opacity: .85;
}
/* Khối chữ của màn dự án thành phần hẹp: chia cột đều để nhãn dài tự xuống dòng, không đẩy số liệu sang hàng mới */
.dt-chapter .dt-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    justify-content: start;
    margin-top: 1.25rem;
}
.dt-chapter .dt-stats[data-count="1"] {
    grid-auto-columns: minmax(0, max-content);
}
.dt-chapter .dt-stat {
    align-items: flex-start;
    min-width: 0;
    padding: .25rem 1.1rem;
    text-align: left;
}
/* Cột hẹp: cả hàng số liệu dùng chung một cỡ chữ, thu theo bề rộng mỗi cột (--dt-n cột) và cụm số dài nhất (--dt-fit) để không tràn sang cột bên */
.dt-chapter .dt-stats {
    container-type: inline-size;
}
.dt-chapter .dt-stat__value {
    font-size: min(clamp(1.15rem, .85rem + .9vw, 1.8rem), calc((100cqi / var(--dt-n, 3) - 2.2rem) / (var(--dt-fit, 6) * .62)));
}
.dt-chapter .dt-stat__value.is-short {
    white-space: normal;
}
.dt-chapter .dt-stat:first-child {
    padding-left: 0;
}
.dt-chapter .dt-actions {
    justify-content: flex-start;
    margin-top: 1.5rem;
}
.dt-thumbs {
    display: none;
    gap: .6rem;
    margin-top: 1.5rem;
}
.dt-thumbs .dt-tile {
    flex: 0 0 auto;
    width: 7.5rem;
    aspect-ratio: 4 / 3;
    border-radius: .5rem;
}
.dt-thumbs .dt-zoom {
    top: .4rem;
    right: .4rem;
    width: 1.75rem;
    height: 1.75rem;
}
.dt-thumbs .dt-more {
    font-size: var(--fs-lg);
}

/* ---------- 6. Màn kết ---------- */
.dt-end .dt-content {
    justify-content: center;
}
.dt-end__scroll {
    flex: 0 1 auto;
    min-height: 0;
    padding-right: .25rem;
}
.dt-end__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.dt-end__lead,
.dt-end__more {
    min-width: 0;
}
.dt-feature {
    display: block;
    color: #fff;
}
.dt-feature__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-top-left-radius: 3rem;
    background: #1d1d1d;
}
.dt-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .8s ease;
}
.dt-feature:hover img {
    transform: scale(1.04);
}
.dt-feature__media::after,
.dt-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 16, 16, .45) 0%, rgba(16, 16, 16, 0) 28%),
        linear-gradient(0deg, rgba(16, 16, 16, .88) 0%, rgba(16, 16, 16, .4) 45%, rgba(16, 16, 16, 0) 75%);
}
.dt-feature__body {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.dt-feature__type {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dt-gold);
}
.dt-feature__name {
    position: relative;
    padding-top: .7rem;
    font-family: var(--heading-font);
    font-size: var(--fs-xl);
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.dt-feature__name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--dt-gold-grad);
}
.dt-feature__loc {
    font-size: var(--fs-sm);
    font-style: italic;
    line-height: 1.4;
    color: rgba(255, 255, 255, .9);
}
.dt-end__lead .dt-actions,
.dt-end__more .dt-actions {
    justify-content: flex-start;
    margin-top: 1.5rem;
}
.dt-end__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: .25rem;
}
.dt-end__facts p {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 0;
}
.dt-end__facts b {
    font-family: var(--heading-font);
    font-size: var(--fs-3xl);
    font-weight: 400;
    line-height: 1;
    color: var(--dt-red-ink);
}
.dt-end__facts span {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dt-muted);
}
.dt-end__title {
    margin: 0 0 .75rem;
    font-family: var(--heading-font);
    font-size: var(--fs-lg);
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--dt-ink);
}
.dt-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--dt-line);
}
.dt-list a {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--dt-line);
    color: inherit;
}
.dt-list__img {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .4rem;
    background: #ddd8d0;
}
.dt-list__img img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .6s ease;
}
.dt-list__txt strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.35;
    color: var(--dt-ink);
    transition: color .3s ease;
}
.dt-list__txt span {
    display: block;
    margin-top: .2rem;
    font-size: var(--fs-xs);
    color: #65696f;
}
.dt-list__go {
    color: var(--dt-red-ink);
    opacity: .5;
    transition: opacity .3s ease, transform .3s ease;
}
.dt-list a:hover strong {
    color: var(--dt-red-ink);
}
.dt-list a:hover img {
    transform: scale(1.06);
}
.dt-list a:hover .dt-list__go {
    opacity: 1;
    transform: translateX(3px);
}

/* ---------- Thanh đường dẫn cố định góc trên trái ---------- */
.dt-topbar {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: .6rem;
    max-width: calc(54vw - 1.5rem);
    padding: .25rem .9rem .25rem .25rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, .82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--body-font);
    font-size: var(--fs-xs);
    line-height: 1.2;
}
.dt-back {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-red);
    color: #fff;
    transition: background .3s ease, color .3s ease;
}
.dt-back:hover {
    background: #fff;
    color: var(--color-red);
}
.dt-crumbs {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.dt-crumbs li {
    display: none;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}
.dt-crumbs li.is-up {
    display: flex;
}
.dt-crumbs a,
.dt-crumbs span {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dt-crumbs a:hover {
    color: var(--dt-gold);
}
.dt-crumbs [aria-current] {
    color: var(--dt-gold);
}
@media only screen and (min-width: 90rem) {
    .dt-crumbs a,
    .dt-crumbs span {
        max-width: 24rem;
    }
}

/* Bong bóng mời chat che nút chính và ô ảnh của trang dự án: ẩn lời mời, giữ nút mở chat */
body:has(.dt-page) .hudcb-invite {
    display: none !important;
}

/* ---------- Logo trang trí: dời sang phải vì góc trái là thanh đường dẫn ---------- */
.dt-sec .section-heading.absolute {
    left: auto;
    right: 2rem;
    top: .55rem;
}
.dt-sec:not(.dt-hero) .section-heading {
    display: none;
}

/* ---------- Thanh chương trên trang dự án ---------- */
.dt-page ~ .story-rail .story-label {
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================== Điện thoại ngang, máy tính bảng nhỏ ===================== */
@media only screen and (min-width: 36rem) {
    .dt-mosaic .dt-tile:nth-child(3) {
        display: block;
    }
    .dt-mosaic {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .dt-mosaic--1 {
        grid-template-columns: 1fr;
    }
    .dt-mosaic--2 {
        grid-template-columns: 1fr 1fr;
    }
    .dt-wall__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dt-wall__grid .dt-tile:first-child {
        grid-column: span 3;
    }
}
@media only screen and (min-width: 48rem) {
    .dt-cue span {
        display: block;
    }
    .dt-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        gap: 1.25rem;
        padding: .5rem .5rem .75rem;
    }
    .dt-card {
        display: flex;
        flex-direction: column;
        flex: 1 1 15rem;
        max-width: 20rem;
        border-top-left-radius: 2.5rem;
        box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45);
    }
    .dt-cards[data-count="2"] .dt-card,
    .dt-cards[data-count="3"] .dt-card {
        max-width: 26rem;
    }
    /* 5-6 dự án: xếp 3 + 2 (hoặc 3 + 3) cho cân, không để một thẻ lẻ loi */
    .dt-cards[data-count="5"] .dt-card,
    .dt-cards[data-count="6"] .dt-card {
        flex: 0 1 calc((100% - 2.5rem) / 3);
        max-width: 22rem;
    }
    .dt-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 46px -24px rgba(0, 0, 0, .5);
    }
    .dt-card:hover .dt-card__media img {
        transform: scale(1.05);
    }
    .dt-card__main {
        display: block;
    }
    .dt-card__media {
        position: relative;
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #1d1d1d;
    }
    .dt-card__media img {
        position: absolute;
        inset: 0;
        min-height: 0;
    }
    .dt-card__no {
        top: .9rem;
        left: 1.4rem;
        font-size: var(--fs-lg);
        color: var(--dt-gold);
    }
    .dt-card__name {
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: .9rem;
        z-index: 2;
        padding: .6rem 0 0;
        overflow: visible;
        font-size: clamp(.95rem, .85rem + .3vw, 1.2rem);
        line-height: 1.2;
        color: #fff;
        text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
    }
    .dt-card__name::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--dt-gold-grad);
    }
    .dt-card__meta {
        flex: 1 1 auto;
        align-self: stretch;
        padding: .75rem 1rem;
    }
}
@media only screen and (max-width: 47.99rem) {
    .dt-card__media::after {
        content: none;
    }
    .dt-stat {
        flex: 1 1 0;
        min-width: 0;
        padding: .25rem .5rem;
    }
    .dt-stat__value,
    .dt-chapter .dt-stat__value {
        font-size: min(var(--fs-md), calc((100cqi / var(--dt-n, 3) - 1.2rem) / (var(--dt-fit, 6) * .62)));
    }
    .dt-stat__value.is-short {
        white-space: normal;
    }
    .dt-stat__label {
        letter-spacing: .06em;
    }
    .dt-chapter .dt-stat {
        padding: .25rem .6rem;
    }
    .dt-stat__value small {
        display: block;
        vertical-align: baseline;
    }
    /* Cỡ chữ số liệu đo theo bề rộng tấm kính nên tấm kính trải hết bề ngang */
    .dt-hero .dt-stats {
        container-type: inline-size;
        align-self: stretch;
        padding: .75rem .25rem;
    }
    .dt-chapter .dt-stat:first-child {
        padding-left: 0;
    }
    /* Nhãn nút dài (bản tiếng Anh) xuống dòng thay vì bị cắt hay tràn ngang */
    .dt-btn span {
        white-space: normal;
        text-align: center;
    }
}

/* ===================== Máy tính (từ 62rem) ===================== */
@media only screen and (min-width: 62rem) {
    .dt-next {
        display: none !important;
    }
    .dt-sec .section-heading.absolute {
        top: var(--space-5);
        right: calc(var(--dt-pad-x) + var(--dt-rail) + 1rem);
    }
    .dt-sec:not(.dt-hero) .section-heading {
        display: block;
    }
    .dt-hero .section-heading.absolute {
        right: calc(var(--dt-pad-x) + 2.5rem);
    }
    .dt-topbar {
        max-width: calc(100vw - 1.5rem - var(--dt-rail) - 18rem);
    }
    .dt-crumbs li {
        display: flex;
    }
    .dt-crumbs li + li::before {
        content: '\203A';
        flex: 0 0 auto;
        opacity: .6;
    }

    /* Thông tin dự án: chữ trái, ảnh phải */
    .dt-overview .dt-content {
        display: grid;
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        align-items: center;
        gap: clamp(2rem, 4vw, 5rem);
    }
    .dt-overview.no-media .dt-content {
        grid-template-columns: minmax(0, 48rem);
        justify-content: center;
    }
    .dt-info {
        max-height: 100%;
    }
    .dt-overview .dt-mosaic {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: .75rem;
        height: min(64vh, 40rem);
        max-height: 100%;
    }
    .dt-overview .dt-mosaic--print {
        display: none;
    }
    .dt-mosaic .dt-tile:nth-child(n+3) {
        display: block;
    }
    .dt-mosaic .dt-tile:first-child {
        grid-row: span 2;
        border-top-left-radius: 6rem;
    }
    .dt-overview .dt-mosaic--2 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
    .dt-overview .dt-mosaic--1 {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }
    .dt-mosaic--1 .dt-tile:first-child,
    .dt-mosaic--2 .dt-tile:first-child {
        grid-row: auto;
    }
    .dt-overview .dt-mosaic--portrait {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
    }
    .dt-mosaic--portrait .dt-tile:first-child {
        grid-row: auto;
        border-top-left-radius: 4rem;
    }

    /* Tường ảnh: 1 ảnh lớn + 4 ảnh nhỏ */
    .dt-wall .dt-content {
        justify-content: center;
        gap: 1.5rem;
    }
    .dt-wall__scroll {
        flex: 0 1 44rem;
    }
    .dt-wall__grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-auto-rows: 0;
        gap: .75rem;
        height: 100%;
    }
    .dt-wall__grid .dt-tile:first-child {
        grid-column: span 2;
        grid-row: span 2;
        border-top-left-radius: 6rem;
    }
    .dt-wall__grid .dt-tile:nth-child(n+6) {
        display: none;
    }
    .dt-wall__grid .dt-more {
        display: flex;
    }

    /* Mục lục dự án thành phần */
    .dt-index .dt-content {
        justify-content: center;
        gap: 1.25rem;
    }
    .dt-index__head {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .dt-index__head .dt-title {
        max-width: 62rem;
    }
    .dt-index__head .dt-rule {
        margin: 1.1rem auto 0;
    }
    /* Lưới thẻ co theo chiều cao còn lại: hàng cao tối đa bằng thẻ 16:9, màn thấp thì ảnh thấp lại, không để thẻ bị cắt */
    .dt-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 22rem));
        grid-auto-rows: minmax(9rem, max-content);
        justify-content: center;
        align-content: center;
    }
    .dt-cards[data-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 26rem));
    }
    .dt-cards[data-count="3"] {
        grid-template-columns: repeat(3, minmax(0, 26rem));
    }
    .dt-cards[data-count="4"],
    .dt-cards[data-count="7"],
    .dt-cards[data-count="8"] {
        grid-template-columns: repeat(4, minmax(0, 20rem));
    }
    /* 5 dự án: 3 + 2, hàng dưới nằm giữa */
    .dt-cards[data-count="5"] {
        grid-template-columns: repeat(6, minmax(0, 10.375rem));
    }
    .dt-cards[data-count="5"] .dt-card {
        grid-column: span 2;
    }
    .dt-cards[data-count="5"] .dt-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .dt-cards .dt-card {
        max-width: none;
        min-height: 0;
    }
    .dt-card__main {
        display: flex;
        flex: 0 1 auto;
        flex-direction: column;
        min-height: 0;
    }
    .dt-card__media {
        flex: 0 1 auto;
        min-height: 0;
    }

    /* Dự án thành phần: lớp tối một bên, chữ bên đó */
    .dt-scrim--side {
        background:
            linear-gradient(90deg, rgba(14, 14, 14, .9) 0, rgba(14, 14, 14, .82) calc(var(--dt-pad-x) + 24rem), rgba(14, 14, 14, .55) calc(var(--dt-pad-x) + 36rem), rgba(14, 14, 14, 0) calc(var(--dt-pad-x) + 52rem)),
            linear-gradient(0deg, rgba(16, 16, 16, .55) 0%, rgba(16, 16, 16, 0) 35%);
    }
    .dt-chapter.is-flip .dt-scrim--side {
        background:
            linear-gradient(270deg, rgba(14, 14, 14, .9) 0, rgba(14, 14, 14, .82) calc(var(--dt-pad-x) + var(--dt-rail) + 24rem), rgba(14, 14, 14, .55) calc(var(--dt-pad-x) + var(--dt-rail) + 36rem), rgba(14, 14, 14, 0) calc(var(--dt-pad-x) + var(--dt-rail) + 52rem)),
            linear-gradient(0deg, rgba(16, 16, 16, .55) 0%, rgba(16, 16, 16, 0) 35%);
    }
    .dt-chapter .dt-content {
        align-items: center;
    }
    .dt-chapter.is-flip .dt-content {
        justify-content: flex-end;
    }
    .dt-chapter__body {
        max-width: 34rem;
        max-height: 100%;
    }
    .dt-thumbs {
        display: flex;
    }

    /* Màn kết: hai cột */
    .dt-end__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: clamp(2rem, 4vw, 4.5rem);
        max-width: 84rem;
        margin-inline: auto;
    }
    .dt-end__grid.is-single {
        grid-template-columns: minmax(0, 40rem);
        justify-content: center;
    }
    .dt-end__lead .dt-feature__media {
        aspect-ratio: 16 / 11;
        max-height: 56vh;
        width: 100%;
    }
}
@media only screen and (min-width: 62rem) and (max-height: 760px) {
    .dt-title--xl {
        font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3.4rem);
    }
    .dt-hero .dt-stats {
        margin-top: 1.25rem;
    }
    .dt-actions {
        margin-top: 1.5rem;
    }
    .dt-thumbs .dt-tile {
        width: 6.25rem;
    }
    .dt-card__media {
        aspect-ratio: 2 / 1;
    }
    .dt-index .dt-content {
        gap: 1.25rem;
    }
}
@media only screen and (min-width: 106.25rem) {
    .dt-sec .section-heading.absolute {
        top: var(--space-6);
    }
}

/* ===================== Dưới 62rem: thanh chương thu thành viên thuốc góc phải ===================== */
@media only screen and (max-width: 61.99rem) {
    .dt-next {
        display: inline-flex;
        align-self: flex-start;
        flex: 0 0 auto;
    }
    .dt-hero .section-heading.absolute .subtitle {
        margin-right: -1rem;
    }
    /* Thông tin dự án trên điện thoại: chữ, rồi ảnh lấp phần trống còn lại, nút tiếp theo ở cuối */
    .dt-overview .dt-info {
        display: contents;
    }
    .dt-overview .dt-mosaic {
        order: 1;
        flex: 1 0 7rem;
        height: auto;
        max-height: 20rem;
    }
    .dt-overview .dt-info .dt-next {
        order: 2;
        margin-top: 0;
    }
    .dt-page ~ .story-rail {
        max-width: 44vw;
        min-height: 2.5rem;
        padding: var(--space-1) var(--space-3);
    }
    .dt-page ~ .story-rail .story-chapters,
    .dt-page ~ .story-rail .story-chapters li.is-active,
    .dt-page ~ .story-rail .story-chapter {
        min-width: 0;
        max-width: 100%;
    }
    .dt-page ~ .story-rail .story-label {
        display: block;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===================== Bản in PDF: mỗi dự án một trang, chỉ in màn thông tin ===================== */
.hudpr .dt-hero,
.hudpr .dt-wall,
.hudpr .dt-index,
.hudpr .dt-chapter,
.hudpr .dt-end,
.hudpr .dt-topbar,
.hudpr .dt-cue,
.hudpr .dt-next,
.hudpr .dt-only-web,
.hudpr .dt-overview .dt-mosaic--web {
    display: none !important;
}
.hudpr .dt-only-print {
    display: inline !important;
}
.hudpr .dt-overview .dt-mosaic--print {
    display: grid !important;
}
.hudpr .dt-overview .section-heading {
    display: block;
}
/* Trang in không có nút nổi nên bớt lề dưới, chữ gọn lại để thông số dài vẫn nằm trọn một trang */
.hudpr .dt-overview .dt-content {
    padding-top: 4rem;
    padding-bottom: 3rem;
}
.hudpr .dt-info__body {
    overflow: hidden !important;
}
.hudpr .dt-overview .dt-title--lg {
    font-size: 2.6rem;
}
.hudpr .dt-spec {
    padding: .45rem 0;
}
.hudpr .dt-spec dd,
.hudpr .dt-lead,
.hudpr .dt-rich {
    font-size: 1rem;
    line-height: 1.45;
}
.hudpr .dt-rich li {
    padding: .35rem 0;
}
.hudpr-numbered .dt-light::after {
    color: #58595B;
    text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .dt-cue svg {
        animation: none;
    }
    .dt-tile img,
    .dt-card,
    .dt-card__media img,
    .dt-feature__media img,
    .dt-list__img img {
        transition: none;
    }
}
