/* Indic Shift (/news/indic-shift/). The news template's type and column, with one figure style on top:
   a quiet white card with a hairline, nothing boxed inside it, Indic Shift in orange and every other
   tokenizer in warm greys. Scripts are drawn in the site's own Noto Serif files (the post's <style>).
   Drawn by indic-shift.js from the data embedded in the page. */

[data-post="indic-shift"] {
    --is-accent: #eb663a;
    --is-accent-deep: #c24f27;
    --is-accent-soft: rgba(235, 102, 58, .1);
    --is-accent-line: rgba(235, 102, 58, .42);
    --is-card: #fffefb;
    --is-line: #e6e0d8;
    --is-line-2: #f0ebe3;
    --is-grey: #d6cfc4;
    --is-grey-2: #a8a094;
    --is-muted: #8f8880;
    --is-ink: #2a2724;
    --is-body: #45413d;
    --is-tok-a: #f4efe7;
    --is-tok-b: #ebe4d8;
    --is-ease: cubic-bezier(.25, .7, .2, 1);
    --is-indic: 'Noto Serif Devanagari', 'Noto Serif Bengali', 'Noto Serif Gurmukhi', 'Noto Serif Gujarati', 'Noto Serif Oriya',
        'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Kannada', 'Noto Serif Malayalam', 'Noto Nastaliq Urdu';
    --is-sans-indic: 'Geist', var(--is-indic), 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --is-serif-indic: var(--is-indic), 'LT Superior Serif', Georgia, serif;
}

/* ---------- Rhythm ---------- */
[data-post="indic-shift"] .post-head > .wrap { padding-bottom: clamp(12px, 1.5vw, 20px); }
/* Less air under the title only when the cover follows it. */
[data-post="indic-shift"] .body:has(> .is-cover) { margin-top: clamp(8px, 1.5vw, 20px); }
[data-post="indic-shift"] .body > figure { margin-top: 48px; }
[data-post="indic-shift"] .body > figure + * { margin-top: 40px; }
[data-post="indic-shift"] .body > figure.is-cover { margin-top: 0; }
[data-post="indic-shift"] .body h2[id], [data-post="indic-shift"] .body h3[id] { scroll-margin-top: 88px; }
[data-post="indic-shift"] .body figure.wide > figcaption { max-width: 680px; }
[data-post="indic-shift"] .body figure:has(> .label) { display: flex; flex-direction: column; }
[data-post="indic-shift"] .body figure > .label {
    order: 2; max-width: 680px; margin: 14px 0 0; font-family: var(--sans); font-size: 13.5px; font-weight: 500;
    line-height: 1.5; letter-spacing: 0; color: var(--is-ink);
}
[data-post="indic-shift"] .body figure > .label + * { order: 1; }
[data-post="indic-shift"] .body figure > figcaption { order: 3; }
[data-post="indic-shift"] .body figure > .label ~ figcaption { margin-top: 2px; }
[data-post="indic-shift"] .body figure > figcaption { margin-top: 12px; line-height: 1.55; }
[data-post="indic-shift"] .body :not(pre) > code {
    font-family: var(--mono); font-size: .84em; padding: .12em .38em; border-radius: 4px;
    background: #f1ebe2; color: var(--is-ink);
}
[data-post="indic-shift"] .body button { font-family: var(--sans); }

/* ---------- Cover: one word, nine scripts ---------- */
.is-cover { text-align: center; }
.is-cover-stage { display: flex; flex-direction: column; align-items: center; }
.is-cover-script { height: 20px; font-size: 15px; line-height: 20px; color: var(--is-muted); }
.is-cover-word {
    display: flex; align-items: center; justify-content: center; height: 1.42em; margin-top: 6px;
    font-family: var(--is-serif-indic); font-size: clamp(88px, 13vw, 164px); line-height: 1; color: var(--is-ink);
    will-change: opacity, transform;
}
.is-cover-rows { display: grid; grid-template-columns: auto auto; gap: 12px 22px; margin-top: 10px; }
.is-cover-rows > div { display: contents; }
.is-cover-rows dt { text-align: right; font-size: 16px; line-height: 26px; color: var(--is-muted); }
.is-cover-rows dd { min-width: 42ch; text-align: left; font: 18px/26px var(--mono); color: var(--is-body); white-space: nowrap; }
.is-cover-bytes { transition: color .3s ease; }
.is-cover-bytes.is-fresh { color: var(--is-ink); }
.is-cover-id { font-weight: 500; color: var(--is-accent-deep); }
.is-cover-marker {
    display: inline-block; margin-right: 10px; padding: 0 8px; border: 1px dashed var(--is-accent-line); border-radius: 4px;
    font-size: 14px; line-height: 24px; color: var(--is-accent-deep); vertical-align: 1px;
}
.is-cover-marker[hidden] { display: none; }
.is-cover-foot { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 30px; }
.is-cover-scripts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
.is-cover-scripts button {
    position: relative; padding: 4px 9px 12px; border: 0; background: none; cursor: pointer;
    font-family: var(--is-serif-indic); font-size: 22px; line-height: 1.35; color: #cbc4b9; transition: color .25s ease;
}
.is-cover-scripts button:hover { color: var(--is-body); }
.is-cover-scripts button[aria-pressed="true"] { color: var(--is-ink); }
.is-cover-scripts button::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--is-accent); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .25s ease;
}
.is-cover-scripts button[aria-pressed="true"]::after { opacity: 1; transform: none; }
.is-cover-pause {
    position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -19px; display: grid; place-items: center;
    border: 1px solid var(--is-line); border-radius: 50%; background: var(--is-card); color: var(--is-muted); cursor: pointer;
}
.is-cover-pause:hover { color: var(--is-ink); border-color: var(--is-grey-2); }
.is-cover-pause .i-play, .is-cover-pause[aria-pressed="true"] .i-pause { display: none; }
.is-cover-pause[aria-pressed="true"] .i-play { display: inline; }
@media (max-width: 640px) {
    .is-cover-rows { grid-template-columns: 1fr; gap: 2px; }
    .is-cover-rows dt, .is-cover-rows dd { text-align: center; min-width: 0; }
    .is-cover-rows dt { margin-top: 10px; font-size: 13px; line-height: 20px; }
    .is-cover-rows dd { font-size: 13.5px; line-height: 22px; }
    .is-cover-marker { font-size: 12px; line-height: 20px; }
    .is-cover-scripts button { font-size: 19px; padding: 4px 6px 12px; }
    .is-cover-foot { flex-direction: column; gap: 10px; margin-top: 22px; }
    .is-cover-pause { position: static; margin: 0; }
}

