/* =========================================================
   NTTS — SIGNAL RELAY FEED (WHITE THEME, CLEAN + POLISHED)
   File: /signal/relay/assets/SR_feed.css
   ========================================================= */

:root{
  --r-card: 16px;
  --r-media: 14px;
  --r-btn: 12px;
  --r-pill: 999px;

  --bg:#ffffff;
  --panel:#ffffff;

  --text:#333333;
  --muted:rgba(51,51,51,.62);

  /* TRUE steel-blue */
  --accent:#3F5E72;

  --stroke:rgba(51,51,51,.14);
  --stroke-soft:rgba(51,51,51,.10);
  --shadow:0 16px 44px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,Segoe UI,Roboto,Arial,sans-serif;
}

/* =========================
   Topbar
   ========================= */

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--stroke-soft);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
}

.brandIcon{
  width:28px;
  height:28px;
  border-radius:10px;
  flex:0 0 auto;
}

.brandText{
  font-size:15px;
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================
   Page wrap
   ========================= */

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:14px 14px 90px;
}

/* =========================
   Filter rings (GROUPED)
   ========================= */

.rings{
  display:flex;
  gap:8px;
  align-items:flex-start;
  overflow:auto;
  padding:8px 0 2px;
  margin:0 0 10px 0;
  -webkit-overflow-scrolling: touch;
}
.rings::-webkit-scrollbar{display:none}

.ringGroup{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width: 84px;
}

.ringLabel{
  font-size:12px;
  font-weight:950;
  color: rgba(51,51,51,.70);
  padding-left:2px;
}

.ringRow{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ring{
  flex:0 0 auto;
  width:54px;
  height:54px;
  border-radius: 999px;
  display:grid;
  place-items:center;

  border:2px solid rgba(51,51,51,.18);
  background: rgba(255,255,255,.9);
  color: rgba(51,51,51,.78);

  font-size:12px;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}

/* Hover only on devices that actually hover (prevents sticky hover rings on mobile) */
@media (hover:hover) and (pointer:fine){
  .ring:hover{ border-color: rgba(63,94,114,.35); }
}
.ring:active{ transform: scale(0.98); }

/* Active ring */
.ring.is-active{
  color:#ffffff;
  background: rgba(63,94,114,.92);
  border-color: rgba(63,94,114,.92);
  box-shadow: 0 0 0 3px rgba(63,94,114,.18) inset;
}

.ring.is-disabled{ opacity: 0.35; }

    ==========
   Section head
   ========================= */

.sectionHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:6px 2px 0;
}

.sectionHead h2{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.2px;
}

.count{
  font-size:12px;
  font-weight:900;
  color: var(--muted);
}

#feedStatus{
  font-size:12px;
  opacity:.6;
  margin:6px 2px 0;
}

.filterLabel{
  font-size:12px;
  font-weight:900;
  color: var(--muted);
  margin: 2px 2px 4px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

/* =========================
   Grid
   ========================= */

.grid{
  display:grid;
  gap:14px;
  margin-top:10px;
}

@media (min-width:980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================
   Vehicle Card (anchor-safe)
   ========================= */

.card{
  display:block;
  text-decoration:none;
  color:inherit;

  border-radius: var(--r-card);
  border:2px solid rgba(51,51,51,.18);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow:hidden;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.card:active{
  transform: scale(0.99);
  border-color: rgba(51,51,51,.16);
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
}

.card:focus-visible{
  outline:none;
  border-color: rgba(63,94,114,.55);
  box-shadow: 0 0 0 4px rgba(63,94,114,.14), var(--shadow);
}

/* =========================
   MEDIA (LOCKED: COVER MODE)
   ========================= */

.media{
  background:#f3f4f8;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.media.noPhoto{
  display:grid;
  place-items:center;
}
.media .noPhotoMsg{
  display:none;
  padding:10px 12px;
  font-size:13px;
  color:rgba(51,51,51,.55);
}
.media.noPhoto .noPhotoMsg{ display:block; }

/* =========================
   Info bar
   ========================= */

.infoBar{
  padding:12px 14px 14px;
  border-top:1px solid var(--stroke-soft);
  background:#ffffff;
}

.infoBar .t{
  font-size:16px;
  font-weight:950;
  letter-spacing:-.2px;
  line-height:1.15;
  margin:0 0 6px 0;
}

.infoBar .m{
  font-size:12px;
  font-weight:900;
  color:rgba(51,51,51,.62);
  margin:0 0 6px 0;
}

.infoBar .pm{
  font-size:12px;
  font-weight:950;
  color:rgba(51,51,51,.82);
  margin:0;
}

/* =========================
   Empty state
   ========================= */

.empty{
  margin-top:18px;
  padding:18px 16px;
  border-radius: 16px;
  border:1px solid var(--stroke-soft);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
  color: rgba(51,51,51,.84);
}

.empty strong{
  display:block;
  font-weight:950;
  margin-bottom:6px;
}

.empty div{
  font-size:13px;
  line-height:1.35;
  color: rgba(51,51,51,.62);
}

/* =========================
   Top button (pill)
   ========================= */

.topPill{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;

  border:1px solid var(--stroke-soft);
  background: rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(12px);

  padding:10px 18px;
  border-radius: var(--r-pill);

  font-size:12px;
  font-weight:950;
  color: rgba(51,51,51,.86);

  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
}

.topPill:active{
  transform: translateX(-50%) translateY(1px) scale(.99);
}