/* ============================= */
/* REMOVE TOP BAR + SOCIAL ICONS */
/* ============================= */
.sp-top-bar {
  display: none !important;
}
 
.sp-social-icons {
  display: none !important;
}
 
 
/* ============================= */
/* HEADER CLEANUP + PROFESSIONAL LOOK */
/* ============================= */
.sp-header {
  margin-top: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border-bottom: 1px solid #eee !important;
}
 
 
/* ============================= */
/* LOGO SIZE */
/* ============================= */
.sp-default-logo img {
  max-height: 70px !important;
  height: auto !important;
}
 
#sp-header {
  min-height: 85px;
}
 
.sp-logo img {
  max-height: 65px !important;
}
 
 
/* ============================= */
/* MENU POLISH */
/* ============================= */
.sp-megamenu-parent > li > a {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}
 
.sp-megamenu-parent > li > .sp-menu-heading {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
}
 
 
/* ============================= */
/* REMOVE DOUBLE BORDER UNDER MENU */
/* ============================= */
.sp-header + section {
  border-top: none !important;
}
 
 
/* ============================= */
/* FOOTER LINK VISIBILITY FIX */
/* ============================= */
.sp-footer a {
  color: #ffffff !important;
  text-decoration: none;
}
 
.sp-footer a:hover {
  text-decoration: underline;
}
 
 
/* ============================= */
/* TIGHTEN HEADER SPACING */
/* ============================= */
.sp-header .container,
.sp-header .container-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
 
 
/* ============================= */
/* SITE BACKGROUND */
/* ============================= */
body,
#sp-main-body,
.sp-page-builder,
.sp-page-builder .page-content {
  background: #f5f9fc;
}
 
 
/* ============================= */
/* CASSM 404 PAGE STYLING */
/* ============================= */
.cassm-404-container {
  text-align: center;
  max-width: 900px;
  margin: 80px auto;
  padding: 20px;
}
 
.cassm-404-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1f2d3d;
}
 
.cassm-brand {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: #999999;
  text-transform: uppercase;
  margin-bottom: 15px;
}
 
.cassm-404-subtitle {
  font-size: 1.1rem;
  color: #666666;
  margin-bottom: 20px;
}
 
.cassm-404-divider {
  width: 80px;
  height: 3px;
  background: #c0392b;
  margin: 25px auto;
}
 
.cassm-404-quote {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #1f2d3d;
}
 
.cassm-cta {
  font-size: 2.4rem;
  font-weight: 700;
  color: #c0392b;
  margin-top: 15px;
  margin-bottom: 30px;
}
 
.cassm-404-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}
 
/* Hide the default Joomla error button */
.error a.btn {
  display: none !important;
}
 
 
/* ============================= */
/* BUTTONS */
/* ============================= */
.cassm-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
}
 
.cassm-btn.primary {
  background: #2c3e50;
  color: #ffffff !important;
}
 
.cassm-btn.secondary {
  background: #ecf0f1;
  color: #2c3e50 !important;
}
 
.cassm-btn.accent {
  background: #c0392b;
  color: #ffffff !important;
}
 
.cassm-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
 
.cassm-nav-buttons {
  text-align: center;
  margin-top: 30px;
}
 
.cassm-nav-btn {
  display: inline-block;
  padding: 10px 18px;
  margin: 5px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
 
.cassm-nav-btn.primary {
  background: #2c3e50;
  color: #fff;
}
 
.cassm-nav-btn.secondary {
  background: #ecf0f1;
  color: #2c3e50;
}
 
a.cassm-nav-btn.primary,
a.cassm-nav-btn.primary:hover,
a.cassm-nav-btn.primary:focus,
a.cassm-nav-btn.primary:active {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
 
 
/* =====================================
   CASSM PHOCA GALLERY GRID
===================================== */
 
/* 4 thumbnails per row on desktop */
.com_phocagallery .pg-item-box {
    width: 25% !important;
    padding: 12px !important;
    box-sizing: border-box;
}
 
/* Thumbnail card/frame */
.com_phocagallery .pg-item-box-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f4f6;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
 
/* Thumbnail image */
.com_phocagallery .pg-item-box-image img.pg-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block;
}
 
/* Hide captions under thumbnails */
.com_phocagallery .pg-item-box figcaption {
    display: none;
}
 
/* Popup / lightbox images ONLY */
.pg-detail-view img,
.pswp__img,
.phocagallery-box-file img,
.phocagallery-box-file-large img {
    width: auto !important;
    height: auto !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
    object-fit: contain !important;
}
 
@media (max-width: 991px) {
    .com_phocagallery .pg-item-box {
        width: 50% !important;
    }
}
 
@media (max-width: 575px) {
    .com_phocagallery .pg-item-box {
        width: 100% !important;
    }
 
    .com_phocagallery .pg-item-box-image {
        height: 240px;
    }
}
 
 
/* =====================================
   PATIENT FLOW CAPTION
   (the rest of the patient flow CSS lives
   in Custom Code > Before </head>)
===================================== */
 
.flow-caption {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 55px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #bdbdbd;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}
 
.flow-caption span {
    display: block;
    margin-top: 10px;
    color: #8a8a8a;
    font-size: 14px;
    font-style: italic;
}
 
 
/* =====================================
   BROWSE BY TOPIC — sidebar module
===================================== */
 
#sp-right .sp-column .sp-module {
    background: #fdf4ef !important;
    border: 1px solid #f3ddd0 !important;
    border-radius: 8px !important;
    padding: 20px 22px !important;
}
 
#sp-right .sp-column .sp-module .sp-module-title {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f05a28 !important;
}
 
