/* channels-layout.css — the "channels" tab. Everything is scoped under html.layout-channels, so with the tab off
   this file changes nothing. The only unscoped rule is the host element.
   Variables come from your themes (--paper --surface --ink --ink-mid --rule --red --yellow --icon-fill --font-mono). */
.ch-host{display:none;}

/* the original feed stays in the DOM (the layout reads it and the real play / record buttons are reused), just not shown */
html.layout-channels[data-theme] #feedList,
html.layout-channels[data-theme] #feedPromptBanner,
html.layout-channels[data-theme] #feedPromptList,
html.layout-channels[data-theme] #feedMore{display:none!important;}
html.layout-channels[data-theme] .ch-host{display:block;width:100%;max-width:var(--ch-w,1200px);margin:0 auto;padding:0 1rem 6rem;box-sizing:border-box;font-family:var(--font-mono);color:var(--ink);}
/* one width for the tab strip (voices / channels / stations / following + hairline) AND the grid, so they always line up */
html.layout-channels{--ch-w:1200px;}
@media (min-width:1500px){html.layout-channels{--ch-w:1480px;}}
@media (min-width:1900px){html.layout-channels{--ch-w:1800px;}}
@media (min-width:2400px){html.layout-channels{--ch-w:2200px;}}
@media (min-width:1100px){html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active{display:block;}}
/* the controls (tabs, search, live bar, apply to report ...) centre in a 640px column above the grid, so nothing hangs off to the left */
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active :is(.feed-layout,.feed-controls,.feed-controls-extra,.feed-sticky-top,.feed-main) > *:not(.ch-host){margin-left:auto;margin-right:auto;width:100%;max-width:640px;box-sizing:border-box;}

/* header: nothing to do, the kaiunta theme already gives you the paper header; the older themes get the same one here */
html.layout-channels[data-theme] .hdr{background:var(--paper);border-bottom:1px solid var(--rule);}
html.layout-channels[data-theme] .hdr-logo{color:var(--ink);}

/* channel tabs: the same hairline pills as .feed-tab, ink fill when active */
.ch-tabs{display:flex;justify-content:center;gap:.4rem;margin:.4rem 0 1.1rem;flex-wrap:wrap;}
.ch-tabs button{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .95rem;border:1px solid var(--rule);border-radius:999px;background:none;color:var(--ink-mid);font:inherit;font-size:.78rem;letter-spacing:.04em;text-transform:lowercase;cursor:pointer;transition:color .15s,background .15s;}
.ch-tabs button:hover{color:var(--ink);border-color:var(--ink-mid);}
.ch-tabs button[aria-selected="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink);}
.ch-tabs .ch-n{font-size:.68rem;opacity:.6;}

/* are.na-style masonry: hairline blocks, 8px corners, flat */
.ch-grid{columns:auto 280px;column-gap:1rem;}   /* as many 280px+ columns as the width allows (was capped at 3) */
.ch-blk{break-inside:avoid;margin:0 0 1rem;background:var(--surface);border:1px solid var(--rule);border-radius:8px;box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 6%,transparent);overflow:hidden;cursor:pointer;display:flex;flex-direction:column;}
.ch-blk:hover{border-color:var(--ink-mid);}
.ch-blk:focus-visible{outline:1px solid var(--ink);outline-offset:2px;}
.ch-art{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem .9rem;min-height:48px;background:var(--yellow);border-bottom:1px solid var(--rule);color:var(--ink-faint);font-size:.72rem;font-style:italic;letter-spacing:.02em;text-transform:lowercase;}
.ch-art img{width:28px;height:28px;border-radius:7px;object-fit:cover;border:1px solid var(--rule);}
.ch-body{padding:.9rem .9rem .6rem;}
.ch-kick{font-size:.72rem;font-style:italic;color:var(--ink-faint);margin-bottom:.3rem;text-transform:lowercase;}
.ch-title{margin:0 0 .6rem;font-size:1rem;line-height:1.4;font-weight:400;}
.ch-meta{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.75rem;color:var(--ink-faint);}
/* "voice it": the theme's primary button, small: ink pill, lowercase, wide tracking */
.ch-voice-btn{height:30px;padding:0 1rem;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:999px;font:inherit;font-size:.72rem;letter-spacing:.12em;text-transform:lowercase;cursor:pointer;transition:opacity .15s,transform .12s;}
.ch-voice-btn:hover{opacity:.8;}.ch-voice-btn:active{transform:scale(.97);}
.ch-empty{padding:.2rem .9rem .9rem;font-size:.75rem;font-style:italic;color:var(--ink-faint);}
.ch-empty b{font-weight:400;color:var(--ink-mid);}

