/* RDT Data Center Pages 2.0.0 — facility card for the data center maps (Data Center Search and the home map).
   From 768px it is a Leaflet popup; below that the same card opens as a bottom sheet (see dc-card.js).
   A white container with dark type, as the dark design system requires for anything inside a section.
   The button is the site standard through .rdt-dcx-btn; nothing here sizes it. */

/* ---- the popup shell ---- */
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup .leaflet-popup-content-wrapper{background:#fff;color:#2f3b52;border-radius:18px;padding:0;overflow:hidden;box-shadow:0 22px 54px rgba(0,10,40,.45)}
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup .leaflet-popup-content{margin:0;width:auto!important;font-family:inherit;font-size:14.5px;line-height:1.45}
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup .leaflet-popup-content.leaflet-popup-scrolled{border:0;overscroll-behavior:contain}
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup .leaflet-popup-tip{background:#fff}
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup a.leaflet-popup-close-button{top:8px;right:8px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:22px;line-height:1;color:#5b6b82;background:rgba(255,255,255,.9);z-index:2;transition:background-color .18s ease,color .18s ease}
body:not(#rdt-dcc) .leaflet-popup.rdtdc-popup a.leaflet-popup-close-button:is(:hover,:focus-visible){background:#f5f7fb;color:#002254}

/* ---- the card ---- */
body:not(#rdt-dcc) .rdtdc-pop{width:min(320px,calc(100vw - 72px));padding:18px 20px 20px;box-sizing:border-box;text-align:left}
body:not(#rdt-dcc) .rdtdc-pop-prov{margin:0 34px 4px 0;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1.35;color:#c45f08}
body:not(#rdt-dcc) .rdtdc-pop-city{margin:0 34px 0 0;font-family:var(--rdt-font-head,Roboto,system-ui,sans-serif);font-size:26px;font-weight:700;line-height:1.1;letter-spacing:-.015em;color:#002254}
body:not(#rdt-dcc) .rdtdc-pop-code{margin:4px 0 0;font-size:14px;font-weight:700;letter-spacing:.1em;line-height:1.3;color:#5b6b82}
body:not(#rdt-dcc) .rdtdc-pop-pic{display:block;margin:12px 0 0;border-radius:12px;overflow:hidden;aspect-ratio:20/9;background:#e9eef7}
body:not(#rdt-dcc) .rdtdc-pop-pic img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .35s ease}
body:not(#rdt-dcc) .rdtdc-pop-pic:hover img{transform:scale(1.03)}
body:not(#rdt-dcc) .rdtdc-pop-facts{margin:12px 0 0;padding:0}
body:not(#rdt-dcc) .rdtdc-pop-facts > div{display:grid;grid-template-columns:98px minmax(0,1fr);gap:8px;padding:7px 0;border-top:1px solid rgba(0,34,84,.1)}
body:not(#rdt-dcc) .rdtdc-pop-facts > div:first-child{border-top:0;padding-top:0}
body:not(#rdt-dcc) .rdtdc-pop-facts dt{margin:0;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.75;color:#5b6b82}
body:not(#rdt-dcc) .rdtdc-pop-facts dd{margin:0;font-size:14px;font-weight:600;line-height:1.45;color:#002254}
body:not(#rdt-dcc) .rdtdc-pop-chips,body:not(#rdt-dcc) .rdtdc-pop-svc{display:flex;flex-wrap:wrap;gap:5px}
body:not(#rdt-dcc) .rdtdc-pop-chips span{padding:2px 8px;border-radius:999px;background:#f5f7fb;border:1px solid rgba(0,34,84,.12);font-size:12px;font-weight:600;line-height:1.35;color:#002254}
body:not(#rdt-dcc) .rdtdc-pop-svc span{display:inline-flex;align-items:center;gap:4px;padding:2px 8px 2px 6px;border-radius:999px;background:#fff7ee;border:1px solid rgba(246,130,31,.4);font-size:12px;font-weight:600;line-height:1.35;color:#8a4306}
body:not(#rdt-dcc) .rdtdc-pop-svc svg{width:14px;height:14px;flex:0 0 auto}
body:not(#rdt-dcc) .rdtdc-pop a.rdtdc-pop-btn{display:flex;width:100%;margin:14px 0 0}

/* ---- bottom sheet (below 768px) ---- */
html.rdtdc-sheet-open{overflow:hidden}
body:not(#rdt-dcc) .rdtdc-sheet{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center}
body:not(#rdt-dcc) .rdtdc-sheet-backdrop{position:absolute;inset:0;background:rgba(0,10,30,.6);opacity:0;transition:opacity .2s ease}
body:not(#rdt-dcc) .rdtdc-sheet-panel{position:relative;width:100%;max-width:520px;max-height:88vh;max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -18px 48px rgba(0,10,40,.45);transform:translateY(100%);transition:transform .22s cubic-bezier(.2,.7,.2,1);padding-bottom:env(safe-area-inset-bottom,0)}
body:not(#rdt-dcc) .rdtdc-sheet.is-open .rdtdc-sheet-backdrop{opacity:1}
body:not(#rdt-dcc) .rdtdc-sheet.is-open .rdtdc-sheet-panel{transform:none}
body:not(#rdt-dcc) .rdtdc-sheet .rdtdc-pop{width:100%;padding:22px 20px 24px}
body:not(#rdt-dcc) .rdtdc-sheet .rdtdc-pop-pic{aspect-ratio:16/9}
body:not(#rdt-dcc) .rdtdc-sheet .rdtdc-pop-city{font-size:28px}
body:not(#rdt-dcc) .rdtdc-sheet .rdtdc-pop-facts dd{font-size:15px}
body:not(#rdt-dcc) .rdtdc-sheet button.rdtdc-sheet-close{position:absolute;top:10px;right:10px;z-index:2;width:44px;height:44px;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:#f5f7fb;color:#002254;font-size:26px;line-height:1;font-weight:400;cursor:pointer;box-shadow:none}
body:not(#rdt-dcc) .rdtdc-sheet button.rdtdc-sheet-close:is(:hover,:focus-visible){background:#e9eef7;color:#002254;outline:2px solid #F6821F;outline-offset:2px}
@media (prefers-reduced-motion:reduce){body:not(#rdt-dcc) .rdtdc-sheet-panel,body:not(#rdt-dcc) .rdtdc-sheet-backdrop,body:not(#rdt-dcc) .rdtdc-pop-pic img{transition:none}}
