/*
Theme Name: Bitcoin Radionica
Theme URI: https://bitcoin-radionica.com
Author: Boris Agatić / BLOCKSIZE d.o.o.
Author URI: https://bitcoin-radionica.com
Description: Custom dark theme for Bitcoin Radionica — workshops, pricing, blog. Replaces Avada. Integrates Contact Form 7 and a direct Mailchimp signup form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
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: bitcoin-radionica
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0D13;
  --bg-alt: #0E1220;
  --card: #121726;
  --card-alt: #151B2E;
  --line: #1C2233;
  --line-2: #2A3349;
  --line-3: #3A4460;
  --text: #E8EAEF;
  --body: #C7CDD9;
  --muted: #9AA3B5;
  --muted-2: #B9C0CF;
  --faint: #5A6272;
  --accent: #F7931A;
  --accent-2: #FFB04D;
  --accent-dark: #E2760A;
  --green: #3FDD8C;
  --red: #FF6B6B;
  --blue: #6B8AFD;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }
input, textarea, button { font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: var(--faint); }

.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
}

.br-wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* ---------- Animations ---------- */
@keyframes tickerPulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
@keyframes floatY  { 0%,100% { transform: translateY(0) }    50% { transform: translateY(-14px) } }
@keyframes floatY2 { 0%,100% { transform: translateY(-8px) } 50% { transform: translateY(8px) } }
@keyframes spinSlow { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }
@keyframes spinBack { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .5 } 100% { transform: scale(1.9); opacity: 0 } }
@keyframes dotTravel { 0% { left: 0%; opacity: 0 } 12% { opacity: 1 } 88% { opacity: 1 } 100% { left: 100%; opacity: 0 } }
@keyframes blockPop { 0%,100% { border-color: var(--line-2); box-shadow: none } 50% { border-color: var(--accent); box-shadow: 0 0 18px rgba(247,147,26,.25) } }
@keyframes barGrow { 0%,100% { transform: scaleY(.45) } 50% { transform: scaleY(1) } }

/* ---------- Top bar ---------- */
.br-topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
}
.br-ticker { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.br-ticker[hidden] { display: none; } /* author display:flex would otherwise defeat the hidden attribute */
.br-ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: tickerPulse 2s infinite;
}
.br-ticker-sym { font-weight: 600; color: var(--text); }
.br-ticker-eur { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.br-ticker-usd { font-variant-numeric: tabular-nums; }
.br-ticker-change { font-variant-numeric: tabular-nums; color: var(--green); }
.br-ticker-change.is-down { color: var(--red); }
.br-topbar-contact { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.br-topbar-contact a { color: var(--muted); }
.br-topbar-contact a:hover { color: var(--accent); }

/* ---------- Nav ---------- */
.br-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,19,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: 16px;
}
.br-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-weight: 700; font-size: 19px;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.br-logo:hover { color: var(--text); }
.br-logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-size: 19px; font-weight: 700;
  flex: none;
}
.br-nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14.5px; font-weight: 500;
  list-style: none; margin: 0; padding: 0;
}
.br-nav-links a { color: var(--muted-2); }
.br-nav-links a:hover, .br-nav-links .current-menu-item > a, .br-nav-links a.is-active { color: var(--accent); }
.br-nav-cta, .br-nav-links a.br-nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.br-nav-cta:hover, .br-nav-links a.br-nav-cta:hover { background: var(--accent-2); color: var(--bg); }
.br-burger {
  display: none;
  background: none; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font-size: 20px; line-height: 1;
  padding: 8px 12px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.br-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.br-btn:hover { background: var(--accent-2); color: var(--bg); }
.br-btn-ghost {
  display: inline-block;
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
}
.br-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.br-section { padding: 80px 32px; }
.br-section-alt { border-top: 1px solid var(--line); background: var(--bg-alt); }
.br-eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.br-h2 {
  font-family: var(--font-head);
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
  font-weight: 700;
}
.br-h2--tight { margin-bottom: 16px; }

/* ---------- Hero ---------- */
.br-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.br-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.br-hero h1 {
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 700;
}
.br-hero h1 .accent { color: var(--accent); }
.br-hero-sub {
  font-size: 18px; line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 480px;
  text-wrap: pretty;
}
.br-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.br-hero-stats { display: flex; gap: 36px; margin-top: 44px; }
.br-stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--accent); }
.br-stat-label { font-size: 13px; color: var(--muted); }

