/* D3 Career Framework — Chính sách & phúc lợi (policies.html)
   Dùng chung token màu, nav, breadcrumb, .section, .foot của style.css.
   Ở đây chỉ có phần riêng của trang: hero, dải số, thẻ chính sách, bảng.     */

/* ---------- Hero ---------- */
.pol-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 58%, var(--teal-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 30px 28px;
  margin-bottom: 22px;
}
.pol-hero-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue-100);
  margin-bottom: 10px;
}
.pol-hero-title {
  /* style.css đặt màu cho mọi h1 — phải ghi đè, nếu không chữ tối trên nền tối */
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 10px;
}
.pol-hero-lede {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 62ch;
}
.pol-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.pol-note i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Dải số ---------- */
.pol-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.pol-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-card);
}
.pol-stat-v {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue-700);
  margin-bottom: 5px;
}
.pol-stat-k {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}
.pol-stat-s {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---------- Mục lục ---------- */
.pol-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 8px;
}
a.pol-toc-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
a.pol-toc-item:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
  transform: translateY(-1px);
}
a.pol-toc-item i { font-size: 15px; }

/* ---------- Thẻ chính sách ---------- */
.pol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 18px 0;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 80px;
}
.pol-purple { border-left-color: var(--purple-600); }
.pol-amber  { border-left-color: var(--amber-600); }
.pol-teal   { border-left-color: var(--teal-600); }
.pol-blue   { border-left-color: var(--blue-600); }
.pol-green  { border-left-color: var(--green-600); }
.pol-slate  { border-left-color: var(--text-secondary); }

.pol-card-h { display: flex; gap: 15px; align-items: flex-start; }
.pol-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  flex-shrink: 0;
  background: var(--surface-muted);
  color: var(--text-secondary);
}
.pol-purple .pol-card-icon { background: var(--purple-50); color: var(--purple-600); }
.pol-amber  .pol-card-icon { background: var(--amber-50);  color: var(--amber-600); }
.pol-teal   .pol-card-icon { background: var(--teal-50);   color: var(--teal-600); }
.pol-blue   .pol-card-icon { background: var(--blue-50);   color: var(--blue-600); }
.pol-green  .pol-card-icon { background: var(--green-50);  color: var(--green-600); }

.pol-card-ht { min-width: 0; }
.pol-card-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
}
.pol-card-one {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 70ch;
}

/* ---------- Con số nổi bật trong thẻ ---------- */
.pol-hls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
}
.pol-hl {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  padding: 13px 15px;
}
.pol-hl-v {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.pol-purple .pol-hl-v { color: var(--purple-800); }
.pol-amber  .pol-hl-v { color: var(--amber-800); }
.pol-teal   .pol-hl-v { color: var(--teal-800); }
.pol-blue   .pol-hl-v { color: var(--blue-800); }
.pol-hl-k {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
}
.pol-hl-s {
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-tertiary);
  margin-top: 3px;
}

/* ---------- Các hàng nội dung ---------- */
.pol-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  margin-top: 15px;
}
.pol-row:first-of-type { margin-top: 18px; }
.pol-row-l {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: 2px;
}
.pol-row-b { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); }

.pol-steps, .pol-rules { margin: 0; padding-left: 0; list-style: none; counter-reset: pol; }
.pol-steps li, .pol-rules li {
  position: relative;
  padding-left: 27px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 9px;
}
.pol-steps li:last-child, .pol-rules li:last-child { margin-bottom: 0; }
.pol-steps li { counter-increment: pol; }
.pol-steps li::before {
  content: counter(pol);
  position: absolute;
  left: 0; top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pol-purple .pol-steps li::before { background: var(--purple-600); }
.pol-amber  .pol-steps li::before { background: var(--amber-600); }
.pol-teal   .pol-steps li::before { background: var(--teal-600); }
.pol-rules li::before {
  content: "";
  position: absolute;
  left: 7px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------- Công thức OT ---------- */
.pol-formula {
  margin-top: 15px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--amber-50);
  border: 1px solid rgba(186, 117, 23, 0.20);
}
.pol-formula-l {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--amber-800);
  margin-bottom: 6px;
}
.pol-formula-b { font-size: 13.5px; line-height: 1.6; color: var(--text-primary); }
.pol-formula-e {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--amber-800);
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed rgba(186, 117, 23, 0.30);
}

