/* /courses/lo-trinh — "Tìm lộ trình" (lo-trinh.php). Flat design tokens
   (assets/css/flat-tokens.css), literals as fallbacks. */

.rt { --rt-ink: var(--flat-ink, #0a0a0a); --rt-paper: var(--flat-paper, #fff); --rt-hair: var(--flat-hair, #e6e6e6);
      --rt-blue: var(--flat-blue, #1a3aff); --rt-orange: var(--flat-orange, #e8501e); --rt-green: var(--flat-green, #0f7a4a);
      --rt-dim: var(--flat-dim, #6b7280);
      font-family: var(--flat-font, 'Be Vietnam Pro', system-ui, sans-serif); color: var(--rt-ink); background: var(--rt-paper); }
.rt-in { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.rt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rt a { color: var(--rt-ink); }
.rt a:focus-visible, .rt button:focus-visible, .rt input:focus-visible { outline: 3px solid var(--rt-blue); outline-offset: 2px; }

/* ── hero ── */
.rt-hero { padding: 40px 0 24px; border-bottom: 2px solid var(--rt-ink); }
.rt-hero-in { display: flex; gap: 32px; align-items: flex-end; }
.rt-hero-t { flex: 1 1 auto; min-width: 0; }
.rt-k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rt-blue); }
.rt-h1 { margin: 8px 0 10px; font-size: clamp(32px, 6vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
.rt-lead { margin: 0 0 20px; max-width: 640px; font-size: 16px; line-height: 1.6; color: var(--rt-dim); }
.rt-form { display: flex; align-items: center; gap: 10px; max-width: 760px; padding: 6px 6px 6px 16px; border: 2px solid var(--rt-ink); background: var(--rt-paper); }
.rt-form > .fa-search { color: var(--rt-dim); }
.rt-form input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: none; font: inherit; font-size: 16px; background: transparent; color: var(--rt-ink); }
.rt-form button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; background: var(--rt-blue); color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.rt-form button:hover { background: var(--rt-ink); }
.rt-cat { flex: 0 0 220px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rt-bubble { margin: 0; padding: 10px 14px; max-width: 220px; font-size: 13px; font-weight: 600; line-height: 1.45;
             background: var(--rt-paper); border: 2px solid var(--rt-ink); }
.rt-cat img { width: 150px; height: 150px; }

/* ── the four questions ── */
.rt-qs { padding: 22px 0 8px; }
.rt-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rt-hair); }
.rt-row:last-child { border-bottom: 0; }
.rt-row-l { padding-top: 9px; font-size: 13px; font-weight: 800; }
.rt-row-l .fas { width: 16px; color: var(--rt-blue); }
.rt-row-c { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; font-size: 13px; font-weight: 600;
           text-decoration: none; background: var(--rt-paper); border: 1.5px solid var(--rt-hair); }
.rt-chip:hover { border-color: var(--rt-ink); }
.rt-chip.is-on { background: var(--rt-ink); border-color: var(--rt-ink); color: #fff; }

/* ── what we understood ── */
.rt-got { padding: 12px 0; background: #f4f4f4; border-top: 2px solid var(--rt-ink); border-bottom: 2px solid var(--rt-ink); }
.rt-got .rt-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rt-got-l { font-size: 13px; font-weight: 800; }
.rt-tok { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; font-size: 13px; background: var(--rt-paper); border: 1.5px solid var(--rt-ink); }
.rt-tok.is-guess { border-style: dashed; }
.rt-tok a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; text-decoration: none; color: var(--rt-dim); }
.rt-tok a:hover { color: var(--rt-ink); }
.rt-got-n { flex-basis: 100%; font-size: 12px; color: var(--rt-dim); }

/* ── the route ── */
.rt-route { padding: 32px 0 8px; }
.rt-h2 { margin: 6px 0 4px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; font-weight: 800; }
.rt-h2 span { color: var(--rt-dim); font-weight: 700; }
.rt-meta { margin: 0 0 20px; font-size: 14px; color: var(--rt-dim); }
.rt-meta b { color: var(--rt-ink); }
.rt-meta a { color: var(--rt-blue); font-weight: 700; }
.rt-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rt-ink); }
.rt-step { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rt-hair); }
.rt-step-n { flex: 0 0 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
             font-weight: 800; background: var(--rt-ink); color: #fff; }
.rt-step.is-read .rt-step-n { background: var(--rt-green); }
.rt-step-b { flex: 1 1 auto; min-width: 0; }
.rt-step-t { font-size: 17px; font-weight: 800; text-decoration: none; }
.rt-step-t:hover { color: var(--rt-blue); }
.rt-lvl, .rt-done { display: inline-block; margin-left: 8px; padding: 2px 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
                    color: var(--rt-dim); border: 1px solid var(--rt-hair); vertical-align: 2px; }
.rt-done { color: var(--rt-green); border-color: var(--rt-green); }
.rt-step-d { margin: 6px 0 8px; font-size: 14px; line-height: 1.55; color: var(--rt-dim); }
.rt-step-c { display: inline; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; color: var(--rt-blue); }
.rt-step-c .fas { margin-right: 4px; }
.rt .rt-step-c { color: var(--rt-blue); }
.rt-step-c span { color: var(--rt-dim); font-weight: 600; }
.rt-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 20px 0 8px; }
.rt-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-weight: 800; text-decoration: none; background: var(--rt-blue); }
.rt .rt-btn { color: #fff; }
.rt-btn:hover { background: var(--rt-ink); }
.rt-go-n { flex: 1 1 280px; font-size: 13px; color: var(--rt-dim); }

/* ── more ── */
.rt-sec { padding: 24px 0 8px; }
.rt-h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rt-p { margin: 0; font-size: 15px; line-height: 1.6; }
.rt-p a, .rt-more { color: var(--rt-blue); font-weight: 700; }
.rt-list { list-style: none; margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rt-hair); }
.rt-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rt-hair); }
.rt-list a { font-size: 15px; font-weight: 700; text-decoration: none; }
.rt-list a:hover { color: var(--rt-blue); }
.rt-list span { font-size: 13px; color: var(--rt-dim); }
.rt main, .rt { padding-bottom: 24px; }