/* ---------- Links and buttons under the intro, and the contents ---------- */
.is-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
[data-post="indic-shift"] .is-actions .btn { display: inline-flex; align-items: center; gap: 9px; }
.is-logo { display: block; flex: none; width: auto; height: 18px; }
[data-post="indic-shift"] .is-actions .is-kosh { padding-top: 0; padding-bottom: 0; }
.is-kosh .is-logo { height: 22px; }
.is-ico { flex: none; }
.is-pip {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 43px;
    padding: 0 12px 0 14px; border: 1px solid var(--is-line); border-radius: 2px; background: var(--is-card); cursor: pointer;
    font: 13.5px var(--mono); color: var(--is-ink); transition: border-color .15s ease;
}
.is-pip:hover { border-color: var(--is-grey-2); }
.is-pip-prompt { color: var(--is-grey-2); }
@media (max-width: 560px) {
    [data-post="indic-shift"] .is-actions .btn { flex: 1 1 auto; justify-content: center; }
    .is-pip { flex: 1 1 100%; }
}

.is-toc { margin-top: 30px !important; padding-top: 14px; border-top: 1px solid var(--is-line); }
.is-toc-title { font-size: 13px; line-height: 1.2; color: var(--is-muted); }
.is-toc ol { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; padding: 0; list-style: none; }
.is-toc li + li { margin-top: 0 !important; }
.is-toc a { font-size: 15px; color: var(--is-body); text-decoration: none; }
.is-toc a:hover { color: var(--is-ink); text-decoration: underline; text-decoration-color: var(--is-grey); text-underline-offset: 4px; }
@media (min-width: 1360px) {
    [data-post="indic-shift"] .body { position: relative; }
    .is-toc { position: absolute; top: 0; bottom: 0; left: -216px; width: 172px; margin: 0 !important; padding: 0; border: 0; }
    .is-toc-in { position: sticky; top: 104px; transition: opacity .3s ease; }
    .is-toc ol { display: block; margin-top: 14px; border-left: 1px solid var(--is-line); }
    .is-toc a {
        display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent;
        font-size: 13.5px; line-height: 1.35; color: var(--is-muted); transition: color .2s ease, border-color .2s ease;
    }
    .is-toc a:hover { text-decoration: none; color: var(--is-ink); }
    .is-toc a.is-active { color: var(--is-ink); border-left-color: var(--is-ink); }
    .is-toc.is-dim .is-toc-in { opacity: 0; pointer-events: none; }
}

/* ---------- Key numbers ---------- */
[data-post="indic-shift"] .body .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 44px; }
[data-post="indic-shift"] .body .stat { padding: 16px 0 0; border: 0; border-top: 1px solid var(--is-ink); background: none; }
[data-post="indic-shift"] .body .stat b { font-size: clamp(34px, 3.4vw, 42px); }
[data-post="indic-shift"] .body .stat span { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--is-body); }
@media (max-width: 720px) { [data-post="indic-shift"] .body .stats { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- The figure card and its controls ---------- */
.is-card { padding: 26px 30px 28px; border: 1px solid var(--is-line); border-radius: 10px; background: var(--is-card); }
.is-fig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.is-fig-head-rule { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--is-line); }
.is-col-title { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--is-ink); }
.is-col-title span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--is-muted); }
.is-col-sub { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--is-muted); }
.is-col-note { font-size: 13px; line-height: 1.55; color: var(--is-muted); }
.is-note { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--is-body); }

/* Two to four choices: a segmented control. */
.is-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border: 1px solid var(--is-line); border-radius: 7px; background: #f6f2eb; }
.is-seg button {
    padding: 5px 12px; border: 0; border-radius: 5px; background: transparent; cursor: pointer;
    font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--is-muted); white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.is-seg button:hover { color: var(--is-ink); }
.is-seg button[aria-pressed="true"], .is-seg button[aria-selected="true"] {
    background: var(--is-card); color: var(--is-ink); box-shadow: 0 0 0 1px var(--is-line), 0 1px 2px rgba(42, 39, 36, .06);
}
/* More choices: plain words, the chosen one underlined. */
.is-choices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.is-choices button {
    padding: 4px 0 5px; border: 0; border-bottom: 1.5px solid transparent; background: none; cursor: pointer;
    font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--is-muted); white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.is-choices button:hover { color: var(--is-ink); }
.is-choices button[aria-pressed="true"], .is-choices button[aria-selected="true"] { color: var(--is-ink); border-bottom-color: var(--is-ink); }
.is-choices .is-script { font-family: var(--is-serif-indic); font-size: 16px; font-weight: 400; }
.is-choices .is-gloss { margin-left: 5px; font-weight: 400; color: var(--is-grey-2); }
.is-choices button[aria-pressed="true"] .is-gloss { color: var(--is-muted); }
.is-script { font-family: var(--is-serif-indic); }
@media (max-width: 640px) {
    .is-card { padding: 18px 16px 20px; border-radius: 8px; }
    .is-fig-head { margin-bottom: 18px; }
    .is-choices { gap: 0 14px; }
}

/* ---------- Figure 2: cognates and the wire stream ---------- */
.is-cog-sum { margin-bottom: 16px; font-size: 15px; line-height: 1.5; color: var(--is-body); }
.is-cog-sum .is-script { font-size: 19px; color: var(--is-ink); }
.is-cog-sum b { font: 500 14px var(--mono); color: var(--is-accent-deep); }
.is-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.is-cog { width: 100%; border-collapse: collapse; }
.is-cog th {
    padding: 0 14px 10px 0; border-bottom: 1px solid var(--is-line); text-align: left; white-space: nowrap;
    font-size: 12.5px; font-weight: 400; color: var(--is-muted);
}
.is-cog th.us { color: var(--is-accent-deep); }
.is-cog td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--is-line-2); white-space: nowrap; vertical-align: middle; }
.is-cog tbody tr:last-child td { border-bottom: 0; }
.is-cog .sc { font-size: 13px; color: var(--is-muted); }
.is-cog .wd { font-family: var(--is-serif-indic); font-size: 21px; line-height: 1.3; color: var(--is-ink); }
.is-cog .id { font: 500 13px var(--mono); color: var(--is-accent-deep); }
.is-cog .id.alt { font-weight: 400; color: var(--is-body); }
.is-cog .n { font: 12px var(--mono); color: var(--is-muted); }
.is-cog tr.na td { color: var(--is-grey-2); }
.is-cog tr.na .why { font-size: 12.5px; white-space: normal; }
.is-pips { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.is-pips i { width: 7px; height: 7px; border-radius: 50%; background: var(--is-grey); }
.is-pips i.us { background: var(--is-accent); }
.is-pips i.mk { background: transparent; box-shadow: inset 0 0 0 1.3px var(--is-grey-2); }
#fig-explorer .is-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--is-muted); }
.is-legend .is-pips { margin-right: 6px; }
.is-legend .is-sw { display: inline-block; width: 18px; height: 12px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }

.is-wire-src { margin-bottom: 20px; font-family: var(--is-sans-indic); font-size: 26px; line-height: 1.5; color: var(--is-ink); }
.is-wire { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 2px; }
.is-sym { display: inline-flex; flex-direction: column; align-items: center; min-width: 30px; padding: 0 2px; }
.is-sym .c { display: block; height: 38px; font-family: var(--is-sans-indic); font-size: 22px; line-height: 38px; color: var(--is-ink); }
.is-sym .l {
    display: block; width: 100%; margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--is-line);
    font-size: 11.5px; text-align: center; color: var(--is-muted); white-space: nowrap;
}
.is-sym.dg .l { color: var(--is-ink); }
.is-sym.raw .c { color: var(--is-grey-2); }
.is-sym.mk { margin: 0 6px; padding: 0 2px 0 9px; border-left: 2px solid var(--is-accent); align-items: flex-start; }
.is-sym.mk .c { font: 500 15px/38px var(--mono); color: var(--is-accent-deep); }
.is-sym.mk .l { border-top-color: transparent; text-align: left; color: var(--is-accent-deep); }

