/*
Theme Name: Backcom VN
Theme URI: https://backcomvn.com/
Author: Backcom VN
Author URI: https://backcom.io/
Description: Theme song ngữ (Việt/Anh) cho Backcom VN — landing page giới thiệu nền tảng hoàn phí giao dịch Backcom cùng hệ thống blog đầy đủ. Dark fintech UI, không phụ thuộc plugin. / Bilingual (VI/EN) theme for Backcom VN featuring a rebate-platform landing page and a complete blog system.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: backcom-vn
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root{
  /* Brand — lifted from backcom.io */
  --bc-lime:#8dff08;
  --bc-lime-soft:#a6ff45;
  --bc-lime-deep:#6fd400;
  --bc-mint:#08ffb5;
  --bc-gold:#f5b814;
  --bc-gold-deep:#e8a800;
  --bc-red:#ff3b30;
  --bc-red-soft:#ff7a7e;

  /* Surfaces */
  --bc-bg:#0a0a0a;
  --bc-bg-2:#0e0e0e;
  --bc-bg-3:#121412;
  --bc-surface:#141614;
  --bc-surface-2:#1a1d1a;
  --bc-tint-green:#071400;

  /* Text */
  --bc-text:#efefef;
  --bc-text-2:#cfd6cf;
  --bc-muted:#9aa39a;
  --bc-muted-2:#7f887f;

  /* Lines */
  --bc-line:rgba(255,255,255,.08);
  --bc-line-2:rgba(255,255,255,.14);
  --bc-line-lime:rgba(141,255,8,.28);

  /* Type */
  --bc-ff:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --bc-ff-display:'Montserrat','Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  --bc-ff-mono:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,monospace;

  /* Layout */
  --bc-wrap:1200px;
  --bc-wrap-narrow:760px;
  --bc-radius:14px;
  --bc-radius-lg:22px;
  --bc-radius-sm:10px;
  --bc-header-h:72px;

  /* Effects */
  --bc-shadow:0 18px 50px -22px rgba(0,0,0,.9);
  --bc-ease:cubic-bezier(.22,.61,.36,1);
}

/* Light mode — opt-in via body class, keeps brand hues legible on white */
body.bc-light{
  --bc-bg:#f7f9f7; --bc-bg-2:#ffffff; --bc-bg-3:#f1f4f1;
  --bc-surface:#ffffff; --bc-surface-2:#f4f7f4; --bc-tint-green:#f0fde4;
  --bc-text:#101410; --bc-text-2:#2c332c; --bc-muted:#5c665c; --bc-muted-2:#778177;
  --bc-line:rgba(0,0,0,.10); --bc-line-2:rgba(0,0,0,.16);
  --bc-lime-deep:#4d9600;
  --bc-shadow:0 18px 44px -26px rgba(0,0,0,.35);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--bc-header-h) + 16px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
