/* ═══════════════════════════════════════════════════════
   FinBox Theme — finbox.css
   Overrides Edition defaults + full custom styles
═══════════════════════════════════════════════════════ */

:root {
  --fb-blue:      #194CFF;
  --fb-blue-pale: #EEF3FF;
  --fb-blue-dim:  rgba(25,76,255,0.1);
  --fb-ink:       #0E0E0C;
  --fb-navy:      #0B1628;
  --fb-white:     #FFFFFF;
  --fb-bg:        #F8F9FB;
  --fb-border:    #E5E7EB;
  --fb-dim:       #6B7280;
  --fb-dim2:      #9CA3AF;
  --fb-font:      'Satoshi', system-ui, sans-serif;
  --fb-w:         1180px;
  --fb-px:        clamp(20px, 4vw, 56px);
  --fb-nav-h:     64px;
}

/* Reset Ghost defaults we don't need */
.gh-head { display: none !important; }
.gh-foot { display: none !important; }
.site-content { padding: 0 !important; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--fb-font);
  background: var(--fb-bg);
  color: var(--fb-ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ── NAV ── */
.fb-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(248,249,251,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fb-border);
  height: var(--fb-nav-h);
}
.fb-nav-inner {
  max-width: var(--fb-w); margin: 0 auto;
  padding: 0 var(--fb-px); height: 100%;
  display: flex; align-items: center; gap: 8px;
}
.fb-nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 16px; }
.fb-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.fb-nav-item { position: relative; }
.fb-nav-link {
  font-size: 14px; font-weight: 500; color: var(--fb-dim);
  text-decoration: none; padding: 8px 12px; border-radius: 7px;
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
  transition: color .15s, background .15s; cursor: pointer;
}
.fb-nav-link:hover, .fb-has-dropdown:hover > .fb-nav-link { color: var(--fb-ink); background: var(--fb-blue-pale); }
.fb-chevron { font-size: 10px; opacity: .5; }

/* Dropdown */
.fb-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--fb-white); border: 1px solid var(--fb-border);
  border-radius: 12px; padding: 8px; min-width: 260px;
  box-shadow: 0 8px 32px rgba(14,14,12,0.1);
  z-index: 300;
}
.fb-dropdown-wide { min-width: 300px; }
.fb-has-dropdown:hover .fb-dropdown { display: block; }
.fb-dd-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 12px; border-radius: 7px; text-decoration: none;
  transition: background .12s;
}
.fb-dd-item:hover { background: var(--fb-blue-pale); }
.fb-dd-item strong { font-size: 13px; font-weight: 600; color: var(--fb-ink); }
.fb-dd-item span { font-size: 12px; color: var(--fb-dim); }
.fb-dd-divider { height: 1px; background: var(--fb-border); margin: 6px 4px; }
.fb-dd-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fb-dim2); padding: 6px 12px 4px; display: block; }

/* Nav actions */
.fb-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.fb-search-btn { background: none; border: none; cursor: pointer; color: var(--fb-dim); padding: 8px; border-radius: 7px; display: flex; transition: color .15s, background .15s; }
.fb-search-btn:hover { color: var(--fb-ink); background: var(--fb-blue-pale); }
.fb-demo-btn {
  font-size: 13px; font-weight: 600; color: var(--fb-white);
  background: var(--fb-blue); text-decoration: none;
  padding: 8px 18px; border-radius: 8px; white-space: nowrap;
  transition: opacity .15s;
}
.fb-demo-btn:hover { opacity: .88; }
.fb-finbox-link { font-size: 13px; font-weight: 500; color: var(--fb-dim); text-decoration: none; white-space: nowrap; transition: color .15s; }
.fb-finbox-link:hover { color: var(--fb-ink); }
.fb-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.fb-burger span { display: block; width: 20px; height: 2px; background: var(--fb-ink); border-radius: 2px; transition: .2s; }

