/* CANXANSA light design. Loaded last across every public page.
   Legacy surface/text token names are retained for existing page templates. */
:root {
  color-scheme: light;
  --surface: #f7f6f2; --paper: #fff; --text: #202328; --secondary: #5d6269;
  --black: #f7f6f2; --ink: #f7f6f2; --ink-2: #fff; --ink-3: #eeede8;
  --white: #202328; --bone: #202328; --bone-dim: #5d6269; --bone-hero: #5d6269;
  --gray: #fff; --gray-mid: #dcdedc; --gray-light: #5d6269;
  --text-muted: #666b70; --muted: #666b70;
  --hair: #dedfdc; --hair-soft: #e9e9e3;
  --orange: #e8521a; --orange-dim: #b93d0e; --orange-deep: #b93d0e;
  --green: #167544; --red: #b42318;
}
html { background: var(--surface); scroll-padding-top: 100px; }
body { max-width: 1760px; margin-inline: auto; background: var(--surface); color: var(--text); font-weight: 400; }
body::before, body::after, .grain, .rails { display: none; }
::selection { background: #fbd7c8; color: var(--text); }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: #b8bcb9; }
body > nav, body > nav.scrolled {
  left: 50%; right: auto; transform: translateX(-50%); width: 100%; max-width: 1760px;
  padding: 18px 40px !important; min-height: 78px;
  background: rgba(247,246,242,.97) !important;
  border-bottom: 1px solid var(--hair); gap: 20px;
}
.nav-logo { color: var(--text); flex-shrink: 0; font-size: 21px; }
.nav-logo small, .nav-sub { color: var(--secondary); }
.nav-link, .nav-routes { color: #484e54; }
.nav-center { gap: 18px; margin-inline: 16px; }
.nav-right { gap: 12px; flex-shrink: 0; }
.nav-cta, .nav-track { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 5px; white-space: nowrap; }
.nav-track { color: var(--text); border: 1px solid #85898c; background: transparent; }
.nav-hamburger { min-width: 44px; min-height: 44px; align-items: center; }
.nav-hamburger span { background: var(--text); }
.mobile-menu { background: var(--surface); padding: 100px 28px 32px; justify-content: flex-start; }
.mobile-nav-link { color: var(--text); font-size: clamp(22px,4vw,32px); }
.mobile-nav-cta { color: var(--orange-deep); }
.nav-cta, .btn-solid, .btn-primary, .form-submit, .qf-submit, .subscribe-btn,
.btn-submit, .submit-btn { background: var(--orange); color: #181b1f; border-color: var(--orange); font-weight: 600; border-radius: 5px; }
.nav-cta:hover, .btn-solid:hover, .btn-primary:hover, .form-submit:hover,
.qf-submit:hover, .subscribe-btn:hover, .btn-submit:hover, .submit-btn:hover {
  background: #ce4612; border-color: #ce4612; color: #fff; box-shadow: none;
}
.btn-line, .btn-ghost { color: var(--text); border: 1px solid #85898c; border-radius: 5px; background: rgba(255,255,255,.65); }
.btn-line:hover, .btn-ghost:hover { background: #fff; border-color: var(--text); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  color: var(--text); background-color: #fff; border-color: #cdd1d2; border-radius: 5px; font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #6b7178; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange-deep); outline-offset: 3px;
}
input:hover, select:hover, textarea:hover { border-color: #969da0; }
footer { background: #efeee9; }
.hero::before, .page-header::before, .page-header::after, .hero-right::before { opacity: .45; }
.hero-right, .departure-port, .departure-mode { background: #fff; }
.sec-title em, .cor-big em, .head h1 em, .article-head h1 em { -webkit-text-stroke-color: var(--text); }
.mq-item { -webkit-text-stroke-color: #858a8d; }
.svc-row::before, .post-row::before { background: #f0ece4; }
.svc-row:hover .svc-name, .svc-row:hover .svc-idx, .svc-row:hover .svc-arr,
.post-row:hover .post-title, .post-row:hover .post-meta, .post-row:hover .post-arr { color: var(--text); }
.stat-box, .stat, .service-card, .hub-card, .cargo-card, .related-card, .dest-card,
.qform, .callout, .subscribe-box { border-radius: 10px; }
/* Homepage: bounded desktop canvas, fluid typography, stacked tablet/mobile. */
.home-hero { display: block; min-height: 0; padding: 96px 24px 0; overflow: visible; }
.hero-scene {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 20px;
  padding: clamp(32px,4vw,64px) clamp(28px,3.7vw,60px);
  min-height: 620px; display: grid; grid-template-columns: 55% 45%;
  grid-template-areas: 'intro .' 'copy .' 'actions .'; align-content: center; gap: 28px 0;
  background: #f5f2eb;
}
.home-hero .hero-port { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; z-index: -2; background: #f5f2eb; }
.home-hero .hero-port picture { display: block; width: 100%; height: 100%; }
.home-hero .hero-port img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.08) saturate(1.02); }
.home-hero .hero-port::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#f7f5ef 0%,rgba(247,245,239,.98) 28%,rgba(247,245,239,.91) 40%,rgba(247,245,239,.65) 49%,rgba(247,245,239,0) 66%); }
.hero-intro { grid-area: intro; position: relative; }
.home-hero .hero-meta { flex-wrap: wrap; gap: 12px 18px; margin-bottom: 34px; font-size: 10px; letter-spacing: 1.4px; color: #545b63; text-shadow: none; }
.home-hero h1 { font-size: clamp(44px,4.55vw,80px); max-width: none; text-shadow: none; line-height: 1.04; }
.home-hero h1 .hollow { -webkit-text-stroke: 1.2px var(--text); }
.home-hero .hero-modes { gap: 16px; font-size: 10px; letter-spacing: 1px; margin-top: 28px; color: var(--secondary); text-shadow: none; }
.home-hero .hero-modes .mode-sep { width: 1px; height: 18px; }
.home-hero .hero-sub { grid-area: copy; max-width: 560px; font-size: 15px; line-height: 1.8; color: #505760; text-shadow: none; margin: 0; }
.home-hero .hero-actions { grid-area: actions; flex-wrap: wrap; gap: 12px; }
.home-hero .btn-solid, .home-hero .btn-line { font-size: 12px; padding: 17px 26px; justify-content: center; min-height: 52px; }
.tracking-card { display: flex; align-items: center; gap: 32px; padding: 18px 24px; margin-top: 16px; background: #fff; border: 1px solid #ecece6; border-radius: 14px; }
.tracking-card > label { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; flex-shrink: 0; }
.tracking-fields { flex: 1; min-width: 0; }
.home-hero .hero-track { background: transparent; border: 0; border-radius: 0; gap: 12px; overflow: visible; backdrop-filter: none; }
.home-hero .hero-track input { background: #fff; border: 1px solid #cdd1d2; border-radius: 5px; font-size: 16px; padding: 14px 16px; letter-spacing: 0; }
.home-hero .hero-track input::placeholder { color: #6b7178; }
.home-hero .hero-track button { background: var(--orange); color: #181b1f; font-weight: 600; border: 0; border-radius: 5px; padding: 14px 32px; font-size: 12px; }
.home-hero .hero-track-error { color: #b42318; margin-top: 8px; }
.home-hero .datastrip { background: transparent; backdrop-filter: none; border: 0; margin: 24px 0; }
.home-hero .ds-cell { padding: 20px; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.home-hero .ds-num { font-size: 38px; }
.home-hero .ds-label { line-height: 1.5; }
@media (max-width: 1350px) {
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 1024px) {
  body > nav, body > nav.scrolled { padding: 14px 24px !important; min-height: 72px; }
  .home-hero { padding: 88px 16px 0; }
  .hero-scene { grid-template-columns: minmax(0,1fr); grid-template-areas: 'intro' 'media' 'actions' 'copy'; padding: 32px 24px; min-height: 0; gap: 28px; }
  .home-hero .hero-port { position: relative; inset: auto; grid-area: media; z-index: auto; height: auto; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; }
  .home-hero .hero-port img { position: static; display: block; object-position: 65% center; }
  .home-hero .hero-port::after { display: none; }
  .home-hero h1 { font-size: clamp(38px,8vw,76px); }
  .home-hero .hero-sub { max-width: 680px; font-size: 16px; }
  .home-hero .hero-meta { margin-bottom: 24px; }
  .home-hero .hero-modes { margin-top: 24px; }
  .home-hero .hero-actions > a { flex: 1; }
  .tracking-card { flex-direction: column; align-items: stretch; gap: 16px; }
  .home-hero .datastrip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-hero .ds-cell:nth-child(2) { border-right: 0; }
}
@media (max-width: 640px) {
  body > nav, body > nav.scrolled { padding: 12px 16px !important; min-height: 70px; gap: 12px; }
  .nav-logo { font-size: 19px; }
  .nav-logo small { display: block; margin: 7px 0 0; font-size: 8px; letter-spacing: 4px; }
  .nav-cta, .nav-track { display: none; }
  .home-hero { padding: 82px 12px 0; }
  .hero-scene { padding: 26px 16px; border-radius: 16px; gap: 24px; }
  .home-hero h1 { font-size: clamp(30px,8.5vw,54px); }
  .home-hero .hero-meta { font-size: 9px; gap: 10px; letter-spacing: .8px; }
  .home-hero .hero-meta .dot { display: none; }
  .home-hero .hero-meta > span:nth-child(2) { flex-basis: 100%; }
  .home-hero .hero-modes { gap: 12px 8px; justify-content: space-between; font-size: 8px; letter-spacing: .3px; }
  .home-hero .hero-modes .mode { gap: 5px; }
  .home-hero .hero-modes .mode svg { width: 17px; height: 17px; }
  .home-hero .hero-modes .mode-sep { display: none; }
  .home-hero .hero-port { margin-inline: -16px; width: calc(100% + 32px); border-radius: 0; aspect-ratio: 1.5; }
  .home-hero .hero-actions { flex-direction: column; gap: 10px; }
  .home-hero .hero-sub { font-size: 14px; line-height: 1.8; }
  .tracking-card { padding: 20px 16px; }
  .home-hero .hero-track button { padding: 14px 18px; }
  .home-hero .hero-track input { width: 0; }
  .home-hero .ds-num { font-size: 30px; }
  .home-hero .ds-label { font-size: 9px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
/* Non-modal cookie preferences; normal page remains available. */
#cxc-banner {
  position: fixed; left: max(24px, calc((100vw - 1712px)/2)); bottom: 24px;
  width: 370px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 110px);
  overflow-y: auto; z-index: 9999; padding: 22px; border: 1px solid #dedfdc;
  border-radius: 16px; background: #fff; color: #202328;
  box-shadow: 0 8px 36px rgba(32,35,40,.13);
  font-family: 'Archivo', sans-serif; font-size: 12px; line-height: 1.65;
}
#cxc-title { font-family: inherit; font-stretch: normal; font-size: 16px; letter-spacing: 0; line-height: 1.4; margin: 0 0 10px; font-weight: 650; }
#cxc-banner p { margin: 0 0 16px; color: #5d6269; }
#cxc-banner a { color: #a3360d; text-decoration: underline; text-underline-offset: 2px; }
.cxc-actions { display: flex; gap: 10px; }
#cxc-banner button { border: 1px solid #90969c; border-radius: 5px; padding: 11px 12px; min-height: 44px; color: #202328; background: #fff; cursor: pointer; font: 600 12px/1.4 'Archivo',sans-serif; }
#cxc-banner .cxc-actions button { flex: 1; }
#cxc-banner .cxc-accept { background: #e8521a; border-color: #e8521a; color: #181b1f; }
#cxc-banner button:hover { background: #f2f0eb; }
#cxc-banner .cxc-accept:hover { background: #ce4612; color: #fff; }
#cxc-banner .cxc-customize { padding: 12px 0 0; min-height: 40px; border: 0; background: transparent; text-decoration: underline; font-weight: 400; }
#cxc-options { border-top: 1px solid #dedfdc; padding-top: 16px; margin-top: 12px; }
#cxc-options[hidden] { display: none; }
#cxc-options label { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font-size: 13px; letter-spacing: 0; }
#cxc-options input { width: 18px; height: 18px; accent-color: #b93d0e; }
#cxc-options > button { width: 100%; }
a[aria-label="WhatsApp"][style*="fixed"] { box-shadow: 0 4px 16px rgba(20,100,50,.18) !important; }
@media (max-width: 640px) {
  #cxc-banner { left: 12px; right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); width: auto; max-width: none; padding: 18px; }
  .consent-open a[aria-label="WhatsApp"][style*="fixed"] { bottom: calc(var(--consent-height, 270px) + 26px + env(safe-area-inset-bottom)) !important; right: 16px !important; width: 48px !important; height: 48px !important; }
}
@media (max-height: 600px) and (max-width: 640px) {
  .consent-open a[aria-label="WhatsApp"][style*="fixed"] { visibility: hidden; }
}
/* Independent editorial and rate-table templates. */
article p, article li, .faq-a { color: var(--secondary); }
.rates-table tbody tr:hover { background: #eeede8; }
.transit-card { background: #fff; }
@media (max-width: 1024px) {
  .home-hero .hero-port img { object-position: 100% center; }
}
/* Orange bands keep dark type for readable contrast. */
.band, .cta-band { color: var(--text); }
/* Shared nav also covers templates that previously used sticky positioning. */
body > nav, body > nav.scrolled { position: fixed; top: 0; }
.hubs-grid > *, .cargo-grid > *, .stats > *, .destinations-grid > * { min-width: 0; }
.cargo-title, .hub-name, .dest-country { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .nav-logo .nav-sub { display: block; margin: 6px 0 0 !important; font-size: 8px !important; letter-spacing: 3px !important; }
  .cargo-grid, .hubs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cargo-card, .hub-card { padding: 22px 16px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-box { padding: 24px 16px; }
  .stat-label { overflow-wrap: anywhere; letter-spacing: 1px; }
}

/* Breadcrumb nav is content, not the fixed site navigation. */
nav.breadcrumb {
  position: relative; inset: auto; transform: none; width: auto; max-width: none;
  min-height: 0; display: block; padding: 0 !important; background: transparent !important;
  border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.mono-tag, .section-label, .hero-tag, .sec-index, .cor-route,
.post-meta, .related-title, .data-table th, .callout .label,
.cd-label, .footer-col-title, .fcol-title { color: var(--orange-deep); }
article a, .breadcrumb a:hover, .breadcrumb span { color: var(--orange-deep); }
