/* /learn-tijuana-not-cancun: its own sheet, loaded after site.css.
   One idea runs the page: the border is a drive, the beach is a flight.
   The hero draws both trips, the map shows where patients go, the navy
   band says why, and a car crosses the line in the one tinted box.
   Three colours are a key, used the same way everywhere: blue is the
   border, navy is the interior, sand is the beach coasts.
   Script: scripts/learn-tijuana-not-cancun.js. With that script absent
   every part is visible and every link still jumps. */

html:has(body.tjc) {
  --hc-nav-h: 64px;            /* fallback; the script sets the real header height */
  --hc-bar-h: 52px;
  /* every jump, anchor and Tab stop lands below the header and the bar */
  scroll-padding-top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 12px);
}
.tjc {
  --tj-border: var(--accent-blue);
  --tj-inner: var(--ink-soft);
  --tj-beach: #b98524;          /* the beach coasts, as a mark */
  --tj-beach-ink: #7d5610;      /* the same, as text on white */
  --tj-ease: cubic-bezier(.16, 1, .3, 1);
  --tj-gut: clamp(20px, 4vw, 56px);
}

/* ============ GROUND RULES ============ */
.tj-wrap { max-width: calc(1240px + 2 * var(--tj-gut)); margin-inline: auto; padding-inline: var(--tj-gut); }
/* text fills its column; the column sets the measure */
.tjc main p { max-width: none; margin: 0; }
.tjc main a:not(.btn) { border-bottom: 0; }
.tjc main :is(ul, ol, dl, dd, figure) { margin: 0; padding: 0; list-style: none; }
.tjc main h2 {
  font-family: var(--font-display); font-weight: 300; color: var(--ink);
  font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
  margin: 0; max-width: none; text-wrap: wrap;
}
.tjc main :is(a, summary):focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.tjc :is(.tj-why, .tj-verdict) :is(a, summary):focus-visible { outline-color: var(--accent-ice); }
/* a part that receives focus after a jump is not itself a control */
.tjc main :is(h1, h2, h3, section)[tabindex="-1"]:focus { outline: none; }

/* after a jump, a short rule is drawn under the heading that was reached, then goes */
.tjc main h2 { position: relative; }
.tjc main h2::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 72px; height: 2px; background: var(--accent-blue); opacity: 0; transform-origin: left; pointer-events: none; }
.tjc :is(.tj-why, .tj-verdict) h2::after { background: var(--accent-ice); }
@keyframes tj-here { from { opacity: 1; transform: scaleX(0); } 35%, 70% { opacity: 1; transform: scaleX(1); } to { opacity: 0; transform: scaleX(1); } }
.tjc main h2.is-landed::after { animation: tj-here 1800ms var(--tj-ease) 350ms both; }

/* the onward link: the arrow leans the way it points */
.tj-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color 200ms, text-decoration-color 260ms; }
.tj-go span { display: inline-block; transition: transform 360ms var(--tj-ease); }
.tj-go:hover { color: var(--accent-blue); text-decoration-color: currentColor; }
.tj-go[href^="#"]:hover span { transform: translateY(4px) rotate(90deg); }
.tj-go--up:hover span { transform: translateX(-6px); }

