/* Styles of /bankingconcept/ only (moved out of its <style> block on 2026-11-10).
   Loaded after the shared sheets, at the same place the block was, so the
   cascade is unchanged. Rules shared by several pages go in /css. */

/* Image rows of this case, on the content grid (spans of columns, no pixels).
   The row takes all the content columns and its items span columns of it. */
body.case-page .bc-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: start;
}
body.case-page .bc-row > .cp-figure { grid-column: span 3; display: block; }
body.case-page .bc-row--duo > .cp-figure:first-child { grid-column: span 5; }   /* first five content columns */
body.case-page .bc-row--duo > .cp-figure:last-child { grid-column: span 4; }    /* last four */
body.case-page .bc-row .cp-fit { grid-column: auto; }


/* Editorial rows (text and image sharing the content columns). Each
   piece names its own span; the image starts on the body line of the text,
   below the heading band, never beside the title. The text starts on the
   first content column, the image ends on the last one; above 1200px the
   image takes the three extra columns, so the gap between them stays. */
body.case-page .bc-edit { --bc-band: calc(1.3 * 12px + var(--v-gutter)); }
html body.case-page .cp .bc-edit > .cp-block { grid-column: 1 / span 3; }
html body.case-page .cp .bc-edit > .cp-block.bc-t3 { grid-column: 1 / span 3; }
html body.case-page .cp .bc-edit > .cp-block.bc-t4 { grid-column: 1 / span 4; }
html body.case-page .cp .bc-edit > .cp-block.bc-t5 { grid-column: 1 / span 4; }   /* under 7: text never side by side */
html body.case-page .cp .bc-edit > .cp-block.bc-t5l { grid-column: 1 / span 5; }
body.case-page .bc-edit > .cp-figure { display: block; margin-top: var(--bc-band); }
body.case-page .bc-edit > .cp-figure.bc-i5 { grid-column: span 5 / -1; }
body.case-page .bc-edit > .cp-figure.bc-i4 { grid-column: span 4 / -1; }
/* Two images in one figure, one gutter apart: the text beside them lands on the bottom of the second. */
body.case-page .bc-stack > .cp-fit + .cp-fit { margin-top: var(--v-gutter); }
body.case-page .bc-edit .cp-fit { grid-column: auto; }

/* Lists: a dash on the column line, the wrapped lines just past it. */
body.case-page .cp-block ul { list-style: none; margin: 0; padding: 0; }
body.case-page .cp-block p + ul > li:first-child { margin-top: 0.65em; }
body.case-page .cp-block li { position: relative; padding-left: 1em; }
body.case-page .cp-block li + li { margin-top: 0.65em; }
body.case-page .cp-block li::before {
  content: "\2013";
  content: "\2013" / "";
  position: absolute;
  left: 0;
}

/* The interaction panel: a black box on all the content columns, painted by
   a grid item so its edges are column lines. Pure black, not --black, so it
   melts into the black corners of the video. Sections 5 and 6 one under the
   other on the first four (text never side by side), the video on three
   columns one column short of the right edge, with the 32 px inset of a box. */
