/* Koubebi Radio — theme styles.
   Palette lifted from the logo: black ground, cream type, orange/yellow/olive accents. */

:root{
  --black:#111110;
  --ink:#1b1a17;
  --panel:#1f1e1a;
  --line:rgba(243,233,201,.14);
  --cream:#f3e9c9;
  --cream-dim:rgba(243,233,201,.66);
  --orange:#e8672a;
  --yellow:#f2b21b;
  --olive:#8a9a3c;
  --olive-deep:#5c6a2a;
  --ui:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --display:var(--ui);
  --wrap:1080px;
  --nav-h:64px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--black);color:var(--cream);
  font-family:var(--ui);font-size:1.05rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
[hidden]{display:none!important}
a{color:var(--yellow);text-decoration:none}
a:hover{color:var(--orange)}
button{font:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.wrap{width:min(var(--wrap),100% - 2.5rem);margin-inline:auto}
.wrap--narrow{max-width:720px}
.skip-link{position:absolute;left:-999px;top:0;background:var(--yellow);color:var(--black);padding:.5rem 1rem;z-index:100}
.skip-link:focus{left:1rem;top:1rem}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

h1,h2{font-family:var(--ui);font-weight:600;letter-spacing:-.02em;line-height:1.15;margin:0 0 .5em}
h1{font-size:clamp(1.8rem,4vw,2.4rem)}
h2{font-size:clamp(1.2rem,2.4vw,1.5rem)}
h3{font-family:var(--ui);font-size:1.05rem;font-weight:600;margin:0 0 .5em}
.eyebrow{font-size:.8rem;color:var(--cream-dim);margin:0 0 .6rem}
.muted{color:var(--cream-dim)}

/* ------------------------------------------------------------ nav */
.nav{
  position:sticky;top:0;z-index:50;height:var(--nav-h);
  display:flex;align-items:center;gap:1.4rem;padding:0 1.25rem;
  background:var(--black);
  border-bottom:1px solid var(--line);
}
.nav__mark{display:flex;align-items:center;gap:.7rem;color:var(--cream);font-weight:600;font-size:1rem;letter-spacing:-.01em;white-space:nowrap}
.nav__mark img{width:40px;height:40px;border-radius:50%}
.nav__mark:hover{color:var(--yellow)}
.nav__links{display:flex;gap:.2rem;list-style:none;margin:0 0 0 auto;padding:0}
.nav__links a{display:block;padding:.55rem .7rem;color:var(--cream-dim);font-size:.82rem;font-weight:500;letter-spacing:.04em}
.nav__links a:hover{color:var(--cream)}
.nav__links .current-menu-item>a,.nav__links .current_page_item>a,.nav__links .is-here>a{color:var(--cream)}
.nav__listen{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:999px;background:var(--orange);color:var(--black);font-size:.8rem;font-weight:600;letter-spacing:.02em}
.nav__listen:hover{background:var(--yellow);color:var(--black)}
.nav__listen .dot{width:8px;height:8px;border-radius:50%;background:var(--black);animation:pulse 1.6s ease-in-out infinite}
.nav__toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);color:var(--cream);padding:.5rem .8rem;border-radius:6px;font-size:.82rem}
@media (max-width:820px){
  .nav__links{display:none;position:absolute;left:0;right:0;top:var(--nav-h);flex-direction:column;background:var(--ink);padding:.6rem 1rem 1rem;border-bottom:1px solid var(--line)}
  .nav.is-open .nav__links{display:flex}
  .nav__links a{padding:.8rem .6rem;font-size:.9rem}
  .nav__toggle{display:block}
  .nav__listen{margin-left:auto}
  .nav__toggle{margin-left:0}
  .np{flex-wrap:wrap}
}
@media (max-width:520px){
  .nav{gap:.8rem}
  .nav__mark span{display:none}
}

/* ---------------------------------------------------------- listen */
.listen{text-align:center;padding:clamp(1.5rem,4vw,3rem) 0 2rem}
.listen__logo{width:min(300px,64vw);margin:0 auto 1.4rem;border-radius:50%}
.listen h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.listen h1{margin-bottom:.3rem}
.listen .tag{max-width:44ch;margin:0 auto 2.2rem;color:var(--cream-dim);font-size:1rem}

