/* Make It Yours: figures for the essay. Builds on grown.css and the panel kit in pages.css. */
.y-loop rect { stroke: #000; }
.y-loop .m { fill: var(--c-rose); } .y-loop .o { fill: var(--c-azoth); } .y-loop .c { fill: var(--c-sigil); } .y-loop .s { fill: var(--c-lapis); }
.y-vs td:first-child { font-weight: 500; font-size: 13px; color: var(--panel-quiet); white-space: nowrap; }
.y-vs td:last-child { background: rgba(91, 139, 224, .14); }
.y-code { border-radius: 0; }
.g-fig .panel + .y-src { margin-top: 14px; border-radius: 3px; }

/* bytes and instructions */
.y-bytes { display: flex; flex-wrap: wrap; gap: 3px; padding: 10px 12px; background: #1e1e1e; border-bottom: 1px solid #111; font-family: var(--mono); font-size: 12.5px; }
.y-bytes span { padding: 1px 3px; border-radius: 2px; color: #9fc3d6; cursor: default; }
.y-bytes span.on, .y-asm tr.on td { background: rgba(255, 212, 71, .28); }
.y-asm { width: 100%; border-collapse: collapse; background: var(--field); font-size: 13px; }
.y-asm th, .y-asm td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--edge-soft); vertical-align: top; }
.y-asm th { font-weight: 500; font-size: 12px; color: var(--panel-quiet); }
.y-asm td:nth-child(1), .y-asm td:nth-child(2) { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.y-asm tr { cursor: default; }
.y-asm tr:focus-visible { outline: 2px solid var(--lapis); outline-offset: -2px; }
.y-asm b.hot { font-weight: inherit; background: rgba(255, 170, 29, .55); border-radius: 2px; padding: 0 1px; }
.y-src #yDefine { color: #ffd447; }

/* fields */
.y-fld rect { fill: var(--c-azoth); stroke: #000; }
.y-fld.i rect { fill: var(--c-prima); }

/* lineage */
.y-line { display: grid; gap: 0; }
.y-line .panel p { margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; background: var(--field); }
.y-arrow { height: 22px; position: relative; }
.y-arrow::before { content: ""; position: absolute; left: 24px; top: 2px; bottom: 6px; border-left: 1.5px dashed var(--edge); }
.y-arrow::after { content: ""; position: absolute; left: 20px; bottom: 2px; border: 4.5px solid transparent; border-top: 6px solid var(--edge); }
.y-diff { margin: 0; padding: 10px 12px; background: #1e1e1e; color: #e8e8e8; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; }
.y-diff .del { color: #ff8a80; } .y-diff .add { color: #9ccc65; }

@media (max-width: 560px) {
  .y-asm td:nth-child(3) { min-width: 9em; }
  .y-asm { display: block; overflow-x: auto; }
}
