/* =========================================================
   MultiWeather - compat.css (loads LAST)
   Purpose: small layout shims that fix common misalignment
   Safe: targets only the “board” family (mw-header / mw-city etc)
   ========================================================= */

/* Board-family header alignment (cards 8/30/35/59/65 etc) */
.mwpl-wrap .mw-header{
  display: flex;
  align-items: center;           /* fixes title/icon vertical drift */
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mwpl-wrap .mw-header-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Only style date/time when it’s inside a HEADER row */
.mwpl-wrap :where(.mw-header, .mw-header-row) .mw-date-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mwpl-wrap :where(.mw-header, .mw-header-row) .mw-local-time{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}


.mwpl-wrap .mw-local-time{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Icon “centering” helpers (does NOT force sizes) */
.mwpl-wrap .mw-icon-now{
  display: grid;
  place-items: center;
  line-height: 1;
}

/* WeatherIcons squares fix (keep here too, since it must win) */
.mwpl-wrap .wi,
.mwpl-wrap i.wi,
.mwpl-wrap .wi::before,
.mwpl-wrap i.wi::before{
  font-family: "weathericons" !important;
  font-style: normal !important;
  font-weight: normal !important;
}

/* =========================================================
   Tide dial overlays: force DATE on one line and TIME below it
   Affects: 15/16/17 + 51–55
   ========================================================= */

.mwpl-wrap :where(
  .mw15-dial-time-container,
  .mw16-dial-time-container,
  .mw17-dial-time-container,
  .mw51-dial-time-container
) .mw-date-wrap{
  display: block !important;
  text-align: center;
}

.mwpl-wrap :where(
  .mw15-dial-time-container,
  .mw16-dial-time-container,
  .mw17-dial-time-container,
  .mw51-dial-time-container
) .mw-date{
  display: block;
}

.mwpl-wrap :where(
  .mw15-dial-time-container,
  .mw16-dial-time-container,
  .mw17-dial-time-container,
  .mw51-dial-time-container
) .mw-local-time{
  display: block !important;
  margin-top: 2px;
  text-align: center;
}

/* Keeps the “__:__” area stable even as numbers tick */
.mwpl-wrap :where(
  .mw15-dial-time-container,
  .mw16-dial-time-container,
  .mw17-dial-time-container,
  .mw51-dial-time-container
) .mw-live-time{
  display: inline-block;
  min-width: 6ch;
  font-variant-numeric: tabular-nums;
}
/*----------------------------------------------------------*/
/* =========================================================
   Hourly strip right-edge clipping (rounded card + overflow:hidden)
   Cards: 2,3,4,11–14,47–50
   ========================================================= */
.mwpl-wrap .mw-card.card-1  .mw-hourly-strip,
.mwpl-wrap .mw-card.card-2  .mw-hourly-strip,
.mwpl-wrap .mw-card.card-3  .mw-hourly-strip,
.mwpl-wrap .mw-card.card-4  .mw-hourly-strip,
.mwpl-wrap .mw-card.card-11 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-12 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-13 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-14 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-47 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-48 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-49 .mw-hourly-strip,
.mwpl-wrap .mw-card.card-50 .mw-hourly-strip {
  box-sizing: border-box;
  width: 100%;
  padding-left: 6px !important;
  padding-right: 28px !important; /* THIS is the key */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/*---------------------------------------------------------------------------*/
/* =========================================================
   Board family (8,9,10,22–26,56–60)
   FIX: side-by-side unless the CARD is actually narrow
   ========================================================= */

.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
){
  container-type: inline-size;
  container-name: mwboard;
}

/* DEFAULT = side-by-side */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-current-hourly-wrap{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 16px !important;
  min-width: 0 !important;
}

/* UNDO any “phone-lock” rules */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) :is(.mw-current,.mw-hourly){
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: initial !important;
}

/* Left column */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-current{
  flex: 0 0 340px !important;
  min-width: 280px !important;
}

/* Right “hourly grid container” = .mw-hourly (parent of .mw-hour-block) */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-hourly{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* Only stack when the CARD is actually narrow */
@supports (container-type: inline-size){
  @container mwboard (max-width: 520px){
    .mw-current-hourly-wrap{
      flex-direction: column !important;
      flex-wrap: nowrap !important;
    }
    .mw-current{
      flex: 0 0 auto !important;
      min-width: 0 !important;
    }
    .mw-hourly{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @container mwboard (max-width: 380px){
    .mw-hourly{ grid-template-columns: 1fr !important; }
  }
}
/* === Board family: hourly should be 3 across x 2 down, square tiles === */

.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-hourly{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* Make each hour tile square */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-hour-block{
  aspect-ratio: 1 / 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px 8px !important;
}

/* Give the hourly column enough width so 3-across can be squares */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-current{
  flex: 0 0 300px !important;  /* was ~340; shrinking this makes hourly wider */
  min-width: 260px !important;
}

/* =========================================================
   Board family: shrink NOW block (Ocean-like) + keep wind
   ========================================================= */

@supports (container-type: inline-size){

  /* When the card is in that “Astra content column” width range */
  @container mwboard (max-width: 980px){

    /* --- NOW: shrink typographic scale + spacing --- */

    /* Main temp (Ocean ~34px vibe) */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-temp-now{
      font-size: 34px !important;
      line-height: 1.05 !important;
      margin: 0.35rem 0 0.25rem !important;
    }

    /* Condition line */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-condition-now{
      font-size: 14px !important;
      line-height: 1.2 !important;
      margin: 0.1rem 0 0.25rem !important;
    }

    /* The “Now” details grid (two columns of stats) */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-detail-grid{
      font-size: 0.92rem !important;
      gap: 0.22rem 0.55rem !important;
    }

    /* Big left weather icon inside NOW */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-icon-now{
      font-size: 74px !important;
      line-height: 1 !important;
    }

    /* Moon stays inside and smaller */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-moon-img{
      top: 6px !important;
      right: 6px !important;
      width: 56px !important;
      height: auto !important;
    }
  }

  /* --- 7-day: keep wind but compact so tiles remain square --- */
  @container mwboard (max-width: 980px){

    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-forecast-item{
      aspect-ratio: 1 / 1 !important;
      padding: 10px 8px !important;
      line-height: 1.12 !important;
    }

    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-forecast-item i.wi{
      font-size: 26px !important;
      margin: 0 0 0.2rem !important;
    }

    /* keep wind, just smaller/tighter */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-wind{
      font-size: 0.78rem !important;
      margin-top: 0.18rem !important;
      opacity: 0.95 !important;
    }
  }
}
/* =========================================================
   Board family final sanity: top bar + moon placement
   ========================================================= */

@supports (container-type: inline-size){
  @container mwboard (max-width: 980px){

    /* --- TOP BAR: shrink + prevent overlap --- */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-topbar{
      font-size: 13px !important;
      line-height: 1.2 !important;
      padding: 10px 14px !important;
    }

    /* If title/date/time are flex children, this stops them crushing each other */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-topbar > *{
      min-width: 0 !important;
    }

    /* Keep the left title from running over the center/right */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) .mw-city{
      font-size: 16px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    /* Date + local time slightly smaller */
    .mwpl-wrap .mw-card:is(
      .card-8,.card-9,.card-10,
      .card-22,.card-23,.card-24,.card-25,.card-26,
      .card-56,.card-57,.card-58,.card-59,.card-60
    ) :is(.mw-date, .mw-local-time){
      font-size: 13px !important;
      white-space: nowrap !important;
    }

    .mwpl-wrap .mw-card:is(
        .card-8,.card-9,.card-10,
        .card-22,.card-23,.card-24,.card-25,.card-26,
        .card-56,.card-57,.card-58,.card-59,.card-60
        ) .mw-moon-img{
        position: absolute !important;

        top: 12px !important;
        right: 14px !important;

        left: auto !important;     /* <- KEY: undo any left-based anchoring */
        bottom: auto !important;
        transform: none !important;/* <- KEY: undo any translateX/scale rules */

        width: 72px !important;
        height: auto !important;
    }
  }
}
/* === FIX: moon is anchoring to the icon wrapper; anchor it to the NOW panel instead === */

.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-current{
  position: relative !important; /* moon will anchor here */
}

/* IMPORTANT: stop the icon wrapper from being the positioned parent */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-weather-icon-wrapper{
  position: static !important; /* <- this is the “unstick” */
}

.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10,
  .card-22,.card-23,.card-24,.card-25,.card-26,
  .card-56,.card-57,.card-58,.card-59,.card-60
) .mw-moon-img{
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;

  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: 72px !important;
  height: auto !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

/*=====================================================*/
/* === Cards 27–31: lift moon up a bit === */
.mwpl-wrap .mw-card:is(.card-27,.card-28,.card-29,.card-30,.card-31) .mw-moon-img{
  top: -0px !important;     /* was lower; raise it */
  right: 14px !important;  /* keep consistent */
}
/* =========================================================
   Cards 32–36: theme-proof layout locks (TT5/Astra)
   Based on your working Card-32 lock section:
   - fixed NOW column
   - hourly pills as scroller with fixed pill width/height
   - 7-day strip stays one row on desktop
   ========================================================= */

.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36){
  --mw-pill-w: 8.0rem;
  --mw-pill-h: 13rem;
  --mw-now-col: 13.5rem;
}

/* GRID: fixed NOW column, prevent stretch */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-main-grid{
  grid-template-columns: minmax(0, var(--mw-now-col)) minmax(0, 1fr) !important;
  align-items: start !important;
}

/* NOW panel: slightly tighter */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-now-panel{
  padding: 0.60rem 0.85rem !important;
  gap: 0.45rem !important;
}
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-now-top{ gap: 0.60rem !important; }
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-icon-stack{ width: 3.8rem !important; height: 3.8rem !important; }
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-temp-primary{ font-size: 2.2rem !important; }
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-now-stats{ row-gap: 0.08rem !important; font-size: 0.86rem !important; }

/* HOURLY: scroller row */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hourly-panel{
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: flex-start !important;
  -webkit-overflow-scrolling: touch !important;
}

/* HOURLY: pills */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pill{
  box-sizing: border-box !important;

  flex: 0 0 var(--mw-pill-w) !important;
  width: var(--mw-pill-w) !important;
  max-width: var(--mw-pill-w) !important;

  max-height: var(--mw-pill-h) !important;
  padding: 0.40rem 0.45rem !important;
  gap: 0.18rem !important;
  line-height: 1.05 !important;

  overflow: visible !important;
}

.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pill *{
  min-width: 0 !important;
  margin: 0 !important;
}

.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pill i{
  font-size: 2.8rem !important;
  line-height: 1 !important;
  display: block !important;
  margin-bottom: 0.85rem !important;
}

/* text sizing inside pills */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pill .mw-hour-time{ font-size: 1.10rem !important; }
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pill .mw-hour-temp{ font-size: 1.35rem !important; }
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-pop,
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-wind{ font-size: 0.98rem !important; }

.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-hour-extra{
  font-size: 0.96rem !important;
  gap: 0.14rem !important;
}

/* Keep moon bubble style (your small bubble placement) */
.mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-moon-img{
  position: absolute !important;
  right: -0.15rem !important;
  bottom: -0.05rem !important;
  width: 2.5rem !important;
  height: auto !important;
}

/* 7-DAY: keep one row, shrink to fit on desktop */
@media (min-width: 900px){
  .mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-forecast-strip{
    overflow-x: hidden !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  .mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-forecast-item{
    flex: 1 1 0 !important;
    flex-basis: 0 !important;
    min-width: 0 !important;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }

  .mwpl-wrap .mw-card:is(.card-32,.card-33,.card-34,.card-35,.card-36) .mw-forecast-item *{
    min-width: 0 !important;
  }
}
/*==============================================*/

/* =========================================================
   Cards 61–66: HARD center hourly + day icon IMAGES
   (same approach as card-2, but scoped to 61–66)
   ========================================================= */

.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66)
  .mw-hourly-panel .mw-hour-pill{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66)
  .mw-hourly-panel .mw-hour-pill > img.mw-hour-icon{
  width: 50px !important;
  height: 50px !important;
  aspect-ratio: 1 / 1 !important;

  display: block !important;
  margin: 0 auto 0.25rem !important;

  object-fit: contain !important;
  object-position: 50% 50% !important;

  position: static !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* 7-day icons in these cards */
.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66)
  .mw-forecast-strip .mw-forecast-item{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66)
  .mw-forecast-strip .mw-forecast-item > img.mw-day-icon{
  width: 64px !important;
  height: 64px !important;
  aspect-ratio: 1 / 1 !important;

  display: block !important;
  margin: 0 auto 0.35rem !important;

  object-fit: contain !important;
  object-position: 50% 50% !important;

  position: static !important;
  float: none !important;
  transform: none !important;
}
/* =========================================================
   Cards 61–66: big temp slightly smaller + nudged left
   ========================================================= */

.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66) .mw-temp-primary{
  font-size: clamp(2.2rem, 3.1vw, 2.85rem) !important; /* slightly smaller */
  margin-left: -8px !important;                         /* nudge left */
  line-height: 1.05 !important;
}
/* Cards 61–66: make mw-now-desc slightly smaller */
.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65,.card-66) .mw-now-desc{
  font-size: 12.5px !important;  /* was ~15px */
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
}
/*=========================================================================================*/
/* =========================================================
   Cards 2–4: NOW icon has no class (DevTools shows just "img")
   Force a sane, consistent size so themes can’t blow it up
   ========================================================= */

.mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4) .mw-now > img{
  display: block !important;
  width: 165px !important;      /* adjust: 80–110 is typical */
  max-width: 165px !important;
  height: auto !important;
  margin: 0 auto 0.35rem !important;
}
/* =========================================================
   Fix “falls off right side”: allow text to shrink/wrap inside MW cards
   (prevents long strings from blowing the layout)
   ========================================================= */

.mwpl-wrap .mw-card{
  overflow: hidden !important; /* last-resort clip */
}

.mwpl-wrap .mw-card *{
  min-width: 0 !important;     /* lets flex/grid children actually shrink */
}

/* Titles/labels: keep inside card */
.mwpl-wrap .mw-card :is(.mw-city,.mw-location,.mw-title){
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Stat rows / tide lines: allow wrapping */
.mwpl-wrap .mw-card :is(.mw-now-stats,.mw-stats,.mw-tide-grid,.mw-tide-lines,.mw-tide-info){
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
/*========================================================*/
/* Cards 56–60: force mw-detail-grid font size */
.mwpl-wrap .mw-card.card-56 .mw-detail-grid,
.mwpl-wrap .mw-card.card-57 .mw-detail-grid,
.mwpl-wrap .mw-card.card-58 .mw-detail-grid,
.mwpl-wrap .mw-card.card-59 .mw-detail-grid,
.mwpl-wrap .mw-card.card-60 .mw-detail-grid{
  font-size: 10.3px !important;
  line-height: 1.2 !important;
}
/* Cards 61–65: make the “now stats” block readable */
.mwpl-wrap .mw-card.card-61 .mw-now-stats,
.mwpl-wrap .mw-card.card-62 .mw-now-stats,
.mwpl-wrap .mw-card.card-63 .mw-now-stats,
.mwpl-wrap .mw-card.card-64 .mw-now-stats,
.mwpl-wrap .mw-card.card-65 .mw-now-stats{
  font-size: 10.3px;      /* was ~10.3px */
  line-height: 1.25;
}
/* =========================================================
   Colibri theme shield (ONLY applies when Colibri is active)
   Purpose: beat Colibri's #colibri .style-local-* specificity
   ========================================================= */

/* Re-assert the baseline only inside Colibri */
#colibri .mwpl-wrap,
#colibri .mwpl-wrap *,
#colibri .mwpl-wrap *::before,
#colibri .mwpl-wrap *::after {
  box-sizing: border-box;
}

/* Typography + spacing stability */
#colibri .mwpl-wrap {
  line-height: 1.2;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Theme margin defaults can destroy tight card layouts */
#colibri .mwpl-wrap :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, figure) {
  margin: 0;
  padding: 0;
}

/* Builder themes love forcing img max-width:100% (breaks icons/graphs) */
#colibri .mwpl-wrap img,
#colibri .mwpl-wrap svg {
  max-width: none !important;
  height: auto;
  vertical-align: middle;
}
/* Colibri: keep icons from getting weird baseline spacing, but DO NOT override sizes */
#colibri .mwpl-wrap .wi,
#colibri .mwpl-wrap i.wi,
#colibri .mwpl-wrap .wi::before,
#colibri .mwpl-wrap i.wi::before {
  line-height: 1;
}


