/* FILE: site/sowetan/www/assets/bulletin.css
   sowetan_my_bulletin_v1 (the My bulletin entry card + sheet), sowetan_voice_note_v1 (the morning voice note) and
   sowetan_whatsapp_share_v1 (Share on WhatsApp). Self-contained: used by the homepage and /talk. Phone first. */
.myd, .myd *, .mb-wrap, .mb-wrap *, .vn, .vn * { box-sizing: border-box; }
.myd, .mb, .vn { --my-red: #FF2D2D; --my-deep: #B50010; --my-panel: #141414; --my-card: #1c1c1c; --my-line: #2a2a2a;
  --my-ink: #fff; --my-2: #c9c9cb; --my-mute: #a09f9f; --my-font: Poppins, Inter, system-ui, sans-serif; }

/* ---------- the entry strip: My bulletin + the morning voice note ---------- */
.myd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; font-family: var(--my-font); color: var(--my-ink); }
.myd-card, .vn { position: relative; display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--my-line);
  border-radius: 18px; background: var(--my-panel); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); min-width: 0; }
.myd-card { border-left: 3px solid var(--my-red); }
.myd-k, .vn-k, .mb-k { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--my-font); letter-spacing: .16em;
  text-transform: uppercase; color: var(--my-2); }
.myd-k i, .vn-k i, .mb-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--my-red); }
.myd-card h2 { margin: 0; font: 700 22px/1.15 var(--my-font); letter-spacing: -.02em; color: var(--my-ink); }
.myd-card h2 span { color: var(--my-red); }
.myd-card p { margin: 0; color: var(--my-2); font: 400 14px/1.45 var(--my-font); }
.myd-sum { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--my-line); background: var(--my-card); color: var(--my-ink); font: 600 13px/1.25 var(--my-font); justify-self: start; }
.myd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.myd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: var(--my-ink); font: 700 14px/1 var(--my-font);
  cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, transform .15s; }
