/* Hajj & Umrah Adventure: the hero, the two journeys (Umrah in teal, Hajj in gold), the illustrated map with its
   magnified Masjid al-Haram, the step rail and step cards with checkpoints, the stories, the two games, the place
   cards and the printable. The map stays left-to-right (it is geography); everything else uses logical properties so
   Arabic and Urdu mirror. Still for reduced motion. */

.page-hajj, .page-hajj-print {
    --hj-umrah: #1FB39A; --hj-umrah-deep: #0B7C69; --hj-umrah-soft: #DCF7EF;
    --hj-hajj: #F2A93B; --hj-hajj-deep: #B86E05; --hj-hajj-soft: #FFF1D4;
    --hj-gold: #F2C35A;

    /* The map in daylight: warm sand, honey ridges, white tents, a marble lens. */
    --hm-s1: #FDEFD6; --hm-s2: #F3D09C; --hm-contour: rgba(170, 110, 50, .22);
    --hm-ridge: #E7B97E; --hm-ridge-shade: #C99055;
    --hm-city: #F8E6C8; --hm-city-line: #D7B386; --hm-block: #FFF8EC; --hm-ring: #FFFFFF;
    --hm-tent: #FFFFFF; --hm-tent-edge: #CDB58C; --hm-mina: #F6E4C4;
    --hm-pebble: #A98154; --hm-valley: #F1DCB6; --hm-star: #F7B733;
    --hm-plain: #EDE3B0; --hm-plain-edge: #BFA866; --hm-tree: #8CBF6A; --hm-rock: #CF9F66; --hm-rock-shade: #A97541;
    --hm-m1: #FFFFFF; --hm-m2: #ECE5F8; --hm-arcade: #CDBEEA; --hm-mataf: #DCD2F3; --hm-crowd: #9C88DA;
    --hm-cone-1: rgba(255, 255, 255, .7); --hm-cone-2: rgba(255, 255, 255, 0);
    --hm-water: #3D9BE8; --hm-gallery: #F4EFFD; --hm-green: #5DBF73; --hm-hill: #CBA57A;
    --hm-ink: #3A3254; --hm-label: #6B5A3C;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .page-hajj {
        --hj-umrah-soft: #1F4E5E; --hj-hajj-soft: #4C3F55;
        --hm-s1: #3E3884; --hm-s2: #2A2668; --hm-contour: rgba(255, 255, 255, .07);
        --hm-ridge: #4D4596; --hm-ridge-shade: #3A3380;
        --hm-city: #4B4498; --hm-city-line: #6A62B8; --hm-block: #6C64BE; --hm-ring: #F4F0FF;
        --hm-tent: #E3DCFF; --hm-tent-edge: #7C73CC; --hm-mina: #3F3989;
        --hm-pebble: #C2B6F2; --hm-valley: #3C3786; --hm-star: #FFD45C;
        --hm-plain: #3E4C86; --hm-plain-edge: #6F80C6; --hm-tree: #4E9C83; --hm-rock: #7A6AB8; --hm-rock-shade: #5A4C9C;
        --hm-ink: #F3EEFF; --hm-label: #E3D8FF;
    }
}
:root[data-theme="dark"] .page-hajj {
    --hj-umrah-soft: #1F4E5E; --hj-hajj-soft: #4C3F55;
    --hm-s1: #3E3884; --hm-s2: #2A2668; --hm-contour: rgba(255, 255, 255, .07);
    --hm-ridge: #4D4596; --hm-ridge-shade: #3A3380;
    --hm-city: #4B4498; --hm-city-line: #6A62B8; --hm-block: #6C64BE; --hm-ring: #F4F0FF;
    --hm-tent: #E3DCFF; --hm-tent-edge: #7C73CC; --hm-mina: #3F3989;
    --hm-pebble: #C2B6F2; --hm-valley: #3C3786; --hm-star: #FFD45C;
    --hm-plain: #3E4C86; --hm-plain-edge: #6F80C6; --hm-tree: #4E9C83; --hm-rock: #7A6AB8; --hm-rock-shade: #5A4C9C;
    --hm-ink: #F3EEFF; --hm-label: #E3D8FF;
}

.hj-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.hj-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(14px, 3vw, 34px);
    padding: clamp(18px, 3.2vw, 34px); margin-bottom: 12px; border-radius: var(--radius-l); overflow: hidden;
    background:
        radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--hj-hajj) 34%, transparent), transparent 62%),
        radial-gradient(55% 90% at 0% 100%, color-mix(in srgb, var(--hj-umrah) 26%, transparent), transparent 60%),
        linear-gradient(150deg, var(--paper), var(--hj-hajj-soft));
    box-shadow: var(--shadow); border: 2px solid color-mix(in srgb, var(--hj-hajj) 30%, var(--paper));
}
.hj-hero::before {
    /* An eight-pointed star lattice, very faint, behind the words. */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23B86E05' stroke-width='1.2'%3E%3Crect x='14' y='14' width='20' height='20'/%3E%3Crect x='14' y='14' width='20' height='20' transform='rotate(45 24 24)'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
:root[dir="rtl"] .hj-hero::before { -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 70%); mask-image: linear-gradient(270deg, #000 0%, transparent 70%); }
.hj-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--hj-umrah) 0 38%, var(--hj-hajj) 38% 100%); }
:root[dir="rtl"] .hj-hero::after { transform: scaleX(-1); }
.hj-hero-text { position: relative; min-width: 0; }
.hj-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin: 0; padding-block: 4px 4px; padding-inline: 8px 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--hj-hajj) 22%, var(--paper)); font-weight: 800; font-size: .92rem;
    color: color-mix(in srgb, var(--hj-hajj-deep) 70%, var(--ink));
}
.hj-eyebrow .k-ico { width: 24px; height: 24px; }
.hj-hero h1 { margin: 8px 0 4px; font-size: clamp(2.05rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.hj-hero-intro { margin: 0 0 10px; max-width: 52ch; color: var(--ink-soft); font-family: var(--font-read); font-size: 1.08rem; }
.hj-guide { margin-bottom: 12px; }
.hj-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hj-stat { display: flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-s); border: 2px solid var(--line); }
.hj-stat b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hj-stat b small { font-size: .9rem; color: var(--ink-faint); font-weight: 700; }
.hj-stat > span { font-weight: 700; color: var(--ink-soft); font-size: .93rem; }
.hj-stat--places b { color: var(--hj-umrah-deep); }
.hj-stat--checks b { color: var(--hj-hajj-deep); }
.hj-stat--games b { color: var(--grape-deep); }
:root[data-theme="dark"] .hj-stat b { color: #FFE3A0; }

.hj-hero-art { position: relative; width: clamp(220px, 27vw, 340px); flex: none; }
.hj-hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 34px rgba(90, 62, 158, .35)); }
.hh-ring { animation: hh-turn 9s linear infinite; }
.hh-ring--2 { animation-duration: 6s; }
.hh-ring--3 { animation-duration: 13s; }
/* The lights move anticlockwise round the Kaaba, as in tawaf. */
@keyframes hh-turn { to { stroke-dashoffset: 100; } }

