/* tech-gaming.space — dashboard template (dark). Change only this :root block to restyle. */
:root {
  --primary: #9333ea;
  --accent: #14b8a6;
  --bg: #0f0f14;
  --surface: #1d1d22;
  --surface-2: #27272c;
  --text: #ececf1;
  --muted: #9f9fa3;
  --border: #353539;
  --link: #14b8a6;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }

.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

/* Sidebar */
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo img { height: 32px; width: auto; margin: 0 6px 28px; }
.side-label { font: 700 11px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 22px 8px 10px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.side-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); opacity: .7; }
.side-nav a:hover { background: var(--surface-2); text-decoration: none; }
.side-foot { margin-top: 28px; font-size: 13px; color: var(--muted); padding: 0 8px; }

/* Main column */
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.pill { background: var(--primary); color: #fff; font: 700 12px/1 var(--font-head); padding: 7px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.content { padding: 32px; max-width: 1080px; }

/* Home */
.intro h1 { font-size: clamp(34px, 5vw, 52px); text-transform: uppercase; }
.intro p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 28px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 36px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 10px; padding: 16px 18px; }
.tile:nth-child(even) { border-top-color: var(--accent); }
.tile b { display: block; font: 700 22px/1.2 var(--font-head); }
.tile span { color: var(--muted); font-size: 13px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 28px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 20px; margin: 0; text-transform: uppercase; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.rows li:last-child { border-bottom: 0; }
.rows .tag { font: 700 12px/1 var(--font-head); text-transform: uppercase; color: var(--link); letter-spacing: .06em; }
.rows a { color: var(--text); font-weight: 600; }
.rows .when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }

