/* Market Analysis pages (market-analysis, live-scan, market-pulse, briefings, alerts). */

.ma-hero { padding: clamp(40px, 5vw, 64px) 0 clamp(26px, 3vw, 38px); }
.ma-hero .markets-hero-h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.02; }
.ma-hero .markets-hero-h1.ma-hero-h1--sub { font-size: clamp(34px, 4vw, 56px); }
.ma-hero .markets-hero-h1 br { display: none; }
.ma-hero .markets-hero-lead { margin-top: 14px; max-width: 780px; font-size: clamp(14px, 1.15vw, 17px); }
.ma-tabs { margin-top: 22px; }
.ma-tabs .markets-pill.ma-tab--active {
  color: var(--text-0);
  border-color: var(--green-border);
  background: var(--green-bg);
}

.ma-main { padding: 8px 0 72px; }

.ma-up { color: var(--green-text); }
.ma-down { color: var(--red); }
.ma-warn { color: var(--yellow); }

/* ---------- today's-in-the-terminal banner ---------- */

.ma-today {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 0 0 32px;
  border: 1px solid var(--green-border);
  background: var(--green-bg);
  border-radius: 14px;
}
.ma-today__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow, rgba(0, 230, 153, 0.5));
  animation: ma-pulse 2s infinite;
}
@keyframes ma-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 153, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 153, 0); }
}
@media (prefers-reduced-motion: reduce) { .ma-today__dot { animation: none; } }
.ma-today__text { flex: 1; color: var(--text-1); font-size: 15px; line-height: 1.5; }
.ma-today__text strong { color: var(--text-0); font-weight: 600; }
.ma-today__btn { flex: 0 0 auto; white-space: nowrap; }

/* ---------- toolbar, segmented buttons, selects ---------- */

.ma-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ma-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-1);
  max-width: 100%;
  overflow-x: auto;
}
.ma-seg--wrap { flex-wrap: wrap; overflow: visible; }
.ma-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-1);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.ma-seg__btn:hover { color: var(--text-0); background: var(--bg-2); }
.ma-seg__btn--on, .ma-seg__btn--on:hover { color: var(--text-0); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.ma-seg__n { color: var(--text-3); margin-left: 4px; }
.ma-seg__btn--on .ma-seg__n { color: var(--text-1); }

.ma-select { display: inline-flex; align-items: center; gap: 10px; }
.ma-select__label { font-size: 11px; letter-spacing: 0.14em; color: var(--text-2); }
.ma-select select {
  font: inherit;
  font-size: 14px;
  color: var(--text-0);
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 160px;
}

.ma-note { color: var(--text-2); font-size: 14px; margin: 0 0 20px; }

/* ---------- day navigation ---------- */

.ma-daynav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ma-daynav__btn { justify-self: start; font-size: 14px; padding: 8px 14px; }
.ma-daynav__btn:last-child { justify-self: end; }
.ma-daynav__btn.is-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.ma-daynav__day { text-align: center; }
.ma-daynav__kicker { font-size: 10px; letter-spacing: 0.2em; color: var(--text-3); }
.ma-daynav__date { font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: var(--text-0); margin-top: 2px; }

/* ---------- states, links ---------- */

.ma-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-1);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.ma-state--warn { color: var(--yellow); border-color: rgba(232, 179, 57, 0.35); }
.ma-link, .ma-back {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--green-text);
  cursor: pointer;
  text-decoration: none;
}
.ma-link:hover, .ma-back:hover { text-decoration: underline; }
.ma-back { display: inline-block; font-size: 14px; margin-bottom: 16px; }
.ma-inline-cta { display: inline-block; margin-top: 24px; color: var(--green-text); text-decoration: none; font-size: 15px; }
.ma-inline-cta:hover { text-decoration: underline; }

/* ---------- cards ---------- */

.ma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.ma-grid--wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.ma-timeline { display: grid; gap: 14px; max-width: 900px; }

