/* BeeWell Episodes — matches the theme (Nunito Sans, red #ca2330). */
:root {
  --bwe-accent: #ca2330;
  --bwe-accent-dark: #a31b26;
  --bwe-text: #212529;
  --bwe-muted: #6c757d;
  --bwe-line: #e5e5e5;
  --bwe-soft: #f7f3f3;
}

/* The theme's menu is fixed at the top, so leave room for it. */
.bwe-main { padding: 8rem 0 4rem; color: var(--bwe-text); }
.bwe-standalone .bwe-main { padding-top: 2.5rem; }
.bwe-main .container { max-width: 860px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.bwe-main h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 0 0 .5rem; }
.bwe-lead { color: var(--bwe-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.bwe-main a { color: var(--bwe-accent); }
.bwe-main a:hover { color: var(--bwe-accent-dark); }

/* Meta line */
.bwe-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--bwe-muted); font-size: .9rem; margin: 0 0 .4rem; }
.bwe-meta a { color: var(--bwe-muted); text-decoration: underline; text-underline-offset: 2px; }
.bwe-badge { background: var(--bwe-accent); color: #fff; border-radius: 99px; padding: 0 .55rem; font-size: .75rem; font-weight: 700; line-height: 1.6; }

/* Single episode */
.bwe-back { margin: 0 0 1.5rem; font-size: .95rem; }
.bwe-back a { text-decoration: none; }
.bwe-ep-head { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.bwe-ep-img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; flex: none; }
.bwe-audio { width: 100%; margin: .5rem 0 1.25rem; }
.bwe-video { margin: 0 0 1.25rem; }
.bwe-desc { font-size: 1.05rem; line-height: 1.7; margin: 1.5rem 0; }
.bwe-desc p { margin: 0 0 1rem; }
.bwe-desc a { word-break: break-word; }
.bwe-listen { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--bwe-line); border-bottom: 1px solid var(--bwe-line); }
.bwe-listen span { color: var(--bwe-muted); }
.bwe-transcript { margin: 1.5rem 0; background: var(--bwe-soft); border-radius: 12px; padding: 1rem 1.25rem; }
.bwe-transcript summary { cursor: pointer; font-weight: 700; color: var(--bwe-accent); }
.bwe-transcript[open] summary { margin-bottom: 1rem; }
.bwe-transcript p { line-height: 1.7; }
.bwe-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.bwe-adjacent a { display: block; padding: 1rem; border: 1px solid var(--bwe-line); border-radius: 12px; text-decoration: none; color: var(--bwe-text); font-weight: 600; }
.bwe-adjacent a:hover { border-color: var(--bwe-accent); }
.bwe-adjacent a span { display: block; font-size: .8rem; font-weight: 400; color: var(--bwe-muted); margin-bottom: .25rem; }
.bwe-older { text-align: right; }

