/* =========================================================================
   LIVE WEALTH HEALTH SYSTEM — healthcare project page
   Builds on healthcare-detail.css (video hero, hero-phil sections, tables).
   Everything here is scoped to main.lwh so no other page is affected.
   ========================================================================= */

/* the hidden attribute must win over .btn { display: inline-flex } and similar display rules */
.lwh [hidden] { display: none !important; }

.lwh {
  --lwh-ink: #0f172a;
  --lwh-muted: #475569;
  --lwh-line: #e6e8eb;
  --lwh-soft: #f6f8fb;
  --lwh-blue: #257cff;
  --lwh-violet: #9333ea;
  --lwh-radius: 14px;
}

/* ---------- hero ---------- */
.lwh .lwh-hero {
  background: #0b1220 url("../../healthcare/live-wealth-health-system/img/hero-poster.webp") center / cover no-repeat;
}
.lwh .lwh-hero video { background: transparent; }
.lwh .lwh-hero-title { font-size: clamp(40px, 6.2vw, 92px); letter-spacing: 0.01em; }
.lwh .lwh-hero-title .lwh-hero-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.lwh .lwh-hero .video-hero-lead { max-width: 760px; }
.lwh .lwh-hero .hero-ctas { margin-top: 30px; }
.lwh .lwh-hero .btn-secondary { color: #ffffff; }
.lwh .lwh-hero .btn-secondary:hover,
.lwh .lwh-hero .btn-primary:hover { opacity: 0.88; }
.lwh .lwh-concept-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.lwh .lwh-video-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font: 700 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.lwh .lwh-video-toggle:focus-visible,
.lwh .btn:focus-visible,
.lwh button:focus-visible,
.lwh a:focus-visible,
.lwh select:focus-visible,
.lwh input:focus-visible { outline: 3px solid #65d7eb; outline-offset: 3px; }

/* ---------- section headers ---------- */
.lwh .lwh-section { width: min(1200px, 95vw); margin: 56px auto 0; }
.lwh .lwh-section > .hero-phil { padding-left: 0; padding-right: 0; }
.lwh .lwh-kicker {
  margin: 0 0 10px;
  color: #1b6b86;
  font: 800 12px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lwh .lwh-note {
  margin: 16px 0 0;
  color: var(--lwh-muted);
  font: 500 13px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- overview stats ---------- */
.lwh .lwh-stats {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.lwh .lwh-stats li {
  padding: 22px 18px;
  border-radius: var(--lwh-radius);
  background: var(--lwh-soft);
  border: 1px solid var(--lwh-line);
}
.lwh .lwh-stats strong {
  display: block;
  white-space: nowrap;
  font: 800 clamp(24px, 2.2vw, 34px)/1.05 "Sora", system-ui, sans-serif;
  background: linear-gradient(90deg, var(--lwh-blue) 0%, var(--lwh-violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lwh .lwh-stats strong small { font-size: 0.55em; font-weight: 800; }
.lwh .lwh-stats span {
  display: block;
  margin-top: 8px;
  color: var(--lwh-muted);
  font: 600 13px/1.35 "Plus Jakarta Sans", system-ui, sans-serif;
}
.lwh .lwh-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font: 700 12px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- 3D medical city ---------- */
.lwh .lwh-viewer {
  position: relative;
  width: min(1400px, 98vw);
  margin: 28px auto 0;
  border-radius: var(--lwh-radius);
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  min-height: 520px;
}
.lwh .lwh-viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lwh .lwh-viewer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.lwh .lwh-viewer-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  background: linear-gradient(to bottom, rgba(5, 10, 20, 0.15), rgba(5, 10, 20, 0.55));
  color: #ffffff;
  cursor: pointer;
  text-align: center;
}
.lwh .lwh-viewer-start-pill {
  display: grid;
  gap: 8px;
  max-width: 560px;
  padding: 22px 30px;
  border-radius: 18px;
  background: rgba(10, 14, 24, 0.72);
  font: 800 clamp(18px, 2vw, 24px)/1.2 "Sora", system-ui, sans-serif;
}
.lwh .lwh-viewer-start-pill small { font: 500 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; opacity: 0.86; }
.lwh .lwh-viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 18, 32, 0.82);
  color: #ffffff;
  font: 700 15px/1.4 "Plus Jakarta Sans", system-ui, sans-serif;
  z-index: 2;
}
.lwh .lwh-viewer-loading::before {
  content: "";
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #65d7eb;
  border-radius: 50%;
  animation: lwhSpin 0.9s linear infinite;
}
@keyframes lwhSpin { to { transform: rotate(360deg); } }
.lwh .lwh-viewer-bar {
  width: min(1400px, 98vw);
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}
.lwh .lwh-viewer-bar label { color: var(--lwh-muted); font: 700 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-select,
.lwh .lwh-search {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--lwh-ink);
  font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif;
}
.lwh .lwh-select { min-width: 260px; }
.lwh .lwh-search { min-width: min(320px, 100%); }
.lwh .lwh-viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lwh .lwh-btn-dark {
  background: var(--lwh-ink);
  border-color: var(--lwh-ink);
  color: #ffffff;
}
.lwh .lwh-btn-line {
  background: transparent;
  border-color: #cbd5e1;
  color: var(--lwh-ink);
}
.lwh .lwh-btn-line:hover { border-color: var(--lwh-ink); }
.lwh .lwh-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lwh .lwh-steps li {
  padding: 14px;
  border-radius: 12px;
  background: var(--lwh-soft);
  color: var(--lwh-muted);
  font: 600 13px/1.45 "Plus Jakarta Sans", system-ui, sans-serif;
}
.lwh .lwh-steps strong { display: block; margin-bottom: 4px; color: var(--lwh-ink); font-size: 14px; }

/* ---------- building explorer ---------- */
.lwh .lwh-buildings {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2px;                 /* the Healthcare project grid's spacing: cards almost touch */
}
.lwh .lwh-bcard {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;         /* square corners, like the site's project cards */
  overflow: hidden;
  background: #ffffff;
  transition: border-color 0.25s ease, background 0.25s ease;
}
/* no lift on hover: with a 2 px gap it would overlap the neighbours; highlight the edge as the project cards do */
.lwh .lwh-bcard:hover { border-color: rgba(101, 215, 235, 0.89); background: #fafbfc; }
.lwh .lwh-bcard-media { position: relative; aspect-ratio: 16 / 9; background: #e2e8f0; }
.lwh .lwh-bcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lwh .lwh-bcard-num {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.08em;
}
.lwh .lwh-bcard-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.lwh .lwh-bcard h3 { margin: 0; color: var(--lwh-ink); font: 800 18px/1.25 "Sora", system-ui, sans-serif; }
.lwh .lwh-bcard-fn { margin: 0; color: #1b6b86; font: 700 13px/1.35 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-bcard dl { margin: 0; display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; }
.lwh .lwh-bcard dt { color: #64748b; font: 600 11px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.06em; }
.lwh .lwh-bcard dd { margin: 3px 0 0; color: var(--lwh-ink); font: 800 15px/1.2 "Plus Jakarta Sans", system-ui, sans-serif; white-space: nowrap; }
.lwh .lwh-bcard-depts { margin: 0; color: var(--lwh-muted); font: 500 13px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-bcard-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lwh .lwh-bcard .btn { height: 40px; padding: 0 18px; font-size: 12px; }

/* ---------- tables ---------- */
.lwh .lwh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.lwh .lwh-tab {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--lwh-ink);
  font: 800 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.lwh .lwh-tab[aria-selected="true"] { background: var(--lwh-ink); border-color: var(--lwh-ink); color: #ffffff; }
.lwh .lwh-panel { margin-top: 18px; }
.lwh .lwh-panel h3 { margin: 26px 0 6px; color: var(--lwh-ink); font: 800 20px/1.3 "Sora", system-ui, sans-serif; }
.lwh .lwh-panel h3:first-child { margin-top: 6px; }
.lwh .lwh-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.lwh .lwh-count { color: var(--lwh-muted); font: 600 13px/1 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .table-wrap { width: 100%; margin: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lwh .naming-table { min-width: 640px; }
.lwh .naming-table tbody tr { cursor: default; }
.lwh .naming-table td.num, .lwh .naming-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lwh .naming-table tfoot td { padding: 14px 16px; font-weight: 800; color: var(--lwh-ink); border-top: 2px solid var(--lwh-line); }
.lwh .naming-table caption { caption-side: bottom; text-align: left; padding: 10px 0 0; color: #64748b; font: 500 12px/1.5 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-chip { display: inline-block; margin: 2px 6px 2px 0; padding: 3px 8px; border-radius: 999px; background: var(--lwh-soft); color: var(--lwh-muted); font: 600 12px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-link { color: #1b6b86; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lwh .lwh-link:hover { text-decoration: underline; }
.lwh .lwh-more { margin-top: 12px; }

/* ---------- cinematic gallery ---------- */
.lwh .lwh-films { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lwh .lwh-film { border-radius: var(--lwh-radius); overflow: hidden; background: #0b1220; }
.lwh .lwh-film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lwh .lwh-film p { margin: 0; padding: 12px 14px; color: #ffffff; font: 700 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-gallery { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lwh .lwh-thumb { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #e2e8f0; cursor: zoom-in; text-align: left; }
.lwh .lwh-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.lwh .lwh-thumb:hover img { transform: scale(1.04); }
.lwh .lwh-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  color: #ffffff;
  font: 700 12px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}
.lwh-lightbox {
  width: min(1280px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #0b1220;
  color: #ffffff;
}
.lwh-lightbox::backdrop { background: rgba(3, 6, 12, 0.86); }
.lwh-lightbox figure { margin: 0; }
.lwh-lightbox img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.lwh-lightbox figcaption { padding: 12px 16px 16px; font: 600 14px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh-lightbox .lwh-lb-bar { display: flex; gap: 8px; justify-content: flex-end; padding: 10px; }
.lwh-lightbox button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: 700 12px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- engagement ---------- */
.lwh .lwh-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lwh .lwh-card { padding: 22px; border-radius: var(--lwh-radius); background: var(--lwh-soft); border: 1px solid var(--lwh-line); }
.lwh .lwh-card strong { display: block; margin-bottom: 8px; color: var(--lwh-ink); font: 800 17px/1.3 "Sora", system-ui, sans-serif; }
.lwh .lwh-card p { margin: 0; color: var(--lwh-muted); font: 500 14px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; }
.lwh .lwh-engage .hero-ctas .btn-secondary { color: var(--lwh-ink); border-color: var(--lwh-ink); }
.lwh .lwh-foot {
  width: min(1200px, 95vw);
  margin: 48px auto 72px;
  padding-top: 18px;
  border-top: 1px solid var(--lwh-line);
  color: #64748b;
  font: 500 12px/1.6 "Plus Jakarta Sans", system-ui, sans-serif;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lwh .lwh-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lwh .lwh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lwh .lwh-hero .hero-ctas .btn { width: 100%; }
  .lwh .lwh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lwh .lwh-stats li:last-child { grid-column: 1 / -1; }
  .lwh .lwh-viewer { aspect-ratio: auto; height: 74vh; min-height: 460px; border-radius: 10px; }
  .lwh .lwh-select { min-width: 0; width: 100%; }
  .lwh .lwh-viewer-bar > div { width: 100%; }
  .lwh .lwh-viewer-actions .btn { flex: 1 1 auto; }
  .lwh .lwh-steps { grid-template-columns: 1fr; }
  .lwh .lwh-cards { grid-template-columns: 1fr; }
  .lwh .lwh-section { margin-top: 40px; }
  .lwh .lwh-video-toggle { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lwh .lwh-bcard, .lwh .lwh-thumb img { transition: none; }
  .lwh .lwh-viewer-loading::before { animation: none; }
}

/* ---------------- sharing one building (same icon and dialog as the other iShare pages) ---------------- */
.lwh .naming-table td.lwh-share-cell { width: 1%; padding: 4px 8px; white-space: nowrap; }
.lwh-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #0b239c; cursor: pointer;
}
.lwh-share-btn:hover { background: rgba(11, 35, 156, 0.1); }
.lwh-share-btn:focus-visible, .lwh-net:focus-visible, .lwh-tool:focus-visible { outline: 3px solid #0b239c; outline-offset: 2px; }
.lwh .lwh-bcard.is-shared, .lwh .lwh-thumb.is-shared, .lwh .lwh-film.is-shared { border-color: #0b239c; box-shadow: 0 0 0 2px #0b239c; }
.lwh .lwh-bcard-actions .lwh-bcard-share { margin-left: auto; align-self: center; }
.lwh .lwh-thumb-wrap { position: relative; }
.lwh .lwh-thumb-wrap .lwh-thumb { width: 100%; }
.lwh .lwh-thumb-share { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); }
.lwh .lwh-thumb-share:hover { background: #ffffff; }
.lwh .lwh-film p .lwh-share-btn { width: 30px; height: 30px; margin-left: 6px; vertical-align: middle; background: rgba(255, 255, 255, 0.92); }

.lwh-sharebox {
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 14px;
  background: #ffffff; color: #0f172a; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.lwh-sharebox::backdrop { background: rgba(6, 14, 18, 0.72); }
.lwh-sharebox img[data-share-image] { display: block; width: 100%; height: auto; border-bottom: 1px solid #e6e8eb; }
.lwh-sharebox-body { padding: 16px 18px 18px; }
.lwh-sharebox-title { margin: 0 0 6px; font-family: "Sora", system-ui, sans-serif; font-size: 18px; font-weight: 800; }
.lwh-sharebox-text { margin: 0 0 14px; color: #475569; font-size: 13.5px; line-height: 1.5; }
.lwh-sharebox-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lwh-sharebox-actions--tools { margin-top: 10px; }
.lwh-net, .lwh-tool {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  font: 600 13.5px "Plus Jakarta Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.lwh-net { border: 1px solid #0b239c; background: #0b239c; color: #ffffff; }
.lwh-net:hover { border-color: #081a78; background: #081a78; color: #ffffff; }
.lwh-net[hidden], .lwh-sharebox-phone[hidden] { display: none; }
.lwh-tool { border: 1px solid #cbd5e1; background: #ffffff; color: #0f172a; }
.lwh-tool:hover { background: #f1f5f9; }
.lwh-sharebox-close { margin-left: auto; }
.lwh-sharebox-phone { display: flex; gap: 14px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 10px; background: #eef1fa; }
.lwh-sharebox img[data-share-qr] { flex: none; width: 132px; height: 132px; border-radius: 6px; background: #ffffff; }
.lwh-sharebox-phone-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.lwh-sharebox-phone p { margin: 0 0 10px; color: #475569; font-size: 13px; line-height: 1.45; }
.lwh-sharebox-status { min-height: 1.4em; margin: 10px 0 0; color: #0b239c; font-size: 13px; font-weight: 600; }
