/*
 * Education, healthcare and public application pages (EducationHealthApps
 * module). Loaded after ms.css, lw.css and cb.css, whose heading, card,
 * note and table styles the reused blocks keep. Logical properties only
 * (RTL for ar and he). Button labels never wrap. Motion runs only under
 * .eh-motion (set by eh.js when the visitor has not asked for reduced
 * motion); without it every element is in its final state.
 */

/* Section headings follow the site token --fs-h2 (Admin → Appearance → Typography). */
.lp-sec.eh-sec .ctas .btn { white-space: nowrap; }
.lp-sec.eh-sec :where(.ms-note, .lw-note) + .ctas { margin-block-start: var(--flow-gap); }

/* ------------------------------------------------------------------ */
/* Ecosystem: shared node                                               */
/* ------------------------------------------------------------------ */
.eh-eco { position: relative; overflow: hidden; }
.eh-eco::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 0%, rgba(165, 0, 0, .22), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(212, 161, 46, .08), transparent 50%); pointer-events: none; }
.eh-eco > .wrap { position: relative; }
.eh-eco .lp-lede { color: var(--mist); }
.eh-eco-stage { margin-block-start: var(--space-6, 40px); }

.eh-node { position: relative; display: flex; align-items: flex-start; gap: var(--space-2, 12px); color: var(--white); text-decoration: none; }
a.eh-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.eh-node-no { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gold); }
.eh-node-ico { display: inline-grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; background: var(--navy-700); color: #FF8A8A; transition: background .25s ease, color .25s ease; }
.eh-node-ico .ico { inline-size: 22px; block-size: 22px; }
.eh-node-body { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.eh-node-title { font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 17px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--white); }
.eh-node-text { font-size: 14px; line-height: 1.5; color: var(--mist); }
.eh-node-go { margin-inline-start: auto; flex: none; color: #FF8A8A; transition: transform .2s ease; }
[dir="rtl"] .eh-node-go { transform: scaleX(-1); }
a.eh-node:is(:hover, :focus-visible) .eh-node-ico, .eh-node.is-hot .eh-node-ico { background: var(--red); color: var(--white); }
a.eh-node:is(:hover, :focus-visible) .eh-node-go { transform: translateX(4px); }
[dir="rtl"] a.eh-node:is(:hover, :focus-visible) .eh-node-go { transform: scaleX(-1) translateX(4px); }


/* ------------------------------------------------------------------ */
/* Shared: family colours, numbered list beside a drawing               */
/* ------------------------------------------------------------------ */
.is-f0 { --fc: #E04848; --fb: rgba(165, 0, 0, .2); }
.is-f1 { --fc: var(--gold); --fb: rgba(212, 161, 46, .16); }
.is-f2 { --fc: #6E9FDB; --fb: rgba(110, 159, 219, .16); }
.is-f3 { --fc: #C9D6E6; --fb: rgba(201, 214, 230, .1); }
.is-f4 { --fc: #E8A87C; --fb: rgba(232, 168, 124, .14); }

.eh-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--navy-700); }
.eh-list.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4, 24px); }
.eh-list > li { border-block-end: 1px solid var(--navy-700); }
.eh-node.is-row { align-items: center; padding: 14px 10px; transition: background .25s ease; }
.eh-node.is-row .eh-node-ico { inline-size: 36px; block-size: 36px; }
.eh-node.is-row .eh-node-ico .ico { inline-size: 20px; block-size: 20px; }
.eh-node.is-row .eh-node-title { font-size: 15px; }
.eh-node.is-row .eh-node-text { font-size: 13.5px; line-height: 1.45; }
a.eh-node.is-row:is(:hover, :focus-visible), .eh-node.is-row.is-hot { background: var(--navy-800); }
.eh-node.is-row.is-hot .eh-node-no { color: var(--white); }
.eh-motion .eh-list > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(500ms + var(--i) * 70ms), transform .45s ease calc(500ms + var(--i) * 70ms); }
.eh-motion .is-in .eh-list > li { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Selected projects                                                    */
/* ------------------------------------------------------------------ */
.eh-pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4, 24px); margin: 0; padding: 0; list-style: none; }
.eh-pj-card.is-feature { grid-column: span 2; grid-row: span 2; }
.eh-pj-grid.is-single .eh-pj-card.is-feature { grid-column: 1 / -1; grid-row: auto; }
.eh-pj-card a { display: flex; flex-direction: column; block-size: 100%; background: var(--white); border: 1px solid var(--steel-200); color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .25s ease; }
.eh-pj-card a:is(:hover, :focus-visible) { border-color: var(--navy-900); box-shadow: 0 14px 32px rgba(10, 22, 40, .12); }
.eh-pj-card a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.eh-pj-img { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.eh-pj-card.is-feature .eh-pj-img { aspect-ratio: auto; flex: 1; min-block-size: 320px; }
.eh-pj-img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.eh-pj-card a:is(:hover, :focus-visible) .eh-pj-img img { transform: scale(1.05); }
.eh-pj-img figcaption { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 4px 10px; background: rgba(6, 17, 31, .82); color: var(--white); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.eh-pj-body { display: flex; flex-direction: column; gap: var(--space-2, 12px); padding: 18px 20px 20px; }
.eh-pj-country { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.eh-pj-country .ico { inline-size: 14px; block-size: 14px; }
.lp .lp-sec .eh-pj-body h3 { margin: 0; font-family: var(--f-card-title); font-size: var(--fs-card-title); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--navy-900); }
.eh-pj-card.is-feature .eh-pj-body h3 { font-size: var(--fs-card-title-lg, 24px); }
.lp-sec .eh-pj-body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.eh-pj-body .lp-dl { margin: 0; }
.eh-pj-body .textlink { margin-block-start: auto; white-space: nowrap; }
.eh-pj-empty { margin-block-start: var(--flow-gap); }
.eh-motion .eh-pj-card { opacity: 0; transform: translateY(20px); transition: opacity .6s ease calc(var(--i) * 90ms), transform .6s ease calc(var(--i) * 90ms); }
.eh-motion .is-in .eh-pj-card { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Related applications                                                 */
/* ------------------------------------------------------------------ */
.eh-rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; }
.eh-rel-card { position: relative; display: flex; flex-direction: column; block-size: 100%; min-block-size: 210px; overflow: hidden; background: var(--navy-900); color: var(--white); text-decoration: none; isolation: isolate; }
.eh-rel-img { position: absolute; inset: 0; z-index: -2; }
.eh-rel-img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.eh-rel-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 17, 31, .15) 0%, rgba(6, 17, 31, .92) 75%); transition: background .3s ease; }
.eh-rel-card.no-img { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px), var(--navy-900); }
.eh-rel-card:is(:hover, :focus-visible)::after { background: linear-gradient(180deg, rgba(165, 0, 0, .2) 0%, rgba(6, 17, 31, .95) 70%); }
.eh-rel-card:is(:hover, :focus-visible) .eh-rel-img img { transform: scale(1.06); }
.eh-rel-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.eh-rel-body { display: flex; flex-direction: column; gap: 8px; margin-block-start: auto; padding: 18px; }
.eh-rel-ico { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; background: var(--red); color: var(--white); }
.eh-rel-ico .ico { inline-size: 20px; block-size: 20px; }
.lp .lp-sec .eh-rel-body h3 { margin: 0; font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 17px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: var(--tt-card-title); color: var(--white); }
.eh-rel-text { font-size: 13.5px; line-height: 1.45; color: var(--mist); }
.eh-rel-go { color: #FF8A8A; }
[dir="rtl"] .eh-rel-go { transform: scaleX(-1); }
.eh-motion .eh-rel-grid > li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease calc(var(--i) * 60ms), transform .5s ease calc(var(--i) * 60ms); }
.eh-motion .is-in.eh-rel-grid > li { opacity: 1; transform: none; }


