/* Blog (/blog and /blog/<slug>): loads after /orion/styles.css, so nav, buttons and footer match the home page */
.blog { --measure: 700px; }
.blog .nav { background: rgba(6,8,20,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--edge); }
.nav__links a[aria-current] { background: var(--glass-2); color: var(--text); }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Blog index ---------- */
.index__head { padding-top: 72px; padding-bottom: 56px; }
.index__head h1 { max-width: 16ch; margin-bottom: 22px; font-size: clamp(40px, 5.4vw, 72px); }
.index__head .lead { max-width: 60ch; margin: 0; }
.index__list { padding-top: 96px; padding-bottom: 96px; }
.index__h { margin-bottom: 32px; font-size: clamp(26px, 3vw, 36px); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pcard--big .pcard__body { padding: 30px 32px 34px; gap: 12px; }
.pcard--big h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.18; }
.pcard--big p { font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--glass); border: 1px solid var(--edge); text-decoration: none; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.pcard:hover { border-color: rgba(111,227,255,.35); transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(123,108,255,.6); }
.pcard__img { aspect-ratio: 16 / 9; overflow: hidden; background: #0B0F24; }
.pcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 24px 26px; }
.pcard__body h3 { font-size: 19px; line-height: 1.3; }
.pcard__body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--cyan); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14.5px; color: var(--text); }
.more-link .i { width: 16px; height: 16px; }
.pcard:hover .more-link { color: var(--cyan); }
.pcard:hover .more-link .i { transform: translateX(4px); }

/* ---------- Article ---------- */
/* Header, cover and the TOC + text grid share one column, so their edges line up */
.post { --col: calc(240px + 72px + var(--measure)); }
.post__head { max-width: calc(var(--col) + var(--gutter) * 2); padding-top: 64px; padding-bottom: 40px; }
.post__head > * { max-width: 880px; }
.post__head h1 { margin-bottom: 20px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; text-wrap: balance; }
.post__lead { max-width: 62ch; font-size: 19px; line-height: 1.6; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge-hi); }
.byline div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.byline b { color: var(--text); font-size: 15px; }
.post__cover { max-width: calc(var(--col) + var(--gutter) * 2); margin: 0 auto; }
.post__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--edge); box-shadow: 0 40px 100px -40px rgba(123,108,255,.5); }

.post__grid { display: grid; grid-template-columns: 240px minmax(0, var(--measure)); justify-content: center; gap: 72px; padding-top: 64px; padding-bottom: 40px; }
.toc { position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; font-size: 14px; }
.toc__h { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--edge); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.45; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--cyan); }

.prose { min-width: 0; font-size: 17.5px; line-height: 1.78; color: #D4D9EA; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; color: var(--text); scroll-margin-top: 100px; text-wrap: balance; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 20px; color: var(--text); scroll-margin-top: 100px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .55em; padding-left: .2em; }
.prose li::marker { color: var(--cyan); font-weight: 700; }
.prose .link { color: var(--text); background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 100% 1px; }
.prose .link:hover { color: var(--cyan); background-size: 100% 2px; }
.prose code { padding: .1em .4em; border-radius: 6px; background: var(--glass-2); font-size: .9em; }
.note { margin: 1.6em 0; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(135deg, rgba(123,108,255,.14), rgba(111,227,255,.06)); border: 1px solid rgba(123,108,255,.3); }
.note p { margin: 0; color: var(--text); }
.table { margin: 1.6em 0; overflow-x: auto; border-radius: var(--r); border: 1px solid var(--edge); background: var(--glass); }
.table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.table th { color: var(--text); font-weight: 700; background: rgba(255,255,255,.04); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--text); font-weight: 600; }

/* Call to action at the end of each article + on the index */
.pitch { position: relative; margin-top: 56px; padding: 40px; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(80% 120% at 0% 0%, rgba(123,108,255,.28), transparent 60%), radial-gradient(70% 100% at 100% 100%, rgba(111,227,255,.14), transparent 60%), #0B0F24; border: 1px solid rgba(123,108,255,.35); }
.pitch .label { margin-bottom: 14px; }
.pitch h2 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.pitch p { color: #C7CDE2; }
.pitch__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pitch__who { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--edge); font-size: 14px; line-height: 1.55; color: var(--muted) !important; }
.pitch__who img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.pitch--wide { display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 48px; margin: 0 0 120px; padding: 56px; }
.pitch--wide p:last-child { margin-bottom: 0; }
.pitch--wide .pitch__ctas { margin-top: 0; flex-direction: column; }

.more { padding-top: 72px; padding-bottom: 120px; }
.more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; padding-top: 56px; border-top: 1px solid var(--edge); }
.more__head h2 { font-size: clamp(26px, 3vw, 36px); }
.more__head .link { font-weight: 700; font-size: 15px; }

@media (max-width: 1100px) {
  .post { --col: var(--measure); }
  .more .pcard:nth-child(3) { display: none; } /* 2 columns: keep the row even */
  .post__grid { grid-template-columns: minmax(0, var(--measure)); gap: 0; }
  .toc { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .pitch--wide { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .pitch--wide .pitch__ctas { flex-direction: row; }
}
@media (max-width: 640px) {
  .index__head { padding-top: 40px; padding-bottom: 36px; }
  .index__list { padding-top: 64px; padding-bottom: 64px; }
  .cards { grid-template-columns: 1fr; }
  .more .pcard:nth-child(3) { display: flex; }
  .pcard--big .pcard__body { padding: 24px 24px 26px; }
  .post__head { padding-top: 36px; padding-bottom: 28px; }
  .post__lead { font-size: 17.5px; }
  .post__cover img { border-radius: var(--r); }
  .post__grid { padding-top: 40px; }
  .prose { font-size: 16.5px; line-height: 1.75; }
  .pitch, .pitch--wide { padding: 26px 22px; }
  .pitch--wide { margin-bottom: 72px; }
  .pitch__ctas .btn, .pitch--wide .pitch__ctas { width: 100%; }
  .pitch--wide .pitch__ctas { flex-direction: column; }
  .more { padding-top: 40px; padding-bottom: 72px; }
  .more__head { padding-top: 40px; }
  .table thead { display: none; }
  .table table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--edge); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 3px 0; border: 0; }
  .table td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard__img img { transition: none; }
  .pcard:hover, .pcard:hover .pcard__img img { transform: none; }
}
