/* Shared poll and article sidebar, loaded after existing theme overrides. */
.bp-request-conversation{display:block;width:100%}.bp-request-conversation>.bp-request-board{width:100%;max-width:none;margin:0}
.poll-card.bp-poll-designed{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 12px 35px #0000000d;isolation:isolate}
.bp-poll-designed .bp-poll-header{position:relative;display:flex;align-items:center;gap:12px;padding:22px 20px;background:linear-gradient(125deg,color-mix(in srgb,var(--teal) 22%,var(--surface)),var(--surface));border-bottom:1px solid var(--line);overflow:hidden}
.bp-poll-header:after{content:'?';position:absolute;right:25px;top:-30px;font:150px Georgia,serif;opacity:.055;pointer-events:none}
.bp-poll-emblem{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border:1px solid color-mix(in srgb,var(--teal) 40%,transparent);border-radius:14px;color:var(--teal);background:var(--surface);font:700 27px Georgia,serif;box-shadow:0 0 20px #17ae9820;animation:bpPollFloat 5s ease-in-out infinite}
.bp-poll-designed .small-eyebrow{font-size:8px;letter-spacing:1.4px}.bp-poll-designed h2{font-size:23px;margin:7px 0 0;line-height:1.2;color:var(--ink)}
.bp-poll-live{width:7px;height:7px;border-radius:50%;background:var(--teal);margin-left:auto;box-shadow:0 0 0 5px #22b6a015;animation:bpPollPulse 3s ease-in-out infinite}
.bp-poll-body{padding:23px 20px}.bp-poll-kicker{font-size:8px;font-weight:700;letter-spacing:1.5px;color:var(--muted)}
.bp-poll-designed .bp-poll-body h3{font-size:19px;line-height:1.5;margin:9px 0 20px;color:var(--ink)}
.bp-poll-designed .vote{margin:13px 0 7px;font-size:12px;line-height:1.65;color:var(--ink)}
.bp-poll-designed .vote:has(input){margin:9px 0}
.bp-poll-designed .vote label{display:flex;align-items:center;gap:11px;cursor:pointer;position:relative;padding:13px 12px;border:1px solid var(--line);border-radius:11px;background:color-mix(in srgb,var(--teal) 3%,var(--surface));transition:background .2s,border-color .2s,transform .2s}
.bp-poll-designed .vote label:hover,.bp-poll-designed .vote label:has(input:checked){border-color:var(--teal);background:color-mix(in srgb,var(--teal) 13%,var(--surface));transform:translateX(2px)}
.bp-poll-designed input[type=radio]{appearance:auto;position:static;opacity:1;flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--teal)}
.bp-poll-designed .vote label>span{flex:1}.bp-poll-designed .vote label:before,.bp-poll-designed .vote label:after{display:none}
.bp-poll-designed .voteprogress{height:12px;margin:0 0 17px;border-radius:20px;overflow:hidden;background:color-mix(in srgb,var(--ink) 8%,var(--surface))}
.bp-poll-designed .voteprogress>span{display:block;min-height:12px;height:12px;border-radius:20px;background:linear-gradient(90deg,#07857e,#56d5b6);font-size:0;position:relative;transform-origin:left;animation:bpPollBar .85s ease-out both}
.bp-poll-designed .voteprogress>span:after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent,#ffffff50,transparent);animation:bpPollShine 4s ease-in-out 2}
.bp-poll-designed .bp-poll-footer{display:block;padding:18px 20px 20px;border-top:1px solid var(--line);background:color-mix(in srgb,var(--teal) 5%,var(--surface))}
.bp-poll-designed .bp-poll-submit{display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:11px;padding:14px 16px;font-size:12px;transition:transform .2s,box-shadow .2s}.bp-poll-submit:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00a58d25}
.bp-poll-footer>p:not(.bp-poll-total){margin:12px 0 0;text-align:center;font-size:10px;color:var(--muted)}
.bp-poll-designed .bp-poll-total{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}.bp-poll-total>span{font-size:8px;letter-spacing:1.1px;color:var(--muted)}.bp-poll-total strong{font-size:25px;color:var(--teal)}.bp-poll-total small{font:12px sans-serif;color:var(--muted)}
.bp-poll-designed .bp-voters-button{margin:0;width:100%;border-radius:11px}
.bp-story-actions{padding:22px 18px;margin-top:18px;min-width:0}.bp-story-actions h2{font-size:24px;margin:9px 0 20px;color:var(--ink)}.bp-story-actions .small-eyebrow{font-size:8px;letter-spacing:1.1px}
.bp-story-save>a,.bp-story-login,.bp-story-like>a{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:51px;padding:13px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--teal) 7%,var(--surface));color:var(--ink);font:600 12px/1.5 inherit;text-decoration:none;cursor:pointer;transition:transform .2s,border-color .2s,background .2s}
.bp-story-save img{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.bp-story-save>a:before{content:'☆';font-size:23px;color:var(--teal)}.bp-story-save>a[data-saved=true]:before{content:'★'}.bp-story-like{margin-top:11px}.bp-story-like>a{border-color:#df7e8a50;background:color-mix(in srgb,#d96986 9%,var(--surface))}.bp-like-heart{color:#ed8ba4;font-size:24px;display:inline-block;animation:bpHeartIdle 4s ease-in-out infinite}.bp-like-count{margin-left:auto;min-width:29px;padding:3px 8px;border-radius:8px;background:#d969861c;text-align:center;color:var(--ink)}
.bp-story-save>a:hover,.bp-story-login:hover,.bp-story-like>a:hover{transform:translateY(-2px);border-color:var(--teal)}.bp-story-like>a:hover .bp-like-heart{transform:scale(1.2)}.bp-story-actions>p{font-size:10px;line-height:1.7;color:var(--muted);margin:14px 0 0}.bp-story-like.bp-like-success .bp-like-heart{animation:bpHeartSuccess .65s ease-out}.bp-story-actions :is(a,button):focus-visible,.bp-poll-designed :is(button,input):focus-visible{outline:2px solid var(--teal);outline-offset:4px}
@keyframes bpPollFloat{50%{transform:translateY(-3px) rotate(-5deg)}}@keyframes bpPollPulse{50%{box-shadow:0 0 0 8px #22b6a006}}@keyframes bpPollBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes bpPollShine{0%,40%{transform:translateX(-100%)}75%,100%{transform:translateX(100%)}}@keyframes bpHeartIdle{0%,85%,100%{transform:scale(1)}90%{transform:scale(1.12)}95%{transform:scale(1.03)}}@keyframes bpHeartSuccess{40%{transform:scale(1.5) rotate(-12deg)}70%{transform:scale(.9)}100%{transform:scale(1)}}
@media(max-width:600px){.bp-poll-designed .bp-poll-header{padding:20px}.bp-story-actions{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.bp-poll-designed *,.bp-story-actions *{animation:none!important;transition:none!important}}

/* Full articles: only the save/like panel follows scrolling. */
body.bp-inner #main .bp-full-layout:has([data-story-actions]) > .bp-full-sidebar {
  position:static; align-self:stretch; height:auto; max-height:none; overflow:visible;
}
body.bp-inner #main .bp-full-layout:has([data-story-actions]) > .bp-full-sidebar > .category-panel,
body.bp-inner #main .bp-full-layout:has([data-story-actions]) > .bp-full-sidebar > .bp-vote-slot {
  position:static; height:auto; max-height:none; overflow:visible;
}
@media(min-width:761px) {
  body.bp-inner #main .bp-full-layout > .bp-full-sidebar > [data-story-actions] {
    position:sticky; top:106px; max-height:calc(100dvh - 122px); overflow-y:auto;
    align-self:start; scrollbar-width:thin;
  }
}
/* Home: question beside the featured story; popular list beside the carousel. */
@media(min-width:1051px) {
  .bp-original .content-layout > .right-sidebar > .bp-vote-slot {
    grid-column:3; grid-row:1 / 3; align-self:start; height:auto;
  }
  .bp-original .content-layout > .right-sidebar > .popular-panel {
    grid-column:3; grid-row:3; align-self:start; height:auto;
  }
}
/* Let articles keep their content height independently of the adjacent panels. */
.bp-original .content-layout .carousel-shell { align-self:start; height:auto; min-height:0; }
.bp-original .content-layout .carousel-shell .article-rest {
  flex:0 0 auto; align-items:flex-start; height:auto; min-height:0;
}
.bp-original .content-layout .article-rest > .bp-story {
  height:auto; min-height:0; align-self:flex-start;
}
.bp-original .content-layout .article-rest > .bp-story .card-meta { margin-top:16px; }
.bp-original .content-layout .article-rest > .bp-story .card-copy { padding-bottom:0; }
.bp-original .content-layout .left-sidebar > .daily-card {
  height:auto; align-self:start;
}
.bp-original .content-layout .daily-card .daily-image {
  flex:0 0 auto; height:210px; min-height:0;
}
.bp-original .content-layout .bp-vote-slot > :not(script):not(style),
.bp-original .content-layout .bp-vote-slot :is(#vote-block,[id^="vote-block"],form),
.bp-original .content-layout .bp-vote-slot .poll-card { height:auto; }
@media(max-width:760px) {
  body.bp-inner #main .bp-full-layout > .bp-full-sidebar > [data-story-actions] {
    position:static; max-height:none; overflow:visible;
  }
  .bp-original .content-layout .daily-card .daily-image { height:180px; }
}
/* Popular list now sizes itself independently of the featured row. */
body.bp-original .content-layout .right-sidebar > .popular-panel {
  contain:layout style; content-visibility:visible;
  display:flex; flex-direction:column; align-self:start;
  height:auto; min-height:0; max-height:none; overflow:visible;
}
body.bp-original .content-layout .right-sidebar > .popular-panel #popularList {
  flex:0 0 auto; height:auto; min-height:0; max-height:none;
}
body.bp-original .content-layout .right-sidebar > .popular-panel .popular-item {
  flex:0 0 auto; height:auto; min-height:102px; max-height:none; padding:16px 0;
}
body.bp-original .content-layout .right-sidebar > .popular-panel h2 {
  white-space:normal; overflow-wrap:anywhere;
}

/* Three popular stories share the adjacent article cards' actual height. */
@media(min-width:1051px) {
  body.bp-original .content-layout .right-sidebar > .popular-panel {
    contain:size layout style; align-self:stretch;
    height:var(--bp-popular-height,auto); min-height:0; overflow:hidden;
    box-sizing:border-box; padding:22px 19px 12px;
  }
  body.bp-original .content-layout .right-sidebar > .popular-panel #popularList {
    flex:1 1 0; min-height:0;
  }
  body.bp-original .content-layout .right-sidebar > .popular-panel .popular-item {
    flex:1 1 0; min-height:0; padding:10px 0;
  }
  body.bp-original .content-layout .right-sidebar > .popular-panel h2 {
    font-size:22px; margin-bottom:8px; padding-bottom:14px;
  }
}
/* Match the question panel to the full height of the first two home rows. */
@media(min-width:1051px) {
  body.bp-original .content-layout > .right-sidebar > .bp-vote-slot {
    align-self:stretch; height:100%; min-height:0; display:flex; flex-direction:column;
  }
  body.bp-original .content-layout > .right-sidebar > .bp-vote-slot > :not(script):not(style),
  body.bp-original .content-layout > .right-sidebar > .bp-vote-slot :is(#vote-block,[id^="vote-block"],form) {
    display:flex; flex-direction:column; flex:1 1 auto; width:100%; height:auto; min-height:0;
    margin:0; padding:0;
  }
  body.bp-original .content-layout > .right-sidebar > .bp-vote-slot .poll-card.bp-poll-designed {
    display:flex; flex-direction:column; flex:1 1 auto; width:100%; height:auto;
    min-height:0; margin:0; padding:0;
  }
  body.bp-original .content-layout .bp-poll-designed > .bp-poll-header,
  body.bp-original .content-layout .bp-poll-designed > .bp-poll-footer { flex:0 0 auto; }
  body.bp-original .content-layout .bp-poll-designed > .bp-poll-body { flex:1 0 auto; }
}
/* Daily fact shares the lower row height without stretching article cards. */
@media(min-width:1051px) {
  body.bp-original .content-layout .left-sidebar > .daily-card {
    align-self:stretch; height:100%; min-height:0;
    display:flex; flex-direction:column; box-sizing:border-box;
  }
  body.bp-original .content-layout .left-sidebar > .daily-card .daily-image {
    flex:0 0 210px; height:210px; min-height:0;
  }
  body.bp-original .content-layout .left-sidebar > .daily-card .daily-body {
    display:flex; flex-direction:column; flex:1 1 auto; min-height:0;
  }
  body.bp-original .content-layout .left-sidebar > .daily-card .daily-body > .pill {
    align-self:flex-start;
  }
  body.bp-original .content-layout .left-sidebar > .daily-card .bp-fact-links {
    margin-top:auto; padding-top:12px;
  }
}
