/* ------------------------------------------------------------
   APUS HUB
   Complementa o design system compartilhado com o website.
------------------------------------------------------------ */

:root {
    --hub-background: var(--surface-page);

    --hub-surface: var(--surface-card);
    --hub-surface-muted: var(--surface-muted);

    --hub-text: var(--text-primary);
    --hub-text-soft: var(--text-secondary);
    --hub-muted: var(--text-muted);

    --hub-border: var(--border-soft);
    --hub-border-strong: var(--border-medium);

    --hub-radius-sm: var(--radius-control);
    --hub-radius-md: var(--radius-media);
    --hub-radius-lg: var(--radius-card);

    --hub-shadow-sm: var(--shadow-soft);
    --hub-shadow-md: var(--shadow-card);

    --hub-focus-ring: var(--focus-ring);

    --hub-danger: #963F35;
    --hub-danger-soft: rgba(150, 63, 53, 0.08);

    --hub-content-width: calc(80rem - 2rem);

    /* Escala tipográfica canônica do Hub. Apps internos reutilizam estes tokens. */
    --hub-font-body: 0.88rem;
    --hub-font-lead: 0.9rem;
    --hub-font-control: 0.84rem;
    --hub-font-label: 0.8rem;
    --hub-font-meta: 0.76rem;
    --hub-font-small: 0.7rem;
    --hub-font-card-title: 1.2rem;
    --hub-font-section-title: 1rem;
    --hub-line-body: 1.5;
}

/* ------------------------------------------------------------
   PAGE
------------------------------------------------------------ */

body.hub-body {
    background-color: #FFF;
    color: #555;
}

.hub-page-container {
    min-height: 100vh;
}

.hub-main {
    width: 100%;
    flex: 1 0 auto;
    background-color: var(--hub-background);
    color: var(--hub-text-soft);
    font-family: 'Roboto', sans-serif;
    font-size: var(--hub-font-body);
    font-weight: 300;
    line-height: var(--hub-line-body);
}

/*
 * Reset tipográfico escopado ao Hub. O website possui uma escala editorial
 * propositalmente maior; ela não deve vazar para apps internos.
 */
:where(.hub-main) :where(p, li, dd, td, th) {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

:where(.hub-main) :where(a, button, input, select, textarea) {
    font-family: inherit;
}


:where(.hub-main) :where(h1, h2, h3, h4, h5, h6) {
    color: var(--hub-text);
    font-family: 'Roboto', sans-serif;
}

:where(.hub-main) h2 {
    font-size: var(--hub-font-card-title);
    line-height: 1.2;
}

:where(.hub-main) h3 {
    font-size: var(--hub-font-section-title);
    line-height: 1.25;
}

:where(.hub-main) :where(h4, h5, h6) {
    font-size: var(--hub-font-control);
    line-height: 1.3;
}

.hub-content,
.hub-page {
    width: var(--hub-content-width);
    max-width: 95%;
    margin: 0 auto;
    padding: 1.5rem 0 2.25rem;
}




.hub-page-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.hub-page-heading-row > :first-child {
    min-width: 0;
}

@media (max-width: 700px) {
    .hub-page-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.hub-breadcrumbs a,
.hub-breadcrumbs span {
    margin: 0;
    padding: 0;
}

.hub-breadcrumbs a {
    flex: 0 0 auto;
    color: var(--apus-blue);
    text-decoration: none;
}


/* ------------------------------------------------------------
   COMPACT e FORMS
------------------------------------------------------------ */

.hub-content--compact {
    width: 48rem;
    max-width: 95%;
}

.hub-content--compact .hub-page-header {
    margin-bottom: 0.75rem;
}

.hub-content--compact .hub-card {
    padding: 0.8rem;
}

.hub-content--compact .hub-card-header {
    margin-bottom: 0.5rem;
}

.hub-content--compact .hub-form {
    gap: 0.65rem;
}

.hub-content--compact .hub-form-grid {
    gap: 0.55rem 0.7rem;
}

.hub-content--compact .hub-field {
    gap: 0.3rem;
}

.hub-content--compact .hub-field textarea {
    min-height: 4.5rem;
}

.hub-content-column--compact {
    width: 48rem;
    max-width: 100%;
    margin-inline: auto;
}

.hub-context-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
}

.hub-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: start;
}

