/* Airwaves R6A.1: scoped editorial polish; no desktop pagination changes.
   Preserves R6A notifications, R5.4 header/theme, saved articles and nav. */

/* Only About (WordPress page slug = about, page ID 121) gets the editorial header reset. */
body.page-id-121 .aw-information-article > .aw-information-heading,
body.page-about .aw-information-article > .aw-information-heading {
  box-sizing: border-box;
  background: #10243f !important;
  background-color: #10243f !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 45px) clamp(20px, 3.5vw, 46px) !important;
  color: #f7faff !important;
}
body.page-id-121 .aw-information-heading::before,
body.page-id-121 .aw-information-heading::after,
body.page-about .aw-information-heading::before,
body.page-about .aw-information-heading::after {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  content: none !important;
  display: none !important;
}
body.page-id-121 .aw-information-heading h1,
body.page-about .aw-information-heading h1 {
  margin: 0 !important;
  max-width: 100%;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em;
  color: #fff !important;
  text-wrap: balance;
}
body.page-id-121 .aw-information-heading .aw-information-excerpt,
body.page-about .aw-information-heading .aw-information-excerpt {
  max-width: 740px;
  margin-top: 12px !important;
  font-size: .975rem !important;
  line-height: 1.65 !important;
  color: #d8e4f3 !important;
}
body.page-id-121 .aw-information-body,
body.page-about .aw-information-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  font-size: 1rem !important;
  line-height: 1.76 !important;
  overflow-wrap: anywhere;
}
body.page-id-121 .aw-information-body :is(p, li, blockquote, .wp-block-paragraph),
body.page-about .aw-information-body :is(p, li, blockquote, .wp-block-paragraph) {
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal;
}
body.page-id-121 .aw-information-body h2,
body.page-about .aw-information-body h2 {
  font-size: clamp(1.23rem, 2.15vw, 1.62rem) !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}
body.page-id-121 .aw-information-body h3,
body.page-about .aw-information-body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem) !important;
  line-height: 1.4 !important;
  font-weight: 620 !important;
}

/* Unbooked inventory must be legible for signed-out readers and remain
   clearly distinguishable from real, separately labelled paid campaigns. */
body .aw-ad-slot.aw-ad-placeholder {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 110px;
  padding: 19px 15px;
  margin-block: 15px;
  border: 1px dashed #a9b6c8;
  border-radius: 13px;
  background: #e8edf4;
  background-image: none;
  color: #50627e;
  text-align: center;
}
body .aw-ad-slot.aw-ad-placeholder .aw-ad-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 680;
  letter-spacing: .14em;
  line-height: 1.4;
  color: inherit;
  white-space: normal;
}
body .aw-ad-slot.aw-ad-placeholder .aw-ad-availability {
  display: block;
  font-size: .78rem;
  font-weight: 450;
  line-height: 1.4;
  color: inherit;
}
body .aw-ad-slot.aw-ad-placeholder.aw-ad-sidebar,
body .aw-ad-slot.aw-ad-placeholder.aw-ad-sidebar_lower,
body .aw-ad-slot.aw-ad-placeholder.aw-ad-sidebar_sticky {min-height: 160px;}
body .aw-ad-slot.aw-ad-placeholder.aw-ad-leaderboard {min-height: 100px;}
body .aw-ad-slot.aw-ad-placeholder.aw-ad-article_inline {min-height: 106px;}
body .aw-music-sponsor-content .aw-ad-slot.aw-ad-placeholder {
  min-height: 160px;
  height: 100%;
  margin: 0;
}
html[data-aw53-resolved="dark"] body .aw-ad-slot.aw-ad-placeholder {
  background: #182b45;
  border-color: #526886;
  color: #c9d5e5;
}
html[data-aw53-resolved="light"] body .aw-ad-slot.aw-ad-placeholder {
  background: #eff3f8;
  border-color: #a9b6c8;
  color: #54657d;
}