body.case-page .bc-stage::before {
  content: "";
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  align-self: stretch;   /* .cp-pair aligns its items to the start */
  background: #000;
}
html body.case-page .cp .bc-stage > .cp-block { color: var(--paper); margin-top: 32px; margin-bottom: 32px; }
body.case-page .bc-stage > .cp-block :is(h2, h3, p, li, strong) { color: var(--paper); }
html body.case-page .cp .bc-stage > .cp-block.bc-l { grid-column: 1 / span 4; grid-row: 1; padding-left: 32px; margin-bottom: 0; }
html body.case-page .cp .bc-stage > .cp-block.bc-r { grid-column: 1 / span 4; grid-row: 2; padding-left: 32px; margin-top: 0; }
body.case-page .bc-stage > .cp-figure.bc-v { grid-column: span 3 / -2; grid-row: 1 / span 2; margin: 32px 0; }
html.a11y body.case-page .bc-stage > .cp-block,
html.a11y body.case-page .bc-stage > .cp-block :is(h2, h3, p, li, strong) { color: #fff !important; }

/* The second screen runs off the right edge of the page: from its column line to the
   viewport, past the right inset of the content (--cp-bleed-r, css/case-page.css). */
body.case-page .bc-row--sq > .cp-figure:last-child {
  margin-right: calc(-1 * var(--cp-bleed-r));
}
/* The two square screens under the panel: six and three content columns
   (eight and four above 1200px), one gutter apart. */
@media (min-width: 64em) {
  body.case-page .bc-row--sq > .cp-figure:first-child { grid-column: 1 / span 6; }
  body.case-page .bc-row--sq > .cp-figure:last-child { grid-column: 7 / span 3; }
}
/* Above 1200px: twelve content columns, the content inset is the zone's. */
@media (min-width: 75.0625em) {
  body.case-page .bc-row > .cp-figure { grid-column: span 4; }
  body.case-page .bc-row--duo > .cp-figure:first-child { grid-column: span 7; }
  body.case-page .bc-row--duo > .cp-figure:last-child { grid-column: span 5; }
  body.case-page .bc-row--sq > .cp-figure:first-child { grid-column: 1 / span 8; }
  body.case-page .bc-row--sq > .cp-figure:last-child { grid-column: 9 / span 4; }
  body.case-page .bc-edit > .cp-figure.bc-i5 { grid-column: span 8 / -1; }
  body.case-page .bc-edit > .cp-figure.bc-i4 { grid-column: span 7 / -1; }
}

@media (max-width: 63.99em) {
  /* Tablet and phone: text and image stack, the text a little narrower than the image. */
  html body.case-page .cp .bc-edit > .cp-block,
  html body.case-page .cp .bc-edit > .cp-block.bc-t3,
  html body.case-page .cp .bc-edit > .cp-block.bc-t4,
  html body.case-page .cp .bc-edit > .cp-block.bc-t5,
  html body.case-page .cp .bc-edit > .cp-block.bc-t5l { grid-column: 1 / span 6; }
  body.case-page .bc-edit > .cp-figure,
  body.case-page .bc-edit > .cp-figure.bc-i5,
  body.case-page .bc-edit > .cp-figure.bc-i4 { grid-column: 1 / -1; margin-top: 0; }
  /* Tablet panel: 5, then 6, then the video centered under them. */
  body.case-page .bc-stage::before { grid-column: 1 / -1; grid-row: 1 / span 3; }
  html body.case-page .cp .bc-stage > .cp-block { margin-bottom: 0; }
  html body.case-page .cp .bc-stage > .cp-block.bc-l { grid-column: 1 / span 6; grid-row: 1; }
  html body.case-page .cp .bc-stage > .cp-block.bc-r { grid-column: 1 / span 6; grid-row: 2; padding-left: 32px; margin-top: 0; }
  body.case-page .bc-stage { row-gap: 32px; }
  body.case-page .bc-stage > .cp-figure.bc-v { grid-column: 3 / span 4; grid-row: 3; margin: 0 0 32px; }
  body.case-page .bc-edit { row-gap: var(--cp-gap); }
  body.case-page .bc-row { grid-column: 1 / -1; }
  body.case-page .bc-row > .cp-figure,
  body.case-page .bc-row--duo > .cp-figure:first-child,
  body.case-page .bc-row--duo > .cp-figure:last-child { grid-column: span 4; }     /* tablet: 4 + 4 of 8 */
  body.case-page .bc-row { row-gap: var(--cp-gap); }
}
@media (max-width: 37.49em) {
  html body.case-page .cp .bc-edit > .cp-block,
  html body.case-page .cp .bc-edit > .cp-block.bc-t3,
  html body.case-page .cp .bc-edit > .cp-block.bc-t4,
  html body.case-page .cp .bc-edit > .cp-block.bc-t5,
  html body.case-page .cp .bc-edit > .cp-block.bc-t5l { grid-column: 1 / -1; }
  /* Phone panel: 5, 6 and the video, one under the other, all inside the box. */
  body.case-page .bc-stage::before { grid-row: 1 / span 3; }
  html body.case-page .cp .bc-stage > .cp-block.bc-l { grid-column: 1 / -1; grid-row: 1; padding-right: 32px; }
  html body.case-page .cp .bc-stage > .cp-block.bc-r { grid-column: 1 / -1; grid-row: 2; padding-left: 32px; margin-top: 0; }
  body.case-page .bc-stage > .cp-figure.bc-v { grid-column: 1 / -1; grid-row: 3; margin: 0 32px 32px; }
  body.case-page .bc-row > .cp-figure { grid-column: span 2; }                      /* phone: 2 of 4 */
  body.case-page .bc-row--duo > .cp-figure:first-child,
  body.case-page .bc-row--duo > .cp-figure:last-child { grid-column: 1 / -1; }
}
