/* BProud lightweight pages — built on terminal.css tokens */
.bpt-page { padding-bottom: 36px; }
.bpt-lead { margin: 10px 0 0; max-width: 720px; color: var(--bpt-muted); font-size: 15px; line-height: 1.55; }
.bpt-page a { text-decoration: none; }

/* toolbar */
.bpp-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 16px; }
.bpp-search { flex: 1 1 220px; margin: 0; }
.bpp-search input, .bpp-select { width: 100%; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 9px; padding: 9px 12px; color: var(--bpt-strong); font: inherit; font-size: 14px; outline: 0; box-shadow: none; margin: 0; height: auto; }
.bpp-search input:focus, .bpp-select:focus { border-color: var(--bpt-main); }
.bpp-select { width: auto; cursor: pointer; }
.bpp-select option { background: var(--bpt-card); color: var(--bpt-text); }
.bpp-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bpt-muted); margin: 0; cursor: pointer; }
.bpp-check input { accent-color: var(--bpt-main); margin: 0; }
.bpp-more { font-size: 12.5px; font-weight: 600; color: var(--bpt-main-l) !important; }
.bpp-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bpt-main); color: #fff !important; border-radius: 9px; padding: 11px 18px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.bpp-btn:hover { filter: brightness(1.1); }

/* news */
.bpp-feed { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bpp-story { display: grid; grid-template-columns: 148px 1fr; gap: 16px; align-items: center; background: var(--bpt-card); border: 1px solid var(--bpt-line); border-radius: 12px; padding: 10px; box-shadow: var(--bpt-shadow); color: var(--bpt-text) !important; transition: border-color .15s; }
.bpp-story:hover { border-color: var(--bpt-main-l); }
.bpp-story:hover strong { color: var(--bpt-main-l); }
.bpp-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1c1829, #8900f2); }
.bpp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpp-story-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bpp-story-b strong { font-size: 15.5px; line-height: 1.4; color: var(--bpt-strong); font-weight: 600; }
.bpp-story.fresh strong::before { content: "NEW"; font-size: 10px; font-weight: 700; color: #fff; background: var(--bpt-main); border-radius: 4px; padding: 2px 5px; margin-right: 8px; vertical-align: 2px; }
.bpp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bpp-side .bpt-card { margin: 0; }
.bpp-mini { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--bpt-line); color: var(--bpt-text) !important; }
.bpp-mini:last-child { border-bottom: 0; }
.bpp-mini strong { display: block; font-size: 13.5px; line-height: 1.35; color: var(--bpt-strong); }
.bpp-mini:hover strong { color: var(--bpt-main-l); }
.bpp-mini-img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #1c1829, #8900f2); }
.bpp-mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpp-cal-link { display: flex; flex-direction: column; gap: 4px; color: var(--bpt-text) !important; background: linear-gradient(135deg, rgba(137, 0, 242, .16), rgba(137, 0, 242, .03)), var(--bpt-card); }
.bpp-cal-link strong { font-size: 15px; color: var(--bpt-strong); }
.bpp-cd { font-size: 20px; font-weight: 700; color: var(--bpt-strong); }

/* coins */
.bpp-kpis { grid-template-columns: repeat(4, 1fr); }
.bpp-coins th[data-k] { cursor: pointer; user-select: none; }
.bpp-coins th[data-k]:hover { color: var(--bpt-strong); }
.bpp-coins th.sort::after { content: " ▲"; font-size: 9px; }
.bpp-coins th.sort.desc::after { content: " ▼"; }
.bpp-coins td.bpt-coin a { color: inherit; display: inline-flex; align-items: center; }
.bpp-coins tbody tr { cursor: pointer; }

/* coin detail */
.bpp-crumbs { padding: 22px 0 0; font-size: 13px; color: var(--bpt-muted); }
.bpp-crumbs a { color: var(--bpt-main-l) !important; }
.bpp-crumbs span { margin: 0 6px; }
.bpp-coinhead { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 14px 0 20px; }
.bpp-coin-id { display: flex; align-items: center; gap: 14px; }
.bpp-coin-id img { border-radius: 50%; }
.bpp-sym { font-size: .55em; color: var(--bpt-muted); font-weight: 600; vertical-align: middle; }
.bpp-rank { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--bpt-main-l); background: rgba(137, 0, 242, .12); padding: 3px 8px; border-radius: 5px; }
.bpp-coin-price { display: flex; align-items: baseline; gap: 10px; }
.bpp-coin-price strong { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; color: var(--bpt-strong); }
.bpp-coin-price span { font-size: 16px; font-weight: 600; }
.bpp-coin-price small { color: var(--bpt-muted); font-weight: 400; }
.bpp-coin-cta { margin-left: auto; }
#bpp-legend b { color: var(--bpt-strong); }
.bpp-others { display: flex; flex-wrap: wrap; gap: 8px; }
.bpp-others a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bpt-text) !important; border: 1px solid var(--bpt-line); background: var(--bpt-card-2); border-radius: 99px; padding: 6px 12px; }
.bpp-others a:hover { border-color: var(--bpt-main-l); }
.bpp-others img { border-radius: 50%; }
.bpp-others b { color: var(--bpt-strong); }

/* calendar */
.bpp-next-big { margin-bottom: 16px; }
.bpp-caltable td { white-space: normal; }
.bpp-caltable td:nth-child(3) { text-align: left; color: var(--bpt-strong); font-weight: 500; }
.bpp-caltable th:nth-child(3) { text-align: left; }
.bpp-caltable tr.past td { opacity: .5; }
.bpp-caltable .bpp-day td { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bpt-main-l); padding-top: 18px; background: none; }
.bpp-imp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #f5b400; vertical-align: 1px; }
.bpp-imp.High { background: var(--bpt-down); }
.bpp-howto p { font-size: 14px; line-height: 1.6; color: var(--bpt-text); margin: 10px 0; }
.bpp-howto a { color: var(--bpt-main-l) !important; font-weight: 600; }
aside > .bpt-ad { margin-top: 0; }

@media (max-width: 1080px) { .bpp-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .bpp-story { grid-template-columns: 104px 1fr; gap: 12px; }
  .bpp-story-b strong { font-size: 14.5px; }
  .bpp-coin-cta { margin-left: 0; width: 100%; }
  .bpp-coin-cta .bpp-btn { width: 100%; }
  .bpp-select { width: 100%; }
}

.bpt-page .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bpp-caltable td:first-child { white-space: nowrap; }
.bpp-caltable td:nth-child(2), .bpp-caltable th:nth-child(2) { text-align: left; }
.bpp-thumb:empty { display: grid; place-items: center; }
.bpp-thumb:empty::after { content: attr(data-src); color: rgba(255, 255, 255, .9); font-weight: 700; font-size: 13px; letter-spacing: .02em; padding: 0 8px; text-align: center; }
