/* =====================================================================
   REAL HOLDING GROUP · MERCADOS (markets.js): its own view over the scene, like the blog, under the bar
   (z 109: just under the blog's 110, so either one can hand over to the other without the scene showing
   through; .nav 120). Graphite and warm black, copper and bronze lines, warm off-white words. The mineral
   green and the terracotta only where a price moved, always with its sign and its arrow. Inter only, figures
   tabular. Closed, it is hidden (nothing of it is painted or animated).
   ===================================================================== */
.mk{
  /* surfaces (the site's --base #1f1e1d and --surface #262423, warmer and deeper) */
  --mk-0:#171615; --mk-1:#1d1c1b; --mk-2:#242221; --mk-3:#2b2826;
  /* copper (the site's --cognac #795238 and --cognac-lite #c08a57) and its quiet microtype tone */
  --mk-cu:#795238; --mk-cu-lite:#c08a57; --mk-cu-m:#c49e80;
  /* words: the site's --hi, --stone and --mute, a body tone between them */
  --mk-hi:#F1EDE7; --mk-hd:#F6F2EC; --mk-tx:#d3cbc2; --mk-tx2:#AEA7A3; --mk-mute:#8f8a85;
  /* direction, only with a sign and an arrow: a mineral green, a terracotta (both muted, AA on the cards) */
  --mk-up:#7FA08A; --mk-down:#BC8470;
  --mk-line:rgba(174,167,163,.12); --mk-line2:rgba(174,167,163,.22);
  --mk-gut:var(--gut, clamp(22px,5vw,72px));
  --mk-gap:clamp(16px,1.7vw,26px);
  --mk-r:18px;
  --mk-card-h:512px;
  position:fixed; inset:0; z-index:109; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  scrollbar-width:thin; scrollbar-color:rgba(174,167,163,.28) transparent;
  color:var(--mk-tx); font-family:var(--font); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  /* the depth: a faint copper light from above on the right, a cooler shade low on the left, warm black at the edges */
  background:
    radial-gradient(70% 55% at 82% -8%, rgba(121,82,56,.2), rgba(121,82,56,0) 70%),
    radial-gradient(60% 50% at 6% 104%, rgba(82,82,84,.22), rgba(82,82,84,0) 70%),
    radial-gradient(120% 80% at 50% 38%, var(--mk-2) 0%, var(--mk-1) 55%, var(--mk-0) 100%);
  opacity:0; transition:opacity .3s var(--ease);
}
.mk[hidden]{ display:none; }
.mk.is-in{ opacity:1; transition-duration:.45s; }
.mk.is-snap{ transition:none; }   /* (handed over by the blog: the view is there at once, under it) */
html.is-markets{ overflow:hidden; }
/* while the view covers it, the scene is not painted at all (layout untouched: its scroll stays where it was), nor the
   fixed footer under it; their loops hold where they are and go on from there as the way out starts (still covered) */
html.is-markets-covered .hero, html.is-markets-covered .hero *, html.is-markets-covered .ft[data-scene], html.is-markets-covered .ft[data-scene] *{ visibility:hidden !important; }
html.is-markets-covered :is(.hero, .ft[data-scene]), html.is-markets-covered :is(.hero, .ft[data-scene]) *,
html.is-markets-covered :is(.hero, .ft[data-scene])::before, html.is-markets-covered :is(.hero, .ft[data-scene])::after,
html.is-markets-covered :is(.hero, .ft[data-scene]) *::before, html.is-markets-covered :is(.hero, .ft[data-scene]) *::after{ animation-play-state:paused !important; }
/* the bar keeps its own look over the view; only Mercados is marked as the current place */
.pill__link[data-markets-btn][aria-current="page"]{ color:var(--hi); background:rgba(174,167,163,.07); }

.mk :focus-visible{ outline:2px solid var(--mk-cu-lite); outline-offset:3px; }
.mk [tabindex="-1"]:focus{ outline:none; }   /* (the headline takes the focus on arrival: no ring, the reading starts there) */
.mk-sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }

/* under the bar, once the view scrolls: a soft shade, so nothing reads through the bar */
.mk__shade{ position:sticky; top:0; z-index:3; display:block; height:clamp(84px,11vh,104px); margin-bottom:calc(-1 * clamp(84px,11vh,104px)); pointer-events:none;
  opacity:0; transition:opacity .35s var(--ease); background:linear-gradient(180deg, rgba(25,24,23,.96) 0%, rgba(25,24,23,.8) 55%, rgba(25,24,23,0) 100%); }
