/* Home */
.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  align-content: end;
  padding-bottom: var(--r16);
  row-gap: var(--r6);
}
.hero h1 { grid-column: 1 / 6; font-size: clamp(3.25rem, 1.5rem + 4.7vw, 8.25rem); max-inline-size: 11ch; }
:lang(ar) .hero h1 { font-size: clamp(2.75rem, 1.4rem + 3.6vw, 6.25rem); max-inline-size: 12ch; }
.hero .lead { grid-column: 1 / 6; }
.hero-notes { grid-column: 1 / 6; display: grid; gap: 6px; margin-top: var(--r2); max-width: 46ch; }
.hero .hint {
  position: absolute; top: var(--r6); inset-inline-end: var(--margin);
  max-width: 24ch; margin: 0; color: var(--haze); text-align: end;
  transition: opacity 420ms var(--ui);
}
.hero .hint.is-gone { opacity: 0; }
.hour-panel { display: grid; gap: 6px; margin-top: var(--r2); max-width: 360px; }
.hour-panel label { font-weight: 500; }
.hour-scale { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: .875rem; color: var(--haze); font-variant-numeric: tabular-nums; direction: ltr; }
[dir='rtl'] .hour-scale { flex-direction: row-reverse; }
.hour-panel .textbutton { justify-self: start; }
input[type='range'] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0;
}
input[type='range']::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(245, 241, 230, .35); }
input[type='range']::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(245, 241, 230, .35); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 26px; margin-top: -11px; border-radius: 3px; background: var(--sodium); border: 2px solid var(--ink); }
input[type='range']::-moz-range-thumb { width: 18px; height: 26px; border-radius: 3px; background: var(--sodium); border: 2px solid var(--ink); }

.daraj { padding-top: var(--r24); padding-bottom: var(--r32); row-gap: var(--r12); align-items: start; }
.daraj-photo { grid-column: 1 / 4; grid-row: 1 / 3; margin-top: var(--r16); }
.daraj-text { grid-column: 4 / 7; grid-row: 1; padding-inline: var(--r4) var(--r2); }
.daraj-text h2 { margin-bottom: var(--r8); }
.daraj-text p + p { margin-top: var(--r4); }
.print picture { display: block; }
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 5px solid var(--enamel); border-radius: 3px; background: var(--enamel); }
.print figcaption { margin-top: var(--r3); max-width: 36ch; }

.js .stairmask { clip-path: polygon(0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%); transition: clip-path 840ms var(--ui); }
.js .stairmask.is-in { clip-path: polygon(0% 100%, 0% 0%, 100% 0%, 100% -100%, 200% -100%, 200% -200%, 300% -200%, 300% -300%, 400% -300%, 400% -400%, 500% -400%, 500% 100%); }
.js[dir='rtl'] .stairmask { clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%); }
.js[dir='rtl'] .stairmask.is-in { clip-path: polygon(100% 100%, 100% 0%, 0% 0%, 0% -100%, -100% -100%, -100% -200%, -200% -200%, -200% -300%, -300% -300%, -300% -400%, -400% -400%, -400% 100%); }

.loops { padding-bottom: var(--r48); align-items: start; }
.loops-head { grid-column: 1 / 6; }
.loops-intro { margin-top: var(--r6); max-width: 46ch; }
.rows { grid-column: 1 / 6; margin-top: var(--r12); padding: 0; list-style: none; }
.row {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--r3) var(--r6); align-items: start;
  padding: var(--r6) 0; border-top: 1px solid var(--rule);
  transition: border-color 280ms var(--ui);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.row.is-lit { border-top-color: var(--sodium); }
