/* Airwaves Watch Custom 0.4.3 — targeted article presentation and restrained carousels.
   Safely layered after editorial-r42.css. No changes to the fixed mobile dock. */

/* Homepage: restore the more readable three-card editorial feed. Category/archive
   templates retain their existing four-column grid at wide desktop widths. */
@media (min-width:1121px) {
  .aw-home .aw-story-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(16px,1.25vw,23px); }
  .aw-home .aw-story-card h3 { font-size:clamp(14px,1.03vw,16px); line-height:1.4; }
  .aw-home .aw-card-body { padding:15px 15px 18px; }
}

/* Article leader ad and hero now share one measured layout container. The ad is
   intentionally separated from the image, not stretched edge-to-edge. */
.aw-article-feature-shell { margin:0 auto 34px; }
.aw-article-feature-shell > .aw-ad-slot,
.aw-article-feature-shell > .aw-ad-placeholder {
  box-sizing:border-box;
  width:100%; max-width:none; margin:0 0 19px; padding:12px 16px;
}
.aw-article-feature-shell > .aw-ad-placeholder { min-height:85px; }
.aw-article-feature-shell > .aw-ad-slot img { max-height:220px; object-fit:contain; }
.aw-article-feature-shell .aw-article-hero {
  box-sizing:border-box; width:100%; max-width:none;
  margin:0; padding:0;
}
.aw-article-feature-shell .aw-article-hero figcaption { margin-top:10px; }

/* WordPress's legacy alignright/alignleft classes otherwise float media INTO
   paragraphs. Render images as intentional, centred content blocks without
   upscaling old small assets or editing the imported article HTML. */
.aw-prose img.alignright,
.aw-prose img.alignleft,
.aw-prose img.aligncenter,
.aw-prose img.size-full,
.aw-prose img[class*="wp-image-"],
.aw-prose p > img,
.aw-prose p > a > img,
.aw-prose .wp-block-image img,
.aw-prose .wp-caption img {
  display:block!important; float:none!important; clear:both;
  width:auto!important; max-width:100%!important; height:auto!important;
  object-fit:contain; border-radius:15px;
  margin:24px auto!important;
  vertical-align:middle;
}
.aw-prose .wp-caption, .aw-prose figure.wp-block-image,
.aw-prose figure.alignleft, .aw-prose figure.alignright, .aw-prose figure.aligncenter {
  float:none!important; clear:both; width:fit-content!important;
  max-width:100%!important; margin:28px auto!important;
}
.aw-prose .wp-caption img, .aw-prose figure.wp-block-image img { margin:0 auto!important; }
.aw-prose .wp-caption-text, .aw-prose figcaption { line-height:1.5; text-align:center; margin:9px auto 0; }
.aw-prose::after { display:block; content:""; clear:both; }

/* A single quiet, accessible play/pause button. Swiping or mouse dragging the
   lead card advances stories; no counter or previous/next arrows. */
.aw-hero-rotator { touch-action:pan-y; cursor:grab; }
.aw-hero-rotator:active { cursor:grabbing; }
.aw-hero-rotator:focus-visible { outline:3px solid #89b2ff; outline-offset:3px; }
.aw-hero-rotator > .aw-hero-slide .aw-hero-overlay { padding-bottom:50px; }
.aw-hero-controls {
  right:14px; bottom:12px; padding:2px; gap:0;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(8,20,41,.42); opacity:.65;
  border-radius:999px;
  transition:opacity .18s ease, background .18s ease;
}
.aw-hero-controls:hover, .aw-hero-controls:focus-within { opacity:1; background:rgba(8,20,41,.8); }
.aw-hero-controls .aw-hero-play-toggle {
  width:29px; height:29px; min-width:29px; min-height:29px; padding:5px;
  display:grid; place-items:center; border:0; color:white;
  background:transparent; border-radius:50%;
}
.aw-hero-play-toggle svg { width:16px; height:16px; display:block; }
.aw-hero-play-toggle .aw-hero-icon-play { display:none; }
.aw-hero-play-toggle.is-paused .aw-hero-icon-play { display:block; }
.aw-hero-play-toggle.is-paused .aw-hero-icon-pause { display:none; }
.aw-hero-play-toggle:focus-visible { outline:2px solid white; outline-offset:2px; }

/* Music Hub: the right rail is an actual curated discovery panel, with a
   bounded sticky position on desktop, not a tall blank block. */
@media (min-width:1121px) {
  .aw-music-hub-aside { position:sticky; top:calc(var(--aw-header-height,76px) + 18px); }
}
.aw-music-aside-news { border-top:1px solid var(--line); margin-top:21px; padding-top:19px; }
.aw-music-aside-news h3 { margin:0 0 11px; font-weight:800; font-size:13px; line-height:1.35; }
.aw-music-news-link {
  display:grid; grid-template-columns:44px minmax(0,1fr); gap:10px;
  align-items:center; padding:10px 0; border-bottom:1px solid var(--line);
  font-size:11px; line-height:1.42; font-weight:700;
}
.aw-music-news-link:hover { color:var(--blue); }
.aw-music-news-thumb { width:44px; height:44px; display:block; overflow:hidden; border-radius:10px; }
.aw-music-news-thumb img, .aw-music-news-thumb .aw-image-fallback { width:100%; height:100%; object-fit:cover; display:block; }
.aw-music-news-thumb .aw-image-fallback > span { font-size:16px; letter-spacing:-1px; }
.aw-music-aside-news .aw-music-aside-link { margin-top:14px; }
@media (max-width:820px) {
  .aw-music-hub-aside { position:static; }
  .aw-hero-rotator > .aw-hero-slide .aw-hero-overlay { padding-bottom:43px; }
  .aw-hero-controls { right:10px; bottom:10px; }
  .aw-article-feature-shell { margin-bottom:26px; }
}
@media (max-width:620px) {
  .aw-article-feature-shell.aw-container { width:calc(100% - 30px); }
  .aw-article-feature-shell > .aw-ad-slot, .aw-article-feature-shell > .aw-ad-placeholder { margin-bottom:15px; padding:12px; }
  .aw-article-feature-shell .aw-article-cover { border-radius:16px; min-height:0; }
  .aw-prose img.alignright, .aw-prose img.alignleft, .aw-prose img.aligncenter,
  .aw-prose p > img, .aw-prose p > a > img { margin:18px auto!important; border-radius:12px; }
}
@media (prefers-reduced-motion:reduce) {
  .aw-hero-controls { transition:none; }
}
