/*
 * TransMigration responsive layer.
 * The approved desktop inline styles remain authoritative at 1024px and above.
 * Attribute selectors intentionally target the original exported section labels.
 * .tm-section may be the labelled node or a wrapper around it.
 */
.tm-site .tm-mobile-nav-toggle {
  display: none;
}

/* Keep the shared header in view without removing its space in the page. */
html:has(.tm-site) {
  scroll-padding-top: calc(var(--tm-header-height, 72px) + var(--tm-admin-offset, 0px) + 16px);
}
.tm-site {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.tm-site [data-screen-label="Header"] {
  position: sticky !important;
  top: var(--tm-admin-offset, 0px);
  z-index: 1000 !important;
}

/* Keep chat available from the first screen on every viewport. */
.tm-site [data-screen-label="Chat widget"] {
  position: fixed !important;
  right: 22px !important;
  bottom: max(22px, env(safe-area-inset-bottom)) !important;
  z-index: 1100 !important;
  max-width: calc(100vw - 32px);
}

.tm-site [data-screen-label="Chat widget"] > div:not(.tm-conditional),
.tm-site [data-screen-label="Chat widget"] > .tm-conditional > div {
  width: min(330px, calc(100vw - 32px)) !important;
  max-width: 100%;
  max-height: calc(100dvh - var(--tm-header-height, 72px) - var(--tm-admin-offset, 0px) - 118px);
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

@media (max-width: 1023px) {
  .tm-site {
    --tm-responsive-gutter: 28px;
    /* Contain off-canvas layout without changing the inner swipe rails.
       Clip keeps vertical overflow visible and avoids a new scroll container.
       The first declaration is the fallback for engines without clip support. */
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overflow-x: clip !important;
  }

  .tm-site .tm-section,
  .tm-site .tm-section :where(div, section, article, aside, form, fieldset, a, button) {
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .tm-site .tm-section :where(img, video, iframe, svg) {
    max-width: 100%;
  }

  .tm-site :is([data-screen-label="Page"], [data-screen-label="Homepage"]) {
    overflow: visible !important;
  }

  .tm-site [data-screen-label]:not(
    [data-screen-label="Page"],
    [data-screen-label="Homepage"],
    [data-screen-label="Header"],
    [data-screen-label="Footer"],
    [data-screen-label="Chat widget"],
    [data-screen-label="02 Hero"],
    [data-screen-label="USP"],
    [data-screen-label="Key numbers"],
    [data-screen-label="10 Final form"],
    [data-screen-label="Book a Consultation"]
  ) {
    padding-left: var(--tm-responsive-gutter) !important;
    padding-right: var(--tm-responsive-gutter) !important;
  }

  .tm-site [data-screen-label="Book a Consultation"][style*="padding:"] {
    padding-left: var(--tm-responsive-gutter) !important;
    padding-right: var(--tm-responsive-gutter) !important;
  }

  /* Collapse only multi-column grids; flex rows inside cards/fields stay rows. */
  .tm-site .tm-section[style*="grid-template-columns"][style*="repeat(3"],
  .tm-site .tm-section[style*="grid-template-columns"][style*="repeat(4"],
  .tm-site .tm-section [style*="grid-template-columns"][style*="repeat(3"],
  .tm-site .tm-section [style*="grid-template-columns"][style*="repeat(4"],
  .tm-site [data-screen-label="Footer"] > [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Navigation uses the root script's toggle and open state. */
  .tm-site [data-screen-label="Header"] {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 12px var(--tm-responsive-gutter) !important;
    overflow: visible !important;
  }

  .tm-site [data-screen-label="Header"].tm-mobile-open {
    max-height: calc(100dvh - var(--tm-admin-offset, 0px));
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
  }

  .tm-site [data-screen-label="Header"] > a:first-of-type {
    margin-right: auto;
    flex: 0 1 auto !important;
  }

  .tm-site [data-screen-label="Header"] > a:first-of-type img {
    max-width: 150px;
    height: 44px !important;
    width: auto !important;
  }

  .tm-site [data-screen-label="Header"] > a:last-of-type {
    order: 2;
    flex: 0 1 auto !important;
    text-align: center;
  }

  .tm-site [data-screen-label="Header"] .tm-mobile-nav-toggle {
    display: inline-flex !important;
    order: 3;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e6e2da;
    background: #fff;
    color: #1a2e4a;
    cursor: pointer;
  }

  .tm-site [data-screen-label="Header"] > div,
  .tm-site [data-screen-label="Header"] > .tm-mobile-nav {
    display: none !important;
    order: 5;
    flex: 0 0 100% !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding-top: 8px;
    border-top: 1px solid #e6e2da;
  }

  .tm-site [data-screen-label="Header"].tm-mobile-open > div,
  .tm-site [data-screen-label="Header"].tm-mobile-open > .tm-mobile-nav {
    display: flex !important;
  }

  .tm-site [data-screen-label="Header"] > div > a,
  .tm-site [data-screen-label="Header"] > div > div > a,
  .tm-site [data-screen-label="Header"] .tm-mobile-nav > a {
    display: block;
    padding: 12px 8px;
    white-space: normal !important;
  }

  .tm-site [data-screen-label="Header"] [style*="top:100%"],
  .tm-site [data-screen-label="Header"] [style*="top: 100%"],
  .tm-site [data-screen-label="Header"] .tm-submenu {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100%;
    padding-top: 0 !important;
  }

  /* Home hero: slides share a grid cell; its tallest translation sets height. */
  .tm-site [data-screen-label="02 Hero"] {
    min-height: 0 !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
  }

  .tm-site [data-screen-label="02 Hero"] > div:first-child {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    min-height: 0;
  }

  .tm-site [data-screen-label="02 Hero"] > div:first-child > div[style*="inset:0"],
  .tm-site [data-screen-label="02 Hero"] > div:first-child > div[style*="inset: 0"],
  .tm-site [data-screen-label="02 Hero"] [data-tm-loop="heroSlides"] > div {
    position: relative !important;
    inset: auto !important;
    grid-area: 1 / 1;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
  }

  .tm-site [data-screen-label="02 Hero"] [data-tm-loop="heroSlides"] > div[style*="pointer-events:none"],
  .tm-site [data-screen-label="02 Hero"] [data-tm-loop="heroSlides"] > div[style*="pointer-events: none"] {
    visibility: hidden;
  }

  .tm-site [data-screen-label="02 Hero"] [style*="left:56px"][style*="top:50%"],
  .tm-site [data-screen-label="02 Hero"] [style*="left: 56px"][style*="top: 50%"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 800px;
    transform: none !important;
    padding: 48px var(--tm-responsive-gutter) 116px !important;
  }

  .tm-site [data-screen-label="02 Hero"] [style*="bottom:44px"],
  .tm-site [data-screen-label="02 Hero"] [style*="bottom: 44px"] {
    left: var(--tm-responsive-gutter) !important;
    right: var(--tm-responsive-gutter) !important;
    bottom: 28px !important;
    width: auto !important;
  }

  .tm-site [data-screen-label="02 Hero"] #assess {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: calc(100% - 2 * var(--tm-responsive-gutter)) !important;
    max-width: none !important;
    margin: 0 var(--tm-responsive-gutter) 28px !important;
    padding: 28px !important;
    align-self: center;
  }

  .tm-site :is(
    [data-screen-label="Hero"],
    [data-screen-label="FAQ hero"],
    [data-screen-label="Privacy Policy hero"],
    [data-screen-label="Terms of Use hero"]
  ) {
    padding: 48px var(--tm-responsive-gutter) 60px !important;
  }

  .tm-site .tm-section :is(
    h1,
    [style*="font:700 52px"],
    [style*="font: 700 52px"]
  ) {
    font-size: clamp(36px, 5vw, 46px) !important;
    line-height: 1.14 !important;
  }

  .tm-site :is([data-screen-label="USP"], [data-screen-label="Key numbers"]) {
    margin-left: var(--tm-responsive-gutter) !important;
    margin-right: var(--tm-responsive-gutter) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Named horizontal content layouts, not every nested flex container. */
  .tm-site :is(
    [data-screen-label="Intro and form"],
    [data-screen-label="FAQ"],
    [data-screen-label="FAQ list"],
    [data-screen-label="Article body"],
    [data-screen-label="Privacy Policy content"],
    [data-screen-label="Terms of Use content"],
    [data-screen-label="Intro video"],
    [data-screen-label="Our story"],
    [data-screen-label$="profile"]
  ) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
  }

  .tm-site :is(
    [data-screen-label="Intro and form"],
    [data-screen-label="FAQ"],
    [data-screen-label="FAQ list"],
    [data-screen-label="Article body"],
    [data-screen-label="Privacy Policy content"],
    [data-screen-label="Terms of Use content"]
  ) > div {
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
  }

  .tm-site :is(
    [data-screen-label="FAQ list"],
    [data-screen-label="Privacy Policy content"],
    [data-screen-label="Terms of Use content"]
  ) > [style*="sticky"] {
    position: static !important;
    top: auto !important;
  }

  .tm-site [data-screen-label="Book a Consultation"] > div[style*="align-items:flex-start"],
  .tm-site [data-screen-label="Book a Consultation"] > div[style*="align-items: flex-start"],
  .tm-site [data-screen-label="Legal services"] > div[style*="align-items:flex-start"],
  .tm-site [data-screen-label="Legal services"] > div[style*="align-items: flex-start"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 28px !important;
  }

  .tm-site [data-screen-label="Book a Consultation"] [style*="width:340px"],
  .tm-site [data-screen-label="Book a Consultation"] [style*="width: 340px"],
  .tm-site [data-screen-label="Legal services"] [style*="width:260px"],
  .tm-site [data-screen-label="Legal services"] [style*="width: 260px"] {
    width: 100% !important;
    max-width: none !important;
  }

  .tm-site [data-screen-label$="profile"] > div[style*="width:360px"],
  .tm-site [data-screen-label$="profile"] > div[style*="width: 360px"] {
    width: min(100%, 360px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 9 / 11;
    align-self: center;
  }

  .tm-site [data-screen-label="Our story"] > div[style*="width:420px"],
  .tm-site [data-screen-label="Our story"] > div[style*="width: 420px"] {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }

  .tm-site [data-screen-label="Intro video"] > div[style*="width:520px"],
  .tm-site [data-screen-label="Intro video"] > div[style*="width: 520px"] {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  /* Keep review rails horizontal; their cards must not shrink to quarter-width. */
  .tm-site .tm-section [style*="overflow-x:auto"],
  .tm-site .tm-section [style*="overflow-x: auto"] {
    max-width: 100%;
    flex-wrap: nowrap !important;
    padding-top: 4px !important;
    padding-bottom: 14px !important;
    scroll-padding-inline: 4px;
    overscroll-behavior-inline: contain;
  }

  .tm-site .tm-section [style*="scroll-snap-align"] {
    flex: 0 0 clamp(240px, 42vw, 320px) !important;
    width: clamp(240px, 42vw, 320px) !important;
    max-width: calc(100vw - 2 * var(--tm-responsive-gutter));
    min-width: 0 !important;
  }

  /* At reduced widths, service groups show every card rather than crop a track. */
  .tm-site [data-screen-label="Our services"] [style*="transform:translateX"],
  .tm-site [data-screen-label="Our services"] [style*="transform: translateX"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    transform: none !important;
  }

  .tm-site [data-screen-label="Our services"] [style*="transform:translateX"] > a,
  .tm-site [data-screen-label="Our services"] [style*="transform: translateX"] > a,
  .tm-site [data-screen-label="Our services"] [data-tm-loop="g.cards"] > a {
    width: 100% !important;
  }

  .tm-site [data-screen-label="Our services"] button {
    display: none !important;
  }

  .tm-site :is([data-screen-label="Our process"], [data-screen-label="07 Our process"])
    [style*="position:absolute"][style*="height:1.5px"],
  .tm-site :is([data-screen-label="Our process"], [data-screen-label="07 Our process"])
    [style*="position: absolute"][style*="height: 1.5px"] {
    display: none !important;
  }

  /* Repeated CTA bands retain a small intentional form overlap. */
  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    > div[style*="height:240px"],
  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    > div[style*="height: 240px"] {
    height: auto !important;
    min-height: 240px;
    padding: 44px var(--tm-responsive-gutter) 84px !important;
  }

  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    [style*="margin-top:-56px"],
  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    [style*="margin-top: -56px"] {
    margin-top: 0 !important;
  }

  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    > div[style*="padding:0 40px 64px"],
  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    > div[style*="padding: 0 40px 64px"] {
    padding: 0 var(--tm-responsive-gutter) 48px !important;
  }

  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    [style*="width:680px"],
  .tm-site :is([data-screen-label="10 Final form"], [data-screen-label="Book a Consultation"])
    [style*="width: 680px"] {
    width: 100% !important;
    max-width: 680px;
    padding: 26px !important;
  }

  .tm-site [data-screen-label="Review strip"] {
    margin-left: var(--tm-responsive-gutter) !important;
    margin-right: var(--tm-responsive-gutter) !important;
    padding: 26px !important;
    gap: 20px !important;
  }

  .tm-site [data-screen-label="Footer"] {
    padding: 40px var(--tm-responsive-gutter) 24px !important;
  }

  .tm-site [data-screen-label="Footer"] > img {
    max-width: 200px;
    height: auto !important;
    max-height: 72px;
    object-fit: contain;
  }

  .tm-site [data-screen-label="Chat widget"] {
    position: fixed !important;
    right: 16px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 32px);
    gap: 10px !important;
  }

  .tm-site [data-screen-label="Chat widget"] > div:not(.tm-conditional),
  .tm-site [data-screen-label="Chat widget"] > .tm-conditional > div {
    width: min(330px, calc(100vw - 32px)) !important;
    max-width: 100%;
    max-height: calc(100dvh - 112px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .tm-site :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid #008184;
    outline-offset: 2px;
  }
}

@media (max-width: 767px) {
  .tm-site {
    --tm-responsive-gutter: 20px;
  }

  .tm-site .tm-section[style*="grid-template-columns"],
  .tm-site .tm-section [style*="grid-template-columns"],
  .tm-site .tm-section[style*="grid-template-columns"][style*="repeat(3"],
  .tm-site .tm-section[style*="grid-template-columns"][style*="repeat(4"],
  .tm-site .tm-section [style*="grid-template-columns"][style*="repeat(3"],
  .tm-site .tm-section [style*="grid-template-columns"][style*="repeat(4"],
  .tm-site [data-screen-label="Footer"] > [style*="grid-template-columns"],
  .tm-site [data-screen-label="Our services"] [style*="transform:translateX"],
  .tm-site [data-screen-label="Our services"] [style*="transform: translateX"] {
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 20px !important;
  }

  .tm-site .tm-section :is(
    h1,
    [style*="font:700 52px"],
    [style*="font: 700 52px"],
    [style*="font:700 44px"],
    [style*="font: 700 44px"]
  ) {
    font-size: clamp(32px, 8vw, 40px) !important;
    line-height: 1.16 !important;
  }

  .tm-site .tm-section :is(
    [style*="font:600 38px"],
    [style*="font: 600 38px"],
    [style*="font:600 36px"],
    [style*="font: 600 36px"]
  ) {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  .tm-site .tm-section :is(
    [style*="font:600 32px"],
    [style*="font: 600 32px"]
  ) {
    font-size: 27px !important;
    line-height: 1.2 !important;
  }

  .tm-site .tm-section :is(a, button)[style*="white-space:nowrap"],
  .tm-site .tm-section :is(a, button)[style*="white-space: nowrap"] {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .tm-site .tm-section :is(input, select, textarea) {
    max-width: 100%;
    min-width: 0;
    font-size: 16px !important;
  }

  .tm-site :is(
    [data-screen-label="Hero"],
    [data-screen-label="FAQ hero"],
    [data-screen-label="Privacy Policy hero"],
    [data-screen-label="Terms of Use hero"]
  ) {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }

  .tm-site [data-screen-label="02 Hero"] > div:first-child > div[style*="inset:0"],
  .tm-site [data-screen-label="02 Hero"] > div:first-child > div[style*="inset: 0"],
  .tm-site [data-screen-label="02 Hero"] [data-tm-loop="heroSlides"] > div {
    min-height: 490px;
  }

  .tm-site [data-screen-label="02 Hero"] [style*="left:56px"][style*="top:50%"],
  .tm-site [data-screen-label="02 Hero"] [style*="left: 56px"][style*="top: 50%"] {
    padding-top: 40px !important;
    padding-bottom: 116px !important;
  }

  .tm-site [data-screen-label="02 Hero"] #assess {
    padding: 22px !important;
    margin-bottom: 24px !important;
  }

  .tm-site :is([data-screen-label="USP"], [data-screen-label="Key numbers"]) {
    margin-top: -24px !important;
  }

  .tm-site [data-screen-label="04 Services"] a[style*="height:500px"],
  .tm-site [data-screen-label="04 Services"] a[style*="height: 500px"] {
    height: 420px !important;
  }

  /* Section title/CTA rows stack; card metadata and yes/no controls do not. */
  .tm-site .tm-section [style*="display:flex"][style*="align-items:flex-end"]:not([style*="flex-direction:column"]),
  .tm-site .tm-section [style*="display: flex"][style*="align-items: flex-end"]:not([style*="flex-direction: column"]) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .tm-site .tm-section [style*="display:flex"][style*="align-items:flex-end"]:not([style*="flex-direction:column"]) > a,
  .tm-site .tm-section [style*="display: flex"][style*="align-items: flex-end"]:not([style*="flex-direction: column"]) > a {
    align-self: flex-start;
  }

  .tm-site [data-screen-label="Choose by goal"] a[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) 40px !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tm-site [data-screen-label="Choose by goal"] a[style*="grid-template-columns"] > div:first-child {
    grid-column: 1;
    grid-row: 1;
    gap: 12px !important;
  }

  .tm-site [data-screen-label="Choose by goal"] a[style*="grid-template-columns"] > span:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    padding-left: 30px;
  }

  .tm-site [data-screen-label="Choose by goal"] a[style*="grid-template-columns"] > span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .tm-site [data-screen-label="FAQ list"] > div:last-child,
  .tm-site :is([data-screen-label="Privacy Policy content"], [data-screen-label="Terms of Use content"])
    > div:last-child {
    padding: 24px 20px !important;
  }

  .tm-site [data-screen-label="FAQ"] > div:first-child {
    align-self: stretch !important;
  }

  .tm-site [data-screen-label="FAQ"] button,
  .tm-site [data-screen-label="FAQ list"] button {
    white-space: normal !important;
  }

  .tm-site [data-screen-label="FAQ"] button > span:first-child,
  .tm-site [data-screen-label="FAQ list"] button > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .tm-site [data-screen-label="Legal services"] > div[style*="align-items:flex-start"] > div:last-child,
  .tm-site [data-screen-label="Legal services"] > div[style*="align-items: flex-start"] > div:last-child {
    padding: 24px 20px !important;
  }

  .tm-site [data-screen-label="Legal services"] [style*="padding-top:4px"],
  .tm-site [data-screen-label="Legal services"] [style*="padding-top: 4px"],
  .tm-site [data-screen-label="Review strip"],
  .tm-site [data-screen-label="Featured & trending"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

  .tm-site [data-screen-label="Featured & trending"] > * {
    flex-basis: auto !important;
    width: 100%;
  }

  .tm-site [data-screen-label="Article body"] > div:last-child > div[style*="align-items:center"],
  .tm-site [data-screen-label="Article body"] > div:last-child > div[style*="align-items: center"] {
    flex-wrap: wrap;
  }

  .tm-site [data-screen-label="Still have questions"] > div {
    padding: 28px 24px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
  }

  .tm-site [data-screen-label="Still have questions"] > div > div {
    min-width: 0 !important;
  }

  .tm-site [data-screen-label="Office"] {
    height: auto !important;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    padding-top: 80px !important;
    padding-bottom: 20px !important;
  }

  .tm-site [data-screen-label="Office"] > div {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    padding: 22px !important;
  }

  .tm-site [data-screen-label="Footer"] > div:last-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .tm-site [data-screen-label="Footer"] [style*="flex-wrap:nowrap"],
  .tm-site [data-screen-label="Footer"] [style*="flex-wrap: nowrap"] {
    flex-wrap: wrap !important;
    row-gap: 12px !important;
  }

  .tm-site [data-screen-label="Footer"] [style*="font:400 17px"],
  .tm-site [data-screen-label="Footer"] [style*="font: 400 17px"] {
    overflow-wrap: anywhere;
  }

  .tm-site .tm-section [style*="scroll-snap-align"] {
    flex-basis: min(82vw, 320px) !important;
    width: min(82vw, 320px) !important;
  }
}

@media (max-width: 479px) {
  .tm-site {
    --tm-responsive-gutter: 18px;
  }

  .tm-site [data-screen-label="Header"] > a:first-of-type img {
    height: 40px !important;
    max-width: 136px;
  }

  .tm-site [data-screen-label="Header"] > a:last-of-type:not(:first-of-type) {
    order: 4;
    flex: 0 0 100% !important;
    width: 100%;
    padding-left: 16px !important;
    padding-right: 16px !important;
    white-space: normal !important;
  }

  .tm-site [data-screen-label="02 Hero"] #assess {
    padding: 20px !important;
  }
}

@media (max-width: 1023px) and (hover: none) {
  .tm-site [data-screen-label="04 Services"] a > div[style*="opacity:"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-site *,
  .tm-site *::before,
  .tm-site *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tm-site :is(
    [data-screen-label="04 Services"],
    [data-screen-label="05 Visas"],
    [data-screen-label="06 Specialists"],
    [data-screen-label="Our services"]
  ) a:hover {
    transform: none !important;
  }
}

/* TransMigration UAT: keep the homepage case-study carousel readable below desktop. */
@media (max-width: 1023px) {
  .tm-site [data-screen-label="09 Case studies"] > div:first-child {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:first-child > div:last-child {
    position: static !important;
    inset: auto !important;
    align-self: flex-end !important;
    justify-content: flex-end !important;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:first-child {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:last-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 43 / 32;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:first-child > div:first-child,
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:first-child > div:last-child {
    flex-wrap: wrap !important;
  }
}
@media (max-width: 767px) {
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:first-child > div:nth-child(3) > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
  .tm-site [data-screen-label="09 Case studies"] > div:nth-child(2) > div:first-child > div:nth-child(3) > div > span:first-child {
    width: auto !important;
  }
}


/* Client feedback October 2026: shared controls, portrait framing and review rail. */
.tm-site .tm-circle-arrow {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 0 !important;
}
.tm-site .tm-circle-arrow > * { font-size: 0 !important; line-height: 0 !important; }
.tm-site .tm-circle-arrow::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.tm-site .tm-circle-arrow[data-tm-arrow="left"]::after { transform: translate(-50%, -50%) rotate(180deg); }
.tm-site .tm-hidden-slide-counter { display: none !important; }
.tm-site .tm-language-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; box-sizing: border-box; }
.tm-site .tm-language-links img { display: block; width: 30px !important; height: 20px !important; object-fit: contain !important; border-radius: 0; }
.tm-site [data-screen-label="Header"] [data-tm-if="menuOpen"] a { color: #1a2e4a !important; }
.tm-site [data-screen-label="Header"] [data-tm-if="menuOpen"] a:hover,
.tm-site [data-screen-label="Header"] [data-tm-if="menuOpen"] a:focus-visible { background: #1a2e4a !important; color: #fff !important; }
.tm-site [data-screen-label="Header"] [data-tm-if="menuOpen"] a * { color: inherit !important; }
/* Specialist photos keep square corners and no navy top border. */
.tm-site .tm-specialist-card { border-top: 0 !important; border-radius: 0; overflow: hidden; }
.tm-site [data-screen-label="Specialists"] [data-tm-background-field] { border-radius: 0; overflow: hidden; }
.tm-site .tm-specialist-portrait { height: auto !important; aspect-ratio: 3 / 4; border-radius: 0; overflow: hidden; }
.tm-site .tm-specialist-portrait img { object-fit: contain !important; object-position: center top !important; border-radius: 0 !important; }
.tm-site .tm-client-experience { background: #f4f2ee !important; gap: 28px !important; }
.tm-site .tm-review-rail { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-inline: contain; overflow-x: auto !important; scroll-snap-type: x mandatory; }
.tm-site .tm-review-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tm-site .tm-section .tm-review-rail > .tm-review-card { background: #fff !important; padding: 26px 24px !important; display: flex !important; flex-direction: column !important; gap: 14px !important; box-shadow: 0 8px 22px rgba(26,46,74,.06); }
.tm-site .tm-review-quote { font: 700 40px/.6 'Josefin Sans',sans-serif !important; color: #c8a96e !important; height: 22px; }
.tm-site .tm-review-text { font: 400 16px/1.6 Aptos,'Segoe UI',sans-serif !important; color: #4a4439 !important; flex: 1 !important; display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.tm-site .tm-review-stars { color: #c8a96e !important; font: 400 15px Aptos,'Segoe UI',sans-serif !important; letter-spacing: 2px; }
.tm-site .tm-review-person { display: flex !important; flex-direction: column !important; gap: 2px !important; border-top: 1px solid #e6e2da; padding-top: 12px; }
.tm-site .tm-review-name { font: 600 16px Aptos,'Segoe UI',sans-serif; color: #1a2e4a; }
.tm-site .tm-review-visa { font: 400 14px Aptos,'Segoe UI',sans-serif; color: #008184; }
.tm-site .tm-review-controls { display: flex; justify-content: center; gap: 12px; }
.tm-site .tm-review-controls button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #1a2e4a; background: #1a2e4a; color: #fff; cursor: pointer; transition: opacity .2s; }
.tm-site .tm-review-controls button:disabled { opacity: .28; cursor: default; }
.tm-site :is([data-screen-label="Cases"], [data-screen-label="Read our stories"]) > div:first-child,
.tm-site .tm-centered-section-heading { position: relative; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 16px !important; width: 100%; }
.tm-site :is([data-screen-label="Cases"], [data-screen-label="Read our stories"]) > div:first-child > div,
.tm-site .tm-centered-section-heading > div { width: 100%; flex: auto !important; text-align: center; }
.tm-site :is([data-screen-label="Cases"], [data-screen-label="Read our stories"]) > div:first-child > div > div,
.tm-site .tm-centered-section-heading > div > div { max-width: 700px !important; margin-left: auto !important; margin-right: auto !important; align-items: center !important; text-align: center !important; }
.tm-site :is([data-screen-label="Cases"], [data-screen-label="Read our stories"]) > div:first-child > a,
.tm-site .tm-centered-section-heading > a { position: static !important; align-self: center !important; }
@media (max-width: 1023px) {
  .tm-site [data-screen-label="Header"] > .tm-header-consultation { display: none !important; }
  .tm-site [data-screen-label="Header"] .tm-migration-disclosure { display: inline-flex !important; align-items: center; gap: 6px; cursor: pointer; width: auto; }
  .tm-site :is([data-screen-label="Cases"], [data-screen-label="Read our stories"]) > div:first-child > a,
  .tm-site .tm-centered-section-heading > a { position: static !important; align-self: center !important; }
}

.tm-site .tm-flag-control { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px; min-height: 36px; padding: 4px 7px !important; }
.tm-site .tm-flag-control > span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.tm-site .tm-flag-control > img { width: 30px !important; height: 20px !important; object-fit: contain !important; }
/* Real WordPress article content retains ordinary authoring elements. */
.tm-site .tm-article-content { min-width: 0; font: 400 17px/1.75 Aptos,'Segoe UI',sans-serif; color: #4a4439; overflow-wrap: break-word; }
.tm-site .tm-article-content :is(h2,h3,h4) { color: #1a2e4a; font-family: 'Josefin Sans',sans-serif; line-height: 1.25; margin: 32px 0 16px; scroll-margin-top: 32px; }
.tm-site .tm-article-content h2 { font-size: 30px; }
.tm-site .tm-article-content h3 { font-size: 25px; }
.tm-site .tm-article-content p { margin: 0 0 20px; }
.tm-site .tm-article-content :is(ul,ol) { padding-left: 26px; margin: 0 0 20px; }
.tm-site .tm-article-content li { margin-bottom: 8px; }
.tm-site .tm-article-content img { display: block; max-width: 100%; height: auto; object-fit: contain; margin: 24px 0; }
.tm-site .tm-article-content blockquote { border-left: 3px solid #008184; margin: 24px 0; padding: 4px 0 4px 20px; }
.tm-site .tm-article-toc { padding: 24px; background: #f4f2ee; margin-bottom: 24px; }
.tm-site .tm-article-toc :is(ul,ol) { margin: 12px 0 0; padding-left: 20px; }
.tm-site .tm-article-toc li { padding-bottom: 10px; }
/* Restore the supplied article components around ordinary WordPress content. */
.tm-site .tm-article-key-points { background: #fff; border: 1px solid #e6e2da; padding: 22px; margin: 0 0 28px; }
.tm-site .tm-article-content .tm-article-key-points > :is(h2,h3) { margin: 0 0 12px; font: 600 18px/1.4 Aptos,'Segoe UI',sans-serif; }
.tm-site .tm-article-key-points > p { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.tm-site .tm-article-key-points > p::before { content: '\2713'; position: absolute; left: 0; color: #008184; font-weight: 700; }
.tm-site .tm-article-key-points > :last-child { margin-bottom: 0; }
.tm-site .tm-article-related { background: #fff; padding: 56px 40px; }
.tm-site .tm-article-related-stories { background: #f4f2ee; }
.tm-site .tm-article-related > header { text-align: center; max-width: 700px; margin: 0 auto 24px; }
.tm-site .tm-article-related > header h2 { font: 600 36px/1.15 'Josefin Sans',sans-serif; color: #1a2e4a; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.tm-site .tm-article-related > header p { font: 400 17px/1.6 Aptos,'Segoe UI',sans-serif; color: #4a4439; margin: 0; }
.tm-site .tm-article-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tm-site .tm-article-related-card { display: flex; flex-direction: column; min-width: 0; background: #f4f2ee; border: 1px solid #e6e2da; color: #1a2e4a; text-decoration: none; transition: border-color .2s; }
.tm-site .tm-article-related-card:hover { border-color: #008184; }
.tm-site .tm-article-related-card > img { display: block; width: 100%; height: 160px; object-fit: cover; margin: 0; }
.tm-site .tm-article-related-copy { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.tm-site .tm-article-related-category { font: 600 13px/1.4 Aptos,'Segoe UI',sans-serif; color: #008184; }
.tm-site .tm-article-related-card h3 { font: 600 22px/1.3 'Josefin Sans',sans-serif; color: #1a2e4a; margin: 0; overflow-wrap: break-word; }
.tm-site .tm-article-byline { min-width: 0; }
.tm-site .tm-article-byline img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; margin: 0; }
.tm-site .tm-article-hero-inner { z-index: 1; }
@media(max-width:1023px) {
  .tm-site .tm-article-layout { flex-direction: column !important; padding: 32px 28px !important; gap: 32px !important; }
  .tm-site .tm-article-sidebar { width: 100% !important; max-width: 680px; align-self: center; }
  .tm-site .tm-article-hero { padding-left: 28px !important; padding-right: 28px !important; }
  .tm-site .tm-article-related { padding: 44px 28px; }
  .tm-site .tm-article-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:767px) {
  .tm-site .tm-article-layout { padding: 28px 20px !important; }
  .tm-site .tm-article-hero { padding: 36px 20px !important; }
  .tm-site .tm-article-hero::before { content: ''; position: absolute; inset: 0; background: rgba(14,24,40,.4); pointer-events: none; }
  .tm-site .tm-article-hero :is(nav,nav a,.tm-article-author-meta) { color: #fff !important; }
  .tm-site .tm-article-hero h1 { font-size: clamp(30px,8vw,40px) !important; line-height: 1.2 !important; }
  .tm-site .tm-article-content { font-size: 16px; }
  .tm-site .tm-article-content h2 { font-size: 27px; }
  .tm-site .tm-article-content h3 { font-size: 23px; }
  .tm-site .tm-article-form-panel { padding: 24px 20px !important; }
  .tm-site .tm-article-related { padding: 40px 20px; }
  .tm-site .tm-article-related-grid { grid-template-columns: minmax(0,1fr); }
  .tm-site .tm-article-related > header h2 { font-size: 30px; }
}

/* Blog listing: keep the featured preview concise and article cards compact. */
.tm-site [data-tm-section="blog-featured-trending"] [data-tm-text-template="{{ nativeFeatured.excerpt }}"] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.tm-site [data-tm-section="blog-articles"] [data-tm-text-template="{{ p.excerpt }}"] {
  display: none;
}

/* Compact, initially collapsed article navigation leaves room for the form. */
/* The sidebar follows page scrolling; only the expanded TOC scrolls internally. */
.tm-site .tm-article-sidebar { gap: 16px !important; position: static; max-height: none; overflow: visible; }
.tm-site .tm-article-toc:has(.tm-toc-disclosure) {
  padding: 0 !important;
  margin-bottom: 0;
  flex-shrink: 0;
}
.tm-site .tm-toc-disclosure > summary {
  cursor: pointer;
  padding: 14px 16px;
  font: 600 16px/1.4 Aptos, 'Segoe UI', sans-serif;
  color: #1a2e4a;
}
.tm-site .tm-toc-disclosure > summary:focus-visible {
  outline: 2px solid #008184;
  outline-offset: -3px;
}
.tm-site .tm-toc-scroll {
  max-height: min(240px, 30vh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding: 0 16px 14px;
  font: 400 14px/1.45 Aptos, 'Segoe UI', sans-serif;
}
.tm-site .tm-toc-scroll > ol { margin: 0; padding-left: 20px; }
.tm-site .tm-toc-scroll li { padding-bottom: 0; margin-bottom: 8px; }
.tm-site .tm-toc-scroll li:last-child { margin-bottom: 0; }
.tm-site .tm-toc-scroll a { color: #008184; }
.tm-site .tm-toc-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.tm-site .tm-toc-disclosure > summary::-webkit-details-marker { display: none; }
.tm-site .tm-toc-disclosure > summary::after { content: ''; width: 8px; height: 8px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.tm-site .tm-toc-disclosure[open] > summary::after { transform: rotate(225deg); }

/* Main-section navigation with TransMigration's active-section treatment. */
.tm-site .tm-toc-slot { width: 100%; flex: none; }
.tm-site .tm-article-toc:has(.tm-toc-disclosure) { border-radius: 8px; }
.tm-site .tm-toc-disclosure > summary { border-radius: 8px; background: #f5f7f7; }
.tm-site .tm-toc-disclosure[open] > summary { border-radius: 8px 8px 0 0; border-bottom: 1px solid #e6e2da; }
.tm-site .tm-toc-scroll { padding: 6px 0; }
.tm-site .tm-toc-scroll > ol { list-style: none; padding: 0; margin: 0; }
.tm-site .tm-toc-scroll li { margin: 0; padding: 0; }
.tm-site .tm-toc-scroll a {
  display: block;
  padding: 9px 14px;
  border-left: 3px solid transparent;
  color: #1a2e4a;
  font: 400 14px/1.45 Aptos, 'Segoe UI', sans-serif;
}
.tm-site .tm-toc-scroll a:hover { background: #f3f8f8; color: #006b6e; }
.tm-site .tm-toc-scroll a[aria-current="location"] {
  border-left-color: #008184;
  background: #eaf5f4;
  color: #006b6e;
  font-weight: 600;
}
.tm-site .tm-toc-scroll a:focus-visible { outline-offset: -3px; }
@media (min-width: 1024px) {
  .tm-site .tm-article-toc.tm-toc-docked {
    position: fixed;
    top: var(--tm-toc-top);
    left: var(--tm-toc-left);
    width: var(--tm-toc-width);
    z-index: 900;
    box-shadow: 0 4px 18px rgba(26,46,74,.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.tm-toc-disclosure) { scroll-behavior: auto; }
}

/* Branded missing-page state, shared by English and Vietnamese routes. */
.tm-site .tm-not-found { display: grid; grid-template-columns: .7fr 1fr; align-items: center; gap: 64px; min-height: 520px; padding: 80px 96px; }
.tm-site .tm-not-found-code { position: relative; color: #008184; font: 700 clamp(100px, 12vw, 176px)/1 'Josefin Sans', sans-serif; text-align: center; letter-spacing: -.05em; }
.tm-site .tm-not-found-code span { display: block; width: 64px; height: 4px; margin: 24px auto 0; background: #c7a45f; }
.tm-site .tm-not-found-copy { max-width: 600px; }
.tm-site .tm-not-found-eyebrow { margin-bottom: 16px; color: #008184; font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.tm-site .tm-not-found h1 { margin: 0 0 20px; color: #1a2e4a; font: 600 clamp(30px, 3.5vw, 44px)/1.18 'Josefin Sans', sans-serif; }
.tm-site .tm-not-found-copy > p:not(.tm-not-found-eyebrow) { font-size: 17px; line-height: 1.65; }
.tm-site .tm-not-found-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.tm-site .tm-not-found-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid #1a2e4a; border-radius: 30px; font-size: 15px; font-weight: 600; text-align: center; }
.tm-site a.tm-not-found-primary { background: #1a2e4a; color: #fff; }
.tm-site a.tm-not-found-primary:hover { background: #008184; border-color: #008184; }
.tm-site a.tm-not-found-secondary { background: transparent; color: #1a2e4a; }
.tm-site a.tm-not-found-secondary:hover { background: #fff; }
.tm-site .tm-not-found-help a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .tm-site .tm-not-found { gap: 32px; padding: 64px 40px; }
}
@media (max-width: 767px) {
  .tm-site .tm-not-found { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 48px 24px; text-align: center; }
  .tm-site .tm-not-found-copy { margin: 0 auto; }
  .tm-site .tm-not-found-actions { justify-content: center; }
}
@media (max-width: 420px) {
  .tm-site .tm-not-found-actions { flex-direction: column; }
}
