/* ToteFlow's site. Everything else comes from CROSSFADE's stylesheets (the same look across the JbTecWiz
   product sites); this file only adds what ToteFlow's pages have that CROSSFADE's don't. */

/* The app's icon as the brand mark */
.tote-brand img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.cf-foot-product b img.tote-foot-icon { width: 20px; height: 20px; border-radius: 5px; vertical-align: -4px; }

/* ToteFlow's signature: the saddle-cloth colours of runners 1 to 8, as under the app's header and on its TV */
.tote-silks { height: 5px; border-radius: 3px; max-width: 420px; margin: 22px auto 0;
  background: linear-gradient(90deg, #e8453c 0 12.5%, #f4f4f0 12.5% 25%, #2f6fd6 25% 37.5%, #f2d02a 37.5% 50%, #2fa35a 50% 62.5%, #1b1b1b 62.5% 75%, #f28a2a 75% 87.5%, #f59ac0 87.5% 100%); }

/* Two phone screenshots side by side (the guests' live page) */
.tote-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 560px; margin: clamp(40px, 5vw, 64px) auto 0; }
.tote-phone { margin: 0; }
.tote-phone img { border-radius: 30px; width: 100%; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.tote-phone figcaption { margin-top: 12px; text-align: center; font-size: 14px; opacity: .7; }

/* Two cards in a row */
.tote-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.tote-two .card { padding: clamp(24px, 3vw, 36px); }
.tote-two .card h3 { margin: 14px 0 8px; }
@media (max-width: 760px) { .tote-two, .tote-phones { grid-template-columns: 1fr; } .tote-phones { max-width: 340px; } }

/* A screenshot pair under a chapter (two TV moments side by side) */
.tote-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.tote-pair figure { margin: 0; }
.tote-pair figcaption { margin-top: 10px; text-align: center; font-size: 14px; opacity: .7; }
@media (max-width: 760px) { .tote-pair { grid-template-columns: 1fr; } }

.tote-credit { margin-top: 18px; font-size: 13px; opacity: .65; text-align: center; }

/* The latest release's notes, beside the download */
.tote-latest ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.tote-latest li { line-height: 1.5; }
.tote-latest .tote-latest-v { font-weight: 600; margin: 0 0 10px; }

/* What's new: one card per version */
.tote-versions { display: grid; gap: 22px; }
.tote-version { padding: clamp(22px, 3vw, 34px); }
.tote-version h2 { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 28px); }
.tote-version .tote-v-meta { margin: 0 0 16px; opacity: .65; font-size: 14px; }
.tote-version ul { margin: 0; padding-left: 1.15em; display: grid; gap: 10px; }
.tote-version li { line-height: 1.55; }
.tote-version li b { font-weight: 600; }
.tote-version--latest { outline: 1px solid color-mix(in srgb, var(--a, #0a84ff) 55%, transparent); }

/* "Ask ToteFlow" (tote-bot.js, on CROSSFADE's cf-bot.css): the app's icon fills the round-cornered logo square */
.cf-bot-logo.tote-bot-logo { background: none; overflow: hidden; }
.cf-bot-logo.tote-bot-logo img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }

/* The thank-you sheet (CROSSFADE's cf-thanks.css, opened by tote-thanks.js): the installer's name in step 1,
   and the photo banner (CROSSFADE's and Nova's are drawings) kept dim enough for the title over it */
.cft--tote .cft-steps .tote-file { font-style: normal; font-weight: 500; color: var(--t-text); }
.cft--tote .cft-art img { object-fit: cover; opacity: .55; }

/* Light mode: the dark bands (the hero, the TV chapters) stay dark, so what's in them keeps its dark-mode look,
   as on Nova IPTV's site. (The :not()s outweigh light.css's id-strength rules.) */
@media (prefers-color-scheme: light) {
  html body .ch--dark { --dg-edge: linear-gradient(135deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .02) 55%, rgba(255, 255, 255, .1) 78%, rgba(255, 255, 255, .4) 100%); --dg-rim: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 14px 24px -18px rgba(255, 255, 255, .2), inset 0 -16px 26px -20px rgba(255, 255, 255, .1); }
  html body .ch--dark .facts b { background-image: linear-gradient(180deg, #fff 35%, #b4b4ba); }
  html body .ch--dark .facts > div:last-child b { background-image: linear-gradient(135deg, #ffb340, #ff6a3d 55%, #ff3d8b); }
  html body .ch--dark .facts span { color: #a1a1a6; }
  html body .ch--dark .facts > div + div::before { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16), transparent); }
  html body .ch--dark :is(.card, .facts):not(#_n1):not(#_n2) { background-color: #1c1c1e !important; border-color: transparent !important; box-shadow: none !important; }
  html body .ch--dark .card:not(#_n1):not(#_n2) { background-image: var(--cf-light, linear-gradient(transparent, transparent)), linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%) !important; }
  html body .ch--dark .facts:not(#_n1):not(#_n2) { background-image: none !important; }
  html body .ch--dark .card :is(h3, .cf-stat) { color: #f5f5f7; }
  html body .ch--dark .card p { color: #a1a1a6; }
  html body .ch--dark .tote-pair figcaption { color: #a1a1a6; }
}