body{
  margin:0;background:var(--bc-bg);color:var(--bc-text);
  font-family:var(--bc-ff);font-size:16px;line-height:1.65;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img,svg,video,canvas{max-width:100%;height:auto;display:block}
a{color:var(--bc-lime);text-decoration:none;transition:color .18s var(--bc-ease),opacity .18s var(--bc-ease)}
a:hover{color:var(--bc-lime-soft)}
h1,h2,h3,h4,h5,h6{font-family:var(--bc-ff-display);font-weight:800;line-height:1.15;margin:0 0 .5em;letter-spacing:-.02em;color:var(--bc-text)}
h1{font-size:clamp(2rem,5.2vw,3.4rem)}
h2{font-size:clamp(1.6rem,3.6vw,2.5rem)}
h3{font-size:clamp(1.2rem,2.2vw,1.6rem)}
h4{font-size:1.12rem}
p{margin:0 0 1.15em}
ul,ol{margin:0 0 1.15em;padding-left:1.3em}
li{margin-bottom:.4em}
blockquote{margin:1.6em 0;padding:1.1em 1.4em;border-left:3px solid var(--bc-lime);background:var(--bc-surface);border-radius:0 var(--bc-radius-sm) var(--bc-radius-sm) 0;color:var(--bc-text-2);font-style:italic}
blockquote p:last-child{margin-bottom:0}
code,kbd,pre,samp{font-family:var(--bc-ff-mono);font-size:.9em}
code{background:var(--bc-surface-2);padding:.15em .45em;border-radius:6px;color:var(--bc-lime-soft);border:1px solid var(--bc-line)}
pre{background:var(--bc-bg-2);border:1px solid var(--bc-line);border-radius:var(--bc-radius);padding:1.1em 1.3em;overflow-x:auto;line-height:1.6}
pre code{background:none;border:0;padding:0;color:var(--bc-text-2)}
hr{border:0;border-top:1px solid var(--bc-line);margin:2.4em 0}
table{width:100%;border-collapse:collapse;margin:0 0 1.5em;font-size:.95rem}
th,td{padding:.75em 1em;border:1px solid var(--bc-line);text-align:left}
th{background:var(--bc-surface-2);font-family:var(--bc-ff-display);font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em;color:var(--bc-text-2)}
figure{margin:1.8em 0}
figcaption{font-size:.85rem;color:var(--bc-muted);text-align:center;margin-top:.7em}
::selection{background:var(--bc-lime);color:#071400}
:focus-visible{outline:2px solid var(--bc-lime);outline-offset:3px;border-radius:4px}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.bc-wrap{width:100%;max-width:var(--bc-wrap);margin-inline:auto;padding-inline:20px}
.bc-wrap--narrow{max-width:var(--bc-wrap-narrow)}
.bc-section{padding:clamp(56px,8vw,104px) 0;position:relative}
.bc-section--tight{padding:clamp(40px,5vw,64px) 0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;top:12px;left:12px;z-index:9999;width:auto;height:auto;clip:auto;padding:12px 20px;background:var(--bc-lime);color:#071400;font-weight:700;border-radius:10px}

/* Decorative grid + glow backdrop */
.bc-backdrop{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.bc-backdrop::before{
  content:'';position:absolute;inset:-2px;
  background-image:linear-gradient(var(--bc-line) 1px,transparent 1px),linear-gradient(90deg,var(--bc-line) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 20%,transparent 78%);
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%,#000 20%,transparent 78%);
  opacity:.75;
}
.bc-glow{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;pointer-events:none}
.bc-glow--lime{background:radial-gradient(circle,rgba(141,255,8,.42),transparent 68%)}
.bc-glow--mint{background:radial-gradient(circle,rgba(8,255,181,.30),transparent 68%)}

/* ==========================================================================
   4. BUTTONS & CHIPS
   ========================================================================== */
.bc-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  font-family:var(--bc-ff-display);font-weight:700;font-size:.95rem;line-height:1;
  padding:.95em 1.5em;border-radius:999px;border:1px solid transparent;cursor:pointer;
  transition:transform .18s var(--bc-ease),box-shadow .18s var(--bc-ease),background .18s var(--bc-ease),color .18s var(--bc-ease),border-color .18s var(--bc-ease);
  text-align:center;white-space:nowrap;
}
.bc-btn:hover{transform:translateY(-2px)}
.bc-btn:active{transform:translateY(0)}
/* Icons must never flex to fill a full-width button. */
.bc-btn svg{width:1.15em;height:1.15em;flex:0 0 auto}
.bc-btn--primary{background:linear-gradient(135deg,var(--bc-lime),var(--bc-lime-soft));color:#071400;box-shadow:0 10px 30px -12px rgba(141,255,8,.7)}
.bc-btn--primary:hover{color:#071400;box-shadow:0 16px 38px -12px rgba(141,255,8,.85)}
.bc-btn--ghost{background:transparent;border-color:var(--bc-line-2);color:var(--bc-text)}
.bc-btn--ghost:hover{border-color:var(--bc-lime);color:var(--bc-lime);background:rgba(141,255,8,.06)}
.bc-btn--mint{background:linear-gradient(135deg,var(--bc-mint),#6affd6);color:#00201a;box-shadow:0 10px 30px -12px rgba(8,255,181,.65)}
.bc-btn--mint:hover{color:#00201a}
.bc-btn--sm{padding:.7em 1.15em;font-size:.85rem}
.bc-btn--lg{padding:1.1em 2em;font-size:1.05rem}
.bc-btn--block{display:flex;width:100%}

.bc-chip{
  display:inline-flex;align-items:center;gap:.5em;
  padding:.45em 1em;border-radius:999px;
  background:rgba(141,255,8,.09);border:1px solid var(--bc-line-lime);
  color:var(--bc-lime);font-size:.78rem;font-weight:700;
  font-family:var(--bc-ff-display);letter-spacing:.06em;text-transform:uppercase;
}
.bc-chip--gold{background:rgba(245,184,20,.10);border-color:rgba(245,184,20,.32);color:var(--bc-gold)}
.bc-chip--mint{background:rgba(8,255,181,.09);border-color:rgba(8,255,181,.3);color:var(--bc-mint)}
.bc-chip--hot{background:rgba(255,59,48,.12);border-color:rgba(255,59,48,.34);color:var(--bc-red-soft)}
.bc-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(141,255,8,.16)}
.bc-dot--pulse{animation:bcPulse 2s var(--bc-ease) infinite}
@keyframes bcPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.75)}}

/* ==========================================================================
   5. CARD
   ========================================================================== */
.bc-card{
  background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius-lg);
  padding:26px;position:relative;overflow:hidden;
  transition:border-color .22s var(--bc-ease),transform .22s var(--bc-ease),box-shadow .22s var(--bc-ease);
}
.bc-card--hover:hover{border-color:var(--bc-line-lime);transform:translateY(-4px);box-shadow:var(--bc-shadow)}

/* ==========================================================================
   6. SECTION HEADINGS
   ========================================================================== */
.bc-head{max-width:720px;margin:0 auto clamp(32px,4vw,56px);text-align:center;position:relative;z-index:1}
.bc-head--left{margin-inline:0;text-align:left}
.bc-head__eyebrow{display:inline-flex;margin-bottom:16px}
.bc-head__title{margin:0 0 14px}
.bc-head__sub{color:var(--bc-muted);font-size:1.05rem;margin:0}
.bc-grad{
  background:linear-gradient(103deg,var(--bc-lime) 8%,var(--bc-mint) 52%,var(--bc-lime-soft) 92%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
}

/* ==========================================================================
   7. HEADER / NAV
   ========================================================================== */
.bc-header{
  position:sticky;top:0;z-index:200;
  background:rgba(10,10,10,.82);
  backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid transparent;transition:border-color .25s var(--bc-ease),background .25s var(--bc-ease);
}
body.bc-light .bc-header{background:rgba(247,249,247,.85)}
.bc-header.is-stuck{border-bottom-color:var(--bc-line);background:rgba(10,10,10,.95)}
body.bc-light .bc-header.is-stuck{background:rgba(247,249,247,.96)}
.bc-header__inner{display:flex;align-items:center;gap:20px;height:var(--bc-header-h)}
.bc-logo{display:flex;align-items:center;gap:10px;font-family:var(--bc-ff-display);font-weight:900;font-size:1.22rem;color:var(--bc-text);letter-spacing:-.03em;flex-shrink:0}
.bc-logo:hover{color:var(--bc-text)}
.bc-logo__mark{width:32px;height:32px;flex-shrink:0}
.bc-logo__vn{color:var(--bc-lime)}
.bc-logo img{max-height:40px;width:auto}

.bc-nav{margin-left:auto;display:flex;align-items:center;gap:4px}
.bc-nav ul{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.bc-nav li{margin:0;position:relative}
.bc-nav a{
  display:block;padding:9px 11px;border-radius:10px;white-space:nowrap;
  color:var(--bc-text-2);font-size:.9rem;font-weight:600;font-family:var(--bc-ff-display);
}
.bc-nav a:hover{color:var(--bc-text);background:rgba(255,255,255,.05)}
.bc-nav .current-menu-item>a,.bc-nav .current_page_item>a{color:var(--bc-lime)}
.bc-nav .sub-menu{
  position:absolute;top:calc(100% + 10px);left:0;min-width:220px;flex-direction:column;gap:2px;
  background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius);padding:8px;
  box-shadow:var(--bc-shadow);opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .18s var(--bc-ease),transform .18s var(--bc-ease),visibility .18s;
}
.bc-nav li:hover>.sub-menu,.bc-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.bc-nav .sub-menu a{padding:9px 12px;font-size:.88rem}

.bc-header__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}

/* Language switch */
.bc-lang{display:inline-flex;padding:3px;border:1px solid var(--bc-line-2);border-radius:999px;background:var(--bc-surface)}
.bc-lang a{
  display:block;padding:5px 11px;border-radius:999px;font-size:.75rem;font-weight:800;
  font-family:var(--bc-ff-display);color:var(--bc-muted);letter-spacing:.04em;
}
.bc-lang a:hover{color:var(--bc-text)}
.bc-lang a.is-active{background:var(--bc-lime);color:#071400}

/* Burger */
.bc-burger{display:none;width:42px;height:42px;border:1px solid var(--bc-line-2);border-radius:11px;background:transparent;cursor:pointer;padding:0;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.bc-burger span{display:block;width:18px;height:2px;background:var(--bc-text);border-radius:2px;transition:transform .25s var(--bc-ease),opacity .2s}
.bc-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.bc-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.bc-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:1200px){
  .bc-burger{display:flex}
  .bc-nav{
    position:fixed;inset:var(--bc-header-h) 0 auto;margin:0;display:block;
    background:var(--bc-bg-2);border-bottom:1px solid var(--bc-line);
    padding:16px 20px 26px;max-height:calc(100dvh - var(--bc-header-h));overflow-y:auto;
    transform:translateY(-14px);opacity:0;visibility:hidden;transition:opacity .22s var(--bc-ease),transform .22s var(--bc-ease),visibility .22s;
  }
  .bc-nav.is-open{opacity:1;visibility:visible;transform:translateY(0)}
  .bc-nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .bc-nav a{padding:13px 14px;font-size:1rem}
  .bc-nav .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;background:transparent;border:0;border-left:1px solid var(--bc-line);border-radius:0;margin:2px 0 6px 14px;padding:0 0 0 8px}
  .bc-header__actions .bc-btn--header{display:none}
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.bc-footer{background:var(--bc-bg-2);border-top:1px solid var(--bc-line);padding:clamp(48px,6vw,76px) 0 28px;position:relative;overflow:hidden}
.bc-footer__grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:36px 26px;position:relative;z-index:1}
.bc-footer__about p{color:var(--bc-muted);font-size:.92rem;max-width:330px}
.bc-footer h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;color:var(--bc-text);margin-bottom:16px;font-weight:800}
.bc-footer ul{list-style:none;margin:0;padding:0}
.bc-footer li{margin-bottom:9px}
.bc-footer li a{color:var(--bc-muted);font-size:.9rem}
.bc-footer li a:hover{color:var(--bc-lime)}
.bc-social{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.bc-social a{
  width:38px;height:38px;border-radius:11px;border:1px solid var(--bc-line);
  display:grid;place-items:center;color:var(--bc-muted);background:var(--bc-surface);
  transition:color .18s var(--bc-ease),border-color .18s var(--bc-ease),transform .18s var(--bc-ease),background .18s var(--bc-ease);
}
.bc-social a:hover{color:var(--bc-lime);border-color:var(--bc-line-lime);transform:translateY(-3px);background:rgba(141,255,8,.07)}
.bc-social svg{width:17px;height:17px}
.bc-footer__risk{margin-top:44px;padding:18px 22px;border:1px solid rgba(255,59,48,.22);background:rgba(255,59,48,.045);border-radius:var(--bc-radius);color:var(--bc-muted);font-size:.82rem;line-height:1.7;position:relative;z-index:1}
.bc-footer__risk strong{color:var(--bc-red-soft)}
.bc-footer__bottom{margin-top:26px;padding-top:22px;border-top:1px solid var(--bc-line);display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;color:var(--bc-muted-2);font-size:.85rem;position:relative;z-index:1}
.bc-footer__bottom a{color:var(--bc-muted)}
@media (max-width:900px){.bc-footer__grid{grid-template-columns:repeat(2,1fr)}.bc-footer__about{grid-column:1/-1}}
@media (max-width:520px){.bc-footer__grid{grid-template-columns:1fr}}

/* Back to top */
.bc-top{
  position:fixed;right:20px;bottom:22px;z-index:150;width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;background:var(--bc-lime);color:#071400;border:0;cursor:pointer;
  box-shadow:0 12px 30px -12px rgba(141,255,8,.8);
  opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s var(--bc-ease),transform .25s var(--bc-ease),visibility .25s;
}
.bc-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.bc-top:hover{transform:translateY(-3px)}

/* ==========================================================================
   9. PAGE HERO (blog / archive / single)
   ========================================================================== */
.bc-phero{position:relative;padding:clamp(46px,6vw,80px) 0 clamp(30px,4vw,44px);overflow:hidden;border-bottom:1px solid var(--bc-line)}
.bc-phero__inner{position:relative;z-index:1;max-width:820px}
.bc-phero h1{margin-bottom:14px}
.bc-phero__sub{color:var(--bc-muted);font-size:1.05rem;margin:0;max-width:640px}
.bc-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.83rem;color:var(--bc-muted-2);margin-bottom:16px}
.bc-crumbs a{color:var(--bc-muted)}
.bc-crumbs a:hover{color:var(--bc-lime)}
.bc-crumbs span[aria-current]{color:var(--bc-text-2)}

/* ==========================================================================
   10. BLOG LISTING
   ========================================================================== */
.bc-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;align-items:start}
.bc-layout--full{grid-template-columns:minmax(0,1fr)}
@media (max-width:1000px){.bc-layout{grid-template-columns:minmax(0,1fr)}}

.bc-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:26px}