.mk.is-scrolled .mk__shade{ opacity:1; }
.mk__in{ position:relative; max-width:1440px; min-height:100%; margin:0 auto; display:flex; flex-direction:column;
  padding:clamp(100px,12.5vh,116px) var(--mk-gut) clamp(18px,2.6vh,30px); }
/* a low warm light under the cards, the room's only lamp */
.mk__in::before{ content:""; position:absolute; left:6%; right:6%; top:44%; height:50%; z-index:0; pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, rgba(121,82,56,.1), rgba(121,82,56,0) 72%); }

/* ---------------- the head: eyebrow, the two lines, the body ---------------- */
.mk__head{ position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,24rem); align-items:end; gap:18px clamp(24px,4vw,64px); }
.mk__eye{ grid-column:1 / -1; font-size:.72rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--mk-cu-m); }
.mk__h1{ font-size:clamp(2.05rem,3.3vw,3.3rem); font-weight:600; line-height:1.04; letter-spacing:-.032em; color:var(--mk-hd); outline:none; }
.mk__line{ display:block; overflow:hidden; padding-bottom:.08em; margin-bottom:-.08em; }
.mk__line > span{ display:block; transform:translateY(108%); transition:transform .9s var(--ease) .12s; }
.mk__line--b > span{ color:var(--mk-tx2); transition-delay:.2s; }
.mk.is-in .mk__line > span{ transform:none; }
.mk__body{ justify-self:end; max-width:40ch; padding-bottom:.3em; font-size:clamp(.95rem,1.05vw,1.05rem); line-height:1.55; color:var(--mk-tx); text-wrap:pretty; }

/* the way in: each block rises a little, in its order (opacity only with reduced motion) */
.mk [data-mk-rv]{ opacity:0; transform:translateY(14px); transition:opacity .45s var(--ease), transform .8s var(--ease); }
.mk.is-in [data-mk-rv]{ opacity:1; transform:none; transition-duration:.6s, .9s; transition-delay:calc(var(--i, 0) * 70ms + 140ms); }

/* ---------------- the three cards ---------------- */
.mk__cards{ position:relative; z-index:1; list-style:none; margin:clamp(26px,4.4vh,44px) 0 0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--mk-gap); }
.mk-card{ position:relative; height:var(--mk-card-h); perspective:1200px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
/* the GlareCard: the tilting plane (fine pointers only, markets.js), its clipped surface, its rim, its lifted content */
.mk-card__tilt{ position:absolute; inset:0; border-radius:var(--mk-r); transform-style:preserve-3d; }
.mk-card.is-tilt .mk-card__tilt{ transform:rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change:transform; }
.mk-card__bg{ position:absolute; inset:0; border-radius:inherit; overflow:hidden;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(121,82,56,.1), rgba(121,82,56,0) 60%),
    linear-gradient(165deg, #2a2725 0%, #232120 48%, #1d1c1b 100%);
  box-shadow:inset 0 0 0 1px var(--mk-line), inset 0 1px 0 rgba(241,237,231,.05), 0 34px 70px -44px rgba(0,0,0,.95);
  transition:box-shadow .45s var(--ease); }
.mk-card.is-rev .mk-card__bg{ box-shadow:inset 0 0 0 1px rgba(192,138,87,.24), inset 0 1px 0 rgba(241,237,231,.06), 0 34px 70px -44px rgba(0,0,0,.95); }
.mk-card__vis{ position:absolute; left:0; right:0; top:24%; bottom:15%; transition:opacity .5s var(--ease); }
.mk-card__vis svg{ width:100%; height:100%; max-width:none; }
.mk-card.is-rev .mk-card__vis{ opacity:.25; }
/* the photographic faces (crypto, stocks): a quiet loop filling the card, shaded where the words sit */
.mk-card__vis--media{ top:0; bottom:0; border-radius:inherit; }
.mk-card__video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--mk-pos, 50% 50%); display:block; }
.mk-card__vis--media::after{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow:inset 0 0 0 1px var(--mk-line);
  background:linear-gradient(180deg, rgba(24,22,21,.82) 0%, rgba(24,22,21,.34) 22%, rgba(24,22,21,0) 44%, rgba(24,22,21,0) 64%, rgba(24,22,21,.5) 84%, rgba(24,22,21,.9) 100%); }