/* Mobile nav */
.fb-mobile-nav { display: none; flex-direction: column; background: var(--fb-white); border-top: 1px solid var(--fb-border); padding: 16px var(--fb-px) 20px; gap: 4px; }
.fb-mobile-nav a { font-size: 15px; font-weight: 500; color: var(--fb-dim); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--fb-border); }
.fb-mobile-nav a:last-child { border-bottom: none; }
.fb-mobile-actions { display: flex; align-items: center; gap: 16px; padding-top: 12px; }
.fb-mobile-nav.open { display: flex; }

/* ── LAYOUT ── */
.fb-site { min-height: 100vh; display: flex; flex-direction: column; }
.fb-content { flex: 1; }
.fb-main { }
.fb-page-wrap { max-width: var(--fb-w); margin: 0 auto; padding: 0 var(--fb-px) 80px; }

/* ── FILTER BAR ── */
.fb-filterbar {
  background: var(--fb-white);
  border-bottom: 1px solid var(--fb-border);
  position: sticky; top: var(--fb-nav-h); z-index: 100;
}
.fb-filterbar-inner {
  max-width: var(--fb-w); margin: 0 auto;
  padding: 0 var(--fb-px);
}
.fb-filterbar-tabs {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; padding: 12px 0 0;
  -ms-overflow-style: none; scrollbar-width: none;
  border-bottom: 1px solid var(--fb-border);
  margin-bottom: 10px;
}
.fb-filterbar-tabs::-webkit-scrollbar { display: none; }
.fb-tab {
  font-size: 14px; font-weight: 500; color: var(--fb-dim);
  text-decoration: none; padding: 8px 14px 10px;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.fb-tab:hover { color: var(--fb-ink); }
.fb-tab-active { color: var(--fb-ink); border-bottom-color: var(--fb-ink); font-weight: 600; }
.fb-tab-atlas.fb-tab-active { color: #065f46; border-bottom-color: #065f46; }
.fb-tab-sentinel.fb-tab-active { color: #1d4ed8; border-bottom-color: #1d4ed8; }
.fb-tab-deviceconnect.fb-tab-active { color: #0f766e; border-bottom-color: #0f766e; }
.fb-tab-bankconnect.fb-tab-active { color: #7c3aed; border-bottom-color: #7c3aed; }
.fb-tab-prism.fb-tab-active { color: #be185d; border-bottom-color: #be185d; }

.fb-filterbar-chips { display: flex; align-items: center; gap: 6px; padding: 0 0 12px; flex-wrap: wrap; }
.fb-chips-label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--fb-dim2); margin-right: 4px; }
.fb-chip {
  font-size: 12px; font-weight: 500; color: var(--fb-dim);
  background: var(--fb-bg); border: 1px solid var(--fb-border);
  padding: 4px 12px; border-radius: 100px; text-decoration: none;
  white-space: nowrap; transition: color .12s, background .12s, border-color .12s;
}
.fb-chip:hover, .fb-chip-active {
  color: var(--fb-blue); background: var(--fb-blue-pale);
  border-color: rgba(25,76,255,0.2);
}

/* ── POST CARD GRID ── */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 32px;
}
.fb-card {
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: 12px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.fb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,14,12,0.07); }
.fb-card-link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.fb-card-image {
  width: 100%; aspect-ratio: 1.91 / 1;
  background: var(--fb-navy); overflow: hidden; flex-shrink: 0;
  position: relative;
}
.fb-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fb-card:hover .fb-card-image img { transform: scale(1.03); }
.fb-card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fb-card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.fb-card-tag { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fb-blue); margin-bottom: 8px; display: block; }
.fb-card-title { font-size: 15px; font-weight: 700; color: var(--fb-ink); line-height: 1.4; margin-bottom: 8px; letter-spacing: -.1px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.fb-card-excerpt { font-size: 13px; color: var(--fb-dim); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-card-meta { font-size: 12px; color: var(--fb-dim2); display: flex; align-items: center; gap: 5px; margin-top: auto; }
.fb-card-dot { opacity: .4; }

/* Tag header */
.fb-tag-header { padding-top: 40px; padding-bottom: 8px; }
.fb-tag-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: var(--fb-ink); letter-spacing: -1px; margin-bottom: 8px; }
.fb-tag-desc { font-size: 17px; color: var(--fb-dim); line-height: 1.6; max-width: 600px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 40px 0; }
.older-posts, .newer-posts {
  font-size: 14px; font-weight: 600; color: var(--fb-blue);
  text-decoration: none; padding: 10px 20px; border: 1.5px solid var(--fb-blue);
  border-radius: 8px; transition: background .15s, color .15s;
}
.older-posts:hover, .newer-posts:hover { background: var(--fb-blue); color: white; }
.page-number { font-size: 14px; color: var(--fb-dim); }

/* ── SINGLE POST ── */
.fb-post-main { background: var(--fb-white); }
.fb-post-wrap { max-width: 740px; margin: 0 auto; padding: 48px var(--fb-px) 80px; }
.fb-post-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--fb-blue); text-decoration: none; margin-bottom: 16px; display: inline-block; }
.fb-post-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; color: var(--fb-ink); margin-bottom: 16px; }
.fb-post-excerpt { font-size: 18px; color: var(--fb-dim); line-height: 1.65; margin-bottom: 20px; }
.fb-post-meta { font-size: 13px; color: var(--fb-dim2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.fb-post-author { font-weight: 600; color: var(--fb-dim); }
.fb-post-dot { opacity: .4; }
.fb-post-image { margin: 0 0 40px; border-radius: 12px; overflow: hidden; }
.fb-post-image img { width: 100%; height: auto; display: block; }
.fb-post-image figcaption { font-size: 13px; color: var(--fb-dim2); text-align: center; padding: 10px; }

/* Post content typography */
.fb-post-content {
  font-size: 17px; line-height: 1.78; color: #2D2D2B;
}
.fb-post-content h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 40px 0 16px; color: var(--fb-ink); }
.fb-post-content h3 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; margin: 32px 0 12px; color: var(--fb-ink); }
.fb-post-content p { margin-bottom: 20px; }
.fb-post-content a { color: var(--fb-blue); text-decoration: underline; text-underline-offset: 2px; }
.fb-post-content ul, .fb-post-content ol { margin: 0 0 20px 24px; }
.fb-post-content li { margin-bottom: 8px; }
.fb-post-content blockquote { border-left: 3px solid var(--fb-blue); margin: 32px 0; padding: 12px 0 12px 24px; }
.fb-post-content blockquote p { font-size: 20px; color: var(--fb-ink); font-weight: 600; margin: 0; }
.fb-post-content img { max-width: 100%; border-radius: 8px; }
.fb-post-content pre { background: var(--fb-navy); color: #e2e8f0; padding: 20px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.fb-post-content code { font-family: 'Fira Code', monospace; font-size: .9em; background: var(--fb-blue-pale); color: var(--fb-blue); padding: 2px 6px; border-radius: 4px; }
.fb-post-content pre code { background: none; color: inherit; padding: 0; }
.fb-post-content figure { margin: 32px 0; }
.fb-post-content figcaption { font-size: 13px; color: var(--fb-dim2); text-align: center; margin-top: 8px; }
.fb-post-content hr { border: none; border-top: 1px solid var(--fb-border); margin: 40px 0; }
.fb-post-content .kg-card { margin: 32px 0; }
.fb-post-content .kg-image-card img { border-radius: 10px; max-width: 100%; }
.fb-post-content .kg-callout-card { background: var(--fb-blue-pale); border-left: 3px solid var(--fb-blue); padding: 16px 20px; border-radius: 0 8px 8px 0; }

/* Post footer */
.fb-post-footer { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; border-top: 1px solid var(--fb-border); margin-top: 40px; flex-wrap: wrap; gap: 12px; }
.fb-post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-post-footer-tag { font-size: 12px; font-weight: 500; color: var(--fb-dim); background: var(--fb-bg); border: 1px solid var(--fb-border); padding: 5px 12px; border-radius: 100px; text-decoration: none; transition: color .12s, background .12s; }
.fb-post-footer-tag:hover { color: var(--fb-blue); background: var(--fb-blue-pale); }
.fb-share-btn { font-size: 13px; font-weight: 600; color: var(--fb-blue); background: var(--fb-blue-pale); border: none; padding: 8px 18px; border-radius: 8px; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.fb-share-btn:hover { opacity: .8; }

/* Author box */
.fb-author-box { background: var(--fb-bg); border: 1px solid var(--fb-border); border-radius: 14px; padding: 24px; margin-top: 40px; }
.fb-author-item { display: flex; align-items: flex-start; gap: 16px; }
.fb-author-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fb-author-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; background: var(--fb-blue); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.fb-author-name { font-size: 15px; font-weight: 700; color: var(--fb-ink); text-decoration: none; display: block; margin-bottom: 4px; }
.fb-author-bio { font-size: 14px; color: var(--fb-dim); line-height: 1.6; margin: 0; }

/* Post nav */
.fb-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.fb-post-nav-item { background: var(--fb-white); border: 1px solid var(--fb-border); border-radius: 12px; padding: 20px; text-decoration: none; transition: border-color .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 6px; }
.fb-post-nav-item:hover { border-color: var(--fb-blue); box-shadow: 0 4px 16px rgba(25,76,255,0.08); }
.fb-post-nav-next { text-align: right; }
.fb-post-nav-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--fb-dim2); }
.fb-post-nav-title { font-size: 14px; font-weight: 600; color: var(--fb-ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── FOOTER ── */
.fb-footer { background: var(--fb-navy); margin-top: auto; }
.fb-footer-inner { max-width: var(--fb-w); margin: 0 auto; padding: 60px var(--fb-px) 32px; }
.fb-footer-top { display: grid; grid-template-columns: 280px 1fr; gap: 64px; margin-bottom: 48px; }
.fb-footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 16px; }
.fb-footer-logo { display: block; margin-bottom: 4px; }
.fb-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fb-footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.fb-footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color .15s; }
.fb-footer-col a:hover { color: rgba(255,255,255,0.9); }
.fb-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.fb-footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.25); }
.fb-footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.fb-footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .fb-grid { grid-template-columns: repeat(2, 1fr); }
  .fb-footer-top { grid-template-columns: 1fr; gap: 40px; }
  .fb-footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .fb-nav-links { display: none; }
  .fb-finbox-link { display: none; }
  .fb-burger { display: flex; }
  .fb-grid { grid-template-columns: 1fr; }
  .fb-post-nav { grid-template-columns: 1fr; }
  .fb-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fb-footer-cols { grid-template-columns: 1fr; }
  .fb-demo-btn { display: none; }
}
.fb-author-profile { display: flex; align-items: center; gap: 24px; padding: 48px 0 32px; }
.fb-author-profile-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Fix sticky nav — ensure no parent has overflow:hidden ── */
.fb-site { overflow: visible; }
.gh-outer, .site-content, .site-main { overflow: visible !important; }