.ch-av{width:22px;height:22px;border-radius:50%;flex:none;object-fit:cover;background:var(--icon-fill);display:flex;align-items:center;justify-content:center;font-size:.65rem;}
.ch-nm{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ch-dur{display:flex;justify-content:space-between;font-size:.75rem;color:var(--ink-faint);margin-top:.25rem;}

/* prompt page (tap a block) */
.ch-page{max-width:640px;margin:0 auto;}
.ch-back{background:none;border:0;padding:.6rem 0;color:var(--ink-mid);font:inherit;font-size:.78rem;letter-spacing:.04em;text-transform:lowercase;cursor:pointer;}
.ch-back:hover{color:var(--ink);text-decoration:underline;}
.ch-page .ch-art{border:1px solid var(--rule);border-radius:8px;margin-bottom:1rem;}
.ch-page h2{font-size:1.25rem;line-height:1.4;font-weight:400;margin:.2rem 0 1rem;}
.ch-page .ch-voice-btn{height:44px;padding:0 1.6rem;font-size:.78rem;}
.ch-list{margin-top:1.4rem;display:flex;flex-direction:column;gap:1rem;}
.ch-row{display:flex;gap:.7rem;align-items:center;text-align:left;border:1px solid var(--rule);border-radius:8px;background:var(--surface);padding:.75rem .9rem;font:inherit;color:inherit;cursor:pointer;width:100%;}
.ch-row.playing{border-color:var(--red);}
.ch-row .ch-av{width:34px;height:34px;}
.ch-row-main{flex:1;min-width:0;display:flex;flex-direction:column;}
.ch-row-snip{font-size:.78rem;color:var(--ink-faint);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.ch-more-feed{display:block;margin:1.5rem auto 0;background:none;color:var(--ink-mid);}
.ch-more-feed:hover{color:var(--ink);}

/* ---------- slim top bar (v3) ----------
   One row: voices / stations / following on the left, a search button and a "more" button on the right.
   Everything else that used to sit above the cards (search field, all / signed / unsigned, live bar, "see it? voice it.",
   tags) lives in #feedControlsExtra, which is folded away until "more" (or search) is tapped. */
.ch-bar-btn{display:none;}
html.layout-channels[data-theme] .ch-bar-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;flex:none;height:40px;border:1px solid var(--rule);border-radius:999px;background:none;color:var(--ink);font:inherit;font-size:.8rem;letter-spacing:.04em;text-transform:lowercase;cursor:pointer;transition:border-color .15s,background .15s;}
html.layout-channels[data-theme] .ch-bar-btn:hover{border-color:var(--ink-mid);}
html.layout-channels[data-theme] .ch-bar-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
html.layout-channels[data-theme] .ch-bar-search{width:40px;margin-left:auto;padding:0;}
html.layout-channels[data-theme] .ch-bar-more{padding:0 1rem;border-color:var(--ink);}
html.layout-channels[data-theme] .ch-bar-more svg{width:12px;height:12px;transition:transform .15s;}
html.layout-channels.ch-controls-open[data-theme] .ch-bar-more{background:var(--surface);}
html.layout-channels.ch-controls-open[data-theme] .ch-bar-more svg{transform:rotate(180deg);}
html.layout-channels[data-theme] .ch-bar-more .ch-live-dot{display:none;width:8px;height:8px;border-radius:50%;background:var(--red);}
html.layout-channels.ch-live[data-theme] .ch-bar-more .ch-live-dot{display:inline-block;}

/* the bar itself: full grid width, hairline underneath, roomier */
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tabs{max-width:var(--ch-w,1200px);align-items:center;gap:.5rem;margin:0 auto;padding:.9rem 1rem;border-bottom:1px solid var(--rule);}
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tab{flex:1 1 0;min-width:0;height:40px;padding:0 .6rem;border:1px solid var(--rule);border-radius:999px;font-family:var(--font-mono);font-size:.82rem;letter-spacing:.04em;text-transform:lowercase;color:var(--ink);}
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tab.active{background:var(--ink);border-color:var(--ink);color:var(--paper);}
@media (min-width:700px){
  html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tab{flex:0 0 auto;padding:0 1.3rem;}
}

/* folded away by default; "more" opens it as a centred sheet under the bar */
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedControlsExtra{display:none;}
html.layout-channels.ch-controls-open:not(.ch-sidebar)[data-theme] #viewFeed.active #feedControlsExtra{display:flex;flex-direction:column;align-items:stretch;gap:.8rem;max-width:640px;margin:1rem auto 0;padding:1rem;border:1px solid var(--rule);border-radius:16px;background:color-mix(in srgb,var(--surface) 55%,var(--paper));box-shadow:0 6px 20px color-mix(in srgb,var(--ink) 8%,transparent);}
html.layout-channels.ch-controls-open:not(.ch-sidebar)[data-theme] #viewFeed.active #feedControlsExtra > *:not(.ch-host),
html.layout-channels.ch-controls-open:not(.ch-sidebar)[data-theme] #viewFeed.active #feedStickyTop > *:not(.ch-host){max-width:100%;margin-left:0;margin-right:0;}

/* more air around the channel tabs and the grid */
.ch-tabs{margin:1.2rem 0 1.4rem;}
.ch-grid{column-gap:1.25rem;}
.ch-blk{margin-bottom:1.25rem;}

/* everything on a card reads lowercase, whatever case the headline arrived in */
.ch-title,.ch-page h2,.ch-row-snip{text-transform:lowercase;}

/* ---------- channels inside the right rail ----------
   The rail hides the old tab strip. Search + "more" now sit at the start of the channel pill row (see tabsHtml in the js),
   and that row is one line that scrolls sideways instead of wrapping into five centred rows. */
.ch-tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:.2rem 0 1rem;padding:.1rem 0;-webkit-overflow-scrolling:touch;}
.ch-tabs::-webkit-scrollbar{display:none;}
.ch-tabs button,.ch-tabs .ch-sep{flex:none;}
.ch-tool,.ch-sep{display:none;}
.ch-sep{width:1px;align-self:stretch;margin:.25rem .1rem;background:var(--rule);}
html.layout-channels[data-theme] .ch-tool{display:inline-flex;}
html.layout-channels[data-theme] .ch-sep{display:block;}
html.layout-channels[data-theme] .ch-tool-search{padding:.4rem .6rem;}
html.layout-channels[data-theme] .ch-tool-more{color:var(--ink);border-color:var(--ink);}
html.layout-channels[data-theme] .ch-tool svg{width:14px;height:14px;}
html.layout-channels.ch-controls-open[data-theme] .ch-tool-more{background:var(--surface);}
html.layout-channels.ch-controls-open[data-theme] .ch-tool-more svg{transform:rotate(180deg);}
html.layout-channels[data-theme] .ch-tool-more .ch-live-dot{display:none;width:7px;height:7px;border-radius:50%;background:var(--red);}
html.layout-channels.ch-live[data-theme] .ch-tool-more .ch-live-dot{display:inline-block;}

