/* EV Tech Spot · the bottom of every collection page (23.11.2026; sections/evts-collection-more.liquid):
   the models / categories slider and "Good to know". Clear glass in the site's colours, like the home page's cards.
   Motion: only CSS, once (the script adds .is-armed / .is-in), and none with prefers-reduced-motion.
   Link icons: Lucide (lucide-static 1.78.0), ISC License, Copyright (c) 2026 Lucide Icons and Contributors. */
.evts-cb { display: grid; gap: 22px; padding-top: 14px; padding-bottom: 56px; }

/* ---- the slider panel */
.evts-cs, .evts-gk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 22px 50px -30px rgba(0, 0, 0, .85);
}
.evts-cs { padding: 22px 0 18px; }
.evts-cs::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 16% 0%, rgba(232, 33, 39, .13), transparent),
    radial-gradient(closest-side at 86% 100%, rgba(56, 92, 160, .15), transparent);
}
.evts-cs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 24px 16px; }
.evts-cs__title { margin: 0; color: #fff; font-size: 2.4rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.evts-cs__sub { margin: 6px 0 0; color: #a6aab3; font-size: 1.5rem; line-height: 1.5; }
.evts-cs__line { display: block; width: 72px; height: 3px; margin-top: 12px; border-radius: 2px; background: linear-gradient(90deg, #e82127, rgba(232, 33, 39, .15)); transform-origin: left center; }
[dir='rtl'] .evts-cs__line { transform-origin: right center; background: linear-gradient(270deg, #e82127, rgba(232, 33, 39, .15)); }
.evts-cs__arrows { display: flex; gap: 8px; flex: none; }
.evts-cs__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
.evts-cs__arrow:hover:not(:disabled), .evts-cs__arrow:focus-visible { border-color: #e82127; background: rgba(232, 33, 39, .14); }
.evts-cs__arrow:disabled { opacity: .3; cursor: default; }
[dir='rtl'] .evts-cs__arrow svg { transform: scaleX(-1); }
@media (hover: none), (max-width: 749px) { .evts-cs__arrows { display: none; } }

.evts-cs__track {
  list-style: none;
  margin: 0;
  padding: 4px 24px 10px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
.evts-cs__track::-webkit-scrollbar { display: none; }
.evts-cs__item { flex: none; margin: 0; scroll-snap-align: start; }
.evts-cs--models .evts-cs__item { width: 250px; }
.evts-cs--cats .evts-cs__item { width: 168px; }

/* ---- a card (the home page's clear glass) */
.evts-cs__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  color: #f3f4f6;
  text-decoration: none;
  font-family: var(--font-heading-family);
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018) 45%, rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .085), 0 18px 40px -28px rgba(0, 0, 0, .8);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.evts-cs__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .05) 46%, transparent 56%);
}
.evts-cs__card:hover, .evts-cs__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 0 1px color-mix(in srgb, var(--c, #e82127) 55%, transparent), 0 22px 44px -26px color-mix(in srgb, var(--c, #e82127) 60%, transparent);
}
.evts-cs__card:focus-visible { outline: 2px solid var(--c, #e82127); outline-offset: 3px; }

/* model card: TESLA, the model, its version in its colour, years, the colour bar, the number */
.evts-cs__card--model { padding: 18px 18px 16px; min-height: 210px; }
.evts-cs__glow { position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 60%, transparent), transparent 68%); opacity: .32; transition: opacity .35s ease; }
.evts-cs__card:hover .evts-cs__glow { opacity: .6; }
.evts-cs__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: #a6aab3; }
.evts-cs__brand svg { color: var(--c); flex: none; }
.evts-cs__name { margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; }
.evts-cs__ver { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.evts-cs__yrs { margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #a6aab3; }
.evts-cs__bar { display: block; height: 5px; margin: auto 0 12px; padding-top: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, #000), var(--c) 70%, #fff); }
.evts-cs__card--model .evts-cs__yrs, .evts-cs__card--model .evts-cs__ver:last-of-type { margin-bottom: 18px; }
.evts-cs__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evts-cs__n { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a6aab3; }
.evts-cs__n b { margin-inline-end: 5px; font-size: 18px; letter-spacing: 0; color: #f3f4f6; font-variant-numeric: tabular-nums; }
.evts-cs__go { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.evts-cs__go svg { transition: transform .3s ease; }
.evts-cs__card:hover .evts-cs__go svg { transform: translateX(3px); }
[dir='rtl'] .evts-cs__go svg { transform: scaleX(-1); }
[dir='rtl'] .evts-cs__card:hover .evts-cs__go svg { transform: scaleX(-1) translateX(3px); }

/* category card: the category's own icon in a round lens with the red ring, its name, its number */
.evts-cs__card--cat { align-items: center; gap: 8px; padding: 16px 10px 14px; text-align: center; }
.evts-cs__lens { position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: none; border-radius: 50%; background: #121317; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.evts-cs__ic { width: 32px; height: 32px; background: #e82127; -webkit-mask: var(--ic, none) center / contain no-repeat; mask: var(--ic, none) center / contain no-repeat; }
.evts-cs__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.evts-cs__ring circle { fill: none; stroke: #e82127; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 32 68; transition: stroke-dasharray .5s cubic-bezier(.3, .6, .2, 1); }
.evts-cs__card--cat:hover .evts-cs__ring circle { stroke-dasharray: 72 28; }
.evts-cs__cname { display: flex; align-items: center; justify-content: center; min-height: 2.5em; font-size: 14px; font-weight: 700; line-height: 1.25; }
.evts-cs__card--cat .evts-cs__n { letter-spacing: .12em; }
.evts-cs__card--cat .evts-cs__n b { font-size: 15px; }

@media (max-width: 749px) {
  .evts-cb { gap: 16px; padding-bottom: 40px; }
  .evts-cs { border-radius: 20px; padding: 18px 0 14px; }
  .evts-cs__head { padding: 0 16px 12px; }
  .evts-cs__title { font-size: 2.1rem; }
  .evts-cs__sub { font-size: 1.4rem; }
  .evts-cs__track { padding: 4px 16px 8px; gap: 10px; scroll-padding-inline: 16px; }
  .evts-cs--models .evts-cs__item { width: 66vw; max-width: 250px; }
  .evts-cs--cats .evts-cs__item { width: 38vw; max-width: 160px; }
  .evts-cs__card--model { min-height: 190px; padding: 16px 14px 14px; }
  .evts-cs__name { font-size: 22px; }
  .evts-cs__lens { width: 64px; height: 64px; }
  .evts-cs__ic { width: 28px; height: 28px; }
  .evts-cs__cname { font-size: 12.5px; }
}

/* the entrance, once, when the block comes on screen: the heading rises, the red line stretches, the first cards come
   in one after the other. Only after the script armed it, so without the script everything simply stands. */
@keyframes evts-cs-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes evts-cs-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes evts-cs-card { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.evts-cs.is-armed:not(.is-in) .evts-cs__title, .evts-cs.is-armed:not(.is-in) .evts-cs__sub, .evts-cs.is-armed:not(.is-in) .evts-cs__item:nth-child(-n+6) { opacity: 0; }
.evts-cs.is-armed:not(.is-in) .evts-cs__line { transform: scaleX(0); }
.evts-cs.is-in .evts-cs__title { animation: evts-cs-up .6s cubic-bezier(.2, .7, .2, 1) both; }
.evts-cs.is-in .evts-cs__sub { animation: evts-cs-up .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
.evts-cs.is-in .evts-cs__line { animation: evts-cs-line .7s cubic-bezier(.2, .7, .2, 1) .18s both; }
.evts-cs.is-in .evts-cs__item:nth-child(-n+6) { animation: evts-cs-card .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }

/* ---- "Good to know" */
.evts-gk { padding: 22px 24px 20px; }
.evts-gk::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .035) 46%, transparent 56%), radial-gradient(closest-side at 96% 0%, rgba(232, 33, 39, .1), transparent); }
.evts-gk__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.evts-gk__mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: #e82127; background: rgba(232, 33, 39, .1); box-shadow: inset 0 0 0 1px rgba(232, 33, 39, .35); }
.evts-gk__title { margin: 0; color: #fff; font-size: 2.1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.evts-gk__sub { margin: 4px 0 0; color: #a6aab3; font-size: 1.45rem; line-height: 1.5; }
.evts-gk__text { max-width: 920px; border-inline-start: 3px solid #d32f2f; padding-inline-start: 18px; color: #b9c0c7; font-size: 1.6rem; line-height: 1.7; transition: max-height .5s cubic-bezier(.2, .7, .2, 1); }
.evts-gk.is-folded .evts-gk__text { overflow: hidden; }
.evts-gk.is-folded:not(.is-open) .evts-gk__text { max-height: 3.4em; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.evts-gk__text > :first-child { margin-top: 0; }
.evts-gk__text > :last-child { margin-bottom: 0; }
.evts-gk__text p { margin: 0 0 1.2em; color: #b9c0c7; }
.evts-gk__text h2 { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.3; margin: 1.5em 0 .6em; letter-spacing: 0; }
.evts-gk__text h3 { color: #fff; font-size: 1.7rem; font-weight: 600; line-height: 1.35; margin: 1.3em 0 .4em; letter-spacing: 0; }
.evts-gk__text a { color: #ff6b63; text-underline-offset: 3px; }
.evts-gk__text table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1.5rem; }
.evts-gk__text th, .evts-gk__text td { border: 1px solid #2a2f34; padding: 10px 12px; text-align: start; vertical-align: top; color: #b9c0c7; }
.evts-gk__text th { background: #121416; color: #fff; font-weight: 600; }
.evts-gk__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 1.4rem; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.evts-gk__more::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s ease; }
.evts-gk.is-open .evts-gk__more::after { transform: rotate(-135deg) translate(-2px, 0); }
.evts-gk__more:hover, .evts-gk__more:focus-visible { border-color: #e82127; background: rgba(232, 33, 39, .1); }
.evts-gk__more[hidden] { display: none; }
.evts-gk__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.evts-gk__link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #f3f4f6; font-size: 1.4rem; font-weight: 600; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.evts-gk__link:hover, .evts-gk__link:focus-visible { border-color: #e82127; background: rgba(232, 33, 39, .1); }
.evts-gk__lic { width: 18px; height: 18px; flex: none; background: #e82127; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.evts-gk__lic--book { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='M12 5v16' /%3E%3Cpath d='M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z' /%3E%3C/svg%3E"); }
.evts-gk__lic--lib { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' %3E%3Cpath d='m16 6 4 14' /%3E%3Cpath d='M12 6v14' /%3E%3Cpath d='M8 8v12' /%3E%3Cpath d='M4 4v16' /%3E%3C/svg%3E"); }
@media (max-width: 749px) {
  .evts-gk { padding: 18px 16px 16px; border-radius: 20px; }
  .evts-gk__title { font-size: 1.9rem; }
  .evts-gk__text { padding-inline-start: 12px; font-size: 1.5rem; }
  .evts-gk__text table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .evts-cs *, .evts-gk * { animation: none !important; transition: none !important; }
  .evts-cs.is-armed:not(.is-in) * { opacity: 1 !important; transform: none !important; }
}
