/* =========================================================
   Trace 1 don (order.html, js/order-trace.js).
   Mau: viec xong = mau tuong bep, dang chay = vang soc (giong phieu cho),
   loi = do, hoan tac = xanh - cung bo mau trang thai voi phieu.
   Message Kafka = vang dam: cung mau o bieu do va o thanh "Kafka di/ve".
   ========================================================= */

.trace-band { padding-bottom: 0; }
.band-lead { margin-top: 0.5rem; max-width: var(--measure); color: var(--muted); font-size: var(--t-sm); }

.trace { --tr-msg: #d99a00; --tr-msg-soft: #f0cd6b; --tr-outbox: #a9b3b6; margin-top: 1.25rem; }

/* ---- so lieu tong: "4 service · 7 process · ..." ---- */
.tr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.tr-stats li {
  padding: 0.35rem 0.75rem;
  background: var(--paper);
  border: 1px solid #d2d8d6;
  border-radius: 999px;
  font-size: var(--t-sm);
  color: var(--muted);
}
.tr-stats b { font-family: var(--f-receipt); color: var(--ink); font-weight: 700; }

/* ---- bieu do lan ---- */
.tr-scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid #d2d8d6;
  border-radius: 6px;
}
.tr-chart {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  min-width: 620px;
  padding: 0.5rem 1.25rem 0.75rem 0;
}
.tr-labels { border-right: 1px solid #d2d8d6; }
.tr-axis-pad { height: 1.6rem; }
.tr-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 38px; /* = LANE_H trong order-trace.js */
  padding: 0 0.75rem 0 1rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
}
.tr-label-name { font-weight: 600; font-size: var(--t-sm); }
.tr-label-sub { font-family: var(--f-receipt); font-size: 0.6875rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tr-label-topic { background: #fbf4e2; }
.tr-label-topic .tr-label-name { color: #8a6200; }

.tr-plot { position: relative; padding-left: 0.75rem; }
.tr-axis { position: relative; height: 1.6rem; }
.tr-tick {
  position: absolute;
  top: 0.2rem;
  transform: translateX(-50%);
  font-family: var(--f-receipt);
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.tr-tick:first-child { transform: none; }
.tr-lanes { position: relative; }
.tr-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: #e6eae9; }
.tr-now { position: absolute; top: -4px; bottom: 0; width: 2px; margin-left: -1px; background: var(--pending); opacity: 0.7; }

.tr-lane { position: relative; height: 38px; border-bottom: 1px solid #eef1f0; }
.tr-lane:last-child { border-bottom: 0; }
.tr-lane-topic { background: #fbf4e2; }

.tr-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tr-links path {
  fill: none;
  stroke: var(--tr-msg);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
  transition: opacity 150ms;
}
.tr-links path.is-dim { opacity: 0.08; }

.tr-bar {
  position: absolute;
  top: 10px;
  height: 18px;
  min-width: 4px;
  border-radius: 3px;
  background: var(--wall);
  cursor: pointer;
  transition: opacity 150ms;
}
.tr-bar.tr-http { background: var(--ink); }
.tr-bar.tr-undo { background: var(--undo); }
.tr-bar.tr-fail,
.tr-bar.tr-late { background: var(--fail); }
.tr-bar.tr-run {
  background: repeating-linear-gradient(45deg, #fbe7bb 0 4px, var(--pending) 4px 7px);
  background-size: 14px 14px;
  animation: tr-run 0.8s linear infinite;
}
@keyframes tr-run { to { background-position: 14px 0; } }
@media (prefers-reduced-motion: reduce) { .tr-bar.tr-run { animation: none; } }

.tr-msg {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--tr-msg);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--tr-msg);
  cursor: pointer;
  transition: opacity 150ms;
}
.tr-bar.is-dim,
.tr-msg.is-dim { opacity: 0.15; }

.tr-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: var(--t-sm);
  color: var(--muted);
}
.tr-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.tr-key { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.tr-key-ok { background: var(--wall); }
.tr-key-run { background: repeating-linear-gradient(45deg, #fbe7bb 0 3px, var(--pending) 3px 5px); }
.tr-key-fail { background: var(--fail); }
.tr-key-undo { background: var(--undo); }
.tr-key-msg { width: 10px; border-radius: 50%; background: var(--tr-msg); }

/* ---- tung chang ---- */
.tr-h3 { margin-top: 2rem; font-size: var(--t-md); font-weight: 600; }
.tr-http { margin-top: 0.5rem; max-width: var(--measure); font-size: var(--t-sm); color: var(--muted); }
.tr-http b { color: var(--ink); font-family: var(--f-receipt); }
.tc-failed,
.tc-late { border-left-color: var(--fail); }
.tc-undo { border-left-color: var(--undo); }

.tc-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  margin-top: 0.6rem;
  border-radius: 3px;
  overflow: hidden;
}
.tc-bar span { display: block; height: 100%; }
.tcs-outbox { --c: var(--tr-outbox); }
.tcs-kafka { --c: var(--tr-msg); }
.tcs-work { --c: var(--wall); }
.tcs-back { --c: var(--tr-msg-soft); }
/* participant co trace: cham gia lap + cho outbox cua participant */
.tcs-delay { --c: repeating-linear-gradient(45deg, #f1e3c4 0 3px, #e2c98f 3px 6px); }
.tc-bar span.tcs-delay { background: var(--c); }
.tc-segs .tcs-delay dt i { background: #e2c98f; }
.tcs-pout { --c: #cdd3d5; }
.tc-undo .tcs-work { --c: var(--undo); }
.tc-failed .tcs-work,
.tc-late .tcs-work { --c: var(--fail); }
.tc-bar span[class^="tcs-"] { background: var(--c); }

.tc-segs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
}
.tc-segs div { display: flex; justify-content: space-between; gap: 0.5rem; }
.tc-segs dt { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.tc-segs dt i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.tc-segs dt { white-space: nowrap; }
.tc-segs dd { margin: 0; font-family: var(--f-receipt); white-space: nowrap; }

.tc-path {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #b9bfc2;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--ink);
}
.tc-path small { color: var(--muted); font-size: inherit; }
.tc-msg { color: #8a6200; }
.tc-wait { color: var(--pending); }

.tr-sources { margin-top: 1.25rem; max-width: 80ch; font-size: var(--t-sm); color: var(--muted); }
.tr-src { font-family: var(--f-receipt); font-size: 0.75rem; color: var(--ink); }

@media (max-width: 640px) {
  .tr-chart { grid-template-columns: 8.5rem minmax(0, 1fr); min-width: 540px; }
  .tr-label { padding-left: 0.6rem; }
}

/* nhan "don mo phong" o dau trang don (che do mock) */
.demo-note {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: #fbe7bb;
  color: #5c4300;
  font-size: var(--t-sm);
}
.demo-note a { color: inherit; }

/* ---- truong hop order nhan tra loi ---- */
.tcc-exec_succeeded_running { --cc: var(--ok); }
.tcc-exec_succeeded_closed { --cc: #b4531a; }
.tcc-exec_failed_running { --cc: var(--fail); }
.tcc-exec_failed_closed { --cc: var(--steel-dark); }
.tcc-comp_succeeded,
.tcc-comp_human_resolved { --cc: var(--undo); }
.tcc-comp_failed { --cc: var(--fail); }
.tcc-comp_unmatched { --cc: var(--steel-dark); }

.tr-cases {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-width: 62rem;
  background: var(--paper);
  border: 1px solid #d2d8d6;
  border-radius: 6px;
}
.tr-cases li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) 12rem;
  gap: 0.25rem 1rem;
  padding: 0.6rem 1rem;
  border-left: 4px solid transparent;
  border-bottom: 1px solid #eef1f0;
  font-size: var(--t-sm);
  color: var(--muted);
}
.tr-cases li:last-child { border-bottom: 0; }
.tr-cases li b { font-weight: 600; }
.tr-cases li.is-hit { border-left-color: var(--cc); color: var(--ink); background: #fbfbf4; }
.tr-cases li.is-hit b { color: var(--cc); }
.trc-hits { text-align: right; font-size: 0.75rem; }
.trc-title { display: flex; flex-direction: column; gap: 0.1rem; }
.trc-tag { font-family: var(--f-receipt); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tr-cases li.is-hit .trc-hits { font-weight: 600; }
@media (max-width: 760px) {
  .tr-cases li { grid-template-columns: 1fr; }
  .trc-hits { text-align: left; }
}

/* ---- order phan ung voi tung tra loi (dong thoi gian) ---- */
.tr-react {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  max-width: 62rem;
}
.trr {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 1rem;
  position: relative;
  cursor: pointer;
  transition: opacity 150ms;
}
/* duong doc noi cac dong */
.trr::before {
  content: "";
  position: absolute;
  left: calc(6.5rem + 0.5rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d2d8d6;
}
.trr:last-child::before { bottom: auto; height: 1.2rem; }
.trr.is-dim { opacity: 0.35; }
.trr-start,
.trr-wait { cursor: default; }
.trr-at {
  padding-top: 0.85rem;
  font-family: var(--f-receipt);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.trr-body {
  position: relative;
  margin: 0.4rem 0 0.4rem 1rem;
  padding: 0.7rem 0.9rem 0.75rem;
  background: var(--paper);
  border: 1px solid #d2d8d6;
  border-left: 4px solid var(--cc, var(--ink));
  border-radius: 6px;
}
/* cham tren duong doc */
.trr-body::before {
  content: "";
  position: absolute;
  left: calc(-1rem - 4px - 1rem + 0.5rem - 6px);
  top: 0.95rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cc, var(--ink));
  border: 2px solid var(--page);
}
.trr.is-focus .trr-body { box-shadow: 0 0 0 2px #e0a400; }
.trr-wait .trr-body { --cc: var(--pending); border-style: dashed; border-left-style: solid; }

.trr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.trr-ok { color: var(--ok); }
.trr-fail { color: var(--fail); }
.trr-undo { color: var(--undo); }
.trr-tag {
  font-size: 0.75rem;
  color: var(--cc, var(--muted));
  font-weight: 600;
}
.trr-saga { margin-top: 0.2rem; font-size: var(--t-sm); color: var(--muted); }
.trr-saga b { color: var(--ink); font-weight: 600; }
.trr-saga .trr-changed { color: var(--cc, var(--ink)); }
.trr-lines { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: var(--t-sm); }
.trr-lines li + li { margin-top: 0.15rem; }

.trr-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0.55rem 0 0; padding: 0; }
.trr-pills li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d2d8d6;
  font-size: 0.75rem;
  color: var(--muted);
}
.trr-pills li.is-this { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.trp-sign { font-family: var(--f-receipt); font-weight: 700; }
.trp-st { font-weight: 400; }
.trp-succeeded .trp-sign { color: var(--ok); }
.trp-failed .trp-sign { color: var(--fail); }
.trp-pending .trp-sign { color: var(--pending); }
.trp-compensating .trp-sign,
.trp-compensated .trp-sign { color: var(--undo); }

@media (max-width: 640px) {
  .trr { grid-template-columns: 1fr; }
  .trr::before { display: none; }
  .trr-at { padding-top: 0.6rem; text-align: left; }
  .trr-body { margin-left: 0; }
  .trr-body::before { display: none; }
}

/* ---- thoi gian + duong di cua chang, nam trong dong phan ung ---- */
.trr-time {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #b9bfc2;
}
.trr-time-head { font-size: 0.75rem; color: var(--muted); }
.trr-time-head b { font-family: var(--f-receipt); color: var(--ink); }
.trr-time .tc-segs { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 1.5rem; }
.trr-time .tc-path { border-top: 0; padding-top: 0; margin-top: 0.45rem; color: var(--muted); }
@media (max-width: 640px) {
  .trr-time .tc-segs { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
}

/* ---- dong order GUI lenh (hoan tac) + danh sach message ---- */
.trr-send .trr-body { --cc: var(--undo); background: #f4f7fc; border-style: dashed; border-left-style: solid; }
.trr-send .trr-head b { color: var(--undo); }
.trs-msgs { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.trs-msgs li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0 0.75rem;
  font-size: var(--t-sm);
  transition: opacity 150ms;
}
.trs-msgs li.is-dim { opacity: 0.35; }
.trs-msgs .mono { font-size: 0.75rem; color: #8a6200; }
.trs-note { grid-column: 2; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 640px) {
  .trs-msgs li { grid-template-columns: 1fr; }
  .trs-note { grid-column: 1; }
}

/* ---- 1 message cho nhieu service + nguon chua co trace ---- */
.trs-send { margin-top: 0.5rem; padding: 0.45rem 0.6rem; border: 1px dashed #c9b27a; border-radius: 4px; background: #fffaf0; }
.trs-msg { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.trs-msg .mono { font-size: 0.75rem; color: #8a6200; }
.trs-send .trs-msgs { margin-top: 0.35rem; }
.trs-send .trs-msgs li { grid-template-columns: 9rem minmax(0, 1fr); }
.trs-send .trs-note { grid-column: auto; }
.tcs-blind { --c: repeating-linear-gradient(45deg, #dfe4e2 0 3px, #c3cbc8 3px 6px); }
.tc-bar span.tcs-blind { background: var(--c); }
.tc-segs .tcs-blind dt i { background: #c3cbc8; }
.tc-segs .tcs-blind { grid-column: 1 / -1; }
.tr-links path.is-orphan { stroke-dasharray: 3 3; }
.tr-msg.is-orphan { background: var(--paper); }
.tr-src-none { color: var(--muted); }
.tr-src-error { color: var(--fail); }
@media (max-width: 640px) {
  .trs-send .trs-msgs li { grid-template-columns: 1fr; }
}

/* =========================================================
   So do don gian (mac dinh): hang = thoi gian, cot = service.
   Vuong = da tra loi, tron = chua; xanh = ok, do = loi.
   ========================================================= */
/* Can GIUA trang: cot thoi gian ben trai + 1 cot trong CUNG do rong ben phai
   (--fl-right) -> 3 cot service nam dung giua man hinh. */
.flow { --fl-line: #b9c3c0; --fl-gutter: 8.5rem; --fl-right: var(--fl-gutter); margin: 1.25rem auto 0; max-width: 64rem; }
.fl-row {
  display: grid;
  grid-template-columns: var(--fl-gutter) repeat(3, minmax(0, 1fr)) var(--fl-right);
  align-items: center;
}
.trace-band .tr-toggle { display: block; margin-left: auto; margin-right: auto; }

.fl-at { padding-right: 0.75rem; text-align: right; font-family: var(--f-receipt); font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.fl-at b { display: block; color: var(--ink); font-weight: 600; }
.fl-at small { display: block; font-family: var(--f-body); font-size: 0.75rem; }
.fl-at-label { font-family: var(--f-body); }

/* o Order / Kafka / ket qua: giua 3 cot */
.fl-row-node > :nth-child(2) { grid-column: 2 / 5; justify-self: center; }
.fl-node, .fl-outcome {
  display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
  min-width: 13rem; max-width: 100%;
  padding: 0.5rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  text-align: center;
  font-size: var(--t-sm);
}
.fl-node b, .fl-outcome b { font-size: var(--t-base); }
.fl-node-undo { border-color: var(--undo); }
.fl-node-cancel { border-color: var(--fail); max-width: 32rem; }
.fl-node-cancel b { color: var(--fail); }
.fl-node-undo b { color: var(--undo); }
.fl-node-kafka { border-color: #d99a00; background: #fbf4e2; }
.fl-node-kafka b { color: #8a6200; }
.fl-node-kafka.is-wait { border-style: dashed; }

.fl-row-link > :nth-child(2) { grid-column: 2 / 5; justify-self: center; }
.fl-vline { width: 2px; height: 1.1rem; background: var(--fl-line); }

/* nhanh tu Kafka xuong cac cot */
.fl-branch { grid-column: 2 / 5; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 1.1rem; }
.fl-hline { position: absolute; top: 0; height: 2px; background: var(--fl-line); }
.fl-branch::before { content: ""; position: absolute; left: calc(50% - 1px); top: -1px; width: 2px; height: 2px; background: var(--fl-line); }
.fl-drop { justify-self: center; width: 2px; height: 100%; }
.fl-drop.is-on { background: var(--fl-line); }

/* o service + o trang thai: duong doc noi xuong trong cot dang tham gia */
.fl-cell { display: flex; justify-content: center; align-items: center; min-height: 2.6rem; }
.fl-cell.is-line { background: linear-gradient(var(--fl-line), var(--fl-line)) center / 2px 100% no-repeat; }
.fl-svc {
  padding: 0.3rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
}
.fl-svc-undo { border-color: var(--undo); color: var(--undo); }

.fl-shape {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 5px;
  font-size: 0.9rem; font-weight: 700; color: #fff;
  flex: none;
}
.fl-ok { background: var(--ok); }
.fl-fail { background: var(--fail); }
/* qua han: order tu coi la loi vi KHONG co tra loi nao (vuong do, dong ho) */
.fl-timeout { background: var(--fail); font-size: 0.85rem; }
/* im lang mai mai: don da chot truoc khi kip qua han, order khong cho nua */
.fl-silent { border-radius: 50%; background: var(--page); border: 2px dashed var(--steel-dark); }
.fl-wait { border-radius: 50%; background: var(--paper); border: 2px solid var(--pending); animation: fl-pulse 1.4s ease-in-out infinite; }
.fl-shape.is-fresh { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px currentColor; color: #fff; outline: 2px solid var(--ink); outline-offset: 2px; }
.fl-shape.is-late { background: repeating-linear-gradient(45deg, var(--ok) 0 5px, #3d915f 5px 10px); }
@keyframes fl-pulse { 50% { box-shadow: 0 0 0 4px rgba(176, 122, 16, 0.18); } }
@media (prefers-reduced-motion: reduce) { .fl-wait { animation: none; } }

.fl-outcome { border-width: 2px; }
.fl-out-ok { border-color: var(--ok); }
.fl-out-ok b { color: var(--ok); }
/* khach tu huy: trung tinh, khong phai loi he thong */
.fl-out-cancel { border-color: var(--muted); }
.fl-out-cancel b { color: var(--ink); }
.fl-node-done { border-color: var(--ok); max-width: 32rem; }
.fl-node-done b { color: var(--ok); }
.fl-out-fail { border-color: var(--fail); }
.fl-out-fail b { color: var(--fail); }
.fl-out-human { border-color: var(--fail); border-style: dashed; background: #fdeeec; }
.fl-out-human b { color: var(--fail); }
.fl-out-wait { border-color: var(--pending); border-style: dashed; }
.fl-out-wait b { color: var(--pending); }

.fl-notes {
  list-style: none;
  max-width: 46rem;
  margin: 1.5rem auto 0;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.45rem;
  background: var(--paper);
  border: 1px solid #d2d8d6;
  border-radius: 6px;
  font-size: var(--t-sm);
}
.fl-notes li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); align-items: center; column-gap: 0.6rem; }
.fl-notes li.fl-note-text { grid-template-columns: minmax(0, 1fr); padding-left: 1.9rem; }
.fl-row-lone .fl-at small { color: var(--ink); }
.fl-notes .fl-shape { width: 1.3rem; height: 1.3rem; font-size: 0.7rem; animation: none; }

.tr-toggle {
  margin-top: 1.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
}
.tr-toggle:hover { background: var(--paper); }
.tr-tech { margin-top: 1rem; }

@media (max-width: 640px) {
  .flow { --fl-gutter: 5.2rem; --fl-right: 0px; }
  .fl-at { padding-right: 0.4rem; font-size: 0.6875rem; }
  .fl-at small { font-size: 0.6875rem; }
  .fl-node, .fl-outcome { min-width: 0; padding: 0.45rem 0.6rem; }
  .fl-svc { padding: 0.2rem 0.35rem; font-size: 0.6875rem; }
}
.sample-note { display: block; max-width: 40rem; line-height: 1.5; padding: 0.5rem 0.75rem; }

/* "Vi sao...?" trong o ket cuc: dan sang bai viet (js/articles.js) */
.fl-why {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #d2d8d6;
  align-self: stretch;
  color: var(--ink);
  text-decoration: none;
}
.fl-why-q { display: block; font-weight: 600; }
.fl-why-go { display: block; margin-top: 0.15rem; color: var(--undo); font-size: var(--t-sm); }
.fl-why:hover .fl-why-go { text-decoration: underline; }

/* Dau "?" tren 1 nut so do -> bai viet (js/articles.js). Thu gon la cham
 * tron; desktop re chuot thi bung ra cau hoi. Man cam ung KHONG bung (bung
 * ra se de len chu cua nut) - cham la link, cham vao mo bai luon. */
.fl-node { position: relative; }
.fl-q {
  position: absolute; top: -11px; right: -11px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  height: 22px; min-width: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--undo); color: #fff;
  font: 600 12px/22px var(--f-body); text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 3px var(--page);
}
.fl-q span { display: none; }
@media (hover: hover) {
  .fl-q:hover span, .fl-q:focus-visible span { display: inline; }
  /* bung sang PHAI (vung trong canh nut), khong de len chu "Order" */
  .fl-q:hover, .fl-q:focus-visible { right: auto; left: calc(100% - 11px); }
}
.fl-q-legend { position: static; box-shadow: none; flex: none; }