/* Flex sanity: keep header left + date/time stacked right */
#colibri .mwpl-wrap .mw-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
#colibri .mwpl-wrap .mw-header-row .mw-date-wrap {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
  text-align: right;
}

/* Prevent flex/grid children overflow weirdness */
#colibri .mwpl-wrap :where(.mw-header-row, .mw-row, .mw-grid, .mw-flex) > * {
  min-width: 0;
}

/*-------------------------------------------------------------------------------*/
/* =========================================================
   Colibri hard-compat
   Colibri overrides text-align / flex behavior in content areas.
   This block ONLY runs under #colibri.
   ========================================================= */

/* 1) Banner date + local time: RIGHT side, STACKED (fixes most cards that have it) */
#colibri .mwpl-wrap :where(.mw-header, .mw-header-row){
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-width: 0 !important;
}

#colibri .mwpl-wrap :where(.mw-header, .mw-header-row) .mw-date-wrap{
  margin-left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 4px !important;
  white-space: nowrap !important;
  text-align: right !important;
}

#colibri .mwpl-wrap :where(.mw-header, .mw-header-row) .mw-local-time{
  justify-content: flex-end !important;
}


/* 2) Hourly strip (Colibri only): prevent “starts off-screen left” */
#colibri .mwpl-wrap .mw-hourly-strip{
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;

  /* keep scrolling available if needed */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;

  /* REMOVE the left-bias padding hack (this is what makes it look shoved) */
  padding-left: 0 !important;
  padding-right: 0 !important;

  /* if Colibri forces centering on an overflowing flex row, it can “start off-screen” */
  justify-content: flex-start !important;

  /* kill common Colibri/layout shifters */
  margin-left: 0 !important;
  transform: none !important;

  /* still keep the “last pill visible” effect without padding bias */
  scroll-padding-left: 12px !important;
  scroll-padding-right: 28px !important;
}


