/* The two photo edges frame the copy; they do not magnify the empty center. */
body[data-detail-selected] #viewing.buy5-visit {
  aspect-ratio:auto; min-height:260px; padding:0; display:grid; place-items:center;
}
body[data-detail-selected] #viewing .bordeaux-viewing-photo {
  inset:0 auto 0 0; width:31%; height:100%; object-fit:cover; object-position:left center;
  mask-image:linear-gradient(to right,#000 70%,transparent); opacity:1;
}
body[data-detail-selected] #viewing .bordeaux-viewing-photo-right {
  display:block; inset:0 0 0 auto; object-position:right center;
  mask-image:linear-gradient(to left,#000 70%,transparent);
}
body[data-detail-selected] #viewing .bordeaux-viewing-copy {
  width:44%; padding:20px 12px; gap:12px; text-align:center; background:transparent;
}
body[data-detail-selected] #viewing .bordeaux-viewing-copy h2 { font-size:clamp(26px,2.1vw,36px); line-height:1.1; }
body[data-detail-selected] #viewing .bordeaux-viewing-copy p { font-size:16px; line-height:1.45; max-width:42ch; margin:0; }
body[data-detail-selected] #viewing .bordeaux-viewing-copy .cta { min-inline-size:0; width:auto; max-width:100%; min-height:48px; padding:12px 20px; font-size:16px; }
/* At desktop sizes the viewing invitation and all four payment options share one screen. */
@media(min-width:1100px) and (min-height:700px) {
  body[data-detail-selected] #viewing.buy5-visit { min-height:280px; height:clamp(280px,34svh,440px); margin-top:0; }
  body[data-detail-selected] #purchase.buy5 { padding-block:40px 24px!important; }
  body[data-detail-selected] #purchase .buy5-panel { gap:24px; }
  body[data-detail-selected] #purchase #buy5-title { font-size:clamp(28px,2.2vw,40px)!important; line-height:1.1; }
  body[data-detail-selected] #purchase .buy5-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body[data-detail-selected] #purchase .buy5-tile { min-height:clamp(200px,24svh,300px); padding:24px; gap:16px; }
  body[data-detail-selected] #purchase .buy5-tile > span { font-size:20px; line-height:1.25; }
  body[data-detail-selected] #purchase .buy5-tile > small { font-size:16px; line-height:1.4; }
  body[data-detail-selected] #purchase .ds-buy-foot .cta { min-height:50px; padding:12px 20px; font-size:16px; }
}
@media(max-width:760px) {
  body[data-detail-selected] #viewing.buy5-visit { min-height:0; display:flex; flex-direction:column; }
  body[data-detail-selected] #viewing .bordeaux-viewing-photo:not(.bordeaux-viewing-photo-right) {
    position:relative; z-index:0; width:100%; height:auto; aspect-ratio:3/1; object-fit:contain; mask-image:none;
  }
  body[data-detail-selected] #viewing .bordeaux-viewing-photo-right { display:none; }
  body[data-detail-selected] #viewing .bordeaux-viewing-copy { width:100%; padding:24px 20px; }
  body[data-detail-selected] #purchase .ds-buy-foot .cta { font-size:16px; line-height:1.35; min-height:56px; }
}
/* Theme switching must visibly affect the Hero's information band too. */
html[data-deco-theme="light"] body[data-detail-selected] #hero .v7-bar {
  background: var(--deco-paper) !important;
  color: var(--deco-ink);
  border-color: var(--deco-line);
}
html[data-deco-theme="light"] body[data-detail-selected] #hero .v7-bar :is(dt,.lh-catalog) {
  color: var(--deco-muted) !important;
}
html[data-deco-theme="light"] body[data-detail-selected] #hero .v7-bar dd {
  color: var(--atlas-red) !important;
}
html[data-deco-theme="light"] body[data-detail-selected] #hero .v7-cta {
  background: var(--atlas-sand) !important;
  color: var(--deco-ink) !important;
}
html[data-deco-theme="light"] body[data-detail-selected] #hero .v7-cta > span { color:var(--deco-ink)!important; }

