/* Every rule is confined to the block so the existing bobnoblog theme is untouched. */
.bbaf, .bbaf * { box-sizing:border-box; }
.bbaf { width:100%; max-width:100%; min-width:0; margin:28px auto 42px; font-family:inherit; color:#17354d; line-height:1.6; }
.bbaf [hidden] { display:none !important; }
.bbaf .bbaf__intro { background:linear-gradient(112deg,#0a2034,#123854); border-radius:16px; padding:23px 25px 24px; color:white; margin:0 0 20px; }
.bbaf h2.bbaf__heading, .content-page__paper .entry-content .bbaf h2.bbaf__heading { margin:0 0 7px; padding:0; border:0; background:transparent; box-shadow:none; color:#fff; font-size:clamp(21px,2.7vw,27px); line-height:1.45; font-weight:700; letter-spacing:0; }
.bbaf .bbaf__description, .content-page__paper .entry-content .bbaf .bbaf__description { margin:0; padding:0; color:#d3e5f2; font-size:13px; line-height:1.65; font-weight:400; }
.bbaf .bbaf__search-row { margin:0 0 13px; }
.bbaf .bbaf__search-wrap { display:flex; gap:10px; align-items:center; width:100%; padding:0 16px; min-height:49px; background:#f7fbff; border:1px solid #c6d8e6; border-radius:12px; color:#52748c; cursor:text; }
.bbaf .bbaf__search-wrap:focus-within { border-color:#2489d1; box-shadow:0 0 0 3px rgba(36,137,209,.16); }
.bbaf .bbaf__search-icon { display:block; flex:0 0 18px; }
.bbaf input.bbaf__search { display:block; flex:1; min-width:0; border:0; outline:0; box-shadow:none; background:transparent; color:#17354d; width:100%; height:47px; padding:0; margin:0; font-family:inherit; font-size:14px; line-height:1.5; font-weight:400; }
.bbaf input.bbaf__search::placeholder { color:#718da2; opacity:1; }
.bbaf .bbaf__tabs { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px; padding:0; }
.bbaf button.bbaf__tab { border:1px solid #d2e1ec; background:#f2f7fb; color:#234960; font-size:12px; font-family:inherit; line-height:1.55; font-weight:600; padding:7px 13px; min-height:35px; border-radius:999px; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.bbaf button.bbaf__tab:hover { border-color:#67a6d2; background:#e6f3fb; }
.bbaf button.bbaf__tab.is-active { color:#fff; border-color:#0d354f; background:#0d354f; }
.bbaf .bbaf__result-line { margin:0 0 14px; color:#607e95; font-size:12px; display:flex; justify-content:space-between; }
.bbaf .bbaf__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:0; padding:0; align-items:stretch; }
.bbaf .bbaf__card { min-width:0; margin:0; border-radius:13px; background:#0b2439; border:1px solid #315c79; overflow:hidden; box-shadow:0 4px 13px rgba(17,40,61,.08); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.bbaf .bbaf__card:hover { transform:translateY(-2px); border-color:#64b4ed; box-shadow:0 9px 24px rgba(15,52,83,.16); }
.bbaf a.bbaf__card-link { display:flex; flex-direction:column; height:100%; min-height:100%; color:#fff; text-decoration:none; }
.bbaf a.bbaf__card-link:hover { color:#fff; text-decoration:none; }
.bbaf .bbaf__thumb { width:100%; display:block; aspect-ratio:16/9; background:#e6eff6; overflow:hidden; flex:none; }
.bbaf .bbaf__thumb img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; border:0; border-radius:0; margin:0; background:#eef5fa; }
.bbaf .bbaf__thumb-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; background:linear-gradient(130deg,#0e3554,#20577b); color:#c6e5fc; font-size:clamp(14px,1.5vw,20px); font-weight:700; letter-spacing:-.02em; }
.bbaf .bbaf__card-body { display:flex; flex:1; min-width:0; flex-direction:column; align-items:flex-start; padding:14px 16px 13px; gap:8px; }
.bbaf .bbaf__card-title { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; color:#f6faff; font-size:clamp(13px,1.4vw,16px); font-weight:700; line-height:1.55; overflow-wrap:anywhere; }
.bbaf .bbaf__card-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:#cadae6; font-size:12px; font-weight:400; line-height:1.55; }
.bbaf .bbaf__card-date { display:block; margin-top:auto; color:#aacbdf; font-size:11px; font-weight:400; line-height:1.5; }
.bbaf .bbaf__empty, .bbaf .bbaf__no-posts { margin:16px 0!important; background:#f2f7fb; padding:18px; border:1px solid #d4e2ee; border-radius:12px; color:#37576e; font-size:14px; }
.bbaf .bbaf__more-wrap { display:flex; justify-content:center; margin:20px 0 0; }
.bbaf button.bbaf__more { min-height:42px; border:1px solid #1a5379; background:#fff; color:#0c3552; padding:9px 28px; border-radius:10px; font-size:13px; font-family:inherit; font-weight:700; cursor:pointer; }
.bbaf button.bbaf__more:hover { background:#ebf5fc; }
.bbaf .bbaf__footnote, .content-page__paper .entry-content .bbaf .bbaf__footnote { color:#8596a5; font-size:11px; margin:13px 0 0; padding:0; font-weight:400; }
.bbaf .bbaf__tab:focus-visible, .bbaf .bbaf__more:focus-visible, .bbaf .bbaf__card-link:focus-visible { outline:3px solid #2a91d4; outline-offset:3px; }
@media(max-width:650px) {
 .bbaf { margin:18px auto 30px; }
 .bbaf .bbaf__intro { border-radius:13px; padding:20px 19px; }
 .bbaf .bbaf__grid { grid-template-columns:minmax(0,1fr); gap:13px; }
 .bbaf .bbaf__card-link { flex-direction:row!important; min-height:104px!important; }
 .bbaf .bbaf__thumb { width:39%; min-width:0; align-self:stretch; aspect-ratio:auto; flex:0 0 39%; }
 .bbaf .bbaf__thumb img { object-fit:cover; }
 .bbaf .bbaf__card-body { padding:12px; gap:4px; justify-content:center; }
 .bbaf .bbaf__card-title { font-size:13px; -webkit-line-clamp:3; }
 .bbaf .bbaf__card-date { font-size:10px; margin-top:6px; }
 .bbaf .bbaf__tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; }
 .bbaf button.bbaf__tab { flex:none; }
 .bbaf .bbaf__footnote { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) { .bbaf .bbaf__card { transition:none; } }