/* 3) Compact “centered” cards (5,6,7): location/temp/icon drifting left */
#colibri .mwpl-wrap .mw-card:is(.card-5,.card-6,.card-7){
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card:is(.card-5,.card-6,.card-7) .mw-now{
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card:is(.card-5,.card-6,.card-7) :where(.mw-loc,.mw-temp,.mw-cond){
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* 4) Tide “header pile-left” cards (15,16,17,51–55) */
#colibri .mwpl-wrap .mw-card.card-15 .mw15-header,
#colibri .mwpl-wrap .mw-card.card-16 .mw16-header,
#colibri .mwpl-wrap .mw-card.card-17 .mw17-header,
#colibri .mwpl-wrap .mw-card:is(.card-51,.card-52,.card-53,.card-54,.card-55) .mw51-header{
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card.card-15 :where(.mw15-location,.mw15-weather,.mw15-pressure,.mw15-hi-lo),
#colibri .mwpl-wrap .mw-card.card-16 :where(.mw16-location,.mw16-weather,.mw16-pressure,.mw16-hi-lo),
#colibri .mwpl-wrap .mw-card.card-17 :where(.mw17-location,.mw17-weather,.mw17-pressure,.mw17-hi-lo),
#colibri .mwpl-wrap .mw-card:is(.card-51,.card-52,.card-53,.card-54,.card-55) :where(.mw51-location,.mw51-weather,.mw51-pressure,.mw51-hi-lo){
  text-align: center !important;
}