.player{
  max-width:560px;margin:0 auto;
}
.play{
  display:inline-flex;align-items:center;gap:.9rem;
  padding:.85rem 2rem .85rem 1.1rem;border:0;border-radius:999px;
  background:var(--orange);color:var(--black);
  font-weight:600;font-size:1.05rem;letter-spacing:-.01em;
  transition:transform .15s,background .15s;
}
.play:hover{background:var(--yellow);transform:translateY(-1px)}
.play .ico{width:40px;height:40px;border-radius:50%;background:var(--black);display:grid;place-items:center;flex:none}
.play .ico svg{width:18px;height:18px;fill:var(--cream)}
.play .ico .i-pause,.play.is-playing .ico .i-play{display:none}
.play.is-playing .ico .i-pause{display:block}
.play.is-loading .ico{animation:spin 1s linear infinite}
.np{display:flex;align-items:center;justify-content:center;gap:.6rem;margin:1.2rem 0 0;font-size:.92rem;color:var(--cream-dim);min-height:1.5rem}
.np__art{width:44px;height:44px;border-radius:6px;object-fit:cover}
.onnow{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.4rem .7rem;margin:.8rem 0 0;font-size:.95rem}
.onnow .k{font-size:.72rem;font-weight:600;letter-spacing:.04em;padding:.15rem .5rem;border-radius:999px;border:1px solid var(--line);color:var(--cream-dim)}
.onnow .k.on{background:var(--yellow);border-color:var(--yellow);color:var(--black)}
.onnow a{color:var(--cream);font-weight:500}
.onnow a:hover{color:var(--yellow)}
.onnow .m{color:var(--cream-dim);font-size:.88rem}
.np .dot{width:9px;height:9px;border-radius:50%;background:#666;flex:none}
.np.is-live .dot{background:var(--olive);animation:pulse 1.6s ease-in-out infinite}
.np .lbl{font-size:.8rem}
.np .ttl{color:var(--cream);font-weight:500}
.vol{display:flex;align-items:center;gap:.6rem;justify-content:center;margin-top:.9rem;color:var(--cream-dim);font-size:.75rem;letter-spacing:.12em;text-transform:uppercase}
.vol input{width:150px;accent-color:var(--yellow)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes spin{to{transform:rotate(360deg)}}

.ways{max-width:560px;margin:2rem auto 0;padding-top:1.4rem;border-top:1px solid var(--line);font-size:.88rem;color:var(--cream-dim)}
.ways p{margin:0 0 .6rem}
.url{display:flex;gap:.5rem;align-items:center;justify-content:center;flex-wrap:wrap}
.url code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.45rem .7rem;border-radius:6px;background:var(--ink);font-size:.82rem;color:var(--cream)}
.url button{padding:.45rem .8rem;border-radius:6px;border:1px solid var(--line);background:transparent;color:var(--cream);font-size:.78rem}
.url button:hover{border-color:var(--cream)}
.apps{display:flex;justify-content:center;gap:1.4rem;margin-top:.9rem}
.apps a{color:var(--cream-dim);text-decoration:underline;text-underline-offset:3px}
.apps a:hover{color:var(--cream)}
.btn{display:inline-block;padding:.5rem .9rem;border-radius:6px;border:1px solid var(--line);color:var(--cream);font-size:.82rem}
.btn:hover{border-color:var(--cream);color:var(--cream)}

/* -------------------------------------------------------- schedule */
.week{padding:2rem 0 3rem;border-top:1px solid var(--line)}
.week .wrap{max-width:720px}
.week__head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:.6rem}
.week__head h2{margin:0;font-size:1.15rem}
.week__head a{font-size:.85rem;color:var(--cream-dim)}
.week__head a:hover{color:var(--cream)}
.sched{list-style:none;margin:0;padding:0}
.sched li a,.sched li>span{display:grid;grid-template-columns:44px 1fr;gap:1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--line);color:var(--cream)}
.sched li:last-child a{border-bottom:0}
.sched li a:hover .t{color:var(--yellow)}
.sched img{width:44px;height:44px;object-fit:cover;border-radius:6px}
.sched li>a>span{display:flex;flex-wrap:wrap;gap:.2rem 1rem;align-items:baseline}
.sched .d{font-size:.8rem;color:var(--yellow);min-width:11rem}
.sched .t{font-weight:500}
.sched .tag{font-size:.7rem;font-weight:600;letter-spacing:.04em;padding:.15rem .5rem;border-radius:999px;background:var(--yellow);color:var(--black)}
.sched li.is-today a{background:rgba(242,178,27,.06);margin:0 -.8rem;padding-left:.8rem;padding-right:.8rem;border-radius:8px;border-bottom-color:transparent}
.sched .w{font-size:.85rem;color:var(--cream-dim)}

