/*
 * Truck Moves — site styles loaded after the CMS styles (see docs/CUSTOMISING.md).
 * The design itself is public/assets/css/site.css (the v9 stylesheet, unchanged).
 * This file only (1) makes the page builder's own wrapper elements layout-neutral inside imported
 * sections, so the v9 CSS applies as if they weren't there, and (2) adds the v9 language-switch and
 * Chinese typography rules that were inline on every v9 page.
 */

/* ---------- 0. Fonts (were inline on every v9 page, not in assets/css/site.css) ---------- */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/barlow-400.woff2) format('woff2')}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600 800;font-display:swap;src:url(/assets/fonts/barlow-700.woff2) format('woff2')}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:500 700;font-display:swap;src:url(/assets/fonts/barlow-condensed-700.woff2) format('woff2')}
@font-face{font-family:'Barlow Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/barlow-condensed-800.woff2) format('woff2')}
/* The builder's "Theme heading font" / "Theme body font" (Style → Typography) = the v9 fonts. Barlow isn't in the
   CMS's Site theme font list, so the theme's font tokens are set here (this file loads after them). */
:root { --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif; --font-body: 'Barlow', system-ui, sans-serif; }
html[lang^=zh] { --font-heading: "Barlow Condensed", "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; --font-body: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
/* Text Editor widgets with builder typography (class tm-typo, set by truckmoves:builder-styles): their paragraphs
   and list items take the widget's Style → Typography / Text colour instead of their v9 rules. */
.tm .tm-typo.b-w .b-text :is(p, li) { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }

/* ---------- 0b. Undo the CMS base stylesheet's element defaults ----------
   The CMS site.css (in the "cms" layer) restyles bare elements (body as a flex column, heading colours and
   text-wrap, small, links, img/svg as blocks…). Where the v9 design relies on browser defaults those would
   leak through, so put the browser defaults back. :where() = zero specificity: any v9 rule still wins,
   and the CMS component styles (forms, cookie banner, skip link) are untouched. */
:where(html) { -webkit-text-size-adjust: revert; text-size-adjust: revert; scroll-padding-top: revert; }
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: revert; }
:where(img, picture, video, svg, iframe) { display: revert; max-width: revert; }
:where(img) { height: revert; }
:where(input, button, textarea, select) { font: revert; color: revert; }
:where(button) { cursor: revert; }
:where(table) { border-collapse: revert; }
:where(body) { font-family: revert; font-size: revert; line-height: revert; color: revert; background: revert; min-height: revert; display: revert; flex-direction: revert; -webkit-font-smoothing: revert; }
:where(main) { flex: revert; }
:where(main:focus) { outline: revert; }
:where(h1, h2, h3, h4, h5, h6) { font-family: revert; line-height: revert; font-weight: revert; color: revert; text-wrap: revert; font-size: revert; letter-spacing: revert; }
:where(a) { color: revert; text-underline-offset: revert; text-decoration-thickness: revert; }
:where(:focus-visible) { outline: revert; outline-offset: revert; border-radius: revert; }
:where(small) { font-size: revert; }

/* ---------- 1. Builder wrappers in imported sections ----------
   .tm      a builder section created from a v9 <section> (keeps its v9 classes)
   .tm-x    a builder section/column with no v9 counterpart: removed from the layout
   .tm-el   a builder column / inner section that *is* a v9 wrapper (e.g. .wrap, .prose): a normal box */
.tm-x,
.tm > .b-row,
.tm .b-inner > .b-row,
.tm .b-col__inner,
.tm .b-w,
.tm .b-text {
  display: contents !important;
}
/* The CMS renders sections further down lazily (content-visibility); v9 sections and #anchors expect real heights. */
.b-section.tm, .tm .b-section { content-visibility: visible; }
/* Neutral defaults, weaker than any v9 rule (:where = no specificity), stronger than the CMS layer. */
:where(.b-section.tm) { padding: 0; }
:where(.tm .b-col.tm-el, .tm .b-inner.tm-el) { display: block; width: auto; padding: 0; position: static; }
:where(.tm .b-col.tm-el, .tm .b-inner.tm-el)::before { content: none; }

/* A widget with an id (e.g. a Terms heading the contents list links to) needs a box to scroll to. */
.tm .b-w[id] { display: block !important; scroll-margin-top: 190px; }

/* Icon box parts: no CMS spacing of their own (the v9 card's gap spaces them). */
:where(.tm .b-box__icon, .tm .b-box__title, .tm .b-box__desc) { margin: 0; }

/* Widget internals that v9 had as direct children of the card / item (icon box: icon, title, text; image: the img). */
.tm .b-box__body,
.tm .b-image,
.tm .b-image picture { display: contents; }
/* v9 lists that became builder boxes keep their list look (no bullets/indent of their own). */
:where(.tm .tm-list) { list-style: none; margin: 0; padding: 0; }

/* Link cards (v9 a.why, a.svc, a.ncard …): the card's heading carries the link and covers the whole card. */
:where(.tm .tm-card) { position: relative; }
.tm .tm-cardlink a { color: inherit; text-decoration: none; }
.tm .tm-cardlink a::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* Brand logos in their scrolling strip (see "v9 effects" below for the strip itself). */
.tm .tm-logos img { aspect-ratio: auto; object-fit: contain; opacity: .9; }

/* The home / estimator-page delivery estimator (v9 .est card): head, the CMS form "Delivery estimator" as the v9
   inputs, and the results (.est-out) that public/js/tm-estimator.js keeps up to date. */
.tm .tm-est .est-head { gap: 10px; justify-content: flex-start; }
.tm .tm-est .est-head .b-icon { width: 26px; height: 26px; color: var(--green-text, #077050); }
.tm .tm-est .est-head .b-heading__title { margin: 0; }
.tm .tm-est .est-head .est-live-wrap { margin: 0 0 0 auto; }

/* inputs = v9 .est-body: two columns, .fl labels, .in fields, class chips */
.tm .tm-est .cms-form-wrap { padding: 8px 26px 0; }
.tm .tm-est .cms-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.tm .tm-est .cms-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tm .tm-est .cms-form .cms-label { font-size: 13px; font-weight: 700; color: var(--green-mid); }
.tm .tm-est .cms-required { display: none; }
.tm .tm-est .cms-field .cms-input.cms-input { box-sizing: border-box; min-height: 48px; height: 48px; border: 1px solid #9DBFB1; border-radius: 5px; padding: 0 10px; font: 16px 'Barlow', sans-serif;
  color: var(--green-ink); background: #fff; width: 100%; box-shadow: none; transition: border-color .2s; }
.tm .tm-est .cms-field .cms-input.cms-input:hover { border-color: var(--green); }
.tm .tm-est .cms-fieldset { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tm .tm-est .cms-fieldset > legend { float: left; width: 100%; padding: 0; margin: 0; }
.tm .tm-est .cms-form .cms-choice { position: relative; margin: 0; }
.tm .tm-est .cms-choice__input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tm .tm-est .cms-choice__label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 5px; border: 1px solid #9DBFB1;
  background: #fff; font: 600 14px 'Barlow', sans-serif; color: var(--green-ink); cursor: pointer; transition: all .2s; }
.tm .tm-est .cms-choice__label:hover { border-color: var(--green); }
.tm .tm-est .cms-choice__input:checked + .cms-choice__label { border-color: var(--green); background: var(--green); color: #fff; }
.tm .tm-est .cms-choice__input:focus-visible + .cms-choice__label { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* trailers: the number input with − / + (added by tm-estimator.js) = v9 .stepper */
.tm .tm-est .tm-stepper { display: flex; align-items: center; border: 1px solid #9DBFB1; border-radius: 5px; min-height: 48px; background: #fff; }
.tm .tm-est .tm-stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--green-ink); }
.tm .tm-est .tm-stepper .cms-input.cms-input.cms-input { flex: 1; border: 0; min-height: 44px; height: 44px; min-width: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.tm .tm-est .tm-stepper .cms-input::-webkit-inner-spin-button, .tm .tm-est .tm-stepper .cms-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* visitors don't send this form: its buttons are the two below (quote / book) */
.tm .tm-est .cms-form__actions { display: none; }
/* results = v9 .est-out: map + numbers, then the two buttons, then the note */
.tm .tm-est .est-out { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; margin-top: 18px; background: var(--green-tint);
  border-top: 1px solid var(--green-line); padding: 18px 26px 22px; }
/* (widget wrappers are display:contents: the img, .nums, button links and .est-foot are the flex items) */
.tm .tm-est .est-out img { flex: 0 0 130px; width: 130px; height: 109px; margin-right: 8px; display: block; }
.tm .tm-est .est-out .nums { flex: 1 1 calc(100% - 148px); min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.tm .tm-est .est-out .num b { display: block; font: 700 30px/1 'Barlow Condensed', sans-serif; white-space: nowrap; color: var(--green-ink); }
.tm .tm-est .est-out .num span { font-size: 13px; color: var(--green-mid); }
.tm .tm-est .est-out .num.accent { grid-column: 1 / -1; padding-top: 12px; border-top: 1px dashed var(--green-line); }
.tm .tm-est .est-out .num.accent b { font-size: 22px; line-height: 1.2; white-space: normal; color: var(--green-text); }
.tm .tm-est .est-out .num.pop b { animation: pop .45s var(--ease); }
.tm .tm-est .est-out .b-w-button .b-btn { flex: 1 1 calc(50% - 5px); min-width: 0; margin-top: 18px; justify-content: center; font-size: 15px; padding: 0 10px; }
.tm .tm-est .est-foot { flex: 1 1 100%; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--green-mid); margin-top: 14px; flex-wrap: wrap; }
.tm .tm-est .est-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.tm .tm-est .est-foot .tm-ico { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .tm .tm-est .cms-form-wrap { padding: 8px 18px 0; }
  .tm .tm-est .est-out { padding: 16px 18px 20px; }
  .tm .tm-est .est-out img { display: none; }
  .tm .tm-est .est-out .nums { flex-basis: 100%; }
}

/* "Your route" side card (quote / booking pages): hidden unless the visitor came from the estimator (tm-estimator.js) */
.tm .side-card:has(.tm-id-sumFrom):not(.tm-show) { display: none; }

/* multi-step forms (tm-steps.js): one step shown; the step footer and review span the field grid */
.tm .tm-step-off { display: none !important; }
.tm .tm-step-in { animation: fadeUp .45s var(--ease); }
.tm .tm-steps .cms-form__fields > .tm-step-foot,
.tm .tm-steps .cms-form__fields > .tm-review { grid-column: 1 / -1; }
.tm .tm-steps .tm-step-foot { margin-top: 8px; } /* + the 16px grid gap = v9 .form-foot 24px */
.tm .tm-steps .cms-form__actions.tm-step-last { justify-content: space-between; }
/* in steps each section starts its own step: no separator line / space above it */
.tm .tm-steps .cms-field--heading:not([data-conditions]) { padding-top: 0; border-top: 0; }
.tm .tm-steps .cms-form .cms-form__section.tm-step-h { display: flex; align-items: center; gap: 10px; margin: 0; /* + the field grid's 16px gap = v9's 16px */
  font: 700 26px/1.02 'Barlow Condensed', sans-serif; text-transform: none; letter-spacing: .2px; color: var(--green-ink); }
/* v9 .seg / .toggle-row: Yes / No questions as two tinted rows side by side (79px tall as v9's input rule makes them) */
.tm .form-card .cms-field--radio:not(:has(.cms-choice:nth-of-type(4))) .cms-fieldset { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tm .form-card .cms-field--radio:not(:has(.cms-choice:nth-of-type(4))) .cms-fieldset > legend { padding: 0; margin: 0 0 6px; }
.tm .form-card .cms-form .cms-field--radio:not(:has(.cms-choice:nth-of-type(4))) .cms-choice { flex: 1; display: flex; align-items: center; gap: 10px; margin: 0;
  min-height: 79px; padding: 12px 14px; border-radius: 5px; background: var(--green-tint); }
.tm .form-card .cms-field--radio:not(:has(.cms-choice:nth-of-type(4))) .cms-choice__input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.tm .form-card .cms-field--radio:not(:has(.cms-choice:nth-of-type(4))) .cms-choice__label { font-weight: 600; font-size: 15px; cursor: pointer; }
.tm .tm-steps .cms-form__section.tm-step-h .ic { width: 24px; height: 24px; color: var(--green-text); }

/* file fields in the v9 form cards: v9's plain file box (label, then a 50px bordered box), not the CMS drop zone.
   The file rules stay for screen readers (aria-describedby) and are still checked when a file is chosen. */
.tm .form-card .cms-upload { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: relative;
  padding: 0; border: 0; background: none; min-height: 0; text-align: left; }
.tm .form-card .cms-upload > svg { display: none; }
.tm .form-card .cms-upload .cms-help--rules { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.tm .form-card .cms-upload__action { display: flex; align-items: center; min-height: 50px; margin: 0; padding: 0 12px; border: 1px solid #9DBFB1; border-radius: 5px;
  background: #fff; font: 16px 'Barlow', sans-serif; color: var(--green-ink); text-decoration: none; }
.tm .form-card .cms-upload:hover .cms-upload__action { border-color: var(--green); }
.tm .form-card .cms-upload__input { top: auto; bottom: 0; height: 50px; }

/* "(optional)" under its label (v9 .field .opt: a line of its own in the field's 6px-gap column) */
.tm .cms-form .cms-label .opt { display: block; margin-top: 6px; font-weight: 500; color: var(--green-mid); }
/* v9 .agree: the consent tick with its inline link */
.tm .form-card .cms-form .cms-field--consent .cms-choice { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.tm .form-card .cms-field--consent .cms-choice__input { width: 22px; height: 22px; margin: 1px 3px 3px 4px; accent-color: var(--green); flex: none; }
.tm .form-card .cms-field--consent .cms-choice__label { font-size: 15px; font-weight: 500; }
/* v9 .toggle-row: a single checkbox ("Same contact as pick-up") as one tinted row, its question not repeated above */
.tm .form-card .cms-field--checkbox:not(:has(.cms-choice:nth-of-type(2))) .cms-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tm .form-card .cms-field--checkbox:not(:has(.cms-choice:nth-of-type(2))) .cms-fieldset > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tm .form-card .cms-form .cms-field--checkbox:not(:has(.cms-choice:nth-of-type(2))) .cms-choice { display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px 14px; border-radius: 5px; background: var(--green-tint); }
.tm .form-card .cms-field--checkbox:not(:has(.cms-choice:nth-of-type(2))) .cms-choice__input { width: 20px; height: 20px; margin: 3px 3px 3px 4px; accent-color: var(--green); }
.tm .form-card .cms-field--checkbox:not(:has(.cms-choice:nth-of-type(2))) .cms-choice__label { font-weight: 600; font-size: 15px; }

/* Trucks we move tiles (v9 .mv: 20px icon, 12px gap) */
.tm .mv .b-iconlist li { gap: 12px; }
.tm .mv .b-iconlist__icon, .tm .mv .b-iconlist__icon .b-icon { width: 20px; height: 20px; }

/* v9 .chk tick lists: 12px apart, 22px ticks */
.tm .chk .b-iconlist { row-gap: 12px; }
.tm .chk .b-iconlist__icon, .tm .chk .b-iconlist__icon .b-icon { width: 22px; height: 22px; }

/* tab panels: no CMS padding around them (v9 .tabpanel has none) */
.tm .b-tabs__panel { padding: 0; }

/* filter bar and FAQ search (Text widgets made to work by tm-filters.js) */
.tm .b-text .filters .filter { -webkit-user-select: none; user-select: none; }
.tm .b-text .filters .filter:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tm .b-text .faq-search .tm-ico { width: 20px; height: 20px; }
.tm .tm-faq-count { font-size: 14px; color: var(--green-mid); margin: -14px 0 10px; }
/* v9 .acc: questions 12px apart */
.tm .acc .b-accordion { display: grid; gap: 12px; }
.tm .acc .b-accordion details { margin: 0; }

/* tracker map (a builder column): its v9 side margin inside the grid cell, not on top of a 100% width */
.tm .tracker .tk-map { width: auto; min-width: 0; }

/* Home hero "A → B" strip (v9 .ab-road): the dashed road and the truck driving from A to B. The road's line was an
   empty <i> in v9 (drawn here as ::before); the truck is the Icon widget's wrapper, drawn as v9's yellow tile. */
.tm .ab-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 24px); opacity: .75; }
.tm .ab-road .b-icon-wrap { position: absolute; left: 0; top: 0; width: calc(100% - 32px); height: 32px; display: block;
  animation: abDrive 5s cubic-bezier(.55, 0, .35, 1) infinite; }
.tm .ab-road .b-icon-wrap .b-icon { display: none; }
.tm .ab-road .b-icon-wrap::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 5px; background: var(--yellow); }
.tm .ab-road .b-icon-wrap::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; background: var(--green-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h11v9H2zM13 10h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h11v9H2zM13 10h4l3 3v3h-7z'/%3E%3Ccircle cx='6' cy='17.5' r='1.8'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
html:not(.anim) .tm .ab-road .b-icon-wrap { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tm .ab-road .b-icon-wrap { display: none; } }

/* vehicle tiles (v9 .vt): the label follows the tile's colour (white, dark green on hover); the icon is inlined by
   tm-inline-svg.js so the v9 hover rules colour and move it */
.tm .vt .b-text, .tm .vt .b-text p { color: inherit; }

/* Home Instagram heading (v9 .ig-head): the logo in a white circle inside the spinning ring, and the handle as a
   left-aligned, underlined link with v9's outline Instagram icon */
.tm .ig-avatar .b-inner { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--white); overflow: hidden; animation: spin 8s linear infinite reverse; }
.tm .ig-avatar img { width: 86%; height: auto; aspect-ratio: auto; object-fit: contain; }
.tm .ig-head .handle .b-iconlist { justify-content: flex-start; align-items: flex-start; }
.tm .ig-head .handle a { display: flex; align-items: center; gap: 8px; color: var(--green-text); text-decoration: underline; }
.tm .ig-head .handle .b-iconlist__icon { width: 20px; height: 20px; color: inherit; }
.tm .ig-head .handle .b-iconlist__icon .b-icon { display: none; }
.tm .ig-head .handle .b-iconlist__icon::before { content: ""; display: block; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%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' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; }

/* "How it works" steps (v9 .flow): the dashed line joins one step to the next, so only the step columns draw it
   (not the widgets inside them), and the last step has none */
.tm .flow .b-col__inner > .b-w::after { content: none; }

/* v9 hover effects the widgets lost (the arrow is ::before, moved last: ::after is the v9 shine sweep):
   buttons with v9's trailing arrow (class tm-go): the arrow after the text, nudging right on hover */
.tm .tm-go .b-btn::before, .tm .tm-arrow .b-btn::before { content: ""; order: 9; position: static; flex: none; width: 22px; height: 22px; background: currentColor; transition: transform .3s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 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' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.tm .tm-go .b-btn:hover::before { transform: translateX(4px); }
/* page hero stats (v9 .ph-stats span: inline in a 17px line, so it sits on that line's height) */
.tm .ph-stats .b-counter__title { margin-top: 0; font-size: 14px; line-height: 26.35px; }
.tm .ph-stats .b-counter { gap: 0; }
/* the numbers at a fixed 52px (v9 scaled them 36–52px with the screen width; requested fixed at 52px) */
.tm .ph-stats .b-counter__number { font-size: 52px; line-height: 1; }
/* the counter's digits are spans in a div, which v9's label rule (.ph-stats div > span: 14px, pale) also hits */
.tm .ph-stats .b-counter__number > span { font-size: inherit; color: inherit; }
/* brand logo strip (v9 .brand): the logo brightens and grows on hover */
.tm .tm-logos .b-gallery li img { transition: opacity .3s, transform .35s var(--ease); }
.tm .tm-logos .b-gallery li:hover img { opacity: 1; transform: scale(1.08); }
/* reviews: cards lift, arrows turn green on hover (v9 .rv, .rv-nav .arrow) */
.tm .reviews .b-carousel__slide { transition: transform .35s var(--ease), box-shadow .35s; }
.tm .reviews .b-carousel__slide:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tm .reviews .b-carousel__arrow { transition: all .2s; }
.tm .reviews .b-carousel__arrow:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Home reviews card: the Google "G" (an inline svg in v9, dropped from rich text) and the 28px stars */
.tm .g-brand::before { content: ""; flex: none; width: 40px; height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-8l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C36.9 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.tm .g-card .stars { display: inline-flex; gap: 3px; }
.tm .g-card .stars .tm-ico { width: 28px; height: 28px; color: #F4DE22; }
/* stats: the number sits where v9's inline <b> line box puts it */
.tm .stat .b-counter { margin-top: 6px; }

/* Contact page "Corporate head office" (v9 .side-card.dark .f-contact): white text and links, yellow outline icons
   (the items' images), the address on two lines, the phone number big (v9 inline style on the tel: link). */
.tm .side-card.dark .b-iconlist { gap: 12px; }
.tm .side-card.dark .b-iconlist li,
.tm .side-card.dark .b-iconlist li > a { display: flex; align-items: flex-start; gap: 12px; color: #fff; text-decoration: none; }
.tm .side-card.dark .b-iconlist__icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--yellow); }
.tm .side-card.dark .b-iconlist__img { display: block; width: 20px; height: 20px; }
.tm .side-card.dark .b-iconlist__text { white-space: pre-line; color: #fff; }
.tm .side-card.dark .b-iconlist a[href^="tel:"] .b-iconlist__text { font: 700 26px/1 'Barlow Condensed', sans-serif; }
.tm .side-card.dark .b-iconlist a:hover .b-iconlist__text { color: var(--yellow); }

/* CMS forms in the v9 form cards: full-width fields span the v9 two-column grid; the button is the v9 yellow one. */
.tm .cms-form-wrap, .tm .cms-form { max-width: none; }
.tm .cms-form__fields > .cms-field:not(.cms-field--half):not(.cms-field--third) { grid-column: 1 / -1; }
/* v9 .field: label and input 6px apart (the field's own gap), no extra label margin; no gap between fields and button row */
.tm .cms-form .cms-label { display: block; margin: 0; font-weight: 700; font-size: 14px; color: var(--green-ink); }
.tm .cms-form { gap: 0; }
.tm .cms-form .cms-help { margin: 0; }
.tm .cms-form .cms-form__section { font: 800 22px/1.15 'Barlow Condensed', sans-serif; text-transform: uppercase; color: var(--green-ink); margin: 18px 0 2px; }
.tm .cms-form .cms-choice { display: inline-flex; align-items: center; gap: 8px; margin: 4px 18px 4px 0; }
/* button row = v9 .form-foot (its spacing and line come from the v9 rule); the button on the right */
.tm .cms-form__actions { justify-content: flex-end; }
/* the form's note (spam check) sits on the left of the button row, as in v9 */
.tm .form-card:has(.form-note) { position: relative; }
.tm .form-card .form-note { position: absolute; left: clamp(24px, 2.6vw, 40px); bottom: calc(clamp(24px, 2.6vw, 40px) + 18px);
  max-width: calc(100% - 2 * clamp(24px, 2.6vw, 40px) - 240px); margin: 0; }
/* phones: as in v9 the note wraps onto its own line, above the button */
@media (max-width: 760px) {
  .tm .form-card:has(.form-note) .cms-form__actions { padding-top: calc(20px + 1.6em + 16px); justify-content: flex-start; }
  .tm .form-card .form-note { right: clamp(24px, 2.6vw, 40px); max-width: none; bottom: calc(clamp(24px, 2.6vw, 40px) + 58px + 16px); }
}
.tm .cms-form__actions .b-btn { display: inline-flex; align-items: center; min-height: 58px; padding: 0 28px; border-radius: 5px; border: 0;
  background: var(--yellow, #F4DE22); color: var(--green-ink, #04281D); font: 800 17px/1 'Barlow', sans-serif; letter-spacing: .4px;
  box-shadow: 0 10px 24px rgba(244, 222, 34, .35); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.tm .cms-form__actions .b-btn:hover { transform: translateY(-2px); }

/* Hero "call us" button: the number, with the phone in a round yellow badge (v9 .hero-call / .hc-ic). */
.tm .hero-call .b-btn { gap: 12px; padding: 6px 18px 6px 6px; min-height: 54px; font: 800 22px/1 'Barlow Condensed', sans-serif; letter-spacing: .3px; }
.tm .hero-call .b-btn .b-icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--yellow, #F4DE22); color: var(--green-ink, #04281D); }

/* Two-line buttons ("Call now / 1300 885 799") as a box with an icon and a text link: the link covers the box. */
:where(.tm .tm-btncard) { position: relative; }
.tm .tm-btncard .b-text a { color: inherit; text-decoration: none; }
.tm .tm-btncard .b-text a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Inline SVG drawings (maps, vehicle outlines) shown as images. */
.tm .tm-svg img { display: block; width: 100%; height: auto; }

/* Icon lists made from v9 "icon + text" rows: the v9 link look (dark cards: white text; .f-phone: the big number). */
/* (:where = no specificity, so the v9 rules aimed at these lists, e.g. ".mv" chips, always win.) */
:where(.tm .b-iconlist) { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
:where(.tm .b-iconlist__text) { font-size: inherit; }
:where(.tm .b-iconlist a) { color: inherit; text-decoration: none; }
/* lists made from v9 "icon + text" rows: no gap of their own (beats the widget's default item gap) */
.tm .tm-rows .b-iconlist { gap: 0; }
.tm .tm-rows.b-w .b-iconlist--inline { gap: 16px; }
.tm .f-contact .tm-rows .b-iconlist { gap: 9px; }
.tm .branch .tm-rows .b-iconlist { margin-top: 0; }
:where(.tm .branch .b-iconlist svg) { width: 14px; height: 14px; }
:where(.tm .side-card.dark .b-iconlist, .tm .on-dark .b-iconlist) { color: #fff; }
.tm .f-phone .b-iconlist__text { font: 700 28px/1 'Barlow Condensed', sans-serif; color: #fff; }
.tm .f-contact .b-iconlist__icon { color: var(--yellow, #F4DE22); }
:where(.tm .branch .b-iconlist) { color: var(--green-text, #077050); font-weight: 700; }

/* ---------- v9 effects, redone in CSS for the widget markup ---------- */

/* Home hero: the three headlines take turns (v9 did this with its script; .hh are spans in the Heading widget). */
.tm .hero-h .b-heading__title { display: grid; }   /* v9 ".hero h1.hero-h": the three lines share one spot */
.tm .hero-h .hh { animation: tmHeadline 15s infinite; }
.tm .hero-h .hh:nth-child(1) { animation-name: tmHeadline1; }   /* the first line is there from the start */
.tm .hero-h .hh:nth-child(2) { animation-delay: 5s; }
.tm .hero-h .hh:nth-child(3) { animation-delay: 10s; }
@keyframes tmHeadline1 {
  0%, 30% { opacity: 1; visibility: visible; transform: none; }
  34%, 96% { opacity: 0; visibility: hidden; transform: translateY(-14px); }
  97% { opacity: 0; visibility: visible; transform: translateY(22px); }
  100% { opacity: 1; visibility: visible; transform: none; }
}
@keyframes tmHeadline {
  0%   { opacity: 0; visibility: visible; transform: translateY(22px); }
  4%, 30% { opacity: 1; visibility: visible; transform: none; }
  34%, 100% { opacity: 0; visibility: hidden; transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .tm .hero-h .hh { animation: none; }
}
/* Home hero background slides 2 and 3 (added by tm-inline-svg.js over the first video): each fades in for its third of
   the 15 s cycle, in step with the headlines, with a slow zoom (v9 .slide.active kenburns) */
.tm.hero .tm-slide { position: absolute; inset: 0; opacity: 0; animation: tmSlide 15s infinite; }
.tm.hero .tm-slide-2 { animation-delay: 5s; }
.tm.hero .tm-slide-3 { animation-delay: 10s; }
.tm.hero .tm-slide img, .tm.hero .tm-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: tmSlideZoom 15s ease-out infinite; animation-delay: inherit; }
@keyframes tmSlide { 0% { opacity: 0; } 3%, 33% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes tmSlideZoom { 0% { transform: scale(1); } 37% { transform: scale(1.08); } 100% { transform: scale(1.08); } }

/* Scrolling strips (brand logos, Instagram): the gallery's images twice, moved by half their width, pausing on hover. */
.tm .b-w.tm-marquee { display: block !important; position: relative; overflow: hidden; }
.tm .tm-marquee .b-gallery { display: flex; flex-wrap: nowrap; width: max-content; margin: 0; padding: 0; overflow: visible;
  -webkit-mask-image: none; mask-image: none; animation: marq 60s linear infinite; }
.tm .tm-marquee:hover .b-gallery { animation-play-state: paused; }
.tm .tm-marquee .b-gallery li { flex: none; list-style: none; }
.tm .tm-logos { padding: 18px 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tm .tm-logos .b-gallery { gap: 40px; align-items: center; }
/* v9 .brand tiles: 200×110 with the logo up to 76px tall (150×84 / 58px on phones) */
.tm .tm-logos .b-gallery li { width: 200px; height: 110px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; }
.tm .tm-logos .b-gallery li img { height: auto; width: auto; max-width: 100%; max-height: 76px; }
@media (max-width: 760px) {
  .tm .tm-logos .b-gallery li { width: 150px; height: 84px; }
  .tm .tm-logos .b-gallery li img { max-height: 58px; }
}
.tm .tm-ig { padding: 12px 0 24px; }
.tm .tm-ig .b-gallery { gap: 16px; }
.tm .tm-ig .b-gallery li { width: clamp(280px, 24vw, 440px); aspect-ratio: 4 / 5; border-radius: 5px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(4, 40, 29, .15); transition: transform .45s var(--ease), box-shadow .45s; }
.tm .tm-ig .b-gallery li:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(4, 40, 29, .28); }
.tm .tm-ig .b-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform 1.2s var(--ease); }
.tm .tm-ig .b-gallery li:hover img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
  .tm .tm-marquee .b-gallery { animation: none; flex-wrap: wrap; width: auto; }
}

/* "All brands" section: v9 drew a moving network of dots and lines on a canvas; here an SVG pattern drifts slowly. */
.tm.b-section.brands { overflow: hidden; }
.tm.b-section.brands::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360'%3E%3Cg fill='none' stroke='%2312A37A' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M30 40 L160 95 L290 30 L430 110 L520 70'/%3E%3Cpath d='M160 95 L120 230 L260 300 L390 220 L430 110'/%3E%3Cpath d='M0 300 L120 230 M290 30 L390 220 M260 300 L520 330'/%3E%3C/g%3E%3Cg fill='%2312A37A' fill-opacity='.7'%3E%3Ccircle cx='30' cy='40' r='2.5'/%3E%3Ccircle cx='160' cy='95' r='2.5'/%3E%3Ccircle cx='430' cy='110' r='2.5'/%3E%3Ccircle cx='120' cy='230' r='2.5'/%3E%3Ccircle cx='390' cy='220' r='2.5'/%3E%3C/g%3E%3Cg fill='%23F4DE22'%3E%3Ccircle cx='290' cy='30' r='3'/%3E%3Ccircle cx='260' cy='300' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 360px; animation: tmNet 120s linear infinite;
}
@keyframes tmNet { to { background-position: 520px 360px; } }
.tm.brands .b-inner, .tm.brands .b-col.tm-el, .tm.brands .b-w.tm-marquee { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .tm.b-section.brands::before { animation: none; } }

/* Stat bars: the yellow line fills when the stat scrolls into view (v9 had an <i> inside .bar). */
.tm .stat .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--yellow); transition: width 2.2s var(--ease); }
.tm .stat.is-in .bar::after { width: 100%; }

/* FAQ / accordions: the round "+" badge that turns into "×" when open. */
.tm .acc .b-accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tm .acc .b-accordion summary::-webkit-details-marker { display: none; }
.tm .acc .b-accordion summary::after {
  content: "+"; display: flex !important; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--green-tint); color: var(--green-text); font: 400 26px/1 'Barlow', sans-serif;
  transition: transform .35s var(--ease), background .3s; border: 0; position: static; mask: none; -webkit-mask: none;
}
.tm .acc .b-accordion details[open] summary::after { transform: rotate(45deg); background: var(--yellow); color: var(--green-ink); }

/* Review cards: no browser quote indent (the CMS reset is undone for the v9 design). */
.tm .b-testimonial, .tm .b-testimonial__content { margin: 0; }
.tm .tm-reviews .b-testimonial__content { font-style: normal; font-size: 15px; line-height: 1.55; }

/* Home hero slide labels: in step with the three rotating headlines (15s, 5s each), the yellow line fills. */
.tm .tm-slidectrl .sc { position: relative; margin: 0; padding: 12px 0 0; color: rgba(255,255,255,.65); font: 600 13px 'Barlow', sans-serif;
  letter-spacing: .4px; animation: tmScOn 15s infinite; }
.tm .tm-slidectrl .sc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.25); border-radius: 5px; }
.tm .tm-slidectrl .sc::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0);
  transform-origin: left; background: var(--yellow); border-radius: 5px; animation: tmScBar 15s linear infinite; }
.tm .tm-slidectrl .b-w:nth-child(2) .sc, .tm .tm-slidectrl .b-w:nth-child(2) .sc::after { animation-delay: 5s; }
.tm .tm-slidectrl .b-w:nth-child(3) .sc, .tm .tm-slidectrl .b-w:nth-child(3) .sc::after { animation-delay: 10s; }
.tm .tm-slidectrl .b-col__inner { display: contents; }
.tm .tm-slidectrl .b-w { display: block !important; flex: 1; }
@keyframes tmScBar { 0% { transform: scaleX(0); } 33.3% { transform: scaleX(1); } 33.4%, 100% { transform: scaleX(0); } }
@keyframes tmScOn { 0%, 33.3% { color: #fff; } 33.4%, 100% { color: rgba(255,255,255,.65); } }
@media (prefers-reduced-motion: reduce) { .tm .tm-slidectrl .sc, .tm .tm-slidectrl .sc::after { animation: none; } }

/* Tracker demo: the selected vehicle tab (v9 .tk-tab[aria-pressed=true]). */
.tm .tk-tab.on .b-iconlist { background: var(--yellow); border-color: var(--yellow); color: var(--green-ink); }
.tm .tk-tabs .b-iconlist li { display: inline-flex; align-items: center; gap: 8px; }

/* Reviews: the note under the carousel. */
.tm .rv-note { margin: 10px 0 0; text-align: right; font-size: 12px; color: var(--green-mid, #3D6E5D); }

/* Driver hire: the "Hire period" radio buttons as the v9 option cards. */
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-fieldset { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border: 0; padding: 0; margin: 0 0 6px; }
/* v9 showed no heading above the cards (it was a screen-reader label) */
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-fieldset > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice { position: relative; margin: 0; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__label { display: block; height: 100%; padding: 26px; border-radius: 5px;
  border: 2px solid var(--green-line); background: #fff; font: 700 26px/1 'Barlow Condensed', sans-serif; color: var(--green-ink);
  cursor: pointer; transition: all .3s var(--ease); }
/* the v9 card descriptions, under the title (the option itself is the title) */
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__label::after { display: block; margin-top: 8px; font: 400 15px/1.55 'Barlow', sans-serif; color: var(--green-mid); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(1) .cms-choice__label::after { content: "Yard shuffles & short jobs"; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(2) .cms-choice__label::after { content: "Drive days & deliveries"; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(3) .cms-choice__label::after { content: "Leave cover & peaks"; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(4) .cms-choice__label::after { content: "Ongoing support"; }
html[lang^=zh] .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(1) .cms-choice__label::after { content: "场内调车及短途工作"; }
html[lang^=zh] .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(2) .cms-choice__label::after { content: "驾驶天数与交付"; }
html[lang^=zh] .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(3) .cms-choice__label::after { content: "休假顶班与高峰期"; }
html[lang^=zh] .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(4) .cms-choice__label::after { content: "持续支持"; }
/* the v9 card icons (clock, calendar, calendar-check, users) */
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__label::before { content: ""; display: block; width: 30px; height: 30px; margin-bottom: 8px;
  background: var(--green-text, #077050); -webkit-mask: var(--tm-ico) center / contain no-repeat; mask: var(--tm-ico) center / contain no-repeat; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(1) { --tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(2) { --tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(3) { --tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice:nth-of-type(4) { --tm-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6M16 4.5a3.5 3.5 0 0 1 0 7M21 20c0-2.6-1.6-4.8-4-5.6'/%3E%3C/svg%3E"); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input:checked + .cms-choice__label::before { background: var(--yellow); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input:checked + .cms-choice__label { color: #fff; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input:checked + .cms-choice__label::after { color: rgba(255,255,255,.85); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__label:hover { border-color: var(--green); transform: translateY(-4px); }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input:checked + .cms-choice__label { border-color: var(--green); background: var(--green); color: #fff; }
.tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-choice__input:focus-visible + .cms-choice__label { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* v9 .opts: two cards a row on tablets, one on phones */
@media (max-width: 1080px) { .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tm .cms-field--radio:not([data-field=cls]):has(.cms-choice:nth-of-type(4)) .cms-fieldset { grid-template-columns: 1fr; } }

/* The spam-check line under a form. */
.tm .form-note { margin: 10px 0 0; font-size: 14px; color: var(--green-mid, #3D6E5D); }

/* v9 child-combinator rules, repeated for the builder markup (.b-row sits between the two). */
.brands .b-col.wrap { position: relative; z-index: 1; }

/* v9 sibling rules (home page): .week-cta + .why4-sec + .trust are separate builder sections. */
.b-section.week-cta + .b-section.trust { margin-top: 0; padding-top: clamp(28px, 3vw, 44px); }
.b-section.week-cta + .b-section.why4-sec + .b-section.trust { margin-top: 0; padding-top: 0; background: var(--green-tint); }

/* v9 rules that relied on :first-child: inside builder widgets every heading is a first child. */
.legal-copy .b-w-heading h2 { margin-top: 34px; }
.legal-copy .b-col__inner > .b-w-heading:first-child h2 { margin-top: 0; }

/* ---------- 2. Language switch + Chinese typography (inline on every v9 page) ---------- */
.head-nav nav{margin-right:auto}
.lang{display:flex;align-items:center;gap:2px;margin-left:22px;background:rgba(255,255,255,.1);border-radius:5px;padding:3px;flex:none}
.lang a{color:#fff;text-decoration:none;font-weight:700;font-size:14px;line-height:1;padding:7px 11px;border-radius:5px;transition:background .2s}
.lang a:hover{background:rgba(255,255,255,.14)}
.lang a[aria-current]{background:#F4DE22;color:#04281D}
.lang-m{display:none}
@media (max-width:1080px){.lang-m{display:flex;align-items:center;justify-content:center;min-width:48px;height:48px;border-radius:5px;border:2px solid #D5E9E1;color:#04281D;font-weight:700;font-size:15px;text-decoration:none;padding:0 10px;margin-left:8px}}
.call-round span,.lang-m{white-space:nowrap}
@media (max-width:440px){.lang-m{min-width:34px;height:40px;padding:0 4px;font-size:13px;margin-left:2px;border-width:1px}}
html[lang^=zh] h1,html[lang^=zh] h2,html[lang^=zh] h3{word-break:keep-all;overflow-wrap:anywhere}
.head-main .wrap>.menu-btn,.head-main .wrap>.lang-m,.head-main .logo{flex-shrink:0}
.head-main .spacer{min-width:0}
@media (max-width:1080px){.head-btns .btn-book{display:none}}
@media (max-width:960px){.head-btns{display:none}}
@media (max-width:440px){.head-main .wrap{gap:8px}.head-main .logo img{width:112px;height:auto}.call-round{font-size:17px;padding:0 9px;gap:5px;height:42px}.call-round .ic{width:16px;height:16px}.menu-btn{width:38px}}
@media (max-width:374px){.call-round{width:42px;padding:0;justify-content:center}.call-round span{display:none}.call-round .ic{display:block!important;width:20px;height:20px}}
html[lang^=zh] body{font-family:"Barlow","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif}
html[lang^=zh] h1,html[lang^=zh] h2,html[lang^=zh] h3,html[lang^=zh] .btn{font-family:"Barlow Condensed","Barlow","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif}
html[lang^=zh] .lead,html[lang^=zh] p{line-height:1.75}

/* Drive for us — John card: the AI call widget (public/js/tm-john.js) sits at the bottom of the photo, as v9's
   #avatar-agent-container; the widget's own button gets the v9 font */
.tm .john-card .tm-john-call { position: absolute !important; z-index: 3; left: 0; right: 0; top: auto !important; bottom: 22px !important; width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tm .john-card .tm-john-call #avatar-agent-start-button { font-family: 'Barlow', sans-serif !important; font-weight: 800 !important; font-size: 17px !important; padding: 16px 30px !important; border-radius: 5px !important; }

/* Drive for us — "Flights home, organised" card: v9's dashed yellow route line with the plane flying along it
   (v9 .bn-route <i> + .ic bnFly). The line is drawn here (the widget has no <i>); the plane is placed against the
   whole route box; the Icon widget's wrapper has no box (display: contents), so its icon holder is what flies, and
   the svg itself is not animated a second time */
.tm .bn-route { position: relative; }
.tm .bn-route::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(244, 222, 34, .5); pointer-events: none; }
.tm .bn-route .b-row, .tm .bn-route .b-col, .tm .bn-route .b-col__inner { position: static; }
.tm .bn-route .b-w-icon .b-icon-wrap { display: block; position: absolute; top: 50%; left: 0; width: 26px; height: 26px; margin-top: -13px; color: var(--yellow); animation: bnFly 5s var(--ease) infinite; }
.tm .bn-route .b-w-icon .b-icon { position: static; display: block; width: 26px; height: 26px; margin: 0; animation: none; color: inherit; }
@media (prefers-reduced-motion: reduce) { .tm .bn-route .b-w-icon .b-icon-wrap { animation: none; left: calc(50% - 13px); } }
