/**
 * HOUSELINK — header & footer dùng chung (load cùng partials).
 */
:root {
  --navy: #00466e;
  --navy-deep: #003457;
  --navy-mid: #005585;
  --green: #2d8b48;
  --green-light: #3aad5c;
  --green-pale: #ebf7ef;
  --white: #ffffff;
  --gray-50: #eef1f4;
  --gray-100: #dde3e8;
  --gray-200: #bec8d0;
  /* Between 200 & 400 — tertiary text, auth placeholders, dividers */
  --gray-300: #b0bcc6;
  --gray-400: #7e8f9a;
  --gray-600: #4a5a65;
  --text: #0d1f2d;
  --font-main: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --max-w: 1240px;
  /* Header row needs more horizontal room than body copy columns */
  --header-inner-max-w: 1560px;
  /* Scroll-reveal: duration + stagger so the next item starts after the previous finishes */
  --hl-reveal-dur: 0.85s;
  --hl-reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hl-reveal-start-delay: 0.1s;
  --hl-reveal-seq-gap: 0.08s;
  --hl-reveal-seq-step: calc(var(--hl-reveal-dur) + var(--hl-reveal-seq-gap));
}

/* Placeholder copy — muted vs. real input text (overridden on dark UIs, e.g. .faq-search, .err-search) */
input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
  opacity: 1;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: var(--gray-400);
  opacity: 1;
}
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: var(--gray-400);
  opacity: 1;
}

footer .si {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* Blur lives on .header-bar only so .hl-nav-panel (sibling) can use the viewport
   as fixed containing block. backdrop-filter on #header trapped the drawer in 72px. */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  height: var(--header-h);
  box-sizing: border-box;
  /* Solid bar full width (no backdrop-filter here — avoids clipping fixed .hl-nav-panel) */
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow 0.3s;
  color: var(--text);
  overflow: visible;
}
#header.scrolled {
  box-shadow: 0 2px 32px rgba(0, 70, 110, 0.1);
}

/* Desktop: logo + toggle sit in .header-inner; nav + .hdr-actions are flex children of #header (toggle hidden >1100px). */
@media (min-width: 961px) {
  #header {
    padding-right: 40px;
  }
}

.header-bar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  min-width: 0;
  background: transparent;
  position: relative;
  isolation: isolate;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  padding: 0 40px;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-inner .logo {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 280px);
}
.header-inner .logo .hl-logo-img--header {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 42px;
}
/* Wraps nav only; .hdr-actions is a sibling under #header. Desktop: display:contents → nav participates in #header flex. */
.hl-nav-panel {
  display: contents;
}
.hl-nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.18s;
}
.hl-nav-toggle:hover {
  background: var(--gray-50);
}
.hl-nav-toggle:focus-visible {
  outline: 2px solid rgba(0, 70, 110, 0.35);
  outline-offset: 2px;
}
.hl-nav-toggle-inner {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.hl-nav-toggle-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.hl-nav-toggle-bar:nth-child(1) {
  top: 0;
}
.hl-nav-toggle-bar:nth-child(2) {
  top: 7px;
}
.hl-nav-toggle-bar:nth-child(3) {
  top: 14px;
}
#header.hl-nav-open .hl-nav-toggle-bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
#header.hl-nav-open .hl-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
#header.hl-nav-open .hl-nav-toggle-bar:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}
nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  overflow: visible;
  position: relative;
  z-index: 1;
}
nav > a,
.has-mega > a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  transition: all 0.18s;
  letter-spacing: 0.015em;
  cursor: pointer;
  display: block;
  white-space: nowrap;
}
nav > a,
nav > .has-mega {
  flex-shrink: 0;
}
nav > a:hover,
.has-mega > a:hover {
  color: var(--navy);
  background: var(--gray-50);
}
.has-mega {
  position: relative;
}
/* Later siblings paint on top by default; lift the active mega so its panel isn’t
   covered and the neighbor trigger doesn’t steal hover (Dịch vụ vs Công ty). */