/* ------------------------------------------------------ title band */
.masthead{padding:clamp(2rem,5vw,3rem) 0 1.4rem;text-align:center}
.masthead h1{margin:0;padding-bottom:.6rem;position:relative}
.masthead h1::after{content:'';position:absolute;left:50%;transform:translateX(-50%);bottom:0;width:2.5rem;height:3px;border-radius:2px;background:var(--yellow)}
.masthead .standfirst{max-width:60ch;margin:.5rem auto 0;font-size:1.05rem;color:var(--cream-dim)}

/* ----------------------------------------------------------- pages */
.article{padding:1rem 0 4rem}
.prose{max-width:70ch;margin-inline:auto}
.prose p{margin:0 0 1.2em}
.prose h2,.prose h3{margin-top:1.8em}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin:.35em 0}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose figure{margin:1.6rem 0}
.prose figcaption{font-size:.85rem;color:var(--cream-dim);margin-top:.5rem}
.prose img{border-radius:10px}
.prose .wp-block-image img,.prose figure img{margin:0}
.prose iframe{max-width:100%}
.prose--wide{max-width:none}

/* Any gallery / row of images in page content becomes a tidy square grid */
/* WordPress wraps a Group block in an inner container; the grid goes on whichever holds the figures */
.prose .tiles:has(> .wp-block-group__inner-container){display:block !important}
.prose .wp-block-gallery,.prose .wp-block-columns,.prose .tiles,.prose .tiles > .wp-block-group__inner-container{
  display:grid !important;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;margin:1.6rem 0
}
.prose .wp-block-gallery figure,.prose .wp-block-columns .wp-block-column,.prose .tiles figure{margin:0;width:auto !important;flex:none}
.prose .wp-block-gallery img,.prose .wp-block-columns img,.prose .tiles img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.prose .wp-block-columns .wp-block-column>*{margin:0}
.prose .wp-block-columns figcaption,.prose .tiles figcaption{margin-top:.5rem}

/* -------------------------------------------------- radio shows grid */
.shows-note{margin:2rem auto 0;font-size:.9rem;color:var(--cream-dim);text-align:center}
.shows{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:2rem 1.2rem}
.show{width:min(230px,100%)}
@media (max-width:520px){.show{width:100%}}
.show{position:relative}
.show a{display:block;color:var(--cream)}
.show img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;transition:opacity .2s}
.show a:hover img{opacity:.85}
.show__body{display:block;padding:.8rem .2rem 0;text-align:center}
.show__when{display:block;font-size:.8rem;color:var(--yellow);margin-bottom:.2rem}
.show__title{display:block;font-weight:600;font-size:1.02rem;line-height:1.25}
.show__with{display:block;font-size:.85rem;color:var(--cream-dim);margin-top:.15rem}
.show--placeholder img{object-fit:contain;padding:20%;background:var(--ink)}

/* --------------------------------------------------------- flyer */
.flyer{display:grid;grid-template-columns:minmax(0,420px) 1fr;gap:2.5rem;align-items:start;margin:0 0 2.5rem}
.flyer img{border-radius:10px;width:100%}
.flyer h2{margin-bottom:.4rem}
.flyer p{margin:0 0 .8rem;color:var(--cream-dim)}
@media (max-width:720px){.flyer{grid-template-columns:1fr}}