#sp-right .sp-column .sp-module ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
 
#sp-right .sp-column .sp-module ul li {
    border-bottom: 1px solid #f0e0d5;
}
 
#sp-right .sp-column .sp-module ul li:last-child {
    border-bottom: none;
}
 
#sp-right .sp-column .sp-module ul li a {
    display: block;
    padding: 9px 0;
    color: #444;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}
 
#sp-right .sp-column .sp-module ul li a:hover {
    color: #f05a28 !important;
    padding-left: 6px;
}
 
 
/* =====================================
   ARTICLE IMAGES
===================================== */
 
/* Intro image in the From the Field listing */
.article-intro-image {
    float: none !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
}
 
.article-intro-image img {
    width: 100% !important;
    max-height: 420px !important;
    object-fit: cover !important;
    border-radius: 6px;
}
 
/* Full article image on the article page */
figure.article-full-image {
    float: none !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
}
 
figure.article-full-image img {
    width: 100% !important;
    max-height: 400px !important;
    object-fit: contain !important;
    border-radius: 6px;
}
 
 
/* =====================================
   BLOG FEED LAYOUT
===================================== */
 
/* Title above intro image, and separator between entries */
.article-list .article,
.blog .article {
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #dde3ea;
}
 
.article-list .row:last-child .article {
    border-bottom: none;
    margin-bottom: 0;
}
 
.article-list .article .article-body {
    display: flex;
    flex-direction: column;
    order: 1;
}
 
.article-list .article .article-intro-image {
    order: 2;
    margin-top: 15px;
}
 
.article-info .published {
    display: none !important;
}
 
.article-info .category-name::after {
    content: none !important;
}
 
/* Page title and description, centred */
.blog .category-desc {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}
 
/* The feed itself, centred as a column */
.blog .article-list {
    max-width: 900px;
    margin: 0 auto;
}
 
/* Article bodies, readable measure */
.article-list .article-introtext,
.blog .article-introtext {
    max-width: 850px;
}
 
/* Flatten the article's own wrapper when shown in a feed */
.article-introtext > div[style],
.article-introtext > .cassm-article {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
 
 
/* =====================================
   PILLAR BADGES — Articles feed
===================================== */
 
.article-info .category-name a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eeeeee;
    color: #444444 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: opacity .2s ease;
}
 
.article-info .category-name a:hover {
    opacity: .82;
}
 
.article-info .category-name a[href*="/research"] {
    background: #e6f2ea;
    color: #1d6236 !important;
}
 
.article-info .category-name a[href*="/innovation"] {
    background: #fdeae3;
    color: #a63b16 !important;
}
 
.article-info .category-name a[href*="/intellectual-capital"] {
    background: #e6ebf5;
    color: #123067 !important;
}
 
.article-info .category-name a[href*="/reflection"] {
    background: #efeeea;
    color: #55524d !important;
    border: 1px solid #ddd9d0;
}
 
/* =====================================
   PILLAR PAGES AND ARTICLES
   Shared layout components.
   .cassm-pillar  = Research / Innovation / Intellectual Capital
   .cassm-article = pieces built from the article template
===================================== */
 
.cassm-pillar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
 
.cassm-article {
    max-width: 900px;
    margin: 0 auto;
}
 
/* ---- Header (pillar pages) ---- */
 
.cassm-pillar-head {
    margin-bottom: 20px;
    text-align: center;
}
 
.cassm-pillar-head h1 {
    margin-top: 0;
    margin-bottom: 10px;
}
 