.bc-post{
  display:flex;flex-direction:column;background:var(--bc-surface);
  border:1px solid var(--bc-line);border-radius:var(--bc-radius-lg);overflow:hidden;height:100%;
  transition:border-color .22s var(--bc-ease),transform .22s var(--bc-ease),box-shadow .22s var(--bc-ease);
}
.bc-post:hover{border-color:var(--bc-line-lime);transform:translateY(-5px);box-shadow:var(--bc-shadow)}
.bc-post__media{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--bc-bg-3)}
.bc-post__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--bc-ease)}
.bc-post:hover .bc-post__media img{transform:scale(1.06)}
.bc-post__ph{width:100%;height:100%;display:grid;place-items:center;background:
  radial-gradient(120% 90% at 20% 0%,rgba(141,255,8,.16),transparent 62%),
  linear-gradient(160deg,var(--bc-bg-3),var(--bc-bg-2));}
.bc-post__ph svg{width:52px;height:52px;opacity:.5;color:var(--bc-lime)}
.bc-post__cat{
  position:absolute;top:12px;left:12px;z-index:2;
  padding:.35em .8em;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  font-family:var(--bc-ff-display);background:rgba(10,10,10,.82);color:var(--bc-lime);
  border:1px solid var(--bc-line-lime);backdrop-filter:blur(6px);
}
.bc-post__body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1}
.bc-post__title{font-size:1.1rem;line-height:1.35;margin:0 0 10px}
.bc-post__title a{color:var(--bc-text)}
.bc-post__title a:hover{color:var(--bc-lime)}
.bc-post__excerpt{color:var(--bc-muted);font-size:.9rem;margin:0 0 16px;flex:1}
.bc-post__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.78rem;color:var(--bc-muted-2);margin-top:auto;padding-top:14px;border-top:1px solid var(--bc-line)}
.bc-post__meta svg{width:13px;height:13px;vertical-align:-2px;margin-right:4px}
.bc-post__meta i{font-style:normal;opacity:.5}