@media (min-height:501px){
  html.layout-channels.mobile-rail[data-theme] #viewFeed.active #feedLayout .feed-tabs{display:none;}
  html.layout-channels.mobile-rail[data-theme] .ch-host{padding:0 .25rem 6rem;}
}

/* "20 new casts": a small pill, not a full-width bar */
html.layout-channels[data-theme] #viewFeed.active #feedNewPill{width:auto;max-width:none;margin:.2rem auto .8rem;padding:.3rem .9rem;font-size:.78rem;border-width:1px;box-shadow:none;}

/* cards: quieter. smaller title, flat small record dot (no cream ring / offset shadow) */
html.layout-channels[data-theme] .ch-blk{margin-bottom:.8rem;}
html.layout-channels[data-theme] .ch-title{font-size:.95rem;margin-bottom:.4rem;}
html.layout-channels[data-theme] .ch-body{padding:.8rem .85rem .75rem;}
html.layout-channels[data-theme] .ch-rec{width:34px;height:34px;font-size:.7rem;border:1px solid var(--red);box-shadow:none;transform:none;}
html.layout-channels[data-theme] .ch-rec:hover,html.layout-channels[data-theme] .ch-rec:active{transform:none;box-shadow:none;opacity:.85;}
/* ---------- rail + channels: the folded controls panel (v8) ----------
   channels-layout.js seats #feedControlsExtra inside .ch-host, straight under the pill row, whenever the rail is on, so it opens under
   the "more" / search buttons you pressed (it used to open above the pills). Because it is then a child of the host (1200px max) the 640px
   caps above and in mobile-rail.css no longer reach it. Rules start with the same html.layout-channels prefix and the
   #viewFeed.active id so they win over the rail's phone-sized card. */