.mk-card.is-rev .mk-card__vis--media{ opacity:.14; }
/* the glare: a very faint light where the pointer is */
.mk-card__glare{ position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .45s var(--ease);
  background:radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(241,237,231,.085) 0%, rgba(241,237,231,.03) 22%, rgba(241,237,231,0) 52%); }
/* the shimmer: one thin reflective band that slides with the pointer */
.mk-card__shine{ position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .6s var(--ease);
  background:linear-gradient(112deg, rgba(241,237,231,0) 40%, rgba(241,237,231,.035) 47%, rgba(196,158,128,.06) 50%, rgba(241,237,231,.035) 53%, rgba(241,237,231,0) 60%);
  background-size:280% 100%; background-position:var(--mx, 50%) 0; }
/* the rim: a thin copper edge, brighter near the pointer (a 1px ring cut out of a radial light) */
.mk-card__rim{ position:absolute; inset:0; border-radius:inherit; padding:1px; opacity:0; pointer-events:none; transition:opacity .45s var(--ease);
  background:radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(192,138,87,.78), rgba(121,82,56,.3) 42%, rgba(174,167,163,.06) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude; }
.mk-card.is-hot .mk-card__glare, .mk-card.is-hot .mk-card__rim, .mk-card.is-hot .mk-card__shine{ opacity:1; }
.mk-card__lift{ position:absolute; inset:0; display:flex; flex-direction:column; padding:clamp(18px,1.6vw,24px); transition:transform .6s var(--ease); }
.mk-card.is-hot .mk-card__lift{ transform:translateZ(24px); }

