/* MWB News v554: focused Finance, Sports, Municipalities and Gameroom UX. */

/* Finance: reporting remains the primary column; utilities stay compact. */
.finance-page .finance-main.finance-layout-v537 {
  width: min(1260px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 22px;
}

.finance-page .finance-news-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-page .finance-news-stream .live-story-card {
  display: flex;
  flex-direction: column;
  min-height: 215px;
}

.finance-page .finance-news-stream .live-story-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.finance-page .finance-news-stream .live-story-image img {
  min-height: 0;
}

.finance-page .finance-news-stream .live-story-body {
  min-width: 0;
  padding: 18px;
}

.finance-page .finance-news-stream .live-story-body h2 {
  margin: 7px 0;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.08;
}

.finance-page .finance-news-stream .live-story-description {
  font-size: 13px;
  line-height: 1.48;
}

.finance-page .finance-tools-rail {
  gap: 14px;
  font-size: 12px;
}

.finance-page .finance-tools-rail .currency-desk > header,
.finance-page .finance-tools-rail .market-pulse-header {
  gap: 8px;
  padding: 17px 16px 14px;
}

.finance-page .finance-tools-rail .currency-desk h2,
.finance-page .finance-tools-rail .market-terminal h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  line-height: 1.05;
}

.finance-page .finance-tools-rail .currency-desk header p,
.finance-page .finance-tools-rail .market-terminal-intro p {
  font-size: 11px;
  line-height: 1.42;
}

.finance-page .finance-tools-rail .fx-source {
  grid-template-columns: auto auto;
  justify-content: start;
  justify-items: start;
  align-items: baseline;
  gap: 5px 8px;
}

.finance-page .finance-tools-rail .fx-source span,
.finance-page .finance-tools-rail .fx-source strong,
.finance-page .finance-tools-rail .fx-status {
  font: 800 10px/1.25 Arial, sans-serif;
}

.finance-page .finance-tools-rail .fx-rows {
  grid-template-columns: 1fr;
}

.finance-page .finance-tools-rail .fx-row,
.finance-page .finance-tools-rail .fx-row:nth-child(even),
.finance-page .finance-tools-rail .fx-row:nth-last-child(-n+2) {
  padding: 13px 12px;
  border-right: 0;
  border-bottom: 1px solid #c6d2cf;
}

.finance-page .finance-tools-rail .fx-row:last-child {
  border-bottom: 0;
}

.finance-page .finance-tools-rail .fx-row select,
.finance-page .finance-tools-rail .fx-row input {
  min-height: 38px;
  padding-block: 7px;
  font-size: 12px;
}

.finance-page .finance-tools-rail .fx-actions {
  gap: 9px;
  padding: 10px 12px;
}

.finance-page .finance-tools-rail .fx-add {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 18px;
}

.finance-page .finance-tools-rail .currency-desk > footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px;
  font-size: 9px;
}

.finance-page .market-terminal-toggle {
  width: 100%;
  min-height: 40px;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 11px;
}

.finance-page .market-toggle-icon {
  width: 20px;
  height: 20px;
  font-size: 14px;
}

.market-watchlist-v554 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #465459;
  background: #465459;
}

.market-watchlist-v554 button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  padding: 8px 10px;
  border: 0;
  color: #fff;
  background: #172226;
  text-align: left;
  cursor: pointer;
}

.market-watchlist-v554 button:hover,
.market-watchlist-v554 button:focus-visible,
.market-watchlist-v554 button[aria-pressed='true'] {
  outline: 0;
  background: #075f47;
  box-shadow: inset 4px 0 0 #f0c64d;
}

.market-watchlist-v554 strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
}

.market-watchlist-v554 span {
  grid-column: 1;
  overflow: hidden;
  color: #aebbb7;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-watchlist-v554 b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #f0c64d;
  font-size: 12px;
}

.market-watchlist-actions-v554 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  color: #fff;
  background: #10171a;
}

