/* The figures of "From Asking to Instructing" that are this article's own (blocks.md 7): Figure 1, the exchange in an
   agent's window, and Figure 3, the anatomy of the two answers. Loaded after the website's post.css. */
html[data-reading="dark"] .anatomy, html[data-reading="dark"] .agent { box-shadow: 0 0 0 1px rgba(214,220,240,.12); }

/* Figure 1: the request typed into an agent, and its answer streaming back (post.js plays it once). */
.agent { position: relative; border-radius: 16px; overflow: hidden; background: #0E1440; color: #E6EAF7;
  box-shadow: 0 30px 60px -30px rgba(3,6,25,.55), 0 0 0 1px rgba(214,220,240,.1); font-family: var(--sans); }
.ag-bar { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid rgba(214,220,240,.1); background: #121A4C; }
.ag-dots { display: flex; gap: .35rem; } .ag-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(214,220,240,.22); }
.ag-title { font: 600 .82rem/1 var(--sans); color: #fff; }
.ag-chip { margin-left: auto; padding: .25rem .55rem; border-radius: 999px; background: rgba(140,165,240,.14); font: 500 .74rem/1 var(--sans); color: #AFC3FF; }
.ag-chip + .ag-chip { margin-left: -.35rem; }
.ag-title, .ag-chip { white-space: nowrap; }
@media (max-width: 480px) { .ag-dots { display: none; } }
.ag-log { position: relative; height: 27rem; overflow: auto; padding: 1.2rem 1.2rem .6rem; scrollbar-width: thin; scroll-behavior: smooth; }
.ag-msg { display: flex; gap: .7rem; margin-bottom: 1rem; }
.ag-msg[hidden] { display: none; }
/* While the answer streams, a mark shows only once its first word has arrived (post.js). */
.agent.js .ag-reply mark:not(.on) { visibility: hidden; }
.ag-user { justify-content: flex-end; }
.ag-bubble { max-width: 80%; padding: .75rem .9rem; border-radius: 14px 14px 4px 14px; background: #233072; }
.ag-bubble p { margin: .55rem 0 0; font: 400 .95rem/1.5 var(--sans); color: #fff; }
.att { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .65rem .45rem .5rem; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(214,220,240,.14); }
.att svg { width: 22px; height: 22px; fill: none; stroke: #F7B48C; stroke-width: 1.6; stroke-linejoin: round; }
.att span { display: flex; flex-direction: column; } .att b { font: 600 .78rem/1.3 var(--sans); color: #fff; } .att i { font: 400 .72rem/1.3 var(--sans); font-style: normal; color: #AEB7D6; }
.ag-av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #CFE0FF, #4C74E8 60%, #22328A); box-shadow: 0 0 12px rgba(120,160,255,.5); }
.ag-reply { min-width: 0; font: 400 .9rem/1.55 var(--sans); color: #DCE2F5; }
.ag-reply p { margin: 0 0 .7rem; }
.ag-reply strong { color: #fff; }
.ag-h { font-weight: 600; color: #AFC3FF; }
.ag-more { padding-top: .7rem; border-top: 1px dashed rgba(214,220,240,.2); color: #AEB7D6; }
.ag-composer { display: flex; align-items: center; gap: .7rem; margin: .4rem .9rem .9rem; padding: .55rem .55rem .55rem .7rem; border-radius: 14px;
  background: #18215A; border: 1px solid rgba(214,220,240,.16); }
.ag-composer .att { flex: none; }
.ag-input { position: relative; flex: 1; min-width: 0; font: 400 .95rem/1.4 var(--sans); color: #fff; }
.ag-ph { color: #7F8BB8; }
.ag-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.18em; background: var(--ece-orange); animation: caret 1.05s steps(1) infinite; }
.ag-send { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(214,220,240,.16); transition: background .25s, transform .2s; }
.ag-send svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.agent.ready .ag-send { background: var(--ece-orange); }
.agent.sent .ag-send { transform: scale(.88); }
.ag-thinking { display: inline-flex; gap: 4px; padding: .5rem 0; } .ag-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #AFC3FF; animation: think 1s infinite; }
.ag-thinking i:nth-child(2) { animation-delay: .15s; } .ag-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { opacity: .25; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.ag-replay { position: absolute; right: 1rem; top: 3.4rem; display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid rgba(214,220,240,.28); background: rgba(14,20,64,.85); color: #D6DCF0; font: 500 .78rem/1 var(--sans); cursor: pointer; }
.ag-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ag-replay[hidden] { display: none; }
.exchange figcaption mark { font-size: .85em; }
@media (max-width: 600px) { .ag-log { height: 30rem; } .ag-composer .att { display: none; } .ag-bubble { max-width: 92%; } }

/* Figure 3: the anatomy of the two answers. Each sentence a bar as long as the sentence, coloured by
   the check's verdict (blue #5B8CFF and orange #E06C35, validated for colour blindness on this panel);
   a scan runs down both answers when the figure is reached, lighting each verdict (post.js). */
.anatomy { position: relative; padding: 1.6rem 1.6rem 1.3rem; border-radius: 18px; color: #DCE2F5; font-family: var(--sans);
  background: radial-gradient(42rem 20rem at 85% 0%, rgba(60,95,220,.32), transparent 70%), linear-gradient(170deg, #121A4C, #0B1240);
  --fig: #5B8CFF; --claim: #E06C35; --prose: rgba(200,210,240,.36); --dim: rgba(200,210,240,.1); }
/* Two equal columns all the way down, the heads lined up over the boxes below them. Each answer keeps
   its tint: warm for just asked, cool for instructed. */
.anatomy { --gap: .8rem; --inset: calc(.8rem + 1px); --ja-bg: rgba(224,108,53,.07); --ja-line: rgba(240,140,95,.22); --in-bg: rgba(91,140,255,.08); --in-line: rgba(140,170,255,.24); }
.an-heads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: 0 var(--inset); }
.an-head { padding: 1rem 1.1rem 1.1rem; border-radius: 12px; }
.an-head.ja, .an-col.ja { background: var(--ja-bg); box-shadow: inset 0 0 0 1px var(--ja-line); }
.an-head.in, .an-col.in { background: var(--in-bg); box-shadow: inset 0 0 0 1px var(--in-line); }
.article .an-who { margin: 0; font: 600 1.15rem/1.2 var(--serif); color: #fff; }
.article .an-sub { margin: .25rem 0 1rem; font: 400 .8rem/1.4 var(--sans); color: #AEB7D6; }
.an-counts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: .6rem 1.3rem; }
.an-c { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: .3rem; }
.an-n { font: 600 2.1rem/1 var(--serif); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.an-of { font: 500 .85rem/1 var(--sans); color: #AEB7D6; }
.an-l { grid-column: 1 / -1; margin-top: .3rem; max-width: 7.5rem; font: 400 .74rem/1.3 var(--sans); color: #AEB7D6; }
.an-head.ja .claims .an-n { color: #F59A6E; }
.an-head.in .figs .an-n { color: #9DB6FF; }
.article .an-how { margin: 1.3rem 0 0; padding: .9rem 0 0; border-top: 1px solid rgba(214,220,240,.14); font: 400 .84rem/1.5 var(--sans); color: #DCE2F5; }
.article .an-how b { color: #fff; font-weight: 600; }
.article .an-key { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: .7rem 0 .4rem; padding: 0; list-style: none;
  font: 400 .78rem/1.3 var(--sans); color: #C9D1EC; }
.an-key li { display: inline-flex; align-items: center; gap: .45rem; }
.k { display: inline-block; width: 18px; height: 8px; border-radius: 0 3px 3px 0; }
.k.figure { background: var(--fig); } .k.claim { background: var(--claim); } .k.prose { background: var(--prose); }
.k.wrong { background: repeating-linear-gradient(135deg, var(--claim) 0 3px, rgba(224,108,53,.25) 3px 6px); }
.k.emo { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.an-body { position: relative; margin-top: .6rem; display: grid; gap: .8rem; }
/* Each piece in its own card, titled in its header, each column named. */
.an-piece { border-radius: 12px; border: 1px solid rgba(214,220,240,.14); background: rgba(255,255,255,.035); overflow: hidden; }
.an-piece h3 { margin: 0; padding: .45rem .9rem; border-bottom: 1px solid rgba(214,220,240,.12); background: rgba(255,255,255,.04); font: 600 .9rem/1.3 var(--sans); color: #fff; }
.an-cols { padding: .6rem; gap: var(--gap); }
.an-col { min-width: 0; padding: .65rem .8rem .8rem; border-radius: 10px; }
/* The cards above name the columns; a phone, with the cards stacked far above, names them again. */
.an-colname { display: none; margin-bottom: .15rem; font: 600 .74rem/1.3 var(--sans); color: #fff; }
.an-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.article .an-meta { margin: 0 0 .55rem; font: 400 .74rem/1.35 var(--sans); color: #AEB7D6; }
.an-meta.over { color: #F59A6E; }
/* Each answer as a tape: a segment per sentence, in reading order, its width the sentence's length. */
.an-bars { --k: .55px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 3px; }
.ab { position: relative; display: block; flex: none; width: calc(var(--c) * var(--k)); max-width: 100%; height: 9px; border-radius: 2px; background: var(--prose); cursor: default;
  transition: background .35s, box-shadow .6s, opacity .35s; }
.ab.head { height: 4px; opacity: .8; }
.ab.figure { background: var(--fig); }
.ab.claim { background: var(--claim); }
.ab.wrong { background: repeating-linear-gradient(135deg, var(--claim) 0 3px, rgba(224,108,53,.28) 3px 6px); }
.ab .emo { position: absolute; right: -2px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1.5px rgba(10,16,48,.9); }
.ab:hover { outline: 2px solid #fff; outline-offset: 2px; }
/* While the scan runs: what it has not reached yet is unread; a flagged sentence flares as it is reached. */
.anatomy.js .ab:not(.on) { background: var(--dim); box-shadow: none; }
.anatomy.js .ab:not(.on) .emo { opacity: 0; }
.ab .emo { transition: opacity .3s; }
.anatomy.js .ab.on.claim, .anatomy.js .ab.on.wrong { animation: flare 1.1s ease-out; }
@keyframes flare { 0% { box-shadow: 0 0 0 0 rgba(224,108,53,0); } 25% { box-shadow: 0 0 16px 3px rgba(240,130,80,.85); } 100% { box-shadow: 0 0 0 0 rgba(224,108,53,0); } }
.an-scan { position: absolute; left: -1.6rem; right: -1.6rem; top: 0; height: 2px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(160,190,255,.9) 20%, #fff 50%, rgba(160,190,255,.9) 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(120,160,255,.45); }
.an-scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 60px; background: linear-gradient(0deg, rgba(120,160,255,.14), transparent); }
.anatomy.scanning .an-scan { opacity: 1; }
.an-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(214,220,240,.14); }
.article .an-end { flex: 1 1 22rem; margin: 0; font: 400 1rem/1.5 var(--serif); color: #fff; transition: opacity .6s; }
.anatomy.js:not(.done) .an-end { opacity: 0; }
.an-replay { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgba(214,220,240,.28);
  background: rgba(255,255,255,.06); color: #D6DCF0; font: 500 .8rem/1 var(--sans); cursor: pointer; }
.an-replay:hover { background: rgba(255,255,255,.12); color: #fff; }
.an-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-replay[hidden] { display: none; }
.anatomy .sc-table { margin-top: .9rem; border-top: 1px solid rgba(214,220,240,.14); padding-top: .7rem; }
.anatomy .sc-table summary { cursor: pointer; font: 500 .82rem/1.4 var(--sans); color: #AFC3FF; }
.anatomy .compare { margin-top: .8rem; color: #DCE2F5; }
.anatomy .compare thead th { border-bottom-color: rgba(214,220,240,.5); }
.anatomy .compare tbody th { color: #AEB7D6; }
.anatomy .compare tbody tr + tr > * { border-top-color: rgba(214,220,240,.12); }
@media (max-width: 640px) { .an-colname { display: block; } .an-bars { --k: .4px; gap: 5px 3px; } .an-counts { display: flex; flex-wrap: wrap; } .an-l { max-width: 9rem; } .anatomy { padding: 1.2rem .8rem; --gap: .5rem; --inset: calc(.5rem + 1px); } .an-head { padding: .8rem .7rem; } .an-cols { padding: .5rem; } .an-col { padding: .7rem .6rem .8rem; } .an-n { font-size: 1.6rem; } .an-counts { gap: .5rem .9rem; } .ab .emo { right: -11px; } }
