/* CryptosBank Editorial Engine v0.6.7
 * Front-end presentation only. Existing option names, post fields and article classes are retained.
 * Reference direction: dark crypto-news article with market metrics + editorial sidebar.
 */
.cbe-article{
  --cbe-bg:#080d12;
  --cbe-panel:#0d141b;
  --cbe-panel-2:#111a23;
  --cbe-border:#293744;
  --cbe-border-soft:#1d2a35;
  --cbe-text:#f4f7fa;
  --cbe-muted:#aab6c2;
  --cbe-dim:#7f8d99;
  --cbe-blue:#3b9cff;
  --cbe-blue-2:#6db8ff;
  --cbe-green:#43e58c;
  --cbe-red:#ff5c70;
  --cbe-yellow:#f6c84c;
  position:relative;
  isolation:isolate;
  max-width:1100px;
  margin:0 auto;
  padding:18px clamp(12px,2vw,18px) 56px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.72;
  color:var(--cbe-text);
  background:transparent;
  box-sizing:border-box;
  text-align:left;
}
.cbe-article:before{
  content:"";
  position:absolute;
  z-index:-2;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:
    radial-gradient(circle at 78% 0%,rgba(42,117,190,.08),transparent 28%),
    linear-gradient(180deg,#080d12 0%,#0a1015 100%);
}
.cbe-article *{box-sizing:border-box}
.cbe-article a{color:var(--cbe-blue-2);text-decoration:none}
.cbe-article a:hover{text-decoration:underline}
.cbe-external-title-hidden{display:none!important}

/* Article structure */
.cbe-post-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:20px 24px;
}
.cbe-hero,.cbe-visual-summary,.cbe-disclaimer,.cbe-donation{grid-column:1 / -1}
.cbe-story-body{grid-column:1;min-width:0}
.cbe-facts{grid-column:2;grid-row:3;align-self:start}
.cbe-sources{grid-column:2;grid-row:4;align-self:start}
.cbe-disclaimer{grid-row:auto}
.cbe-donation{grid-row:auto}