/* ------------------------------------------------------------------ */
/* Style 1 · timetable (schools and universities)                       */
/* ------------------------------------------------------------------ */
.eh-tt { border: 1px solid var(--navy-700); background: var(--navy-950); box-shadow: 0 24px 50px rgba(0, 0, 0, .3); }
.eh-tt-board { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 22px 26px; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); }
.eh-tt-board strong { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.eh-tt-board > span:not(.eh-tt-tag) { flex-basis: 100%; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.eh-tt-tag { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .55); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.eh-tt-grid { position: relative; display: grid; grid-template-columns: 108px repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: auto repeat(var(--rows), minmax(150px, auto)); }
.eh-tt-corner, .eh-tt-subject, .eh-tt-bell, .eh-tt-cell, .eh-tt-free { border-block-end: 1px solid var(--navy-700); border-inline-end: 1px solid var(--navy-700); }
.eh-tt-corner { grid-column: 1; grid-row: 1; }
.eh-tt-subject { grid-column: var(--c); grid-row: 1; padding: 14px 16px; font-family: var(--f-card-title); font-size: 15px; font-weight: var(--fw-card-title); letter-spacing: 1.5px; text-transform: var(--tt-card-title); color: var(--fc); border-block-start: 4px solid var(--fc); background: var(--fb); }
.eh-tt-bell { grid-column: 1; grid-row: var(--r); display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; font-size: 12px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; white-space: nowrap; }
.eh-tt-bell small { font-size: 13px; color: var(--mist); letter-spacing: .5px; }
.eh-tt-cell { position: relative; grid-column: var(--c); grid-row: var(--r); display: flex; padding: 16px; background: rgba(10, 26, 48, .6); transition: background .25s ease, box-shadow .25s ease; }
.eh-tt-cell::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 0; inline-size: 3px; background: var(--fc); }
.eh-tt-cell:has(a.eh-node:is(:hover, :focus-visible)), .eh-tt-cell:has(.is-hot) { background: var(--navy-800); box-shadow: inset 0 0 0 1px var(--fc); }
.eh-tt-code { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; padding: 2px 7px; font-size: 11px; letter-spacing: 1px; color: var(--navy-950); background: var(--fc); }
.eh-node.is-lesson { flex-direction: column; flex: 1; gap: 10px; }
.eh-node.is-lesson .eh-node-no { display: none; }
.eh-node.is-lesson .eh-node-ico { background: var(--fb); color: var(--fc); }
.eh-node.is-lesson .eh-node-title { padding-inline-end: 44px; }
.eh-node.is-lesson .eh-node-go { position: absolute; inset-block-end: 0; inset-inline-end: 0; }
.eh-tt-free { grid-column: var(--c); grid-row: var(--r); display: grid; place-items: center; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(201, 214, 230, .35); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 14px); }
.eh-tt-now { position: absolute; inset-inline: 108px 0; inset-block-start: 0; block-size: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0; pointer-events: none; }
[dir="rtl"] .eh-tt-now { background: linear-gradient(270deg, var(--gold), transparent); }

