/* Images, diagrams, logo strips and video frames for the content pages. Loaded after tw-content.css. */

/* Hero with an image beside the text (image optional: page adds .has-media only if the file exists) */
.tw-hero-grid { display: grid; gap: 28px; align-items: center; }
.tw-hero-media { margin: 0; }
.tw-hero-media img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .14); }
@media (min-width: 900px) { .tw-hero-grid.has-media { grid-template-columns: 1.15fr .85fr; gap: 44px; } }

/* Timeline diagram: how long each route takes (real HTML text, so it can be read, translated and searched) */
.tw-timeline { margin: 6px 0 26px; }
.tw-tl-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin: 10px 0; }
.tw-tl-label { font-weight: 700; color: #37423b; font-size: 15px; line-height: 1.3; }
.tw-tl-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.tw-tl-bar { padding: 11px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tw-tl-centre { background: #3F428F; color: #fff; grid-column: span 3; }
.tw-tl-company { background: #00b8ff; color: #0b2a3a; grid-column: span 3; }
.tw-tl-ticks .tw-tl-track span { font-size: 12px; color: #5b6b7d; text-align: left; padding-left: 2px; border-left: 1px solid #cfdbe4; }
.tw-timeline figcaption { font-size: 14px; color: #5b6b7d; margin-top: 8px; }
@media (max-width: 640px) {
  .tw-tl-row { grid-template-columns: 1fr; gap: 4px; }
  .tw-tl-bar { font-size: 13px; padding: 9px 8px; }
}

/* Tool logo strip */
.tw-logos { list-style: none; padding: 0 !important; margin: 14px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tw-logos li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; border: 1px solid #dfe8ee; border-radius: 8px; background: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; color: #37423b; }
.tw-logos img { width: 22px; height: 22px; flex: none; }
.tw-logos i { font-size: 20px; color: #64748b; line-height: 1; }

/* Vertical video (YouTube Short) in a phone frame; the video loads only when pressed */
.tw-short { margin: 22px 0 6px; }
.tw-short[hidden] { display: none; }
.tw-phone { width: min(300px, 100%); aspect-ratio: 9 / 16; border: 8px solid #1a202c; border-radius: 28px; overflow: hidden; position: relative; background: #0f172a; }
.tw-short-play { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; }
.tw-short-play img { width: 100%; height: auto; display: block; }
.tw-short-play:focus-visible { outline: 3px solid #00b8ff; outline-offset: -3px; }
.tw-play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.tw-play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #3F428F; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.tw-phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tw-short figcaption { font-size: 14px; color: #5b6b7d; margin-top: 10px; max-width: 300px; }

@media (prefers-reduced-motion: reduce) { .tw-play { box-shadow: none; } }
