.gen-title-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gen-title-seo {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gen-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gen-title {
    background: none;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
}

.gen-title-text {
    color: #111111;
}

.gen-format-word {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    color: #17a2b8;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gen-format-word::before {
    content: "";
    order: 2;
    width: 0.42em;
    height: 0.42em;
    border-right: 2px solid #17a2b8;
    border-bottom: 2px solid #17a2b8;
    transform: translateY(-0.08em) rotate(45deg);
    transform-origin: center;
    flex: 0 0 auto;
}

.gen-format-word::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #17a2b8;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.gen-format-word:hover::after,
.gen-format-word:focus-visible::after {
    transform: scaleX(1);
}

.gen-format-word:hover,
.gen-format-word:focus-visible {
    transform: translateY(-1px);
}

.gen-format-word:not(.is-active) {
    opacity: 1;
}

.gen-form-pin-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gen-form-pin-btn[hidden] {
    display: none;
}

.gen-form-pin-btn img {
    width: 20px;
    height: 20px;
    display: block;
}

.gen-form-pin-btn:hover,
.gen-form-pin-btn:focus-visible {
    transform: translateY(-1px);
    opacity: 0.86;
}

.gen-form-pin-btn.is-pinned {
    opacity: 1;
}

@media (max-width: 768px) {
    .gen-title-wrap {
        gap: 10px;
    }

    .gen-title-row {
        gap: 10px;
    }

    .gen-title {
        gap: 8px;
        padding: 0 12px;
    }

    .gen-form-pin-btn {
        width: 26px;
        height: 26px;
    }

    .gen-form-pin-btn img {
        width: 18px;
        height: 18px;
    }
}
