/* Data Ingestion, Analytics, Migration and ML Services: the figures on its slides.
   Terminals, JSON and the shared colours are in ../iam.css. */

:root { --ing: #8c4fff; --sto: #3f8624; --ana: #0d47a1; --src: #ed7100; --mig: #0d7c66; --ml: #01a88d; --ok: #1d8102; --no: #d13212; --pay: #b45309; }

.sv-fig { justify-content: flex-start; }
.ic { width: 34px; height: 34px; flex: none; }
.ic.xs { width: 22px; height: 22px; vertical-align: middle; }
.term.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.term .pr.pi { color: #f2b705; }
.cap { display: block; font-size: 13px; color: var(--sv-ink2); margin: 4px 0; }

/* The sections' colours. */
[data-sec="intro"] { --sec: #334155; }
[data-sec="ingest"] { --sec: #7c3aed; }
[data-sec="store"] { --sec: #3f6212; }
[data-sec="analytics"] { --sec: #1d4ed8; }
[data-sec="migration"] { --sec: #0d7c66; }
[data-sec="ml"] { --sec: #b45309; }

/* Tables. */
.tbl { border-collapse: collapse; background: #fff; border: 1px solid var(--sv-line); font-size: 14px; }
.tbl th, .tbl td { padding: 7px 11px; border-top: 1px solid #eef0f3; text-align: left; vertical-align: top; }
.tbl tr:first-child th { border-top: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-ink2); }
.tbl tr:not(:first-child) th { font-weight: 700; }
.tbl code { font: 13px var(--mono); }
.tbl.cmp { width: 100%; }
.tbl.cmp td { width: 38%; }

/* Exam questions. */
.pe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pe-q { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 8px; background: #fffbea; border: 1px solid #e8d48a; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.pe-q > b { font-size: 16px; color: #8a6500; }
.pe-q p { margin: 0 0 6px; }
.pe-a, .pe-w { display: grid; grid-template-columns: 1.2em minmax(0, 1fr); gap: 4px; font-size: 13px; }
.pe-a { font-weight: 600; color: #1b5e05; }
.pe-w { color: var(--sv-ink2); }
.pe-q:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Layout helpers. */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two.w { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* A box: an icon, a name, a line, a value. */
.bx { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sv-line); border-radius: 9px; padding: 8px 12px; min-width: 0; }
.bx > span { display: flex; flex-direction: column; min-width: 0; }
.bx b { font-size: 14.5px; }
.bx small { font-size: 12.5px; color: var(--sv-ink2); }
.bx code { font: 12.5px var(--mono); overflow-wrap: anywhere; }
.bx.sm { padding: 5px 10px; } .bx.sm .ic { width: 28px; height: 28px; } .bx.sm b { font-size: 13.5px; }
.bx.src { border: 2px solid var(--src); background: #fff7ef; }
.bx.ing { border: 2px solid var(--ing); background: #f6f1ff; }
.bx.sto { border: 2px solid var(--sto); background: #f4faf0; }
.bx.ana { border: 2px solid var(--ana); background: #f0f5fd; }

/* An arrow with a label over it. */
.ar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 52px; font-size: 12px; color: var(--sv-ink2); text-align: center; }
.ar span code, .ar span { font-family: var(--mono); }
.ar i { display: block; width: 100%; min-width: 40px; height: 2px; background: #545b64; position: relative; }
.ar i::after { content: ''; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid #545b64; border-right: 0; }
.ar.down { flex-direction: row; min-width: 0; min-height: 34px; gap: 8px; }
.ar.down i { width: 2px; min-width: 2px; height: 30px; order: -1; }
.ar.down i::after { right: -5px; top: auto; bottom: -3px; border: 6px solid transparent; border-top: 9px solid #545b64; border-bottom: 0; }

.chain { display: flex; align-items: center; gap: 4px; }
.chain > .bx { flex: 0 1 auto; }
.chain > .ar { flex: 1 1 40px; min-width: 40px; }
.chain.v { flex-direction: column; align-items: flex-start; }
.chain.v > .ar { flex: none; }
.meter { margin-top: 12px; display: inline-flex; align-items: baseline; gap: 10px; background: #fff8eb; border: 1px solid #f0c987; border-radius: 8px; padding: 6px 12px; font-size: 14px; align-self: flex-start; }
.meter b { font: 700 22px var(--mono); color: var(--pay); }


.chain + .chain { margin-top: 12px; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.facts span { background: #f0f5fd; border: 1px solid #c5d6f2; border-radius: 16px; padding: 3px 12px; font-size: 13.5px; }
.json.small { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tbl.cmp3 { width: 100%; } .tbl.r7 { width: 100%; } .tbl.res { margin: 0; }
.vpcb { position: relative; border: 2px solid #8c4fff; border-radius: 12px; padding: 8px 12px 12px; background: #fbf8ff; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vpcb > small { font: 600 12.5px var(--mono); color: #8c4fff; }
.dcb { border: 2px solid #545b64; border-radius: 12px; background: #f2f3f3; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.dcb > small { font-size: 12.5px; color: var(--sv-ink2); }

/* The map: five stages left to right, two beside. */
.flow5 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) auto) minmax(0, .8fr); gap: 6px; align-items: stretch; }
.fa { font-style: normal; align-self: center; font-size: 22px; color: var(--sv-ink2); }
.stage { position: relative; background: #fff; border: 1px solid var(--sv-line); border-top: 5px solid var(--c); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.stage b { font-size: 15.5px; } .stage small { font-size: 12.5px; color: var(--sv-ink2); }
.sn { position: absolute; top: -14px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); font-weight: 700; font-size: 13px; }
.sics { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; } .sics .ic { width: 32px; height: 32px; }
.st-src { --c: #ed7100; } .st-ingest { --c: #7c3aed; } .st-store { --c: #3f6212; } .st-analyze, .st-see { --c: #1d4ed8; } .st-mig { --c: #0d7c66; } .st-ml { --c: #b45309; }
.side2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* Kinesis. */
.kds { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) minmax(0, .9fr); gap: 12px; align-items: center; }
.stream { background: #f6f1ff; border: 2px solid var(--ing); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.stream > small { color: var(--sv-ink2); font-size: 12.5px; }
.shard { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #d4c2fb; border-radius: 6px; padding: 4px 6px; }
.shard small { font: 600 11.5px var(--mono); color: var(--ing); width: 4.6em; flex: none; }
.shard i { margin-left: auto; font-style: normal; color: var(--ing); }
.rec { font: 11.5px var(--mono); background: #ede5ff; border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
.fhd { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.fhbox { background: #f6f1ff; border: 2px solid var(--ing); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.fhbox > .ic { width: 44px; height: 44px; }
.buf { width: 100%; font-size: 13px; } .buf small { display: block; color: var(--sv-ink2); font-size: 12px; }
.fill { height: 14px; border: 1px solid var(--ing); border-radius: 4px; background: #fff; margin: 4px 0; overflow: hidden; }
.fill i { display: block; width: 68%; height: 100%; background: repeating-linear-gradient(90deg, #b9a0f5 0 10px, #d6c7fa 10px 12px); }
.opt { width: 100%; font-size: 12.5px; border: 1px dashed var(--ing); border-radius: 6px; padding: 3px 6px; background: #fff; }
.msk { display: flex; flex-direction: column; gap: 10px; }
.mskh { display: flex; align-items: center; gap: 10px; } .mskh code { font: 13px var(--mono); }
.azs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.az { border: 1.5px dashed #0972d3; border-radius: 9px; padding: 6px 8px 8px; background: #fff; }
.az > small { font: 600 12px var(--mono); color: #0972d3; }
.broker { margin-top: 4px; border: 2px solid var(--ing); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.part { font: 12px var(--mono); border: 1px solid var(--ing); border-radius: 4px; padding: 1px 6px; color: var(--ing); background: #fff; }
.part.lead { background: var(--ing); color: #fff; }

/* The lake. */
.lake { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 12px; align-items: center; }
.bkt, .catb { border: 2px solid var(--sto); border-radius: 12px; background: #f4faf0; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bkt b, .catb b { font: 700 13.5px var(--mono); overflow-wrap: anywhere; }
.zone { background: #fff; border: 1px solid #b7d7a8; border-radius: 6px; padding: 4px 8px; display: flex; flex-direction: column; }
.zone code { font: 600 13px var(--mono); } .zone small { font-size: 12px; color: var(--sv-ink2); }

/* Row and column formats. */
.lay { background: #fff; border: 1px solid var(--sv-line); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.lay > small { font-size: 12px; color: var(--sv-ink2); }
.lay .ln { display: flex; gap: 3px; align-items: center; }
.lay .ln code { font: 600 11.5px var(--mono); width: 5em; flex: none; }
.cell { font: 11.5px var(--mono); border: 1px solid #e3e6ea; border-radius: 3px; padding: 1px 4px; white-space: nowrap; }
.cell.read { background: #fde6cf; border-color: #f0b27a; }
.cell.want { font-weight: 700; }
.pref { background: #fff; border: 1px solid var(--sv-line); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pref b { font: 700 12.5px var(--mono); overflow-wrap: anywhere; }
.pref div { display: flex; justify-content: space-between; gap: 8px; border-radius: 5px; padding: 2px 8px; }
.pref code { font: 12.5px var(--mono); }
.pref .scan { background: #f4faf0; border: 1px solid #b7d7a8; } .pref .scan span { color: var(--ok); font-weight: 600; }
.pref .skip { color: #9aa1a9; border: 1px dashed #d5dbdb; }
.lfg { border: 2px solid var(--sto); border-radius: 12px; background: #f4faf0; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.grant { background: #fff; border-radius: 6px; border: 1px solid #b7d7a8; padding: 5px 8px; display: flex; flex-direction: column; }
.grant small { font-size: 12px; color: var(--sv-ink2); } .grant code { font: 12px var(--mono); overflow-wrap: anywhere; }
.lft th, .lft td { font-size: 12.5px; } .lft .hid { color: #b0b6bd; background: #f6f7f9; }

/* Analytics. */
.meter { margin-top: 10px; display: inline-flex; align-items: baseline; gap: 10px; background: #fff8eb; border: 1px solid #f0c987; border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.meter b { font: 700 22px var(--mono); color: var(--pay); }
.two .json { margin: 0; }
.rsd { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 10px; align-items: center; }
.cluster { border: 2px solid var(--ana); border-radius: 12px; background: #f0f5fd; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.leader { background: #1d4ed8; color: #fff; border-radius: 6px; padding: 6px; text-align: center; font-size: 13.5px; }
.nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nodes span { background: #fff; border: 1px solid #9db8ec; border-radius: 6px; padding: 6px; font-size: 13px; text-align: center; display: flex; flex-direction: column; }
.nodes small { font-size: 11.5px; color: var(--sv-ink2); }
.emr { border: 2px solid var(--ana); border-radius: 12px; background: #f0f5fd; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.enodes { display: grid; grid-template-columns: 1fr 1.5fr 2fr; gap: 10px; }
.enode { background: #fff; border: 1px solid #9db8ec; border-radius: 8px; padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.enode b { width: 100%; font-size: 13.5px; } .enode small { width: 100%; font-size: 12px; color: var(--sv-ink2); }
.enode.spot { border-style: dashed; }
.fw { display: flex; gap: 6px; flex-wrap: wrap; } .fw span { font-size: 12.5px; border-radius: 12px; background: #fff; border: 1px solid #9db8ec; padding: 2px 10px; }
.osd { border: 2px solid var(--ana); border-radius: 12px; background: #f0f5fd; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; flex: 1 1 0; min-width: 0; }
.osd code { font: 11.5px var(--mono); overflow-wrap: anywhere; background: #fff; border-radius: 4px; padding: 2px 6px; }
.osd small { font-size: 12px; color: var(--sv-ink2); }
.dash, .qs { background: #fff; border: 1px solid var(--sv-line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.dash b { font-size: 13px; }
.bars, .qbars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bars i, .qbars i { flex: 1; background: #5b8def; border-radius: 3px 3px 0 0; min-width: 10px; }
.qs { flex: 1 1 0; } .qs > small { font-size: 12.5px; color: var(--sv-ink2); }
.qdash { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; align-items: end; }
.qtile { border: 1px solid var(--sv-line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.qtile small { font-size: 11.5px; color: var(--sv-ink2); } .qtile b { font: 700 20px var(--mono); }

/* Migration. */
.mig { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, .9fr); gap: 12px; align-items: center; }
.srv { display: flex; gap: 4px; flex-wrap: wrap; } .srv span { font: 12px var(--mono); background: #fff; border: 1px solid #545b64; border-radius: 4px; padding: 3px 6px; }
.phase { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 1px solid var(--sv-line); border-left: 4px solid var(--mig); border-radius: 8px; padding: 6px 10px; font-size: 13.5px; }
.phase small { width: 100%; color: var(--sv-ink2); font-size: 12.5px; }
.ri { border: 2px solid var(--mig); border-radius: 12px; background: #effaf6; padding: 10px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; flex: 1 1 0; }
.task { display: flex; flex-direction: column; gap: 4px; width: 100%; } .task span { background: #fff; border: 1px solid #9fd8c5; border-radius: 6px; padding: 3px 6px; font-size: 13px; }
.hh { display: grid; grid-template-columns: 9em auto auto auto minmax(0, 1fr); gap: 8px; align-items: center; background: #fff; border: 1px solid var(--sv-line); border-left: 5px solid var(--mig); border-radius: 9px; padding: 8px 12px; margin-bottom: 8px; font-size: 13.5px; }
.hh > i { font-style: normal; color: var(--sv-ink2); } .hh code { font: 12.5px var(--mono); }
.steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-self: end; }
.steps span { background: #effaf6; border: 1px solid #9fd8c5; border-radius: 12px; padding: 2px 10px; font-size: 12.5px; }
.steps i { font-style: normal; color: var(--sv-ink2); }

/* Machine learning. */
.mlg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mlc { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--sv-line); border-radius: 9px; padding: 8px 10px; }
.mlc > span { display: flex; flex-direction: column; } .mlc b { font-size: 14.5px; } .mlc small { font-size: 12.5px; color: var(--sv-ink2); }
.mlc em { font-size: 12.5px; font-style: normal; color: var(--pay); font-weight: 600; }
.tiers { display: flex; flex-direction: column; gap: 10px; }
.tier { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--sv-line); border-left: 6px solid var(--c); border-radius: 10px; padding: 10px 12px; }
.tier > span { display: flex; flex-direction: column; } .tier b { font-size: 15px; } .tier small { font-size: 13px; color: var(--sv-ink2); } .tier em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--c); }
.tics { display: flex; gap: 4px; flex: none; width: 120px; } .tics .ic { width: 34px; height: 34px; }
.t-ai { --c: #01a88d; } .t-bed { --c: #0d7c66; } .t-sm { --c: #1d4ed8; }
.axis { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--sv-ink2); }
.axis i { flex: 1; height: 2px; background: linear-gradient(90deg, #01a88d, #1d4ed8); }

@media (max-width: 860px) {
  .two, .flow5, .side2, .kds, .fhd, .lake, .rsd, .mig, .azs3, .enodes, .mlg, .qdash { grid-template-columns: 1fr; }
  .fa { transform: rotate(90deg); justify-self: center; }
  .chain { flex-direction: column; align-items: stretch; }
  .chain > .ar { flex: none; min-height: 30px; }
  .pe { grid-template-columns: 1fr; }
  .hh { grid-template-columns: 1fr; } .steps { justify-self: start; }
}

/* In this deck's chains the arrows keep a fixed length, and the big boxes take the rest. */
.chain > .ar { flex: 0 1 90px; }
.chain > .osd, .chain > .qs, .chain > .ri { flex: 1 1 0; }
@media (max-width: 860px) { .chain > .ar { flex: none; } }