/* 5) 3-day outlook pushing off the card (18–21 and any using mw-forecast-strip) */
#colibri .mwpl-wrap .mw-forecast-strip{
  flex-wrap: wrap !important;
  max-width: 100% !important;
  justify-content: center !important;
}

#colibri .mwpl-wrap .mw-forecast-item{
  flex: 1 1 90px !important;
  min-width: 90px !important;
  text-align: center !important;
}

/* Colibri: fix ExtraInfo action row placement */
#colibri .mwpl-wrap .mwpl-actions-row{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

#colibri .mwpl-wrap .mwpl-actions-left,
#colibri .mwpl-wrap .mwpl-actions-right{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#colibri .mwpl-wrap .mwpl-actions-right{
  margin-left: auto !important;
  justify-content: flex-end !important;
}

/* Colibri sometimes “restyles” buttons */
#colibri .mwpl-wrap .mwpl-extrainfo-btn{
  font-size: 9px !important;
  line-height: 1.1 !important;
  padding: 2px 8px !important;
}
/*========================================================================*/
/* =========================================================
   Colibri: Tide Dial family (15–17, 51–55)
   Fix: header content piling left + dial overlay centering + icon sizing
   ========================================================= */

#colibri .mwpl-wrap .mw-card:is(.card-15,.card-16,.card-17,.card-51,.card-52,.card-53,.card-54,.card-55)
:is(.mw15-header,.mw16-header,.mw17-header,.mw51-header){
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card:is(.card-15,.card-16,.card-17,.card-51,.card-52,.card-53,.card-54,.card-55)
:is(.mw15-weather,.mw16-weather,.mw17-weather,.mw51-weather){
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Re-assert the key header lines */
#colibri .mwpl-wrap .mw-card:is(.card-15,.card-16,.card-17,.card-51,.card-52,.card-53,.card-54,.card-55)
:is(.mw15-location,.mw16-location,.mw17-location,.mw51-location,
    .mw15-temp,.mw16-temp,.mw17-temp,.mw51-temp,
    .mw15-hi-lo,.mw16-hi-lo,.mw17-hi-lo,.mw51-hi-lo,
    .mw15-pressure,.mw16-pressure,.mw17-pressure,.mw51-pressure){
  text-align: center !important;
}

/* Keep the right column right-aligned (don’t let Colibri flatten it) */
#colibri .mwpl-wrap :is(.mw15-right,.mw16-right,.mw17-right,.mw51-right){
  text-align: right !important;
}

/* Dial time overlay: hard-center (Colibri was pulling it left) */
#colibri .mwpl-wrap :is(.mw15-dial-time-container,.mw16-dial-time-container,.mw17-dial-time-container,.mw51-dial-time-container){
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card:is(.card-15,.card-16,.card-17,.card-51,.card-52,.card-53,.card-54,.card-55)
:is(.mw-local-time,.mw-date-wrap){
  text-align: center !important;
}

/* Re-assert the big Erik Flowers icon size (if Colibri shrank it) */
#colibri .mwpl-wrap .mw-card.card-15 .mw15-icon-topleft i.wi{ font-size: 96px !important; }
#colibri .mwpl-wrap .mw-card.card-16 .mw16-icon-topleft i.wi{ font-size: 96px !important; }
#colibri .mwpl-wrap .mw-card.card-17 .mw17-icon-topleft i.wi{ font-size: 96px !important; }

/* =========================================================
   Colibri: FORCE tide-dial date/time overlay to center
   Applies to 15–17 and 51–55 (any card using *-dial-time-container)
   ========================================================= */

#colibri .mwpl-wrap :is(
  .mw15-dial-time-container,.mw16-dial-time-container,.mw17-dial-time-container,
  .mw51-dial-time-container,.mw52-dial-time-container,.mw53-dial-time-container,.mw54-dial-time-container,.mw55-dial-time-container
){
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  float: none !important;
  pointer-events: none !important;
}