/* Share */
.bwe-share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.bwe-share-label { font-weight: 700; margin-right: .25rem; }
.bwe-share a, .bwe-share button, .bwe-share summary {
  display: inline-block; font: inherit; font-size: .9rem; line-height: 1.2; padding: .45rem .85rem;
  border: 1px solid var(--bwe-line); border-radius: 99px; background: #fff; color: var(--bwe-text);
  text-decoration: none; cursor: pointer;
}
.bwe-share a:hover, .bwe-share button:hover, .bwe-share summary:hover { border-color: var(--bwe-accent); color: var(--bwe-accent); }
.bwe-share .bwe-share-native { background: var(--bwe-accent); border-color: var(--bwe-accent); color: #fff; }
.bwe-share [hidden] { display: none !important; }

/* Compact version inside the theme's homepage list */
.bwe-share-compact { margin: .75rem 0; }
.bwe-share-compact .bwe-open { background: var(--bwe-accent); border-color: var(--bwe-accent); color: #fff; }
.bwe-share-compact .bwe-open:hover { background: var(--bwe-accent-dark); color: #fff; }
.bwe-share-more { position: relative; }
.bwe-share-more summary { list-style: none; }
.bwe-share-more summary::-webkit-details-marker { display: none; }
.bwe-share-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: .35rem; min-width: 170px; padding: .6rem; background: #fff; border: 1px solid var(--bwe-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.bwe-share-menu a, .bwe-share-menu button { text-align: left; }
.individual-episode-div h3 .bwe-title-link { color: inherit; text-decoration: none; }
.individual-episode-div h3 .bwe-title-link:hover { color: var(--bwe-accent); }

/* All-episodes list */
.bwe-filters { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.bwe-search input { width: 100%; font: inherit; padding: .7rem 1rem; border: 1px solid #ccc; border-radius: 99px; }
.bwe-search input:focus { outline: 2px solid var(--bwe-accent); outline-offset: 1px; }
.bwe-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bwe-chips button { font: inherit; font-size: .85rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--bwe-line); background: #fff; cursor: pointer; }
.bwe-chips button.is-on { background: var(--bwe-accent); border-color: var(--bwe-accent); color: #fff; }
.bwe-count { color: var(--bwe-muted); font-size: .9rem; }
.bwe-items { list-style: none; margin: 0; padding: 0; }
.bwe-item { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--bwe-line); }
.bwe-item[hidden] { display: none; }
.bwe-item-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }
.bwe-item h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .3rem; }
.bwe-item h2 a { color: var(--bwe-text); text-decoration: none; }
.bwe-item h2 a:hover { color: var(--bwe-accent); }
.bwe-item-sum { margin: 0; color: #444; font-size: .95rem; }

/* YouTube */
.bwe-yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; color: #fff; text-decoration: none; }
.bwe-yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s; }
.bwe-yt:hover img { opacity: 1; }
.bwe-yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; background: #f00; border-radius: 12px; }
.bwe-yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.bwe-yt-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .8rem .6rem; font-size: .9rem; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.bwe-yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.bwe-yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.bwe-yt-date { margin: .2rem 0 0; color: var(--bwe-muted); font-size: .85rem; }
.bwe-yt-name { margin: .6rem 0 0; font-weight: 600; line-height: 1.35; color: var(--bwe-text); }
/* Title is shown under the picture; keep the overlay copy for screen readers only. */
.bwe-yt .bwe-yt-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.bwe-yt, .bwe-main a.bwe-yt { color: #fff; }

/* Homepage additions */
.bwe-home { padding-top: 1rem; }
.bwe-home-more { margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.bwe-btn { display: inline-block; padding: .65rem 1.3rem; border-radius: 99px; background: var(--bwe-accent); color: #fff !important; text-decoration: none; font-weight: 700; }
.bwe-btn:hover { background: var(--bwe-accent-dark); }
.bwe-btn-ghost { background: transparent; color: var(--bwe-accent) !important; border: 2px solid var(--bwe-accent); }
.bwe-btn-ghost:hover { background: var(--bwe-accent); color: #fff !important; }

/* Simple layout */
.bwe-standalone { margin: 0; font-family: "Nunito Sans", system-ui, sans-serif; background: #fff; }
.bwe-topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding: 1rem 16px; border-bottom: 1px solid var(--bwe-line); }
.bwe-brand { font-weight: 800; font-size: 1.2rem; color: var(--bwe-accent); text-decoration: none; }
.bwe-topbar nav { display: flex; gap: 1.25rem; }
.bwe-topbar nav a { color: var(--bwe-text); text-decoration: none; }
.bwe-footer { padding: 2rem 16px; text-align: center; color: var(--bwe-muted); border-top: 1px solid var(--bwe-line); }

@media (max-width: 575px) {
  .bwe-ep-head { flex-direction: column; align-items: flex-start; }
  .bwe-ep-img { width: 84px; height: 84px; }
  .bwe-adjacent { grid-template-columns: 1fr; }
  .bwe-older { text-align: left; }
  .bwe-share-label { width: 100%; }
}

/* On plugin pages there is no big homepage banner behind the menu,
   so give the menu its red background straight away. */
body:has(.bwe-main) #navigation { background-color: rgba(202, 35, 48, .95); }

/* "Behind the Mic" social icons: X instead of the old Twitter bird. */
.about-section .social-icons li.twitter a { background-color: #000; }
.about-section .social-icons .bwe-x-logo { vertical-align: -0.125em; }

/* Search: where the words were found */
.bwe-match { margin: .35rem 0 0; font-size: .95rem; color: #444; }
.bwe-match-label { display: inline-block; font-weight: 700; font-size: .8rem; padding: .1rem .55rem; border-radius: 99px; background: var(--bwe-soft); color: var(--bwe-accent); margin-right: .25rem; }
.bwe-match-transcript .bwe-match-snippet { font-style: normal; }

/* ---------- Episode page: separate Listen and Watch blocks ---------- */
.bwe-media {
  background: #fff;
  border: 1px solid var(--bwe-line);
  border-radius: 16px;
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 0 0 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.bwe-media-h {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.2rem; font-weight: 700; margin: 0 0 .8rem;
  color: var(--bwe-accent);
}
.bwe-media .bwe-audio { margin: 0; display: block; }
.bwe-media .bwe-video { margin: 0; }
.bwe-media-icon {
  width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%;
  background: var(--bwe-accent);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.bwe-icon-listen {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1v-6h3zM3 19a2 2 0 0 0 2 2h1v-6H3z'/%3E%3C/svg%3E");
  border-radius: 0;
}
.bwe-icon-watch {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M16 10l6-3v10l-6-3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='M16 10l6-3v10l-6-3z'/%3E%3C/svg%3E");
  border-radius: 0;
}

/* ---------- Clear way back ---------- */
.bwe-backnav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.bwe-backnav-bottom { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--bwe-line); }
.bwe-backnav a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: 12px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid var(--bwe-accent);
}
.bwe-backnav .bwe-back-home { background: var(--bwe-accent); color: #fff !important; }
.bwe-backnav .bwe-back-home:hover { background: var(--bwe-accent-dark); }
.bwe-backnav .bwe-back-list { background: #fff; color: var(--bwe-accent) !important; }
.bwe-backnav .bwe-back-list:hover { background: var(--bwe-soft); }
.bwe-backnav a:focus-visible { outline: 3px solid #CB2335; outline-offset: 2px; }
@media (max-width: 575px) { .bwe-backnav a { flex: 1 1 100%; justify-content: center; } }

/* ---------- Footer menu ---------- */
.bwe-footer-wrap { text-align: center; margin-bottom: 1.25rem; }
.bwe-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-bottom: .75rem; }
.bwe-footer-nav a, .bwe-footer-social a { font-weight: 700; font-size: 1rem; color: var(--bwe-accent); text-decoration: none; padding: .35rem 0; }
.bwe-footer-nav a:hover, .bwe-footer-social a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bwe-footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; margin: 0; }
.bwe-footer-social a { font-weight: 600; color: #57504F; }

/* ---------- Blog: LinkedIn articles ---------- */
.bwe-ext-label { display: inline-block; margin-top: .35rem; font-size: .85rem; font-weight: 700; color: var(--bwe-accent); background: var(--bwe-soft); border-radius: 99px; padding: .1rem .6rem; }
.individual-blog-entry[role="link"]:focus-visible { outline: 3px solid #CB2335; outline-offset: 4px; border-radius: 12px; }
.bwe-entry-ext { padding: 1.5rem 0 0; }
.bwe-entry-ext-text { font-size: 1.1rem; margin: 0 0 .75rem; }
.bwe-entry-ext-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

/* ---------- Page not found ---------- */
.bwe-notfound { padding-bottom: 2rem; }
.bwe-nf-search { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 2rem; }
.bwe-nf-search input { flex: 1 1 240px; font: inherit; font-size: 1.05rem; padding: .7rem 1rem; border: 2px solid #ccc; border-radius: 12px; }
.bwe-nf-search .bwe-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.bwe-notfound h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.bwe-nf-latest { padding-left: 1.2rem; margin: 0 0 1rem; }
.bwe-nf-latest li { margin: .4rem 0; font-size: 1.05rem; }

/* ---------- Topic tiles (All episodes page) ---------- */
.bwe-filter-h { font-size: 1.3rem; margin: 1.25rem 0 .75rem; }
.bwe-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.bwe-topic {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center;
  text-align: left; font: inherit; cursor: pointer; min-height: 72px;
  padding: .85rem 1rem; border-radius: 14px; border: 2px solid transparent;
  background: var(--bwe-soft); color: var(--bwe-text);
}
.bwe-topic:hover { border-color: var(--bwe-accent); }
.bwe-topic:focus-visible { outline: 3px solid #CB2335; outline-offset: 2px; }
.bwe-topic.is-on { background: var(--bwe-accent); color: #fff; }
.bwe-topic-icon { grid-row: 1 / span 2; color: var(--bwe-accent); display: flex; }
.bwe-topic.is-on .bwe-topic-icon { color: #fff; }
.bwe-topic-name { font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.bwe-topic-count { font-size: .95rem; opacity: .8; }

.bwe-chips-label { font-weight: 700; margin-right: .2rem; align-self: center; }
.bwe-chip-n { font-weight: 400; opacity: .75; }
.bwe-chips button[aria-pressed="true"] { background: var(--bwe-accent); border-color: var(--bwe-accent); color: #fff; }
.bwe-results-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .5rem 0; }
.bwe-results-bar .bwe-count { margin: 0; }
.bwe-clear { font: inherit; font-weight: 700; color: var(--bwe-accent); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: .4rem 0; }
.bwe-meta-topic { font-weight: 600; }
.bwe-meta-format { opacity: .85; }

/* Homepage "Find a topic" list (replaces the old categories) */
.bwe-home-topics { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.bwe-home-topics a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 12px; background: var(--bwe-soft); color: var(--bwe-text); text-decoration: none; font-weight: 600; }
.bwe-home-topics a:hover { outline: 2px solid var(--bwe-accent); }
.bwe-home-topics svg { color: var(--bwe-accent); width: 24px; height: 24px; flex: none; }
.bwe-home-topics .n { margin-left: auto; font-weight: 400; opacity: .7; font-size: .95rem; }

/* Logo in the menu */
.navbar-brand .bwe-logo { display: block; height: 52px; width: auto; border-radius: 10px; }
@media (max-width: 991px) { .navbar-brand .bwe-logo { height: 44px; } }
.navbar-brand { padding-top: .35rem; padding-bottom: .35rem; }

/* Listening time */
.bwe-meta-dur { font-weight: 600; }
.bwe-meta-dur::before { content: "⏱ "; font-weight: 400; }
.individual-episode-div .text-muted .bwe-meta-dur { margin-left: .9rem; }

/* Back to top */
.bwe-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  font: inherit; font-weight: 700; font-size: 1rem; min-height: 44px;
  padding: .55rem 1rem; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--bwe-accent); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.bwe-top:hover { background: var(--bwe-accent-dark); }
.bwe-top:focus-visible { outline: 3px solid #CB2335; outline-offset: 2px; }
.bwe-top[hidden] { display: none; }

/* Jumping to a section: keep its heading below the fixed menu */
html { scroll-padding-top: 110px; }
section[id], header[id] { scroll-margin-top: 110px; }

/* Cookie banner: two equal buttons */
.bwe-cookies .bwe-cookie-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.bwe-cookies .bwe-cookie-btns button { min-width: 120px; min-height: 44px; }
.bwe-cookies .bwe-reject { background: #fff !important; color: var(--bwe-accent) !important; border: 2px solid var(--bwe-accent) !important; }
