/* Bitcoin Pages — Portal-style chrome (international / USD) */
:root {
  --bp-bg: #f4f1eb;
  --bp-surface: #ffffff;
  --bp-ink: #1a1f26;
  --bp-muted: #5c6670;
  --bp-line: #d9dde3;
  --bp-accent: #f7931a;
  --bp-accent-ink: #111;
  --bp-ok: #1a7f4b;
  --bp-bad: #b42318;
  --bp-util: #12161c;
  --bp-font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --bp-display: "Source Serif 4", Georgia, serif;
}

body.bp-portal {
  margin: 0;
  font-family: var(--bp-font);
  background: var(--bp-bg);
  color: var(--bp-ink);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  min-height: 100%;
}

body.bp-portal .main-content {
  padding-top: 0 !important;
  flex: 1 0 auto;
}

.bp-util-bar {
  background: var(--bp-util);
  color: #c9d1d9;
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #2a323c;
}
.bp-util-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.bp-util-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.bp-util-stats strong {
  color: #fff;
  font-weight: 600;
}
.bp-util-auth a {
  color: #c9d1d9;
  text-decoration: none;
  margin-left: 0.75rem;
}
.bp-util-auth a:hover {
  color: var(--bp-accent);
}

.bp-identity {
  background: var(--bp-surface);
  border-bottom: 1px solid var(--bp-line);
  padding: 0.85rem 0;
}
.bp-identity-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}
.bp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bp-ink);
  flex-shrink: 0;
}
.bp-brand img {
  height: 52px;
  width: auto;
  display: block;
}
.bp-brand-name {
  font-family: var(--bp-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.bp-identity-inner--explorer {
  flex-wrap: nowrap;
}
.bp-explorer-search {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bp-explorer-search--wide {
  max-width: none;
  width: 100%;
}
.bp-explorer-search input {
  border: 0;
  padding: 0.5rem 0.75rem;
  flex: 1;
  outline: none;
  font: inherit;
  min-width: 0;
}
.bp-explorer-search button {
  border: 0;
  background: var(--bp-accent);
  color: var(--bp-accent-ink);
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bp-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-left: auto;
}
.bp-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0;
}
.bp-nav-advertise {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.bp-search {
  display: flex;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bp-search input {
  border: 0;
  padding: 0.45rem 0.75rem;
  min-width: 180px;
  outline: none;
  font: inherit;
}
.bp-search button {
  border: 0;
  background: var(--bp-accent);
  color: var(--bp-accent-ink);
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.bp-btn-primary {
  background: var(--bp-accent);
  color: var(--bp-accent-ink);
}
.bp-btn-primary:hover {
  filter: brightness(1.05);
  color: var(--bp-accent-ink);
  text-decoration: none;
}
.bp-btn-ghost {
  background: transparent;
  border-color: var(--bp-line);
  color: var(--bp-ink);
}
.bp-btn-ghost:hover {
  border-color: var(--bp-muted);
  text-decoration: none;
  color: var(--bp-ink);
}

.bp-main-nav {
  background: var(--bp-surface);
  border-bottom: 1px solid var(--bp-line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bp-main-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.bp-main-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.05rem 0.1rem;
  min-width: 0;
}
.bp-main-nav a {
  color: var(--bp-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 0.7rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.bp-main-nav a:hover,
.bp-main-nav a.active {
  color: var(--bp-ink);
  border-bottom-color: var(--bp-accent);
}
.bp-nav-search {
  display: flex;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex: 0 1 220px;
  max-width: 260px;
  margin: 0.35rem 0;
}
.bp-nav-search input {
  border: 0;
  padding: 0.35rem 0.65rem;
  flex: 1;
  min-width: 0;
  outline: none;
  font: inherit;
  font-size: 0.85rem;
}
.bp-nav-search button {
  border: 0;
  background: var(--bp-ink);
  color: #fff;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
@media (max-width: 720px) {
  .bp-identity-inner--explorer {
    flex-wrap: wrap;
  }
  .bp-explorer-search {
    flex: 1 1 100%;
    order: 3;
  }
  .bp-identity-actions {
    margin-left: 0;
  }
  .bp-nav-actions {
    flex: 1 1 100%;
  }
  .bp-nav-search {
    flex: 1 1 auto;
    max-width: none;
  }
}

.bp-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.bp-shell.with-sidebars {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 180px;
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .bp-shell.with-sidebars {
    grid-template-columns: 1fr;
  }
  .bp-sidebar-left,
  .bp-sidebar-right {
    display: none;
  }
}

.bp-hero {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--bp-line);
  margin-bottom: 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(247, 147, 26, 0.18), transparent 55%),
    linear-gradient(180deg, #fff8ef 0%, var(--bp-bg) 100%);
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.bp-hero h1 {
  font-family: var(--bp-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.bp-hero p {
  color: var(--bp-muted);
  max-width: 36rem;
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
}
.bp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bp-section-title {
  font-family: var(--bp-display);
  font-size: 1.45rem;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.bp-net-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .bp-net-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bp-net-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.bp-net-card .value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--bp-ink);
}
.bp-net-card .sub {
  font-size: 0.82rem;
  color: var(--bp-muted);
  margin-top: 0.25rem;
}

.bp-chart-panel {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 2rem;
}
.bp-chart-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.bp-chart-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
}
.bp-chart-price-row .price {
  font-size: 1.5rem;
  font-weight: 700;
}
.bp-chart-price-row .change.up {
  color: var(--bp-ok);
  font-weight: 600;
}
.bp-chart-price-row .change.down {
  color: var(--bp-bad);
  font-weight: 600;
}
.bp-range-btns {
  display: flex;
  gap: 0.35rem;
}
.bp-range-btns button {
  border: 1px solid var(--bp-line);
  background: #fff;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--bp-muted);
}
.bp-range-btns button.active {
  background: var(--bp-ink);
  color: #fff;
  border-color: var(--bp-ink);
}
.bp-chart-canvas-wrap {
  height: 280px;
  position: relative;
}
.bp-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bp-line);
}
@media (max-width: 700px) {
  .bp-chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bp-chart-stats .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-muted);
}
.bp-chart-stats .value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bp-chart-stats .value.up {
  color: var(--bp-ok);
}
.bp-chart-stats .value.down {
  color: var(--bp-bad);
}

.bp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .bp-cat-grid {
    grid-template-columns: 1fr;
  }
}
.bp-cat-card {
  display: block;
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.bp-cat-card:hover {
  border-color: var(--bp-accent);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.bp-cat-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--bp-ink);
}
.bp-cat-card .count {
  font-size: 0.8rem;
  color: var(--bp-accent);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.bp-cat-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--bp-muted);
}

.bp-news-teaser {
  margin-bottom: 2rem;
}
.bp-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  overflow: hidden;
}
.bp-news-list li {
  border-bottom: 1px solid var(--bp-line);
}
.bp-news-list li:last-child {
  border-bottom: 0;
}
.bp-news-list a {
  display: block;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--bp-ink);
}
.bp-news-list a:hover {
  background: #faf7f2;
}
.bp-news-list .meta {
  font-size: 0.78rem;
  color: var(--bp-muted);
  margin-top: 0.25rem;
}

.bp-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 700px) {
  .bp-featured-grid {
    grid-template-columns: 1fr;
  }
}
.bp-listing-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  padding: 1.1rem;
}
.bp-listing-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.bp-listing-card p {
  margin: 0 0 0.75rem;
  color: var(--bp-muted);
  font-size: 0.9rem;
}

