/* =====================================================================
   SENAYECIHAZ — Turkey market page (owner: W8). Loaded after market.css.
   Character: construction demand and trade in both directions, sea route through Suez.
   Adds: project marquee (.tr-marquee), buy/sell pieces that lock (.tr-pieces),
   the route diagram (.tr-map: choose a port and a routing).
   Uses only site tokens; no lines, no shadows, no gradients.
   ===================================================================== */


/* ---------- 1. DEMAND + MARQUEE ------------------------------------- */
.tr-demand { overflow: clip; }
.tr-marquee { margin-top: clamp(4rem, 2.5rem + 5vw, 8rem); color: var(--ink-head); --marquee-gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.tr-marquee .marquee__track { align-items: center; font-size: clamp(3rem, 1.6rem + 6.4vw, 8.5rem); }
.tr-marquee i { display: block; flex: none; width: calc(var(--m) * 1.5); height: calc(var(--m) * 1.5); background: var(--accent);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 30% 100%, 0 70%); }
/* reduced motion: the static strip showed only "Roads · Rail" — show the whole list once, wrapped (verifier v2, as home H5) */
.reduce-motion .tr-marquee { white-space: normal; }
.reduce-motion .tr-marquee .marquee__track { flex-wrap: wrap; width: auto; transform: none !important; row-gap: 0.15em; padding-inline: var(--gutter); font-size: clamp(1.75rem, 0.5rem + 4.2vw, 4.75rem); }
.reduce-motion .tr-marquee .marquee__track > :nth-child(n+13) { display: none; }
.reduce-motion .tr-marquee .marquee__track > span { flex: 0 1 auto; max-width: 100%; white-space: normal; }

/* ---------- 2. BUY / SELL PIECES ------------------------------------ */
.tr-pieces { display: grid; gap: var(--kerf); --cut: calc(var(--m-step) * 2); }
.tr-piece { display: flex; flex-direction: column; overflow: hidden; }
.tr-piece__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); flex: none; }
.tr-piece__media img { width: 100%; height: 100%; object-fit: cover; }
.tr-piece__body { flex: 1 0 auto; display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); justify-items: start; align-content: start; padding: clamp(1.75rem, 1rem + 2.4vw, 3.5rem) var(--m-pad) clamp(2rem, 1.2rem + 2.6vw, 4rem); }
.tr-piece h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 3.25rem); max-width: 16ch; }
.tr-piece__list { list-style: none; padding: 0; display: grid; gap: var(--kerf); width: 100%; }
.tr-piece__list > li { display: grid; gap: var(--sp-2); padding: var(--sp-5) var(--m-pad); background: var(--surface); }
.tr-piece__list h3 { font-size: var(--fs-h4); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 740; }
.tr-piece__list p { font-size: var(--fs-base); }
.tr-piece--buy { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.tr-piece--sell { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.tr-piece--sell .tr-piece__body { padding-top: calc(var(--cut) + var(--sp-5)); }
.tr-piece--buy .tr-piece__body { padding-bottom: calc(var(--cut) + var(--sp-5)); }
@media (min-width: 1000px) {
  /* the stagger is exactly the 45° step, and both pieces are the same height: they read as one billet cut in two */
  .tr-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .tr-piece--buy { margin-bottom: var(--cut); }
  .tr-piece--sell { margin-top: var(--cut); }
}

/* ---------- 3. ROUTE DIAGRAM (the live thing) ----------------------- */
.tr-map { display: grid; gap: var(--sp-6) var(--gap); }
.tr-map__controls { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-8); }
.tr-map__group { display: grid; gap: var(--sp-3); }
.tr-map__label { font-size: var(--fs-sm); font-weight: 620; color: var(--ink-2); }
.tr-map__btns { display: flex; flex-wrap: wrap; gap: var(--kerf); }
.tr-chip {
  --c: calc(var(--m) * 0.8);
  min-height: 2.875rem; padding: 0 1.15em; background: var(--surface); color: var(--ink);
  font-size: var(--fs-sm); font-weight: 620;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), scale var(--dur-1) var(--ease-out);
}
.tr-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tr-chip:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .tr-chip[aria-pressed="false"]:hover { background: var(--surface-2); } }
.tr-chip:focus-visible { clip-path: none; }

