/* Main Paper demo site: shared rules on top of the page styles. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; -webkit-font-smoothing: antialiased; }
[data-if] { display: contents; }
[data-if][hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #C8161E; outline-offset: 2px;
}
body.mobile-preview { background: #E8E6E1; padding: 24px 0; }

/* Phones: scale down the large display type and gutters */
@media (max-width: 640px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 28px !important; }
  section[aria-label="Introduction"] { min-height: 560px !important; aspect-ratio: auto !important; max-height: none !important; }
  section[aria-label="Introduction"] > div > div:first-child { padding: 28px !important; }
}

/* Brand film overlay */
.mp-video { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 17, 0.82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.mp-video__box { position: relative; width: min(1100px, 100%); }
.mp-video__box video { width: 100%; max-height: 80vh; display: block; border-radius: 12px; background: #000; }
.mp-video__close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: none; background: #ffffff; color: #171717; font-size: 26px; line-height: 1; cursor: pointer; }

/* Top nav: sliding red underline */
.mp-nav { position: relative; }
.mp-nav .mp-nav-link { position: relative; color: #171717; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 2px; white-space: nowrap; }
.mp-nav .mp-nav-link.is-active { color: #C8161E; font-weight: 600; }
.mp-nav-underline { position: absolute; bottom: -2px; left: 0; height: 3px; width: 0; border-radius: 2px; background: #C8161E; opacity: 0; transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1), opacity .18s ease; }
.mp-nav-underline.is-visible { opacity: 1; }

#heroPlayer[hidden] { display: none !important; }

/* Document viewer overlay */
.mp-doc { position: fixed; inset: 0; z-index: 130; background: rgba(17,17,17,.84); display: flex; align-items: center; justify-content: center; padding: 24px; }
.mp-doc[hidden] { display: none !important; }
.mp-doc__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(920px, 100%); max-height: 92vh; }
.mp-doc__img { max-width: 100%; max-height: 80vh; object-fit: contain; background: #ffffff; border-radius: 8px; box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.mp-doc__caption { color: #ffffff; font-weight: 600; font-size: 16px; text-align: center; }
.mp-doc__close { position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: none; background: #ffffff; color: #171717; font-size: 26px; line-height: 1; cursor: pointer; }

/* Hero video buffering spinner */
.mp-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mp-spin[hidden] { display: none !important; }
.mp-spin::after { content: ""; width: 48px; height: 48px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #ffffff; animation: mp-spin .8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* Interactive world map */
.mp-map__wrap { position: relative; background: #F7F8FA; border-radius: 10px; overflow: hidden; }
.mp-map svg { display: block; width: 100%; height: auto; }
.mp-map path { fill: #E2E4E6; stroke: #ffffff; stroke-width: .3; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.mp-map path.on { fill: #E3262E; }
.mp-map path:hover { fill: #171717; cursor: pointer; }
.mp-map path.on:hover { fill: #B5121A; }
.mp-map circle.on { fill: #E3262E; stroke: #ffffff; stroke-width: .6; cursor: pointer; }
.mp-map circle.on:hover { fill: #B5121A; }
.mp-map__tip { position: absolute; pointer-events: none; background: #171717; color: #ffffff; font-size: 13px; font-weight: 600; padding: 5px 9px; border-radius: 6px; transform: translate(-50%, -140%); white-space: nowrap; z-index: 3; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.mp-map__tip[hidden] { display: none !important; }

.mp-map__ph { aspect-ratio: 1000 / 390; display: flex; align-items: center; justify-content: center; color: #9A9A9A; font-size: 14px; }

.mp-prog-card { border: 1px solid #E5E1D8; transition: border-color .15s ease, box-shadow .15s ease; }
.mp-prog-card:hover { border-color: #C8161E; box-shadow: 0 8px 24px rgba(0,0,0,.06); }

.mp-social { transition: color .15s ease, border-color .15s ease; }
.mp-social:hover { color: #C8161E !important; border-color: #C8161E !important; }

.mp-social--linkedin:hover { color: #0A66C2 !important; border-color: #0A66C2 !important; }
.mp-social--instagram:hover { color: #E4405F !important; border-color: #E4405F !important; }
.mp-social--facebook:hover { color: #1877F2 !important; border-color: #1877F2 !important; }
.mp-social--youtube:hover { color: #FF0000 !important; border-color: #FF0000 !important; }
.mp-social--tiktok:hover { color: #000000 !important; border-color: #000000 !important; }
.mp-social--pinterest:hover { color: #E60023 !important; border-color: #E60023 !important; }

@media (max-width: 640px) {
  .mp-footer-actions { flex-wrap: wrap; justify-content: flex-start; gap: 10px !important; }
  .mp-footer-actions nav[aria-label="Social media"] { flex-wrap: wrap; gap: 6px !important; }
  .mp-footer-actions .mp-social { width: 38px !important; height: 38px !important; }
}
