/* Insights (blog): cyan "desktop" theme on top of terminal.css, built for reading. */
.theme-cyan { --g: #00e5ff; --pk: #fa26fa; --gbg: rgba(0, 32, 44, .5); --txt: #d8f7ff; --muted: #8fc6d4; --line: rgba(0, 229, 255, .28); }
.theme-cyan .t-bg { background: radial-gradient(ellipse at 50% 0%, #00303d 0%, #00151d 45%, #000 100%); }
.theme-cyan .g-glow { animation-name: blueTextGlow; }
.theme-cyan .g-glow-h { animation-name: blueTextGlowHeading; }
.theme-cyan .t-head, .theme-cyan .t-foot { border-color: var(--g); }
.theme-cyan .g-btn { background: rgba(0, 60, 80, .25); }

.theme-cyan .crumbs a:hover { text-decoration: underline; }

/* ---------- index ---------- */
.b-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.b-hero .t-lead { color: var(--txt); margin: 0; }
.b-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.b-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.b-filters button { font: 13px/1 'Retro Gaming', monospace; letter-spacing: 1px; color: var(--g); background: transparent; border: 1px solid var(--line); padding: 9px 14px; cursor: pointer; transition: all .2s; }
.b-filters button:hover { border-color: var(--g); }
.b-filters button[aria-pressed="true"] { background: var(--g); color: #001017; border-color: var(--g); box-shadow: 0 0 6px 1.5px var(--g); }
.b-filters button span { opacity: .65; margin-left: 6px; }

.card { position: relative; display: flex; flex-direction: column; background: var(--gbg); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover, .card:focus-within { border-color: var(--g); box-shadow: 0 0 6px 1.5px var(--g); transform: translateY(-3px); }
.card .img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; filter: saturate(.92); }
.card:hover .img img { transform: scale(1.035); filter: saturate(1.1); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; letter-spacing: .5px; color: var(--muted); }
.tag { color: var(--pk); }
.card h2, .card h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 400; margin: 0; color: #fff; }
.card h2 a, .card h3 a { color: #fff; }
.card h2 a::after, .card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card p { font: 400 .93rem/1.6 'Open Sans', sans-serif; color: var(--muted); margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .go { font-size: 12px; color: var(--g); letter-spacing: 1px; }
.card.hidden { display: none; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-bottom: 26px; }
.feat .img { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.feat .body { padding: clamp(22px, 4vw, 48px); justify-content: center; gap: 16px; }
.feat .label { font-size: 12px; letter-spacing: 2px; color: #001017; background: var(--g); align-self: flex-start; padding: 5px 9px; box-shadow: 0 0 6px 1.5px var(--g); }
.feat h2 { font-size: clamp(1.4rem, 2.8vw, 2.2rem); line-height: 1.2; }
.feat p { font-size: 1.02rem; -webkit-line-clamp: 4; color: var(--txt); }
@media (max-width: 820px) { .feat { grid-template-columns: 1fr; } .feat .img { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 1 / 1; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.series { margin-top: 72px; padding: 30px 26px; border: 1px solid var(--pk); box-shadow: 0 0 6px 1.5px var(--pk); background: rgba(60, 0, 60, .25); }
.series h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 400; margin: 0 0 8px; color: #fff; }
.series h2 em { font-style: normal; background: var(--pk); padding: 0 .2em; }
.series > p { font: 400 1rem/1.6 'Open Sans', sans-serif; color: var(--txt); max-width: 760px; margin: 0 0 22px; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.eps a { position: relative; display: block; border: 1px solid rgba(250, 38, 250, .45); background: #000; transition: box-shadow .2s, border-color .2s; }
.eps a:hover { border-color: var(--pk); box-shadow: 0 0 6px 1px var(--pk); }
.eps img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.eps span { position: absolute; left: 0; bottom: 0; right: 0; padding: 6px 8px; font-size: 11px; color: #fff; background: rgba(0, 0, 0, .78); }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--g); box-shadow: 0 0 6px 1px var(--g); z-index: 120; }
.post { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 10px; }
.post-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 22px; }
.post-aside .cover { border: 2px solid var(--g); box-shadow: 0 0 6px 1.5px var(--g); background: #000; }
.post-aside .cover img { display: block; width: 100%; height: auto; }
.toc { border-left: 2px solid var(--line); padding-left: 16px; }
.toc p { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; scrollbar-width: none; }
.toc a { font: 400 .88rem/1.4 'Open Sans', sans-serif; color: var(--muted); transition: color .2s; display: block; }
.toc a:hover, .toc a.on { color: var(--g); }
.toc a.on { text-shadow: 0 0 1px var(--g); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { font: 12px/1 'Retro Gaming', monospace; letter-spacing: 1px; color: var(--g); border: 1px solid var(--line); background: transparent; padding: 8px 10px; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--g); }

.post-head { margin-bottom: 30px; }
.post-head .meta { font-size: 13px; margin-bottom: 18px; }
.post-h1 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.16; font-weight: 400; margin: 0 0 20px; color: #fff; }
.post-lead { font: 400 1.18rem/1.65 'Open Sans', sans-serif; color: var(--txt); margin: 0; padding-left: 18px; border-left: 3px solid var(--pk); }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.byline .av { width: 40px; height: 40px; border: 1px solid var(--g); display: flex; align-items: center; justify-content: center; color: var(--g); font-size: 15px; flex-shrink: 0; }
.byline b { color: #fff; font-weight: 400; display: block; margin-bottom: 3px; }

.article { max-width: 720px; font: 400 1.075rem/1.8 'Open Sans', sans-serif; color: #e3f9ff; }
.article > *:first-child { margin-top: 0; }
.article p { margin: 0 0 1.25em; }
.article h2, .article h3 { font-family: 'Retro Gaming', monospace; font-weight: 400; color: var(--g); line-height: 1.3; margin: 2.1em 0 .7em; scroll-margin-top: 24px; animation: blueTextGlowHeading 2s linear infinite; }
.article h2 { font-size: 1.55rem; }
.article h3 { font-size: 1.3rem; }
.article h4 { font: 700 1.05rem/1.4 'Open Sans', sans-serif; color: #fff; margin: 1.6em 0 .5em; }
.article strong { color: #fff; font-weight: 600; }
.article a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 1.7em; margin-bottom: .6em; }
.article ul > li::before { content: '>'; position: absolute; left: 0; top: 0; color: var(--pk); font-family: 'Retro Gaming', monospace; }
.article ol { counter-reset: li; }
.article ol > li::before { counter-increment: li; content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .15em; font: 12px 'Retro Gaming', monospace; color: var(--pk); }
.article img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--g); color: #fff; font-style: italic; }

.post-end { max-width: 720px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn a { border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.pn a:hover { border-color: var(--g); box-shadow: 0 0 6px 1px var(--g); }
.pn small { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.pn span { font-size: .95rem; line-height: 1.35; color: #fff; }
.pn .nx { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } .pn .nx { grid-column: auto; } }
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; padding: 20px; border: 1px solid var(--line); background: var(--gbg); }
.author .av { width: 52px; height: 52px; font-size: 18px; border: 1px solid var(--g); color: var(--g); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author b { display: block; color: #fff; font-weight: 400; margin-bottom: 6px; }
.author p { font: 400 .95rem/1.6 'Open Sans', sans-serif; color: var(--muted); margin: 0; }
.author a { color: var(--g); }
.related-h { font-size: 1.3rem; font-weight: 400; color: #fff; margin: 70px 0 22px; }

@media (max-width: 960px) {
  .post { grid-template-columns: 1fr; }
  .post-aside { position: static; order: 2; }
  .post-aside .cover { display: none; }
  .post-main { order: 1; }
  .post-cover-m { display: block !important; max-width: 520px; margin: 0 0 26px; border: 2px solid var(--g); box-shadow: 0 0 6px 1.5px var(--g); }
  .toc ol { max-height: none; }
}
.post-cover-m { display: none; }
.post-cover-m img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .article { font-size: 1.02rem; } .post-lead { font-size: 1.06rem; } }
.card p.meta { display: flex; -webkit-line-clamp: unset; overflow: visible; flex: 0 0 auto; color: var(--muted); font: 12px/1.4 'Retro Gaming', monospace; letter-spacing: .5px; }
.eps img { height: auto; }
.b-series-link { font: 13px/1 'Retro Gaming', monospace; letter-spacing: 1px; color: var(--pk) !important; border: 1px solid rgba(250,38,250,.5); padding: 9px 14px; transition: all .2s; }
.b-series-link:hover { border-color: var(--pk); box-shadow: 0 0 6px 1px var(--pk); }
.b-series-link span { opacity: .65; margin-left: 6px; }

/* ---------- article spacing + accessible interaction states ---------- */
.theme-cyan .t-main { padding-top: clamp(28px, 5vh, 52px); padding-bottom: 72px; }
.back-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 clamp(28px, 5vh, 48px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.back-row .crumbs { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 1px; color: var(--g); border: 1px solid var(--g); padding: 10px 16px; background: rgba(0, 229, 255, .06); transition: background-color .2s, color .2s; }
.back-link span { transition: transform .2s; }
.back-link:hover, .back-link:focus-visible { background: var(--g); color: #001017; outline: none; }
.back-link:hover span, .back-link:focus-visible span { transform: translateX(-4px); }
.back-link:focus-visible { box-shadow: 0 0 0 3px #001017, 0 0 0 5px var(--g); }
.post-head { margin-bottom: 40px; }
.article p { margin-bottom: 1.45em; }
.post-end { margin-top: 64px; padding-top: 34px; }
.related-h { margin-top: 90px; }
.theme-cyan .t-bar { padding-top: 14px; }
/* focus styles that do not rely on colour alone */
.theme-cyan a:focus-visible, .theme-cyan button:focus-visible, .theme-cyan summary:focus-visible { outline: 2px dashed var(--g); outline-offset: 4px; }
.card:focus-within { outline: 2px dashed var(--g); outline-offset: 4px; }
.card h2 a:focus-visible, .card h3 a:focus-visible { outline: none; }
.card:hover h2 a, .card:hover h3 a, .card:focus-within h2 a, .card:focus-within h3 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--g); }
.card:hover .go, .card:focus-within .go { text-decoration: underline; text-underline-offset: 4px; }
.toc a:hover, .toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.toc a.on { font-weight: 600; }
.pn a:hover span, .pn a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.share a:hover, .share button:hover, .share a:focus-visible, .share button:focus-visible { background: var(--g); color: #001017; border-color: var(--g); }
.b-filters button:hover { background: rgba(0, 229, 255, .1); }
.b-filters button:focus-visible { outline: 2px dashed var(--g); outline-offset: 3px; }
.article a:hover, .article a:focus-visible { text-decoration-thickness: 2px; background: rgba(0, 229, 255, .12); }
.eps a:focus-visible { outline: 2px dashed var(--pk); outline-offset: 3px; }

/* blog + case studies keep the secondary font for long reading */
.theme-cyan .t-lead, .theme-cyan .t-p, .theme-cyan .t-list, .theme-cyan .faq details p { font-family: 'Open Sans', sans-serif; }