/* ---------- The "learning journey" notice ---------- */
.hj-notice {
    display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 16px; border-radius: 20px;
    background: var(--glass-strong); border: 2px dashed color-mix(in srgb, var(--hj-hajj) 55%, transparent); box-shadow: var(--shadow-s);
    font-family: var(--font-read); color: var(--ink);
}
.hj-notice-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 14px; background: var(--hj-hajj-soft); }
.hj-notice-ico .k-ico { width: 28px; height: 28px; }
.hj-notice b { font-family: var(--font-display); font-weight: 700; }
.hj-notice-link { color: var(--hj-hajj-deep); font-weight: 800; text-underline-offset: 3px; white-space: nowrap; }
:root[data-theme="dark"] .hj-notice-link { color: #FFD48A; }

/* ---------- The two journeys ---------- */
.hj-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.hj-jcard {
    --c: var(--hj-umrah); --cd: var(--hj-umrah-deep); --cs: var(--hj-umrah-soft);
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
    padding: 14px 18px; border: 0; border-radius: 26px; cursor: pointer; text-align: start; color: var(--ink);
    background: linear-gradient(140deg, var(--paper), var(--cs)); box-shadow: var(--shadow-s), inset 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent);
    font: inherit; transition: transform .3s var(--ease-bounce), box-shadow .3s, filter .3s; filter: saturate(.75); opacity: .86;
}
.hj-jcard--hajj { --c: var(--hj-hajj); --cd: var(--hj-hajj-deep); --cs: var(--hj-hajj-soft); }
.hj-jcard:hover { transform: translateY(-2px); opacity: 1; }
.hj-jcard[aria-selected="true"] {
    filter: none; opacity: 1; transform: translateY(-3px);
    box-shadow: 0 22px 34px -20px color-mix(in srgb, var(--cd) 90%, transparent), inset 0 0 0 3px var(--c);
}
.hj-jcard[aria-selected="true"]::after {
    content: "✓"; position: absolute; top: 10px; inset-inline-end: 12px; display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; box-shadow: 0 4px 10px -4px var(--cd);
}
.hj-jcard:focus-visible { outline: 3px solid var(--cd); outline-offset: 3px; }
.hj-jcard-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.hj-jcard-ico .k-ico { width: 44px; height: 44px; }
.hj-jcard-text { display: grid; gap: 2px; min-width: 0; }
.hj-jcard-tag { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cd); }
:root[data-theme="dark"] .hj-jcard-tag { color: color-mix(in srgb, var(--c) 70%, #fff); }
:root[lang="ar"] .hj-jcard-tag, :root[lang="ur"] .hj-jcard-tag { text-transform: none; letter-spacing: 0; }
.hj-jcard-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.05; }
.hj-jcard-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.hj-jcard-facts > span { display: inline-flex; align-items: center; gap: 4px; }
.hj-jcard-facts .k-ico { width: 18px; height: 18px; }
.hj-jcard-dots { grid-column: 1 / -1; display: flex; gap: 5px; }
.hj-jcard-dots i { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 22%, transparent); transition: background .4s; }
.hj-jcard-dots i.is-done { background: var(--c); }
.hj-duty { margin: 6px 4px 12px; font-family: var(--font-read); font-size: .95rem; color: var(--ink-soft); }

