/* CSS riêng của /cong-cu/ho-tro-theo-tinh, nạp sau cong-cu.css. */
.st-tool .page .st-subheading { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.3; margin: 0 0 6px; }
.st-tool .updated { font-size: 13px; color: #6c757d; margin: 0 0 24px; }
.st-tool .mapwrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
.st-tool .mapaxis { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; letter-spacing: .06em; color: #6c757d; margin-bottom: 8px; }
.st-tool .tilemap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 46px; gap: 6px; }
.st-tool .tile { grid-column: var(--c); grid-row: var(--r); display: grid; place-items: center; text-align: center; padding: 2px 3px; min-width: 0; border-radius: 4px; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.15; font-weight: 500; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); color: #6c757d; }
.st-tool .tile:hover { border-color: var(--dark); }
.st-tool .tile[aria-pressed="true"] { outline: 3px solid var(--dark); outline-offset: 2px; }
.st-tool .s-issued { background: var(--green); border-color: var(--green); color: #fff; }
.st-tool .s-special { background: repeating-linear-gradient(135deg, rgba(41,184,82,.4) 0 5px, #fff 5px 10px); border: 2px solid var(--green); color: var(--ink); }
.st-tool .s-draft { background: var(--warn-bg); border: 2px dashed var(--orange); color: var(--ink); }
.st-tool .s-plan { background: #fff; border: 1px solid #777; color: var(--ink); }
.st-tool .s-unknown { background: transparent; border: 1px solid #d9d9d9; color: #7a7a7a; }
.st-tool .maplegend { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
.st-tool .maplegend span { display: flex; align-items: center; gap: 10px; }
.st-tool .maplegend i { width: 22px; height: 16px; border-radius: 3px; flex: none; }
.st-tool .detail { background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 136px; scroll-margin-top: 136px; min-width: 0; }
.st-tool .detail h2 { font-family: var(--font-head); font-weight: 700; font-size: 28px; margin: 0; }
.st-tool .detail .sum { color: #555; margin: 0; }
.st-tool .detail dl { margin: 0; display: grid; border-top: 1px solid #eee; }
.st-tool .detail dl > div { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; }
.st-tool .detail dt { font-size: 13px; color: #6c757d; }
.st-tool .detail dd { margin: 0; font-weight: 500; }
.st-tool .detail .src { font-size: 14px; color: #6c757d; margin: 0; }
.st-tool .detail .src a { color: #1a6fb5; }
.st-tool .detail .back { display: none; }
.st-tool .chip { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 3px; padding: 1px 8px; color: #555; background: #fafafa; }
.st-tool .chip.ok { color: #1c8a3c; border-color: var(--green); background: #effaf2; }
.st-tool .chip.warn { color: var(--warn-ink); border-color: var(--orange); background: var(--warn-bg); }
.st-tool .btn-secondary { background: var(--orange); color: #fff; border-radius: 8px; font-size: 17px; padding: 9px 18px; }
.st-tool .btn-small { padding: 5px 12px; font-size: 14px; border: 1px solid var(--line); background: #fff; border-radius: 4px; color: var(--ink); }
.st-tool .cmp { margin-top: 36px; background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; padding: 22px; display: grid; gap: 18px; }
.st-tool .cmp h2 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin: 0; }
.st-tool .hint { font-size: 13px; color: #6c757d; margin: 4px 0 0; }
.st-tool .cmp-in { display: flex; flex-wrap: wrap; gap: 16px; }
.st-tool .field { display: grid; gap: 4px; width: 190px; }
.st-tool .field label { font-size: 14px; font-weight: 500; }
.st-tool .inp input { flex: 1; min-width: 0; border: 0; padding: 9px 10px; font: inherit; background: transparent; }
.st-tool .inp input:focus-visible { outline: none; }
.st-tool .inp .unit { display: grid; place-items: center; padding: 0 10px; font-size: 13px; color: #6c757d; background: #f4f4f4; border-left: 1px solid var(--line); }
.st-tool .bars { display: grid; gap: 12px; }
.st-tool .bar-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 90px; gap: 12px; align-items: center; }
.st-tool .bar-row .nm { font-weight: 500; }
.st-tool .bar-track { height: 22px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.st-tool .bar { height: 100%; border-radius: 3px; }
.st-tool .bar-val { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.st-tool .bar-note { font-size: 13px; color: #6c757d; }
.st-tool .next { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.st-tool .next a { display: block; background: #fff; border: 1px solid #e6e6e6; border-radius: 4px; padding: 14px 16px; text-decoration: none; font-weight: 500; }
.st-tool .next a small { display: block; font-weight: 400; color: #6c757d; margin-top: 2px; }
.st-tool .next a:hover { border-color: var(--green); }
.st-tool .next a.hot { border-color: var(--orange); }
.st-tool .cta { margin-top: 28px; background: #fff; border: 2px solid var(--orange); border-radius: 4px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.st-tool .cta h2 { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin: 0 0 4px; }
.st-tool .cta p { margin: 0; color: #555; max-width: 58ch; }
.st-tool .cta .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-tool .cta .contact { font-size: 14px; color: #555; }
.st-tool .cta .contact a { color: var(--green); font-weight: 500; }
@media (max-width: 991px) {
  .st-tool .mapwrap { grid-template-columns: minmax(0, 1fr); }
  .st-tool .tilemap { max-width: 420px; }
  .st-tool .detail { position: static; }
  .st-tool .detail .back { display: inline-block; justify-self: start; }
}
@media (max-width: 520px) {
  .st-tool .bar-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .st-tool .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .st-tool .detail dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* Đích cuộn của nút trên mobile phải nằm dưới header cố định (header cao hơn ở 481-767px) */
.st-tool #tilemap { scroll-margin-top: 136px; }
@media (min-width: 481px) and (max-width: 767px) {
  .st-tool #tilemap, .st-tool .detail { scroll-margin-top: 210px; }
}