.cassm-pillar-lede {
    max-width: 800px;
    margin: 0 auto;
    color: #555555;
    font-size: 1.1em;
    line-height: 1.6;
}
 
/* ---- Article opening ---- */
 
.cassm-dateline {
    margin-bottom: 25px;
    color: #777777;
    font-size: .95em;
}
 
.cassm-opening {
    color: #555555;
    font-size: 1.1em;
    line-height: 1.6;
}
 
/* ---- Section spacing ---- */
 
.cassm-pillar .cassm-section,
.cassm-article .cassm-section {
    margin-top: 40px;
}
 
/* ---- Columns ---- */
 
.cassm-pillar .cassm-cols,
.cassm-article .cassm-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
 
.cassm-pillar .cassm-col,
.cassm-article .cassm-col {
    flex: 1;
    min-width: 280px;
}
 
.cassm-pillar .cassm-col > :first-child,
.cassm-article .cassm-col > :first-child {
    margin-top: 0;
}
 
.cassm-pillar .cassm-col > :last-child,
.cassm-article .cassm-col > :last-child {
    margin-bottom: 0;
}
 
/* ---- Panels ---- */
 
.cassm-pillar .cassm-panel,
.cassm-article .cassm-panel {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}
 
.cassm-pillar .cassm-panel--blue,
.cassm-article .cassm-panel--blue {
    background: #eef5ff;
}
 
.cassm-pillar .cassm-panel--amber,
.cassm-article .cassm-panel--amber {
    background: #fff8e6;
    border-left: 4px solid #e6b800;
}
 
.cassm-pillar .cassm-panel--sub,
.cassm-article .cassm-panel--sub {
    margin-top: 25px;
    padding: 20px;
}
 
.cassm-pillar .cassm-panel > :first-child,
.cassm-article .cassm-panel > :first-child {
    margin-top: 0;
}
 
.cassm-pillar .cassm-panel > :last-child,
.cassm-article .cassm-panel > :last-child {
    margin-bottom: 0;
}
 
.cassm-pillar .cassm-note,
.cassm-article .cassm-note {
    padding: 15px;
    background: #fffdf5;
    border-radius: 6px;
}
 
/* ---- Cards ---- */
 
.cassm-pillar .cassm-cards,
.cassm-article .cassm-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}
 
.cassm-pillar .cassm-card,
.cassm-article .cassm-card {
    flex: 1;
    min-width: 260px;
    padding: 18px;
    border: 1px solid #dddddd;
    border-radius: 6px;
}
 
.cassm-pillar .cassm-card p,
.cassm-article .cassm-card p {
    margin-top: 10px;
}
 
.cassm-pillar .cassm-card > :first-child,
.cassm-article .cassm-card > :first-child {
    margin-top: 0;
}
 
.cassm-pillar .cassm-card > :last-child,
.cassm-article .cassm-card > :last-child {
    margin-bottom: 0;
}
 
/* ---- Utilities ---- */
 
.cassm-pillar .cassm-muted,
.cassm-article .cassm-muted {
    color: #555555;
}
 
.cassm-pillar .cassm-flow,
.cassm-article .cassm-flow {
    margin: 20px 0;
    font-size: 1.05em;
    text-align: center;
}
 
.cassm-pillar .cassm-more,
.cassm-article .cassm-more {
    margin-top: 30px;
}
 
/* ---- Pillar identity ---- */
 