/* one card, not a card inside a card: the sheet stays, the rail's grey search card goes flat */
html.layout-channels.ch-controls-open[data-theme] #viewFeed.active .ch-host > #feedControlsExtra{display:flex;flex-direction:column;gap:.6rem;width:100%;max-width:none;margin:0 0 1rem;padding:.75rem;box-sizing:border-box;}
html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop{position:static;width:100%;max-width:none;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;}
/* no stray gaps: the sheet's own gap does the spacing */
html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra :is(.on-air-feed-cue,.report-apply-pill,.live-strip,.live-banner,.live-host-req,.past-lives,.tm-lives,.trending-tags-label,.trending-tags-row){margin-top:0;margin-bottom:0;}
html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra > .feed-header{display:none;}   /* empty "voices" heading + back arrow; neither is used inside channels */
html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .on-air-feed-cue{max-width:none;width:100%;margin:0;padding:0;}
html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .live-empty-card{flex-wrap:wrap;row-gap:.35rem;}

/* wide enough for rows: search + filters on one line; the off-air bar and "see it? voice it." side by side */
@media (min-width:900px){
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);align-items:center;gap:.5rem 1rem;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop > .feed-search-row{grid-column:1;grid-row:1;width:auto;max-width:none;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop > .feed-frame-filter{grid-column:2;grid-row:1;width:auto;max-width:none;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop > .keep-listening-hint{grid-column:1 / -1;grid-row:2;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra #feedStickyTop:not(:has(> .feed-frame-filter)) > .feed-search-row{grid-column:1 / -1;}

  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .on-air-feed-cue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;align-items:stretch;}
  /* everything spans the row unless there is an off-air bar AND an apply pill to put side by side */
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .on-air-feed-cue > *{grid-column:1 / -1;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .on-air-feed-cue:has(> .report-apply-pill:not([hidden])):has(.live-strip .live-empty-card) > :is(.live-strip,.report-apply-pill){grid-column:auto;}
  html.layout-channels[data-theme] #viewFeed.active .ch-host > #feedControlsExtra .on-air-feed-cue .report-apply-pill{height:100%;}
}
/* ---------- "the story" preview sheet ----------
   A small button on the source strip of any card that has a link or teaser. It opens a bottom sheet on phones (a centred card on wider screens)
   with the publisher's headline, picture and teaser, the record button, and a "read full article" link out. Lives on <body>, so the host redraws
   never touch it. */
.ch-story-btn{flex:none;background:none;border:1px solid var(--rule);border-radius:999px;padding:.12rem .6rem;font:inherit;font-size:.68rem;font-style:normal;letter-spacing:.04em;text-transform:lowercase;color:var(--ink-mid);cursor:pointer;transition:color .15s,border-color .15s;}
.ch-story-btn:hover{color:var(--ink);border-color:var(--ink-mid);}
.ch-story-btn:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
html.ch-story-open{overflow:hidden;}
.ch-story{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center;background:color-mix(in srgb,var(--ink) 45%,transparent);font-family:var(--font-mono);color:var(--ink);}
.ch-story[hidden]{display:none;}
.ch-story-card{position:relative;width:100%;max-width:520px;max-height:88vh;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:1.1rem 1.1rem calc(1.3rem + env(safe-area-inset-bottom,0px));background:var(--paper);border:1px solid var(--rule);border-radius:16px 16px 0 0;}
@media (min-width:700px){.ch-story{align-items:center;}.ch-story-card{border-radius:16px;padding-bottom:1.3rem;}}
.ch-story-x{position:absolute;top:.55rem;right:.6rem;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid var(--rule);border-radius:50%;background:var(--paper);color:var(--ink);font:inherit;font-size:1.1rem;line-height:1;cursor:pointer;}
.ch-story-x:hover{border-color:var(--ink-mid);}
.ch-story-src{margin:0 2.6rem .6rem 0;font-size:.72rem;font-style:italic;color:var(--ink-faint);text-transform:lowercase;}
.ch-story-img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;margin:0 0 .85rem;border:1px solid var(--rule);border-radius:8px;background:var(--icon-fill);}
.ch-story-t{margin:0 0 .6rem;font-size:1.05rem;line-height:1.4;font-weight:400;text-transform:lowercase;}
.ch-story-d{margin:0 0 1.1rem;font-size:.82rem;line-height:1.55;color:var(--ink-mid);text-transform:lowercase;}
.ch-story-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem 1.2rem;}
.ch-story-link{font-size:.75rem;color:var(--ink-mid);text-decoration:underline;text-underline-offset:3px;text-transform:lowercase;}
.ch-story-link:hover{color:var(--ink);}
@media (prefers-reduced-motion:no-preference){.ch-story-card{animation:chStoryUp .18s ease-out;}}
@keyframes chStoryUp{from{transform:translateY(24px);opacity:0;}to{transform:none;opacity:1;}}
/* ---------- rail off: same top-row layout as the rail ----------
   The tab strip (voices / channels / stations / following) stays in the header because there is no rail to hold it, but search and "more"
   now live only at the start of the pill row (like the rail), and the folded panel opens under them as one full-width band.
   The slim-bar search / more buttons stay in the DOM (the pill row's buttons click them) but are not shown. */
