/* GENERATED by tools/build.mjs from market.css with rtlcss — do not edit. */
/* atropi-scope: .mk-, .atropi-tpl-market, .atropi-page-market- */
/* =====================================================================================================
   ATROPI — market pages (page-templates/market.php · forex · metal · crypto · stocks · indices · energies).
   1. per-market accent (brand blue stays primary: buttons, links, rail)   2. hero signature visual (glass
   terminal shell + six bodies, LTR island — never flipped)   3. scoped tweaks of shared components
   4. "why" bento ink motifs   5. related markets   6. responsive · reduced motion
   Tokens only; theme-specific glass values are declared for Day and Night. RTL twin: tools/build.mjs.
   ===================================================================================================== */

/* ---------------------------------------------------------------- 1. accent per market */
.atropi-tpl-market { --mk: var(--brand); --mk-2: var(--cyan); --mk-ink: var(--brand-ink); }
.atropi-page-market-metal { --mk: var(--gold); --mk-2: var(--gold-2); --mk-ink: color-mix(in srgb, var(--gold) 82%, var(--ink)); }
.atropi-page-market-crypto { --mk: var(--violet); --mk-2: var(--brand-400); --mk-ink: color-mix(in srgb, var(--violet) 80%, var(--ink)); }
.atropi-page-market-stocks { --mk: var(--bull-vivid); --mk-2: var(--brand); --mk-ink: var(--bull); }
.atropi-page-market-indices { --mk: var(--cyan); --mk-2: var(--brand); --mk-ink: color-mix(in srgb, var(--cyan) 70%, var(--ink)); }
.atropi-page-market-energies { --mk: color-mix(in srgb, var(--gold) 58%, var(--bear-vivid)); --mk-2: var(--gold-2); --mk-ink: color-mix(in srgb, var(--gold) 50%, var(--bear)); }
.atropi-tpl-market { --mk-tint: color-mix(in srgb, var(--mk) 10%, transparent); --mk-ring: color-mix(in srgb, var(--mk) 26%, transparent); }

/* ---------------------------------------------------------------- 2. hero: market atmosphere */
.atropi-tpl-market .mk-hero .ac-hero-pill .pill-dot { background: var(--mk); box-shadow: 0 0 0 3px var(--mk-tint); }
.atropi-tpl-market .mk-hero .ac-hero-field--b { background: radial-gradient(closest-side, color-mix(in srgb, var(--mk) 9%, transparent), transparent); }
.atropi-tpl-market .mk-hero .ac-hero-visual { max-width: 572px; }

/* ---------------------------------------------------------------- 2b. the signature visual (LTR island) */
.mk-vis {
  --tx: 0; --ty: 0;
  --mk-bg: rgba(255, 255, 255, .8);
  --mk-border: rgba(255, 255, 255, .95);
  --mk-ringc: rgba(17, 52, 120, .08);
  --mk-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--mk-ringc), 0 60px 110px -40px rgba(17, 52, 120, .32), 0 24px 44px -24px rgba(10, 22, 40, .16);
  --mk-div: rgba(10, 22, 40, .07);
  position: relative; width: 100%; text-align: left; direction: ltr;
}
:root[data-theme="dark"] .mk-vis {
  --mk-bg: rgba(43, 12, 57, .72);
  --mk-border: rgba(200, 180, 213, .14);
  --mk-ringc: rgba(153, 117, 176, .10);
  --mk-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px var(--mk-ringc), 0 50px 130px -40px rgba(85, 25, 124, .40), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --mk-div: rgba(255, 255, 255, .07);
}
.mk-card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--mk-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--mk-border); box-shadow: var(--mk-shadow);
  transform: perspective(1500px) rotateX(calc(var(--ty) * -3.5deg)) rotateY(calc(var(--tx) * 5deg));
  transform-origin: 50% 50%;
}
.mk-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(480px circle at calc(50% + var(--tx) * 45%) calc(26% + var(--ty) * 50%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 46%);
  mix-blend-mode: soft-light;
}
:root[data-theme="dark"] .mk-glare { background: radial-gradient(480px circle at calc(50% + var(--tx) * 45%) calc(26% + var(--ty) * 50%), rgba(187, 163, 203, .12), rgba(187, 163, 203, 0) 50%); mix-blend-mode: normal; }
.mk-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--mk), transparent); opacity: .7; z-index: 2; }

