/* ==========================================================================
   Finance Manifesto -- Homepage Preview
   Tokens: navy #0B1E39, gold #C9A227 (brand/tag accent), green #1E8E5A (CTA/action accent), off-white #F5F6F8
   ========================================================================== */

@font-face { font-family: 'Poppins'; src: url('/wp-content/themes/blockskit-base/assets/fonts/poppins/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/wp-content/themes/blockskit-base/assets/fonts/poppins/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/wp-content/themes/blockskit-base/assets/fonts/poppins/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/wp-content/themes/blockskit-base/assets/fonts/poppins/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:where(body.fm-preview, body.fm-preview *) {
  margin: 0; padding: 0; box-sizing: border-box;
  font: inherit; color: inherit; text-decoration: none; list-style: none; border: 0;
}

body.fm-preview {
  --ink: #0B1E39;
  --ink-2: #12294f;
  --gold: #C9A227;
  --gold-light: #E4C25F;
  --green: #1E8E5A;
  --green-light: #27A66B;
  --purple: #7C4DBB;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E9EAEE;
  --text: #1C2333;
  --text-muted: #5B6472;
  --up: #1E8E5A;
  --down: #D64545;
  --radius: 10px;

  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.fm-preview h1, body.fm-preview h2, body.fm-preview h3 {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}

body.fm-preview .fm-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
body.fm-preview a { cursor: pointer; }

/* ---------- Header ---------- */
body.fm-preview .fm-header { position: sticky; top: 0; z-index: 50; background: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
body.fm-preview .fm-header__inner { display: flex; align-items: center; gap: 40px; height: 78px; }
body.fm-preview .fm-logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
body.fm-preview .fm-logo-word { display: flex; flex-direction: column; line-height: 1; }
body.fm-preview .fm-logo-word__main { font-family: Georgia, serif; font-weight: 700; font-size: 21px; letter-spacing: 1px; }
body.fm-preview .fm-logo-word__sub { font-family: Georgia, serif; font-weight: 700; font-size: 11px; letter-spacing: 3.5px; margin-top: 3px; }
body.fm-preview .fm-nav { display: flex; align-items: center; gap: 30px; }
body.fm-preview .fm-nav a { display: inline-flex; align-items: center; gap: 5px; color: #E6E9EF; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
body.fm-preview .fm-nav a:hover { color: #fff; border-color: var(--gold); }
body.fm-preview .fm-nav .fm-caret { font-size: 9px; opacity: .7; margin-top: 1px; }
body.fm-preview .fm-header__actions { display: flex; align-items: center; gap: 20px; }
body.fm-preview .fm-icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: #E6E9EF; border-radius: 50%; transition: background .15s; }
body.fm-preview .fm-icon-btn:hover { background: rgba(255,255,255,.08); }
body.fm-preview .fm-btn-subscribe { background: var(--green); color: #fff; font-weight: 600; font-size: 14.5px; padding: 10px 22px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s; }
body.fm-preview .fm-btn-subscribe:hover { background: var(--green-light); }
body.fm-preview .fm-menu-toggle { display: none; background: none; color: #fff; font-size: 24px; }

/* ---------- Ticker (static, evenly spaced, matches reference) ---------- */
body.fm-preview .fm-ticker { background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.08); }
body.fm-preview .fm-ticker__row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; gap: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.fm-preview .fm-ticker__row::-webkit-scrollbar { display: none; }
body.fm-preview .fm-ticker__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #C7CEDA; white-space: nowrap; }
body.fm-preview .fm-ticker__item strong { color: #fff; font-weight: 600; letter-spacing: .3px; }
body.fm-preview .fm-ticker__up { color: #4ADE94; font-weight: 600; }
body.fm-preview .fm-ticker__down { color: #FF7A7A; font-weight: 600; }
body.fm-preview .fm-ticker__divider { width: 1px; height: 16px; background: rgba(255,255,255,.16); flex-shrink: 0; }

/* ---------- Layout ---------- */
body.fm-preview .fm-main { padding: 40px 0 64px; }
body.fm-preview .fm-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

/* ---------- Hero ---------- */
body.fm-preview .fm-hero { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; margin-bottom: 24px; }
body.fm-preview .fm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.fm-preview .fm-hero__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(11,30,57,.55), rgba(11,30,57,.2)),
    linear-gradient(135deg, #12294f 0%, #0B1E39 55%, #16345f 100%);
}
body.fm-preview .fm-hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
body.fm-preview .fm-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,30,57,.93) 0%, rgba(11,30,57,.82) 42%, rgba(11,30,57,.35) 70%, rgba(11,30,57,.05) 100%),
    linear-gradient(0deg, rgba(11,30,57,.96) 25%, rgba(11,30,57,.55) 65%, rgba(11,30,57,.1) 100%);
}
body.fm-preview .fm-hero__content { position: relative; padding: 44px; max-width: 680px; color: #fff; }
body.fm-preview .fm-pill { display: inline-block; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .6px; padding: 6px 13px; border-radius: 4px; margin-bottom: 16px; }
body.fm-preview .fm-hero__title { font-size: 42px; color: #fff; margin-bottom: 16px; }
body.fm-preview .fm-hero__title a { color: inherit; }
body.fm-preview .fm-hero__excerpt { font-size: 16.5px; color: #D7DCE6; max-width: 560px; margin-bottom: 20px; line-height: 1.55; }
body.fm-preview .fm-byline { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #C7CEDA; }
body.fm-preview .fm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.fm-preview .fm-avatar--sm { width: 26px; height: 26px; font-size: 11px; }
body.fm-preview .fm-byline strong { color: #fff; display: inline-flex; align-items: center; gap: 5px; }
body.fm-preview .fm-verified { color: #4ADE94; display: inline-flex; }
body.fm-preview .fm-card__meta .fm-verified { color: var(--green); }

/* ---------- Article grid ---------- */
body.fm-preview .fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
body.fm-preview .fm-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
body.fm-preview .fm-card__img { height: 180px; width: 100%; object-fit: cover; display: block; }
body.fm-preview .fm-card__img--placeholder { height: 180px; background: linear-gradient(135deg, #0e2848, #1c3c66 60%, #2a4d7c); position: relative; overflow: hidden; }
body.fm-preview .fm-card__body { padding: 16px 4px 4px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
body.fm-preview .fm-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .4px; padding: 5px 11px; border-radius: 5px; background: var(--gold); color: var(--ink); }
body.fm-preview .fm-tag--business { background: var(--green); color: #fff; }
body.fm-preview .fm-tag--personal-finance { background: var(--purple); color: #fff; }
body.fm-preview .fm-tag--commodities { background: var(--gold); color: var(--ink); }
body.fm-preview .fm-card__title { font-size: 18.5px; line-height: 1.32; }
body.fm-preview .fm-card__title a { color: var(--ink); }
body.fm-preview .fm-card__excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
body.fm-preview .fm-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 4px; }

/* ---------- Sidebar ---------- */
body.fm-preview .fm-widget { background: var(--surface); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(11,30,57,.06); }
body.fm-preview .fm-widget__head { margin-bottom: 8px; }
body.fm-preview .fm-widget__title { font-size: 18px; color: var(--ink); }
body.fm-preview .fm-widget__underline { width: 34px; height: 3px; background: var(--green); margin: 8px 0 14px; border-radius: 2px; }
body.fm-preview .fm-widget__head--row { display: flex; align-items: center; justify-content: space-between; }
body.fm-preview .fm-widget__link { font-size: 13px; color: var(--gold); font-weight: 600; }
body.fm-preview .fm-trend-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
body.fm-preview .fm-trend-item:first-child { border-top: 0; padding-top: 0; }
body.fm-preview .fm-trend-num { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; color: var(--green); width: 20px; flex-shrink: 0; }
body.fm-preview .fm-trend-item a { font-size: 14.5px; color: var(--ink); line-height: 1.4; font-weight: 500; }
body.fm-preview .fm-trend-item a:hover { color: var(--green); }

body.fm-preview .fm-coin { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
body.fm-preview .fm-coin:first-child { border-top: 0; padding-top: 0; }
body.fm-preview .fm-coin__icon { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
body.fm-preview .fm-coin__icon--btc { background: #F7931A; }
body.fm-preview .fm-coin__icon--eth { background: #627EEA; }
body.fm-preview .fm-coin__icon--bnb { background: #F3BA2F; }
body.fm-preview .fm-coin__name { font-size: 14px; font-weight: 600; color: var(--ink); }
body.fm-preview .fm-coin__pair { font-size: 12px; color: var(--text-muted); }
body.fm-preview .fm-coin__price { text-align: right; }
body.fm-preview .fm-coin__amount { font-size: 14px; font-weight: 600; color: var(--ink); }
body.fm-preview .fm-coin__change { font-size: 12px; }
body.fm-preview .fm-coin__spark { width: 56px; height: 26px; flex-shrink: 0; }

/* ---------- Footer ---------- */
body.fm-preview .fm-footer {
  background:
    linear-gradient(180deg, rgba(11,30,57,.93) 0%, rgba(11,30,57,.97) 60%, #0B1E39 100%),
    url('/wp-content/uploads/2026/08/photos/nyse-building-facade.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: #C7CEDA; padding: 56px 0 28px; margin-top: 20px;
}
body.fm-preview .fm-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
body.fm-preview .fm-footer__brand-desc { font-size: 13.5px; color: #9CA6B5; margin: 14px 0 18px; line-height: 1.6; }
body.fm-preview .fm-footer__social { display: flex; gap: 10px; }
body.fm-preview .fm-footer__social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
body.fm-preview .fm-footer h4 { color: var(--gold); font-size: 14px; letter-spacing: .3px; margin-bottom: 16px; font-family: Georgia, serif; }
body.fm-preview .fm-footer ul li { margin-bottom: 10px; }
body.fm-preview .fm-footer ul li a { font-size: 13.5px; color: #C7CEDA; }
body.fm-preview .fm-footer ul li a:hover { color: #fff; }
body.fm-preview .fm-newsletter-form { display: flex; margin-top: 14px; margin-bottom: 10px; }
body.fm-preview .fm-newsletter-form input { flex: 1; padding: 10px 12px; border-radius: 6px 0 0 6px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 13.5px; }
body.fm-preview .fm-newsletter-form button { background: var(--green); color: #fff; font-weight: 600; font-size: 13.5px; padding: 0 18px; border-radius: 0 6px 6px 0; }
body.fm-preview .fm-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; text-align: center; font-size: 13px; color: #8B94A3; }

/* ---------- Section shell ---------- */
body.fm-preview .fm-section { padding: 56px 0; }
body.fm-preview .fm-section--tint { background: var(--surface); }
body.fm-preview .fm-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
body.fm-preview .fm-section__title { font-size: 26px; color: var(--ink); }
body.fm-preview .fm-section__title-underline { width: 44px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }
body.fm-preview .fm-section__link { font-size: 14px; font-weight: 600; color: var(--gold); }

/* ---------- Explore by Category ---------- */
body.fm-preview .fm-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
body.fm-preview .fm-cat-tile { background: var(--surface); border-radius: var(--radius); padding: 26px 20px; text-align: left; box-shadow: 0 1px 3px rgba(11,30,57,.06); transition: transform .15s, box-shadow .15s; }
body.fm-preview .fm-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11,30,57,.1); }
body.fm-preview .fm-cat-tile__icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(201,162,39,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
body.fm-preview .fm-cat-tile__name { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
body.fm-preview .fm-cat-tile__count { font-size: 13px; color: var(--text-muted); }

/* ---------- Latest News list ---------- */
body.fm-preview .fm-list { display: flex; flex-direction: column; }
body.fm-preview .fm-list-item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); align-items: center; }
body.fm-preview .fm-list-item:first-child { border-top: 0; padding-top: 0; }
body.fm-preview .fm-list-item__img { width: 220px; height: 130px; object-fit: cover; border-radius: 8px; display: block; }
body.fm-preview .fm-list-item__img--placeholder { width: 220px; height: 130px; border-radius: 8px; background: linear-gradient(135deg, #0e2848, #1c3c66 60%, #2a4d7c); }
body.fm-preview .fm-list-item__title { font-size: 19px; margin-bottom: 8px; }
body.fm-preview .fm-list-item__title a { color: var(--ink); }
body.fm-preview .fm-list-item__excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
body.fm-preview .fm-list-item__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Newsletter CTA banner ---------- */
body.fm-preview .fm-cta { background: linear-gradient(120deg, #0B1E39, #16345f); border-radius: var(--radius); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; color: #fff; }
body.fm-preview .fm-cta__title { font-size: 26px; color: #fff; margin-bottom: 8px; }
body.fm-preview .fm-cta__sub { font-size: 14.5px; color: #C7CEDA; max-width: 420px; }
body.fm-preview .fm-cta__form { display: flex; flex-shrink: 0; min-width: 360px; }
body.fm-preview .fm-cta__form input { flex: 1; padding: 13px 16px; border-radius: 6px 0 0 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: 14px; }
body.fm-preview .fm-cta__form button { background: var(--green); color: #fff; font-weight: 600; font-size: 14px; padding: 0 22px; border-radius: 0 6px 6px 0; white-space: nowrap; }

/* ---------- Single article ---------- */
body.fm-preview .fm-article__hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
body.fm-preview .fm-article__hero img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
body.fm-preview .fm-article__wrap { max-width: 760px; margin: 0 auto; }
body.fm-preview .fm-article__title { font-size: 36px; margin-bottom: 16px; }
body.fm-preview .fm-article__byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
body.fm-preview .fm-article__byline strong { color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
body.fm-preview .fm-prose { font-size: 17px; line-height: 1.75; color: var(--text); }
body.fm-preview .fm-prose p { margin-bottom: 20px; }
body.fm-preview .fm-prose h2 { font-size: 24px; margin: 36px 0 14px; color: var(--ink); }
body.fm-preview .fm-prose h3 { font-size: 19px; margin: 28px 0 12px; color: var(--ink); }
body.fm-preview .fm-prose ul { margin: 0 0 20px 22px; }
body.fm-preview .fm-prose li { margin-bottom: 8px; font-size: 15px; }
body.fm-preview .fm-prose a { color: var(--gold); text-decoration: underline; }
body.fm-preview .fm-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  body.fm-preview .fm-layout { grid-template-columns: 1fr; }
  body.fm-preview .fm-grid { grid-template-columns: repeat(2, 1fr); }
  body.fm-preview .fm-footer__grid { grid-template-columns: 1fr 1fr; }
  body.fm-preview .fm-cat-grid { grid-template-columns: repeat(3, 1fr); }
  body.fm-preview .fm-cta { flex-direction: column; align-items: flex-start; }
  body.fm-preview .fm-cta__form { width: 100%; min-width: 0; }
}
@media (max-width: 780px) {
  body.fm-preview { overflow-x: hidden; }
  body.fm-preview .fm-nav { display: none; }
  body.fm-preview .fm-menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  body.fm-preview .fm-header__actions { gap: 8px; }
  body.fm-preview .fm-icon-btn { width: 40px; height: 40px; flex-shrink: 0; }
  body.fm-preview .fm-btn-subscribe span { display: none; }
  body.fm-preview .fm-btn-subscribe { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; flex-shrink: 0; }
  body.fm-preview .fm-logo-word__main { font-size: 17px; }
  body.fm-preview .fm-logo-word__sub { font-size: 9px; letter-spacing: 2.5px; }
  body.fm-preview .fm-logo-mark { width: 28px; height: 28px; }

  /* Mobile nav dropdown -- fixes the previously non-functional hamburger menu */
  body.fm-preview .fm-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,.2);
  }
  body.fm-preview .fm-nav.is-open a {
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 16px;
  }
  body.fm-preview .fm-nav.is-open a:last-child { border-bottom: 0; }
  body.fm-preview .fm-header { position: sticky; }

  body.fm-preview .fm-hero__title { font-size: 26px; }
  body.fm-preview .fm-hero__content { padding: 24px; }
  body.fm-preview .fm-hero { min-height: 380px; }
  body.fm-preview .fm-grid { grid-template-columns: 1fr; }
  body.fm-preview .fm-footer__grid { grid-template-columns: 1fr; }
  body.fm-preview .fm-cat-grid { grid-template-columns: repeat(2, 1fr); }
  body.fm-preview .fm-list-item { grid-template-columns: 1fr; }
  body.fm-preview .fm-list-item__img, body.fm-preview .fm-list-item__img--placeholder { width: 100%; height: 180px; }
  body.fm-preview .fm-article__title { font-size: 26px; }
  body.fm-preview .fm-cta { padding: 28px 22px; }
  body.fm-preview .fm-cta__title { font-size: 21px; }
}
