:root {
    --changelog-bg: #eef2f4;
    --changelog-border: #c7d3db;
    --changelog-panel: #ffffff;
    --changelog-muted: #536170;
    --changelog-strong: #24364a;
    --changelog-accent: #335f94;
    --changelog-accent-soft: #dae7f7;
    --changelog-menu-primary: #6ea6e4;
    --changelog-menu-primary-hover: #5b96dc;
}

.container-principal {
    min-height: 100vh;
    background: var(--changelog-bg);
}

.header__logo {
    border-right: 0 !important;
    margin-right: 1rem;
    padding-right: 0;
}

.header__left::before,
.header__left::after,
.header__logo::before,
.header__logo::after {
    border: 0 !important;
    content: none !important;
    display: none !important;
}

.header__logo a {
    align-items: center;
    display: inline-flex;
}

.logo-sigla {
    fill: #848fa0;
    font: 700 21px Arial-BoldMT, Arial;
}

.header__user__info {
    min-width: 0;
}

.header__user__info__title,
.header__user__info__detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__user__info__title {
    align-items: center;
    display: flex;
    gap: 0.25rem;
}

.header__user__info__title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-text {
    text-transform: uppercase;
}

.authenticated-user-menu {
    max-width: min(100%, 18rem);
}

.authenticated-user-menu .header__user {
    max-width: 100%;
}

.webmcp-control {
    align-items: center;
    display: flex;
    position: relative;
}

.webmcp-status {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--secondary-darker-color);
    cursor: help;
    display: inline-flex;
    height: 2.9375rem;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 2.9375rem;
}

.webmcp-status i {
    font-size: 1.25rem;
    line-height: 1;
    margin-right: 0;
}

.webmcp-status.is-active {
    color: var(--primary-color);
}

.webmcp-status:hover,
.webmcp-status:focus {
    background: var(--white);
    box-shadow: 0 2px 3px #0006;
}

.webmcp-status.is-active:hover,
.webmcp-status.is-active:focus {
    color: var(--primary-dark-color);
}

.webmcp-status:not(.is-active):hover,
.webmcp-status:not(.is-active):focus {
    color: var(--secondary-darkest-color);
}

.webmcp-status:focus-visible {
    outline: 2px dashed var(--outline-focus-color);
    outline-offset: 3px;
}

body[data-ac-activated] .webmcp-status:hover,
body[data-ac-activated] .webmcp-status:focus {
    background: var(--primary-light-color);
}

body[data-ac-activated] .header .header__right .webmcp-status:not(.is-active) i {
    color: var(--secondary-darker-color) !important;
}

body[data-ac-activated] .header .header__right .webmcp-status.is-active:hover i,
body[data-ac-activated] .header .header__right .webmcp-status.is-active:focus i {
    color: var(--primary-dark-color) !important;
}

body[data-ac-activated] .header .header__right .webmcp-status:not(.is-active):hover i,
body[data-ac-activated] .header .header__right .webmcp-status:not(.is-active):focus i {
    color: var(--secondary-darkest-color) !important;
}

.webmcp-hint {
    background: var(--changelog-panel);
    border: 1px solid var(--changelog-border);
    box-shadow: 0 2px 8px #0003;
    color: var(--changelog-strong);
    display: none;
    font-size: 0.875rem;
    max-width: min(18rem, calc(100vw - 2rem));
    padding: 0.5rem 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    width: max-content;
    z-index: 100;
}

.webmcp-control:hover .webmcp-hint,
.webmcp-control:focus-within .webmcp-hint {
    display: block;
}

.container-conteudo.changelog-shell {
    display: grid;
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    column-gap: 0;
    row-gap: 1rem;
    align-items: start;
    padding: 1rem;
}

.content-block {
    background: var(--changelog-panel);
    border: 1px solid var(--changelog-border);
    border-radius: 0.25rem;
}

.changelog-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: visible;
    transform: none;
    z-index: 20;
}

.changelog-sidebar .changelog-menu {
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--changelog-border);
    display: block;
    height: calc(100vh - 2rem);
    max-height: calc(100vh - 2rem);
    max-width: none;
    width: 100%;
}

.changelog-sidebar .menu-lateral__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.sidebar-search {
    flex: 0 0 auto;
    padding: 1rem 1rem 0.85rem;
}