/* ── Pagination ── */
.fb-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; padding: 48px 0 16px;
}
.fb-page-btn {
  font-size: 14px; font-weight: 600; color: var(--fb-blue);
  text-decoration: none; padding: 10px 22px;
  border: 1.5px solid var(--fb-blue); border-radius: 8px;
  transition: background .15s, color .15s;
}
.fb-page-btn:hover { background: var(--fb-blue); color: white; }
.fb-page-info { font-size: 14px; color: var(--fb-dim2); }

/* ── Load more button (Edition JS) ── */
.gh-loadmore {
  display: block; margin: 40px auto 0;
  font-family: var(--fb-font); font-size: 14px; font-weight: 600;
  color: var(--fb-blue); background: white;
  border: 1.5px solid var(--fb-blue); border-radius: 8px;
  padding: 12px 32px; cursor: pointer;
  transition: background .15s, color .15s;
}
.gh-loadmore:hover { background: var(--fb-blue); color: white; }

/* ── Homepage ── */
.fb-home-hero {
  background: #EEF3FF;
  padding: 80px var(--fb-px) 72px;
  border-bottom: 1px solid var(--fb-border);
}
.fb-home-hero-inner { max-width: 720px; }
.fb-home-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--fb-blue); margin-bottom: 20px;
}
.fb-home-title {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px; color: var(--fb-ink);
  margin-bottom: 20px;
}
.fb-home-sub {
  font-size: 18px; line-height: 1.65; color: var(--fb-dim);
  margin-bottom: 36px; max-width: 580px;
}
.fb-home-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fb-home-btn-primary {
  font-size: 15px; font-weight: 700; color: white;
  background: var(--fb-blue); text-decoration: none;
  padding: 12px 28px; border-radius: 10px; transition: opacity .15s;
}
.fb-home-btn-primary:hover { opacity: .88; }
.fb-home-btn-secondary {
  font-size: 15px; font-weight: 600; color: var(--fb-blue);
  text-decoration: none; padding: 12px 20px;
  border: 1.5px solid var(--fb-blue); border-radius: 10px;
  transition: background .15s, color .15s;
}
.fb-home-btn-secondary:hover { background: var(--fb-blue); color: white; }

