@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root { --ink: #101a2e; --muted: #6b7690; --line: #dde2ec; --paper: #f7f8fb; --navy: #0d1830; --accent: #1f6feb; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'IBM Plex Sans', -apple-system, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'IBM Plex Sans', sans-serif; margin: 0; font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: #e3e7f0; display: flex; align-items: center; justify-content: center; color: #a2abc2; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; }

.ticker-bar { background: var(--navy); color: #cdd7ef; display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { background: var(--accent); color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; padding: 8px 16px; flex-shrink: 0; display: flex; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-content { display: inline-flex; white-space: nowrap; animation: scroll-left 32s linear infinite; padding-left: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; }
.ticker-content span { margin-right: 40px; }
.ticker-content span::before { content: "\25B2 "; color: #3ecf8e; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.site-header { background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: center; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-box { width: 42px; height: 42px; border-radius: 4px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; }
.logo-img { height: 108px; width: auto; max-width: 400px; object-fit: contain; }
.site-name { font-size: 21px; font-weight: 700; }
.site-tagline { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.main-nav { background: var(--navy); }
.main-nav .wrap { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
.main-nav a { color: #aab6d6; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 18px; display: block; }
.main-nav a.home { color: #fff; background: var(--accent); }
.main-nav a:hover:not(.home) { color: #fff; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 30px 24px; max-width: 1180px; margin: 0 auto; align-items: start; }

.hero-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); margin-bottom: 30px; }
.hero-panel .placeholder-img, .hero-panel img { width: 100%; height: 260px; }
.hero-panel .inner { padding: 24px; }
.cat-tag { color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.hero-panel h1 { font-size: 25px; line-height: 1.3; margin: 8px 0; }
.hero-panel p { color: var(--muted); font-size: 13.5px; }
.meta { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }

.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 4px; }
.section-heading h2 { font-size: 17px; }
.section-heading .see-all { font-size: 11.5px; font-weight: 600; color: var(--accent); }
section.cat-section { margin-bottom: 36px; }

.data-list { background: #fff; border: 1px solid var(--line); border-top: none; }
.data-row { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: none; }
.data-row .placeholder-img, .data-row img { width: 74px; height: 56px; flex-shrink: 0; font-size: 8px; }
.data-row h3 { font-size: 14.5px; line-height: 1.35; margin: 0 0 4px; }
.featured-ribbon { display: inline-block; background: #eaf2ff; color: var(--accent); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 500; padding: 2px 8px; margin-bottom: 4px; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post-card { display: block; background: #fff; padding: 14px; }
.post-card .placeholder-img, .post-card img { width: 100%; height: 130px; margin-bottom: 10px; }
.post-card h3 { font-size: 14.5px; margin: 0 0 6px; line-height: 1.3; }
.post-card p { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--line); padding: 18px; }
.widget h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 14px; font-family: 'IBM Plex Mono', monospace; }
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-list li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; }
.t-title a { font-size: 13px; font-weight: 600; }
.t-meta { color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; margin-top: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { background: var(--paper); border: 1px solid var(--line); font-size: 11.5px; padding: 5px 10px; }
.newsletter-widget input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); margin-bottom: 8px; font-family: inherit; }
.newsletter-widget button { width: 100%; background: var(--navy); color: #fff; border: none; padding: 9px; font-weight: 600; cursor: pointer; }
.social-row { display: flex; gap: 12px; font-size: 12px; font-weight: 600; }
.ad-widget { text-align: center; color: var(--muted); font-size: 11px; padding: 30px 10px; border-style: dashed; }

.category-title { font-size: 25px; margin: 0 0 20px; }
.single-post-header h1 { font-size: 29px; line-height: 1.28; margin: 10px 0 12px; }
.single-post-headline { width: 100%; margin-bottom: 24px; }
.single-post-content { font-size: 15.5px; line-height: 1.75; }
.single-post-content p { margin: 0 0 18px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.tag-pill-link { background: #fff; border: 1px solid var(--line); font-size: 11.5px; padding: 5px 10px; }
.related-posts { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 24px; }
.related-posts h2 { font-size: 16px; margin-bottom: 16px; }

.search-form { display: flex; gap: 10px; margin: 0 0 20px; }
.search-form input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); font-family: inherit; }
.search-form button { background: var(--navy); color: #fff; border: none; padding: 0 20px; font-weight: 600; cursor: pointer; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 26px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; font-weight: 600; }

.site-footer { background: var(--navy); color: #aab6d6; padding: 40px 24px 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 30px; padding-bottom: 24px; border-bottom: 1px solid #263355; }
.footer-grid h4 { color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 13px; }
.footer-bottom { padding-top: 16px; font-size: 11.5px; color: #7684a6; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
