/* LiveMentions Blog — matches the main site's design system exactly. */
:root {
  --ink: #121212;
  --bg: #F7F7F7;
  --muted: #5B5B5B;
  --border: #E4E4E4;
  --border-strong: #C9C9C9;
  --accent: #465FFF;
  --grid-line: #E5E7EB;
  --container-max: 1410px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 150ms;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; position: relative; z-index: 2; background: var(--bg); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img, .logo svg { height: 24px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { position: relative; font-size: 14px; color: var(--muted); text-decoration: none; padding-bottom: 2px; transition: color var(--dur) var(--ease); }
nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: var(--ink); }
nav a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-right > a:not(.btn) { position: relative; font-size: 14px; color: var(--muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.nav-right > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav-right > a:not(.btn):hover { color: var(--ink); }
.nav-right > a:not(.btn):hover::after { transform: scaleX(1); }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 8px; text-decoration: none; border: none; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(18, 18, 18, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 10px; }
.btn-arrow { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.btn-lg .btn-arrow { width: 16px; height: 16px; }

.site-header-wrap { position: relative; z-index: 2; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: none; cursor: pointer; color: var(--ink); padding: 0; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(18, 18, 18, 0.08); flex-direction: column; padding: 8px 24px 20px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.25s ease; }
.mobile-menu.is-open { max-height: 400px; opacity: 1; }
.mobile-menu a { font-size: 15px; color: var(--muted); text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--border); transition: color var(--dur) var(--ease); }
.mobile-menu a.active { color: var(--ink); font-weight: 500; }
.mobile-menu a:not(.mobile-menu-btn):hover { color: var(--ink); }
.mobile-menu-btn { display: flex; justify-content: center; margin-top: 16px; border-bottom: none; padding: 13px 20px; color: #fff !important; }
.mobile-menu-btn:hover { color: #fff !important; }

@media (max-width: 900px) {
  header { padding: 18px 24px; position: relative; }
  nav { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
}
@media (max-width: 480px) {
  header { padding: 16px 16px; gap: 8px; }
  .logo svg { width: 118px; height: 19px; }
}

/* Footer */
.site-footer { position: relative; background: #121212; padding: 0 0 40px; overflow: hidden; }
.site-footer::before, .site-footer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 5.05%; background-image: repeating-linear-gradient(to bottom, rgba(229,231,235,0.1) 0, rgba(229,231,235,0.1) 2px, transparent 2px, transparent 92px); background-position: center 29%; }
.site-footer::before { left: 7.03%; border-left: 1.5px solid rgba(229,231,235,0.1); border-right: 1.5px solid rgba(229,231,235,0.1); }
.site-footer::after { right: 6.98%; border-left: 1.5px solid rgba(229,231,235,0.1); border-right: 1.5px solid rgba(229,231,235,0.1); }
.footer-tickrow { position: relative; z-index: 1; max-width: 1410px; margin: 0 auto; padding: 0 32px; height: 15.4%; min-height: 62px; display: flex; align-items: flex-end; }
.footer-tickrow-line { width: 100%; border-top: 1px solid rgba(229,231,235,0.1); background-image: repeating-linear-gradient(to right, rgba(229,231,235,0.15) 0, rgba(229,231,235,0.15) 2px, transparent 2px, transparent 91px); height: 6px; }
.footer-inner { position: relative; z-index: 1; max-width: 1410px; margin: 0 auto; padding: 32px 32px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 0; padding-bottom: 44px; border-bottom: 1px solid rgba(229,231,235,0.1); margin-bottom: 24px; }
.footer-brand { padding-right: 32px; }
.footer-col { padding-left: 32px; padding-right: 32px; border-left: 1px dashed rgba(229,231,235,0.2); }
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 14px; }
.footer-logo span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: #fff; }
.footer-tagline { font-size: 13px; color: #9A9A9A; line-height: 1.6; max-width: 320px; margin: 0; }
.footer-col-title { font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: #9A9A9A; text-decoration: none; margin-bottom: 12px; transition: color 0.2s ease; width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-social-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col a.footer-social-row { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13.5px; color: #9A9A9A; transition: color 0.2s ease; width: fit-content; margin-bottom: 0; }
.footer-social-row:hover { color: #fff; }
.footer-social-icon { width: 29px; height: 29px; border-radius: 50%; background: #333030; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s ease, transform 0.2s ease; }
.footer-social-row:hover .footer-social-icon { background: var(--accent); transform: translateY(-2px); }
.footer-bottom { text-align: center; font-size: 12.5px; color: #7A7A7A; padding-bottom: 20px; }
.footer-watermark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #353434; text-align: center; font-size: clamp(20px, 12vw, 155px); line-height: 1; letter-spacing: -0.01em; overflow: hidden; user-select: none; white-space: nowrap; padding: 0 16px; }

@media (max-width: 900px) {
  .site-footer::before, .site-footer::after { display: none; }
  .footer-tickrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; column-gap: 32px; }
  .footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .footer-col { border-left: none; padding-left: 0; padding-right: 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--ink); margin: 0; }

.frame-lines { position: relative; overflow: hidden; }
.frame-lines::before, .frame-lines::after { content: ''; position: absolute; top: 0; bottom: 0; width: 5.05%; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); }
.frame-lines::before { left: 7.03%; }
.frame-lines::after { right: 6.98%; }
@media (max-width: 900px) { .frame-lines::before, .frame-lines::after { display: none; } }

.badge { display: inline-block; font-size: 12px; color: var(--muted); background: #F7F7F7; border: 1px solid var(--border); padding: 5px 16px; border-radius: 999px; margin-bottom: 18px; }

/* Blog index / archive */
.blog-header-section { padding: 60px 0 40px; background: #fff; text-align: center; }
.blog-header-section h1 { font-size: 36px; line-height: 1.25; margin: 12px 0 12px; }
.blog-header-section p { font-size: 14px; color: var(--muted); max-width: 520px; margin: 0 auto; }

.blog-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 28px 0 36px; position: relative; z-index: 1; }
.blog-cats a { font-size: 12.5px; padding: 7px 16px; border-radius: 999px; text-decoration: none; border: 1px solid var(--border); color: var(--muted); transition: all 0.2s ease; }
.blog-cats a:hover { border-color: var(--ink); color: var(--ink); }
.blog-cats a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.blog-section { background: #fff; padding: 0 0 90px; }
.blog-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.featured-post { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--border); border-radius: 16px; margin-bottom: 40px; text-decoration: none; color: inherit; transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.featured-post:hover { box-shadow: 0 16px 36px rgba(18,18,18,0.08); transform: translateY(-2px); border-color: var(--border-strong); }
.featured-post-media { background: #EEF1FF; min-height: 220px; background-size: cover; background-position: center; border-radius: 14.5px 0 0 14.5px; overflow: hidden; }
.featured-post-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.post-cat-tag { font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; }
.featured-post-body h2 { font-size: 22px; line-height: 1.35; margin: 10px 0 12px; }
.featured-post-body p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 0 18px; }

.byline-row { display: flex; align-items: center; gap: 9px; }
.byline-row .author-name { font-size: 12.5px; color: var(--ink); font-weight: 500; }
.byline-row .byline-meta { font-size: 12px; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1.5px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }
.post-card:hover { box-shadow: 0 12px 28px rgba(18,18,18,0.07); transform: translateY(-2px); border-color: var(--border-strong); }
.post-card-media { height: 150px; background: #F0F0F0; background-size: cover; background-position: center; border-radius: 12.5px 12.5px 0 0; overflow: hidden; }
.post-card-body { padding: 18px; }
.post-card-body h3 { font-size: 15px; line-height: 1.4; margin: 6px 0 12px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; color: var(--muted); text-decoration: none; padding: 0 10px; }
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.subscribe-box { background: #0B0B0D; border-radius: 16px; padding: 48px 32px; text-align: center; margin-top: 40px; }
.subscribe-box h3 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
.subscribe-box p { color: #A5A5AE; font-size: 14px; margin: 0 0 24px; }
.subscribe-box .fluentform, .subscribe-box form { max-width: 420px; margin: 0 auto; }
.subscribe-box .ff-t-container { display: flex; flex-direction: column; gap: 10px; }
.subscribe-box .ff-t-column-1, .subscribe-box .ff-t-column-2 { flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; }
.subscribe-box .ff_submit_btn_wrapper { text-align: left !important; }
.subscribe-box input[type="email"], .subscribe-box input[type="text"] { width: 100% !important; box-sizing: border-box !important; background: #1A1A1E !important; border: 1px solid #333030 !important; color: #fff !important; border-radius: 8px !important; padding: 14px 16px !important; height: auto !important; font-size: 14px !important; }
.subscribe-box .ff-btn-submit, .subscribe-box button[type="submit"] { width: 100% !important; min-width: 100% !important; background: #EAE8E8 !important; color: #121212 !important; border-radius: 8px !important; border: none !important; font-weight: 500 !important; padding: 14px 22px !important; height: auto !important; font-size: 14px !important; }
.subscribe-box .ff_form_control_label, .subscribe-box label { color: #A5A5AE !important; }

/* Single post */
.post-header-section { padding: 60px 0 32px; background: #fff; text-align: center; }
.post-header-section .post-cat-tag { display: block; margin-bottom: 12px; }
.post-header-section h1 { font-size: 44px; line-height: 1.25; max-width: 760px; margin: 0 auto 22px; }
.post-header-section .byline-row { justify-content: center; }
.post-header-section .livementions-author-avatar { width: 36px; height: 36px; }

.post-cover { max-width: 1100px; margin: 0 auto 56px; padding: 0 32px; }
.post-cover img { width: 100%; height: auto; border-radius: 16px; display: block; }

.post-layout { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 32px 80px; display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.post-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.sidebar-card-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 12px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: 4px; }
.toc-list a { display: block; font-size: 12.5px; color: var(--muted); text-decoration: none; padding: 5px 0; line-height: 1.4; transition: color 0.2s ease; }
.toc-list a:hover, .toc-list a.is-active { color: var(--accent); }
.toc-list .toc-h3 { padding-left: 12px; }

.sidebar-subscribe { background: #FAFAFA; }
.sidebar-subscribe h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.sidebar-subscribe p { font-size: 11px; color: var(--muted); margin: 0 0 12px; }
.sidebar-subscribe .ff-t-container { display: flex; flex-direction: column; gap: 8px; }
.sidebar-subscribe .ff-t-column-1, .sidebar-subscribe .ff-t-column-2 { flex-basis: 100% !important; width: 100% !important; max-width: 100% !important; }
.sidebar-subscribe .ff_submit_btn_wrapper { text-align: left !important; }
.sidebar-subscribe .fluentform input, .sidebar-subscribe form input { width: 100% !important; padding: 11px 13px !important; height: auto !important; font-size: 13px !important; box-sizing: border-box !important; }
.sidebar-subscribe .ff-btn-submit, .sidebar-subscribe button[type="submit"] { width: 100% !important; background: var(--ink) !important; color: #fff !important; border-radius: 6px !important; border: none !important; padding: 11px 14px !important; height: auto !important; font-size: 13px !important; min-width: 100% !important; }

.share-icons { display: flex; gap: 8px; }
.share-icons a { width: 28px; height: 28px; border-radius: 50%; background: #333030; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; }
.share-icons a:hover { background: var(--accent); transform: translateY(-2px); }

.post-content { font-size: 16.5px; line-height: 1.85; color: #262626; }
.post-content h2 { font-size: 28px; line-height: 1.35; margin: 44px 0 16px; scroll-margin-top: 24px; }
.post-content h3 { font-size: 22px; line-height: 1.4; margin: 34px 0 12px; scroll-margin-top: 24px; }
.post-content h4 { font-size: 19px; line-height: 1.4; margin: 28px 0 10px; }
.post-content h5 { font-size: 17px; line-height: 1.4; margin: 24px 0 10px; }
.post-content h6 { font-size: 15.5px; line-height: 1.4; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 20px; padding-left: 4px; }
.post-content ul { list-style: none; }
.post-content ul li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.post-content ul li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.post-content ol { padding-left: 22px; }
.post-content ol li { padding-left: 6px; margin-bottom: 10px; }
.post-content ol li::marker { color: var(--accent); font-weight: 600; }
.post-content li p { margin-bottom: 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0 20px; }
.post-content a { color: var(--accent); }
.post-content blockquote { border-left: 2px solid var(--accent); margin: 24px 0; padding: 6px 0 6px 18px; font-size: 15px; color: var(--muted); font-style: italic; }
.post-content code { background: #F2F2F2; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.post-content pre { background: #121212; color: #F2F2F2; padding: 18px; border-radius: 10px; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; color: inherit; }

.post-closing-cta { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 28px; text-align: center; }
.post-closing-cta p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.post-content .post-closing-cta a.btn { color: #fff; }
.post-content .post-closing-cta a.btn:hover { color: #fff; }

.author-bio-card { max-width: 640px; margin: 56px auto 0; text-align: center; border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.author-bio-card .livementions-author-avatar { width: 72px; height: 72px; margin: 0 auto 16px; display: block; border-radius: 50%; object-fit: cover; }
.author-bio-card h4 { font-size: 18px; margin-bottom: 10px; }
.author-bio-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 480px; margin: 0 auto 18px; }
.author-bio-card .share-icons { justify-content: center; margin-bottom: 16px; }
.author-bio-card .author-count { display: inline-block; font-size: 11px; color: var(--accent); background: #EEF1FF; padding: 4px 12px; border-radius: 999px; text-decoration: none; }

.related-section { max-width: 1100px; margin: 56px auto 0; padding: 0 32px; }
.related-section .sidebar-card-title { text-align: left; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.comments-section { max-width: 1100px; margin: 56px auto 0; padding: 0 32px 80px; }
.comments-title { font-size: 19px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--border); padding: 20px 0; }
.comment-author-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author-row .fn { font-size: 13px; font-weight: 500; color: var(--ink); font-style: normal; }
.comment-meta { font-size: 11.5px; color: var(--muted); }
.comment-list .comment-content p { font-size: 13.5px; color: #333; line-height: 1.65; }
.comment-respond { border-top: 1px solid var(--border); padding-top: 28px; }
.comment-reply-title { font-size: 16px; margin-bottom: 16px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px; font-size: 13.5px; font-family: 'Inter', sans-serif; color: var(--ink); background: #fff; box-sizing: border-box; }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(70,95,255,0.12); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-awaiting-moderation { font-size: 11.5px; color: var(--accent); display: block; margin-top: 6px; }

.error-404-section { padding: 90px 32px; text-align: center; }
.error-404-section h1 { font-size: 64px; }
.error-404-section p { font-size: 14px; color: var(--muted); margin: 12px 0 24px; }

@media (max-width: 900px) {
  .post-header-section h1 { font-size: 32px; }
}

@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .post-sidebar .sidebar-card { flex: 1 1 220px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-header-section h1 { font-size: 26px; }
  .post-header-section h1 { font-size: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .post-sidebar { flex-direction: column; }
}
