/* Luminous Scroll-Activated Floating World Map for Desktop /social/ (v20261125world5)
   - At the top of /social/, sidebars render normally with zero clutter.
   - As you scroll past the sidebars (body.swb-revealed), the sunlit floating World508 map
     (with all 38 bouncing gold crosses & waving flags) glides to life AND auto-focuses
     via IP-geo on the open LEFT side next to the social feed.
   - By DEFAULT, neither Left Navigator Dock nor Right Country Dock pops up until the user
     actually interacts with the map (clicks a bouncing cross/country, pans/zooms, or taps
     the tiny unobtrusive top-left Map Navigator pill) -> body.swb-engaged.
   - Right Dock renders the ACTUAL COMPLETE UNTRUNCATED Country/Region Card(s) from World508
     & countries.json (plus verified regional ministry showcase cards), with:
       * Full Right-Column Width Expand / Compact toggle (fills total right screen area)
       * Warm Honey-Gold minus (-) & plus (+) font-size reading zoom controls (persisted)
       * Minimize (- Dock) to bottom of original .col-right sidebar with one-click restore
   - Left Dock also includes Minimize (- Dock) to bottom of original .col-left sidebar.
   - Desktop-only (>=1100px); mobile stays clean & 0px overflow.
   - Self-hosted SIL OFL fonts only (Cormorant + Figtree). */

#swbWorldLayer,
#swbMapNavDock,
#swbCountryDock,
#swbPeekBanner,
#swbMapPill,
#swbRightPill {
  display: none;
}