/* Featured / sticky */
.bc-post--feat{grid-column:1/-1;flex-direction:row}
.bc-post--feat .bc-post__media{aspect-ratio:auto;width:48%;flex-shrink:0;min-height:280px}
.bc-post--feat .bc-post__body{padding:32px 34px;justify-content:center}
.bc-post--feat .bc-post__title{font-size:clamp(1.3rem,2.6vw,1.85rem)}
.bc-post--feat .bc-post__excerpt{font-size:.98rem}
@media (max-width:760px){.bc-post--feat{flex-direction:column}.bc-post--feat .bc-post__media{width:100%;aspect-ratio:16/9;min-height:0}.bc-post--feat .bc-post__body{padding:22px}}

/* ==========================================================================
   11. SIDEBAR / WIDGETS
   ========================================================================== */
.bc-sidebar{position:sticky;top:calc(var(--bc-header-h) + 24px);display:grid;gap:22px}
.bc-widget{background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius-lg);padding:22px}
.bc-widget__title,.bc-widget .widget-title,.bc-widget h2{font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;margin:0 0 16px;color:var(--bc-text);padding-bottom:12px;border-bottom:1px solid var(--bc-line)}
.bc-widget ul{list-style:none;margin:0;padding:0}
.bc-widget li{margin-bottom:10px;font-size:.9rem;color:var(--bc-muted)}
.bc-widget li a{color:var(--bc-text-2)}
.bc-widget li a:hover{color:var(--bc-lime)}
.bc-widget select{width:100%;padding:.7em;background:var(--bc-bg-2);border:1px solid var(--bc-line);border-radius:10px;color:var(--bc-text);font-family:inherit}

