/* 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:var(--dark,#0b3a5e);border-color:var(--dark,#0b3a5e);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,#e8f2fb);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-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}
}

/* 2026-11-10: set tabs (banners.js) */
.bn2-off { display: none !important; }
.bn2-tabs { margin-bottom: 0; gap: 12px; }
.bn2-tabs .bn2-set-link { position: relative; border: 2px solid var(--line, #dbe5ee); transition: border-color .15s, box-shadow .15s; }
.bn2-tabs .bn2-set-link:hover { border-color: #9fd6ff; }
.bn2-tabs .bn2-set-link.on { border-color: var(--blue, #0e6bb5); box-shadow: 0 10px 26px rgba(8, 44, 72, .14); background: #f4f9fe; }
.bn2-tabs .bn2-set-link.on::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 18px; margin-left: -9px; transform: rotate(45deg); background: #f4f9fe; border-right: 2px solid var(--blue, #0e6bb5); border-bottom: 2px solid var(--blue, #0e6bb5); }
.bn2-tabs + .bn2-set, .bn2-tabs ~ .bn2-set { margin-top: 30px; }
@media (max-width: 760px) {
  .bn2-tabs .bn2-set-link.on::after { display: none; }
}

/* 2026-11-10: each code box sits behind a "Show the code" button in the same row as Copy code and Download;
   opened, the code box takes the full width under the buttons. Copy code works while it is closed. */
.bn2-info .actions{align-items:flex-start}
.bn2-get{margin:0}
.bn2-get[open]{flex:0 0 100%}
.bn2-get summary{list-style:none;cursor:pointer;color:var(--blue,#0e6bb5);font-weight:600}
.bn2-get summary::-webkit-details-marker{display:none}
.bn2-get summary::after{content:"";width:8px;height:8px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.bn2-get[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.bn2-get summary:focus-visible{outline:3px solid #222;outline-offset:2px}
.bn2-get .bn2-hide,.bn2-get[open] .bn2-show{display:none}
.bn2-get[open] .bn2-hide{display:inline}
.bn2-get .bn2-code{display:block;margin:10px 0 0}

/* the gap between the set tabs and the open set's heading stays small (no empty band) */
.bn2-sets{margin-bottom:0}
.bn2-tabs + .bn2-set, .bn2-tabs ~ .bn2-set{margin-top:0;padding-top:34px}
.bn2-set:last-of-type{margin-bottom:10px}

/* 2026-11-10 review: room between the HopLink bar and the filter pills (tight on phones) */
.bn2 .hopbar + .bn2-bar, .bn2 .hopbar ~ .bn2-bar { margin-top: 20px; }
