/*
 * Demonstration sites page (pages/demonstartions.htm): intro, site list with
 * facts, d3 map and the "Learn more" drawer. Classes are prefixed with ds- so
 * they cannot collide with the theme's .card, .grid, .map and friends.
 */
.ds-intro { max-width: 920px; margin: 0 auto; padding-top: 68px; font-size: 19px; line-height: 1.6; font-weight: 300; color: #4F5B67; }
.ds-intro .container-fluid, .ds-intro .container { padding: 0; margin: 0; max-width: none; width: auto; background: none !important; }
.ds-intro p { margin: 0 0 22px; }
.ds-intro strong, .ds-intro b { font-weight: 500; color: #0B1B2E; }

.ds-main { max-width: 1440px; margin: 0 auto; padding: 0 88px 150px; }
@media (max-width: 760px) { .ds-intro { padding: 48px 22px 0; } .ds-main { padding: 0 22px 100px; } }

.ds-grid { margin-top: 62px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px 56px; align-items: start; }
.ds-hint { margin: 0 0 20px; font-size: 16px; font-weight: 300; color: #4F5B67; }
.ds-list { display: flex; flex-direction: column; gap: 12px; }

.ds-card { border-radius: 10px; overflow: hidden; background: #F5F8F8; border: 1px solid #F5F8F8; }
.ds-card-h { width: 100%; background: none; border: 0; padding: 20px 26px 20px 22px; display: flex; align-items: center; gap: 18px; cursor: pointer; text-align: left; font-family: inherit; }
.ds-card-h img { width: 26px; height: 18px; object-fit: cover; border-radius: 2px; display: block; flex: none; box-shadow: 0 0 0 1px rgba(1, 15, 33, .08); }
.ds-card-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ds-card-t b { font-size: 22px; font-weight: 500; color: #0B1B2E; }
.ds-card-t span { font-size: 16px; font-weight: 300; color: #4F5B67; }
.ds-chev { flex: none; transition: transform .2s; }
.ds-card.open .ds-chev { transform: rotate(180deg); }
.ds-card-b { display: none; padding: 0 26px 28px 22px; }
.ds-card.open .ds-card-b { display: block; }

.ds-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ds-fact { border-top: 1px solid #DCE8EA; padding: 18px 0 16px; }
.ds-fact-l { font-size: 15px; color: #4F5B67; }
.ds-fact-v { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.ds-fact-v b { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: #2E8FD5; }
.ds-fact-v span { font-size: 20px; font-weight: 500; color: #2E8FD5; }
.ds-fact-na { margin-top: 14px; font-size: 19px; font-weight: 300; color: #4F5B67; }

.ds-learn { margin-top: 14px; height: 50px; padding: 0 30px; border: 0; border-radius: 5px; background: #25BDD2; color: #fff; font: inherit; font-size: 18px; cursor: pointer; }
.ds-learn:hover { background: #1FAAC0; }

.ds-mapwrap { position: sticky; top: 112px; }
.ds-map { width: 100%; aspect-ratio: 900 / 960; max-height: calc(100vh - 140px); border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #E3ECEE; }
.ds-map svg { display: block; width: 100%; height: 100%; }
.ds-m { cursor: pointer; outline: none; }
.ds-m .halo { fill: rgba(37, 189, 210, .35); transform-box: fill-box; transform-origin: center; }
.ds-m.on .halo, .ds-none .ds-m .halo { animation: ds-pulse 2.2s ease-out infinite; }
.ds-m .core { fill: #25BDD2; stroke: #fff; transition: r .2s, stroke-width .2s; }
.ds-none .ds-m .core { r: 10; transform-box: fill-box; transform-origin: center; animation: ds-beat 1.6s ease-in-out infinite; }
.ds-m .tag { opacity: 0; transition: opacity .15s; pointer-events: none; }
.ds-m.on .tag, .ds-m:hover .tag, .ds-m:focus .tag { opacity: 1; }
.ds-m:not(.on):hover .core { r: 10; }
@keyframes ds-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes ds-pulse { 0% { transform: scale(.6); opacity: 1; } 75% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }

/* Above the fixed site header. */
.ds-ov { position: fixed; inset: 0; z-index: 100000; background: rgba(1, 15, 33, .5); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ds-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100001; width: min(660px, 94vw); background: #fff; overflow-y: auto; box-shadow: -20px 0 50px rgba(1, 15, 33, .2); transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
body.ds-dopen { overflow: hidden; }
body.ds-dopen .ds-ov { opacity: 1; pointer-events: auto; }
body.ds-dopen .ds-drawer { transform: none; }
.ds-d-img { position: relative; height: 320px; background: #2E6F74; }
.ds-d-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-d-img:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(180deg, rgba(30, 130, 140, 0), rgba(20, 110, 120, .85)); }
.ds-d-cap { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 28px; display: flex; align-items: center; gap: 16px; color: #fff; }
.ds-d-cap img { width: 34px; height: 23px; object-fit: cover; border-radius: 2px; display: block; flex: none; }
.ds-d-cap b { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; }
.ds-d-cap span { font-size: 17px; font-weight: 300; }
.ds-d-x { position: absolute; z-index: 2; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #25BDD2; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(1, 15, 33, .18); }
.ds-d-body { padding: 8px 36px 48px; }
.ds-d-body .ds-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); column-gap: 20px; border-bottom: 1px solid #DCE8EA; }
.ds-d-body .ds-fact { border: 0; padding: 22px 0 20px; }
.ds-d-body .ds-fact-l { font-size: 14px; }
.ds-d-body .ds-fact-v { gap: 4px; }
.ds-d-body .ds-fact-v b { font-size: 32px; color: #0091DC; }
.ds-d-body .ds-fact-v span { font-size: 16px; color: #0091DC; }
.ds-d-body .ds-fact-na { margin-top: 10px; font-size: 16px; }
.ds-d-body h3 { margin: 32px 0 0; font-size: 23px; font-weight: 500; color: #2F3A46; }
.ds-d-body p { margin: 14px 0 0; font-size: 17.5px; line-height: 1.75; font-weight: 300; color: #4F5B67; }