/* drawn icons: one weight, one cap */
.tj-ico { flex: none; width: 56px; height: 56px; overflow: visible; }
.tj-ico :is(path, circle) { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============ REVEALS ============
   Hidden only once the script has said it is running (tj-js on <html>), so
   with no script nothing is ever hidden. Each part comes in its own way. */
.tj-js [data-r] { transition: opacity 620ms ease, transform 820ms var(--tj-ease); }
.tj-js [data-r]:not(.is-in) { opacity: 0; transform: translateY(18px); }
.tj-js [data-r="right"]:not(.is-in) { transform: translateX(36px); }
.tj-js [data-r="right"] { transition-delay: calc(var(--i, 0) * 90ms); }
.tj-js :is([data-r="fill"], [data-r="map"], [data-r="rows"], [data-r="ride"], [data-r="rule"], [data-r="pin"]):not(.is-in) { opacity: 1; transform: none; }

@keyframes tj-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes tj-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes tj-draw { from { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes tj-pop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } }
@keyframes tj-grow { from { transform: scaleX(0); } }

/* icons are drawn when their row arrives */
.tj-js [data-r] .tj-ico :is(path, circle) { stroke-dasharray: 1; }
.tj-js [data-r]:not(.is-in) .tj-ico :is(path, circle) { stroke-dashoffset: 1; opacity: 0; }
.tj-js [data-r].is-in .tj-ico :is(path, circle) { animation: tj-draw 900ms var(--tj-ease) calc(var(--i, 0) * 90ms + 160ms) both; }

/* ============ HERO ============ */
.tj-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px); }
.tj-hero__h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -.015em; color: var(--ink); margin: 0 0 clamp(28px, 4vw, 56px); max-width: none; text-wrap: wrap; }
/* a heading that has to wrap breaks where the styling changes */
.tj-hero__h1 > .h-lead, .tj-hero__h1 > em { display: inline-block; }
.tj-hero__h1 > em { color: var(--accent-blue); }
.tj-hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.tj-hero__answer { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink); margin-bottom: 20px !important; }
.tj-scene { display: block; width: 100%; height: auto; overflow: visible; }
.tj-scene :is(path, circle) { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tj-scene .tj-draw--thin { stroke: var(--border-strong); stroke-width: 1.4; }
.tj-scene .tj-draw--blue { stroke: var(--tj-border); stroke-width: 2.4; }
.tj-scene .tj-scene__ground { stroke: var(--border-strong); stroke-width: 1.2; }
.tj-scene .tj-scene__line { stroke: var(--ink-muted); stroke-width: 1.6; stroke-dasharray: 3 7; }
.tj-scene .tj-scene__road { stroke: var(--tj-border); stroke-width: 3; }
.tj-scene .tj-scene__arc { stroke: var(--tj-beach); stroke-width: 2; stroke-dasharray: 2 8; }
.tj-scene .tj-scene__beach .tj-draw { stroke: var(--tj-beach); }
.tj-scene .tj-scene__plane { transform: translate(311px, 57px); }
.tj-scene .tj-scene__plane path { fill: var(--tj-beach); stroke: none; }
.tj-scene .tj-scene__car { transform: translate(252px, 246px); }
.tj-scene .tj-scene__car path { fill: var(--tj-border); stroke: var(--tj-border); }
.tj-scene .tj-scene__car circle { fill: #fff; stroke: var(--tj-border); stroke-width: 2.4; }
.tj-hero__key { display: grid; grid-template-columns: 62fr 38fr; margin-top: 14px; }
.tj-key { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-muted); padding-right: 12px; }
.tj-key b { display: block; font-weight: 600; font-size: 16px; }
.tj-key--drive b { color: var(--accent-blue-hover); }
.tj-key--fly { text-align: right; padding-right: 0; }
.tj-key--fly b { color: var(--tj-beach-ink); }

/* first paint: the two places, then the short drive, then the long flight */
@keyframes tj-drive { from { transform: translate(122px, 246px); } }
@keyframes tj-fly { from { transform: translate(120px, 118px) rotate(-52deg); opacity: 0; } 20% { opacity: 1; } }
.tj-js .tj-hero__h1 > * { animation: tj-up 900ms var(--tj-ease) both; }
.tj-js .tj-hero__h1 > em { animation-delay: 110ms; }
.tj-js .tj-hero__text > * { animation: tj-up 900ms var(--tj-ease) 240ms both; }
.tj-js .tj-hero__text > a { animation-delay: 340ms; }
.tj-js .tj-scene .tj-draw { stroke-dasharray: 1; animation: tj-draw 700ms var(--tj-ease) both; }
.tj-js .tj-scene .tj-scene__arc { stroke-dasharray: none; animation: tj-rise 600ms ease 1900ms both; }
.tj-js .tj-scene__home .tj-draw { animation-delay: 300ms; }
.tj-js .tj-scene__hosp .tj-draw { animation-delay: 560ms; }
.tj-js .tj-scene__hosp .tj-draw--blue { animation-delay: 900ms; }
.tj-js .tj-scene .tj-scene__road { animation-duration: 1100ms; animation-delay: 1000ms; }
.tj-js .tj-scene .tj-scene__car { animation: tj-drive 1100ms var(--tj-ease) 1000ms both; }
.tj-js .tj-scene__beach .tj-draw { animation-delay: 2100ms; }
.tj-js .tj-scene .tj-scene__plane { animation: tj-fly 1500ms var(--tj-ease) 2000ms both; }
.tj-js .tj-hero__key > * { animation: tj-rise 700ms var(--tj-ease) 1500ms both; }
.tj-js .tj-hero__key > :last-child { animation-delay: 2900ms; }

/* ============ CONTENTS BAR (follows the reader) ============ */
.tjc .hc-bar {
  /* under the phone menu's sheet (55) and backdrop (50), over the page */
  position: fixed; left: 0; right: 0; top: var(--hc-nav-h); z-index: 49;
  height: var(--hc-bar-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 260ms, transform 360ms var(--tj-ease), visibility 0s 360ms;
}
.tjc .hc-bar.is-on { transform: none; opacity: 1; visibility: visible; transition: opacity 260ms, transform 360ms var(--tj-ease); }
body.tjc.nav-open .hc-bar { opacity: 0; visibility: hidden; }
.tjc .hc-bar__track {
  max-width: calc(1240px + 2 * var(--tj-gut)); margin: 0 auto; padding: 0 var(--tj-gut);
  height: 100%; display: flex; align-items: stretch; gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 28px;
}
.tjc .hc-bar__track::-webkit-scrollbar { display: none; }
.tjc .hc-bar__track a {
  position: relative; flex: none; display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--ink-muted); white-space: nowrap;
  transition: color 200ms;
}
.tjc .hc-bar__track a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent-blue); transform: scaleX(0); transform-origin: left;
  transition: transform 360ms var(--tj-ease);
}
.tjc .hc-bar__track a:hover, .tjc .hc-bar__track a[aria-current] { color: var(--ink); }
.tjc .hc-bar__track a:hover::after { transform: scaleX(.35); }
.tjc .hc-bar__track a[aria-current]::after { transform: scaleX(1); }
.tjc .hc-bar__track a:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; border-radius: 4px; }
.tjc .hc-bar__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent-ice); transform-origin: left; transform: scaleX(var(--hc-p, 0));
}
/* where the track can run off the edge, it fades instead of being cut */
.tjc .hc-bar::after { content: ""; position: absolute; top: 2px; right: 0; bottom: 0; width: 36px; background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff); pointer-events: none; opacity: 0; transition: opacity 200ms; }
.tjc .hc-bar.can-scroll::after { opacity: 1; }

