/* Shared styles for Manticore Controls Insights (index + article pages).
   Matches the dark orange/grey/black theme of the main site. */
:root{
  --bg:#0a0b0c;
  --bg-2:#0e1013;
  --panel:#14171a;
  --text:#eef1f4;
  --muted:#9aa4ad;
  --muted-2:#727c85;
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.05);
  --accent:#ff6830;
  --accent-2:#ff8552;
  --accent-soft:rgba(255,104,48,.14);
  --radius:16px;
  --maxw:1140px;
  --readw:740px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text); line-height:1.5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 640px at 82% -10%, rgba(255,104,48,.12), transparent 55%),
    radial-gradient(900px 600px at 2% 0%, rgba(255,255,255,.04), transparent 60%),
    var(--bg);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px}
.read-wrap{max-width:var(--readw); margin:0 auto; padding:0 24px}

/* Header / nav (mirrors main site) */
header.site{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(10px);
  background:linear-gradient(180deg, rgba(10,11,12,.86), rgba(10,11,12,.55));
  border-bottom:1px solid var(--line-2);
}
.nav{display:flex; align-items:center; justify-content:space-between; gap:18px; height:68px}
.brand{display:flex; align-items:baseline; gap:10px; font-weight:800; letter-spacing:.5px; font-size:18px}
.brand .m{color:var(--text)} .brand .c{color:var(--accent)}
.brand .mark{height:30px; width:auto; align-self:center; margin-right:4px}
.navlinks{display:flex; align-items:center; gap:6px}
.navlinks a{padding:9px 12px; border-radius:10px; color:var(--muted); font-size:14px; font-weight:600; transition:.15s}
.navlinks a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.navlinks a.active{color:var(--text)}
.navlinks .cta{color:var(--text); border:1px solid rgba(255,104,48,.5); background:linear-gradient(180deg, rgba(255,104,48,.22), rgba(255,104,48,.10))}
.navlinks .cta:hover{background:linear-gradient(180deg, rgba(255,104,48,.34), rgba(255,104,48,.16))}
@media (max-width:780px){ .navlinks a:not(.cta){display:none} }

.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding:13px 18px; border-radius:12px; font-weight:700; font-size:14px;
  border:1px solid var(--line); background:rgba(255,255,255,.04); transition:.13s;
}
.btn:hover{background:rgba(255,255,255,.08); transform:translateY(-1px)}
.btn.primary{border-color:rgba(255,104,48,.55); background:linear-gradient(180deg, var(--accent), #e85620); color:#1a0e07}
.btn.primary:hover{filter:brightness(1.06)}
.btn svg{width:16px;height:16px}

/* Breadcrumb */
.crumb{display:flex; gap:8px; align-items:center; font-size:13px; color:var(--muted-2); padding:26px 0 0}
.crumb a:hover{color:var(--text)}
.crumb .sep{opacity:.5}

/* Insights index */
.index-head{padding:30px 0 8px}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--accent); margin:0 0 14px}
.eyebrow::before{content:""; width:22px; height:2px; background:var(--accent); border-radius:2px}
.index-head h1{font-size:clamp(30px,4.5vw,44px); letter-spacing:-1px; margin:0 0 12px; line-height:1.08}
.index-head p{color:var(--muted); max-width:620px; font-size:17px; margin:0}
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; padding:34px 0 70px}
@media (max-width:900px){ .card-grid{grid-template-columns:1fr} }
.post-card{
  display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(180deg, var(--panel), var(--bg-2)); padding:22px; transition:transform .15s, border-color .15s;
}
.post-card:hover{transform:translateY(-3px); border-color:rgba(255,104,48,.4)}
.post-card .kicker{font-size:12px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--accent); margin-bottom:10px}
.post-card h2{font-size:19px; line-height:1.25; margin:0 0 10px}
.post-card p{color:var(--muted); font-size:14.5px; margin:0 0 16px}
.post-card .meta{margin-top:auto; font-size:12.5px; color:var(--muted-2); display:flex; gap:10px; align-items:center}
.post-card .read{margin-top:12px; font-size:13.5px; font-weight:700; display:inline-flex; align-items:center; gap:6px}
.post-card .read svg{width:14px;height:14px;stroke:var(--accent);fill:none;stroke-width:2}

