/* Everyday use cases of an internal assistant (includes/visuals/usecases.php) */
.uc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 680px) { .uc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .uc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.uc-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--paper); }
.section--paper .uc-card { background: var(--white); }
.uc-team { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.uc-team::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); }
.uc-req { margin: 10px 0 16px; font-family: var(--font-serif); font-size: 18px; line-height: 1.38; color: var(--forest); }

.uc-res-w { position: relative; min-width: 0; }
.uc-res { position: relative; height: 100%; box-sizing: border-box; padding: 14px 16px 12px; border-radius: 10px; background: var(--white); border-top: 3px solid var(--green-2);
  box-shadow: 0 1px 2px rgba(12, 43, 21, .06), 0 10px 24px -14px rgba(12, 43, 21, .28); }
.section--paper .uc-res { background: var(--paper); box-shadow: none; }
.uc-type { display: inline-block; margin: 0; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 12px; font-weight: 700; }
.uc-res-t { margin: 9px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--forest); }
.uc-lines { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 4px; }
.uc-lines li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.uc-lines li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 2px; border-radius: 1px; background: var(--green-text); }
.uc-src { display: flex; align-items: flex-start; gap: 6px; margin: 11px 0 0; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.uc-ico { flex: none; width: 15px; height: 15px; margin-top: 1px; }
.uc-src .uc-ico { color: var(--green-text); }
.uc-mark { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--forest); }
.uc-mark .uc-ico { width: 17px; height: 17px; margin: 0; color: var(--green-text); }

@media (max-width: 679px) {
  .uc-card { padding: 18px 18px 16px; }
  .uc-req { font-size: 17px; margin-bottom: 14px; }
}

/* animation: the cards come in with their request; the result is prepared over a placeholder,
   then revealed card after card with its safeguard marker */
.js .vz-figure .uc-card { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .vz-figure .uc-res-w::before { content: ""; position: absolute; inset: 0; border-radius: 10px; border: 1.5px dashed var(--line);
  background: linear-gradient(var(--line), var(--line)) 16px 20px / 34% 9px no-repeat, linear-gradient(var(--line), var(--line)) 16px 44px / 70% 8px no-repeat,
    linear-gradient(var(--line), var(--line)) 16px 64px / 56% 8px no-repeat; }
.js .vz-figure .uc-res { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .uc-mark { opacity: 0; transition: opacity .4s ease; }
.js .vz-figure.is-visible .uc-card, .js .vz-figure.is-visible .uc-res { opacity: 1; transform: none; }
.js .vz-figure.is-visible .uc-mark { opacity: 1; }
.js .vz-figure.is-visible .uc-res-w::before { animation: uc-wait 1s ease-in-out infinite alternate; }
.js .vz-figure.is-visible .uc-card--2 { transition-delay: .08s; }
.js .vz-figure.is-visible .uc-card--3 { transition-delay: .16s; }
.js .vz-figure.is-visible .uc-card--4 { transition-delay: .24s; }
.js .vz-figure.is-visible .uc-card--5 { transition-delay: .32s; }
.js .vz-figure.is-visible .uc-card--6 { transition-delay: .4s; }
.js .vz-figure.is-visible .uc-card--1 :is(.uc-res, .uc-mark) { transition-delay: .8s; }
.js .vz-figure.is-visible .uc-card--2 :is(.uc-res, .uc-mark) { transition-delay: 1.1s; }
.js .vz-figure.is-visible .uc-card--3 :is(.uc-res, .uc-mark) { transition-delay: 1.4s; }
.js .vz-figure.is-visible .uc-card--4 :is(.uc-res, .uc-mark) { transition-delay: 1.7s; }
.js .vz-figure.is-visible .uc-card--5 :is(.uc-res, .uc-mark) { transition-delay: 2s; }
.js .vz-figure.is-visible .uc-card--6 :is(.uc-res, .uc-mark) { transition-delay: 2.3s; }
@keyframes uc-wait { from { opacity: 1; } to { opacity: .45; } }

/* phones: a swipeable row instead of six stacked cards (the next card peeks in) */
@media (max-width: 679px) {
  .uc { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .uc::-webkit-scrollbar { display: none; }
  .uc-card { scroll-snap-align: start; }
}
