/* Typography and color come from the existing .xs-case configuration. */
.cr-story { max-width: var(--xs-width); width: calc(100% - 2 * var(--xs-gutter)); margin: auto; padding-bottom: 100px; }
.cr-nav { flex-wrap: wrap; }
.cr-nav .gallery-language { white-space: nowrap; }
.cr-case a { color: #365a81; text-underline-offset: 4px; }
.cr-case a:focus-visible, .cr-case button:focus-visible { outline: 1px solid #6689b0; outline-offset: 5px; }
.cr-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); column-gap: 48px; align-items: start; padding: 100px 0 110px; min-height: 670px; box-sizing: border-box; }
.cr-case h1 { margin: 20px 0 16px; }
.cr-case .cr-tagline { font: italic 18px/1.6 var(--xs-heading-en); color: #365a81; }
.cr-case .cr-lead { margin-top: 28px; }
.cr-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.cr-links a { border-bottom: 1px solid #a8bfd9; padding: 4px 0; text-decoration: none; }
.cr-case .cr-tags { font-size: 12px; color: #53677b; margin-top: 24px; }
.cr-placeholder { margin: 0; min-width: 0; min-height: 220px; border: 1px solid #dce5ee; background: #f2f6fa; display: grid; place-items: center; color: #53677b; }
.cr-placeholder figcaption { padding: 25px; text-align: center; font-size: 12px; letter-spacing: .04em; }
.cr-placeholder small { display: block; font-size: 11px; margin-top: 8px; color: #7d91a6; }
.cr-browser { position: relative; aspect-ratio: 1.38; min-height: 0; margin-top: 52px; border-radius: 6px; box-shadow: 0 10px 22px -18px #3e5e7b66; }
.cr-browser::before { content: '•  •  •'; position: absolute; top: 0; left: 0; right: 0; height: 25px; padding: 0 12px; border-bottom: 1px solid #dce5ee; color: #b4c6d9; }
.cr-section { margin-top: 130px; padding-top: 32px; border-top: 1px solid #dce5ee; }
.cr-section--overview { margin-top: 0; }
.cr-section-heading { margin-bottom: 30px; }
.cr-section-heading small { font: italic 17px var(--xs-heading-en); }
.cr-case .cr-section-heading h2 { margin-top: 14px; }
.cr-case h3 { font: 500 16px/1.5 var(--xs-heading); color: #294d75; margin: 0 0 12px; }
.cr-case p { max-width: none; }
.cr-section--starting > p, .cr-section--pivot > p, .cr-section--skill > p, .cr-section--outcome > p { max-width: 580px; }
.cr-section--pivot { padding-left: 120px; }
.cr-forms { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 34px; margin-top: 35px; }
.cr-forms > div + div { border-left: 1px solid #dce5ee; padding-left: 25px; }
.cr-case .cr-note { margin-top: 32px; color: #53677b; }
.cr-section--reading { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 48px; align-items: start; }
.cr-section--reading .cr-section-heading { grid-column: 1 / -1; }
.cr-section--reading .cr-browser { margin-top: 12px; }
.cr-section--development { padding-top: 48px; }
.cr-section--development .cr-section-heading { margin-bottom: 54px; }
.cr-development-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 62px; align-items: start; margin-top: 60px; }
.cr-development-row .cr-placeholder { min-height: 280px; }
.cr-development-row:first-of-type { margin-top: 0; }
.cr-development-copy + .cr-development-copy { margin-top: 40px; }
.cr-part-number { display: block; font-size: 11px; color: #7d91a6; margin-bottom: 10px; }
.cr-section--skill { margin-top: 150px; }
.cr-skill-link { margin-top: 30px; color: #53677b; }
.cr-skill-link small { display: block; font-size: 11px; color: #7d91a6; }
.cr-footer { margin-top: 90px; padding-top: 30px; border-top: 1px solid #dce5ee; }
.cr-footer button { border: 0; background: transparent; padding: 6px 0; color: #294d75; font: inherit; cursor: pointer; }
@media (max-width: 700px) {
  .cr-hero { grid-template-columns: minmax(0,1fr); padding: 55px 0 65px; min-height: 0; }
  .cr-hero .cr-browser { margin-top: 42px; }
  .cr-section { margin-top: 85px; }
  .cr-section--overview { margin-top: 20px; }
  .cr-section--pivot { padding-left: 0; }
  .cr-forms, .cr-section--reading, .cr-development-row { display: block; }
  .cr-forms > div + div { border-left: 0; padding-left: 0; margin-top: 28px; }
  .cr-section--reading .cr-browser { margin-top: 35px; }
  .cr-development-row { margin-top: 48px; }
  .cr-development-row .cr-placeholder { min-height: 210px; margin-top: 30px; }
  .cr-section--development .cr-section-heading { margin-bottom: 32px; }
}

/* v0.2 content additions, inside the existing sections. */
.cr-installer-link { margin-top: 20px; }
.cr-installer-link small { display: block; margin-top: 6px; color: #7d91a6; font-size: 11px; }
.cr-development-addon { margin-top: 60px; max-width: 580px; }

/* Real product media: intrinsic ratios; links open original-resolution images. */
.cr-media { margin: 0; min-width: 0; }
.cr-media img, .cr-media video { display: block; width: 100%; height: auto; border-radius: 5px; }
.cr-media a { display: block; }
.cr-media.cr-browser { aspect-ratio: auto; padding-top: 26px; border: 1px solid #dce5ee; background: #f2f6fa; }
.cr-section--overview > .cr-media { max-width: 580px; margin-top: 35px; }
.cr-reading-media { min-width: 0; }
.cr-reading-media > .cr-media + .cr-media { width: 88%; margin: 30px 0 0 auto; }
.cr-development-row:has(> .cr-development-copy:only-child) { display: block; max-width: 580px; }
@media (max-width: 700px) {
  .cr-development-row > .cr-media { margin-top: 30px; }
  .cr-reading-media > .cr-media + .cr-media { width: 100%; }
}

/* Floating screenshots share a quiet edge and two levels of natural shadow. */
.cr-media {
  --cr-panel-radius: 14px;
  --cr-panel-shadow: 0 3px 7px -3px #294d751f, 0 18px 36px -18px #294d753b;
  box-sizing: border-box;
  border: 1px solid #d4dfe9;
  border-radius: var(--cr-panel-radius);
  background: #fff;
  box-shadow: var(--cr-panel-shadow), 0 2px 0 #e4ebf2;
}
.cr-media a { border-radius: inherit; }
.cr-media img, .cr-media video { border-radius: calc(var(--cr-panel-radius) - 1px); }
.cr-media.cr-browser { border-color: #d4dfe9; border-radius: var(--cr-panel-radius); box-shadow: var(--cr-panel-shadow), 0 2px 0 #e4ebf2; }
.cr-media.cr-browser::before { box-sizing: border-box; border-radius: 13px 13px 0 0; }
.cr-media.cr-browser img { border-top-left-radius: 0; border-top-right-radius: 0; }
.cr-hero > .cr-media { --cr-panel-shadow: 0 4px 10px -4px #294d752b, 0 24px 44px -20px #294d7547; }
.cr-reading-media > .cr-media + .cr-media { position: relative; z-index: 1; --cr-panel-shadow: 0 3px 8px -3px #294d7526, 0 20px 34px -18px #294d7542; }
/* Video and long reading panels remain still, including while controls are used. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cr-hero > .cr-media, .cr-section--overview > .cr-media,
  .cr-reading-media > .cr-media + .cr-media {
    transition: transform 250ms ease, box-shadow 250ms ease;
  }
  .cr-hero > .cr-media:hover, .cr-section--overview > .cr-media:hover,
  .cr-reading-media > .cr-media + .cr-media:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 5px 12px -4px #294d752b, 0 28px 44px -20px #294d7552, 0 2px 0 #e4ebf2;
  }
}
@media (max-width: 700px) { .cr-media { --cr-panel-radius: 12px; } }
