/* ==================================================================
   YO Thương Mại — Industrial spec-sheet theme
   Tokens & components — load SAU bootstrap.min.css và site theme tokens
   ================================================================== */

:root {
  /* Colors — opinionated palette, ép buộc bất chấp admin settings */
  --bg:            #ecebe5;  /* concrete grey-beige */
  --bg-2:          #e2e0d6;  /* alt bg cho table header */
  --paper:         #f4f3ee;  /* paper highlight */
  --ink:           #14171a;  /* primary text/border */
  --ink-2:         #2a2f35;
  --muted:         #5d6168;
  --muted-2:       #8a8e94;
  --border:        #c9c6b8;
  --border-strong: #9a9685;
  --primary:       #e85d1f;  /* SAFETY ORANGE */
  --primary-hover: #c44a12;
  --accent:        #2b4d6f;  /* steel blue */
  --warn:          #f0b400;  /* hi-vis yellow */
  --ok:            #2d7a4a;

  /* Bootstrap CSS variable overrides */
  --bs-primary:        #e85d1f;
  --bs-primary-rgb:    232, 93, 31;
  --bs-secondary:      #2b4d6f;
  --bs-body-color:     #14171a;
  --bs-body-bg:        #ecebe5;
  --bs-border-color:   #c9c6b8;
  --bs-link-color:        #e85d1f;
  --bs-link-hover-color:  #c44a12;
  --bs-border-radius:       0;
  --bs-border-radius-sm:    0;
  --bs-border-radius-lg:    0;
  --bs-border-radius-xl:    0;
  --bs-border-radius-xxl:   0;
  --bs-border-radius-pill:  0;

  /* Fonts */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Base */
body {
  font-family: var(--font-sans) !important;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 600; color: var(--ink); }

/* Container override — design dùng 1320px max */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1320px;
  }
}
.container { padding-left: 24px; padding-right: 24px; }
@media (min-width: 992px) { .container { padding-left: 40px; padding-right: 40px; } }

/* Utility classes */
.cond { font-family: var(--font-cond) !important; }
.mono { font-family: var(--font-mono) !important; }
.rule { height: 1px; background: var(--ink); width: 100%; }
.rule-soft { height: 1px; background: var(--border-strong); width: 100%; }
.rule-thick { height: 3px; background: var(--ink); width: 100%; }

/* Section padding */
.sec { padding: 88px 0; }
.sec-sm { padding: 56px 0; }
.sec-tight { padding: 56px 0 88px; }