/* CTA widget */
.bc-widget--cta{background:linear-gradient(155deg,rgba(141,255,8,.13),rgba(8,255,181,.05) 60%,transparent);border-color:var(--bc-line-lime);text-align:center}
.bc-widget--cta h3{font-size:1.15rem;margin-bottom:8px}
.bc-widget--cta p{font-size:.88rem;color:var(--bc-muted);margin-bottom:18px}

/* Mini post list */
.bc-mini{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--bc-line)}
.bc-mini:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.bc-mini__img{width:66px;height:52px;flex-shrink:0;border-radius:10px;overflow:hidden;background:var(--bc-bg-3)}
.bc-mini__img img{width:100%;height:100%;object-fit:cover}
.bc-mini__t{font-size:.86rem;font-weight:600;line-height:1.4;margin:0 0 5px;font-family:var(--bc-ff)}
.bc-mini__t a{color:var(--bc-text-2)}
.bc-mini__t a:hover{color:var(--bc-lime)}
.bc-mini time{font-size:.74rem;color:var(--bc-muted-2)}

/* Tag cloud */
.bc-tags{display:flex;flex-wrap:wrap;gap:8px}
.bc-tags a,.tagcloud a{
  display:inline-block;padding:.4em .85em;border-radius:999px;border:1px solid var(--bc-line);
  background:var(--bc-bg-2);color:var(--bc-muted)!important;font-size:.79rem!important;font-weight:600;
}
.bc-tags a:hover,.tagcloud a:hover{border-color:var(--bc-line-lime);color:var(--bc-lime)!important;background:rgba(141,255,8,.07)}

/* Core block widgets — WordPress drops Search / Latest posts / Latest comments
   into a newly registered sidebar, so they must inherit the theme's look
   rather than render as default white controls. */
