@charset "utf-8";
body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
    color: #2d3436;
}

/* Ensure footer sticks to bottom on all pages */
html, body {
    height: 100%;
}

/* Always show scrollbar to prevent layout shift between pages */
html {
    overflow-y: scroll;
}

body.d-flex.flex-column.min-vh-100 {
    min-height: 100vh;
}

body.d-flex.flex-column.h-100 {
    height: 100%;
}

/* Footer styling */
.footer {
    margin-top: auto;
}

/* Code highlighting styles - Rouge syntax highlighter */
.highlighter-rouge {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    position: relative;
}

.highlighter-rouge .highlight {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.highlighter-rouge pre {
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    font-family: 'Source Code Pro', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Rouge syntax highlighting colors */
.highlighter-rouge .highlight .c { color: #6a737d; font-style: italic; } /* Comment */
.highlighter-rouge .highlight .err { color: #d73a49; } /* Error */
.highlighter-rouge .highlight .k { color: #d73a49; font-weight: bold; } /* Keyword */
.highlighter-rouge .highlight .l { color: #032f62; } /* Literal */
.highlighter-rouge .highlight .n { color: #24292e; } /* Name */
.highlighter-rouge .highlight .o { color: #d73a49; font-weight: bold; } /* Operator */
.highlighter-rouge .highlight .p { color: #24292e; } /* Punctuation */
.highlighter-rouge .highlight .cm { color: #6a737d; font-style: italic; } /* Comment.Multiline */
.highlighter-rouge .highlight .cp { color: #6a737d; font-weight: bold; } /* Comment.Preproc */
.highlighter-rouge .highlight .c1 { color: #6a737d; font-style: italic; } /* Comment.Single */
.highlighter-rouge .highlight .cs { color: #6a737d; font-weight: bold; font-style: italic; } /* Comment.Special */
.highlighter-rouge .highlight .gd { color: #b31d28; background-color: #ffeef0; } /* Generic.Deleted */
.highlighter-rouge .highlight .ge { font-style: italic; } /* Generic.Emph */
.highlighter-rouge .highlight .gr { color: #b31d28; } /* Generic.Error */
.highlighter-rouge .highlight .gh { color: #005cc5; font-weight: bold; } /* Generic.Heading */
.highlighter-rouge .highlight .gi { color: #22863a; background-color: #f0fff4; } /* Generic.Inserted */
.highlighter-rouge .highlight .go { color: #6a737d; } /* Generic.Output */
.highlighter-rouge .highlight .gp { color: #005cc5; font-weight: bold; } /* Generic.Prompt */
.highlighter-rouge .highlight .gs { font-weight: bold; } /* Generic.Strong */
.highlighter-rouge .highlight .gu { color: #6f42c1; font-weight: bold; } /* Generic.Subheading */
.highlighter-rouge .highlight .gt { color: #b31d28; } /* Generic.Traceback */
.highlighter-rouge .highlight .kc { color: #d73a49; font-weight: bold; } /* Keyword.Constant */
.highlighter-rouge .highlight .kd { color: #d73a49; font-weight: bold; } /* Keyword.Declaration */
.highlighter-rouge .highlight .kn { color: #d73a49; font-weight: bold; } /* Keyword.Namespace */
.highlighter-rouge .highlight .kp { color: #d73a49; font-weight: bold; } /* Keyword.Pseudo */
.highlighter-rouge .highlight .kr { color: #d73a49; font-weight: bold; } /* Keyword.Reserved */
.highlighter-rouge .highlight .kt { color: #d73a49; font-weight: bold; } /* Keyword.Type */
.highlighter-rouge .highlight .ld { color: #032f62; } /* Literal.Date */
.highlighter-rouge .highlight .m { color: #005cc5; } /* Literal.Number */
.highlighter-rouge .highlight .s { color: #032f62; } /* Literal.String */
.highlighter-rouge .highlight .na { color: #6f42c1; } /* Name.Attribute */
.highlighter-rouge .highlight .nb { color: #005cc5; } /* Name.Builtin */
.highlighter-rouge .highlight .nc { color: #6f42c1; font-weight: bold; } /* Name.Class */
.highlighter-rouge .highlight .no { color: #005cc5; } /* Name.Constant */
.highlighter-rouge .highlight .nd { color: #6f42c1; font-weight: bold; } /* Name.Decorator */
.highlighter-rouge .highlight .ni { color: #6f42c1; } /* Name.Entity */
.highlighter-rouge .highlight .ne { color: #b31d28; font-weight: bold; } /* Name.Exception */
.highlighter-rouge .highlight .nf { color: #6f42c1; font-weight: bold; } /* Name.Function */
.highlighter-rouge .highlight .nl { color: #6f42c1; } /* Name.Label */
.highlighter-rouge .highlight .nn { color: #24292e; } /* Name.Namespace */
.highlighter-rouge .highlight .nx { color: #6f42c1; } /* Name.Other */
.highlighter-rouge .highlight .py { color: #6f42c1; } /* Name.Property */
.highlighter-rouge .highlight .nt { color: #22863a; font-weight: bold; } /* Name.Tag */
.highlighter-rouge .highlight .nv { color: #005cc5; } /* Name.Variable */
.highlighter-rouge .highlight .ow { color: #d73a49; font-weight: bold; } /* Operator.Word */
.highlighter-rouge .highlight .w { color: #e1e4e8; } /* Text.Whitespace */
.highlighter-rouge .highlight .mb { color: #005cc5; } /* Literal.Number.Bin */
.highlighter-rouge .highlight .mf { color: #005cc5; } /* Literal.Number.Float */
.highlighter-rouge .highlight .mh { color: #005cc5; } /* Literal.Number.Hex */
.highlighter-rouge .highlight .mi { color: #005cc5; } /* Literal.Number.Integer */
.highlighter-rouge .highlight .mo { color: #005cc5; } /* Literal.Number.Oct */
.highlighter-rouge .highlight .sa { color: #032f62; } /* Literal.String.Affix */
.highlighter-rouge .highlight .sb { color: #032f62; } /* Literal.String.Backtick */
.highlighter-rouge .highlight .sc { color: #032f62; } /* Literal.String.Char */
.highlighter-rouge .highlight .dl { color: #032f62; } /* Literal.String.Delimiter */
.highlighter-rouge .highlight .sd { color: #6a737d; font-style: italic; } /* Literal.String.Doc */
.highlighter-rouge .highlight .s2 { color: #032f62; } /* Literal.String.Double */
.highlighter-rouge .highlight .se { color: #032f62; } /* Literal.String.Escape */
.highlighter-rouge .highlight .sh { color: #032f62; } /* Literal.String.Heredoc */
.highlighter-rouge .highlight .si { color: #032f62; } /* Literal.String.Interpol */
.highlighter-rouge .highlight .sx { color: #032f62; } /* Literal.String.Other */
.highlighter-rouge .highlight .sr { color: #032f62; } /* Literal.String.Regex */
.highlighter-rouge .highlight .s1 { color: #032f62; } /* Literal.String.Single */
.highlighter-rouge .highlight .ss { color: #032f62; } /* Literal.String.Symbol */
.highlighter-rouge .highlight .bp { color: #005cc5; } /* Name.Builtin.Pseudo */
.highlighter-rouge .highlight .fm { color: #6f42c1; font-weight: bold; } /* Name.Function.Magic */
.highlighter-rouge .highlight .vc { color: #005cc5; } /* Name.Variable.Class */
.highlighter-rouge .highlight .vg { color: #005cc5; } /* Name.Variable.Global */
.highlighter-rouge .highlight .vi { color: #005cc5; } /* Name.Variable.Instance */
.highlighter-rouge .highlight .vm { color: #005cc5; } /* Name.Variable.Magic */
.highlighter-rouge .highlight .il { color: #005cc5; } /* Literal.Number.Integer.Long */

.highlighter-rouge code {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    border: none;
    color: inherit;
}

/* Inline code */
code:not(.highlighter-rouge code) {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
    font-size: 0.875em;
    color: #e83e8c;
}

/* Legacy highlight class support */
.highlight {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    border: none;
}

.highlight pre {
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
}

.highlight code {
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    border: none;
}

/* Blog content styling */
.blog-content {
    line-height: 1.7;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.25rem;
}

.blog-content h3 {
    font-size: 1.25rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 3px solid #e0e0e0;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

/* Multi-column image layouts */
.blog-content .row img {
    margin: 0.5rem 0;
    transition: transform 0.2s ease-in-out;
}

.blog-content .row img:hover {
    transform: scale(1.02);
}

/* Image gallery styles */
.blog-content .img-fluid {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.blog-content .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Responsive image containers */
.blog-content .col-md-6 img,
.blog-content .col-md-4 img,
.blog-content .col-lg-3 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Mixed content layouts */
.blog-content .col-md-8 {
    padding-right: 1rem;
}

.blog-content .col-md-4 {
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .blog-content .col-md-8,
    .blog-content .col-md-4 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .blog-content .col-md-6 img,
    .blog-content .col-md-4 img {
        height: 150px;
    }
}

.blog-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.blog-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Math formula styling */
.katex-display {
    margin: 1.5rem 0;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.katex {
    font-size: 1.1em;
}

/* Ensure math formulas are properly displayed */
.katex-display .katex {
    display: inline-block;
    white-space: nowrap;
}

/* Fix for math formula containers */
.katex-display {
    display: block;
    width: 100%;
}

/* Ensure proper spacing around math formulas */
.blog-content .katex-display {
    margin: 2rem 0;
    padding: 1rem 0;
}

/* Inline math styling */
.katex-inline {
    display: inline;
    margin: 0 0.2em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
}

/* Minimalist link styling */
a {
    color: #4a7298;
    transition: color 0.2s ease;
}

a:hover {
    color: #2d3436;
}

/* Subtle horizontal rules */
hr {
    border-top: 1px solid #f0f0f0;
}

/* Minimalist cards - no shadow, subtle border */
.card {
    border-radius: 0.8rem!important;
    box-shadow: none !important;
    border: 1px solid #f0f0f0 !important;
}

.card:hover {
    border-color: #e0e0e0 !important;
    transition: border-color 0.2s ease;
}

/* Override shadow-sm globally for minimalist feel */
.shadow-sm {
    box-shadow: none !important;
    border: 1px solid #f0f0f0;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

/* Frosted glass navbar */
.navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

/* Soft pastel publication badges */
.badge-publication {
    font-size: 85%;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    padding: 0.25em 0.6em;
    border: none;
}

.badge-publication.badge-success {
    background-color: #e8f5e9;
    color: #4a8c5c;
}

.badge-publication.badge-warning {
    background-color: #fff8e1;
    color: #b8860b;
}

.badge-publication.badge-info {
    background-color: #e3f2fd;
    color: #5085a5;
}

.badge-publication.badge-danger {
    background-color: #fce4ec;
    color: #c06070;
}

.badge-publication.badge-primary {
    background-color: #e8eaf6;
    color: #5c6bc0;
}

.badge-publication.badge-secondary {
    background-color: #f5f5f5;
    color: #777;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

/* Lighter border separators */
.border-gray {
    border-color: #f0f0f0 !important;
}

.border-bottom {
    border-color: #f0f0f0 !important;
}

/* Minimalist button style */
.btn-outline-primary {
    color: #4a7298;
    border-color: #d0dde8;
}

.btn-outline-primary:hover {
    background-color: #4a7298;
    border-color: #4a7298;
    color: #fff;
}

/* Softer badge styling */
.badge-light {
    background-color: #f5f5f5;
    color: #666;
    font-weight: 500;
}

/* Year headings on publications/blogs pages */
h2.pt-4 {
    font-weight: 500;
    color: #999;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Sidebar year navigation */
#navbar-year .nav-link {
    color: #999;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

#navbar-year .nav-link.active {
    background-color: transparent;
    color: #2d3436;
    font-weight: 600;
}

/* Publication cover image hover preview */
.pub-cover-zoom {
    cursor: zoom-in;
}

.pub-zoom-preview {
    position: fixed;
    max-width: 50vw;
    max-height: 55vh;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    z-index: 9999;
    display: none;
    background-color: #fff;
}

/* Blog layout — content preserves original width, TOC uses remaining space */
.blog-layout-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 15px;
    gap: 1.5rem;
}

.blog-main {
    flex: 0 1 950px;
    min-width: 0;
}

.blog-toc-sidebar {
    flex: 0 0 auto;
    width: clamp(160px, 18vw, 360px);
    display: none;
}

@media (min-width: 992px) {
    .blog-toc-sidebar {
        display: block;
    }
}

/* Blog Table of Contents */
.blog-toc-nav {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-left: 0.75rem;
    border-left: 2px solid #f0f0f0;
}

.blog-toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 0.75rem;
}

.blog-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-toc-list li {
    margin-bottom: 0.25rem;
}

.blog-toc-list a {
    display: block;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #999;
    text-decoration: none;
    padding: 0.15rem 0;
    transition: color 0.2s ease;
}

.blog-toc-list a:hover {
    color: #2d3436;
    text-decoration: none;
}

.blog-toc-list a.toc-active {
    color: #4a7298;
    font-weight: 500;
}

.blog-toc-list .toc-h3 {
    padding-left: 0.75rem;
}

.blog-toc-list .toc-h4 {
    padding-left: 1.5rem;
}

/* Hide TOC scrollbar */
.blog-toc-nav::-webkit-scrollbar {
    width: 0;
}

.blog-toc-nav {
    scrollbar-width: none;
}

/* ===== i18n Language Toggle ===== */
html.lang-active-en .lang-zh {
    display: none !important;
}

html.lang-active-zh .lang-en {
    display: none !important;
}

/* Language toggle switch */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0dde8;
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.8rem;
    margin-left: 0.75rem;
    cursor: pointer;
    vertical-align: middle;
}

.lang-toggle-label {
    padding: 0.2rem 0.5rem;
    color: #999;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.4;
}

.lang-toggle-label:hover {
    color: #4a7298;
}

.lang-toggle-active {
    background-color: #4a7298;
    color: #fff !important;
    font-weight: 500;
}

.lang-toggle-divider {
    width: 1px;
    background-color: #d0dde8;
    align-self: stretch;
}


/* Adaptações para o portfólio Gerlan Silva */
body {font-family:Inter, sans-serif!important;background:#fafbfc!important;color:#252c36!important} .card{border-radius:8px!important}.section-title-custom{font-size:1.1rem;font-weight:600;margin-bottom:1.1rem}.education-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:13px;padding:13px 0;border-bottom:1px solid #f0f1f2;align-items:start}.edu-symbol{font-size:12px;font-weight:700;color:#365b87;border:1px solid #e2e8ef;background:#f5f8fb;width:40px;height:40px;border-radius:5px;display:grid;place-items:center}.edu-date{font-size:.85rem;color:#6c7682;white-space:nowrap}.edu-desc{font-size:.9rem;color:#5d6674}.site-card{background:white;border:1px solid #edf0f4;border-radius:8px;padding:24px;margin-top:22px}.project-line{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:20px;padding:21px 0;border-bottom:1px solid #f1f2f3}.project-line:last-child{border:0}.project-line h3{font-size:1.04rem;font-weight:600}.project-line p{margin-bottom:.55rem;color:#5e6673;font-size:.92rem;line-height:1.7}.project-initial{border-radius:6px;background:#f2f5f8;border:1px solid #e6ebf0;display:grid;place-items:center;font-size:.72rem;color:#627080;text-align:center;padding:9px}.interest-list{font-size:.95rem;line-height:2}.links-row a{margin-right:15px;font-size:.9rem}.article-type{color:#58657b;font-size:.8rem}.all-pubs h3{font-size:1.07rem}.pub-original{padding:16px 0;border-bottom:1px solid #ebeff2}.pub-original p{font-size:.9rem;margin-bottom:4px}.pub-original h3{margin:0 0 5px}@media(max-width:700px){.edu-date{white-space:normal}.education-row{grid-template-columns:40px 1fr}.edu-date{grid-column:2}.project-line{grid-template-columns:1fr}.project-initial{display:none}}

/* Visual editorial inspirado no academic-homepage: cores com contraste definido */
:root{--academic-blue:#1b5792;--academic-green:#16764b;--academic-red:#b53944;--academic-line:#dce7ed}
body{background:#f4f8f8!important;padding-top:82px!important;color:#243243!important}
.site-navbar{top:0!important;z-index:1100!important;box-shadow:0 3px 20px rgba(20,61,83,.13)!important;border-bottom:3px solid var(--academic-green);min-height:70px}
.site-navbar .navbar-brand{color:var(--academic-blue)!important}
.site-navbar .nav-link{font-size:.92rem;font-weight:600;color:#34475a!important}
.site-navbar .nav-link:hover{color:var(--academic-green)!important}
.site-card,.card{border:1px solid #deebef!important;box-shadow:0 5px 22px rgba(20,61,83,.065)!important}
.site-card h2,.section-title-custom{color:var(--academic-blue)!important}
a{color:var(--academic-blue)}
a:hover{color:var(--academic-green)}
.links-row a{display:inline-block;margin-bottom:10px}
.lang-switch{display:flex;gap:4px;margin-top:8px}
.lang-switch button{background:transparent;border:1px solid #cddfe6;border-radius:4px;color:#345269;font-weight:700;font-size:.7rem;padding:5px 7px}
.lang-switch button.active{background:var(--academic-blue);color:#fff;border-color:var(--academic-blue)}
.project-line{grid-template-columns:minmax(0,1fr) 220px;gap:25px;align-items:center}
.project-art{background:#fff;min-height:100px;display:flex;align-items:center;justify-content:center}
.project-art img{max-width:100%;max-height:170px;object-fit:contain;border-radius:4px}
.pub-card{background:#fff;border:1px solid var(--academic-line);border-radius:9px;margin:14px 0 18px;padding:22px;box-shadow:0 2px 12px rgba(19,55,77,.045)}
.pub-card h3{font-size:1.07rem;line-height:1.45;margin:8px 0;color:#174e81;font-weight:700}
.pub-card .pub-meta{font-size:.84rem;color:#647483;margin:0 0 8px}
.pub-card .pub-author{font-size:.92rem;color:#354656;margin:0 0 9px}
.pub-card .pub-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:.86rem}
.pub-card details{margin-top:14px;background:#f7fafb;border:1px solid #e4edf1;border-radius:6px;padding:12px 15px}
.pub-card details summary{color:var(--academic-green);cursor:pointer;font-size:.89rem;font-weight:600}
.pub-card details p{margin:10px 0;text-align:justify;font-size:.91rem}
.pub-card .keywords{font-size:.84rem;color:#435d63}
.pub-card .article-type{background:#e9f5ee;color:#196d45;display:inline-block;padding:3px 9px;border-radius:3px;font-weight:600}
.academic-work{border-radius:8px;padding:24px;background:#f9fbfc;border:1px solid var(--academic-line)}
.academic-work h3{font-size:1.12rem;font-weight:650;margin-bottom:16px}
.academic-work p{margin-bottom:6px}
@media(max-width:768px){body{padding-top:76px!important}.project-line{grid-template-columns:1fr}.project-art{justify-content:flex-start}.lang-switch{margin:16px 0 6px}}

/* Seletor de idiomas inspirado no componente original do Academic Homepage */
.lang-toggle{display:flex;align-items:center;gap:8px;margin-top:0}
.lang-toggle-label{background:none;border:0;padding:3px 1px;font-family:inherit;font-size:.8rem;font-weight:600;color:#73808e;cursor:pointer}
.lang-toggle-label.active,.lang-toggle-label:hover{color:#145e80;text-decoration:underline;text-underline-offset:5px}
.lang-toggle-divider{width:1px;height:14px;background:#c0cbd3;display:inline-block}
.profile-portrait{display:block;width:195px;height:195px;border-radius:50%;object-fit:cover;object-position:center 33%;border:3px solid #e6edf1;max-width:100%;margin:0 auto}
@media(max-width:768px){.lang-toggle{margin:16px 0 6px}}

/* Retrato da foto vertical: manter o rosto inteiro dentro da máscara circular */
.profile-portrait{width:220px;height:220px;max-width:100%;border-radius:50%;object-fit:cover;object-position:center 73%;border:3px solid #e6edf1;box-shadow:0 3px 13px rgba(22,68,92,.10)}
.interest-tags{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 24px}
.interest-tag{display:inline-flex;padding:6px 11px;border-radius:6px;font-size:.81rem;font-weight:600;line-height:1.5}
.interest-blue{color:#155b9c;background:#e7f1fd}
.interest-green{color:#18683e;background:#e4f4eb}
.interest-red{color:#9e343e;background:#fce8ea}
.interest-purple{color:#64449a;background:#efe9fb}
.interest-amber{color:#85541b;background:#fff1d8}
.edu-symbol{background:transparent;border:0;width:45px;height:45px;display:flex;align-items:center;justify-content:center;font-size:.68rem}
.edu-symbol img{width:44px;height:44px;object-fit:contain}

/* Marcas institucionais: mesma caixa e mesmas dimensões visuais */
.education-row{grid-template-columns:52px minmax(0,1fr) auto;column-gap:14px;align-items:center}
.edu-symbol{width:52px!important;height:52px!important;min-width:52px;display:grid!important;place-items:center;background:#fff!important;border:1px solid #e7edf1!important;border-radius:9px!important;padding:5px;overflow:hidden}
.edu-symbol img{width:40px!important;height:40px!important;max-width:40px;max-height:40px;object-fit:contain!important;display:block}
.section-title-custom,.site-card h2{line-height:1.45}
@media(max-width:700px){.education-row{grid-template-columns:52px minmax(0,1fr)}.edu-date{grid-column:2}}

/* Retrato: usa o arquivo original de 720x1280 sem interpolação exagerada.
   Reduz a dimensão exibida e mantém face, testa e queixo no círculo. */
.profile-portrait{display:block!important;width:188px!important;height:188px!important;min-width:188px;max-width:188px!important;aspect-ratio:1/1;border-radius:50%!important;object-fit:cover!important;object-position:50% 69%!important;image-rendering:auto;transform:none!important;filter:none!important;box-shadow:0 0 0 3px #e4edf0!important;margin-left:auto!important;margin-right:auto!important}
@media(max-width:767px){.profile-portrait{width:176px!important;height:176px!important;min-width:176px;max-width:176px!important}}


/* ===== Identidade visual unificada · outubro 2026 =====
   Azul-petróleo / verde-botânico / vermelho-coral / papel.
   As cores expressam hierarquia, não elementos decorativos aleatórios.
*/
:root{
  --site-ink:#23384a;
  --site-blue:#194f73;
  --site-green:#227654;
  --site-red:#c14e56;
  --site-paper:#f7f9f7;
  --site-border:#dce7e3;
  --site-muted:#586b76;
}
html{scroll-behavior:smooth}
body{background:var(--site-paper)!important;color:var(--site-ink)!important}
.site-navbar{background:#fff!important;border-bottom:3px solid var(--site-green)!important;box-shadow:0 3px 12px rgba(30,65,69,.075)!important}
.site-navbar .navbar-brand{color:var(--site-blue)!important}
.site-navbar .nav-link{color:var(--site-ink)!important}
.site-navbar .nav-link:hover,.site-navbar .nav-link.active{color:var(--site-green)!important}
.site-card,.card{background:#fff!important;border:1px solid var(--site-border)!important;border-radius:9px!important;box-shadow:0 3px 15px rgba(32,67,66,.045)!important}
.site-card h2,.section-title-custom{color:var(--site-ink)!important}
.site-card h2 .heading-emoji,.section-title-custom .heading-emoji{font-size:1.12em;margin-right:9px;vertical-align:-.06em}
a,.links-row a,.project-line h3 a{color:var(--site-blue)!important}
a:hover,.links-row a:hover,.project-line h3 a:hover{color:var(--site-green)!important}
.links-row .ai-orcid{color:#a6ce39!important}
.links-row .ai-google-scholar{color:#4285f4!important}
.links-row .ai-lattes{color:var(--site-green)!important}
.links-row .fa-envelope{color:var(--site-red)!important}
.links-row .fa-github{color:#293244!important}
.lang-toggle-label.active{color:var(--site-green)!important}
.lang-toggle-label:hover{color:var(--site-blue)!important}
.interest-blue{color:#185a86;background:#e7f0fa}
.interest-green{color:#186541;background:#e3f3e9}
.interest-red{color:#ad3f49;background:#fce9e9}
.interest-purple{color:#684992;background:#f0eafa}
.interest-amber{color:#875d1e;background:#fff2d8}
.pub-card{border:1px solid var(--site-border)!important;box-shadow:none!important;border-radius:8px!important}
.pub-card h3{color:var(--site-blue)!important}
.pub-card .article-type{color:#23664b!important;background:#e7f4ec!important}
.pub-card details summary{color:var(--site-green)!important}
.pub-card .pub-actions .fa-file-alt,.academic-work .fa-file-pdf{color:var(--site-red)!important}
.pub-meta i{color:var(--site-green)!important}
.project-art{border-radius:6px;overflow:hidden}
.project-line{border-bottom:1px solid var(--site-border)}
.education-row{grid-template-columns:60px minmax(0,1fr) auto!important;gap:15px!important;align-items:center!important;border-bottom:1px solid #e9eeec!important}
.edu-symbol{
 width:60px!important;height:60px!important;min-width:60px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 background:#fff!important;border:1px solid #e1e8e4!important;border-radius:9px!important;
 padding:5px!important;overflow:hidden!important;
}
.edu-symbol img{
 display:block!important;
 width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;
 object-fit:contain!important;
}
.edu-symbol img[alt="UFSCar"]{transform:scale(1.04)}
.edu-symbol img[alt="UFSC"]{transform:scale(1.12)}
.edu-symbol img[alt="UFOPA"]{transform:scale(1.42)}
@media(max-width:720px){
 .education-row{grid-template-columns:60px minmax(0,1fr)!important}
 .edu-date{grid-column:2!important}
}

/* CORREÇÃO DE CONTRASTE E HIERARQUIA — prevalece sobre estilos anteriores */
:root{--c-forest:#216b4c;--c-coral:#b84853;--c-navy:#293d52;--c-soft:#f5f8f6}
body{background:var(--c-soft)!important}
.site-card h2,.section-title-custom{color:var(--c-navy)!important}
.project-line h3 a,.project-line h3 a:visited{color:var(--c-forest)!important;text-decoration:none!important}
.project-line h3 a:hover{color:var(--c-coral)!important;text-decoration:underline!important}
.project-line a:not(h3 a),.project-line a:not(h3 a):visited{color:var(--c-coral)!important;font-weight:600}
.project-line a:not(h3 a) .fa-archive{color:var(--c-coral)!important}
.pub-card h3,.pub-card h3 a{color:var(--c-navy)!important}
.pub-card h3 a:hover{color:var(--c-forest)!important}
.pub-card .pub-meta,.pub-card .pub-meta i{color:var(--c-forest)!important}
.pub-card .pub-actions a,.pub-card .pub-actions a:visited{color:var(--c-coral)!important}
.pub-card .article-type{background:#e3f2e9!important;color:var(--c-forest)!important}
.pub-card details summary{color:var(--c-forest)!important}
.site-card > p > a,.site-card > p > a:visited{color:var(--c-coral)!important}
.links-row a{color:var(--c-navy)!important}
.links-row a:hover{color:var(--c-forest)!important}
.site-navbar .nav-link:hover,.site-navbar .nav-link.active{color:var(--c-forest)!important}

/* Logos institucionais: preservar limites da caixa e proporções originais */
.education-row .edu-symbol{
  width:60px!important;height:60px!important;min-width:60px!important;
  box-sizing:border-box!important;padding:7px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;
}
.education-row .edu-symbol img,
.education-row .edu-symbol img[alt="UFSCar"],
.education-row .edu-symbol img[alt="UFSC"],
.education-row .edu-symbol img[alt="UFOPA"]{
  width:auto!important;height:auto!important;
  max-width:44px!important;max-height:44px!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;scale:1!important;
  display:block!important;
}

/* Alinhamento editorial: somente parágrafos longos, evitando justificação em metadados */
.card-body .col-md-9 > p:not(.text-muted):not(.mb-2),
.project-content > p,
.project-overview{
  text-align:justify!important;
  text-justify:inter-word;
  hyphens:auto;
  overflow-wrap:break-word;
}
.project-content > p{line-height:1.8;margin-bottom:14px}
.project-overview{max-width:88ch;line-height:1.8;margin:10px 0 23px;color:#526475}
@media(max-width:600px){
 .card-body .col-md-9 > p:not(.text-muted):not(.mb-2),
 .project-content > p,
 .project-overview{hyphens:auto}
}

/* Palavras-chave: cada termo em sua própria tag, como os interesses de pesquisa */
.pub-keyword-label{font-size:.82rem;margin:14px 0 7px!important;color:#415b63}
.pub-keyword-list{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 5px}
.pub-keyword{display:inline-flex;max-width:100%;padding:5px 10px;border-radius:6px;background:#e3f3e9;color:#1e654a;border:1px solid #cce7d7;font-size:.8rem;font-weight:600;line-height:1.45}
.pub-keyword:nth-child(3n+2){background:#e9f0fa;color:#225981;border-color:#d6e3f3}
.pub-keyword:nth-child(3n){background:#fbebec;color:#994852;border-color:#f0d7da}