.tr-map__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; background: var(--surface); }
.tr-map__svg { width: 100%; height: auto; display: block; }
.tr-map__hint { display: none; }
@media (max-width: 699px) {
  .tr-map__hint { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: calc(var(--sp-6) * -1 + var(--sp-2)); }
  .tr-map__scroll { margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .tr-map__scroll.is-end { -webkit-mask-image: none; mask-image: none; }
  .tr-map__svg { width: 620px; max-width: none; }
}
.tr-net path { fill: none; stroke: var(--surface-2); stroke-width: 10; stroke-linejoin: miter; }
.tr-net .tr-net__cape { stroke-dasharray: 14 12; }
.tr-run { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linejoin: miter; }
.tr-node { fill: var(--bg); stroke: var(--ink); stroke-width: 6; transition: fill var(--dur-3) var(--ease-out), stroke var(--dur-3) var(--ease-out); }
.tr-node.is-on, .tr-node--home { fill: var(--accent); stroke: var(--accent); }
.tr-way { fill: var(--ink-2); }
.tr-billet { fill: var(--c-cream); }
.no-js .tr-billet, .reduce-motion .tr-billet { display: none; }
.tr-l { font-family: var(--font-text); fill: var(--ink); }
.tr-l--port { font-size: 24px; font-weight: 650; transition: fill var(--dur-3) var(--ease-out); }
.tr-l--port.is-on { fill: var(--accent); }
.tr-l--way { font-size: 18px; font-weight: 550; fill: var(--ink-2); }
.tr-l--sea { font-size: 18px; font-style: italic; fill: var(--ink-2); }
.tr-l--cape, .tr-way--cape { opacity: 0.45; transition: opacity var(--dur-3) var(--ease-out); }
.tr-map[data-route="cape"] .tr-l--cape, .tr-map[data-route="cape"] .tr-way--cape { opacity: 1; }
.tr-map[data-route="cape"] .tr-net__cape { stroke-dasharray: none; }

.tr-map__info { display: grid; gap: var(--sp-3); align-content: start; padding: var(--m-pad); background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--m-step)) 0, 100% var(--m-step), 100% 100%, 0 100%); }
.tr-map__port { font-size: var(--fs-h2); line-height: 1; }
.tr-map__sea { font-weight: 620; color: var(--accent); }
.tr-map__route { font-size: var(--fs-lead); line-height: 1.4; }
.tr-map__time:empty { display: none; }
.tr-map__note { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--sp-3); }
.tr-map__info.is-swap > * { animation: tr-rise 500ms var(--ease-out) both; }
.tr-map__info.is-swap > :nth-child(2) { animation-delay: 50ms; }
.tr-map__info.is-swap > :nth-child(3) { animation-delay: 100ms; }
.tr-map__info.is-swap > :nth-child(4) { animation-delay: 150ms; }
@keyframes tr-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@media (min-width: 1000px) {
  .tr-map { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .tr-map__controls { grid-column: 1 / -1; }
  .tr-map__scroll { grid-column: 1; }
  .tr-map__info { grid-column: 2; }
}

.tr-methods { margin-top: var(--sp-9); }

/* ---------- 4. DOCUMENTS -------------------------------------------- */
@media (min-width: 768px) { .tr-docs__wide { grid-column: 1 / -1; } }
.tr-docs__note { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--ink-2); max-width: 62ch; }

/* ---------- 5. FAQ: the heading runs across, the questions sit right -- */
@media (min-width: 1000px) {
  .mkt--turkey .mkt-faq > h2 { grid-column: 1 / -1; position: static; max-width: 22ch; }
  .mkt--turkey .mkt-faq__list { grid-column: 2; }
}

/* ---------- 6. header legibility over the bright evening sky ---------- */
.mkt--turkey .mkt-hero__media::after { height: 14rem; background: linear-gradient(rgba(11, 36, 39, 0.78), rgba(11, 36, 39, 0)); }