html.layout-channels[data-theme] #viewFeed.active #feedLayout .feed-tabs .ch-bar-btn{display:none;}
/* leaving-the-site confirmation inside the story sheet */
.ch-leave-msg{flex:1 0 100%;margin:0;font-size:.8rem;line-height:1.5;color:var(--ink-mid);text-transform:lowercase;}
a.ch-voice-btn{display:inline-flex;align-items:center;text-decoration:none;}
.ch-leave-no{background:none;border:0;padding:0;font:inherit;font-size:.75rem;color:var(--ink-mid);text-decoration:underline;text-underline-offset:3px;text-transform:lowercase;cursor:pointer;}
.ch-leave-no:hover{color:var(--ink);}
/* ---------- phones: stop the double side padding (v17) ----------
   #viewFeed already pads the page 1.25rem each side. The channels top row (.feed-tabs, padding .9rem 1rem) and the grid host
   (.ch-host, padding 0 1rem) each added another 1rem on top, so on a phone the tabs and cards were ~16px narrower per side than
   in the voices view, and the hairline under the tabs (full width) stuck out past the cards. On phones the extra padding is
   removed (normal layout only; rail mode keeps its own spacing from mobile-rail.css) so everything lines up with the voices view, and the pill row (search / more / all / news ...) scrolls edge to edge
   instead of being clipped hard at the card edge. */
