/* Guarantee page diagrams (all languages): steps in a row (a column on phones), joined by arrows */
.langs { display: flex; gap: 6px; margin: 4px 0 10px; flex-wrap: wrap; }
.langs a { font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; background: #fff; }
.langs a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow { display: flex; align-items: stretch; gap: 0; margin: 14px 0 6px; }
.flow .st { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 10px; min-width: 0; }
.flow .st b { display: block; font-size: 15px; line-height: 1.3; }
.flow .st small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.flow .st .ic { font-size: 20px; line-height: 1; margin-bottom: 6px; display: block; }
.flow .ar { flex: none; width: 26px; display: grid; place-items: center; color: #94a3b8; font-weight: 800; }
.flow .ar::before { content: "→"; }
[dir="rtl"] .flow .ar::before { content: "←"; }
.st.hold { border-color: #fde68a; background: #fffbeb; }
.st.paid { border-color: #bbf7d0; background: #f0fdf4; }
.st.free { border-color: #bfdbfe; background: #eff6ff; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; margin-top: 8px; }
.tag.hold { background: #fef3c7; color: #92400e; } .tag.paid { background: #dcfce7; color: #166534; } .tag.free { background: #dbeafe; color: #1e40af; }
/* Branches: one question, two or three outcomes */
.branch { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 10px; margin: 10px 0 4px; }
.branch .out { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.branch .out b { display: block; font-size: 15px; }
.branch .out small { color: var(--muted); font-size: 13px; line-height: 1.45; display: block; margin-top: 2px; }
.branch .out.good { border-inline-start: 4px solid #16a34a; } .branch .out.mid { border-inline-start: 4px solid #f59e0b; } .branch .out.bad { border-inline-start: 4px solid #ef4444; }
.down { text-align: center; color: #94a3b8; font-weight: 800; line-height: 1; margin: 6px 0; }
.q { text-align: center; font-weight: 700; font-size: 15px; margin: 4px 0 0; color: var(--ink); }
/* Decision rules */
.rules { display: grid; gap: 8px; margin-top: 12px; }
.rule { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; align-items: center; }
.rule span { color: var(--ink2); font-size: 15px; }
.rule strong { font-size: 15px; }
.rule .r-ref { color: #b91c1c; } .rule .r-redo { color: #1d4ed8; } .rule .r-pay { color: #166534; } .rule .r-part { color: #b45309; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .box { margin: 6px 0; }
.two ul { margin: 6px 0 0; }
/* Language fonts and right-to-left */
html[lang="ko"] body { font-family: "Noto Sans KR", "Noto Sans", system-ui, sans-serif; word-break: keep-all; }
html[lang="zh"] body { font-family: "Noto Sans SC", "Noto Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="fa"] body { font-family: "Vazirmatn", "Noto Sans", system-ui, sans-serif; }
[dir="rtl"] ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] td, [dir="rtl"] th { text-align: right; }
[dir="rtl"] header a.home { direction: ltr; }
@media (max-width: 640px) {
  .flow { flex-direction: column; }
  .flow .ar { width: auto; height: 22px; }
  .flow .ar::before, [dir="rtl"] .flow .ar::before { content: "↓"; }
  .branch { grid-template-columns: 1fr; }
  .rule, .two { grid-template-columns: 1fr; gap: 2px; }
}
.flow.shields { gap: 10px; }
