/* mobile rules skip the poster page (html.poster-doc), which is always laid out at A0 size */
/* FAQ explainers, shared by index.html and poster.html */
  /* error-rate formula figure (accuracy FAQ): colour-coded variables with a matching legend */
  .re-fig { margin: 0; padding: var(--px-4); background: #f5fbff; border: 2px solid #c9dcee; border-radius: 10px; }
  .re-body { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
  .re-formula { display: inline-flex; align-items: center; gap: 10px; font: 700 26px/1 "Noto Serif", Georgia, "Times New Roman", serif; color: var(--panel-ink); }
  .re-lhs sub, .re-v sub { font-size: .55em; }
  .re-frac { display: inline-flex; flex-direction: column; align-items: center; }
  .re-num, .re-den { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; }
  .re-num { border-bottom: 2px solid var(--panel-ink); }
  .re-bar { font-weight: 400; }
  .re-op { font-weight: 400; color: var(--panel-muted); }
  .re-v { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 6px; border-radius: 50%; }
  .re-v sub { align-self: flex-end; margin: 0 0 6px 1px; line-height: 1; }
  .re-lhs sub { vertical-align: -0.35em; }
  .re-nowrap { white-space: nowrap; }
  .v-b { background: #a9ccf0; } .v-e { background: #b9ddab; } .v-l { background: #ffe08f; }
  .re-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font: 400 15px/20px var(--font-body); color: var(--panel-ink); }
  .re-legend li { display: flex; align-items: center; gap: 10px; }
  .re-legend b { display: inline-block; min-width: 30px; }
  .re-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ffffff; box-shadow: 0 0 0 1px #9fb6cc; flex: none; }
  .re-example { margin: var(--px-4) 0 0; padding-top: 12px; border-top: 2px dashed #c9dcee; text-align: center; font: 400 14px/24px var(--font-body); color: var(--panel-ink); }
  .re-chip { display: inline-block; min-width: 28px; padding: 0 6px; border-radius: 999px; font-weight: 700; text-align: center; }
  @media (max-width: 720px) {html:not(.poster-doc) .re-formula { font-size: 22px; }html:not(.poster-doc) .re-v { min-width: 38px; height: 38px; }
  }
  /* TOST number line: the equivalence zone with the observed interval inside it */
  .tost-fig { margin: 0; padding: var(--px-4); background: #f5fbff; border: 2px solid #c9dcee; border-radius: 10px; }
  .tost-step { margin: 0 0 10px; font: 700 13px/18px var(--font-body); color: var(--sea-600); }
  .tost-tests { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 12px; }
  .tost-test { position: relative; padding: 8px 10px 10px; background: #ffffff; border: 2px solid #6aa85a; border-radius: 8px; font: 400 12px/17px var(--font-body); color: var(--panel-ink); }
  .tost-test b { display: block; font-size: 13px; }
  .tost-test em { font-style: normal; font-weight: 700; }
  .tost-pass { display: block; width: fit-content; margin-top: 6px; padding: 0 8px; font-weight: 700; color: #ffffff; background: #4d8f3e; border-radius: 999px; }
  .tost-arrow { position: absolute; bottom: -22px; font: 700 20px/1 var(--font-body); font-style: normal; color: #4d8f3e; }
  .t-left .tost-arrow { left: 18%; } .t-right .tost-arrow { right: 18%; }
  .tost-plot { position: relative; height: 92px; margin: 22px 12px 0; }
  .tost-zone { position: absolute; top: 0; bottom: 30px; background: #d7f0cf; border: 2px dashed #6aa85a; border-radius: 6px; }
  .tost-zone span { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font: 700 12px/16px var(--font-body); color: #2f6b22; }
  .tost-edge { position: absolute; top: -6px; bottom: 30px; width: 0; border-left: 3px solid #4d8f3e; margin-left: -1px; }
  .tost-axis { position: absolute; left: 0; right: 0; bottom: 30px; height: 2px; background: var(--panel-ink); }
  .tost-ci { position: absolute; bottom: 42px; height: 6px; background: var(--sea-600); border-radius: 3px; }
  .tost-ci::before, .tost-ci::after { content: ""; position: absolute; top: -6px; width: 3px; height: 18px; background: var(--sea-600); }
  .tost-ci::before { left: -1px; } .tost-ci::after { right: -1px; }
  .tost-ci-label { position: absolute; bottom: 12px; left: 50%; translate: -50% 0; white-space: nowrap; font: 700 11px/14px var(--font-body); color: var(--sea-600); }
  .tost-tick { position: absolute; bottom: 0; width: 0; }
  .tost-tick::before { content: ""; position: absolute; bottom: 24px; left: -1px; width: 2px; height: 10px; background: var(--panel-ink); }
  .tost-tick span { position: absolute; bottom: 4px; left: 0; translate: -50% 0; font: 400 12px/16px var(--font-body); color: var(--panel-ink); white-space: nowrap; }
  .tost-verdict { margin: 10px 0 18px; text-align: center; font: 400 15px/22px var(--font-body); color: var(--panel-ink); }
  .tost-verdict strong { color: #2f6b22; }
  .tost-verdict span { display: inline-block; white-space: nowrap; margin-left: 8px; padding: 1px 8px; font: 700 12px/18px var(--font-body); color: #2f6b22; background: #d7f0cf; border-radius: 999px; }
  .bf { margin: 0 12px; }
  .bf-scale { position: relative; height: 70px; }
  .bf-band { position: absolute; top: 34px; height: 10px; }
  .b-diff { background: #f6d6c4; border-radius: 5px 0 0 5px; } .b-same { background: #d7f0cf; border-radius: 0 5px 5px 0; }
  .bf-mid { position: absolute; top: 28px; height: 22px; border-left: 2px solid var(--panel-ink); margin-left: -1px; }
  .bf-tick { position: absolute; top: 44px; width: 0; }
  .bf-tick::before { content: ""; position: absolute; top: 0; left: -1px; width: 2px; height: 6px; background: var(--panel-muted); }
  .bf-tick span { position: absolute; top: 8px; left: 0; translate: -50% 0; font: 400 11px/14px var(--font-body); color: var(--panel-muted); }
  .bf-mark { position: absolute; top: 0; width: 0; }
  .bf-mark::after { content: ""; position: absolute; top: 30px; left: -8px; width: 12px; height: 12px; border: 2px solid #ffffff; border-radius: 50%; }
  .bf-mark span { position: absolute; top: 0; left: 0; translate: -50% 0; white-space: nowrap; text-align: center; font: 400 10px/13px var(--font-body); color: var(--panel-ink); }
  .bf-mark b { font-size: 11px; }
  .m-err::after { background: #4d8f3e; } .m-dur::after { background: #c0653a; }
  .bf-ends { display: flex; justify-content: space-between; margin-top: 4px; font: 700 11px/16px var(--font-body); color: var(--panel-muted); }
  .tost-fig figcaption { margin-top: 10px; text-align: center; font: 400 13px/20px var(--font-body); color: var(--panel-muted); }
  @media (max-width: 720px) {html:not(.poster-doc) .tost-tests { gap: 8px; margin: 0; }html:not(.poster-doc) .tost-test { font-size: 11px; line-height: 15px; padding: 6px 8px 8px; }html:not(.poster-doc) .tost-plot, html:not(.poster-doc) .bf { margin-left: 4px; margin-right: 4px; }html:not(.poster-doc) .tost-zone span { font-size: 10px; }html:not(.poster-doc) .tost-plot { height: 104px; }
  }
  /* Cohen's d: two nearly overlapping curves plus a small/medium/large gauge */
  .d-fig { margin: 0; padding: var(--px-4); background: #f5fbff; border: 2px solid #c9dcee; border-radius: 10px; display: grid; gap: 18px; }
  .d-curves svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
  .d-kr { fill: #0666bf33; stroke: #0666bf; stroke-width: 2; }
  .d-en { fill: #e39c4733; stroke: #c0653a; stroke-width: 2; stroke-dasharray: 5 3; }
  .d-mean { stroke: #0666bf; stroke-width: 1.5; } .d-mean-en { stroke: #c0653a; }
  .d-base { stroke: var(--panel-ink); stroke-width: 1.5; }
  .d-key { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 8px 0 0; padding: 0; font: 400 12px/16px var(--font-body); color: var(--panel-ink); }
  .d-key li { display: flex; align-items: center; gap: 6px; }
  .d-sw { width: 18px; height: 10px; border-radius: 3px; }
  .d-kr-sw { background: #0666bf33; border: 2px solid #0666bf; } .d-en-sw { background: #e39c4733; border: 2px dashed #c0653a; }
  .d-cap { margin: 6px 0 0; text-align: center; font: 400 13px/20px var(--font-body); color: var(--panel-muted); }
  .d-scale-wrap { padding: 26px 16px 34px; }
  .d-scale { position: relative; height: 10px; background: #dfe9f3; border-radius: 5px; }
  .d-zone { position: absolute; top: 0; bottom: 0; background: #b9d4ec; border-radius: 5px 0 0 5px; }
  .d-tick { position: absolute; top: 10px; width: 0; }
  .d-tick::before { content: ""; position: absolute; top: -10px; left: -1px; width: 2px; height: 16px; background: var(--panel-ink); }
  .d-tick span { position: absolute; top: 8px; left: 0; translate: -50% 0; text-align: center; white-space: nowrap; font: 700 12px/15px var(--font-body); color: var(--panel-ink); }
  .d-tick em { font-style: normal; font-weight: 400; color: var(--panel-muted); }
  .d-ours { position: absolute; top: -5px; height: 20px; min-width: 6px; background: var(--sea-600); border-radius: 4px; }
  .d-ours span { position: absolute; bottom: 24px; left: 50%; translate: -30% 0; white-space: nowrap; font: 700 12px/15px var(--font-body); color: var(--sea-600); }
  /* where the TOST margin comes from: 0.2 x pooled SD */
  .margin-box { padding: 12px var(--px-4); background: #fff8ec; border: 2px solid #f0d6a8; border-radius: 10px; text-align: center; }
  .margin-title { margin: 0 0 8px; font: 700 13px/18px var(--font-body); color: #8a5a12; }
  .margin-eq { margin: 0; display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 6px 12px; }
  .m-part { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .m-part b { font: 700 22px/1.2 var(--font-body); color: var(--panel-ink); }
  .m-part small { font: 400 11px/14px var(--font-body); color: var(--panel-muted); }
  .m-res b { color: #2f6b22; }
  .m-op { font: 400 22px/1.2 var(--font-body); color: var(--panel-muted); }
  .margin-ex { margin: 10px 0 0; font: 400 13px/20px var(--font-body); color: var(--panel-ink); }
  .margin-calc { display: inline-block; margin: 8px 0 0; padding: 4px 14px; font: 700 17px/24px "Noto Serif", Georgia, serif; color: var(--panel-ink); background: #ffffff; border: 1px solid #f0d6a8; border-radius: 8px; }
  .margin-calc b { color: #8a5a12; }
  @media (max-width: 720px) {html:not(.poster-doc) .margin-eq { flex-direction: column; align-items: center; gap: 2px; } }
  /* Sapir-Whorf: strong vs weak table, and the classic testing grounds */
  .sw-table { width: 100%; border-collapse: separate; border-spacing: 6px; font: 400 14px/21px var(--font-body); color: var(--panel-ink); }
  .sw-table th, .sw-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-radius: 8px; }
  .sw-table thead th { font: 700 15px/20px var(--font-body); }
  .sw-table thead th small { display: block; font-weight: 400; font-size: 12px; color: var(--panel-muted); }
  .sw-table tbody th { width: 22%; font: 700 13px/18px var(--font-body); color: var(--panel-muted); background: #f1f6fb; }
  .sw-table .sw-strong { background: #fbeee6; }
  .sw-table .sw-weak { background: #e3f3de; }
  .sw-table thead .sw-strong { color: #8a3f17; } .sw-table thead .sw-weak { color: #2f6b22; }
  .sw-grounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sw-ground { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #f5fbff; border: 2px solid #c9dcee; border-radius: 10px; font: 400 13px/19px var(--font-body); color: var(--panel-muted); }
  .sw-ground b { font: 700 14px/18px var(--font-body); color: var(--panel-ink); }
  .sw-this { border-color: var(--sea-600); background: #eaf6ff; }
  .sw-tag { align-self: flex-start; padding: 0 8px; font: 700 11px/18px var(--font-body); color: #ffffff; background: var(--sea-600); border-radius: 999px; }
  @media (max-width: 720px) {html:not(.poster-doc) .sw-table, html:not(.poster-doc) .sw-table tbody, html:not(.poster-doc) .sw-table tr, html:not(.poster-doc) .sw-table td, html:not(.poster-doc) .sw-table tbody th { display: block; width: auto; }html:not(.poster-doc) .sw-table { border-spacing: 0; }html:not(.poster-doc) .sw-table thead { display: none; }html:not(.poster-doc) .sw-table tr { margin-bottom: 10px; }html:not(.poster-doc) .sw-table tbody th { border-radius: 8px 8px 0 0; }html:not(.poster-doc) .sw-table td { border-radius: 0; margin-top: 2px; }html:not(.poster-doc) .sw-table td:last-child { border-radius: 0 0 8px 8px; }html:not(.poster-doc) .sw-table td::before { content: attr(data-label); display: block; font: 700 12px/16px var(--font-body); color: var(--panel-muted); }html:not(.poster-doc) .sw-grounds { grid-template-columns: 1fr; }
  }
  /* illustrations inside FAQ answers (from the talk slides) */
  .faq-fig { margin: 0; }
  .faq-fig img { display: block; width: 100%; height: auto; border: 2px solid #c9dcee; border-radius: 10px; background: #ffffff; }
  .fig-narrow img { max-width: 420px; margin: 0 auto; }
  .faq-fig figcaption { margin-top: 8px; text-align: center; font: 400 13px/20px var(--font-body); color: var(--panel-muted); }
  /* "big idea" three-step flow */
  .idea-flow { display: flex; align-items: stretch; gap: 8px; }
  .idea-step { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #f5fbff; border: 2px solid #c9dcee; border-radius: 10px; font: 400 13px/19px var(--font-body); color: var(--panel-muted); }
  .idea-step b { font: 700 14px/18px var(--font-body); color: var(--panel-ink); }
  .idea-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sea-600); color: #ffffff; font: 700 12px/1 var(--font-body); }
  .idea-clue { padding: 6px 8px; background: #ffffff; border-radius: 6px; }
  .idea-sff { background: #fff4e6; border-color: #f0c08c; }
  .idea-sff .idea-num { background: #d46a00; }
  .idea-arrow { align-self: center; font: 700 18px/1 var(--font-body); color: var(--sea-600); }
  @media (max-width: 720px) {html:not(.poster-doc) .idea-flow { flex-direction: column; }html:not(.poster-doc) .idea-arrow { transform: rotate(90deg); }
  }
  /* author's-note examples: when Sentiment and Friendliness come apart */
  .sf-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 4px; }
  .sf-case { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fffaf0; border: 2px solid #f0d6a8; border-radius: 10px; }
  .sf-tag { align-self: flex-start; padding: 0 8px; font: 700 11px/18px var(--font-body); color: #8a5a12; background: #fff1d6; border-radius: 999px; }
  .sf-q { font: italic 400 14px/20px var(--font-body); color: var(--panel-ink); }
  .sf-why { margin-top: auto; font: 400 13px/19px var(--font-body); color: var(--panel-muted); }
  @media (max-width: 720px) {html:not(.poster-doc) .sf-cases { grid-template-columns: 1fr; } }
  .note-tag { display: inline-block; margin-right: 4px; padding: 0 8px; font: 700 11px/18px var(--font-body); color: #8a5a12; background: #fff1d6; border: 1px solid #f0d6a8; border-radius: 999px; vertical-align: 1px; }
  /* methods-overview diagram inside the pipeline FAQ answer (adapted from the paper's Figure 6) */
  .pipe { margin: 0; }
  .pipe-flow { display: flex; align-items: stretch; gap: 4px; }
  .pipe-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
  .pipe-col.session { position: relative; padding: 34px 6px 6px; border: 2px dashed var(--sea-600); border-radius: 10px; gap: 2px; }
  .session-label { position: absolute; top: 3px; left: 4px; right: 4px; text-align: center; font: italic 400 10px/14px var(--font-body); color: var(--panel-muted); }
  .pb { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; background: #eaf6ff; border: 2px solid var(--sea-600); border-radius: 8px; font: 400 11px/15px var(--font-body); color: var(--panel-ink); }
  .pb b { font-weight: 700; font-size: 12px; line-height: 15px; }
  .pb small { font-size: 11px; color: var(--panel-muted); }
  .pb.tall { flex: 1; justify-content: center; }
  .pb.llm { background: #fde6cc; border-color: #d46a00; }
  .pa { flex: 0 0 auto; align-self: center; font: 700 14px/1 var(--font-body); color: var(--sea-600); }
  .pa-then { align-self: center; font-size: 11px; line-height: 18px; color: var(--panel-muted); font-weight: 400; }
  .pipe figcaption { margin-top: 10px; font: 400 12px/18px var(--font-body); color: var(--panel-muted); }
  .llm-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; background: #fde6cc; border: 2px solid #d46a00; border-radius: 3px; }
  @media (max-width: 720px) {html:not(.poster-doc) .pipe-flow { flex-direction: column; }html:not(.poster-doc) .pipe-col.session { padding-top: 20px; }html:not(.poster-doc) .pa { transform: rotate(90deg); }html:not(.poster-doc) .pa-then { transform: none; }
  }

