/* =========================================================
   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
) .mw-date{
  display: block;
}

.mwpl-wrap :where(
  .mw15-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
) .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 {
  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
){
  container-type: inline-size;
  container-name: mwboard;
}

/* DEFAULT = side-by-side */
.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10
) .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
) :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
) .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
) .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
) .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
) .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
) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) .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
    ) :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
        ) .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
) .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
) .mw-weather-icon-wrapper{
  position: static !important; /* <- this is the “unstick” */
}

.mwpl-wrap .mw-card:is(
  .card-8,.card-9,.card-10
) .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 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;
}
/*========================================================*/

/* =========================================================
   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{
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card.card-15 :where(.mw15-location,.mw15-weather,.mw15-pressure,.mw15-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)
: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){
  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)
:is(.mw15-location,
    .mw15-temp,
    .mw15-hi-lo,
    .mw15-pressure){
  text-align: center !important;
}

/* Keep the right column right-aligned (don’t let Colibri flatten it) */
#colibri .mwpl-wrap :is(.mw15-right){
  text-align: right !important;
}

/* Dial time overlay: hard-center (Colibri was pulling it left) */
#colibri .mwpl-wrap :is(.mw15-dial-time-container){
  text-align: center !important;
}

#colibri .mwpl-wrap .mw-card:is(.card-15)
: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: 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){
  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) .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) :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){
  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){
  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
) .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
  ) .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
  ) .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{
    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
) .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
) .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
) .mw-forecast-strip > li{
  flex: 0 0 160px !important;
  max-width: 160px !important;
  min-width: 160px !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;
}

/* =========================================================
   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) .mw-now-top .mw-icon-stack,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4) .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) .mw-now-top .mw-icon-stack img.mw-icon-now,
#colibri#colibri .mwpl-wrap .mw-card:is(.card-2,.card-3,.card-4) .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{
  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;
}
/* =========================================================
   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
) .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
) 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{
  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 FINAL AUTHORITY: restore native 37–41 orb layout
   (outer circle padding + inner padding + flex spacing)
   ========================================================= */

#colibri#colibri .mwpl-wrap .mw-card:is(.card-41)
:is(.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-41)
:is(.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-41)
:is(.mw41-inner) :is(p,h1,h2,h3,h4,h5,div,span){
  margin-top: 0 !important;
}
/* =========================================================*/
/* =========================================================
   Card 15: FINAL AUTHORITY narrow lock
   (prevents flex/grid parents from stretching it)
   ========================================================= */

[data-mwpl="1"] .mw-card.card-15{
  box-sizing: border-box !important;

  /* stop parent layout from stretching it */
  flex: 0 0 auto !important;
  align-self: center !important;
  justify-self: center !important;

  /* the actual narrow size */
  width: 420px !important;
  max-width: 420px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}

/* phone: let it go full width */
@media (max-width: 460px){
  [data-mwpl="1"] .mw-card.card-15{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* keep dial sized like the narrow original */
[data-mwpl="1"] .mw-card.card-15 .mw15-dial{
  max-width: 360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* =========================================================
   Card 15 (narrow): fix mw-data-columns overlap
   ========================================================= */

[data-mwpl="1"] .mw-card.card-15 .mw-data-columns{
  box-sizing: border-box !important;

  /* stop “two columns + padding” from exceeding 100% */
  padding-left: 10px !important;
  padding-right: 10px !important;

  /* force predictable columns */
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 14px !important;
  row-gap: 8px !important;

  width: 100% !important;
}

/* whatever the direct column children are, allow shrinking */
[data-mwpl="1"] .mw-card.card-15 .mw-data-columns > *{
  min-width: 0 !important;
  padding-right: 0 !important;   /* kills the “too much right padding” you described */
  padding-left: 0 !important;
}

/* keep each line from pushing into the other column */
[data-mwpl="1"] .mw-card.card-15 .mw-data-columns *{
  min-width: 0 !important;
}

/* text: don’t overlap, ellipsis instead */
[data-mwpl="1"] .mw-card.card-15 .mw-data-columns :is(span, .mw-val, .mw-text){
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* =========================================================
   Card 15: FIX column collision (COPY PRO targets)
   NO width changes — only gap/padding/shrink behavior
   ========================================================= */

/* Container (support both class names just in case) */
#colibri#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns),
#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns),
.mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns){
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;

  gap: 0px !important;          /* was 20 in Pro */
  padding-left: 0 !important;
  padding-right: 0 !important;

  width: 100% !important;
  box-sizing: border-box !important;
}

/* Columns: remove the Pro padding that steals width */
#colibri#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-left, .mw15-right, .mw-data-left, .mw-data-right),
#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-left, .mw15-right, .mw-data-left, .mw-data-right),
.mwpl-wrap .mw-card.card-15 :is(.mw15-left, .mw15-right, .mw-data-left, .mw-data-right){
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0 !important;
  flex: 1 1 0 !important;        /* allow shrink instead of collide */
}

/* Fallback if your columns are just two plain divs */
#colibri#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns) > div,
#colibri .mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns) > div,
.mwpl-wrap .mw-card.card-15 :is(.mw15-data-columns, .mw-data-columns) > div{
  min-width: 0 !important;
  flex: 1 1 0 !important;
}
/* =========================================================*/
/* FIX: Card-41 “haze gets chopped” = the next block paints over the shadow.
   Solution: give the card its own bottom space so the shadow lives INSIDE it. */

.mwpl-wrap .mw-card.card-41.mw41-shell{
  padding-top: 50px !important;    /* room for the top glow */  
  padding-bottom: 50px !important;   /* room for the glow */
  margin-bottom: 0 !important;       /* keep layout predictable */
  position: relative !important;
  z-index: 1 !important;
}
