/*
Theme Name: Radio YA UltraLight
Version: 0.1.3
Requires PHP: 8.4
Text Domain: radio-ya-ultralight
*/
*,*::before,*::after{box-sizing:border-box}body{margin:0;font:1rem/1.5 system-ui,sans-serif}main,.ny-v21-main,header,footer{max-width:1200px;margin:auto;padding:1rem}img{max-width:100%;height:auto}a{color:inherit}nav ul{display:flex;flex-wrap:wrap;gap:1rem;list-style:none;padding:0}

/* Prevent third-party embeds and long editorial strings from widening mobile articles. */
@media(max-width:767px){
  main,.ny-v21-main,main article,main .entry-content,main .wp-block-group{min-width:0;max-width:100%}
  main :is(iframe,video,embed,object,table,pre){max-width:100%}
  main :is(p,h1,h2,h3,h4,a,blockquote,figcaption){overflow-wrap:anywhere}
  main :is(.wp-block-embed,.wp-block-image,figure){max-width:100%;min-width:0}
  main .wp-block-table{overflow-x:auto}
}

/* Keep full-size editorial photos from widening the original homepage grids. */
main:is([data-context="front-page"], [data-context="page"]) :is(.ny-grid-container, .ny-mn-container) > article {
  min-width: 0;
}

.ny-visually-hidden,
.ny-skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ny-skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2147483647;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #083363;
}

.ny-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem;
}
.ny-archive-card {
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-top: 3px solid #083363;
  border-radius: 8px;
  background: #fff;
}
.ny-archive-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ny-archive-copy {
  padding: 1rem;
}
.ny-archive-copy time {
  color: #52616e;
  font-size: .85rem;
}
.ny-archive-copy h2 {
  color: #083363;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: .4rem 0;
}
.ny-archive-copy p {
  margin: .65rem 0 0;
}
.ny-archive-empty,
.ny-not-found {
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: #f5f8fb;
  border-left: 4px solid #083363;
}
.ny-not-found form {
  margin-block: 1rem;
}
@media (max-width: 900px) {
  .ny-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ny-archive-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the original fixed bar from covering the start of the page. */
.ny-banner-shell:has(.ny-sticky-shell) {
  min-height: 80px;
}
@media (max-width: 767px) {
  .ny-banner-shell:has(.ny-sticky-shell) { min-height: 65px; }
}