.bp-footer {
  background: var(--bp-util);
  color: #9aa4b0;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: auto;
}
.bp-footer a {
  color: #c9d1d9;
  text-decoration: none;
  margin: 0 0.35rem;
}
.bp-footer a:hover {
  color: var(--bp-accent);
}

/* Hub nav dropdowns */
.bp-nav-item {
  position: relative;
}
.bp-nav-item > a {
  display: inline-block;
}
.bp-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  padding: 0.45rem 0;
  z-index: 200;
}
.bp-nav-item:hover .bp-nav-dropdown,
.bp-nav-item:focus-within .bp-nav-dropdown {
  display: block;
}
.bp-nav-dropdown a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--bp-ink);
  font-weight: 500;
  font-size: 0.88rem;
  border-bottom: 0;
  white-space: nowrap;
}
.bp-nav-dropdown a:hover {
  background: #faf7f2;
  color: var(--bp-ink);
  border-bottom-color: transparent;
}
.bp-nav-dropdown .bp-nav-drop-head {
  font-weight: 700;
  color: var(--bp-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bp-nav-dropdown hr {
  margin: 0.35rem 0;
  border: 0;
  border-top: 1px solid var(--bp-line);
}

.bp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--bp-muted);
  margin-bottom: 1rem;
}
.bp-breadcrumb a {
  color: var(--bp-muted);
  text-decoration: none;
}
.bp-breadcrumb a:hover {
  color: var(--bp-accent);
}

.bp-hub-hero {
  margin-bottom: 1.5rem;
}

.bp-hub-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .bp-hub-home-grid {
    grid-template-columns: 1fr;
  }
}
.bp-hub-home-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem;
}
.bp-hub-home-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.bp-hub-home-link h3 {
  margin: 0 0 0.4rem;
  font-family: var(--bp-display);
  font-size: 1.25rem;
  color: var(--bp-ink);
}
.bp-hub-home-link p {
  margin: 0 0 0.5rem;
  color: var(--bp-muted);
  font-size: 0.92rem;
}
.bp-hub-home-link .meta {
  font-size: 0.8rem;
  color: var(--bp-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.bp-hub-home-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  border-top: 1px solid var(--bp-line);
  padding-top: 0.75rem;
}
.bp-hub-home-children a {
  font-size: 0.82rem;
  color: var(--bp-muted);
  text-decoration: none;
}
.bp-hub-home-children a:hover {
  color: var(--bp-accent);
}

/* News pages */
.bp-article {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
}
.bp-article h1 {
  font-family: var(--bp-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.bp-article .meta {
  color: var(--bp-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.bp-article .body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a3139;
}
.bp-article .body h2 {
  font-family: var(--bp-display);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.6rem;
}
.bp-article .source {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bp-line);
  font-size: 0.85rem;
  color: var(--bp-muted);
}

.bp-sidebar-left .nav-link {
  color: var(--bp-muted);
  padding: 0.35rem 0;
  font-size: 0.9rem;
}
.bp-sidebar-left .nav-link.active,
.bp-sidebar-left .nav-link:hover {
  color: var(--bp-ink);
}
