/* ByteForward post presentation. Icons are self-hosted Google Material Symbols. */
.bf-feed { --bf-ink: #111820; --bf-muted: #667581; --bf-line: #e1e7eb; --bf-accent: #006d68; margin-block: 2rem; }
.bf-feed .bf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.bf-feed .bf-card { box-sizing: border-box; min-width: 0; padding: 20px; border: 1px solid var(--bf-line); border-radius: 16px; background: #fff; color: var(--bf-ink); overflow-wrap: anywhere; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.5; box-shadow: none; }
.bf-feed .bf-card-header { display: flex; align-items: center; gap: 11px; margin: 0 0 12px; padding: 0; }
.bf-feed .bf-card-mark { display: flex; flex: 0 0 38px; width: 38px; height: 38px; justify-content: center; align-items: center; border-radius: 50%; background: #111820; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.6px; user-select: none; }
.bf-feed .bf-card-meta { min-width: 0; padding-top: 1px; }
.bf-feed .bf-card-byline { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.bf-feed .bf-card-brand { margin: 0; color: var(--bf-ink); font-size: 15px; line-height: 1.35; font-weight: 750; letter-spacing: -.2px; }
.bf-feed .bf-card-date { margin: 0; color: var(--bf-muted); font-size: 11px; line-height: 1.5; white-space: nowrap; }
.bf-feed .bf-card-body { margin-left: 49px; }
.bf-feed .bf-card h3 { padding: 0; margin: 0 0 9px; color: var(--bf-ink); font: 650 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.12px; text-transform: none; }
.bf-feed .bf-card-summary { margin: 0 0 13px; color: #263640; font-size: 14px; line-height: 1.6; }
.bf-feed .bf-card-summary:last-of-type { margin-bottom: 15px; }
.bf-feed .bf-card-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bf-feed .bf-card-status { margin: 0; padding: 3px 8px; color: #6d541c; background: #faf5e7; border: 1px solid #eee5cf; border-radius: 5px; font-size: 11px; line-height: 1.5; font-weight: 500; }
.bf-feed a { color: var(--bf-accent); text-underline-offset: .2em; }
.bf-feed .bf-card-source { display: inline-flex; align-items: center; gap: 3px; min-height: 32px; color: var(--bf-accent); font-size: 12px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.bf-feed .bf-card-source:hover { text-decoration: underline; }
.bf-feed .bf-controls, .bf-feed .bf-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 20px; }
.bf-feed button, .bf-feed .bf-controls a, .bf-feed .bf-pages a { box-sizing: border-box; min-height: 44px; padding: 10px 14px; font: inherit; }
.bf-feed button { color: inherit; background: transparent; border: 1px solid #bacdcc; border-radius: 6px; cursor: pointer; }
.bf-feed button:disabled { cursor: default; opacity: .65; }
.bf-feed :focus-visible, #bf-leaks-questions:focus, .bf-feed .bf-card h3:focus { outline: 3px solid var(--bf-accent, #006d68); outline-offset: 3px; }
.bf-feed .bf-reactions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; min-width: 0; padding: 6px 0 0; margin: 13px 0 -7px 49px; border: 0; border-top: 1px solid #edf0f2; }
.bf-feed .bf-reactions button { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; gap: 5px; min-width: 44px; min-height: 44px; padding: 0 6px; color: #687782; border: 0; border-radius: 22px; line-height: 1; transition: color .15s ease, background-color .15s ease; }
.bf-feed .bf-reactions button:hover { color: var(--bf-accent); background: #edf6f5; }
.bf-feed .bf-reactions button[aria-pressed="true"] { color: var(--bf-accent); background: #e7f3f1; box-shadow: inset 0 0 0 1px #c4dfdb; }
.bf-feed .bf-reactions button[data-reaction="l"][aria-pressed="true"] { color: #c32c67; background: #fff0f5; box-shadow: inset 0 0 0 1px #f2ccdb; }
.bf-feed .bf-reactions button[data-reaction="i"][aria-pressed="true"] { color: #856014; background: #fcf5e4; box-shadow: inset 0 0 0 1px #ebddb9; }
.bf-feed .bf-reactions button[data-reaction="s"][aria-pressed="true"] { color: #7350a2; background: #f4eefb; box-shadow: inset 0 0 0 1px #e0d1ef; }
.bf-feed .bf-reactions button[data-reaction="a"][aria-pressed="true"] { color: #bd462c; background: #fff1eb; box-shadow: inset 0 0 0 1px #f0d4c8; }
.bf-feed .bf-reactions [data-selected] { flex-basis: 100%; width: 100%; margin: 3px 0 4px; color: var(--bf-muted); font-size: 11px; line-height: 1.4; }
.bf-feed .bf-sr-only, .bf-feed .bf-reactions legend, .bf-feed .bf-reaction-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-feed .bf-icon { display: inline-block; flex-shrink: 0; width: 21px; height: 21px; background-color: currentColor; -webkit-mask: var(--bf-icon) center / contain no-repeat; mask: var(--bf-icon) center / contain no-repeat; }
.bf-feed .bf-icon-reaction-l { --bf-icon: url("material-symbols/favorite.svg"); }
.bf-feed .bf-icon-reaction-i { --bf-icon: url("material-symbols/lightbulb.svg"); }
.bf-feed .bf-icon-reaction-s { --bf-icon: url("material-symbols/priority_high.svg"); }
.bf-feed .bf-icon-reaction-a { --bf-icon: url("material-symbols/sentiment_very_dissatisfied.svg"); }
.bf-feed .bf-icon-source { --bf-icon: url("material-symbols/arrow_outward.svg"); width: 15px; height: 15px; }
.bf-feed .bf-reaction-preferences { border-top: 1px solid var(--bf-line); padding-top: 20px; }
.bf-feed .bf-reaction-preferences label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 10px; cursor: pointer; }
.bf-feed .bf-reaction-preferences input { width: 20px; height: 20px; }
.bf-feed .bf-reaction-preferences p, .bf-feed [data-error] { max-width: 65ch; }
.bf-feed [data-error] { border-left: 3px solid currentColor; padding-left: 12px; }
.bf-feed [data-sentinel] { height: 1px; }
.bf-feed [hidden] { display: none !important; }
#bf-leaks-questions { scroll-margin-top: 24px; }
@media (min-width: 640px) { .bf-feed .bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bf-feed .bf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .bf-feed .bf-card { padding: 16px; } .bf-feed .bf-card-body, .bf-feed .bf-reactions { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .bf-feed, #bf-leaks-questions { scroll-behavior: auto; } .bf-feed .bf-reactions button { transition: none; } }
@media (forced-colors: active) { .bf-feed .bf-icon { background-color: ButtonText; } .bf-feed .bf-reactions button[aria-pressed="true"] { outline: 2px solid Highlight; } }
/* Only authored, eligible images create this UI; there are no placeholders. */
.bf-feed .bf-card-image { margin: 0 0 15px; min-width: 0; }
.bf-feed .bf-card-image-link { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.bf-feed .bf-card-image img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 8px; }
.bf-feed .bf-card-image figcaption { margin-top: 6px; color: var(--bf-muted); font-size: 11px; line-height: 1.5; }
.bf-lightbox { box-sizing: border-box; width: max-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 16px; margin: auto; overflow: auto; border: 1px solid #50616d; border-radius: 12px; background: #111820; color: #fff; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.bf-lightbox::backdrop { background: rgb(0 0 0 / .83); }
.bf-lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; margin: 12px auto 0; }
.bf-lightbox .bf-lightbox-close { display: block; margin: 0 0 0 auto; min-height: 44px; padding: 10px 16px; border: 1px solid #a9bac6; border-radius: 6px; background: #fff; color: #111820; font: inherit; cursor: pointer; }
.bf-lightbox :focus-visible { outline: 3px solid #68ddd4; outline-offset: 3px; }
.bf-lightbox-caption, .bf-lightbox-error { max-width: 75ch; margin: 12px 0 0; }
.bf-lightbox [hidden] { display: none !important; }
@media (max-width: 380px) { .bf-lightbox { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 10px; } }

/* Shared totals sit beside their icons, with full exact totals in accessible names. */
.bf-feed .bf-reaction-count { font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Compact editorial cards, with real anchors and independent reaction/image controls. */
.bf-feed .bf-card { position: relative; container-type: inline-size; padding: clamp(14px, 1.3vw, 20px); font-size: 14px; }
.bf-feed .bf-card-header { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.bf-feed .bf-card-mark { width: 30px; height: 30px; font-size: 11px; }
.bf-feed .bf-card-meta { min-width: 0; }
.bf-feed .bf-card-byline { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.bf-feed .bf-card-brand { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(11px, .18vw + 10px, 13px); line-height: 1.4; }
.bf-feed .bf-card-date { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: clamp(10px, .14vw + 9px, 11px); white-space: nowrap; }
.bf-feed .bf-card-status { justify-self: end; max-width: 11em; overflow: hidden; text-overflow: ellipsis; padding: 3px 6px; font-size: clamp(10px, .12vw + 9px, 11px); white-space: nowrap; }
.bf-feed .bf-card-body { margin-left: 0; }
.bf-feed .bf-card h3 { font-size: clamp(15px, .25vw + 14px, 17px); line-height: 1.4; }
.bf-feed .bf-card-summary { font-size: clamp(14px, .2vw + 13px, 15px); line-height: 1.6; }
.bf-feed .bf-reactions { position: relative; z-index: 2; margin-left: 0; }
.bf-feed .bf-card-link { position: absolute; inset: 0; z-index: 1; display: block; padding: 0; border-radius: inherit; }
.bf-feed .bf-card-link:hover { box-shadow: inset 0 0 0 1px #a5c3c1; }
.bf-feed .bf-card-body a, .bf-feed .bf-card-header a { position: relative; z-index: 2; }
.bf-feed .bf-card-image figcaption { position: relative; z-index: 2; font-size: 11px; }
.bf-feed .bf-controls, .bf-feed .bf-reaction-preferences { display: none; }
.bf-feed .bf-pages-fallback:not(:focus-within) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bf-feed .bf-pages-fallback:focus-within { position: relative; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
.bf-feed .bf-enhancement > p:empty { display: none; }
@container (max-width: 310px) {
  .bf-feed .bf-card-header { grid-template-columns: minmax(0, 1fr) auto; }
  .bf-feed .bf-card-mark { display: none; }
}
.bf-feed .bf-filter-form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; font-size: 12px; }
.bf-feed .bf-filter-form label { min-width: 0; max-width: 100%; margin: 0; }
.bf-feed .bf-filter-form select { box-sizing: border-box; min-height: 44px; width: auto; max-width: 100%; padding: 8px 28px 8px 10px; border: 1px solid #bacdcc; border-radius: 6px; color: var(--bf-ink); background-color: #fff; font: inherit; }
.bf-feed .bf-filter-form button, .bf-feed .bf-filter-form a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; font: inherit; }
.bf-feed .bf-filter-count { margin-left: auto; color: var(--bf-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-feed .bf-search-field { display: flex; flex: 1 1 240px; min-width: 0; max-width: 100%; align-items: center; gap: 6px; }
.bf-feed .bf-search-field input { box-sizing: border-box; flex: 1 1 160px; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #bacdcc; border-radius: 6px; color: var(--bf-ink); background: #fff; font: inherit; font-size: 16px; }
.bf-feed .bf-search-field [data-search-clear] { flex: 0 0 auto; padding: 8px 4px; }
.bf-feed .bf-filter-form [hidden] { display: none !important; }
.bf-feed .bf-filter-form :is(input, select, button, a):focus-visible { outline: 3px solid #177c79; outline-offset: 3px; }
.bf-feed [data-empty] { color: var(--bf-muted); overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .bf-feed .bf-search-field { flex-basis: 100%; }
  .bf-feed .bf-filter-form > label { flex: 1 1 calc(50% - 4px); }
  .bf-feed .bf-filter-form select { width: 100%; }
}
.bf-feed [data-filter-error] { font-size: 13px; color: #8e302c; }
.bf-feed [data-empty] { padding-block: 20px; color: var(--bf-muted); }