.bc-widget .wp-block-search__label,
.bc-widget .wp-block-heading{font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;margin:0 0 16px;color:var(--bc-text);padding-bottom:12px;border-bottom:1px solid var(--bc-line);font-family:var(--bc-ff-display)}
.bc-widget .wp-block-search__inside-wrapper{display:flex;gap:8px;border:0}
.bc-widget .wp-block-search__input,
.bc-widget .search-field{
  flex:1;min-width:0;padding:.8em 1em;background:var(--bc-bg-2);border:1px solid var(--bc-line);
  border-radius:11px;color:var(--bc-text);font-family:inherit;font-size:.92rem;
}
.bc-widget .wp-block-search__input::placeholder,
.bc-widget .search-field::placeholder{color:var(--bc-muted-2)}
.bc-widget .wp-block-search__input:focus,
.bc-widget .search-field:focus{outline:none;border-color:var(--bc-line-lime);box-shadow:0 0 0 3px rgba(141,255,8,.1)}
.bc-widget .wp-block-search__button,
.bc-widget .search-submit{
  padding:.8em 1.2em;border:0;border-radius:11px;background:var(--bc-lime);color:#071400;
  font-weight:800;font-family:var(--bc-ff-display);font-size:.88rem;cursor:pointer;
}
.bc-widget .wp-block-search__button:hover,
.bc-widget .search-submit:hover{background:var(--bc-lime-soft)}
.bc-widget .wp-block-latest-posts,
.bc-widget .wp-block-latest-comments,
.bc-widget .wp-block-categories,
.bc-widget .wp-block-archives,
.bc-widget .wp-block-page-list{list-style:none;margin:0;padding:0}
.bc-widget .wp-block-latest-comments__comment{
  margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--bc-line);
  font-size:.88rem;color:var(--bc-muted);line-height:1.6;
}
.bc-widget .wp-block-latest-comments__comment:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.bc-widget .wp-block-latest-posts__post-date{display:block;font-size:.74rem;color:var(--bc-muted-2);margin-top:4px}

/* Search form */
.bc-search{display:flex;gap:8px}
.bc-search input[type="search"],.bc-search input[type="text"]{
  flex:1;min-width:0;padding:.8em 1em;background:var(--bc-bg-2);border:1px solid var(--bc-line);
  border-radius:11px;color:var(--bc-text);font-family:inherit;font-size:.92rem;
}
.bc-search input::placeholder{color:var(--bc-muted-2)}
.bc-search input:focus{outline:none;border-color:var(--bc-line-lime);box-shadow:0 0 0 3px rgba(141,255,8,.1)}
.bc-search button{padding:.8em 1.1em;border:0;border-radius:11px;background:var(--bc-lime);color:#071400;font-weight:800;cursor:pointer;display:grid;place-items:center}
.bc-search button:hover{background:var(--bc-lime-soft)}
.bc-search svg{width:17px;height:17px}

/* ==========================================================================
   12. SINGLE POST
   ========================================================================== */
.bc-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--bc-lime),var(--bc-mint));z-index:300;transition:width .1s linear}
.bc-article__thumb{border-radius:var(--bc-radius-lg);overflow:hidden;border:1px solid var(--bc-line);margin-bottom:34px}
.bc-article__meta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px 0;border-top:1px solid var(--bc-line);border-bottom:1px solid var(--bc-line);margin-bottom:30px;font-size:.86rem;color:var(--bc-muted)}
.bc-author{display:flex;align-items:center;gap:10px}
.bc-author img{width:36px;height:36px;border-radius:50%;border:1px solid var(--bc-line-2)}
.bc-author b{color:var(--bc-text-2);font-weight:700;font-size:.88rem}

.bc-content{font-size:1.045rem;line-height:1.8;color:var(--bc-text-2)}
.bc-content>*{max-width:100%}
.bc-content h2{margin-top:2em;font-size:clamp(1.4rem,2.6vw,1.85rem);scroll-margin-top:calc(var(--bc-header-h) + 20px)}
.bc-content h3{margin-top:1.7em;scroll-margin-top:calc(var(--bc-header-h) + 20px)}
.bc-content h2::before{content:'';display:block;width:44px;height:3px;border-radius:2px;background:linear-gradient(90deg,var(--bc-lime),transparent);margin-bottom:14px}
.bc-content img,.bc-content .wp-block-image img{border-radius:var(--bc-radius)}
.bc-content a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:rgba(141,255,8,.4)}
.bc-content a:hover{text-decoration-color:var(--bc-lime)}
.bc-content ul li::marker{color:var(--bc-lime)}
.bc-content ol li::marker{color:var(--bc-lime);font-weight:700}
.alignwide{width:min(100vw - 40px,1100px);margin-inline:calc(50% - min(50vw - 20px,550px))}
.alignfull{width:100vw;margin-inline:calc(50% - 50vw);max-width:100vw}
.alignleft{float:left;margin:.4em 1.6em 1em 0;max-width:50%}
.alignright{float:right;margin:.4em 0 1em 1.6em;max-width:50%}
.aligncenter{margin-inline:auto}
.wp-caption{max-width:100%}
.sticky .bc-post__title::after{content:'\2605';color:var(--bc-gold);margin-left:.35em;font-size:.8em}

