html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.messaging-box {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

    .messaging-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

.navbar-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    position: relative;
    top: -8px;
    right: 5px;
}

/* ---------- Fórum ---------- */
.gm-forum-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.gm-forum-title {
    font-weight: 600;
}

.gm-forum-table td {
    vertical-align: middle;
}

.gm-forum-pinned {
    background: rgba(9, 174, 189, .06);
}

.gm-forum-admin-actions form {
    display: inline-block;
}

.gm-forum-search .form-control {
    min-width: 180px;
}

.gm-forum-snippet {
    color: var(--gm-muted);
    overflow-wrap: anywhere;
}

    .gm-forum-snippet mark {
        padding: 0 .15em;
        background: rgba(9, 174, 189, .22);
        border-radius: 2px;
    }

.gm-forum-post .card-header {
    background: rgba(15, 23, 42, .02);
}

.gm-forum-content {
    overflow-wrap: anywhere;
}

    .gm-forum-content > :last-child {
        margin-bottom: 0;
    }

    .gm-forum-content blockquote {
        border-left: 4px solid var(--gm-accent, #09aebd);
        background: rgba(15, 23, 42, .03);
        margin: 0 0 1rem;
        padding: .5rem 1rem;
        color: var(--gm-muted);
    }

        .gm-forum-content blockquote > :last-child {
            margin-bottom: 0;
        }

    .gm-forum-content pre {
        background: rgba(15, 23, 42, .05);
        padding: .75rem;
        border-radius: var(--gm-r-md);
    }

    .gm-forum-content table {
        margin-bottom: 1rem;
    }

    .gm-forum-content th,
    .gm-forum-content td {
        border: 1px solid rgba(15, 23, 42, .12);
        padding: .25rem .5rem;
    }

    .gm-forum-content img {
        max-width: 100%;
    }

.gm-md-tabs {
    border-bottom: 0;
}

    .gm-md-tabs .nav-link {
        padding: .35rem .75rem;
    }

.gm-md-toolbar {
    border-bottom: 1px solid var(--gm-border);
    margin-bottom: .5rem;
}

.gm-md-buttons {
    margin-bottom: .35rem;
}

.gm-md-preview {
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-r-md);
    padding: .5rem .75rem;
}

.ancient-pie {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.ancient-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}

.haplo-suggest {
    position: relative;
}

.haplo-suggest-menu {
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
}

.ancient-timeline { padding: .5rem 0; }
.ancient-timeline-bars { display: flex; align-items: flex-end; height: 220px; gap: 3px; border-bottom: 1px solid #ced4da; }
.ancient-timeline-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.ancient-timeline-bar { width: 100%; border-radius: 3px 3px 0 0; transition: opacity .15s; }
.ancient-timeline-col:hover .ancient-timeline-bar { opacity: .75; }
.ancient-timeline-value { font-size: .7rem; color: #6c757d; white-space: nowrap; }
.ancient-timeline-axis { display: flex; gap: 3px; }
.ancient-timeline-tick { flex: 1; min-width: 0; font-size: .65rem; color: #6c757d; writing-mode: vertical-rl; transform: rotate(180deg); height: 90px; text-align: right; padding-top: 4px; }

.ancient-timeline-svg { width: 100%; height: auto; display: block; }
.ancient-timeline-svg rect:hover { opacity: .75; }
