/* Exam Strategy: SAA-C03: the figures on its slides. The shared colours are
   in ../iam.css. */

:root { --d1: #b91c1c; --d2: #1d4ed8; --d3: #7c3aed; --d4: #047857; --ok: #1d8102; --no: #d13212; --mark: #fde68a; }

[data-sec="intro"] { --sec: #334155; }
[data-sec="reading"] { --sec: #b45309; }
[data-sec="elim"] { --sec: #be123c; }
[data-sec="time"] { --sec: #0369a1; }
[data-sec="worked"] { --sec: #7c3aed; }
[data-sec="pairs"] { --sec: #0f766e; }
[data-sec="book"] { --sec: #475569; }

.sv-text:empty { display: none; }
.cap { margin: 0; font-size: 13.5px; color: var(--sv-ink2); }

/* 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.cons { font-size: 13px; } .tbl.cons th, .tbl.cons td { padding: 5px 10px; }
.tbl.cons tr:not(:first-child) th { color: #8a4b00; }
.tbl.pairs { font-size: 13px; } .tbl.pairs th, .tbl.pairs td { padding: 6px 10px; }
.tbl.pairs td:nth-child(3) { color: #0f5e57; }
.tbl.pairs td:last-child { white-space: nowrap; font-weight: 700; text-align: center; }

/* 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; }

/* The exam's facts and the strip of questions. */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fact { background: #fff; border: 1px solid var(--sv-line); border-left: 5px solid #334155; border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; }
.fact b { font-size: 30px; line-height: 1.1; } .fact span { font-weight: 600; font-size: 14px; } .fact small { font-size: 12.5px; color: var(--sv-ink2); }
.strip { display: grid; grid-template-columns: repeat(65, minmax(0, 1fr)); gap: 2px; }
.strip i, .strip-leg i { display: block; height: 30px; background: #334155; border-radius: 2px; }
.strip i.u, .strip-leg i.u { background: repeating-linear-gradient(45deg, #cbd2d9 0 3px, #fff 3px 6px); border: 1px solid #aab3bd; }
.strip-leg { display: flex; gap: 22px; font-size: 13px; color: var(--sv-ink2); }
.strip-leg span { display: flex; align-items: center; gap: 6px; } .strip-leg i { width: 12px; height: 16px; }

/* The scaled score. */
.sc { width: 100%; max-height: 100%; }
.sc-fail { fill: #fde8e4; } .sc-pass { fill: #dff3d8; }
.sc-zt { font-size: 15px; font-weight: 700; fill: #545b64; }
.sc-mark { stroke: var(--ok); stroke-width: 3; }
.sc-n { font-size: 13px; fill: #545b64; } .sc-n.b { font-weight: 700; fill: var(--ok); font-size: 15px; }
.sc-l { font-size: 15px; font-weight: 700; fill: #16191f; }
.sc-track { fill: #eef0f3; }
.sc-d1 { fill: var(--d1); } .sc-d2 { fill: var(--d2); } .sc-d3 { fill: var(--d3); } .sc-d4 { fill: var(--d4); }
.sc-segt { font-size: 13px; font-weight: 700; fill: #fff; }

/* The domains. */
.doms { display: flex; flex-direction: column; gap: 10px; }
.dom { background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 8px 12px; }
.dom-h { display: flex; align-items: center; gap: 12px; }
.dom-bar { flex: none; height: 30px; border-radius: 5px; display: flex; align-items: center; padding: 0 8px; color: #fff; min-width: 54px; }
.dom-n { font-weight: 700; display: flex; flex-direction: column; } .dom-n small { font-weight: 400; color: var(--sv-ink2); font-size: 12.5px; }
.dom.d1 .dom-bar { background: var(--d1); } .dom.d2 .dom-bar { background: var(--d2); } .dom.d3 .dom-bar { background: var(--d3); } .dom.d4 .dom-bar { background: var(--d4); }
.dom ul { margin: 6px 0 0; padding-left: 20px; font-size: 13px; columns: 2; column-gap: 24px; }
.dom li { break-inside: avoid; }

/* The parts of a question. */
.an { display: flex; flex-direction: column; gap: 8px; }
.an-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.an-txt { background: #fff; border: 1px solid var(--sv-line); border-left: 6px solid var(--c); border-radius: 8px; padding: 10px 14px; font-size: 16px; }
.an-n { display: flex; flex-direction: column; justify-content: center; font-size: 13.5px; color: var(--sv-ink2); }
.an-n b { color: var(--c); font-size: 14px; }
.an-context { --c: #7d8998; } .an-req { --c: #0369a1; } .an-con { --c: #d97706; } .an-q { --c: #334155; }
.an-con .an-txt { background: #fff8e6; font-weight: 700; }
.an-a { margin: 4px 0 0; font-weight: 700; color: var(--ok); font-size: 15px; }

/* The kinds of wrong option. */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind { background: #fff; border: 1px solid var(--sv-line); border-top: 4px solid var(--no); border-radius: 8px; padding: 10px 14px; position: relative; }
.kind-n { position: absolute; top: 8px; right: 12px; font-size: 26px; font-weight: 800; color: #f1d5cf; }
.kind b { font-size: 15.5px; display: block; padding-right: 30px; } .kind p { margin: 8px 0 0; font-size: 13.5px; color: var(--sv-ink2); }

/* A worked question. */
.qc { display: flex; flex-direction: column; gap: 7px; }
.qc-stem { margin: 0 0 4px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; }
.qc-stem mark { background: var(--mark); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.qc-o { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1.5px solid var(--sv-line); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.qc-o > b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #aab3bd; font-size: 13px; }
.qc-o small { display: block; font-size: 12.5px; margin-top: 2px; }
.qc-o.p1 { background: #fafafa; } .qc-o.p1 .qc-t { text-decoration: line-through; color: #8a8f96; } .qc-o.p1 small { color: var(--no); }
.qc-o.p2 { background: #fffaf2; } .qc-o.p2 .qc-t { color: #6b5a3e; } .qc-o.p2 small { color: #b45309; }
.qc-o.p0 { border-color: var(--ok); background: #eef8ea; } .qc-o.p0 > b { background: var(--ok); border-color: var(--ok); color: #fff; } .qc-o.p0 .qc-t { font-weight: 600; }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag.t1 { background: #fdecea; color: var(--no); } .tag.t2 { background: #fdf0e3; color: #b45309; } .tag.t0 { background: var(--ok); color: #fff; }

/* Multiple response. */
.mr { display: flex; flex-direction: column; gap: 8px; }
.mr-ctx { margin: 0 0 4px; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; }
.mr-o { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1.5px solid var(--sv-line); border-radius: 8px; padding: 8px 12px; font-size: 14.5px; }
.mr-o > b { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; border: 2px solid #aab3bd; font-size: 13px; }
.mr-o em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #8a8f96; }
.mr-o.y { border-color: var(--ok); background: #eef8ea; } .mr-o.y > b { background: var(--ok); border-color: var(--ok); color: #fff; } .mr-o.y em { color: var(--ok); }

/* The time budget. */
.tl { width: 100%; max-height: 100%; }
.tl-first { fill: #0369a1; } .tl-rev { fill: #f2b705; }
.tl-bt { font-size: 15px; font-weight: 700; fill: #fff; }
.tl-bt.d { fill: #16191f; }
.tl-tick { stroke: #8a8f96; } .tl-n { font-size: 13px; fill: #545b64; }
.tl-cp { stroke: #16191f; stroke-width: 2; stroke-dasharray: 4 3; }
.tl-dot { fill: #fff; stroke: #16191f; stroke-width: 2; }
.tl-q { font-size: 14px; font-weight: 800; fill: #16191f; }
.tl-pace { font-size: 16px; font-weight: 700; fill: #0369a1; }

/* Flag and return. */
.flow { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 560px; }
.flow > i { font-style: normal; color: #8a8f96; font-size: 18px; line-height: 1; }
.fb { background: #fff; border: 1.5px solid var(--sv-line); border-radius: 8px; padding: 8px 14px; font-size: 14.5px; text-align: center; min-width: 240px; }
.fb.dq { border-color: #0369a1; background: #eef6fb; font-weight: 700; }
.fb.ok { border-color: var(--ok); background: #eef8ea; }
.fb.fl { border-color: #d97706; background: #fff8e6; }
.fb.rv { border-color: #334155; background: #f1f3f5; font-weight: 600; }
.fsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.fsplit > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fsplit small { font-size: 12.5px; font-weight: 700; color: var(--sv-ink2); }
.fsplit .fb { min-width: 0; width: 100%; }

/* Readiness. */
.rd { width: 100%; max-height: 100%; }
.rd-z1 { fill: #fde8e4; } .rd-z2 { fill: #fdf0d5; } .rd-z3 { fill: var(--ok); }
.rd-zt { font-size: 14px; font-weight: 700; fill: #6b3a2e; } .rd-zt.w { fill: #fff; }
.rd-zs { font-size: 12.5px; font-weight: 600; fill: #8a6500; }
.rd-n { font-size: 13px; fill: #545b64; } .rd-n.b { font-weight: 700; fill: var(--ok); } .rd-n.w { fill: #fff; }
.rd-l { font-size: 15px; font-weight: 700; fill: #16191f; }
.rd-f { fill: #e9ebed; } .rd-p { fill: #6aa84f; }
.rd-note { font-size: 13px; fill: #545b64; font-style: italic; }

/* Booking. */
.bks { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.bks > i { font-style: normal; font-size: 22px; color: #8a8f96; }
.bk { background: #fff; border: 1px solid var(--sv-line); border-top: 4px solid #475569; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.bk > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #475569; color: #fff; font-weight: 700; font-size: 13px; }
.bk b { font-size: 15px; } .bk small { font-size: 13px; color: var(--sv-ink2); }
.bk-cost { margin-top: 14px; align-self: flex-start; font-size: 22px; font-weight: 800; background: #fff; border: 1px solid var(--sv-line); border-radius: 8px; padding: 6px 14px; }

/* The day. */
.tbl.dy { width: 100%; font-size: 13.5px; }
.dy td span { display: block; margin-bottom: 4px; }
.dy td.dy-after { background: #f6fbf3; vertical-align: middle; }
.dy td.dy-after span:first-child { font-weight: 700; }
.dy-none { color: #aab3bd; }

@media (max-width: 860px) {
  .pe, .facts, .kinds, .an-row, .bks { grid-template-columns: 1fr; }
  .bks > i { display: none; }
  .dom ul { columns: 1; }
  .strip i { height: 20px; }
  .tbl { font-size: 12.5px; display: block; overflow-x: auto; }
  .qc-o, .mr-o { grid-template-columns: 26px minmax(0, 1fr); } .qc-o .tag, .mr-o em { grid-column: 2; justify-self: start; }
}