/* TOC */
.bc-toc{background:var(--bc-surface);border:1px solid var(--bc-line);border-left:3px solid var(--bc-lime);border-radius:0 var(--bc-radius) var(--bc-radius) 0;padding:20px 24px;margin:0 0 34px}
.bc-toc__t{font-family:var(--bc-ff-display);font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:var(--bc-text);margin-bottom:12px}
.bc-toc ol{margin:0;padding-left:1.2em}
.bc-toc li{font-size:.9rem;margin-bottom:7px}
.bc-toc li a{color:var(--bc-muted);text-decoration:none}
.bc-toc li a:hover{color:var(--bc-lime)}
.bc-toc .lvl3{margin-left:1em;font-size:.86rem}

/* Share */
.bc-share{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:38px 0;padding:20px 0;border-top:1px solid var(--bc-line);border-bottom:1px solid var(--bc-line)}
.bc-share__t{font-family:var(--bc-ff-display);font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--bc-muted);margin-right:4px}
.bc-share a,.bc-share button{
  width:40px;height:40px;border-radius:12px;border:1px solid var(--bc-line);background:var(--bc-surface);
  display:grid;place-items:center;color:var(--bc-muted);cursor:pointer;transition:color .18s var(--bc-ease),border-color .18s var(--bc-ease),transform .18s var(--bc-ease);
}
.bc-share a:hover,.bc-share button:hover{color:var(--bc-lime);border-color:var(--bc-line-lime);transform:translateY(-3px)}
.bc-share svg{width:17px;height:17px}

/* Author box */
.bc-authorbox{display:flex;gap:20px;padding:26px;background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius-lg);margin:34px 0}
.bc-authorbox img{width:64px;height:64px;border-radius:50%;flex-shrink:0;border:2px solid var(--bc-line-lime)}
.bc-authorbox h4{margin:0 0 6px}
.bc-authorbox p{margin:0;font-size:.9rem;color:var(--bc-muted)}
@media (max-width:520px){.bc-authorbox{flex-direction:column;text-align:center;align-items:center}}

/* Post navigation */
.bc-pnav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:34px 0}
.bc-pnav a{
  display:block;padding:20px 22px;background:var(--bc-surface);border:1px solid var(--bc-line);
  border-radius:var(--bc-radius);transition:border-color .2s var(--bc-ease),transform .2s var(--bc-ease);
}
.bc-pnav a:hover{border-color:var(--bc-line-lime);transform:translateY(-3px)}
.bc-pnav small{display:block;font-size:.73rem;text-transform:uppercase;letter-spacing:.09em;color:var(--bc-muted-2);margin-bottom:7px;font-weight:700}
.bc-pnav b{color:var(--bc-text);font-size:.95rem;font-weight:600;line-height:1.4;display:block}
.bc-pnav .is-next{text-align:right}
@media (max-width:640px){.bc-pnav{grid-template-columns:1fr}.bc-pnav .is-next{text-align:left}}

/* ==========================================================================
   13. PAGINATION
   ========================================================================== */
