/* Druvex responsive two-column polish v1.
   Cards display in two columns on mobile. Long-form writing and chat
   deliberately remain full width to preserve readability. */
@media (max-width:900px) {
  /* 6 editorial topics: 2 by 3. */
  .druvex-lab-preview__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px 16px;
  }
  .druvex-lab-preview__card {
    min-width:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto 1fr;
    gap:10px;
    align-items:start;
  }
  .druvex-lab-preview__visual{
    width:100%;
    aspect-ratio:1/1;
    border-radius:10px;
  }
  .druvex-lab-preview__visual img{width:100%;height:100%;object-fit:cover}
  .druvex-lab-preview__copy{width:100%;min-width:0}
  .druvex-lab-preview__copy h3{
    font-size:clamp(13px,1.8vw,17px);
    line-height:1.38;
    letter-spacing:-.025em;
    margin:0 0 8px;
    overflow-wrap:break-word;
  }
  .druvex-lab-preview__meta{font-size:10px;gap:3px 7px}
  .druvex-lab-preview__meta strong{font-size:10px}

  /* Three models: two small tiles + a full-row showcase tile. */
  .holliday-models__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px 16px;
  }
  .holliday-model{min-width:0}
  .holliday-model__visual{aspect-ratio:1.13}
  .holliday-model__info{
    min-width:0;
    margin:12px 0 0;
    padding-top:12px;
  }
  .holliday-model__tier{font-size:10px;margin-bottom:8px}
  .holliday-model__info h3{font-size:clamp(19px,2.6vw,25px);margin-bottom:7px}
  .holliday-model__tagline{font-size:clamp(12px,1.8vw,14px);line-height:1.38}
  .holliday-model__info p{font-size:clamp(11.5px,1.7vw,14px);line-height:1.52}
  .holliday-model__explore{font-size:11.5px;margin-top:11px}

  /* Three Featured links: two half-width cards + one wide. */
  .dxv-reference .dxv-cinematic__cards {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    max-width:760px;
    margin-left:auto;
    margin-right:auto;
  }
  .dxv-reference .dxv-feature-card {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:11px;
    min-height:0;
    padding:11px;
    position:relative;
    border-radius:14px;
    grid-template-columns:none;
  }
  .dxv-reference .dxv-feature-card img{
    width:100%;
    height:auto;
    aspect-ratio:1.32;
    border-radius:9px;
    object-fit:cover;
  }
  .dxv-reference .dxv-feature-card__copy{gap:6px;padding:0}
  .dxv-reference .dxv-feature-card__copy strong{
    font-size:clamp(13px,1.8vw,17px);
    line-height:1.3;
  }
  .dxv-reference .dxv-feature-card__copy small{
    font-size:clamp(11px,1.35vw,13px);
    line-height:1.42;
  }
  .dxv-reference .dxv-feature-card__arrow{
    position:absolute;
    top:18px;right:18px;
    width:28px;height:28px;font-size:13px;
    border-color:rgba(255,255,255,.75);
    background:rgba(0,0,0,.68);
  }
  .dxv-reference .dxv-feature-card:last-child{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(0,42%) minmax(0,1fr);
    align-items:center;
    gap:15px;
    min-height:0;
  }
  .dxv-reference .dxv-feature-card:last-child img{aspect-ratio:1.25}

  /* Two choices per row rather than unpredictable three-across wraps. */
  .dl-business__chips{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .dl-business__chips span{min-width:0;white-space:normal;text-align:center}
  .hly-simple__quick{
    display:grid;
    width:min(100%,460px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  .hly-simple__quick button,.hly-simple__quick a{
    min-width:0;white-space:normal;
    display:flex;align-items:center;justify-content:center;text-align:center;
  }
  .hly-simple__quick>:last-child:nth-child(odd){
    grid-column:1/-1;
    justify-self:stretch;
  }
  /* Preserve the existing two-column footer. */
  .druvex-site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:390px){
  .druvex-lab-preview{padding-left:16px;padding-right:16px}
  .druvex-lab-preview__grid{gap:24px 12px}
  .druvex-lab-preview__copy h3{font-size:13px}
  .druvex-lab-preview__meta{font-size:9.5px}
  .holliday-models__grid{column-gap:12px}
  .holliday-model__info h3{font-size:19px}
  .holliday-model__info p{font-size:11.5px}
  .dxv-reference .dxv-cinematic__cards{width:calc(100% - 28px);gap:9px}
  .dxv-reference .dxv-feature-card{padding:9px;gap:8px}
  .dxv-reference .dxv-feature-card__copy strong{font-size:12.5px}
  .dxv-reference .dxv-feature-card__copy small{font-size:10.5px}
  .dxv-reference .dxv-feature-card__arrow{right:13px;top:13px}
  .hly-simple__quick button,.hly-simple__quick a{font-size:11px;padding:11px 7px}
}
/* Fix text contrast on de-emphasized Business diagram labels, without
   losing the distinction between active and inactive flows. */
.dl-business[data-business-ready="true"] .dl-business__mini-group:last-of-type span{
  opacity:1;
  color:var(--db-ink,#fff);
}
.dl-business[data-business-ready="true"] .dl-business__mini-group:last-of-type span:not(.is-active){
  border-style:dashed;
}