.ma-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-1);
  min-width: 0;
  scroll-margin-top: 90px;
}
.ma-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ma-card__sym { font-size: 18px; font-weight: 600; color: var(--text-0); letter-spacing: -0.01em; }
.ma-card__sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ma-card__meta { text-align: right; }
.ma-card__price { font-size: 16px; color: var(--text-0); }
.ma-card__time { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; margin-top: 2px; }
.ma-card__structure { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ma-card__lede { margin: 0; font-size: 15px; color: var(--text-0); line-height: 1.5; font-weight: 500; }
.ma-card__body { margin: 0; font-size: 14px; color: var(--text-1); line-height: 1.6; }
.ma-card__more {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-top: auto;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: var(--green-text);
  cursor: pointer;
}
.ma-card__more:hover { text-decoration: underline; }

.ma-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-chips:empty { display: none; }
.ma-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  background: var(--bg-2);
  text-decoration: none;
  white-space: nowrap;
}
.ma-chip--up { color: var(--green-text); border-color: var(--green-border); background: var(--green-bg); }
.ma-chip--down { color: var(--red); border-color: rgba(255, 77, 77, 0.3); background: var(--red-bg); }
.ma-chip--warn { color: var(--yellow); border-color: rgba(232, 179, 57, 0.35); background: rgba(232, 179, 57, 0.08); }

.ma-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.ma-levels__label { font-size: 10px; letter-spacing: 0.16em; color: var(--text-3); min-width: 82px; }
.ma-levels__v--up { color: var(--green-text); }
.ma-levels__v--down { color: var(--red); }

.ma-watch__label, .ma-block__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  margin: 0 0 6px;
  font-weight: 400;
}
.ma-watch ul, .ma-block ul { margin: 0; padding-left: 18px; color: var(--text-1); font-size: 14px; line-height: 1.6; }
.ma-watch li + li, .ma-block li + li { margin-top: 4px; }
.ma-block { margin-top: 14px; }
.ma-block p { margin: 0; color: var(--text-1); font-size: 14px; line-height: 1.6; }

.ma-details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.ma-details summary { cursor: pointer; color: var(--green-text); font-size: 13px; list-style: none; }
.ma-details summary::-webkit-details-marker { display: none; }
.ma-details summary::after { content: ' ↓'; }
.ma-details[open] summary::after { content: ' ↑'; }

.ma-scenarios { list-style: none; padding: 0 !important; }
.ma-scenarios li { padding: 10px 12px; border-left: 2px solid var(--line-strong); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.ma-scenarios strong { display: block; color: var(--text-0); font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.ma-scenarios span { font-size: 13px; }

.ma-table-wrap { overflow-x: auto; }
.ma-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ma-table th { text-align: left; font-weight: 400; color: var(--text-3); font-size: 11px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.ma-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); color: var(--text-1); vertical-align: top; }
.ma-table__dev { color: var(--text-2); }

.ma-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.ma-jump .ma-chip:hover { color: var(--text-0); border-color: var(--text-3); }

/* ---------- briefings ---------- */

.ma-day { margin-bottom: 28px; }
.ma-day__h { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 0 0 12px; letter-spacing: 0; }
.ma-list { display: grid; gap: 10px; }
.ma-list__item {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ma-list__item:hover { border-color: var(--line-strong); background: var(--bg-2); }
.ma-list__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ma-list__kind { font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); text-transform: uppercase; }
.ma-list__time { font-size: 11px; color: var(--text-3); }
.ma-list__headline { font-size: 17px; font-weight: 600; color: var(--text-0); margin-top: 8px; line-height: 1.35; }
.ma-list__tldr { margin: 6px 0 0; color: var(--text-1); font-size: 14px; line-height: 1.55; }
.ma-more { text-align: center; margin: 24px 0 8px; }

.ma-reader { max-width: 860px; }
.ma-reader__kicker { font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); line-height: 1.6; }
.ma-reader__h { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; margin: 12px 0 16px; letter-spacing: -0.015em; }
.ma-reader__mood { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--text-1); font-size: 15px; line-height: 1.55; }
.ma-block--reader { margin-top: 32px; }
.ma-block--reader > .ma-block__label { font-size: 11px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ma-tldr { padding-left: 20px !important; font-size: 16px !important; color: var(--text-0) !important; }
.ma-tldr li + li { margin-top: 10px !important; }
.ma-rows { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.ma-rows li + li { margin-top: 0 !important; }
.ma-rows__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--text-0); font-size: 15px; }
.ma-rows__head strong { font-weight: 600; }
.ma-rows__dim { color: var(--text-3); font-size: 13px; }
.ma-rows__figs { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.ma-rows p { margin-top: 4px !important; }
.ma-theme + .ma-theme { margin-top: 16px; }
.ma-theme h4 { margin: 0 0 4px; font-size: 16px; color: var(--text-0); font-weight: 600; }
.ma-reader__closing { margin: 32px 0 0; padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--bg-1); color: var(--text-0); font-size: 15px; line-height: 1.6; border-radius: 0 10px 10px 0; }