body.itemid-106 .cassm-pillar-head h1 { color: #2d8f4e; }
body.itemid-107 .cassm-pillar-head h1 { color: #f05a28; }
body.itemid-112 .cassm-pillar-head h1 { color: #18448f; }
 
/* ---- Mobile ---- */
 
@media (max-width: 640px) {
 
    .cassm-pillar {
        padding: 16px;
    }
 
    .cassm-pillar .cassm-section,
    .cassm-article .cassm-section {
        margin-top: 30px;
    }
 
    .cassm-pillar .cassm-panel,
    .cassm-article .cassm-panel {
        padding: 18px;
    }
 
    .cassm-pillar .cassm-panel--sub,
    .cassm-article .cassm-panel--sub {
        padding: 16px;
    }
}
 
 
/* =====================================
   ORANGE BUTTON — reserved, not yet in use
   Apply class "cassm-orange-btn" to an <a> tag.
   Duplicate of .cassm-about-btn styling, which
   lives in Custom Code > Before </body>.
===================================== */
 
/*
a.cassm-orange-btn,
a.cassm-orange-btn:hover,
a.cassm-orange-btn:focus,
a.cassm-orange-btn:active {
    background: #f05a28 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: none !important;
}
*/
/* ==========================================================================
   CASSM FOUNDATION — GLOBAL NETWORK ANIMATION
   Append to: templates/shaper_helixultimate/css/custom.css
   Pairs with: cassm-global-network-module.html (Custom HTML module)

   THEME: light is active. To switch to dark, comment out the LIGHT block
   below and uncomment the DARK block. Nothing else in the file changes —
   every colour, opacity and shadow resolves through these tokens.
   ========================================================================== */

#cassm-global-network {
  /* --- DARK PALETTE (active) ------------------------------------------- */
  --cassm-gold: #e4b54a;
  --cassm-green: #48a46b;
  --cassm-green-bright: #7bdf91;
  --cassm-green-soft: #a4efb1;
  --cassm-text: #f5f7f4;
  --cassm-muted: #acb7b0;
  --cassm-land: #23372f;
  --cassm-island: #314940;
  --cassm-land-edge: rgba(184, 207, 187, 0.18);
  --cassm-grid: rgba(255, 255, 255, 0.055);
  --cassm-border: rgba(228, 181, 74, 0.22);
  --cassm-surface: rgba(255, 255, 255, 0.035);
  --cassm-shell: #0e1a22;
  --cassm-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
  --cassm-route-opacity: 0.38;
  --cassm-route-width: 2;
  --cassm-glow-outer: 0.14;
  --cassm-glow-inner: 0.26;
  --cassm-ocean-opacity: 0.35;
  --cassm-btn-bg: #e4b54a;
  --cassm-btn-text: #0b1319;
  --cassm-halo: #0e1a22;

  /* --- LIGHT PALETTE ---------------------------------------------------
  --cassm-gold: #a97a12;
  --cassm-green: #2f7d4f;
  --cassm-green-bright: #2e8b57;
  --cassm-green-soft: #1c5637;
  --cassm-text: #14181a;
  --cassm-muted: #5f6b64;
  --cassm-land: #ededec;
  --cassm-island: #dcdfdb;
  --cassm-land-edge: rgba(0, 0, 0, 0.10);
  --cassm-grid: rgba(0, 0, 0, 0.05);
  --cassm-border: rgba(0, 0, 0, 0.13);
  --cassm-surface: rgba(0, 0, 0, 0.025);
  --cassm-shell: #ffffff;
  --cassm-shadow: 0 16px 44px rgba(0, 0, 0, 0.07);
  --cassm-route-opacity: 0.75;
  --cassm-route-width: 2.2;
  --cassm-glow-outer: 0.10;
  --cassm-glow-inner: 0.20;
  --cassm-ocean-opacity: 0.28;
  --cassm-btn-bg: #14181a;
  --cassm-btn-text: #ffffff;
  --cassm-halo: #ffffff;
  --------------------------------------------------------------------- */

  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 35px auto;
  padding: 44px 34px 38px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid var(--cassm-border);
  border-radius: 24px;
  background: var(--cassm-shell);
  box-shadow: var(--cassm-shadow);
  font-family: Arial, Helvetica, sans-serif;
}

#cassm-global-network *,
#cassm-global-network *::before,
#cassm-global-network *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. HEADER
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-global-header {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto 18px;
  text-align: center;
}

#cassm-global-network .cassm-global-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cassm-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
}

#cassm-global-network h2 {
  margin: 0 0 12px;
  color: var(--cassm-text);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
}

#cassm-global-network h2 span {
  color: var(--cassm-gold);
}

#cassm-global-network .cassm-global-intro {
  max-width: 730px;
  margin: 0 auto;
  color: var(--cassm-muted);
  font-size: clamp(14px, 1.65vw, 17px);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   2. MAP SHELL
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-map-wrap {
  position: relative;
  width: 100%;
  margin: 6px auto 0;
}

#cassm-global-network .cassm-global-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#cassm-global-network .cassm-grid-lines {
  fill: none;
  stroke: var(--cassm-grid);
  stroke-width: 1;
}

#cassm-global-network .cassm-landmass {
  fill: var(--cassm-land);
  stroke: var(--cassm-land-edge);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

#cassm-global-network .cassm-island {
  fill: var(--cassm-island);
  stroke: var(--cassm-land-edge);
  stroke-width: 1;
}

#cassm-global-network .cassm-ocean-label {
  fill: var(--cassm-muted);
  opacity: var(--cassm-ocean-opacity);
  font-size: 17px;
  letter-spacing: 6px;
  text-anchor: middle;
}

