/* ═══════════════════════════════════════════════════════════
   The Loop — global.css
   ALL shared styles. Page files only add what's unique to them.
   ═══════════════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
  --bg:        #faf9f7;
  --surface:   #f2f0ec;
  --border:    #e4e1db;
  --border-md: #ccc9c2;
  --ink:       #2c2b28;
  --ink-2:     #3c3b37;
  --ink-3:     #76756f;
  --ink-4:     #a09f99;
  --accent:    #177314;
  --blue:      #1558d6;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Inter', -apple-system, sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --r:         6px;
  --r-md:      10px;
  --r-lg:      14px;
  --wrap:      1200px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--sans); cursor: pointer; }
*:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--r); }
/* Text-style inputs already have their own dedicated focus treatment
   (an ink-colored border/box-shadow, applied directly or via :focus-within
   on a wrapper) — e.g. .search-wrap, .err-search-wrap, .popup-input,
   .nl-popup-input, WooCommerce form rows. They opt out of the generic
   blue ring above so every input on the site gives one consistent
   focus style instead of two competing ones. Checkboxes/radios/buttons
   keep the blue ring — they have no ink-focus style of their own. */
input[type="text"]:focus-visible, input[type="email"]:focus-visible,
input[type="password"]:focus-visible, input[type="tel"]:focus-visible,
input[type="number"]:focus-visible, input[type="search"]:focus-visible,
input[type="url"]:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.1ms !important; }
}

/* ─── UTILITY ─── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ═══ EYEBROW / SECTION LABEL ════════════════════════════════
   One shared treatment for every eyebrow on the site: small
   uppercase grey label followed by a hairline rule.
   Page CSS must NOT redefine colour/type here — only spacing. */
.eyebrow,
.featured-eyebrow,
.nl-eyebrow,
.contrib-eyebrow,
.tuesday-eyebrow,
.author-section-eyebrow,
.static-page-eyebrow,
.nl-popup-eyebrow,
.pg-eyebrow,
.hp-pd-left-eyebrow,
.cs-sec-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-4);
  background: none; border: none; padding: 0;
  margin-bottom: 16px;
}
.eyebrow::after,
.featured-eyebrow::after,
.nl-eyebrow::after,
.contrib-eyebrow::after,
.tuesday-eyebrow::after,
.author-section-eyebrow::after,
.static-page-eyebrow::after,
.nl-popup-eyebrow::after,
.pg-eyebrow::after,
.hp-pd-left-eyebrow::after,
.cs-sec-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Centered variant — rule on both sides */
.eyebrow-center { justify-content: center; }
.eyebrow-center::before {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* On dark surfaces */
.cs-counter-eyebrow,
.cs-callcard-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans);
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.cs-counter-eyebrow::after,
.cs-callcard-eyebrow::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.14);
}

/* Context spacing only */
.nl-eyebrow, .tuesday-eyebrow, .nl-popup-eyebrow { margin-bottom: 6px; }
.cs-sec-label { margin-bottom: 24px; }

/* ═══ CTA BUTTONS ════════════════════════════════════════════
   One shared pill treatment for every primary / ghost CTA.
   Page CSS must NOT redefine these. Form and inline buttons
   (.btn in woocommerce.css, .nl-btn, .cta-band-btn, pagination,
   icon buttons) keep their own 6px-radius styling.              */
.btn-primary:not(.btn),
.contrib-btn-primary,
.hp-btn-primary,
.cs-btn-primary,
.err-btn-primary,
.pg-cta-btn-primary,
.cs-btn-wh,
.btn-outline:not(.btn),
.contrib-btn-ghost,
.hp-btn-ghost,
.cs-btn-ghost,
.err-btn-ghost,
.pg-cta-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--sans); font-size: 13.5px;
  border-radius: 100px; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

/* Solid */
.btn-primary:not(.btn),
.contrib-btn-primary,
.hp-btn-primary,
.cs-btn-primary,
.err-btn-primary,
.pg-cta-btn-primary,
.cs-btn-wh {
  font-weight: 600; padding: 11px 22px; border: none;
}
/* Ghost — 1.5px border is subtracted from the padding so solid
   and ghost buttons end up exactly the same height. */
.btn-outline:not(.btn),
.contrib-btn-ghost,
.hp-btn-ghost,
.cs-btn-ghost,
.err-btn-ghost,
.pg-cta-btn-ghost {
  font-weight: 500; padding: 9.5px 20.5px;
  background: none; border: 1.5px solid;
}