#colibri .mwpl-wrap :is(
  .mw15-dial-time-container,.mw16-dial-time-container,.mw17-dial-time-container,
  .mw51-dial-time-container,.mw52-dial-time-container,.mw53-dial-time-container,.mw54-dial-time-container,.mw55-dial-time-container
) .mw-date-wrap{
  display: block !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  float: none !important;
  white-space: normal !important;
}

#colibri .mwpl-wrap :is(
  .mw15-dial-time-container,.mw16-dial-time-container,.mw17-dial-time-container,
  .mw51-dial-time-container,.mw52-dial-time-container,.mw53-dial-time-container,.mw54-dial-time-container,.mw55-dial-time-container
) :is(.mw-date,.mw-local-time){
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  float: none !important;
}
/* =========================================================*/
/* =========================================================
   Colibri: tide-family right column is inset too far
   Nudge it outward (adjust the number if needed)
   ========================================================= */

#colibri .mwpl-wrap{
  --mw-colibri-right-nudge: 10px; /* increase = move closer to right edge */
}

/* Push the RIGHT stats column outward */
#colibri .mwpl-wrap :is(.mw15-right,.mw16-right,.mw17-right,.mw51-right){
  position: relative !important;
  right: calc(-1 * var(--mw-colibri-right-nudge)) !important;
}

/* Optional: if the whole card content is inset too much, reduce padding on just these cards */
#colibri .mwpl-wrap .mw-card:is(.card-15,.card-16,.card-17,.card-51,.card-52,.card-53,.card-54,.card-55){
  padding-right: 14px !important;  /* tweak to match your “good” theme */
}
/* =========================================================*/
/* =========================================================
   COLIBRI ONLY: center text that Colibri pushes left
   (location title, hourly labels/pills, current temp/desc, 3-day tiles)
   ========================================================= */

#colibri .mwpl-wrap .mw-card{
  text-align: center !important; /* base: makes headings + most text center */
}

/* Location/title at top (covers common variants you use) */
#colibri .mwpl-wrap .mw-card .mw0title,
#colibri .mwpl-wrap .mw-card .mw-title,
#colibri .mwpl-wrap .mw-card .mw-location,
#colibri .mwpl-wrap .mw-card .mw-location-name{
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Current temp + description blocks */
#colibri .mwpl-wrap .mw-card .mw-temp,
#colibri .mwpl-wrap .mw-card .mw-desc,
#colibri .mwpl-wrap .mw-card .mw-now-temp,
#colibri .mwpl-wrap .mw-card .mw-now-desc{
  text-align: center !important;
}

