/* Shared industry card surfaces and the Clinics capability layout.
   Scoped to industry detail pages so approved homepage and directory galleries stay independent. */
.industry-detail {
  --dc-ink: #f4f6f8;
  --dc-muted: #c1cad1;
  --dc-blue: #192e40;
  --dc-green: #19362f;
  --dc-lilac: #2d293d;
  --dc-plain: #141c24;
  --dc-rose: #30232a;
  --dc-border: #3d505a;
  --dc-paper: #f9fcfc;
  --dc-paper-back: #d4e1e4;
  --dc-art-ink: #213d4a;
  --dc-art-muted: #526e79;
  --dc-art-soft: #c3d6dc;
  --dc-accent: #4d827a;
  --dc-tint: #dcece6;
  --dc-art-shadow: #000;
}
html[data-theme="light"] .industry-detail {
  --dc-ink: #182c36;
  --dc-muted: #4d606b;
  --dc-blue: #e0edf4;
  --dc-green: #e3efe8;
  --dc-lilac: #ece8f3;
  --dc-plain: #f9fbfc;
  --dc-rose: #f4e9e7;
  --dc-border: #b6c8cf;
  --dc-paper-back: #c5d6dc;
}
.detail-feature-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 22px;
  margin-top: 48px;
  scroll-margin-top: 110px;
}
.detail-feature {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  padding: 32px 32px 190px;
  min-height: 380px;
  color: var(--dc-ink);
  background: var(--dc-green);
  isolation: isolate;
}
.detail-feature-1 {
  grid-row: span 2;
  padding-bottom: 460px;
  background: var(--dc-blue);
}
.detail-feature-3 { background: var(--dc-lilac); }
.detail-feature-copy { position: relative; z-index: 1; }
.detail-feature h3 {
  font: 650 clamp(25px, 2.5vw, 32px)/1.15 var(--fd);
  letter-spacing: -.035em;
  color: var(--dc-ink);
  margin-bottom: 16px;
  max-width: 390px;
}
.detail-feature p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dc-muted);
  max-width: 460px;
}
.detail-art { position: absolute; inset-inline: 0; bottom: 23px; pointer-events: none; }
.detail-art svg { display: block; width: 100%; height: auto; font-family: var(--fb); }
.detail-art-booking { bottom: 42px; }
.detail-art-caption {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 32px;
  color: var(--dc-muted);
  font-size: 10px;
  letter-spacing: .04em;
}
.detail-art-lift { transition: transform .55s cubic-bezier(.22,1,.36,1); }
@media (hover:hover) and (pointer:fine) {
  .detail-feature:hover .detail-art-lift { transform: translateY(-9px); }
}
/* Comparison panels remain readable without hover, expansion or JavaScript. */
.industry-detail .detail-comparison { gap: 22px; scroll-margin-top: 110px; }
.detail-comparison-panel {
  min-width: 0;
  border-radius: 28px;
  padding: 36px;
  color: var(--dc-ink);
  background: var(--dc-rose);
}
.detail-after { background: var(--dc-green); }
.industry-detail .detail-comparison-panel .ps-label {
  color: var(--dc-muted);
  font-size: 11px;
  letter-spacing: .09em;
}
.industry-detail .detail-comparison-panel .ps-title {
  color: var(--dc-ink);
  font-weight: 650;
  font-size: 27px;
  line-height: 1.2;
  margin-bottom: 26px;
}
.industry-detail .detail-comparison-panel .ps-list { gap: 0; }
.industry-detail .detail-comparison-panel .ps-list li {
  color: var(--dc-muted);
  padding-block: 13px;
  font-size: 14px;
  border-top: 1px solid color-mix(in srgb, var(--dc-ink) 12%, transparent);
}
.industry-detail .detail-comparison-panel .ps-list li::before { color: var(--dc-muted); content: '−'; }
.industry-detail .detail-after .ps-list li::before { color: var(--dc-muted); content: '✓'; }
.detail-conversation {
  max-width: 620px;
  margin: 48px auto 0;
  border: 1px solid var(--dc-border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--dc-plain);
}
.industry-detail .detail-conversation .wd-hdr {
  padding: 23px 26px;
  background: var(--dc-green);
  border-bottom: 0;
}
.industry-detail .detail-conversation .wd-av {
  background: var(--dc-paper);
  color: var(--dc-art-ink);
  border-radius: 13px;
  width: 44px;
  height: 44px;
}
.industry-detail .detail-conversation .wd-name { color: var(--dc-ink); font-family: var(--fb); font-weight: 600; }
.industry-detail .detail-conversation .wd-status { color: var(--dc-muted); }
.industry-detail .detail-conversation .gdot { background: var(--dc-muted); box-shadow: none; animation: none; }
.industry-detail .detail-conversation .wd-body { padding: 26px; gap: 10px; }
.industry-detail .detail-conversation .dm { padding: 14px 18px; border-radius: 18px; }
.industry-detail .detail-conversation .dm-in { background: var(--dc-blue); color: var(--dc-ink); border-bottom-left-radius: 5px; }
.industry-detail .detail-conversation .dm-out { background: var(--dc-green); color: var(--dc-ink); border-bottom-right-radius: 5px; }
.industry-detail .detail-conversation .dm-time { color: var(--dc-muted); }
.industry-detail .detail-modules {
  gap: 0;
  padding: 16px;
  border: 1px solid var(--dc-border);
  border-radius: 28px;
  background: var(--dc-plain);
}
.industry-detail .detail-modules .res-box {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 26px 18px;
  min-width: 0;
}
.industry-detail .detail-modules .res-box + .res-box { border-inline-start: 1px solid var(--dc-border); }
.industry-detail .detail-modules .res-val { color: var(--dc-ink); font-size: clamp(23px,2.3vw,30px); font-weight: 600; }
.industry-detail .detail-modules .res-lbl { color: var(--dc-muted); font: 400 13px/1.6 var(--fb); letter-spacing: 0; }
html[dir="rtl"] .detail-feature h3 { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] .detail-feature p { line-height: 1.9; }
@media (max-width: 950px) {
  .detail-feature-grid { grid-template-columns: 1fr 1fr; }
  .detail-feature-1 { grid-row: auto; grid-column: span 2; min-height: 430px; padding: 36px 48% 70px 32px; }
  .detail-feature-1 .detail-art { width: 53%; inset-inline-start: auto; inset-inline-end: 0; bottom: 24px; }
  html[dir="rtl"] .detail-feature-1 { padding: 36px 32px 70px 48%; }
  .detail-feature-2,.detail-feature-3 { min-height: 440px; padding-inline: 26px; }
}
@media (max-width: 680px) {
  .detail-feature-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .detail-feature-1 { grid-column: auto; min-height: 660px; padding: 28px 26px 365px; }
  html[dir="rtl"] .detail-feature-1 { padding: 28px 26px 365px; }
  .detail-feature-1 .detail-art { width: 100%; bottom: 34px; }
  .detail-feature-2,.detail-feature-3 { min-height: 390px; padding: 28px 26px 170px; }
  .detail-feature h3 { font-size: 26px; }
  .detail-feature p { font-size: 14px; }
  .detail-art-caption { inset-inline-start: 26px; }
  .detail-comparison-panel { padding: 28px 26px; }
  .industry-detail .detail-comparison-panel .ps-title { font-size: 25px; }
  .industry-detail .detail-conversation .wd-hdr,.industry-detail .detail-conversation .wd-body { padding: 20px; }
  .industry-detail .detail-conversation .wd-name { font-size: 13px; }
  .industry-detail .detail-conversation .dm { max-width: 92%; font-size: 13px; }
  .industry-detail .detail-modules { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; }
  .industry-detail .detail-modules .res-box { padding: 24px 10px; }
  .industry-detail .detail-modules .res-box:nth-child(3) { border-inline-start: 0; }
  .industry-detail .detail-modules .res-box:nth-child(n+3) { border-top: 1px solid var(--dc-border); }
}
@media (prefers-reduced-motion: reduce) {
  .detail-art-lift { transition: none; }
  .detail-feature:hover .detail-art-lift { transform: none; }
}
.detail-feature,.detail-conversation,.detail-modules { scroll-margin-top: 110px; }