.fb-home-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 0 24px;
}
.fb-home-section-title {
  font-size: 22px; font-weight: 800; color: var(--fb-ink); letter-spacing: -.5px;
}
.fb-home-see-all {
  font-size: 14px; font-weight: 600; color: var(--fb-blue); text-decoration: none;
}
.fb-home-see-all:hover { text-decoration: underline; }

/* Newsletter strip */
.fb-newsletters-strip {
  background: var(--fb-navy); padding: 0 0 64px;
  margin-top: 64px;
}
.fb-newsletters-strip .fb-home-section-head { padding-top: 56px; }
.fb-newsletters-strip .fb-home-section-title { color: white; }
.fb-newsletters-strip .fb-home-see-all { color: rgba(255,255,255,0.6); }
.fb-nl-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.fb-nl-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 28px 26px;
  text-decoration: none; display: block;
  transition: background .18s, transform .18s;
}
.fb-nl-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.fb-nl-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  display: block; margin-bottom: 10px;
}
.fb-nl-card h3 {
  font-size: 20px; font-weight: 800; color: white;
  margin-bottom: 10px; letter-spacing: -.3px;
}
.fb-nl-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; }
.fb-nl-cta { font-size: 13px; font-weight: 600; color: var(--fb-blue); }
.fb-nl-il .fb-nl-cta { color: #60A5FA; }
.fb-nl-tp .fb-nl-cta { color: #A78BFA; }

/* Topics grid */
.fb-topics-section { padding-bottom: 80px; }
.fb-topics-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.fb-topic-card {
  background: white; border: 1px solid var(--fb-border);
  border-radius: 12px; padding: 22px 20px;
  text-decoration: none; display: block;
  transition: transform .18s, box-shadow .18s, border-color .15s;
}
.fb-topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,14,12,0.07);
  border-color: var(--fb-blue);
}
.fb-topic-count {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--fb-blue);
  display: block; margin-bottom: 8px;
}
.fb-topic-card h3 {
  font-size: 15px; font-weight: 700; color: var(--fb-ink);
  margin-bottom: 6px; line-height: 1.3;
}
.fb-topic-card p { font-size: 13px; color: var(--fb-dim); line-height: 1.55; }
.fb-topic-card-featured {
  background: var(--fb-blue-pale);
  border-color: rgba(25,76,255,0.2);
  grid-column: span 2;
}

