/* ============================================================
   gioithieu.css — Trang "Giới thiệu / Hướng dẫn"
   Kế thừa token màu, font từ css/style.css (biến --bg, --panel,
   --accent, --font-serif...). File này CHỈ thêm phần riêng của
   trang gioithieu.html: khối nội dung, tab, danh sách bước.
   Bạn có thể chỉnh/ghi đè trực tiếp trong file này.
   ============================================================ */

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.15s ease;
}
.doc-back:hover { border-color: var(--accent-dim); }
.doc-back svg { width: 14px; height: 14px; stroke: currentColor; flex-shrink: 0; }

.doc-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 6px;
}

.doc-lede {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.doc-section {
  margin-bottom: 44px;
}

.doc-section__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.doc-section__note {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* ---------- Tabs ---------- */
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  overflow: hidden;
}

.tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--panel-raised);
}

.tabs__panel {
  padding: 20px;
  display: none;
}
.tabs__panel[data-active="true"] { display: block; }

/* ---------- Danh sách bước (nội dung THẬT sự là chuỗi tuần tự -> đánh số) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.steps li:first-child { border-top: none; padding-top: 0; }

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent-contrast);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.doc-callout {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}
.doc-callout strong { color: var(--text); }

.doc code {
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.doc a { color: var(--accent); }
