/*
 * Steel pedestrian bridge type pages (BridgeTypes 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 .bt-motion (set by bt.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.bt-sec .ctas .btn { white-space: nowrap; }
.lp-sec.bt-sec :where(.ms-note, .lw-note) + .ctas { margin-block-start: var(--flow-gap); }

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

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

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


.bt-list.is-4col { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-3, 16px); }
.bt-list.is-4col .bt-node.is-row { flex-wrap: wrap; align-items: flex-start; }
.bt-list.is-4col .bt-node.is-row .bt-node-body { flex: 1 1 120px; }
.bt-caption { margin-block: var(--space-4, 24px) 0 !important; max-inline-size: 72ch; color: var(--mist); font-size: 15px; line-height: 1.6; }

/* Shared drawing panel and numbered marks */
.bt-vis { margin: 0; padding: 16px; background: 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; }
.bt-vis svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; direction: ltr; }
.bt-vis-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-block-end: 8px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8FB3E0; direction: ltr; }
.bt-vis-head strong { color: var(--white); letter-spacing: 1px; }
.bt-vis :where(rect, path) { vector-effect: non-scaling-stroke; }
:where(.bt-mk) circle { fill: #0B0B0B; stroke: var(--gold); stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
:where(.bt-mk) text { fill: var(--gold); font-family: var(--f-mono, ui-monospace, monospace); font-size: 12px; font-weight: 700; }
:where(.bt-mk).is-hot circle { fill: var(--red); stroke: var(--white); }
:where(.bt-mk).is-hot text { fill: var(--white); }
.bt-motion .bt-mk { opacity: 0; transition: opacity .35s ease calc(1500ms + var(--i) * 90ms); }
.bt-motion .is-in .bt-mk { opacity: 1; }

/* Shared strokes of the bridge drawings */
.bt-vis :where(.bt-sp-ground, .bt-tl-ground) { stroke: #2B4A73; stroke-width: 2; fill: none; }
.bt-vis :where(.bt-ar-water, .bt-py-water) { stroke: rgba(143, 179, 224, .35); stroke-width: 1.5; fill: none; }
.bt-vis :where(.bt-sp-abut, .bt-ar-abut, .bt-py-pier, .bt-wr-sup, .bt-cb-sup) { stroke: #8FB3E0; stroke-width: 1.5; fill: rgba(143, 179, 224, .08); }
.bt-vis :where(text) { font-family: var(--f-mono, ui-monospace, monospace); font-size: 11px; letter-spacing: 1px; fill: #8FB3E0; text-transform: uppercase; }
.bt-vis :where(.bt-mk) text { font-size: 12px; letter-spacing: 0; text-transform: none; fill: var(--gold); }

/* ------------------------------------------------------------------ */
/* Style 1 · splice (modular & prefabricated bridges)                   */
/* ------------------------------------------------------------------ */
.bt-sp-vis { margin-block-end: var(--space-5, 32px); }
.bt-sp-mod rect { fill: rgba(201, 214, 230, .08); stroke: #C9D6E6; stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
.bt-sp-mod path { fill: none; stroke: #8FB3E0; stroke-width: 1.5; }
.bt-vis .bt-sp-tag { fill: #C9D6E6; font-weight: 700; }
.bt-sp-mod.is-hot rect { fill: rgba(165, 0, 0, .35); stroke: #FF8A8A; }
.bt-sp-plate { fill: var(--red); stroke: var(--white); stroke-width: 1; }
.bt-sp-bolt { fill: var(--white); }
.bt-sp-lead { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.bt-sp-joint.is-hot .bt-sp-plate { fill: var(--gold); }
.bt-sp-joint.is-hot .bt-sp-lead { stroke: #FF8A8A; stroke-dasharray: none; stroke-width: 2; }
.bt-motion .bt-sp-mod { opacity: 0; transform: translateX(var(--dx)); transition: opacity .5s ease calc(var(--i) * 90ms), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 90ms); }
.bt-motion .bt-sp-joint { opacity: 0; transition: opacity .35s ease calc(1000ms + var(--i) * 90ms); }
.bt-motion .is-in :where(.bt-sp-mod, .bt-sp-joint) { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 2 · warren (steel truss bridges)                               */
/* ------------------------------------------------------------------ */
.bt-wr-vis { margin-block-end: var(--space-5, 32px); }
.bt-wr-chord { fill: none; stroke: #C9D6E6; stroke-width: 7; stroke-linecap: square; }
.bt-wr-diag { fill: none; stroke: #8FB3E0; stroke-width: 4; stroke-linecap: round; transition: stroke .25s ease, stroke-width .25s ease; }
.bt-wr-diag.is-hot { stroke: #FF8A8A; stroke-width: 6; }
.bt-wr-load path { fill: none; stroke: rgba(212, 161, 46, .7); stroke-width: 1.5; }
.bt-motion .bt-wr-chord { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s cubic-bezier(.3, .6, .2, 1) .2s; }
.bt-motion .bt-wr-diag { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .4s ease calc(900ms + var(--i) * 80ms), stroke .25s ease; }
.bt-motion .bt-wr-load { opacity: 0; transition: opacity .6s ease 1.8s; }
.bt-motion .is-in :where(.bt-wr-chord, .bt-wr-diag) { stroke-dashoffset: 0; }
.bt-motion .is-in .bt-wr-load { opacity: 1; }

/* ------------------------------------------------------------------ */
/* Style 3 · camber (built-up girder bridges)                           */
/* ------------------------------------------------------------------ */
.bt-cb-vis { margin-block-end: var(--space-4, 24px); }
.bt-cb-chord { fill: none; stroke: #8FB3E0; stroke-width: 1.5; stroke-dasharray: 10 6; }
.bt-cb-web { fill: rgba(201, 214, 230, .1); stroke: none; }
.bt-cb-flange { fill: none; stroke: #C9D6E6; stroke-width: 6; stroke-linecap: square; }
.bt-cb-end { stroke: #C9D6E6; stroke-width: 6; fill: none; }
.bt-cb-rise { stroke: var(--gold); stroke-width: 1.5; fill: none; marker-end: none; }
.bt-vis .bt-cb-lbl { fill: var(--gold); }
.bt-cb-st path { stroke: #8FB3E0; stroke-width: 3; fill: none; transition: stroke .25s ease; }
.bt-cb-st .bt-cb-lead { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.bt-cb-st.is-hot path { stroke: #FF8A8A; }
.bt-cb-strip { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--navy-700); border: 1px solid var(--navy-700); }
.bt-cb-strip > li { display: flex; background: var(--navy-900, #0A1A30); }
.bt-node.is-station { flex-direction: column; gap: 10px; inline-size: 100%; padding: 16px 16px 18px; border-block-start: 3px solid transparent; transition: background .25s ease, border-color .25s ease; }
.bt-node.is-station .bt-node-no { font-size: 11px; letter-spacing: 2px; }
.bt-node.is-station .bt-node-go { margin-block-start: auto; margin-inline-start: 0; }
a.bt-node.is-station:is(:hover, :focus-visible), .bt-node.is-station.is-hot { background: #142F52; border-block-start-color: var(--red); }
.bt-motion .bt-cb-chord { opacity: 0; transition: opacity .8s ease .1s; }
.bt-motion .bt-cb-girder { opacity: 0; transform: translateY(26px); transition: opacity .6s ease .6s, transform 1s cubic-bezier(.2, .7, .2, 1) .6s; }
.bt-motion .bt-cb-st, .bt-motion .bt-cb-rise, .bt-motion .bt-cb-lbl { opacity: 0; transition: opacity .35s ease calc(1400ms + var(--i, 0) * 90ms); }
.bt-motion .bt-cb-strip > li { opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(600ms + var(--i) * 60ms), transform .45s ease calc(600ms + var(--i) * 60ms); }
.bt-motion .is-in .bt-cb-chord { opacity: 1; }
.bt-motion .is-in :where(.bt-cb-girder, .bt-cb-st, .bt-cb-rise, .bt-cb-lbl, .bt-cb-strip > li) { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 4 · archrib (architectural bridges)                            */
/* ------------------------------------------------------------------ */
.bt-ar { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr); align-items: start; gap: var(--space-5, 32px); }
.bt-ar-deck { fill: none; stroke: #C9D6E6; stroke-width: 6; }
.bt-ar-deck2 { fill: none; stroke: #2B4A73; stroke-width: 2; }
.bt-ar-rib { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.bt-ar-hanger { stroke: #C9D6E6; stroke-width: 2; fill: none; transition: stroke .25s ease, stroke-width .25s ease; }
.bt-ar-hanger.is-hot { stroke: var(--gold); stroke-width: 4; }
.bt-vis .bt-ar-lbl { fill: #FF8A8A; }
.bt-motion .bt-ar-deck { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s ease .1s; }
.bt-motion .bt-ar-rib { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .6, .2, 1) .6s; }
.bt-motion .bt-ar-hanger { opacity: 0; transform: scaleY(0); transform-box: fill-box; transform-origin: top; transition: opacity .3s ease calc(1700ms + var(--i) * 90ms), transform .45s ease calc(1700ms + var(--i) * 90ms), stroke .25s ease; }
.bt-motion .is-in :where(.bt-ar-deck, .bt-ar-rib) { stroke-dashoffset: 0; }
.bt-motion .is-in .bt-ar-hanger { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 5 · plantlink (industrial pedestrian bridges)                  */
/* ------------------------------------------------------------------ */
.bt-pl { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); align-items: start; gap: var(--space-5, 32px); }
.bt-pl-road path { stroke: rgba(143, 179, 224, .25); stroke-width: 14; fill: none; }
.bt-pl-road .bt-pl-road2 { stroke-width: 10; }
.bt-pl-rack rect { fill: rgba(212, 161, 46, .12); stroke: var(--gold); stroke-width: 1.5; }
.bt-pl-rack path { stroke: var(--gold); stroke-width: 1; }
.bt-vis .bt-pl-rack text { fill: var(--gold); }
.bt-pl-unit rect { fill: rgba(201, 214, 230, .07); stroke: #C9D6E6; stroke-width: 1.5; stroke-dasharray: 6 4; }
.bt-vis .bt-pl-unit text { fill: #C9D6E6; font-size: 10px; }
.bt-pl-link { stroke: var(--red); stroke-width: 7; stroke-linecap: round; fill: none; transition: stroke .25s ease; }
.bt-pl-link.is-hot { stroke: var(--gold); }
.bt-motion .bt-pl-unit, .bt-motion .bt-pl-rack { opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * 100ms); }
.bt-motion .bt-pl-link { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s ease calc(700ms + var(--i) * 120ms), stroke .25s ease; }
.bt-motion .is-in :where(.bt-pl-unit, .bt-pl-rack) { opacity: 1; }
.bt-motion .is-in .bt-pl-link { stroke-dashoffset: 0; }

/* ------------------------------------------------------------------ */
/* Style 6 · towerlink (skywalks & building connections)                */
/* ------------------------------------------------------------------ */
.bt-tl { display: grid; grid-template-columns: minmax(0, 6fr) minmax(300px, 6fr); align-items: start; gap: var(--space-5, 32px); }
.bt-tl-road { stroke: rgba(143, 179, 224, .35); stroke-width: 2; stroke-dasharray: 14 10; fill: none; }
.bt-tl-tower rect { fill: rgba(201, 214, 230, .06); stroke: #C9D6E6; stroke-width: 2; }
.bt-tl-tower path { stroke: #2B4A73; stroke-width: 1.5; }
.bt-tl-link rect { fill: rgba(143, 179, 224, .18); stroke: var(--red); stroke-width: 3; }
.bt-tl-link path { stroke: var(--red); stroke-width: 2; fill: none; }
.bt-tl-link .bt-tl-mullion { stroke: rgba(201, 214, 230, .45); stroke-width: 1; }
.bt-tl-floor rect { fill: transparent; transition: fill .25s ease; }
.bt-tl-floor.is-hot rect { fill: rgba(165, 0, 0, .4); }
.bt-tl-board { background: #06111F; border: 1px solid #2B4A73; padding: 14px 14px 6px; }
.bt-tl-board-head { display: flex; justify-content: space-between; padding: 4px 10px 10px; border-block-end: 2px solid var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.bt-tl-board .bt-list { border-block-start: 0; }
.bt-tl-board .bt-node-no { display: inline-grid; place-items: center; min-inline-size: 30px; padding: 2px 4px; background: var(--gold); color: #06111F; }
.bt-motion .bt-tl-tower { opacity: 0; transform: translateY(30px); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.bt-motion .bt-tl-tower.is-b { transition-delay: .15s; }
.bt-motion .bt-tl-link { opacity: 0; transform: translateX(-60px); transition: opacity .5s ease .8s, transform .8s cubic-bezier(.2, .7, .2, 1) .8s; }
.bt-motion .is-in :where(.bt-tl-tower, .bt-tl-link) { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Style 7 · pylon (special engineered bridges)                         */
/* ------------------------------------------------------------------ */
.bt-py { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px) minmax(0, 1fr); align-items: center; gap: var(--space-5, 32px); }
.bt-py-deck { fill: none; stroke: #C9D6E6; stroke-width: 7; }
.bt-py-deck2 { fill: none; stroke: #2B4A73; stroke-width: 2; }
.bt-py-mast { fill: rgba(165, 0, 0, .35); stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
.bt-py-stay { stroke: #C9D6E6; stroke-width: 1.6; fill: none; transition: stroke .25s ease, stroke-width .25s ease; }
.bt-py-stay.is-hot { stroke: var(--gold); stroke-width: 3.5; }
.bt-motion .bt-py-deck { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .8s ease .1s; }
.bt-motion .bt-py-mast { opacity: 0; transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; transition: opacity .3s ease .5s, transform .9s cubic-bezier(.2, .7, .2, 1) .5s; }
.bt-motion .bt-py-stay { opacity: 0; transition: opacity .35s ease calc(1400ms + var(--i) * 100ms), stroke .25s ease; }
.bt-motion .is-in .bt-py-deck { stroke-dashoffset: 0; }
.bt-motion .is-in :where(.bt-py-mast, .bt-py-stay) { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Photo record                                                         */
/* ------------------------------------------------------------------ */
.bt-ph-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3, 16px); }
.bt-ph-lead, .bt-ph-strip figure { position: relative; margin: 0; overflow: hidden; background: var(--navy-900); }
.bt-ph-lead img { display: block; inline-size: 100%; block-size: 100%; max-block-size: 640px; object-fit: cover; }
.bt-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; }
.bt-ph-strip img { display: block; inline-size: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bt-ph-strip figure:hover img { transform: scale(1.04); }
.bt-ph-lead figcaption, .bt-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)); }
.bt-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); }
.bt-ph-source .ico { inline-size: 16px; block-size: 16px; flex: none; color: var(--red); }
.bt-motion .bt-ph-lead, .bt-motion .bt-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); }
.bt-motion .is-in .bt-ph-lead, .bt-motion .is-in .bt-ph-strip > li { opacity: 1; transform: none; }

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


/* ------------------------------------------------------------------ */
/* Tablets and phones                                                   */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .bt-list.is-2col { grid-template-columns: minmax(0, 1fr); }
  .bt-list.is-4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-ph-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Pylon: drawing above both lists */
  .bt-py { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .bt-py-vis { grid-column: 1 / -1; grid-row: 1; max-inline-size: 480px; inline-size: 100%; justify-self: center; }
  .bt-cb-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  /* Archrib, plantlink, towerlink: drawing above the list */
  .bt-ar, .bt-pl, .bt-tl { grid-template-columns: minmax(0, 1fr); }
  .bt-ar-vis, .bt-pl-vis, .bt-tl-vis { max-inline-size: 560px; inline-size: 100%; justify-self: center; }
  .bt-pl-vis { grid-row: 1; }
  .bt-ph-grid { grid-template-columns: minmax(0, 1fr); }
  .bt-ph-lead img { max-block-size: 460px; }
}
@media (max-width: 719px) {
  .bt-eco-stage { margin-block-start: var(--space-5, 32px); }
  .bt-list.is-4col { grid-template-columns: minmax(0, 1fr); }
  .bt-py { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bt-py-vis { margin-block-end: var(--space-4, 24px); }
  .bt-py-b { border-block-start: 0; }
  .bt-cb-strip { grid-template-columns: minmax(0, 1fr); }
  .bt-node.is-station { flex-direction: row; align-items: center; padding: 12px 10px; }
  .bt-node.is-station .bt-node-go { margin-block-start: 0; margin-inline-start: auto; }
  /* Wide elevations keep their proportions and swipe sideways */
  .bt-sp-vis, .bt-wr-vis, .bt-cb-vis { overflow-x: auto; }
  .bt-sp-vis svg, .bt-wr-vis svg, .bt-cb-vis svg { inline-size: 160%; max-inline-size: none; }
  /* Photo strip: one row that swipes sideways */
  .bt-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; }
  .bt-ph-strip > li { flex: 0 0 62%; scroll-snap-align: start; }
  /* Related pages: one row that swipes sideways */
  .bt-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; }
  .bt-rel-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .bt-node.is-row, .bt-node-ico, .bt-node-go, .bt-rel-img img, .bt-rel-card::after, .bt-ph-strip img,
  :where(.bt-mk) circle, .bt-sp-mod rect, .bt-wr-diag, .bt-cb-st path, .bt-node.is-station,
  .bt-ar-hanger, .bt-pl-link, .bt-tl-floor rect, .bt-py-stay { transition: none; }
}