.sidebar-search .form-group {
    margin-bottom: 0.65rem;
}

.sidebar-search-submit {
    background: var(--changelog-menu-primary);
    border-color: var(--changelog-menu-primary);
    color: #ffffff;
    font-weight: 700;
}

.sidebar-search-submit:hover,
.sidebar-search-submit:focus {
    background: var(--changelog-menu-primary-hover);
    border-color: var(--changelog-menu-primary-hover);
    color: #ffffff;
}

.sidebar-products-wrap {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.catalog-warmup-status {
    align-items: center;
    color: var(--changelog-muted);
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.45rem;
    margin: 0 1rem 0.25rem;
    text-transform: uppercase;
}

.catalog-warmup-status::before {
    background: var(--changelog-menu-primary);
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
}

.sidebar-products {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.25rem 1rem 1rem;
    scrollbar-gutter: stable;
}

.content-block {
    padding: 1rem;
}

.version-navigation-title {
    color: var(--changelog-strong);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.version-navigation-title {
    color: var(--changelog-muted);
    font-size: 0.75rem;
    margin: 0.75rem 0 0.4rem;
}

.product-navigation,
.product-list,
.version-navigation-list,
.release-task-list,
.search-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-navigation,
.product-list {
    display: grid;
    gap: 0.3rem;
}

.changelog-menu .product-link,
.changelog-menu .version-link {
    align-items: center;
    display: flex;
    gap: 0.6rem;
}

.changelog-menu .product-link i,
.changelog-menu .version-link i {
    flex: 0 0 1.15rem;
    font-size: 0.9rem;
    text-align: center;
}

.changelog-menu .product-link span,
.changelog-menu .version-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-link,
.version-link {
    border-radius: 0.25rem;
    color: var(--changelog-strong);
    display: block;
    line-height: 1.25;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
}

.product-link:hover,
.product-link:focus,
.version-link:hover,
.version-link:focus {
    background: #f5f8fb;
    color: var(--changelog-accent);
    text-decoration: none;
}

.product-link.active {
    background: var(--changelog-accent-soft);
    color: var(--changelog-strong);
    font-weight: 700;
}

.version-navigation {
    border-left: 3px solid var(--changelog-accent-soft);
    margin-left: 0.65rem;
    padding-left: 0.65rem;
}

.sidebar-search-results {
    border-bottom: 1px solid var(--changelog-border);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
}

.sidebar-search-empty {
    margin: 0.25rem 0 0.75rem;
}

.sidebar-search-result-list {
    display: grid;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-search-result-link {
    align-items: center;
    border-radius: 0.25rem;
    color: #394858;
    display: flex;
    font-size: 0.9rem;
    gap: 0.6rem;
    line-height: 1.25;
    padding: 0.55rem 0.65rem;
    text-decoration: none;
}

.sidebar-search-result-link:hover,
.sidebar-search-result-link:focus {
    background: #f5f8fb;
    color: var(--changelog-accent);
    text-decoration: none;
}

.sidebar-search-result-link i {
    flex: 0 0 1.15rem;
    font-size: 0.9rem;
    text-align: center;
}

.sidebar-search-result-link span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sidebar-search-result-product {
    color: var(--changelog-muted);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar-search-result-version {
    display: block;
    font-weight: 700;
}

.sidebar-search-result-link time,
.sidebar-search-result-link small {
    color: var(--changelog-muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.version-navigation-list {
    display: grid;
    gap: 0.2rem;
}

.version-link {
    color: #394858;
    font-size: 0.9rem;
}

.version-link.active {
    background: var(--changelog-accent-soft);
    color: var(--changelog-strong);
    font-weight: 700;
}

.version-link time,
.version-link small {
    color: var(--changelog-muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.version-load-more {
    border-top: 1px solid var(--changelog-border);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.version-load-more-count {
    color: var(--changelog-muted);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.changelog-content {
    padding-left: 1rem;
    min-width: 0;
    width: 100%;
}

.changelog-scroll-top-button[hidden] {
    display: none;
}

.changelog-scroll-top-button {
    appearance: none;
    background: var(--changelog-panel);
    border: 1px solid var(--changelog-border);
    border-radius: 999px;
    box-shadow: 0 0.25rem 0.75rem rgba(36, 54, 74, 0.16);
    color: var(--changelog-accent);
    display: grid;
    font-size: 1.05rem;
    height: 2.5rem;
    line-height: 0;
    padding: 0;
    place-items: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    width: 2.5rem;
    z-index: 30;
}

.changelog-scroll-top-button i {
    display: block;
    height: 1rem;
    line-height: 0;
    margin: 0;
    position: relative;
    text-align: center;
    width: 1rem;
}

.changelog-scroll-top-button i::before {
    border-left: 0.16rem solid currentColor;
    border-top: 0.16rem solid currentColor;
    content: "";
    height: 0.55rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -68%) rotate(45deg);
    width: 0.55rem;
}

.changelog-scroll-top-button i::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 0.82rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -34%);
    width: 0.16rem;
}

.changelog-scroll-top-button:hover,
.changelog-scroll-top-button:focus {
    background: var(--changelog-accent-soft);
    border-color: var(--changelog-accent);
    color: var(--changelog-accent);
}

.changelog-scroll-top-button:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(110, 166, 228, 0.35), 0 0.25rem 0.75rem rgba(36, 54, 74, 0.16);
    outline: 0;
}

.sidebar-scroll-top {
    bottom: 1rem;
    position: absolute;
    right: 1.25rem;
}

.content-scroll-top {
    bottom: 1.25rem;
    position: fixed;
    right: 1.25rem;
}

.release-content-stack,
.release-document {
    max-width: 980px;
}

.home-page-header,
.home-empty-panel,
.latest-releases-grid {
    max-width: 980px;
}

.home-page-header {
    margin-bottom: 1rem;
}

.home-page-title {
    color: var(--changelog-strong);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.home-empty-panel {
    color: var(--changelog-muted);
}

.latest-releases-grid {
    display: grid;
    gap: 0.85rem;
}

.latest-release-card {
    display: grid;
    gap: 0.85rem;
}

.latest-release-card-header {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.latest-release-main {
    min-width: 0;
}

.latest-release-product {
    color: var(--changelog-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.latest-release-title {
    color: var(--changelog-strong);
    font-size: 1.05rem;
    font-weight: 700;
}

.latest-release-title a {
    color: inherit;
}

.latest-release-notes {
    max-width: 54rem;
}

.release-notes-empty {
    color: var(--changelog-muted);
    font-style: italic;
}

.release-notes-content {
    color: var(--changelog-muted);
    overflow-wrap: anywhere;
}

.release-notes-content > :last-child {
    margin-bottom: 0;
}

.release-notes-content h2,
.release-notes-content h3,
.release-notes-content h4,
.release-notes-content h5,
.release-notes-content h6 {
    color: var(--changelog-strong);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0.75rem 0 0.45rem;
}

.release-notes-content h2:first-child,
.release-notes-content h3:first-child,
.release-notes-content h4:first-child,
.release-notes-content h5:first-child,
.release-notes-content h6:first-child {
    margin-top: 0;
}

.release-notes-content p,
.release-notes-content ul,
.release-notes-content ol,
.release-notes-content pre,
.release-notes-content blockquote {
    margin: 0 0 0.65rem;
}

.release-notes-content ul,
.release-notes-content ol {
    padding-left: 1.25rem;
}

.release-notes-content li + li {
    margin-top: 0.25rem;
}

.release-notes-content a {
    color: var(--changelog-accent);
    font-weight: 600;
}

.release-notes-content code {
    background: #eef3f7;
    border-radius: 0.2rem;
    color: var(--changelog-strong);
    font-size: 0.92em;
    padding: 0.05rem 0.25rem;
}

.release-notes-content pre {
    background: #f6f9fb;
    border: 1px solid var(--changelog-border);
    border-radius: 0.25rem;
    overflow-x: auto;
    padding: 0.75rem;
}

.release-notes-content pre code {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.latest-release-meta {
    color: var(--changelog-muted);
    display: grid;
    gap: 0.45rem;
    justify-items: end;
    text-align: right;
    white-space: nowrap;
}

.release-content-stack {
    width: 100%;
}

.release-header {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.release-header h1 {
    color: var(--changelog-strong);
    min-width: 0;
}

.release-header__project {
    min-width: 0;
}

.project-description {
    color: var(--changelog-muted);
    font-size: 0.95rem;
    margin-top: 0.35rem;
    max-width: 42rem;
    overflow-wrap: anywhere;
}

.release-header__version {
    flex: 0 0 auto;
    text-align: right;
}

.release-version-subtitle {
    color: var(--changelog-strong);
    font-size: 1.05rem;
    font-weight: 600;
}

.release-meta {
    color: var(--changelog-muted);
}

.section-heading {
    align-items: center;
    border-bottom: 1px solid var(--changelog-border);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.75rem;
}

.release-task-list,
.search-result-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.release-task,
.search-result,
.empty-state {
    background: #f8fafc;
    border: 1px solid var(--changelog-border);
    border-radius: 0.25rem;
}

.release-task,
.search-result {
    padding: 1rem;
}

.release-task {
    position: relative;
}

.release-task--with-redmine-link {
    padding-left: 3.25rem;
}

.release-task-redmine-link {
    align-items: center;
    color: var(--changelog-muted);
    display: inline-flex;
    font-size: 0.9rem;
    height: 1.75rem;
    justify-content: center;
    left: 1rem;
    position: absolute;
    top: 1rem;
    width: 1.75rem;
}

.release-task-redmine-link:hover,
.release-task-redmine-link:focus {
    color: var(--changelog-primary);
}

.release-task-header {
    border-bottom: 1px solid var(--changelog-border);
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
}

.task-number,
.result-type {
    color: var(--changelog-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.release-task-section + .release-task-section {
    margin-top: 0.9rem;
}

.pre-line {
    white-space: pre-line;
}

.empty-state {
    padding: 1rem;
}

.empty-state.compact {
    padding: 0.75rem;
}

.result-summary,
.result-context {
    color: var(--changelog-muted);
}

.result-context {
    margin: 0.25rem 0 0.4rem;
}

@media (max-width: 991px) {
    .container-conteudo.changelog-shell {
        grid-template-columns: 1fr;
    }

    .changelog-sidebar {
        max-height: none;
        position: static;
    }

    .changelog-sidebar .changelog-menu {
        border-bottom: 1px solid var(--changelog-border);
        border-right: 0;
        height: auto;
        max-height: none;
    }

    .changelog-sidebar .menu-lateral__content {
        height: auto;
    }

    .sidebar-products-wrap,
    .sidebar-products {
        height: auto;
        max-height: min(60vh, 32rem);
    }

    .changelog-content {
        padding-left: 0;
    }

    .latest-release-card-header {
        grid-template-columns: 1fr;
    }

    .latest-release-meta {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .authenticated-user-menu {
        max-width: 8.5rem;
    }

    .authenticated-user-menu .header__user__info__detail {
        display: none;
    }

    .release-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .release-header__version {
        text-align: left;
    }
}

.login-shell {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: 0;
    height: auto;
}

.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-main {
    align-items: center;
    display: flex;
    flex: 1 0 auto;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    max-width: 38rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    width: 100%;
}

.login-card__eyebrow {
    color: var(--changelog-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.login-card__instruction {
    color: var(--changelog-muted);
    margin-bottom: 1.5rem;
}

.login-message {
    border-left: 4px solid currentColor;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.login-message--error {
    background: #fdeaea;
    color: #8a1f1f;
}

.login-message--success {
    background: #e8f5ea;
    color: #256a32;
}

.login-provider-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-provider {
    align-items: center;
    border: 1px solid var(--changelog-border);
    border-radius: 0.25rem;
    color: var(--changelog-strong);
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    padding: 1rem;
    text-decoration: none;
}

.login-provider:hover,
.login-provider:focus {
    background: var(--changelog-accent-soft);
    color: var(--changelog-strong);
    text-decoration: none;
}

body.custom-scroll:not([data-ac-activated]) .login-provider--ufrn-id {
    border-color: #164194;
    background-color: #164194;
    color: #ffffff;
}

body.custom-scroll:not([data-ac-activated]) .login-provider--ufrn-id:hover,
body.custom-scroll:not([data-ac-activated]) .login-provider--ufrn-id:focus {
    border-color: #113272;
    background-color: #113272;
    color: #ffffff;
}

@media (max-width: 575px) {
    .login-main {
        padding: 1.25rem 0.75rem;
    }
}