/* head */
.mk-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px 12px; min-height: 68px; }
.mk-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mk-id-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-ring); color: var(--mk); }
.mk-id-ico .ico { width: 20px; height: 20px; }
.mk-id-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mk-id-t { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.mk-id-s { margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bull-bg); color: var(--bull); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; flex: none; }
.mk-live i, .mk-foot-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--bull-vivid); }
.mk-live i::after, .mk-foot-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--bull-vivid); opacity: 0; animation: mk-ping 2.2s var(--ease-out) infinite; }
@keyframes mk-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* body + canvases */
.mk-body { position: relative; z-index: 1; padding: 4px 18px 14px; }
.mk-canvas { display: block; width: 100%; height: 240px; touch-action: pan-y; }
.mk-fx-canvas { height: 300px; cursor: crosshair; }
.mk-au-canvas { height: 208px; }
.mk-cx-canvas { height: 182px; cursor: crosshair; }
.mk-st-canvas { height: 318px; cursor: pointer; }
.mk-ix-canvas { height: auto; aspect-ratio: 360 / 132; }
.mk-en-canvas { height: 232px; }
.mk-tip {
  position: absolute; left: 18px; top: 4px; z-index: 4; pointer-events: none;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--surface-float); border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  font-size: 11px; font-weight: 600; color: var(--ink);
  opacity: 0; transition: opacity .2s;
}
.mk-tip.is-on { opacity: 1; }

/* foot */
.mk-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 18px 11px; border-top: 1px solid var(--mk-div); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.mk-foot-live { display: inline-flex; align-items: center; gap: 9px; overflow: hidden; text-overflow: ellipsis; }
.mk-foot-r { color: var(--text); overflow: hidden; text-overflow: ellipsis; }

/* satellite chip (one proof point floating off the card) */
.mk-sat {
  position: absolute; z-index: 4; right: 26px; top: -21px;
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px;
  border-radius: 999px; background: var(--surface-float); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
  animation: mk-float 7s var(--ease-io) infinite alternate;
}
.mk-sat-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-ring); color: var(--mk); }
.mk-sat-ico .ico { width: 15px; height: 15px; }
@keyframes mk-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -10px, 0); } }
html.js .ac-hero-visual:not(.is-in) .mk-sat { opacity: 0; }
.ac-hero-visual .mk-sat { transition: opacity .8s var(--ease-out) 1.1s; }