/* Hero visual */
.br-hero-visual { position: relative; min-height: 460px; }
.br-hero-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 45%, rgba(247,147,26,0.16), transparent 65%);
}
.br-orbit-1 {
  position: absolute; top: 50%; left: 50%;
  width: 400px; height: 400px; margin: -200px 0 0 -200px;
  border: 1px dashed var(--line-2); border-radius: 50%;
  animation: spinSlow 40s linear infinite;
}
.br-orbit-1 .n1 { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(247,147,26,.6); }
.br-orbit-1 .n2 { position: absolute; bottom: 24px; left: 8%; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.br-orbit-1 .n3 { position: absolute; top: 30%; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.br-orbit-2 {
  position: absolute; top: 50%; left: 50%;
  width: 290px; height: 290px; margin: -145px 0 0 -145px;
  border: 1px solid var(--line); border-radius: 50%;
  animation: spinBack 28s linear infinite;
}
.br-orbit-2 .n1 { position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--muted-2); }
.br-coin-wrap { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.br-coin-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(247,147,26,.5);
  animation: ringPulse 2.6s ease-out infinite;
}
.br-coin-ring.d2 { animation-delay: 1.3s; }
.br-coin {
  position: relative;
  width: 110px; height: 110px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 54px; font-weight: 700;
  color: var(--bg);
  box-shadow: 0 20px 50px rgba(247,147,26,.35);
}
.br-float { position: absolute; }
.br-float.f1 { top: 8%; left: 6%; animation: floatY 5s ease-in-out infinite; }
.br-float.f2 { bottom: 34%; left: 0; animation: floatY2 6s ease-in-out infinite; }
.br-float.f3 { top: 4%; right: 8%; animation: floatY2 5.5s ease-in-out infinite; animation-delay: .8s; }
.br-float-badge {
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.br-float.f1 .br-float-badge { width: 52px; height: 52px; font-size: 24px; color: var(--blue); }
.br-float.f2 .br-float-badge { width: 46px; height: 46px; font-size: 22px; color: var(--muted-2); }
.br-float.f3 .br-float-badge { width: 44px; height: 44px; font-size: 19px; color: var(--green); font-family: var(--font-body); font-weight: 400; }

/* Blockchain schema card */
.br-chain {
  position: absolute; left: 50%; bottom: -6px;
  transform: translateX(-50%);
  width: 380px; max-width: 100%;
  background: rgba(18,23,38,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.br-chain-head {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.br-chain-head .live { color: var(--green); }
.br-chain-row { display: flex; align-items: center; }
.br-block {
  flex: none; width: 78px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--bg-alt);
  animation: blockPop 3.6s ease-in-out infinite;
}
.br-block.d2 { animation-delay: 1.2s; }
.br-block.d3 { animation-delay: 2.4s; }
.br-block-num { font-size: 10px; color: var(--faint); }
.br-block-hash { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--text); }
.br-block--new { border: 1px dashed var(--accent); background: rgba(247,147,26,.06); }
.br-block--new .br-block-num, .br-block--new .br-block-hash { color: var(--accent); }
.br-chain-line { flex: 1; height: 2px; background: var(--line-2); position: relative; }
.br-chain-line span {
  position: absolute; top: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(247,147,26,.8);
  animation: dotTravel 2.4s linear infinite;
}
.br-chain-line.d2 span { animation-delay: 1.2s; }
.br-bars { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 14px; }
.br-bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(247,147,26,.25));
  border-radius: 3px;
  height: 100%;
  transform-origin: bottom;
  animation: barGrow 2.8s ease-in-out infinite;
}
.br-bars span:nth-child(2) { animation-delay: .3s; }
.br-bars span:nth-child(3) { animation-delay: .6s; }
.br-bars span:nth-child(4) { animation-delay: .9s; }
.br-bars span:nth-child(5) { animation-delay: 1.2s; }
.br-bars span:nth-child(6) { animation-delay: 1.5s; }
.br-bars span:nth-child(7) { animation-delay: 1.8s; }

/* ---------- Skills ---------- */
.br-skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.br-skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  transition: border-color .15s;
}
.br-skill-card:hover { border-color: var(--line-3); }
.br-skill-num { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.br-skill-title { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.br-skill-desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.br-aud-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.br-aud-label { font-size: 14px; color: var(--muted); margin-right: 6px; }
.br-aud-chip {
  border: 1px solid var(--line-2);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ---------- Why ---------- */
.br-why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.br-why-lead { font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; margin: 0; }
.br-why-items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.br-why-item { display: flex; gap: 14px; align-items: flex-start; }
.br-why-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: rgba(247,147,26,0.12);
  border: 1px solid rgba(247,147,26,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700; font-size: 15px;
  font-family: var(--font-head);
}
.br-why-title { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.br-why-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- Pricing ---------- */
.br-tiers-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.br-tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.br-tier--popular { background: var(--card-alt); border-color: var(--accent); }
.br-tier-flag {
  position: absolute; top: -11px; left: 24px;
  background: var(--accent); color: var(--bg);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.br-tier-name { font-size: 15px; font-weight: 600; color: var(--muted-2); }
.br-tier-price { font-family: var(--font-head); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.br-tier-unit { font-size: 16px; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.br-tier-detail { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.br-tier-btn {
  margin-top: auto;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 10px 0;
  font-size: 14.5px; font-weight: 600;
  color: var(--text);
}
.br-tier-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Signup / contact ---------- */
.br-signup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.br-signup-lead { font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; margin: 0 0 24px; }
.br-checks { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted-2); }

.br-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}
/* Contact Form 7 skinning — works with the recommended form markup (labels wrapping fields) */
.br-form-card form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.br-form-card label { font-size: 13.5px; font-weight: 600; color: var(--muted-2); display: block; }
.br-form-card .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.br-form-card input[type="text"],
.br-form-card input[type="email"],
.br-form-card input[type="tel"],
.br-form-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
}
.br-form-card input:focus, .br-form-card textarea:focus { border-color: var(--accent); }
.br-form-card textarea { resize: vertical; min-height: 90px; }
.br-form-card input[type="submit"],
.br-form-card button[type="submit"] {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 13px 0;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
}
.br-form-card input[type="submit"]:hover,
.br-form-card button[type="submit"]:hover { background: var(--accent-2); }
.br-form-card .wpcf7-spinner { position: absolute; margin: 12px; }
.br-form-card p { margin: 0; }
.wpcf7-not-valid-tip { color: var(--red); font-size: 12.5px; font-weight: 500; margin-top: 5px; display: block; }
.wpcf7 form .wpcf7-response-output {
  margin: 4px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted-2);
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--green); color: var(--green); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--red); color: var(--red); }

/* ---------- Team ---------- */
.br-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; }
.br-team-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex; gap: 20px; align-items: center;
}
.br-team-card img {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-2);
  flex: none;
}
.br-team-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.br-team-role { font-size: 13.5px; color: var(--accent); font-weight: 600; margin: 2px 0 8px; }
.br-team-bio { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.br-section-lead { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 680px; text-wrap: pretty; margin: 0 0 40px; }

/* ---------- Post cards ---------- */
.br-posts-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; gap: 16px; }
.br-posts-head .br-h2 { margin: 0; }
.br-posts-head a { font-size: 15px; font-weight: 600; }
.br-posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.br-post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  color: var(--text);
  transition: border-color .15s;
}
.br-post-card:hover { border-color: var(--line-3); color: var(--text); }
.br-post-thumb { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--bg-alt); }
.br-post-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  height: 170px;
  background: linear-gradient(135deg, var(--card-alt), var(--bg-alt));
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 40px; font-weight: 700;
}
.br-post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.br-post-meta { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.br-post-title { font-size: 16.5px; font-weight: 600; line-height: 1.4; flex: 1; }
.br-post-excerpt { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Blog page ---------- */
.br-main { max-width: 1180px; margin: 0 auto; padding: 56px 32px 80px; }
.br-page-head { margin-bottom: 36px; }
.br-page-head h1 {
  font-family: var(--font-head);
  font-size: 44px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 700;
}
.br-page-head p { font-size: 16.5px; color: var(--muted); margin: 0; }

.br-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.br-cat-chip {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--muted-2);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
}
.br-cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.br-cat-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.br-cat-chip.is-active:hover { color: var(--bg); }

.br-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  color: var(--text);
  margin-bottom: 44px;
  transition: border-color .15s;
}
.br-featured:hover { border-color: var(--line-3); color: var(--text); }
.br-featured > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.br-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.br-featured-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; flex-wrap: wrap; }
.br-featured-tag {
  background: rgba(247,147,26,0.14);
  border: 1px solid rgba(247,147,26,0.35);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.br-featured-date { color: var(--muted); font-weight: 500; }
.br-featured-body h2 {
  font-family: var(--font-head);
  font-size: 28px; line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0; font-weight: 700;
}
.br-featured-body p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }
.br-featured-more { font-size: 14.5px; font-weight: 600; color: var(--accent); }

