/*
 * Piping support steel pages (PipingSteel module). Loaded after ms.css and
 * lw.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 .ps-motion (set by ps.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); nothing here sets their size.
 */

.lp-sec.ps-sec .ctas .btn { white-space: nowrap; }
.lp-sec.ps-sec :where(.ms-note, .lw-note) + .ctas { margin-block-start: var(--flow-gap); }

/* ------------------------------------------------------------------ */
/* Ecosystem: shared node                                               */
/* ------------------------------------------------------------------ */
.ps-eco { position: relative; overflow: hidden; }
.ps-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; }
.ps-eco > .wrap { position: relative; }
.ps-eco .lp-lede { color: var(--mist); }
.ps-eco-stage { margin-block-start: var(--space-6, 40px); }

.ps-node { position: relative; display: flex; align-items: flex-start; gap: var(--space-2, 12px); color: var(--white); text-decoration: none; }
a.ps-node:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ps-node-no { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--gold); }
.ps-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; }
.ps-node-ico .ico { inline-size: 22px; block-size: 22px; }
.ps-node-body { display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.ps-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); }
.ps-node-text { font-size: 14px; line-height: 1.5; color: var(--mist); }
.ps-node-go { margin-inline-start: auto; flex: none; color: #FF8A8A; transition: transform .2s ease; }
[dir="rtl"] .ps-node-go { transform: scaleX(-1); }
a.ps-node:is(:hover, :focus-visible) .ps-node-ico, .ps-node.is-hot .ps-node-ico { background: var(--red); color: var(--white); }
a.ps-node:is(:hover, :focus-visible) .ps-node-go { transform: translateX(4px); }
[dir="rtl"] a.ps-node:is(:hover, :focus-visible) .ps-node-go { transform: scaleX(-1) translateX(4px); }

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


/* ------------------------------------------------------------------ */
/* Style 1 · linelist (piping support steel hub)                        */
/* ------------------------------------------------------------------ */
.ps-ll-sheet { position: relative; max-inline-size: 1080px; margin-inline: auto; padding: clamp(16px, 2.6vw, 30px); background: linear-gradient(90deg, rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 24px 24px, rgba(6, 17, 31, .82); border: 1px solid #2B4A73; box-shadow: 0 28px 60px rgba(0, 0, 0, .35); }
.ps-ll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding-block-end: 14px; border-block-end: 2px solid var(--gold); }
.ps-ll-doc { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.ps-ll-head strong { flex: 1 1 auto; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.ps-ll-rev { font-size: 12px; letter-spacing: 1px; color: #8FB3E0; white-space: nowrap; }
.ps-ll-cols, .ps-ll-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 132px; align-items: center; column-gap: 20px; }
.ps-ll-cols { padding: 10px 10px 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; border-block-end: 1px solid #2B4A73; }
.ps-ll-rows { margin: 0; padding: 0; list-style: none; }
.ps-ll-row { position: relative; padding: 4px 10px 14px; border-block-end: 1px solid rgba(43, 74, 115, .7); transition: background .25s ease; }
.ps-ll-row:hover, .ps-ll-row:focus-within { background: rgba(165, 0, 0, .12); }
.ps-ll-line { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--gold); white-space: nowrap; }
.ps-ll-group { justify-self: start; padding: 3px 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: var(--navy-700); white-space: nowrap; }
.ps-node.is-line { align-items: center; padding: 10px 0 6px; }
.ps-node.is-line .ps-node-no { display: none; }
.ps-node.is-line .ps-node-ico { inline-size: 36px; block-size: 36px; }
.ps-node.is-line .ps-node-title { font-size: 16px; }
.ps-ll-pipe { position: absolute; inset-inline: 10px; inset-block-end: 6px; block-size: 4px; background: linear-gradient(90deg, #5C7BA3, #C9D6E6 40%, #5C7BA3); border-radius: 2px; transform-origin: left center; }
[dir="rtl"] .ps-ll-pipe { transform-origin: right center; }
.ps-ll-pipe > i { position: absolute; inset-inline-end: -2px; inset-block-start: -4px; inline-size: 0; block-size: 0; border-block: 6px solid transparent; border-inline-start: 9px solid #C9D6E6; }
.ps-ll-pipe.is-hot { background: linear-gradient(90deg, var(--red), #FF8A8A 40%, var(--red)); }
.ps-ll-pipe.is-hot > i { border-inline-start-color: #FF8A8A; }
.ps-ll-caption { margin: 18px 0 0 !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }
.ps-motion .ps-ll-row { opacity: 0; transform: translateY(8px); transition: opacity .4s ease calc(250ms + var(--i) * 120ms), transform .4s ease calc(250ms + var(--i) * 120ms), background .25s ease; }
.ps-motion .ps-ll-pipe { transform: scaleX(0); transition: transform .9s cubic-bezier(.3, .6, .2, 1) calc(450ms + var(--i) * 120ms); }
.ps-motion .is-in .ps-ll-row { opacity: 1; transform: none; }
.ps-motion .is-in .ps-ll-pipe { transform: none; }

/* ------------------------------------------------------------------ */
/* Style 2 · shoeplan (pipe supports and sleepers)                      */
/* ------------------------------------------------------------------ */
.ps-sp-head, .ps-mp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-block-end: 10px; }
.ps-sp-head > span, .ps-mp-head > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.ps-sp-head strong, .ps-mp-head strong { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.ps-sp-vis, .ps-mp-vis { position: relative; margin-block-end: var(--space-5, 32px); padding: 16px 16px 10px; background: linear-gradient(rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 50px 50px, linear-gradient(90deg, rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 50px 50px, rgba(6, 17, 31, .8); border: 1px solid #2B4A73; direction: ltr; }
.ps-sp-vis svg, .ps-mp-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.ps-sp-pipes path { fill: none; stroke: #C9D6E6; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ps-sp-pipes path + path { stroke: #8FA6C2; }
.ps-sp-beam { stroke: var(--gold); stroke-width: 6; }
.ps-sp-shoe { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease; }
.ps-sp-lead { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ps-sp-sup circle { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
.ps-sp-sup text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 12px; font-weight: 700; }
.ps-sp-sup.is-hot .ps-sp-shoe, .ps-sp-sup.is-hot circle { fill: var(--red); stroke: #FF8A8A; }
.ps-sp-sup.is-hot text { fill: var(--white); }
.ps-sp-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-block-start: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.ps-sp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ps-sp-legend span::before { content: ""; inline-size: 22px; block-size: 5px; border-radius: 3px; background: #C9D6E6; }
.ps-sp-legend .is-sup::before { inline-size: 10px; block-size: 14px; border-radius: 0; background: var(--gold); }
.ps-sp-caption, .ps-mp-caption { margin-block-start: var(--space-4, 24px) !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }
.ps-motion .ps-sp-pipes path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.5s cubic-bezier(.3, .6, .2, 1) .3s; }
.ps-motion .ps-sp-sup { opacity: 0; transform: translateY(var(--dy)); transition: opacity .35s ease calc(1300ms + var(--i) * 110ms), transform .45s cubic-bezier(.3, 1.5, .5, 1) calc(1300ms + var(--i) * 110ms); }
.ps-motion .is-in .ps-sp-pipes path { stroke-dashoffset: 0; }
.ps-motion .is-in .ps-sp-sup { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 3 · modulemap (pipe rack modules)                              */
/* ------------------------------------------------------------------ */
.ps-mp-ground { stroke: #8FB3E0; stroke-width: 2; stroke-dasharray: 10 6; }
.ps-mp-env line { stroke: #8FB3E0; stroke-width: 1.5; }
.ps-mp-hook { stroke: rgba(201, 214, 230, .45); stroke-width: 1.5; stroke-dasharray: 4 4; transition: opacity .3s ease; }
.ps-mp-box { fill: rgba(201, 214, 230, .05); stroke: #C9D6E6; stroke-width: 4; transition: fill .25s ease, stroke .25s ease; }
.ps-mp-tier { stroke: #C9D6E6; stroke-width: 3; }
.ps-mp-brace { stroke: #8FA6C2; stroke-width: 2; }
.ps-mp-pipe { fill: #0B0B0B; stroke: #8FB3E0; stroke-width: 2; }
.ps-mp-tag { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease; }
.ps-mp-mod text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 13px; font-weight: 700; }
.ps-mp-mod.is-hot .ps-mp-box { fill: rgba(165, 0, 0, .3); stroke: #FF8A8A; }
.ps-mp-mod.is-hot .ps-mp-tag { fill: var(--gold); }
.ps-mp-mod.is-hot text { fill: #0B0B0B; }
.ps-mp-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-block-start: 6px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.ps-mp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; }
.ps-node.is-card { flex-direction: column; block-size: 100%; padding: 16px; background: var(--navy-800); border-block-start: 3px solid var(--gold); transition: background .25s ease, border-color .25s ease; }
.ps-node.is-card .ps-node-no { padding: 3px 6px; background: #0B0B0B; border: 1px solid var(--gold); }
.ps-node.is-card .ps-node-go { margin-block-start: auto; margin-inline-start: 0; }
.ps-node.is-card .ps-node-title { font-size: 15px; }
.ps-node.is-card .ps-node-text { font-size: 13.5px; line-height: 1.45; }
a.ps-node.is-card:is(:hover, :focus-visible), .ps-node.is-card.is-hot { background: var(--navy-700); border-block-start-color: var(--red); }
.ps-motion .ps-mp-mod { opacity: 0; transform: translateY(-70px); transition: opacity .4s ease calc(300ms + var(--i) * 220ms), transform .8s cubic-bezier(.25, .8, .25, 1) calc(300ms + var(--i) * 220ms); }
.ps-motion .ps-mp-env { opacity: 0; transition: opacity .5s ease 1s; }
.ps-motion .ps-mp-cards > li { opacity: 0; transform: translateY(12px); transition: opacity .45s ease calc(600ms + var(--i) * 90ms), transform .45s ease calc(600ms + var(--i) * 90ms); }
.ps-motion .is-in .ps-mp-mod, .ps-motion .is-in .ps-mp-env, .ps-motion .is-in .ps-mp-cards > li { opacity: 1; transform: none; }
.ps-motion .is-in .ps-mp-hook { opacity: 0; transition-delay: calc(1100ms + var(--i) * 220ms); }

/* ------------------------------------------------------------------ */
/* Style 4 · hollow (tubular steel structures)                          */
/* ------------------------------------------------------------------ */
.ps-ho-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-block-end: 10px; }
.ps-ho-head > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.ps-ho-head strong { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: .5px; text-transform: uppercase; color: var(--white); }
.ps-ho-vis { position: relative; margin-block-end: var(--space-5, 32px); padding: 16px 16px 10px; background: radial-gradient(circle at 50% 120%, rgba(143, 179, 224, .1), transparent 60%), linear-gradient(rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(143, 179, 224, .05) 1px, transparent 1px) 0 0 / 40px 40px, rgba(6, 17, 31, .8); border: 1px solid #2B4A73; direction: ltr; }
.ps-ho-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.ps-ho-wall { fill: none; stroke: #C9D6E6; stroke-linecap: round; }
.ps-ho-bore { fill: none; stroke: #0B1A2E; stroke-linecap: round; }
.ps-ho-chords .ps-ho-wall { stroke-width: 20; }
.ps-ho-chords .ps-ho-bore { stroke-width: 10; }
.ps-ho-brace .ps-ho-wall { stroke: #8FA6C2; stroke-width: 12; }
.ps-ho-brace .ps-ho-bore { stroke-width: 5; }
.ps-ho-ends circle { fill: #0B1A2E; stroke: #C9D6E6; stroke-width: 3; }
.ps-ho-ends circle + circle { fill: none; stroke: #8FB3E0; stroke-width: 1.5; }
.ps-ho-saddle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; transition: stroke .25s ease; }
.ps-ho-lead { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ps-ho-ring { fill: #0B0B0B; stroke: var(--gold); stroke-width: 3; transition: fill .25s ease, stroke .25s ease; }
.ps-ho-hole { fill: none; stroke: rgba(201, 159, 82, .45); stroke-width: 1; }
.ps-ho-joint text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 12px; font-weight: 700; }
.ps-ho-joint.is-hot .ps-ho-ring { fill: var(--red); stroke: #FF8A8A; }
.ps-ho-joint.is-hot .ps-ho-saddle { stroke: #FF8A8A; }
.ps-ho-joint.is-hot text { fill: var(--white); }
.ps-ho-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-block-start: 8px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8FB3E0; }
.ps-ho-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ps-ho-legend span::before { content: ""; inline-size: 22px; block-size: 8px; border-radius: 4px; background: #0B1A2E; box-shadow: inset 0 0 0 2px #C9D6E6; }
.ps-ho-legend .is-brace::before { block-size: 6px; box-shadow: inset 0 0 0 2px #8FA6C2; }
.ps-ho-legend .is-joint::before { inline-size: 12px; block-size: 12px; border-radius: 50%; background: #0B0B0B; box-shadow: inset 0 0 0 2px var(--gold); }
.ps-ho-caption { margin-block-start: var(--space-4, 24px) !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }
.ps-motion .ps-ho-chords path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .6, .2, 1) .25s; }
.ps-motion .ps-ho-ends { opacity: 0; transition: opacity .4s ease 1.3s; }
.ps-motion .ps-ho-brace { opacity: 0; transform: translateY(-14px); transition: opacity .35s ease calc(1200ms + var(--i) * 110ms), transform .5s cubic-bezier(.3, 1.4, .5, 1) calc(1200ms + var(--i) * 110ms); }
.ps-motion .ps-ho-joint { opacity: 0; transition: opacity .35s ease calc(1500ms + var(--i) * 110ms); }
.ps-motion .is-in .ps-ho-chords path { stroke-dashoffset: 0; }
.ps-motion .is-in .ps-ho-ends, .ps-motion .is-in .ps-ho-brace, .ps-motion .is-in .ps-ho-joint { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Photo record                                                         */
/* ------------------------------------------------------------------ */
.ps-ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3, 16px); }
.ps-ph-lead, .ps-ph-strip figure { position: relative; margin: 0; overflow: hidden; background: var(--navy-900); }
.ps-ph-lead img { display: block; inline-size: 100%; block-size: 100%; max-block-size: 640px; object-fit: cover; }
.ps-ph-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3, 16px); margin: 0; padding: 0; list-style: none; align-content: start; }
.ps-ph-strip img { display: block; inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ps-ph-strip figure:hover img { transform: scale(1.04); }
.ps-ph-lead figcaption, .ps-ph-strip figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 26px 12px 10px; font-size: 13px; line-height: 1.35; color: var(--white); background: linear-gradient(180deg, transparent, rgba(6, 17, 31, .9)); }
.ps-ph-source { display: flex; align-items: center; gap: 8px; margin-block-start: var(--space-3, 16px) !important; font-size: 12.5px; letter-spacing: .5px; color: var(--slate, #5A6B80); }
.ps-ph-source .ico { inline-size: 16px; block-size: 16px; flex: none; color: var(--red); }
.ps-motion .ps-ph-lead, .ps-motion .ps-ph-strip > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease calc(var(--i, 0) * 70ms + 100ms), transform .5s ease calc(var(--i, 0) * 70ms + 100ms); }
.ps-motion .is-in .ps-ph-lead, .ps-motion .is-in .ps-ph-strip > li { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Related pages                                                        */
/* ------------------------------------------------------------------ */
.ps-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; }
.ps-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; }
.ps-rel-img { position: absolute; inset: 0; z-index: -2; }
.ps-rel-img img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ps-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; }
.ps-rel-card.no-img { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px), var(--navy-900); }
.ps-rel-card:is(:hover, :focus-visible)::after { background: linear-gradient(180deg, rgba(165, 0, 0, .2) 0%, rgba(6, 17, 31, .95) 70%); }
.ps-rel-card:is(:hover, :focus-visible) .ps-rel-img img { transform: scale(1.06); }
.ps-rel-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ps-rel-body { display: flex; flex-direction: column; gap: 8px; margin-block-start: auto; padding: 18px; }
.ps-rel-ico { display: inline-grid; place-items: center; inline-size: 36px; block-size: 36px; background: var(--red); color: var(--white); }
.ps-rel-ico .ico { inline-size: 20px; block-size: 20px; }
.lp .lp-sec .ps-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); }
.ps-rel-text { font-size: 13.5px; line-height: 1.45; color: var(--mist); }
.ps-rel-go { color: #FF8A8A; }
[dir="rtl"] .ps-rel-go { transform: scaleX(-1); }
.ps-motion .ps-rel-grid > li { opacity: 0; transform: translateY(16px); transition: opacity .5s ease calc(var(--i) * 60ms), transform .5s ease calc(var(--i) * 60ms); }
.ps-motion .is-in.ps-rel-grid > li { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Tablets and phones                                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .ps-list.is-2col { grid-template-columns: minmax(0, 1fr); }
  .ps-mp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-ph-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ps-ph-grid { grid-template-columns: minmax(0, 1fr); }
  .ps-ph-lead img { max-block-size: 460px; }
}
@media (max-width: 719px) {
  .ps-eco-stage { margin-block-start: var(--space-5, 32px); }
  /* Linelist: line number and group above the node, pipe under it */
  .ps-ll-sheet { padding: 14px 12px; }
  .ps-ll-cols { display: none; }
  .ps-ll-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; padding: 12px 4px 16px; }
  .ps-ll-line { grid-row: 1; }
  .ps-ll-group { grid-row: 1; justify-self: end; }
  .ps-ll-row .ps-node.is-line { grid-column: 1 / -1; grid-row: 2; padding-block: 6px 4px; }
  .ps-ll-pipe { inset-inline: 4px; }
  /* Shoeplan and modulemap: tighter drawings */
  /* Drawings keep a readable size and swipe sideways */
  .ps-sp-vis, .ps-mp-vis, .ps-ho-vis { padding: 10px 8px 8px; overflow-x: auto; scrollbar-width: thin; }
  .ps-sp-vis svg, .ps-mp-vis svg, .ps-ho-vis svg { min-inline-size: 660px; }
  .ps-sp-sup text, .ps-mp-mod text, .ps-ho-joint text { font-size: 15px; }
  .ps-mp-labels, .ps-sp-legend, .ps-ho-legend { font-size: 10px; letter-spacing: 1px; }
  .ps-mp-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ps-node.is-card { flex-direction: row; align-items: center; }
  .ps-node.is-card .ps-node-go { margin-block-start: 0; margin-inline-start: auto; }
  /* Photo strip: one row that swipes sideways */
  .ps-ph-strip { 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; }
  .ps-ph-strip > li { flex: 0 0 62%; scroll-snap-align: start; }
  /* Related pages: one row that swipes sideways */
  .ps-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; }
  .ps-rel-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-node.is-row, .ps-node.is-card, .ps-node-ico, .ps-node-go, .ps-ll-row, .ps-sp-shoe, .ps-sp-sup circle, .ps-mp-box, .ps-mp-tag, .ps-ho-saddle, .ps-ho-ring,
  .ps-rel-img img, .ps-rel-card::after, .ps-ph-strip img { transition: none; }
}