.row.is-lit + .row { border-top-color: var(--sodium); }
.row.is-lit:last-child { border-bottom-color: var(--sodium); }
.loop-glyph { width: 72px; height: 72px; overflow: visible; margin-top: 4px; }
.loop-glyph .r { fill: none; stroke: var(--haze); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 280ms var(--ui); }
.loop-glyph .s { fill: none; stroke: var(--sodium); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.row.is-lit .loop-glyph .r { stroke: var(--enamel); }
.row-main { display: grid; gap: var(--r3); justify-items: start; }
.row-name { margin: 0; font-size: inherit; }
.row-hit { text-decoration: none; color: inherit; display: inline-block; border-radius: 6px; }
.row-hit::after { content: ''; position: absolute; inset: 0; }
.row-hit:focus-visible { outline: none; }
.row-hit:focus-visible::after { outline: 3px solid var(--sodium); outline-offset: -2px; border-radius: 4px; }
.row .name-plate { justify-items: start; text-align: start; padding: 11px 16px 12px; transition: box-shadow 280ms var(--ui); }
.row.is-lit .name-plate { --rim: var(--sodium); }
.row .name-plate .ar { font-size: 1.25rem; }
.row .name-plate .en { font-size: 1.5rem; }
.row-text { max-width: 48ch; }
.row-profile { display: block; width: auto; max-width: 100%; height: auto; overflow: visible; margin-top: var(--r2); }
.row-profile .pa { fill: rgba(19, 42, 102, .55); }
.row-profile .pl { fill: none; stroke: var(--enamel); stroke-width: 1.5; stroke-linejoin: round; }
.row-profile .ps { fill: none; stroke: var(--sodium); stroke-width: 3.5; stroke-linecap: round; }
.row-profile .pb, .row-profile .tk, .row-profile .ax { fill: none; stroke: rgba(245, 241, 230, .45); stroke-width: 1; }
.row-profile .pt { fill: var(--haze); font: 600 13px/1 'Big Shoulders', 'Reem Kufi', sans-serif; letter-spacing: .02em; }
.row-profile .pt-end { fill: var(--enamel); font-size: 14px; }
.row.is-lit .row-profile .pa { fill: rgba(19, 42, 102, .8); }
.sign-line { display: flex; flex-wrap: wrap; gap: 2px 0; font-family: var(--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; color: var(--sodium); font-variant-numeric: tabular-nums; }
.sign-line span + span::before { content: '·'; padding-inline: .5em; color: var(--haze); font-family: 'Big Shoulders', sans-serif; }
:lang(ar) .sign-line { font-size: 1.0625rem; line-height: 1.6; }

.history { padding: var(--r32) 0 var(--r24); }
.archive { grid-column: 2 / 6; max-width: 440px; }
.archive img { border: 1px solid var(--ink); width: 100%; }
.archive figcaption { margin-top: var(--r3); max-width: 40ch; }
.history-text { grid-column: 7 / 12; margin-top: var(--r16); }
.history-text h2 { margin-bottom: var(--r8); }
.history-text p + p { margin-top: var(--r6); }

.day { padding-top: var(--r24); padding-bottom: var(--r32); }
.day-head { grid-column: 8 / 13; }
.day-head .lead { margin-top: var(--r4); }
.day-plates { grid-column: 8 / 12; list-style: none; padding: 0; margin: 30vh 0 24vh; display: grid; row-gap: 30vh; position: relative; z-index: 2; }
.day-plates.is-sky { grid-column: 1 / -1; direction: ltr; justify-items: start; row-gap: 22vh; margin-top: 26vh; }
.day-plates.is-sky .hour-plate { width: min(19.5rem, 27vw); margin-left: var(--x, 0px); }
[dir='rtl'] .hour-plate { direction: rtl; }
.hour-plate { position: relative; padding: var(--r6) var(--r6) var(--r8); }
.mini-sky { position: absolute; top: 22px; inset-inline-end: 20px; width: 84px; height: 34px; overflow: visible; }
.day-plates.is-sky .mini-sky { display: none; }
.mini-sky .ms-day { fill: none; stroke: var(--haze); stroke-width: 1.2; }
.mini-sky .ms-night { fill: none; stroke: var(--haze); stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; }
.mini-sky .ms-horizon { stroke: rgba(245, 241, 230, .5); stroke-width: 1; }
.mini-sky .ms-sun { fill: var(--sodium); }
.mini-sky .ms-sun.is-down { fill: var(--sign); stroke: var(--sodium); stroke-width: 1.5; }
.sky { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 560ms var(--ui); overflow: visible; }
.sky.is-on { opacity: 1; }
.sky .sky-horizon { stroke: rgba(245, 241, 230, .4); stroke-width: 1; }
.sky .sky-day { fill: none; stroke: rgba(245, 241, 230, .55); stroke-width: 1.25; }
.sky .sky-night { fill: none; stroke: rgba(245, 241, 230, .4); stroke-width: 1.25; stroke-dasharray: 1 5; stroke-linecap: round; }
.sky .sky-dir { fill: var(--haze); font: 600 15px/1 'Big Shoulders', 'Reem Kufi', sans-serif; letter-spacing: .02em; }
.sky .sun { fill: var(--sodium); stroke: rgba(255, 178, 62, .35); stroke-width: 10; paint-order: stroke; transition: fill 280ms var(--ui); }
.sky .sun.is-down { fill: var(--night); stroke: var(--sodium); stroke-width: 2; }
.sky .sun-t { fill: var(--enamel); font: 700 17px/1 'Big Shoulders', sans-serif; letter-spacing: .02em; }
.sky .hanger { fill: none; stroke: var(--sodium); stroke-width: 1.25; stroke-dasharray: 2 4; }
.sky .sun, .sky .sun-t, .sky .sky-dir { transition: opacity 140ms var(--ui); }
.sky .is-under { opacity: 0; }
.hour-plate .t { font-family: 'Big Shoulders', sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: var(--r3); direction: ltr; text-align: start; padding-right: 96px; }
[dir='rtl'] .hour-plate .t { padding-right: 0; padding-left: 96px; }
.day-plates.is-sky .hour-plate .t { padding-left: 0; padding-right: 0; }
[dir='rtl'] .hour-plate .t { text-align: right; }
.hour-plate p { max-width: 36ch; }
.hour-plate { transition: box-shadow 420ms var(--ui); }
.hour-plate.is-now { --rim: var(--sodium); }
.hour-plate.is-night { --face: var(--night); }
.hour-plate.is-night .t { color: var(--sodium); }

/* Walks */
.walks-intro { padding-top: var(--r16); padding-bottom: var(--r16); row-gap: var(--r6); }
.walks-intro h1 { grid-column: 1 / 6; max-inline-size: 9ch; }
:lang(ar) .walks-intro h1 { max-inline-size: 10ch; }
.walks-intro .lead { grid-column: 1 / 6; }
.walk { align-items: start; padding-bottom: 40vh; }
.stage { display: contents; }
.panel-profile { display: none; }
.rail {
  grid-column: 1 / 5; grid-row: 1;
  position: sticky; top: 24px;
  padding: var(--r4) var(--r4) var(--r4);
  display: grid; gap: var(--r4);
  max-height: calc(100vh - 48px); overflow: auto; scrollbar-width: none;
}
.switcher { display: grid; gap: 6px; }
.sw {
  --face: var(--night); --rim: rgba(245, 241, 230, .32); --pfg: var(--enamel);
  border: 0; text-align: start; padding: 10px 16px 11px; display: block; width: 100%;
  transition: box-shadow 280ms var(--ui), background-color 280ms var(--ui);
}
.sw .names { gap: 0; }
.sw .ar { font-size: 1.0625rem; line-height: 1.35; }
.sw .en { font-size: 1.3rem; }
.sw:hover { --rim: rgba(245, 241, 230, .7); }
.sw[aria-checked='true'] { --face: var(--sign); --rim: var(--sodium); }
.sw[aria-checked='true'] .en { color: var(--sodium); }
.facts { min-height: 0; }
.facts-walk { display: grid; gap: var(--r3); }
.facts-walk .w-intro { font-size: 1rem; line-height: 1.5; }
.facts-walk .figs, .facts-walk .when { font-weight: 400; }
.facts-walk .sign-line { font-size: 1.125rem; }
.sw-change { display: none; justify-self: start; }
.rail.is-collapsed .sw[aria-checked='false'] { display: none; }
.rail.is-collapsed .sw-change { display: inline-block; }
.profile { margin: 0; }
.profile-svg { width: 100%; display: block; overflow: visible; touch-action: none; cursor: ew-resize; border-radius: 3px; }
.profile-svg:focus-visible { outline-offset: 4px; }
.p-area { fill: rgba(19, 42, 102, .7); }
.p-line { fill: none; stroke: var(--enamel); stroke-width: 2; stroke-linejoin: round; }
.p-stairs { fill: none; stroke: var(--sodium); stroke-width: 4; stroke-linecap: round; }
.p-base { stroke: rgba(245, 241, 230, .35); stroke-width: 1; }
.p-tick line { stroke: rgba(245, 241, 230, .45); }
.p-tick text, .p-km { fill: var(--haze); font: 600 11px/1 'Big Shoulders', 'Reem Kufi', sans-serif; letter-spacing: .02em; }
.p-stop line { stroke: var(--enamel); stroke-width: 1; }
.p-stop rect { fill: var(--enamel); }
.p-stop text { fill: var(--ink); font: 700 11px/1 'Big Shoulders', sans-serif; }
.p-stop.is-active rect { fill: var(--sodium); }
.p-stop circle { fill: var(--enamel); }
.p-stop.is-active line { stroke: var(--sodium); }
.p-walker { fill: var(--sodium); stroke: var(--ink); stroke-width: 1.5; }
.profile figcaption { margin-top: var(--r2); }
.stop-groups { grid-column: 9 / 13; grid-row: 1; padding-top: 30vh; }
.stops { list-style: none; padding: 0; display: grid; row-gap: 80vh; }
.stop { padding: var(--r6) var(--r6) var(--r6); display: grid; grid-template-columns: auto 1fr; gap: var(--r4); transition: box-shadow 420ms var(--ui); }
.stop.is-active { --rim: var(--sodium); box-shadow: inset 0 0 0 5px var(--face), inset 0 0 0 7.5px var(--sodium), 0 12px 32px rgba(10, 20, 50, .28); }
.stop .num { font-family: 'Big Shoulders', sans-serif; font-weight: 700; font-size: 2rem; line-height: 1; color: var(--sign); min-width: 1.1em; }
.stop-body { display: grid; gap: var(--r3); }
.stop-names .ar { font-size: 1.3rem; }
.stop-names .en { font-size: 1.6rem; }
.stop-title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1.05; }
:lang(ar) .stop-title { font-size: 1.4rem; line-height: 1.35; }
.stop p { font-size: 1.0625rem; line-height: 1.55; }
:lang(ar) .stop p { font-size: 1rem; line-height: 1.9; }
.stop-photo img { border-radius: 2px; width: 100%; }
.stop-photo figcaption { margin-top: 6px; }
.leader { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 280ms var(--ui); }
.leader.is-on { opacity: 1; }
.leader line { stroke: var(--enamel); stroke-width: 1.25; stroke-dasharray: 2 4; }
.leader circle { fill: none; stroke: var(--enamel); stroke-width: 1.5; }

.before { padding-block: var(--r16) var(--r32); align-items: start; row-gap: var(--r12); }
.before h2 { grid-column: 1 / 5; position: sticky; top: var(--r24); }
.notices {
  --screw: radial-gradient(circle, rgba(29, 58, 138, .5) 0 1px, #CFC7B4 1.5px 3px, rgba(29, 58, 138, .45) 3.4px 4px, transparent 4.4px);
  grid-column: 5 / 13; list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--r4) var(--r4);
}
.notice {
  flex: 0 1 auto; max-width: 25rem;
  padding: var(--r6) 30px var(--r6);
  background: var(--screw) 9px 9px / 12px 12px no-repeat, var(--screw) calc(100% - 9px) 9px / 12px 12px no-repeat,
    var(--screw) 9px calc(100% - 9px) / 12px 12px no-repeat, var(--screw) calc(100% - 9px) calc(100% - 9px) / 12px 12px no-repeat, var(--face);
}
.notice:nth-child(3) { max-width: 31rem; }
.notice:nth-child(2) { margin-top: var(--r8); }
.notice:nth-child(4) { margin-top: var(--r3); }
.notice-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1; margin-bottom: var(--r2); text-wrap: balance; }
:lang(ar) .notice-t { line-height: 1.35; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.notice p { font-size: 1rem; line-height: 1.5; max-width: 40ch; }
:lang(ar) .notice p { font-size: .9375rem; line-height: 1.85; }
.step-free { grid-column: 5 / 12; margin-top: var(--r8); font-size: 1rem; line-height: 1.5; color: var(--soft); max-width: 52ch; }

/* Stairs */
.reg-intro { padding-top: var(--r24); padding-bottom: var(--r16); row-gap: var(--r6); align-items: start; }
.reg-intro h1 { grid-column: 1 / 10; }
.reg-intro .lead { grid-column: 1 / 7; grid-row: 2; }
.names-note { grid-column: 9 / 13; grid-row: 2; padding-top: var(--r3); border-top: 2px solid var(--sign); font-size: .9375rem; line-height: 1.55; color: var(--soft); }
.names-note h2 { font-size: 1.5rem; line-height: 1.05; color: var(--ink); margin-bottom: var(--r3); }
:lang(ar) .names-note { font-size: .875rem; line-height: 1.9; }
:lang(ar) .names-note h2 { font-size: 1.375rem; line-height: 1.4; }
.register { padding-bottom: var(--r24); align-items: start; }
.locator-wrap { grid-column: 1 / 5; position: sticky; top: 96px; }
.locator { width: 100%; max-width: min(70vh, 520px); aspect-ratio: 1; height: auto; }
.locator-wrap .caption { margin-top: var(--r3); }
.reg-list { grid-column: 6 / 13; }
.group + .group { margin-top: var(--r16); }
.group h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3.25rem); }
.group .count { margin-top: var(--r2); margin-bottom: var(--r6); }
.srows { list-style: none; padding: 0; }
.srow {
  display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr) auto; gap: var(--r2) var(--r6); align-items: center;
  padding: var(--r4) var(--r3); border-top: 1px solid var(--rule); border-radius: 2px;
  transition: background-color 160ms var(--ui);
  scroll-margin-top: 30vh;
}
.srow:last-child { border-bottom: 1px solid var(--rule); }
.srow.is-on, .srow:hover, .srow:focus-visible { background: var(--lime); }
.srow:focus-visible { outline-offset: 0; }
.flights { display: flex; align-items: flex-start; gap: 6px; }
.flight { position: relative; width: 52px; display: grid; justify-items: center; gap: 2px; }
.glyph { width: 44px; height: 44px; margin-block: 4px; }
.glyph path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.glyph .gl { stroke-width: 1.6; }
.glyph .gt { stroke-width: .75; }
.flight.on-walk .glyph { width: 52px; height: 52px; margin-block: 0; }
.flight.on-walk .glyph .gl { stroke: var(--sign); stroke-width: 1.5; }
.flight.is-on .glyph .gl { stroke: var(--rust); }
.fl-n { font-family: 'Big Shoulders', sans-serif; font-weight: 650; font-size: .9375rem; line-height: 1; color: var(--soft); font-variant-numeric: tabular-nums; }
.group[hidden] { display: none; }
.filter-note { margin-top: var(--r3); }
.locator { cursor: pointer; }
.srow .names .ar { font-size: 1.5rem; }
.srow .names .en { font-family: 'Big Shoulders', sans-serif; font-weight: 650; font-size: 1.625rem; }
.row-end { display: grid; justify-items: end; gap: 2px; }
.srow .cont { font-family: var(--text); font-size: .875rem; line-height: 1.4; font-weight: 500; margin-top: 4px; }
.walk-link { white-space: nowrap; }
.reg-where { display: none; font-size: .9375rem; }
.inline-locator { grid-column: 1 / -1; width: 240px; height: 240px; justify-self: center; margin-block: var(--r3); }
.anchor { position: absolute; top: 0; }
.kalha { padding-bottom: var(--r32); align-items: start; row-gap: var(--r8); }
.kalha-figure { grid-column: 2 / 6; grid-row: 1 / 3; }
.kalha-plan { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.kalha-plan .kp-line { fill: none; stroke: var(--sign); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.kalha-plan .kp-tick { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.kalha-plan .kp-major { fill: none; stroke: var(--rust); stroke-width: 2; stroke-linecap: round; }
.kalha-plan .kp-num text { fill: var(--rust); font: 650 15px/1 'Big Shoulders', sans-serif; }
.kalha-plan .kp-start { fill: var(--sodium); stroke: var(--ink); stroke-width: 1.5; }
.kalha-plan .kp-label { fill: var(--ink); font: 650 17px/1 'Big Shoulders', 'Reem Kufi', sans-serif; }
.kalha-figure .caption { margin-top: var(--r4); max-width: 38ch; }
.kalha-text { grid-column: 7 / 12; padding-top: var(--r24); }
.kalha-text h2 { margin-bottom: var(--r6); font-size: clamp(2.25rem, 1.3rem + 2.8vw, 4.25rem); }
@media (max-width: 1279px) {
  .srow { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .srow .row-end { grid-column: 1 / -1; grid-row: 2; justify-items: start; }
}

/* About */
.about-intro { padding-top: var(--r24); row-gap: var(--r12); }
.about-intro h1 { grid-column: 1 / 11; }
.concept-plate { grid-column: 1 / 8; padding: var(--r8) var(--r8) var(--r8); }
.concept-plate .lead { max-width: 40ch; }
.riveted {
  --rivet: radial-gradient(circle, rgba(245, 241, 230, .95) 0 1.2px, #6C82BE 1.7px 3.2px, rgba(245, 241, 230, .7) 3.6px 4.3px, transparent 4.7px);
  background: var(--rivet) 13px 13px / 14px 14px no-repeat, var(--rivet) calc(100% - 13px) 13px / 14px 14px no-repeat,
    var(--rivet) 13px calc(100% - 13px) / 14px 14px no-repeat, var(--rivet) calc(100% - 13px) calc(100% - 13px) / 14px 14px no-repeat, var(--face);
}
.reading-col .body { grid-column: 3 / 10; }
.reading-col h2 { margin-bottom: var(--r6); }
.why { padding-top: var(--r24); }
.made { padding-top: var(--r16); }
.tell { padding-top: var(--r32); }
.tell-plate { grid-column: 3 / 11; --face: var(--lime); --rim: rgba(29, 58, 138, .55); padding: var(--r8) var(--r8) var(--r12); scroll-margin-top: 24px; }
.tell-intro { margin-top: var(--r4); max-width: 52ch; }
.tell-form { margin-top: var(--r8); display: grid; gap: var(--r6); }
.field-row { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row > label, .field-row legend { font-weight: 650; font-size: 1rem; padding: 0; }
:lang(ar) .field-row > label, :lang(ar) .field-row legend { font-weight: 600; }
.field-row .hint { margin-top: -4px; }
.field-row input[type='text'], .field-row input[type='email'], .field-row textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 0; border-bottom: 2px solid var(--sign);
  border-radius: 6px 6px 0 0; background: #FBF9F3; color: var(--ink); line-height: 1.45;
}
.field-row textarea { resize: vertical; }
.field-row [aria-invalid='true'] { border-bottom-color: var(--rust); }
.err { color: var(--rust); font-weight: 600; font-size: .9375rem; }
.choices { gap: 4px; }
.choices legend { margin-bottom: 8px; }
.choice, .check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.choice input, .check input { width: 22px; height: 22px; margin: 0; accent-color: var(--sign); flex: none; }
.check { align-items: flex-start; padding-top: 10px; }
.tell-form .button { justify-self: start; margin-top: var(--r2); }
.thanks { margin-top: var(--r8); padding: var(--r8); display: grid; gap: var(--r4); justify-items: start; }
.thanks:focus { outline: none; }
.refs { padding-top: var(--r24); padding-bottom: var(--r32); align-items: start; }
.colophon { grid-column: 3 / 12; }
.refs h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: var(--r6); }
.colophon dl { margin: 0; }
.colophon dl > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: var(--r2) var(--r8); padding-block: var(--r4) var(--r6); border-top: 1px solid var(--rule); }
.colophon dt { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.1; }
:lang(ar) .colophon dt { line-height: 1.5; font-size: 1.25rem; }
.colophon dd { margin: 0; font-size: .9375rem; line-height: 1.55; max-width: 62ch; }
:lang(ar) .colophon dd { line-height: 1.9; }
.hanging { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--r2); }
.hanging li { padding-inline-start: 1.25em; text-indent: -1.25em; }
.colophon .caption { margin-top: var(--r3); }

.layers { grid-column: 2 / 13; margin: var(--r12) 0 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--r8); align-items: center; }
.layers-svg { width: 100%; height: auto; overflow: visible; }
.layers-svg .plane { fill: rgba(29, 58, 138, .05); stroke: rgba(29, 58, 138, .4); stroke-width: 1; }
.layers-svg .layer-terrain .plane { fill: #CDBFA5; stroke: #8F8068; }
.layers-svg path.t0, .layers-svg path.t1, .layers-svg path.t2, .layers-svg path.t3, .layers-svg path.t4 { fill: none; stroke-width: 8; stroke-linecap: round; }
.layers-svg .t0 { stroke: #C9BB9F; } .layers-svg .t1 { stroke: #D3C6AE; } .layers-svg .t2 { stroke: #DCD1BC; } .layers-svg .t3 { stroke: #E6DDCB; } .layers-svg .t4 { stroke: #F0E9DB; }
.layers-svg .lr { fill: none; stroke: #9C8F78; stroke-width: .9; stroke-linejoin: round; }
.layers-svg .lb { fill: none; stroke: var(--ink); stroke-opacity: .6; stroke-width: 1.7; }
.layers-svg .lt { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.layers-svg .ls { fill: none; stroke: var(--sodium); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.layer { transform: translateY(var(--y1)); }
.js .explode:not(.is-in) .layer { transform: translateY(var(--y0)); }
.js .explode .layer { transition: transform 1400ms var(--ui); }
.js .explode .layer-tanks { transition-delay: 80ms; } .js .explode .layer-buildings { transition-delay: 160ms; } .js .explode .layer-streets { transition-delay: 240ms; } .js .explode .layer-terrain { transition-delay: 320ms; }
.layer-key { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--r6); counter-reset: none; }
.layer-key li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--r3); font-size: 1rem; line-height: 1.5; }
.layer-key strong { font-family: var(--display); font-weight: 700; font-size: 1.3rem; display: block; line-height: 1.1; margin-bottom: 2px; }
.key { width: 28px; height: 10px; margin-top: 7px; border-radius: 2px; }
.key.ls { background: var(--sodium); } .key.lt { background: var(--ink); width: 10px; border-radius: 50%; } .key.lb { background: rgba(15, 26, 58, .6); } .key.lr { background: #9C8F78; height: 3px; margin-top: 11px; } .key.lg { background: #D3C6AE; }

/* Tablet */
@media (max-width: 1023px) {
  .hero h1, .hero .lead, .hero-notes { grid-column: 1 / 8; }
  .daraj-photo { grid-column: 1 / 6; grid-row: auto; margin-top: 0; }
  .daraj-text { grid-column: 1 / 11; grid-row: auto; padding: 0; }
  .loops-head { grid-column: 1 / 10; }
  .rows { grid-column: 1 / 11; }
  .day-head { grid-column: 1 / 11; }
  .day-plates { grid-column: 7 / 13; row-gap: 34vh; }
  .archive { grid-column: 1 / 6; }
  .history-text { grid-column: 7 / 13; }
  .rail { grid-column: 1 / -1; position: relative; top: 0; max-height: none; margin-bottom: var(--r12); }
  .switcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stop-groups { grid-column: 6 / 13; grid-row: auto; padding-top: 20vh; }
  .locator-wrap { grid-column: 1 / 6; }
  .reg-intro .lead { grid-column: 1 / 8; }
  .names-note { grid-column: 9 / 13; }
  .srow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r2) var(--r4); }
  .srow .names { flex: 1 1 9.5rem; }
  .flights { flex: 0 0 auto; }
  .srow .row-end { flex: 1 1 100%; justify-items: start; }
  .kalha-figure { grid-column: 1 / 6; }
  .kalha-text { grid-column: 7 / 13; }
  .before h2, .notices, .step-free { grid-column: 1 / -1; }
  .before h2 { position: static; }
  .reading-col .body, .tell-plate { grid-column: 1 / 12; }
  .concept-plate { grid-column: 1 / 11; }
  .colophon { grid-column: 1 / -1; }
}

@media (max-width: 1023px) and (min-width: 760px) and (orientation: landscape) {
  .hero h1, .hero .lead, .hero-notes { grid-column: 1 / 7; }
  .daraj-photo { grid-column: 1 / 5; }
  .daraj-text, .loops-head { grid-column: 1 / 8; }
  .rows { grid-column: 1 / 7; }
}
@media (max-width: 1023px) and (min-width: 760px) and (orientation: portrait) {
  .hero { padding-top: 51svh; align-content: start; }
  .hero h1 { max-inline-size: none; }
}

/* Mobile */
@media (max-width: 759px) {
  .hero { min-height: calc(100svh - 60px); padding-top: 41svh; padding-bottom: var(--r8); row-gap: var(--r4); align-content: start; }
  .hero h1, .hero .lead, .hero-notes { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.4rem); line-height: .92; max-inline-size: none; }
  :lang(ar) .hero h1 { font-size: clamp(2.1rem, 1.4rem + 4vw, 2.8rem); line-height: 1.2; }
  .hero .lead { font-size: 1.125rem; }
  :lang(ar) .hero .lead { font-size: 1.0625rem; }
  .hero .hint { top: 35svh; inset-inline-end: var(--margin); }
  .daraj { padding-top: var(--r12); padding-bottom: var(--r16); row-gap: var(--r8); }
  .daraj-photo, .daraj-text { grid-column: 1 / -1; }
  .print img { aspect-ratio: 1; }
  .loops { padding-bottom: var(--r24); }
  .loops-head, .rows { grid-column: 1 / -1; }
  .row { grid-template-columns: 52px minmax(0, 1fr); padding: var(--r4) 0; gap: var(--r3); }
  .loop-glyph { width: 52px; height: 52px; }
  .sign-line { font-size: 1rem; display: grid; grid-template-columns: repeat(2, max-content); gap: 0 var(--r6); }
  .sign-line span + span::before { content: none; }
  .history { padding: var(--r16) 0; }
  .archive, .history-text { grid-column: 1 / -1; }
  .archive { max-width: 360px; }
  .history-text { margin-top: var(--r12); }
  .day { padding-top: var(--r16); }
  .day-head, .day-plates { grid-column: 1 / -1; }
  .day-plates { margin: 56svh 0 14vh; row-gap: 26vh; direction: ltr; justify-items: start; }
  .day-plates .hour-plate { width: 86%; margin-left: calc(var(--shift, .5) * 14%); }
  .walks-intro { padding-top: var(--r8); padding-bottom: var(--r8); }
  .walks-intro h1, .walks-intro .lead { grid-column: 1 / -1; }
  .walks-intro h1 { font-size: clamp(2.6rem, 1.6rem + 6vw, 3.4rem); line-height: .92; }
  :lang(ar) .walks-intro h1 { font-size: 2.3rem; line-height: 1.25; }
  .walk { padding-bottom: var(--r12); }
  .rail { margin-bottom: var(--r6); padding: var(--r3); }
  .rail .profile { display: none; }
  .switcher { grid-template-columns: 1fr; justify-items: start; gap: 5px; }
  .sw { width: auto; min-width: 58%; padding: 8px 14px 9px; }
  .sw .ar { font-size: .95rem; }
  .sw .en { font-size: 1.1rem; }
  .stage {
    display: block; grid-column: 1 / -1; position: sticky; top: 0; z-index: 3;
    margin-inline: calc(-1 * var(--margin)); background: var(--sign);
  }
  .page-walks .model { position: relative; inset: auto; height: 42svh; overflow: hidden; }
  .stage { transition: top 420ms var(--ui); }
  .stage.is-tight { top: -8svh; }
  .stop-photo { scroll-margin-top: calc(42svh + 72px); }
  .page-walks .model { --fx: .5; --fy: .5; --size: .8; }
  .panel-profile { display: block; height: 64px; padding: 0 var(--margin); background: var(--sign); border-bottom: 1px solid rgba(245, 241, 230, .2); }
  .panel-profile .profile-svg { cursor: default; }
  .stop-groups { grid-column: 1 / -1; padding-top: var(--r6); }
  .stops { row-gap: 50vh; padding-bottom: 20vh; }
  .stop { grid-template-columns: 1fr; gap: var(--r2); padding: var(--r4) var(--r4) var(--r6); }
  .before h2 { position: static; }
  .notices { gap: var(--r3); }
  .notice { padding: var(--r4) 24px var(--r6); }
  .notice:nth-child(n) { margin-top: 0; }
  .reg-intro { padding-top: var(--r12); padding-bottom: var(--r8); }
  .reg-intro h1, .reg-intro .lead { grid-column: 1 / -1; }
  .names-note { grid-column: 1 / -1; grid-row: auto; margin-top: var(--r4); }
  .locator-wrap { display: none; }
  .reg-list { grid-column: 1 / -1; }
  .srow { padding: var(--r4) 4px var(--r2); }
  .srow .row-end { grid-auto-flow: column; justify-content: start; gap: var(--r6); align-items: center; }
  .inline-locator { flex-basis: 240px; margin-inline: auto; }
  .reg-where { display: inline-block; min-height: 44px; }
  .srow .names .ar { font-size: 1.25rem; }
  .srow .names .en { font-size: 1.4rem; }
  .kalha-figure, .kalha-text { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .kalha-plan { max-width: 300px; margin-inline: auto; }
  .about-intro { padding-top: var(--r12); row-gap: var(--r8); }
  .about-intro h1, .concept-plate, .reading-col .body, .tell-plate, .colophon { grid-column: 1 / -1; }
  .colophon dl > div { grid-template-columns: 1fr; }
  .layers { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .concept-plate { padding: var(--r6) var(--r4); }
  .tell-plate { padding: var(--r6) var(--r4) var(--r8); }
  .why { padding-top: var(--r16); }
}

.page-walks .walks-intro, .page-walks .rail, .page-walks .stop-groups, .page-walks .before { position: relative; z-index: 1; }
.page-walks .rail { position: sticky; }
@media (max-width: 1023px) { .page-walks .rail { position: relative; } }
@media (pointer: coarse) { .row .row-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; } }
