/* mistProxy — site-side overrides for the shared Mist Network kit (assets/mist-network/mist-network.css).
   The kit is copied into every Mist site and must not be edited here; these rules patch its known issues
   until the shared file is fixed (see PR notes). Loaded right after mist-network.css via mn_site_head(). */

/* PROXY-18: Telegram community cards overflowed on phones. The base rule `.mn-foot .mn-cta__card` (0,2,0)
   keeps flex-direction:column while the ≤520px rule adds flex-wrap:wrap + `.mn-cta__d{flex-basis:100%}`,
   so description and button wrapped into new columns outside the card. */
@media (max-width: 520px) {
  .mn-foot .mn-cta__card, .mn-cta__card { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; min-width: 0; }
  .mn-foot .mn-cta__card strong, .mn-cta__card strong { flex: none; }
  .mn-cta__d { flex: none; width: 100%; min-width: 0; overflow-wrap: anywhere; }
}

/* PROXY-23: "Live support" card rendered white text on the near-transparent --mn-fill, because
   `.mn-foot .mn-cta__card{background:var(--mn-fill)}` (0,2,0) beats `.mn-cta__card--support` (0,1,0). Darker Telegram blue keeps white text ≥4.5:1. */
.mn-foot .mn-cta__card--support, .mn-cta__card--support { background: linear-gradient(135deg, #1878ad, #0f6797); border-color: transparent; color: #fff; }
.mn-foot .mn-cta__card--support:hover, .mn-cta__card--support:hover { border-color: transparent; }
.mn-cta__card--support .mn-cta__d { color: #fff; }

/* PROXY-20: ticker links were only ~16px tall and tags 10px. Stretch every link to the full bar height
   (≥32px touch target) and raise the small text. (The duplicated marquee group is aria-hidden but its
   links stay focusable — that needs tabindex="-1"/inert in the shared MistNet::bar() markup.) */
.mn-bar { height: 34px; }
.mn-bar__group { align-items: stretch; }
.mn-bar__item { align-items: center; }
.mn-bar__label { font-size: 12px; }
.mn-bar__tag { font-size: 12px; padding: 3px 7px; }
.mn-bar__tg { font-size: 12.5px; }
@media (max-width: 640px) {
  .mn-bar { height: 36px; font-size: 13px; }
  .mn-bar__label span, .mn-bar__label { font-size: 0; }
  .mn-bar__label { min-width: 36px; justify-content: center; }
  .mn-bar__tg { min-width: 40px; justify-content: center; }
}

/* PROXY-27: Telegram card links (#229ED9 on near-white ~3:1) -> darker blue >=4.5:1. */
.mn-cta__card:not(.mn-cta__card--support) .mn-cta__btn { color: #0f6797; }

/* GENEL-15: align the shared footer blocks with the site's own footer (.container = 1120px, 20px gutter) so every left/right edge matches. */
.mn-cta { padding-left: 20px; padding-right: 20px; }
.mn-cta__in { max-width: 1080px; }
.mn-foot__in { max-width: 1120px; padding-left: 20px; padding-right: 20px; }
