/* Madjik www - design language taken from dashboard.madjik.io/static/style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.6;
}
a { color: #00ff88; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, pre { font-family: 'Monaco', 'Menlo', monospace; }

/* Header */
.site-head { background: #1a1a2e; border-bottom: 1px solid #2d2d44; }
.site-head .inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand img { height: 40px; display: block; }
.site-head nav ul { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; }
.site-head nav a { color: #e0e0e0; font-size: 14px; font-weight: 600; }
.site-head nav a:hover { color: #00ff88; text-decoration: none; }

/* Layout */
.site-main { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.card {
  background: #1a1a2e; border: 1px solid #2d2d44; border-radius: 12px;
  padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.index-card { padding: 40px; }

/* Hero (homepage) */
.hero {
  border-radius: 12px; border: 1px solid #2d2d44;
  background-color: #1a1a2e; background-size: cover; background-position: center;
  padding: 70px 30px; text-align: center; margin-bottom: 28px;
}
.hero-logo { height: 72px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 38px; line-height: 1.2; margin-bottom: 14px; }
.hero .lede { color: #ccc; font-size: 18px; max-width: 640px; margin: 0 auto 24px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.quick-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.ql { display: block; padding: 22px; color: #e0e0e0; transition: border-color .2s; }
.ql:hover { border-color: #00ff88; text-decoration: none; }
.ql h3 { color: #00ff88; margin-bottom: 6px; }
.ql p { font-size: 14px; color: #888; }

/* Post feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.feed-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feed-card .thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.feed-body { padding: 20px; }
.feed-card h2 { font-size: 18px; line-height: 1.35; margin: 8px 0; }
.feed-card h2 a { color: #fff; }
.feed-card p { font-size: 14px; color: #888; }

/* Article */
.post { max-width: 860px; margin: 0 auto; }
.post-head h1 { color: #fff; font-size: 30px; line-height: 1.25; margin: 8px 0 18px; }
.post-meta { color: #888; font-size: 13px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(0,255,136,.15); color: #00ff88;
}
img.feature { border-radius: 8px; margin-bottom: 20px; }

/* Ghost content */
.content { color: #e0e0e0; overflow-wrap: break-word; }
.content > * + * { margin-top: 1em; }
.content h1, .content h2, .content h3, .content h4 { color: #fff; line-height: 1.3; margin-top: 1.6em; }
.content h2 { font-size: 24px; } .content h3 { font-size: 19px; }
.content ul, .content ol { padding-left: 1.4em; }
.content li + li { margin-top: .35em; }
.content blockquote { border-left: 3px solid #00ff88; padding-left: 16px; color: #aaa; font-style: italic; }
.content hr { border: 0; border-top: 1px solid #2d2d44; margin: 2em 0; }
.content img { border-radius: 8px; }
.content figure { margin: 1.4em 0; }
.content figcaption { color: #666; font-size: 13px; text-align: center; margin-top: 6px; }
.content pre {
  background: #0f0f1a; border: 1px solid #2d2d44; border-radius: 8px;
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5;
}
.content code { background: #0f0f1a; border-radius: 4px; padding: 2px 6px; font-size: .9em; color: #00ff88; }
.content pre code { background: none; padding: 0; color: #e0e0e0; }
.content .kg-callout-card, .callout {
  background: rgba(0,255,136,.06); border: 1px solid #2d2d44; border-left: 3px solid #00ff88;
  border-radius: 8px; padding: 16px 20px; display: flex; gap: 12px; margin: 1.2em 0;
}
.content .kg-button-card a, .btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; background: #00ff88;
  color: #0f0f1a !important; font-weight: 600; font-size: 15px;
}
.content .kg-button-card a:hover, .btn:hover { background: #00cc6a; text-decoration: none; }
.btn.secondary { background: #2d2d44; color: #fff !important; }
.btn.secondary:hover { background: #3d3d54; }
.content .kg-bookmark-card a { display: block; border: 1px solid #2d2d44; border-radius: 8px; padding: 14px; }
.content .kg-card { margin: 1.4em 0; }

/* Tables */
.content table, table.listing, table.kv { border-collapse: collapse; width: 100%; font-size: 14px; }
.content th, .content td, .listing th, .listing td, .kv th, .kv td {
  border: 1px solid #2d2d44; padding: 10px 12px; text-align: left; vertical-align: top;
}
.content th, .listing thead th { background: #12121f; color: #fff; }
.kv th { width: 180px; background: #12121f; color: #ccc; font-weight: 600; }
.tablewrap, .content figure.kg-table-card, .content .kg-table-card { overflow-x: auto; }

/* Badges */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 11px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  background: rgba(33,150,243,.2); color: #2196f3;
}
.badge.ok { background: rgba(0,255,136,.2); color: #00ff88; }
.badge.warn { background: rgba(255,193,7,.2); color: #ffc107; }
.badge.prop { background: rgba(156,39,176,.2); color: #ce93d8; }
.note { color: #888; font-size: 14px; margin-top: 1em; }
.lede { font-size: 17px; color: #ccc; margin: 12px 0 20px; }

/* Listing lists (hypothesis/strategy indexes) */
.listing-list { list-style: none; margin-top: 20px; }
.listing-list li + li { border-top: 1px solid #2d2d44; }
.listing-list a { display: flex; gap: 14px; padding: 10px 4px; align-items: baseline; }
.listing-list a:hover { text-decoration: none; background: rgba(0,255,136,.04); }
.listing-list .id { color: #00ff88; font-family: 'Monaco','Menlo',monospace; font-size: 13px; white-space: nowrap; }
.listing-list .t { color: #e0e0e0; }
.metric-links { list-style: none; }
.metric-links li { padding: 6px 0; border-bottom: 1px solid #2d2d44; }

/* Footer */
.site-foot { border-top: 1px solid #2d2d44; margin-top: 48px; background: #1a1a2e; }
.site-foot .inner { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }
.site-foot p { color: #888; font-size: 13px; margin-bottom: 8px; }
.site-foot .disclaimer { color: #666; font-size: 12px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .card { padding: 20px; }
  .index-card { padding: 24px; }
}
