/*
 * KTD CNC — Workshop Editorial UI
 * A grounded, photography-led industrial identity. Intentionally avoids
 * generic SaaS gradients, glass cards, floating pills and decorative glow.
 */

:root {
  --ink-950: #171a18;
  --ink-900: #202421;
  --ink-800: #2d332f;
  --ink-700: #404842;
  --ink-600: #3e4741;
  --ink-500: #4c554f;
  --ink-400: #626c65;
  --ink-300: #c0c5c0;
  --ink-200: #d9ddd8;
  --ink-100: #e9ebe7;
  --ink-50: #f4f5f1;
  --brand-950: #30150d;
  --brand-900: #512112;
  --brand-800: #7c2d14;
  --brand-700: #a43b17;
  --brand-600: #ad3b15;
  --brand-500: #e45b28;
  --brand-400: #ee7a4b;
  --brand-300: #f4a07e;
  --brand-200: #f8c9b6;
  --brand-100: #fce4da;
  --brand-50: #fff5f0;
  --amber-700: #8f3b16;
  --amber-600: #b74a1a;
  --amber-500: #e45b28;
  --amber-400: #f37b48;
  --amber-300: #f7ae8d;
  --amber-100: #fee7dc;
  --amber-50: #fff7f2;
  --surface-base: #f8f5ed;
  --surface-card: #f8f5ed;
  --surface-muted: #eee9de;
  --surface-alt: #e8e1d3;
  --surface-dark: #202421;
  --surface-dark-card: #292e2a;
  --line: #ccc5b7;
  --line-strong: #aaa394;
  --line-dark: rgba(255,255,255,.18);
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: 10px 10px 0 rgba(0,0,0,.24);
  --shadow-glow: none;
  --r-xs: 0;
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-xl: 2px;
  --r-pill: 2px;
  --wrap: 1280px;
}