/* ---------- The step rail ---------- */
.hj-rails { margin-bottom: 14px; padding: 10px 14px 12px; border-radius: 24px; background: var(--glass-strong); border: 2px solid var(--glass-edge); box-shadow: var(--shadow-s); }
.hj-mini-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; font-size: 1.15rem; }
.hj-mini-title .k-ico { width: 26px; height: 26px; }
.hj-mini-title small { font-family: var(--font-body); font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.hj-rail { list-style: none; margin: 0; padding: 18px 2px 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.hj-rail-item { position: relative; display: flex; flex-direction: column; }
.hj-rail-item::before {
    /* The thread joining the steps. */
    content: ""; position: absolute; top: 31px; inset-inline-start: -8px; width: 8px; height: 4px; background: color-mix(in srgb, var(--rc, var(--hj-umrah)) 45%, transparent);
}
.hj-rail-item:first-child::before { display: none; }
.hj-rail--hajj { --rc: var(--hj-hajj); --rcd: var(--hj-hajj-deep); --rcs: var(--hj-hajj-soft); }
.hj-rail--umrah { --rc: var(--hj-umrah); --rcd: var(--hj-umrah-deep); --rcs: var(--hj-umrah-soft); }
.hj-rail-day {
    position: absolute; top: -18px; inset-inline-start: 0; max-width: 220px; padding: 0 8px; border-radius: 999px; white-space: nowrap;
    font-size: .74rem; font-weight: 800; color: var(--rcd); background: var(--rcs); z-index: 1;
}
:root[data-theme="dark"] .hj-rail-day { color: #FFE3A0; }
.hj-rail-item.is-new-day:not(:first-child) { padding-inline-start: 6px; border-inline-start: 2px dotted color-mix(in srgb, var(--rc) 60%, transparent); }
.hj-rail-btn {
    position: relative; flex: 1; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; justify-content: start; gap: 2px 6px;
    padding: 8px 10px; border: 0; border-radius: 18px; cursor: pointer; text-align: start; font: inherit; color: var(--ink);
    background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); transition: transform .25s var(--ease-bounce), box-shadow .25s, background .25s;
}
.hj-rail-btn:hover { transform: translateY(-2px); }
.hj-rail-btn:focus-visible { outline: 3px solid var(--rcd); outline-offset: 2px; }
.hj-rail-btn[aria-current="step"] { background: linear-gradient(160deg, var(--paper), var(--rcs)); box-shadow: inset 0 0 0 3px var(--rc), 0 12px 20px -14px var(--rcd); }
.hj-rail-no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rc); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.hj-rail-ico .k-ico { width: 30px; height: 30px; }
.hj-rail-name { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; font-size: .9rem; line-height: 1.15; }
.hj-rail-check { position: absolute; top: 6px; inset-inline-end: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--line); }
.hj-rail-btn.is-done .hj-rail-check { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ---------- The stage: map and step card ---------- */
.hj-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 16px; align-items: start; margin-bottom: 22px; }
.hj-mapcol { min-width: 0; display: grid; gap: 10px; }
.hj-map {
    position: relative; margin: 0; aspect-ratio: 1000 / 620; border-radius: 30px; box-shadow: var(--shadow-l);
    background: var(--hm-s2); isolation: isolate;
}
.hj-map > svg.hm { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 30px; }

