/* ==========================================================================
   BeeHiwe Read (Blogs) discovery - page body only.

   Loaded by layout/articles/content.html and by nothing else. The header,
   sidebar and footer belong to the parent theme and are untouched: every
   rule is namespaced under .bh-app / .bh-read-app, and the one rule that
   reaches outside (#main-container, below) is safe because the theme's page
   swap replaces #container_content wholesale and takes this <link> with it.

   PARENT THEME LEAKS
   ------------------
   youplay's stylesheets style bare elements, and night-mode.css does it with
   !important, so a plain class rule here loses:

     style.css:922      header { background: white; height: 56px; ... }
     night-mode.css:84  p, span, h1..h6, button, input, li { color: #eee !important }
     night-mode.css:83  a { color: #eee !important }
     night-mode.css:85  li { background: #212121 !important; border-color: #444 !important }
     night-mode.css:89  ul { background: #212121 !important; border-color: #444 !important }
     night-mode.css:30  input { background-color: #303233 !important; border-color: #545454 !important }

   The <header> was swapped for a <div> so the white bar cannot apply at all.
   The rest is neutralised by the reset block below, which is why colour and
   background declarations on p / span / h1-h3 / a / button / input / ul / li
   carry !important throughout this file. They are ordered after the reset, so
   equal-specificity component rules win on source order.
   ========================================================================== */

/* --- page canvas -------------------------------------------------------- */

/* The articles route is not in container.html's `container-full` list, so the
   parent pins it to a 1056px column. Widened here rather than in the shared
   template so no other page's offset can change. */
#main-container.container {
   box-sizing: border-box;
   width: 100%;
   max-width: 1750px;
   /* centred in the space left of the nav, so the only display wide enough
      to hit the cap splits the remainder evenly instead of stranding it all
      on the right */
   margin-left: auto;
   margin-right: auto;
   padding-left: 20px;
   padding-right: 20px;
}

.bh-app {
   --bh-card:        #202325;
   --bh-raise:       #2b2e31;
   --bh-line:        rgba(255, 255, 255, .09);
   --bh-line-soft:   rgba(255, 255, 255, .07);
   --bh-text:        #e8eaed;
   --bh-text-dim:    #aab0b6;
   --bh-text-mute:   #8f969d;
   --bh-accent:      #ffb800;
   --bh-accent-wash: rgba(255, 184, 0, .10);
   --bh-accent-line: rgba(255, 184, 0, .24);
   --bh-select:      #a78bfa;
   --bh-select-wash: rgba(167, 139, 250, .15);
   --bh-select-line: rgba(167, 139, 250, .42);

   --bh-rail:   clamp(280px, 24%, 400px);
   --bh-gap:    18px;
   --bh-r-card: 12px;
   --bh-r-btn:  9px;

   color: var(--bh-text);
   font-size: 15px;
}

.bh-app *,
.bh-app *::before,
.bh-app *::after { box-sizing: border-box; }

/* --- parent theme reset (see header note) ------------------------------- */

.bh-app :where(p, span, h1, h2, h3, h4, a, button, input, li, small, b, strong) {
   color: inherit !important;
}
.bh-app :where(ul, ol, li) {
   background: transparent !important;
   border-color: var(--bh-line-soft) !important;
}

.bh-app :where(a) { text-decoration: none; }
.bh-app :where(a:hover) { text-decoration: none; }
.bh-app :where(img) { max-width: 100%; display: block; }
.bh-app :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; font-weight: inherit; }
.bh-app :where(ul, ol) { list-style: none; }
.bh-app :where(button) { font: inherit; background: none; border: 0; cursor: pointer; }

.bh-app :focus-visible {
   outline: 2px solid var(--bh-accent);
   outline-offset: 2px;
   border-radius: 4px;
}

.bh-dot { color: var(--bh-text-mute) !important; margin: 0 4px; }
.bh-verified { flex: none; vertical-align: -2px; }

.bh-mini-avatar {
   width: 24px; height: 24px; border-radius: 50%;
   overflow: hidden; flex: none; display: block;
}
.bh-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- page heading ------------------------------------------------------- */

