/* Banners page (web/preview/banners/) and Product Images page (web/preview/images/). Page-only rules; kit styles live in aff.css. */

/* 3 steps */
.bn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bn-step { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.bn-step .n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; font-size: 17px; }
.bn-step b { display: block; font-size: 18px; margin-bottom: 4px; }
.bn-step p { margin: 0; font-size: var(--fs-body); color: var(--muted); line-height: 1.55; }

/* whole-set download strip */
.bn-dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 14px; padding: 18px 22px; background: linear-gradient(120deg, #fff, #fff0f4); }
.bn-dl b { font-size: 18px; }
.bn-dl p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-body); }

/* design picker */
.bn-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.bn-jump a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.3; box-shadow: 0 10px 30px rgba(74, 21, 48, .05); transition: border-color .15s, transform .15s; }
.bn-jump a:hover { border-color: var(--orange); transform: translateY(-2px); }
.bn-jump img { width: 120px; height: auto; flex: none; border-radius: 8px; }
.bn-jump small { display: block; color: var(--orange-d); font-size: 16px; font-weight: 500; }

/* one design */
.bn-concept { scroll-margin-top: 140px; }
.bn-ch { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.bn-ch > div { max-width: 760px; }
.bn-ch h2 { font-size: 32px; font-weight: 900; }
.bn-ch p { margin: 8px 0 0; color: var(--muted); }
.bn-ch .bn-kind { margin: 0 0 6px; color: var(--orange-d); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bn-concept .group-h { margin-top: 30px; }

/* banner cards */
.bn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.bn { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.bn-wide { grid-column: 1 / -1; }
.bn-tall { grid-row: span 2; }
.bn-img { display: grid; place-items: center; padding: 18px; background: repeating-conic-gradient(#fbe8ec 0% 25%, #fffafb 0% 50%) 0 0 / 20px 20px; border-bottom: 1px solid var(--line); }
.bn-img img { display: block; max-width: 100%; height: auto; box-shadow: 0 6px 18px rgba(74, 21, 48, .14); }
.bn-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.bn-h { font-size: var(--fs-body); font-weight: 500; color: var(--muted); }
.bn-size { color: var(--ink); font-weight: 900; font-size: 18px; margin-right: 4px; }
.bn-b textarea.input { min-height: 0; height: 92px; font-size: 16px; line-height: 1.45; }
.bn-act { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-kb { color: var(--muted); font-weight: 400; }
.btn-mini.hot .bn-kb { color: #fff; }
.bn-wide .bn-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h h" "code act"; align-items: start; gap: 10px 16px; }
.bn-wide .bn-h { grid-area: h; }
.bn-wide textarea.input { grid-area: code; height: 72px; }
.bn-wide .bn-act { grid-area: act; flex-direction: column; }

/* Product Images page */
.pi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pi { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pi .bn-img { min-height: 250px; }
.pi .bn-img img { max-height: 220px; width: auto; box-shadow: none; }
.pi-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.pi-wide .bn-img { border-bottom: 0; border-right: 1px solid var(--line); }
.pi-wide .bn-img img { max-height: none; width: 100%; }
.pi-tag { margin: 0; color: var(--orange-d); font-size: 16px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.pi h3 { font-size: 20px; line-height: 1.25; }
.pi p.pi-d { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.55; }

@media (max-width: 980px) {
  .bn-grid, .pi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-jump { grid-template-columns: 1fr; }
  .bn-jump img { width: 96px; }
}
@media (max-width: 760px) {
  .bn-steps, .bn-grid, .pi-grid { grid-template-columns: minmax(0, 1fr); }
  .bn-tall { grid-row: auto; }
  .bn-wide .bn-b { display: flex; }
  .bn-wide .bn-act { flex-direction: row; }
  .bn-ch h2 { font-size: 26px; }
  .bn-img { padding: 12px; }
  .pi-wide { grid-template-columns: minmax(0, 1fr); }
  .pi-wide .bn-img { border-right: 0; border-bottom: 1px solid var(--line); }
  .bn-dl .btn { width: 100%; white-space: normal; text-align: center; }
}
.bn-step p b { display: inline; font-size: inherit; margin: 0; }
.bn-b textarea.input { word-break: break-all; }