.market-watchlist-actions-v554 label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.market-watchlist-actions-v554 label > span {
  color: #aebbb7;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-watchlist-actions-v554 select {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #6e7b78;
  color: #10171a;
  background: #fff;
  font: 800 10px/1.2 Arial, sans-serif;
}

.market-watchlist-actions-v554 > a {
  padding: 7px 0;
  color: #f0c64d;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.finance-page .market-source-links a {
  padding: 8px;
}

.finance-page .market-source-links span {
  font-size: 8px;
}

.finance-page .market-terminal-details {
  padding: 8px;
}

.finance-page .market-terminal-toolbar {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 11px;
}

.finance-page .market-terminal-toolbar-copy {
  display: none;
}

.finance-page .market-symbol-control select {
  min-height: 40px;
  font-size: 11px;
}

.finance-page .market-terminal-frame {
  height: 430px;
  min-height: 390px;
}

/* Sports: explicit physical-sports navigation and clear content zones. */
.sports-overview-nav-v554,
.sports-centre-map-v554 {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto;
  border-block: 1px solid #aebdb9;
  background: #aebdb9;
}

.sports-overview-nav-v554 a,
.sports-centre-map-v554 a {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 105px;
  align-content: center;
  padding: 15px;
  color: #10171a;
  background: #fff;
  text-decoration: none;
}

.sports-overview-nav-v554 a:hover,
.sports-overview-nav-v554 a:focus-visible,
.sports-centre-map-v554 a:hover,
.sports-centre-map-v554 a:focus-visible {
  outline: 0;
  color: #fff;
  background: #0b7052;
}

.sports-overview-nav-v554 small {
  color: #cf1f35;
  font-size: 10px;
  font-weight: 950;
}

.sports-overview-nav-v554 strong,
.sports-centre-map-v554 strong {
  font: 700 18px/1.05 Georgia, serif;
}

.sports-overview-nav-v554 span,
.sports-centre-map-v554 small {
  color: #596863;
  font-size: 10px;
  line-height: 1.35;
}

.sports-overview-nav-v554 a:hover span,
.sports-overview-nav-v554 a:focus-visible span,
.sports-centre-map-v554 a:hover small,
.sports-centre-map-v554 a:focus-visible small {
  color: rgba(255, 255, 255, .78);
}

.sports-centre-map-v554 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.sports-centre-map-v554 a {
  min-height: 78px;
}

.sports-reporting-v554,
#sports-fixtures,
#sports-data,
#match-centre,
#sports-standings,
#all-sports {
  scroll-margin-top: 112px;
}

.sports-reporting-v554 {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid #bac8c4;
  border-top: 6px solid #cf1f35;
  background: #fff;
}

.sports-reporting-v554 .archive-stream {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sports-official-board {
  margin-top: 0;
  padding-top: 26px;
  border-top: 7px solid #0b7052;
}

.sports-desk-boundary-v554 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 19px 22px;
  border-left: 6px solid #247bb5;
  background: #eef5f8;
}

.sports-desk-boundary-v554 strong {
  display: block;
  margin-top: 5px;
  font: 700 18px/1.25 Georgia, serif;
}

.sports-desk-boundary-v554 nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sports-desk-boundary-v554 nav a {
  padding: 9px 11px;
  border: 1px solid #8da7b3;
  color: #174d66;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.sports-centre-page .sports-centre-main {
  padding-top: 22px;
}

.sports-centre-page .sports-taxonomy-panel,
.sports-centre-page .sports-centre-panel,
.sports-centre-page .daily-archive,
.sports-centre-page .sports-network-rail > section {
  box-shadow: none;
}

/* The category rail makes Sports and digital culture visibly separate. */
.archive-category-group-v554 {
  display: block;
  padding: 13px 12px 5px;
  color: #6b7774;
  border-top: 3px solid #10171a;
  background: #edf2f0;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .08em;
}

/* Municipality-specific finder and ecosystem CTA. */
.municipal-tools-v554 {
  margin-bottom: 22px;
  border: 1px solid #aebfba;
  border-top: 6px solid #08745b;
  background: #fff;
}