.bh-page-head { padding-top: 16px; }

.bh-page-title {
   display: flex; align-items: center; gap: 10px;
   font-size: clamp(28px, 2vw, 32px);
   font-weight: 700; letter-spacing: -.022em;
   line-height: 1.18;
   color: var(--bh-text) !important;
}
.bh-page-icon { display: inline-flex; }
.bh-page-icon svg { width: 26px; height: 26px; }
.bh-ico-read { color: #f43f5e !important; }

.bh-page-sub {
   margin-top: 7px;
   font-size: 14.5px; line-height: 1.5;
   color: var(--bh-text-dim) !important;
}

/* --- filter bar --------------------------------------------------------- */

.bh-filters {
   display: flex; align-items: center; gap: 14px;
   margin: 18px 0;
}

.bh-filter-scroll {
   display: flex; align-items: center; gap: 9px;
   flex: 1 1 auto; min-width: 0;
   overflow-x: auto; overflow-y: visible;
   scrollbar-width: none; -ms-overflow-style: none;
}
.bh-filter-scroll::-webkit-scrollbar { display: none; }

.bh-pill {
   display: inline-flex; align-items: center; gap: 7px;
   height: 36px; padding: 0 14px; flex: none;
   border-radius: var(--bh-r-btn);
   background: var(--bh-raise);
   border: 1px solid var(--bh-line);
   font-size: 13.5px; font-weight: 500;
   color: var(--bh-text) !important;
   white-space: nowrap;
   transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bh-pill:hover { background: #3a3e42; border-color: rgba(255, 255, 255, .18); }

/* Selected discovery state is the one place purple appears. */
.bh-pill.is-active {
   background: var(--bh-select-wash);
   border-color: var(--bh-select-line);
   color: #e2d9ff !important;
}
.bh-pill.is-active:hover { background: rgba(167, 139, 250, .21); }
.bh-pill.is-active .bh-pill-icon { color: var(--bh-select) !important; }

.bh-pill-icon { display: inline-flex; color: var(--bh-text-mute) !important; }
.bh-pill-icon svg { width: 15px; height: 15px; }
.bh-pill-caret { display: inline-flex; margin-left: 1px; color: var(--bh-text-mute) !important; }
.bh-ico-fire  { color: #f97316 !important; }
.bh-ico-clock { color: #60a5fa !important; }

.bh-hue-0 { color: #a78bfa !important; }
.bh-hue-1 { color: #60a5fa !important; }
.bh-hue-2 { color: #4ade80 !important; }
.bh-hue-3 { color: #f472b6 !important; }
.bh-hue-4 { color: #22d3ee !important; }

.bh-pill-sep {
   flex: none; width: 1px; height: 22px;
   background: var(--bh-line); margin: 0 3px;
}

/* --- more dropdown ------------------------------------------------------ */

.bh-more { position: relative; flex: none; }

.bh-more-menu {
   position: absolute; top: calc(100% + 7px); right: 0; z-index: 30;
   min-width: 210px; max-height: 320px; overflow-y: auto;
   padding: 6px;
   background: var(--bh-raise) !important;
   border: 1px solid var(--bh-line) !important;
   border-radius: var(--bh-r-btn);
   box-shadow: 0 10px 26px rgba(0, 0, 0, .40);
}
.bh-more-menu[hidden] { display: none; }
.bh-more-menu li { background: transparent !important; }
.bh-more-menu a {
   display: flex; align-items: center; justify-content: space-between; gap: 10px;
   padding: 8px 10px; border-radius: 6px;
   font-size: 13.5px; color: var(--bh-text) !important;
}
.bh-more-menu a:hover { background: rgba(255, 255, 255, .08); }
.bh-more-menu a.is-active { color: #e2d9ff !important; background: var(--bh-select-wash); }
.bh-more-count { font-size: 12px; color: var(--bh-text-mute) !important; }

/* --- in-page article search --------------------------------------------- */

.bh-search { position: relative; flex: none; width: 250px; }
.bh-search-icon {
   position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
   display: inline-flex; color: var(--bh-text-mute) !important; pointer-events: none;
}
.bh-search-input {
   width: 100%; height: 36px;
   padding: 0 12px 0 35px;
   border-radius: var(--bh-r-btn);
   background: var(--bh-raise) !important;
   border: 1px solid var(--bh-line) !important;
   color: var(--bh-text) !important;
   font-size: 13.5px;
   transition: border-color .15s ease;
}
.bh-search-input::placeholder { color: var(--bh-text-mute); opacity: 1; }
.bh-search-input:focus { outline: none; border-color: var(--bh-select-line) !important; }

/* --- shared controls ---------------------------------------------------- */

.bh-btn-primary {
   display: inline-flex; align-items: center; justify-content: center; gap: 7px;
   height: 38px; padding: 0 18px;
   border-radius: var(--bh-r-btn);
   background: linear-gradient(135deg, #ffc62b 0%, #ff9d00 100%);
   color: #17120a !important;
   font-size: 14px; font-weight: 600; white-space: nowrap;
   transition: filter .15s ease;
}
.bh-btn-primary:hover { filter: brightness(1.07); }

.bh-btn-ghost {
   display: inline-flex; align-items: center; justify-content: center; gap: 7px;
   height: 38px; padding: 0 18px;
   border-radius: var(--bh-r-btn);
   background: rgba(255, 255, 255, .09);
   border: 1px solid var(--bh-line);
   color: var(--bh-text) !important;
   font-size: 14px; font-weight: 500; white-space: nowrap;
   transition: background .15s ease;
}
.bh-btn-ghost:hover { background: rgba(255, 255, 255, .15); }

.bh-btn-lg { height: 40px; padding: 0 20px; font-size: 14.5px; }

.bh-card {
   background: var(--bh-card);
   border: 1px solid var(--bh-line);
   border-radius: var(--bh-r-card);
   padding: 16px;
}

.bh-sec-head {
   display: flex; align-items: center; justify-content: space-between;
   gap: 14px; margin-bottom: 13px;
}
.bh-sec-title {
   display: flex; align-items: center; gap: 9px;
   font-size: 17px; font-weight: 600; letter-spacing: -.015em;
   color: var(--bh-text) !important;
}
.bh-sec-icon { display: inline-flex; }
.bh-sec-icon svg { width: 17px; height: 17px; }
.bh-sec-count { font-size: 12.5px; color: var(--bh-text-mute) !important; }

.bh-view-all {
   display: inline-flex; align-items: center; gap: 5px;
   font-size: 12.5px; font-weight: 500;
   color: var(--bh-text-dim) !important;
   white-space: nowrap;
   transition: color .15s ease;
}
.bh-view-all:hover { color: var(--bh-accent) !important; }

/* --- layout ------------------------------------------------------------- */

.bh-body {
   display: grid;
   grid-template-columns: minmax(0, 1fr) var(--bh-rail);
   gap: var(--bh-gap);
   align-items: start;
   padding-bottom: 28px;
}
.bh-col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bh-col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* --- featured hero ------------------------------------------------------ */

.bh-hero {
   position: relative;
   border-radius: var(--bh-r-card);
   border: 1px solid var(--bh-line);
   overflow: hidden;
   height: clamp(330px, 23vw, 390px);
   background: var(--bh-card);
}
.bh-hero-track { position: absolute; inset: 0; }

.bh-hero-slide {
   position: absolute; inset: 0;
   opacity: 0; visibility: hidden;
   transition: opacity .45s ease;
}
.bh-hero-slide.is-active { opacity: 1; visibility: visible; }

.bh-hero-img {
   position: absolute; inset: 0;
   width: 100%; height: 100%;
   object-fit: cover; object-position: center right;
}
/* Weighted to the left so the copy sits on near-black while the right of the
   photograph stays fully visible. */
.bh-hero-veil {
   position: absolute; inset: 0;
   background: linear-gradient(90deg,
      #06080a 0%, rgba(6, 8, 10, .96) 26%, rgba(6, 8, 10, .80) 44%,
      rgba(6, 8, 10, .40) 62%, rgba(6, 8, 10, .06) 82%, transparent 100%);
}

.bh-hero-body {
   position: relative;
   max-width: 52%;
   height: 100%;
   display: flex; flex-direction: column; justify-content: center;
   padding: 32px;
}
.bh-hero-kicker {
   display: inline-flex; align-self: flex-start; align-items: center;
   font-size: 11.5px; font-weight: 700;
   letter-spacing: .11em; text-transform: uppercase;
   color: var(--bh-accent) !important;
   background: var(--bh-accent-wash);
   border: 1px solid var(--bh-accent-line);
   padding: 4px 10px; border-radius: 5px;
   margin-bottom: 14px;
}
.bh-hero-title {
   font-size: clamp(30px, 2.35vw, 36px);
   font-weight: 700; line-height: 1.16;
   letter-spacing: -.025em;
   color: #fff !important;
   margin-bottom: 12px;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
}
.bh-hero-title a { color: #fff !important; }
.bh-hero-desc {
   font-size: 15px; line-height: 1.5;
   color: #ccd2d8 !important;
   margin-bottom: 18px;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
}

.bh-hero-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.bh-hero-avatar {
   width: 34px; height: 34px; border-radius: 50%;
   overflow: hidden; flex: none; display: block;
}
.bh-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bh-hero-owner {
   display: flex; align-items: center; gap: 6px;
   font-size: 14px; font-weight: 600; color: #fff !important;
}
.bh-hero-sub { font-size: 12.5px; color: #ccd2d8 !important; margin-top: 2px; }

.bh-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.bh-hero-dots {
   position: absolute; left: 50%; bottom: 14px;
   transform: translateX(-50%);
   display: flex; align-items: center; gap: 6px; z-index: 2;
}
.bh-hero-dot {
   width: 20px; height: 3px; border-radius: 2px;
   background: rgba(255, 255, 255, .34);
   padding: 0; transition: background .2s ease, width .2s ease;
}
.bh-hero-dot.is-active { width: 30px; background: var(--bh-accent); }

/* --- editor's picks ----------------------------------------------------- */

.bh-acard-grid {
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 14px;
}

.bh-acard { display: flex; flex-direction: column; gap: 11px; min-width: 0; }

.bh-acard-thumb {
   position: relative; display: block;
   aspect-ratio: 16 / 9;
   border-radius: 10px; overflow: hidden;
   background: var(--bh-raise);
   border: 1px solid var(--bh-line-soft);
}
.bh-acard-thumb img {
   width: 100%; height: 100%; object-fit: cover;
   transition: transform .3s ease;
}
.bh-acard:hover .bh-acard-thumb img { transform: scale(1.04); }

.bh-acard-read {
   position: absolute; left: 8px; bottom: 8px;
   background: rgba(0, 0, 0, .84);
   color: #fff !important;
   font-size: 11.5px; font-weight: 500;
   padding: 3px 8px; border-radius: 5px;
}

.bh-acard-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.bh-acard-title {
   font-size: 15px; font-weight: 600; line-height: 1.35;
   letter-spacing: -.008em;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
   transition: color .15s ease;
}
.bh-acard:hover .bh-acard-title { color: var(--bh-accent) !important; }

.bh-acard-foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bh-acard-by { min-width: 0; }
.bh-acard-author {
   display: flex; align-items: center; gap: 5px;
   font-size: 12.5px; font-weight: 500;
   color: var(--bh-text-dim) !important;
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bh-acard-author a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-acard-date { font-size: 11.5px; color: var(--bh-text-mute) !important; margin-top: 2px; }

/* --- latest / browse list ----------------------------------------------- */

.bh-arow-list {
   background: var(--bh-card);
   border: 1px solid var(--bh-line);
   border-radius: var(--bh-r-card);
   overflow: hidden;
}

.bh-arow {
   display: grid;
   grid-template-columns: 100px minmax(0, 1fr) 165px 76px;
   align-items: center;
   gap: 16px;
   padding: 14px 16px;
   border-bottom: 1px solid var(--bh-line-soft);
   transition: background .15s ease;
}
.bh-arow:last-child { border-bottom: 0; }
.bh-arow:hover { background: rgba(255, 255, 255, .032); }

.bh-arow-thumb {
   display: block; width: 100px; height: 64px;
   border-radius: 9px; overflow: hidden;
   background: var(--bh-raise);
   border: 1px solid var(--bh-line-soft);
}
.bh-arow-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bh-arow-main { min-width: 0; }
.bh-arow-title {
   font-size: 15px; font-weight: 600; line-height: 1.35;
   letter-spacing: -.008em;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
   overflow: hidden;
   transition: color .15s ease;
}
.bh-arow:hover .bh-arow-title { color: var(--bh-accent) !important; }
.bh-arow-desc {
   margin-top: 5px;
   font-size: 12.5px; line-height: 1.5;
   color: var(--bh-text-mute) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
}

.bh-arow-by { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bh-arow-by .bh-mini-avatar { width: 30px; height: 30px; }
.bh-arow-by-text { min-width: 0; }
.bh-arow-author {
   display: flex; align-items: center; gap: 5px;
   font-size: 12.5px; font-weight: 500;
   color: var(--bh-text-dim) !important;
   white-space: nowrap; overflow: hidden;
}
.bh-arow-author a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-arow-date { font-size: 11.5px; color: var(--bh-text-mute) !important; margin-top: 2px; }

.bh-arow-end { display: flex; align-items: center; justify-content: flex-end; }
.bh-arow-read { font-size: 12px; color: var(--bh-text-dim) !important; white-space: nowrap; }

.bh-more-row { display: flex; justify-content: center; margin-top: 16px; }

/* --- trending rail ------------------------------------------------------ */

.bh-trend-list { display: flex; flex-direction: column; }

.bh-trend-item {
   display: grid;
   grid-template-columns: 24px 80px minmax(0, 1fr);
   align-items: center; gap: 11px;
   padding: 11px 0;
   border-bottom: 1px solid var(--bh-line-soft);
}
.bh-trend-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-trend-item:first-child { padding-top: 0; }

.bh-trend-rank {
   font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
   color: var(--bh-accent) !important; letter-spacing: -.03em;
}

.bh-trend-thumb {
   display: block; width: 80px; height: 53px;
   border-radius: 8px; overflow: hidden;
   background: var(--bh-raise);
}
.bh-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bh-trend-body { min-width: 0; }
.bh-trend-title {
   font-size: 13px; font-weight: 500; line-height: 1.38;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
   transition: color .15s ease;
}
.bh-trend-item:hover .bh-trend-title { color: var(--bh-accent) !important; }
.bh-trend-sub {
   margin-top: 4px;
   font-size: 11.5px; color: var(--bh-text-mute) !important;
}

/* --- top writers -------------------------------------------------------- */

.bh-writer-list { display: flex; flex-direction: column; }

.bh-writer {
   display: flex; align-items: center; gap: 11px;
   padding: 11px 0;
   border-bottom: 1px solid var(--bh-line-soft);
}
.bh-writer:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-writer:first-child { padding-top: 0; }

.bh-writer-avatar {
   width: 40px; height: 40px; border-radius: 50%;
   overflow: hidden; flex: none; display: block;
}
.bh-writer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bh-writer-body { min-width: 0; flex: 1 1 auto; }
.bh-writer-name {
   display: flex; align-items: center; gap: 5px;
   font-size: 13.5px; font-weight: 600;
   color: var(--bh-text) !important;
   white-space: nowrap; overflow: hidden;
}
.bh-writer-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-writer-meta {
   margin-top: 3px;
   font-size: 11.5px; line-height: 1.45;
   color: var(--bh-text-mute) !important;
   overflow: hidden;
}

.bh-follow {
   flex: none;
   min-width: 68px; height: 32px; padding: 0 14px;
   border-radius: 999px;
   background: rgba(255, 255, 255, .09);
   border: 1px solid var(--bh-line);
   font-size: 12.5px; font-weight: 600;
   color: var(--bh-text) !important;
   white-space: nowrap;
   transition: background .15s ease, color .15s ease;
}
.bh-follow:hover { background: rgba(255, 255, 255, .16); }
.bh-follow.is-following {
   background: transparent;
   border-color: var(--bh-accent-line);
   color: var(--bh-accent) !important;
}

/* --- writer CTA --------------------------------------------------------- */

.bh-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; }
.bh-cta-icon {
   flex: none; width: 40px; height: 40px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 10px;
   background: var(--bh-accent-wash);
   color: var(--bh-accent) !important;
}
.bh-cta-body { min-width: 0; flex: 1 1 auto; }
.bh-cta-title {
   font-size: 17px; font-weight: 600; letter-spacing: -.015em;
   color: var(--bh-text) !important;
}
.bh-cta-sub { font-size: 13px; color: var(--bh-text-mute) !important; margin-top: 3px; }
.bh-cta-btn { flex: 1 1 100%; height: 40px; font-size: 14.5px; }

/* --- empty states ------------------------------------------------------- */

.bh-blank {
   display: flex; flex-direction: column; align-items: center;
   text-align: center; gap: 9px;
   padding: 56px 24px;
   margin-bottom: 28px;
}
.bh-blank-sm { padding: 40px 24px; margin-bottom: 0; }
.bh-blank-icon { color: var(--bh-text-mute) !important; }
.bh-blank-title { font-size: 16px; font-weight: 600; color: var(--bh-text) !important; }
.bh-blank-sub {
   font-size: 13.5px; color: var(--bh-text-mute) !important;
   max-width: 420px; line-height: 1.55;
}
.bh-blank .bh-btn-primary,
.bh-blank .bh-btn-ghost { margin-top: 8px; }

/* ==========================================================================
   Light mode - follows the parent theme's day/night cookie
   ========================================================================== */

.bh-app.bh-light {
   --bh-card:        #ffffff;
   --bh-raise:       #eef0f2;
   --bh-line:        rgba(0, 0, 0, .10);
   --bh-line-soft:   rgba(0, 0, 0, .08);
   --bh-text:        #16191d;
   --bh-text-dim:    #545b63;
   --bh-text-mute:   #6b727a;
   --bh-accent:      #a86800;
   --bh-accent-wash: rgba(255, 152, 0, .12);
   --bh-accent-line: rgba(255, 152, 0, .34);
   --bh-select:      #6d3fe0;
   --bh-select-wash: rgba(109, 63, 224, .10);
   --bh-select-line: rgba(109, 63, 224, .32);
}
.bh-app.bh-light .bh-pill:hover { background: #e3e6e9; border-color: rgba(0, 0, 0, .16); }
.bh-app.bh-light .bh-pill.is-active,
.bh-app.bh-light .bh-more-menu a.is-active { color: #4a24ad !important; }
.bh-app.bh-light .bh-pill.is-active:hover { background: rgba(109, 63, 224, .16); }
.bh-app.bh-light .bh-btn-ghost { background: rgba(0, 0, 0, .04); }
.bh-app.bh-light .bh-btn-ghost:hover { background: rgba(0, 0, 0, .08); }
.bh-app.bh-light .bh-follow { background: rgba(0, 0, 0, .04); }
.bh-app.bh-light .bh-follow:hover { background: rgba(0, 0, 0, .08); }
.bh-app.bh-light .bh-arow:hover { background: rgba(0, 0, 0, .025); }
.bh-app.bh-light .bh-more-menu a:hover { background: rgba(0, 0, 0, .05); }
.bh-app.bh-light .bh-more-menu { box-shadow: 0 10px 26px rgba(0, 0, 0, .13); }
/* the hero keeps white type over its own dark gradient */
.bh-app.bh-light .bh-hero-title,
.bh-app.bh-light .bh-hero-title a,
.bh-app.bh-light .bh-hero-owner { color: #fff !important; }

/* ==========================================================================
   Responsive

   Editor's Picks uses a fixed column count per breakpoint rather than
   auto-fill, so the row is always full - cards past the last complete row
   are hidden and "View all" carries the rest.
   ========================================================================== */

@media (max-width: 1700px) {
   .bh-acard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
   .bh-acard:nth-child(n + 5) { display: none; }
}

@media (max-width: 1300px) {
   .bh-acard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .bh-acard:nth-child(n + 4) { display: none; }
}

@media (max-width: 1400px) {
   /* tighter card gap keeps the four thumbnails above the 120px floor */
   .bh-acard-grid { gap: 12px; }
}

@media (max-width: 1200px) {
   .bh-app { --bh-rail: clamp(280px, 26%, 320px); }
   .bh-arow { grid-template-columns: 100px minmax(0, 1fr) 145px 68px; }
}

/* rail drops under the main column; sections take the mobile reading order */
@media (max-width: 1024px) {
   .bh-body {
      display: flex; flex-direction: column;
      align-items: stretch; gap: 20px;
   }
   .bh-col-main, .bh-col-side { display: contents; }

   .bh-hero     { order: 1; }
   .bh-browse   { order: 1; }
   .bh-picks    { order: 2; }
   .bh-latest   { order: 3; }
   .bh-trending { order: 4; }
   .bh-writers  { order: 5; }
   .bh-cta      { order: 6; }

   .bh-hero { height: 320px; }
   .bh-hero-body { max-width: 66%; }

   .bh-acard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .bh-acard:nth-child(n + 4) { display: none; }
}

@media (max-width: 860px) {
   .bh-hero { height: 290px; }
   .bh-hero-body { max-width: 76%; padding: 24px; }

   .bh-arow { grid-template-columns: 92px minmax(0, 1fr) 140px; }
   .bh-arow-thumb { width: 92px; height: 60px; }
   .bh-arow-end { display: none; }
}

@media (max-width: 700px) {
   .bh-acard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .bh-acard:nth-child(n + 3) { display: none; }

   .bh-filters { flex-wrap: wrap; }
   .bh-search { width: 100%; order: -1; }
}

@media (max-width: 560px) {
   #main-container.container { padding-left: 14px; padding-right: 14px; }
   .bh-app { --bh-gap: 14px; }
   .bh-card { padding: 14px; }

   .bh-page-head { padding-top: 14px; }

   /* Two even rows of two. The 700px rule above still applies here, so its
      hide is lifted with a matching selector before the new cap is set -
      a plain .bh-acard would lose on specificity and never win. */
   .bh-acard:nth-child(n + 3) { display: flex; }
   .bh-acard:nth-child(n + 5) { display: none; }

   .bh-hero { height: auto; }
   .bh-hero-track { position: static; }
   .bh-hero-slide { position: relative; display: none; }
   .bh-hero-slide.is-active { display: block; }
   .bh-hero-img { position: relative; aspect-ratio: 16 / 9; height: auto; }
   .bh-hero-veil { background: linear-gradient(180deg, transparent 30%, #06080a 88%); }
   .bh-hero-body {
      position: relative; max-width: none; height: auto;
      padding: 0 16px 18px; margin-top: -44px;
      background: linear-gradient(180deg, transparent, #06080a 20%);
   }
   .bh-hero-title { font-size: 21px; }
   .bh-hero-actions .bh-btn-lg { flex: 1 1 0; }
   .bh-hero-dots { display: none; }

   .bh-arow {
      grid-template-columns: 84px minmax(0, 1fr);
      gap: 12px; padding: 12px 14px;
   }
   .bh-arow-thumb { width: 84px; height: 55px; }
   .bh-arow-desc { display: none; }
   .bh-arow-by { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
   .bh-app *, .bh-app *::before, .bh-app *::after {
      transition-duration: .01ms !important;
      animation-duration: .01ms !important;
   }
}