.eh-motion .eh-tt-subject { opacity: 0; transform: translateY(-8px); transition: opacity .45s ease, transform .45s ease; }
.eh-motion .eh-tt-cell { opacity: 0; transform: scale(.96); transition: opacity .5s ease calc(350ms + var(--i) * 80ms), transform .5s ease calc(350ms + var(--i) * 80ms), background .25s ease, box-shadow .25s ease; }
.eh-motion .is-in .eh-tt-subject, .eh-motion .is-in .eh-tt-cell { opacity: 1; transform: none; }
.eh-motion .is-in .eh-tt-now { animation: eh-bell 6s ease-in-out 1.6s infinite; }
@keyframes eh-bell { 0% { inset-block-start: 48px; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { inset-block-start: calc(100% - 2px); opacity: 0; } }

@media (max-width: 1099px) {
  .eh-tt-grid { grid-template-columns: 84px repeat(var(--cols), minmax(0, 1fr)); }
  .eh-tt-cell .eh-node-text { display: none; }
  .eh-tt-now { inset-inline-start: 84px; }
  .eh-tt-bell { padding-inline: 10px; font-size: 11px; }
}
@media (max-width: 899px) {
  .eh-tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; padding: 12px; }
  .eh-tt-corner, .eh-tt-subject, .eh-tt-bell, .eh-tt-free, .eh-tt-now { display: none; }
  .eh-tt-cell { grid-column: auto; grid-row: auto; flex-direction: column; gap: 10px; border: 1px solid var(--navy-700); }
  .eh-tt-cell::after { content: attr(data-subject); order: -1; font-family: var(--f-card-title); font-size: 12px; letter-spacing: 1.5px; text-transform: var(--tt-card-title); color: var(--fc); }
  .eh-tt-cell .eh-node-text { display: block; }
}
@media (max-width: 559px) {
  .eh-tt-grid { grid-template-columns: minmax(0, 1fr); }
  .eh-tt-board { padding: 18px; }
}