/* Article & pages */
.doc-head { margin-bottom: 26px; max-width: 760px; }
.doc-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.doc-head .dek { color: var(--muted); font-size: 18px; margin: 0 0 12px; }
.meta { color: var(--muted); font-size: 14px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.doc.single { grid-template-columns: minmax(0, 760px); }
.prose h2 { font-size: 26px; margin-top: 1.6em; text-transform: uppercase; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th { background: var(--surface-2); font-family: var(--font-head); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose tr:last-child td { border-bottom: 0; }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; position: sticky; top: 84px; }
.facts h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts ul { margin: 0; padding-left: 18px; }
.facts li { margin-bottom: 8px; }

.foot { border-top: 1px solid var(--border); padding: 24px 32px 40px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.foot a { color: var(--muted); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .logo img { margin: 0 0 12px; }
  .side-label, .side-foot { display: none; }
  .side-nav { display: flex; gap: 6px; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .topbar { position: static; padding: 12px 16px; }
  .content { padding: 22px 16px; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot { padding: 20px 16px 32px; }
}

/* Long words and URLs wrap instead of widening the page on phones */
h1, h2, h3, p, li, td, th, dd, blockquote { overflow-wrap: break-word; }

/* ===== SITE IDENTITY: Tech Gaming — radar console ===== */
:root { --violet: #a855f7; --teal: #2dd4bf; --glow: rgba(147, 51, 234, .45); --line: rgba(255, 255, 255, .08); --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; }
body { background: radial-gradient(900px 500px at 100% -10%, rgba(147, 51, 234, .16), transparent 60%), radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 22px 22px, var(--bg); }
h1, h2, h3 { letter-spacing: -.01em; }
.side { background: rgba(20, 20, 27, .94); border-right-color: var(--line); }
.side-label { color: var(--teal); font-family: var(--mono); letter-spacing: .1em; }
.side-nav a { font-weight: 500; color: #cfcfd8; border-radius: 6px; }
.side-nav a::before { content: ">"; width: auto; height: auto; background: none; border-radius: 0; color: var(--teal); font: 600 13px/1 var(--mono); opacity: .85; }
.side-nav a:hover { background: rgba(147, 51, 234, .16); color: #fff; }
.side-foot { font-family: var(--mono); font-size: 12px; }
.topbar { background: rgba(15, 15, 20, .82); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.crumbs, .crumbs a { font-family: var(--mono); font-size: 13px; }
.pill { background: linear-gradient(90deg, var(--primary), #0d9488); white-space: nowrap; }

.tg-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 4px 0 30px; }
.tg-eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.tg-eyebrow i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.tg-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; margin: 14px 0; color: #fff; }
.tg-hero p { color: #b4b4c2; font-size: 18px; margin: 0; max-width: 560px; }
.tg-hero .tg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tg-btn { font-weight: 600; padding: 11px 18px; border-radius: 8px; background: var(--primary); color: #fff; box-shadow: 0 10px 30px -12px var(--glow); }
.tg-btn:hover { text-decoration: none; background: #7e22ce; }
.tg-btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.tg-btn.ghost:hover { background: rgba(45, 212, 191, .1); }
.tg-radar { width: 100%; max-width: 330px; justify-self: center; overflow: visible; }
.tg-radar .ring { fill: none; stroke: rgba(45, 212, 191, .22); }
.tg-radar circle.ring:first-child { fill: rgba(147, 51, 234, .05); }
.tg-radar .axis { stroke: rgba(255, 255, 255, .1); }
.tg-radar .sweep { transform-origin: 160px 160px; animation: tg-spin 7s linear infinite; }
.tg-radar .blip { fill: var(--teal); }
.tg-radar .blip.v { fill: var(--violet); }
.tg-radar .ping { fill: none; stroke: var(--teal); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: tg-ping 2.8s ease-out infinite; }
.tg-radar .ping.v { stroke: var(--violet); animation-delay: 1.4s; }
.tg-radar text { font: 600 12px var(--mono); fill: #c9c9d4; text-anchor: middle; letter-spacing: .03em; }
@keyframes tg-spin { to { transform: rotate(360deg); } }
@keyframes tg-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tg-radar .sweep, .tg-radar .ping { animation: none; } }

.tg-tiles .tile { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); border-radius: 12px; padding: 16px 18px 18px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tg-tiles .tile:nth-child(even) { border-top-color: var(--line); }
.tg-tiles .tile:hover { text-decoration: none; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 16px 30px -18px var(--glow); }
.tg-tiles code { display: block; font: 600 12px/1.4 var(--mono); color: var(--teal); margin-bottom: 8px; }
.tg-tiles .tile:nth-child(even) code { color: var(--violet); }
.tg-tiles b { font-size: 18px; color: #fff; }
.tg-tiles span { font-size: 13.5px; }
.tg-tiles + .tool-teaser { margin: -10px 0 28px; }

.panel { background: rgba(255, 255, 255, .025); border-color: var(--line); border-radius: 14px; }
.panel-head { border-bottom-color: var(--line); }
.panel-head h2 { font: 600 14px/1 var(--mono); letter-spacing: .06em; color: #e4e4ea; text-transform: uppercase; }
.panel-head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 10px var(--teal); }
.rows li { border-bottom-color: var(--line); grid-template-columns: 170px 1fr auto; }
.rows li:hover { background: rgba(147, 51, 234, .08); }
.rows .tag { font: 600 12px/1.3 var(--mono); color: var(--violet); text-transform: none; letter-spacing: 0; }
.rows .tag::before { content: "#"; opacity: .6; }
.rows .when { font-family: var(--mono); font-size: 12.5px; }
.hub-panel .rows li { grid-template-columns: 1fr auto; }

.doc-head .tg-eyebrow { margin-bottom: 12px; }
.doc-head h1 { color: #fff; text-transform: none; }
.prose h2 { text-transform: none; font-size: 25px; padding-left: 14px; border-left: 3px solid var(--primary); }
.prose h2#sources { border-left-color: var(--accent); }
.prose th { background: rgba(147, 51, 234, .18); color: #ede9fe; text-transform: none; letter-spacing: .02em; font: 600 13px/1.4 var(--mono); }
.prose td { font-variant-numeric: tabular-nums; }
.prose pre { background: #09090d; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.prose code { font-family: var(--mono); }
.prose :not(pre) > code { font-size: .88em; background: rgba(45, 212, 191, .1); color: var(--teal); padding: 2px 6px; border-radius: 5px; }
.prose .tg-idea, .prose .tg-example, .prose .tg-warn { border-radius: 12px; padding: 14px 18px; margin: 1.5em 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.prose .tg-idea { border-left: 3px solid var(--teal); }
.prose .tg-example { border-left: 3px solid var(--violet); }
.prose .tg-warn { border-left: 3px solid #f59e0b; }
.prose .tg-idea p:last-child, .prose .tg-example p:last-child, .prose .tg-warn p:last-child { margin-bottom: 0; }
.prose .note { font-size: 14px; color: var(--muted); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--violet); color: #d4d4dc; font-size: 19px; }
.prose ul.tg-takeaways { list-style: none; padding: 0; }
.prose ul.tg-takeaways li { position: relative; padding-left: 26px; }
.prose ul.tg-takeaways li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.facts { background: rgba(147, 51, 234, .08); border-color: rgba(147, 51, 234, .35); }
.facts h3 { color: var(--teal); font-family: var(--mono); text-transform: none; letter-spacing: .02em; }
.facts li::marker { color: var(--violet); }
.sources { font-size: 15px; }
.foot { border-top-color: var(--line); }

@media (max-width: 1000px) { .tg-hero { grid-template-columns: minmax(0, 1fr); } .tg-radar { max-width: 250px; justify-self: start; } }
@media (max-width: 800px) {
  .side-nav { flex-wrap: wrap; gap: 4px; overflow: visible; }
  .side-nav a { padding: 5px 10px; font-size: 14px; background: rgba(255, 255, 255, .04); }
  .rows li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; } .tg-radar { max-width: 210px; } }

/* ===== TOOLS + READ NEXT (shared, uses the site's colours) ===== */
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin: 1.2em 0 1.6em; }
.tool-h { font-size: 17px; margin: 4px 0 12px; }
.tool-h ~ .tool-h { margin-top: 20px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tool-grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool label, .tool legend { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); font-family: var(--font-body); }
.tool input, .tool textarea { font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.tool textarea { resize: vertical; }
.tool select { font: 400 16px/1.4 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; }
.tool input:focus, .tool textarea:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.tool input.bad, .tool textarea.bad { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.tool fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
.tool legend { padding: 0 6px; color: var(--text); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tool button { font: 600 15px/1 var(--font-body); border: 0; border-radius: 8px; padding: 11px 16px; background: var(--primary); color: #fff; cursor: pointer; }
.tool button.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
.tool-result { margin-top: 16px; }
.tool-result .table-wrap { margin-bottom: 0; }
.tool-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.tool-big > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tool-big b { display: block; font: 700 26px/1.15 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; }
.tool-big span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tool-big .up { color: #b91c1c; } .tool-big .down { color: #047857; }
.tool-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.tool-verdict { font-weight: 600; margin: 0 0 12px; }
.tool .bar { display: block; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.tool .bar i { display: block; height: 100%; background: var(--primary); }
.tool td b { color: var(--text); }
.sg-matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 16px; }
.sg-match { display: grid; grid-template-columns: 1fr 52px 14px 52px 1fr; align-items: center; gap: 6px; font-size: 14px; }
.sg-match span:first-child { text-align: right; }
.sg-match input { text-align: center; padding: 8px 4px; }
.sg-match em { text-align: center; color: var(--muted); font-style: normal; }
.sg-table td:last-child { font-weight: 600; white-space: nowrap; }
.cp-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cp-teams fieldset .tool-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }

.tool-teaser { display: flex; align-items: center; gap: 16px; margin: 20px 0 6px; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.tool-teaser:hover { border-color: var(--link); text-decoration: none; }
.tool-teaser .ico { flex: none; width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--font-head); }
.tool-teaser b { display: block; font-family: var(--font-head); font-size: 19px; line-height: 1.25; }
.tool-teaser .t { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.tool-teaser::after { content: "→"; margin-left: auto; padding-left: 8px; color: var(--link); font-size: 22px; }
@media (max-width: 480px) {
  .tool-teaser { gap: 12px; padding: 14px 16px; align-items: flex-start; }
  .tool-teaser::after { display: none; }
  .tool-teaser .ico { width: 40px; height: 40px; font-size: 15px; }
  .tool-teaser b { font-size: 17px; }
}

.related { margin: 40px 0 8px; padding-top: 22px; border-top: 2px solid var(--border); }
.prose .related-h { font-size: 20px; margin: 0 0 8px; padding: 0; border: 0; text-transform: none; }
.prose .related-h::before, .prose .related-h::after { content: none; }
.related-list { list-style: none; padding: 0; margin: 0 0 18px; }
.related-list li { padding: 9px 0; border-bottom: 1px dashed var(--border); line-height: 1.4; }
.related-list a { font-weight: 600; }
.related-list span { color: var(--muted); font-size: 14px; }
.tool-cta { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); color: var(--text); text-decoration: none; }
.tool-cta:hover { text-decoration: none; border-color: var(--link); }
.tool-cta b { font-family: var(--font-head); font-size: 18px; }
.tool-cta b::after { content: " →"; color: var(--link); }
.tool-cta span { color: var(--muted); font-size: 15px; }

/* breadcrumbs + section pages */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 -4px; font-size: 14px; color: var(--muted); font-family: var(--font-body); }
.trail a { color: var(--muted); text-decoration: none; }
.trail a:hover { color: var(--link); text-decoration: underline; }
.trail .sep { opacity: .55; }
.trail + .article-head, .trail + .page-head, .trail + .post-head, .trail + .entry-head { padding-top: 22px; }
.trail + .doc-title { margin-top: 18px; }
.prose:has(+ .hub-body) { padding-bottom: 0; }
.hub-body { margin: 6px 0 56px; }
.hub-h { font-size: 22px; margin: 30px 0 14px; }
.hub-empty { color: var(--muted); font-style: italic; padding: 10px 0; }
.hub-body .tool-cta { margin-top: 26px; }
.prose figure.chart { margin: 1.7em 0; }
.prose figure.chart img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--border); }
.prose figure.chart figcaption { max-width: 560px; margin: 8px auto 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Reviewed old-article navigation and accessible reading controls */
.article-map{margin-block:1.5rem;padding:1.1rem 1.25rem;border:1px solid currentColor;border-radius:var(--radius,8px);font:inherit}
.article-map summary{cursor:pointer;font-weight:700;line-height:1.5}
.article-map ul{margin-block:1rem 0;padding-inline-start:1.25rem;display:grid;gap:.55rem}
.article-map a{color:inherit;text-decoration:underline;text-underline-offset:.18em;overflow-wrap:anywhere}
main h2[id],main h3[id]{scroll-margin-top:5rem}
main pre{max-width:100%;overflow-x:auto}main table{display:block;max-width:100%;overflow-x:auto}
main img{max-width:100%;height:auto}
main a:focus-visible,main summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:600px){.article-map{padding:.9rem}.article-map ul{gap:.75rem}}

/* studio-featured-v1 */
.featured-image{margin:24px 0 30px}.featured-image img{display:block;width:100%;height:auto;border-radius:16px}.featured-image figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:8px}.card .thumb{position:relative;overflow:hidden;aspect-ratio:16/9}.card .thumb>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.card .thumb>span{position:relative;z-index:1}

/* studio-listing-covers-v2: current article cover on home, hubs and related rows */
.card>.thumb{display:block;position:relative;overflow:hidden;aspect-ratio:16/9}
.card>.thumb>img,.post>.img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.post>.img{position:relative;overflow:hidden}
li.has-listing-picture{display:grid;grid-template-columns:minmax(88px,24%) minmax(0,1fr);gap:1rem;align-items:start}
.listing-picture{display:block;min-width:0;overflow:hidden;border-radius:var(--radius,4px)}
.listing-picture>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.listing-copy{min-width:0}.listing-copy>a{display:block}.listing-copy>span,.listing-copy>time{display:block}
.listing-copy p{margin-block:.5rem}.guide-card-image img{display:block;width:100%;height:auto;object-fit:cover}
@media(max-width:480px){li.has-listing-picture{grid-template-columns:88px minmax(0,1fr);gap:.75rem}}

.rows li.has-listing-picture,.guides li.has-listing-picture,.hub-panel .rows li.has-listing-picture,.hub-body li.has-listing-picture,.related-list li.has-listing-picture{grid-template-columns:clamp(88px,22%,180px) minmax(0,1fr)}
@media(max-width:480px){.rows li.has-listing-picture,.hub-panel .rows li.has-listing-picture{grid-template-columns:minmax(0,1fr)}.guides li.has-listing-picture,.hub-body li.has-listing-picture,.related-list li.has-listing-picture{grid-template-columns:88px minmax(0,1fr)}}

/* studio-topic-chips-v1 */
.article-topics{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:1.5rem}.article-topics a{padding:.35rem .7rem;border:1px solid currentColor;border-radius:var(--radius,4px);font:inherit;font-size:.85em}

/* studio-featured-article-v2 */
.featured-image{margin:1.5rem 0}.featured-image img{display:block;max-width:100%;height:auto;border-radius:var(--radius,12px)}.card .thumb,.post .img{position:relative;overflow:hidden}.card .thumb>img,.post .img>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.card .thumb>span,.post .img>span{position:relative;z-index:1}

/* sd-release:tech-gaming.space-refresh-v1 */
/* Producto SaaS: tarjetas limpias, sombras suaves y llamados claros a las herramientas. Colores de marca sin cambios (#9333ea, #14b8a6 sobre #0f0f14). */
.doc-head { padding-bottom: 6px; }
.doc-head .dek { max-width: 680px; }
.prose h2 { margin-top: 1.9em; }
.tg-lede { font-size: 17.5px; line-height: 1.6; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 12px 32px -22px rgba(0,0,0,.9); }
.tg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1em 0 1.4em; }
.tg-card { padding: 18px; border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); box-shadow: 0 14px 30px -24px rgba(147,51,234,.7); }
.tg-card b { display: block; font: 600 16px/1.3 var(--font-head); color: #fff; margin-bottom: 6px; }
.tg-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tg-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.tg-route { counter-reset: tgr; list-style: none; padding: 0; }
.tg-route li { counter-increment: tgr; position: relative; padding: 14px 16px 14px 58px; margin-bottom: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 26px -22px rgba(0,0,0,.9); }
.tg-route li::before { content: counter(tgr); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 14px/1 var(--font-head); color: #fff; background: var(--primary); }
.tg-route li b { color: var(--text); }
.tool { border-radius: 16px; box-shadow: 0 18px 44px -30px rgba(20,184,166,.55); }
.tool-cta { border-radius: 14px; border-left-width: 1px; box-shadow: 0 12px 30px -24px rgba(20,184,166,.8); background: linear-gradient(135deg, rgba(147,51,234,.12), rgba(20,184,166,.06)), var(--surface); }
.tool-cta + .tool-cta { margin-top: 10px; }
.hub-panel { border-radius: 14px; }
.tg-trk-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.tg-trk-kpi { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.tg-trk-kpi b { display: block; font: 700 22px/1.15 var(--font-head); color: #fff; }
.tg-trk-kpi span { font-size: 13.5px; color: var(--muted); }
.tg-trk-main { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tg-trk-main b { color: var(--accent); }
.tg-trk-msg { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) {
  .tg-cards { grid-template-columns: minmax(0, 1fr); }
  .tg-route li { padding-left: 52px; }
  .tg-cta-row .tg-btn { flex: 1 1 100%; text-align: center; }
}

/* sd-release:tech-gaming.space-identity-v1 */
/* Pipeline: charcoal ground, a vertical stage-pipe menu with linked nodes, chevron stage chip, chamfered stage cards. Teal and purple kept. */
:root {
  --bg: #15171b; --surface: #1d2025; --surface-2: #272b32; --text: #eceef2; --muted: #a6acb8; --border: #353a44;
  --primary: #9333ea; --accent: #14b8a6; --link: #2dd4bf; --teal: #2dd4bf; --violet: #c084fc;
  --line: rgba(45, 212, 191, .16); --glow: rgba(147, 51, 234, .4);
  --font-head: "Chakra Petch", "Trebuchet MS", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --mono: "DM Mono", ui-monospace, Consolas, monospace;
}
body { background: linear-gradient(rgba(45, 212, 191, .045) 1px, transparent 1px) 0 0 / 100% 56px, radial-gradient(760px 420px at 100% -8%, rgba(147, 51, 234, .17), transparent 62%), var(--bg); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }

/* sidebar = a pipeline: nodes joined by a vertical pipe */
.side { background: #1a1d22; border-right: 1px solid var(--line); }
.side .logo { display: block; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.side .logo img { margin-bottom: 0; }
.side-label { color: var(--violet); font: 500 11.5px/1 var(--mono); letter-spacing: .12em; }
.side-label::before { content: "|> "; color: var(--teal); }
.side-nav { position: relative; padding: 2px 0; }
.side-nav li { position: relative; }
.side-nav li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 28px; bottom: -8px; width: 2px; background: linear-gradient(var(--teal), var(--violet)); opacity: .32; }
.side-nav a { gap: 12px; padding: 8px 10px 8px 8px; font-weight: 500; border-radius: 4px; position: relative; z-index: 1; }
.side-nav a::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--teal); background: #1a1d22; margin-left: 1px; opacity: 1; font: 0/0 var(--mono); }
.side-nav li:nth-child(even) a::before { border-color: var(--violet); }
.side-nav a:hover { background: rgba(45, 212, 191, .08); color: #fff; }
.side-nav a:hover::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .18); }
.side-nav li:nth-child(even) a:hover::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(192, 132, 252, .2); }
.side-foot { color: #8f95a3; border-top: 1px dashed var(--line); padding-top: 14px; }

/* top bar: breadcrumb path + chevron stage chip */
.topbar { background: rgba(21, 23, 27, .88); border-bottom: 1px solid var(--line); }
.crumbs, .crumbs a { color: #b4bac6; }
.crumbs { padding-left: 14px; border-left: 3px solid var(--teal); }
.pill { background: linear-gradient(90deg, #7e22ce, #0f9e90); padding: 8px 26px 8px 14px; border-radius: 0; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); font: 600 11.5px/1 var(--mono); letter-spacing: .08em; color: #fff; }

/* hero: stage diagram replaces the radar */
.tg-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.tg-radar { display: none; }
.tg-hero::after { content: ""; display: block; width: 100%; max-width: 340px; aspect-ratio: 6 / 5; justify-self: center; background: url(/img/identity-hero.svg) center / contain no-repeat; }
.tg-eyebrow { color: var(--teal); }
.tg-eyebrow i { border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 0 4px rgba(45, 212, 191, .16); }
.tg-hero h1 { font-weight: 700; letter-spacing: -.01em; line-height: 1.06; }
.tg-btn { border-radius: 3px; font: 600 14px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; padding: 13px 18px; box-shadow: none; border-bottom: 3px solid #6b21a8; }
.tg-btn:hover { background: #a855f7; }
.tg-btn.ghost { border-bottom: 3px solid rgba(45, 212, 191, .5); box-shadow: inset 0 0 0 1.5px var(--teal); }

/* stage cards linked by short pipes */
.tg-tiles { gap: 16px; }
.tg-tiles .tile { position: relative; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 4px 14px 4px 14px; background: linear-gradient(160deg, #22262c, #1a1d22); padding: 16px 18px 18px; box-shadow: none; }
.tg-tiles .tile:nth-child(even) { border-left-color: var(--violet); }
.tg-tiles .tile:not(:last-child)::after { content: ""; position: absolute; right: -17px; top: 50%; width: 16px; height: 2px; background: var(--teal); opacity: .55; }
.tg-tiles .tile:hover { border-color: var(--teal); transform: none; box-shadow: 0 0 0 1px var(--teal), 0 14px 28px -18px var(--glow); }
.tg-tiles code { color: var(--teal); }
.tg-tiles .tile:nth-child(even) code { color: var(--violet); }
.tool-teaser { border-radius: 4px 14px 4px 14px; border: 1px solid var(--line); border-left: 4px solid var(--violet); background: #1a1d22; }
.tool-teaser .ico { border-radius: 4px; background: linear-gradient(135deg, #7e22ce, #0f9e90); font-family: var(--mono); }

/* panels and rows: a log of runs on a pipe */
.panel { border-radius: 6px; background: #1a1d22; border-color: var(--line); }
.panel-head { background: rgba(255, 255, 255, .025); }
.panel-head h2 { font: 600 13.5px/1 var(--mono); }
.panel-head h2::before { width: 10px; height: 10px; background: transparent; border: 2px solid var(--violet); box-shadow: none; }
.panel-head h2::after { content: ""; display: inline-block; width: 44px; height: 2px; margin-left: 12px; vertical-align: 3px; background: linear-gradient(90deg, var(--teal), var(--violet)); }
.rows li { position: relative; padding-left: 46px; }
.rows li::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: rgba(45, 212, 191, .22); }
.rows li::after { content: ""; position: absolute; left: 16px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: #1a1d22; border: 2px solid var(--teal); }
.rows li:hover { background: rgba(45, 212, 191, .05); }
.rows li:hover::after { background: var(--teal); }
.rows li:first-child::before { top: 24px; }
.rows li:last-child::before { bottom: calc(100% - 28px); }
.rows .tag { color: var(--violet); }
.rows a { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.hub-panel .rows li { padding-left: 46px; }
.listing-picture { border-radius: 3px; }

/* articles: pipe-marked headings, stage tables */
.doc-head h1 { font-weight: 700; }
.prose h2 { border-left: 0; padding-left: 0; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }
.prose h2#sources::before { border-color: var(--violet); }
.prose th { background: rgba(45, 212, 191, .1); color: #ccfbf1; border-bottom: 2px solid var(--teal); }
.prose tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.prose .tg-idea, .prose .tg-example, .prose .tg-warn { border-radius: 4px 12px 4px 12px; }
.prose blockquote { border-left-color: var(--teal); font-family: var(--font-head); }
.facts { border-radius: 4px 14px 4px 14px; background: rgba(45, 212, 191, .05); border-color: var(--line); }
.facts h3 { color: var(--violet); }
.tool, .tool-cta { border-radius: 4px 14px 4px 14px; border-color: var(--line); background: #1a1d22; box-shadow: none; }
.tool-cta { border-left: 4px solid var(--teal); }
.tool button { background: var(--primary); border-radius: 3px; font-family: var(--font-head); letter-spacing: .03em; }
.tool-big > div { border-radius: 4px; }

/* footer: end of the pipe */
.foot { border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--teal), var(--violet) 60%, transparent) 1; }
.foot nav a + a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 16px; border-radius: 50%; background: var(--teal); opacity: .6; vertical-align: 1px; }
.foot nav { gap: 0 16px; }

@media (max-width: 1000px) {
  .tg-hero { grid-template-columns: minmax(0, 1fr); }
  .tg-hero::after { max-width: 280px; justify-self: start; }
  .tg-tiles .tile::after { display: none; }
}
@media (max-width: 800px) {
  .side .logo { border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
  .side-nav li::after { display: none; }
  .side-nav a { padding: 5px 10px; gap: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
  .side-nav a::before { width: 8px; height: 8px; border-width: 2px; }
  .foot nav a + a::before { display: none; }
  .crumbs { padding-left: 10px; }
}
@media (max-width: 480px) {
  .tg-hero::after { display: none; }
  .rows li { padding-left: 40px; }
  .rows li::before { left: 17px; }
  .rows li::after { left: 12px; }
}

/* sd-release:tech-gaming.space-a11y-v1 - contrast fixes after the identity release */
.pill { background: linear-gradient(90deg, #7e22ce, #0f766e); }

