.article-content .experiment--full[data-widget="language-model-types"] { width: min(calc(100vw - (2 * var(--site-gutter))), 52rem); }
.lm-page { width: min(100% - 2 * var(--site-gutter), var(--site-width)); margin: 3rem auto 6rem; }
.lm-back { font-size: .85rem; font-weight: 700; }
.lm-kicker { margin: 4rem 0 1rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lm-page h1 { max-width: 15ch; margin: 0; font: 700 clamp(3rem, 7vw, 6.5rem)/.98 var(--font-editorial); letter-spacing: -.05em; }
.lm-page h1 em { font-weight: 400; }
.lm-intro { max-width: 52ch; margin: 1.5rem 0 0; color: var(--text-secondary); font-size: 1.1rem; }
.lm-page .experiment { margin: 3rem 0; }
.lm-controls label, .lm-controls legend { display: block; margin-bottom: .5rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lm-controls textarea { box-sizing: border-box; width: 100%; min-height: 5.5rem; resize: vertical; border: 1px solid #777318; border-radius: .25rem; padding: .9rem 1rem; background: #fffef0; color: #20221f; font: 1.1rem/1.45 var(--font-editorial); }
.lm-control-row { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.25rem 0; }
.lm-control-row fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.lm-switch { display: flex; flex-wrap: wrap; gap: .4rem; }
.lm-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.experiment .lm-switch button, .experiment .lm-replay, .experiment .lm-next { min-height: 44px; background: transparent; color: #20221f; font-size: .82rem; }
.experiment .lm-switch button[aria-pressed="true"] { background: #20221f; color: #f4ed44; }
.experiment .lm-replay { white-space: nowrap; }
.experiment button:focus-visible, .lm-controls textarea:focus-visible { outline: 3px solid #176b5a; outline-offset: 3px; }
.lm-stage { border: 1px solid #777318; border-radius: .25rem; background: #fffef0; color: #20221f; overflow: hidden; }
.lm-stage-head, .lm-stage-foot { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.lm-stage-head { border-bottom: 1px solid #e2e0bf; }
.lm-counter { font-variant-numeric: tabular-nums; color: #687067; }
.lm-visual { position: relative; min-height: 13rem; display: grid; align-items: center; }
.lm-canvas { position: absolute; inset: 0; pointer-events: none; }
.lm-canvas canvas { display: block; }
.lm-tokens { position: relative; display: flex; flex-wrap: wrap; align-content: center; gap: .55rem; padding: 2rem 1.25rem; }
.lm-token { display: inline-flex; align-items: center; min-height: 2.7rem; max-width: 100%; padding: .3rem .65rem; border-radius: .2rem; font: 1.15rem/1.25 var(--font-editorial); overflow-wrap: anywhere; }
.lm-token.is-context { background: #e4eee7; color: #164f41; }
.lm-token.is-target { background: #20221f; color: #f4ed44; font-family: var(--font-ui); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.lm-token.is-future { border: 1px dashed #c6c5ae; color: #aaa995; letter-spacing: .12em; }
.lm-stage-foot { justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid #e2e0bf; letter-spacing: .03em; text-transform: lowercase; }
.lm-key { display: inline-flex; align-items: center; gap: .4rem; }
.lm-key i { width: .65rem; height: .65rem; background: #b8d4c1; }
.lm-key-target i { background: #20221f; }
.lm-explanation { display: grid; grid-template-columns: minmax(9rem, .35fr) 1fr; gap: 1rem; padding: 1.3rem 0 .5rem; }
.lm-step { font-size: .67rem; font-weight: 700; letter-spacing: .1em; }
.lm-status { margin: 0; font: 1.2rem/1.4 var(--font-editorial); }
.lm-disclaimer { margin: 1rem 0 0; font-size: .75rem; color: #4e501f; }
.lm-notes { max-width: 64ch; margin: 4rem auto; }
.lm-notes h2 { font-family: var(--font-editorial); }
@media (max-width: 600px) { .lm-page { margin-top: 2rem; } .lm-kicker { margin-top: 3rem; } .lm-control-row { align-items: stretch; flex-direction: column; } .lm-replay { align-self: start; } .lm-explanation { grid-template-columns: 1fr; gap: .5rem; } .lm-visual { min-height: 10rem; } }
@media (prefers-reduced-motion: no-preference) {
  .lm-token.is-target { animation: lm-arrive 420ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes lm-arrive { from { opacity: .35; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
