/* Story-page Bulletin header — matches Instagram story cards
   (brand/social-cards/render_card.py Bulletin layout, Ethan Nov. 30, 2026).
   Loaded after redesign.css. Does not change existing cache-busted CSS tokens. */
:root{
  --be-cream:#F4EEDC;
  --be-indigo:#4B3FA0;
  --be-ink:#17161B;
  --be-ind-light:#8F85B8;
  --be-sub:#D9D3C2;
}

body.is-story .be-bulletin{
  background:var(--be-ink);
  color:var(--be-cream);
  display:flex;
  flex-direction:column;
  width:100%;
  margin:0;
  -webkit-font-smoothing:antialiased;
}

/* Indigo top bar with cream dot, tracked sans label, date, ink rule */
.be-bulletin-bar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  height:52px;
  padding:0 20px;
  background:var(--be-indigo);
  color:var(--be-cream);
  box-shadow:inset 0 -5px 0 var(--be-ink);
  font-family:var(--sans),Inter,system-ui,sans-serif;
  font-weight:900;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1.1;
}
.be-bulletin-st{display:flex;align-items:center;gap:10px;min-width:0}
.be-bulletin-dot{
  width:8px;height:8px;border-radius:50%;background:var(--be-cream);flex:0 0 auto;
}
.be-bulletin-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.be-bulletin-date{flex:0 0 auto;white-space:nowrap;margin-left:12px}

/* Full-bleed photo, ink fade, type at the bottom */
.be-bulletin-stage{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:22rem;
  aspect-ratio:4/5;
  overflow:hidden;
  background:var(--be-ink);
  margin:0;
}
.be-bulletin-stage img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:var(--be-focus,50% 50%);
  display:block;
  z-index:0;
}
@media (max-width:719px){
  .be-bulletin-stage img{object-position:var(--be-focus-ig,var(--be-focus,50% 50%))}
}
.be-bulletin-fade{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(23,22,27,0) 22%,rgba(23,22,27,.80) 58%,rgba(23,22,27,.97) 100%);
}
.be-bulletin--nophoto .be-bulletin-fade{background:var(--be-ink)}

.be-bulletin-credit{
  position:absolute;right:10px;top:10px;z-index:3;
  max-width:min(70%, 22rem);
  margin:0;
  padding:4px 8px;
  border-radius:3px;
  background:rgba(23,22,27,.78);
  color:var(--be-cream);
  font-family:var(--sans),Inter,system-ui,sans-serif;
  font-weight:500;
  font-size:10px;
  letter-spacing:.02em;
  line-height:1.25;
  text-align:right;
}
.be-bulletin-credit a{color:var(--be-cream);text-decoration:underline;text-underline-offset:2px}
.be-bulletin-credit a:focus-visible{outline:2px solid var(--be-cream);outline-offset:2px}

.be-bulletin-copy{
  position:relative;z-index:2;
  padding:20% 20px 18px;
  display:flex;flex-direction:column;align-items:flex-start;
  max-width:100%;
}

.be-bulletin-badge{
  display:inline-block;
  margin:0;
  padding:5px 14px 8px;
  background:var(--be-cream);
  color:var(--be-ink);
  font-family:var(--head),"Frank Ruhl Libre",Georgia,serif;
  font-weight:900;
  font-size:clamp(1.15rem,5vw,1.7rem);
  line-height:1;
  letter-spacing:-.01em;
  white-space:nowrap;
}

.be-bulletin-copy h1.be-bulletin-hd{
  margin:12px 0 0;
  max-width:22ch;
  color:var(--be-cream);
  font-family:var(--head),"Frank Ruhl Libre",Georgia,serif;
  font-weight:900;
  font-size:clamp(1.7rem,7.6vw,2.35rem);
  line-height:1.04;
  letter-spacing:-.01em;
  text-align:left;
  text-shadow:0 2px 14px rgba(0,0,0,.45);
  overflow-wrap:anywhere;
}

.be-bulletin-sub{
  margin:10px 0 0;
  color:var(--be-sub);
  font-family:var(--body),Tinos,Georgia,serif;
  font-weight:700;
  font-size:clamp(.95rem,3.4vw,1.15rem);
  line-height:1.2;
}
.be-bulletin-status{
  margin:6px 0 0;
  color:var(--be-ind-light);
  font-family:var(--body),Tinos,Georgia,serif;
  font-weight:700;
  font-style:italic;
  font-size:clamp(.88rem,3.1vw,1.05rem);
  line-height:1.25;
}

