/* ==========================================================================
   TLI theme — WordPress additions on top of the approved V90 stylesheet.
   Keeps V90 visuals; only adds what server-rendered pages need.
   ========================================================================== */

/* Former <button> navigation controls are now real links: neutral defaults with
   zero specificity so every V90 rule still wins. */
:where(a.tli-was-button){display:inline-block;text-decoration:none;cursor:pointer;text-align:center;font:inherit}
:where(a.home-service-card.tli-was-button){display:block;color:inherit}

/* V90 runtime CTA normaliser (v71) as CSS */
.tli-uniform-cta-primary{background:#E31E24!important;background-color:#E31E24!important;color:#fff!important}
.tli-uniform-cta-whatsapp{background:#16A34A!important;background-color:#16A34A!important;color:#fff!important}
.tli-uniform-cta-whatsapp i,.tli-uniform-cta-whatsapp svg,.tli-uniform-cta-whatsapp path,.tli-uniform-cta-whatsapp span{color:#fff!important;fill:#fff!important}
/* V90 v66: HR leaders section background */
.tli-hr-dark-v66{background:#0F1B3A!important;background-color:#0F1B3A!important}

/* Transit Trade now has two corridors (Afghanistan, CIS) */
@media (max-width:900px){
  #transit-trade-routes > div > div[class~="tli:overflow-x-auto"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:430px){
  #transit-trade-routes > div > div[class~="tli:overflow-x-auto"]{grid-template-columns:minmax(0,1fr)!important}
}

/* Plain links inside V90 cards (team names, case titles) keep the card typography */
.tli-plain-link{color:inherit;text-decoration:none}
.tli-plain-link:hover,.tli-plain-link:focus-visible{text-decoration:underline;text-underline-offset:3px}
.tli-read-more{color:var(--brand-red,#E31E24);font-weight:700;text-decoration:none;font-size:14px}
.tli-read-more:hover{text-decoration:underline}

/* Accessibility helpers */
.tli-skip{position:absolute!important;left:-9999px;top:0;z-index:100000}
.tli-skip:focus{left:12px;top:12px;width:auto!important;height:auto!important;clip:auto!important;background:#fff;color:#322A7C;padding:10px 14px;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.tli-anchor{display:block;position:relative;top:calc(-1 * var(--tli-nav-live-height, 80px) - 12px);height:0;width:0;visibility:hidden}
:focus-visible{outline:2px solid #322A7C;outline-offset:2px}

/* Forms: honeypot, states */
.tli-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.form-submit-status.is-busy{display:block;margin-top:12px;padding:10px 14px;border-radius:10px;background:#eef1fb;color:#322A7C;font-size:14px}
[data-tli-form] [aria-invalid="true"]{border-color:#E31E24!important;box-shadow:0 0 0 3px rgba(227,30,36,.15)!important}
[data-tli-form] button[disabled]{opacity:.7;cursor:progress}
.cf-turnstile{margin:12px 0}

/* Breadcrumbs (inner pages) */
.tli-breadcrumbs{position:absolute;left:0;right:0;top:calc(var(--tli-nav-live-height, 76px) + 14px);padding:0 5%;font-size:13px;color:var(--text-muted,#64748b);z-index:2;pointer-events:none}
.tli-breadcrumbs a{pointer-events:auto}
.tli-breadcrumbs ol{list-style:none;margin:0;padding:3px 12px;display:inline-flex;flex-wrap:wrap;gap:6px;background:rgba(255,255,255,.92);border-radius:999px;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.tli-breadcrumbs li{display:flex;align-items:center;gap:6px}
.tli-breadcrumbs li+li::before{content:"›";color:#94a3b8}
.tli-breadcrumbs a{color:var(--brand-blue,#322A7C);text-decoration:none}
.tli-breadcrumbs a:hover{text-decoration:underline}
.tli-breadcrumbs [aria-current]{color:#334155;font-weight:600}
.tli-breadcrumbs + .page-view > :first-child{margin-top:0}

/* Blog list */
.tli-blog-feed{margin-top:2rem}
.tli-post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;margin-top:1.5rem}
.tli-post-card{padding:1.6rem;display:flex;flex-direction:column;gap:.6rem}
.tli-post-card p{color:var(--text-muted);line-height:1.65;font-size:14px;margin:0}
.tli-post-card-title{font-family:var(--font-display);color:var(--brand-blue);font-size:1.2rem;line-height:1.3;margin:0}
.tli-post-thumb img{width:100%;height:180px;object-fit:cover;border-radius:12px;display:block}
.tli-pagination{margin-top:2rem}
.tli-pagination ul,.tli-pagination .nav-links{display:flex;gap:.5rem;list-style:none;padding:0;flex-wrap:wrap}
.tli-pagination a,.tli-pagination span{display:inline-block;padding:.45rem .8rem;border:1px solid #e2e8f0;border-radius:8px;text-decoration:none;color:var(--brand-blue)}
.tli-pagination .current{background:var(--brand-blue,#322A7C);color:#fff;border-color:transparent}

/* Single article */
.tli-article{max-width:780px;margin:0 auto}
.tli-article-title{text-align:left!important;font-size:clamp(2rem,4vw,3rem)!important;white-space:normal!important}
.tli-article-meta{color:var(--text-muted);font-size:14px;margin:.25rem 0 1.5rem}
.tli-article-image img{width:100%;height:auto;border-radius:16px;display:block;margin-bottom:1.75rem}
.tli-article-content{color:#334155;font-size:17px;line-height:1.8}
.tli-article-content h2{font-family:var(--font-display);color:var(--brand-blue);font-size:1.6rem;margin:2rem 0 .75rem}
.tli-article-content h3{font-family:var(--font-display);color:var(--brand-blue);font-size:1.25rem;margin:1.6rem 0 .6rem}
.tli-article-content p,.tli-article-content ul,.tli-article-content ol{margin:0 0 1.1rem}
.tli-article-content ul,.tli-article-content ol{padding-left:1.4rem}
.tli-article-content a{color:var(--brand-red,#E31E24)}
.tli-article-content img{max-width:100%;height:auto;border-radius:12px}
.tli-article-content blockquote{border-left:4px solid var(--brand-red,#E31E24);margin:1.5rem 0;padding:.25rem 0 .25rem 1.25rem;color:#1e293b;font-style:italic}
.tli-back-link{margin-top:2rem}

/* Profiles, case study, related */
.tli-profile .executive-profile{max-width:1000px;margin:0 auto}
.tli-profile-name{font-family:var(--font-display);color:var(--brand-blue);font-size:clamp(1.8rem,3.4vw,2.4rem);margin:0 0 .3rem}
.tli-profile .tli-back-link{max-width:1000px;margin:2rem auto 0}
.tli-case-single{grid-template-columns:minmax(0,640px)!important;justify-content:center}
.tli-related{max-width:640px;margin:2rem auto 0}
.tli-related-title{font-family:var(--font-display);color:var(--brand-blue);font-size:1.15rem;margin-bottom:.75rem}
.tli-case-single + .tli-related + .tli-back-link,.tli-case-single + .tli-back-link{max-width:640px;margin-left:auto;margin-right:auto}
.tli-stories-index .home-testimonial-grid.tli-static-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));transform:none!important}
.tli-locations-index .presence-city a{color:inherit}

/* Logged-in admin bar should not cover the fixed V90 navigation */
.admin-bar nav{top:32px}
@media (max-width:782px){.admin-bar nav{top:46px}}
@media (max-width:600px){.admin-bar nav{top:0}}

/* Service hero (max 900px): V90 widens the hero by the pane padding (negative
   margins), but V90 also sets that pane padding to 0 at these widths, so the hero
   title and intro sat 2px from the screen edge. Keep the hero exactly full width
   so the title keeps the hero's own 18px inset. Desktop is unchanged. */
@media (max-width:900px){
#view-services .services-panes-wrapper .service-pane-hero,
#view-services .services-panes-wrapper .road-pane-hero{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:100%!important}
}

/* In-page links (About menu, "Explore Capabilities") land below the fixed navigation. */
.page-view [id]:not(.tli-anchor){scroll-margin-top:calc(var(--tli-nav-live-height, 80px) + 16px)}

/* Client UI fixes: informational cards and scoped section alignment. */
.svc-ref-air-freight .decision-card{cursor:default}
h1.section-title + .section-desc:has(+ .cases-grid){text-align:center;margin-left:auto;margin-right:auto}
body.blog h1.section-title + .section-desc{text-align:center;margin-left:auto;margin-right:auto}
body.page-id-199 .home-locations .home-title{text-align:center;margin-left:auto;margin-right:auto}

/* Blog: release the intro section's 68vh minimum only while the post feed is empty. */
#view-blog section:has(.tli-blog-feed:empty){min-height:0!important}

/* Intro paragraph widths: wider copy that relates to the heading above. */
h1.section-title + .section-desc:has(+ .cases-grid){max-width:960px}
body.blog #view-blog h1.section-title + .section-desc{position:relative;max-width:900px!important;margin-bottom:5rem!important}

/* Blog: shaded intro band over the section's white background (shaded -> white, edge to edge). */
body.blog #view-blog > section:first-child{position:relative;isolation:isolate;overflow:clip}
body.blog #view-blog h1.section-title + .section-desc::before{content:"";position:absolute;z-index:-1;left:50%;bottom:-40px;width:100vw;height:1000px;transform:translateX(-50%);background:#F1F5F9}

/* Customs Brokerage: widen the "Why Professional..." heading so it fits one line from 1024px up. */
@media (min-width:1024px){
#view-services .svc-ref-customs-brokerage .customs-compare-shell > div:first-child > h3{margin-left:-3rem;margin-right:-3rem}
}

/* Moving & Relocation: HR section returns to navy so it separates from the purple sections around it. */
#view-services .svc-ref-moving-relocation section.tli-hr-dark-v66.tli-hr-dark-v66:has(h2){background:var(--move-navy)!important}
