/* Floating section quick-nav of the public hubs (/blanki, /kalkulyatory):
   a card pinned to the left side of the centered content (max-w-6xl, 1152px)
   on wide screens. Aligned with Conto tokens.css and STYLE-GUIDE.md. */
.hub-rail {
    --rail-w: 148px;
    --rail-gap: 12px;
    position: fixed;
    top: 50%;
    /* Content's visual left edge (576px - 16px px-4 = 560px) minus rail width and gap. */
    left: calc(50% - 560px - var(--rail-w) - var(--rail-gap));
    z-index: 30;
    display: none;
    flex-direction: column;
    gap: 4px;
    width: var(--rail-w);
    padding: 10px;
    border: 1px solid var(--k-line, #dde3ec);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--k-e2, 0 2px 4px rgba(21, 35, 56, 0.05), 0 14px 28px -12px rgba(21, 35, 56, 0.2));
    transform: translateY(-50%);
}
@media (min-width: 1440px) {
    .hub-rail { display: flex; }
}
@media (min-width: 1536px) {
    .hub-rail {
        --rail-w: 184px;
        --rail-gap: 16px;
        gap: 5px;
        padding: 12px;
        border-radius: 22px;
    }
}
@media (min-width: 1680px) {
    .hub-rail {
        --rail-w: 224px;
        --rail-gap: 24px;
        gap: 6px;
        padding: 14px;
        border-radius: 24px;
    }
}
.hub-rail-title {
    padding: 4px 10px 8px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--k-line, #dde3ec);
    color: var(--k-muted, #68778d);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
@media (min-width: 1680px) {
    .hub-rail-title {
        padding: 4px 12px 10px;
        font-size: 12px;
    }
}
.hub-rail button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--k-r-sm, 12px);
    background: transparent;
    color: var(--k-text, #3d4b62);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
@media (min-width: 1536px) {
    .hub-rail button {
        gap: 11px;
        padding: 9px 12px;
        border-radius: 13px;
        font-size: 14.5px;
    }
}
@media (min-width: 1680px) {
    .hub-rail button {
        gap: 12px;
        padding: 11px 14px;
        border-radius: 14px;
        font-size: 15px;
    }
}
.hub-rail button::before {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--k-line-2, #cdd6e3);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
@media (min-width: 1680px) {
    .hub-rail button::before {
        width: 8px;
        height: 8px;
    }
}
.hub-rail button:hover {
    color: var(--k-ink, #1b2c47);
    background: var(--k-surface-2, #f5f7fa);
}
.hub-rail button.is-active {
    color: var(--k-blue, #2266ef);
    background: var(--k-blue-tint, #e6edfd);
    font-weight: 700;
}
.hub-rail button.is-active::before {
    background: var(--k-blue, #2266ef);
    transform: scale(1.3);
}
.hub-rail button:focus-visible {
    outline: 2px solid var(--k-blue, #2266ef);
    outline-offset: 2px;
}
/* The jump target stops below the sticky navbar (64/72 px). */
.hub-rail-target { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
    .hub-rail button,
    .hub-rail button::before { transition: none; }
}
