/* ==========================================================================
   Repository hub: the explorer (views, cards, project pages)
   Cobblestone brand: cyan #27AAE1, blue #0074B4, yellow #FFC20E, dark #3D3D3D,
   light #F8F9FB, border #E8ECF0, Montserrat. House rule: a rounded element has a
   complete border or none (never one side only).
   ========================================================================== */
:root {
  --hx-radius: 16px;
  --hx-shadow: 0 1px 2px rgba(16, 40, 64, .05), 0 6px 18px -10px rgba(0, 116, 180, .18);
  --hx-shadow-lift: 0 22px 44px -24px rgba(0, 116, 180, .45);
  --hx-ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- Navigation bar ---------- */
.hx-nav { position: sticky; top: var(--header-h, 68px); z-index: 40; background: rgba(248, 249, 251, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cborder); }
.hx-nav-in { max-width: 1400px; margin: 0 auto; padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) { .hx-nav-in { padding: 12px 32px 10px; } }
.hx-nav-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
@media (max-width: 760px) { .hx-nav-row { flex-wrap: wrap; } .hx-search { flex: 1 1 100%; order: -1; } .hx-tabs { flex: 1 1 100%; } .hx-crumbs { flex: 1 1 100%; } }
.hx-tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; margin: -2px; }
.hx-tabs::-webkit-scrollbar { display: none; }
.hx-tab { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 700 13px/1 Montserrat, sans-serif; color: #5A6470; padding: 10px 11px; border-radius: 999px; border: 1.5px solid transparent; background: transparent; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.hx-tab svg { width: 16px; height: 16px; flex: none; }
.hx-tab:hover { color: var(--cblue); background: #fff; border-color: var(--cborder); }
.hx-tab[aria-current="page"] { color: #fff; background: linear-gradient(135deg, #0074B4, #005C90); border-color: #005C90; box-shadow: 0 8px 18px -10px rgba(0, 116, 180, .8); }
.hx-tab:focus-visible, .hx-seg button:focus-visible, .hx-card:focus-visible, .hx-stone:focus-visible { outline: 3px solid rgba(39, 170, 225, .55); outline-offset: 2px; }

.hx-search { position: relative; flex: 0 1 270px; min-width: 150px; }
.hx-search input { width: 100%; font: 600 13.5px Montserrat, sans-serif; color: var(--dark); background: #fff; border: 1.5px solid var(--cborder); border-radius: 999px; padding: 10px 36px 10px 38px; outline: none; transition: border-color .2s, box-shadow .2s; }
.hx-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39, 170, 225, .16); }
.hx-search .hx-search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #939393; pointer-events: none; }
.hx-search .hx-search-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #939393; padding: 6px; border-radius: 999px; cursor: pointer; display: none; }
.hx-search.has-q .hx-search-x { display: block; }
.hx-suggest { position: absolute; top: calc(100% + 6px); right: 0; width: min(460px, 92vw); background: #fff; border: 1px solid var(--cborder); border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(16, 40, 64, .35); padding: 6px; display: none; z-index: 60; }
.hx-suggest.open { display: block; }
.hx-suggest a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--dark); }
.hx-suggest a:hover, .hx-suggest a.active { background: #F4FBFE; }
.hx-suggest .hx-sg-t { font-weight: 700; font-size: 13px; }
.hx-suggest .hx-sg-s { font-size: 12px; color: #6B6B6B; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hx-suggest .hx-sg-all { justify-content: center; font-weight: 700; font-size: 12.5px; color: var(--cblue); border-top: 1px solid var(--cborder); border-radius: 0 0 10px 10px; margin-top: 4px; }

.hx-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #6B6B6B; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; }
.hx-crumbs a { color: var(--cblue); text-decoration: none; }
.hx-crumbs a:hover { text-decoration: underline; }
.hx-crumbs .sep { color: #B5BDC7; }
.hx-crumbs .cur { color: var(--dark); overflow: hidden; text-overflow: ellipsis; }
.hx-seg { display: inline-flex; background: #fff; border: 1px solid var(--cborder); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.hx-seg button { font: 700 12px/1 Montserrat, sans-serif; color: #5A6470; padding: 8px 12px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.hx-seg button[aria-checked="true"] { background: #E8F4FC; color: var(--cblue); }
.hx-seg-label { font-size: 12px; font-weight: 700; color: #6B6B6B; white-space: nowrap; }
@media (max-width: 720px) { .hx-seg-label { display: none; } .hx-seg button { padding: 8px 9px; } }

/* ---------- Page structure ---------- */
.hx-view { max-width: 1400px; margin: 0 auto; padding: 26px 16px 56px; min-height: 60vh; }
@media (min-width: 640px) { .hx-view { padding: 32px 32px 64px; } }
.hx-h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--dark); }
.hx-h3 { font-size: 16px; font-weight: 800; margin: 0; color: var(--dark); }
.hx-lede { font-size: 14.5px; line-height: 1.6; color: #5A6470; max-width: 760px; margin: 6px 0 0; }
.hx-sec { margin-top: 40px; }
.hx-sec:first-child { margin-top: 0; }
.hx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hx-sec-head .hx-sec-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.hx-sec-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-sec-title p { margin: 2px 0 0; font-size: 13px; color: #6B6B6B; line-height: 1.45; }
.hx-more { font-size: 13px; font-weight: 700; color: var(--cblue); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.hx-more:hover { text-decoration: underline; }
.hx-empty { background: #fff; border: 1px solid var(--cborder); border-radius: var(--hx-radius); padding: 36px; text-align: center; color: #5A6470; }
.hx-empty b { display: block; color: var(--dark); font-size: 16px; margin-bottom: 6px; }

/* ---------- Pills and chips ---------- */
.hx-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--cborder); background: #fff; color: #4A5560; white-space: nowrap; line-height: 1.4; text-decoration: none; }
.hx-pill svg { width: 12px; height: 12px; }
a.hx-pill:hover, button.hx-pill:hover { border-color: var(--cyan); color: var(--cblue); }
button.hx-pill { cursor: pointer; font-family: inherit; }
.hx-pill-kind { background: #F0F2F5; border-color: #E2E6EB; color: #3D3D3D; }
.hx-pill-with { background: #E8F4FC; border-color: #B9DDF3; color: #0074B4; }
.hx-pill-site { background: #F0FAF3; border-color: #B7E4C5; color: #1E7D44; }
.hx-pill-demo { background: #FFF8E1; border-color: #FFE08A; color: #8A6500; }
.hx-pill-status { background: #FFF8E1; border-color: #FFE08A; color: #8A6500; }
.hx-pill[data-tip] { cursor: help; }
.hx-purpose { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--hx-c, #0074B4); text-decoration: none; }
.hx-purpose .hx-dot { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--hx-c, #0074B4); color: #fff; flex: none; }
.hx-purpose .hx-dot svg { width: 11px; height: 11px; }
.hx-purpose.on-light { color: var(--hx-ink, #0074B4); }
.hx-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Project card ---------- */
.hx-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hx-grid.big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hx-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cborder); border-radius: var(--hx-radius); overflow: hidden; box-shadow: var(--hx-shadow); text-decoration: none; color: inherit; transition: transform .3s var(--hx-ease), box-shadow .3s ease, border-color .3s ease; cursor: pointer; min-width: 0; }
.hx-card:hover { transform: translateY(-4px); box-shadow: var(--hx-shadow-lift); border-color: rgba(39, 170, 225, .55); }
.hx-cover { position: relative; aspect-ratio: 16 / 10; background: #F4F7FA; overflow: hidden; flex: none; }
.hx-cover > svg, .hx-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hx-cover > img { opacity: 0; transition: opacity .5s ease, transform .6s var(--hx-ease); }
.hx-cover > img.ok { opacity: 1; }
.hx-card:hover .hx-cover > img.ok { transform: scale(1.035); }
.hx-gen .hx-cb { will-change: transform; }
.hx-card:hover .hx-gen .hx-cb, .hx-card:focus-within .hx-gen .hx-cb { animation: hx-cube-wave var(--wdur, 2.6s) ease-in-out var(--wd, 0s) infinite; }
@keyframes hx-cube-wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(var(--amp, -5px)); } }
.hx-cover-link { position: absolute; inset: 0; display: block; }
.hx-cover-tags { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; gap: 6px; justify-content: space-between; pointer-events: none; }
.hx-cover-tags .hx-pill { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.hx-play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: #0074B4; border: 0; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35); cursor: pointer; transition: transform .25s var(--hx-ease), background .2s, color .2s; }
.hx-play:hover { transform: scale(1.08); background: #0074B4; color: #fff; }
.hx-play svg { width: 16px; height: 16px; margin-left: 2px; }
.hx-card-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.hx-card-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; margin: 0; color: var(--dark); overflow-wrap: anywhere; }
.hx-card-repo { font: 600 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #6B6B6B; overflow-wrap: anywhere; }
.hx-card-tag { font-size: 13px; line-height: 1.5; color: #5A6470; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-size: 11.5px; color: #6B6B6B; }
.hx-card-foot .hx-when { margin-left: auto; white-space: nowrap; }
.hx-langbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: #EEF1F6; }
.hx-langbar span { display: block; height: 100%; }
.hx-langkey { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #5A6470; font-weight: 600; }
.hx-langkey i { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 4px; vertical-align: 0; }

/* compact row (snippets, long lists) */
.hx-rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 480px) { .hx-rows { grid-template-columns: 1fr; } }
.hx-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--cborder); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s, transform .25s var(--hx-ease), box-shadow .25s; min-width: 0; }
.hx-row:hover { border-color: rgba(39, 170, 225, .6); transform: translateY(-2px); box-shadow: var(--hx-shadow); }
.hx-row-ico { width: 34px; height: 34px; flex: none; }
.hx-row-main { min-width: 0; flex: 1; }
.hx-row-t { font-size: 13.5px; font-weight: 700; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-row-s { font-size: 12px; color: #6B6B6B; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-row-go { color: #B5BDC7; flex: none; }
.hx-row:hover .hx-row-go { color: var(--cblue); }

/* ---------- Shelves (horizontal) ---------- */
.hx-shelf { position: relative; }
.hx-shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: -4px -2px 0; scrollbar-width: thin; scrollbar-color: #CCD5DF transparent; }
.hx-shelf-track > * { scroll-snap-align: start; }
.hx-shelf.wide .hx-shelf-track { grid-auto-columns: minmax(300px, 340px); }
.hx-shelf-btn { position: absolute; top: 34%; width: 38px; height: 38px; border-radius: 999px; background: #fff; border: 1px solid var(--cborder); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); color: var(--cblue); display: grid; place-items: center; cursor: pointer; z-index: 2; opacity: 0; transition: opacity .2s; }
.hx-shelf:hover .hx-shelf-btn { opacity: 1; }
.hx-shelf-btn.prev { left: -14px; } .hx-shelf-btn.next { right: -14px; }
@media (hover: none) { .hx-shelf-btn { display: none; } }

/* ---------- Discover: doors ---------- */
.hx-doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hx-door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 190px; padding: 18px; border-radius: 20px; overflow: hidden; color: #fff; text-decoration: none; background: var(--hx-bg); border: 1px solid rgba(0, 0, 0, .04); box-shadow: var(--hx-shadow); transition: transform .35s var(--hx-ease), box-shadow .35s; isolation: isolate; }
.hx-door:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -26px rgba(0, 60, 100, .7); }
.hx-door b { font-size: 17px; font-weight: 800; line-height: 1.25; position: relative; z-index: 2; }
.hx-door span { font-size: 12.5px; line-height: 1.45; opacity: .92; margin-top: 4px; position: relative; z-index: 2; }
.hx-door .hx-door-n { position: absolute; right: 14px; top: 12px; font-size: 22px; font-weight: 800; z-index: 3; min-width: 44px; height: 38px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.hx-door.light .hx-door-n { background: rgba(255, 255, 255, .55); border-color: rgba(0, 0, 0, .08); }
.hx-door .hx-door-art { position: absolute; inset: 0 0 34% 0; z-index: 1; }
.hx-door { min-height: 210px; }
.hx-door .hx-door-art svg { width: 100%; height: 100%; }
.hx-door::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 30, 55, .45) 100%); z-index: 1; }
.hx-door.light { color: var(--dark); }
.hx-door.light::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .7) 100%); }
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hx-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hx-dash { to { stroke-dashoffset: -40; } }
.hx-bob { animation: hx-bob 3.2s ease-in-out infinite; transform-box: fill-box; }
.hx-pulse { animation: hx-pulse 2.4s ease-in-out infinite; }
.hx-dashmove { stroke-dasharray: 6 8; animation: hx-dash 1.6s linear infinite; }

/* glossary mini cards */
.hx-term { background: #fff; border: 1px solid var(--cborder); border-radius: 14px; padding: 14px 16px; box-shadow: var(--hx-shadow); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-term b { font-size: 14px; font-weight: 800; color: var(--dark); }
.hx-term p { margin: 0; font-size: 12.8px; line-height: 1.5; color: #5A6470; }
.hx-term .hx-term-k { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #939393; }
.hx-term a { font-size: 12px; font-weight: 700; color: var(--cblue); text-decoration: none; margin-top: auto; }

/* ---------- Map ---------- */
.hx-map { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; }
.hx-district { background: #fff; border: 1px solid var(--cborder); border-radius: 20px; padding: 16px 16px 18px; box-shadow: var(--hx-shadow); position: relative; overflow: hidden; }
.hx-district.span2 { grid-column: span 2; }
@media (max-width: 700px) { .hx-district.span2 { grid-column: auto; } }
.hx-district::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 100% 0%, var(--hx-tint), rgba(255, 255, 255, 0) 60%); pointer-events: none; }
.hx-district-head { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; color: inherit; }
.hx-district-head .hx-sec-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--hx-c); flex: none; }
.hx-district-head b { font-size: 14.5px; font-weight: 800; display: block; line-height: 1.25; }
.hx-district-head small { font-size: 11.5px; color: #6B6B6B; font-weight: 600; }
.hx-district-head:hover b { color: var(--cblue); }
.hx-stones { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.hx-stone { --s: 22px; width: var(--s); height: var(--s); border-radius: 30%; background: var(--hx-sc, #27AAE1); border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), inset 0 2px 0 rgba(255, 255, 255, .28), 0 3px 6px -2px rgba(0, 40, 70, .35); transition: transform .25s var(--hx-ease), opacity .25s, filter .25s; animation: hx-stone-in .5s var(--hx-ease) both; animation-delay: var(--hx-d, 0ms); }
.hx-stone.k3 { --s: 46px; border-radius: 26%; }
.hx-stone.k2 { --s: 32px; }
.hx-stone:hover, .hx-stone:focus-visible { transform: translateY(-4px) scale(1.12); z-index: 3; }
.hx-stone.dim { opacity: .16; filter: grayscale(.6); }
.hx-stone.hit { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 0 0 3px #fff, 0 0 0 5px var(--hx-sc); }
.hx-stone svg { width: 55%; height: 55%; color: #fff; opacity: .95; }
.hx-stone.k3, .hx-stone.k2 { display: grid; place-items: center; }
@keyframes hx-stone-in { from { opacity: 0; transform: translateY(10px) scale(.6); } to { opacity: 1; transform: none; } }
.hx-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12px; color: #5A6470; font-weight: 600; margin: 14px 0 18px; }
.hx-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.hx-legend .hx-stone { animation: none; cursor: default; display: inline-block; flex: none; }
.hx-legend .hx-stone.k3 { --s: 26px; } .hx-legend .hx-stone.k2 { --s: 19px; } .hx-legend .hx-stone:not(.k2):not(.k3) { --s: 13px; }
.hx-legend .hx-stone:hover { transform: none; }

/* floating tooltip */
.hx-tip { position: fixed; z-index: 120; max-width: 300px; background: #26303A; color: #fff; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.hx-tip.on { opacity: 1; transform: none; }
.hx-tip b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.hx-tip em { font-style: normal; color: #9FD8F2; font-weight: 700; font-size: 11px; display: block; margin-bottom: 2px; }

/* ---------- Journey ---------- */
.hx-journey { background: #fff; border: 1px solid var(--cborder); border-radius: 24px; padding: 22px 18px 20px; box-shadow: var(--hx-shadow); overflow: hidden; }
.hx-road { position: relative; height: 150px; margin: 0 -6px; }
.hx-road svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx-stations { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: -6px; }
.hx-station { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hx-station-head { text-align: center; cursor: pointer; border: 0; background: transparent; font-family: inherit; padding: 0; color: inherit; }
.hx-station-head b { display: block; font-size: 14px; font-weight: 800; color: var(--dark); }
.hx-station-head span { display: block; font-size: 12px; color: #6B6B6B; line-height: 1.45; margin-top: 3px; }
.hx-station-list { display: flex; flex-direction: column; gap: 6px; }
.hx-stop { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #F8F9FB; border: 1px solid var(--cborder); text-decoration: none; color: var(--dark); font-size: 12.3px; font-weight: 700; min-width: 0; transition: border-color .2s, background .2s, transform .2s; }
.hx-stop:hover { border-color: var(--hx-c); background: #fff; transform: translateX(2px); }
.hx-stop i { width: 9px; height: 9px; border-radius: 3px; background: var(--hx-c); flex: none; }
.hx-stop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-stop-more { font-size: 12px; font-weight: 700; color: var(--cblue); text-decoration: none; padding: 2px 9px; }
.hx-backstage { margin-top: 22px; border-radius: 18px; background: linear-gradient(135deg, #2F3740, #3D3D3D); color: #fff; padding: 18px; display: grid; gap: 16px; grid-template-columns: minmax(200px, 1fr) 2fr; }
.hx-backstage h3 { margin: 0; font-size: 16px; font-weight: 800; }
.hx-backstage p { margin: 4px 0 0; font-size: 12.5px; color: #C9D1DA; line-height: 1.5; }
.hx-backstage .hx-stop { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #fff; }
.hx-backstage .hx-stop:hover { background: rgba(255, 255, 255, .14); }
.hx-backstage-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hx-backstage-cols h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #9FD8F2; display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) {
  .hx-road { display: none; }
  .hx-stations { grid-template-columns: 1fr; gap: 0; }
  .hx-station { position: relative; padding: 0 0 22px 34px; }
  .hx-station::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 0; width: 3px; border-radius: 3px; background: #E3E8EE; }
  .hx-station::after { content: ''; position: absolute; left: 3px; top: 2px; width: 19px; height: 19px; border-radius: 999px; background: var(--hx-c); box-shadow: 0 0 0 4px #fff; }
  .hx-station-head { text-align: left; }
  .hx-backstage { grid-template-columns: 1fr; }
}

/* ---------- Connections ---------- */
.hx-graph-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
@media (max-width: 1000px) { .hx-graph-wrap { grid-template-columns: 1fr; } }
.hx-graph { position: relative; background: radial-gradient(90% 80% at 50% 45%, #FFFFFF 0%, #F3F7FB 70%, #EAF1F7 100%); border: 1px solid var(--cborder); border-radius: 24px; height: min(72vh, 720px); min-height: 460px; overflow: hidden; touch-action: none; }
.hx-graph svg { width: 100%; height: 100%; display: block; cursor: grab; }
.hx-graph svg.dragging { cursor: grabbing; }
.hx-graph .lk { stroke: #B9C6D3; stroke-width: 1; opacity: .55; transition: opacity .2s, stroke .2s; }
.hx-graph .lk.on { stroke: var(--cblue); opacity: .95; stroke-width: 1.6; }
.hx-graph .lk.off { opacity: .08; }
.hx-graph .nd { cursor: pointer; transition: opacity .2s; }
.hx-graph .nd.off { opacity: .16; }
.hx-graph .nd-p circle { stroke: #fff; stroke-width: 1.5; }
.hx-graph .nd-h circle.core { fill: #fff; stroke: var(--cblue); stroke-width: 2.5; }
.hx-graph .nd-h circle.halo { fill: rgba(39, 170, 225, .12); }
.hx-graph .nd-h text { font: 800 12px Montserrat, sans-serif; fill: #24313D; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.hx-graph .nd-h.sel circle.core { fill: var(--cblue); }
.hx-graph-tools { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.hx-graph-note { position: absolute; left: 14px; bottom: 12px; font-size: 11.5px; color: #6B6B6B; font-weight: 600; background: rgba(255, 255, 255, .85); padding: 4px 8px; border-radius: 8px; }
.hx-panel { background: #fff; border: 1px solid var(--cborder); border-radius: 20px; padding: 18px; box-shadow: var(--hx-shadow); max-height: min(72vh, 720px); overflow: auto; }
.hx-panel h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.hx-panel p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: #5A6470; }

/* ---------- Sites ---------- */
.hx-sites { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hx-site { background: #fff; border: 1px solid var(--cborder); border-radius: 20px; overflow: hidden; box-shadow: var(--hx-shadow); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s var(--hx-ease), box-shadow .3s; }
.hx-site:hover { transform: translateY(-4px); box-shadow: var(--hx-shadow-lift); }
.hx-site-art { height: 120px; background: linear-gradient(180deg, #EAF6FC, #F8FBFD); position: relative; }
.hx-site-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-site-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.hx-site-body b { font-size: 15.5px; font-weight: 800; }
.hx-site-body code { font-size: 11.5px; color: #6B6B6B; }
.hx-site-counts { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- What's new ---------- */
.hx-strip { background: #fff; border: 1px solid var(--cborder); border-radius: 20px; padding: 18px; box-shadow: var(--hx-shadow); margin-bottom: 26px; }
.hx-strip-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 120px; }
.hx-strip-bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; cursor: default; }
.hx-strip-fill { display: flex; flex-direction: column-reverse; gap: 1px; border-radius: 5px; overflow: hidden; min-height: 0; transform-origin: bottom; animation: hx-grow .7s var(--hx-ease) both; animation-delay: var(--hx-d, 0ms); }
.hx-strip-fill i { display: block; min-height: 2px; }
.hx-strip-bar:hover .hx-strip-fill { filter: brightness(1.1); }
.hx-strip-n { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; color: #6B6B6B; top: -14px; }
.hx-strip-bars { margin-top: 16px; }
@keyframes hx-grow { from { transform: scaleY(0); } to { transform: none; } }
.hx-strip-axis { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; font-size: 10.5px; color: #939393; font-weight: 700; margin-top: 6px; }
.hx-strip-axis span { text-align: center; white-space: nowrap; overflow: hidden; }
.hx-feed-group { margin-top: 26px; }
.hx-feed-group h3 { font-size: 13px; font-weight: 800; color: #6B6B6B; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }

/* ---------- All projects ---------- */
.hx-all { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .hx-all { grid-template-columns: 1fr; } }
.hx-filters { position: sticky; top: calc(var(--header-h, 68px) + var(--hx-nav-h, 100px) + 12px); background: #fff; border: 1px solid var(--cborder); border-radius: 18px; padding: 14px; max-height: calc(100vh - var(--header-h, 68px) - var(--hx-nav-h, 100px) - 30px); overflow: auto; }
@media (max-width: 900px) { .hx-filters { position: static; max-height: none; } .hx-filters:not(.open) .hx-fgroup { display: none; } }
.hx-filters-toggle { display: none; }
@media (max-width: 900px) { .hx-filters-toggle { display: inline-flex; } }
.hx-fgroup { margin-top: 14px; }
.hx-fgroup:first-of-type { margin-top: 6px; }
.hx-fgroup h4 { margin: 0 0 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #939393; }
.hx-fopt { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: transparent; font: 600 12.5px Montserrat, sans-serif; color: #3D3D3D; cursor: pointer; text-align: left; }
.hx-fopt:hover { background: #F4FBFE; }
.hx-fopt[aria-pressed="true"] { background: #E8F4FC; border-color: #B9DDF3; color: #0074B4; }
.hx-fopt i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hx-fopt .n { margin-left: auto; font-size: 11px; color: #939393; font-weight: 700; }
.hx-fopt:disabled { opacity: .4; cursor: default; }
.hx-results-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hx-results-head .hx-count { font-weight: 800; font-size: 15px; }
.hx-results-head select { font: 600 12.5px Montserrat, sans-serif; border: 1px solid var(--cborder); border-radius: 999px; padding: 7px 10px; background: #fff; color: var(--dark); }
.hx-active-filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Banners (purpose / platform / site pages) ---------- */
.hx-banner { position: relative; border-radius: 24px; overflow: hidden; padding: 26px 26px 24px; color: #fff; background: var(--hx-bg, linear-gradient(135deg, #0074B4, #27AAE1)); margin-bottom: 26px; isolation: isolate; }
.hx-banner.light { color: var(--dark); }
.hx-banner-art { position: absolute; right: 0; top: 0; bottom: 0; width: min(46%, 520px); z-index: -1; opacity: .95; }
.hx-banner-art svg { width: 100%; height: 100%; }
.hx-banner .hx-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; display: flex; align-items: center; gap: 8px; }
.hx-banner h1 { margin: 8px 0 6px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; max-width: 720px; }
.hx-banner p { margin: 0; font-size: 14.5px; line-height: 1.6; max-width: 620px; opacity: .95; }
.hx-banner .hx-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.hx-banner .hx-stat b { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.hx-banner .hx-stat span { font-size: 11.5px; font-weight: 700; opacity: .85; }
.hx-banner .hx-chiprow { margin-top: 14px; }
.hx-banner .hx-pill { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hx-banner a.hx-pill:hover { background: rgba(255, 255, 255, .28); border-color: #fff; color: #fff; }
.hx-banner.light .hx-pill { background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .12); color: var(--dark); }
@media (max-width: 700px) { .hx-banner-art { opacity: .28; width: 100%; } }

/* ---------- Project page ---------- */
.hx-proj-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 22px; }
@media (max-width: 900px) { .hx-proj-hero { grid-template-columns: 1fr; } .hx-proj-media { order: -1; } }
.hx-proj-hero h1 { font-size: clamp(26px, 3.3vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 10px; color: var(--dark); overflow-wrap: anywhere; }
.hx-proj-tag { font-size: 16.5px; line-height: 1.55; color: #46515C; margin: 0 0 14px; max-width: 640px; }
.hx-proj-repo { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #6B6B6B; }
.hx-proj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hx-btn { display: inline-flex; align-items: center; gap: 8px; font: 700 13.5px Montserrat, sans-serif; padding: 11px 18px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--cborder); background: #fff; color: var(--cblue); transition: transform .2s, box-shadow .25s, border-color .2s, background .2s, color .2s; }
.hx-btn:hover { transform: translateY(-2px); border-color: var(--cyan); }
.hx-btn.primary { background: linear-gradient(135deg, #0074B4, #005C90); color: #fff; border-color: #005C90; box-shadow: 0 10px 22px -12px rgba(0, 116, 180, .9); }
.hx-btn.primary:hover { box-shadow: 0 16px 28px -12px rgba(0, 116, 180, .95); }
.hx-btn svg { width: 15px; height: 15px; }
.hx-btn.sm { padding: 8px 13px; font-size: 12.5px; }
.hx-proj-media { display: flex; flex-direction: column; gap: 10px; }
.hx-proj-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #F4F7FA; border: 1px solid var(--cborder); box-shadow: var(--hx-shadow-lift); }
.hx-proj-cover > svg, .hx-proj-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
/* Project page hero slideshow: picture (when there is one), the project in the City, the building blocks on a loop */
.hx-proj-cover { isolation: isolate; }
.hx-slides { position: absolute; inset: 0; }
.hx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--hx-ease), visibility 0s linear .6s; }
.hx-slide.on { opacity: 1; visibility: visible; transition: opacity .6s var(--hx-ease), visibility 0s; }
.hx-slide > svg, .hx-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-slide-city { position: absolute; inset: 0; background: linear-gradient(180deg, #DDEEF7, #EEF5FA); z-index: 0; }
.hx-slide-wait { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #5A6470; }
.hx-slide-nogl .hx-slide-city::after { content: 'This browser cannot show the 3D City.'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #5A6470; }
.hx-slide-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid var(--cborder); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #3D3D3D; pointer-events: none; }
.hx-slide-open { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--cborder); font-size: 12px; font-weight: 700; color: #0074B4; text-decoration: none; box-shadow: 0 4px 12px -6px rgba(0,0,0,.3); }
.hx-slide-open:hover { background: #0074B4; border-color: #0074B4; color: #fff; }
.hx-slide-nav { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--cborder); box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); }
.hx-slide-btn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--cborder); background: #fff; color: #3D3D3D; cursor: pointer; }
.hx-slide-btn:hover, .hx-slide-btn:focus-visible { border-color: #0074B4; color: #0074B4; outline: none; }
.hx-slide-btn .i-play { display: none; }
.hx-slides.stopped .hx-slide-btn .i-play { display: inline; }
.hx-slides.stopped .hx-slide-btn .i-pause { display: none; }
.hx-slide-dots { display: flex; gap: 6px; padding: 0 2px; }
.hx-slide-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 1px solid #9AA5B1; background: #fff; cursor: pointer; transition: background .2s, border-color .2s, width .25s var(--hx-ease); }
.hx-slide-dots button[aria-current="true"] { width: 22px; background: #0074B4; border-color: #0074B4; }
.hx-slide-dots button:focus-visible { outline: 2px solid #0074B4; outline-offset: 2px; }
/* the building blocks wave on a loop here, each on its own rhythm (on cards only while hovered) */
.hx-slide.hx-loop .hx-gen .hx-cb { animation: hx-cube-wave var(--wdur, 2.6s) ease-in-out var(--wd, 0s) infinite; }
.hx-thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--cborder); background: #F4F7FA; padding: 0; cursor: zoom-in; position: relative; }
.hx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 12.5px; color: #5A6470; }
.hx-facts b { color: var(--dark); font-weight: 700; }

.hx-ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cborder); margin: 8px 0 22px; overflow-x: auto; scrollbar-width: none; }
.hx-ptab { font: 700 13.5px Montserrat, sans-serif; color: #6B6B6B; background: transparent; border: 0; padding: 12px 14px 13px; cursor: pointer; white-space: nowrap; position: relative; }
.hx-ptab::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.hx-ptab[aria-selected="true"] { color: var(--cblue); }
.hx-ptab[aria-selected="true"]::after { background: var(--cyan); }
.hx-ptab small { display: block; font-size: 10.5px; font-weight: 600; color: #939393; margin-top: 2px; }

.hx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
@media (max-width: 1000px) { .hx-cols { grid-template-columns: 1fr; } }
.hx-box { background: #fff; border: 1px solid var(--cborder); border-radius: 18px; padding: 18px; box-shadow: var(--hx-shadow); }
.hx-box + .hx-box { margin-top: 16px; }
.hx-box h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.hx-features { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.hx-feature { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: #F8F9FB; border: 1px solid var(--cborder); font-size: 13px; line-height: 1.5; color: #3D3D3D; }
.hx-feature i { width: 24px; height: 24px; border-radius: 8px; background: var(--hx-c, #27AAE1); color: #fff; display: grid; place-items: center; flex: none; font-style: normal; font-size: 12px; font-weight: 800; }
.hx-explain { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: #F4FBFE; border: 1px solid #B9DDF3; font-size: 13px; line-height: 1.55; color: #24465E; }
.hx-explain svg { flex: none; width: 34px; height: 34px; }
.hx-explain b { display: block; color: #0074B4; margin-bottom: 2px; }
.hx-with { display: grid; gap: 8px; }
.hx-with a { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--cborder); text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
.hx-with a:hover { border-color: var(--cyan); background: #F4FBFE; }
.hx-with b { font-size: 13px; font-weight: 800; color: var(--dark); }
.hx-with span { display: block; font-size: 12px; color: #6B6B6B; line-height: 1.45; margin-top: 2px; }
.hx-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.hx-kv dt { color: #6B6B6B; font-weight: 600; }
.hx-kv dd { margin: 0; font-weight: 700; color: var(--dark); overflow-wrap: anywhere; }
.hx-filelist { display: grid; gap: 4px; }
.hx-file { display: flex; align-items: center; gap: 8px; font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: #3D3D3D; padding: 6px 8px; border-radius: 8px; }
.hx-file:nth-child(odd) { background: #F8F9FB; }
.hx-file small { margin-left: auto; color: #939393; font-family: Montserrat, sans-serif; font-weight: 600; }
.hx-clone { display: flex; gap: 8px; align-items: center; background: #26303A; color: #E6EDF3; border-radius: 12px; padding: 10px 10px 10px 14px; font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; }
.hx-clone code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-clone button { font: 700 12px Montserrat, sans-serif; background: #fff; color: #0074B4; border: 0; border-radius: 999px; padding: 7px 12px; cursor: pointer; }

/* guide viewer */
.hx-guide { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.hx-shot { position: relative; border-radius: 14px; background: #F4F7FA; }
.hx-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--cborder); }
.hx-mark.at-top .hx-mark-n { top: 50%; left: auto; right: calc(100% + 6px); transform: translateY(-50%); }
.hx-mark.at-left .hx-mark-n { left: -4px; }
.hx-mark.at-right .hx-mark-l { left: auto; right: 0; }
.hx-mark.at-bottom .hx-mark-l { top: auto; bottom: calc(100% + 6px); }
.hx-guide { grid-template-columns: minmax(0, 1fr) 300px; }
/* A fixed stage, like a gallery (Bryan, 2026-11-26). Every step's picture sits in a stage of one size: 16:10
   across the picture column, but never taller than 90% of the window below the sticky header and explorer bar
   (less 48 px for the Back / Next bar). A picture fits whole inside it, centred, and is never enlarged past its
   own size, so a small picture does not shrink the viewer and Back / Next never move. The picture's box
   (.hx-shot) takes the picture's own shape (--hx-ar and --hx-nw, set by guideViewer when it loads, remembered
   per picture; 16:10 until then), so the marks, which are percentages of it, stay on target. The steps column
   is never taller than the stage and bar, and scrolls. Sizes come from the viewer's width (container units). */
.hx-guide {
  --hx-guide-h: calc((100vh - var(--header-h, 68px) - var(--hx-nav-h, 100px)) * .9);
  --hx-col: calc(100cqw - 316px);   /* the picture column: the viewer less the 300 px steps column and the 16 px gap */
  --hx-stage-h: min(calc(var(--hx-col) / 1.6), calc(var(--hx-guide-h) - 48px));
  container-type: inline-size; align-items: start;
}
.hx-guide-stage { height: var(--hx-stage-h); display: grid; place-items: center; background: #F4F7FA; border: 1px solid var(--cborder); border-radius: 14px; }
.hx-guide-stage .hx-shot { width: min(100%, calc((var(--hx-stage-h) - 2px) * var(--hx-ar, 1.6)), var(--hx-nw, 100%)); aspect-ratio: var(--hx-ar, 1.6); border-radius: 13px; }
.hx-guide-stage .hx-shot img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 13px; }
/* while a new picture arrives: the stage keeps its size and shows a loader (after a moment, so a quick load
   does not flicker), and the picture and its marks stay hidden, so a broken image never shows */
.hx-guide-stage { position: relative; }
.hx-guide-stage.is-loading .hx-shot { visibility: hidden; }
.hx-guide-stage.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; border: 3px solid rgba(0, 116, 180, .18); border-top-color: #0074B4; animation: hx-spin .9s linear infinite, hx-guide-wait .2s ease .25s both; }
@keyframes hx-guide-wait { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-guide-stage.is-loading::after { animation-duration: 3s, .2s; } }
.hx-guide-miss { margin: 0; padding: 16px; font-size: 13px; font-weight: 600; color: #6B6B6B; text-align: center; }
.hx-guide-bar { height: 38px; }   /* with its 10 px margin, the 48 px the stage leaves for it */
.hx-guide-count { min-width: 7.6em; text-align: center; font-variant-numeric: tabular-nums; }   /* Next does not shift as the number grows */
.hx-guide .hx-steps { max-height: calc(var(--hx-stage-h) + 48px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
/* one column on narrow screens, the steps under the stage (this must come after the two-column rule above,
   which used to override it and squeeze the picture to nothing on a phone) */
@media (max-width: 800px) {
  .hx-guide { grid-template-columns: minmax(0, 1fr); --hx-col: 100cqw; }
  .hx-guide .hx-steps { max-height: max(160px, calc(var(--hx-guide-h) - var(--hx-stage-h) - 64px)); }
}
.hx-mark { position: absolute; border: 3px solid var(--hx-mc, #0074B4); border-radius: 7px; box-shadow: 0 0 0 2px #fff; transition: opacity .25s, transform .25s; }
.hx-mark.dim { opacity: .25; }
.hx-mark.focus-only { border-style: dashed; }
.hx-mark-n { position: absolute; left: -15px; top: -15px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--hx-mc, #0074B4); color: #fff; font: 800 13px/26px Montserrat, sans-serif; text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .35); }
.hx-mark-l { position: absolute; left: 0; top: calc(100% + 6px); background: var(--hx-mc, #0074B4); color: #fff; font: 700 11.5px Montserrat, sans-serif; padding: 3px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 0 0 2px #fff; }
.hx-steps { display: flex; flex-direction: column; gap: 8px; }
.hx-step { display: flex; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--cborder); background: #fff; font: 600 13px/1.5 Montserrat, sans-serif; color: #3D3D3D; cursor: pointer; }
.hx-step > b { width: 24px; height: 24px; border-radius: 999px; background: #E8F4FC; color: #0074B4; display: grid; place-items: center; flex: none; font-size: 12px; }
.hx-step[aria-current="step"] { border-color: var(--cyan); background: #F4FBFE; }
.hx-step[aria-current="step"] > b { background: #0074B4; color: #fff; }
.hx-step span b, .hx-feature span b { color: #0074B4; font-weight: 800; }

/* lightbox */
.hx-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 20, 28, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 12px; animation: hx-fade .2s ease; }
.hx-lightbox img { max-width: min(1400px, 94vw); max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.hx-lightbox p { color: #fff; font-size: 14px; margin: 0; max-width: 760px; text-align: center; line-height: 1.5; }
.hx-lightbox .hx-lb-bar { display: flex; gap: 10px; }
.hx-lightbox button { font: 700 13px Montserrat, sans-serif; background: #fff; color: #0074B4; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }

/* skeleton */
.hx-skel { border-radius: var(--hx-radius); background: linear-gradient(90deg, #EEF1F6 25%, #F6F8FB 37%, #EEF1F6 63%); background-size: 400% 100%; animation: hx-sk 1.4s ease infinite; }
@keyframes hx-sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* hero cards become doors into the views */
.cin-card.hx-link { cursor: pointer; }
.cin-card.hx-link:focus-visible { outline: 3px solid rgba(39, 170, 225, .6); outline-offset: 3px; }
.cin-card .hx-go { position: absolute; right: 14px; top: 12px; font-size: 11px; font-weight: 800; color: var(--cblue); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; z-index: 3; }
.cin-card.hx-link:hover .hx-go, .cin-card.hx-link:focus-visible .hx-go { opacity: 1; transform: none; }
.cin-units .hx-kind-key { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #4A5560; margin-right: 8px; white-space: nowrap; }
.cin-units .hx-kind-key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .hx-card, .hx-row, .hx-door, .hx-site, .hx-stone, .hx-strip-bar i { transition: none !important; animation: none !important; }
  .hx-bob, .hx-pulse, .hx-dashmove, .hx-gen .hx-cb { animation: none !important; }
  .hx-card:hover, .hx-door:hover, .hx-site:hover { transform: none; }
}

/* ===================== The City (assets/hub-city.js) ===================== */
.hx-city-sec .hx-lede { margin-bottom: 14px; }
.hx-city { position: relative; height: clamp(440px, calc(100vh - var(--header-h, 68px) - var(--hx-nav-h, 100px) - 28px), 860px); border-radius: 20px; overflow: hidden; border: 1px solid var(--cborder); background: linear-gradient(180deg, #9ECBEA 0%, #CFE3F2 50%, #E7EFF6 100%); isolation: isolate; }
.hx-city-slot, .hx-city-host { position: absolute; inset: 0; }
.hx-city-slot { z-index: 0; isolation: isolate; }   /* CSS2DRenderer gives each label its own z-index; keep them all under the panels */
.hx-city-gl { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.hx-city-gl:active { cursor: grabbing; }
.hx-city-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hx-city.walking .hx-city-top, .hx-city.walking .hx-city-panel, .hx-city.walking .hx-city-key, .hx-city.walking .hx-city-ctrl, .hx-city.walking .hx-city-help { display: none; }

/* labels that float over the city */
.hx-cl { pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 700 11px/1.2 Montserrat, sans-serif; color: #3D3D3D; background: rgba(255, 255, 255, .94); border: 1px solid #DCE3EA; border-radius: 999px; padding: 4px 10px; max-width: 220px; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(20, 40, 60, .45); text-decoration: none; transition: opacity .3s ease, border-color .15s ease, color .15s ease; }
.hx-cl:hover, .hx-cl:focus-visible { border-color: var(--cyan); color: var(--cblue); outline: none; }
.hx-cl-name { overflow: hidden; text-overflow: ellipsis; }
.hx-cl-n { font-size: 10px; color: #6B6B6B; padding-left: 7px; border-left: 1px solid #DCE3EA; font-variant-numeric: tabular-nums; }
.hx-cl-hood { font-size: 12px; padding: 5px 12px 5px 5px; gap: 8px; max-width: 290px; }
.hx-cl-ico { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: #fff; flex: none; }
.hx-cl-ico svg { width: 13px; height: 13px; }
.hx-cl-b { font-size: 10.5px; font-weight: 600; padding: 3px 9px; background: rgba(255, 255, 255, .9); }
.hx-cl-play { width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--cblue); flex: none; }
.hx-cl-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.hx-cl-dir.is-leaf { border-style: dashed; }
.hx-cl-hubl { font-size: 11.5px; padding: 5px 11px; }

/* overlays */
.hx-city-top { position: absolute; left: 14px; top: 14px; z-index: 3; max-width: min(520px, calc(100% - 28px)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.hx-city-top > * { pointer-events: auto; }
.hx-city-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); border: 1px solid var(--cborder); border-radius: 999px; padding: 6px 14px; font-size: 13px; box-shadow: 0 10px 24px -16px rgba(20, 40, 60, .5); }
.hx-city-crumbs b { color: #3D3D3D; }
.hx-city-crumbs button { font: 700 13px Montserrat, sans-serif; color: var(--cblue); background: none; border: 0; padding: 0; cursor: pointer; }
.hx-city-crumbs button:hover { text-decoration: underline; }
.hx-city-crumbs .sep { color: #9AA5B1; }
.hx-city-sum { font-size: 12px; font-weight: 600; color: #3D4F5E; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; padding: 3px 11px; }
.hx-city-up { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px Montserrat, sans-serif; color: #fff; background: #0074B4; border: 1px solid #005C90; border-radius: 999px; padding: 7px 13px 7px 9px; cursor: pointer; }
.hx-city-up svg { width: 15px; height: 15px; }

.hx-city-panel { position: absolute; right: 14px; top: 14px; z-index: 4; width: 340px; max-width: calc(100% - 28px); max-height: calc(100% - 38px - var(--hx-ctrl-h, 280px)); overflow: auto; background: #fff; border: 1px solid var(--cborder); border-radius: 18px; padding: 18px; box-shadow: 0 24px 50px -24px rgba(20, 40, 60, .55); animation: hx-cp-in .22s ease; }
@keyframes hx-cp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hx-cp-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--cborder); background: #fff; color: #3D3D3D; display: grid; place-items: center; cursor: pointer; }
.hx-cp-x:hover { border-color: var(--cyan); color: var(--cblue); }
.hx-cp-x svg { width: 16px; height: 16px; }
.hx-cp-t { font-size: 18px; font-weight: 800; color: #3D3D3D; margin: 10px 36px 4px 0; line-height: 1.25; }
.hx-cp-file { word-break: break-all; }
.hx-cp-s { font-size: 13.5px; line-height: 1.55; color: #4A5560; margin: 6px 0 0; }
.hx-cp-s code { font-size: 12px; background: #F0F2F5; border: 1px solid #E3E7EC; border-radius: 6px; padding: 1px 6px; word-break: break-all; }
.hx-cp-k { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6B6B6B; margin-right: 36px; }
.hx-cp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hx-cp-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hx-cp-note { font-size: 12px; color: #6B6B6B; margin: 10px 0 0; line-height: 1.5; }
.hx-cp-list { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; max-height: 300px; overflow: auto; }
.hx-cp-row { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; background: #fff; border: 1px solid var(--cborder); border-radius: 12px; padding: 7px 9px; cursor: pointer; font: inherit; }
.hx-cp-row:hover { border-color: var(--cyan); }
.hx-cp-row b { display: block; font-size: 13px; color: #3D3D3D; }
.hx-cp-row small { display: block; font-size: 11.5px; color: #6B6B6B; }
.hx-cp-row > svg, .hx-cp-row > span:first-child { flex: none; }

.hx-city-key { position: absolute; left: 14px; bottom: 14px; z-index: 3; max-width: calc(100% - 200px); }
.hx-city-key details { max-width: 520px; background: rgba(255, 255, 255, .94); border: 1px solid var(--cborder); border-radius: 16px; padding: 8px 12px; box-shadow: 0 10px 24px -16px rgba(20, 40, 60, .5); }
.hx-city-key summary { font-size: 12px; font-weight: 800; color: #3D3D3D; cursor: pointer; letter-spacing: .02em; }
.hx-city-key ul { list-style: none; margin: 8px 0 2px; padding: 0 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 5px 16px; max-height: min(44vh, 400px); overflow: auto; }
.hx-city-key li.hx-city-keyh { grid-column: 1 / -1; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6B6B6B; margin-top: 4px; }
.hx-city-key li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: #4A5560; line-height: 1.3; }
.hx-city-key li b { color: #3D3D3D; }
.hx-city-key li svg { width: 18px; height: 18px; flex: none; }
.hx-city-key li.hx-city-stages, .hx-city-key li.hx-city-keynote { grid-column: 1 / -1; }
.hx-city-beam { width: 5px; height: 18px; border-radius: 3px; background: linear-gradient(180deg, rgba(39, 170, 225, .2), #27AAE1); flex: none; margin: 0 6px 0 7px; }
.hx-city-sw { display: inline-flex; gap: 3px; flex: none; }
.hx-city-sw i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; cursor: help; }

.hx-city-ctrl { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hx-city-zoom { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cborder); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px -16px rgba(20, 40, 60, .5); }
.hx-city-zoom button { width: 38px; height: 36px; border: 0; background: #fff; font: 700 19px Montserrat, sans-serif; color: #3D3D3D; cursor: pointer; }
.hx-city-zoom button + button { border-top: 1px solid var(--cborder); }
.hx-city-zoom button:hover { color: var(--cblue); background: #F4FBFE; }
.hx-city-btn { display: inline-flex; align-items: center; gap: 7px; font: 700 12.5px Montserrat, sans-serif; color: #3D3D3D; background: #fff; border: 1px solid var(--cborder); border-radius: 999px; padding: 8px 13px; cursor: pointer; box-shadow: 0 10px 24px -16px rgba(20, 40, 60, .5); }
.hx-city-btn svg { width: 15px; height: 15px; color: var(--cblue); }
.hx-city-btn:hover { border-color: var(--cyan); color: var(--cblue); }
.hx-city-btn[aria-pressed="true"] { background: #0074B4; border-color: #005C90; color: #fff; }
.hx-city-btn[aria-pressed="true"] svg { color: #fff; }
.hx-city-btn[hidden] { display: none; }
.hx-city.has-panel .hx-city-help { display: none; }
/* The controls never move when a panel opens: the panel ends above them instead
   (--hx-ctrl-h is the controls' height, kept up to date by cityPanel in hub-views.js).
   On a short stage that would leave the panel too little room, so the controls wrap
   into rows no wider than the panel, still in their corner and still labelled. */
.hx-city { container: hxcity / size; }
@container hxcity (max-height: 640px) {
  .hx-city.has-panel .hx-city-ctrl { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; width: 340px; max-width: calc(100% - 28px); }
  .hx-city.has-panel .hx-city-zoom { flex-direction: row; }
  .hx-city.has-panel .hx-city-zoom button + button { border-top: 0; border-left: 1px solid var(--cborder); }
  .hx-city.has-panel .hx-city-tours { bottom: calc(var(--hx-ctrl-h, 120px) + 22px); max-height: calc(100% - 36px - var(--hx-ctrl-h, 120px)); }
}

.hx-city-help { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; margin: 0; font-size: 11.5px; font-weight: 600; color: #3D4F5E; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px 12px; white-space: nowrap; pointer-events: none; }
.hx-city-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; background: rgba(38, 48, 58, .88); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 12px; pointer-events: none; opacity: 0; transition: opacity .25s ease; text-align: center; max-width: 80%; }
.hx-city-hint.on { opacity: 1; }
.hx-city-walk { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; background: rgba(38, 48, 58, .9); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 14px; max-width: calc(100% - 28px); text-align: center; }
.hx-city-walk b { color: #9FD8F2; margin-right: 4px; }
.hx-city-walk[hidden] { display: none; }

.hx-city-boot { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(231, 239, 246, .86); color: #4A5560; font-size: 13px; padding: 20px; }
.hx-city-boot b { font-size: 16px; color: #3D3D3D; }
.hx-city-boot[hidden] { display: none; }
.hx-city-spin { width: 34px; height: 34px; border-radius: 999px; border: 3px solid rgba(0, 116, 180, .18); border-top-color: #0074B4; animation: hx-spin .9s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-city-alt { font-size: 13px; color: #6B6B6B; margin: 10px 2px 0; }
.hx-city-tip { z-index: 125; }
.hx-city-tip span { display: block; opacity: .88; }

@media (max-width: 760px) {
  .hx-city { height: clamp(420px, 72vh, 640px); border-radius: 16px; }
  .hx-city-panel { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; max-height: 58%; }
  .hx-city.has-panel .hx-city-ctrl, .hx-city.has-panel .hx-city-key { display: none; }
  .hx-city-key { max-width: calc(100% - 150px); left: 10px; bottom: 10px; }
  .hx-city-key ul { grid-template-columns: 1fr; }
  .hx-city-ctrl { right: 10px; bottom: 10px; }
  .hx-city-btn { padding: 8px 10px; font-size: 0; gap: 0; }
  .hx-city-btn svg { width: 17px; height: 17px; }
  .hx-city-help { display: none; }
  .hx-city-top { left: 10px; top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-city-panel { animation: none; }
  .hx-city-spin { animation-duration: 3s; }
}

/* the hologram that rises out of a demo building */
.hx-holo { pointer-events: none; }
.hx-holo-in { position: relative; transform: translateY(-50%); width: 300px; padding: 8px 8px 26px; border-radius: 12px; border: 1px solid rgba(39, 170, 225, .85); background: rgba(8, 40, 62, .38); box-shadow: 0 0 26px rgba(39, 170, 225, .55), inset 0 0 18px rgba(39, 170, 225, .35); animation: hx-holo-flicker 5s infinite; }
.hx-holo-screen { width: 284px; height: 168px; border-radius: 6px; overflow: hidden; background: rgba(10, 60, 90, .4); display: grid; place-items: center; }
.hx-holo-screen img { width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: saturate(.85) brightness(1.05); }
.hx-holo-frame { width: 284px; height: 168px; overflow: hidden; }
.hx-holo-frame iframe { width: 1280px; height: 757px; border: 0; transform: scale(.2219); transform-origin: 0 0; background: #fff; pointer-events: none; opacity: .92; }
.hx-holo-scan { position: absolute; left: 8px; right: 8px; top: 8px; height: 168px; border-radius: 6px; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(39, 170, 225, .18) 0 2px, transparent 2px 4px); animation: hx-holo-scan 2.6s linear infinite; }
.hx-holo-cap { position: absolute; left: 10px; right: 10px; bottom: 5px; font: 700 11.5px Montserrat, sans-serif; color: #D8F3FF; text-shadow: 0 0 6px rgba(39, 170, 225, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-holo-wait { font: 600 12px Montserrat, sans-serif; color: #D8F3FF; padding: 12px; text-align: center; }
@keyframes hx-holo-flicker { 0%, 46%, 49%, 100% { opacity: 1; } 47% { opacity: .78; } 48% { opacity: .95; } 80% { opacity: .93; } }
@keyframes hx-holo-scan { from { background-position: 0 0; } to { background-position: 0 40px; } }
.hx-cl-site { font-size: 10.5px; padding: 3px 9px; }
.hx-cl-b.is-ruin { color: #6B6B6B; border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .hx-holo-in, .hx-holo-scan { animation: none; } }

/* the city's own search, its tours and the tour caption */
.hx-city-find { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 5; width: min(360px, calc(100% - 560px)); min-width: 230px; }
.hx-city-find > svg { position: absolute; left: 13px; top: 11px; width: 16px; height: 16px; color: #6B6B6B; pointer-events: none; }
.hx-city-find input { width: 100%; font: 600 13px Montserrat, sans-serif; color: #3D3D3D; background: rgba(255, 255, 255, .96); border: 1px solid var(--cborder); border-radius: 999px; padding: 9px 14px 9px 36px; box-shadow: 0 10px 24px -16px rgba(20, 40, 60, .5); outline: none; }
.hx-city-find input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(39, 170, 225, .2); }
.hx-city-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; overflow: auto; background: #fff; border: 1px solid var(--cborder); border-radius: 16px; padding: 6px; box-shadow: 0 24px 50px -24px rgba(20, 40, 60, .55); }
.hx-city-res[hidden] { display: none; }
.hx-city-res-h { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6B6B6B; padding: 6px 8px 3px; }
.hx-city-res-none { font-size: 12.5px; color: #6B6B6B; padding: 10px; }
.hx-city-res button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: #fff; border: 1px solid transparent; border-radius: 11px; padding: 6px 8px; cursor: pointer; font: inherit; }
.hx-city-res button:hover, .hx-city-res button:focus { border-color: var(--cyan); outline: none; background: #F4FBFE; }
.hx-city-res b { display: block; font-size: 12.5px; color: #3D3D3D; }
.hx-city-res small { display: block; font-size: 11px; color: #6B6B6B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.hx-city-res-k { flex: none; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #0B5F86; background: #E3F4FC; border: 1px solid #B9DDF3; border-radius: 999px; padding: 2px 7px; max-width: 124px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-city-tourbtn { background: linear-gradient(135deg, #0074B4, #27AAE1); color: #fff; border-color: #0074B4; }
.hx-city-tourbtn svg { color: #fff; }
.hx-city-tourbtn:hover { color: #fff; border-color: #005C90; }
.hx-city-tours { position: absolute; right: 14px; bottom: 210px; z-index: 6; width: 300px; max-height: calc(100% - 240px); overflow: auto; background: #fff; border: 1px solid var(--cborder); border-radius: 18px; padding: 8px; box-shadow: 0 24px 50px -24px rgba(20, 40, 60, .55); }
.hx-city-tours[hidden] { display: none; }
.hx-city-tours-h { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6B6B6B; padding: 6px 8px; }
.hx-city-tours button { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--cborder); border-radius: 12px; padding: 8px 10px; margin-top: 5px; cursor: pointer; font: inherit; }
.hx-city-tours button:hover:not([disabled]), .hx-city-tours button:focus { border-color: var(--cyan); background: #F4FBFE; outline: none; }
.hx-city-tours button[disabled] { opacity: .5; cursor: default; }
.hx-city-tours b { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #3D3D3D; }
.hx-city-tours b span { font-size: 11px; color: #0B5F86; background: #E3F4FC; border: 1px solid #B9DDF3; border-radius: 999px; padding: 0 7px; }
.hx-city-tours small { display: block; font-size: 11.5px; color: #6B6B6B; margin-top: 2px; }
.hx-city-tourbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5; width: min(560px, calc(100% - 28px)); background: rgba(255, 255, 255, .97); border: 1px solid var(--cborder); border-radius: 18px; padding: 12px 16px; box-shadow: 0 24px 50px -24px rgba(20, 40, 60, .55); }
.hx-city-tourbar[hidden] { display: none; }
.hx-tb-k { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #0B5F86; }
.hx-city-tourbar > b { font-size: 15px; color: #3D3D3D; margin-right: 8px; }
.hx-tb-kind { font-size: 11px; font-weight: 700; color: #6B6B6B; }
.hx-city-tourbar p { font-size: 12.5px; color: #4A5560; margin: 3px 0 8px; line-height: 1.45; }
.hx-tb-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hx-tb-btns button, .hx-tb-btns a { display: inline-flex; align-items: center; gap: 4px; font: 700 12px Montserrat, sans-serif; color: #3D3D3D; background: #fff; border: 1px solid var(--cborder); border-radius: 999px; padding: 6px 12px; cursor: pointer; text-decoration: none; }
.hx-tb-btns button:hover, .hx-tb-btns a:hover { border-color: var(--cyan); color: var(--cblue); }
.hx-tb-btns svg { width: 14px; height: 14px; }
.hx-tb-btns button[data-hx-city="tstop"] { margin-left: auto; }
.hx-city.touring .hx-city-help, .hx-city.touring .hx-city-key { display: none; }
@media (max-width: 760px) {
  .hx-city-find { top: 96px; left: 10px; right: 10px; transform: none; width: auto; min-width: 0; }
  .hx-city-tours { right: 10px; left: 10px; width: auto; bottom: 64px; }
  .hx-city-tourbtn { font-size: 0; }
}

/* staff notes: the text at a readable width, and a list of its sections beside it */
.hx-notes-grid { display: grid; grid-template-columns: minmax(0, 820px) minmax(220px, 1fr); gap: 40px; align-items: start; }
.hx-notes-side { position: sticky; top: calc(var(--header-h, 68px) + var(--hx-nav-h, 100px) + 16px); display: flex; flex-direction: column; gap: 14px; }
.hx-notes-side[hidden] { display: none; }
.hx-notes-toc { background: #F8F9FB; border: 1px solid var(--cborder); border-radius: 14px; padding: 14px 16px; }
.hx-notes-toc b, .hx-notes-facts b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #6B6B6B; margin-bottom: 8px; }
.hx-notes-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hx-notes-toc button { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font: 600 13px Montserrat, sans-serif; color: #0074B4; cursor: pointer; }
.hx-notes-toc button:hover, .hx-notes-toc button:focus-visible { border-color: var(--cyan); background: #fff; outline: none; }
.hx-notes-facts { border: 1px solid var(--cborder); border-radius: 14px; padding: 14px 16px; font-size: 13px; color: #4A5560; display: flex; flex-direction: column; gap: 6px; }
.hx-notes-facts a { color: #0074B4; font-weight: 700; text-decoration: none; }
.hx-notes-facts a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .hx-notes-grid { grid-template-columns: minmax(0, 1fr); } .hx-notes-side { position: static; } }

/* the City, full screen: the stage fills the window, with every control still on it */
/* the page scrolls on <html> (overflow-x: clip keeps body from taking it), so lock both */
html.hx-city-full, html.hx-city-full body { overflow: hidden !important; overscroll-behavior: none; }
html.hx-city-full .hx-city-help { display: none; }   /* it says Ctrl + scroll; in full screen the wheel zooms */
body.hx-city-full .hx-city { position: fixed; inset: 0; height: auto; z-index: 300; border: 0; border-radius: 0; }
body.hx-city-full .hx-city-tip { z-index: 400; }
body.hx-city-full .demo-overlay, body.hx-city-full #modal, body.hx-city-full .hx-lightbox, body.hx-city-full .toast { z-index: 500; }
.hx-city-btn[data-hx-city="full"][aria-pressed="true"] { background: #0074B4; border-color: #005C90; color: #fff; }
.hx-city-btn[data-hx-city="full"][aria-pressed="true"] svg { color: #fff; }