/* Keep the paired scenes and copy at a readable scale on large desktop displays. */
@media(min-width:1800px) {
 body[data-detail-selected] #viewing.buy5-visit { max-width:2100px; margin-inline:auto; }
 body[data-detail-selected] #purchase.buy5 { max-width:2260px; margin-inline:auto; padding-inline:80px; }
 body[data-detail-selected] #viewing .bordeaux-viewing-copy p { font-size:20px; }
 body[data-detail-selected] #viewing .bordeaux-viewing-copy .cta,
 body[data-detail-selected] #purchase .ds-buy-foot .cta { font-size:18px; }
 body[data-detail-selected] #purchase .buy5-tile > span { font-size:24px; }
 body[data-detail-selected] #purchase .buy5-tile > small { font-size:20px; }
}

/* A real section boundary between the catalogue and the viewing invitation. */
body[data-detail-selected] .deco-plans-break {
 margin-block:clamp(40px,5svh,72px);
}
body[data-detail-selected] .deco-plans-break + #viewing.buy5-visit { margin-top:0; }
@media(min-width:1100px) and (min-height:700px) and (max-height:799px) {
 body[data-detail-selected] #viewing.buy5-visit { min-height:256px; height:256px; }
 body[data-detail-selected] #purchase.buy5 { padding-block:28px 16px!important; }
 body[data-detail-selected] #purchase .buy5-panel { gap:16px; }
 body[data-detail-selected] #purchase .buy5-tile { min-height:180px; padding:20px; gap:12px; }
}
@media(max-width:760px) {
 body[data-detail-selected] .deco-plans-break { margin-block:36px; }
}

body[data-detail-selected] #expert .exv-body section {
  margin-block: clamp(28px, 3.5vh, 36px) 0;
}

body[data-detail-selected] #expert .exv-body h3 {
  margin: 0 0 14px;
  font-family: var(--bordeaux-text);
  font-size: var(--type-subtitle);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Hero facts and actions use the approved lighter text hierarchy. */
body[data-detail-selected] #hero :is(.v7-bar dt, .v7-actions > .v7-pdf, .v7-actions > .v7-cta) {
  font-weight: 400 !important;
}
body[data-detail-selected] #hero .v7-bar dd {
  font-family: Atlas, "Golos Text", Arial, sans-serif !important;
  font-weight: 350 !important;
}

/* Approved Savvinskaya 27 mobile layout. */
@media (max-width: 760px) {
  html body[data-detail-selected] #hero .v7-bar .v7-actions {
    width: 100% !important;
    margin-inline: 0 !important;
    align-items: stretch;
  }
  html body[data-detail-selected] #hero .v7-bar .v7-actions > :is(.v7-cta, .v7-pdf) {
    width: 100% !important;
  }
  body[data-detail-selected] #hero .v7-cta.ds-split-action > span {
    padding-inline: 5px;
    white-space: nowrap;
  }
  body[data-detail-selected] #about .av-tabs {
    width: 100%;
    justify-self: stretch;
  }
  html body[data-detail-selected] #related .related-inner .projects {
    gap: 12px !important;
  }
  html body[data-detail-selected] #related .related-inner .projects:has(> .cc-card:not([hidden]) ~ .cc-card:not([hidden])) > .cc-card {
    flex: 0 0 calc((100% - 12px) / 1.12) !important;
  }
}
@media (max-width: 360px) {
  html body[data-detail-selected] #hero .v7-bar .v7-actions > .v7-cta {
    --split-size: 38px !important;
    padding-inline: 3px !important;
    gap: 0 !important;
  }
  html body[data-detail-selected] #hero .v7-bar .v7-cta > span:first-child {
    padding-inline: 0 !important;
  }
  html body[data-detail-selected] #hero .v7-bar .v7-cta .demo-pill-icon {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }
}