nav > .has-mega {
  z-index: 1;
}
nav > .has-mega:hover,
nav > .has-mega:focus-within {
  z-index: 40;
}
/* No wide ::before bridge: centered 780px strips overlapped adjacent triggers and
   the later .has-mega stole hover (e.g. “Công ty” over “Dịch vụ”). */
.mega-dropdown {
  display: none;
  position: absolute;
  /* Flush to trigger so the gap lives inside the panel (padding-top); hover stays on .has-mega */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 51, 102, 0.12), 0 8px 24px rgba(0, 51, 102, 0.06);
  /* 12px former gap + previous 28px top padding */
  padding: 40px 32px 30px;
  width: min(720px, calc(100vw - 32px));
  max-width: 96vw;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 20px;
}
.mega-dropdown--services {
  width: min(760px, calc(100vw - 32px));
}
.mega-dropdown--company {
  width: min(640px, calc(100vw - 32px));
}
.has-mega:hover .mega-dropdown {
  display: grid;
  animation: hl-fadeD 0.18s ease;
}
@keyframes hl-fadeD {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 6px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.mega-item:hover {
  background: var(--gray-50);
}
/* Sub-links under Find Project in Services mega menu */
.mega-item.mega-item--fp-sub {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 3px solid rgba(45, 139, 72, 0.35);
}
.mega-item.mega-item--fp-sub .mi-icon {
  width: 40px;
  height: 40px;
  font-size: 17px;
}
.mega-item.mega-item--fp-sub .mi-title {
  font-size: 15px;
}
.mega-item > div:last-child {
  min-width: 0;
}
.mi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0f9f4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.mi-title {
  font-size: 16px;
  font-weight: 700;
  color: #003366;
  line-height: 1.25;
  margin-bottom: 4px;
}
.mi-desc {
  font-size: 14px;
  color: #6c757d;
  margin-top: 0;
  line-height: 1.4;
  font-weight: 400;
}
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  position: relative;
  z-index: 20;
  min-width: min-content;
  max-width: none;
}
.hl-header-login,
.hl-header-cta {
  flex-shrink: 0;
  font-family: var(--font-main), system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  box-sizing: border-box;
  white-space: nowrap;
}
.hl-header-login {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #003366 !important;
  -webkit-text-fill-color: #003366;
  border: 1px solid #b8c9d9;
  border-radius: 10px;
  padding: 10px 18px;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
  min-width: max-content;
}
.hl-header-login:hover {
  border-color: #003366;
  background: #fafcfd;
}
.hl-header-login svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
}
.hl-header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #003366;
  border: 1px solid #003366;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  border-radius: 10px;
  padding: 10px 20px;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
  min-width: max-content;
}
.hl-header-cta:hover {
  background: #002952;
  border-color: #002952;
  color: #ffffff;
}
.hl-header-cta-arrow {
  font-weight: 700;
  line-height: 1;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  position: relative;
}
.hl-lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hl-lang-select {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 7px 30px 7px 10px;
  cursor: pointer;
  font-family: var(--font-main), "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  min-width: 132px;
  max-width: 168px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5A65' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.hl-lang-select:hover {
  border-color: var(--navy);
}
.hl-lang-select:focus {
  outline: 2px solid rgba(0, 70, 110, 0.25);
  outline-offset: 1px;
}

/* 1000–1329px: smaller logo + nav (hdr-actions icon-only whenever ≤1620px; see media after max-1100). */
@media (min-width: 1000px) and (max-width: 1329px) {
  #header {
    padding-right: 24px;
  }
  .header-inner {
    padding: 0 24px;
    gap: 8px;
  }
  .header-inner .logo {
    max-width: min(100%, 220px);
  }
  .header-inner .logo .hl-logo-img--header {
    max-height: 34px;
  }
  nav {
    gap: 2px;
  }
  nav > a,
  .has-mega > a {
    font-size: 12px;
    padding: 6px 8px;
    letter-spacing: 0.01em;
  }
  .hdr-actions {
    gap: 8px;
  }
  .hl-lang-select {
    font-size: 11px;
    min-width: 112px;
    max-width: 148px;
    padding: 6px 26px 6px 8px;
  }
  .hl-header-login,
  .hl-header-cta {
    font-size: 12px;
  }
  .hl-header-login {
    padding: 8px 12px;
    gap: 6px;
  }
  .hl-header-login svg {
    width: 14px;
    height: 14px;
  }
  .hl-header-cta {
    padding: 8px 14px;
    gap: 4px;
  }
}