/* Hourly: center the time labels + temp “pills” inside each hour tile */
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour *{
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-time,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-label,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-temp,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-degree{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* 3-day tiles: center day name + temps + description */
#colibri .mwpl-wrap .mw-forecast-strip .mw-forecast-item,
#colibri .mwpl-wrap .mw-forecast-strip .mw-forecast-item *{
  text-align: center !important;
}
/* =========================================================
   PATCH v6 (COLIBRI): undo global card centering that clips hourly strip
   Keep centering only where needed (title/temp/desc + text inside tiles).
   ========================================================= */

/* 1) Undo the global "center everything in the card" (this caused right-shift clipping) */
#colibri .mwpl-wrap .mw-card{
  text-align: left !important;
}

/* 2) Re-center only the parts that should be centered */
#colibri .mwpl-wrap .mw-card .mw0title,
#colibri .mwpl-wrap .mw-card .mw-title,
#colibri .mwpl-wrap .mw-card .mw-location,
#colibri .mwpl-wrap .mw-card .mw-location-name,
#colibri .mwpl-wrap .mw-card .mw-temp,
#colibri .mwpl-wrap .mw-card .mw-desc,
#colibri .mwpl-wrap .mw-card .mw-now-temp,
#colibri .mwpl-wrap .mw-card .mw-now-desc,
#colibri .mwpl-wrap .mw-card .mw-forecast-title{
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3) Make sure the HOURLY STRIP itself is a normal full-width block row (not centered as an inline thing) */
#colibri .mwpl-wrap .mw-card:is(
  .card-1,.card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) .mw-hourly-strip{
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;          /* prevents inline centering effects */
  justify-content: flex-start !important; /* avoids “center + overflow = cut off” */
}

/* 4) Center the text INSIDE each hour tile (safe) */
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour{
  text-align: center !important;
}
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-time,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-label,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-temp,
#colibri .mwpl-wrap .mw-hourly-strip .mw-hour-degree{
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

/* 5) 3-day tiles: center inside each tile (safe) */
#colibri .mwpl-wrap .mw-forecast-strip .mw-forecast-item{
  text-align: center !important;
}
#colibri .mwpl-wrap .mw-forecast-strip .mw-forecast-item *{
  text-align: center !important;
}
/* =========================================================
   COLIBRI: center only the exact text elements you listed
   ========================================================= */

#colibri .mwpl-wrap .mw-card .mw-title,
#colibri .mwpl-wrap .mw-card .mw0title,
#colibri .mwpl-wrap .mw-card .mw-hour-time,
#colibri .mwpl-wrap .mw-card .mw-hour-temp,
#colibri .mwpl-wrap .mw-card .mw-temp,
#colibri .mwpl-wrap .mw-card .mw-forecast-title,
#colibri .mwpl-wrap .mw-card .mw-day,
#colibri .mwpl-wrap .mw-card .local-day,
#colibri .mwpl-wrap .mw-card .mw-temps,
#colibri .mwpl-wrap .mw-card .mw-cond{
  text-align: center !important;
}

/* If any of those are inline elements, make them fill the tile/row */
#colibri .mwpl-wrap .mw-card .mw-hour-time,
#colibri .mwpl-wrap .mw-card .mw-hour-temp,
#colibri .mwpl-wrap .mw-card .mw-day,
#colibri .mwpl-wrap .mw-card .local-day,
#colibri .mwpl-wrap .mw-card .mw-temps,
#colibri .mwpl-wrap .mw-card .mw-cond{
  display: block !important;
  width: 100% !important;
}
/* =========================================================
   COLIBRI: cards 1, 11–14, 47–50 hourly row fits on desktop
   Reason: these cards are max-width 540px; 80px tiles + big gaps don't fit.
   ========================================================= */

@media (min-width: 720px){
  #colibri .mwpl-wrap .mw-card:is(
    .card-1,.card-11,.card-12,.card-13,.card-14,
    .card-47,.card-48,.card-49,.card-50
  ) .mw-hourly-strip{
    /* revert the “desktop big” strip sizing so 6 hours fit */
    padding: 0.5rem 0 !important;
    gap: 0.5rem !important;
    justify-content: center !important;

    /* if it fits, it shouldn't need scroll */
    overflow-x: hidden !important;
  }

  #colibri .mwpl-wrap .mw-card:is(
    .card-1,.card-11,.card-12,.card-13,.card-14,
    .card-47,.card-48,.card-49,.card-50
  ) .mw-hour{
    width: 70px !important;       /* override the 80px desktop rule */
    font-size: 0.9em !important;  /* matches the small mode */
  }
}
/* Card 1 only (Colibri): fits by shaving GAP, not tile width, keeps centered */
@media (min-width: 720px){
  #colibri .mwpl-wrap .mw-card.card-1 .mw-hourly-strip{
    gap: 0.25rem !important;     /* was 0.5rem */
    justify-content: center !important;
    overflow-x: hidden !important;
  }
}
/* COLIBRI: force-center hourly strip even if Colibri CSS loads after (specificity win) */
@media (min-width: 720px){
  #colibri#colibri .mwpl-wrap .mw-card.card-1  .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-11 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-12 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-13 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-14 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-47 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-48 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-49 .mw-hourly-strip,
  #colibri#colibri .mwpl-wrap .mw-card.card-50 .mw-hourly-strip{
    justify-content: center !important;
  }
}
/* =========================================================
   3-Day tiles: DO NOT FLEX (fixed tiles, centered as a group)
   Cards: 1–4, 11–14, 47–50  (COLIBRI ONLY)
   ========================================================= */