/* ------------------------------------------------------------------ */
/* Style 3 · cardiogram (hospitals and clinics)                              */
/* ------------------------------------------------------------------ */
.eh-pu-screen { position: relative; padding: 22px 26px 18px; border: 1px solid #23476E; border-radius: 14px; background-color: #041020; background-image: linear-gradient(rgba(64, 214, 160, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 214, 160, .07) 1px, transparent 1px); background-size: 25px 25px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), 0 24px 50px rgba(0, 0, 0, .35); }
.eh-pu-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; color: var(--white); }
.eh-pu-top strong { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.eh-pu-sub { font-size: 15px; color: var(--mist); }
.eh-pu-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #40D6A0; }
.eh-pu-live i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: #FF5A5A; box-shadow: 0 0 10px #FF5A5A; }
.eh-pu-trace { position: relative; block-size: 150px; margin-block-start: 26px; }
.eh-pu-trace svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
[dir="rtl"] .eh-pu-trace svg { transform: scaleX(-1); }
.eh-pu-line, .eh-pu-glow { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.eh-pu-line { stroke: #40D6A0; stroke-width: 2.5; }
.eh-pu-glow { stroke: #B8FFE3; stroke-width: 3; stroke-dasharray: 6 94; opacity: 0; filter: drop-shadow(0 0 6px #40D6A0); }
.eh-pu-peak { position: absolute; inset-block-start: -14px; inset-inline-start: var(--x); display: grid; place-items: center; inline-size: 30px; block-size: 30px; margin-inline-start: -15px; border: 2px solid #40D6A0; border-radius: 50%; background: #041020; color: var(--white); font-size: 11px; transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.eh-pu-peak.is-hot { background: var(--red); border-color: #FF8A8A; transform: scale(1.2); }
.eh-pu-sweep { position: absolute; inset-block: -10px; inset-inline-start: 0; inline-size: 60px; background: linear-gradient(90deg, transparent, #041020 70%); opacity: 0; pointer-events: none; }
[dir="rtl"] .eh-pu-sweep { background: linear-gradient(270deg, transparent, #041020 70%); }
.eh-pu-readings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.eh-pu-readings > li { position: relative; display: flex; padding: 16px 16px 16px; border: 1px solid #23476E; border-radius: 10px; background: rgba(4, 16, 32, .85); transition: border-color .25s ease, transform .25s ease; }
.eh-pu-readings > li:has(a.eh-node:is(:hover, :focus-visible)), .eh-pu-readings > li:has(.is-hot) { border-color: #40D6A0; transform: translateY(-3px); }
.eh-pu-code { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; font-size: 22px; font-weight: 600; line-height: 1; color: #40D6A0; text-shadow: 0 0 12px rgba(64, 214, 160, .45); }
.eh-node.is-reading { flex-direction: column; flex: 1; gap: 10px; }
.eh-node.is-reading .eh-node-no { order: -1; color: #40D6A0; }
.eh-node.is-reading .eh-node-ico { background: rgba(64, 214, 160, .1); color: #40D6A0; }
.eh-node.is-reading .eh-node-title { padding-inline-end: 54px; }
.eh-node.is-reading .eh-node-go { position: absolute; inset-block-end: 0; inset-inline-end: 0; color: #40D6A0; }
a.eh-node.is-reading:is(:hover, :focus-visible) .eh-node-ico, .eh-node.is-reading.is-hot .eh-node-ico { background: #40D6A0; color: #041020; }

.eh-motion .eh-pu-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.4s cubic-bezier(.4, .1, .3, 1); }
.eh-motion .eh-pu-peak { transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.7, .5, 1) calc(400ms + var(--i) * 220ms), background .25s ease, border-color .25s ease; }
.eh-motion .eh-pu-readings > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(800ms + var(--i) * 90ms), transform .5s ease calc(800ms + var(--i) * 90ms), border-color .25s ease; }
.eh-motion .is-in .eh-pu-line { stroke-dashoffset: 0; }
.eh-motion .is-in .eh-pu-peak { transform: none; }
.eh-motion .is-in .eh-pu-peak.is-hot { transform: scale(1.2); transition-delay: 0s; }
.eh-motion .is-in .eh-pu-readings > li { opacity: 1; transform: none; }
.eh-motion .is-in .eh-pu-readings > li:has(a.eh-node:is(:hover, :focus-visible)), .eh-motion .is-in .eh-pu-readings > li:has(.is-hot) { transform: translateY(-3px); transition-delay: 0s; }
.eh-motion .is-in .eh-pu-glow { opacity: 1; animation: eh-pulse 4.5s linear 2.4s infinite; stroke-dashoffset: 100; }
@keyframes eh-pulse { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.eh-motion .is-in .eh-pu-live i { animation: eh-blink 1.2s ease-in-out infinite; }
@keyframes eh-blink { 50% { opacity: .25; } }
@media (max-width: 1099px) {
  .eh-pu-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .eh-pu-screen { padding: 18px 16px 12px; }
  .eh-pu-trace { block-size: 110px; }
  .eh-pu-peak { inline-size: 22px; block-size: 22px; margin-inline-start: -11px; font-size: 9px; border-width: 1.5px; }
  .eh-pu-readings { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Projects and related applications on tablets and phones              */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .eh-pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eh-pj-card.is-feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 719px) {
  .eh-eco-stage { margin-block-start: var(--space-5, 32px); }
  .eh-pj-grid { grid-template-columns: minmax(0, 1fr); }
  .eh-pj-card.is-feature .eh-pj-img { min-block-size: 0; aspect-ratio: 4 / 3; flex: none; }
  /* Related applications: one row that swipes sideways */
  .eh-rel-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); scrollbar-width: thin; }
  .eh-rel-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .eh-node-ico, .eh-node-go, .eh-node.is-row, .eh-tt-cell, .eh-pu-peak, .eh-pu-readings > li, .eh-pj-img img, .eh-pj-card a, .eh-rel-img img, .eh-rel-card::after { transition: none; }
  .eh-tt-now, .eh-pu-glow, .eh-pu-live i { animation: none; }
}

/* ------------------------------------------------------------------ */
/* Style 2 · puzzle (childcare and community centres)                   */
/* ------------------------------------------------------------------ */
.eh-pz-board { --gap: 26px; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); gap: var(--gap); padding: 10px; }
.eh-pz-center, .eh-pz-piece { position: relative; border-radius: 16px; }
.eh-pz-center { grid-column: 2 / span 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 30px; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); box-shadow: 0 20px 40px rgba(165, 0, 0, .3); z-index: 0; }
.eh-pz-center strong { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.eh-pz-center > span:not(.eh-pz-tag) { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.eh-pz-tag { align-self: flex-start; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.eh-pz-piece { --pc: var(--navy-800); --pl: #3B6396; grid-column: var(--c); grid-row: var(--r); z-index: calc(30 - var(--i)); display: flex; padding: 22px 20px 20px; background: var(--pc); border: 1px solid var(--pl); transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.eh-pz-piece.is-t1 { --pc: #12305A; }
/* Tabs: a round knob on the inline-end edge and on the block-end edge, keyed into the neighbour. */
.eh-pz-piece.has-e::after, .eh-pz-piece.has-s::before { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.eh-pz-piece.has-e::after { block-size: 34px; inset-block-start: calc(50% - 17px); }
.eh-pz-piece.has-s::before { inline-size: 34px; inset-inline-start: calc(50% - 17px); }
.eh-pz-piece.has-e::after { inline-size: calc(34px + var(--gap)); border-radius: 0 50% 50% 0 / 0 50% 50% 0; inset-inline-end: calc(-1 * var(--gap) - 17px); clip-path: none; background: radial-gradient(circle at calc(100% - 17px) 50%, var(--pc) 16px, var(--pl) 16.5px, var(--pl) 18px, transparent 17.5px), linear-gradient(var(--pc), var(--pc)) left center / calc(100% - 30px) 14px no-repeat; border: 0; }
[dir="rtl"] .eh-pz-piece.has-e::after { background: radial-gradient(circle at 17px 50%, var(--pc) 16px, var(--pl) 16.5px, var(--pl) 18px, transparent 17.5px), linear-gradient(var(--pc), var(--pc)) right center / calc(100% - 30px) 14px no-repeat; }
.eh-pz-piece.has-s::before { block-size: calc(34px + var(--gap)); inset-block-end: calc(-1 * var(--gap) - 17px); clip-path: none; border-radius: 0; background: radial-gradient(circle at 50% calc(100% - 17px), var(--pc) 16px, var(--pl) 16.5px, var(--pl) 18px, transparent 17.5px), linear-gradient(var(--pc), var(--pc)) center top / 14px calc(100% - 30px) no-repeat; border: 0; }
.eh-pz-piece:has(a.eh-node:is(:hover, :focus-visible)), .eh-pz-piece:has(.is-hot) { --pc: #1B3F6E; transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .4), 0 0 0 2px var(--gold); z-index: 40; }
.eh-node.is-piece { flex-direction: column; flex: 1; gap: 10px; }
.eh-node.is-piece .eh-node-no { position: absolute; inset-block-start: 14px; inset-inline-end: 16px; font-size: 13px; }
.eh-node.is-piece .eh-node-ico { inline-size: 46px; block-size: 46px; border-radius: 50%; background: rgba(212, 161, 46, .14); color: var(--gold); }
.eh-node.is-piece .eh-node-go { position: absolute; inset-block-end: 0; inset-inline-end: 0; }
a.eh-node.is-piece:is(:hover, :focus-visible) .eh-node-ico, .eh-node.is-piece.is-hot .eh-node-ico { background: var(--gold); color: var(--navy-950); }

.eh-motion .eh-pz-piece { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)) scale(.92); transition: opacity .5s ease calc(200ms + var(--i) * 90ms), transform .8s cubic-bezier(.3, 1.4, .5, 1) calc(200ms + var(--i) * 90ms), box-shadow .3s ease, background .3s ease; }
.eh-motion .eh-pz-center { opacity: 0; transform: scale(.9); transition: opacity .6s ease 1.2s, transform .7s cubic-bezier(.3, 1.5, .5, 1) 1.2s; }
.eh-motion .is-in .eh-pz-piece, .eh-motion .is-in .eh-pz-center { opacity: 1; transform: none; }
.eh-motion .is-in .eh-pz-piece:has(a.eh-node:is(:hover, :focus-visible)), .eh-motion .is-in .eh-pz-piece:has(.is-hot) { transform: translateY(-4px); transition-delay: 0s; }
@media (max-width: 1099px) {
  .eh-pz-piece .eh-node-text { display: none; }
  .eh-pz-board { grid-auto-rows: minmax(150px, auto); }
}
@media (max-width: 899px) {
  .eh-pz-board { --gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .eh-pz-center { grid-column: 1 / -1; grid-row: 1; }
  .eh-pz-piece { grid-column: auto; grid-row: auto; }
  .eh-pz-piece .eh-node-text { display: block; }
  .eh-pz-piece.has-e::after, .eh-pz-piece.has-s::before { display: none; }
  .eh-pz-piece:nth-of-type(even)::after { content: ""; display: block; position: absolute; inline-size: calc(34px + var(--gap)); block-size: 34px; inset-inline-end: calc(-1 * var(--gap) - 17px); inset-block-start: calc(50% - 17px); background: radial-gradient(circle at calc(100% - 17px) 50%, var(--pc) 16px, var(--pl) 16.5px, var(--pl) 18px, transparent 17.5px), linear-gradient(var(--pc), var(--pc)) left center / calc(100% - 30px) 14px no-repeat; z-index: 2; }
  [dir="rtl"] .eh-pz-piece:nth-of-type(even)::after { background: radial-gradient(circle at 17px 50%, var(--pc) 16px, var(--pl) 16.5px, var(--pl) 18px, transparent 17.5px), linear-gradient(var(--pc), var(--pc)) right center / calc(100% - 30px) 14px no-repeat; }
}
@media (max-width: 559px) {
  .eh-pz-board { grid-template-columns: minmax(0, 1fr); }
  .eh-pz-piece:nth-of-type(even)::after { display: none; }
  .eh-pz-center { padding: 22px 20px; }
}

/* ------------------------------------------------------------------ */
/* Style 4 · gallery (cultural and civic buildings)                     */
/* ------------------------------------------------------------------ */
.eh-ga-wall { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 70px 30px; padding: 64px 34px 44px; background: radial-gradient(ellipse at 50% -10%, rgba(255, 236, 200, .08), transparent 60%), linear-gradient(180deg, #0D1F38 0%, #0A1830 100%); border: 1px solid var(--navy-700); }
.eh-ga-intro { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-inline-end: 20px; color: var(--white); }
.eh-ga-intro strong { font-family: var(--f-display); font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; line-height: 1.02; letter-spacing: .5px; text-transform: uppercase; }
.eh-ga-intro > span:not(.eh-ga-tag) { font-size: 16px; line-height: 1.5; color: var(--mist); font-style: italic; }
.eh-ga-tag { align-self: flex-start; padding-block-end: 6px; border-block-end: 2px solid var(--red); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.eh-ga-work { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.eh-ga-work.is-wide { grid-column: span 2; }
.eh-ga-light { position: absolute; inset-block-start: -50px; inset-inline: -10%; block-size: calc(100% + 40px); background: radial-gradient(ellipse 55% 75% at 50% 0%, rgba(255, 230, 180, .22), transparent 70%); pointer-events: none; transition: opacity .4s ease, filter .3s ease; }
.eh-ga-light::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: calc(50% - 14px); inline-size: 28px; block-size: 8px; border-radius: 0 0 8px 8px; background: #2A3B55; box-shadow: 0 4px 12px rgba(255, 230, 180, .5); }
.eh-ga-frame { position: relative; display: flex; min-block-size: 150px; padding: 10px; background: linear-gradient(135deg, #C9A24A, #8A6A24 45%, #D9B45E 70%, #7D5E1E); box-shadow: 0 18px 30px rgba(0, 0, 0, .45); transition: transform .3s ease, box-shadow .3s ease; }
.eh-ga-frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(0, 0, 0, .35); pointer-events: none; }
.eh-node.is-work { flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 22px 16px 34px; text-align: center; background: radial-gradient(circle at 50% 30%, #17355F, #0A1A30 75%); }
.eh-ga-work.is-wide .eh-node.is-work { flex-direction: row; justify-content: flex-start; text-align: start; padding-inline: 26px; }
.eh-node.is-work .eh-node-no { display: none; }
.eh-node.is-work .eh-node-ico { inline-size: 56px; block-size: 56px; border-radius: 50%; background: rgba(212, 161, 46, .12); color: var(--gold); }
.eh-node.is-work .eh-node-ico .ico { inline-size: 28px; block-size: 28px; }
.eh-node.is-work .eh-node-body { align-items: center; }
.eh-ga-work.is-wide .eh-node.is-work .eh-node-body { align-items: flex-start; }
.eh-node.is-work .eh-node-go { position: absolute; inset-block-end: 16px; inset-inline-end: 18px; }
.eh-ga-placard { display: flex; flex-direction: column; gap: 4px; margin-inline: auto; max-inline-size: 300px; padding: 10px 14px; background: #F3EEE3; color: #1E2A3A; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.eh-ga-placard .mono { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.eh-ga-placard span:not(.mono) { font-size: 13px; line-height: 1.45; }
.eh-ga-work:has(a.eh-node:is(:hover, :focus-visible)) .eh-ga-frame, .eh-ga-work:has(.is-hot) .eh-ga-frame { transform: translateY(-4px) scale(1.02); box-shadow: 0 26px 40px rgba(0, 0, 0, .55), 0 0 0 2px var(--red); }
.eh-ga-work:has(a.eh-node:is(:hover, :focus-visible)) .eh-ga-light, .eh-ga-work:has(.is-hot) .eh-ga-light { filter: brightness(1.8); }

.eh-motion .eh-ga-light { opacity: 0; transition: opacity .6s ease calc(400ms + var(--i) * 160ms), filter .3s ease; }
.eh-motion .eh-ga-frame, .eh-motion .eh-ga-placard { opacity: .25; filter: brightness(.4); transition: opacity .6s ease calc(450ms + var(--i) * 160ms), filter .6s ease calc(450ms + var(--i) * 160ms), transform .3s ease, box-shadow .3s ease; }
.eh-motion .eh-ga-intro { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.eh-motion .is-in .eh-ga-light { opacity: 1; }
.eh-motion .is-in .eh-ga-frame, .eh-motion .is-in .eh-ga-placard { opacity: 1; filter: none; }
.eh-motion .is-in .eh-ga-intro { opacity: 1; transform: none; }
@media (max-width: 1099px) {
  .eh-ga-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eh-ga-intro { grid-column: 1 / -1; padding: 0; }
  .eh-ga-work.is-wide { grid-column: span 1; }
  .eh-ga-work.is-wide .eh-node.is-work { flex-direction: column; justify-content: center; text-align: center; }
  .eh-ga-work.is-wide .eh-node.is-work .eh-node-body { align-items: center; }
}
@media (max-width: 719px) {
  .eh-ga-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 16px; padding: 56px 16px 28px; }
  .eh-ga-placard span:not(.mono) { display: none; }
}
@media (max-width: 459px) {
  .eh-ga-wall { grid-template-columns: minmax(0, 1fr); }
  .eh-ga-placard span:not(.mono) { display: block; }
}

/* ------------------------------------------------------------------ */
/* Style 5 · cabinet (public offices and administration)                */
/* ------------------------------------------------------------------ */
.eh-cb { display: flex; flex-direction: column; gap: 18px; padding: 20px; background: linear-gradient(180deg, #2A3A52, #1B283C); border: 1px solid #3A4D6A; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .35); }
.eh-cb-plate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 18px 24px; background: linear-gradient(180deg, #E9E4D8, #CFC8B8); color: var(--navy-950); border: 2px solid #8F877A; box-shadow: inset 0 0 0 4px #E9E4D8, inset 0 0 0 5px #A79F90; }
.eh-cb-plate strong { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.eh-cb-plate > span:not(.eh-cb-tag) { flex-basis: 100%; font-size: 15px; color: #3C4656; }
.eh-cb-tag { padding: 3px 8px; background: var(--red); color: var(--white); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.eh-cb-drawer { position: relative; padding: 46px 18px 18px; background: linear-gradient(180deg, #0E1E36, #0A1729); border: 1px solid #33496A; border-radius: 4px; box-shadow: inset 0 10px 24px rgba(0, 0, 0, .55); overflow: hidden; }
.eh-cb-handle { position: absolute; inset-block-start: 12px; inset-inline-start: calc(50% - 50px); inline-size: 100px; block-size: 16px; border-radius: 3px; background: linear-gradient(180deg, #C9CFD8, #7E8794); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.eh-cb-files { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.eh-cb-file { position: relative; display: flex; flex-direction: column; padding-block-start: 26px; transition: transform .3s ease; }
.eh-cb-tab { position: absolute; inset-block-start: 0; inset-inline-start: calc(var(--t) * 12%); padding: 5px 10px 6px; border-radius: 6px 6px 0 0; background: #F0E6CC; color: #5A4A22; font-size: 10.5px; letter-spacing: 1px; white-space: nowrap; text-transform: uppercase; }
.eh-node.is-file { flex: 1; flex-direction: column; gap: 10px; padding: 18px 16px 30px; background: linear-gradient(180deg, #F0E6CC 0, #F0E6CC 4px, #13294A 4px, #0F2240 100%); border: 1px solid #2E4C77; border-block-start: 0; }
.eh-node.is-file .eh-node-no { display: none; }
.eh-node.is-file .eh-node-ico { background: rgba(240, 230, 204, .1); color: #F0E6CC; }
.eh-node.is-file .eh-node-go { position: absolute; inset-block-end: 10px; inset-inline-end: 12px; }
.eh-cb-file:has(a.eh-node:is(:hover, :focus-visible)), .eh-cb-file:has(.is-hot) { transform: translateY(-10px); }
.eh-cb-file:has(a.eh-node:is(:hover, :focus-visible)) .eh-cb-tab, .eh-cb-file:has(.is-hot) .eh-cb-tab { background: var(--red); color: var(--white); }
a.eh-node.is-file:is(:hover, :focus-visible) .eh-node-ico, .eh-node.is-file.is-hot .eh-node-ico { background: var(--red); color: var(--white); }

.eh-motion .eh-cb-file { opacity: 0; transform: translateY(60px); transition: opacity .5s ease calc(250ms + var(--i) * 80ms), transform .7s cubic-bezier(.2, .8, .2, 1) calc(250ms + var(--i) * 80ms); }
.eh-motion .is-in .eh-cb-file { opacity: 1; transform: none; }
.eh-motion .is-in .eh-cb-file:has(a.eh-node:is(:hover, :focus-visible)), .eh-motion .is-in .eh-cb-file:has(.is-hot) { transform: translateY(-10px); transition-delay: 0s; }
@media (max-width: 1099px) {
  .eh-cb-files { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .eh-cb-tab { inset-inline-start: calc(var(--t) * 10%); }
}
@media (max-width: 719px) {
  .eh-cb { padding: 12px; }
  .eh-cb-drawer { padding: 40px 10px 12px; }
  .eh-cb-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eh-cb-tab { inset-inline-start: 0; }
}
@media (max-width: 459px) {
  .eh-cb-files { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ */
/* Style 6 · fingerpost (walkways, links and canopies)                  */
/* ------------------------------------------------------------------ */
.eh-wf { --post: 14px; position: relative; display: flex; flex-direction: column; align-items: center; padding-block-end: 10px; }
.eh-wf::before { content: ""; position: absolute; inset-block: 90px 0; inset-inline-start: calc(50% - var(--post) / 2); inline-size: var(--post); background: linear-gradient(90deg, #6F7C8F, #C7CFDA 45%, #6F7C8F); border-radius: 3px; }
.eh-wf-here { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; inline-size: min(100%, 460px); padding: 26px 28px 24px; text-align: center; color: var(--white); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 12px), linear-gradient(135deg, var(--red) 0%, var(--red-700, #7d0000) 100%); border: 3px solid var(--white); border-radius: 999px 999px 24px 24px; box-shadow: 0 20px 40px rgba(165, 0, 0, .3); }
.eh-wf-pin { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border-radius: 50%; background: var(--white); color: var(--red); }
.eh-wf-pin .ico { inline-size: 24px; block-size: 24px; }
.eh-wf-tag { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.eh-wf-here strong { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; }
.eh-wf-here > span:last-child { font-size: 15px; color: rgba(255, 255, 255, .88); }
.eh-wf-boards { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: calc(var(--post) + 8px); row-gap: 0; inline-size: 100%; margin: 26px 0 0; padding: 0; list-style: none; }
.eh-wf-board { position: relative; display: flex; align-self: start; margin-block-end: 14px; }
.eh-wf-board.is-start { grid-column: 1; }
.eh-wf-board.is-end { grid-column: 2; margin-block-start: 56px; margin-block-end: -42px; }
.eh-wf-board { --tip: 30px; }
.eh-node.is-sign { flex: 1; align-items: center; gap: 14px; min-block-size: 92px; padding: 16px 22px; background: #0F5132; background: linear-gradient(180deg, #146C43, #0F5132); border: 2px solid rgba(255, 255, 255, .85); transition: background .25s ease, transform .3s ease; }
.eh-wf-board.is-start .eh-node.is-sign { padding-inline-start: calc(22px + var(--tip)); clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); border-inline-start: 0; }
.eh-wf-board.is-end .eh-node.is-sign { padding-inline-end: calc(22px + var(--tip)); clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); border-inline-end: 0; }
[dir="rtl"] .eh-wf-board.is-start .eh-node.is-sign { clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); }
[dir="rtl"] .eh-wf-board.is-end .eh-node.is-sign { clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); }
.eh-node.is-sign .eh-node-no { display: none; }
.eh-node.is-sign .eh-node-ico { border-radius: 50%; background: var(--white); color: #0F5132; }
.eh-node.is-sign .eh-node-title { font-size: 17px; }
.eh-node.is-sign .eh-node-text { color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.eh-node.is-sign .eh-node-go { color: var(--white); font-size: 20px; }
.eh-wf-board.is-start .eh-node.is-sign .eh-node-go { order: -1; margin-inline: 0; transform: scaleX(-1); }
[dir="rtl"] .eh-wf-board.is-start .eh-node.is-sign .eh-node-go { transform: none; }
.eh-wf-code { position: absolute; inset-block-start: -10px; z-index: 1; padding: 2px 8px; background: var(--gold); color: var(--navy-950); font-size: 11px; letter-spacing: 1px; }
.eh-wf-board.is-start .eh-wf-code { inset-inline-end: 14px; }
.eh-wf-board.is-end .eh-wf-code { inset-inline-start: 14px; }
.eh-wf-board:has(a.eh-node:is(:hover, :focus-visible)) .eh-node.is-sign, .eh-wf-board:has(.is-hot) .eh-node.is-sign { background: linear-gradient(180deg, #1A8A56, #146C43); }
.eh-wf-board.is-start:has(a.eh-node:is(:hover, :focus-visible)) .eh-node.is-sign, .eh-wf-board.is-start:has(.is-hot) .eh-node.is-sign { transform: translateX(-8px); }
.eh-wf-board.is-end:has(a.eh-node:is(:hover, :focus-visible)) .eh-node.is-sign, .eh-wf-board.is-end:has(.is-hot) .eh-node.is-sign { transform: translateX(8px); }
[dir="rtl"] .eh-wf-board.is-start:has(a.eh-node:is(:hover, :focus-visible)) .eh-node.is-sign, [dir="rtl"] .eh-wf-board.is-start:has(.is-hot) .eh-node.is-sign { transform: translateX(8px); }
[dir="rtl"] .eh-wf-board.is-end:has(a.eh-node:is(:hover, :focus-visible)) .eh-node.is-sign, [dir="rtl"] .eh-wf-board.is-end:has(.is-hot) .eh-node.is-sign { transform: translateX(-8px); }
.eh-wf-foot { position: relative; z-index: 1; margin-block-start: 50px; padding: 6px 16px; background: #1B283C; border: 1px solid #3A4D6A; color: var(--mist); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }

.eh-motion .eh-wf-board { opacity: 0; transition: opacity .5s ease calc(300ms + var(--i) * 110ms), transform .6s cubic-bezier(.3, 1.4, .5, 1) calc(300ms + var(--i) * 110ms); }
.eh-motion .eh-wf-board.is-start { transform: perspective(600px) rotateY(-60deg); transform-origin: right center; }
.eh-motion .eh-wf-board.is-end { transform: perspective(600px) rotateY(60deg); transform-origin: left center; }
[dir="rtl"] .eh-motion .eh-wf-board.is-start { transform-origin: left center; transform: perspective(600px) rotateY(60deg); }
[dir="rtl"] .eh-motion .eh-wf-board.is-end { transform-origin: right center; transform: perspective(600px) rotateY(-60deg); }
.eh-motion .eh-wf-here { opacity: 0; transform: translateY(-14px); transition: opacity .6s ease, transform .6s ease; }
.eh-motion .is-in .eh-wf-board, .eh-motion .is-in .eh-wf-here { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .eh-wf { align-items: stretch; padding-inline-start: 26px; }
  .eh-wf::before { inset-block-start: 60px; inset-inline-start: 6px; }
  .eh-wf-here { inline-size: 100%; border-radius: 24px; align-items: flex-start; text-align: start; }
  .eh-wf-boards { grid-template-columns: minmax(0, 1fr); }
  .eh-wf-board.is-start, .eh-wf-board.is-end { grid-column: 1; margin-block: 0 14px; }
  .eh-wf-board.is-start .eh-node.is-sign { padding-inline: 18px calc(18px + var(--tip)); border-inline-start: 2px solid rgba(255, 255, 255, .85); border-inline-end: 0; clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%); }
  [dir="rtl"] .eh-wf-board.is-start .eh-node.is-sign { clip-path: polygon(var(--tip) 0, 100% 0, 100% 100%, var(--tip) 100%, 0 50%); }
  .eh-wf-board.is-start .eh-node.is-sign .eh-node-go { order: 0; margin-inline-start: auto; transform: none; }
  [dir="rtl"] .eh-wf-board.is-start .eh-node.is-sign .eh-node-go { transform: scaleX(-1); }
  .eh-wf-board.is-start .eh-wf-code { inset-inline: 14px auto; }
  .eh-motion .eh-wf-board.is-start, .eh-motion .eh-wf-board.is-end { transform: perspective(600px) rotateY(60deg); transform-origin: left center; }
  .eh-wf-foot { align-self: flex-start; margin-block-start: 4px; }
}
/* Revealed boards stand straight whatever the direction or breakpoint. */
.eh-motion .is-in .eh-wf-board.is-start, .eh-motion .is-in .eh-wf-board.is-end,
[dir] .eh-motion .is-in .eh-wf-board.is-start, [dir] .eh-motion .is-in .eh-wf-board.is-end { opacity: 1; transform: none; }
