/* Taté portal — design polish layer (2026-11-11). Loaded last in the page head; remove the <link> to roll back. */

/* 1. Ground: brand Indigo → Ink depth instead of flat Ink everywhere */
body{
  background-color:#141e3f!important;
  background-image:
    radial-gradient(60% 55% at 78% -6%,rgba(0,156,224,.20),transparent 62%),
    radial-gradient(45% 50% at 8% 0%,rgba(62,194,87,.10),transparent 60%),
    linear-gradient(180deg,#202856 0%,#18214a 38%,#0f1830 100%)!important;
  background-attachment:fixed!important;
}

/* 2. Surfaces: cards one clear step lighter than the ground */
.bg-white{background-color:rgba(255,255,255,.05)!important}
.bg-white.rounded-xl,.bg-white.rounded-2xl,a.group.bg-white{box-shadow:0 0 0 1px rgba(156,169,198,.18),0 10px 30px rgba(0,0,0,.22)!important}
aside[class*="bg-white/"],details.tm-linepick{background-color:rgba(255,255,255,.045)!important}
thead,th{background-color:rgba(255,255,255,.06)!important;color:#C3CCE0!important}
tbody tr:nth-child(even){background-color:rgba(255,255,255,.025)}
tbody tr:hover{background-color:rgba(0,156,224,.08)}
input,select,textarea{background-color:rgba(11,22,40,.55)!important}

/* 3. Readable secondary text: brand Muted #9CA9C6 or lighter, nothing under 12.5px */
[class*="text-white/4"],[class*="text-white/5"],[class*="text-white/6"]{color:#9CA9C6!important}
[class*="text-white/7"],[class*="text-white/8"]{color:#C3CCE0!important}
[class*="text-slate-"],[class*="text-gray-"]{color:#B4BFD6!important}
.text-xs{font-size:.8125rem!important;line-height:1.2rem!important}
[class*="text-[11px]"],[class*="text-[10px]"]{font-size:12px!important}
#specsCount{color:#9CA9C6!important}
footer p,footer span,footer div{color:#B4BFD6}

/* 4. Desktop: line menu becomes the compact picker (as on mobile); content gets full width */
@media (min-width:1024px){
  details.tm-linepick{display:block!important;max-width:420px}
  .mt-6.flex.gap-10>aside.sticky{display:none!important}
  details.tm-linepick>div{max-height:60vh;overflow-y:auto}
}

/* 5. Phones: product table as cards (labels added by tate-polish.js) */
@media (max-width:640px){
  #specsTable thead{display:none}
  #specsTable,#specsTable tbody,#specsTable tr,#specsTable td{display:block;width:100%}
  #specsTable tr{border-radius:12px;margin:0 0 10px;padding:10px 14px;background:rgba(255,255,255,.05)!important;box-shadow:0 0 0 1px rgba(156,169,198,.18)}
  #specsTable td{display:flex;justify-content:space-between;gap:14px;padding:5px 0!important;border:0!important;text-align:right;white-space:normal!important}
  #specsTable td::before{content:attr(data-label);color:#9CA9C6;text-align:left;font-size:12.5px;flex-shrink:0}
  #specsTable td:first-child{font-family:Montserrat,system-ui,sans-serif;font-weight:700;color:#fff!important;font-size:15px;border-bottom:1px solid rgba(156,169,198,.16)!important;padding-bottom:8px!important;margin-bottom:4px}
  #specsTable td:first-child::before{display:none}
  #specsTable td:empty{display:none}
  .overflow-x-auto:has(#specsTable){overflow:visible!important;box-shadow:none!important;background:transparent!important;border-radius:0!important}
}

/* 6. Sticky section tabs match the new ground */
#tm-sections{background-color:rgba(24,33,74,.88)!important}

/* 7. Folded filters */
details.tp-filters{margin:0 0 14px}
details.tp-filters>summary{display:inline-flex;align-items:center;gap:8px;cursor:pointer;list-style:none;border-radius:999px;padding:8px 16px;font-size:14px;font-weight:600;color:#fff;box-shadow:inset 0 0 0 1px rgba(156,169,198,.3)}
details.tp-filters>summary::-webkit-details-marker{display:none}
details.tp-filters>summary::after{content:"";width:7px;height:7px;border-right:2px solid #009CE0;border-bottom:2px solid #009CE0;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
details.tp-filters[open]>summary::after{transform:rotate(-135deg) translateY(-1px)}
details.tp-filters>#specsFilterBar{margin-top:12px}

/* 8. Product images (tate-polish.js adds them only where a file exists) */
.tp-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,400px);gap:32px;align-items:center}
.tp-hero-tx{min-width:0}
.tp-hero-img{margin:0;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(156,169,198,.18),0 14px 40px rgba(0,0,0,.30)}
.tp-hero-img img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
@media (max-width:900px){.tp-hero{grid-template-columns:1fr;gap:18px}.tp-hero-img{max-width:520px}}
@media (max-width:640px){.tp-hero{gap:14px}.tp-hero-img{max-width:300px;border-radius:12px}}
a.tp-tile-img{flex-direction:row!important;align-items:center;justify-content:flex-start!important;gap:12px}
a.tp-tile-img .tp-thumb{width:64px;height:40px;object-fit:cover;border-radius:6px;background:#fff;flex-shrink:0}
a.tp-tile-img .tp-tx{display:flex;flex-direction:column;min-width:0}
a.tp-card-img{overflow:hidden}
a.tp-card-img .tp-thumb{display:block;width:calc(100% + 3rem);max-width:none;margin:-1.5rem -1.5rem 1.1rem;aspect-ratio:16/9;object-fit:cover;background:#fff}

/* 9. Homepage hero: text + training video loop */
section.tp-hh{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:44px;align-items:center;text-align:left!important;padding-top:3rem!important;padding-bottom:2rem!important}
.tp-hh-tx h1{font-size:clamp(2.25rem,4.2vw,3.5rem)!important;line-height:1.05;text-wrap:balance}
.tp-hh-tx>p,.tp-hh-tx>div{margin-left:0!important;margin-right:0!important}
.tp-hh-media{border-radius:18px;overflow:hidden;aspect-ratio:16/9;background:#0b1628;box-shadow:0 0 0 1px rgba(156,169,198,.18),0 18px 44px rgba(0,0,0,.36)}
.tp-hh-video{display:block;width:100%;height:100%;object-fit:cover}
@media (max-width:900px){section.tp-hh{grid-template-columns:1fr;gap:24px;padding-top:2rem!important}}