@media (max-width:640px){
  html.layout-channels:not(.mobile-rail)[data-theme] #viewFeed.active #feedLayout .feed-tabs{padding-left:0;padding-right:0;}
  html.layout-channels:not(.mobile-rail)[data-theme] .ch-host{padding-left:0;padding-right:0;}
  html.layout-channels:not(.mobile-rail)[data-theme] .ch-host .ch-tabs{margin-left:-1.25rem;margin-right:-1.25rem;padding-left:1.25rem;padding-right:1.25rem;}
}

/* ---------- the tab row no longer jumps down when channels turns on (v18) ----------
   The voices view has no padding above the icon tabs; the channels bar added .9rem on top, so the whole row dropped ~14px
   (and everything below it) every time you tapped channels. Top padding removed at every width; the bottom padding stays
   so there is still air above the hairline. */
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tabs{padding-top:0;}

/* ---------- answer count on a prompt card (v20) ----------
   Shown only when the prompt has at least one answer; the whole card opens that prompt's answers, so this is a label, not a second button. */
.ch-count{font-size:.75rem;color:var(--ink-mid);text-transform:lowercase;}
.ch-blk:hover .ch-count,.ch-blk:focus-visible .ch-count{color:var(--ink);text-decoration:underline;}

/* ---------- desktop: channels keeps the same left sidebar as voices / stations / hosts (v21) ----------
   html.ch-sidebar is set by channels-layout.js / the early script in index.php on screens 900px and wider (unless the person chose the
   classic single column). The top-row rules above are all written :not(.ch-sidebar), so here the sidebar (tabs stacked on the left,
   off air, see it? voice it., live archive) is left exactly as voices has it, and only the middle column changes: it is as wide as the
   window allows and holds the channel pills (all / news / music ...) and the card grid. The search / more buttons at the start of the
   pill row are not needed here, because the sidebar already carries the live bar and the other controls. */
html.layout-channels.ch-sidebar[data-theme] .feed-main{max-width:none;}
html.layout-channels.ch-sidebar[data-theme] .ch-host{max-width:none;margin:0;padding:0 0 6rem;}
html.layout-channels.ch-sidebar[data-theme] .ch-tool,
html.layout-channels.ch-sidebar[data-theme] .ch-sep{display:none;}

/* ---------- no voices search in channels (v22) ----------
   Channels is for browsing prompts and stories; to search voices you use the voices tab. So: no search / more buttons anywhere in channels
   (phones included), the folded panel never opens, and on desktop the sidebar's voices search row, signed / unsigned filter and trending tags
   are hidden while channels is on (the tabs, off air, "see it? voice it." and live archive stay exactly as on voices). */
html.layout-channels[data-theme] :is(.ch-tool,.ch-sep,.ch-bar-btn){display:none!important;}
html.layout-channels[data-theme] #viewFeed.active #feedControlsExtra{display:none!important;}
html.layout-channels.ch-sidebar[data-theme] :is(#feedStickyTop,#trendingTagsLabel,#trendingTagsRow,#btnAllTopics){display:none!important;}
/* ---------- no "prompts" rail in channels (v23) ----------
   Channels already is the prompts page, so the right rail (the "prompts" switch + the prompt card) is hidden here, the same way
   residents mode hides it (style.css: #viewFeed.residents-mode #newsRail). The left sidebar stays where it is, because the layout width
   is keyed to html.news-rail-active, which this does not touch; the freed space goes to the channel pills + grid. The saved
   on / off choice of the switch (jvi_news_rail_collapsed) is left alone, so voices comes back exactly as the person had it. */
html.layout-channels.news-rail-active[data-theme] #newsRail{display:none!important;}
html.layout-channels.news-rail-active.ch-sidebar[data-theme] #viewFeed.active #feedMain{max-width:none;}
/* ---------- sliding the pill rows on desktop ----------
   The icon tab strip (.feed-tabs) and the channel pill row (.ch-tabs) are one line that scrolls sideways when the window is
   too narrow for them. With no visible scrollbar a mouse had no way to move them, so channels-layout.js adds drag-to-slide and
   wheel-to-slide, and these rules give the row room to scroll, a grab cursor and a soft fade on whichever end has more pills. */
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tabs{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tabs::-webkit-scrollbar{display:none;}
html.layout-channels:not(.ch-sidebar)[data-theme] #viewFeed.active #feedLayout .feed-tab{flex-shrink:0;}
.feed-tabs.ch-slide,.ch-tabs.ch-slide{cursor:grab;overscroll-behavior-x:contain;}
.feed-tabs.ch-slide.ch-dragging,.ch-tabs.ch-slide.ch-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none;}
.ch-dragging button{pointer-events:none;}
.ch-slide.ch-fade-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);}
.ch-slide.ch-fade-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px);mask-image:linear-gradient(90deg,transparent,#000 36px);}
.ch-slide.ch-fade-l.ch-fade-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);}
/* ---------- sticky channel pills (v24) ----------
   The pill row (all / news / music / film ...) stays pinned just under the header while the card grid scrolls beneath it,
   so there is no need to scroll back up to change channel. It needs a solid paper background (cards slide under it) and
   padding instead of a bottom margin so that background covers the whole band. */