/* CTA chat icon: shown whenever ≤1620px (media query placed after max-1100 header rules). */
.hl-header-cta-icon {
  display: none;
  align-items: center;
  justify-content: center;
}
.hl-header-cta-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.ftr-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ftr-logo-row .ftr-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}
.ftr-logo-row .ftr-logo-link:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 4px;
  border-radius: 4px;
}
.ftr-logo-row .ftr-logo-link:hover .hl-logo-img--footer {
  opacity: 0.9;
}
.ftr-logo-row .hl-logo-img--footer {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 38px;
}
.hl-logo-img--auth {
  display: block;
  max-width: min(100%, 260px);
  width: auto;
  height: auto;
  max-height: 40px;
}
.ftr-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 280px;
}
.ftr-address {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}
.ftr-address a {
  color: rgba(255, 255, 255, 0.55);
}
.social-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.soc-btn {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  border: none;
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.soc-btn__icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  transition: opacity 0.18s;
}
.soc-btn:hover .soc-btn__icon {
  opacity: 1;
}
.ftr-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}
.ftr-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.18s;
}
.ftr-col a:hover {
  color: var(--green-light);
}
.ftr-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 16px;
}
.ftr-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.ftr-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.18s;
}
.ftr-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}

body.hl-with-fixed-header .svc-hero {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px);
}

body.hl-with-fixed-header .faq-hero {
  padding-top: calc(var(--header-h) + 48px);
}

/* Find Project pricing & contract: no local .topbar — offset first content below fixed chrome */
body.hl-with-fixed-header[data-hl-page="services-find-project-contract"] .steps-bar {
  margin-top: var(--header-h);
}
body.hl-with-fixed-header[data-hl-page="services-find-project-pricing"] .pricing-hero {
  margin-top: var(--header-h);
}

/* Contract page: order summary sticky offset matches fixed site header */
body.hl-with-fixed-header[data-hl-page="services-find-project-contract"] .sidebar {
  top: calc(var(--header-h) + 12px);
}

body.hl-nav-no-scroll {
  overflow: hidden;
}

@media (max-width: 960px) {
  footer {
    padding: 56px 0 36px;
  }
  footer .si {
    padding: 0 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
    margin-bottom: 44px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .ftr-desc {
    max-width: 42rem;
  }
  .ftr-bottom {
    padding-top: 24px;
    gap: 20px;
  }
}

/* Hamburger + slide drawer from max 1100px; lang / login / CTA stay on the bar next to the toggle. */
@media (max-width: 1100px) {
  .header-bar {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-inner {
    padding: 0 20px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: min(100%, var(--header-inner-max-w));
    margin: 0 auto;
    width: 100%;
  }
  #header > .hdr-actions {
    align-self: center;
    min-width: 0;
    margin-right: 4px;
  }
  .hl-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  /* Viewport-height drawer (not clipped by 72px header; see #header note above) */
  .hl-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100dvh - var(--header-h));
    max-width: none;
    margin: 0;
    padding: 16px 20px 32px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.3s ease,
      visibility 0.3s;
  }
  #header.hl-nav-open .hl-nav-panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    overflow: visible;
  }
  nav > a,
  .has-mega > a {
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 6px;
    border-radius: 8px;
  }
  nav > .has-mega:hover,
  nav > .has-mega:focus-within {
    z-index: auto;
  }
  /* Touch: no hover mega; use .hl-mega-open from JS */
  .has-mega:hover .mega-dropdown {
    display: none;
  }
  .has-mega.hl-mega-open > .mega-dropdown {
    display: grid;
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 8px 0 12px 10px;
    margin: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: 2px solid var(--gray-100);
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
    animation: none;
  }
  .mega-item {
    padding: 8px 6px;
  }
  .mi-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .mi-title {
    font-size: 15px;
  }
  .mi-desc {
    font-size: 13px;
  }
  .hdr-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    margin-left: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 8px;
  }
  .lang-switcher {
    width: auto;
    margin-right: 0;
  }
  .hl-lang-select {
    width: auto;
    min-width: 0;
    max-width: none;
    font-size: 12px;
    padding: 7px 28px 7px 8px;
  }
  .hl-header-login,
  .hl-header-cta {
    justify-content: center;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }
  .hl-header-login {
    padding: 9px 11px;
    font-size: 12px;
  }
  .hl-header-login svg {
    width: 15px;
    height: 15px;
  }
  .hl-header-cta {
    padding: 9px 12px;
    font-size: 12px;
  }
}