/* ---------- Figure 3: one sentence, six tokenizers, set as type ---------- */
.is-total { font-size: 13.5px; color: var(--is-muted); white-space: nowrap; }
.is-total b { font: 500 15px var(--mono); color: var(--is-ink); }
.is-trace { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-height: 44px; padding: 4px 0 14px; font-size: 13.5px; color: var(--is-muted); }
.is-trace-lbl { color: var(--is-muted); }
.is-trace-read { margin-left: auto; font-size: 13px; color: var(--is-muted); }
.is-trace-read b { font: 500 13px var(--mono); color: var(--is-accent-deep); }
.is-trace-note { font-size: 13.5px; color: var(--is-body); }
.is-sent { border-top: 1px solid var(--is-line); }
.is-srow {
    display: grid; grid-template-columns: 112px minmax(0, 1fr) 96px; gap: 22px; align-items: baseline;
    padding: 14px 0 13px; border-bottom: 1px solid var(--is-line-2);
}
.is-srow:last-child { border-bottom: 0; }
.is-slang .n { display: block; font-size: 14px; line-height: 1.3; color: var(--is-ink); }
.is-slang .nat { display: block; margin-top: 3px; font-family: var(--is-sans-indic); font-size: 12.5px; color: var(--is-grey-2); }
.is-srow.eng .is-slang .n { color: var(--is-muted); }
.is-stext {
    display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; min-width: 0;
    font-family: var(--is-serif-indic); font-size: 20px; line-height: 1.75; color: var(--is-ink);
}
.is-srow.eng .is-stext { color: var(--is-muted); }
.is-srow.rtl .is-stext { font-size: 18px; line-height: 2.2; }
.is-t { padding: 0 3px; white-space: pre; transition: color .18s ease; }
.is-t + .is-t { background: linear-gradient(#ddd5c8, #ddd5c8) left 55% / 1px .9em no-repeat; }
.is-srow.rtl .is-t + .is-t { background-position: right 55%; }
.is-t .w { text-decoration: none; }
.is-t.s { cursor: pointer; }
.is-t.s .w { text-decoration: underline dotted var(--is-accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.is-t.s:hover .w, .is-t.lit .w { color: var(--is-accent-deep); text-decoration-style: solid; }
.is-t.mk { align-self: center; padding: 0 6px 0 4px; font: 500 11.5px/1 var(--sans); color: var(--is-accent-deep); white-space: nowrap; }
.is-t.byte { color: var(--is-grey); }
.is-t.bol { background: none; }
.is-scount { text-align: right; line-height: 1.3; }
.is-scount b { display: block; font: 500 16px var(--mono); color: var(--is-ink); }
.is-scount small { display: block; margin-top: 2px; font-size: 12px; color: var(--is-muted); white-space: nowrap; }
.is-legend { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--is-muted); }
.is-sent.is-swap .is-stext, .is-sent.is-swap .is-scount { animation: is-in .32s var(--is-ease) both; }
@keyframes is-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .is-srow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .is-slang { display: flex; align-items: baseline; gap: 8px; }
    .is-slang .nat { margin-top: 0; }
    .is-stext { grid-column: 1 / -1; font-size: 18px; }
    .is-scount { grid-column: 2; grid-row: 1; }
    .is-scount b, .is-scount small { display: inline; }
    .is-scount small { margin-left: 6px; }
    .is-trace-read { margin-left: 0; flex-basis: 100%; }
    /* Six tokenizers don't fit a segmented control on a phone: plain words, the chosen one underlined. */
    #fig-sentence .is-seg { gap: 0 16px; padding: 0; border: 0; border-radius: 0; background: none; }
    #fig-sentence .is-seg button { padding: 4px 0 5px; border-radius: 0; border-bottom: 1.5px solid transparent; font-size: 13.5px; }
    #fig-sentence .is-seg button[aria-pressed="true"] { background: none; box-shadow: none; border-bottom-color: var(--is-ink); }
}

/* ---------- Figure 4: average fertility (build.py's bars) ---------- */
[data-post="indic-shift"] .body .bars {
    gap: 9px; padding: 24px 30px 24px; border: 1px solid var(--is-line); border-radius: 10px; background: var(--is-card);
}
[data-post="indic-shift"] .body .bars .row { grid-template-columns: minmax(0, 310px) minmax(0, 1fr) 46px; gap: 14px; font-size: 14px; }
[data-post="indic-shift"] .body .bars .name { color: var(--is-body); }
[data-post="indic-shift"] .body .bars .name small { display: inline; margin-left: 8px; font-family: var(--sans); font-size: 12px; color: var(--is-grey-2); }
[data-post="indic-shift"] .body .bars .us .name { color: var(--is-ink); }
[data-post="indic-shift"] .body .bars .track { height: 10px; }
[data-post="indic-shift"] .body .bars .fill {
    border-radius: 1px; background: #ddd6ca; transform-origin: left; transition: transform 1s var(--is-ease);
}
[data-post="indic-shift"] .body .bars .us .fill { background: var(--is-accent); }
[data-post="indic-shift"] .body .bars .v { font-size: 12.5px; color: var(--is-muted); }
[data-post="indic-shift"] .body .bars .us .v { color: var(--is-ink); }
[data-post="indic-shift"] .body .bars.is-pending .fill { transform: scaleX(0); }
@media (max-width: 640px) {
    [data-post="indic-shift"] .body .bars { padding: 18px 16px; }
    [data-post="indic-shift"] .body .bars .name small { display: block; margin: 1px 0 0; }
}

/* ---------- Figure 5: every language, two dots ---------- */
.is-summary { margin-bottom: 20px; font-size: 15px; line-height: 1.55; color: var(--is-body); }
.is-summary b { font-weight: 500; color: var(--is-ink); }
.is-summary .us { color: var(--is-accent-deep); }
.is-summary .num { font-family: var(--mono); font-size: 14px; }
.is-dax, .is-drow { display: grid; grid-template-columns: 118px minmax(0, 1fr) 56px; gap: 16px; align-items: center; }
.is-dax { height: 20px; margin-bottom: 4px; }
.is-dax-ticks { position: relative; height: 100%; }
.is-dax-ticks span { position: absolute; top: 0; transform: translateX(-50%); font: 10.5px/20px var(--mono); color: var(--is-grey-2); transition: left .5s var(--is-ease); }
.is-dax .r { text-align: right; font: 10.5px/20px var(--mono); color: var(--is-grey-2); }
.is-drow { height: 27px; }
.is-drow:hover { background: linear-gradient(90deg, transparent, #faf6f0 8%, #faf6f0 92%, transparent); }
.is-dlang { overflow: hidden; font-size: 13.5px; color: var(--is-ink); white-space: nowrap; text-overflow: ellipsis; }
.is-dlang small { margin-left: 6px; font-size: 11.5px; color: var(--is-grey-2); }
.is-dtrack { position: relative; height: 100%; }
.is-dgrid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--is-line-2); }
.is-dline { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: #efe4d8; transition: left .5s var(--is-ease), width .5s var(--is-ease); }
.is-dpt {
    position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    transition: left .5s var(--is-ease);
}
.is-dpt.o { background: var(--is-grey-2); }
.is-dpt.u { background: var(--is-accent); box-shadow: 0 0 0 2px var(--is-card); }
.is-dval { text-align: right; font: 12.5px var(--mono); color: var(--is-ink); }
.is-dval.tie { color: var(--is-muted); }
.is-drow.eng { margin-top: 10px; border-top: 1px dashed var(--is-line); height: 37px; padding-top: 10px; }
.is-drow.eng .is-dlang { color: var(--is-muted); }
@media (max-width: 640px) {
    .is-dax, .is-drow { grid-template-columns: 76px minmax(0, 1fr) 42px; gap: 10px; }
    .is-dlang { font-size: 12.5px; }
    .is-dlang small { display: none; }
}

/* ---------- Tables (build.py's results) ---------- */
[data-post="indic-shift"] .body .results { border: 1px solid var(--is-line); border-radius: 10px; background: var(--is-card); }
[data-post="indic-shift"] .body .results table { font-size: 13.5px; }
[data-post="indic-shift"] .body .results th, [data-post="indic-shift"] .body .results td { padding: 10px 14px; border-bottom: 1px solid var(--is-line-2); }
[data-post="indic-shift"] .body .results thead th {
    padding-top: 16px; border-bottom: 1px solid var(--is-line); font-family: var(--sans); font-size: 12px; font-weight: 400;
    letter-spacing: 0; text-transform: none; color: var(--is-muted);
}
[data-post="indic-shift"] .body .results tbody th {
    font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--is-ink); text-align: left; white-space: nowrap;
}
[data-post="indic-shift"] .body .results td { font-size: 12.5px; color: var(--is-muted); }
[data-post="indic-shift"] .body .results tr.us td, [data-post="indic-shift"] .body .results tr.us th { background: none; font-weight: 400; }
[data-post="indic-shift"] .body .results tr.us td { color: var(--is-body); }
[data-post="indic-shift"] .body .results tr.us th::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--is-accent); vertical-align: 1px;
}
[data-post="indic-shift"] .body .results td.us { color: var(--is-ink); }
[data-post="indic-shift"] .body .results tbody tr:hover td, [data-post="indic-shift"] .body .results tbody tr:hover th { background: #faf7f2; }
[data-post="indic-shift"] .body details.more { padding-top: 16px; border-top: 1px solid var(--is-line); }
[data-post="indic-shift"] .body details.more summary, .is-more summary {
    display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer;
    font: 500 14px var(--sans); color: var(--is-ink);
}
[data-post="indic-shift"] .body details.more summary::-webkit-details-marker, .is-more summary::-webkit-details-marker { display: none; }
[data-post="indic-shift"] .body details.more summary::before, .is-more summary::before {
    content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--is-line); border-radius: 50%;
    font: 400 14px/1 var(--sans); color: var(--is-muted); transition: transform .2s ease;
}
[data-post="indic-shift"] .body details.more[open] summary::before, .is-more[open] summary::before { transform: rotate(45deg); }
[data-post="indic-shift"] .body details.more[open] summary { margin-bottom: 18px; }

