.mtn-floating-headings,
.mtn-floating-headings-flyout,
.mtn-floating-headings--learning-right {
--mtn-toc-ink: #172033;
--mtn-toc-muted: #667085;
--mtn-toc-accent: var(--mtn-floating-headings-accent, #0081ff);
--mtn-toc-accent-soft: #e8f3ff;
--mtn-toc-accent-soft: color-mix(in srgb, var(--mtn-toc-accent) 11%, white);
margin: 26px 0 34px;
}
.mtn-floating-headings--learning-right {
position: sticky;
top: 104px;
margin: 0;
}
.mtn-floating-headings__card {
background: #fff;
border: 1px solid #e7eaf0;
border-radius: 14px;
box-shadow: 0 10px 35px rgba(16, 24, 40, 0.07);
overflow: hidden;
}
.mtn-floating-headings__header {
display: flex;
align-items: baseline;
gap: 10px;
padding: 18px 20px 13px;
border-bottom: 1px solid #edf0f4;
}
.mtn-floating-headings__disclosure > .mtn-floating-headings__header {
display: flex;
align-items: center;
justify-content: space-between;
list-style: none;
cursor: pointer;
}
.mtn-floating-headings__disclosure > .mtn-floating-headings__header::-webkit-details-marker { display: none; }
.mtn-floating-headings__disclosure:not([open]) > .mtn-floating-headings__header { border-bottom: 0; }
.mtn-floating-headings__disclosure > .mtn-floating-headings__header:focus-visible {
outline: 2px solid var(--mtn-toc-accent);
outline-offset: -3px;
}
.mtn-floating-headings__caret {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 22px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--mtn-toc-accent-soft);
color: var(--mtn-toc-accent);
}
.mtn-floating-headings__caret::before {
content: "";
width: 6px;
height: 6px;
border-bottom: 2px solid currentColor;
border-right: 2px solid currentColor;
transform: rotate(45deg) translate(-1px, -1px);
transition: transform .24s ease;
}
.mtn-floating-headings__disclosure[open] .mtn-floating-headings__caret::before {
transform: rotate(225deg) translate(-1px, -1px);
}
.mtn-floating-headings__eyebrow {
color: var(--mtn-toc-accent);
font-size: 10px;
font-weight: 700;
letter-spacing: .11em;
text-transform: uppercase;
}
.mtn-floating-headings__title {
color: var(--mtn-toc-ink);
font-size: 16px;
line-height: 1.3;
}
.mtn-floating-headings__scroll {
max-height: min(64vh, 520px);
overflow: auto;
padding: 10px;
scrollbar-width: thin;
scrollbar-color: #c7cdd6 transparent;
}
.mtn-floating-headings--inline .mtn-floating-headings__scroll {
max-height: none;
overflow: visible;
padding: 12px 14px 16px;
}
.mtn-floating-headings__scroll::-webkit-scrollbar { width: 6px; }
.mtn-floating-headings__scroll::-webkit-scrollbar-thumb { background: #c7cdd6; border-radius: 999px; }
.mtn-floating-headings__list { list-style: none; margin: 0; padding: 0; }
.mtn-floating-headings__item + .mtn-floating-headings__item { margin-top: 2px; }
.mtn-floating-headings__link {
display: block;
padding: 8px 10px;
border-radius: 7px;
color: #344054;
font-size: 13px;
font-weight: 500;
line-height: 1.35;
text-decoration: none;
transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.mtn-floating-headings__item--h3 .mtn-floating-headings__link {
padding-left: 24px;
color: var(--mtn-toc-muted);
font-size: 12px;
}
.mtn-floating-headings--inline .mtn-floating-headings__list {
display: block;
}
.mtn-floating-headings__link:hover,
.mtn-floating-headings__link:focus-visible {
background: #f5f7fa;
color: var(--mtn-toc-ink);
outline: 2px solid var(--mtn-toc-accent);
outline-offset: 1px;
transform: translateX(2px);
}
.mtn-floating-headings__link.is-active {
background: var(--mtn-toc-accent-soft);
color: var(--mtn-toc-accent);
font-weight: 650;
box-shadow: inset 3px 0 0 var(--mtn-toc-accent);
}
.mtn-floating-headings__item .mtn-floating-headings__link--locked {
display: flex;
align-items: center;
gap: 7px;
color: var(--mtn-toc-muted);
}
.mtn-floating-headings__lock {
flex: 0 0 12px;
width: 12px;
height: 14px;
}
.mtn-floating-headings-flyout {
--mtn-rail-width: 38px;
--mtn-rail-radius: 8px;
position: fixed;
top: 50%;
right: 54px;
width: var(--mtn-rail-width);
height: auto;
margin: 0;
z-index: 100;
opacity: 0;
transform: translateY(-50%) translateX(12px);
pointer-events: none;
transition: opacity .2s ease, transform .2s ease;
}
.mtn-floating-headings-flyout.is-enabled.is-visible {
opacity: 1;
transform: translateY(-50%);
} .mtn-floating-headings-flyout.is-enabled.is-visible .mtn-floating-headings__rail {
pointer-events: auto;
}
.mtn-floating-headings__rail {
position: absolute;
top: 50%;
right: 0;
display: flex;
flex-direction: column;
gap: 8px;
box-sizing: border-box;
align-items: center;
justify-content: center;
width: var(--mtn-rail-width);
min-height: 0;
max-height: min(72vh, 620px);
overflow: hidden;
padding: calc(10px * var(--mtn-heading-rail-scale, 1)) 7px;
border: 1px solid #e5e7eb;
border-radius: var(--mtn-rail-radius, 8px);
background: rgba(255,255,255,.96);
box-shadow: 0 8px 24px rgba(16,24,40,.09);
transform: translateY(-50%);
cursor: default;
user-select: none;
touch-action: none;
-webkit-touch-callout: none;
}
.mtn-floating-headings__markers { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; min-height: 0; gap: calc(2px * var(--mtn-heading-rail-scale, 1)); width: 22px; } [data-mtn-floating-nav] .mtn-floating-headings__rail { min-height: 64px; }
[data-mtn-floating-nav] .mtn-floating-headings__markers { flex: 0 1 auto; } .mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker {
--mtn-marker-size: max(5px, calc(15px - var(--mtn-heading-depth, 0) * 3px));
--mtn-marker-thickness: 2px;
--mtn-marker-color: #cfd4dc;
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex: 0 1 calc(var(--mtn-heading-marker-height, 8px) * var(--mtn-heading-rail-scale, 1));
box-sizing: border-box;
width: 22px;
min-width: 22px;
max-width: 22px;
height: calc(var(--mtn-heading-marker-height, 8px) * var(--mtn-heading-rail-scale, 1));
min-height: calc(4px * var(--mtn-heading-rail-scale, 1));
margin: 0;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
cursor: pointer;
text-decoration: none;
transform: none;
transition: none;
-webkit-touch-callout: none;
}
.mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker::before,
.mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker::after { content: none; display: none; }
.mtn-floating-headings-flyout .mtn-floating-headings__marker .mtn-floating-headings__line { position: absolute; top: 50%; left: 50%; right: auto; display: block; width: var(--mtn-marker-size); height: var(--mtn-marker-thickness); margin: 0; padding: 0; border: 0; border-radius: 99px; background: var(--mtn-marker-color); pointer-events: none; transform: translate(-50%, -50%); transition: width .16s ease, background-color .16s ease; }
.mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker--locked { opacity: .6; cursor: default; }
.mtn-floating-headings-flyout:not(.is-previewing) .mtn-floating-headings__rail .mtn-floating-headings__marker.is-active { --mtn-marker-size: 18px; --mtn-marker-thickness: 3px; --mtn-marker-color: var(--mtn-toc-accent); }
.mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker.is-preview-selected:not([data-mtn-heading-locked]) { --mtn-marker-size: 22px; --mtn-marker-thickness: 3px; --mtn-marker-color: var(--mtn-toc-accent); }
.mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker:focus-visible { outline: 2px solid var(--mtn-toc-accent); outline-offset: 2px; }
.post-details-content [data-mtn-heading-anchor],
.article-paths-body [data-mtn-heading-anchor] { scroll-margin-top: 120px; }
.post-details-content h2, .post-details-content h3 { line-height: 1.2; }
.post-details-content h2 { font-size: 28px; margin-top: 34px; margin-bottom: 14px; }
.post-details-content h3 { font-size: 22px; margin-top: 26px; margin-bottom: 12px; }
[ta-theme=dark] .mtn-floating-headings,
[ta-theme=dark] .mtn-floating-headings-flyout,
[ta-theme=dark] .mtn-floating-headings--learning-right { --mtn-toc-ink: #f4f6f8; --mtn-toc-muted: #a9b2c0; --mtn-toc-accent-soft: rgba(0,129,255,.2); --mtn-toc-accent-soft: color-mix(in srgb, var(--mtn-toc-accent) 20%, #171a21); }
[ta-theme=dark] .mtn-floating-headings__card,
[ta-theme=dark] .mtn-floating-headings__rail { background: #171a21; border-color: #303642; }
[ta-theme=dark] .mtn-floating-headings__header { border-color: #303642; }
[ta-theme=dark] .mtn-floating-headings__link { color: #d7dce3; }
[ta-theme=dark] .mtn-floating-headings__link:hover,
[ta-theme=dark] .mtn-floating-headings__link:focus-visible { background: #242933; color: #fff; }
[ta-theme=dark] .mtn-floating-headings__item .mtn-floating-headings__link--locked { color: var(--mtn-toc-muted); }
[ta-theme=dark] .mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker { --mtn-marker-color: #596273; }
[ta-theme=dark] .mtn-floating-headings-flyout:not(.is-previewing) .mtn-floating-headings__rail .mtn-floating-headings__marker.is-active,
[ta-theme=dark] .mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker.is-preview-selected:not([data-mtn-heading-locked]) { --mtn-marker-color: var(--mtn-toc-accent); }
.mtn-floating-headings__marker-title { position: absolute; z-index: 1; box-sizing: border-box; width: 320px; max-width: min(320px, calc(100vw - 76px)); max-height: calc(100vh - 16px); padding: 10px 12px; border: 1px solid #e7eaf0; border-radius: 14px; background: #fff; color: var(--mtn-toc-ink); box-shadow: 0 4px 16px rgba(16,24,40,.08); font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left; overflow: auto; overflow-wrap: anywhere; pointer-events: auto; transform: translateY(-50%); }
.mtn-floating-headings__marker-title[hidden] { display: none; }
.mtn-floating-headings__preview-header { display: flex; align-items: flex-start; gap: 6px; }
.mtn-floating-headings-flyout .mtn-floating-headings__preview-title { display: block; flex: 1; min-width: 0; margin: 0; padding: 4px 0; border: 0; background: transparent; color: inherit; overflow: hidden; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.mtn-floating-headings-flyout.is-preview-pinned .mtn-floating-headings__preview-title { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.mtn-floating-headings-flyout .mtn-floating-headings__preview-title:focus-visible { outline: 2px solid var(--mtn-toc-accent); outline-offset: 2px; }
.mtn-floating-headings__preview-excerpt { display: -webkit-box; margin-top: 6px; overflow: hidden; color: #8b9098; font-size: 13px; font-weight: 400; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.mtn-floating-headings__preview-excerpt[hidden] { display: none; }
[ta-theme=dark] .mtn-floating-headings__marker-title { background: #171a21; border-color: #303642; }
[ta-theme=dark] .mtn-floating-headings__preview-excerpt { color: #a9b2c0; }
@media (pointer: coarse) { .mtn-floating-headings-flyout .mtn-floating-headings__rail .mtn-floating-headings__marker { --mtn-heading-marker-height: 10px; } }
@media (max-width: 1279px) { .mtn-floating-headings-flyout { display: none; } }
@media (min-width: 1280px) {
[data-mtn-floating-nav] { --mtn-heading-rail-scale: .5; }
[data-mtn-floating-nav] .mtn-floating-headings__rail { max-height: min(36vh, 310px); }
}
@media (max-width: 760px) {
[data-mtn-floating-nav] {
--mtn-rail-width: 44px;
--mtn-heading-rail-scale: 1.5;
display: block;
top: 50%;
right: max(8px, env(safe-area-inset-right));
}
[data-mtn-floating-nav] .mtn-floating-headings__rail {
min-height: 88px;
max-height: min(67.5vh, calc(100vh - 2 * var(--mtn-heading-top, 20px)));
max-height: min(67.5dvh, calc(100dvh - 2 * var(--mtn-heading-top, 20px)));
}
}
@media (max-width: 1100px) { .mtn-floating-headings--learning-right { position: static; } }
@media (max-width: 767px) {
.mtn-floating-headings--learning-right { position: static; }
.mtn-floating-headings__header { display: block; }
.mtn-floating-headings__eyebrow { display: block; margin-bottom: 4px; }
.post-details-content h2 { font-size: 24px; }
.post-details-content h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
.mtn-floating-headings-flyout,
.mtn-floating-headings-flyout .mtn-floating-headings__marker .mtn-floating-headings__line,
.mtn-floating-headings__caret::before,
.mtn-floating-headings__link { transition: none; }
}