.hub-detail-card--wide {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {

    .hub-detail-grid {
        grid-template-columns: 1fr;
    }

    .hub-detail-card--wide {
        grid-column: auto;
    }
}



/* ------------------------------------------------------------
   APUS HUB — SECTION GRID / ORGANIZATIONS / WORKSPACE
------------------------------------------------------------ */

.hub-grid-container {
    width: 100%;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.hub-section-card {
    display: flex;
    min-height: 8.5rem;
    flex-direction: column;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.hub-card-content {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: column;
}

a.hub-section-card:hover,
a.hub-section-card:focus,
a.hub-section-card:focus-visible,
a.hub-section-card:visited {
    color: inherit;
    text-decoration: none;
}

.hub-section-card p {
    max-width: 42ch;
    margin: 0;
}

.hub-section-card .hub-card-muted {
    margin-top: auto;
}

/* Cards ilustrados da entrada principal do Hub. */
.hub-section-card--illustrated {
    min-width: 0;
    min-height: 12rem;
    padding: 0.9rem;
}

.hub-section-card-media {
    display: flex;
    width: 100%;
    height: 4rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    overflow: visible;
}

.hub-section-card-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 4rem;
    object-fit: contain;
    transform: scale(1);
    transform-origin: center;
    transition: transform 110ms ease;
    pointer-events: none;
    user-select: none;
}

.hub-section-card--illustrated .hub-card-content {
    min-width: 0;
}

.hub-section-card--illustrated .hub-card-content h2 {
    width: 100%;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.hub-section-card--illustrated .hub-card-content p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
}

/* O card inteiro ativa o hover; apenas a ilustração reage. */
.hub-section-card--illustrated:hover .hub-section-card-image,
.hub-section-card--illustrated:focus-visible .hub-section-card-image {
    transform: scale(1.06);
}

.hub-card-illustration {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 3.25rem;
    object-fit: contain;
    object-position: center;
}

.hub-card-heading-illustrated {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 1050px) {
    .hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .hub-section-card--illustrated {
        min-height: 11.25rem;
        padding: 0.8rem;
    }

    .hub-section-card-media {
        height: 3.75rem;
        margin-bottom: 0.6rem;
    }

    .hub-section-card-image {
        max-height: 3.75rem;
    }

    .hub-section-card--illustrated .hub-card-content h2 {
        margin-bottom: 0.45rem;
        font-size: 1rem;
    }

    .hub-section-card--illustrated .hub-card-content p {
        font-size: 0.86rem;
        line-height: 1.35;
    }
}

@media (max-width: 650px) {
    .hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .hub-section-card--illustrated {
        min-height: 9.75rem;
        padding: 0.65rem;
    }

    .hub-section-card-media {
        height: 3.2rem;
        margin-bottom: 0.45rem;
    }

    .hub-section-card-image {
        max-height: 3.2rem;
    }

    .hub-section-card--illustrated .hub-card-content h2 {
        margin-bottom: 0.35rem;
        font-size: 1rem;
        line-height: 1.15;
    }

    .hub-section-card--illustrated .hub-card-content p {
        font-size: 0.86rem;
        line-height: 1.3;
    }
}

@media (max-width: 550px) {
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .hub-section-card--illustrated {
        min-height: 9.25rem;
        padding: 0.65rem;
    }

    .hub-section-card-media {
        height: 3rem;
        margin-bottom: 0.4rem;
    }

    .hub-section-card-image {
        max-height: 3rem;
    }

    .hub-section-card--illustrated .hub-card-content h2 {
        margin-bottom: 0.35rem;
        font-size: 1rem;
    }

    .hub-section-card--illustrated .hub-card-content p {
        font-size: 0.86rem;
        line-height: 1.3;
    }
}

@media (max-width: 380px) {
    .hub-grid {
        gap: 0.35rem;
    }

    .hub-section-card--illustrated {
        min-height: 8.75rem;
        padding: 0.55rem;
    }

    .hub-section-card-media {
        height: 2.6rem;
        margin-bottom: 0.35rem;
    }

    .hub-section-card-image {
        max-height: 2.6rem;
    }

    .hub-section-card--illustrated .hub-card-content h2 {
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }

    .hub-section-card--illustrated .hub-card-content p {
        font-size: 0.86rem;
        line-height: 1.25;
    }
}



/* ------------------------------------------------------------
   SECONDARY NAVIGATION / ENTITY CARDS
------------------------------------------------------------ */

/* Lists such as Conta and Organizações use the Hub card language without
   forcing six narrow columns, which is specific to the Hub home. */
.hub-grid--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-grid--account {
    width: min(48rem, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hub-entity-card .hub-section-card-media {
    height: 4.5rem;
}

.hub-entity-card .hub-section-card-image {
    max-height: 4.5rem;
}

.hub-entity-card .hub-section-card-image--avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--hub-border);
}

.hub-entity-card .hub-section-card-image--organization {
    width: 5rem;
    height: 4.5rem;
    object-fit: contain;
}

.hub-entity-card .hub-card-meta {
    margin: -0.2rem 0 0.55rem;
    text-align: center;
}

@media (max-width: 900px) {
    .hub-grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-entity-card .hub-section-card-media {
        height: 3.75rem;
    }

    .hub-entity-card .hub-section-card-image,
    .hub-entity-card .hub-section-card-image--avatar,
    .hub-entity-card .hub-section-card-image--organization {
        max-height: 3.75rem;
        height: 3.75rem;
    }

    .hub-entity-card .hub-section-card-image--avatar {
        width: 3.75rem;
    }

    .hub-entity-card .hub-section-card-image--organization {
        width: 4.25rem;
    }
}

@media (max-width: 650px) {
    .hub-entity-card .hub-section-card-media {
        height: 3.2rem;
    }

    .hub-entity-card .hub-section-card-image,
    .hub-entity-card .hub-section-card-image--avatar,
    .hub-entity-card .hub-section-card-image--organization {
        max-height: 3.2rem;
        height: 3.2rem;
    }

    .hub-entity-card .hub-section-card-image--avatar {
        width: 3.2rem;
    }

    .hub-entity-card .hub-section-card-image--organization {
        width: 3.7rem;
    }
}

@media (max-width: 550px) {
    .hub-grid--account,
    .hub-grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub-entity-card .hub-section-card-media {
        height: 3rem;
    }

    .hub-entity-card .hub-section-card-image,
    .hub-entity-card .hub-section-card-image--avatar,
    .hub-entity-card .hub-section-card-image--organization {
        max-height: 3rem;
        height: 3rem;
    }

    .hub-entity-card .hub-section-card-image--avatar {
        width: 3rem;
    }

    .hub-entity-card .hub-section-card-image--organization {
        width: 3.5rem;
    }
}

/* ------------------------------------------------------------
   ORGANIZATION IDENTITY
------------------------------------------------------------ */

.hub-organization-card-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.hub-organization-card-title {
    min-width: 0;
}

.hub-organization-card-title h2 {
    margin: 0;
}

.hub-organization-card-title .hub-card-meta {
    margin: 0.15rem 0 0;
}



/* ------------------------------------------------------------
   DATA DISPLAY
------------------------------------------------------------ */

.hub-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.45rem 0.9rem;

    margin: 0;
}

.hub-data-grid > div {
    min-width: 0;

    padding-bottom: 0.4rem;

    border-bottom: 1px solid var(--hub-border);
}

.hub-data-grid dt {
    margin: 0 0 0.12rem;

    color: var(--hub-muted);

    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
}

.hub-data-grid dd {
    margin: 0;

    color: var(--hub-text);

    font-family: 'Roboto', sans-serif;
    font-size: var(--hub-font-control);
    font-weight: 300;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

.hub-data-grid dd a {
    color: inherit;

    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.hub-data-grid dd a:hover,
.hub-data-grid dd a:focus-visible {
    color: var(--apus-blue);
}

.hub-data-wide {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {

    .hub-data-grid {
        grid-template-columns: 1fr;
    }

    .hub-data-wide {
        grid-column: auto;
    }
}

/* ------------------------------------------------------------
   HEADER
------------------------------------------------------------ */

.hub-main-nav {
    height: 100%;
}

.hub-main-nav > ul {
    height: 100%;
}

.hub-main-nav > ul > li {
    height: 100%;
    padding: 0;
}

.hub-account-item {
    position: relative;
    display: flex !important;
    align-items: center;
}


/* Account trigger */

.hub-account-toggle {
    position: relative;

    display: inline-flex;
    height: 100%;
    align-items: center;
    gap: 0.55rem;

    margin: 0;
    padding: 0;

    border: 0;
    outline: none;

    background: transparent;
    color: #333;

    cursor: pointer;
    touch-action: manipulation;

    font: inherit;
}

.hub-account-toggle:focus-visible {
    outline: none;
}

.hub-header-avatar {
    position: relative;

    display: inline-flex;
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--apus-blue),
        #303030
    );

    color: #fff;

    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;

    box-shadow: 0 0 0 1px rgba(48, 48, 48, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hub-account-toggle:hover .hub-header-avatar,
.hub-account-item.is-open .hub-header-avatar {
    transform: scale(1.025);
}

.hub-header-avatar-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.hub-header-avatar-initials {
    position: relative;
    z-index: 0;
}


/* User name */

.hub-header-user-name {
    position: relative;

    max-width: 16rem;

    overflow: hidden;

    color: #333;

    font-family: 'Roboto', 'Signika', 'Arsenal', sans-serif;
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-header-user-name::after {
    content: '';

    position: absolute;
    bottom: -0.15rem;
    left: 50%;

    width: 0;
    height: 1px;

    border-radius: 36px;

    background: linear-gradient(
        to right,
        #285095,
        #2E98ED
    );

    transform: translateX(-50%);

    transition: width 0.2s ease-out;
}

.hub-account-toggle:hover .hub-header-user-name::after,
.hub-account-item.is-open .hub-header-user-name::after {
    width: 100%;
}


/* Indicator */

.hub-account-indicator {
    flex: 0 0 auto;

    width: 0.75rem;
    height: 0.75rem;

    color: #333;

    transition: transform 0.3s ease;
}

.hub-account-item.is-open .hub-account-indicator {
    transform: rotate(180deg);
}


/* ------------------------------------------------------------
   ACCOUNT DROPDOWN
------------------------------------------------------------ */

.hub-account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;

    display: block;
    width: 14rem;

    overflow: hidden;
    white-space: nowrap;

    border-radius: var(--radius-card);
    box-shadow: var(--shadow-panel);
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;

    background:
        linear-gradient(
            to bottom,
            #333333ef,
            #2850958d
        );

    box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: none;

    transition:
        opacity 0.4s,
        visibility 0.4s;
}

.hub-account-item.is-open .hub-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}


/* Identity shown inside menu */

.hub-account-menu-identity {
    display: none;
}


/* Menu items */

.hub-account-menu > a,
.hub-account-logout-form button {
    position: relative;

    display: flex;
    width: 100%;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 1.5rem;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: #fff;

    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;
}

.hub-account-menu > a span,
.hub-account-logout-form button span {
    position: relative;
}

.hub-account-menu > a span::after,
.hub-account-logout-form button span::after {
    content: '';

    position: absolute;
    bottom: -0.2rem;
    left: 50%;

    width: 0;
    height: 1px;

    border-radius: 36px;

    background: linear-gradient(
        to right,
        #808080,
        #fff
    );

    transition: width 0.2s ease-out;

    transform: translateX(-50%);
}

.hub-account-menu > a:hover span::after,
.hub-account-menu > a:focus-visible span::after,
.hub-account-logout-form button:hover span::after,
.hub-account-logout-form button:focus-visible span::after {
    width: 100%;
}

.hub-account-logout-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------
   PAGE TYPOGRAPHY
------------------------------------------------------------ */
.hub-page-header {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 6.75rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0 0.8rem;
    overflow: hidden;
    isolation: isolate;
}

/* Mantido por compatibilidade; headers do Hub agora são wide por padrão. */
.hub-page-header--wide {
    max-width: none;
}

/*
 * Micro-hero padrão do Hub.
 * É puramente decorativo e não participa do fluxo da página.
 * Adicione .hub-page-header--plain quando uma tela específica precisar ficar sem ele.
 */
.hub-page-header::after {
    content: "";

    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-image: url("../svg/projects-default.e4f53428fe92.svg");
    background-repeat: no-repeat;

    /* tamanho manual do SVG */
    background-size: 30rem auto;

    /* posição manual */
    background-position: 100% 23%;

    -webkit-mask-image: linear-gradient(
        to left,
        #000 5%,
        rgba(0, 0, 0, 0.05) 42%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to left,
        #000 5%,
        rgba(0, 0, 0, 0.05) 42%,
        transparent 100%
    );

    pointer-events: none;
    z-index: -1;
}


/* ------------------------------------------------------------
   MOBILE
------------------------------------------------------------ */

@media (max-width: 750px) {
    .hub-page-header {
        min-height: 6.25rem;
        padding: 0.5rem 0 0.65rem;
    }

    .hub-page-header::after {
        background-size: 15rem auto;
        background-position: 100% 30%;

        opacity: 1;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 5%,
            rgba(0, 0, 0, 0.05) 58%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 5%,
            rgba(0, 0, 0, 0.05) 58%,
            transparent 100%
        );
    }
}

@media (max-width: 400px) {
    .hub-page-header::after {
        background-size: 14rem auto;
        background-position: 100% 30%;

        opacity: 1;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 5%,
            rgba(0, 0, 0, 0.05) 58%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 5%,
            rgba(0, 0, 0, 0.05) 58%,
            transparent 100%
        );
    }
}


.hub-page-title {
    margin: 0 0 0.4rem;
    color: var(--hub-text);
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hub-page-lead {
    max-width: 60ch;
    margin: 0;
    color: var(--hub-text-soft);
    font-family: 'Roboto', sans-serif;
    font-size: var(--hub-font-lead);
    font-weight: 300;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   CARDS
------------------------------------------------------------ */

.hub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}


.hub-card {
    padding: 1rem;
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-lg);
    background: var(--hub-surface);
    box-shadow: var(--shadow-soft);

    color: var(--hub-text-soft);
    font-family: 'Roboto', sans-serif;
    font-size: var(--hub-font-body);
    font-weight: 300;
    line-height: var(--hub-line-body);
}

.hub-card h2 {
    margin: 0 0 0.45rem;
    color: var(--hub-text);
    font-family: 'Roboto', sans-serif;
    font-size: var(--hub-font-card-title);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hub-card p {
    margin: 0;
}

.hub-card .hub-card-header h2 {
    margin: 0;
}

.hub-card-meta {
    margin: 0.2rem 0 0.45rem;
    color: var(--hub-muted);
    font-size: var(--hub-font-meta);
    font-weight: 300;
    line-height: 1.3;
}

.hub-empty-state {
    max-width: 36rem;
}

.hub-empty-state p {
    margin: 0;
}


.hub-organization-avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-media);
    background: #fff;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 0 0 1px var(--hub-border);
}

