/* /help/language_features の 2 つのバー(Help/LanguageFeatureSpeed.html・Help/LanguageFeatureRatio.html)。どちらも線形の目盛り。
   - 相対速度(C++23 比): 0〜250%。長さは app/web/help_language_features.go の langFeatureSpeedBarWidth
   - 同じ言語との比: 比の逆数(同じ言語の整数の型の何 % の速さか)を 0〜100%。長さは langFeatureRatioBarWidth
   目盛りの位置はページの CSS 変数(--lf-speed-100・200、--lf-ratio-50・100)に入れてある。 */
.lf-speed-bar,
.lf-ratio-bar {
    position: relative;
    width: 100%;
    max-width: 160px;
    height: 8px;
    margin-top: 2px;
    background: var(--yk-surface-gray);
}
.lf-speed-range,
.lf-speed-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--yk-accent-text);
}
/* 言語のまとまりの中で幅があるとき、一番小さい値から一番大きい値までを薄く塗る */
.lf-speed-range {
    opacity: 0.35;
}
/* 基準の目印: C++ と同じ速さ(100%)・同じ言語の整数の型と同じ速さ(100%、右端) */
.lf-speed-bar::after,
.lf-ratio-bar::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: var(--lf-speed-100);
    border-left: 1px solid var(--yk-text-strong);
}
.lf-ratio-bar::after {
    left: var(--lf-ratio-100);
}
/* バーの下の目盛りの数字。数字の真ん中を目盛りの位置に合わせる */
.lf-scale {
    position: relative;
    width: 100%;
    max-width: 160px;
    height: 1.2em;
    font-size: 10px;
    color: var(--yk-text-muted);
    font-variant-numeric: tabular-nums;
}
.lf-scale span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}