/* ============ WHERE PATIENTS GO ============ */
.tj-where { padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--border); }
.tj-where__lede { margin-top: 18px !important; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }


/* the map, and the same cities as a list */
.tj-atlas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: clamp(36px, 5vw, 72px) !important; }
.tj-map { display: block; width: 100%; height: auto; overflow: visible; }
.tj-map__land { fill: #f3f6fa; stroke: var(--border-strong); stroke-width: 1.4; stroke-linejoin: round; }
.tj-map__border { fill: none; stroke: var(--tj-border); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.tj-map__city { color: var(--tj-border); transition: opacity 260ms; }
.tj-map__city--i { color: var(--tj-inner); }
.tj-map__city--c { color: var(--tj-beach); }
.tj-map__bubble { fill: currentColor; fill-opacity: .2; stroke: currentColor; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; transition: fill-opacity 260ms; }
.tj-map__dot { fill: currentColor; stroke: #fff; stroke-width: 2; }
.tj-map__lb { font-family: var(--font-body); font-size: 20px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
/* once the circles are in, a ring leaves Tijuana twice: this is the one the page is about */
.tj-map__ring { fill: none; stroke: var(--tj-border); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
@keyframes tj-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.tj-js .tj-atlas__map.is-in .tj-map__ring { animation: tj-ring 1500ms ease-out 2000ms 2; }
.tj-map.has-hot .tj-map__city:not(.is-hot) { opacity: .28; }
.tj-map__city.is-hot .tj-map__bubble { fill-opacity: .42; }
.tj-js .tj-atlas__map .tj-map__border { stroke-dasharray: 1; }
.tj-js .tj-atlas__map:not(.is-in) .tj-map__border { stroke-dashoffset: 1; }
.tj-js .tj-atlas__map:not(.is-in) .tj-map__city { opacity: 0; }
.tj-js .tj-atlas__map.is-in .tj-map__border { animation: tj-draw 1400ms var(--tj-ease) both; }
.tj-js .tj-atlas__map.is-in .tj-map__bubble { animation: tj-pop 620ms var(--tj-ease) calc(500ms + var(--i) * 110ms) both; }
.tj-js .tj-atlas__map.is-in :is(.tj-map__dot, .tj-map__lb) { animation: tj-rise 500ms ease calc(500ms + var(--i) * 110ms) both; }

.tj-rank__row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 16px; padding: 9px 0 13px; font-size: 16px; color: var(--ink-soft); transition: color 200ms; }
.tj-rank__n { font-weight: 500; }
.tj-rank__v { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.tj-rank__row::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(11, 29, 58, .07); }
.tj-rank__row.is-hot { color: var(--ink); }
.tj-rank__row.is-hot .tj-rank__v { color: var(--ink); }
.tj-atlas__cap { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.tj-where__after { margin-top: clamp(28px, 4vw, 48px); }
.tj-where__after > p { font-size: 18px; line-height: 1.6; color: var(--ink); }

/* ============ READ MORE ============ */
.tj-more { margin-top: 10px; }
.tj-more > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--accent-blue-hover); transition: color 200ms; }
.tj-more > summary::-webkit-details-marker { display: none; }
.tj-more > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 320ms var(--tj-ease); }
.tj-more > summary:hover { color: var(--accent-blue); }
.tj-more > summary:hover::after { transform: translateY(0) rotate(45deg); }
.tj-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.tj-more[open] > summary:hover::after { transform: translateY(-1px) rotate(-135deg); }
.tj-more:not([open]) .tj-more__shut, .tj-more[open] .tj-more__open { display: none; }
.tj-more__body { padding-top: 10px; }
.tj-more__body > p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.tj-more__body > p + p, .tj-more__body > table + p { margin-top: 16px !important; }
@keyframes tj-unfold { from { opacity: 0; transform: translateY(-8px); } }
.tj-more[open] .tj-more__body { animation: tj-unfold 420ms var(--tj-ease); }

/* ============ WHY THE BORDER (navy) ============ */
/* clip, not hidden: rows waiting to slide in must not widen the page, and the heading stays sticky */
.tj-why { overflow-x: clip; background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.tj-why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 104px); align-items: start; }
.tj-why__head { position: sticky; top: calc(var(--hc-nav-h) + var(--hc-bar-h) + 32px); }
.tjc .tj-why h2 { color: #fff; }
.tj-why__head p { margin-top: 20px !important; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.tj-reason { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.tj-reason:first-child { border-top: 0; padding-top: 0; }
.tj-reason:last-child { padding-bottom: 0; }
.tj-reason .tj-ico { color: var(--accent-ice); }
.tj-reason h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; color: #fff; }
.tj-reason p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .78); }

/* ============ CROSSING ============ */
.tj-cross { padding-block: clamp(48px, 6vw, 96px); }
/* the page's one tinted box: how Celva patients cross */
.tj-ride { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-top: clamp(24px, 3vw, 40px); background: var(--accent-wash); border-radius: 14px; padding: clamp(22px, 3.4vw, 48px) clamp(20px, 4vw, 56px) clamp(24px, 3.4vw, 44px); }
.tj-ride__svg { display: block; width: 100%; height: auto; overflow: visible; }
.tj-ride__svg :is(path, circle) { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tj-ride__svg .tj-ride__road { stroke: var(--ink-muted); stroke-width: 1.4; }
.tj-ride__svg .tj-ride__ink--thin { stroke: var(--ink-muted); stroke-width: 1.3; }
.tj-ride__svg .tj-ride__line { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 3 7; }
.tj-ride__svg .tj-ride__gate { stroke: var(--tj-border); stroke-width: 3; transform-origin: 240px 92px; transform: rotate(-68deg); }
.tj-ride__svg .tj-ride__cross { stroke: var(--tj-border); stroke-width: 2.4; }
.tj-ride__svg .tj-ride__plane path { fill: var(--ink); stroke: none; }
.tj-ride__suv { transform: translate(352px, 116px); }
.tj-ride__svg .tj-ride__suv path { fill: var(--ink); stroke: var(--ink); }
.tj-ride__svg .tj-ride__suv .tj-ride__glass { stroke: var(--accent-wash); stroke-width: 5; }
.tj-ride__svg .tj-ride__suv circle { fill: var(--accent-wash); stroke: var(--ink); stroke-width: 2.6; }
.tj-ride__text { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.3; color: var(--ink); }
/* the car pulls away from the curb, waits for the gate, and is let through */
@keyframes tj-suv { from { transform: translate(118px, 116px); } 36%, 50% { transform: translate(188px, 116px); } }
@keyframes tj-gate { from, 36% { transform: rotate(0deg); } 50% { transform: rotate(-68deg); } }
.tj-js .tj-ride:not(.is-in) .tj-ride__suv { transform: translate(118px, 116px); }
.tj-js .tj-ride:not(.is-in) .tj-ride__gate { transform: rotate(0deg); }
.tj-js .tj-ride.is-in .tj-ride__suv { animation: tj-suv 3600ms cubic-bezier(.45, 0, .25, 1) 300ms both; }
.tj-js .tj-ride.is-in .tj-ride__gate { animation: tj-gate 3600ms ease 300ms both; }
.tj-cross__lede { margin-top: clamp(24px, 3vw, 40px) !important; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }

.tj-ways, .tj-trip { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
:is(.tj-ways, .tj-trip) caption { text-align: left; padding-bottom: 12px; font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--ink); }
:is(.tj-ways, .tj-trip) :is(th, td) { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-top: 1px solid var(--border); font-weight: 400; }
:is(.tj-ways, .tj-trip) thead th { border-top: 0; padding-block: 8px; font-size: 15px; font-weight: 500; color: var(--ink-muted); }
:is(.tj-ways, .tj-trip) tbody th { font-weight: 600; color: var(--ink); }
.tj-ways tbody th { width: 34%; }
.tj-ways__d { display: block; margin-top: 4px; font-weight: 400; font-size: 15px; color: var(--ink-muted); }
.tj-trip tbody tr:first-child td { color: var(--accent-blue-hover); font-weight: 500; }

/* ============ OTHER CITIES ============ */
.tj-cities { padding-block: clamp(48px, 6vw, 96px); border-top: 1px solid var(--border); }
.tj-cities__head p { margin-top: 16px !important; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.tj-picks { margin-top: clamp(28px, 4vw, 56px) !important; }
.tj-pick { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 64px); align-items: start; padding-block: clamp(22px, 2.6vw, 34px); }
.tj-pick::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--border-strong); transform-origin: left; }
.tj-js .tj-pick:not(.is-in)::before { transform: scaleX(0); }
.tj-js .tj-pick.is-in::before { animation: tj-grow 1100ms var(--tj-ease) both; }
.tj-js .tj-pick:not(.is-in) > * { opacity: 0; }
.tj-js .tj-pick.is-in > * { animation: tj-rise 700ms var(--tj-ease) 200ms both; }
.tj-js .tj-pick.is-in > dd { animation-delay: 340ms; }
.tj-pick dt { display: flex; align-items: center; gap: 18px; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--ink); }
.tj-pick dt .tj-ico { color: var(--tj-inner); }
.tj-pick--beach dt .tj-ico { color: var(--tj-beach); }
.tj-pick dd { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.tj-more--trip { margin-top: 4px; }

/* ============ IN SHORT (navy) ============ */
.tj-verdict { background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.tj-verdict__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: center; }
.tj-pinmap { display: block; width: 100%; height: auto; overflow: visible; }
.tj-pinmap__land { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .42); stroke-width: 2; stroke-linejoin: round; }
.tj-pinmap__pin path { stroke-width: 3; stroke-linejoin: round; }
.tj-pinmap__pin--old path { fill: none; stroke: rgba(255, 255, 255, .42); stroke-dasharray: 5 9; }
.tj-pinmap__pin--old circle { fill: rgba(255, 255, 255, .42); }
.tj-pinmap__pin--new path { fill: var(--accent-ice); stroke: var(--accent-ice); }
.tj-pinmap__pin--new circle { fill: var(--ink); }
/* the pin leaves the beach and lands on the border */
@keyframes tj-pin { from { transform: translate(827px, 300px) scale(.9); opacity: 0; } 18% { transform: translate(827px, 340px) scale(.9); opacity: .5; } 78% { transform: translate(0, -46px); opacity: 1; } 90% { transform: translate(0, 4px); } }
.tj-js .tj-pinmap:not(.is-in) .tj-pinmap__drop { opacity: 0; }
.tj-js .tj-pinmap.is-in .tj-pinmap__drop { animation: tj-pin 1900ms var(--tj-ease) 300ms both; }
.tjc .tj-verdict h2 { color: #fff; }
.tj-verdict__text p { margin-top: 20px !important; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.tj-verdict__text p:last-child { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.35; color: #fff; }

/* ============ READ FURTHER ============ */
.tj-further { padding-block: clamp(48px, 6vw, 96px) clamp(56px, 7vw, 112px); }
.tj-further__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.tj-further__up { margin-top: 18px !important; }
.tj-further__book { display: block; width: 64px; height: 64px; margin-bottom: 18px; color: var(--tj-border); }
.tj-route li { border-top: 1px solid var(--border); }
.tj-route li:last-child { border-bottom: 1px solid var(--border); }
.tj-route a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 14px 4px; color: var(--ink); transition: color 200ms, padding 360ms var(--tj-ease); }
.tj-route__t { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; }
.tj-route__go { flex: none; font-size: 20px; color: var(--accent-blue); transition: transform 360ms var(--tj-ease); }
.tj-route a:hover { color: var(--accent-blue-hover); padding-left: 14px; }
.tj-route a:hover .tj-route__go { transform: translateX(8px); }
.tj-js .tj-route li[data-r]:nth-child(n+2) { transition-delay: calc((var(--n, 1)) * 60ms); }

/* ============ SMALLER SCREENS ============ */
@media (max-width: 1100px) {
  .tj-atlas { grid-template-columns: minmax(0, 1fr); }
  .tj-atlas__map { max-width: 760px; }
}
@media (max-width: 900px) {
  .tj-hero__row, .tj-why__grid, .tj-verdict__grid, .tj-further__grid, .tj-ride { grid-template-columns: minmax(0, 1fr); }
  .tj-why__head { position: static; }
  .tj-pinmap { max-width: 420px; }
  .tj-pick { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 700px) {
  /* at this size only three names fit on the map; the list below has them all */
  .tj-map__lb { display: none; font-size: 38px; stroke-width: 9px; }
  .tj-map__city:is([data-city="tijuana"], [data-city="cdmx"], [data-city="cancun"]) .tj-map__lb { display: block; }
  .tj-hero__key { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tj-key--fly { text-align: left; }
  .tj-reason { grid-template-columns: 48px minmax(0, 1fr); }
  .tj-reason .tj-ico, .tj-pick .tj-ico { width: 48px; height: 48px; }
  /* tables read as short stacked records */
  :is(.tj-ways, .tj-trip) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(.tj-ways, .tj-trip) :is(tbody, tr, th, td) { display: block; width: auto; }
  :is(.tj-ways, .tj-trip) tbody tr { padding-block: 14px; border-top: 1px solid var(--border); }
  :is(.tj-ways, .tj-trip) tbody :is(th, td) { border: 0; padding: 0; }
  :is(.tj-ways, .tj-trip) tbody td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; margin-top: 8px; }
  :is(.tj-ways, .tj-trip) tbody td::before { content: attr(data-h); font-size: 15px; color: var(--ink-muted); }
  .tj-ways tbody th { width: auto; }
}

/* ============ REDUCED MOTION, PRINT ============ */
@media (prefers-reduced-motion: reduce) {
  .tjc main *, .tjc main *::before, .tjc main *::after, .tjc .hc-bar, .tjc .hc-bar * { animation: none !important; transition: none !important; }
}
@media print {
  .tjc .hc-bar { display: none; }
  .tjc main [data-r] { opacity: 1 !important; transform: none !important; }
  .tjc main [data-r] *, .tjc main [data-r]::before { opacity: 1 !important; animation: none !important; }
  .tj-js .tj-pick:not(.is-in)::before { transform: none !important; }
  .tj-why, .tj-verdict { background: none; color: var(--ink); }
  .tjc :is(.tj-why, .tj-verdict) :is(h2, h3, p) { color: var(--ink); }
}

/* Paper is taken the instant the print dialog opens: nothing may still be fading or sliding in. */
@media print {
  main *, main *::before, main *::after { animation: none !important; transition: none !important; }
}

/* On paper every fold is open, so its Show less handle has nothing to do. */
@media print {
  details.tj-more > summary { display: none !important; }
}