.ma-strength { display: grid; gap: 6px; max-width: 520px; }
.ma-strength__row { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.ma-strength__row > span:last-child { text-align: right; }
.ma-strength__track { position: relative; height: 8px; background: var(--bg-2); border-radius: 4px; }
.ma-strength__track::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.ma-strength__bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.ma-strength__bar--up { left: 50%; background: var(--accent); }
.ma-strength__bar--down { right: 50%; background: var(--red); }

.ma-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.ma-prevnext a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-0);
  background: var(--bg-1);
  font-size: 14px;
}
.ma-prevnext a:hover { border-color: var(--line-strong); }
.ma-prevnext a .mono { font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); }
.ma-prevnext__next { text-align: right; }

/* ---------- alerts ---------- */

.ma-alerts { display: grid; gap: 12px; }
.ma-alerts__block ul { list-style: none; margin: 0; padding: 0; }
.ma-alerts__block--group { border: 1px solid var(--line); border-radius: 14px; padding: 6px 0 0; background: var(--bg-1); }
.ma-alerts__group { font-size: 11px; letter-spacing: 0.14em; color: var(--green-text); padding: 8px 16px 2px; text-transform: uppercase; }
.ma-alert {
  display: grid;
  grid-template-columns: 52px 18px 1fr;
  gap: 4px 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ma-alerts__block:not(.ma-alerts__block--group) .ma-alert { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.ma-alerts__block--group .ma-alert:last-child { border-bottom: 0; }
.ma-alert__time { font-size: 13px; color: var(--text-2); padding-top: 2px; }
.ma-alert__arrow { font-size: 12px; padding-top: 3px; }
.ma-alert__main { min-width: 0; }
.ma-alert__headline { font-size: 16px; font-weight: 600; color: var(--text-0); line-height: 1.35; }
.ma-alert__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.ma-alert__ctx { margin-top: 6px; font-size: 13px; color: var(--text-1); }
.ma-alert__ctx::before { content: 'News: '; color: var(--text-3); }
.ma-alert__after { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--text-1); }

/* ---------- hub ---------- */

/* Each section has its own colour: Live Scan green, Market Pulse blue, Briefings amber, Alerts red. */

.ma-hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ma-hub-card {
  --sec: var(--green-text);
  --sec-glow: rgba(0, 230, 153, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(90% 70% at 0% 0%, var(--sec-glow), transparent 60%),
    var(--bg-1);
  min-width: 0;
  overflow: hidden;
}
.ma-hub-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sec), transparent 75%);
}
.ma-hub-card--scan { --sec: var(--green-text); --sec-glow: rgba(0, 230, 153, 0.14); }
.ma-hub-card--pulse, .ma-kind--pulse { --sec: #4cc3ff; --sec-glow: rgba(76, 195, 255, 0.14); }
.ma-hub-card--brief, .ma-kind--brief { --sec: #f0b43c; --sec-glow: rgba(240, 180, 60, 0.13); }
.ma-hub-card--alert, .ma-kind--alert { --sec: #ff5c5c; --sec-glow: rgba(255, 92, 92, 0.13); }
.ma-kind--scan { --sec: var(--green-text); }
.ma-hub-card--wide { grid-column: 1 / -1; }
.ma-hub-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.ma-hub-card__tag { font-size: 10px; letter-spacing: 0.16em; color: var(--sec); opacity: 0.85; }
:root[data-theme="light"] .ma-hub-card__tag { opacity: 1; }
.ma-hub-card__title { margin: 6px 0 0; font-size: 26px; letter-spacing: -0.01em; }
.ma-hub-card__title a { color: var(--text-0); text-decoration: none; }
.ma-hub-card__title a:hover { color: var(--sec); }
.ma-hub-card__day {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sec);
  white-space: nowrap;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--sec) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--sec) 8%, transparent);
}
.ma-hub-card__body { flex: 1; }
.ma-hub-card__body .ma-state { padding: 28px 16px; margin: 0; }
.ma-hub-card__more { margin-top: 18px; font-size: 14px; color: var(--sec); text-decoration: none; font-weight: 500; }
.ma-hub-card__more:hover { text-decoration: underline; }