html.layout-channels[data-theme] .ch-host > .ch-tabs{
  position:sticky;
  top:var(--hdr-h,56px);
  z-index:20;
  background:var(--paper);
  margin:0 0 .4rem;
  padding:.7rem 0 .7rem;
}
/* ---------- prompt overlay (v25) ----------
   Tapping a card opens its prompt + answers on top of the grid (channels-layout.js, #chDetail). A bottom sheet on phones, a centred
   card from 700px. The header (prompt + "voice it") stays pinned; only the answers list scrolls. Colours all come from the theme
   variables, so light and dark need nothing extra. The floating record button is hidden while it is open so there is one record action. */
html.ch-detail-open{overflow:hidden;}
html.ch-detail-open .record-fab{visibility:hidden;}
.ch-detail{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center;background:color-mix(in srgb,var(--ink) 45%,transparent);font-family:var(--font-mono);color:var(--ink);}
.ch-detail[hidden]{display:none;}
.ch-dt-card{position:relative;display:flex;flex-direction:column;width:100%;max-width:640px;max-height:90vh;max-height:90dvh;min-height:0;box-sizing:border-box;background:var(--paper);border:1px solid var(--rule);border-radius:16px 16px 0 0;overflow:hidden;}
.ch-dt-head{flex:none;padding:1.1rem 1.1rem .9rem;border-bottom:1px solid var(--rule);}
.ch-dt-head .ch-art{border:1px solid var(--rule);border-radius:8px;margin:0 2.6rem .9rem 0;}
.ch-dt-head .ch-kick{margin-right:2.6rem;}
.ch-dt-head h2{font-size:1.15rem;line-height:1.4;font-weight:400;margin:.2rem 0 1rem;text-transform:lowercase;}
.ch-dt-head .ch-voice-btn{height:44px;padding:0 1.6rem;font-size:.78rem;}
.ch-dt-card .ch-list{flex:1 1 auto;min-height:0;margin:0;padding:1rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom,0px));gap:.7rem;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.ch-dt-card .ch-empty{padding:0;}
.ch-dt-x{position:absolute;top:.6rem;right:.65rem;z-index:2;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid var(--rule);border-radius:50%;background:var(--paper);color:var(--ink);font:inherit;font-size:1.1rem;line-height:1;cursor:pointer;}
.ch-dt-x:hover{border-color:var(--ink-mid);}
.ch-dt-x:focus-visible,.ch-detail .ch-row:focus-visible{outline:2px solid var(--ink);outline-offset:2px;}
@media (min-width:700px){.ch-detail{align-items:center;}.ch-dt-card{border-radius:16px;max-height:85vh;max-height:85dvh;}}
@media (prefers-reduced-motion:no-preference){.ch-dt-card{animation:chStoryUp .18s ease-out;}}
/* the "the story" sheet can be opened from inside the overlay, so it must sit above it */
.ch-story{z-index:3100;}