.hub-organization-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hub-organization-avatar-initials {
    position: relative;
    z-index: 0;
}





/* ------------------------------------------------------------
   BUTTONS
------------------------------------------------------------ */

.hub-button {
    display: inline-flex;
    width: fit-content;
    min-height: 2.625rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--hub-radius-sm);
    background: var(--apus-blue);
    color: #fff;
    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.hub-button:hover {
    background: #234784;
    color: #fff;
    text-decoration: none;
}

.hub-button:focus-visible {
    outline: none;
    box-shadow: var(--hub-focus-ring);
}

.hub-button-secondary {
    border-color: var(--hub-border-strong);
    background: var(--hub-surface);
    color: var(--hub-text-soft);
}

.hub-button-secondary:hover {
    border-color: rgba(40, 80, 149, 0.30);
    background: rgba(40, 80, 149, 0.05);
    color: var(--apus-blue);
}

.hub-button-danger {
    background: var(--hub-danger);
    color: #fff;
}

.hub-button-danger:hover {
    background: #80352D;
    color: #fff;
}

.hub-button-quiet {
    padding-left: 0;
    padding-right: 0;
    border-color: transparent;
    background: transparent;
    color: var(--apus-blue);
}

.hub-button-quiet:hover {
    background: transparent;
    color: var(--apus-light-blue);
}