/* ── Fix dropdown staying open ── */
.fb-has-dropdown { position: relative; }
.fb-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--fb-white); border: 1px solid var(--fb-border);
  border-radius: 12px; padding: 8px; min-width: 260px;
  box-shadow: 0 8px 32px rgba(14,14,12,0.1); z-index: 300;
}
.fb-has-dropdown.fb-open .fb-dropdown { display: block; }
.fb-dropdown-wide { min-width: 300px; }

/* Responsive homepage */
@media (max-width: 1024px) {
  .fb-topics-grid { grid-template-columns: repeat(2,1fr); }
  .fb-topic-card-featured { grid-column: span 2; }
}
@media (max-width: 768px) {
  .fb-nl-grid { grid-template-columns: 1fr; }
  .fb-topics-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .fb-topics-grid { grid-template-columns: 1fr; }
  .fb-topic-card-featured { grid-column: span 1; }
}

/* ── Pagination link row ── */
.fb-pagination-links {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; padding: 24px 0 16px;
}

/* ── Listing page header ── */
.fb-listing-header {
  background: #EEF3FF;
  border-bottom: 1px solid var(--fb-border);
  padding: 56px 0 48px;
}
.fb-listing-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--fb-blue); margin-bottom: 14px;
}
.fb-listing-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 800;
  letter-spacing: -1px; color: var(--fb-ink); margin-bottom: 14px; line-height: 1.1;
}
.fb-listing-desc {
  font-size: 17px; color: var(--fb-dim); line-height: 1.65;
  max-width: 600px; margin-bottom: 28px;
}
.fb-listing-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-listing-filter {
  font-size: 13px; font-weight: 500; color: var(--fb-dim);
  background: white; border: 1.5px solid var(--fb-border);
  padding: 6px 16px; border-radius: 100px; text-decoration: none;
  transition: color .12s, border-color .12s, background .12s;
}
.fb-listing-filter:hover { color: var(--fb-blue); border-color: var(--fb-blue); }
.fb-listing-filter-active {
  color: var(--fb-blue); background: var(--fb-blue-pale);
  border-color: rgba(25,76,255,0.3);
}