.municipal-tools-v554[hidden] {
  display: none !important;
}

.municipal-tools-v554 > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr);
  gap: 22px;
  align-items: end;
  padding: 20px 22px 15px;
  border-bottom: 1px solid #c8d3d0;
}

.municipal-tools-v554 h2 {
  margin: 5px 0 0;
  font: 700 28px/1.05 Georgia, serif;
}

.municipal-tools-v554 header p {
  margin: 0;
  color: #53625d;
  font-size: 12px;
  line-height: 1.45;
}

.municipal-tools-v554 form {
  display: grid;
  gap: 6px;
  padding: 16px 22px 10px;
}

.municipal-tools-v554 form > label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.municipal-tools-v554 form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.municipal-tools-v554 input,
.municipal-tools-v554 form button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #879994;
  background: #fff;
  font: inherit;
}

.municipal-tools-v554 form button {
  color: #fff;
  border-color: #10171a;
  background: #10171a;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.municipal-place-chips-v554 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 10px;
}

.municipal-place-chips-v554 button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #b7c5c1;
  color: #24423a;
  background: #f3f7f5;
  font: 800 10px/1.2 Arial, sans-serif;
  cursor: pointer;
}

.municipal-place-chips-v554 button:hover,
.municipal-place-chips-v554 button:focus-visible,
.municipal-place-chips-v554 button[aria-pressed='true'] {
  color: #fff;
  border-color: #08745b;
  background: #08745b;
}

.municipal-filter-status-v554 {
  min-height: 18px;
  margin: 0;
  padding: 0 22px 12px;
  color: #52615c;
  font-size: 10px;
  font-weight: 800;
}

.municipal-directory-cta-v554 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  color: #fff;
  background: #10231e;
}

.municipal-directory-cta-v554 strong {
  display: block;
  margin: 5px 0;
  font: 700 20px/1.15 Georgia, serif;
}

.municipal-directory-cta-v554 p {
  max-width: 680px;
  margin: 0;
  color: #cbd7d3;
  font-size: 11px;
  line-height: 1.45;
}

.municipal-directory-cta-v554 nav {
  display: grid;
  gap: 7px;
}

.municipal-directory-cta-v554 .news-button {
  justify-content: center;
  white-space: nowrap;
}

/* Gameroom: choose first, then play within visually separated zones. */
.games-page [data-mwb-return-control] {
  display: none !important;
}

.game-picker-v554 {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #b8c6c2;
  border-top: 7px solid #f0c64d;
  background: #fff;
}

.game-picker-v554 > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 2px solid #10171a;
}

.game-picker-v554 h2 {
  margin: 5px 0 0;
  font: 700 34px/1.02 Georgia, serif;
}

.game-picker-v554 header p {
  margin: 0;
  color: #52615d;
  line-height: 1.45;
}

.game-picker-v554 nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-picker-v554 nav a {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 3px 12px;
  min-width: 0;
  min-height: 138px;
  align-content: center;
  padding: 17px;
  overflow: hidden;
  color: #10171a;
  border: 1px solid #b8c6c2;
  background: #f6f9f8;
  text-decoration: none;
}

.game-picker-v554 nav a::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #0c8658;
}