#colibri .mwpl-wrap .mw-card:is(
  .card-1,.card-2,.card-3,.card-4,
  .card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) .mw-forecast-strip{
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0.4rem !important;
}

/* Lock each tile: no grow, no “flexing” */
#colibri .mwpl-wrap .mw-card:is(
  .card-1,.card-2,.card-3,.card-4,
  .card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) .mw-forecast-item{
  flex: 0 0 160px !important;   /* fixed tile width */
  max-width: 160px !important;
  min-width: 160px !important;
}

/* If your markup uses list items as the tiles, lock those too */
#colibri .mwpl-wrap .mw-card:is(
  .card-1,.card-2,.card-3,.card-4,
  .card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) .mw-forecast-strip > li{
  flex: 0 0 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
}

/* Now icon size override — reliable (targets the actual card via data-card) */
#colibri .mwpl-wrap [data-card="61"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="62"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="63"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="64"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="65"] img.mw-icon-now{
  width: 90px !important;
  max-width: 90px !important;
  height: auto !important;
}

/* ========================================================*/
/* Force NOW icon size (cards 2/3/4) — override any height rules too */
#colibri .mwpl-wrap [data-card="2"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="3"] img.mw-icon-now,
#colibri .mwpl-wrap [data-card="4"] img.mw-icon-now{
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
}
/* COLIBRI: move moon DOWN (cards 27–31) */
#colibri#colibri .mwpl-wrap .mw-card:is(.card-27,.card-28,.card-29,.card-30,.card-31) img.mw-moon-img{
  top: -8px !important; /* adjust: -12, -8, -4, 0 */
}
/* =========================================================
   FINAL AUTHORITY: NOW icon sizing (cards 2,3,4,61–65)
   Put this at the absolute bottom of compat.css
   ========================================================= */

/* One knob to turn */
:root { --mwpl-now-icon: 76px; } /* try 68–86 */

/* Shrink the icon *container* so theme rules can’t “stretch” it */
.mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4,.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4,.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack{
  width: var(--mwpl-now-icon) !important;
  height: var(--mwpl-now-icon) !important;
  flex: 0 0 var(--mwpl-now-icon) !important;
  overflow: hidden !important;
}

/* Force the image to *fit the stack* (beats “120x120” style fights) */
.mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4,.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack img.mw-icon-now,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4,.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack img.mw-icon-now{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Fallback: if any template places the icon outside .mw-icon-stack */
.mwpl-wrap [data-card="2"] img.mw-icon-now,
.mwpl-wrap [data-card="3"] img.mw-icon-now,
.mwpl-wrap [data-card="4"] img.mw-icon-now,
.mwpl-wrap [data-card="61"] img.mw-icon-now,
.mwpl-wrap [data-card="62"] img.mw-icon-now,
.mwpl-wrap [data-card="63"] img.mw-icon-now,
.mwpl-wrap [data-card="64"] img.mw-icon-now,
.mwpl-wrap [data-card="65"] img.mw-icon-now{
  width: var(--mwpl-now-icon) !important;
  height: var(--mwpl-now-icon) !important;
  object-fit: contain !important;
}
/* Moon fix: these cards position the moon outside the icon stack,
   so overflow:hidden clips it completely */
.mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-61,.card-62,.card-63,.card-64,.card-65) .mw-now-top .mw-icon-stack{
  overflow: visible !important;
}
/* =========================================================
   Cards 37–41: prevent orb glow/shadow from being clipped
   (adds vertical breathing room + ensures overflow visible)
   ========================================================= */

.mwpl-wrap .mw-card:is(.card-37,.card-38,.card-39,.card-40,.card-41),
#colibri#colibri .mwpl-wrap .mw-card:is(.card-37,.card-38,.card-39,.card-40,.card-41){
  overflow: visible !important;

  /* breathing room for the glow (tweak 16–32px) */
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* =========================================================
   COLIBRI: restore NOW block centering (cards 2–7, 11–14, 47–50)
   Put at the absolute bottom of compat.css
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card:is(
  .card-2,.card-3,.card-4,.card-5,.card-6,.card-7,
  .card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) .mw-now{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

#colibri#colibri .mwpl-wrap .mw-card:is(
  .card-2,.card-3,.card-4,.card-5,.card-6,.card-7,
  .card-11,.card-12,.card-13,.card-14,
  .card-47,.card-48,.card-49,.card-50
) img.mw-icon-now{
  float: none !important;
  display: block !important;
  margin: 0 auto !important;
}
/* =========================================================
   COLIBRI: stop these cards from stretching full-width
   Cards: 2–7, 11–14, 47–50
   ========================================================= */

#colibri .mwpl-wrap .mw-card.card-2,
#colibri .mwpl-wrap .mw-card.card-3,
#colibri .mwpl-wrap .mw-card.card-4,
#colibri .mwpl-wrap .mw-card.card-11,
#colibri .mwpl-wrap .mw-card.card-12,
#colibri .mwpl-wrap .mw-card.card-13,
#colibri .mwpl-wrap .mw-card.card-14,
#colibri .mwpl-wrap .mw-card.card-47,
#colibri .mwpl-wrap .mw-card.card-48,
#colibri .mwpl-wrap .mw-card.card-49,
#colibri .mwpl-wrap .mw-card.card-50{
  width: min(100%, 600px) !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
