/* V10: public Christmas widget only. The sign-in surface and other news views
   remain owned by their existing styles. The frame survives Reader rebuilds. */
.brooke-christmas .bn-login-frame {
  position:relative; min-width:0; border-radius:17px; isolation:isolate;
}
.brooke-christmas .bn-login-frame > .christmas-card-lights {
  inset:0; width:100%; height:100%; z-index:1; pointer-events:none;
}
.brooke-christmas .bn-login-widget {
  --bn-ink:#f7f8ff; box-sizing:border-box; width:100%; min-width:0;
  display:flex; flex-direction:column; padding:16px;
  border:1px solid #c9a86a; border-radius:17px;
  background:linear-gradient(130deg,#214878e3,#061b46e8 75%);
  box-shadow:0 18px 50px #0003,inset 0 1px 0 #fff2;
  /* Stable, bounded regions: no selected category can resize the card. */
  overflow:visible;
}
.brooke-christmas .bn-login-widget .bn-header {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px;
  align-items:center; flex:0 0 44px; height:44px; min-height:0;
  margin:0 0 12px; overflow:auto;
}
.brooke-christmas .bn-login-widget .bn-header h2 {
  margin:0; font-size:20px; line-height:1.12; color:#f7f8ff; overflow-wrap:normal;
}
.brooke-christmas .bn-login-widget .bn-header .bn-actions { gap:0; }
.brooke-christmas .bn-login-widget .bn-link { white-space:nowrap; }
.brooke-christmas .bn-login-widget .bn-carousel {
  flex:0 0 auto; width:100%; height:auto; aspect-ratio:2.05; min-height:0;
  margin:0 0 9px;
}
.brooke-christmas .bn-login-widget .bn-carousel-empty { position:absolute; inset:0; overflow:auto; }
.brooke-christmas .bn-login-widget .bn-tools {
  flex:0 0 40px; height:40px; min-height:0; margin:0 0 4px; overflow:auto;
}
.brooke-christmas .bn-login-widget .bn-tabs { height:100%; min-width:0; }
.brooke-christmas .bn-login-widget .bn-tab { flex:0 0 auto; }
.brooke-christmas .bn-feed-viewport {
  flex:0 0 111px; height:111px; min-height:0; display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr); overflow:hidden;
}
.brooke-christmas .bn-feed-viewport > :is(.bn-feed,.bn-notice) {
  grid-area:1/1; min-width:0; min-height:0; max-height:100%; overflow:auto;
  overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#c9a86a66 transparent;
}
.brooke-christmas .bn-feed-viewport .bn-notice { margin:0; padding:10px; font-size:12px; }
.brooke-christmas .bn-feed-viewport .bn-empty { padding:12px 6px; }
.brooke-christmas .bn-feed-loading { margin:0; padding:14px 6px; font-size:12px; color:var(--bn-muted); }
.brooke-christmas .bn-login-widget .bn-feed-row { height:37px; min-height:37px; }
.brooke-christmas .bn-login-widget .bn-feed-row span { min-width:0; }
.brooke-christmas .bn-login-widget .bn-feed-row time { flex:0 0 auto; white-space:nowrap; }
.brooke-christmas .bn-login-widget .bn-footer {
  flex:0 0 32px; height:32px; min-height:0; margin:9px 0 0; gap:8px; overflow:auto;
}
.brooke-christmas .bn-login-widget .bn-footer > span { min-width:0; font-size:9px; }
.brooke-christmas .bn-login-widget .bn-footer > button { flex:0 0 auto; }
/* Caption stays between the edge controls; its text never sits underneath them. */
.brooke-christmas .bn-login-widget .bn-slide-copy {
  left:60px; right:60px; bottom:29%; max-width:none;
}
.brooke-christmas .bn-login-widget .bn-slide-copy h2 {
  font-size:clamp(16px,1.5vw,23px); margin:5px 0 0; line-height:1.16;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
}
.brooke-christmas .bn-login-widget :is(.bn-edge-arrow,.bn-carousel-toggle) {
  position:absolute; z-index:3; display:flex; align-items:center; justify-content:center;
  width:44px; height:44px; min-width:44px; min-height:44px; padding:0;
  border:1px solid transparent; border-radius:8px; background:transparent;
  color:#fff2ce; text-shadow:0 1px 4px #000; cursor:pointer;
}
.brooke-christmas .bn-login-widget .bn-edge-arrow { top:50%; transform:translateY(-50%); }
.brooke-christmas .bn-login-widget .bn-edge-prev { left:10px; }
.brooke-christmas .bn-login-widget .bn-edge-next { right:10px; }
.brooke-christmas .bn-login-widget .bn-edge-arrow svg {
  width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 1px 3px #000);
}
.brooke-christmas .bn-login-widget .bn-carousel-toggle { right:8px; bottom:0; font-size:13px; }
.brooke-christmas .bn-login-widget :is(.bn-edge-arrow,.bn-carousel-toggle):is(:hover,:focus-visible) {
  background:#142d4e70; border-color:#ffe6a36b; color:#fff9e7;
}
.brooke-christmas .bn-login-widget :is(.bn-edge-arrow,.bn-carousel-toggle):focus-visible {
  outline:2px solid #ffe4a1; outline-offset:-3px;
}
@media(hover:hover) and (pointer:fine) {
  .brooke-christmas .bn-login-frame:hover .christmas-card-radiance { opacity:.98; }
}
html[data-brooke-theme=dark] .brooke-christmas .bn-login-widget {
  background:linear-gradient(135deg,#123669f2,#041536ea);
}
/* Extra shell width pays for the gap, preserving the greeting's scale. */
@media(min-width:1001px) {
  .brooke-christmas .brooke-auth-shell {
    width:84%; margin-left:8.3%;
    grid-template-columns:minmax(0,31.5fr) minmax(0,40.5fr) minmax(0,25fr);
    column-gap:clamp(38px,3vw,52px);
  }
  .brooke-christmas .christmas-greeting { left:0; }
  .brooke-christmas .brooke-auth-story { min-width:0; }
}
@media(min-width:1900px) {
  .brooke-christmas .brooke-auth-shell { max-width:1640px; margin-inline:auto; }
}
@media(min-width:1001px) and (max-width:1200px) {
  .brooke-christmas .brooke-auth-shell {
    width:94%; margin-left:3%; grid-template-columns:minmax(0,30fr) minmax(0,38fr) minmax(0,29fr);
  }
  .brooke-christmas .bn-login-widget .bn-header h2 { font-size:18px; }
  .brooke-christmas .bn-feed-viewport { flex-basis:153px; height:153px; }
  .brooke-christmas .bn-login-widget .bn-feed-row { height:51px; min-height:51px; }
}
@media(min-width:651px) and (max-width:1000px) {
  .brooke-christmas .brooke-auth-shell { row-gap:30px; }
  .brooke-christmas .brooke-auth-story { width:min(100%,420px,41vw); margin-top:0; }
}
@media(max-width:650px) {
  .brooke-christmas .bn-login-widget { background:linear-gradient(135deg,#163d70f7,#061b46f7); }
  .brooke-christmas .brooke-auth-story { margin-top:0; }
  .brooke-christmas .bn-login-widget .bn-slide-copy h2 { font-size:18px; }
}
/* Dark has the same higher specificity than mobile as the original sign-in. */
@media(max-width:360px) {
  .brooke-christmas .bn-login-widget .bn-header h2 { font-size:18px; }
  /* Trade V9's wrapped eyebrow/header height for roomier, stable row slots. */
  .brooke-christmas .bn-feed-viewport { flex-basis:153px; height:153px; }
  .brooke-christmas .bn-login-widget .bn-feed-row { height:51px; min-height:51px; }
}
