.site-value {
  color: var(--studio-dark);
  background: #f7f9fc;
  border-block-end: 1px solid #dae2ee;
}
.sv-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-rows: auto auto 1fr;
  gap: clamp(22px, 2.2vw, 36px) clamp(36px, 5.4vw, 90px);
}
.sv-intro h2 {
  margin: 18px 0 0;
  max-inline-size: 16ch;
  font-size: clamp(2.6rem, 1.85rem + 3vw, 4.8rem);
  line-height: 1.02;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.sv-lead {
  margin-top: 20px;
  max-inline-size: 45ch;
  font-size: clamp(1.05rem, .94rem + .42vw, 1.35rem);
  line-height: 1.48;
  color: #354966;
}
.sv-argument { grid-column: 1; }
.sv-argument dl { margin: 0; }
.sv-argument dl > div { border-top: 1px solid #c6d1e2; padding-block: 15px 18px; }
.sv-argument dt, .sv-caption h4 {
  margin: 0;
  font-size: clamp(1.14rem, 1rem + .5vw, 1.55rem);
  line-height: 1.22;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title);
}
.sv-argument dd, .sv-caption p, .sv-story p {
  margin: 7px 0 0;
  color: #425572;
  line-height: 1.46;
  text-wrap: pretty;
}
.sv-next, .sv-proof a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--studio-blue);
  font-weight: var(--weight-semibold);
}
.sv-next:is(:hover,:focus-visible), .sv-proof a:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .22em; }
.sv-estimate {
  margin-inline: var(--sv-inset);
  border-top: 1px solid var(--line);
  padding-block: 4px 12px;
}
.sv-estimate .sv-next { min-height: 48px; }
.sv-estimate .icon { flex: none; }
.sv-estimate p { margin: 0 0 4px; color: #425572; font-size: .94rem; line-height: 1.4; }
.sv-proof {
  grid-column: 1;
  align-self: start;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 20px;
  border-top: 1px solid #c6d1e2;
  padding-block-start: 6px;
  color: #425572;
}
.sv-demo {
  --sv-inset: clamp(16px, 2.2vw, 32px);
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  min-inline-size: 0;
  border: 1px solid #cfd9e8;
  border-radius: 18px;
  background: white;
  overflow: clip;
}
.sv-switch { min-inline-size: 0; padding: 0; border: 0; margin: 0; }
.sv-switch legend {
  padding: 0;
  color: #405472;
  font-size: .93rem;
  line-height: 1.3;
  font-weight: var(--weight-medium);
}
.sv-industries { margin: 20px var(--sv-inset) 0; }
.sv-industries legend { margin-bottom: 5px; }
.sv-track { display: flex; }
.sv-choice {
  position: relative;
  min-inline-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 44px;
  padding: 6px 4px;
  color: #405472;
  font-weight: var(--weight-medium);
  text-align: center;
  cursor: pointer;
}
.sv-choice input { margin: 0 4px 0 0; accent-color: var(--studio-blue); }
.sv-industries .sv-choice { font-size: clamp(.94rem, .85rem + .35vw, 1.2rem); border-bottom: 2px solid #d8e1ef; }
.sv-story { padding: 18px var(--sv-inset) 17px; }
.sv-story h3 {
  margin: 0;
  letter-spacing: var(--tracking-title);
  line-height: 1.12;
  font-size: clamp(1.4rem, 1.1rem + 1.25vw, 2.3rem);
  font-weight: var(--weight-semibold);
  text-wrap: balance;
}
.sv-visual { position: relative; overflow: clip; margin-inline: var(--sv-inset); }
rs-site-value:defined .sv-visual { touch-action: pan-y pinch-zoom; }
.sv-panel { display: grid; }
.sv-stage { margin: 16px var(--sv-inset) 0; }
.sv-stage legend { margin-bottom: 7px; }
.sv-stage .sv-track { overflow: visible; border: 1px solid #cdd8e9; border-radius: 7px; background: #f2f5fb; }
.sv-stage .sv-choice { font-size: clamp(.875rem, .81rem + .15vw, 1rem); }
.sv-stage .sv-choice + .sv-choice { border-inline-start: 1px solid #cdd8e9; }
.sv-stage .sv-choice:first-child { border-radius: 6px 0 0 6px; }
.sv-stage .sv-choice:last-child { border-radius: 0 6px 6px 0; }
.sv-captions { display: grid; padding: 16px var(--sv-inset) 22px; }
@supports selector(:has(:checked)) {
  .sv-choice input { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); }
  .sv-industries .sv-choice:has(:checked) { color: var(--studio-blue); border-color: currentColor; font-weight: var(--weight-semibold); }
  .sv-stage .sv-choice:has(:checked) { color: white; background-color: var(--studio-blue); }
  .sv-choice:has(:focus-visible) { z-index: 1; outline: 3px solid #3868f7; outline-offset: 2px; }
  /* Reserve the tallest translation in each slot so the shared folder and
     controls stay at the same coordinates when an industry changes. */
  .sv-stories, .sv-panels { display: grid; }
  .sv-story, .sv-panel {
    --sector-visibility: hidden;
    grid-area: 1 / 1;
    align-content: start;
    min-width: 0;
    visibility: var(--sector-visibility);
  }
  .sv-demo:has(#site-value-sector-cafe:checked) :is(.sv-story,.sv-panel)[data-sector="cafe"],
  .sv-demo:has(#site-value-sector-clinic:checked) :is(.sv-story,.sv-panel)[data-sector="clinic"],
  .sv-demo:has(#site-value-sector-furniture:checked) :is(.sv-story,.sv-panel)[data-sector="furniture"] {
    --sector-visibility: visible;
  }
  .sv-caption { grid-area: 1 / 1; visibility: hidden; }
  .sv-panel:has(.sv-stage [value="catalog"]:checked) [data-for="catalog"],
  .sv-panel:has(.sv-stage [value="spec"]:checked) [data-for="spec"],
  .sv-panel:has(.sv-stage [value="order"]:checked) [data-for="order"] { visibility: var(--sector-visibility); }
}
@media (hover: hover) {
  .sv-choice:not(:has(:checked)):hover { background: #eaf0fa; color: #133da7; }
}
@media (prefers-reduced-motion: no-preference) {
  .sv-choice { transition: color .18s, border-color .2s, background-color .2s; }
  .sv-next .icon, .sv-proof .icon { transition: transform .22s ease; }
  :is(.sv-next,.sv-proof a):is(:hover,:focus-visible) .icon { transform: translateX(3px); }
  .sv-demo:has(#site-value-sector-cafe:checked) .sv-story[data-sector="cafe"],
  .sv-demo:has(#site-value-sector-clinic:checked) .sv-story[data-sector="clinic"],
  .sv-demo:has(#site-value-sector-furniture:checked) .sv-story[data-sector="furniture"],
  .sv-panel:has(.sv-stage [value="catalog"]:checked) [data-for="catalog"],
  .sv-panel:has(.sv-stage [value="spec"]:checked) [data-for="spec"],
  .sv-panel:has(.sv-stage [value="order"]:checked) [data-for="order"] { animation: sv-read .32s ease-out; }
  @keyframes sv-read { from { opacity: .3; transform: translateY(4px); } }
}
@media (max-width: 54rem) {
  .sv-layout { display: flex; flex-direction: column; gap: 24px; }
  .sv-intro h2 { max-inline-size: 20ch; }
  .sv-demo, .sv-proof { align-self: stretch; }
}
@media (max-width: 36rem) {
  .sv-layout { gap: 20px; }
  .sv-intro h2 { font-size: clamp(2.2rem, 1.2rem + 5.4vw, 3.3rem); }
  .sv-proof { gap: 0 14px; }
  .sv-stage .sv-choice { flex: 1 0 auto; }
  .sv-story h3 { text-wrap: pretty; }
}
@media (forced-colors: active) {
  .sv-choice:has(:checked) { outline: 2px solid Highlight; outline-offset: -3px; }
}