/* On light surfaces */
.btn-primary:not(.btn),
.contrib-btn-primary,
.hp-btn-primary,
.cs-btn-primary,
.err-btn-primary {
  background: var(--ink); color: #fff;
}
.btn-primary:not(.btn):hover,
.contrib-btn-primary:hover,
.hp-btn-primary:hover,
.cs-btn-primary:hover,
.err-btn-primary:hover {
  background: var(--ink-2); color: #fff;
}
.btn-outline:not(.btn),
.contrib-btn-ghost,
.hp-btn-ghost,
.cs-btn-ghost,
.err-btn-ghost {
  color: var(--ink); border-color: var(--border-md);
}
.btn-outline:not(.btn):hover,
.contrib-btn-ghost:hover,
.hp-btn-ghost:hover,
.cs-btn-ghost:hover,
.err-btn-ghost:hover {
  border-color: var(--ink); background: rgba(44,43,40,0.04); color: var(--ink);
}

/* On dark surfaces */
.pg-cta-btn-primary,
.cs-btn-wh { background: #fff; color: var(--ink); }
.pg-cta-btn-primary:hover,
.cs-btn-wh:hover { background: #ece9e2; color: var(--ink); }
.pg-cta-btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.pg-cta-btn-ghost:hover {
  border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); color: #fff;
}

.btn-primary:not(.btn) svg,
.contrib-btn-primary svg, .hp-btn-primary svg, .cs-btn-primary svg,
.err-btn-primary svg, .pg-cta-btn-primary svg, .cs-btn-wh svg,
.btn-outline:not(.btn) svg,
.contrib-btn-ghost svg, .hp-btn-ghost svg, .cs-btn-ghost svg,
.err-btn-ghost svg, .pg-cta-btn-ghost svg { flex: none; }

/* ─── READ PROGRESS BAR ─── */
#read-bar { position: fixed; top: 0; left: 0; height: 2px; z-index: 500; background: var(--ink); width: 0%; transition: width 0.08s linear; }

/* ═══ NAV ════════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(250,249,247,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 0 40px;
  height: 56px; display: flex; align-items: center; gap: 0;
}

/* Logo */
.nav-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em; flex: none; margin-right: 32px;
  white-space: nowrap;
}

/* Centre links */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }

/* Plain link */
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--r);
  transition: color 0.12s, background 0.12s; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link.active { color: var(--ink); }

/* Chevron on dropdown links */
.nav-link-caret {
  display: inline-flex; align-items: center;
  color: var(--ink-3); transition: transform 0.18s;
}
.nav-link:hover .nav-link-caret { transform: rotate(180deg); }

/* Right-side CTA group */
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Icon-only search button */
.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r); border: 1px solid var(--border);
  background: none; cursor: pointer; color: var(--ink-3);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.nav-search-btn:hover { border-color: var(--border-md); color: var(--ink); background: var(--surface); }

/* Ghost outline button */
.nav-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--border-md); background: none;
  transition: border-color 0.15s, background 0.15s; white-space: nowrap;
  cursor: pointer;
}
.nav-ghost:hover { border-color: var(--ink); background: rgba(44,43,40,0.04); }

/* Filled primary CTA */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--ink); padding: 8px 20px; border-radius: 100px;
  border: none; transition: background 0.15s; white-space: nowrap; cursor: pointer;
}
.nav-cta:hover { background: #3c3b37; color: #fff; }

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: var(--r);
  background: none; border: none; margin-left: auto;
}
.nav-ham:hover { background: var(--surface); }
.nav-ham span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.22s, opacity 0.22s; }
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile { border-top: 1px solid var(--border); background: var(--bg); display: none; }
.nav-mobile a { display: block; padding: 13px 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile-cta {
  display: block; margin: 12px 16px 16px; text-align: center;
  background: var(--ink); color: #fff !important;
  border-radius: 8px; padding: 13px; font-weight: 600;
  font-size: 14px; border-bottom: none !important;
}

/* ═══ LISTING SHARED ════════════════════════════════════════ */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); padding: 52px 0 36px; }
.hero h1 { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.2; }
.hero-sub { font-size: 16px; color: var(--ink-3); line-height: 1.65; margin-bottom: 24px; }
.hero-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.result-count, .proj-count { font-size: 13px; color: var(--ink-4); white-space: nowrap; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r); padding: 8px 13px; flex: 1; max-width: 340px; min-width: 200px; transition: border-color 0.15s, box-shadow 0.15s; }
.search-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44,43,40,0.07); }
.search-wrap svg { color: var(--ink-4); flex: none; }
.search-input { border: none; outline: none; background: none; -webkit-appearance: none; appearance: none; font-family: var(--sans); font-size: 13.5px; color: var(--ink); width: 100%; }
.search-input::-webkit-search-decoration, .search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button, .search-input::-webkit-search-results-decoration { -webkit-appearance: none; }
.search-input::placeholder { color: var(--ink-4); }

