/* Banners page (own CSS; aff.css is not edited). Body 18px desktop / 17px phone, nothing under 16px, 44px tap targets. */
.bn2{font-size:18px;line-height:1.55}
.bn2 [hidden]{display:none!important}
.bn2-bar{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:8px 0 10px}
.bn2-filter{display:flex;flex-wrap:wrap;gap:8px}
.bn2-filter button{min-height:44px;padding:8px 18px;font-family:inherit;font-weight:600;font-size:17px;line-height:1.2;border:2px solid var(--line,#ddd);background:#fff;color:#222;border-radius:999px;cursor:pointer}
.bn2-filter button b{font-weight:700;color:var(--muted,#666);margin-left:4px}
.bn2-filter button.on{background:#b3001b;border-color:#b3001b;color:#fff}
.bn2-filter button.on b{color:#fff}
.bn2-filter button:focus-visible{outline:3px solid #222;outline-offset:2px}
.bn2-legend{font-size:17px;color:var(--muted,#555);margin:0 0 18px}
.bn2-legend span{display:inline-block;margin-right:14px}
.bn2-empty{font-size:18px;padding:20px 0}

.bn2-sets{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 34px}
.bn2-set-link{display:flex;flex-direction:column;gap:10px;padding:14px;text-decoration:none;color:inherit;min-height:44px}
.bn2-set-link img{width:100%;height:auto;border-radius:6px;display:block}
.bn2-set-link span{font-size:17px;line-height:1.45;color:var(--muted,#555)}
.bn2-set-link b{display:block;font-size:19px;color:#222}

.bn2-set{margin:0 0 44px;scroll-margin-top:96px}
.bn2-set-h{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}
.bn2-set-h h2{margin:0 0 4px}
.bn2-set-h h2 small,.bn2-det summary small{font-size:17px;font-weight:500;color:var(--muted,#555);margin-left:8px}
.bn2-set-h p{margin:0;font-size:18px}

.bn2-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:18px;align-items:start}
.bn2-card{border:1px solid var(--line,#ddd);border-radius:10px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:12px;min-width:0}
.bn2-card.wide{grid-column:1/-1}
@media (max-width:600px){.bn2-card.wide{grid-column:auto}}
.bn2-pic{background:var(--tint,#f6f2ec);border-radius:6px;padding:10px;display:flex;justify-content:center;align-items:flex-start;overflow:hidden}
.bn2-frame{max-width:100%;line-height:0}
.bn2-frame img{display:block;max-width:100%;height:auto;box-shadow:0 1px 6px rgba(0,0,0,.18)}
.bn2-info h3{font-size:19px;margin:0 0 2px}
.bn2-info h3 span{font-size:17px;font-weight:500;color:var(--muted,#555);margin-left:6px}
.bn2-note{font-size:17px;color:var(--muted,#555);margin:0 0 8px}
.bn2-code{width:100%;box-sizing:border-box;font:16px/1.45 Consolas,Menlo,monospace;min-height:110px;resize:none;margin-bottom:10px}
.bn2-info .actions{display:flex;flex-wrap:wrap;gap:10px}
.bn2 .btn-mini{min-height:44px;font-size:16px}
.bn2 .btn-sm{min-height:44px}

.bn2-classic{margin-top:10px}
.bn2-det{padding:0;margin:0 0 14px}
.bn2-det summary{cursor:pointer;min-height:44px;padding:12px 18px;font-size:19px;font-weight:700;list-style-position:inside}
.bn2-det-in{padding:4px 18px 18px}

@media (max-width:900px){
  .bn2-sets{grid-template-columns:1fr}
  .bn2-set-link{flex-direction:row;align-items:center}
  .bn2-set-link img{width:120px;flex:none}
}
@media (max-width:600px){
  .bn2{font-size:17px}
  .bn2-grid{grid-template-columns:minmax(0,1fr)}
  .bn2-card{padding:10px}
  .bn2-pic{padding:6px}
  .bn2-bar .btn,.bn2-set-h .btn{width:100%;justify-content:center;text-align:center}
  .bn2-set{scroll-margin-top:80px}
}
