/* Post-specific styles: EasySteer */
:root { --es: #2f7d6d; --es-ink: #1f5e51; --es-soft: #e2f0ec; --es-paper: #f4f3ee; }
.f-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.es-note { font-size: 13.5px; color: var(--b-mute) !important; margin-top: 8px !important; }
.es-cmp td:last-child, .es-cmp th:last-child { background: var(--es-soft); }
.es-cmp td b { color: var(--es-ink); }
.es-code { margin: 4px 0 20px; padding: 16px 18px; border-radius: 12px; background: #1c222b; color: #dde3ea; font: 12.5px/1.65 var(--b-mono); overflow-x: auto; }
.es-code .k { color: #8fbaff; } .es-code .s { color: #f3cf8a; } .es-code .n { color: #9fe0c8; }

/* Figure 2: domain gallery */
.es-dom { margin-bottom: 14px; }
.es-prompt { margin: 0 0 12px !important; font-size: 15.5px; color: var(--b-ink) !important; font-style: italic; }
.es-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.es-reply { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--b-line); min-height: 112px; }
.es-reply.base { background: #fafbfc; }
.es-reply.steer { background: var(--es-soft); border-color: #bfdcd4; }
.es-rk { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--b-mute); margin-bottom: 4px; }
.es-reply.steer .es-rk { color: var(--es-ink); }
.es-reply p { margin: 0 !important; font-size: 14.5px; line-height: 1.55; color: var(--b-ink) !important; }
.es-reply p.typing::after { content: ""; display: inline-block; width: .42em; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; opacity: .55; animation: esblink .8s steps(1) infinite; }
@keyframes esblink { 50% { opacity: 0; } }

/* ---------- Figure 1: vector to steered reply ---------- */
.m3-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.m3-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.m3-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--b-mute); background: none; border: 1px solid transparent; border-radius: 10px; padding: 7px 14px 9px 10px; cursor: pointer; transition: color .25s, background .25s, border-color .25s; }
.m3-tab:hover { color: var(--b-ink); background: var(--b-panel); }
.m3-tn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: var(--b-panel2); color: var(--b-mute); }
.m3-prog { position: absolute; left: 10px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--b-line); overflow: hidden; }
.m3-prog::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--es); }
.m3[data-phase="0"] .m3-tab[data-go="0"], .m3[data-phase="1"] .m3-tab[data-go="1"], .m3[data-phase="2"] .m3-tab[data-go="2"], .m3[data-phase="3"] .m3-tab[data-go="3"] { color: var(--b-ink); background: #fff; border-color: var(--b-line); }
.m3[data-phase="0"] .m3-tab[data-go="0"] .m3-tn, .m3[data-phase="1"] .m3-tab[data-go="1"] .m3-tn, .m3[data-phase="2"] .m3-tab[data-go="2"] .m3-tn, .m3[data-phase="3"] .m3-tab[data-go="3"] .m3-tn { background: var(--es); color: #fff; }

.m3-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.m3-p { position: relative; border: 1px solid var(--b-line); border-radius: 14px; padding: 11px 14px 12px; background: #fff; min-width: 0; transition: opacity .35s, box-shadow .35s, border-color .35s; }
.m3.anim .m3-p { opacity: .42; }
.m3.anim[data-phase="0"] .m3-p[data-step="0"], .m3.anim[data-phase="1"] .m3-p[data-step="1"], .m3.anim[data-phase="2"] .m3-p[data-step="2"], .m3.anim[data-phase="3"] .m3-p[data-step="3"] { opacity: 1; border-color: #bfdcd4; box-shadow: 0 10px 24px -18px rgba(20, 26, 34, .45); }
.m3-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 6px !important; line-height: 1.3; }
.m3-h b { font-size: 16px; color: var(--es-ink); }
.m3-h span { font-size: 12.5px; color: var(--b-mute); }
.m3 code { font-family: var(--b-mono); font-size: 11.5px; background: var(--b-panel); border: 1px solid var(--b-line); border-radius: 4px; padding: 0 4px; }
.m3-scatter { display: block; width: 100%; height: auto; max-height: 172px; }
.m3-scatter .dp { fill: var(--es); } .m3-scatter .dn { fill: #b9c0ca; }
.m3-mean .mp { fill: #fff; stroke: var(--es-ink); stroke-width: 2.5; } .m3-mean .mn { fill: #fff; stroke: #7d8693; stroke-width: 2.5; }
.m3-v { fill: none; stroke: #151a22; stroke-width: 2.6; stroke-linecap: round; }
.m3-vl { font: italic 700 15px "Times New Roman", serif; fill: #151a22; }
.m3-legend { display: flex; gap: 14px; font-size: 12px; color: var(--b-mute); }
.m3-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.m3-legend i.pos { background: var(--es); } .m3-legend i.neg { background: #b9c0ca; }
.m3-f { margin: 6px 0 0 !important; font-size: 13px; color: var(--b-ink) !important; }
.m3-code { margin: 0; padding: 10px 12px; border-radius: 10px; background: #1c222b; color: #dde3ea; font: 11.5px/1.6 var(--b-mono); white-space: pre; overflow-x: auto; }
.m3-code .cl { position: relative; display: inline; }
.m3-code .k { color: #8fbaff; } .m3-code .s { color: #f3cf8a; } .m3-code .n { color: #9fe0c8; }
.m3-code .tag { font-style: normal; margin-left: 8px; font-family: inherit; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1c222b; background: #9fe0c8; border-radius: 4px; padding: 0 5px; }
.m3-note { margin: 7px 0 0 !important; font-size: 12.5px; color: var(--b-text) !important; line-height: 1.45; }
.m3-note b { color: var(--es-ink); }
.m3-layers { display: grid; gap: 5px; }
.m3-lab { display: grid; grid-template-columns: 86px minmax(0, 1fr); font-size: 10.5px; color: var(--b-mute); }
.m3-lab span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: start; }
.m3-lab span.mid { grid-column: 2; grid-row: 1; justify-self: center; color: var(--es-ink); font-weight: 700; }
.m3-lab span:nth-child(4) { grid-column: 2; grid-row: 1; justify-self: end; }
.m3-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 0; }
.m3-rn { font-size: 12px; font-weight: 700; color: var(--b-ink); line-height: 1.15; }
.m3-rn em { display: block; font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--b-mute); font-family: var(--b-mono); }
.m3-row.on .m3-rn { color: var(--es-ink); }
.m3-cells { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 2px; height: 24px; position: relative; }
.m3-cells i { border-radius: 3px; background: #eef1f4; transition: background .2s; }
.m3-cells i.band { box-shadow: inset 0 0 0 1px rgba(47, 125, 109, .18); }
.m3-cells i.pass { background: #cfd5dd; }
.m3-cells i.steer { background: var(--es); }
.m3-cells i.trail { background: #9fd0c3; }
.m3-q { margin: 0 0 8px !important; font-size: 13.5px; font-style: italic; color: var(--b-ink) !important; }
.m3-out { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 9px; border-radius: 9px; margin-bottom: 6px; font-size: 13px; line-height: 1.45; color: var(--b-ink); min-height: 50px; }
.m3-out.base { background: #f6f7f9; } .m3-out.steer { background: var(--es-soft); }
.m3-ok { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--b-mute); padding-top: 2px; }
.m3-out.steer .m3-ok { color: var(--es-ink); }
.m3 .ty .off { color: transparent; }
.m3 .ty.caret .on::after { content: ""; display: inline-block; width: .42em; height: 1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; opacity: .55; animation: esblink .8s steps(1) infinite; }

@media (max-width: 720px) {
  .m3-grid, .es-pair { grid-template-columns: minmax(0, 1fr); }
  .m3.anim .m3-p { opacity: 1; }
  .m3-tab { padding: 7px 9px 9px 7px; font-size: 13.5px; }
  .m3-row, .m3-lab { grid-template-columns: 70px minmax(0, 1fr); }
}