/* Filter chips */
.filter-bar { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 56px; z-index: 200; }
.filter-bar-inner { padding: 12px 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; margin-right: 4px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); background: none; border: 1px solid var(--border); padding: 5px 13px; border-radius: 100px; white-space: nowrap; transition: all 0.15s; cursor: pointer; }
.chip:hover { border-color: var(--border-md); color: var(--ink); background: var(--surface); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-count { font-size: 10.5px; padding: 1px 6px; border-radius: 100px; font-weight: 600; background: var(--surface); color: var(--ink-4); }
.chip.active .chip-count { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.85); }

/* Empty state */
.empty-state { display: none; text-align: center; padding: 64px 20px; grid-column: 1 / -1; }
.empty-state svg { margin: 0 auto 16px; color: var(--ink-4); opacity: 0.4; }
.empty-state h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--ink-4); line-height: 1.6; }
.empty-reset { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 500; background: var(--ink); color: #fff; padding: 8px 18px; border-radius: 100px; border: none; cursor: pointer; transition: background 0.15s; }
.empty-reset:hover { background: #444240; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 40px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--border); background: none; font-size: 13.5px; font-weight: 500; color: var(--ink-3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.12s; }
.page-btn:hover { border-color: var(--border-md); color: var(--ink); background: var(--surface); }
.page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-btn:disabled { opacity: 0.38; cursor: default; }
.page-btn svg { display: block; }
.page-ellipsis { font-size: 13px; color: var(--ink-4); padding: 0 4px; }

/* Newsletter band */
.nl-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.nl-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.nl-text { flex: 1; min-width: 200px; }
.nl-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.nl-sub { font-size: 13px; color: var(--ink-3); }
.nl-form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.nl-input { flex: 1; padding: 10px 14px; border-radius: var(--r); border: 1.5px solid var(--border-md); background: var(--bg); font-family: var(--sans); font-size: 13.5px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.nl-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(44,43,40,0.07); }
.nl-input::placeholder { color: var(--ink-4); }
.nl-btn { padding: 10px 20px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; border: none; border-radius: var(--r); cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.nl-btn:hover { background: #444240; }

/* Contribute band */
.contrib-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.contrib-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contrib-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 10px; }
.contrib-sub { font-size: 14px; color: var(--ink-3); line-height: 1.68; }
.contrib-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.contrib-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contrib-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.contrib-stat-num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 4px; }
.contrib-stat-lbl { font-size: 12px; color: var(--ink-4); line-height: 1.4; }

/* ═══ DETAIL PAGE SHARED LAYOUT ═════════════════════════════ */
.page-outer { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 240px 1fr 80px; gap: 0; align-items: start; }

/* Left sidebar */
.left-col { position: sticky; top: 56px; height: calc(100vh - 56px); display: flex; flex-direction: column; padding: 0; }
.toc-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 40px 24px 20px 0; min-height: 0; }
.toc-scroll::-webkit-scrollbar { display: none; }
.toc-fade { height: 28px; flex: none; pointer-events: none; background: linear-gradient(to bottom, transparent, #faf9f7); margin-top: -28px; position: relative; z-index: 1; }
.toc-head { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
.toc-list { list-style: none; }

/* TOC shimmer */
.toc-loader { display: flex; flex-direction: column; gap: 10px; padding: 40px 0 20px; }
.toc-loader-item { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--border) 25%, var(--surface) 50%, var(--border) 75%); background-size: 200% 100%; animation: toc-shimmer 1.4s ease-in-out infinite; }
.toc-loader-item.sub { margin-left: 12px; width: 70%; }
@keyframes toc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .toc-loader-item { animation: none; background: var(--border); } }

/* TOC links */
.toc-link { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-4); padding: 5px 0 5px 12px; border-left: 2px solid var(--border); transition: color 0.15s, border-color 0.15s, padding-left 0.15s; margin-bottom: 2px; position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-link:hover { color: var(--ink-2); border-left-color: var(--border-md); padding-left: 15px; }
.toc-link.active { color: var(--ink); border-left-color: var(--ink); font-weight: 600; padding-left: 15px; }
.toc-link.active::before { content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: var(--ink); border: 2px solid var(--bg); box-shadow: 0 0 0 1.5px var(--ink); }
.toc-sub .toc-link { padding-left: 24px; font-size: 12px; }
.toc-sub .toc-link:hover { padding-left: 27px; }
.toc-sub .toc-link.active { padding-left: 27px; }

/* Sidebar CTA card */
.sidebar-cta-wrap { flex: none; padding: 8px 24px 20px 0; }
.sidebar-card { border-radius: var(--r-md); background: linear-gradient(145deg, #1e2d3a 0%, #243d52 55%, #162e20 100%); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); transition: transform 0.18s, box-shadow 0.18s; cursor: pointer; }
.sidebar-card:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(0,0,0,0.25); }
.sidebar-card::before { content: ''; position: absolute; top: -24px; right: -24px; width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle, rgba(26,137,23,0.38) 0%, transparent 70%); pointer-events: none; }
.sidebar-card::after { content: ''; position: absolute; bottom: -18px; left: -18px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(21,88,214,0.28) 0%, transparent 70%); pointer-events: none; }
.sc-inner { padding: 16px 16px 0; }
.sc-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: #22c55e; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); padding: 3px 8px; border-radius: 100px; margin-bottom: 10px; }
.sc-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; flex: none; animation: pulse-dot 4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.25} }
.sc-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.35); margin-bottom: 7px; }
.sc-title { font-family: var(--serif); font-size: 13.5px; line-height: 1.42; color: #fff; margin-bottom: 6px; font-weight: 600; }
.sc-stat { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: rgba(255,255,255,0.38); margin-bottom: 14px; line-height: 1.4; }
.sc-stat svg { opacity: 0.45; flex: none; }
.sc-btn { display: flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #1e2d3a; font-size: 12px; font-weight: 700; padding: 11px 14px; border-radius: 0 0 calc(var(--r-md) - 1px) calc(var(--r-md) - 1px); border: none; border-top: 1px solid rgba(255,255,255,0.12); cursor: pointer; width: 100%; font-family: var(--sans); transition: background 0.15s, gap 0.2s; position: relative; z-index: 1; }
.sc-btn:hover { background: #f4f8ff; gap: 10px; }
.sc-btn svg { flex: none; transition: transform 0.2s; }
.sc-btn:hover svg { transform: translateX(2px); }

/* Article column */
.article-col { padding: 56px 48px 80px; min-width: 0; }

/* Article header */
.art-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.art-cat::before { content: ''; display: block; width: 18px; height: 1.5px; background: var(--accent); border-radius: 1px; }
.art-h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 18px; }
.art-deck { font-family: var(--sans); font-size: 18px; line-height: 1.62; color: var(--ink-2); font-weight: 400; margin: 0 0 24px; }

/* Right share bar */
.right-col { position: sticky; top: 56px; padding: 56px 0 56px 18px; display: flex; align-items: flex-start; justify-content: center; }
.share-column { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.share-lbl { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; }
.share-b { width: 34px; height: 34px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-3); position: relative; transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s; }
.share-b:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.share-b::before { content: attr(data-tip); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 10.5px; padding: 4px 8px; border-radius: 4px; font-family: var(--sans); opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.share-b:hover::before { opacity: 1; }
.share-sep { width: 1px; height: 18px; background: var(--border); margin: 2px auto; }

/* Related section */
.related-outer { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.related-inner { border-top: 1px solid var(--border); padding: 40px 0 80px; }
.related-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.related-hdr h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.related-see { font-size: 13px; font-weight: 500; color: var(--ink-3); transition: color 0.12s; }
.related-see:hover { color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.related-card { display: flex; flex-direction: column; gap: 11px; text-decoration: none; }
.related-thumb { width: 100%; aspect-ratio: 16/10; border-radius: var(--r); background: linear-gradient(135deg, #e8e4dc, #d8d3c8); transition: opacity 0.15s; overflow: hidden; }
.related-card:hover .related-thumb { opacity: 0.82; }
.related-cat { font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-4); }
.related-title { font-family: var(--serif); font-size: 17px; line-height: 1.4; color: var(--ink); transition: color 0.12s; }
.related-card:hover .related-title { color: var(--ink-2); }
.related-meta { font-size: 12px; color: var(--ink-4); }

/* Mobile TOC bottom sheet */
.mobile-toc-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 400; }
.mobile-toc-trigger { background: var(--bg); border-top: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 -4px 20px rgba(44,43,40,0.08); }
.mobile-toc-trigger-left { display: flex; align-items: center; gap: 10px; }
.mobile-toc-progress-ring { width: 28px; height: 28px; flex: none; }
.mobile-toc-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.mobile-toc-current { font-size: 11.5px; color: var(--ink-4); margin-top: 1px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-toc-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toc-btn { height: 32px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--border); background: var(--bg); font-size: 12px; font-weight: 500; color: var(--ink-3); cursor: pointer; font-family: var(--sans); transition: all 0.15s; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.mobile-toc-btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.mobile-toc-btn:hover { border-color: var(--border-md); color: var(--ink); }
.mobile-toc-btn.primary:hover { background: #444240; }
.mobile-toc-sheet { background: var(--bg); border-top: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1); }
.mobile-toc-sheet.open { max-height: 60vh; overflow-y: auto; }
.mobile-toc-sheet-inner { padding: 16px 20px 32px; }
.mobile-toc-sheet-head { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.mobile-toc-list { list-style: none; }
.mobile-toc-link { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-3); padding: 9px 0; border-bottom: 1px solid var(--border); transition: color 0.12s; }
.mobile-toc-link:last-child { border-bottom: none; }
.mobile-toc-link.active { color: var(--ink); font-weight: 600; }
.mobile-toc-link:hover { color: var(--ink); }
.mobile-toc-sub-link { padding-left: 16px; font-size: 13px; color: var(--ink-4); }

/* ═══ CODE BLOCKS — macOS terminal card ══════════════════════ */
/* Card shell */
.code-block {
  margin: 0 0 1.8em;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background: #1e1f1c;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 8px 32px rgba(0,0,0,0.45),
    0 2px 8px  rgba(0,0,0,0.3);
  font-family: var(--mono);
}
/* Header — unified bg, no divider line */
.code-hdr {
  background: #1e1f1c;
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  gap: 0;
}
/* Traffic light dots */
.code-dots { display: flex; gap: 7px; flex: none; }
.code-dots span {
  width: 13px; height: 13px; border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}
.cd1 { background: #ff5f57; }
.cd2 { background: #febc2e; }
.cd3 { background: #28c840; }
/* Filename label */
.code-file {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #6b6b6b;
  letter-spacing: 0.01em;
  font-family: var(--mono);
}
/* Copy button — ghost pill */
.copy-btn {
  flex: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #7a7a7a;
  font-size: 11px;
  font-family: var(--sans);
  padding: 4px 11px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.copy-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  color: #c0c0c0;
}
/* Code body — generous left indent, thin scrollbar */
.code-block pre {
  background: #1e1f1c;
  padding: 20px 24px 24px 36px;
  font-size: 13px;
  line-height: 1.78;
  color: #cdd3de;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.code-block pre::-webkit-scrollbar { height: 5px; }
.code-block pre::-webkit-scrollbar-track { background: transparent; }
.code-block pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
/* Fallback syntax tokens (used when hljs is off or hasn't loaded yet) */
.kw   { color: #c792ea; }
.fn   { color: #82aaff; }
.str  { color: #c3e88d; }
.cm   { color: #4d6473; font-style: italic; }
.num  { color: #f78c6c; }
.prop { color: #80cbc4; }

/* ═══ CALLOUT ════════════════════════════════════════════════ */
.callout { background: #fef8e7; border: 1px solid #e4c84e; border-radius: var(--r); padding: 14px 18px; margin: 0 0 1.8em; font-family: var(--sans); font-size: 15px; line-height: 1.72; color: var(--ink-2); display: flex; gap: 11px; }
.callout-icon { font-size: 16px; flex: none; margin-top: 1px; }
.callout strong { color: #7a5500; }

/* ═══ PROSE ══════════════════════════════════════════════════ */
.prose { font-family: var(--sans); font-size: 17px; line-height: 1.78; color: var(--ink-2); }
.prose p { margin: 0 0 1.55em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose em, .prose i { font-style: italic; }
.cta-dl-btn{color: var(--surface) !important; text-decoration: none !important;}
.cta-dl-btn:hover{color: var(--surface) !important; text-decoration: none !important; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(44,43,40,0.35); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: text-decoration-color 0.12s; }
.prose a:hover { text-decoration-color: rgba(44,43,40,0.75); }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.28; letter-spacing: -0.02em; margin: 2.5em 0 0.75em; color: var(--ink); }
.prose h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: 0.005em; margin: 2em 0 0.55em; color: var(--ink); }
.prose h4 { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 1.8em 0 0.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.55em; }
.prose li { margin-bottom: 0.55em; line-height: 1.7; }
.prose blockquote { padding: 6px 0 6px 26px; border-left: 2px solid var(--ink); margin: 0 0 1.8em; }
.prose blockquote p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.52; color: var(--ink); margin: 0; }
.prose code { font-family: var(--mono); background: #edeae4; border: 1px solid var(--border); padding: 1.5px 6px; border-radius: 4px; font-size: 15px; color: #c7254e; letter-spacing: -0.01em; }
.prose pre { background: #1e1f1c; border: none; border-radius: 12px; padding: 20px 24px 24px 36px; font-family: var(--mono); font-size: 13px; line-height: 1.78; color: #cdd3de; overflow-x: auto; white-space: pre; margin: 0 0 1.8em; box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }
.prose pre::-webkit-scrollbar { height: 5px; }
.prose pre::-webkit-scrollbar-track { background: transparent; }
.prose pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; border-radius: 0; }
.prose figure { margin: 0 0 1.8em; }
.prose img { width: 100%; border-radius: var(--r); display: block; margin: 0 0 0.5em; cursor: zoom-in; }
.prose figure img { margin-bottom: 0; }
.prose figcaption { margin-top: 9px; font-size: 12.5px; color: var(--ink-4); font-style: italic; font-family: var(--sans); text-align: center; line-height: 1.5; }
.prose hr { border: none; display: flex; align-items: center; gap: 12px; margin: 2.5em 0; color: var(--ink-4); font-size: 16px; letter-spacing: 0.3em; line-height: 1; }
.prose hr::before, .prose hr::after { content: ''; flex: 1; height: 1px; background: var(--border); display: block; }

/* ── Table ── */
/* Nuclear border reset — WP Gutenberg outputs no <thead>, all rows
   are <tbody><tr><td>. First row is the visual header row. */
.prose table,
.prose .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  border: none !important;
  outline: none !important;
}
.prose .wp-block-table {
  border: none !important;
  margin: 0 0 1.8em;
  overflow-x: auto;
  display: block;
}
.prose table tr,
.prose table td,
.prose table th {
  border: none !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  outline: none !important;
}
/* First row = header (no <thead> in WP DOM) */
.prose table tbody tr:first-child td {
  padding: 10px 15px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
  background: var(--surface) !important;
  border-top: 1px solid var(--border-md) !important;
  border-bottom: 1.5px solid var(--border-md) !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
}
/* Body rows — horizontal hairline only */
.prose table tbody tr {
  border-bottom: 1px solid var(--border) !important;
  transition: background 0.08s;
}
.prose table tbody tr:last-child { border-bottom: none !important; }
.prose table tbody tr:hover { background: #fafaf9; }
/* Body cells */
.prose table tbody tr:not(:first-child) td {
  padding: 13px 15px !important;
  vertical-align: top !important;
  color: var(--ink-2) !important;
  line-height: 1.55 !important;
}
.prose table tbody tr:not(:first-child) td:first-child { color: var(--ink) !important; }
.prose table tbody td strong { font-weight: 600 !important; color: var(--ink) !important; }
/* WP block table overrides */
.prose .wp-block-table tr,
.prose .wp-block-table th,
.prose .wp-block-table td { border: none !important; }
.prose .wp-block-table tbody tr { border-bottom: 1px solid var(--border) !important; }
.prose .wp-block-table tbody tr:last-child { border-bottom: none !important; }
/* Caption */
.prose caption, .prose .wp-element-caption { font-size: 12.5px; color: var(--ink-4); font-style: italic; text-align: left; margin-bottom: 10px; caption-side: top; line-height: 1.5; }

/* ═══ FAQ ════════════════════════════════════════════════════ */
.faq-wrap { margin: 2em 0 1.8em; border-top: 1px solid var(--border); padding-top: 2em; }
.faq-h { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; transition: color 0.12s; }
.faq-q:hover { color: var(--ink-2); }
.faq-icon { width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--ink-3); transition: transform 0.22s, background 0.15s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a { font-family: var(--sans); font-size: 15px; line-height: 1.72; color: var(--ink-3); max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), padding 0.3s; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 18px; }

/* ═══ LIGHTBOX ═══════════════════════════════════════════════ */
.lbox { position: fixed; inset: 0; z-index: 900; background: rgba(30,28,26,0.88); display: flex; align-items: center; justify-content: center; padding: 28px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.lbox.open { opacity: 1; pointer-events: all; }
.lbox-inner { position: relative; max-width: 880px; width: 100%; }
.lbox-close { position: absolute; top: -40px; right: 0; color: rgba(255,255,255,0.65); font-size: 26px; line-height: 1; background: none; border: none; cursor: pointer; padding: 4px 8px; transition: color 0.15s; }
.lbox-close:hover { color: #fff; }
.lbox-img { width: 100%; border-radius: var(--r); display: block; max-height: 80vh; object-fit: contain; }
.lbox-cap { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.4); text-align: center; font-style: italic; font-family: var(--sans); }

/* ═══ TOAST ══════════════════════════════════════════════════ */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(8px); background: var(--ink); color: #fff; font-size: 13px; font-family: var(--sans); padding: 10px 20px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.2); opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s; z-index: 2000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ FOOTER ═════════════════════════════════════════════════ */
footer {
  background: #1e1e1c;
  color: rgba(255,255,255,0.38);
  padding: 48px 40px 40px;
  text-align: center;
}
.bcn-popup__label {margin:7px !important;}
.footer-social { max-width: var(--wrap); margin: 0 auto 32px; display: flex; align-items: center; gap: 0; }
.footer-social-line { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.footer-social-icons { display: flex; align-items: center; gap: 24px; padding: 0 32px; }
.footer-social-icons a { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-social-icons a:hover { color: rgba(255,255,255,0.85); }
.footer-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; color: rgba(255,255,255,0.72); letter-spacing: -0.015em; display: block; margin-bottom: 10px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 18px; line-height: 1.5; }
.footer-legal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.footer-legal a { font-size: 12.5px; color: rgba(255,255,255,0.42); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.18); transition: color 0.12s; padding: 0 16px; }
.footer-legal a:hover { color: rgba(255,255,255,0.78); }
.footer-legal-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.2); flex: none; }

/* ═══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .page-outer { grid-template-columns: 220px 1fr 60px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right { display: none; }
  .nav-ham { display: flex; }
  .page-outer { display: block; padding: 0 24px; }
  .left-col { display: none; }
  .article-col { padding: 40px 0 64px; }
  .right-col { display: none; }
  .mobile-toc-bar { display: block; }
  body { padding-bottom: 65px; }
  .related-outer { padding: 0 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 36px 20px 32px; }
  .footer-social-icons { gap: 18px; padding: 0 20px; }
  .contrib-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 28px; }
  .art-h1 { font-size: 30px; }
  .art-deck { font-size: 17px; }
  .hero-controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .related-outer { padding: 0 20px; }
  footer { padding: 28px 16px 28px; }
  .footer-social-icons { gap: 14px; padding: 0 12px; }
  .footer-legal { gap: 0; }
  .footer-legal a { padding: 4px 10px; }
  .nl-inner { flex-direction: column; }
  .nl-form { flex-direction: column; }
  .nl-btn { width: 100%; }
  .contrib-stats { grid-template-columns: 1fr 1fr; }
}

/* RAJ */
.static-page-outer {
    max-width: 1160px !important;
    margin: 0 auto !important;
    padding: 52px 24px 100px !important;
}
/* ── AJAX filter skeleton loaders ───────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: skel-shimmer 1.4s infinite linear;
  border-radius: var(--r);
}
.skel-thumb  { height: 180px; width: 100%; margin-bottom: 12px; }
.skel-num    { height: 28px; width: 60px; border-radius: 20px; flex: none; }
.skel-body   { flex: 1; }
.skel-line   { height: 14px; margin-bottom: 10px; }
.skel-line.w40 { width: 40%; }
.skel-line.w60 { width: 60%; }
.skel-line.w70 { width: 70%; }
.skel-line.w80 { width: 80%; }
.blog-card.is-skeleton  { pointer-events: none; }
.issue-row.is-skeleton  { pointer-events: none; display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
/* Pagination list reset so the <ul> matches the old <div> layout */
.pagination-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }


/* ── BC Newsletter: account dropdown ───────────────────────────────
   Paste into global.css. Uses !important only where theme link/nav
   rules are known to collide with the dropdown's block layout.
─────────────────────────────────────────────────────────────────── */

/* Wrapper */
.bcn-acct-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger: icon + "My Account" + chevron */
.bcn-acct-nav__trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border: 1px solid #e4e1db;
  border-radius: 6px;
  background: #fff;
  color: #1d1d1b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
  transition: background .15s, border-color .15s;
}
.bcn-acct-nav__trigger:hover {
  background: #f2f0ec;
  border-color: #ccc9c2;
  color: #1d1d1b;
}
.bcn-acct-nav__label  { font-size: 13px; }
.bcn-acct-nav__icon   { flex: none; }
.bcn-acct-nav__chevron { flex: none; color: #76756f; transition: transform .2s; }
.bcn-acct-nav:hover .bcn-acct-nav__chevron { transform: rotate(180deg); }

/* Dropdown panel */
.bcn-acct-nav__dropdown {
  display: block;           /* explicit block so items stack naturally */
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 99999;
  min-width: 210px;
  width: max-content;
  background: #fff;
  border: 1px solid #e4e1db;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(29,29,27,.14);
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s, transform .18s;
}
.bcn-acct-nav:hover .bcn-acct-nav__dropdown,
.bcn-acct-nav:focus-within .bcn-acct-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
/* Bridge to prevent gap flicker when mouse moves from trigger → panel */
.bcn-acct-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}

/* User info row (avatar + name/email) */
.bcn-acct-nav__user {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e4e1db;
  margin-bottom: 4px;
}
.bcn-acct-nav__avatar {
  flex: none;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1d1d1b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.bcn-acct-nav__user-info { min-width: 0; overflow: hidden; }
.bcn-acct-nav__name  {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcn-acct-nav__email {
  display: block;
  font-size: 11.5px;
  color: #76756f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* ── THE KEY FIX ───────────────────────────────────────────────────
   The theme's global `a { display: inline }` or nav link rules
   collapse all anchor items onto one line. Force each item to be
   a full-width flex row so they stack vertically.
──────────────────────────────────────────────────────────────────── */
.bcn-acct-nav__item {
  display: flex !important;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 400;
  color: #1d1d1b !important;
  text-decoration: none !important;
  background: transparent;
  white-space: nowrap;
  transition: background .12s;
}
.bcn-acct-nav__item:hover {
  background: #f2f0ec;
  color: #1d1d1b !important;
}
.bcn-acct-nav__item svg { flex: none; color: #76756f; }

/* Divider */
.bcn-acct-nav__divider {
  display: block;
  height: 1px;
  background: #e4e1db;
  margin: 4px 0;
}

/* Log out — red tint */
.bcn-acct-nav__item--logout { color: #b3261e !important; }
.bcn-acct-nav__item--logout:hover { background: #fdecea; }
.bcn-acct-nav__item--logout svg { color: #b3261e; }

.bcn-hero {
  --ink: #1a1d1f;
  --muted: #6b7280;
  --border: #e2e2df;
  --accent: #14532d;
  --ring: rgba(20, 83, 45, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  max-width: 480px;
}

.bcn-hero__form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bcn-hero__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

.bcn-hero__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 8px;
}

.bcn-hero__input::placeholder {
  color: #9ca3af;
}

.bcn-hero__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #16181a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.bcn-hero__btn:hover { background: #2b2e31; }
.bcn-hero__btn:active { transform: scale(0.97); }

.bcn-hero__message {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--accent);
}

.bcn-hero__message.is-success { display: flex; }

@media (max-width: 420px) {
  .bcn-hero__form {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 6px;
  }
  .bcn-hero__input { width: 100%; padding: 10px 12px; }
  .bcn-hero__btn { width: 100%; }
}