.bc-pagi{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:48px}
.bc-pagi .page-numbers{
  min-width:42px;height:42px;padding:0 13px;border-radius:12px;border:1px solid var(--bc-line);
  display:inline-grid;place-items:center;color:var(--bc-text-2);background:var(--bc-surface);
  font-weight:700;font-size:.9rem;font-family:var(--bc-ff-display);transition:border-color .18s var(--bc-ease),color .18s var(--bc-ease),transform .18s var(--bc-ease);
}
.bc-pagi .page-numbers:hover{border-color:var(--bc-line-lime);color:var(--bc-lime);transform:translateY(-2px)}
.bc-pagi .page-numbers.current{background:var(--bc-lime);border-color:var(--bc-lime);color:#071400}
.bc-pagi .dots{border-color:transparent;background:transparent}

/* ==========================================================================
   14. COMMENTS
   ========================================================================== */
.bc-comments{margin-top:48px}
.bc-comments__title{font-size:1.4rem;margin-bottom:26px}
.comment-list{list-style:none;margin:0 0 34px;padding:0}
.comment-list li{margin-bottom:20px}
.comment-list .children{list-style:none;margin:20px 0 0 clamp(16px,4vw,44px);padding:0}
.comment-body{background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius);padding:20px 22px}
.comment-author{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.comment-author img{width:38px;height:38px;border-radius:50%}
.comment-author .fn{font-style:normal;font-weight:700;color:var(--bc-text);font-family:var(--bc-ff-display);font-size:.93rem}
.comment-metadata{font-size:.78rem;color:var(--bc-muted-2);margin-bottom:10px}
.comment-metadata a{color:var(--bc-muted-2)}
.comment-content{font-size:.94rem;color:var(--bc-text-2)}
.comment-content p:last-child{margin-bottom:0}
.reply a{font-size:.8rem;font-weight:700;font-family:var(--bc-ff-display)}
.comment-respond{background:var(--bc-surface);border:1px solid var(--bc-line);border-radius:var(--bc-radius-lg);padding:28px}
.comment-reply-title{font-size:1.2rem;margin-bottom:8px}
.comment-form label{display:block;font-size:.82rem;font-weight:700;color:var(--bc-text-2);margin-bottom:7px;font-family:var(--bc-ff-display)}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{
  width:100%;padding:.85em 1em;background:var(--bc-bg-2);border:1px solid var(--bc-line);
  border-radius:11px;color:var(--bc-text);font-family:inherit;font-size:.94rem;margin-bottom:16px;
}
.comment-form textarea{min-height:140px;resize:vertical}
.comment-form input:focus,.comment-form textarea:focus{outline:none;border-color:var(--bc-line-lime);box-shadow:0 0 0 3px rgba(141,255,8,.1)}
.comment-form .submit{
  background:linear-gradient(135deg,var(--bc-lime),var(--bc-lime-soft));color:#071400;border:0;
  padding:.95em 1.8em;border-radius:999px;font-weight:800;font-family:var(--bc-ff-display);cursor:pointer;font-size:.95rem;
}
.comment-form .submit:hover{transform:translateY(-2px)}
.comment-form-cookies-consent{display:flex;gap:9px;align-items:flex-start}
.comment-form-cookies-consent label{margin:0;font-weight:500;font-size:.84rem;color:var(--bc-muted)}
.comment-notes,.logged-in-as{font-size:.86rem;color:var(--bc-muted);margin-bottom:20px}

/* ==========================================================================
   15. 404 / EMPTY STATES
   ========================================================================== */
.bc-empty{text-align:center;padding:clamp(50px,8vw,90px) 20px;max-width:600px;margin-inline:auto}
.bc-empty__code{font-family:var(--bc-ff-display);font-size:clamp(4.5rem,15vw,9rem);font-weight:900;line-height:.9;margin-bottom:14px;letter-spacing:-.05em}
.bc-empty h1,.bc-empty h2{margin-bottom:12px}
.bc-empty p{color:var(--bc-muted);margin-bottom:30px}
.bc-empty__actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:34px}

/* ==========================================================================
   16. GUTENBERG SUPPORT
   ========================================================================== */
.wp-block-button__link{border-radius:999px;font-family:var(--bc-ff-display);font-weight:700}
.is-style-outline .wp-block-button__link{border-color:var(--bc-lime);color:var(--bc-lime)}
.wp-block-separator{border-color:var(--bc-line)}
.wp-block-pullquote{border-color:var(--bc-lime)}
.wp-block-table td,.wp-block-table th{border-color:var(--bc-line)}
.wp-block-quote{border-left:3px solid var(--bc-lime);padding-left:1.3em}
.has-lime-color{color:var(--bc-lime)}
.has-lime-background-color{background-color:var(--bc-lime)}
.has-mint-color{color:var(--bc-mint)}
.has-mint-background-color{background-color:var(--bc-mint)}
.has-ink-background-color{background-color:var(--bc-bg)}
.has-ink-color{color:var(--bc-bg)}
.has-cloud-color{color:var(--bc-text)}
.has-cloud-background-color{background-color:var(--bc-text)}
.has-gold-color{color:var(--bc-gold)}
.has-gold-background-color{background-color:var(--bc-gold)}

/* ==========================================================================
   17. REVEAL ANIMATION
   ========================================================================== */
/* Progressive enhancement: content is visible by default and only starts
   hidden once the inline script in <head> confirms JS is running. If the
   script never executes, nothing on the page is ever invisible. */
.bc-js [data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s var(--bc-ease),transform .7s var(--bc-ease)}
.bc-js [data-reveal].is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.bc-js [data-reveal]{opacity:1;transform:none}}

/* Print */
@media print{
  .bc-header,.bc-footer,.bc-sidebar,.bc-share,.bc-top,.bc-progress,.bc-pnav,.comment-respond{display:none!important}
  body{background:#fff;color:#000}
  .bc-content{color:#000}
}