/* yesterday at a glance */
.ma-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.ma-glance__tile {
  --tone: var(--text-2);
  --tone-bg: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--tone);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--tone-bg), transparent 70%), var(--bg-1);
  color: inherit;
  text-decoration: none;
  min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ma-glance__tile:hover { transform: translateY(-2px); border-color: var(--tone); }
.ma-glance__tile--up { --tone: var(--green-text); --tone-bg: rgba(0, 230, 153, 0.12); }
.ma-glance__tile--down { --tone: #ff5c5c; --tone-bg: rgba(255, 92, 92, 0.12); }
.ma-glance__tile--alert { --tone: #f0b43c; --tone-bg: rgba(240, 180, 60, 0.11); }
.ma-glance__k { font-size: 10px; letter-spacing: 0.16em; color: var(--tone); }
.ma-glance__big { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text-0); }
.ma-glance__vs { font-size: 15px; font-weight: 400; color: var(--text-2); }
.ma-glance__sub { font-size: 13px; line-height: 1.45; color: var(--text-1); }
.ma-glance__src { margin-top: auto; font-size: 10px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
.ma-glance__bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg-3); }
.ma-glance__bar i { display: block; min-width: 0; }
.ma-glance__bar-up { background: var(--action); }
.ma-glance__bar-flat { background: var(--text-3); }
.ma-glance__bar-down { background: #ff5c5c; }
.ma-glance__classes { display: grid; gap: 5px; }
.ma-glance__class { display: grid; grid-template-columns: 62px 1fr 22px; align-items: center; gap: 8px; font-size: 11px; color: var(--text-2); }
.ma-glance__class i { display: block; height: 5px; border-radius: 99px; background: linear-gradient(90deg, #f0b43c, #ff5c5c); }
.ma-glance__class span:last-child { text-align: right; color: var(--text-1); }

/* Live Scan: a tile per market, tinted by its trend */
.ma-tiles, .ma-pulse-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ma-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ma-pulse-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ma-tile, .ma-pulse-tile {
  --tone: var(--text-2);
  --tone-bg: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--tone-bg), transparent 85%), var(--bg-2);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.ma-tile:hover, .ma-pulse-tile:hover { transform: translateY(-2px); border-color: var(--tone); }
.ma-tile--up { --tone: var(--green-text); --tone-bg: rgba(0, 230, 153, 0.13); }
.ma-tile--down { --tone: #ff5c5c; --tone-bg: rgba(255, 92, 92, 0.13); }
.ma-tile--flat { --tone: #f0b43c; --tone-bg: rgba(240, 180, 60, 0.08); }
.ma-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ma-tile__sym { font-weight: 600; font-size: 15px; color: var(--text-0); }
.ma-tile__arrow { font-size: 11px; color: var(--tone); }
.ma-tile__price { font-size: 20px; color: var(--text-0); letter-spacing: -0.01em; }
.ma-tile__trend { font-size: 12px; line-height: 1.35; color: var(--tone); min-height: 2.7em; }
.ma-rsi { display: grid; gap: 5px; margin-top: auto; }
.ma-rsi__v { font-size: 10px; letter-spacing: 0.1em; color: var(--text-2); }
.ma-rsi--hot .ma-rsi__v { color: #ff5c5c; }
.ma-rsi--cold .ma-rsi__v { color: #4cc3ff; }
.ma-rsi__track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(76, 195, 255, 0.55) 0 30%, var(--line-strong) 30% 70%, rgba(255, 92, 92, 0.55) 70% 100%);
}
.ma-rsi__track i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--text-0); box-shadow: 0 0 0 2px var(--bg-2); }

.ma-pulse-tile__tone { font-size: 13px; line-height: 1.45; color: var(--text-1); }
.ma-pulse-tile .ma-chip { font-size: 10px; }

/* Briefings: the latest one featured */
.ma-kind { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec, var(--accent)); }
.ma-feature {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--sec) 30%, transparent);
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--sec) 10%, transparent), transparent 70%), var(--bg-2);
  color: inherit;
  text-decoration: none;
}
.ma-feature:hover .ma-feature__h { color: var(--sec); }
.ma-feature__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ma-feature__h { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-0); transition: color 0.15s ease; }
.ma-feature__p { font-size: 14px; line-height: 1.55; color: var(--text-1); }
.ma-hub-list { list-style: none; margin: 0; padding: 0; }
.ma-hub-list a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ma-hub-list li:last-child a { border-bottom: 0; }
.ma-hub-list__top { display: flex; align-items: center; gap: 10px; }
.ma-hub-list__day { font-size: 10px; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
.ma-hub-list__h { display: block; color: var(--text-0); font-size: 15px; line-height: 1.4; margin-top: 4px; }
.ma-hub-list a:hover .ma-hub-list__h { color: var(--sec); }
.ma-dot { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; background: var(--text-3); }
.ma-dot--up { background: var(--action); box-shadow: 0 0 8px rgba(0, 230, 153, 0.6); }
.ma-dot--down { background: #ff5c5c; box-shadow: 0 0 8px rgba(255, 92, 92, 0.6); }

/* Alerts: the biggest moves as bars */
.ma-hub-count { margin: 0 0 12px; color: var(--text-1); font-size: 14px; }
.ma-hub-count strong { color: var(--sec); font-size: 30px; font-weight: 600; margin-right: 4px; vertical-align: -3px; }
.ma-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ma-bars a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 64px 42px;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.ma-bars a:hover { background: var(--bg-2); }
.ma-bars__sym { font-weight: 600; font-size: 14px; color: var(--text-0); }
.ma-bars__track { height: 8px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.ma-bars__track i { display: block; height: 100%; border-radius: 99px; }
.ma-bars__fill--up { background: linear-gradient(90deg, rgba(0, 230, 153, 0.35), var(--action)); }
.ma-bars__fill--down { background: linear-gradient(90deg, rgba(255, 92, 92, 0.35), #ff5c5c); }
.ma-bars__v { font-size: 13px; text-align: right; }
.ma-bars__t { font-size: 11px; color: var(--text-3); text-align: right; }

@media (max-width: 1180px) {
  .ma-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ma-pulse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- reading width + sign-up card ---------- */

.ma-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.ma-split__main { min-width: 0; }
.ma-split .ma-reader, .ma-split .ma-timeline { max-width: none; }

.ma-signup {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--green-border);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(0, 230, 153, 0.12), transparent 60%),
    var(--bg-1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.ma-signup__kicker { font-size: 10px; letter-spacing: 0.2em; color: var(--green-text); }
.ma-signup__h { margin: 10px 0 14px; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-0); }
.ma-signup__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.ma-signup__list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; color: var(--text-1); }
.ma-signup__list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green-text); font-weight: 600; }
.ma-signup__btn { width: 100%; justify-content: center; }
.ma-signup__alt { display: block; margin-top: 14px; font-size: 13px; color: var(--green-text); text-decoration: none; text-align: center; }
.ma-signup__alt:hover { text-decoration: underline; }
.ma-signup__login { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); text-align: center; }
.ma-signup__login a { color: var(--text-0); }

/* Below laptop width the card follows the content instead of floating beside it. */
@media (max-width: 1100px) {
  .ma-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ma-signup { position: static; box-shadow: none; }
}

/* ---------- disclaimer ---------- */

.ma-disclaimer {
  margin: 48px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
  max-width: 900px;
}

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .ma-hub { grid-template-columns: minmax(0, 1fr); }
  .ma-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-grid--wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ma-today { flex-wrap: wrap; padding: 14px 16px; }
  .ma-today__btn { width: 100%; justify-content: center; }
  .ma-grid { grid-template-columns: minmax(0, 1fr); }
  .ma-daynav { grid-template-columns: auto 1fr auto; gap: 8px; }
  .ma-daynav__btn { padding: 8px 10px; }
  .ma-daynav__btn-day { display: none; }
  .ma-daynav__date { font-size: 15px; }
  .ma-toolbar { flex-direction: column; align-items: stretch; }
  .ma-seg:not(.ma-seg--wrap) { display: flex; }
  .ma-seg:not(.ma-seg--wrap) .ma-seg__btn { flex: 1; padding: 8px 4px; }
  .ma-select { justify-content: space-between; }
  .ma-select select { flex: 1; }
  .ma-glance { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ma-glance__big { font-size: 24px; }
  .ma-tiles, .ma-pulse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ma-tile__price { font-size: 17px; }
  .ma-hub-card { padding: 20px 16px 16px; }
  .ma-hub-card__title { font-size: 22px; }
  .ma-bars a { grid-template-columns: 64px minmax(0, 1fr) 60px; gap: 10px; }
  .ma-bars__t { display: none; }
  .ma-alert { grid-template-columns: 44px 14px 1fr; padding: 12px; }
  .ma-alert__headline { font-size: 15px; }
  .ma-prevnext { grid-template-columns: 1fr; }
  .ma-prevnext__next { text-align: left; }
  .ma-card { padding: 16px; }
  .ma-reader__h { font-size: 26px; }
}

/* Links that look like the controls they replaced (every view has its own address). */
a.ma-seg__btn, a.ma-daynav__btn, a.ma-card__more, a.ma-back, a.ma-link { text-decoration: none; }
a.ma-seg__btn { display: inline-flex; align-items: center; justify-content: center; }
h2.ma-card__sym { margin: 0; font-family: inherit; line-height: 1.3; }
.ma-card__sym a { color: inherit; text-decoration: none; }
.ma-card__sym a:hover { color: var(--green-text); }
.ma-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 12px; color: var(--text-3); }
.ma-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.ma-crumbs a { color: var(--text-2); text-decoration: none; }
h3.ma-list__headline { margin-bottom: 0; font-family: inherit; letter-spacing: 0; }
.ma-day__h a { color: inherit; text-decoration: none; }
.ma-day__h a:hover { color: var(--green-text); }

