.blog-references {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.blog-references li {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: .5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.blog-references a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(255, 190, 39, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.blog-references a:hover { text-decoration-color: var(--amber); }

/* Citation superscripts: amber to match the brand accent. */
.blog-body sup a {
  color: var(--amber);
  text-decoration: none;
}
.blog-body sup a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Figure cards, as in the AlpaSim post. */
.p123-figure { margin: 2rem 0; padding: 1rem; background: #111; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; font-family: var(--font-sans); scroll-margin-top: 90px; }
.p123-figure > img { display: block; width: 100%; height: auto; border-radius: 10px; }
.p123-figure figcaption { margin-top: 1rem; text-align: center; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.blog-body p + .p123-figure { margin-top: 1.25rem; }
.blog-body .p123-figure + p { margin-top: 3.5rem; }
.p123-overview .ov-band { fill: #fff; fill-opacity: 0; transition: fill-opacity .15s; }
.p123-overview .ov-name { opacity: 0; transition: opacity .15s; }
.p123-overview .ov-row:hover .ov-band { fill-opacity: .04; }
.p123-overview .ov-row:hover .ov-name { opacity: 1; }

.p123-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.p123-preview { display: flex; flex-direction: column; align-items: center; gap: .75rem; min-width: 0; text-align: center; }
.p123-preview strong { font-size: 1rem; color: var(--amber); }
.p123-video { width: 100%; aspect-ratio: 8 / 9; border-radius: 12px; overflow: hidden; }
.p123-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .p123-previews { grid-template-columns: 1fr; } }

/* The compute explorer brings its own light and dark tokens; the dark color
   scheme on the frame makes it follow the dark page. */
.p123-explorer iframe { display: block; width: 100%; height: 640px; border: 0; border-radius: 10px; color-scheme: dark; }

/* Tables: dark-theme rules that read like the surrounding body text. */
.p123-table-title { margin: 0 0 .75rem; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--amber); }
.p123-table-wrap { overflow-x: auto; }
.p123-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .9rem; color: #d2d8df; font-variant-numeric: tabular-nums; }
.p123-table th,
.p123-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; }
.p123-table th { color: var(--text); font-weight: 600; }
.p123-table tbody tr:last-child td { border-bottom: none; }
.p123-table .is-ours td { color: var(--amber); background: var(--amber-soft); border-bottom-color: rgba(255, 190, 39, 0.25); }
.p123-table .is-ours td:first-child { font-weight: 600; }
.p123-table .is-ours + .is-ours td:first-child { font-weight: inherit; }
.p123-table .is-ours b { color: var(--amber); }
.p123-table .is-ours-col { color: var(--amber); background: var(--amber-soft); }
.p123-table .is-section td { padding-top: .9rem; padding-bottom: .3rem; font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--amber); border-bottom: none; }
.p123-table :is(.is-metric, .is-rl) td { color: #6e737a; }
.p123-table :is(.is-metric, .is-rl) b { color: #82878e; }
.p123-table .num { text-align: right; }
.p123-table .mid { text-align: center; }
.p123-table th.group { text-align: center; }
.p123-table th[rowspan] { vertical-align: bottom; }
.p123-table b { font-weight: 600; color: var(--text); }
.p123-table .gap-pos { color: var(--text); font-weight: 600; }
.p123-table .gap-neg { color: #d2d8df; }
/* Citations in a cell must not change the row height. */
.p123-table sup { line-height: 0; }

/* Keep linked headings below the sticky/fixed navigation banner. */
.blog-body :is(h2, h3)[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* Appendix subsections (Closed loop / Open loop). */
.blog-body h3 { color: #ffffff; font-family: var(--font-sans); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 2.5rem 0 1rem; }
.blog-body h3 + .p123-figure { margin-top: 1rem; }

.blog-body .p123-list { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.blog-body ol.p123-list { list-style: decimal; }
.blog-body .p123-list li { margin-bottom: .6rem; color: var(--secondary); }

.blog-body pre { margin: 1.25rem 0; padding: 1rem 1.25rem; overflow-x: auto; background: #111; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; font-size: .85rem; line-height: 1.6; }
.blog-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Citation tooltips (post.js): hovering or focusing a citation shows the
   matching entry of the reference list in a card next to it. */
.cite-tip { position: absolute; z-index: 300; box-sizing: border-box; width: max-content; max-width: min(30rem, calc(100vw - 1.5rem)); padding: .6rem .85rem; background: #161616; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); font-family: var(--font-sans); font-size: .85rem; font-weight: 400; line-height: 1.5; color: var(--secondary); text-align: left; white-space: normal; }
.cite-tip[hidden] { display: none; }
.cite-tip-head { margin-bottom: .2rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.cite-tip-head.is-mismatch { color: #ff7b7b; }
.cite-tip-body { overflow-wrap: break-word; }
.cite-tip a { color: var(--amber); text-decoration: underline; text-decoration-color: rgba(255, 190, 39, 0.4); text-underline-offset: 3px; }
.cite-tip a:hover { text-decoration-color: var(--amber); }

/* 123D post: series toggles and dataset tabs. */
.p123-figure svg { max-width: 100%; height: auto; }
.p123-series { transition: opacity .2s; }
.p123-series.is-off { display: none; }

.p123-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; justify-content: center; align-items: center; }
.p123-controls .p123-label { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: #6e737a; margin-right: .3rem; }
.p123-controls button, .p123-tabs button { font: inherit; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: #161616; color: #aab1b8; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.p123-controls button:hover, .p123-tabs button:hover { border-color: rgba(255,255,255,.35); color: #edf2f7; }
.p123-controls button[aria-pressed="true"] { color: #111; background: var(--c, var(--amber)); border-color: var(--c, var(--amber)); font-weight: 600; }
.p123-controls button .dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); margin-right: .4rem; vertical-align: 1px; }
.p123-controls button[aria-pressed="true"] .dot { background: #111; }

.p123-tabs { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: 1rem; }
.p123-tabs button[aria-selected="true"] { color: #111; background: var(--amber); border-color: var(--amber); font-weight: 600; }

.p123-swap { display: block; width: 100%; height: auto; border-radius: 10px; }

.blog-body pre .c-k { color: #ff8ea0; }
.blog-body pre .c-s { color: #a5d6a7; }
.blog-body pre .c-n { color: #ffbe27; }
.blog-body pre .c-c { color: #6e737a; }

.p123-rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.p123-rates > div { background: #fff; border-radius: 10px; padding: .6rem .6rem .4rem; }
.p123-rates img { display: block; width: 100%; height: auto; }
.p123-rates-title { font-size: .9rem; font-weight: 600; color: #111; text-align: center; margin-bottom: .2rem; }
@media (max-width: 700px) { .p123-rates { grid-template-columns: 1fr; } }
.p123-controls .p123-note { font-size: .85rem; color: #aab1b8; margin-left: .4rem; }
.p123-fig-title { margin: .2rem 0 1rem; text-align: center; font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* Sensor rig (Figure 1, rig.js): timestamps on the left, sensor layout on the right. */
.p123-rig-main { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr); gap: .9rem; align-items: center; min-height: 14rem; }
.p123-rig-timeline svg { display: block; width: 100%; height: auto; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.p123-rig-view { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #0c0c0c; border: 1px solid rgba(255, 255, 255, .07); }
.p123-rig-view canvas, .p123-rig-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.p123-rig text { font-family: var(--font-sans); }
.p123-rig .rig-band { fill: rgba(255, 255, 255, .03); }
.p123-rig .rig-grid { stroke: #262626; }
.p123-rig .rig-axis { font-size: 11.5px; fill: #6e737a; }
.p123-rig .rig-row { cursor: default; transition: opacity .15s; }
.p123-rig .rig-row-bg { fill: #fff; fill-opacity: 0; transition: fill-opacity .15s; }
.p123-rig .rig-row.is-hover .rig-row-bg { fill-opacity: .07; }
.p123-rig .rig-label { font-size: 13.5px; font-weight: 500; fill: #d2d8df; }
.p123-rig .rig-label.is-mono, .p123-rig .rig-cam-label { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.p123-rig .rig-label.is-mono { font-size: 12.5px; }
.p123-rig .rig-rate { font-size: 11.5px; fill: #6e737a; font-variant-numeric: tabular-nums; }
.p123-rig .rig-track { stroke: rgba(255, 255, 255, .05); }
.p123-rig .rig-tick { stroke-width: 1.8px; stroke-opacity: .7; stroke-linecap: round; }
.p123-rig .rig-tick.is-dense { stroke-width: 1px; }
.p123-rig .rig-head line { stroke: var(--amber); stroke-width: 1.5; }
.p123-rig .rig-head text { fill: var(--amber); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p123-rig .rig-scrub { fill: transparent; }
.p123-rig.has-hover .rig-row:not(.is-hover) { opacity: .4; }

.p123-rig .rig-ring { fill: none; stroke: rgba(255, 255, 255, .08); stroke-dasharray: 2 4; }
.p123-rig .rig-ring-label, .p123-rig .rig-front { font-size: 8px; fill: #5c6066; }
.p123-rig .rig-front { letter-spacing: .1em; text-transform: uppercase; }
.p123-rig .rig-cam { transition: opacity .15s; cursor: default; }
.p123-rig .rig-wedge { fill: none; stroke-opacity: .75; stroke-width: .9; stroke-linecap: round; }
.p123-rig .rig-wedge-fill { fill-opacity: .16; }
.p123-rig .rig-cam-dot { fill: #f0a050; }
.p123-rig .rig-cam-label { font-size: 9.5px; fill: #f0a050; paint-order: stroke; stroke: #0c0c0c; stroke-width: 2.6px; stroke-linejoin: round; }
.p123-rig .rig-cam.is-hover .rig-wedge { stroke-opacity: 1; stroke-width: 1.4; }
.p123-rig .rig-cam.is-hover .rig-wedge-fill { fill-opacity: .6 !important; }
.p123-rig.has-hover .rig-cam:not(.is-hover) { opacity: .22; }
.p123-rig .rig-ego-body { fill: #191919; stroke: #d2d8df; stroke-width: 1.1; }
.p123-rig .rig-ego-glass { fill: rgba(255, 255, 255, .16); }
.p123-rig .rig-ego-origin { fill: #9aa3ad; }
.p123-rig .rig-ego.is-hover .rig-ego-body { stroke: #fff; stroke-width: 1.8; }
.p123-rig .rig-boxes rect { fill: #5fa8e8; stroke: #5fa8e8; stroke-width: 1; }
.p123-rig .rig-boxes.is-hover rect { stroke-width: 1.8; }
.p123-rig .rig-radars line { stroke: #b99cf0; stroke-width: 2.4; stroke-linecap: round; }
.p123-rig .rig-radars .rig-radar-ray { stroke-width: 1; stroke-dasharray: 1.5 1.5; fill: none; }
.p123-rig .rig-beam { stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 2.5px currentColor); }
.p123-rig .rig-lidar-dot { stroke-width: 1.4px; }
.p123-rig .rig-trail { pointer-events: none; }
.p123-rig.has-hover .rig-boxes:not(.is-hover), .p123-rig.has-hover .rig-radars:not(.is-hover), .p123-rig.has-hover .rig-lidars:not(.is-hover) { opacity: .3; }

.p123-rig-bar { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: center; margin-top: .9rem; }
.p123-rig-bar button { font: inherit; font-size: .8rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: #161616; color: #aab1b8; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.p123-rig-bar button:hover { border-color: rgba(255, 255, 255, .35); color: #edf2f7; }
.p123-rig-speeds { display: flex; gap: .3rem; }
.p123-rig-speeds button { white-space: nowrap; }
.p123-rig-speeds button[aria-pressed="true"] { color: #111; background: var(--amber); border-color: var(--amber); font-weight: 600; }
.p123-rig-play { min-width: 5.4rem; color: #edf2f7 !important; }
.p123-rig-play span { display: inline-block; width: .6rem; height: .62rem; margin-right: .45rem; vertical-align: -1px; }
.p123-rig-play .is-play { border-style: solid; border-width: .31rem 0 .31rem .55rem; border-color: transparent transparent transparent var(--amber); width: 0; height: 0; }
.p123-rig-play .is-pause { border-left: .2rem solid var(--amber); border-right: .2rem solid var(--amber); box-sizing: border-box; }
.p123-rig-readout { margin-left: auto; font-size: .8rem; color: #aab1b8; font-variant-numeric: tabular-nums; text-align: right; }
/* How the sensors of the selected dataset are aligned; two lines are reserved, so that the caption does not jump. */
.p123-rig-note { margin: .8rem 0 0; min-height: 1.5em; font-size: .88rem; line-height: 1.5; color: #c3c9d0; }
@media (max-width: 760px) {
  .p123-rig-main { grid-template-columns: 1fr; }
  .p123-rig-view { width: 100%; max-width: 26rem; margin: 0 auto; }
  .p123-rig-readout { margin-left: 0; width: 100%; text-align: center; }
  .p123-rig-note { min-height: 4.5em; text-align: center; }
}
@media (max-width: 480px) {
  .p123-rig-speeds { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

/* Map figure (Figure 2, map.js): one area of a converted map on the left, its layers on the right. */
.p123-map-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.p123-map-view { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #151515; border: 1px solid rgba(255, 255, 255, .07); }
.p123-map-view svg { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
/* --f: color of a layer on the map, --c: its accent in the list and when highlighted. */
.p123-map .map-generic_drivable { --f: #2a2d32; --c: #8b929c; }
.p123-map .map-lane_group { --f: #31363d; --c: #b4bbc3; }
.p123-map .map-intersection { --f: #3a3556; --c: #a596ea; }
.p123-map .map-carpark { --f: #2c4636; --c: #6fbf8a; }
.p123-map .map-walkway { --f: #46432e; --c: #cfc77a; }
.p123-map .map-crosswalk { --f: #5a3f57; --c: #d58fca; }
.p123-map .map-speed_bump { --f: #7a4f22; --c: #f0a050; }
.p123-map .map-stop_zone { --f: #8f3b45; --c: #e8645f; }
.p123-map .map-lane { --f: transparent; --c: #ffbe27; }
.p123-map .map-road_line { --f: #7d8590; --c: #c7ced6; }
.p123-map .map-road_edge { --f: #dfe4ea; --c: #ffffff; }
.p123-map .map-layer { transition: opacity .15s; }
.p123-map .map-surface { fill: #31363d; fill-rule: evenodd; stroke: #31363d; stroke-width: .7; stroke-linejoin: round; }
.p123-map .map-shape { fill: var(--f); fill-rule: evenodd; stroke: var(--c); stroke-opacity: 0; stroke-width: 1.6; stroke-linejoin: round; }
.p123-map .map-stop_zone .map-shape { fill-opacity: .6; }
.p123-map .map-intersection .map-shape { fill-opacity: .75; }
.p123-map .map-line { fill: none; stroke: var(--f); stroke-width: 1; stroke-linecap: round; }
.p123-map .map-line.is-dashed { stroke-dasharray: 5 5; }
.p123-map .map-road_line .map-line.is-yellow { stroke: #b99a3a; }
.p123-map .map-road_edge .map-line { stroke-width: 1.4; }
.p123-map .map-center { fill: none; stroke: #fff; stroke-opacity: .13; stroke-width: 1; }
/* Under the cursor. */
.p123-map .map-object.is-hit .map-shape { stroke-opacity: 1; }
.p123-map .map-lane .map-object.is-hit .map-shape { fill: #ffbe27; fill-opacity: .2; }
.p123-map .map-object.is-hit .map-line { stroke: #ffbe27; stroke-width: 3; }
.p123-map .map-object.is-hit .map-center { stroke: #ffbe27; stroke-opacity: 1; stroke-width: 2; marker-end: url(#map-arrow-hit); }
.p123-map .map-object.is-next .map-shape { fill: #4cc38a; fill-opacity: .16; }
.p123-map .map-object.is-next .map-center { stroke: #4cc38a; stroke-opacity: 1; stroke-width: 1.8; marker-end: url(#map-arrow-next); }
.p123-map .map-object.is-prev .map-shape { fill: #5fa8e8; fill-opacity: .16; }
.p123-map .map-object.is-prev .map-center { stroke: #5fa8e8; stroke-opacity: 1; stroke-width: 1.8; marker-end: url(#map-arrow-prev); }
/* All objects of the layer under the cursor in the list. */
.p123-map.has-focus .map-layer:not(.is-focus) { opacity: .28; }
.p123-map .map-layer.map-lane_group:not(.is-focus) { opacity: 0; }
.p123-map .map-layer.is-focus .map-shape { stroke-opacity: 1; stroke-width: 1.2; }
.p123-map .map-lane.is-focus .map-shape { stroke-opacity: .55; stroke-width: .8; }
.p123-map .map-lane.is-focus .map-center { stroke: #ffbe27; stroke-opacity: .9; stroke-width: 1.3; marker-end: url(#map-arrow-focus); }
.p123-map .map-layer.is-focus .map-line { stroke: var(--c); stroke-width: 2; }
.p123-map .map-scale path { fill: none; stroke: #9aa3ad; stroke-width: 1.2; }
.p123-map .map-scale .map-north { fill: #9aa3ad; stroke: none; }
.p123-map .map-scale text { font-family: var(--font-sans); font-size: 11px; fill: #9aa3ad; }

.p123-map-side { display: flex; flex-direction: column; gap: .2rem; font-size: .86rem; }
.p123-map-source { margin: 0 0 .45rem; padding: 0 .6rem; font-family: var(--font-sans); font-size: .8rem; line-height: 1.45; color: #6e737a; }
.p123-map-source b { display: block; color: #d2d8df; font-weight: 600; }
.p123-map-row { display: flex; align-items: center; gap: .55rem; padding: .26rem .6rem; border-radius: 8px; border: 1px solid transparent; color: #d2d8df; cursor: default; transition: background .12s, border-color .12s; }
.p123-map-row i { flex: none; width: .78rem; height: .78rem; border-radius: 3px; background: var(--c); }
.p123-map-row.map-road_line i, .p123-map-row.map-road_edge i { height: .2rem; border-radius: 1px; }
.p123-map-count { margin-left: auto; color: #6e737a; font-variant-numeric: tabular-nums; }
.p123-map-row.is-hit, .p123-map-row.is-focus { background: #1b1b1b; border-color: rgba(255, 255, 255, .12); }
.p123-map-row.is-hit .p123-map-name, .p123-map-row.is-focus .p123-map-name { color: #fff; font-weight: 600; }
.p123-map-info { margin-top: .5rem; padding: .65rem .8rem; min-height: 9.5rem; border-radius: 10px; background: #161616; border: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; line-height: 1.45; color: #aab1b8; }
.p123-map-info p { margin: 0 0 .3rem; font-family: var(--font-sans); font-size: inherit; line-height: inherit; color: inherit; }
.p123-map-info b { margin-right: .5rem; color: var(--c); font-weight: 600; }
.p123-map-info .is-prev { color: #5fa8e8; }
.p123-map-info .is-next { color: #4cc38a; }
.p123-map-info .p123-map-hint { color: #6e737a; }
@media (max-width: 760px) {
  .p123-map-main { grid-template-columns: 1fr; }
  .p123-map-view { width: 100%; max-width: 30rem; margin: 0 auto; }
  .p123-map-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p123-map-info, .p123-map-source { grid-column: 1 / -1; }
}

/* Intro video (intro.js): clips of the datasets behind the 123D logo and the typed install command. */
.p123-intro { margin: 2.2rem 0 2.6rem; font-family: var(--font-sans); scroll-margin-top: 90px; }
.p123-intro-stage { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
/* The video has no frame: its edges fade into the page. */
.p123-intro video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.p123-intro-card { position: absolute; left: 50%; top: 50%; width: min(46%, 30rem); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; opacity: 0; pointer-events: none; }
.p123-intro-card img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .7)); }
.p123-intro-cmd { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .5rem 1rem; border-radius: 10px; background: rgba(10, 10, 10, .72); border: 1px solid rgba(255, 255, 255, .14); font-family: "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace; font-size: clamp(.8rem, 1.7vw, 1.1rem); color: #edf2f7; white-space: pre; opacity: 0; pointer-events: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.p123-intro-cmd .prompt { color: var(--amber); margin-right: .7em; user-select: none; }
.p123-intro-cmd .caret { display: inline-block; width: .55em; height: 1.15em; margin-left: .1em; background: var(--amber); vertical-align: -.2em; animation: p123-caret 1s steps(1) infinite; }
@keyframes p123-caret { 50% { opacity: 0; } }
.p123-intro-replay { position: absolute; right: 3.5%; bottom: 6%; padding: .3rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 10, 10, .6); color: #aab1b8; font: inherit; font-size: .78rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, color .15s, border-color .15s; }
.p123-intro-replay.is-on { opacity: 1; pointer-events: auto; }
.p123-intro-replay:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
/* During the swipes a tag names what the clips show. */
.p123-intro-tag { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; gap: .3rem; padding: .3rem .4rem; border-radius: 999px; background: rgba(10, 10, 10, .78); border: 1px solid rgba(255, 255, 255, .12); font-size: clamp(.6rem, 1.3vw, .85rem); color: #8b929c; white-space: nowrap; opacity: 0; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.p123-intro-tag span { padding: .15rem .6rem; border-radius: 999px; transition: color .3s, background .3s; }
.p123-intro-tag span.is-on { color: #111; background: var(--amber); }
@media (max-width: 640px) {
  .p123-intro-card { width: 62%; gap: .6rem; }
  .p123-intro-cmd { padding: .35rem .7rem; min-height: 2rem; }
  .p123-intro-tag { padding: .15rem .25rem; bottom: 5%; }
  .p123-intro-tag span { font-size: .5rem; padding: .05rem .4rem; }
}

/* Code example: the underlined variables show what they hold in a card (post.js), built like the citation tooltips. */
.blog-body pre [data-inspect] { text-decoration: underline dotted rgba(255, 190, 39, .75); text-underline-offset: 4px; border-radius: 3px; cursor: help; outline: none; transition: color .15s, background .15s; }
.blog-body pre [data-inspect]:hover, .blog-body pre [data-inspect]:focus-visible, .blog-body pre [data-inspect].is-open { color: var(--amber); background: var(--amber-soft); }
.blog-body pre [data-inspect].is-hint { animation: p123-inspect-hint 1.1s ease-out; }
@keyframes p123-inspect-hint { 0%, 100% { background: transparent; } 35% { background: rgba(255, 190, 39, .28); color: var(--amber); } }
.code-tip { max-width: min(17rem, calc(100vw - 1.5rem)); padding: .7rem .75rem; pointer-events: none; }
.code-tip strong { display: block; margin-bottom: .45rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; font-weight: 600; color: var(--amber); }
.code-tip img { display: block; height: 150px; width: auto; margin: 0 auto .55rem; border-radius: 6px; background: #0c0c0c; }
.code-tip span { display: block; font-size: .8rem; line-height: 1.45; color: #aab1b8; }
