/* Perth Attractions - compact 7 day weather forecast strip */
.pa-weather {
  --pa-weather-bg: #f5fbff;
  --pa-weather-card: #ffffff;
  --pa-weather-ink: #14212b;
  --pa-weather-muted: #526675;
  --pa-weather-line: #d7e8f2;
  --pa-weather-link: #07596b;
  background: linear-gradient(180deg, #ffffff 0%, var(--pa-weather-bg) 100%);
  border-bottom: 1px solid var(--pa-weather-line);
  color: var(--pa-weather-ink);
}

.pa-weather__inner {
  width: min(100% - 2rem, 1440px);
  min-height: 84px;
  margin-inline: auto;
  padding: 0.55rem 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(0, 4.4fr) minmax(250px, 1fr);
  gap: 0.7rem;
  align-items: center;
}

.pa-weather__summary {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.pa-weather__summary-copy {
  min-width: 0;
}

.pa-weather__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.pa-weather__place,
.pa-weather__updated,
.pa-weather__source {
  margin: 0;
  color: var(--pa-weather-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.pa-weather__place {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.pa-weather__now {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.pa-weather__temp {
  flex: 0 0 auto;
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  font-weight: 900;
  line-height: 1;
}

.pa-weather__condition {
  min-width: 0;
  overflow: hidden;
  color: var(--pa-weather-muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-weather__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  gap: 0.38rem;
  min-width: 0;
}

.pa-weather__day {
  min-width: 0;
  min-height: 54px;
  padding: 0.38rem 0.42rem;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon temps";
  column-gap: 0.35rem;
  align-items: center;
  border: 1px solid var(--pa-weather-line);
  border-radius: 8px;
  background: var(--pa-weather-card);
}

.pa-weather__day svg {
  grid-area: icon;
  width: 28px;
  height: 28px;
}

.pa-weather__label {
  grid-area: label;
  min-width: 0;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pa-weather__temps {
  grid-area: temps;
  color: var(--pa-weather-muted);
  font-size: 0.74rem;
  line-height: 1.15;
  white-space: nowrap;
}

.pa-weather__high {
  color: var(--pa-weather-ink);
  font-weight: 850;
}

.pa-weather__actions {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.16rem;
  text-align: right;
}

.pa-weather__link {
  color: var(--pa-weather-link);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.pa-weather__link:hover,
.pa-weather__link:focus-visible {
  color: var(--river-dark, #07596b);
}

.pa-weather__source {
  max-width: 34ch;
}

.pa-weather__source-short {
  display: none;
}

.pa-weather__updated {
  display: none;
}

.pa-weather-page-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line, #d9e6ea);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.pa-weather-page-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.pa-weather-page-day {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--pa-weather-line);
  border-radius: 8px;
  background: #fff;
}

.pa-weather-page-day__top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pa-weather-page-day svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.pa-weather-page-day h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.pa-weather-page-day p {
  margin: 0.25rem 0 0;
  color: var(--muted, #5a6a78);
  font-size: 0.9rem;
  line-height: 1.35;
}

.pa-weather-page-day__temps strong {
  color: var(--ink, #14212b);
}

.pa-weather-page-day__note {
  font-weight: 800;
}

.pa-weather-page-source {
  margin: 1rem 0 0;
  color: var(--muted, #5a6a78);
  font-size: 0.94rem;
}

.pa-weather-page-source a {
  color: var(--river-dark, #07596b);
  font-weight: 800;
}

.weather-page .pa-weather-page-panel {
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  border-color: #cfe2eb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(231, 247, 250, 0.7), rgba(255, 246, 223, 0.44));
}

.weather-page .pa-weather-page-panel .section-heading {
  margin-bottom: 1.15rem;
}

.weather-page .pa-weather-page-panel .section-heading h2 {
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.weather-page .pa-weather-page-grid {
  align-items: stretch;
}

.weather-page .pa-weather-page-day {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 158px;
  padding: 0.9rem 0.82rem;
  border-color: rgba(207, 226, 235, 0.86);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 22px rgba(9, 43, 56, 0.055);
}

.weather-page .pa-weather-page-day__top {
  align-items: flex-start;
  gap: 0.62rem;
}

.weather-page .pa-weather-page-day svg {
  width: 36px;
  height: 36px;
  margin-top: 0.05rem;
  border-radius: 8px;
  background: #f7fbff;
}

.weather-page .pa-weather-page-day h3 {
  color: var(--ink, #14212b);
  font-size: 0.98rem;
  font-weight: 850;
}

.weather-page .pa-weather-page-day p {
  font-size: 0.86rem;
}

.weather-page .pa-weather-page-day__temps {
  color: var(--muted, #5a6a78);
}

.weather-page .pa-weather-page-day__note {
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(4, 127, 150, 0.14);
  border-radius: 6px;
  background: #eef8fa;
  color: var(--river-dark, #07596b);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.weather-page .pa-weather-page-source {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(207, 226, 235, 0.9);
}

.weather-page .weather-decision-section {
  border-block: 1px solid #d8e9ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 249, 252, 0.96)),
    linear-gradient(135deg, #edf9fb 0%, #fff7e6 100%);
}

.weather-page .weather-decision-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1.05rem;
}

.weather-page .weather-decision-heading h2 {
  max-width: 760px;
}

.weather-page .weather-decision-heading > p:not(.eyebrow) {
  max-width: 720px;
}

.weather-decision-rules {
  display: grid;
  gap: 0.48rem;
  align-self: stretch;
}

.weather-decision-rules span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(7, 89, 107, 0.13);
  border-radius: 8px;
  padding: 0.5rem 0.62rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted, #5a6a78);
  font-size: 0.9rem;
  line-height: 1.22;
}

.weather-decision-rules strong {
  color: var(--river-dark, #07596b);
  font-weight: 900;
}

.weather-planning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.92rem;
}

.weather-planning-card {
  --weather-card-accent: var(--river, #047f96);
  --weather-card-soft: #eef8fa;
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid #cfe2eb;
  border-radius: 8px;
  background: #ffffff;
}

.weather-planning-card--beach,
.weather-planning-card--ferry {
  --weather-card-accent: #1573a8;
  --weather-card-soft: #edf7fd;
}

.weather-planning-card--river {
  --weather-card-accent: #047f96;
  --weather-card-soft: #edf9fb;
}

.weather-planning-card--park {
  --weather-card-accent: #2f7d5b;
  --weather-card-soft: #eef8f1;
}

.weather-planning-card--rain {
  --weather-card-accent: #60758a;
  --weather-card-soft: #f3f7fb;
}

.weather-planning-card--family {
  --weather-card-accent: #9e5d7b;
  --weather-card-soft: #fbf1f6;
}

.weather-planning-card__top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 0.86rem;
  border-bottom: 1px solid rgba(207, 226, 235, 0.78);
  background: var(--weather-card-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.22)),
    color-mix(in srgb, var(--weather-card-accent) 11%, white);
}

.weather-planning-card__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--weather-card-accent);
}

.weather-planning-card__top > div {
  min-width: 0;
}

.weather-planning-card__body {
  min-width: 0;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 0.9rem 0.95rem 1rem;
}

.weather-planning-card__meta {
  margin: 0;
  color: var(--weather-card-accent);
  color: color-mix(in srgb, var(--weather-card-accent) 72%, #14212b);
  font-size: 0.71rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.weather-planning-card__signal {
  margin: 0.12rem 0 0;
  color: var(--ink, #14212b);
  font-size: 0.97rem;
  font-weight: 900;
  line-height: 1.18;
}

.weather-planning-card h3 {
  margin: 0;
  color: var(--ink, #14212b);
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  font-weight: 850;
  line-height: 1.18;
}

.weather-planning-card p {
  margin: 0;
  color: var(--muted, #5a6a78);
  font-size: 0.96rem;
  line-height: 1.48;
}

.weather-planning-card__checks {
  display: grid;
  gap: 0;
  margin: 0;
}

.weather-planning-card__checks div {
  padding: 0.58rem 0;
  border-top: 1px solid #e5f0f4;
}

.weather-planning-card__checks div:last-child {
  padding-bottom: 0;
}

.weather-planning-card__checks dt {
  color: var(--weather-card-accent);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.weather-planning-card__checks dd {
  margin: 0.18rem 0 0;
  color: var(--ink, #14212b);
  font-size: 0.89rem;
  font-weight: 680;
  line-height: 1.38;
}

.weather-planning-card__link {
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
  padding: 0.44rem 0.68rem;
  border: 1px solid rgba(4, 127, 150, 0.22);
  border-color: color-mix(in srgb, var(--weather-card-accent) 32%, white);
  border-radius: 6px;
  background: var(--weather-card-soft);
  background: color-mix(in srgb, var(--weather-card-accent) 10%, white);
  color: var(--river-dark, #07596b);
  color: color-mix(in srgb, var(--weather-card-accent) 72%, #14212b);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
}

.weather-planning-card__link:hover,
.weather-planning-card__link:focus-visible {
  border-color: var(--weather-card-accent);
  background: var(--weather-card-accent);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 1080px) {
  .pa-weather__inner {
    grid-template-columns: 1fr;
    min-height: 110px;
    gap: 0.24rem;
    padding: 0.3rem 0;
  }

  .pa-weather__summary {
    align-items: center;
    min-height: 34px;
  }

  .pa-weather__summary-copy {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .pa-weather__now {
    display: contents;
  }

  .pa-weather__condition {
    flex: 1 1 auto;
    white-space: nowrap;
  }

  .pa-weather__days {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.02rem 0 0.14rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .pa-weather__days::-webkit-scrollbar {
    display: none;
  }

  .pa-weather__day {
    flex: 0 0 86px;
    min-height: 48px;
    scroll-snap-align: start;
  }

  .pa-weather__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    text-align: left;
  }

  .pa-weather__updated {
    display: none;
  }

  .pa-weather__source {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pa-weather-page-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.65rem;
    padding-bottom: 0.2rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .pa-weather-page-grid::-webkit-scrollbar {
    display: none;
  }

  .pa-weather-page-day {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }

  .weather-page .weather-decision-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .weather-decision-rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .weather-planning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .weather-decision-rules {
    grid-template-columns: 1fr;
  }

  .weather-planning-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pa-weather__inner {
    width: min(100% - 1rem, 1440px);
    min-height: 114px;
  }

  .pa-weather__icon {
    width: 30px;
    height: 30px;
  }

  .pa-weather__temp {
    font-size: 1.18rem;
  }

  .pa-weather__condition {
    font-size: 0.8rem;
  }

  .pa-weather__day {
    flex-basis: 80px;
    min-height: 46px;
    grid-template-columns: 23px minmax(0, 1fr);
    padding: 0.3rem;
  }

  .pa-weather__day svg {
    width: 23px;
    height: 23px;
  }

  .pa-weather__source {
    max-width: none;
    font-size: 0.68rem;
  }

  .pa-weather__source-full {
    display: none;
  }

  .pa-weather__source-short {
    display: inline;
  }

  .pa-weather__link {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .weather-page .pa-weather-page-panel {
    padding: 1rem;
  }

  .weather-page .pa-weather-page-panel .section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .weather-page .pa-weather-page-day {
    flex-basis: 168px;
    min-height: 150px;
    padding: 0.82rem;
  }

  .weather-page .weather-decision-heading {
    gap: 0.85rem;
    margin-bottom: 0.9rem;
  }

  .weather-decision-rules span {
    padding: 0.46rem 0.55rem;
    font-size: 0.84rem;
  }

  .weather-planning-grid {
    gap: 0.78rem;
  }

  .weather-planning-card__top {
    padding: 0.72rem 0.78rem;
  }

  .weather-planning-card__body {
    gap: 0.62rem;
    padding: 0.82rem 0.82rem 0.92rem;
  }

  .weather-planning-card__checks dd {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-weather__days,
  .pa-weather-page-grid {
    scroll-behavior: auto;
  }
}