.sec-bg-paper { background: var(--paper); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.sec-bg-ink   { background: var(--ink); color: #fff; }
.sec-bg-bg    { background: var(--bg); }

/* ============== Status dot ============== */
.dot { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; }
.dot.ok      { background: var(--ok); }
.dot.warn    { background: var(--warn); }
.dot.orange  { background: var(--primary); }
.dot.blue    { background: var(--accent); }
.dot.white   { background: #fff; }

/* ============== Sec-tag (section header pattern) ============== */
.sec-tag {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 24px;
}
.sec-tag .id  { background: var(--ink); color: var(--bg); padding: 4px 8px; }
.sec-tag .lbl { color: var(--ink); }
.sec-tag .meta{ color: var(--muted); margin-left: auto; }
.sec-bg-ink .sec-tag { color: #fff; }
.sec-bg-ink .sec-tag .id { background: var(--primary); color: #fff; }
.sec-bg-ink .sec-tag .lbl { color: #fff; }
.sec-bg-ink .sec-tag .meta { color: rgba(255,255,255,.5); }

/* ============== Logos strip — marquee đối tác (industrial mono) ============== */
.logos-strip {
  overflow: hidden;
  padding: 32px 0 8px;
}
.logos-strip-track {
  display: flex; gap: 56px;
  animation: yo-ticker 50s linear infinite;
  width: max-content;
  padding: 0 24px;
}
.logos-item {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap; flex-shrink: 0;
}
.logos-item .mark {
  position: relative;
  width: 22px; height: 22px;
  background: var(--ink);
  flex-shrink: 0;
}
.logos-item .mark::after {
  content: ""; position: absolute;
  top: -3px; right: -3px;
  width: 6px; height: 6px;
  background: var(--primary);
}
.logos-item .label {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ============== Top banner ticker ============== */
.top-banner {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.top-banner-track {
  display: flex; gap: 48px;
  animation: yo-ticker 40s linear infinite;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.top-banner-track > span {
  display: inline-flex; align-items: center; gap: 10px;
}
@keyframes yo-ticker { to { transform: translateX(-50%); } }

/* ============== Sticky header ============== */
.header-yo {
  position: sticky; top: 0; z-index: 40;
  background: rgba(236,235,229,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--ink);
}
.header-yo .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 16px 0;
}
.brand-yo { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand-yo .mark {
  width: 36px; height: 36px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.04em;
}
.brand-yo .mark::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 8px; height: 8px; background: var(--primary);
}
.brand-yo .wm { display: flex; flex-direction: column; line-height: 1; }
.brand-yo .wm-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.brand-yo .wm-meta {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; margin-top: 3px;
}

.nav-yo { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-yo a {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 10px;
  color: var(--ink-2);
  line-height: 1;
  transition: background .12s, color .12s;
}
.nav-yo a:hover, .nav-yo a.active { background: var(--ink); color: #fff; }

/* Nav item có submenu — hover/focus-within để xổ dropdown */
.nav-yo-item { position: relative; display: inline-flex; }
.nav-yo-item > a .caret {
  display: inline-block; margin-left: 6px; font-size: 9px; line-height: 1;
  transition: transform .15s;
}
.nav-yo-item:hover > a .caret,
.nav-yo-item:focus-within > a .caret { transform: translateY(2px); }

.nav-yo-dropdown {
  position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 240px;
  margin-top: 16px;            /* clear khỏi padding header */
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
  box-shadow: 0 4px 0 var(--ink);
}
/* "Cầu nối" hover — phủ kín khoảng trống giữa toggle và dropdown
   để khi rê chuột xuống không bị mất hover */
.nav-yo-dropdown::before {
  content: ""; position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.nav-yo-item:hover > .nav-yo-dropdown,
.nav-yo-item:focus-within > .nav-yo-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-yo-dropdown-item {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink) !important;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s, padding-left .12s;
  text-decoration: none;
}
.nav-yo-dropdown-item:last-child { border-bottom: none; }
.nav-yo-dropdown-item:hover,
.nav-yo-dropdown-item:focus {
  background: var(--ink); color: #fff !important;
  padding-left: 20px;
}
.header-cta { display: flex; gap: 12px; align-items: center; }
.hotline-yo {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink);
  font-weight: 600; letter-spacing: 0.06em;
}

/* Hamburger toggle — vuông, border ink, animate 3 vạch → X khi mở */
.nav-toggle-yo {
  display: none;                    /* hidden desktop */
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle-yo .bars {
  position: absolute;
  inset: 0; margin: auto;
  width: 18px; height: 14px;
  display: block;
}
.nav-toggle-yo .bars span {
  position: absolute; left: 0; right: 0;
  height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .12s ease, top .2s ease;
}
.nav-toggle-yo .bars span:nth-child(1) { top: 0; }
.nav-toggle-yo .bars span:nth-child(2) { top: 6px; }
.nav-toggle-yo .bars span:nth-child(3) { top: 12px; }
.nav-toggle-yo[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle-yo[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle-yo[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-toggle-yo:hover { background: var(--bg-2); }

@media (max-width: 991.98px) {
  .header-yo .wrap { flex-wrap: wrap; row-gap: 16px; column-gap: 12px; }

  /* Order: Brand → HỢP TÁC (đẩy phải bằng margin-left:auto) → Hamburger → Nav */
  .brand-yo       { order: 1; }
  .header-cta     { order: 2; margin-left: auto; }
  .nav-toggle-yo  { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .nav-yo         { order: 4; flex-basis: 100%; }

  /* Nav mặc định ẨN trên mobile — chỉ hiện khi có class .open */
  .nav-yo { display: none; }
  .nav-yo.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1.5px solid var(--ink);
    padding-top: 8px;
  }
  .nav-yo a { padding: 12px 14px; }
  .header-cta .hotline-yo { display: none; }

  /* HỢP TÁC button thu gọn để vừa khít top row */
  .header-cta .btn-yo {
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .header-cta .btn-yo .arrow { margin-left: 4px; }

  /* Mobile dropdown — show children inline */
  .nav-yo-item { display: block; width: 100%; }
  .nav-yo-item > a .caret { display: none; }
  .nav-yo-dropdown {
    position: static; margin-top: 0;
    border: none; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
    padding-left: 16px;
  }
  .nav-yo-dropdown::before { display: none; }
  .nav-yo-dropdown-item {
    padding: 8px 12px;
    background: transparent;
    border-bottom: 1px solid rgba(20,23,26,.08);
    font-size: 10px;
  }
  .nav-yo-dropdown-item:hover,
  .nav-yo-dropdown-item:focus { padding-left: 12px; }
}

/* ============== Buttons — flat industrial ============== */
.btn-yo {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none; cursor: pointer;
}
.btn-yo:hover { color: #fff; background: var(--ink); }
.btn-yo-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-yo-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-yo-ghost { background: transparent; color: var(--ink); }
.btn-yo-ghost:hover { background: var(--ink); color: #fff; }
.btn-yo-orange { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-yo-orange:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-yo-light { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-yo-light:hover { background: var(--ink); color: #fff; }
.btn-yo .arrow { font-family: var(--font-mono); font-weight: 600; transition: transform .15s; }
.btn-yo:hover .arrow { transform: translateX(3px); }

/* Override Bootstrap .btn for industrial look */
.btn { border-radius: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============== Panel (card replacement) ============== */
.panel-yo {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: 0;
}
.panel-yo-header {
  background: var(--ink); color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.panel-yo-header .meta { color: rgba(255,255,255,.6); font-size: 10px; }

/* ============== Data table (industrial) ============== */
.table-yo {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  font-family: var(--font-sans);
  border-radius: 0;
}
.table-yo thead { background: var(--ink); color: #fff; }
.table-yo thead th {
  padding: 10px 20px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none;
}
.table-yo tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.table-yo tbody tr:last-child { border-bottom: none; }
.table-yo tbody tr:nth-child(even) { background: rgba(20,23,26,0.02); }
.table-yo tbody tr:hover { background: var(--bg-2); }
.table-yo tbody td { padding: 14px 20px; font-size: 13px; color: var(--ink); border: none; vertical-align: middle; }
.table-yo .mono-cell { font-family: var(--font-mono); font-size: 12px; }
.table-yo .id-cell {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--primary); letter-spacing: 0.06em;
}
.table-yo .num-cell { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.table-yo .muted-cell { color: var(--muted); }
.table-yo .right-cell { text-align: right; }
.table-wrap { overflow-x: auto; }

/* Status badge in table */
.status-ok { display: inline-flex; align-items: center; gap: 6px; }
.status-ok .lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ok); letter-spacing: 0.08em; }

/* ============== Badge styles ============== */
.badge-yo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 0;
}
.badge-yo-orange { background: var(--primary); color: #fff; }
.badge-yo-outline-orange { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.badge-yo-neutral { background: var(--bg-2); color: var(--ink); border: 1px solid var(--border-strong); }

/* ============== Forms ============== */
.form-control, .form-select {
  border: 1.5px solid var(--ink) !important;
  border-radius: 0 !important;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 14px;
  color: var(--ink);
  transition: outline .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ink) !important;
  outline: 3px solid var(--primary);
  outline-offset: -1px;
  box-shadow: none !important;
  background: #fff;
}
.form-control::placeholder { color: var(--muted-2); }
.form-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============== Doc header bar (DOC | REV | KIND | STATUS) ============== */
.doc-hdr {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  margin-bottom: 48px;
}
.doc-hdr .cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.doc-hdr .cell:last-child { border-right: none; }
.doc-hdr .k {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em;
  flex: 0 0 60px;
}
.doc-hdr .v {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink); font-weight: 600;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 767.98px) {
  .doc-hdr { grid-template-columns: repeat(2, 1fr); }
  .doc-hdr .cell:nth-child(2n) { border-right: none; }
  .doc-hdr .cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-strong); }
}

/* ============== Hero metrics strip ============== */
.metrics-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
}
.metrics-strip .cell {
  padding: 18px 16px;
  border-right: 1px solid var(--border-strong);
}
.metrics-strip .cell:last-child { border-right: none; }
.metrics-strip .n {
  font-family: var(--font-cond);
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
  margin-bottom: 4px; color: var(--ink);
}
.metrics-strip .l {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
@media (max-width: 575.98px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .metrics-strip .cell:nth-child(2n) { border-right: none; }
  .metrics-strip .cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-strong); }
}

/* ============== Hero carousel (>1 banner) — industrial indicators ============== */
#hero .carousel-fade .carousel-item { transition: opacity .6s ease-in-out; }
.yo-carousel-indicators {
  position: relative;             /* override absolute mặc định */
  bottom: auto;
  margin: 32px 0 0;
  padding: 0;
  display: flex; gap: 8px;
  justify-content: flex-start;
}
.yo-carousel-indicators [data-bs-target] {
  width: 14px; height: 14px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  margin: 0;
  opacity: 1;
  transition: background .15s;
  text-indent: 0;
}
.yo-carousel-indicators [data-bs-target].active { background: var(--ink); }
.yo-carousel-indicators [data-bs-target]:hover  { background: var(--bg-2); }

/* Trên nền dark (.sec-bg-ink) → đổi sang border trắng để thấy được */
.sec-bg-ink .yo-carousel-indicators [data-bs-target] {
  border-color: rgba(255,255,255,.4);
  background: transparent;
}
.sec-bg-ink .yo-carousel-indicators [data-bs-target].active {
  background: var(--primary);
  border-color: var(--primary);
}
.sec-bg-ink .yo-carousel-indicators [data-bs-target]:hover {
  background: rgba(255,255,255,.15);
}

/* ============== Schematic (FIG-01) ============== */
.schematic {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  position: relative;
}
.schematic-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.schematic-hdr .right { color: var(--muted); font-weight: 600; }
.schematic-body { padding: 24px; position: relative; height: 420px; }
.schematic-body > svg { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }
.schematic-legend { border-top: 1px solid var(--ink); }
.schematic-legend .hdr,
.schematic-legend .row {
  display: grid; grid-template-columns: 80px 1fr 100px 80px; gap: 0;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 11px;
}
.schematic-legend .hdr {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-strong);
  font-size: 9px; color: var(--muted); letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase;
}
.schematic-legend .hdr .last { text-align: right; }
.schematic-legend .row { border-bottom: 1px solid var(--border); }
.schematic-legend .row:last-child { border-bottom: none; }
.schematic-legend .row .id { color: var(--primary); font-weight: 600; }
.schematic-legend .row .city { color: var(--ink); font-weight: 500; }
.schematic-legend .row .area { color: var(--ink-2); }
.schematic-legend .row .region { color: var(--muted); text-align: right; }

/* ============== KPI gauge grid ============== */
.gauge-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.gauge {
  padding: 24px 20px;
  border-right: 1px solid var(--border-strong);
}
.gauge:last-child { border-right: none; }
.gauge-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.gauge-top .lbl {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em; font-weight: 600;
}
.gauge-num { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.gauge-num .n { font-family: var(--font-cond); font-size: 54px; font-weight: 700; letter-spacing: -0.03em; line-height: 0.9; color: var(--ink); }
.gauge-num .u { font-family: var(--font-mono); font-size: 18px; color: var(--ink-2); font-weight: 600; }
.gauge-bar { height: 6px; background: var(--bg-2); position: relative; margin-bottom: 8px; }
.gauge-bar > span { position: absolute; left: 0; top: 0; height: 100%; }
.gauge-foot { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 991.98px) {
  .gauge-grid { grid-template-columns: repeat(2, 1fr); }
  .gauge:nth-child(2n) { border-right: none; }
  .gauge:nth-child(-n+2) { border-bottom: 1px solid var(--border-strong); }
}
@media (max-width: 575.98px) {
  .gauge-grid { grid-template-columns: 1fr; }
  .gauge { border-right: none !important; border-bottom: 1px solid var(--border-strong); }
  .gauge:last-child { border-bottom: none; }
}

/* ============== Service cards (LV) — 2x2 grid in panel ============== */
.service-grid {
  /* gap 1px + nền border-strong = đường kẻ giữa mọi ô, tự đúng với SỐ THẺ BẤT KỲ */
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1.5px solid var(--ink);
  background: var(--border-strong);
}
.service-card {
  padding: 24px 24px 20px; position: relative; background: var(--paper);
  display: flex; flex-direction: column;
}
.service-card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.service-arrow {
  width: 24px; height: 24px; border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink);
  transition: background .15s, color .15s;
}
.service-card:hover .service-arrow { background: var(--ink); color: #fff; }
.service-thumb {
  margin-bottom: 16px; border: 1px solid var(--border-strong);
  overflow: hidden; background: var(--bg-2);
}
.service-thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.service-card:hover .service-thumb img { transform: scale(1.04); }
.service-card h3 {
  font-family: var(--font-cond);
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1;
  text-transform: uppercase; margin-bottom: 10px; color: var(--ink);
}
.service-card .desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; flex: 1 1 auto; }
.service-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--border-strong); padding-top: 14px; min-height: 20px;
}
.service-price { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.service-card a.cover { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 991.98px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ============== Capabilities / Partners row grid (data list) ============== */
.row-data-hdr,
.row-data {
  display: grid;
  gap: 16px;
  padding: 12px 20px;
  align-items: center;
}
.row-data-hdr {
  background: var(--ink); color: #fff;
  padding: 10px 20px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase;
}
.row-data { border-bottom: 1px solid var(--border); transition: background .12s; }
.row-data:last-child { border-bottom: none; }
.row-data:hover { background: var(--bg-2); }
.row-data .id { font-family: var(--font-mono); font-size: 11px; color: var(--primary); font-weight: 600; letter-spacing: 0.06em; }
.row-data .name { font-size: 14px; color: var(--ink); font-weight: 600; }
.row-data .mono { color: var(--ink-2); font-size: 12px; }
.row-data .muted { color: var(--muted); }
.cap-grid { grid-template-columns: 90px 1fr 1fr 1.4fr 80px; }
.cap-hdr  { grid-template-columns: 90px 1fr 1fr 1.4fr 80px; }
.par-grid { grid-template-columns: 80px 1.4fr 1fr 1fr 80px 120px; }
.par-hdr  { grid-template-columns: 80px 1.4fr 1fr 1fr 80px 120px; }
.par-grid:nth-of-type(even) { background: rgba(20,23,26,0.02); }
.row-data .status { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row-data .status .lbl { font-family: var(--font-mono); font-size: 10px; color: var(--ok); font-weight: 600; letter-spacing: 0.08em; }
.row-data-footer {
  padding: 14px 20px; border-top: 1.5px solid var(--ink); background: var(--bg-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em;
}
.row-data-footer a {
  color: var(--ink); letter-spacing: 0.08em; font-weight: 600; text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 1px;
}
@media (max-width: 991.98px) {
  .cap-grid, .cap-hdr, .par-grid, .par-hdr {
    grid-template-columns: 80px 1fr;
    gap: 8px 16px;
    padding: 14px 16px;
  }
  .cap-hdr, .par-hdr { display: none; }
  .row-data > * { font-size: 13px; }
}

/* ============== Testimonial dark ============== */
.testi-quote-mark {
  font-family: var(--font-mono);
  font-size: 36px; color: var(--primary);
  line-height: 0.5; margin-bottom: 24px;
}
.testi-quote {
  font-family: var(--font-cond);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35; letter-spacing: -0.01em;
  color: #fff; font-weight: 500;
  margin-bottom: 28px;
  text-transform: none;
}
.testi-quote .ac { color: var(--primary); }
.testi-author {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
}
.testi-avatar {
  width: 52px; height: 52px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  font-family: var(--font-mono); flex-shrink: 0;
}
.testi-author .name { font-size: 15px; font-weight: 600; color: #fff; }
.testi-author .role { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.6); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

.case-box {
  border: 1.5px solid rgba(255,255,255,.2);
  padding: 24px;
  background: transparent;
}
.case-box .hdr {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--primary); letter-spacing: 0.12em;
  font-weight: 600; margin-bottom: 14px;
}
.case-box .row {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.case-box .row:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.case-box .k { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: 0.08em; font-weight: 500; }
.case-box .v { font-family: var(--font-mono); font-size: 12px; color: #fff; font-weight: 500; }

/* ============== News rows ============== */
.news-list { border: 1.5px solid var(--ink); background: var(--bg); }
.news-row {
  display: grid; grid-template-columns: 100px 110px 1fr 80px 40px; gap: 24px;
  padding: 20px 24px; align-items: center;
  border-bottom: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: background .12s;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: var(--bg-2); color: inherit; }
.news-row .date { font-family: var(--font-mono); font-size: 11px; color: var(--ink); font-weight: 600; letter-spacing: 0.06em; }
.news-row .cat {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--primary); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--primary);
  justify-self: start;
}
.news-row .title {
  font-family: var(--font-cond);
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 4px; line-height: 1.15;
  text-transform: uppercase;
}
.news-row .desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.news-row .read { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; font-weight: 500; text-align: right; }
.news-row .arr { font-family: var(--font-mono); font-size: 18px; color: var(--ink); text-align: right; font-weight: 600; }
@media (max-width: 767.98px) {
  .news-row { grid-template-columns: auto 1fr; gap: 12px 16px; padding: 16px; }
  .news-row .cat, .news-row .read, .news-row .arr { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .news-row .date { grid-row: 1; }
  .news-row .title { font-size: 18px; }
}

/* ============== Contact form (FORM-001) ============== */
.contact-info-panel { /* uses .panel-yo */ }
.contact-info-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .k { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; font-weight: 500; }
.contact-info-row .v { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 500; word-break: break-word; }

.form-panel {
  border: 1.5px solid var(--ink); background: var(--paper);
  padding: 32px;
}
.form-panel-hdr {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--ink);
  flex-wrap: wrap; gap: 8px;
}
.form-panel-hdr .req { font-size: 10px; color: var(--muted); letter-spacing: 0.08em; font-weight: 500; }

/* ============== Footer ============== */
.footer-yo {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 56px 0 24px;
}
.footer-yo .top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-yo .brand-yo .mark { background: var(--primary); color: #fff; }
.footer-yo .brand-yo .mark::after { display: none; }
.footer-yo .brand-yo .wm-name { color: #fff; }
.footer-yo .brand-yo .wm-meta { color: rgba(255,255,255,.5); }
.footer-yo p.tagline { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.65); max-width: 380px; margin: 20px 0 24px; }
.footer-yo .socials { display: flex; gap: 8px; }
.footer-yo .socials a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
  transition: background .12s, border-color .12s;
}
.footer-yo .socials a:hover { background: var(--primary); border-color: var(--primary); }
.footer-yo .col-h {
  font-family: var(--font-mono); color: var(--primary);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-yo .col-list { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; list-style: none; }
.footer-yo .col-list a { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.footer-yo .col-list a:hover { color: var(--primary); }

.footer-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
}
.footer-meta .cell { display: flex; gap: 8px; color: rgba(255,255,255,.5); letter-spacing: 0.06em; flex-wrap: wrap; }
.footer-meta .k { color: rgba(255,255,255,.4); }
.footer-meta .v { color: rgba(255,255,255,.8); font-weight: 500; }

@media (max-width: 991.98px) {
  .footer-yo .top { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
  .footer-yo .top { grid-template-columns: 1fr; }
  .footer-meta { grid-template-columns: 1fr; }
}

/* ============== Generic 2-col layout for content pages ============== */
.cols-2-1 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.cols-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols-1-1\.2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 991.98px) {
  .cols-2-1, .cols-1-1, .cols-1-1\.2 { grid-template-columns: 1fr; gap: 40px; }
}

/* ============== Typography variants ============== */
.h-display {
  font-family: var(--font-cond);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.92; letter-spacing: -0.025em;
  font-weight: 700; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 28px;
}
.h-display .ac { color: var(--primary); }
.h2-yo {
  font-family: var(--font-cond);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -0.02em;
  font-weight: 700; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 28px;
}
.h2-yo .ac { color: var(--primary); }
.eyebrow-yo {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--primary);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 600;
  display: block;
}
.lead-yo { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.body-yo { font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.body-yo p { margin-bottom: 16px; }
.body-yo p:last-child { margin-bottom: 0; }

/* Article content (CMS / posts) */
.content-article {
  font-size: 16px; color: var(--ink-2); line-height: 1.7;
  max-width: 760px;
}
.content-article h1, .content-article h2, .content-article h3, .content-article h4 {
  font-family: var(--font-cond); text-transform: uppercase; color: var(--ink);
  margin-top: 32px; margin-bottom: 16px; letter-spacing: -0.015em;
}
.content-article h2 { font-size: 32px; }
.content-article h3 { font-size: 24px; }
.content-article a { color: var(--primary); border-bottom: 1px solid var(--primary); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; }
.content-article blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--paper);
  font-family: var(--font-cond);
  font-size: 22px;
  color: var(--ink);
}
.content-article img { border: 1.5px solid var(--ink); margin: 16px 0; }
.content-article code { font-family: var(--font-mono); background: var(--bg-2); padding: 2px 6px; }

/* ============== Industrial placeholder ============== */
.ph-tech {
  position: relative;
  background:
    repeating-linear-gradient(90deg, transparent 0 1px, rgba(20,23,26,.05) 1px 2px),
    repeating-linear-gradient(0deg,  transparent 0 1px, rgba(20,23,26,.05) 1px 2px),
    var(--bg-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}

/* ============== Pagination (Bootstrap override) ============== */
.pagination { gap: 6px; }
.page-link {
  border-radius: 0 !important;
  border: 1.5px solid var(--ink) !important;
  color: var(--ink) !important;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 8px 14px; background: transparent;
}
.page-link:hover { background: var(--ink); color: #fff !important; }
.page-item.active .page-link { background: var(--ink); color: #fff !important; }
.page-item.disabled .page-link { color: var(--muted-2) !important; border-color: var(--border-strong) !important; }

/* ============== Breadcrumb ============== */
.breadcrumb {
  background: transparent; padding: 0; margin: 0 0 24px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.breadcrumb-item, .breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--border-strong); }

/* ============== Alert (Bootstrap override industrial) ============== */
.alert { border-radius: 0; border: 1.5px solid var(--ink); padding: 14px 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.alert-success { background: rgba(45,122,74,.08); color: var(--ok); border-color: var(--ok); }
.alert-danger  { background: rgba(232,93,31,.08); color: var(--primary); border-color: var(--primary); }

/* ============== Product detail — gallery, lightbox, sticky CTA, mobile bar ============== */
/* Ảnh chính — nút phóng to */
.product-media-main {
  display: block; width: 100%; padding: 0; border: 0; background: var(--bg-2);
  position: relative; cursor: zoom-in;
}
.product-media-main img { width: 100%; height: auto; display: block; }
.product-media-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: #fff; background: rgba(20,23,26,.78); padding: 6px 10px;
  opacity: 0; transition: opacity .15s;
}
.product-media-main:hover .product-media-zoom { opacity: 1; }

/* Grid item phải co được để strip cuộn ngang thay vì đẩy rộng cột (tránh tràn ngang) */
.cols-2-1 > *, .cols-1-1 > *, .cols-1-1\.2 > * { min-width: 0; }

/* Thư viện ảnh — strip cuộn ngang (carousel) */
.product-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; min-width: 0;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.product-thumbs::-webkit-scrollbar { height: 6px; }
.product-thumbs::-webkit-scrollbar-thumb { background: var(--border-strong); }
.product-thumb {
  flex: 0 0 auto; width: 112px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--border-strong); background: var(--bg-2);
  scroll-snap-align: start; transition: border-color .15s;
}
.product-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.product-thumb:hover { border-color: var(--ink); }
.product-thumb.is-active { border-color: var(--primary); border-width: 2px; }

/* Cột phải sticky trên desktop */
@media (min-width: 992px) {
  .product-aside { position: sticky; top: 96px; }
}

/* Lightbox */
.product-lightbox .modal-content { background: transparent; border: 0; }
.product-lightbox .carousel-item img {
  width: 100%; max-height: 86vh; object-fit: contain; display: block;
}
.product-lightbox .lb-close {
  position: absolute; top: -42px; right: 0; z-index: 5;
  width: 36px; height: 36px; border: 1.5px solid #fff; background: transparent;
  color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
}
.product-lightbox .lb-close:hover { background: var(--primary); border-color: var(--primary); }
.product-lightbox .lb-counter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  color: #fff; background: rgba(20,23,26,.7); padding: 4px 12px;
  font-size: 12px; letter-spacing: 0.08em;
}
.product-lightbox .carousel-control-prev, .product-lightbox .carousel-control-next { width: 12%; }

/* Thanh CTA cố định dưới cùng — chỉ mobile */
.product-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 0; border-top: 1.5px solid var(--ink);
  background: var(--paper); box-shadow: 0 -4px 16px rgba(20,23,26,.12);
}
.product-cta-bar .pcb-btn {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 12px; font-family: var(--font-cond); font-weight: 700;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
}
.product-cta-bar .pcb-call { flex: 0 0 38%; background: var(--paper); color: var(--ink); border-right: 1.5px solid var(--ink); }
.product-cta-bar .pcb-quote { background: var(--primary); color: #fff; }
.product-cta-bar .pcb-call:active { background: var(--bg-2); }
/* Chừa chỗ cho thanh CTA, tránh che nội dung cuối trang */
@media (max-width: 991.98px) {
  body:has(.product-cta-bar) { padding-bottom: 64px; }
}