/* the_posts_pagination() outputs nav.pagination > .nav-links > (a|span).page-numbers */
.br-pagination { display: flex; justify-content: center; margin-top: 48px; }
.br-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.br-pagination .page-numbers {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-2);
}
.br-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.br-pagination .page-numbers.current { border-color: var(--accent); color: var(--accent); }
.br-pagination .page-numbers.dots { border: none; padding: 12px 4px; }

/* ---------- Single post ---------- */
.br-crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.br-crumb a { color: var(--muted); }
.br-crumb a:hover { color: var(--accent); }

.br-article-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
.br-article-tags {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.br-tag-accent {
  background: rgba(247,147,26,0.14);
  border: 1px solid rgba(247,147,26,0.35);
  color: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
}
a.br-tag-accent:hover { color: var(--accent-2); }
.br-tag-plain {
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--muted-2);
  border-radius: 999px;
  padding: 4px 12px;
}
a.br-tag-plain:hover { color: var(--accent); }
.br-article-date { color: var(--faint); font-weight: 500; }
.br-article-title {
  font-family: var(--font-head);
  font-size: 42px; line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  font-weight: 700;
  text-wrap: pretty;
}
.br-article-hero {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  margin-bottom: 36px;
}

.br-content { font-size: 17px; line-height: 1.75; color: var(--body); }
.br-content p { margin: 0 0 20px; text-wrap: pretty; }
.br-content strong, .br-content b { color: var(--text); }
.br-content h2 {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 36px 0 16px;
  font-weight: 700;
  color: var(--text);
}
.br-content h3 {
  font-family: var(--font-head);
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 30px 0 14px;
  font-weight: 700;
  color: var(--text);
}
.br-content img { border-radius: 14px; border: 1px solid var(--line); }
.br-content ul, .br-content ol { margin: 0 0 20px; padding-left: 24px; }
.br-content li { margin-bottom: 8px; }
.br-content blockquote {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 28px 0;
  color: var(--muted);
}
.br-content blockquote p:last-child { margin-bottom: 0; }
/* Info callout (use in post HTML: <div class="br-callout"><span class="br-callout-icon">!</span><p>…</p></div>) */
.br-content .br-callout {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.br-content .br-callout-icon {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(247,147,26,0.12);
  border: 1px solid rgba(247,147,26,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
}
.br-content .br-callout p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }
.br-content pre {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  overflow-x: auto;
  font-size: 14px;
}
.br-content iframe { max-width: 100%; }
.br-content .wp-caption { max-width: 100%; }
.br-content .wp-caption-text { font-size: 13px; color: var(--faint); margin-top: 8px; }
.br-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.br-content .alignleft { float: left; margin: 6px 24px 16px 0; max-width: 50%; }
.br-content .alignright { float: right; margin: 6px 0 16px 24px; max-width: 50%; }
.br-content::after { content: ""; display: block; clear: both; }
/* wp_link_pages (<!--nextpage--> posts) */
.br-page-links { margin: 28px 0; font-size: 14.5px; color: var(--muted); }
.br-page-links a, .br-page-links > span:not(:first-child) {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 13px;
  margin-left: 8px;
  font-weight: 600;
  color: var(--muted-2);
}
.br-page-links a:hover { border-color: var(--accent); color: var(--accent); }
.br-page-links > span:not(:first-child) { border-color: var(--accent); color: var(--accent); }

/* Workshop CTA inside article */
.br-cta-box {
  background: linear-gradient(135deg, var(--card-alt), var(--card));
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 32px;
  margin: 44px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.br-cta-box-title { font-family: var(--font-head); font-size: 21px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.br-cta-box-sub { font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.br-cta-box .br-btn { flex: none; font-weight: 700; font-size: 15px; padding: 13px 26px; }

/* Share + author */
.br-share-row { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; flex-wrap: wrap; }
.br-share-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.br-share-btn {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-2);
}
.br-share-btn:hover { border-color: var(--accent); color: var(--accent); }

.br-author-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex; gap: 20px; align-items: center;
}
.br-author-box img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-2);
  flex: none;
}
.br-author-label {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.br-author-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.br-author-bio { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }

/* Sidebar */
.br-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.br-side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.br-side-title {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.br-side-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.br-side-card p:last-child { margin-bottom: 0; }
.br-toc { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.br-toc a { color: var(--muted-2); }
.br-toc a:hover { color: var(--accent); }

/* Newsletter form (Mailchimp) */
.br-news-form { display: flex; flex-direction: column; gap: 8px; }
.br-news-form input[type="email"] {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  min-width: 0;
  width: 100%;
}
.br-news-form input[type="email"]:focus { border-color: var(--accent); }
.br-news-form button {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.br-news-form button:hover { background: var(--accent-2); }
.br-news-form--row { flex-direction: row; }
.br-news-form--row input[type="email"] { flex: 1; }

/* Related — prototype specs smaller cards than the blog grid */
.br-related { margin-top: 72px; }
.br-related .br-h2 { font-size: 28px; margin-bottom: 28px; }
.br-related .br-post-thumb,
.br-related .br-post-thumb--empty { height: 150px; }
.br-related .br-post-body { padding: 18px 20px 22px; }
.br-related .br-post-title { font-size: 15.5px; }

/* Comments (minimal) */
.br-comments { margin-top: 56px; }
.br-comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 16px; }
.br-comments .comment-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--body);
}
.br-comments .comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.br-comments .comment-meta a { color: var(--muted); }
.br-comments .children { list-style: none; padding-left: 28px; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.br-comments .comment-respond input[type="text"],
.br-comments .comment-respond input[type="email"],
.br-comments .comment-respond input[type="url"],
.br-comments .comment-respond textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  margin-top: 6px;
}
.br-comments .comment-respond label { font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.br-comments .comment-respond input[type="submit"] {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.br-comments .comment-reply-title, .br-comments .comments-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
}

/* ---------- Page (generic) ---------- */
.br-page-content { max-width: 760px; }

/* ---------- Footer ---------- */
.br-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 56px 32px 32px; }
.br-footer-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.br-footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.br-footer-grid p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.br-footer-col-title {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.br-footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.br-footer-contact a { color: var(--muted); }
.br-footer-contact a:hover { color: var(--accent); }
.br-footer-legal { max-width: 1180px; margin: 0 auto; padding-top: 24px; font-size: 12.5px; line-height: 1.7; color: var(--faint); }
.br-footer-legal p { margin: 0 0 8px; }
.br-footer-legal p:last-child { margin: 0; }

.br-footer-slim { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 32px; }
.br-footer-slim-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.br-footer-slim .br-footer-brand { margin: 0; font-size: 16px; }
.br-footer-slim-legal { font-size: 12.5px; color: var(--faint); }

/* ---------- 404 / empty ---------- */
.br-empty { text-align: center; padding: 100px 32px; }
.br-empty h1 { font-family: var(--font-head); font-size: 44px; margin: 0 0 12px; }
.br-empty p { color: var(--muted); margin: 0 0 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .br-hero { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .br-hero-visual { min-height: 480px; }
  .br-skills-grid, .br-posts-grid { grid-template-columns: repeat(2,1fr); }
  .br-tiers-grid { grid-template-columns: repeat(2,1fr); }
  .br-why-grid, .br-signup-grid { grid-template-columns: 1fr; gap: 40px; }
  .br-article-grid { grid-template-columns: 1fr; }
  .br-sidebar { position: static; }
  .br-featured { grid-template-columns: 1fr; }
  .br-featured > img { min-height: 220px; max-height: 320px; }
}
@media (max-width: 760px) {
  .br-topbar { padding: 8px 20px; }
  .br-ticker-usd { display: none; }
  .br-topbar-contact span { display: none; }
  .br-nav { padding: 0 20px; }
  .br-burger { display: block; }
  .br-nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 4px;
  }
  .br-nav-links.is-open { display: flex; }
  .br-nav-links li a { display: block; padding: 12px 4px; font-size: 16px; }
  .br-nav-links a.br-nav-cta { text-align: center; margin-top: 8px; padding: 12px 20px; }
  .br-hero { padding: 44px 20px 56px; }
  .br-hero h1 { font-size: 38px; }
  .br-hero-stats { gap: 24px; flex-wrap: wrap; }
  .br-hero-visual { min-height: 420px; transform: scale(.88); transform-origin: top center; }
  .br-section { padding: 56px 20px; }
  .br-main { padding: 40px 20px 64px; }
  .br-h2 { font-size: 28px; }
  .br-skills-grid, .br-posts-grid, .br-tiers-grid, .br-team-grid, .br-why-items { grid-template-columns: 1fr; }
  .br-page-head h1 { font-size: 34px; }
  .br-article-title { font-size: 30px; }
  .br-content { font-size: 16px; }
  .br-featured-body { padding: 26px; }
  .br-form-card { padding: 24px; }
  .br-footer { padding: 44px 20px 28px; }
  .br-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .br-cta-box { padding: 24px; }
}