/* segmented controls */
.mk-seg { position: relative; display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
:root[data-theme="dark"] .mk-seg { background: rgba(255, 255, 255, .04); }
.mk-seg-ind { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgba(10, 22, 40, .1), 0 0 0 1px var(--line); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; }
.mk-seg.is-ready .mk-seg-ind { opacity: 1; }
:root[data-theme="dark"] .mk-seg-ind { background: rgba(153, 117, 176, .22); box-shadow: inset 0 0 0 1px rgba(187, 163, 203, .28); }
.mk-seg-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; transition: color .3s; }
.mk-seg-btn::after { content: ""; position: absolute; inset: -6px 0; }
.mk-seg-btn:hover, .mk-seg-btn[aria-pressed="true"] { color: var(--ink); }
:root[data-theme="dark"] .mk-seg-btn[aria-pressed="true"] { color: #FFFFFF; }
.mk-seg--sm .mk-seg-btn { height: 30px; padding: 0 10px; font-size: 11px; }

/* --- forex: quotes row */
.mk-vis .mk-quotes { list-style: none; margin: 0; padding: 0 18px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.mk-q { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
:root[data-theme="dark"] .mk-q { background: rgba(255, 255, 255, .03); }
.mk-q-s { grid-column: 1 / -1; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.mk-q-p { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; border-radius: 4px; padding: 0 2px; margin-left: -2px; }
.mk-q-c { font-size: 10.5px; }

/* --- metals */
.mk-au-quote { position: relative; z-index: 1; padding: 2px 18px 2px; }
.mk-au-name { font-size: 12px; color: var(--muted); }
.mk-au-px { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.mk-au-v { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); border-radius: 6px; padding: 0 3px; margin-left: -3px; }
.mk-au-u { font-size: 12px; color: var(--muted); }
.mk-au-c { font-size: 11px; align-self: center; }
.mk-au-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.mk-au-meta b { color: var(--ink); font-weight: 600; }
.mk-au-meta i { font-style: normal; color: var(--faint); }
.mk-au-dot { width: 8px; height: 8px; border-radius: 50%; }
.mk-au-dot.is-au { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.mk-au-dot.is-ag { background: linear-gradient(135deg, var(--surface-3), var(--muted)); }
.mk-vis--metal .mk-card::before { background: linear-gradient(90deg, transparent, var(--gold), var(--gold-2), transparent); }
.mk-vis--metal[data-metal="xag"] .mk-card::before { background: linear-gradient(90deg, transparent, var(--muted), var(--faint), transparent); }

/* --- crypto */
/* the price keeps 3px of flash padding whose text still lines up with the change below: the row box itself takes
   the 3px (negative end margin, inside the head padding) so the price never sticks out of its own box */
.mk-cx-mid { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; margin-right: -3px; }
.mk-cx-px { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; border-radius: 5px; padding: 0 3px; }
.mk-cx-c { font-size: 10.5px; margin-right: 3px; }
.mk-wk { position: relative; z-index: 1; padding: 12px 18px 14px; border-top: 1px solid var(--mk-div); }
.mk-wk-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mk-wk-pulse { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-ring); }
.mk-wk-pulse i { position: absolute; inset: 10px; border-radius: 50%; background: var(--mk); }
.mk-wk-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--mk); opacity: 0; animation: mk-ping 1.6s var(--ease-out) infinite; }
.mk-wk-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mk-wk-t b { font-size: 13px; font-weight: 700; color: var(--ink); }
.mk-wk-t span { font-size: 11.5px; color: var(--muted); }
.mk-wk-now { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--mk); padding: 3px 8px; border-radius: 6px; background: var(--mk-tint); }
.mk-wk-grid { display: grid; grid-template-columns: 18px minmax(0, 1fr); row-gap: 4px; column-gap: 8px; align-items: center; }
.mk-wk-d { font-size: 9.5px; font-weight: 600; color: var(--muted); text-align: center; }
.mk-wk-row { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.mk-wk-row i { height: 7px; border-radius: 2px; background: color-mix(in srgb, var(--mk) 34%, transparent); transform-origin: 50% 100%; }
html.js .ac-hero-visual:not(.is-in) .mk-wk-row i { transform: scaleY(0); }
.ac-hero-visual .mk-wk-row i { transition: transform .5s var(--ease-out); }
.mk-wk-row:nth-of-type(odd) i { background: color-mix(in srgb, var(--mk) 26%, transparent); }
.mk-wk-row i.is-now { position: relative; background: var(--mk); box-shadow: 0 0 0 2px var(--mk-ring); animation: mk-beat 1.6s var(--ease-io) infinite; }
@keyframes mk-beat { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.7); } }
.mk-wk-axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--faint); padding-top: 2px; }

/* --- indices */
.mk-ix-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; color: var(--muted); flex: none; }
.mk-ix-utc { font-weight: 600; color: var(--ink); font-size: 12px; }
.mk-ix-open { color: var(--mk); font-weight: 600; }
.mk-vis .mk-ix-board { list-style: none; margin: 0; padding: 4px 18px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; position: relative; z-index: 1; }
.mk-ix-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--mk-div); font-size: 11.5px; opacity: .62; transition: opacity .4s; }
.mk-ix-row.is-open { opacity: 1; }
.mk-ix-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); }
.mk-ix-row.is-open .mk-ix-dot { border-color: var(--mk); background: var(--mk); }
.mk-ix-row.is-open .mk-ix-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mk); opacity: 0; animation: mk-ping 2.4s var(--ease-out) infinite; }
.mk-ix-s { font-weight: 600; color: var(--ink); }
.mk-ix-p { font-weight: 600; color: var(--ink); border-radius: 4px; padding: 0 2px; }
.mk-ix-c { font-size: 10.5px; min-width: 6.2ch; text-align: right; }
.mk-ix-c.up { color: var(--bull); } .mk-ix-c.down { color: var(--bear); }