/* the header: a real button (aria-expanded), the whole card answers to it */
.mk-card__h{ margin:0; font:inherit; }
.mk-card__btn{ display:flex; flex-direction:column; gap:8px; width:100%; margin:0; padding:2px 0; border:0; border-radius:8px; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.mk-card__btn:focus-visible{ outline:2px solid var(--mk-cu-lite); outline-offset:6px; }
.mk-card__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mk-card__t{ font-size:1.02rem; font-weight:600; letter-spacing:.16em; color:var(--mk-hi); }
.mk-card__s{ font-size:.875rem; line-height:1.4; color:var(--mk-tx2); }
.mk-card__ico{ width:12px; height:12px; flex:none; fill:none; stroke:var(--mk-cu-m); stroke-width:1.2; stroke-linecap:round; }
.mk-card__ico .mk-ico-v{ transform-box:view-box; transform-origin:6px 6px; transition:transform .4s var(--ease); }
.mk-card.is-rev .mk-card__ico .mk-ico-v{ transform:scaleY(0); }

/* the data: inside the card, over its drawing (the card never changes its size) */
.mk-card__body{ position:relative; flex:1 1 auto; min-height:0; margin-top:18px; }
.mk-card__panel{ position:absolute; inset:0; display:flex; flex-direction:column; opacity:0; visibility:hidden; transition:opacity .3s var(--ease), visibility 0s linear .3s; }
.mk-card.is-rev .mk-card__panel{ opacity:1; visibility:visible; transition:opacity .45s var(--ease), visibility 0s; }
.mk-card__label{ font-size:.6rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:var(--mk-cu-m); }
.mk-card__crit{ margin-top:6px; font-size:.68rem; line-height:1.45; color:var(--mk-tx2); font-variant-numeric:tabular-nums; }
.mk-card__win{ margin:2px 0 0; font-size:.62rem; line-height:1.4; color:var(--mk-mute); }
.mk-card__msg{ margin-top:14px; font-size:.8rem; line-height:1.5; color:var(--mk-tx2); }
.mk-card__micro{ margin-top:auto; padding-top:10px; font-size:.62rem; line-height:1.5; color:var(--mk-mute); }

/* the rows and their column heads: one grid per list, every row on its columns (subgrid), so the prices,
   the trends and the changes line up from row to row and under their heads; the price and the change
   tracks take the width of their widest figure */
.mk-tab{ display:grid; grid-template-columns:minmax(0,1fr) 54px max-content minmax(56px,max-content); column-gap:10px; }
.mk-tab--o{ grid-template-columns:minmax(0,1fr) max-content minmax(64px,max-content) minmax(64px,max-content); column-gap:12px; margin-top:10px; }
.mk-cols, .mk-rows, .mk-row{ grid-column:1 / -1; display:grid; grid-template-columns:subgrid; align-items:center; }
.mk-cols{ padding:0 0 8px; border-bottom:1px solid var(--mk-line); font-size:.58rem; font-weight:500; letter-spacing:.12em; text-transform:uppercase; color:var(--mk-mute); white-space:nowrap; }
.mk-cols > *{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
/* nothing to list (no data, or a screen that finds nothing): no column heads; no data at all: no freshness note */
.mk-card.is-empty .mk-cols{ display:none; }
.mk-card.is-void .mk-card__delay{ visibility:hidden; }
/* no data at all: said in the footer at rest; once revealed, said only inside the panel (once) */
.mk-card__upd{ transition:opacity .3s var(--ease); }
.mk-card.is-void.is-rev .mk-card__upd{ opacity:0; }
.mk-cols > :nth-child(2){ text-align:center; }
.mk-cols > :nth-child(n+3), .mk-cols--o > :nth-child(2){ text-align:right; }
.mk-rows{ list-style:none; margin:0; padding:0; }
.mk-row{ min-height:42px; padding:6px 0; border-bottom:1px solid rgba(174,167,163,.07); font-size:.8125rem; line-height:1.25; font-variant-numeric:tabular-nums;
  opacity:0; transform:translateY(6px); transition:opacity .3s var(--ease), transform .4s var(--ease); }
.mk-card.is-rev .mk-row{ opacity:1; transform:none; transition-duration:.45s, .55s; transition-delay:calc(var(--i, 0) * 40ms + 70ms); }
.mk-row:last-child{ border-bottom:0; }
.mk-row--o{ min-height:38px; padding:4px 0; row-gap:1px; }
.mk-row__id{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.mk-row__a{ min-width:0; font-weight:600; color:var(--mk-hi); letter-spacing:.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mk-row__b{ min-width:0; font-size:.7rem; letter-spacing:.02em; color:var(--mk-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* a stock's ticker first and whole, its market after it (only the market gives way) */
.mk-row__b--x{ display:flex; }
.mk-row__tk{ flex:none; }
.mk-row__ex{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.mk-row__ex::before{ content:"\00b7"; content:"\00b7" / ""; margin:0 .4em; }
/* the screen's second line, the row's whole width: the name (gives way first), the sector and the cap (never cut) */
.mk-row__sub{ grid-column:1 / -1; grid-row:2; display:flex; align-items:baseline; min-width:0; font-size:.7rem; line-height:1.25; color:var(--mk-mute); white-space:nowrap; }
.mk-row__sub > [hidden]{ display:none; }
.mk-row__sub > :not([hidden]) ~ :not([hidden])::before{ content:"\00b7"; content:"\00b7" / ""; margin:0 .45em; color:var(--mk-mute); }
.mk-row__n{ flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; color:var(--mk-tx2); }
.mk-row__sec{ flex:none; }
.mk-row--o .mk-cap{ flex:none; justify-self:auto; text-align:left; }
.mk-row--o .mk-row__a{ grid-row:1; }
.mk-spark{ justify-self:center; width:54px; height:20px; overflow:visible; }
.mk-spark polyline{ fill:none; stroke:rgba(174,167,163,.62); stroke-width:1.1; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.mk-spark circle{ fill:var(--mk-cu-lite); }
.mk-spark.is-na{ visibility:hidden; }
.mk-c{ position:relative; justify-self:end; white-space:nowrap; text-align:right; }
.mk-px{ color:var(--mk-hi); }
.mk-cap{ color:var(--mk-mute); }
.mk-chg{ display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; }
.mk-chg.is-up{ color:var(--mk-up); }
.mk-chg.is-down{ color:var(--mk-down); }
.mk-chg.is-flat, .mk-chg.is-na{ color:var(--mk-tx2); }
.mk-arw{ width:7px; height:7px; flex:none; }
.mk-arw path{ fill:currentColor; }
.mk-c.is-na .mk-v{ color:var(--mk-mute); }
/* a browser without subgrid: each row its own grid, on tracks sized for the widest figures */
@supports not (grid-template-columns: subgrid){
  .mk-rows{ display:block; }
  .mk-cols, .mk-row{ grid-template-columns:minmax(0,1fr) 54px 7.4em 5.4em; column-gap:10px; }
  .mk-cols--o, .mk-row--o{ grid-template-columns:minmax(0,1fr) 6.6em 5.6em 5.6em; column-gap:10px; }
}
/* a narrow card: tighter columns and a shorter trend, so a stock's market reads whole; a very narrow one (a small
   phone): smaller figures, and the screen's changes by their sign alone */
.mk-card__body{ container-type:inline-size; }
@container (max-width: 330px){
  .mk-tab{ column-gap:8px; grid-template-columns:minmax(0,1fr) 46px max-content minmax(56px,max-content); }
  .mk-tab--o{ column-gap:10px; grid-template-columns:minmax(0,1fr) max-content minmax(64px,max-content) minmax(64px,max-content); }
  .mk-spark{ width:46px; }
  .mk-row__ex::before{ margin:0 .3em; }
}
@container (max-width: 279px){
  .mk-row{ font-size:.75rem; }
  .mk-cols{ letter-spacing:.06em; }
  .mk-tab{ grid-template-columns:minmax(0,1fr) 40px max-content minmax(44px,max-content); }
  .mk-tab--o{ column-gap:8px; grid-template-columns:minmax(0,1fr) max-content minmax(44px,max-content) minmax(44px,max-content); }
  .mk-spark{ width:40px; }
  .mk-row--o .mk-arw{ display:none; }
}
/* loading: a few quiet bars where the rows will be (no spinner) */
.mk-row.is-sk{ display:flex; align-items:center; gap:12px; }   /* (across the whole row, outside the columns) */
.mk-sk{ display:block; height:8px; border-radius:4px; background:rgba(174,167,163,.09); }
.mk-sk--a{ width:34%; } .mk-sk--b{ width:16%; margin-left:auto; } .mk-sk--c{ width:14%; }

/* the footer: when (always), and how fresh the data can be (with the data) */
.mk-card__foot{ margin-top:14px; padding-top:12px; border-top:1px solid var(--mk-line); display:grid; gap:4px; font-size:.64rem; line-height:1.45; }
.mk-card__upd{ min-height:1.45em; letter-spacing:.12em; text-transform:uppercase; color:var(--mk-tx2); font-variant-numeric:tabular-nums; }
.mk-card__upd.is-sk{ color:transparent; background:linear-gradient(rgba(174,167,163,.1), rgba(174,167,163,.1)) 0 50% / 9em .7em no-repeat; border-radius:3px; }
.mk-card__delay{ letter-spacing:.04em; color:var(--mk-mute); opacity:0; transition:opacity .3s var(--ease); }
.mk-card.is-rev .mk-card__delay{ opacity:1; transition-duration:.45s; transition-delay:.18s; }

/* ---------------- the general note, at the end ---------------- */
.mk__foot{ position:relative; z-index:1; margin-top:auto; padding-top:clamp(18px,3vh,30px); }
.mk__disc{ max-width:120ch; font-size:.7rem; line-height:1.6; color:rgba(174,167,163,.8); }

/* ---------------- the drawings: slow, and only while the view is open ---------------- */
@keyframes mkSpin{ to{ transform:rotate(360deg); } }
@keyframes mkPulse{ 50%{ opacity:.45; } }
@media (prefers-reduced-motion: no-preference){
  .mkv-sweep{ transform-box:view-box; transform-origin:236px 128px; animation:mkSpin 14s linear infinite; }
  .mk-card.is-rev .mk-sk{ animation:mkPulse 1.6s ease-in-out infinite; }
}
/* reduced motion: no tilt, no spring, no shimmer (markets.js), only opacity */
@media (prefers-reduced-motion: reduce){
  .mk [data-mk-rv], .mk__line > span, .mk-row{ transform:none !important; }
  .mk-card__lift, .mk-card__ico .mk-ico-v{ transition:none; }
}

/* ---------------- tablets: two cards and one; phones: one column ---------------- */
@media (max-width:1160px){
  .mk{ --mk-card-h:528px; }
  .mk__head{ grid-template-columns:1fr; }
  .mk__body{ justify-self:start; }
  .mk__cards{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* the third card, the screen (the densest list), on the whole row: room for its columns */
  .mk__cards > :nth-child(3){ grid-column:1 / -1; }
}
@media (max-width:640px){
  .mk{ --mk-card-h:508px; --mk-r:16px; }
  .mk__in{ padding-top:100px; }
  .mk__h1{ font-size:clamp(1.8rem,8.2vw,2.3rem); }
  .mk__body{ font-size:.95rem; }
  .mk__cards{ grid-template-columns:1fr; }
  .mk__cards > :nth-child(3){ grid-column:auto; }
}
/* a small phone: the cards a little taller, the screen's criteria take more lines there */
@media (max-width:359px){
  .mk{ --mk-card-h:540px; }
}