/* Article header */
.article-head{padding:24px 0 8px}
.article-head .kicker{font-size:12.5px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--accent); margin-bottom:14px}
.article-head h1{font-size:clamp(30px,4.6vw,44px); letter-spacing:-1px; line-height:1.1; margin:0 0 16px}
.article-head .dek{font-size:19px; color:var(--muted); margin:0 0 20px; line-height:1.5}
.article-head .meta{display:flex; gap:14px; flex-wrap:wrap; align-items:center; font-size:13px; color:var(--muted-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0}
.article-head .meta .by{color:var(--text); font-weight:600}
.article-head .meta .pill{border:1px solid var(--line); border-radius:999px; padding:4px 10px}

/* Prose */
.prose{padding:26px 0 10px; font-size:17px; line-height:1.72; color:#dfe5ec}
.prose > p{margin:0 0 20px}
.prose h2{font-size:24px; letter-spacing:-.4px; margin:38px 0 14px; line-height:1.2; color:var(--text)}
.prose h3{font-size:18.5px; margin:28px 0 10px; color:var(--text)}
.prose strong{color:var(--text)}
.prose a{color:var(--accent-2); text-decoration:underline; text-underline-offset:2px}
.prose a:hover{color:var(--accent)}
.prose ul,.prose ol{margin:0 0 20px; padding-left:22px}
.prose li{margin:0 0 9px}
.prose li::marker{color:var(--accent)}
.prose hr{border:0; height:1px; background:var(--line); margin:34px 0}
.lede::first-letter{font-size:1.05em}

/* Callout / key takeaway */
.callout{
  border:1px solid rgba(255,104,48,.32); border-left:3px solid var(--accent);
  background:var(--accent-soft); border-radius:12px; padding:16px 18px; margin:26px 0;
}
.callout .t{font-size:12px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--accent); margin-bottom:7px}
.callout p{margin:0; color:var(--text); font-size:15.5px; line-height:1.6}

/* Figure (placeholder-friendly for future photos) */
figure{margin:28px 0}
figure img{width:100%; height:auto; border-radius:14px; border:1px solid var(--line); display:block}
.img-placeholder{
  width:100%; aspect-ratio:16/9; border-radius:14px; border:1px dashed var(--line);
  background:repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, rgba(255,255,255,.04) 12px 24px);
  display:grid; place-items:center; color:var(--muted-2); font-size:13px; text-align:center; padding:16px;
}
figcaption{margin-top:9px; font-size:13px; color:var(--muted-2); text-align:center}

/* Author bio */
.bio{
  display:flex; gap:16px; align-items:center; margin:36px 0 10px;
  border:1px solid var(--line); border-radius:var(--radius); padding:18px;
  background:linear-gradient(180deg, var(--panel), var(--bg-2));
}
.bio .avatar{
  position:relative; overflow:hidden;
  width:64px; height:64px; border-radius:50%; flex:0 0 auto;
  background:radial-gradient(circle at 35% 30%, #2a2f35, #16191c);
  border:1px solid var(--line); display:grid; place-items:center; color:var(--muted-2); font-weight:800; font-size:20px;
}
.bio .avatar img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.bio .who .name{font-weight:800; font-size:16px}
.bio .who .cred{color:var(--accent); font-size:13px; font-weight:700; margin:2px 0 6px}
.bio .who p{margin:0; color:var(--muted); font-size:13.5px; line-height:1.55}

/* Related + CTA */
.related{padding:40px 0 0}
.related h2{font-size:18px; margin:0 0 16px}
.rel-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:14px}
@media (max-width:680px){ .rel-grid{grid-template-columns:1fr} }
.rel{border:1px solid var(--line); border-radius:14px; padding:16px 18px; background:rgba(255,255,255,.025); transition:.15s}
.rel:hover{border-color:rgba(255,104,48,.4)}
.rel .kicker{font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--accent); margin-bottom:6px}
.rel .t{font-weight:700; font-size:15px; line-height:1.3}

.cta-band{
  border:1px solid rgba(255,104,48,.3); border-radius:20px; padding:30px; margin:46px 0 10px; text-align:center;
  background:radial-gradient(600px 280px at 80% 0%, rgba(255,104,48,.18), transparent 60%), linear-gradient(180deg, rgba(255,104,48,.08), rgba(255,255,255,.01));
}
.cta-band h2{font-size:23px; margin:0 0 10px; letter-spacing:-.4px}
.cta-band p{color:var(--muted); max-width:520px; margin:0 auto 20px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; justify-content:center}

footer.site{border-top:1px solid var(--line); margin-top:50px; padding:30px 0}
.foot{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--muted-2); font-size:13px; align-items:center}
.foot a{color:var(--muted)} .foot a:hover{color:var(--text); text-decoration:underline}