/* ---------- Trần giờ ---------- */
.pol-caps { margin-top: 14px; }
.pol-caps-l {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 7px;
}
.pol-cap-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pol-cap {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Cảnh báo / thiếu nguồn ---------- */
.pol-thin, .pol-caveat {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.6;
}
.pol-thin {
  background: var(--surface-muted);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}
.pol-caveat {
  background: var(--red-50);
  border: 1px solid rgba(163, 45, 45, 0.18);
  color: var(--red-800);
}
.pol-thin i, .pol-caveat i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pol-caveat a { color: var(--red-600); font-weight: 600; white-space: nowrap; }
.pol-caveat a:hover { color: var(--red-800); }
.pol-caveat a i { font-size: 13px; margin: 0 0 0 3px; }

/* ---------- Hỏi ai + nguồn ---------- */
.pol-ask {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  border: 1px solid rgba(24, 95, 165, 0.15);
}
.pol-ask > i { font-size: 17px; color: var(--blue-600); flex-shrink: 0; margin-top: 1px; }
.pol-ask-l {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--blue-700);
  flex-shrink: 0;
  padding-top: 1px;
}
.pol-ask-b { font-size: 13.5px; line-height: 1.6; color: var(--text-primary); }

.pol-src {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.pol-src i { font-size: 14px; }
.pol-src-doc { font-weight: 600; color: var(--text-secondary); }

/* ---------- Bảng gập ---------- */
.pol-details {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pol-sum {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  background: var(--surface-muted);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background .15s ease;
}
.pol-sum::-webkit-details-marker { display: none; }
.pol-sum:hover { background: #e9edf5; }
.pol-sum-t { font-weight: 600; color: var(--text-primary); }
.pol-chev { margin-left: auto; transition: transform .2s ease; }
.pol-details[open] .pol-chev { transform: rotate(180deg); }

.pol-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pol-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 520px;
}
.pol-tbl th, .pol-tbl td {
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.pol-tbl thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.pol-tbl tbody tr:last-child td { border-bottom: none; }
.pol-tbl tr.pol-grp th {
  background: var(--surface-muted);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 14px;
}
.pol-num { white-space: nowrap; color: var(--text-secondary); }
.pol-na { color: var(--text-tertiary); font-style: italic; }
.pol-kit-n { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.pol-kit-b { white-space: nowrap; font-weight: 600; color: var(--text-primary); }
.pol-tbl-note {
  padding: 11px 15px 13px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ---------- Bảng ở cấp trang ---------- */
.pol-sec-lede {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 70ch;
  margin-bottom: 14px;
}
.section > .pol-tbl-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.pol-sys-n { font-weight: 700; color: var(--blue-700); white-space: nowrap; }
.pol-sys-w { color: var(--text-tertiary); white-space: nowrap; }
.pol-srcs tr.pol-src-gap td { background: #FFFBF2; }

/* ---------- Điện thoại ---------- */
@media (max-width: 720px) {
  .pol-hero { padding: 26px 20px 22px; }
  .pol-hero-title { font-size: 24px; }
  .pol-card { padding: 20px 18px; }
  .pol-card-h { gap: 12px; }
  .pol-card-icon { width: 38px; height: 38px; font-size: 20px; }
  .pol-card-name { font-size: 17px; }
  .pol-row { grid-template-columns: 1fr; gap: 8px; }
  .pol-ask { flex-wrap: wrap; }
  .pol-ask-l { width: 100%; }
  .pol-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .pol-stat-v { font-size: 22px; }
  .pol-toc { gap: 6px; }
  a.pol-toc-item { font-size: 12px; padding: 7px 11px; }
}