/* --- energies */
.mk-en-legend { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-en-l { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.mk-en-l i { width: 16px; height: 3px; border-radius: 2px; background: var(--mk); flex: none; }
.mk-en-l.is-wti i { background: var(--brand); }
.mk-en-k { font-size: 11.5px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.mk-en-n { color: var(--muted); font-size: 11.5px; }
.mk-en-v { font-size: 13px; font-weight: 600; color: var(--ink); border-radius: 4px; padding: 0 3px; }
.mk-en-spread { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex: none; }
.mk-en-sv { font-size: 18px; font-weight: 600; color: var(--mk); letter-spacing: -0.02em; text-transform: none; }

/* ---------------------------------------------------------------- 3. shared components on market pages */
/* answer-first strip: accent bar per market */
.atropi-tpl-market #facts .ac-fact::before { background: var(--mk); }
.atropi-tpl-market #facts .ac-fact-t .ico { color: var(--mk); }
.atropi-tpl-market #facts .ac-facts-summary::before { background: linear-gradient(-180deg, var(--mk), var(--brand)); }
@media (min-width: 1100px) { .atropi-tpl-market #facts .ac-facts.has-summary { grid-template-columns: minmax(0, .85fr) minmax(0, 1.75fr); } }
.atropi-tpl-market #facts .ac-fact-v .num { font-size: min(clamp(22px, 2vw, 32px), calc(100cqi / var(--fit, 1) / .6)); overflow-wrap: normal; word-break: normal; } /* keeps the --fit scale: "Long/Short" fits its cell instead of overflowing */
.atropi-tpl-market #facts .ac-fact-t { min-height: 2.6em; }
/* answer-first: the live question, then the answer composed from the page's facts */
.atropi-tpl-market #facts .ac-facts-text b { display: block; margin-bottom: 8px; font-size: clamp(19px, 1.5vw, 22px); font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; color: var(--ink); text-wrap: balance; }
/* five facts: the summary sits above a full-width strip so every figure keeps its line */
.atropi-tpl-market #facts .ac-facts[style*="--cols:5"].has-summary { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 44px); }
.atropi-tpl-market #facts .ac-facts[style*="--cols:5"] .ac-facts-summary { max-width: 900px; }

/* spec table: symbol marks + accent */
.atropi-tpl-market #specs .ac-sym-mark { background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-ring); color: var(--mk-ink); min-width: 30px; width: auto; padding: 0 5px; font-size: 10px; }
.atropi-tpl-market #specs .chapter-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.atropi-tpl-market #specs .chapter-head .h2 { max-width: 21ch; font-size: clamp(32px, 3.6vw, 52px); }
.atropi-tpl-market #specs .ac-spec-row:hover > :first-child { box-shadow: inset -2px 0 0 var(--mk); }
.atropi-tpl-market #specs .ac-spec-gh-n { display: inline-block; margin-inline-start: 0; padding-right: 10px; }

/* bento: ink card accent glow */
.atropi-tpl-market #why .is-lg .ac-feat.is-ink { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--mk) 28%, transparent), transparent 60%), var(--grad-ink); }
.atropi-tpl-market #why .is-lg .ac-feat-visual { margin-top: auto; padding: 0 clamp(22px, 2.2vw, 30px) clamp(18px, 2vw, 26px); }
.atropi-tpl-market #why .ac-feats-i:not(.is-lg) .ac-feat-t { font-size: clamp(17px, 1.3vw, 19px); }
.atropi-tpl-market #why .ac-feat-spark { color: var(--mk); }
.atropi-tpl-market #why .is-lg .ac-feat-stat b { background: linear-gradient(-90deg, #fff, color-mix(in srgb, var(--mk) 55%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* crypto tiles + playbook */
.atropi-tpl-market #overview .ac-feat-ico, .atropi-tpl-market #insights .ac-feat-ico { background: var(--mk-tint); box-shadow: inset 0 0 0 1px var(--mk-ring); color: var(--mk); }
.atropi-tpl-market #overview .ac-feat:hover .ac-feat-ico { background: var(--mk); color: #fff; box-shadow: none; }
.atropi-tpl-market #insights .ac-feats--list .ac-feat::before { background: var(--mk); }
.atropi-tpl-market #overview .chapter-head, .atropi-tpl-market #insights .chapter-head { margin-bottom: clamp(36px, 4.5vw, 64px); }

/* steps: accent the current station */
.atropi-tpl-market #steps .ac-step-k .ico { color: var(--mk); }

/* ---------------------------------------------------------------- 4. bento ink motifs (aria-hidden SVG) */
.mk-ink { position: relative; width: 100%; }
.mk-ink svg { display: block; width: 100%; height: auto; max-height: 190px; overflow: visible; }
.mk-ink-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; fill: rgba(201, 214, 238, .6); }
:root[data-theme="dark"] .mk-ink-lbl { fill: rgba(222, 216, 226, .6); } /* brand Night */
.mk-ink-lbl.is-start { text-anchor: start; }
/* forex heat tiles */
.mk-ink-cell { opacity: var(--o, .5); }
.mk-ink-cell.is-up { fill: var(--bull-vivid); }
.mk-ink-cell.is-dn { fill: var(--bear-vivid); }
.mk-ink-cell.is-nil { fill: #fff; opacity: .06; }
.mk-ink-cell.is-breathe { animation: mk-breathe 3.2s var(--ease-io) var(--d, 0ms) infinite alternate; }
@keyframes mk-breathe { from { opacity: var(--o, .5); } to { opacity: calc(var(--o, .5) * .35); } }
/* metal ingots */
.mk-ink-au0 { stop-color: #F4D98B; } .mk-ink-au1 { stop-color: #B4841C; }
.mk-ink-tops path { fill: none; stroke: rgba(255, 245, 215, .55); stroke-width: 1.4; stroke-linecap: round; }
.mk-ink--metal .mk-ink-lbl { fill: rgba(70, 48, 8, .75); font-size: 11px; }
.mk-ink-sheen { animation: mk-sheen 4.2s var(--ease-io) infinite; }
@keyframes mk-sheen { 0% { transform: skewX(18deg) translateX(-40px); } 60%, 100% { transform: skewX(18deg) translateX(-460px); } }
/* crypto dial */
.mk-ink-hr { stroke: color-mix(in srgb, var(--violet) 70%, #fff); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.mk-ink-ring { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.mk-ink-sweep { animation: mk-spin 8s linear infinite; }
.mk-ink-sweep path { stroke: #8DB8FF; stroke-width: 1.6; stroke-linecap: round; }
:root[data-theme="dark"] .mk-ink-sweep path { stroke: #C4AFD2; } /* brand Night */
.mk-ink-big { font-family: var(--font-mono); font-size: 22px; font-weight: 600; fill: #fff; letter-spacing: -0.02em; }
@keyframes mk-spin { to { transform: rotate(-360deg); } }
/* stocks treemap */
.mk-ink-tile rect { opacity: var(--o, .4); }
.mk-ink-tile.is-up rect { fill: var(--bull-vivid); }
.mk-ink-tile.is-dn rect { fill: var(--bear-vivid); }
.mk-ink-tile text { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; fill: #fff; }
.mk-ink-tile.is-breathe rect { animation: mk-breathe 2.8s var(--ease-io) var(--d, 0ms) infinite alternate; }
/* indices sessions */
.mk-ink-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.mk-ink-sess { fill: color-mix(in srgb, var(--cyan) 70%, #fff); opacity: .75; }
.mk-ink-now line { stroke: #8DB8FF; stroke-width: 1.4; stroke-dasharray: 3 3; }
:root[data-theme="dark"] .mk-ink-now line { stroke: #C4AFD2; } /* brand Night */
.mk-ink-now circle { fill: #8DB8FF; }
:root[data-theme="dark"] .mk-ink-now circle { fill: #C4AFD2; } /* brand Night */
.mk-ink-now { animation: mk-glide 12s linear infinite; }
@keyframes mk-glide { from { transform: translateX(0); } to { transform: translateX(-336px); } }
/* energies barrel */
.mk-ink-barrel { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; }
.mk-ink-hoop { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.mk-ink-oil0 { stop-color: #F0A548; } .mk-ink-oil1 { stop-color: #5C2C0C; }
.mk-ink-level { animation: mk-wave 3.6s var(--ease-io) infinite alternate; }
@keyframes mk-wave { from { transform: translate(0, 4px); } to { transform: translate(40px, -6px); } }
.mk-ink-ticks path { stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.mk-ink--energies .mk-ink-lbl { fill: rgba(201, 214, 238, .72); }
:root[data-theme="dark"] .mk-ink--energies .mk-ink-lbl { fill: rgba(222, 216, 226, .72); } /* brand Night */
/* draw-in on reveal */
html.js .ac-feats-i:not(.is-in) .mk-ink { opacity: 0; transform: translateY(12px); }
.ac-feats-i .mk-ink { transition: opacity 1s var(--ease-out) .3s, transform 1.2s var(--ease-out) .3s; }

/* ---------------------------------------------------------------- 5. related markets */
.mk-related .chapter-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.mk-related .mk-rel-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); }
.mk-rel-list > li { display: flex; min-width: 0; }
.mk-rel {
  --acc: var(--brand);
  position: relative; isolation: isolate; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .3s;
}
.mk-rel--metal { --acc: var(--gold); }
.mk-rel--crypto { --acc: var(--violet); }
.mk-rel--stocks { --acc: var(--bull-vivid); }
.mk-rel--indices { --acc: var(--cyan); }
.mk-rel--energies { --acc: color-mix(in srgb, var(--gold) 58%, var(--bear-vivid)); }
.mk-rel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.mk-rel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mk-rel-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 24%, transparent); color: var(--acc); transition: background-color .35s, color .35s; }
.mk-rel:hover .mk-rel-ico { background: var(--acc); color: #fff; }
.mk-rel-sym { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.mk-rel-t { font-size: clamp(18px, 1.3vw, 20px); font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.mk-rel-x { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.mk-rel-chart { position: relative; display: block; margin: auto -20px 0; padding-top: 14px; height: 70px; color: var(--acc); }
.mk-rel-spark { display: block; width: 100%; height: 56px; overflow: visible; }
.mk-rel-line { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .mk-rel-list > li:not(.is-in) .mk-rel-line { stroke-dashoffset: 1; }
.mk-rel-line { transition: stroke-dashoffset 1.6s var(--ease-io) .2s; }
.mk-rel-dot { position: absolute; right: 0; width: 8px; height: 8px; margin: 10px -4px 0 0; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, var(--acc) 30%, transparent); transform: translateY(-50%); }
.mk-rel-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--acc); opacity: 0; animation: mk-ping 2.6s var(--ease-out) infinite; }
html.js .mk-rel-list > li:not(.is-in) .mk-rel-dot { opacity: 0; }
.mk-rel-dot { transition: opacity .5s ease 1.6s; }
.mk-rel-go { position: absolute; inset-inline-end: 16px; top: 20px; display: none; }

/* ---------------------------------------------------------------- 6. responsive */
@media (max-width: 1199px) {
  .mk-related .mk-rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .atropi-tpl-market .mk-hero .ac-hero-visual { max-width: 560px; justify-self: center; }
  .mk-sat { right: 14px; top: -18px; }
}
@media (max-width: 760px) {
  .mk-related .mk-rel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .mk-head { padding: 16px 14px 10px; min-height: 0; flex-wrap: wrap; row-gap: 10px; }
  .mk-body { padding: 2px 14px 12px; }
  .mk-vis .mk-quotes, .mk-vis .mk-ix-board { padding-left: 14px; padding-right: 14px; }
  .mk-vis .mk-quotes { gap: 6px; }
  .mk-q { padding: 8px 9px; grid-template-columns: minmax(0, 1fr); }
  .mk-q-p { font-size: 13px; }
  .mk-q-c { justify-self: start; }
  .mk-au-quote, .mk-wk { padding-left: 14px; padding-right: 14px; }
  .mk-foot { padding: 9px 14px 10px; font-size: 10px; flex-wrap: wrap; row-gap: 4px; }
  /* phones ≤ 380px: "Indicative prices" + "Local exchange hours · weekdays" don't fit one row → the right label
     drops to its own row (still end-aligned) instead of being cut */
  .mk-foot-r { margin-left: auto; }
  .mk-fx-canvas { height: 268px; }
  .mk-st-canvas { height: 280px; }
  .mk-en-canvas { height: 210px; }
  .mk-vis .mk-ix-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
  .mk-ix-row { grid-template-columns: 9px minmax(0, 1fr) auto; font-size: 11px; }
  .mk-ix-c { display: none; }
  .mk-sat { font-size: 11.5px; padding: 5px 12px 5px 5px; top: -16px; }
  .mk-sat-ico { width: 24px; height: 24px; }
  .mk-card { border-radius: 18px; }
  .mk-seg-btn { padding: 0 9px; }
  .mk-wk-axis { font-size: 8.5px; }
}
@media (max-width: 640px) {
  .mk-related .mk-rel-list { grid-template-columns: minmax(0, 1fr); }
  .mk-rel { display: grid; grid-template-columns: auto minmax(0, 1fr) 96px; grid-template-areas: "ico t chart" "ico x chart"; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px; }
  .mk-rel-top { grid-area: ico; margin: 0; align-self: start; }
  .mk-rel-sym { display: none; }
  .mk-rel-t { grid-area: t; font-size: 17px; }
  .mk-rel-x { grid-area: x; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mk-rel-chart { grid-area: chart; margin: 0; padding: 0; height: 44px; }
  .mk-rel-spark { height: 44px; }
  .mk-rel-dot { margin: 0 -4px 0 0; }
}

/* reduced motion: final, static states */
@media (prefers-reduced-motion: reduce) {
  .mk-sat, .mk-ink-sheen, .mk-ink-sweep, .mk-ink-now, .mk-ink-level, .mk-ink-cell.is-breathe, .mk-ink-tile.is-breathe rect,
  .mk-live i::after, .mk-foot-live i::after, .mk-wk-pulse::after, .mk-wk-row i.is-now, .mk-ix-row.is-open .mk-ix-dot::after, .mk-rel-dot::after { animation: none; }
  .mk-card { transform: none; }
}
.ac-paused .mk-sat, .ac-paused .mk-live i::after, .ac-paused .mk-foot-live i::after, .ac-paused .mk-wk-pulse::after, .ac-paused .mk-wk-row i.is-now, .ac-paused .mk-ix-dot::after { animation-play-state: paused; }

/* ---------------------------------------------------------------- 7. Arabic (ar) — localisation fixes (ar localiser)
   Workarounds for shared-component RTL details seen on the Arabic market pages (reported; fa shows the same):
   hero proof figures sit at the start (right) above their labels instead of hugging the left edge of an LTR box;
   the spec-table result count ("17 أداة") reads in RTL order; Arabic words used as key-fact values ("إسلامية",
   "التضخم") are never tracked. Final RTL values, so rtlcss leaves them as written. */
html[lang^="ar"] .atropi-tpl-market .ac-hero-proof b { align-self: flex-start; letter-spacing: 0; }
html[lang^="ar"] .atropi-tpl-market .ac-spec-count { direction: rtl; }
html[lang^="ar"] .atropi-tpl-market .ac-fact-v .num:not([data-count]) { letter-spacing: 0; }

/* ru (localisation): the key-fact values are monospace; Russian text values run to 9 characters ("Исламские",
   "Лонг/шорт") where English has 7 ("Islamic"), and overflow a 4-column strip at 1024–1600px. Cap the value
   size on the 4-column strips only (5-column strips stack under the summary and have room). */
html[lang^="ru"] .atropi-tpl-market #facts .ac-facts[style*="--cols:4"] .ac-fact-v .num { font-size: min(clamp(19px, 1.75vw, 26px), calc(100cqi / var(--fit, 1) / .6)); }
/* ru: "Энергоносители" (registry crumb label) is the longest related-card title; on ≤380px phones give the title
   column the room of a slightly narrower spark. */
@media (max-width: 380px) { html[lang^="ru"] .atropi-tpl-market .mk-related .mk-rel { grid-template-columns: auto minmax(0, 1fr) 80px; } }