/* --------------------------------------------------------------------------
   3. ROUTES
   Static dashed lines; the planes carry the motion.
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-route {
  fill: none;
  stroke: var(--cassm-gold);
  stroke-width: var(--cassm-route-width);
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  opacity: var(--cassm-route-opacity);
}

#cassm-global-network .cassm-route-green {
  stroke: var(--cassm-green-bright);
}

/* --------------------------------------------------------------------------
   4. PLANES
   offset-path rather than SMIL <animateMotion>/<mpath>: no #id fragment
   for Joomla's <base href> to break, prefers-reduced-motion applies, and it
   animates on the compositor instead of repainting a path each frame.
   Plane geometry is authored around (0,0) pointing along +X so that
   offset-rotate: auto aims the nose along the curve.
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-plane {
  fill: var(--cassm-gold);
  offset-rotate: auto;
  animation: cassm-fly 9s linear infinite;
}

#cassm-global-network .cassm-plane-green {
  fill: var(--cassm-green-bright);
}

#cassm-global-network .cassm-plane-canada {
  offset-path: path('M245.9 203.8 C209.2 275.1 218.3 381.4 266.6 445.5');
  animation-delay: 0s;
}

#cassm-global-network .cassm-plane-us {
  offset-path: path('M292.1 237.9 C322.4 299.9 312.8 391.2 270.2 445.5');
  animation-delay: 1.4s;
  animation-duration: 7s;
}

#cassm-global-network .cassm-plane-uk {
  offset-path: path('M927.0 103.5 C710.7 135.3 428.1 290.1 284.9 455.3');
  animation-delay: 2.8s;
  animation-duration: 11s;
}

@keyframes cassm-fly {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  7% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   5. MARKERS
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-source-halo {
  fill: var(--cassm-gold);
  fill-opacity: 0.12;
  stroke: var(--cassm-gold);
  stroke-opacity: 0.45;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: cassm-source-breathe 2.8s ease-in-out infinite;
}

#cassm-global-network .cassm-source-dot {
  fill: var(--cassm-gold);
  stroke: var(--cassm-halo);
  stroke-width: 1.2;
}

@keyframes cassm-source-breathe {
  0%,
  100% {
    opacity: 0.44;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

/* Jamaica — glow is stacked circles, not filter: url(#id), which Joomla's
   <base href> can cause the browser to resolve against the wrong document. */

#cassm-global-network .cassm-jamaica-glow-outer {
  fill: var(--cassm-green-bright);
  fill-opacity: var(--cassm-glow-outer);
}

#cassm-global-network .cassm-jamaica-glow-inner {
  fill: var(--cassm-green-bright);
  fill-opacity: var(--cassm-glow-inner);
}

#cassm-global-network .cassm-jamaica-ring {
  fill: none;
  stroke: var(--cassm-green-bright);
  stroke-opacity: 0.7;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: cassm-jamaica-pulse 2.4s ease-out infinite;
}

#cassm-global-network .cassm-jamaica-ring-delayed {
  animation-delay: 1.2s;
}

@keyframes cassm-jamaica-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

#cassm-global-network .cassm-jamaica-dot {
  fill: var(--cassm-green-bright);
  stroke: var(--cassm-halo);
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   6. MAP LABELS
   -------------------------------------------------------------------------- */

/* Stroke-underlay copy sits beneath each label so text stays legible over
   coastlines and route lines. A duplicated <text> is used rather than
   paint-order, which several renderers still ignore. */
#cassm-global-network .cassm-label-halo {
  fill: none;
  stroke: var(--cassm-halo);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}

#cassm-global-network .cassm-country-title {
  fill: var(--cassm-text);
  font-size: 17px;
  font-weight: 700;
}

#cassm-global-network .cassm-country-detail {
  fill: var(--cassm-muted);
  font-size: 12px;
}

#cassm-global-network .cassm-jamaica-title {
  fill: var(--cassm-green-soft);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

#cassm-global-network .cassm-jamaica-detail {
  fill: var(--cassm-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   7. MOBILE LEGEND — hidden on desktop, where in-map labels do the work
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-legend {
  display: none;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

#cassm-global-network .cassm-legend li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--cassm-border);
}

#cassm-global-network .cassm-legend li:last-child {
  border-bottom: 0;
}

#cassm-global-network .cassm-legend-key {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cassm-gold);
  transform: translateY(-1px);
}

#cassm-global-network .cassm-legend-key-green {
  background: var(--cassm-green-bright);
}