/* The drawing's colours. */
.hm .hm-s1 { stop-color: var(--hm-s1); } .hm .hm-s2 { stop-color: var(--hm-s2); }
.hm .hm-m1 { stop-color: var(--hm-m1); } .hm .hm-m2 { stop-color: var(--hm-m2); }
.hm .hm-c1 { stop-color: var(--hm-cone-1); } .hm .hm-c2 { stop-color: var(--hm-cone-2); }
.hm-contours path { stroke: var(--hm-contour); stroke-width: 1.4; }
.hm-ridge { fill: var(--hm-ridge); } .hm-ridge-shade { fill: var(--hm-ridge-shade); }
.hm-miqat-line { stroke: var(--hj-umrah); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; opacity: .8; }
.hm-gate-arch { fill: color-mix(in srgb, var(--hj-umrah) 40%, var(--hm-block)); stroke: var(--hj-umrah-deep); stroke-width: 1.5; }
.hm-gate-base { fill: var(--hj-umrah-deep); opacity: .55; }
.hm-city-ground { fill: var(--hm-city); stroke: var(--hm-city-line); stroke-width: 1.5; }
.hm-block { fill: var(--hm-block); stroke: var(--hm-city-line); stroke-width: 1; }
.hm-haram-ring { fill: var(--hm-ring); stroke: var(--hj-gold); stroke-width: 3; }
.hm-kaaba-tiny { fill: #1E1B24; }
.hm-minaret { fill: var(--hm-block); stroke: var(--hm-city-line); stroke-width: 1; }
.hm-cone { opacity: .9; }
.hm-mina { stroke: none; }
.hm-mina-edge { stroke: var(--hm-tent-edge); stroke-width: 2; stroke-dasharray: 5 5; }
.hm-tent { fill: var(--hm-tent); stroke: var(--hm-tent-edge); stroke-width: .9; }
.hm-mina-bg { fill: var(--hm-mina); }
.hm-valley-bg { fill: var(--hm-valley); }
.hm-bridge { fill: color-mix(in srgb, var(--hm-block) 70%, #B9AEDB); stroke: #8C7FC2; stroke-width: 1.2; }
.hm-bridge-floor { fill: #A99BDC; }
.hm-pillar { fill: #5D4F8C; }
.hm-muzdalifah { stroke: none; }
.hm-pebble { fill: var(--hm-pebble); opacity: .75; }
.hm-valley-edge { stroke: var(--hm-plain-edge); stroke-width: 1.6; stroke-dasharray: 4 5; }
.hm-stars path { fill: var(--hm-star); }
.hm-stars .hm-moon { fill: #FFE7A0; }
.hm-mosque-body { fill: var(--hm-block); stroke: var(--hm-city-line); }
.hm-mosque-dome { fill: var(--hj-umrah); }
.hm-arafat { fill: var(--hm-plain); }
.hm-arafat-edge { stroke: var(--hm-plain-edge); stroke-width: 1.8; stroke-dasharray: 7 6; }
.hm-trees circle { fill: var(--hm-tree); }
.hm-rock { fill: var(--hm-rock); } .hm-rock-shade { fill: var(--hm-rock-shade); }
.hm-mount-pillar { fill: #FFFFFF; stroke: var(--hm-rock-shade); stroke-width: 1; }
.hm-route path { stroke-width: 5; }
.hm-route--umrah path, .hm-route-lens { stroke: var(--hj-umrah); stroke-width: 5; stroke-dasharray: 2 11; stroke-linecap: round; }
.hm-route--hajj path { stroke: var(--hj-hajj); stroke-dasharray: 14 9; }
.hm-leg--back { stroke-dasharray: 3 9 !important; }
.hm-arrow--u { fill: var(--hj-umrah); } .hm-arrow--h { fill: var(--hj-hajj); }
.hm-days circle { fill: var(--paper); stroke: var(--hj-hajj); stroke-width: 3; }
.hm-days text, .hm-compass text, .hm-numbers text { fill: var(--hm-ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-anchor: middle; }
.hm-lens-shadow { fill: rgba(60, 40, 120, .2); }
.hm-arcade circle { stroke: var(--hm-arcade); stroke-width: 6; }
.hm-arcade .hm-arches { stroke-width: 10; stroke-dasharray: 10 6; opacity: .7; }
.hm-mataf circle { stroke: var(--hm-mataf); stroke-width: 2; }
.hm-mataf .hm-crowd { stroke: var(--hm-crowd); stroke-width: 3.2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .8; }
.hm-turn { stroke: var(--hj-umrah); stroke-width: 3; }
.hm-maqam rect { fill: #F2D488; } .hm-maqam path { fill: #E0AF46; }
.hm-ripple { fill: none; stroke: var(--hm-water); stroke-width: 2; opacity: .45; }
.hm-water { fill: var(--hm-water); }
.hm-gallery { fill: var(--hm-gallery); stroke: var(--hm-arcade); stroke-width: 2; }
.hm-green { fill: var(--hm-green); opacity: .7; }
.hm-hill { fill: var(--hm-hill); }
.hm-k-top { fill: #3B3743; } .hm-k-left { fill: #1E1B24; } .hm-k-right { fill: #2B2732; } .hm-k-band, .hm-k-door { fill: var(--hj-gold); }
.hm-lens-ring { stroke: #FFFFFF; stroke-width: 7; }
.hm-lens-ring-inner { stroke: var(--hj-gold); stroke-width: 2.5; stroke-dasharray: 3 7; }
.hm-compass circle { fill: color-mix(in srgb, var(--paper) 85%, transparent); stroke: var(--hm-contour); stroke-width: 2; }
.hm-needle { fill: #E0503F; } .hm-needle-s { fill: var(--hm-ink); opacity: .5; }
.hm-compass text { font-size: 13px; }
.hm-numbers circle { fill: #fff; stroke: #2B2350; stroke-width: 2.5; }
.hm-numbers text { fill: #2B2350; font-size: 16px; }

/* The chosen journey brightens its own route and dims the other. */
.hm-route, .hm-days, .hm-route-lens, .hm-turn, .hm-miqat-line { transition: opacity .5s; }
[data-journey="umrah"] .hm-route--hajj, [data-journey="umrah"] .hm-days { opacity: .18; }
[data-journey="hajj"] .hm-route--umrah, [data-journey="hajj"] .hm-route-lens, [data-journey="hajj"] .hm-miqat-line { opacity: .35; }
[data-journey="umrah"] .hm-route--umrah path, [data-journey="umrah"] .hm-route-lens,
[data-journey="hajj"] .hm-route--hajj path { animation: hm-march 1.6s linear infinite; }
@keyframes hm-march { to { stroke-dashoffset: -26; } }
[data-journey="umrah"] .hm-crowd { animation: hm-tawaf 4s linear infinite; }
@keyframes hm-tawaf { to { stroke-dashoffset: 24; } }

/* Labels drawn over the map. */
.hj-lens-label, .hj-far-label, .hj-scale {
    position: absolute; z-index: 2; padding: 2px 10px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: .78rem;
    color: var(--hm-label); background: color-mix(in srgb, var(--paper) 80%, transparent); white-space: nowrap; pointer-events: none;
}
.hj-lens-label { left: 19%; bottom: 1.5%; transform: translateX(-50%); color: var(--ink); background: var(--paper); box-shadow: var(--shadow-s); }
.hj-far-label { left: 1.6%; top: 25%; color: var(--hj-umrah-deep); }
.hj-scale { right: 9%; bottom: 3%; font-size: .72rem; }
:root[data-theme="dark"] .hj-far-label { color: #9BEBD8; }

/* Pins: a pill with the place's icon and name, on a short stem over the exact spot. */
.hj-pin {
    --pc: var(--hj-umrah); --pcd: var(--hj-umrah-deep);
    position: absolute; z-index: 3; left: var(--x); top: var(--y); transform: translate(-50%, calc(-100% - 6px));
    display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink);
    transition: transform .3s var(--ease-bounce), opacity .4s, filter .4s;
}
.hj-pin.is-hajj { --pc: var(--hj-hajj); --pcd: var(--hj-hajj-deep); }
.hj-pin::after {
    /* The stem, and the dot on the spot. */
    content: ""; width: 3px; height: 8px; background: var(--pc);
}
.hj-pin::before {
    content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
    background: var(--pc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}
.hj-pin-head {
    display: inline-flex; align-items: center; gap: 4px; padding-block: 3px 3px; padding-inline: 3px 10px; border-radius: 999px; background: var(--paper);
    box-shadow: 0 8px 16px -8px rgba(40, 20, 90, .5), inset 0 0 0 2px var(--pc); white-space: nowrap;
}
.hj-pin-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--pc) 20%, var(--paper)); }
.hj-pin-ico .k-ico { width: 24px; height: 24px; }
.hj-pin-name { font-family: var(--font-display); font-weight: 600; font-size: .8rem; line-height: 1; }
.hj-pin-found { display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: .7rem; font-weight: 800; }
.hj-pin.is-found .hj-pin-found { display: grid; }
.hj-pin:hover, .hj-pin:focus-visible { transform: translate(-50%, calc(-100% - 10px)) scale(1.06); z-index: 5; }
.hj-pin:focus-visible { outline: none; }
.hj-pin:focus-visible .hj-pin-head { outline: 3px solid var(--pcd); outline-offset: 2px; }
.hj-pin.is-here { z-index: 4; }
.hj-pin.is-here .hj-pin-head { background: var(--pcd); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 35%, transparent), 0 10px 22px -8px var(--pcd); }
.hj-pin.is-here .hj-pin-ico { background: rgba(255, 255, 255, .9); }
[data-journey="umrah"] .hj-pin.is-hajj:not(:hover):not(:focus-visible) { opacity: .85; filter: saturate(.3); }
.hj-pin.in-lens .hj-pin-name { font-size: .74rem; }

/* The traveller: a small glowing light that moves to the step being read. */
.hj-traveller {
    position: absolute; z-index: 2; left: var(--tx, 9.2%); top: var(--ty, 14.8%); width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none;
    transition: left 1s var(--ease-soft), top 1s var(--ease-soft);
}
.hj-traveller i {
    position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 246, 210, .95) 0 18%, rgba(255, 210, 110, .55) 40%, transparent 70%);
    animation: hj-glow 2.2s ease-in-out infinite;
}
@keyframes hj-glow { 50% { transform: scale(1.35); opacity: .7; } }

/* Places to discover, as chips under the map. */
.hj-places { padding: 10px 12px 12px; border-radius: 22px; background: var(--glass-strong); border: 2px solid var(--glass-edge); box-shadow: var(--shadow-s); }
.hj-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hj-chip {
    --pc: var(--hj-umrah);
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding-block: 4px 4px; padding-inline: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink);
    background: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pc) 45%, transparent); transition: transform .2s var(--ease-bounce);
}
.hj-chip.is-hajj { --pc: var(--hj-hajj); }
.hj-chip .k-ico { width: 26px; height: 26px; }
.hj-chip:hover { transform: translateY(-2px); }
.hj-chip:focus-visible { outline: 3px solid var(--pc); outline-offset: 2px; }
.hj-chip-found { display: none; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); }
.hj-chip.is-found { background: color-mix(in srgb, var(--pc) 16%, var(--paper)); }
.hj-chip.is-found .hj-chip-found { display: inline-block; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
[data-journey="umrah"] .hj-chip.is-hajj { opacity: .62; }

/* ---------- The step card ---------- */
.hj-panelcol { min-width: 0; display: grid; gap: 10px; }
.hj-tamattu {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 14px; border-radius: 20px;
    background: linear-gradient(120deg, var(--hj-umrah-soft), var(--hj-hajj-soft)); font-family: var(--font-read); font-size: .95rem;
}
.hj-tamattu .k-ico { width: 28px; height: 28px; flex: none; }
.hj-tamattu span { flex: 1 1 200px; }
.hj-link-btn { border: 0; padding: 4px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 800; font-size: .88rem; background: var(--paper); color: var(--hj-umrah-deep); box-shadow: inset 0 0 0 2px var(--hj-umrah); }
:root[data-theme="dark"] .hj-link-btn { color: #9BEBD8; }
.hj-step {
    --c: var(--hj-umrah); --cd: var(--hj-umrah-deep); --cs: var(--hj-umrah-soft);
    position: relative; padding: 16px 18px 14px; border-radius: 28px; background: var(--glass-strong);
    box-shadow: var(--shadow), inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); overflow: hidden;
    animation: hj-in .45s var(--ease-soft);
}
.hj-step--hajj { --c: var(--hj-hajj); --cd: var(--hj-hajj-deep); --cs: var(--hj-hajj-soft); }
.hj-step::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--c); }
@keyframes hj-in { from { opacity: 0; transform: translateY(10px); } }
.hj-step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.hj-step-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: linear-gradient(160deg, var(--paper), var(--cs)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.hj-step-ico .k-ico { width: 42px; height: 42px; }
.hj-step-of { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.hj-badge { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: #fff; background: var(--hj-umrah-deep); }
.hj-badge--hajj { background: var(--hj-hajj-deep); }
.hj-day { padding: 1px 10px; border-radius: 999px; background: var(--cs); color: var(--cd); font-size: .78rem; }
:root[data-theme="dark"] .hj-day { color: #FFE3A0; }
.hj-step h2 { margin: 4px 0 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; }
.hj-ar { margin: 2px 0 0; font-family: var(--font-arabic); font-size: 1.3rem; color: var(--cd); line-height: 1.6; }
:root[data-theme="dark"] .hj-ar { color: #FFE3A0; }
.hj-step-done { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf-soft); }
.hj-step-done .k-ico { width: 30px; height: 30px; }
.hj-where {
    display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 6px; padding-block: 4px 4px; padding-inline: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: .92rem; color: var(--ink); background: var(--cs); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent);
}
.hj-where .k-ico { width: 26px; height: 26px; }
.hj-where:focus-visible { outline: 3px solid var(--cd); outline-offset: 2px; }
.hj-read { display: grid; gap: 8px; }
.hj-what h3, .hj-why h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cd); }
:root[lang="ar"] :is(.hj-what, .hj-why) h3, :root[lang="ur"] :is(.hj-what, .hj-why) h3 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
:root[data-theme="dark"] :is(.hj-what, .hj-why) h3 { color: color-mix(in srgb, var(--c) 65%, #fff); }
.hj-why h3 .k-ico { width: 18px; height: 18px; }
.hj-what p, .hj-why p { margin: 0; font-family: var(--font-read); font-size: 1.04rem; line-height: 1.55; }
.hj-why { padding: 10px 12px; border-radius: 18px; background: color-mix(in srgb, var(--cs) 70%, transparent); border-inline-start: 4px solid var(--c); }
.hj-read.is-speaking p { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--hj-gold) 40%, transparent) 62%); }
.hj-flex-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: .86rem; color: var(--ink-soft); font-family: var(--font-read); }
.hj-flex-note .k-ico { width: 20px; height: 20px; flex: none; }
.hj-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0; }
.hj-guide-link { font-size: .88rem; font-weight: 700; color: var(--ink-soft); text-underline-offset: 3px; }

.hj-check { padding: 12px 14px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.hj-check-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.hj-check-title .k-ico { width: 24px; height: 24px; }
.hj-check-title b { font-family: var(--font-display); font-size: 1.05rem; }
.hj-check-of { margin-inline-start: auto; font-size: .8rem; font-weight: 800; color: var(--ink-faint); }
.hj-q { margin: 0; padding: 0; border: 0; min-width: 0; }
.hj-q legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 1.02rem; }
.hj-opts { display: grid; gap: 6px; }
.hj-opt {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 8px 14px; border: 0; border-radius: 16px; cursor: pointer;
    text-align: start; font: inherit; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--cs) 55%, var(--paper));
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .2s var(--ease-bounce), background .2s;
}
.hj-opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 60%, transparent); }
.hj-opt:hover:not(:disabled) { transform: translateX(3px); }
:root[dir="rtl"] .hj-opt:hover:not(:disabled) { transform: translateX(-3px); }
.hj-opt:focus-visible { outline: 3px solid var(--cd); outline-offset: 2px; }
.hj-opt.is-right { background: var(--leaf-soft); box-shadow: inset 0 0 0 3px var(--leaf); }
.hj-opt.is-right::before { background: var(--leaf); box-shadow: none; }
.hj-opt.is-wrong { opacity: .55; animation: hj-shake .4s; }
.hj-opt.is-wrong::before { background: var(--coral); box-shadow: none; }
.hj-opt:disabled { cursor: default; }
@keyframes hj-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.hj-q-why { margin: 8px 0 0; padding: 8px 12px; border-radius: 14px; background: var(--leaf-soft); font-family: var(--font-read); font-size: .95rem; }
.hj-check-msg { margin: 6px 0 0; min-height: 1.2em; font-weight: 800; color: var(--ink-soft); }
.hj-check-msg.is-good { color: var(--leaf-deep); }
:root[data-theme="dark"] .hj-check-msg.is-good { color: #9BE3AE; }
.hj-check.is-passed { box-shadow: inset 0 0 0 3px var(--leaf); }
.hj-step-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.hj-step-nav .k-btn:last-child { margin-inline-start: auto; }
.hj-chev { width: 18px; height: 18px; flex: none; }
.hj-finish { flex: 1 1 100%; margin: 0; font-weight: 800; color: var(--cd); }
:root[data-theme="dark"] .hj-finish { color: #FFE3A0; }

/* ---------- Stories ---------- */
.hj-stories { margin-bottom: 22px; }
.k-section-title small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink-soft); margin-inline-start: 8px; }
.hj-story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hj-story {
    --c: var(--hj-hajj); position: relative; padding: 16px 16px 50px; border-radius: 26px; background: linear-gradient(170deg, var(--paper), color-mix(in srgb, var(--c) 16%, var(--paper)));
    box-shadow: var(--shadow-s), inset 0 0 0 2px color-mix(in srgb, var(--c) 30%, transparent);
}
.hj-story--zamzam { --c: var(--sky); } .hj-story--jamarat { --c: var(--grape); } .hj-story--kaaba { --c: var(--hj-umrah); }
.hj-story-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.hj-story-ico .k-ico { width: 38px; height: 38px; }
.hj-story h3 { margin: 10px 0 4px; font-size: 1.15rem; line-height: 1.15; }
.hj-story p { margin: 0; font-family: var(--font-read); font-size: .96rem; line-height: 1.5; color: var(--ink-soft); }
.hj-story-say { position: absolute; bottom: 10px; inset-inline-end: 12px; }