/* ---------- Figure 6: scaling and sharing ---------- */
.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.is-split-col { min-width: 0; padding: 26px 30px 26px; }
.is-split-col + .is-split-col { border-left: 1px solid var(--is-line); }
.is-col-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.is-chart { display: block; width: 100%; height: auto; margin: 16px 0 12px; overflow: visible; }
.is-chart text { font-family: var(--mono); font-size: 11px; fill: var(--is-muted); }
.is-chart .g { stroke: var(--is-line-2); stroke-width: 1; }
.is-chart .eq { stroke: var(--is-accent); stroke-opacity: .55; stroke-width: 1.3; stroke-dasharray: 4 4; fill: none; }
.is-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.is-chart .ln.u { stroke: var(--is-accent); stroke-width: 2.6; }
.is-chart .ln.t { stroke: var(--is-grey-2); }
.is-chart .pt.u { fill: var(--is-accent); stroke: var(--is-card); stroke-width: 2; }
.is-chart .pt.t { fill: var(--is-grey-2); stroke: var(--is-card); stroke-width: 2; }
.is-chart .v.u { fill: var(--is-ink); font-weight: 500; }
.is-chart .x { fill: var(--is-ink); font-size: 12px; font-weight: 500; }
.is-chart .s { fill: var(--is-accent-deep); font-size: 10.5px; }
.is-chart .k { font-family: var(--sans); font-size: 12px; fill: var(--is-body); }
.is-chart.is-pending .ln { stroke-dashoffset: var(--len); }
.is-chart .ln { stroke-dasharray: var(--len) var(--len); transition: stroke-dashoffset 1.1s var(--is-ease); }
.is-share { display: grid; gap: 8px; margin-top: 18px; }
.is-share-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 13px; color: var(--is-ink); }
.is-share-track { height: 8px; overflow: hidden; border-radius: 1px; background: #f2ede5; }
.is-share-fill { height: 100%; background: var(--is-accent); transition: width .55s var(--is-ease); }
.is-share-val { text-align: right; font: 12px var(--mono); color: var(--is-ink); }
.is-col-sub b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--is-ink); }
@media (max-width: 880px) {
    .is-split { grid-template-columns: minmax(0, 1fr); }
    .is-split-col + .is-split-col { border-left: 0; border-top: 1px solid var(--is-line); }
}
@media (max-width: 640px) { .is-split-col { padding: 20px 16px; } }