/* After max-1100 bar rules: icon-only lang/login/CTA for all widths ≤1620px (wins cascade vs .hl-lang-select above). */
@media (max-width: 1620px) {
  .hdr-actions {
    gap: 8px;
  }
  .hl-lang-select {
    min-width: 52px;
    max-width: 58px;
    width: 56px;
    padding: 7px 22px 7px 6px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
  }
  .hl-header-login {
    position: relative;
    padding: 10px;
    justify-content: center;
    min-width: 0;
    gap: 0;
  }
  .hl-header-login-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .hl-header-cta {
    position: relative;
    padding: 10px;
    justify-content: center;
    min-width: 0;
    gap: 0;
  }
  .hl-header-cta-icon {
    display: inline-flex;
  }
  .hl-header-cta-text,
  .hl-header-cta-arrow {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 44px 0 28px;
  }
  footer .si {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
  .ftr-desc {
    max-width: none;
  }
  .ftr-logo-row .hl-logo-img--footer {
    max-width: 100%;
    height: auto;
  }
  .ftr-col h4 {
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ftr-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
  }
  .ftr-bottom-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }
}

/* =============================================================================
   Subpages & service templates (Vi, EN/JA/KO/ZH home, /vi/services/*, legal, etc.)
   Load landing-chrome.css AFTER each page’s <style> block so these win over inline.
   !important used only where pages set grid/padding via inline styles.
   ============================================================================= */