/* ── Guides grid ── */
.fb-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; padding-top: 32px;
}
.fb-guide-card {
  background: white; border: 1px solid var(--fb-border);
  border-radius: 14px; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.fb-guide-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14,14,12,0.08); }
.fb-guide-card-link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.fb-guide-card-image {
  aspect-ratio: 1.91/1; background: var(--fb-navy);
  overflow: hidden; position: relative; flex-shrink: 0;
}
.fb-guide-card-image img { width: 100%; height: 100%; object-fit: cover; }
.fb-guide-card-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
}
.fb-guide-type {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: white;
  background: rgba(25,76,255,0.85);
  padding: 4px 10px; border-radius: 4px;
}
.fb-guide-card-body { padding: 20px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.fb-guide-title {
  font-size: 16px; font-weight: 700; color: var(--fb-ink);
  line-height: 1.35; margin-bottom: 10px; letter-spacing: -.1px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fb-guide-excerpt {
  font-size: 13px; color: var(--fb-dim); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fb-guide-cta {
  font-size: 13px; font-weight: 600; color: var(--fb-blue);
  margin-top: auto;
}

@media (max-width: 900px) { .fb-guides-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .fb-guides-grid { grid-template-columns: 1fr; } }

/* ── Download Form ── */
.fb-dform {
  margin: 40px 0;
}
.fb-dform-inner {
  background: var(--fb-white);
  border: 1px solid var(--fb-border);
  border-radius: 16px;
  padding: 36px 40px 32px;
  box-shadow: 0 4px 24px rgba(14,14,12,0.06);
  max-width: 680px;
}

/* Head */
.fb-dform-head { margin-bottom: 24px; }
.fb-dform-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--fb-blue);
  background: var(--fb-blue-pale);
  padding: 4px 10px; border-radius: 100px;
  margin-bottom: 10px;
}
.fb-dform-sub {
  font-size: 14px; color: var(--fb-dim); margin: 0; line-height: 1.5;
}

/* Fields */
.fb-dform-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.fb-dform-field { display: flex; flex-direction: column; gap: 6px; }
.fb-dform-field label {
  font-size: 13px; font-weight: 600; color: var(--fb-ink);
}
.fb-dform-field label span { color: var(--fb-blue); margin-left: 1px; }
.fb-dform-field input {
  font-family: var(--fb-font); font-size: 14px; color: var(--fb-ink);
  background: var(--fb-bg); border: 1.5px solid var(--fb-border);
  border-radius: 8px; padding: 10px 14px;
  outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.fb-dform-field input::placeholder { color: var(--fb-dim2); }
.fb-dform-field input:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 3px rgba(25,76,255,0.1);
  background: var(--fb-white);
}
.fb-dform-field input.fb-dform-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* Submit button */
.fb-dform-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 8px;
  font-family: var(--fb-font); font-size: 15px; font-weight: 700;
  color: var(--fb-white); background: var(--fb-blue);
  border: none; border-radius: 10px; padding: 14px 24px;
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.fb-dform-btn:hover { opacity: .88; }
.fb-dform-btn:active { transform: scale(0.99); }
.fb-dform-btn:disabled { opacity: .6; cursor: not-allowed; }
.fb-dform-btn-spinner {
  display: none; align-items: center; gap: 8px;
}
.fb-dform-btn-spinner svg {
  animation: fb-spin .7s linear infinite;
}
.fb-dform-btn.fb-dform-loading .fb-dform-btn-text { display: none; }
.fb-dform-btn.fb-dform-loading .fb-dform-btn-spinner { display: flex; }
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* Privacy note */
.fb-dform-privacy {
  font-size: 12px; color: var(--fb-dim2); text-align: center;
  margin: 12px 0 0; line-height: 1.5;
}
.fb-dform-privacy a { color: var(--fb-dim2); text-decoration: underline; text-underline-offset: 2px; }
.fb-dform-privacy a:hover { color: var(--fb-dim); }

/* Success state */
.fb-dform-success {
  text-align: center; padding: 8px 0 4px;
}
.fb-dform-success-check {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fb-dform-success h3 {
  font-size: 20px; font-weight: 800; color: var(--fb-ink);
  letter-spacing: -.3px; margin-bottom: 10px;
}
.fb-dform-success p {
  font-size: 15px; color: var(--fb-dim); line-height: 1.65; max-width: 420px; margin: 0 auto;
}

/* Error state */
.fb-dform-error {
  background: #FEF2F2; border: 1px solid #FECACA;
  border-radius: 10px; padding: 14px 18px; margin-top: 16px;
}
.fb-dform-error p {
  font-size: 14px; color: #991B1B; margin: 0; line-height: 1.55;
}
.fb-dform-error a { color: #991B1B; text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .fb-dform-inner { padding: 28px 22px 24px; }
  .fb-dform-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Landing page (custom-landing.hbs) ── */
.fb-landing-body {
  padding-top: 48px;
}
.fb-landing-cover {
  margin: 0 0 40px;
  border-radius: 14px;
  overflow: hidden;
  max-height: 460px;
}
.fb-landing-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Hide old HubSpot form embeds — replaced by native download form.
   You can delete the old HTML card from Ghost editor at your convenience. */
.hs-form-frame,
.hbspt-form,
.hs-form,
div[data-form-id] {
  display: none !important;
}

/* ── Landing page: suppress old hand-coded nav in page content ─────────────
   When custom-landing.hbs extends default.hbs, the global nav renders once
   at the top. Any .fb-nav element inside .fb-content is a duplicate from the
   old standalone page content and should stay hidden. Clean it up in Ghost
   editor at your convenience. */
.fb-content .nav,
.fb-content header.nav { display: none !important; }

/* ── Suppress old HubSpot popup / embed forms on landing pages ─────────────
   Replaced by the native fb-dform. Remove the HubSpot HTML card from Ghost
   editor at your convenience. */
.hs-form-frame,
.hbspt-form,
.hs-form { display: none !important; }
/* Also nuke the popup overlay HubSpot injects */
.hs-overlay-container,
.hs-form-popup { display: none !important; }

/* ── Native form inside landing page modal ──────────────────────────────── */
.modal-body .fb-dform { margin: 0; }
.modal-body .fb-dform-inner {
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: 100%;
}