/* ---------- Figure 7: text read, and bits per byte ---------- */
.is-gb { display: grid; gap: 9px; margin-top: 16px; }
.is-gb-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 76px minmax(0, 200px); gap: 14px; align-items: center; font-size: 13.5px; }
.is-gb-name { color: var(--is-body); }
.is-gb-row.us .is-gb-name { color: var(--is-ink); }
.is-gb-track { height: 10px; }
.is-gb-track span {
    display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: 1px; background: #ddd6ca;
    transform-origin: left; transition: transform 1s var(--is-ease);
}
.is-gb-row.us .is-gb-track span { background: var(--is-accent); }
.is-gb.is-pending .is-gb-track span { transform: scaleX(0); }
.is-gb-v { text-align: right; font: 500 12.5px var(--mono); color: var(--is-ink); }
.is-gb-d { font-size: 12px; color: var(--is-muted); white-space: nowrap; }
.is-div { display: grid; gap: 4px; }
.is-dv { display: grid; grid-template-columns: 210px minmax(0, 1fr) 132px; gap: 16px; align-items: center; min-height: 30px; }
.is-dv-label { font-size: 13.5px; color: var(--is-body); }
.is-dv.indic .is-dv-label { color: var(--is-ink); }
.is-dv-area { position: relative; height: 12px; }
.is-dv-zero { position: absolute; top: -9px; bottom: -9px; width: 1px; background: var(--is-grey); transition: left .45s var(--is-ease); }
.is-dv-bar { position: absolute; top: 0; bottom: 0; border-radius: 1px; transition: left .45s var(--is-ease), width .45s var(--is-ease), background-color .2s ease; }
.is-dv-bar.win { background: var(--is-accent); }
.is-dv-bar.tie { background: #d9d1c4; }
.is-dv-val { text-align: right; font: 500 12.5px var(--mono); color: var(--is-ink); white-space: nowrap; }
.is-dv-val.tie { color: var(--is-muted); }
.is-dv-val small { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--is-grey-2); }
.is-more { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--is-line); }
.is-more-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 14px; }
.is-langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 22px; }
.is-lang { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: baseline; font-size: 13px; color: var(--is-ink); }
.is-lang .d { font: 12px var(--mono); color: var(--is-accent-deep); }
.is-lang .d.pos { color: var(--is-muted); }
.is-lang .bar { grid-column: 1 / -1; height: 3px; border-radius: 1px; background: #f2ede5; overflow: hidden; }
.is-lang .bar i { display: block; height: 100%; background: var(--is-accent); transition: width .45s var(--is-ease); }
.is-lang .bar i.pos { background: var(--is-grey); }
@media (max-width: 760px) {
    .is-gb-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .is-gb-track { grid-column: 1 / -1; grid-row: 2; }
    .is-gb-d { display: none; }
    .is-dv { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .is-dv-area { grid-column: 1 / -1; grid-row: 2; margin-bottom: 8px; }
    .is-dv-val small { display: none; }
}

/* ---------- Code ---------- */
.is-code { overflow: hidden; border: 1px solid var(--is-line); border-radius: 10px; background: #f8f4ee; }
.is-code-head {
    display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 9px 18px;
    border-bottom: 1px solid var(--is-line); font: 12px var(--mono); color: var(--is-muted);
}
.is-code pre { margin: 0; padding: 18px 20px 20px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #4a4540; tab-size: 4; }
.is-code code { font-family: var(--mono), var(--is-indic); }
.is-code .ck { color: var(--is-ink); font-weight: 500; }
.is-code .cf { color: #3f3a8a; }
.is-code .cs { color: var(--is-accent-deep); }
.is-code .cc { color: #a39b90; }

/* ---------- Open source, at the end ---------- */
.is-open { margin-top: 64px !important; padding-top: 30px; border-top: 1px solid var(--is-ink); }
[data-post="indic-shift"] .body .is-open h2 { margin-top: 0; }
.is-open p { margin-top: 12px; }
.is-open .is-actions { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
    [data-post="indic-shift"] *, [data-post="indic-shift"] *::before, [data-post="indic-shift"] *::after {
        transition-duration: 0s !important; animation-duration: 0s !important;
    }
}

/* ================= v2 refinements (append to post.css) =================
   1 small type passes 4.5:1; 2 the cover states its own point;
   4 numbered chapters with real headings; 5 stats as number / claim / evidence;
   6 lists as ruled rows; 7 controls and tables that never wrap or scroll on desktop. */

[data-post="indic-shift"] {
    --is-muted: #6f6961;
    --is-grey-2: #7a7368;
}
[data-post="indic-shift"] .body { counter-reset: is-sec; }
[data-post="indic-shift"] .post-head .when { display: inline-block; }
[data-post="indic-shift"] .post-head .byline { display: inline-block; margin: 22px 0 0; font: 12.5px var(--mono); color: var(--muted); }
[data-post="indic-shift"] .post-head .byline::before { content: "·"; margin: 0 8px; }
[data-post="indic-shift"] .body figcaption { font-size: 13.5px; color: var(--is-muted); }
[data-post="indic-shift"] .body figure > .label { margin-top: 16px; font-size: 14px; font-weight: 600; }
[data-post="indic-shift"] .body p em { font-style: normal; font-family: var(--is-serif-indic); color: var(--is-ink); }
.is-card, [data-post="indic-shift"] .body .bars, [data-post="indic-shift"] .body .results, .is-code { border-radius: 6px; }

/* ---------- Cover ---------- */
.is-cover-word { font-size: clamp(96px, 15vw, 184px); }
.is-cover-rows { gap: 18px 26px; margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--is-line); }
.is-cover-rows dt { font: 500 12px/28px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--is-muted); }
.is-cover-rows dd { line-height: 28px; }
.is-cover-rows dd small { display: block; margin-top: 2px; font: 13.5px/20px var(--sans); color: var(--is-muted); white-space: normal; }
.is-cover-id { font-size: 26px; }
.is-cover-marker { vertical-align: 4px; }
.is-cover-scripts button { padding-bottom: 4px; font-size: 24px; }
.is-cover-scripts button::after { content: none; }
.is-cover-foot { margin-top: 22px; }
@media (max-width: 640px) {
    .is-cover-rows { gap: 2px; padding-top: 16px; }
    .is-cover-rows dt { line-height: 20px; }
    .is-cover-rows dd { font-size: 13.5px; line-height: 22px; }
    .is-cover-id { font-size: 22px; }
    /* The script-marker chip stays inside the line it sits on, so the cover is the same height with and without it. */
    .is-cover-marker { line-height: 14px; vertical-align: 3px; }
}

/* ---------- Buttons, contents ---------- */
/* One card: the install line, then three quiet links. */
.is-get { margin-top: 28px !important; border: 1px solid var(--is-line); border-radius: 6px; background: var(--is-card); overflow: hidden; }
[data-post="indic-shift"] .body .is-get .is-pip {
    display: flex; width: 100%; min-height: 0; padding: 20px 22px; border: 0; border-radius: 0; background: none;
    font: 18px var(--mono); white-space: nowrap; text-align: left;
}
[data-post="indic-shift"] .body .is-get .is-pip:hover { background: #faf7f2; }
.is-get-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--is-line); }
[data-post="indic-shift"] .body .is-get-links a {
    display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
    font-size: 15px; font-weight: 500; color: var(--is-ink); text-decoration: none; transition: background-color .15s ease;
}
[data-post="indic-shift"] .body .is-get-links a + a { border-left: 1px solid var(--is-line); }
[data-post="indic-shift"] .body .is-get-links a:hover { background: #faf7f2; color: var(--is-ink); }
.is-get-links .is-kosh-logo { height: 20px; }
.is-open .is-get { margin-top: 22px !important; }
@media (max-width: 560px) {
    [data-post="indic-shift"] .body .is-get .is-pip { padding: 16px; font-size: 15px; }
    .is-get-links { grid-template-columns: minmax(0, 1fr); }
    [data-post="indic-shift"] .body .is-get-links a { padding: 0 16px; }
    [data-post="indic-shift"] .body .is-get-links a + a { border-left: 0; border-top: 1px solid var(--is-line); }
}
.is-toc { padding-top: 0; border-top: 0; }
.is-toc ol { counter-reset: is-toc; gap: 6px 22px; }
.is-toc li { counter-increment: is-toc; }
.is-toc a::before { content: counter(is-toc, decimal-leading-zero); margin-right: 7px; font: 11px var(--mono); color: var(--is-grey-2); }

/* ---------- Key numbers: number, claim, evidence ---------- */
[data-post="indic-shift"] .body .stats { gap: 0 28px; margin-top: 52px; }
[data-post="indic-shift"] .body .stat { padding-top: 20px; }
[data-post="indic-shift"] .body .stat b { font-size: clamp(40px, 4.4vw, 50px); letter-spacing: -.045em; white-space: nowrap; }
[data-post="indic-shift"] .body .stat span { margin-top: 14px; font-size: 15.5px; line-height: 1.4; color: var(--is-ink); }
[data-post="indic-shift"] .body .stat small { display: block; margin-top: 8px; font: 12px/1.55 var(--mono); color: var(--is-muted); }
@media (max-width: 720px) { [data-post="indic-shift"] .body .stats { gap: 26px; } }

/* ---------- Chapters ---------- */
[data-post="indic-shift"] .body > h2[id]:not(#acknowledgements, #citation) {
    counter-increment: is-sec; margin-top: clamp(64px, 7vw, 96px); padding-top: 26px; border-top: 1px solid var(--is-line);
    font-size: clamp(30px, 3.1vw, 40px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance;
}
[data-post="indic-shift"] .body > h2[id]:not(#acknowledgements, #citation)::before {
    content: counter(is-sec, decimal-leading-zero); display: block; margin-bottom: 14px;
    font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--is-accent-deep);
}
[data-post="indic-shift"] .body > h2[id] + p { margin-top: 22px; }

/* ---------- Lists as ruled rows ---------- */
[data-post="indic-shift"] .body > ul { padding: 0; list-style: none; border-top: 1px solid var(--is-line); font-size: 16.5px; line-height: 1.6; }
[data-post="indic-shift"] .body > ul > li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--is-line); }
[data-post="indic-shift"] .body > ul > li + li { margin-top: 0; }
[data-post="indic-shift"] .body > ul > li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 6px; height: 6px; background: var(--is-accent); }

/* ---------- Figures ---------- */
.is-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.is-scroll { overflow-y: hidden; }

.is-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.is-chart text { font-size: 12px; }
.is-chart .x { font-size: 13px; }
.is-chart .s { font-size: 11.5px; }
[data-post="indic-shift"] .body .results th, [data-post="indic-shift"] .body .results td { padding: 10px 9px; }
[data-post="indic-shift"] .body .results thead th { min-width: 0; white-space: normal; }
[data-post="indic-shift"] .body .results th:first-child { position: sticky; left: 0; padding-left: 18px; background: var(--is-card); }
[data-post="indic-shift"] .body .results tr.us th:first-child { background: var(--is-card); }
[data-post="indic-shift"] .body .results td:last-child, [data-post="indic-shift"] .body .results th:last-child { padding-right: 18px; }
@media (max-width: 880px) { .is-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- No orange dots ---------- */
[data-post="indic-shift"] .body .results tr.us th::before { content: none; }
[data-post="indic-shift"] .body .results tr.us th { font-weight: 600; color: var(--is-ink); }
[data-post="indic-shift"] .body .results tr.us td { color: var(--is-ink); }
[data-post="indic-shift"] .body > ul > li { padding-left: 0; }
[data-post="indic-shift"] .body > ul > li::before { content: none; }

/* ---------- Fewer orange dots: token counts in Figure 2 are ink squares, shared words in Figure 3 a solid hairline ---------- */
.is-pips { gap: 2px; }
.is-pips i { width: 7px; height: 7px; border-radius: 1px; background: var(--is-grey); }
.is-pips i.us { background: var(--is-ink); }
.is-pips i.mk { background: transparent; box-shadow: inset 0 0 0 1.3px var(--is-grey-2); }
.is-t.s .w { text-decoration: underline solid rgba(235, 102, 58, .55); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.is-t.s:hover .w, .is-t.lit .w { text-decoration-color: var(--is-accent-deep); text-decoration-thickness: 2px; }

/* ================= v3 · editorial base =================
   After the research posts of Thinking Machines, Anthropic and OpenAI: a left-aligned title page,
   darker and calmer body text, figures on soft borderless panels, plain headings and lists, and one
   quiet control style. Everything above stays; this block overrides it. */

[data-post="indic-shift"] {
    --is-panel: #f3eee6;
    --is-card: #f3eee6;
    --is-line: #ddd4c7;
    --is-line-2: #e6dfd4;
    --is-tok-a: #ebe4d8;
}

/* ---------- Title page: left-aligned on the text column's edge, the title allowed wider ---------- */
[data-post="indic-shift"] .post-head { text-align: left; }
[data-post="indic-shift"] .post-head > .wrap { padding-top: clamp(56px, 8vw, 128px); padding-bottom: clamp(28px, 3.4vw, 48px); }
[data-post="indic-shift"] .post-head > .wrap > * { margin-left: max(0px, calc(50% - var(--measure) / 2)); margin-right: 0; }
[data-post="indic-shift"] .post-head .crumbs { justify-content: flex-start; }
[data-post="indic-shift"] .post-head h1 {
    max-width: 15ch; margin-top: 22px; font-size: clamp(44px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance;
}
[data-post="indic-shift"] .post-head .dek {
    max-width: var(--measure); margin-top: 26px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: rgba(42, 39, 36, .78); text-wrap: pretty;
}
[data-post="indic-shift"] .post-head .when { margin-top: 30px; }
[data-post="indic-shift"] .post-head .byline { margin-top: 30px; margin-left: 0; }

/* ---------- Body ---------- */
[data-post="indic-shift"] .body { line-height: 1.7; color: #33302c; }
[data-post="indic-shift"] .body > figure.is-cover { margin-top: 8px; }
[data-post="indic-shift"] .body > figure { margin-top: 72px; }
[data-post="indic-shift"] .body > figure + * { margin-top: 56px; }
[data-post="indic-shift"] .body > h2[id]:not(#acknowledgements, #citation) {
    margin-top: clamp(80px, 8vw, 120px); padding-top: 0; border-top: 0; font-size: clamp(30px, 3vw, 38px); line-height: 1.1;
}
[data-post="indic-shift"] .body > h2[id]:not(#acknowledgements, #citation)::before { content: none; }
[data-post="indic-shift"] .body > h2[id] + p { margin-top: 20px; }
[data-post="indic-shift"] .body h3 { margin-top: 2.4em; font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.is-toc a::before { content: none; }

/* Lists: plain, an en dash for a marker */
[data-post="indic-shift"] .body > ul { border-top: 0; font-size: 18px; line-height: 1.7; }
[data-post="indic-shift"] .body > ul > li { padding: 0 0 0 26px; border-bottom: 0; }
[data-post="indic-shift"] .body > ul > li + li { margin-top: 14px; }
[data-post="indic-shift"] .body > ul > li::before { content: "–"; left: 2px; top: 0; width: auto; height: auto; background: none; color: var(--is-muted); }

/* ---------- Figures: soft borderless panels, captions as one quiet line of type ---------- */
.is-card, [data-post="indic-shift"] .body .bars, [data-post="indic-shift"] .body .results, .is-code, .is-get { border: 0; border-radius: 10px; background: var(--is-panel); }
.is-card { padding: 32px 36px 34px; }

[data-post="indic-shift"] .body .bars { padding: 28px 36px; }
[data-post="indic-shift"] .body figure > .label { margin-top: 18px; font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
[data-post="indic-shift"] .body figure > figcaption { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--is-muted); }
.is-split-col + .is-split-col { border-color: var(--is-line); }

.is-get .is-pip:hover, [data-post="indic-shift"] .body .is-get .is-pip:hover, [data-post="indic-shift"] .body .is-get-links a:hover { background: rgba(42, 39, 36, .04); }
.is-code-head { border-bottom-color: var(--is-line); }
.is-dpt.u { box-shadow: 0 0 0 2px var(--is-panel); }
[data-post="indic-shift"] .body .results thead th { padding-top: 18px; }
[data-post="indic-shift"] .body .results tbody tr:hover td, [data-post="indic-shift"] .body .results tbody tr:hover th { background: rgba(42, 39, 36, .03); }
@media (max-width: 640px) { .is-card { padding: 20px 16px 22px; } }

/* ---------- Controls: plain words, the chosen one underlined ---------- */
[data-post="indic-shift"] :is(.is-seg, .is-choices) { display: flex; flex-wrap: wrap; gap: 2px 22px; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
[data-post="indic-shift"] :is(.is-seg, .is-choices) button {
    padding: 4px 0 6px; border: 0; border-bottom: 1.5px solid transparent; border-radius: 0; background: none; box-shadow: none;
    font-size: 14px; font-weight: 500; color: var(--is-muted);
}
[data-post="indic-shift"] :is(.is-seg, .is-choices) button:hover { color: var(--is-ink); }
[data-post="indic-shift"] :is(.is-seg, .is-choices) button:is([aria-pressed="true"], [aria-selected="true"]) { color: var(--is-ink); border-bottom-color: var(--is-ink); background: none; box-shadow: none; }

/* ---------- Links card: centred links ---------- */
[data-post="indic-shift"] .body .is-get-links a { justify-content: center; }
.is-pip-prompt { user-select: none; -webkit-user-select: none; }

/* ---------- How it works: numbered steps ---------- */
.is-steps { padding: 0; list-style: none; counter-reset: is-step; }
.is-steps li { position: relative; padding-left: 34px; counter-increment: is-step; }
[data-post="indic-shift"] .body .is-steps li + li { margin-top: 18px; }
.is-steps li::before { content: counter(is-step); position: absolute; left: 0; top: 0; font: 500 15px/1.7 var(--mono); color: var(--is-muted); }
.is-steps b { font-weight: 600; color: var(--is-ink); }

/* ================= Figure 1: a word, decomposed, learned; then the end =================
   Steps 1 to 3 follow one word, left to right (top to bottom in a narrow panel): the word, its script marker
   and atoms, the two tokens BPE learns. Under them, the end: the same three stages for the word in four
   scripts, a column each: the word, what it decomposes into, and its final tokens.
   Every unit is a tile of one height (--h). Sizes follow the panel's width (cqw). */
[data-post="indic-shift"] .body .is-one { padding: 30px 40px 34px; }
.is-one-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); container-type: inline-size; }
.is-one-grid > * { --h: clamp(44px, 5.6cqw, 54px); }

/* Steps 1 to 3. Every unit is a tile of one height: dashed for a script marker, tinted for an atom, solid for the word's token. */
.is-flow { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
.is-flow-st { display: flex; flex-direction: column; align-items: center; max-width: 100%; text-align: center; }
.is-flow-h { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--is-ink); }
.is-flow-h span { margin-right: 9px; font: 500 12.5px var(--mono); color: var(--is-muted); }
.is-flow-b { display: flex; align-items: flex-start; justify-content: center; margin-top: 12px; }
.is-flow-word {
    display: block; height: var(--h); white-space: nowrap;
    font-family: var(--is-serif-indic); font-size: clamp(34px, 4.7cqw, 46px); line-height: var(--h); color: var(--is-ink);
}
.is-u { display: flex; flex-direction: column; align-items: center; }
.is-u-x { display: grid; place-items: center; height: var(--h); border-radius: 7px; white-space: nowrap; }
.is-u-x.at {
    width: clamp(34px, 4.8cqw, 46px); background: rgba(235, 102, 58, .16);
    font-family: var(--is-serif-indic); font-size: clamp(20px, 2.8cqw, 27px); line-height: 1; color: var(--is-ink);
}
.is-u-x.mk { padding: 0 clamp(7px, 1.3cqw, 13px); border: 1px dashed var(--is-accent-line); font: 500 clamp(10.5px, 1.35cqw, 13px) var(--mono); color: var(--is-accent-deep); }
.is-u-x.tok { padding: 0 clamp(14px, 2.2cqw, 22px); background: var(--is-accent); font: 600 clamp(17px, 2.3cqw, 22px) var(--mono); letter-spacing: -.01em; color: #fffefb; }
.is-u small { margin-top: 7px; font: clamp(10px, 1.25cqw, 12px)/1.3 var(--mono); color: var(--is-muted); white-space: nowrap; }
.is-u small.a { font-weight: 500; color: var(--is-accent-deep); }
.is-flow-b > i {
    width: clamp(13px, 2.3cqw, 24px); height: var(--h); text-align: center;
    font: 400 clamp(13px, 1.7cqw, 16px)/var(--h) var(--sans); font-style: normal; color: var(--is-grey-2);
}
.is-flow-n { max-width: 36ch; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--is-muted); }
.is-flow-ar, .is-one-down { position: relative; width: 28px; height: 28px; margin: 12px 0; transform: rotate(90deg); }
.is-one-down { width: 20px; height: 20px; margin: 4px 0 8px; }
.is-flow-ar::before, .is-one-down::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; margin-top: -.75px; border-top: 1.5px solid var(--is-grey-2); }
.is-flow-ar::after, .is-one-down::after {
    content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
    border-top: 1.5px solid var(--is-grey-2); border-right: 1.5px solid var(--is-grey-2); transform: rotate(45deg);
}
@container (min-width: 640px) {
    .is-flow {
        display: grid; grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto; column-gap: clamp(8px, 1.4cqw, 16px);
        align-items: start;
    }
    .is-flow-st { display: contents; }
    .is-flow-st > * { text-align: left; }
    .is-flow-st:nth-of-type(1) > * { grid-column: 1; }
    .is-flow-st:nth-of-type(2) > * { grid-column: 3; }
    .is-flow-st:nth-of-type(3) > * { grid-column: 5; }
    .is-flow-h { grid-row: 1; }
    .is-flow-b { grid-row: 2; justify-content: flex-start; }
    .is-flow-n { grid-row: 3; width: 0; min-width: 100%; max-width: none; }
    .is-flow-ar { grid-row: 2; width: auto; height: var(--h); margin: 12px 0 0; transform: none; }
    span.is-flow-ar:nth-of-type(1) { grid-column: 2; }
    span.is-flow-ar:nth-of-type(2) { grid-column: 4; }
}

/* The end: four script columns, each a word, its decomposition and its final tokens */
.is-one-row {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--is-line); font-size: 15px; line-height: 1.4; color: var(--is-body);
}
.is-one-row b, .is-one-row .n, .is-one-row .n strong { font-weight: 600; color: var(--is-accent-deep); }
.is-one-row .n { font-weight: 400; }
.is-one-script { margin-top: 18px; text-align: center; font-size: clamp(11px, 1.5cqw, 13.5px); line-height: 1.4; color: var(--is-muted); }
.is-one-cell { --dh: clamp(20px, 2.9cqw, 28px); display: flex; flex-direction: column; align-items: center; min-width: 0; margin-top: 4px; padding: 0 3px; }
.is-one-word { white-space: nowrap; font-family: var(--is-serif-indic); font-size: clamp(22px, 3.9cqw, 38px); line-height: 1.5; color: var(--is-ink); }
/* Decomposed: the script's marker (dashed), then the atoms. Stacked in a narrow column, on one line in a wide one. */
.is-one-dec, .is-one-fin { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.is-one-dec .mk, .is-one-dec .at i {
    display: block; height: var(--dh); border-radius: 5px; white-space: nowrap;
    font: 500 clamp(9.5px, 1.25cqw, 12px)/var(--dh) var(--mono); font-style: normal; color: var(--is-accent-deep);
}
.is-one-dec .mk { padding: 0 clamp(4px, .7cqw, 7px); border: 1px dashed var(--is-accent-line); line-height: calc(var(--dh) - 2px); }
.is-one-dec .at { display: flex; gap: clamp(1.5px, .3cqw, 3px); }
.is-one-dec .at i { padding: 0 clamp(1.5px, .6cqw, 6px); background: rgba(235, 102, 58, .16); }
/* Final tokens: the script token (dashed), then the word's token (solid). */
.is-one-fin .is-u-x { height: clamp(30px, 4.3cqw, 44px); border-radius: 6px; }
.is-one-fin .is-u-x.mk { padding: 0 clamp(6px, 1.2cqw, 12px); font-size: clamp(10px, 1.3cqw, 12.5px); }
.is-one-fin .is-u-x.tok { padding: 0 clamp(8px, 1.9cqw, 18px); font-size: clamp(12.5px, 1.9cqw, 18px); }
.is-one-dec .mk.none, .is-one-fin .is-u-x.none { border-color: transparent; }
.is-one-said { grid-column: 1 / -1; margin-top: 20px; font-size: 14px; line-height: 1.4; color: var(--is-accent-deep); text-align: center; }
@container (min-width: 860px) {
    .is-one-dec, .is-one-fin { flex-direction: row; justify-content: center; gap: 6px; }
    .is-one-dec .mk.none, .is-one-fin .is-u-x.none { display: none; }
}
@media (max-width: 640px) {
    [data-post="indic-shift"] .body .is-one { padding: 22px 14px 24px; }
    .is-one-row { margin-top: 26px; padding-top: 18px; font-size: 14px; }
    .is-one-said { font-size: 13px; }
}

/* ================= Copy =================
   The copy symbol; for a moment after it has copied, a tick in its place. The same on the install line (where
   the whole row is the button) and on the code block. */
.is-copy-label, .is-copy { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 6px; color: var(--is-muted); transition: color .15s ease, background-color .15s ease; }
.is-copy { padding: 0; border: 0; background: none; cursor: pointer; }
.is-copy-ico { position: relative; display: block; width: 18px; height: 18px; }
.is-copy-ico svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .16s ease, transform .16s ease; }
.is-copy-ico .i-check { opacity: 0; transform: scale(.5); }
.is-copied .is-copy-ico .i-copy { opacity: 0; transform: scale(.5); }
.is-copied .is-copy-ico .i-check { opacity: 1; transform: none; }
.is-pip:hover .is-copy-label, .is-copy:hover, .is-pip.is-copied .is-copy-label, .is-copy.is-copied { color: var(--is-ink); }
.is-copy:hover { background: rgba(42, 39, 36, .06); }

/* ================= Citation =================
   The one-line citation, set off by a rule; the BibTeX entry reuses the code block. */
.is-cite { padding-left: 18px; border-left: 2px solid var(--is-line); color: var(--is-ink); }