#colibri .mwpl-wrap .mw-card.card-5,
#colibri .mwpl-wrap .mw-card.card-6,
#colibri .mwpl-wrap .mw-card.card-7{
  width: min(100%, 320px) !important;
  max-width: 320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* =========================================================
   COLIBRI: cards 5–7 — center the 3 day boxes reliably
   (even if "+ More" is inside .mw-forecast-compact)
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card.card-5 .mw-forecast-compact,
#colibri#colibri .mwpl-wrap .mw-card.card-6 .mw-forecast-compact,
#colibri#colibri .mwpl-wrap .mw-card.card-7 .mw-forecast-compact{
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;

  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;   /* centers the 3 boxes as a group */
  gap: 10px !important;
}

/* The 3 day boxes: fixed 3-column math so they stay centered */
#colibri#colibri .mwpl-wrap .mw-card.card-5 .mw-forecast-compact .mw-day-block,
#colibri#colibri .mwpl-wrap .mw-card.card-6 .mw-forecast-compact .mw-day-block,
#colibri#colibri .mwpl-wrap .mw-card.card-7 .mw-forecast-compact .mw-day-block{
  float: none !important;
  flex: 0 0 calc((100% - 20px) / 3) !important; /* 3 cols, 2 gaps (2*10=20) */
  max-width: calc((100% - 20px) / 3) !important;
  box-sizing: border-box !important;
}

/* Anything else in that container (like the +More button): put it on its own row, right-aligned */
#colibri#colibri .mwpl-wrap .mw-card.card-5 .mw-forecast-compact > :not(.mw-day-block),
#colibri#colibri .mwpl-wrap .mw-card.card-6 .mw-forecast-compact > :not(.mw-day-block),
#colibri#colibri .mwpl-wrap .mw-card.card-7 .mw-forecast-compact > :not(.mw-day-block){
  flex: 0 0 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
}
/*-------------------------------------------------------------------------------*/
/* =========================================================
   COLIBRI: cards 18–21 keep 3-day tiles on ONE row
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card:is(.card-18,.card-19,.card-20,.card-21) .mw-forecast-strip,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-18,.card-19,.card-20,.card-21) .mw-forecast-compact{
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#colibri#colibri .mwpl-wrap .mw-card:is(.card-18,.card-19,.card-20,.card-21) .mw-day-block{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  float: none !important;
}
/* =========================================================*/
/* =========================================================
   COLIBRI FINAL AUTHORITY: restore native 37–41 orb layout
   (outer circle padding + inner padding + flex spacing)
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card:is(.card-37,.card-38,.card-39,.card-40,.card-41)
:is(.mw37-circle,.mw38-circle,.mw39-circle,.mw40-circle,.mw41-circle){
  position: relative !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  padding: 12px !important;          /* IMPORTANT: this is from your card CSS */
  box-sizing: border-box !important;
  transform: none !important;
}

#colibri#colibri .mwpl-wrap .mw-card:is(.card-37,.card-38,.card-39,.card-40,.card-41)
:is(.mw37-inner,.mw38-inner,.mw39-inner,.mw40-inner,.mw41-inner){
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  padding: 1.2rem 1.5rem 1.1rem !important;  /* IMPORTANT: from your card CSS */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* keeps top + bottom inside */
  overflow: hidden !important;               /* keeps content inside circle */
  box-sizing: border-box !important;
}

/* Colibri sometimes adds margins to text blocks — kill ONLY inside the orb */
#colibri#colibri .mwpl-wrap .mw-card:is(.card-37,.card-38,.card-39,.card-40,.card-41)
:is(.mw37-inner,.mw38-inner,.mw39-inner,.mw40-inner,.mw41-inner) :is(p,h1,h2,h3,h4,h5,div,span){
  margin-top: 0 !important;
}
/* =========================================================*/
/* =========================================================
   COLIBRI: restore native ticker behavior for cards 42–46
   (seamless dup, one-line height, no overlap)
   ========================================================= */

/* =========================================================
   COLIBRI: 42–46 ticker — seamless loop, one line, no overlap
   Keep keyframes translateX(-50%) happy by making both halves equal.
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card:is(.card-42,.card-43,.card-44,.card-45,.card-46)
:is(.mw42-track,.mw43-track,.mw44-track,.mw45-track,.mw46-track){
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 0 !important; /* KEY: no gap */
  will-change: transform !important;
}

#colibri#colibri .mwpl-wrap .mw-card:is(.card-42,.card-43,.card-44,.card-45,.card-46)
:is(.mw42-text,.mw42-text-dup,.mw43-text,.mw43-text-dup,.mw44-text,.mw44-text-dup,.mw45-text,.mw45-text-dup,.mw46-text,.mw46-text-dup){
  display: inline-block !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;

  /* KEY: spacer belongs to BOTH halves so -50% stays seamless */
  padding-right: 4rem !important; /* raise to 5–6rem if needed */
}

/* keep the pill clipped to one line tall */
#colibri#colibri .mwpl-wrap .mw-card:is(.card-42,.card-43,.card-44,.card-45,.card-46)
:is(.mw42-ticker,.mw43-ticker,.mw44-ticker,.mw45-ticker,.mw46-ticker,
    .mw42-pill,.mw43-pill,.mw44-pill,.mw45-pill,.mw46-pill){
  overflow: hidden !important;
}