/* ---------- Games ---------- */
.hj-play { margin-bottom: 22px; }
.hj-play-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.hj-game { padding: 16px 18px; border-radius: 28px; background: var(--glass-strong); border: 2px solid var(--glass-edge); box-shadow: var(--shadow); }
.hj-game h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.3rem; }
.hj-game h3 .k-ico { width: 32px; height: 32px; }
.hj-game-blurb { margin: 2px 0 10px; color: var(--ink-soft); font-family: var(--font-read); }
.hj-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.hj-seg-btn { border: 0; padding: 6px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); background: none; }
.hj-seg-btn[aria-selected="true"].hj-seg-btn--umrah { background: var(--hj-umrah-deep); color: #fff; }
.hj-seg-btn[aria-selected="true"].hj-seg-btn--hajj { background: var(--hj-hajj); color: #2B2350; }
.hj-seg-btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.hj-slots { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hj-slot {
    position: relative; min-height: 78px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--grape) 35%, transparent);
    display: flex; align-items: stretch; background: color-mix(in srgb, var(--paper) 50%, transparent);
}
.hj-slot-no { position: absolute; top: 6px; inset-inline-start: 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink-faint); }
.hj-slot .hj-card { flex: 1; margin: 0; }
.hj-slot.is-right .hj-card { box-shadow: inset 0 0 0 3px var(--leaf), 0 0 0 3px color-mix(in srgb, var(--leaf) 30%, transparent); }
.hj-slot.is-wrong .hj-card { box-shadow: inset 0 0 0 3px var(--coral); animation: hj-shake .4s; }
.hj-tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.hj-card {
    --c: var(--hj-umrah); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 110px; padding: 8px 10px;
    border: 0; border-radius: 16px; cursor: pointer; text-align: center; font: inherit; color: var(--ink); background: var(--paper);
    box-shadow: 0 8px 14px -10px rgba(40, 20, 90, .6), inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .2s var(--ease-bounce);
}
.hj-card--hajj { --c: var(--hj-hajj); }
.hj-card .k-ico { width: 32px; height: 32px; }
.hj-card span { font-family: var(--font-display); font-weight: 600; font-size: .88rem; line-height: 1.15; }
.hj-card small { font-size: .72rem; font-weight: 700; color: var(--ink-faint); }
.hj-card:hover { transform: translateY(-2px) rotate(-1deg); }
.hj-card:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.hj-game-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hj-game-msg { margin: 8px 0 0; min-height: 1.3em; font-weight: 800; color: var(--ink-soft); }
.hj-game-msg.is-good { color: var(--leaf-deep); }
:root[data-theme="dark"] .hj-game-msg.is-good { color: #9BE3AE; }
.hj-game-note { margin: 10px 0 0; font-size: .85rem; color: var(--ink-faint); font-family: var(--font-read); }
.hj-match { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; }
.hj-match-col { display: grid; gap: 6px; align-content: start; }
.hj-mitem {
    display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: start;
    font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line);
    transition: transform .2s var(--ease-bounce), background .2s, box-shadow .2s;
}
.hj-mitem--place { font-family: var(--font-display); font-weight: 600; }
.hj-mitem .k-ico { width: 26px; height: 26px; flex: none; }
.hj-mitem:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.hj-mitem[aria-pressed="true"] { background: var(--grape-soft); box-shadow: inset 0 0 0 3px var(--grape); transform: scale(1.02); }
.hj-mitem.is-matched { background: var(--leaf-soft); box-shadow: inset 0 0 0 2px var(--leaf); cursor: default; }
.hj-mitem.is-wrong { animation: hj-shake .4s; box-shadow: inset 0 0 0 3px var(--coral); }