#cassm-global-network .cassm-legend-name {
  color: var(--cassm-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

#cassm-global-network .cassm-legend-role {
  color: var(--cassm-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   8. IMPACT PILLS
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-impact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

#cassm-global-network .cassm-impact-pill {
  padding: 10px 15px;
  color: var(--cassm-text);
  border: 1px solid var(--cassm-border);
  border-radius: 999px;
  background: var(--cassm-surface);
  font-size: 12px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

#cassm-global-network .cassm-impact-pill::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cassm-gold);
  content: '';
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   9. CALL TO ACTION — deep-links into the existing Get Involved page
   -------------------------------------------------------------------------- */

#cassm-global-network .cassm-cta {
  margin-top: 30px;
  text-align: center;
}

#cassm-global-network .cassm-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#cassm-global-network .cassm-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--cassm-border);
  border-radius: 999px;
  background: transparent;
  color: var(--cassm-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease;
}

/* Icon sizing is bound to the anchor, so an unstyled fallback can never
   render these at full SVG size. */
#cassm-global-network .cassm-cta-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* External-link mark on the Volunteer button, so a new tab is not a surprise. */
#cassm-global-network .cassm-cta-ext {
  width: 13px;
  height: 13px;
  margin-left: -2px;
  opacity: 0.55;
}

#cassm-global-network .cassm-cta-btn:hover,
#cassm-global-network .cassm-cta-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cassm-text);
  background: var(--cassm-surface);
  color: var(--cassm-text);
  text-decoration: none;
}

#cassm-global-network .cassm-cta-primary {
  border-color: var(--cassm-btn-bg);
  background: var(--cassm-btn-bg);
  color: var(--cassm-btn-text);
}

#cassm-global-network .cassm-cta-primary:hover,
#cassm-global-network .cassm-cta-primary:focus-visible {
  background: var(--cassm-btn-bg);
  border-color: var(--cassm-btn-bg);
  color: var(--cassm-btn-text);
  opacity: 0.9;
}

#cassm-global-network .cassm-cta-note {
  margin: 15px 0 0;
  color: var(--cassm-muted);
  font-size: 13px;
}

#cassm-global-network a:focus-visible,
#cassm-global-network .cassm-cta-btn:focus-visible {
  outline: 2px solid var(--cassm-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   10. MOBILE
   In-map text is dropped below 700px. At a 1100-unit viewBox on a 360px
   screen the scale factor is about 0.30, which would render a 17px label at
   roughly 5px on glass. The legend beneath the map replaces it. Planes go
   too — they are the only per-frame cost worth removing on low-end handsets.
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  #cassm-global-network {
    margin: 20px auto;
    padding: 30px 15px 26px;
    border-radius: 17px;
  }

  #cassm-global-network .cassm-global-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  #cassm-global-network .cassm-global-intro {
    line-height: 1.55;
  }

  #cassm-global-network .cassm-country-title,
  #cassm-global-network .cassm-country-detail,
  #cassm-global-network .cassm-jamaica-detail,
  #cassm-global-network .cassm-ocean-label,
  #cassm-global-network .cassm-plane {
    display: none;
  }

  /* keep only the Jamaica title's halo, since that label survives */
  #cassm-global-network .cassm-label-halo.cassm-country-title,
  #cassm-global-network .cassm-label-halo.cassm-country-detail,
  #cassm-global-network .cassm-label-halo.cassm-jamaica-detail {
    display: none;
  }

  #cassm-global-network .cassm-jamaica-title {
    font-size: 42px;
  }

  #cassm-global-network .cassm-legend {
    display: block;
  }

  #cassm-global-network .cassm-impact-strip {
    gap: 8px;
    margin-top: 20px;
  }

  #cassm-global-network .cassm-impact-pill {
    padding: 8px 11px;
    font-size: 11px;
  }

  #cassm-global-network .cassm-cta-btn {
    padding: 12px 18px;
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   11. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #cassm-global-network .cassm-source-halo,
  #cassm-global-network .cassm-jamaica-ring,
  #cassm-global-network .cassm-plane {
    animation: none;
  }

  #cassm-global-network .cassm-plane {
    offset-distance: 62%;
    opacity: 1;
  }

  #cassm-global-network .cassm-jamaica-ring {
    opacity: 0.5;
  }

  #cassm-global-network .cassm-cta-btn {
    transition: none;
  }
}