.game-picker-v554 nav a:nth-child(2)::before,
.game-picker-v554 nav a:nth-child(5)::before { background: #1e78b7; }
.game-picker-v554 nav a:nth-child(3)::before,
.game-picker-v554 nav a:nth-child(6)::before { background: #c89513; }

.game-picker-v554 nav a:hover,
.game-picker-v554 nav a:focus-visible {
  outline: 3px solid rgba(30, 120, 183, .24);
  outline-offset: 1px;
  background: #fff;
  transform: translateY(-2px);
}

.game-picker-v554 nav a > span[aria-hidden] {
  grid-row: 1 / 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #10171a;
  font: 700 22px/1 Georgia, serif;
}

.game-picker-v554 nav small {
  color: #b21d31;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .06em;
}

.game-picker-v554 nav strong {
  overflow-wrap: anywhere;
  font: 700 20px/1.08 Georgia, serif;
}

.game-picker-v554 nav em {
  color: #08745b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.games-page .gameroom-jump-nav {
  margin-top: 18px;
}

.games-page .topic-identity-band h2,
.games-page .topic-identity-band p {
  color: #fff;
}

.games-page .topic-identity-band p {
  color: #d5dfdc;
}

.games-page .gameroom-group {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #b9c6c3;
  border-top-width: 7px;
  background: #fff;
}

.games-page .gameroom-group-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #c7d1ce;
}

.games-page .games-secondary-grid {
  gap: 12px;
  border: 0;
  background: transparent;
}

.games-page .games-secondary-grid > article {
  border: 1px solid #c9d4d1;
  border-top-width: 6px;
  background: #f8faf9;
}

.games-page #game-crossword,
.games-page #game-spot,
.games-page #game-world-quiz,
.games-page #game-daily-quiz,
.games-page #game-mini,
.games-page #game-classics,
.games-page #group-challenges {
  scroll-margin-top: 112px;
}

.games-page .quiz-complete,
.games-page .mini-game-result,
.games-page .quiz-arena-result,
.games-page .ladder-result {
  padding: 22px;
  border: 2px solid #0c8658;
  background: #eef8f3;
}

.games-page .quiz-complete .news-button,
.games-page .mini-game-result .news-button,
.games-page .quiz-arena-result .news-button,
.games-page .ladder-result .news-button,
.games-page [data-tic-reset],
.games-page [data-hangman-new] {
  min-height: 44px;
  padding-inline: 16px;
  color: #fff;
  border: 0;
  background: #0b7052;
  font-weight: 900;
}

.game-result-next-v554 {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #9cbcad;
  font-size: 11px;
  font-weight: 800;
}

.game-result-next-v554 a {
  color: #075d45;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .finance-page .finance-main.finance-layout-v537 {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-tools-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sports-overview-nav-v554,
  .sports-centre-map-v554 {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    grid-template-columns: none;
    scroll-snap-type: x proximity;
  }

  .sports-overview-nav-v554 a,
  .sports-centre-map-v554 a {
    scroll-snap-align: start;
  }
}

@media (max-width: 820px) {
  .finance-page .finance-tools-rail,
  .finance-page .finance-news-stream,
  .sports-reporting-v554 .archive-stream,
  .game-picker-v554 nav {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-news-stream .live-story-card {
    grid-template-columns: 1fr;
  }

  .finance-page .finance-news-stream .live-story-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .finance-page .finance-news-stream .live-story-image img {
    min-height: 0;
  }

  .sports-desk-boundary-v554,
  .municipal-tools-v554 > header,
  .municipal-directory-cta-v554,
  .game-picker-v554 > header {
    grid-template-columns: 1fr;
  }

  .sports-desk-boundary-v554 nav,
  .municipal-directory-cta-v554 nav {
    justify-content: start;
  }

  .game-picker-v554 nav a {
    min-height: 116px;
  }

  .games-page .gameroom-group {
    padding: 18px 14px;
  }
}

@media (max-width: 520px) {
  .finance-page .finance-main.finance-layout-v537,
  .sports-overview-nav-v554,
  .sports-centre-map-v554 {
    width: min(100% - 24px, 1260px);
  }

  .market-watchlist-v554 {
    grid-template-columns: 1fr;
  }

  .market-watchlist-actions-v554,
  .municipal-tools-v554 form > div {
    grid-template-columns: 1fr;
  }

  .market-watchlist-actions-v554 > a {
    justify-self: start;
  }

  .municipal-tools-v554 > header,
  .municipal-tools-v554 form,
  .municipal-directory-cta-v554 {
    padding-inline: 15px;
  }

  .municipal-place-chips-v554,
  .municipal-filter-status-v554 {
    padding-inline: 15px;
  }

  .game-picker-v554 {
    padding: 18px 14px;
  }

  .game-picker-v554 h2 {
    font-size: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-picker-v554 nav a {
    transition: none;
  }
}