@media (max-width: 760px) {
  .rt-hero { padding-top: 24px; }
  .rt-hero-in { flex-direction: column; align-items: stretch; gap: 12px; }
  .rt-cat { flex: none; flex-direction: row; align-items: center; order: -1; }
  .rt-cat img { width: 84px; height: 84px; order: -1; }
  .rt-bubble { max-width: none; flex: 1 1 auto; }
  .rt-form { flex-wrap: wrap; padding: 6px; }
  .rt-form > .fa-search { display: none; }
  .rt-form input { flex-basis: 100%; padding: 0 8px; }
  .rt-form button { flex: 1 1 100%; }
  .rt-row { grid-template-columns: 1fr; gap: 6px; }
  .rt-row-l { padding-top: 0; }
  /* One swipeable line per question on a phone. */
  .rt-row-c { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rt-row-c::-webkit-scrollbar { display: none; }
  .rt-chip { flex: 0 0 auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .rt * { transition: none !important; } }

/* ── saving the route ── */
.rt-save { margin: 0; }
.rt-save .rt-btn { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.rt-btn-2 { background: var(--rt-paper); border: 2px solid var(--rt-ink); }
.rt .rt-btn-2 { color: var(--rt-ink); }
.rt-btn-2:hover { background: #f4f4f4; }
.rt-saved { display: flex; gap: 8px; align-items: baseline; margin: 20px 0 0; padding: 12px 14px; font-size: 14px;
            border: 2px solid var(--rt-green); color: var(--rt-ink); }
.rt-saved .fas { color: var(--rt-green); }

/* ── a curated journey (J2) ── */
.rt-sum { margin: 4px 0 8px; max-width: 720px; font-size: 15px; line-height: 1.55; color: var(--rt-ink); }
.rt-items { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.rt-items li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.rt-items .fas { width: 16px; color: var(--rt-dim); }
.rt-items li.is-done .fas { color: var(--rt-green); }
.rt-items a { color: var(--rt-ink); font-weight: 600; }
.rt-items span { color: var(--rt-ink); }