.swb-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (min-width: 1100px) {
  /* =====================================================================
     1. FLOATING SUNLIT WORLD508 MAP LAYER
     ===================================================================== */
  #swbWorldLayer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.55s ease;
    background:
      radial-gradient(circle at 50% 18%, rgba(253, 230, 138, 0.26) 0%, rgba(255, 255, 255, 0) 48%),
      radial-gradient(ellipse 85% 65% at 15% 85%, rgba(147, 197, 253, 0.28) 0%, rgba(255, 255, 255, 0) 55%),
      radial-gradient(ellipse 85% 65% at 88% 82%, rgba(191, 219, 254, 0.30) 0%, rgba(255, 255, 255, 0) 58%),
      linear-gradient(180deg, #ffffff 0%, #f4f9ff 48%, #e4effd 100%);
  }

  body.swb-revealed #swbWorldLayer {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  #swbWorldLayer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 55%, rgba(226, 238, 255, 0.34) 100%);
    z-index: 2;
  }

  /* 50% sunlit translucent veil over the world map backdrop by default & when docked;
     smoothly fades away (opacity: 0) the instant user clicks a cross or interacts with map */
  #swbWorldMask {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: rgba(244, 249, 255, 0.50);
    opacity: 1;
    transition: opacity 0.35s ease;
  }
  body.swb-map-unmasked #swbWorldMask {
    opacity: 0;
  }

  .swb-map-float {
    position: absolute;
    inset: 52px -1vw -1vh -1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    animation: swbGentleFloat 22s ease-in-out infinite;
    will-change: transform;
    z-index: 1;
  }

  #swbWorldLayer.swb-paused .swb-map-float,
  #swbWorldLayer:hover .swb-map-float,
  body.swb-map-peek .swb-map-float {
    animation-play-state: paused;
  }

  @keyframes swbGentleFloat {
    0%   { transform: translate3d(0px, 0px, 0) scale(1.01); }
    25%  { transform: translate3d(10px, -8px, 0) scale(1.022); }
    50%  { transform: translate3d(-6px, -12px, 0) scale(1.015); }
    75%  { transform: translate3d(-11px, -4px, 0) scale(1.024); }
    100% { transform: translate3d(0px, 0px, 0) scale(1.01); }
  }

  @media (prefers-reduced-motion: reduce) {
    .swb-map-float { animation: none !important; }
  }

  #swbWorldLayer .w5m {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  #swbWorldLayer .w5m-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #swbWorldLayer .w5m-stage svg {
    width: 100%;
    height: 100%;
    max-height: none;
    filter: drop-shadow(0 12px 28px rgba(37, 99, 235, 0.09));
  }
  #swbWorldLayer .w5m-zoom,
  #swbWorldLayer .w5m-pill,
  #swbWorldLayer .w5m-fsx,
  #swbWorldLayer .w5m-feat {
    display: none !important;
  }

  /* Sunlit luminous white / pale-sky / emerald / honey-gold / royal-blue continents */
  #swbWorldLayer .wm-c {
    fill: rgba(195, 217, 245, 0.76);
    stroke: rgba(255, 255, 255, 0.94);
    stroke-width: 0.65;
    transition: fill 0.22s ease, filter 0.22s ease;
  }
  #swbWorldLayer .wm-c.w5-g { fill: rgba(48, 194, 121, 0.82); stroke: #ffffff; cursor: pointer; }
  #swbWorldLayer .wm-c.w5-g:hover, #swbWorldLayer .wm-c.w5-g.w5-sel { fill: #1eb066; filter: drop-shadow(0 0 8px rgba(34, 181, 107, 0.45)); }
  #swbWorldLayer .wm-c.w5-a { fill: rgba(242, 186, 62, 0.86); stroke: #ffffff; cursor: pointer; }
  #swbWorldLayer .wm-c.w5-a:hover, #swbWorldLayer .wm-c.w5-a.w5-sel { fill: #df9c18; filter: drop-shadow(0 0 8px rgba(229, 163, 29, 0.5)); }
  #swbWorldLayer .wm-c.w5-home { fill: rgba(37, 99, 235, 0.84); stroke: #ffffff; cursor: pointer; }
  #swbWorldLayer .wm-c.w5-home:hover, #swbWorldLayer .wm-c.w5-home.w5-sel { fill: #1d4ed8; filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.52)); }
  #swbWorldLayer .wm-c.w5-r { fill: rgba(224, 114, 106, 0.72); stroke: #ffffff; cursor: pointer; }

  #swbWorldLayer .w5-pins {
    transition: opacity 0.42s ease, visibility 0.42s ease;
  }
  body.swb-crosses-hidden #swbWorldLayer .w5-pins,
  body.swb-crosses-hidden #swbWorldLayer .w5-pin {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Static hand-carved wooden cross pinned at the user's IP-geo location while docked */
  #swbWorldLayer #swbUserWoodCross {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.42s ease, visibility 0.42s ease;
    animation: none !important;
  }
  body.swb-crosses-hidden #swbWorldLayer #swbUserWoodCross {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  #swbWorldLayer #swbUserWoodCross:hover {
    filter: drop-shadow(0 0 6px rgba(180, 122, 54, 0.72));
  }

  #swbWorldLayer .w5-pin { cursor: pointer; pointer-events: auto; }
  #swbWorldLayer .w5-pin-s { filter: drop-shadow(0 3px 6px rgba(15, 29, 58, 0.30)); }
  #swbWorldLayer .w5-pin:hover .w5-pin-s,
  #swbWorldLayer .w5-pin.w5-sel .w5-pin-s {
    filter: drop-shadow(0 0 9px rgba(234, 179, 8, 0.95)) drop-shadow(0 4px 10px rgba(37, 99, 235, 0.36));
  }
  #swbWorldLayer .w5-pin-pulse { stroke: #d99b1e; stroke-width: 1.5; }
  #swbWorldLayer .w5m-tip {
    background: rgba(15, 29, 58, 0.94);
    color: #ffffff;
    border: 1px solid rgba(245, 208, 97, 0.75);
    box-shadow: 0 12px 28px rgba(15, 29, 58, 0.22);
    z-index: 40;
  }

  /* Keep .shell non-blocking in empty side gutters so clicks pass straight through to bouncing crosses!
     Also make .col-left & .col-right scroll naturally (non-sticky) so infinite-scroll post appends
     never snap the sidebars back into the floating map viewport! */
  .shell {
    position: relative;
    z-index: 5;
    pointer-events: none;
  }
  .col-left, .col-center, .col-right { pointer-events: none; }
  .col-left, .col-right { position: static !important; top: auto !important; }
  .col-left > *, .col-center > *, .col-right > * { pointer-events: auto; }

  /* Subtle frosted polish on feed posts once floating map reveals behind them */
  body.swb-revealed .post-card {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(191, 219, 254, 0.78) !important;
    box-shadow: 0 12px 32px -14px rgba(30, 64, 135, 0.16) !important;
  }

  /* Explore Full Map mode */
  .col-center { transition: opacity 0.28s ease, transform 0.28s ease; }
  body.swb-map-peek .col-center {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
    transform: translateY(14px) scale(0.98);
  }
  body.swb-map-peek .col-center * { pointer-events: none !important; }

  #swbPeekBanner {
    display: none;
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    align-items: center;
    gap: 12px;
    padding: 9px 14px 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(217, 165, 54, 0.75);
    box-shadow: 0 14px 34px -10px rgba(30, 64, 135, 0.25);
    font-family: 'Figtree', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0f1d3a;
    pointer-events: auto;
  }
  body.swb-map-peek #swbPeekBanner { display: inline-flex; }
  .swb-peek-exit {
    border: 0; border-radius: 999px; background: #2563eb; color: #ffffff;
    font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 800; padding: 6px 13px; cursor: pointer;
  }
  .swb-peek-exit:hover { background: #1d4ed8; }

  /* =====================================================================
     2. UNOBTRUSIVE LAUNCHER / RESTORE PILLS
        Positioned cleanly at top-left / top-right so ZERO collision with
        bottom-left Churches-in-Need toast or bottom-right Clara chat!
     ===================================================================== */
  #swbMapPill {
    display: none;
    position: fixed;
    top: 84px;
    left: 18px;
    z-index: 16;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 11px;
    border-radius: 999px;
    border: 1.5px solid rgba(217, 165, 54, 0.75);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -10px rgba(15, 29, 58, 0.24), 0 0 0 2px rgba(254, 243, 199, 0.45);
    color: #0f1d3a;
    font-family: 'Figtree', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  #swbMapPill:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.30), 0 0 0 3px rgba(245, 208, 97, 0.55);
  }
  #swbMapPill .swb-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.26);
    flex-shrink: 0;
  }
  #swbMapPill .swb-pill-sub {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 999px;
  }

  body.swb-revealed:not(.swb-engaged) #swbMapPill,
  body.swb-revealed.swb-engaged.swb-left-min #swbMapPill {
    display: inline-flex;
  }

  #swbRightPill {
    display: none;
    position: fixed;
    top: 84px;
    right: 18px;
    z-index: 16;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 11px;
    border-radius: 999px;
    border: 1.5px solid rgba(37, 99, 235, 0.52);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -10px rgba(15, 29, 58, 0.24);
    color: #0f1d3a;
    font-family: 'Figtree', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  #swbRightPill:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 14px 28px -10px rgba(37, 99, 235, 0.34);
  }
  body.swb-revealed.swb-engaged.swb-right-min #swbRightPill {
    display: inline-flex;
  }

  /* =====================================================================
     3. FIXED LEFT DOCK: MAP NAVIGATOR (HIDDEN BY DEFAULT until swb-engaged!)
     ===================================================================== */
  #swbMapNavDock {
    display: block;
    position: fixed;
    top: 84px;
    left: max(18px, calc(50% - 686px));
    width: 282px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    z-index: 15;
    border-radius: 20px;
    padding: 15px 15px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(186, 214, 247, 0.90);
    box-shadow: 0 16px 36px -16px rgba(30, 64, 135, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-24px);
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
    box-sizing: border-box;
    transition:
      opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.42s ease,
      width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.swb-revealed.swb-engaged:not(.swb-left-min) #swbMapNavDock:not(.swb-is-docked) {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Left 37 Nations Card: Full Horizontal + Vertical Expand Mode (clear of bottom-left toast!) */
  #swbMapNavDock.swb-is-expanded:not(.swb-is-docked) {
    top: 76px;
    bottom: 82px;
    height: calc(100vh - 158px);
    max-height: calc(100vh - 158px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 18px;
  }
  #swbMapNavDock.swb-is-expanded:not(.swb-is-docked) .swb-country-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    align-content: start;
    gap: 6px;
    padding: 4px 4px 6px 0;
  }
  #swbMapNavDock.swb-is-expanded:not(.swb-is-docked) .swb-country-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  #swbMapNavDock.swb-is-expanded .swb-expand-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #ffffff;
  }
  .swb-nav-top-btns {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
  }

  /* =====================================================================
     4. FIXED RIGHT DOCK: FULL UNTRUNCATED COUNTRY & REGION CARDS
        (HIDDEN BY DEFAULT until swb-engaged! Supports full right-column
         Expand mode + honey-gold +/- text reading zoom!)
     ===================================================================== */
  #swbCountryDock {
    --swb-fs: 1;
    display: block;
    position: fixed;
    top: 84px;
    right: max(18px, calc(50% - 686px));
    width: 336px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    z-index: 15;
    border-radius: 20px;
    padding: 14px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 249, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(217, 165, 54, 0.65);
    box-shadow: 0 18px 42px -18px rgba(30, 64, 135, 0.28), 0 0 0 3px rgba(254, 243, 199, 0.40);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: #d9a536 transparent;
    transition:
      opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.42s ease,
      width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      right 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.25s ease;
  }
  body.swb-revealed.swb-engaged:not(.swb-right-min) #swbCountryDock:not(.swb-is-docked) {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
  #swbCountryDock.swb-flash {
    box-shadow: 0 18px 42px -14px rgba(37, 99, 235, 0.34), 0 0 0 4px rgba(245, 208, 97, 0.82) !important;
  }

  /* Wide Expanded Right Column Ergonomics */
  #swbCountryDock.swb-is-expanded:not(.swb-is-docked) {
    padding: 16px 18px;
  }
  #swbCountryDock.swb-is-wide .swb-facts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  #swbCountryDock.swb-is-wide .swb-dp-ctas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #swbCountryDock.swb-is-wide .swb-dp-ctas > :first-child:nth-last-child(1) {
    grid-column: 1 / -1;
  }
  #swbCountryDock.swb-is-wide .swb-dock-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* =====================================================================
     5. DOCKED / MINIMIZED COMPACT PILLS INSIDE ORIGINAL .col-left & .col-right SIDEBARS
        Collapses cleanly into sleek compact pills (never stays expanded!)
     ===================================================================== */
  .col-left #swbMapNavDock.swb-is-docked,
  .col-right #swbCountryDock.swb-is-docked {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: auto !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 55%, #fffbeb 100%) !important;
    border: 1.5px solid rgba(217, 165, 54, 0.65) !important;
    box-shadow: 0 6px 18px -12px rgba(15, 29, 58, 0.18) !important;
    margin-top: 2px;
    box-sizing: border-box;
  }

  .col-left #swbMapNavDock.swb-is-docked > :not(.swb-docked-banner),
  .col-right #swbCountryDock.swb-is-docked > :not(.swb-docked-banner) {
    display: none !important;
  }

  .swb-docked-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-family: 'Figtree', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0f1d3a;
  }
  .swb-is-docked .swb-docked-banner {
    display: flex;
  }
  .swb-docked-lbl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
  }
  .swb-docked-lbl b {
    font-weight: 800;
    color: #0f1d3a;
    white-space: nowrap;
  }
  .swb-docked-lbl small {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .swb-docked-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.25);
    flex-shrink: 0;
  }
  .swb-restore-btn {
    border: 0;
    border-radius: 999px;
    padding: 5px 11px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .swb-restore-btn:hover { background: #1e40af; }

  /* Minimize button on floating docks */
  .swb-min-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }
  .swb-min-btn:hover {
    background: #eff6ff;
    border-color: #60a5fa;
    color: #1d4ed8;
  }
  .swb-is-docked .swb-min-btn,
  .swb-is-docked .swb-expand-btn {
    display: none;
  }

  /* Compact dock width on medium-desktop 1100px..1360px (only when NOT expanded!) */
  @media (max-width: 1360px) {
    #swbMapNavDock:not(.swb-is-docked):not(.swb-is-expanded) { left: 12px; width: 244px; }
    #swbCountryDock:not(.swb-is-docked):not(.swb-is-expanded) { right: 12px; width: 282px; }
  }

  /* =====================================================================
     6. LEFT NAVIGATOR TYPOGRAPHY & CONTROLS
     ===================================================================== */
  .swb-nav-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .swb-nav-top-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
  .swb-nav-eyebrow { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #784c08; font-family: 'Figtree', sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .swb-nav-count { font-family: 'Figtree', sans-serif; font-size: 10.5px; font-weight: 800; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 3px 7px; border-radius: 999px; }
  .swb-nav-title { margin: 0 0 4px; font-family: 'Cormorant', Georgia, serif; font-size: 22px; font-weight: 700; line-height: 1.1; color: #0f1d3a; }
  .swb-nav-sub { margin: 0 0 10px; font-family: 'Figtree', sans-serif; font-size: 12px; line-height: 1.4; color: #4b5d7a; }
  .swb-geo-badge { display: none; align-items: center; gap: 6px; padding: 6px 9px; margin: 0 0 10px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; font-family: 'Figtree', sans-serif; font-size: 11.5px; font-weight: 700; color: #1e3a8a; }
  .swb-geo-badge.is-ready { display: flex; }
  .swb-nav-actions { display: flex; gap: 6px; margin-bottom: 10px; }
  .swb-btn-peek { flex: 1; border: 0; border-radius: 10px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff; font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 800; padding: 8px 10px; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.55); }
  .swb-btn-peek:hover { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); }
  body.swb-map-peek .swb-btn-peek { background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%); color: #1c1303; }
  .swb-ctrl-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
  .swb-ctrl-btn { border: 1px solid #d4e3f8; background: #ffffff; color: #1e3a6d; border-radius: 9px; padding: 6px 0; font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 800; cursor: pointer; }
  .swb-ctrl-btn:hover { background: #eff6ff; border-color: #60a5fa; }
  .swb-ctrl-btn[aria-pressed="true"] { background: #fef3c7; border-color: #eab308; color: #784c08; }
  .swb-search-wrap { position: relative; margin-bottom: 8px; }
  .swb-search { width: 100%; box-sizing: border-box; padding: 7px 10px 7px 30px; border-radius: 10px; border: 1px solid #d4e3f8; background: #ffffff; color: #0f1d3a; font-family: 'Figtree', sans-serif; font-size: 12.5px; outline: none; }
  .swb-search:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
  .swb-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #64748b; pointer-events: none; }
  .swb-country-list { list-style: none; margin: 0; padding: 2px 2px 2px 0; max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: #bfdbfe transparent; }
  .swb-country-btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.78); color: #0f1d3a; font-family: 'Figtree', sans-serif; font-size: 12.5px; font-weight: 700; text-align: left; cursor: pointer; }
  .swb-country-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
  .swb-country-btn.is-active { background: linear-gradient(135deg, #eff6ff 0%, #fef9e7 100%); border-color: #d9a536; box-shadow: 0 4px 12px -6px rgba(217, 165, 54, 0.55); }
  .swb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .swb-dot-home { background: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22); }
  .swb-dot-g    { background: #22b56b; box-shadow: 0 0 0 2px rgba(34, 181, 107, 0.22); }
  .swb-dot-a    { background: #eab308; box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.25); }
  .swb-dot-r    { background: #dc2626; }
  .swb-cflag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); flex-shrink: 0; }
  .swb-cname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .swb-cbadge { font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: #dbeafe; color: #1d4ed8; text-transform: uppercase; }

  /* =====================================================================
     7. RIGHT DOCK HEADER BAR: EXPAND WIDTH + HONEY-GOLD +/- READING ZOOM
     ===================================================================== */
  .swb-dock-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2ecfb;
  }
  .swb-dock-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .swb-dock-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e3a8a;
  }
  .swb-dock-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    flex-wrap: wrap;
  }

  /* Warm Honey-Gold Font Zoom Group (- | 100% | +) */
  .swb-font-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdf5 0%, #fef6dc 100%);
    border: 1px solid rgba(212, 168, 75, 0.72);
    box-shadow: 0 2px 8px -4px rgba(180, 128, 22, 0.35);
  }
  .swb-gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #b88b2b;
    background: linear-gradient(180deg, #f5d061 0%, #d4a84b 100%);
    color: #0f1d3a;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 5px -2px rgba(15, 29, 58, 0.25);
    transition: transform 0.14s ease, filter 0.14s ease, opacity 0.14s ease;
  }
  .swb-gold-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }
  .swb-gold-btn:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.96);
  }
  .swb-gold-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
  }
  .swb-font-readout {
    border: 0;
    background: transparent;
    color: #0f1d3a;
    font-family: 'Figtree', sans-serif;
    font-size: 11px;
    font-weight: 800;
    min-width: 38px;
    text-align: center;
    padding: 0 3px;
    cursor: pointer;
  }
  .swb-font-readout:hover { color: #1d4ed8; }

  /* Full Right-Column Width Expand / Compact Button */
  .swb-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #93c5fd;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    color: #1e3a8a;
    font-family: 'Figtree', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }
  .swb-expand-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
  }
  #swbCountryDock.swb-is-expanded .swb-expand-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #1d4ed8;
    color: #ffffff;
  }

  /* =====================================================================
     8. RIGHT DOCK: FULL UNTRUNCATED COUNTRY & REGIONAL CARDS (SCALABLE TEXT)
     ===================================================================== */
  .swb-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .swb-card {
    background: #ffffff;
    border: 1px solid #dce8fa;
    border-radius: 15px;
    padding: 14px;
    box-shadow: 0 6px 18px -12px rgba(15, 29, 58, 0.18);
    font-family: 'Figtree', sans-serif;
    color: #0f1d3a;
  }
  .swb-card-gold {
    border-color: rgba(217, 165, 54, 0.72);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  }
  .swb-card-navy {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border-color: #bfdbfe;
  }

  .swb-dp-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 10px; }
  .swb-dp-flag-slot { flex-shrink: 0; min-width: 56px; overflow: visible; display: flex; align-items: center; justify-content: center; padding-top: 2px; }
  .swb-dp-flag { width: 52px; height: 36px; object-fit: cover; border-radius: 7px; border: 1px solid rgba(15, 29, 58, 0.12); box-shadow: 0 4px 10px rgba(15, 29, 58, 0.12); display: block; }
  .swb-dp-titles { flex: 1; min-width: 0; }
  .swb-dp-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; font-size: calc(10px * var(--swb-fs, 1)); font-weight: 800; letter-spacing: 0.04em; line-height: 1.3; text-transform: uppercase; margin-bottom: 5px; max-width: 100%; }
  .swb-st-home { background: #dbeafe; color: #1d4ed8; }
  .swb-st-g    { background: #dcfce7; color: #15803d; }
  .swb-st-a    { background: #fef3c7; color: #92400e; }
  .swb-st-r    { background: #fee2e2; color: #b91c1c; }
  .swb-dp-name { margin: 0; font-family: 'Cormorant', Georgia, serif; font-size: calc(25px * var(--swb-fs, 1)); font-weight: 700; line-height: 1.08; color: #0f1d3a; }
  .swb-dp-native { font-size: calc(12px * var(--swb-fs, 1)); color: #64748b; margin-top: 2px; }
  .swb-dp-region { font-size: calc(10.5px * var(--swb-fs, 1)); font-weight: 700; color: #2563eb; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
  .swb-dp-intro { margin: 6px 0 0; font-family: 'Figtree', sans-serif; font-size: calc(12.2px * var(--swb-fs, 1)); line-height: 1.44; font-weight: 600; color: #334155; }

  /* Legal/Ministry Status Callout */
  .swb-callout {
    border-radius: 11px;
    padding: 10px 12px;
    margin: 0 0 11px;
    font-size: calc(12.5px * var(--swb-fs, 1));
    line-height: 1.5;
    font-weight: 600;
  }
  .swb-callout-home { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
  .swb-callout-g    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; }
  .swb-callout-a    { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
  .swb-callout-r    { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }

  /* 4-Tile Profile Stats & Key Facts */
  .swb-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 11px; }
  .swb-fact-box { background: #f8fbff; border: 1px solid #e2ecfb; border-radius: 10px; padding: 8px 10px; }
  .swb-fact-box.is-wide { grid-column: 1 / -1; }
  .swb-fact-lbl { font-size: calc(9.5px * var(--swb-fs, 1)); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; color: #475569; margin-bottom: 3px; }
  .swb-fact-val { font-size: calc(12.2px * var(--swb-fs, 1)); font-weight: 700; color: #0f1d3a; line-height: 1.35; }
  .swb-fact-val a { color: #2563eb; text-decoration: underline; font-weight: 700; }

  /* Sections inside full card */
  .swb-sec { margin: 0 0 12px; }
  .swb-sec:last-child { margin-bottom: 0; }
  .swb-sec-h {
    margin: 0 0 6px;
    font-family: 'Figtree', sans-serif;
    font-size: calc(10.5px * var(--swb-fs, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e3a6d;
  }
  .swb-sec-p {
    margin: 0;
    font-size: calc(13px * var(--swb-fs, 1));
    line-height: 1.56;
    color: #24344d;
  }

  /* Religious Landscape Bar & Tradition List */
  .swb-rel-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #e2e8f0; margin-bottom: 7px; }
  .swb-rel-seg-cath { background: #2563eb; }
  .swb-rel-seg-prot { background: #16a34a; }
  .swb-rel-seg-ochr { background: #eab308; }
  .swb-rel-seg-oth  { background: #94a3b8; }
  .swb-rel-seg-unaf { background: #cbd5e1; }
  .swb-rel-legend { display: flex; flex-wrap: wrap; gap: 5px 11px; font-size: calc(11.5px * var(--swb-fs, 1)); color: #334155; margin-bottom: 6px; }
  .swb-rel-item { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
  .swb-rel-sw { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

  .swb-trad-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f8fbff;
    border: 1px solid #e2ecfb;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: calc(11.5px * var(--swb-fs, 1));
    line-height: 1.42;
    color: #334155;
  }
  .swb-trad-list li b { color: #0f1d3a; }

  .swb-src {
    margin: 6px 0 0;
    font-size: calc(10.8px * var(--swb-fs, 1));
    line-height: 1.44;
    color: #64748b;
  }
  .swb-src a { color: #2563eb; text-decoration: underline; }

  /* Official Documents List */
  .swb-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .swb-doc-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    text-decoration: none;
    font-size: calc(12px * var(--swb-fs, 1));
    font-weight: 700;
    line-height: 1.34;
  }
  .swb-doc-list a:hover { background: #eff6ff; border-color: #60a5fa; }
  .swb-doc-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
  }

  /* Pricing Card */
  .swb-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .swb-price-title {
    margin: 0;
    font-family: 'Cormorant', Georgia, serif;
    font-size: calc(20px * var(--swb-fs, 1));
    font-weight: 700;
    color: #0f1d3a;
  }
  .swb-price-tier {
    font-size: calc(10px * var(--swb-fs, 1));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
  }
  .swb-price-list {
    list-style: none;
    margin: 0 0 9px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .swb-price-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e2ecfb;
    font-size: calc(12px * var(--swb-fs, 1));
  }
  .swb-price-n { color: #334155; font-weight: 600; }
  .swb-price-v { text-align: right; color: #0f1d3a; font-weight: 800; }
  .swb-price-v small { display: block; font-size: calc(10.5px * var(--swb-fs, 1)); font-weight: 600; color: #64748b; }

  /* Bonus Regional Ministry / Partner Church Showcase Cards */
  .swb-show-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 9px;
    border: 1px solid rgba(15, 29, 58, 0.10);
    display: block;
  }
  .swb-show-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #78350f;
    font-size: calc(9.5px * var(--swb-fs, 1));
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .swb-show-title {
    margin: 0 0 5px;
    font-family: 'Cormorant', Georgia, serif;
    font-size: calc(21px * var(--swb-fs, 1));
    font-weight: 700;
    line-height: 1.14;
    color: #0f1d3a;
  }
  .swb-show-desc {
    margin: 0 0 10px;
    font-size: calc(12.5px * var(--swb-fs, 1));
    line-height: 1.52;
    color: #334155;
  }

  /* Related Countries Chips */
  .swb-rel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }
  .swb-rel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f1d3a;
    font-family: 'Figtree', sans-serif;
    font-size: calc(11.8px * var(--swb-fs, 1));
    font-weight: 700;
    cursor: pointer;
  }
  .swb-rel-chip:hover { background: #eff6ff; border-color: #60a5fa; color: #1d4ed8; }

  /* Action Buttons */
  .swb-dp-ctas { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 8px; }
  .swb-cta-blue { display: block; text-align: center; text-decoration: none; padding: 9px 12px; border-radius: 10px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff !important; font-family: 'Figtree', sans-serif; font-size: calc(12.5px * var(--swb-fs, 1)); font-weight: 800; box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.55); }
  .swb-cta-blue:hover { background: #1d4ed8; }
  .swb-cta-gold { display: block; text-align: center; text-decoration: none; padding: 8px 12px; border-radius: 10px; background: linear-gradient(135deg, #f5d061 0%, #e5b842 100%); color: #1c1303 !important; font-family: 'Figtree', sans-serif; font-size: calc(12.2px * var(--swb-fs, 1)); font-weight: 800; }
  .swb-cta-gold:hover { filter: brightness(0.97); }
  .swb-cta-ghost { display: block; text-align: center; text-decoration: none; padding: 8px 12px; border-radius: 10px; background: #ffffff; border: 1px solid #cbd5e1; color: #1e3a6d !important; font-family: 'Figtree', sans-serif; font-size: calc(12.2px * var(--swb-fs, 1)); font-weight: 700; }
  .swb-cta-ghost:hover { background: #eff6ff; border-color: #60a5fa; }

  .swb-law-note {
    margin: 8px 0 0;
    font-size: calc(10.8px * var(--swb-fs, 1));
    line-height: 1.44;
    color: #64748b;
  }
}