.myd-btn:hover, .myd-btn:focus-visible { border-color: #fff; background: rgba(255,255,255,.09); outline: none; }
.myd-btn:active { transform: translateY(1px); }
.myd-btn svg { width: 18px; height: 18px; flex: none; }
.myd-btn.is-primary { border-color: var(--my-deep); background: var(--my-deep); }
.myd-btn.is-primary:hover, .myd-btn.is-primary:focus-visible { background: #c51925; border-color: #c51925; }
.myd-btn[hidden] { display: none; }
.myd-acts .myd-wa { min-height: 46px; border-radius: 14px; font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { .myd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .myd:has(.vn[hidden]) { grid-template-columns: minmax(0, 1fr); } }
.talk-body .myd { grid-template-columns: minmax(0, 1fr); }
/* /talk: one column, the page's own rhythm */
.talk-body .myd { margin: 4px 0 22px; }

/* ---------- the voice note ---------- */
.vn[hidden] { display: none; }
.vn-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.vn-meta { color: var(--my-mute); font: 500 12px/1 var(--my-font); }
.vn-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.vn-play { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--my-deep); color: #fff;
  cursor: pointer; transition: background .2s, transform .15s; }
.vn-play:hover, .vn-play:focus-visible { background: #c51925; outline: 2px solid #fff; outline-offset: 2px; }
.vn-play:active { transform: scale(.96); }
.vn-play svg { width: 24px; height: 24px; }
.vn-mid { display: grid; gap: 8px; min-width: 0; }
.vn-t { font: 700 16px/1.2 var(--my-font); color: var(--my-ink); }
.vn-bar { position: relative; height: 6px; border-radius: 6px; background: #333; cursor: pointer; }
.vn-bar::before { content: ""; position: absolute; inset: -10px 0; }                 /* a finger-sized target */
.vn-bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--my-red); }
.vn-bar:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.vn-time { color: var(--my-mute); font: 500 12px/1 "Source Code Pro", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.vn-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.vn-langs button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--my-line); background: transparent;
  color: var(--my-2); font: 600 12px/1 var(--my-font); cursor: pointer; }
.vn-langs button[aria-pressed="true"] { border-color: var(--my-red); color: #fff; background: rgba(255,45,45,.12); }
.vn-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vn-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.vn.vn-flash { animation: vn-flash 1.6s ease-out 1; }
@keyframes vn-flash { 0% { box-shadow: 0 0 0 0 rgba(255,45,45,.7); } 100% { box-shadow: 0 0 0 16px rgba(255,45,45,0); } }

/* ---------- Share on WhatsApp ---------- */
.wa-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #fff; font: 600 13px/1.2 Poppins, Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.wa-share:hover, .wa-share:focus-visible { border-color: #25D366; background: rgba(37,211,102,.1); outline: none; }
.wa-share .wa-ico { width: 18px; height: 18px; flex: none; color: #25D366; }
/* a story card: an icon-only button at the end of the card's meta row */
.wa-share.wa-mini { min-height: 0; width: 32px; height: 32px; padding: 0; margin-left: auto; border-radius: 50%; flex: none; position: relative; z-index: 2; }
.wa-share.wa-mini::after { content: ""; position: absolute; inset: -6px; }          /* 44px target */
.wa-share.wa-mini .wa-ico { width: 17px; height: 17px; }
.desk-app .lead-acts .wa-share { min-height: 46px; }
/* the Live Desk */
.live .pv-foot .wa-share { flex: 1 1 auto; border-radius: 999px; }
.live .pv-h .wa-share-brief { justify-self: start; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.live .pv-mine .pv-date i { background: #FF2D2D; }

/* ---------- the My bulletin sheet ---------- */
.mb-wrap { position: fixed; inset: 0; z-index: 120; display: grid; align-items: end; justify-items: center; font-family: var(--my-font, Poppins, Inter, system-ui, sans-serif); }
.mb-wrap[hidden] { display: none; }
.mb-scrim { position: absolute; inset: 0; background: rgba(4,2,2,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.mb { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-width: 620px; max-height: min(92dvh, 760px);
  border: 1px solid var(--my-line); border-bottom: 0; border-radius: 22px 22px 0 0; background: #101010; color: var(--my-ink);
  box-shadow: 0 -18px 60px rgba(0,0,0,.6); transform: translateY(24px); opacity: 0; transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.mb::before { content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--my-red); }
.mb-wrap.in .mb-scrim { opacity: 1; }
.mb-wrap.in .mb { transform: none; opacity: 1; }
.mb-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 18px 12px; }
.mb-h h2 { margin: 8px 0 4px; font: 700 26px/1.1 var(--my-font); letter-spacing: -.02em; }
.mb-h p { margin: 0; color: var(--my-2); font: 400 14px/1.45 var(--my-font); }
.mb-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--my-line);
  background: transparent; color: #fff; cursor: pointer; }
.mb-x:hover, .mb-x:focus-visible { border-color: #fff; background: rgba(255,255,255,.06); outline: none; }
.mb-x svg { width: 20px; height: 20px; }
.mb-body { display: grid; gap: 16px; padding: 4px 18px 14px; overflow-y: auto; overscroll-behavior: contain; }
.mb-f { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mb-f legend { padding: 0; margin: 0 0 2px; font: 700 12px/1 var(--my-font); letter-spacing: .14em; text-transform: uppercase; color: var(--my-2); }
.mb-f legend small { margin-left: 8px; font: 500 12px/1 var(--my-font); letter-spacing: 0; text-transform: none; color: var(--my-mute); }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-chip { --c: #FF2D2D; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--my-line); background: var(--my-card); color: var(--my-2); font: 600 14px/1 var(--my-font); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.mb-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mb-chip small { color: var(--my-mute); font: 500 12px/1 var(--my-font); }
.mb-chip:hover { border-color: #777; }
.mb-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mb-chip.on { border-color: var(--my-red); background: rgba(255,45,45,.14); color: #fff; }
.mb-chip.on small { color: #fff; }
.mb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mb-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mb-seg button { display: grid; gap: 4px; align-content: center; justify-items: start; min-height: 64px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--my-line); background: var(--my-card); color: var(--my-2); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.mb-seg button b { font: 700 15px/1.1 var(--my-font); color: #fff; }
.mb-seg button span { font: 600 13px/1 var(--my-font); color: var(--my-red); }
.mb-seg button small { font: 400 11px/1.3 var(--my-font); color: var(--my-mute); }
.mb-seg button:hover { border-color: #777; }
.mb-seg button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mb-seg button[aria-checked="true"] { border-color: var(--my-red); background: rgba(255,45,45,.14); }
.mb-seg-l button { min-height: 48px; justify-items: center; }
.mb-note { margin: 0; color: var(--my-mute); font: 400 12px/1.4 var(--my-font); }
.mb-note[hidden] { display: none; }
.mb-foot { display: grid; gap: 10px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--my-line); background: #0c0c0e; border-radius: 0; }
.mb-get { margin: 0; font: 700 16px/1.3 var(--my-font); color: #fff; text-align: center; }
.mb-get.is-empty { color: #ff7777; font-weight: 600; font-size: 14px; }
.mb-play { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; border: 0; border-radius: 16px;
  background: var(--my-deep); color: #fff; font: 700 17px/1 var(--my-font); cursor: pointer; box-shadow: 0 10px 26px -14px rgba(227,43,43,.8);
  transition: background .2s, transform .15s; }
.mb-play:hover, .mb-play:focus-visible { background: #c51925; outline: 2px solid #fff; outline-offset: 2px; }
.mb-play:active { transform: translateY(1px) scale(.99); }
.mb-play:disabled { background: #333; color: #8c8781; box-shadow: none; cursor: not-allowed; }
.mb-play svg { width: 22px; height: 22px; }
.mb-small { margin: 0; color: var(--my-mute); font: 400 11px/1.4 var(--my-font); text-align: center; }
html.mb-open { overflow: hidden; }
@media (min-width: 700px) {
  .mb-wrap { align-items: center; padding: 16px; }
  .mb { border-bottom: 1px solid var(--my-line); border-radius: 22px; }
  .mb-foot { border-radius: 0 0 22px 22px; }
}
@media (max-width: 380px) { .mb-seg button small { display: none; } .mb-seg button { min-height: 54px; } }
@media (prefers-reduced-motion: reduce) { .mb, .mb-scrim, .myd-btn, .vn-play, .mb-play { transition: none; } .vn.vn-flash { animation: none; } }