/* Hero */
.cbe-hero{
  position:relative;
  overflow:visible;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,31%);
  grid-template-rows:auto auto auto auto auto;
  column-gap:28px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.cbe-breadcrumb{
  grid-column:1 / -1;
  display:flex;
  gap:11px;
  align-items:center;
  margin:0 0 18px;
  color:#8e9ba7;
  font-size:.76rem;
  letter-spacing:.01em;
}
.cbe-breadcrumb span+span:before{content:"/";margin-right:11px;color:#566572}
.cbe-kicker{
  grid-column:1;
  align-self:end;
  display:inline-flex;
  width:max-content;
  max-width:100%;
  margin:0 0 10px;
  padding:5px 9px;
  border:1px solid rgba(59,156,255,.35);
  border-radius:7px;
  background:rgba(25,95,165,.20);
  color:var(--cbe-blue-2);
  font-size:.68rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.cbe-hero-title{
  grid-column:1;
  margin:.15rem 0 .55rem!important;
  color:#f5f7fa!important;
  font-size:clamp(1.9rem,3.1vw,2.7rem)!important;
  line-height:1.16!important;
  letter-spacing:-.035em;
  font-weight:800;
}
.cbe-dek{
  grid-column:1;
  max-width:780px;
  margin:0 0 16px!important;
  color:#b9c4ce!important;
  font-size:clamp(.88rem,1.2vw,1rem)!important;
  line-height:1.55!important;
}
.cbe-meta-row{
  grid-column:1;
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  align-items:center;
  margin-top:auto;
  color:#8f9ca8;
  font-size:.72rem;
}
.cbe-meta-row span+span{position:relative}
.cbe-meta-row span+span:before{content:"•";position:absolute;left:-13px;color:#566572}

/* Hero visual */
.cbe-hero-media{
  grid-column:2;
  grid-row:2 / 6;
  align-self:start;
  justify-self:stretch;
  width:100%;
  max-height:290px;
  min-height:220px;
  aspect-ratio:1 / 1;
  border:1px solid #314151;
  border-radius:10px;
  overflow:hidden;
  position:relative;
  background:#0b1723;
}
.cbe-hero-image img{
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  opacity:.92;
}
.cbe-hero-art{isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#0a1725,#07101a 60%,#0d2438)}
.cbe-image-fallback{display:none;position:absolute;inset:0;overflow:hidden}
.cbe-image-fallback .cbe-hero-art{position:absolute;inset:0;width:100%;height:100%}
.cbe-hero-image-failed .cbe-image-fallback{display:block}
.cbe-hero-image-failed{background:#0b1723}
.cbe-hero-image-failed img{display:none!important}
.cbe-hero-art .cbe-art-grid,
.cbe-image-fallback .cbe-art-grid{
  position:absolute;inset:0;opacity:.25;
  background-image:
    linear-gradient(rgba(77,157,224,.32) 1px,transparent 1px),
    linear-gradient(90deg,rgba(77,157,224,.32) 1px,transparent 1px);
  background-size:28px 28px;
  transform:perspective(500px) rotateX(55deg) scale(1.4);
  transform-origin:center bottom;
}
.cbe-hero-art .cbe-art-globe,
.cbe-image-fallback .cbe-art-globe{
  position:absolute;
  left:50%;top:42%;
  width:178px;height:178px;
  transform:translate(-50%,-50%);
  display:grid;place-items:center;
  border-radius:50%;
  color:#ffd15a;
  font-size:5.8rem;font-weight:800;
  background:
    radial-gradient(circle at 32% 27%,#ffdc73 0 4%,transparent 5%),
    radial-gradient(circle at 38% 35%,#f2a927 0 30%,#bd6d16 63%,#633b16 100%);
  border:3px solid #f4c95c;
  box-shadow:0 0 0 18px rgba(44,135,215,.08),0 0 55px rgba(247,184,55,.20);
}
.cbe-hero-art .cbe-art-bars,
.cbe-image-fallback .cbe-art-bars{
  position:absolute;
  left:22px;right:22px;bottom:34px;
  display:flex;align-items:end;justify-content:center;gap:10px;height:105px;
}
.cbe-art-bars i{display:block;width:24px;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,#58aefc,#1d6db2);box-shadow:0 8px 20px rgba(38,130,216,.18)}
.cbe-art-bars i:nth-child(1){height:38%}.cbe-art-bars i:nth-child(2){height:54%;background:linear-gradient(180deg,#7d6bff,#4d35bf)}.cbe-art-bars i:nth-child(3){height:72%;background:linear-gradient(180deg,#e2a74b,#bd6c18)}.cbe-art-bars i:nth-child(4){height:96%;background:linear-gradient(180deg,#35dc92,#158b58)}
.cbe-art-arrow{position:absolute;right:24px;top:22px;color:#39e18d;font-size:4rem;font-weight:900;line-height:1;transform:rotate(-18deg);text-shadow:0 8px 30px rgba(57,225,141,.20)}

/* Ensure the fallback crypto artwork cannot collapse under theme/plugin CSS. */
.cbe-article .cbe-hero-art .cbe-art-globe,
.cbe-article .cbe-image-fallback .cbe-art-globe{width:178px!important;height:178px!important;display:grid!important;place-items:center!important;font-size:5.8rem!important;line-height:1!important}
.cbe-article .cbe-hero-art .cbe-art-bars,
.cbe-article .cbe-image-fallback .cbe-art-bars{display:flex!important;align-items:flex-end!important}
.cbe-article .cbe-hero-art .cbe-art-arrow,
.cbe-article .cbe-image-fallback .cbe-art-arrow{display:block!important;font-size:4rem!important;line-height:1!important}

/* The active theme may print its own post title/featured image outside the plugin article.
   Hide those only when a CBE article is present; ordinary WordPress posts are untouched. */
@supports selector(body:has(.cbe-article)){
  body.single-post:has(.cbe-article) .entry-header,
  body.single-post:has(.cbe-article) .post-header,
  body.single-post:has(.cbe-article) .post-thumbnail,
  body.single-post:has(.cbe-article) .featured-image,
  body.single-post:has(.cbe-article) .post-featured-image,
  body.single-post:has(.cbe-article) .wp-block-post-featured-image{display:none!important}
}

/* Metrics */
.cbe-visual-summary{
  margin:0;
  padding:0;
  border:1px solid var(--cbe-border);
  border-radius:15px;
  background:#0c141b;
  overflow:hidden;
}
.cbe-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}
.cbe-metric{
  min-width:0;
  padding:14px 20px;
  border-right:1px solid #2a3743;
}
.cbe-metric:last-child{border-right:0}
.cbe-metric strong{
  display:block;
  margin-bottom:6px;
  color:#d7dfe7;
  font-size:.78rem;
  font-weight:700;
}
.cbe-metric-value{
  display:block;
  color:#f7f9fb;
  font-size:1.32rem;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.02em;
}
.cbe-change{
  display:block;
  margin-top:6px;
  color:var(--cbe-green);
  font-size:.77rem;
  font-weight:700;
}

/* Main story */
.cbe-story-body{padding:2px 0}
.cbe-story-section{margin:0 0 22px}
.cbe-story-section h2,
.cbe-article .cbe-facts h2,
.cbe-article .cbe-sources h2{
  position:relative;
  margin:0 0 10px!important;
  padding:0 0 0 11px!important;
  border:0!important;
  color:#f1f4f7!important;
  font-size:1.08rem!important;
  line-height:1.3!important;
}
.cbe-story-section h2:before,
.cbe-article .cbe-facts h2:before,
.cbe-article .cbe-sources h2:before{
  content:"";
  position:absolute;left:0;top:3px;bottom:3px;
  width:3px;border-radius:99px;background:var(--cbe-blue);
}
.cbe-story-body p{
  margin:0 0 14px!important;
  color:#c4ced7!important;
  font-size:.86rem!important;
  line-height:1.7!important;
  text-align:left!important;
}

/* Sidebar */
.cbe-facts,.cbe-sources{
  padding:15px;
  border:1px solid var(--cbe-border);
  border-radius:10px;
  background:linear-gradient(180deg,#0d151d,#0b1219);
}
.cbe-fact-grid{display:grid;grid-template-columns:1fr;gap:14px}
.cbe-fact{
  display:flex;gap:10px;
  padding:0;
  border:0;
  background:transparent;
}
.cbe-fact p{
  margin:0!important;
  color:#d0d8df!important;
  font-size:.82rem!important;
  line-height:1.55!important;
}
.cbe-fact-dot{
  flex:0 0 21px;
  width:21px;height:21px;
  display:grid;place-items:center;
  margin-top:1px;
  border:1px solid #3c9cff;
  border-radius:50%;
  color:#3c9cff;
  font-size:.67rem;
  font-weight:900;
}
.cbe-source-grid{display:grid;grid-template-columns:1fr;gap:0}
.cbe-source{
  display:flex;align-items:center;gap:9px;
  padding:9px 0;
  border:0;
  border-bottom:1px solid #22303c;
  border-radius:0;
  background:transparent;
  color:#d1d9e0!important;
  font-size:.86rem;
}
.cbe-source:last-child{border-bottom:0}
.cbe-source:hover{color:#fff!important;text-decoration:none}
.cbe-source-mark{
  display:grid;place-items:center;
  width:22px;height:22px;
  border:1px solid #31404d;
  border-radius:5px;
  color:#7dbfff;
  background:#111c25;
  font-size:.72rem;
}
.cbe-view-sources{
  display:block;
  margin-top:12px;
  padding:9px 12px;
  border:1px solid #2d3c49;
  border-radius:8px;
  color:#c8d4df!important;
  text-align:center;
  font-size:.78rem;
  font-weight:700;
}
.cbe-view-sources:hover{background:#15212b;text-decoration:none}

/* Disclaimer */
.cbe-disclaimer{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 14px;
  border:1px solid #33414d;
  border-radius:10px;
  background:#0d151c;
  color:#aeb9c4;
  font-size:.79rem;
  line-height:1.55;
}
.cbe-disclaimer-icon{color:#7eafdc;font-size:1rem;line-height:1.35}

/* Donation / support block */
.cbe-donation-modern{
  position:relative;
  isolation:isolate;
  margin-top:0;
  padding:24px;
  border:1px solid #8d641f;
  border-radius:16px;
  background:
    radial-gradient(circle at 90% 10%,rgba(178,49,178,.08),transparent 28%),
    linear-gradient(145deg,#11171c,#15191d);
  color:#edf2f6;
  box-shadow:0 18px 55px rgba(0,0,0,.20);
  overflow:hidden;
}
.cbe-donation-modern .cbe-donation-head{display:flex;gap:12px;align-items:center;margin-bottom:4px}
.cbe-donation-modern .cbe-donation-icon{
  display:grid;place-items:center;
  width:42px;height:42px;flex:0 0 42px;
  border-radius:12px;
  background:#252e37;
  color:#ff5571;
  font-size:1.2rem;
}
.cbe-donation-modern .cbe-section-label{color:#6db8ff;font-size:.68rem}
.cbe-donation-modern h2{
  margin:0!important;padding:0!important;border:0!important;
  color:#f4f7fa!important;font-size:1.4rem!important;line-height:1.2!important;
}
.cbe-donation-modern .cbe-donation-intro{
  max-width:900px;
  margin:12px 0 18px!important;
  color:#b7c1cb!important;
  font-size:.82rem!important;
  text-align:left!important;
}
.cbe-wallets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.cbe-wallet{
  min-width:0;
  padding:15px;
  border:1px solid #30404d;
  border-radius:12px;
  background:#101820;
  box-shadow:none;
}
.cbe-wallet-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.cbe-wallet-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.cbe-wallet-asset{color:#f4f7fa;font-size:1.02rem;font-weight:850}
.cbe-wallet-network{
  display:inline-flex;padding:4px 7px;border-radius:5px;
  background:#26313c;color:#c4ced7;
  font-size:.62rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase
}
.cbe-wallet-index{display:none}
.cbe-wallet-address-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:8px;
  padding:8px;
  border:1px solid #2d3b47;
  border-radius:9px;
  background:#0a1117;
}
.cbe-wallet-address{
  display:block;min-width:0;
  margin:0!important;padding:1px 2px!important;border:0!important;background:transparent!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:.69rem;line-height:1.35;color:#b8c3cd;
}
.cbe-copy-wallet{
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  appearance:none;border:1px solid #3c9cff;background:#152b3f;color:#9dceff;
  border-radius:7px;padding:7px 9px;
  font-size:.69rem;font-weight:800;line-height:1;cursor:pointer;white-space:nowrap;min-width:60px
}
.cbe-copy-wallet:hover{background:#193750}
.cbe-copy-wallet.is-copied{background:#153928;border-color:#31845a;color:#9ee8ba}
.cbe-copy-icon{font-size:.8rem;line-height:1}
.cbe-copy-status{display:block;min-height:1em;margin-top:6px;font-size:.65rem;color:#8aa2b5}
.cbe-wallet-full{display:none}
.cbe-donation-note{
  margin:14px 0 0!important;
  color:#8e9ba7!important;
  font-size:.72rem!important;
  line-height:1.5!important;
  text-align:left!important;
}

/* Existing theme typography should not override article pieces */
.cbe-article h1,.cbe-article h2,.cbe-article p{font-family:inherit}
.cbe-article strong{font-weight:750}

/* Responsive */
@media(max-width:900px){
  .cbe-post-layout{grid-template-columns:1fr}
  .cbe-story-body,.cbe-facts,.cbe-sources{grid-column:1;grid-row:auto}
  .cbe-hero{grid-template-columns:1fr;grid-template-rows:auto}
  .cbe-hero-media{grid-column:1!important;grid-row:auto!important;align-self:start!important;justify-self:stretch!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16 / 9!important;margin-top:12px!important;padding:0!important}
  .cbe-metric-grid{grid-template-columns:repeat(2,1fr)}
  .cbe-metric:nth-child(2){border-right:0}
  .cbe-metric:nth-child(-n+2){border-bottom:1px solid #2a3743}
  .cbe-wallets{grid-template-columns:1fr}
}
@media(max-width:560px){
  .cbe-article{padding:18px 12px 40px}
  .cbe-hero{padding:0!important;border-radius:0!important}
  .cbe-hero-title{font-size:2rem!important}
  .cbe-metric-grid{grid-template-columns:1fr}
  .cbe-metric{border-right:0;border-bottom:1px solid #2a3743}
  .cbe-metric:last-child{border-bottom:0}
  .cbe-wallet-address-row{grid-template-columns:1fr}
  .cbe-copy-wallet{width:100%}
  .cbe-donation-modern{padding:18px}
}
@media print{
  .cbe-article{max-width:none;color:#111;background:#fff}
  .cbe-article:before{display:none}
  .cbe-hero,.cbe-facts,.cbe-sources,.cbe-donation-modern{box-shadow:none}
}