@media (max-width: 960px) {
  .si {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* FAQ section header blocks (vi/faq, ja/faq, ko/faq, zh/faq) */
  .faq-section-header {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
  }

  .fsh-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .fsh-count {
    margin-left: 0;
  }

  /* Default subpage hero top padding (no fixed chrome) */
  section.page-hero {
    padding-top: 56px !important;
    padding-bottom: 44px !important;
  }
  /* Fixed header + inline hero padding: 56px was overriding 96px and sat UNDER
     the 72px header — .page-eyebrow (e.g. “Điều khoản sử dụng”) disappeared. */
  body.hl-with-fixed-header section.page-hero {
    padding-top: calc(
      var(--header-h) + env(safe-area-inset-top, 0px) + 20px
    ) !important;
  }
  .page-hero-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .sub-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .sub-content .si {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-img {
    height: auto;
    min-height: 200px;
    max-height: 320px;
  }

  .legal-body {
    max-width: 100%;
  }

  /* Service detail shell (market, land, legal, …) */
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .topbar-cta {
    margin-left: auto;
  }
  /* Do not use a bare small padding-top: it overrides body.hl-with-fixed-header .svc-hero
     and lets the fixed chrome cover the hero badge on narrow screens. */
  body.hl-with-fixed-header .svc-hero {
    padding-top: calc(
      var(--header-h) + env(safe-area-inset-top, 0px) + 40px
    ) !important;
    padding-bottom: 40px !important;
  }
  body:not(.hl-with-fixed-header) .svc-hero {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .hero-right {
    display: none;
  }
  .hero-cta-row,
  .cta-bar-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }
  .hero-cta-row > a,
  .cta-bar-btns > a {
    text-align: center;
    box-sizing: border-box;
  }
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .img-block img {
    height: auto;
    min-height: 220px;
    max-height: 400px;
  }
  .svc-grid3 {
    grid-template-columns: 1fr !important;
  }
  .std-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Contact & other Vi subpages */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* #database — HOUSELINK hub + stat cards (overrides pages that hid .dbv-center) */
  .db-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    gap: 16px !important;
    max-width: 100% !important;
    align-items: stretch;
    box-sizing: border-box;
  }
  .dbv-center {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: min(200px, 72vw) !important;
    height: min(200px, 72vw) !important;
    min-width: 0;
    margin: 0 auto 8px !important;
    box-sizing: border-box;
  }
  .dbv-top-left {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .dbv-top-right {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
  .dbv-mid-left {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .dbv-mid-right {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }
  .dbv-bot-left {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }
  .dbv-bot-right {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }
  .dbv-stat {
    padding: 16px 12px !important;
    min-width: 0;
  }
  .dbv-n {
    font-size: clamp(22px, 6.5vw, 30px) !important;
  }
  .dbv-n span {
    font-size: clamp(14px, 4vw, 18px) !important;
  }
}

@media (max-width: 560px) {
  .db-visual-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .dbv-center {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: min(200px, 78vw) !important;
    height: min(200px, 78vw) !important;
    margin-bottom: 12px !important;
  }
  .dbv-top-left,
  .dbv-top-right,
  .dbv-mid-left,
  .dbv-mid-right,
  .dbv-bot-left,
  .dbv-bot-right {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 600px) {
  .std-grid {
    grid-template-columns: 1fr !important;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-cta {
    margin-left: 0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .hl-nav-panel {
    transition: none;
  }
  .hl-nav-toggle-bar {
    transition: none;
  }
}

/* Hero headline layout (motion = scroll reveal on .hl-reveal-item, see landing-chrome.js) */
#hero h1.hero-h1.hero-h1--rise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#hero h1.hero-h1.hero-h1--rise .hero-h1-line {
  display: block;
  width: 100%;
}

/* ── Scroll-triggered reveal: IO adds .hl-reveal-in; --hl-reveal-idx (per section) staggers start times. ── */
.hl-reveal-item:not(.hl-reveal-in) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.hl-reveal-item.hl-reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--hl-reveal-dur) var(--hl-reveal-ease),
    transform var(--hl-reveal-dur) var(--hl-reveal-ease);
  transition-delay: calc(
    var(--hl-reveal-start-delay) + var(--hl-reveal-idx, 0) * var(--hl-reveal-seq-step)
  );
}

/* Hero: all .hl-reveal-item lines share one delay + shorter motion (no stagger) */
#hero {
  --hl-reveal-start-delay: 0s;
  --hl-reveal-dur: 0.42s;
}
#hero .hl-reveal-item.hl-reveal-in {
  transition-delay: var(--hl-reveal-start-delay);
}

/* Marquee row: IO adds .hl-reveal-in on the track; opacity ~1s only — transform is owned by marquee keyframes */
#logos .marquee-track.hl-reveal-item:not(.hl-reveal-in) {
  opacity: 0;
  transform: none;
  animation: none;
}

#logos .marquee-track.hl-reveal-item.hl-reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--hl-reveal-dur) var(--hl-reveal-ease);
  transition-delay: calc(
    var(--hl-reveal-start-delay) + var(--hl-reveal-idx, 0) * var(--hl-reveal-seq-step)
  );
  /* Start horizontal pass after this row’s opacity fade finishes */
  animation: hlMarqueeOnce 42s linear 1 forwards;
  animation-delay: calc(
    var(--hl-reveal-start-delay) + var(--hl-reveal-idx, 0) * var(--hl-reveal-seq-step) + var(--hl-reveal-dur)
  );
}

/* armHlRevealDefaults: data-hl-reveal-off on section skips auto .hl-reveal-item; .hl-reveal-skip on node skips. */

/* Logo strip: no infinite loop — one pass when the track scrolls into view */
@keyframes hlMarqueeOnce {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #logos .marquee-track {
    animation: none !important;
    transform: none !important;
  }
}

/* =============================================================================
   Home — contractors row: card #4 (Business Matching) wide horizontal layout
   ============================================================================= */