.ma-after { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ma-after__k { font-size: 10px; letter-spacing: 0.16em; color: var(--text-3); margin-bottom: 10px; }
.ma-after__bar { display: flex; gap: 3px; height: 10px; }
.ma-after__bar i { display: block; border-radius: 3px; min-width: 4px; }
.ma-after__legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-1); }
.ma-after__legend .mono { color: var(--text-0); margin-left: 2px; }
.ma-after__sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.ma-after__seg--kept_going { background: var(--action); }
.ma-after__seg--held { background: #4cc3ff; }
.ma-after__seg--faded { background: #f0b43c; }
.ma-after__seg--reversed { background: #ff5c5c; }

/* ---------- section colour on every page ---------- */

.ma-sec { --sec: var(--green-text); --sec-glow: rgba(0, 230, 153, 0.13); }
.ma-sec--pulse { --sec: #4cc3ff; --sec-glow: rgba(76, 195, 255, 0.13); }
.ma-sec--brief { --sec: #f0b43c; --sec-glow: rgba(240, 180, 60, 0.12); }
.ma-sec--alert { --sec: #ff5c5c; --sec-glow: rgba(255, 92, 92, 0.12); }
.ma-sec .ma-tabs .markets-pill.ma-tab--active {
  border-color: color-mix(in srgb, var(--sec) 45%, transparent);
  background: color-mix(in srgb, var(--sec) 12%, transparent);
  box-shadow: 0 0 24px var(--sec-glow);
}
.ma-sec .ma-daynav__kicker { color: var(--sec); }
.ma-sec .ma-block__label, .ma-sec .ma-watch__label { color: var(--sec); }
.ma-sec .ma-seg__btn--on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 45%, transparent); background: color-mix(in srgb, var(--sec) 12%, var(--bg-3)); }
.ma-sec .ma-card__more, .ma-sec .ma-back, .ma-sec .ma-link { color: var(--sec); }

/* summary strips: tile counts and a section-coloured tile */
.ma-glance--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ma-glance--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ma-glance--1 { grid-template-columns: minmax(0, 1fr); }
.ma-glance__tile--sec { --tone: var(--sec); --tone-bg: var(--sec-glow); }
.ma-glance__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ma-glance__tags .ma-chip { text-decoration: none; color: var(--text-0); }
.ma-glance__tags .ma-chip b { color: var(--tone); font-weight: 600; margin-left: 4px; }
.ma-glance__tile .ma-rsi { margin-top: 2px; }
.ma-glance__tile .ma-after__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-1); }
.ma-glance__tile .ma-after__bar { display: flex; gap: 3px; height: 10px; }
.ma-glance__tile .ma-after__bar i { display: block; border-radius: 3px; min-width: 4px; }
.ma-main > .wrap > .ma-glance, .ma-split__main > .ma-glance { margin: 4px 0 24px; }
.ma-split__main .ma-glance--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ma-spark { display: block; width: 100%; height: 56px; }
.ma-spark__line { fill: none; stroke: var(--tone, var(--sec)); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ma-spark__area { fill: color-mix(in srgb, var(--tone, var(--sec)) 14%, transparent); stroke: none; }
.ma-spark__dot { fill: var(--tone, var(--sec)); }

/* cards tinted by their read: trend (Live Scan) or bias (Market Pulse) */
.ma-card--tone {
  --tone: #f0b43c;
  --tone-bg: rgba(240, 180, 60, 0.06);
  border-left: 3px solid var(--tone);
  background: linear-gradient(160deg, var(--tone-bg), transparent 55%), var(--bg-1);
}
.ma-card--tone.ma-card--up { --tone: var(--green-text); --tone-bg: rgba(0, 230, 153, 0.09); }
.ma-card--tone.ma-card--down { --tone: #ff5c5c; --tone-bg: rgba(255, 92, 92, 0.09); }
.ma-card--tone .ma-card__structure { color: var(--tone); }
.ma-card__arrow { font-size: 11px; color: var(--tone); vertical-align: 2px; margin-left: 4px; }
.ma-card .ma-rsi { max-width: 260px; margin-top: 2px; }

/* alerts tinted by direction, with the move's size against a typical day */
.ma-alert--up { --tone: var(--green-text); }
.ma-alert--down { --tone: #ff5c5c; }
.ma-alerts__block:not(.ma-alerts__block--group) .ma-alert--up,
.ma-alerts__block:not(.ma-alerts__block--group) .ma-alert--down {
  border-left: 3px solid var(--tone);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 8%, transparent), transparent 55%), var(--bg-1);
}
.ma-alerts__block--group { border-left: 3px solid var(--sec); }
.ma-alert__size { display: inline-flex; align-items: center; gap: 8px; }
.ma-alert__size-track { width: 64px; height: 6px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.ma-alert__size-track i { display: block; height: 100%; border-radius: 99px; background: var(--tone); }

/* briefings: kind colours, mood on the edge */
.ma-list__item { border-left: 3px solid var(--text-3); }
.ma-list__item--up { border-left-color: var(--action); background: linear-gradient(160deg, rgba(0, 230, 153, 0.06), transparent 55%), var(--bg-1); }
.ma-list__item--down { border-left-color: #ff5c5c; background: linear-gradient(160deg, rgba(255, 92, 92, 0.06), transparent 55%), var(--bg-1); }
.ma-reader__kicker.ma-kind { color: var(--sec); }
.ma-reader__mood {
  --tone: var(--text-2);
  align-items: center;
  padding: 14px 16px;
  margin: 6px 0 8px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--tone);
  border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 10%, transparent), transparent 60%), var(--bg-1);
}
.ma-reader__mood--up { --tone: var(--green-text); }
.ma-reader__mood--down { --tone: #ff5c5c; }
.ma-reader__mood-k { font-size: 10px; letter-spacing: 0.16em; color: var(--tone); }
.ma-rows__head .ma-up, .ma-rows__head .ma-down { padding: 1px 8px; border-radius: 99px; font-size: 12px; }
.ma-rows__head .ma-up { background: rgba(0, 230, 153, 0.12); }
.ma-rows__head .ma-down { background: rgba(255, 92, 92, 0.12); }

@media (max-width: 1180px) {
  .ma-glance--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-split__main .ma-glance--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ma-glance--2, .ma-glance--3, .ma-split__main .ma-glance--4 { grid-template-columns: minmax(0, 1fr); }
}
.ma-sec .ma-alerts__group { color: var(--sec); }