@media(max-width:820px) {
  body.page-id-121 .aw-information-heading,
  body.page-about .aw-information-heading {padding: 23px 20px !important;border-radius: 14px;}
  body.page-id-121 .aw-information-heading h1,
  body.page-about .aw-information-heading h1 {font-size: clamp(1.45rem, 6vw, 1.9rem) !important;line-height:1.22 !important;}
  body.page-id-121 .aw-information-heading .aw-information-excerpt,
  body.page-about .aw-information-heading .aw-information-excerpt {font-size:.9rem !important;line-height:1.55 !important;}
  body.page-id-121 .aw-information-body,
  body.page-about .aw-information-body {font-size:.95rem !important;line-height:1.75 !important;}
  body.page-id-121 .aw-information-body h2,
  body.page-about .aw-information-body h2 {font-size:1.19rem !important;}
  body.page-id-121 .aw-information-body h3,
  body.page-about .aw-information-body h3 {font-size:1.05rem !important;}

  /* WP numeric pagination (category, archives, search, and any theme aliases).
     Only main-content pagination is targeted, never bottom PWA tab navigation. */
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pagination-wrap, .aw-pager, .aw-page-nav) {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    margin: 22px auto 28px;
    padding: 0 4px;
    overflow: visible;
    clear: both;
  }
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pagination-wrap, .aw-pager, .aw-page-nav) :is(.nav-links, ul.page-numbers, .aw-page-links, .pagination-links) {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    list-style: none;
  }
  body main :is(nav.pagination, .aw-pagination, .aw-post-pagination, .aw-pager, .aw-page-nav) ul.page-numbers > li {
    display: flex;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pagination-wrap, .aw-pager, .aw-page-nav) :is(a.page-numbers, span.page-numbers, .nav-links > a, .nav-links > span, .aw-page-links > a, .aw-page-links > span, .aw-pagination > a, .aw-pagination > span, .aw-pager > a, .aw-page-nav > a) {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 40px;
    max-width: 100%;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    color: #193450;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
  }
  body main :is(nav.pagination, .aw-pagination, .aw-post-pagination, .aw-pager) :is(.page-numbers.current, [aria-current="page"]) {
    background: #163659 !important;
    color: #fff !important;
    border-color: #163659 !important;
  }
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pager) :is(.page-numbers.dots, .page-numbers.ellipsis) {
    min-width: 14px;
    padding-inline: 3px !important;
    background: transparent;
    border: 0;
  }
  /* Navigation arrows form one balanced action row beneath the page numbers,
     rather than being stranded at the edge or on a third overflow row. */
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pagination-wrap, .aw-pager) :is(.nav-links > .prev, .nav-links > .next, .nav-links > .nav-previous, .nav-links > .nav-next) {
    order: 5;
    flex: 1 1 calc(50% - 8px);
    min-width: 110px;
    max-width: 180px;
    text-align: center;
  }
  body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pager) a:focus-visible {
    outline: 2px solid #6da7e7;
    outline-offset: 2px;
  }
  html[data-aw53-resolved="dark"] body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pager, .aw-page-nav) :is(a.page-numbers, span.page-numbers, .nav-links > a, .nav-links > span) {
    background: #1a304e;
    color: #e7effb;
    border-color: #3d5574;
  }
  html[data-aw53-resolved="dark"] body main :is(nav.pagination, nav.posts-navigation, .aw-pagination, .aw-post-pagination, .aw-pager) :is(.page-numbers.current, [aria-current="page"]) {
    background: #4876a9 !important;
    border-color: #4876a9 !important;
    color: #fff !important;
  }
  body .aw-ad-slot.aw-ad-placeholder {min-height: 86px; padding: 17px 12px;}
  body .aw-ad-slot.aw-ad-placeholder.aw-ad-sidebar {min-height: 115px;}
  body .aw-ad-slot.aw-ad-placeholder.aw-ad-leaderboard {min-height: 84px;}
}
@media(prefers-reduced-motion:reduce){body .aw-ad-slot.aw-ad-placeholder{transition:none !important;animation:none !important;}}
