* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f5f4f1; margin: 0; }
.mono { font-family: 'Martian Mono', monospace; }

.stg-banner { background: #fef3c7; color: #78350f; font: 500 11px/1 'Martian Mono', monospace; text-align: center; padding: 7px 16px; letter-spacing: .04em; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---------- index ---------- */
.b-head { border-bottom: 1px solid #e2e0db; background: #fff; }
.b-head .wrap { padding-top: 32px; padding-bottom: 0; }
.b-eyebrow { font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #dc2626; }
.b-title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; color: #0f1923; }
.b-sub { color: #4b5563; font-size: 15px; max-width: 620px; line-height: 1.55; margin: 0 0 22px; }
.b-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.b-tabs a { padding: 12px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #4b5563; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.b-tabs a:hover { color: #0f1923; }
.b-tabs a.on { color: #dc2626; border-bottom-color: #dc2626; }

.b-main { padding-top: 28px; padding-bottom: 48px; }
.b-feature { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid #e2e0db; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.b-feature:hover, .b-card:hover { border-color: #cac8c2; box-shadow: 0 8px 32px rgba(0,0,0,.09); }
@media (min-width: 900px) { .b-feature { grid-template-columns: 1.25fr 1fr; } }
.b-feature .b-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.b-feature h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; margin: 12px 0 10px; color: #0f1923; }
.b-feature p { color: #4b5563; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

.img-ph { background: linear-gradient(135deg, #0f1923 0%, #1e2b38 60%, #2a3a4a 100%); position: relative; min-height: 220px; }
.img-ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font: 500 10px/1 'Martian Mono', monospace; color: #94a3b8; letter-spacing: .06em; }
.img-ph.grid-lines { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(135deg, #0f1923, #2a3a4a); background-size: 24px 24px, 24px 24px, auto; }
@media (min-width: 900px) { .b-feature .img-ph { min-height: 340px; } }

.b-cat { font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #dc2626; }
.b-meta { font: 400 11px/1.4 'Martian Mono', monospace; color: #6b7280; display: flex; gap: 10px; flex-wrap: wrap; }
.b-meta .dot { color: #cac8c2; }

.b-section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 14px; border-bottom: 1px solid #e2e0db; padding-bottom: 10px; }
.b-section-h h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #4b5563; margin: 0; }

.b-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .b-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .b-grid { grid-template-columns: 1fr 1fr 1fr; } }
.b-card { background: #fff; border: 1px solid #e2e0db; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.b-card .img-ph { min-height: 160px; }
.b-card .b-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b-card h4 { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0; color: #0f1923; }
.b-card p { font-size: 13.5px; line-height: 1.55; color: #4b5563; margin: 0; flex: 1; }

.b-cta { margin-top: 40px; background: #0f1923; color: #fff; border-radius: 8px; padding: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.b-cta h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.b-cta p { margin: 0; color: #94a3b8; font-size: 13.5px; }
.btn-red { display: inline-block; background: #dc2626; color: #fff; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 12px 20px; border-radius: 2px; }
.btn-red:hover { background: #ef4444; }

/* ---------- article ---------- */
.crumbs { font: 400 11px/1 'Martian Mono', monospace; color: #6b7280; padding: 22px 0 0; }
.crumbs a { color: #6b7280; text-decoration: none; }
.crumbs a:hover { color: #dc2626; }

.a-grid { display: grid; grid-template-columns: 1fr; gap: 48px; padding-top: 20px; padding-bottom: 56px; }
@media (min-width: 1024px) { .a-grid { grid-template-columns: minmax(0, 720px) 260px; justify-content: center; } }

.a-h1 { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #0f1923; margin: 14px 0 14px; }
@media (min-width: 640px) { .a-h1 { font-size: 42px; } }
.a-dek { font-size: 19px; line-height: 1.5; color: #374151; margin: 0 0 22px; }
.a-by { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #e2e0db; border-bottom: 1px solid #e2e0db; margin-bottom: 26px; }
.a-avatar { width: 38px; height: 38px; border-radius: 50%; background: #0f1923; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.a-by .name { font-size: 14px; font-weight: 600; color: #0f1923; }
.a-hero { border-radius: 8px; min-height: 260px; margin-bottom: 8px; }
@media (min-width: 640px) { .a-hero { min-height: 400px; } }
.a-cap { font-size: 12px; color: #6b7280; margin: 0 0 30px; }

.prose { font-size: 17.5px; line-height: 1.75; color: #1f2937; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: #0f1923; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose a { color: #dc2626; text-underline-offset: 3px; }
.prose ul { padding-left: 22px; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid #0f1923; font-size: 21px; line-height: 1.5; font-weight: 600; color: #0f1923; }
.prose blockquote cite { display: block; margin-top: 10px; font: 400 12px/1.4 'Martian Mono', monospace; color: #6b7280; font-style: normal; }

.takeaways { background: #fff; border: 1px solid #e2e0db; border-top: 2px solid #dc2626; border-radius: 6px; padding: 20px 22px; margin: 0 0 32px; }
.takeaways h3 { margin: 0 0 10px; font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #dc2626; }
.takeaways ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; color: #1f2937; }
.takeaways li { margin-bottom: 6px; }

.d-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 8px; background: #fff; border: 1px solid #e2e0db; }
.d-table th { text-align: left; font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; padding: 12px 14px; border-bottom: 1px solid #e2e0db; background: #faf9f7; }
.d-table td { padding: 11px 14px; border-bottom: 1px solid #f0ede8; }
.d-table td.num { font-family: 'Martian Mono', monospace; font-size: 13px; text-align: right; }
.d-table th.num { text-align: right; }
.tbl-wrap { overflow-x: auto; margin-bottom: 8px; }
.tbl-note { font-size: 12px; color: #6b7280; margin: 0 0 26px; }

.inline-cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff; border: 1px solid #e2e0db; border-radius: 6px; padding: 16px 18px; margin: 32px 0; }
.inline-cta strong { font-size: 15px; color: #0f1923; }
.inline-cta span { display: block; font-size: 13px; color: #4b5563; margin-top: 2px; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid #e2e0db; }
.tags a { font: 500 11px/1 'Martian Mono', monospace; color: #374151; background: #fff; border: 1px solid #e2e0db; padding: 7px 10px; border-radius: 2px; text-decoration: none; }
.tags a:hover { border-color: #dc2626; color: #dc2626; }

.a-side { display: none; }
@media (min-width: 1024px) { .a-side { display: block; } }
.a-side .sticky-box { position: sticky; top: 100px; }
.toc h3, .side-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #4b5563; margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: t; border-left: 1px solid #e2e0db; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13px; color: #4b5563; text-decoration: none; line-height: 1.4; }
.toc a::before { content: counter(t, decimal-leading-zero) "  "; font: 400 10px 'Martian Mono', monospace; color: #9ca3af; }
.toc a:hover, .toc a.on { color: #0f1923; border-left-color: #dc2626; }
.side-card { background: #fff; border: 1px solid #e2e0db; border-radius: 6px; padding: 16px; }
.side-card p { font-size: 13px; color: #4b5563; line-height: 1.5; margin: 6px 0 14px; }
.side-stat { font: 500 22px/1 'Martian Mono', monospace; color: #0f1923; }

.related { border-top: 1px solid #e2e0db; background: #fff; }
.related .wrap { padding-top: 32px; padding-bottom: 40px; }

/* ---------- project profile ---------- */
.share { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.share a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e2e0db; border-radius: 4px; color: #4b5563; background: #fff; text-decoration: none; font: 600 11px 'Martian Mono', monospace; }
.share a:hover { border-color: #dc2626; color: #dc2626; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; }

.stage { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 30px; }
.stage div { font: 500 9.5px/1.3 'Martian Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: #9ca3af; padding-top: 10px; border-top: 3px solid #e2e0db; }
.stage div.done { color: #4b5563; border-top-color: #0f1923; }
.stage div.now { color: #dc2626; border-top-color: #dc2626; font-weight: 700; }

.glance { background: #fff; border: 1px solid #e2e0db; border-radius: 6px; overflow: hidden; margin: 0 0 34px; }
.glance h2 { margin: 0; padding: 14px 18px; font: 500 10px/1 'Martian Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #0f1923; }
.glance dl { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .glance dl { grid-template-columns: 1fr 1fr; } }
.glance dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 18px; border-bottom: 1px solid #f0ede8; font-size: 14px; }
@media (min-width: 640px) { .glance dl > div:nth-child(odd) { border-right: 1px solid #f0ede8; } }
.glance dt { color: #6b7280; font-size: 12.5px; }
.glance dd { margin: 0; color: #0f1923; font-weight: 600; }
.glance dd.num { font-family: 'Martian Mono', monospace; font-weight: 500; font-size: 13px; }
.glance dd a { color: #0f1923; text-decoration: underline; text-decoration-color: #cac8c2; text-underline-offset: 3px; }
.glance dd a:hover { color: #dc2626; text-decoration-color: #dc2626; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #e2e0db; border: 1px solid #e2e0db; border-radius: 6px; overflow: hidden; margin: 0 0 30px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpis div { background: #fff; padding: 16px; }
.kpis b { display: block; font: 500 22px/1 'Martian Mono', monospace; color: #0f1923; }
.kpis span { display: block; margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; font-weight: 600; }

.map-ph { border-radius: 6px; min-height: 260px; margin: 6px 0 10px; background: #e9e6df; background-image: linear-gradient(rgba(15,25,35,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,25,35,.06) 1px, transparent 1px); background-size: 32px 32px; position: relative; border: 1px solid #e2e0db; }
.map-ph .pin { position: absolute; left: 52%; top: 44%; width: 14px; height: 14px; background: #dc2626; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(220,38,38,.18); }
.map-ph .lbl { position: absolute; left: calc(52% + 20px); top: calc(44% - 4px); font: 500 11px 'Martian Mono', monospace; color: #0f1923; background: #fff; padding: 4px 7px; border-radius: 2px; border: 1px solid #e2e0db; }

.tl { list-style: none; padding: 0; margin: 6px 0 26px; border-left: 2px solid #e2e0db; }
.tl li { position: relative; padding: 0 0 20px 22px; }
.tl li::before { content: ''; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #0f1923; }
.tl li.future::before { border-color: #cac8c2; border-style: dashed; }
.tl li.latest::before { background: #dc2626; border-color: #dc2626; }
.tl time { display: block; font: 500 11px/1 'Martian Mono', monospace; color: #6b7280; margin-bottom: 6px; letter-spacing: .04em; }
.tl p { margin: 0; font-size: 15.5px; line-height: 1.6; }

.updates { border: 1px solid #e2e0db; border-radius: 6px; background: #fff; margin: 6px 0 26px; }
.updates a { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #f0ede8; text-decoration: none; color: #0f1923; font-size: 15px; font-weight: 600; line-height: 1.4; }
.updates a:last-child { border-bottom: 0; }
.updates a:hover { background: #faf9f7; color: #dc2626; }
.updates time { font: 400 11px/1.6 'Martian Mono', monospace; color: #6b7280; font-weight: 400; }

.verify { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #4b5563; background: #faf9f7; border: 1px dashed #cac8c2; border-radius: 6px; padding: 12px 14px; margin: 30px 0 0; line-height: 1.5; }
.prose .btn-red { color: #fff; text-decoration: none; }
@media (max-width: 480px) { .stage div { font-size: 8px; letter-spacing: 0; overflow-wrap: anywhere; } }

/* ---------- CMS body content (what the admin editor outputs) ---------- */
.prose h3 { font-size: 19px; line-height: 1.35; font-weight: 700; color: #0f1923; margin: 32px 0 10px; }
.prose h4 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4b5563; margin: 26px 0 8px; }
.prose ol { padding-left: 22px; margin: 0 0 22px; }
.prose hr { border: 0; border-top: 1px solid #e2e0db; margin: 36px 0; }
.prose u { text-underline-offset: 3px; }
/* Images: the editor writes <img alt title>; the site wraps it as <figure> + <figcaption> from title */
.prose img { display: block; width: 100%; height: auto; border-radius: 6px; background: #eae8e4; margin: 30px 0; }
.prose figure { margin: 30px 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: 12.5px; line-height: 1.5; color: #6b7280; margin-top: 8px; }
/* Tables typed in the editor: same look as the data tables, scroll on phones */
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; background: #fff; border: 1px solid #e2e0db; margin: 8px 0 26px; display: block; overflow-x: auto; }
@media (min-width: 640px) { .prose table { display: table; } }
.prose th { text-align: left; font: 500 10px/1.3 'Martian Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; padding: 12px 14px; border-bottom: 1px solid #e2e0db; background: #faf9f7; }
.prose td { padding: 11px 14px; border-bottom: 1px solid #f0ede8; vertical-align: top; }
.prose th p, .prose td p { margin: 0; }