/* Ink footer: BE monogram, Old English URL, tagline */
.be-bulletin-foot{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:76px;
  padding:10px 16px;
  background:var(--be-ink);
  color:var(--be-cream);
}
.be-bulletin-be{
  display:block;flex:0 0 auto;
  width:56px;height:56px;
  object-fit:contain;
}
.be-bulletin-fcol{
  flex:0 1 auto;
  min-width:0;
  width:fit-content;
  max-width:calc(100% - 70px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
}
.be-bulletin-url{
  display:block;
  width:auto;
  height:clamp(30px, 10vw, 40px);
  max-width:100%;
  object-fit:contain;
  object-position:left center;
  overflow:visible;
}
.be-bulletin-tag{
  margin:0;
  width:100%;
  color:var(--be-cream);
  font-family:var(--sans),Inter,system-ui,sans-serif;
  font-weight:700;
  font-size:8.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  text-align:center;
  line-height:1.15;
  opacity:.92;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Dek, byline and bill box under the banner */
.be-bulletin-lead{
  padding-top:28px;
  padding-bottom:8px;
}
.be-bulletin-lead .rd-dek{font-size:21px;line-height:1.5;color:var(--ink);margin:0 0 16px;max-width:46ch}
.be-bulletin-lead .rd-st-meta{margin:0 0 16px!important;line-height:1.7!important}
.be-bulletin-lead .rd-st-bill{max-width:36rem}

@media (max-width:359px){
  .be-bulletin-tag{font-size:7px;letter-spacing:.08em;overflow:visible;text-overflow:clip}
}
@media (min-width:720px){
  .be-bulletin-bar{height:56px;padding:0 32px;font-size:13px;box-shadow:inset 0 -6px 0 var(--be-ink)}
  .be-bulletin-dot{width:10px;height:10px;margin-right:2px}
  .be-bulletin-st{gap:14px}
  .be-bulletin-stage{aspect-ratio:2.15/1;min-height:28rem}
  .be-bulletin-copy{padding:12% 48px 24px}
  .be-bulletin-copy h1.be-bulletin-hd{font-size:clamp(2.4rem,4.4vw,4.25rem);margin-top:16px;max-width:20ch}
  .be-bulletin-badge{font-size:clamp(1.5rem,2.4vw,2.15rem);padding:6px 18px 10px}
  .be-bulletin-sub{font-size:clamp(1.1rem,1.5vw,1.4rem);margin-top:14px}
  .be-bulletin-status{font-size:clamp(1rem,1.3vw,1.2rem);margin-top:8px}
  .be-bulletin-credit{right:16px;top:12px;font-size:12px;padding:4px 8px}
  .be-bulletin-foot{min-height:88px;padding:0 32px;gap:22px}
  .be-bulletin-be{width:68px;height:68px}
  .be-bulletin-url{height:48px;max-width:100%;object-fit:contain}
  .be-bulletin-tag{font-size:11px;letter-spacing:.12em}
  .be-bulletin-lead{padding-top:36px}
}

@media (min-width:1100px){
  .be-bulletin-bar{height:60px;padding:0 48px;font-size:15px;box-shadow:inset 0 -7px 0 var(--be-ink)}
  .be-bulletin-dot{width:12px;height:12px}
  .be-bulletin-stage{aspect-ratio:2.25/1;min-height:30rem}
  .be-bulletin-copy{padding:10% 56px 28px}
  .be-bulletin-foot{min-height:96px;padding:0 48px}
  .be-bulletin-be{width:76px;height:76px}
  .be-bulletin-url{height:56px;max-width:100%;object-fit:contain}
  .be-bulletin-tag{font-size:12px}
}

/* Keep contrast when the system is in forced-colors */
@media (forced-colors:active){
  .be-bulletin-fade{display:none}
  .be-bulletin-copy h1.be-bulletin-hd,.be-bulletin-sub,.be-bulletin-status,.be-bulletin-credit{force-color-adjust:none}
}