.ctr-card.ctr-card--wide-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 24px 28px;
  padding: 28px 36px;
  box-sizing: border-box;
}

.ctr-card--wide-row-head {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.ctr-card--wide-row-icon {
  font-size: 32px;
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
}

.ctr-card--wide-row-num {
  margin-bottom: 4px;
}

.ctr-card--wide-row-title {
  font-size: 17px;
  margin-bottom: 0;
  line-height: 1.35;
}

.ctr-card--wide-row-desc {
  margin: 0;
  border-left: 1px solid var(--gray-100, #dde3e8);
  padding-left: 28px;
  min-width: 0;
}

.ctr-card--wide-row-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .ctr-card.ctr-card--wide-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px;
    padding: 22px 20px;
  }

  .ctr-card--wide-row-head {
    align-items: flex-start;
    gap: 14px;
  }

  .ctr-card--wide-row-desc {
    border-left: none;
    border-top: 1px solid var(--gray-100, #dde3e8);
    padding-left: 0;
    padding-top: 18px;
  }

  .ctr-card--wide-row-tags {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .ctr-card.ctr-card--wide-row {
    padding: 18px 16px;
    gap: 16px;
  }

  .ctr-card--wide-row-title {
    font-size: 16px;
  }

  .ctr-card--wide-row-icon {
    font-size: 28px;
  }
}

/* =============================================================================
   Services hub — comparison table (/services/, /vi/services/, …)
   ============================================================================= */

.compare-table-scroll {
  width: 100%;
  margin-top: 44px;
  -webkit-overflow-scrolling: touch;
}

.compare-table-scroll .compare-table {
  margin-top: 0;
}

@media (max-width: 960px) and (min-width: 721px) {
  .compare-table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 0 0 1px var(--gray-100, #dde3e8);
  }

  .compare-table-scroll .compare-table {
    min-width: 720px;
  }
}

@media (max-width: 960px) {
  .compare-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .compare-table th,
  .compare-table td {
    padding: 11px 12px !important;
  }

  .compare-table {
    font-size: 13px !important;
  }
}

@media (max-width: 720px) {
  .compare-table-scroll {
    margin-top: 28px;
    overflow-x: visible;
    box-shadow: none;
  }

  .compare-table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: block;
  }

  .compare-table tbody tr {
    display: block;
    margin-bottom: 14px;
    border: 1px solid var(--gray-100, #dde3e8);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white, #fff);
  }

  .compare-table tbody td {
    display: grid !important;
    grid-template-columns: minmax(88px, 36%) 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--gray-50, #eef1f4) !important;
    width: 100% !important;
    box-sizing: border-box;
    text-align: left !important;
    vertical-align: middle !important;
  }

  .compare-table tbody tr:nth-child(even) td {
    background: transparent !important;
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--navy, #00466e);
    line-height: 1.35;
    padding-top: 1px;
  }

  .compare-table tbody td.compare-td-action {
    display: block !important;
    padding: 14px !important;
    text-align: center !important;
  }

  .compare-table tbody td.compare-td-action::before {
    content: none !important;
  }

  .compare-table tbody td.compare-td-action a {
    white-space: normal !important;
  }

  .compare-table tbody td:nth-child(3) > *,
  .compare-table tbody td:nth-child(4) > *,
  .compare-table tbody td:nth-child(5) > * {
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .compare-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* =============================================================================
   Extra responsive defaults (home + inner pages; chrome loads after inline CSS)
   ============================================================================= */

html {
  -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.legal-body,
.legal-section,
.page-sub,
.pg-sub {
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .segment-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .value-grid,
  .cases-grid,
  .community-grid,
  .insights-grid,
  .method-grid,
  .svc-grid,
  .ctr-grid,
  .flow-steps,
  .tiers-grid,
  .db-right,
  .feat-grid,
  .svc-stat-row,
  .esg-pillar-row,
  .pkg-grid,
  .db-grid,
  .milestones,
  .stat4 {
    grid-template-columns: 1fr !important;
  }

  .insights-grid .insight-img-tall {
    min-height: 0;
    max-height: 420px;
  }

  .about-split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .process-track::before {
    display: none;
  }

  .process-track {
    grid-template-columns: 1fr 1fr !important;
  }

  #logos .marquee-wrap {
    max-width: 100%;
  }

  /* Logo / partner strips (e.g. clients page) */
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* Standards / icon rows on services hub */
  .std-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .as-nav-item {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  section .si {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }

  .faq-section-header {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .fsh-ico {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 16px;
  }

  .fsh-title {
    font-size: clamp(18px, 5.2vw, 20px);
    line-height: 1.2;
  }

  .fsh-count {
    font-size: 11px;
    padding: 3px 10px;
  }

  .page-hero-inner,
  .sub-content .si,
  .cta-inner,
  .pg-inner,
  .segment-hero-inner {
    padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
  }

  .legal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .legal-toc {
    padding: 14px 12px;
  }

  .legal-section {
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  #hero .hero-h1,
  .page-h1 {
    font-size: clamp(22px, 6.5vw, 34px) !important;
  }

  .case-img,
  .insight-img,
  .comm-img,
  .hero-img {
    width: 100%;
    object-fit: cover;
  }

  .feat-grid {
    grid-template-columns: 1fr !important;
  }

  .std-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .flex-sb {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .flex-sb > .btn-ghost,
  .flex-sb > a.btn-ghost {
    align-self: stretch;
    text-align: center;
    box-sizing: border-box;
  }

  .as-nav-item {
    flex: 1 1 100% !important;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .process-track {
    grid-template-columns: 1fr !important;
  }

  .hero-actions,
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions > a,
  .hero-ctas > a {
    text-align: center;
    box-sizing: border-box;
  }

  .std-row {
    grid-template-columns: 1fr !important;
  }

  .logo-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ESG (and localized copies): “process + image + partners” two-column section */
.hl-esg-process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.hl-esg-process-grid > div {
  min-width: 0;
}

.hl-esg-process-grid .cp-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hl-esg-process-grid .cp-head {
  align-items: flex-start;
}

.hl-esg-partners-card {
  margin-top: 20px;
  background: var(--green-pale);
  border: 1px solid rgba(45, 139, 72, 0.2);
  border-radius: 14px;
  padding: 22px 24px;
}

.hl-esg-partners-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hl-esg-partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hl-esg-partners-row a {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hl-esg-partners-row a:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hl-esg-partners-row a img {
  max-width: min(140px, 100%);
  height: auto;
}

@media (max-width: 960px) {
  .hl-esg-process-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 600px) {
  .hl-esg-partners-card {
    padding: 18px 16px;
  }

  .hl-esg-partners-row {
    gap: 10px;
  }

  .hl-esg-partners-row a {
    flex: 1 1 calc(50% - 6px);
    min-width: min(160px, 100%);
  }
}

@media (max-width: 480px) {
  .hl-esg-process-grid .cp-head {
    padding: 12px 14px;
    font-size: 13px;
  }

  .hl-esg-process-grid .cp-body {
    padding: 0 14px 12px 16px;
  }

  .hl-esg-partners-row a {
    flex: 1 1 100%;
  }
}

/* Dense card grids: allow shrink inside CSS grid / flex (avoids overflow) */
.svc-card,
.ctr-card,
.feat-card,
.tier-card,
.case-card,
.insight-card,
.comm-card,
.pkg,
.ep,
.cap-card,
.std,
.std-card,
.ftr-col,
.cs {
  min-width: 0;
}

/* Case listing cards (cases index, all locales) — .cs-foot: client + pill + link */
@media (max-width: 640px) {
  .cs-foot {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
  }

  .cs-foot > div:first-child {
    min-width: 0;
    width: 100%;
  }

  .cs-client,
  .cs-dur {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .cs-dur {
    display: inline-block;
    max-width: 100%;
    margin-top: 6px;
    line-height: 1.4;
  }

  .cs-lnk {
    align-self: stretch;
    text-align: center;
    padding-top: 2px;
  }
}

/* ── Contact page — responsive (body[data-hl-page="contact"]) ── */
body.hl-with-fixed-header[data-hl-page="contact"] .page-hero {
  padding-top: calc(
    var(--header-h) + env(safe-area-inset-top, 0px) + 24px
  ) !important;
  padding-bottom: 0 !important;
}

body[data-hl-page="contact"] .page-hero-inner {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

body[data-hl-page="contact"] .hl-contact-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero {
  min-width: 0;
}

body[data-hl-page="contact"] .hl-contact-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--gray-50);
}

body[data-hl-page="contact"] .hl-contact-quick > div {
  min-width: 0;
}

body[data-hl-page="contact"] .sub-content .si {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

body[data-hl-page="contact"] .contact-grid > * {
  min-width: 0;
}

body[data-hl-page="contact"] .map-embed {
  max-width: 100%;
}

body[data-hl-page="contact"] .map-embed iframe {
  max-width: 100%;
}

@media (max-width: 900px) {
  body[data-hl-page="contact"] .hl-contact-type-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 12px;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero:nth-child(2n) {
    border-right: none !important;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero:nth-child(3):not(.active),
  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero:nth-child(4):not(.active) {
    border-bottom: none !important;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero.active {
    border-bottom: 3px solid var(--green) !important;
  }

  body[data-hl-page="contact"] .hl-contact-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-hl-page="contact"] .hl-contact-quick > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body[data-hl-page="contact"] .hl-contact-type-tabs {
    grid-template-columns: 1fr;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 16px;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero:last-child {
    border-bottom: none !important;
  }

  body[data-hl-page="contact"] .hl-contact-type-tabs .ct-item-hero.active {
    border-bottom: 3px solid var(--green) !important;
  }

  body[data-hl-page="contact"] .hl-contact-quick {
    grid-template-columns: 1fr;
    margin-top: 36px;
    padding-top: 36px;
    gap: 16px;
  }

  body[data-hl-page="contact"] .hl-contact-quick > div:last-child {
    grid-column: auto;
  }

  body[data-hl-page="contact"] .contact-form {
    padding: 24px 18px;
  }

  body[data-hl-page="contact"] .page-h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
}

@media (max-width: 480px) {
  body[data-hl-page="contact"] .ct-item-hero .ct-ico {
    font-size: 18px;
  }

  body[data-hl-page="contact"] .ct-item-hero .ct-title {
    font-size: 12px;
  }

  body[data-hl-page="contact"] .ct-item-hero .ct-sub {
    font-size: 10.5px;
    line-height: 1.35;
  }
}

/* ── Breadcrumbs (.bc) on subpages (inline templates; chrome loads after <style>) ── */
.bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  row-gap: 4px;
  max-width: 100%;
}

.bc a {
  flex-shrink: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.bc > span {
  flex-shrink: 0;
  line-height: 1.3;
}

/* Long current-page label: own row + wrap on narrow viewports */
@media (max-width: 640px) {
  .bc {
    font-size: clamp(11px, 3.2vw, 12.5px);
    align-items: flex-start;
  }

  .bc > :last-child {
    flex: 1 1 100%;
    min-width: 0;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .bc > :last-child:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* Sidebar CTA (case studies, articles): tighter on wide columns */
.art-sidebar .sidebar-cta {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: 12px;
  padding: 16px 14px;
  margin-bottom: 18px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 52, 87, 0.14);
  max-width: 100%;
}

.art-sidebar .sidebar-cta h4 {
  font-family: var(--font-serif, var(--font-main));
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.art-sidebar .sidebar-cta p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
  margin: 0 0 12px;
}

.art-sidebar .sidebar-cta a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 17px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.art-sidebar .sidebar-cta a:hover {
  background: var(--green-light);
}

@media (min-width: 1100px) {
  .art-sidebar .sidebar-cta {
    padding: 14px 12px;
  }

  .art-sidebar .sidebar-cta h4 {
    font-size: 14px;
  }

  .art-sidebar .sidebar-cta p {
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .art-sidebar .sidebar-cta a {
    padding: 8px 15px;
    font-size: 12.5px;
  }
}