/* ============================= */
/* HOMEPAGE COUNTER CAPTION      */
/* ============================= */
.cassm-counter-note {
    max-width: 720px;
    margin: 14px auto 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   CASSM — DOCUMENTATION STANDARD ARTICLE
   Append to: templates/shaper_helixultimate/css/custom.css
   Only used by the Knowledge Article Standard article.
   ========================================================================== */

.cassm-standard h2.cassm-std-h {
    margin-top: 38px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dde3ea;
    font-size: 1.35em;
}

.cassm-standard h3 {
    margin-top: 26px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.cassm-standard table.cassm-std-table {
    width: 100%;
    margin: 18px 0 24px;
    border-collapse: collapse;
    font-size: .95em;
}

.cassm-standard table.cassm-std-table th {
    padding: 10px 12px;
    border-bottom: 2px solid #cbd5e1;
    background: #f4f6f9;
    color: #333;
    font-weight: 700;
    text-align: left;
    vertical-align: top;
}

.cassm-standard table.cassm-std-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6eaef;
    vertical-align: top;
}

.cassm-standard table.cassm-std-table tr:last-child td {
    border-bottom: none;
}

.cassm-standard pre.cassm-std-code {
    margin: 16px 0;
    padding: 16px 18px;
    overflow-x: auto;
    border: 1px solid #e0e5ea;
    border-radius: 6px;
    background: #f7f8fa;
}

.cassm-standard pre.cassm-std-code code {
    padding: 0;
    background: none;
    color: #24292f;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .88em;
    line-height: 1.65;
    white-space: pre;
}

/* inline code within prose */
.cassm-standard p code,
.cassm-standard li code,
.cassm-standard td code {
    padding: 2px 6px;
    border-radius: 4px;
    background: #eef1f5;
    color: #24292f;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: .9em;
}

.cassm-standard ul,
.cassm-standard ol {
    margin: 12px 0 18px;
    padding-left: 22px;
}

.cassm-standard li {
    margin-bottom: 7px;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .cassm-standard table.cassm-std-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cassm-standard pre.cassm-std-code {
        padding: 12px;
        font-size: .85em;
    }
}
.cassm-video-card { max-width: 640px; margin: 1.5rem auto; }

.cassm-video-link {
  position: relative; display: block;
  border-radius: 8px; overflow: hidden; line-height: 0;
}
.cassm-video-link img { width: 100%; height: auto; }

/* Play button drawn in CSS - no extra markup for TinyMCE to strip */
.cassm-video-link::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 72px; height: 72px; margin: -36px 0 0 -36px;
  background: rgba(0,0,0,.55); border-radius: 50%;
  transition: background .2s ease, transform .2s ease;
}
.cassm-video-link::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  margin: -14px 0 0 -8px;
  border: solid transparent; border-width: 14px 0 14px 22px;
  border-left-color: #fff;
}
.cassm-video-link:hover::before {
  background: rgba(0,0,0,.75); transform: scale(1.08);
}

.cassm-video-caption {
  font-size: .9rem; text-align: center;
  margin-top: .6rem; opacity: .8;
}
.cassm-note {
  max-width: 820px;
  margin: 1rem auto 2.5rem;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}
/* UN-style menu bar — v2 */
#sp-header .sp-megamenu-parent { background: #3f3f3f; display: inline-flex; flex-wrap: nowrap; margin: 0; padding: 0; }
#sp-header .sp-megamenu-parent > li { flex: 0 0 auto; border-right: 1px solid #7a7a7a; }
#sp-header .sp-megamenu-parent > li:first-child { border-left: 1px solid #7a7a7a; }
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
  color: #fff !important; font-size: 17px; font-weight: 400;
  padding: 0 20px !important; line-height: 50px; white-space: nowrap;
  text-transform: none; display: block;
}
#sp-header .sp-megamenu-parent > li > a:hover,
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li.active > a { background: #555; color: #f2a900 !important; }
#sp-header .sp-megamenu-parent > li > a:after,
#sp-header .sp-megamenu-parent > li.sp-has-child > a:after { color: inherit !important; margin-left: 8px; }

/* =========================================================
   Global Network module — call-to-action buttons
   Applies only inside #cassm-global-network (the map module),
   so nothing here affects buttons elsewhere on the site.
   ========================================================= */

/* Row that holds the two buttons.
   Flex + justify-content centres them under the pills;
   gap sets the space between them; flex-wrap lets them
   stack on narrow screens instead of overflowing. */
#cassm-global-network .cassm-map-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0 8px;   /* space above (24px) and below (8px) the row */
}

/* Shared button shape — size, rounding, weight.
   inline-block lets padding apply to the <a> tags;
   text-decoration: none removes the default underline;
   transition makes the hover colour change fade smoothly. */
#cassm-global-network .cassm-btn {
  display: inline-block;
  padding: 12px 26px;      /* vertical / horizontal */
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all .2s;
}