/* ---------- Print card and grown-ups ---------- */
.hj-bottom { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; align-items: start; margin-bottom: 10px; }
.hj-print-card {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 26px; text-decoration: none; color: var(--ink);
    background: linear-gradient(140deg, var(--paper), var(--grape-soft)); box-shadow: var(--shadow-s), inset 0 0 0 2px color-mix(in srgb, var(--grape) 30%, transparent);
    transition: transform .25s var(--ease-bounce);
}
.hj-print-card:hover { transform: translateY(-3px); }
.hj-print-card:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
.hj-print-art { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.hj-print-art .k-ico { width: 44px; height: 44px; }
.hj-print-card b { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.hj-print-card small { display: block; color: var(--ink-soft); font-size: .92rem; }
:root[dir="rtl"] .hj-print-card .hj-chev { transform: none; }
.hj-grownups { padding: 14px 18px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-s); font-family: var(--font-read); color: var(--ink-soft); font-size: .95rem; }
.hj-grownups h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
.hj-grownups h2 .k-ico { width: 28px; height: 28px; }
.hj-grownups p { margin: 0 0 6px; }
.hj-grownups-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hj-status { text-align: center; color: var(--ink-soft); font-weight: 700; }
.hj-status--error { color: var(--coral-deep); }
.hj[data-state="ready"] [data-state-loading] { display: none; }

/* ---------- Place card dialog ---------- */
.hj-dialog { width: min(520px, calc(100vw - 32px)); }
.hj-placecard { --c: var(--hj-umrah); padding: 26px 26px 22px; text-align: center; }
.hj-placecard.is-hajj { --c: var(--hj-hajj); }
.hj-placecard-ico { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 8px; border-radius: 30px; background: linear-gradient(160deg, var(--paper), color-mix(in srgb, var(--c) 22%, var(--paper))); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 50%, transparent), 0 16px 28px -16px var(--c); }
.hj-placecard-ico .k-ico { width: 64px; height: 64px; }
.hj-placecard-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.hj-found-stamp { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 999px; background: var(--leaf); color: #fff; font-size: .78rem; font-weight: 800; animation: hj-stamp .5s var(--ease-bounce); }
.hj-found-stamp .k-ico { width: 16px; height: 16px; }
@keyframes hj-stamp { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } }
.hj-placecard h2 { margin: 8px 0 6px; font-size: 1.8rem; }
.hj-placecard-what { margin: 0 0 10px; font-family: var(--font-read); font-size: 1.05rem; line-height: 1.55; text-align: start; }
.hj-placecard-happens { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: 16px; background: color-mix(in srgb, var(--c) 16%, var(--paper)); }
.hj-placecard-happens .k-ico { width: 24px; height: 24px; flex: none; }
.hj-placecard-actions { margin-bottom: 10px; }
.hj-placecard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hj-placecard-step { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: 0; border-radius: 14px; cursor: pointer; text-align: start; font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.hj-placecard-step:hover { box-shadow: inset 0 0 0 2px var(--grape); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
    .hj-stage { grid-template-columns: 1fr; }
    .hj-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hj-play-grid, .hj-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .hj-hero { grid-template-columns: 1fr; }
    .hj-hero-art { position: absolute; inset-inline-end: -40px; top: -30px; width: 170px; opacity: .35; }
    .hj-switch { grid-template-columns: 1fr; }
    .hj-jcard-ico { width: 52px; height: 52px; }
    /* Part 48: hidden from sight only, so each pin still has a name for screen readers. */
    .hj-pin-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .hj-pin.is-here .hj-pin-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .hj-pin-head { padding: 2px; }
    .hj-pin.is-here .hj-pin-head { padding-inline-end: 8px; }
    .hj-pin-ico { width: 26px; height: 26px; }
    .hj-pin-ico .k-ico { width: 20px; height: 20px; }
    .hj-lens-label, .hj-far-label { font-size: .66rem; }
    .hj-scale { display: none; }
    .hj-match { grid-template-columns: 1fr 1.25fr; }
    .hj-mitem { font-size: .82rem; padding: 6px 8px; }
}
@media (max-width: 560px) {
    .hj-story-grid { grid-template-columns: 1fr; }
    .hj-notice { align-items: flex-start; }
    .hj-step { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-ring, .hj-traveller i, [data-journey] .hm-route path, [data-journey] .hm-route-lens, [data-journey] .hm-crowd { animation: none !important; }
    .hj-step, .hj-found-stamp { animation: none; }
    .hj-traveller { transition: none; }
}

/* ---------- The printable (/hajj/print) ---------- */
.page-hajj-print .k-main { max-width: 1000px; }
.hp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hp-head h1 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.hp-head p { margin: 2px 0 0; color: var(--ink-soft); font-family: var(--font-read); }
.hp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-sheet {
    position: relative; margin: 0 auto 18px; padding: 22px 26px; max-width: 900px; border-radius: 10px; background: #fff; color: #2B2350;
    box-shadow: 0 18px 40px -20px rgba(40, 20, 90, .5); font-family: var(--font-read);
}
.hp-sheet h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; color: #2B2350; }
.hp-sheet-help { margin: 0 0 10px; font-size: .95rem; }
.hp-name { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; font-weight: 700; }
.hp-name span { flex: 1; max-width: 300px; border-bottom: 2px solid #2B2350; height: 1.4em; }
.hp-map { position: relative; aspect-ratio: 1000 / 620; border: 2px solid #2B2350; border-radius: 18px; overflow: hidden; }
.hp-map > svg.hm { display: block; width: 100%; height: 100%; }
/* Line art: every shape white with a dark outline, ready to colour. */
.hp-map .hm :is(path, rect, circle, ellipse):not([fill="none"], g[fill="none"] *, [fill*="hm-tents"], [fill*="hm-pebbles"]) { fill: #FFFFFF !important; }
.hp-map .hm :is(path, rect, circle, ellipse):not(clipPath *) { stroke: #2B2350 !important; stroke-width: 1.4 !important; animation: none !important; }
.hp-map .hm .hm-s1, .hp-map .hm .hm-s2, .hp-map .hm .hm-m1, .hp-map .hm .hm-m2 { stop-color: #FFFFFF !important; }
.hp-map .hm .hm-c1, .hp-map .hm .hm-c2 { stop-color: #FFFFFF !important; stop-opacity: 0; }
.hp-map .hm .hm-cone, .hp-map .hm .hm-lens-shadow, .hp-map .hm .hm-days, .hp-map .hm .hm-crowd { display: none; }
.hp-map .hm .hm-tent, .hp-map .hm .hm-pebble { stroke-width: .8 !important; }
.hp-map .hm :is(.hm-mina-bg, .hm-valley-bg) { stroke: none !important; }
.hp-map .hm .hm-k-left, .hp-map .hm .hm-k-right, .hp-map .hm .hm-k-top { fill: #FFFFFF !important; }
.hp-map .hm .hm-route path, .hp-map .hm .hm-route-lens, .hp-map .hm .hm-turn, .hp-map .hm .hm-miqat-line { fill: none !important; stroke-dasharray: 3 7 !important; }
.hp-map .hm .hm-numbers circle { fill: #FFFFFF !important; stroke-width: 2.5 !important; }
.hp-map .hm text { fill: #2B2350 !important; }
.hp-labels { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.hp-labels li { display: flex; align-items: flex-end; gap: 8px; font-weight: 800; }
.hp-labels li span { flex: 1; border-bottom: 2px dotted #2B2350; height: 1.5em; }
.hp-words { margin: 12px 0 0; padding: 8px 12px; border: 2px dashed #2B2350; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hp-words b { flex-basis: 100%; font-family: var(--font-display); }
.hp-strip { margin: 10px 0 0; }
.hp-strip h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.15rem; color: #2B2350; }
.hp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.hp-cards--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-cut {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 116px; padding: 10px; text-align: center;
    border: 2px dashed #6B6396; margin: -1px 0 0 -1px; font-weight: 700; line-height: 1.2;
}
.hp-cut .k-ico { width: 44px; height: 44px; }
.hp-cut small { font-weight: 600; font-size: .78rem; color: #554B86; }
.hp-glue { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.hp-glue span { display: grid; place-items: start; min-height: 62px; padding: 4px 8px; border: 2px solid #2B2350; border-radius: 10px; font-family: var(--font-display); font-weight: 700; }
.hp-answers { margin-top: 14px; padding-top: 8px; border-top: 1px solid #CFC8E8; font-size: .78rem; color: #554B86; }
.hp-foot { margin: 10px 0 0; text-align: center; font-size: .78rem; color: #6B6396; }

@media (max-width: 640px) {
    .hp-sheet { padding: 14px; }
    .hp-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-cards, .hp-cards--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
    @page { size: A4; margin: 10mm; }
    .page-hajj-print .k-main { padding: 0 !important; max-width: none; }
    .page-hajj-print .hp-head, .page-hajj-print .k-crumbs, .page-hajj-print .sg-mainsite { display: none !important; }
    .hp-sheet { box-shadow: none; border-radius: 0; margin: 0; padding: 0; max-width: none; break-after: page; }
    .hp-sheet:last-of-type { break-after: auto; }
    .hp-cut, .hp-glue span, .hp-labels li { break-inside: avoid; }
    .hp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