/* -------------------------------------------------------- footer */
.foot{border-top:1px solid var(--line);padding:1.8rem 0 2.2rem;font-size:.85rem;color:var(--cream-dim)}
.foot .wrap{display:flex;flex-direction:column;gap:1rem;align-items:center;text-align:center}
.foot__mark{display:flex;align-items:center;gap:.7rem;color:var(--cream);font-weight:600}
.foot__mark img{width:36px;height:36px;border-radius:50%}
.foot ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem 1.1rem;list-style:none;margin:0;padding:0}
.foot ul a{color:var(--cream-dim);font-size:.85rem}
.foot ul a:hover{color:var(--cream)}
.social{display:flex;gap:.6rem}
.social a{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);color:var(--cream)}
.social a:hover{border-color:var(--cream)}
.social svg{width:18px;height:18px;fill:currentColor}
.foot__copy{width:100%;margin:0;font-size:.78rem;opacity:.7}

/* ------------------------------------------------------ WP bits */
.wp-block-button__link{background:var(--orange);color:var(--black);border-radius:999px;padding:.7rem 1.4rem;font-weight:700}
.wpforms-container input,.wpforms-container textarea,.prose input,.prose textarea{width:100%;padding:.7rem .8rem;border-radius:8px;border:1px solid var(--line);background:var(--ink);color:var(--cream);font:inherit}
.wpforms-container button[type=submit],.prose button[type=submit]{background:var(--orange);color:var(--black);border:0;border-radius:999px;padding:.7rem 1.5rem;font-weight:600}
.wpforms-field-label{display:block;font-size:.85rem;font-weight:500;margin:.9rem 0 .3rem;color:var(--cream-dim)}
.alignwide,.alignfull{max-width:none}
.posts{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.posts li{padding:1rem 0;border-bottom:1px solid var(--line)}
.posts h2{font-size:1.5rem;margin:0 0 .3rem}
.pagination{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:2rem}
.pagination a,.pagination span{padding:.4rem .8rem;border:1px solid var(--line);border-radius:6px}

/* ------------------------------------------------- persistent bar */
.bar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:.8rem;padding:.55rem 1rem;background:var(--ink);border-top:1px solid var(--line)}
/* the homepage has the big button, so the bar only appears there once something is playing */
body.is-front:not(.is-playing) .bar{display:none}
body:not(.is-front),body.is-playing{padding-bottom:64px}
.bar__btn{width:40px;height:40px;border-radius:50%;border:0;background:var(--orange);display:grid;place-items:center;flex:none;padding:0}
.bar__btn:hover{background:var(--yellow)}
.bar__btn svg{width:18px;height:18px;fill:var(--black)}
.bar__btn .i-pause,.bar__btn.is-playing .i-play{display:none}
.bar__btn.is-playing .i-pause{display:block}
.bar__btn.is-loading{animation:pulse 1s ease-in-out infinite}
.bar__art{width:40px;height:40px;border-radius:6px;object-fit:cover;flex:none}
.bar__text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.bar__lbl{font-size:.72rem;color:var(--cream-dim)}
.bar__title{font-size:.9rem;font-weight:500;color:var(--cream);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------------------------------------------------------- events */
.evlist__head{font-size:1.05rem;margin:2rem 0 .4rem;color:var(--cream-dim);font-weight:500}
.evlist{list-style:none;margin:0;padding:0}
.evlist li a{display:grid;grid-template-columns:56px 1fr;gap:1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--line);color:var(--cream)}
.evlist li:last-child a{border-bottom:0}
.evlist li a:hover .t{color:var(--yellow)}
.evlist img{width:56px;height:56px;object-fit:cover;border-radius:6px}
.evlist li>a>span{display:flex;flex-wrap:wrap;gap:.2rem 1rem;align-items:baseline}
.evlist .d{font-size:.8rem;color:var(--yellow);min-width:7.5rem}
.evlist .t{font-weight:500}
.evlist .w{font-size:.85rem;color:var(--cream-dim)}
.evlist--past img{filter:grayscale(1);opacity:.7}

/* --------------------------------------------------------- contact */
.kb-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.notice{padding:.9rem 1.1rem;border-radius:8px;border:1px solid var(--line);margin:0 0 1.5rem}
.notice--ok{border-color:var(--olive);color:var(--cream)}
.notice--fail{border-color:var(--orange);color:var(--cream)}