/* Primary button ("Sign up to volunteer") — solid amber fill
   with dark text for contrast against the dark card. */
#cassm-global-network .cassm-btn-primary {
  background: #f2a900;
  color: #1a1a1a;
  border: 2px solid #f2a900;
}

/* Primary hover — slightly brighter amber so it reads as clickable. */
#cassm-global-network .cassm-btn-primary:hover {
  background: #ffbf2e;
  border-color: #ffbf2e;
  color: #1a1a1a;
}

/* Secondary button ("Contact Us") — transparent with a
   translucent white outline, so it sits visually behind
   the primary button in importance. */
#cassm-global-network .cassm-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}

/* Secondary hover — outline and text switch to amber,
   matching the primary button's colour family. */
#cassm-global-network .cassm-btn-outline:hover {
  border-color: #f2a900;
  color: #f2a900;
}

/* =====================================
   ARTICLE BODY READABILITY
   Larger body text on article pages and in
   blog listings. Menu, headings and modules
   are not affected. Inline em sizes in
   articles scale with it.
===================================== */

body.view-article .article-details [itemprop="articleBody"],
.blog .article-introtext {
    font-size: 17px;
    line-height: 1.7;
}


/* =====================================
   CASSM GUIDE — guided FAQ assistant
   Pairs with the "CASSM Guide" Custom module.
   Every rule is prefixed cg- so nothing else
   on the site is affected. To remove the guide,
   unpublish the module; this CSS then does nothing.
===================================== */

.cg-launch {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1b2a24;
    box-shadow: 0 10px 30px rgba(15, 40, 25, .22);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.cg-launch .cg-av { width: 40px; height: 40px; display: block; }

.cg-panel {
    position: fixed;
    right: calc(20px + env(safe-area-inset-right, 0px));
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 9991;
    display: flex;
    flex-direction: column;
    width: min(370px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid #dfe7e2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(15, 40, 25, .28);
    color: #1b2a24;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.cg-panel[hidden] { display: none !important; }

.cg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: #1f6b39;
    color: #ffffff;
}

.cg-head .cg-av { width: 40px; height: 40px; display: block; }
.cg-head b { display: block; font-size: 16px; line-height: 1.2; }
.cg-head small { font-size: 13px; opacity: .85; }

.cg-x {
    margin-left: auto;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cg-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.cg-row { display: flex; align-items: flex-end; gap: 8px; }
.cg-row.cg-me { justify-content: flex-end; }
.cg-av-small .cg-av { width: 28px; height: 28px; display: block; }

.cg-msg {
    max-width: 85%;
    min-width: 0;
    padding: 10px 13px;
    border-radius: 14px 14px 14px 4px;
    background: #eef6f0;
}

.cg-msg p { margin: 0 0 6px; }
.cg-msg p:last-child { margin: 0; }

.cg-me .cg-msg {
    border-radius: 14px 14px 4px 14px;
    background: #1f6b39;
    color: #ffffff;
}

.cg-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

a.cg-link,
a.cg-link:hover,
a.cg-link:focus {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #cfe2d6;
    border-radius: 999px;
    background: #ffffff;
    color: #1f6b39 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

a.cg-link:hover { border-color: #2d8f4e; }

.cg-mail { font-weight: 600; user-select: all; }

.cg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 42%;
    overflow-y: auto;
    padding: 12px 16px;
    border-top: 1px solid #dfe7e2;
}

.cg-chip {
    padding: 7px 12px;
    border: 1.5px solid #cfe2d6;
    border-radius: 999px;
    background: #ffffff;
    color: #1b2a24;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.cg-chip:hover { border-color: #2d8f4e; }
.cg-chip.cg-back { border-style: dashed; color: #5b6b63; }

.cg-foot {
    padding: 8px 16px 12px;
    color: #5b6b63;
    font-size: 12px;
}

.cg-launch:focus-visible,
.cg-x:focus-visible,
.cg-chip:focus-visible,
a.cg-link:focus-visible {
    outline: 3px solid #c9a227;
    outline-offset: 2px;
}

/* ---- Phones: full-screen sheet, avatar-only launcher ---- */

@media (max-width: 600px) {
    .cg-launch { padding: 5px; }
    .cg-launch-text { display: none; }

    .cg-panel {
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    html.cg-open,
    html.cg-open body { overflow: hidden; }
}

@media (prefers-reduced-motion: no-preference) {
    .cg-row { animation: cg-pop .25s ease-out both; }
    @keyframes cg-pop { from { transform: translateY(6px); } to { transform: none; } }
}