/* AL-HARAMEEN — journey.css: «من 1,000 مدينة إلى 10,000» (journey.js, round 3) */
.jr2-box { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 10px; }

/* the stage: a lit table, the device on it, a soft shadow under it */
.jr2-stage { position: relative; min-height: 470px; display: grid; place-items: center; padding: 26px 20px 52px;
  border-radius: 26px; overflow: hidden; perspective: 1400px;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f6f1e4 55%, #ece3cc 100%);
  border: 1px solid #e6dcc3; box-shadow: inset 0 -30px 60px rgba(201,165,68,.10), 0 18px 40px rgba(14,91,56,.08); }
.jr2-spot { position: absolute; inset: -20% 10% auto; height: 70%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.jr2-floor { position: absolute; left: 18%; right: 18%; bottom: 46px; height: 28px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40,32,12,.28), rgba(40,32,12,0)); filter: blur(2px); pointer-events: none; }
.jr2-dev { position: relative; z-index: 1; width: 100%; display: grid; place-items: center;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; transform-style: preserve-3d; }
.jr2-dev > * { opacity: 0; transform: rotateY(-24deg) translateZ(-60px) translateX(30px); transition: opacity .55s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
.jr2-dev.is-in > * { opacity: 1; transform: none; }
.jr2-dev .hd { --hd-max: 430px; width: 100%; }
.jr2-dev[data-era="0"] .hd { --hd-max: 520px; }
.jr2-dev[data-era="2"] .hd, .jr2-dev[data-era="4"] .hd { --hd-max: 500px; }
.jr2-dev[data-era="3"] .hd { --hd-max: 520px; }
.jr2-dev[data-era="6"] .hd { --hd-max: 270px; }
.jr2-dev .hd-stage { filter: drop-shadow(0 22px 26px rgba(30,24,8,.22)); }
.jr2-photo { display: block; max-width: min(100%, 380px); max-height: 400px; width: auto; height: auto; filter: drop-shadow(0 20px 24px rgba(30,24,8,.22)); }
.jr2-cap { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; text-align: center; font-size: 13px; font-weight: 700; color: #6b5a2b; }

/* the side: rail, the generation, its facts, the counter */
.jr2-side { display: grid; gap: 14px; align-content: start; }
.jr2-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; position: relative; }
.jr2-rail::before { content: ""; position: absolute; inset-inline: 4%; top: 19px; height: 3px; border-radius: 3px; background: #e6dcc3; }
.jr2-step button { position: relative; width: 100%; display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink-soft, #5b665f); }
.jr2-step .jr-y { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid #e6dcc3;
  font: 800 11.5px/1 var(--font-head, sans-serif); color: var(--green-900, #0b3d27); transition: transform .25s, background .25s, border-color .25s; }
.jr2-step .jr-t { font-size: 11.5px; line-height: 1.35; text-align: center; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jr2-step.is-past .jr-y { border-color: #c9a544; }
.jr2-step.is-on .jr-y { background: var(--green-700, #0e5b38); border-color: var(--green-700, #0e5b38); color: #fff; transform: scale(1.12); box-shadow: 0 6px 14px rgba(14,91,56,.28); }
.jr2-step.is-on .jr-t { color: var(--green-900, #0b3d27); }
.jr2-step button:focus-visible .jr-y { outline: 3px solid #c9a544; outline-offset: 2px; }
.jr2-era { background: #fff; border: 1px solid var(--line, #e3ddd0); border-radius: 18px; padding: 16px 18px; min-height: 178px; }
.jr2-era-y { margin: 0; font: 800 13px var(--font-head, sans-serif); color: #a3802a; letter-spacing: .02em; }
.jr2-era-t { margin: 2px 0 6px; font: 800 24px/1.3 var(--font-head, sans-serif); color: var(--green-900, #0b3d27); }
.jr2-era-d { margin: 0; color: var(--ink-soft, #4c5850); line-height: 1.75; font-size: 15px; }
.jr2-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jr2-facts span { font: 700 13px var(--font-head, sans-serif); padding: 6px 11px; border-radius: 999px; background: var(--green-50, #e8f3ec); color: var(--green-900, #0b3d27); }
.jr2-facts .jr2-f-write { background: #fbf3dc; color: #6b5212; }
.jr2-count { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.jr2-n { font: 800 34px/1 var(--font-head, sans-serif); color: var(--green-700, #0e5b38); font-variant-numeric: tabular-nums; min-width: 4.4ch; }
.jr2-bar { height: 10px; border-radius: 99px; background: #efe8d6; overflow: hidden; }
.jr2-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #0e5b38, #c9a544); transition: width .7s cubic-bezier(.2,.8,.2,1); }
[dir="rtl"] .jr2-bar i { background: linear-gradient(270deg, #0e5b38, #c9a544); margin-inline-start: 0; }
.jr2-city { margin: 0; font-size: 14.5px; color: var(--ink-soft, #4c5850); }
.jr2-city b { color: var(--green-900, #0b3d27); }
.jr2-play { justify-self: start; }

/* today: the network, four live devices */
.jr2-net { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jr2-net a { display: grid; gap: 10px; justify-items: center; align-content: end; height: 100%; padding: 14px 12px 14px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(180deg, #fff, #f7f2e6); border: 1px solid var(--line, #e3ddd0); transition: transform .2s, box-shadow .2s; }
.jr2-net a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14,91,56,.10); }
.jr2-net b { font: 800 14.5px var(--font-head, sans-serif); color: var(--green-900, #0b3d27); text-align: center; }
.jr2-netdev { display: block; width: 100%; }
.jr2-netdev .hd { --hd-max: 230px; }
.jr2-net li:nth-child(1) .hd { --hd-max: 118px; }   /* HA-6104: as tall as the desk clock and the boards beside it */
.jr2-net li:nth-child(4) .hd { --hd-max: 150px; }
.jr2-smart { margin: 8px 0 0; text-align: center; font-size: 13.5px; }

@media (max-width: 900px) {
  .jr2-box { grid-template-columns: 1fr; gap: 18px; }
  .jr2-stage { min-height: 330px; padding: 18px 12px 46px; }
  .jr2-dev .hd { --hd-max: 330px; }
  .jr2-dev[data-era="6"] .hd { --hd-max: 200px; }
  .jr2-photo { max-height: 290px; }
  .jr2-rail { grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .jr2-net { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr2-era { min-height: 0; }
  .jr2-era-t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .jr2-dev > *, .jr2-dev, .jr2-bar i { transition: none; } }
