.tc-dossier-library {
  margin: clamp(28px, 4vw, 58px) 0;
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(234, 206, 132, 0.72);
  background: radial-gradient(circle at 9% 12%, rgba(234, 206, 132, 0.08), transparent 28%), #07463d;
  color: #fff8e5;
}

.tc-dossier-library__inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.65fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
}

.tc-dossier-library__eyebrow {
  margin: 0 0 10px;
  color: #eace84;
  font-family: "SVN Avant Garde Gothic", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tc-dossier-library h2 {
  max-width: 510px;
  margin: 0;
  color: #fff8e5;
  font-family: "SVN Radiant Slender", Georgia, serif;
  font-size: clamp(52px, 5.1vw, 84px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.tc-dossier-library__copy {
  margin: 16px 0 0;
  color: #fff8e5;
  font-size: 16px;
  line-height: 1.6;
}

.tc-dossier-library__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tc-dossier-library__card {
  min-height: 106px;
  padding: 16px;
  border: 1px solid rgba(234, 206, 132, 0.42);
  background: rgba(255, 255, 255, 0.025);
  color: #fff8e5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tc-dossier-library__card:hover,
.tc-dossier-library__card:focus-visible {
  transform: translateY(-3px);
  border-color: #f2dc96;
  background: rgba(255, 255, 255, 0.08);
}

.tc-dossier-library__card:first-child {
  border-color: transparent;
  background: linear-gradient(120deg, #f1d98e, #d6aa3b 70%, #f7e4a8);
  color: #35180e;
}

.tc-dossier-library__card strong { font-size: 20px; }
.tc-dossier-library__card small { font-size: 9px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.35; text-transform: uppercase; }
.tc-dossier-library__all { display: inline-flex; margin-top: 18px; padding: 14px 20px; border: 1px solid #eace84; color: #fff8e5; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 900px) {
  .tc-dossier-library__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tc-dossier-library { margin: 22px -4px; padding: 24px 15px; }
  .tc-dossier-library__inner { gap: 22px; }
  .tc-dossier-library h2 { font-size: clamp(46px, 14vw, 58px); line-height: 0.98; }
  .tc-dossier-library__copy { font-size: 14px; }
  .tc-dossier-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tc-dossier-library__card { min-height: 82px; padding: 12px; }
  .tc-dossier-library__card strong { font-size: 17px; }
}

/* Gộp thư viện 14 hồ sơ vào đúng section 14 mẫu đã được duyệt. */
.tc-layout-explorer__dossier-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid #eace84;
  color: #fff8e5;
  background: #07463d;
  font-family: "SVN Avant Garde Gothic", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.tc-layout-panel__dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(117, 79, 31, .28);
}

.tc-layout-panel__dossier-copy {
  display: grid;
  gap: 4px;
}

.tc-layout-panel__dossier-copy strong {
  color: #6f0710;
  font-family: "SVN Avant Garde Gothic", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tc-layout-panel__dossier-copy span {
  color: #745443;
  font-size: 10px;
  line-height: 1.45;
}

.tc-layout-panel__dossier-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 15px;
  border: 1px solid #ba8b28;
  color: #35180e;
  background: linear-gradient(110deg, #f3dc93 0%, #d8aa3e 72%, #f6e3a7 100%);
  box-shadow: 0 9px 22px rgba(89, 51, 13, .14);
  font-family: "SVN Avant Garde Gothic", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.tc-layout-explorer__dossier-all:hover,
.tc-layout-explorer__dossier-all:focus-visible,
.tc-layout-panel__dossier-button:hover,
.tc-layout-panel__dossier-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .tc-layout-explorer__dossier-all { width: 100%; }
  .tc-layout-panel__dossier { grid-template-columns: 1fr; }
  .tc-layout-panel__dossier-button { width: 100%; }
}

/* Phương án B được duyệt ngày 05/08/2026. Section dùng header chung bên ngoài. */
.tc-layout-explorer.tc-layout-explorer--phuong-an-b {
  width: 100%;
  margin: clamp(36px, 5vw, 72px) 0;
  padding: clamp(38px, 6vw, 82px) 0;
  border: 0;
  color: #351b14;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .46), transparent 25%),
    linear-gradient(135deg, #fff5d7, #e5c579);
}

.tc-b-wrap { width: min(1280px, calc(100% - 72px)); margin: auto; }
.tc-b-kicker { margin: 0 0 10px; color: #870f1a; font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.tc-b-headline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.tc-b-headline h2 { max-width: 850px; margin: 0; color: #6d0812; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: clamp(54px, 6.5vw, 96px); font-weight: 400; letter-spacing: -.025em; line-height: .96; }
.tc-b-headline h2 em { font-style: italic; }
.tc-b-headline p { max-width: 780px; margin: 22px 0 0; font-size: 15px; line-height: 1.65; }
.tc-b-headline > strong { max-width: 230px; padding: 12px 15px; border: 1px solid rgba(109, 8, 18, .35); color: #6d0812; font-size: 9px; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.tc-b-model-tabs { display: flex; gap: 7px; margin: 36px 0 16px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.tc-b-model-tabs button { flex: 0 0 auto; min-width: 54px; height: 42px; border: 1px solid rgba(109, 8, 18, .35); color: #6d0812; background: rgba(255, 255, 255, .3); font: 700 10px "SVN Avant Garde Gothic", "TC Avant", Arial, sans-serif; cursor: pointer; }
.tc-b-model-tabs button.is-active { color: #fff8e5; background: #6d0812; }
.tc-b-model-card { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); border: 1px solid rgba(109, 8, 18, .35); background: #fff5d7; box-shadow: 0 28px 70px rgba(67, 36, 16, .16); }
.tc-b-model-hero { min-height: 590px; background: #082f2a; }
.tc-b-model-hero button { position: relative; width: 100%; height: 100%; min-height: 590px; padding: 0; border: 0; background: #082f2a; cursor: zoom-in; }
.tc-b-model-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tc-b-model-hero span { position: absolute; right: 18px; bottom: 18px; padding: 9px 12px; color: #fff8e5; background: rgba(5, 35, 31, .82); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tc-b-model-copy { padding: clamp(30px, 4.2vw, 62px); }
.tc-b-model-code { margin: 0 0 10px; color: #8b0d18; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tc-b-model-copy h3 { margin: 0; color: #6d0812; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: clamp(42px, 4vw, 66px); font-weight: 400; line-height: 1; }
.tc-b-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; border-top: 1px solid rgba(109, 8, 18, .24); border-left: 1px solid rgba(109, 8, 18, .24); }
.tc-b-specs div { padding: 16px; border-right: 1px solid rgba(109, 8, 18, .24); border-bottom: 1px solid rgba(109, 8, 18, .24); }
.tc-b-specs strong, .tc-b-specs span { display: block; }
.tc-b-specs strong { color: #6d0812; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: 31px; font-weight: 400; }
.tc-b-specs span { margin-top: 3px; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tc-b-summary { font-size: 13px; line-height: 1.7; }
.tc-b-meta, .tc-b-storeys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 0; padding: 0; }
.tc-b-meta > div, .tc-b-storeys > div { min-width: 0; padding: 12px 13px; border: 1px solid rgba(109, 8, 18, .24); }
.tc-b-meta dt, .tc-b-meta dd, .tc-b-storeys strong, .tc-b-storeys span { display: block; margin: 0; }
.tc-b-meta dt { font-size: 7.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }
.tc-b-meta dd { margin-top: 6px; color: #6d0812; font-size: 11px; font-weight: 700; line-height: 1.35; }
.tc-b-storeys { padding-top: 12px; border-top: 1px solid rgba(109, 8, 18, .24); }
.tc-b-storeys strong { color: #8b0d18; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1; }
.tc-b-storeys span { margin-top: 6px; font-size: 9px; line-height: 1.45; }
.tc-b-handover { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tc-b-handover article { padding: 15px 13px; border: 1px solid rgba(109, 8, 18, .24); }
.tc-b-handover h4 { margin: 0; color: #8b0d18; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: 20px; font-weight: 400; line-height: 1.05; }
.tc-b-handover p { margin: 8px 0 0; font-size: 8.5px; line-height: 1.5; }
.tc-b-document-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 17px 18px; color: #fff8e5; background: #8b0d18; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.tc-b-document-cta span { color: #eace84; }
.tc-b-quick-view { margin-top: 54px; }
.tc-b-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr); gap: 40px; align-items: end; }
.tc-b-section-head h3 { max-width: 760px; margin: 0; padding: .08em 0 .12em; color: #6d0812; font-family: "SVN Radiant Slender", "TC Radiant", Georgia, serif; font-size: clamp(42px, 4.4vw, 68px); font-weight: 400; line-height: 1.08; text-wrap: balance; }
.tc-b-section-head > p { margin: 0 0 .35em; font-size: 12px; line-height: 1.65; }
.tc-b-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.tc-b-gallery-item { position: relative; min-height: 250px; padding: 0; overflow: hidden; border: 1px solid rgba(109, 8, 18, .32); background: #073d36; cursor: zoom-in; }
.tc-b-gallery-item img { display: block; width: 100%; height: 250px; object-fit: cover; transition: transform .5s; }
.tc-b-gallery-item:hover img { transform: scale(1.025); }
.tc-b-gallery-item span { position: absolute; inset: auto 0 0; display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 48px 14px 13px; color: #fff8e5; background: linear-gradient(transparent, rgba(3, 26, 23, .96)); font: 400 9px "SVN Avant Garde Gothic", "TC Avant", Arial, sans-serif; text-align: left; }
.tc-b-gallery-item b { font-size: 10px; line-height: 1.3; text-transform: uppercase; }
.tc-b-gallery-item small { display: block; color: rgba(255, 248, 229, .86); font-size: 8px; line-height: 1.45; }
.tc-b-viewer[hidden] { display: none; }
.tc-b-viewer { position: fixed; z-index: 1800; inset: 0; display: grid; place-items: center; padding: 60px 74px; background: rgba(2, 9, 8, .94); backdrop-filter: blur(12px); }
.tc-b-viewer__backdrop { position: absolute; inset: 0; border: 0; background: transparent; }
.tc-b-viewer__stage { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.tc-b-viewer__stage img { position: absolute; left: 50%; top: 50%; display: block; max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transform: translate(-50%, -50%); transform-origin: center; will-change: transform; }
.tc-b-viewer__caption { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: grid; gap: 4px; max-width: min(620px, calc(100% - 210px)); padding: 12px 14px; color: #fff8e5; background: rgba(5, 35, 31, .88); border-left: 2px solid #eace84; pointer-events: none; }
.tc-b-viewer__caption strong { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.tc-b-viewer__caption span { font-size: 9px; line-height: 1.45; }
.tc-b-viewer__close, .tc-b-viewer__nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(234, 206, 132, .68); color: #fff8e5; background: rgba(7, 61, 54, .88); cursor: pointer; }
.tc-b-viewer__close { top: 15px; right: 17px; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; }
.tc-b-viewer__nav { top: 50%; width: 50px; height: 62px; font-size: 31px; transform: translateY(-50%); }
.tc-b-viewer__prev { left: 16px; }
.tc-b-viewer__next { right: 16px; }
.tc-b-viewer__document { position: absolute; z-index: 3; bottom: 16px; left: 50%; padding: 12px 18px; color: #351b14; background: #eace84; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
body.tc-b-viewer-open { overflow: hidden; }

@media (max-width: 900px) {
  .tc-b-wrap { width: min(100% - 32px, 720px); }
  .tc-b-headline, .tc-b-section-head { grid-template-columns: 1fr; }
  .tc-b-headline > strong { max-width: none; }
  .tc-b-model-card { grid-template-columns: 1fr; }
  .tc-b-model-hero, .tc-b-model-hero button { min-height: 450px; }
  .tc-b-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tc-layout-explorer.tc-layout-explorer--phuong-an-b { margin: 24px 0; padding: 34px 0; }
  .tc-b-wrap { width: calc(100% - 24px); }
  .tc-b-headline { gap: 18px; }
  .tc-b-headline h2 { font-size: clamp(43px, 13.8vw, 57px); line-height: .98; }
  .tc-b-headline p { margin-top: 15px; font-size: 12px; line-height: 1.58; }
  .tc-b-headline > strong { padding: 10px; font-size: 8px; }
  .tc-b-model-tabs { margin-top: 24px; }
  .tc-b-model-tabs button { min-width: 48px; height: 38px; }
  .tc-b-model-hero, .tc-b-model-hero button { min-height: 310px; }
  .tc-b-model-copy { padding: 25px 19px; }
  .tc-b-model-copy h3 { font-size: 39px; line-height: 1.02; }
  .tc-b-specs { margin: 20px 0; }
  .tc-b-specs div { padding: 12px 10px; }
  .tc-b-specs strong { font-size: 25px; }
  .tc-b-summary { font-size: 11.5px; }
  .tc-b-meta, .tc-b-storeys { gap: 7px; margin-top: 16px; }
  .tc-b-meta > div, .tc-b-storeys > div { padding: 10px; }
  .tc-b-meta dt { font-size: 6.8px; }
  .tc-b-meta dd { margin-top: 4px; font-size: 9.5px; }
  .tc-b-storeys { padding-top: 10px; }
  .tc-b-storeys strong { font-size: 22px; }
  .tc-b-storeys span { margin-top: 4px; font-size: 8px; line-height: 1.35; }
  .tc-b-handover { gap: 7px; }
  .tc-b-handover article { padding: 12px 10px; }
  .tc-b-handover h4 { font-size: 18px; }
  .tc-b-handover p { margin-top: 6px; font-size: 7.5px; line-height: 1.45; }
  .tc-b-document-cta { margin-top: 18px; }
  .tc-b-quick-view { margin-top: 40px; }
  .tc-b-section-head { gap: 12px; }
  .tc-b-section-head h3 { padding: .1em 0 .16em; font-size: 39px; line-height: 1.12; }
  .tc-b-section-head > p { margin-bottom: 0; font-size: 11px; }
  .tc-b-gallery { gap: 7px; margin-top: 18px; }
  .tc-b-gallery-item, .tc-b-gallery-item img { min-height: 160px; height: 160px; }
  .tc-b-gallery-item span { padding: 42px 9px 9px; }
  .tc-b-gallery-item b { font-size: 8px; }
  .tc-b-gallery-item small { font-size: 7px; line-height: 1.35; }
  .tc-b-viewer { padding: 55px 10px 70px; }
  .tc-b-viewer__nav { top: auto; bottom: 14px; width: 43px; height: 42px; transform: none; }
  .tc-b-viewer__prev { left: 12px; }
  .tc-b-viewer__next { right: 12px; }
  .tc-b-viewer__document { max-width: 220px; padding: 10px 12px; text-align: center; }
  .tc-b-viewer__close { top: 10px; right: 10px; }
  .tc-b-viewer__caption { left: 10px; bottom: 65px; max-width: calc(100% - 20px); padding: 9px 10px; }
  .tc-b-viewer__caption strong { font-size: 8px; }
  .tc-b-viewer__caption span { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .tc-b-gallery-item img { transition: none; }
}