html {
  background: var(--surface-base);
  color: var(--ink-800);
}
body {
  background-color: var(--surface-base);
  background-image: linear-gradient(90deg, rgba(32,36,33,.035) 1px, transparent 1px);
  background-size: min(8.333vw, 106px) 100%;
}
::selection { background: var(--brand-500); color: #fff; }

h1, h2, h3, h4 {
  color: var(--ink-950);
  letter-spacing: -.035em;
}
h1, h2 { text-wrap: balance; }
a { text-underline-offset: .2em; }

/* Header: quiet, utilitarian and easy to scan. */
.topbar {
  background: var(--ink-950);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.topbar__in { min-height: 34px; }
.topbar__list li, .topbar__list a {
  color: #d9ddd8;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
}
.topbar__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.25rem;
}
.topbar__list a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 44px;
  width: 100%;
  height: 44px;
  pointer-events: auto;
}
.topbar__status { color: #fff !important; }
.status-dot { background: #f17b47; box-shadow: none; }
.site-header {
  background: rgba(248,245,237,.96);
  border-bottom: 1px solid var(--ink-900);
  box-shadow: none;
}
.header__in { min-height: 76px; }
.brand__name { letter-spacing: -.04em; color: var(--ink-950); }
.brand__name b { color: var(--brand-600); }
.brand__sub {
  color: var(--ink-600);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav > ul > li > a {
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.nav > ul > li > a::after { background: var(--brand-500); height: 3px; }

/* Controls: no gradients, no glow, no fake depth. */
.btn {
  min-height: 46px;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: none; box-shadow: none; }
.btn--primary {
  color: #fff;
  background: var(--brand-600);
  border-color: var(--brand-600);
}
.btn--primary:hover { background: var(--ink-950); border-color: var(--ink-950); }
.btn--outline {
  color: var(--ink-950);
  background: transparent;
  border-color: var(--ink-950);
}
.btn--outline:hover { color: #fff; background: var(--ink-950); border-color: var(--ink-950); }
.btn--onDark {
  color: #fff;
  border-color: rgba(255,255,255,.7);
  background: transparent;
}
.btn--onDark:hover { color: var(--ink-950); background: #fff; border-color: #fff; }
.pill, .badge-pop {
  border-radius: 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Section rhythm: editorial, left aligned, with visible rules. */
.section { padding-block: clamp(4.25rem, 7vw, 7rem); }
.section--white { background: rgba(248,245,237,.96); }
.section--alt { background: #e8e1d3; }
.section--dark { background: var(--ink-950); }
.sec-head,
.sec-head--center {
  max-width: 930px;
  margin-inline: 0;
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  column-gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  max-width: 16ch;
}
.sec-head .sec-sub {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-500);
  color: var(--ink-600);
}
.eyebrow {
  width: fit-content;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
}
.eyebrow::before {
  content: '';
  width: 36px;
  height: 2px;
  background: currentColor;
}
.eyebrow svg { display: none; }
.section--dark .eyebrow { background: transparent; border: 0; color: var(--brand-300); }
.section--dark .sec-head .sec-sub { color: var(--ink-300); }

/* Homepage hero: the workshop itself is the visual identity. */
.home .hero {
  min-height: min(850px, calc(100svh - 110px));
  padding-block: clamp(2.75rem, 4.5vw, 4.5rem);
  background-color: var(--ink-950);
  isolation: isolate;
}
.home .hero::before {
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(18,20,18,.96) 0%, rgba(18,20,18,.86) 38%, rgba(18,20,18,.38) 69%, rgba(18,20,18,.56) 100%),
    url('/wp-content/uploads/2026/09/toan-canh-xuong-moc-cnc-goc-cao-scaled.webp');
  background-size: cover;
  background-position: center;
  mask-image: none;
  opacity: 1;
}
.home .hero::after {
  content: 'KTD / WORKSHOP 01';
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.25rem;
  z-index: -1;
  color: rgba(255,255,255,.68);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  writing-mode: vertical-rl;
}
.home .hero__grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .72fr);
  align-items: end;
}
.hero__badge {
  gap: .7rem;
  margin-bottom: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero__badge-tag {
  padding: .42rem .55rem;
  border-radius: 0;
  background: var(--brand-500);
  color: #fff;
  font-size: 10px;
  letter-spacing: .08em;
}
.hero h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 3.4vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero h1 em {
  color: #f3a080;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero__sub {
  max-width: 54ch;
  color: #d5d8d3;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 1px solid rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.trust-item { padding: 1rem .9rem 1rem 0; border-right: 1px solid rgba(255,255,255,.2); }
.trust-item + .trust-item { padding-left: .9rem; }
.trust-item:last-child { border-right: 0; }
.trust-item b {
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -.05em;
}
.trust-item span { color: #c8ccc7; font-size: 10px; line-height: 1.4; }

.calc-card {
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 0;
  background: rgba(248,245,237,.97);
  box-shadow: 12px 12px 0 rgba(0,0,0,.34);
}
.calc-head {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--ink-950);
  background: var(--brand-600);
}
.calc-head h2 { font-size: 1rem; letter-spacing: -.015em; }
.calc-head h2 svg { color: #fff; }
.calc-body { padding: 1.35rem; }
.calc-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.calc-input-group, .calc-number, .calc-select, .calc-check-label, .calc-result {
  border-radius: 0;
  box-shadow: none;
}
.calc-select, .calc-number { background-color: #fffdf8; border-color: var(--line-strong); }
.calc-step-btn { border-radius: 0; }
.calc-result { background: #e9e2d5; border: 1px solid var(--line-strong); }

/* Proof rail. */
.highlights-bar {
  padding-block: 0;
  background: var(--brand-600);
  border: 0;
}
.highlights-grid { gap: 0; }
.highlight-card {
  min-height: 112px;
  padding: 1.15rem;
  border-radius: 0;
  border-right: 1px solid rgba(255,255,255,.3);
}
.highlight-card:last-child { border-right: 0; }
.highlight-card:hover { background: rgba(0,0,0,.1); }
.highlight-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.highlight-icon svg { width: 18px; height: 18px; }
.highlight-text b { color: #fff; font-size: 13px; }
.highlight-text span { color: rgba(255,255,255,.78); font-size: 10px; }

/* Services: specification sheets instead of app cards. */
#dich-vu .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--ink-900); }
.service-card {
  min-height: 420px;
  padding: 2rem;
  border: 0;
  border-right: 1px solid var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.service-card:nth-child(2n+1) { border-left: 1px solid var(--ink-900); }
.service-card::before {
  content: counter(service, decimal-leading-zero);
  counter-increment: service;
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 2.5rem;
  color: var(--brand-600);
  background: none;
  opacity: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
}
#dich-vu .g-4 { counter-reset: service; }
.service-card:hover { transform: none; border-color: var(--ink-900); background: #f0eadf; box-shadow: none; }
.service-card__icon { display: none; }
.service-card h3 { max-width: 16ch; font-size: clamp(1.35rem, 2.3vw, 2rem); }
.service-card p { max-width: 48ch; color: var(--ink-600); }
.service-card__specs { padding-top: 1rem; border-top: 1px solid var(--line); }
.service-card__specs svg { color: var(--brand-600); }
.service-card__footer { border-color: var(--ink-900); }
.service-price b { color: var(--brand-700); }

/* Machinery: large documentary photos, hard edges, data-table rhythm. */
#nang-luc { border-top: 8px solid var(--brand-600); }
#nang-luc .g-3 { gap: 1px; background: rgba(255,255,255,.28); }
.machine-card {
  padding: 0 1.4rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: #262b27;
}
.machine-card:hover { transform: none; border-color: transparent; box-shadow: none; background: #2d332e; }
.machine-card > div:first-child {
  height: 260px !important;
  margin: 0 -1.4rem 1.4rem !important;
  border-radius: 0 !important;
}
.machine-card > div:first-child img { opacity: 1 !important; filter: saturate(.7) contrast(1.04); }
.machine-card__head { min-height: 64px; }
.machine-card__badge {
  padding: .25rem .4rem;
  border-radius: 0;
  border-color: var(--brand-400);
  background: transparent;
  color: var(--brand-300);
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.machine-specs { gap: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); border-radius: 0; background: transparent; }
.machine-spec-item { padding: .7rem .5rem .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.machine-spec-item:nth-child(2n) { padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.12); }
.machine-spec-item b { color: #fff; }
.brand-strip { justify-content: flex-start; gap: 0; padding-bottom: 0; }
.brand-tag {
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.22);
  border-right: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink-200);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}
.brand-tag:last-child { border-right: 1px solid rgba(255,255,255,.22); }
.brand-tag svg { color: var(--brand-300); }

/* Workshop gallery becomes a contact sheet, not six identical cards. */
#thu-vien-xuong .grid.g-3 {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 8px !important;
}
#thu-vien-xuong figure {
  position: relative;
  grid-column: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: 0 !important;
  background: var(--ink-900) !important;
  box-shadow: none !important;
}
#thu-vien-xuong figure:first-child { grid-column: span 8; grid-row: span 2; }
#thu-vien-xuong figure img { width: 100% !important; height: 100% !important; object-fit: cover; filter: saturate(.75); transition: filter .25s ease, transform .45s ease; }
#thu-vien-xuong figure:hover img { filter: saturate(1); transform: scale(1.015); }
#thu-vien-xuong figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: .7rem .85rem !important;
  border: 0 !important;
  background: rgba(20,23,21,.84) !important;
  color: #fff !important;
  font-family: var(--font-mono);
  font-size: 10px !important;
  font-weight: 500 !important;
}
#thu-vien-xuong .grid + div {
  margin-top: 8px !important;
  padding: 1.5rem !important;
  border-radius: 0 !important;
  background: var(--ink-900) !important;
  box-shadow: none !important;
}
#thu-vien-xuong .grid + div > div > img { border-radius: 0 !important; border-color: var(--brand-500) !important; }

/* Tables, process and reviews share the same print-inspired language. */
.table-responsive, .table-wrap { border-radius: 0; box-shadow: none; }
.price-table { border: 1px solid var(--ink-900); }
.price-table th, .table-wrap th { background: var(--ink-900); }
.price-table tr:nth-child(even), .table-wrap tr:nth-child(even) { background: #eee8dc; }
.compare-card, .review-card {
  border-radius: 0;
  border-color: var(--ink-900);
  background: transparent;
  box-shadow: none;
}
.compare-card--featured { border-width: 2px; }
.workflow-grid { gap: 0; border-top: 1px solid var(--ink-900); border-left: 1px solid var(--ink-900); }
.workflow-step {
  min-height: 280px;
  padding: 1.5rem;
  border: 0;
  border-right: 1px solid var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  border-radius: 0;
  background: rgba(248,245,237,.4);
  box-shadow: none;
}
.workflow-step:hover { transform: none; box-shadow: none; background: rgba(248,245,237,.8); }
.step-num {
  width: auto;
  height: auto;
  margin-bottom: 3.5rem;
  border-radius: 0;
  background: transparent;
  color: var(--brand-700);
  font-family: var(--font-mono);
  font-size: 2rem;
  justify-content: flex-start;
}
.review-card { padding: 1.75rem; }
.review-stars { color: var(--brand-600); }
.review-avatar { border-radius: 0; background: var(--ink-900); }

/* Location and FAQ: functional, not decorative. */
.nap-box { border: 1px solid var(--ink-900); border-radius: 0; box-shadow: none; }
.nap-info { background: #ece5d9; }
.nap-list-icon { border-radius: 0; background: var(--brand-600); color: #fff; }
.nap-map, .nap-map iframe { border-radius: 0; }
.faq details {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--ink-900);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.faq details:last-child { border-bottom: 1px solid var(--ink-900); }
.faq details[open] { border-color: var(--ink-900); background: #eee8dc; }
.faq summary { padding-inline: 0; }
.faq__body { padding-inline: 0; }

/* Override old inline presentation on the quality section without changing content. */
#so-sanh-chat-luong .g-2 > div {
  padding: 1.5rem !important;
  border: 1px solid var(--ink-900) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#so-sanh-chat-luong .g-2 + div {
  border: 1px solid #47614c !important;
  border-radius: 0 !important;
  background: #dce4d7 !important;
}

/* CTA and footer. */
.cta-band { background: var(--brand-600); }
.cta-band::before { display: none; }
.nap-block { border-radius: 0; box-shadow: none; }
.site-footer { background: var(--ink-950); border-top: 8px solid var(--brand-600); }

/* Interior pages inherit the same quieter identity. */
.page-hero, .archive-hero {
  background: var(--ink-950);
  border-radius: 0;
}
.entry-card, .post-card, .toc, .author-box, .contact-card {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 1023px) {
  .home .hero { min-height: auto; }
  .home .hero__grid { grid-template-columns: 1fr; }
  .calc-card { max-width: 680px; }
  .sec-head, .sec-head--center { grid-template-columns: 1fr; }
  .sec-head h2 { max-width: 20ch; }
  .sec-head .sec-sub { margin-top: 1.25rem; max-width: 60ch; }
  #nang-luc .g-3 { grid-template-columns: 1fr; }
  .machine-card > div:first-child { height: 340px !important; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
  body { background-image: none; }
  .topbar__status { display: none; }
  .header__in { min-height: 66px; }
  .section { padding-block: 3.75rem; }
  .sec-head h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .site-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .footer__bottom {
    padding-bottom: 0.5rem;
  }
  .home .hero {
    padding-block: 1.75rem 3rem;
    background: var(--ink-950);
  }
  .home .hero::before {
    background-image:
      linear-gradient(180deg, rgba(18,20,18,.58) 0%, rgba(18,20,18,.94) 36%, rgba(18,20,18,.99) 100%),
      url('/wp-content/uploads/2026/09/toan-canh-xuong-moc-cnc-goc-cao-768x432.webp');
    background-position: 62% top;
    background-size: auto 430px;
    background-repeat: no-repeat;
  }
  .home .hero__grid { gap: 2rem; }
  .hero__badge {
    position: static;
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero h1 {
    max-width: 100%;
    padding-top: 0;
    font-size: clamp(1.85rem, 7.8vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 0.85rem;
    text-wrap: wrap;
  }
  .hero__sub {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .hero__trust { grid-template-columns: repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.2); }
  .calc-card { box-shadow: 7px 7px 0 rgba(0,0,0,.4); }
  .highlights-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .highlight-card { min-height: 120px; border-bottom: 1px solid rgba(255,255,255,.3); }
  .highlight-card:nth-child(2) { border-right: 0; }
  #dich-vu .g-4 { grid-template-columns: 1fr; }
  .service-card { min-height: 0; border-left: 1px solid var(--ink-900); }
  .service-card::before { margin-bottom: 1.5rem; }
  #thu-vien-xuong .grid.g-3 { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  #thu-vien-xuong figure, #thu-vien-xuong figure:first-child { grid-column: auto; grid-row: auto; }
  #thu-vien-xuong figure:first-child { min-height: 340px; }
  #thu-vien-xuong .grid + div { align-items: flex-start !important; }
  #thu-vien-xuong .grid + div > div { align-items: flex-start !important; }
  #thu-vien-xuong .grid + div > div > img { width: 64px !important; height: 64px !important; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; }
  .step-num { margin-bottom: 1.75rem; }
  .brand-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .brand-tag { border-right: 1px solid rgba(255,255,255,.22); }
}

@media (prefers-reduced-motion: reduce) {
  #thu-vien-xuong figure img { transition: none; }
}

/* Contact controls: keep one deliberate conversion path per viewport. */
.floating-hub { display: none !important; }
.dock {
  background: var(--ink-950);
  border-top: 1px solid rgba(255,255,255,.28);
  box-shadow: none;
  backdrop-filter: none;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}
.dock__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dock .btn { min-width: 0; min-height: 44px; padding-inline: .35rem; font-size: 10px; letter-spacing: .015em; }

@media (max-width: 767px) {
  .topbar__in > .topbar__list:last-child { display: none; }
  .nav-toggle { border-radius: 0; background: transparent; border-color: var(--ink-900); }
}

/* Readability pass — WCAG AA contrast on every recurring surface. */
.section--white,
.section--alt,
.table-responsive,
.table-wrap,
.calc-card,
.nap-info,
.faq details,
.service-card,
.review-card,
.workflow-step,
.compare-card {
  color: #303732;
}
.section--white p,
.section--alt p,
.service-card p,
.workflow-step p,
.review-card p,
.compare-card p,
.nap-info p,
.nap-info span,
.faq__body,
.callout p,
.table-note,
.sec-sub {
  color: #3e4741;
}
.section--dark,
.section--dark p,
.section--dark .sec-sub,
.site-footer,
.site-footer p,
.site-footer li {
  color: #d6dbd6;
}
.section--dark .machine-spec-item span,
.site-footer .footer__bottom,
.site-footer .footer__col a {
  color: #b8c0b9;
}
.calc-label,
.calc-check-label,
.calc-result-label,
.calc-result-sub,
.price-table td,
.table-wrap td,
.nap-list-text b,
.review-info span {
  color: #38413b;
}
.price-table .price-val,
.service-price b,
.faq summary::after,
.entry-content a:not(.btn) {
  color: #993310;
}

:where(a, button, input, select, summary):focus-visible,
.calc-select:focus-visible,
.calc-number:focus-visible,
.calc-step-btn:focus-visible,
.calc-check-label input:focus-visible,
.nav-drawer-close:focus-visible,
.nav-toggle:focus-visible,
.dock .btn:focus-visible,
.topbar a:focus-visible {
  outline: 3px solid #111713 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #ffffff !important;
}
.section--dark :where(a, button, input, select, summary):focus-visible,
.site-footer :where(a, button, input, select, summary):focus-visible,
.hero :where(a, button, input, select, summary):focus-visible,
.dock :where(a, button, input, select, summary):focus-visible,
.topbar :where(a, button, input, select, summary):focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #111713 !important;
}

.site-footer .btn-row .pill {
  min-height: 44px;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
}

/* Explicit fixes for legacy inline colours and dark-surface descendants. */
.skip-link,
.hero__badge-tag { background: var(--brand-600); color: #fff; }
.btn--brand {
  background: #26342c;
  border-color: #26342c;
  color: #fff !important;
}
.btn--brand:hover { background: #111713; border-color: #111713; }
.review-avatar { color: #fff; }
.pill--green,
.site-footer .pill--green {
  color: #14532d !important;
  background: #ecfdf5;
  border-color: #86a994;
}
.section--dark strong,
.section--dark b,
.hero strong,
#thu-vien-xuong .grid + div strong,
.cta-band strong,
.site-footer strong { color: #fff; }
.site-footer .brand__sub,
.site-footer [style*="color:var(--ink-400)"] { color: #b8c0b9 !important; }
#so-sanh-chat-luong td[style*="#16a34a"] { color: #11652d !important; }
#so-sanh-chat-luong td[style*="#dc2626"] { color: #a61b1b !important; }
#so-sanh-chat-luong span[style*="background:#16a34a"] { background: #11652d !important; }
#so-sanh-chat-luong span[style*="color:#15803d"] { color: #0e5c2a !important; }
#so-sanh-chat-luong .pill--green { color: #14532d !important; }

.cta-band p { color: #fff; }

/* Row headers in content tables use a dark technical band. */
.table-wrap tbody th,
.table-responsive tbody th {
  background: var(--ink-900);
  color: #fff;
}
