/*
 * FlowTools ship speed tool pages (the tool page, a ship's page, the Fastest Cruise Ships board): only what the shared
 * .ct-tool base (conditions-tool.css) does not hold. Prism mock docs/design/speed-tool/mock.html. Every selector is scoped
 * .ct-tool.ct-tool--speed (0,3,0) so theme rules never win and nothing here reaches another tool's page. Colours come from
 * the --ct-embed-* tokens only, with defaults; there are no fonts, logos or site names here, so it works unchanged on any
 * Flow site. Every class is in the server-rendered HTML (JCH two-pass): the script only adds tabs, Share and Copy.
 * Tap targets are 44px (chips 36px).
 */
.ct-tool.ct-tool--speed .ct-tool__pick { align-items: flex-end; }
.ct-tool.ct-tool--speed .ct-tool__field--wide { flex-basis: 100%; }
.ct-tool.ct-tool--speed .ct-tool__show { font: inherit; font-size: 0.95em; font-weight: 700; min-height: 44px; padding: 6px 16px; border: 1px solid var(--ct-embed-accent, #2c4f6b); border-radius: 6px; background: var(--ct-embed-accent, #2c4f6b); color: #fff; cursor: pointer; }
.ct-tool.ct-tool--speed .ct-tool__show:focus-visible { outline: 2px solid #8a4b00; outline-offset: 2px; }

/* the two numbers */
.ct-tool.ct-tool--speed .ct-speed__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.ct-tool.ct-tool--speed .ct-speed__num { margin: 0; background: #fff; border: 1px solid #dde2e6; border-top: 4px solid var(--ct-embed-accent, #2c4f6b); border-radius: 6px; padding: 8px 10px 10px; display: grid; gap: 2px; align-content: start; }
.ct-tool.ct-tool--speed .ct-speed__label { font-weight: 700; font-size: 0.78em; line-height: 1.25; color: #1d1d1d; }
.ct-tool.ct-tool--speed .ct-speed__label small { display: block; font-weight: 400; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__val { margin: 0; display: block; }
.ct-tool.ct-tool--speed .ct-speed__units, .ct-tool.ct-tool--speed .ct-speed__kind, .ct-tool.ct-tool--speed .ct-speed__nohow { display: block; margin-top: 2px; }
.ct-tool.ct-tool--speed .ct-speed__big { font-size: 1.9em; line-height: 1.1; color: #1d1d1d; font-variant-numeric: tabular-nums; }
.ct-tool.ct-tool--speed .ct-speed__val abbr { font-size: 0.85em; font-weight: 600; text-decoration: none; }
.ct-tool.ct-tool--speed .ct-speed__units { font-size: 0.85em; line-height: 1.35; color: #333; font-variant-numeric: tabular-nums; }
.ct-tool.ct-tool--speed .ct-speed__kind { font-size: 0.72em; line-height: 1.3; color: #5f6b6d; }
/* no data: dashed, hollow circle, words about the data. Never a 0, never a dash. */
.ct-tool.ct-tool--speed .ct-speed__num[data-state="none"] { border: 1px dashed #9aa5ad; background: transparent; }
.ct-tool.ct-tool--speed .ct-speed__none { display: flex; gap: 6px; align-items: center; font-weight: 600; line-height: 1.3; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__none::before { content: ""; width: 0.8em; height: 0.8em; border: 2px solid currentColor; border-radius: 50%; flex: none; }
.ct-tool.ct-tool--speed .ct-speed__nohow { font-size: 0.75em; line-height: 1.35; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__panel { border: 1px dashed #9aa5ad; border-radius: 6px; padding: 12px 14px; display: grid; gap: 6px; }
.ct-tool.ct-tool--speed .ct-speed__panel p { margin: 0; }
.ct-tool.ct-tool--speed .ct-speed__real { margin: 10px 0 0; padding: 8px 12px; background: var(--ct-embed-tint, #f6f7f8); border-left: 4px solid var(--ct-embed-accent, #2c4f6b); border-radius: 0 6px 6px 0; font-size: 0.9em; }
.ct-tool.ct-tool--speed .ct-speed__reported { margin: 10px 0 0; padding: 8px 12px; border: 1px solid #c9d1d8; border-radius: 6px; font-size: 0.9em; background: #fff; }
.ct-tool.ct-tool--speed .ct-speed__reported b { color: #1d1d1d; }
.ct-tool.ct-tool--speed .ct-speed__rank { margin: 10px 0 0; font-size: 0.92em; }
.ct-tool.ct-tool--speed .ct-speed__notice { margin: 0 0 10px; padding: 8px 12px; border: 1px solid #c9d1d8; border-radius: 6px; font-size: 0.9em; background: #fff; }
.ct-tool.ct-tool--speed .ct-speed__help { margin: 6px 0 0; font-size: 0.8em; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__h3 { margin: 14px 0 4px; font-size: 1em; line-height: 1.3; color: #1d1d1d; }

/* compare lists and lanes (the same lane serves the compare lists and the card) */
.ct-tool.ct-tool--speed .ct-speed__tabs { display: flex; gap: 0; border: 1px solid #c9d1d8; border-radius: 6px; overflow: hidden; margin: 0 0 6px; }
.ct-tool.ct-tool--speed .ct-speed__tabs button { flex: 1; font: inherit; font-size: 0.82em; font-weight: 600; line-height: 1.25; min-height: 44px; border: 0; background: #fff; color: #333; padding: 4px 6px; cursor: pointer; }
.ct-tool.ct-tool--speed .ct-speed__tabs button[aria-selected="true"] { background: var(--ct-embed-accent, #2c4f6b); color: #fff; }
.ct-tool.ct-tool--speed .ct-speed__lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ct-tool.ct-tool--speed .ct-speed__lane { display: grid; gap: 2px; margin: 0; }
.ct-tool.ct-tool--speed .ct-speed__who { font-size: 0.88em; color: #1d1d1d; font-weight: 700; }
.ct-tool.ct-tool--speed .ct-speed__who em { font-style: normal; font-weight: 400; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__tag { justify-self: start; font-size: 0.78em; color: #5f6b6d; border: 1px solid #c9d1d8; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.ct-tool.ct-tool--speed .ct-speed__bar { display: block; width: 100%; height: 12px; background: #eef1f3; border-radius: 0 3px 3px 0; }
.ct-tool.ct-tool--speed .ct-speed__bar rect { fill: #9fb3c4; }
.ct-tool.ct-tool--speed .ct-speed__lane--mine .ct-speed__bar rect { fill: var(--ct-embed-accent, #2c4f6b); }
.ct-tool.ct-tool--speed .ct-speed__figure { font-size: 0.8em; color: #333; font-variant-numeric: tabular-nums; }
.ct-tool.ct-tool--speed .ct-speed__figure b { color: #1d1d1d; }
.ct-tool.ct-tool--speed .ct-speed__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ct-tool.ct-tool--speed .ct-speed__chip { font-size: 0.82em; min-height: 36px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #c9d1d8; border-radius: 999px; color: #333; text-decoration: none; }
.ct-tool.ct-tool--speed .ct-speed__chip.is-current { border-color: var(--ct-embed-accent, #2c4f6b); color: var(--ct-embed-accent, #2c4f6b); font-weight: 700; }

/* head-to-head / share card */
.ct-tool.ct-tool--speed .ct-speed__card { margin: 14px 0 0; border: 1px solid #c9d1d8; border-radius: 10px; padding: 14px; background: #fff; display: grid; gap: 10px; }
.ct-tool.ct-tool--speed .ct-speed__card-head { display: grid; gap: 2px; font-size: 1.1em; color: #1d1d1d; }
.ct-tool.ct-tool--speed .ct-speed__pairlabel { font-size: 0.8em; font-weight: 400; color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__verdict { margin: 0; font-size: 0.95em; color: #1d1d1d; font-weight: 700; }
.ct-tool.ct-tool--speed .ct-speed__card-foot { margin: 0; font-size: 0.75em; color: #5f6b6d; overflow-wrap: anywhere; }
.ct-tool.ct-tool--speed .ct-speed__share { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.ct-tool.ct-tool--speed .ct-speed__btn { font: inherit; font-size: 0.9em; font-weight: 600; min-height: 44px; padding: 0 14px; border: 1px solid var(--ct-embed-accent, #2c4f6b); color: var(--ct-embed-accent, #2c4f6b); background: #fff; border-radius: 6px; cursor: pointer; }
.ct-tool.ct-tool--speed .ct-speed__btn--quiet { border-color: #c9d1d8; color: #333; }

/* the board and the sources list */
.ct-tool.ct-tool--speed .ct-speed__board { list-style: none; margin: 0; padding: 0; }
.ct-tool.ct-tool--speed .ct-speed__board li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 0; border-top: 1px solid #e6eaee; align-items: baseline; font-size: 0.9em; }
.ct-tool.ct-tool--speed .ct-speed__board li:first-child { border-top: 0; }
.ct-tool.ct-tool--speed .ct-speed__rank-n { color: #5f6b6d; font-variant-numeric: tabular-nums; }
.ct-tool.ct-tool--speed .ct-speed__board .ct-speed__figure { text-align: right; white-space: nowrap; }
.ct-tool.ct-tool--speed .ct-speed__sources { margin: 0; padding-left: 1.1em; font-size: 0.88em; display: grid; gap: 4px; }
.ct-tool.ct-tool--speed .ct-speed__sources a { color: var(--ct-embed-accent, #2c4f6b); }

/* No script: both compare lists are in the markup one after the other. With script they become tabs (speed.js adds [data-ct-tabs]). */
.ct-tool.ct-tool--speed [data-ct-speed-compare][data-ct-tabs] .ct-speed__list[hidden] { display: none; }
.ct-tool.ct-tool--speed [data-ct-speed-compare][data-ct-tabs] .ct-speed__h3 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 380px) {
    .ct-tool.ct-tool--speed .ct-speed__nums { gap: 6px; }
    .ct-tool.ct-tool--speed .ct-speed__big { font-size: 1.6em; }
}

/* 2.13.0 review round (Helm, Prism): off-scale bars, the compare window, the board's Line select, Share as the primary button */
.ct-tool.ct-tool--speed .ct-speed__bar--off { background: transparent; }
.ct-tool.ct-tool--speed .ct-speed__bar--off polygon { fill: #9fb3c4; }
.ct-tool.ct-tool--speed .ct-speed__lane--mine .ct-speed__bar--off polygon { fill: var(--ct-embed-accent, #2c4f6b); }
.ct-tool.ct-tool--speed .ct-speed__muted { color: #5f6b6d; }
.ct-tool.ct-tool--speed .ct-speed__nb { white-space: nowrap; }
.ct-tool.ct-tool--speed .ct-speed__more { margin: 8px 0; }
.ct-tool.ct-tool--speed .ct-speed__more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; font-size: 0.88em; color: var(--ct-embed-accent, #2c4f6b); }
.ct-tool.ct-tool--speed .ct-speed__slotlines { margin: 6px 0 0; padding-left: 1.1em; font-size: 0.92em; display: grid; gap: 2px; }
.ct-tool.ct-tool--speed .ct-speed__btn { background: var(--ct-embed-accent, #2c4f6b); border-color: var(--ct-embed-accent, #2c4f6b); color: #fff; }
.ct-tool.ct-tool--speed .ct-speed__btn--quiet { background: #fff; border-color: var(--ct-embed-accent, #2c4f6b); color: var(--ct-embed-accent, #2c4f6b); }