/* ------------------------------------------------------------
   BREADCRUMBS
------------------------------------------------------------ */

.hub-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    margin: 0 0 0.8rem;
    overflow: hidden;
    color: var(--hub-muted);
    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.hub-breadcrumbs a:hover,
.hub-breadcrumbs a:focus-visible {
    color: var(--apus-light-blue);
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.hub-breadcrumbs-separator {
    flex: 0 0 auto;
    color: #AAA;
    user-select: none;
}

.hub-breadcrumbs-current {
    min-width: 0;
    overflow: hidden;
    color: var(--hub-text-soft);
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   FIELDS
------------------------------------------------------------ */

.hub-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.4rem;
}

.hub-field label {
    color: var(--hub-text-soft);
    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: var(--hub-font-label);
    font-weight: 400;
}

.hub-field input,
.hub-field select,
.hub-field textarea {
    width: 100%;
    min-height: 2.35rem;

    padding: 0.48rem 0.65rem;

    border: 1px solid var(--hub-border-strong);
    border-radius: var(--hub-radius-sm);

    outline: none;

    background: #fff;
    color: var(--hub-text);

    font-family: 'Roboto', sans-serif;
    font-size: 0.84rem;
    font-weight: 300;

    box-sizing: border-box;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.hub-field textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.55;
}

.hub-field input:hover,
.hub-field select:hover,
.hub-field textarea:hover {
    border-color: rgba(40, 80, 149, 0.35);
}

.hub-field input:focus,
.hub-field select:focus,
.hub-field textarea:focus {
    border-color: var(--apus-blue);
    box-shadow: var(--hub-focus-ring);
}

.hub-field small {
    color: #8B8B8B;
    font-size: 0.75rem;
    line-height: 1.45;
}

.hub-field .errorlist,
.hub-form-errors .errorlist {
    margin: 0.2rem 0 0;
    padding: 0;

    list-style: none;

    color: var(--hub-danger);

    font-size: 0.78rem;
    line-height: 1.45;
}

/* ------------------------------------------------------------
   FORMS
------------------------------------------------------------ */

.hub-form-card {
    width: 100%;
    max-width: 36rem;
}

.hub-form {
    display: flex;
    width: 100%;
    max-width: none;

    flex-direction: column;
    gap: 0.9rem;
}

.hub-form--compact {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    gap: 0.65rem;
}

.hub-form-grid {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap: 0.75rem 1rem;
    align-items: start;
}

/*
 * Largura semântica dentro do grid.
 */

.hub-field--span-2 {
    grid-column: span 2;
}

.hub-field--span-3 {
    grid-column: span 3;
}

.hub-field--span-4 {
    grid-column: span 4;
}

.hub-field--span-6 {
    grid-column: span 6;
}

.hub-field--span-7 {
    grid-column: span 7;
}

.hub-field--span-8 {
    grid-column: span 8;
}

.hub-field--span-12 {
    grid-column: 1 / -1;
}

.hub-form-actions {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 0.5rem;
    margin-top: 0.35rem;
}

.hub-field-help {
    color: var(--hub-muted);

    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    line-height: 1.45;
}

.hub-field-help ul {
    margin: 0.3rem 0 0;
    padding-left: 1.1rem;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.hub-footer {
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #303030, #285095);
    color: #FFF;
}

.hub-footer-container {
    width: var(--hub-content-width);
    max-width: 95%;
    min-height: 8rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hub-footer-brand {
    color: #FFF;
    font-family: 'Signika', 'Arsenal', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.hub-footer-copy {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Arsenal', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 840px) {
    .hub-content,
    .hub-page {
        padding: 1.5rem 0 2.25rem;
    }

    .hub-footer-container {
        min-height: 9rem;
        padding: 1.5rem 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
    }

    /*
     * O Hub não utiliza o menu hamburger do website.
     * A conta permanece diretamente visível no header.
     */

    .hub-main-nav {
        position: static;
        display: flex;
        height: 100%;
        align-items: center;
    }

    .hub-main-nav > ul {
        position: static;

        left: auto;
        top: auto;

        display: flex;

        width: auto;
        min-width: 0;
        max-width: none;
        max-height: none;
        height: 100%;

        /*
        * O CSS global transforma .main-nav > ul em scroll
        * container no mobile. No Hub o dropdown precisa
        * extrapolar a altura do header.
        */
        overflow: visible;
        overscroll-behavior: auto;

        flex-direction: row;
        align-items: center;
        justify-content: flex-end;

        margin: 0;
        padding: 0;

        border-radius: 0;

        background: transparent;

        box-shadow: none;

        transform: none;
    }

    .hub-main-nav > ul > li {
        width: auto;
        height: 100%;

        margin: 0;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .hub-account-item {
        position: relative;
    }


    /* No mobile, somente o avatar fica no header */

    .hub-account-toggle {
        width: 4.5rem;
        height: 100%;

        justify-content: center;

        padding: 0;
    }

    .hub-header-user-name,
    .hub-account-indicator {
        display: none;
    }

    .hub-header-avatar {
        flex-basis: 4.5rem;

        width: 4.5rem;
        height: 4.5rem;
    }


    /* Dropdown continua flutuando abaixo do avatar */

    .hub-account-menu {
        top: 100%;
        right: 0;

        width: min(18rem, calc(100vw - 2rem));

        border: 0;

        background:
            linear-gradient(
                to bottom,
                #333333ef,
                #2850958d
            );

        box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hub-account-item.is-open .hub-account-menu {
        transform: none;
    }


    /* Nome passa para dentro do menu */

    .hub-account-menu-identity {
        display: flex;

        flex-direction: column;


        padding: 1rem 1.15rem 0.9rem;

        border-bottom: 1px solid rgba(255, 255, 255, 0.10);

        color: #fff;
    }


    .hub-account-menu-identity strong {
        overflow: hidden;

        color: #fff;

        font-family: 'Roboto', 'Arsenal', sans-serif;
        font-size: 1rem;
        font-weight: 200;
        line-height: 1.25;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

}



.hub-messages {
    width: var(--hub-content-width);
    max-width: 95%;
    margin: 0.75rem auto 0;
}

.hub-message {
    padding: 0.9rem 1rem;
    border-left: 4px solid var(--apus-blue);
    border-radius: 0 10px 10px 0;
    background: rgba(40, 80, 149, 0.07);
    color: #404040;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hub-message--success {
    border-left-color: var(--apus-green);
    background: rgba(40, 90, 6, 0.07);
}

.hub-message--warning {
    border-left-color: var(--apus-orange);
    background: rgba(242, 93, 36, 0.07);
}

.hub-message--error {
    border-left-color: #a33c31;
    background: rgba(163, 60, 49, 0.07);
}

.hub-message + .hub-message {
    margin-top: 0.5rem;
}










@media (max-width: 700px) {

    .hub-form-grid {
        grid-template-columns: 1fr;
    }

    .hub-form-grid > .hub-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {

    .hub-form-actions {
        flex-direction: column-reverse;
    }

    .hub-form-actions .hub-button {
        width: 100%;
        box-sizing: border-box;
    }
}
