/* Anais Sigotech – site público. As cores vêm do evento (--primary, --accent). */
:root {
    --primary: #0f3f88;
    --accent: #0C4DA2;
    --ink: #1d2433;
    --muted: #5d6779;
    --line: #e3e7ee;
    --bg: #f5f7fa;
    --bar: #f1f3f7;
    --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* Cabeçalho */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--primary); font-weight: 700; }
.brand img { height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > a, .drop > button {
    font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none;
    padding: .55rem .8rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: .45rem;
}
.nav > a:hover, .drop > button:hover, .drop.open > button { background: var(--bg); color: var(--primary); }
.nav-search { background: var(--primary) !important; color: #fff !important; margin-left: .6rem; padding: .75rem 1.25rem !important; font-weight: 700; }
.nav-search:hover { filter: brightness(1.1); }
.caret { font-size: .65rem; transition: transform .15s; }
.drop.open .caret { transform: rotate(180deg); }
.drop { position: relative; }
.drop-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; min-width: 240px;
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 30, 60, .14);
    padding: .4rem; max-height: 70vh; overflow-y: auto; z-index: 30;
}
/* Ponte invisível entre o botão e o submenu, para o mouse não "cair" no espaço. */
.drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: .5rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.drop-menu a:hover { background: var(--bg); color: var(--primary); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .top-in { min-height: 76px; }
    .brand img { height: 52px; }
    .nav-toggle { display: block; }
    .nav-toggle summary { list-style: none; cursor: pointer; padding: .6rem; display: grid; gap: 5px; }
    .nav-toggle summary::-webkit-details-marker { display: none; }
    .nav-toggle summary span { display: block; width: 24px; height: 2px; background: var(--ink); }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch;
        padding: .75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 76px); overflow-y: auto; }
    .nav-open .nav { display: flex; }
    .drop > button { width: 100%; justify-content: space-between; }
    .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .75rem; max-height: none; }
    .drop-menu::before { display: none; }
    .nav-search { margin: .5rem 0 0; justify-content: center; }
}

/* Faixa azul com a busca */
.hero { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 2.25rem 0; }
.hero-sm { padding: 2rem 0 1.75rem; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; opacity: .85; }
.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.2; }

.finder { background: #fff; color: var(--ink); border-radius: 14px; padding: 1rem; box-shadow: 0 10px 30px rgba(5, 20, 50, .18); }
.finder-main { display: flex; gap: .6rem; align-items: stretch; }
.finder-input { flex: 1; position: relative; display: flex; align-items: center; }
.finder-input > i { position: absolute; left: 1rem; color: var(--muted); pointer-events: none; }
.finder-input input {
    width: 100%; font: inherit; font-size: 1.05rem; padding: .95rem 1rem .95rem 2.75rem;
    border: 1px solid #cfd5df; border-radius: 10px; background: #fff; color: var(--ink);
}
.finder input:focus, .finder select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.finder-toggle {
    font: inherit; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .5rem;
    padding: 0 1.1rem; border: 1px solid #cfd5df; border-radius: 10px; background: #fff; color: var(--primary); cursor: pointer; white-space: nowrap;
}
.finder-toggle:hover { background: var(--bg); }
.finder-toggle .chev { font-size: .7rem; transition: transform .15s; }
.finder-toggle[aria-expanded="true"] { background: var(--bg); border-color: var(--primary); }
.finder-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.badge { background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 .35rem; }
.finder-submit {
    font: inherit; font-weight: 700; font-size: .95rem; padding: 0 1.75rem; border: 0; border-radius: 10px;
    background: var(--primary); color: #fff; cursor: pointer; white-space: nowrap;
}
.finder-submit:hover { filter: brightness(1.12); }
.finder-more {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1rem;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.finder-more label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.finder-more .span2 { grid-column: span 2; }
.finder-more input, .finder-more select {
    font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); width: 100%;
    padding: .7rem .85rem; border: 1px solid #cfd5df; border-radius: 8px; background: #fff;
}
.finder-more-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 1.25rem; }
.finder-more-actions a { font-size: .9rem; }
.finder-more-actions .finder-submit { padding: .75rem 1.75rem; }

@media (max-width: 900px) {
    .finder-main { flex-wrap: wrap; }
    .finder-input { flex-basis: 100%; }
    .finder-toggle, .finder-main .finder-submit { flex: 1; justify-content: center; padding: .8rem 1rem; }
    .finder-more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .finder-more { grid-template-columns: 1fr; }
    .finder-more .span2 { grid-column: auto; }
}

/* Barra de resultados: contagem, filtros aplicados e ordenação */
.results-bar { background: var(--bar); border-bottom: 1px solid var(--line); }
.results-in { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding: .85rem 0; }
.count { margin: 0; color: var(--muted); white-space: nowrap; }
.count strong { color: var(--ink); font-size: 1.05rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; flex: 1; }
.chips li { display: inline-flex; align-items: center; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .3rem .2rem .8rem; font-size: .85rem; }
.chips li a { text-decoration: none; color: var(--muted); width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; border-radius: 50%; font-size: .8rem; }
.chips li a:hover { background: #fdecec; color: #c81e1e; }
.chips .chip-clear { background: none; border: 0; padding: .2rem .4rem; }
.chips .chip-clear a { width: auto; height: auto; color: var(--accent); font-size: .85rem; text-decoration: underline; border-radius: 0; }
.chips .chip-clear a:hover { background: none; color: var(--primary); }
.order { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); margin-left: auto; }
.order select { font: inherit; font-size: .9rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Listagem */
.list { padding: .5rem 0 3rem; }
.card { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.card h2 { margin: .35rem 0 .35rem; font-size: 1.08rem; line-height: 1.4; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); text-decoration: underline; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; font-weight: 600; }
.meta a, .meta span.meta-code { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .15rem .6rem; border-radius: 6px; }
.meta-theme { color: var(--accent); background: #eaf1fb; }
.meta-edition { color: #6b4a00; background: #fdf3dc; }
.meta-code { color: var(--muted); background: var(--bg); }
.meta a:hover { filter: brightness(.95); text-decoration: underline; }
.authors { margin: 0; color: var(--muted); font-size: .92rem; }
.authors i { font-size: .75rem; margin-right: .4rem; opacity: .7; }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2rem; }
.pager a, .pager span { padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.pager .off { color: #aab1bd; }

/* Trabalho */
.hero-crumbs { padding: 1.1rem 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .88rem; }
.hero-crumbs .crumbs, .hero-crumbs .crumbs a { color: rgba(255, 255, 255, .9); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs i { font-size: .75rem; margin-right: .25rem; }
.paper { padding: 2rem 0 3.5rem; }
.paper-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 3rem;
    grid-template-areas: "head side" "body side";
    align-items: start;
}
.paper-head { grid-area: head; }
.paper-body { grid-area: body; }
.paper-side { grid-area: side; position: sticky; top: 112px; align-self: start; }
@media (max-width: 900px) {
    .paper-grid { grid-template-columns: 1fr; grid-template-areas: "head" "side" "body"; }
    .paper-side { position: static; margin-top: 1.25rem; }
}
.paper h1 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; margin: .6rem 0 1rem; color: var(--primary); }
.paper h2 { font-size: 1.05rem; margin: 2rem 0 .6rem; color: var(--primary); }
.paper-body > h2:first-child { margin-top: 1.75rem; }
.byline p { margin: 0 0 .25rem; }
.main-author span { color: var(--muted); }
.coauthors { color: var(--muted); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .95rem;
    padding: .75rem 1.2rem; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none; border: 2px solid var(--primary); cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn-ghost { background: #fff; color: var(--primary); }
.btn-ghost:hover { background: var(--bg); filter: none; }
.btn-block { display: flex; width: 100%; }
.abstract { text-align: justify; hyphens: auto; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: var(--bg); color: var(--ink); text-decoration: none; padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; border: 1px solid var(--line); }
.tag:hover { border-color: var(--accent); color: var(--accent); }

.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; background: #fff; }
.side-box h3 { margin: 0 0 .7rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-actions { display: grid; gap: .6rem; }
.side-isbn img { display: block; margin-inline: auto; max-height: 180px; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; text-decoration: none;
    color: #fff; font-size: 1.05rem; transition: transform .12s, filter .12s;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-email { background: var(--muted); }
.copy-link, .native-share {
    margin-top: .75rem; width: 100%; font: inherit; font-size: .88rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .55rem .8rem; border: 1px dashed #cfd5df; border-radius: 8px; background: var(--bg); color: var(--ink); cursor: pointer;
}
.copy-link:hover, .native-share:hover { border-color: var(--accent); color: var(--accent); }
.copy-link.done { border-style: solid; border-color: #1e6b34; color: #1e6b34; background: #e6f4ea; }
.native-share { margin-top: .5rem; }

.related { margin-top: 2.5rem; }
.rel { display: block; padding: .8rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rel strong { display: block; font-weight: 600; line-height: 1.4; }
.rel span { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.rel:hover strong { color: var(--accent); text-decoration: underline; }

/* Contato */
.contact { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg); border-radius: var(--radius); scroll-margin-top: 110px; }
.contact h2 { margin-top: 0; }
.contact .hint { color: var(--muted); font-size: .9rem; margin-top: 0; }
.contact label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .9rem; }
.contact input:not([type=checkbox]), .contact textarea {
    display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid #cfd5df; border-radius: 8px; background: #fff;
}
.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .contact .row2 { grid-template-columns: 1fr; gap: 0; } }
.contact .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact .check input { margin-top: .3rem; }
.contact .hp { position: absolute; left: -9999px; }
.cf-turnstile { margin-bottom: 1rem; }
.ok { background: #e6f4ea; color: #1e6b34; padding: .9rem 1rem; border-radius: 8px; margin: 0; }
.err { background: #fdecec; color: #9b1c1c; padding: .7rem 1rem; border-radius: 8px; }
ul.err { padding-left: 2rem; }

/* Páginas estáticas (palestras etc.) */
.page { padding: 2rem 0 3.5rem; max-width: 900px; }
.prose h2, .prose h3 { color: var(--primary); margin: 2.25rem 0 .75rem; line-height: 1.3; }
.prose h3 { font-size: 1.15rem; padding-bottom: .4rem; border-bottom: 2px solid var(--line); }
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 600; }

/* Rodapé: sempre no fim da tela */
.foot { flex-shrink: 0; border-top: 1px solid var(--line); background: var(--bg); padding: 1.75rem 0; margin-top: 2rem; }
.foot-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot-sponsors { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.foot-block { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.foot-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.foot-block img { height: 120px; width: auto; }
.foot-sign { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; text-decoration: none; color: var(--muted); font-size: .72rem; opacity: .8; }
.foot-sign:hover { opacity: 1; }
.foot-sign img { height: 20px; width: auto; }
@media (max-width: 600px) {
    .foot-in { flex-direction: column; align-items: center; }
    .foot-block { align-items: center; }
    .foot-block img { height: 90px; }
    .foot-sign { margin-left: 0; }
}

/* Barra lateral: não passa da altura da tela */
@media (min-width: 901px) {
    .paper-side { max-height: calc(100vh - 128px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
.side-isbn img { max-height: 140px; }
.side-qr { display: flex; gap: .9rem; align-items: center; }
.side-qr img { width: 96px; height: 96px; flex-shrink: 0; }
.side-qr h3 { margin-bottom: .2rem; }
.side-qr p { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.side-qr a { font-size: .85rem; font-weight: 600; text-decoration: none; }

/* Como citar */
.cite { margin-top: 2rem; }
.cite-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: .75rem; }
.cite-tabs button { font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem 1rem; border: 0; background: #fff; color: var(--muted); cursor: pointer; }
.cite-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.cite-text { margin: 0; padding: 1rem 1.1rem; background: var(--bg); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; font-size: .92rem; line-height: 1.6; word-break: break-word; }
.cite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .75rem; font-size: .85rem; color: var(--muted); }
.cite-copy { font: inherit; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid #cfd5df; border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.cite-copy:hover { border-color: var(--accent); color: var(--accent); }
.cite-copy.done { border-color: #1e6b34; color: #1e6b34; background: #e6f4ea; }
.cite-export a { font-weight: 600; }

/* Anterior / próximo */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.pn a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pn a:hover { border-color: var(--accent); }
.pn a:hover strong { color: var(--accent); }
.pn span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pn strong { font-weight: 600; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pn-next { grid-column: 2; text-align: right; align-items: flex-end; }
@media (max-width: 600px) { .pn { grid-template-columns: 1fr; } .pn-next { grid-column: 1; } }
.related-more { margin-top: 1rem; }
.btn-secondary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Lista com busca (tema) */
.sselect { position: relative; }
.sselect-input { width: 100%; font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); padding: .7rem 2.2rem .7rem .85rem; border: 1px solid #cfd5df; border-radius: 8px; background: #fff; cursor: text; text-overflow: ellipsis; }
.sselect-chev { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-size: .7rem; color: var(--muted); pointer-events: none; }
.sselect-list {
    position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgba(15, 30, 60, .16);
    max-height: 300px; overflow-y: auto;
}
.sselect-list li { padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; font-weight: 400; color: var(--ink); cursor: pointer; line-height: 1.35; }
.sselect-list li:hover, .sselect-list li.on { background: var(--bg); color: var(--primary); }
.sselect-list li[aria-selected="true"] { font-weight: 700; color: var(--primary); }
.sselect-list li[aria-disabled] { color: #aab1bd; cursor: default; }
.sselect-list .sselect-empty { color: var(--muted); cursor: default; }

/* Palestras */
.hero-lectures h1 { margin-bottom: 1.25rem; }
.finder-lectures .finder-input input { padding-top: .85rem; padding-bottom: .85rem; }
.years-bar { background: var(--bar); border-bottom: 1px solid var(--line); position: sticky; top: 96px; z-index: 10; }
.years-in { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.years-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.years { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: thin; }
.years a { display: block; padding: .35rem .75rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; border: 1px solid transparent; }
.years a:hover { background: #fff; border-color: var(--line); color: var(--primary); }
.years a[aria-current="page"] { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .years-bar { top: 76px; } }
.lectures { padding: 1.5rem 0 3rem; }
.lectures-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .5rem; }
.lectures-title { margin: 0; font-size: 1.5rem; color: var(--primary); }
.lectures-back { font-size: .9rem; text-decoration: none; }
.lectures-day { display: flex; align-items: center; gap: .5rem; margin: 2rem 0 .25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); color: var(--primary); font-size: 1.1rem; }
.lectures-year { display: flex; align-items: baseline; gap: .75rem; margin: 2rem 0 .25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.lectures-year a { color: var(--primary); text-decoration: none; font-size: 1.4rem; }
.lectures-year span { font-size: .85rem; color: var(--muted); font-weight: 400; }
.lecture { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.lecture-meta { margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; font-weight: 600; }
.lecture-session { background: #eaf1fb; color: var(--accent); padding: .15rem .6rem; border-radius: 6px; }
.lecture-when { background: #fdf3dc; color: #6b4a00; padding: .15rem .6rem; border-radius: 6px; display: inline-flex; gap: .35rem; align-items: center; }
.lecture h4 { margin: 0 0 .6rem; font-size: 1.02rem; line-height: 1.4; }
.speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.speakers li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .75rem; background: var(--bg); border-radius: 8px; }
.speaker-info { display: flex; flex-direction: column; min-width: 0; }
.speaker-info strong { font-size: .92rem; font-weight: 600; }
.speaker-info span { font-size: .83rem; color: var(--muted); line-height: 1.35; }
.speaker-extra { color: var(--muted); font-weight: 500 !important; }
.speaker-file { flex-shrink: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; text-decoration: none; padding: .4rem .75rem; border-radius: 6px; border: 1px solid #cfd5df; background: #fff; }
.speaker-file:hover { border-color: var(--accent); }
@media (max-width: 600px) { .speakers li { flex-direction: column; align-items: flex-start; } }
.pn-years strong { font-size: 1.3rem; }

/* Contorno colorido animado no campo de busca (estilo Google) */
@property --glow-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.finder-input { isolation: isolate; border-radius: 12px; }
.finder-input::before, .finder-input::after {
    content: ""; position: absolute; inset: -3px; border-radius: 13px; z-index: -1; opacity: 0; transition: opacity .25s;
    background: conic-gradient(from var(--glow-angle), #4285f4, #9b72cb, #ea4335, #fbbc05, #34a853, #4285f4);
    animation: glow-spin 4s linear infinite;
}
.finder-input::after { filter: blur(14px); inset: -4px; }
.finder-input:focus-within::before { opacity: 1; }
.finder-input:focus-within::after { opacity: .55; }
.finder-input:focus-within input { border-color: transparent; outline: none; }
@keyframes glow-spin { to { --glow-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .finder-input::before, .finder-input::after { animation: none; } }
.finder-more .span3 { grid-column: span 3; }
@media (max-width: 900px) { .finder-more .span3 { grid-column: 1 / -1; } }

/* Idiomas: aba fixa na lateral esquerda que abre a lista com bandeiras */
.lang { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; align-items: center; }
.lang-tab { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .45rem; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: #fff; color: var(--primary); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 40, 80, .12); }
.lang-tab img, .lang-list img { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lang-tab:hover { background: var(--bg); }
.lang-list { display: grid; gap: .15rem; margin-left: .4rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 40, 80, .18); animation: lang-in .18s ease-out; }
.lang-list[hidden] { display: none; }
.lang-list button { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border: 0; border-radius: 7px; background: none; font: inherit; font-size: .9rem; color: var(--text, #1f2937); cursor: pointer; text-align: left; white-space: nowrap; }
.lang-list button:hover { background: var(--bg); }
.lang-list button[aria-pressed="true"] { color: var(--primary); font-weight: 700; background: var(--bg); }
@keyframes lang-in { from { opacity: 0; transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) { .lang-list { animation: none; } }
/* No celular a aba fica no canto inferior esquerdo, para não cobrir o texto */
@media (max-width: 700px) {
    .lang { top: auto; bottom: 1rem; transform: none; align-items: flex-end; }
    .lang-tab { flex-direction: row; padding: .5rem .6rem; }
}
/* Esconde a barra e os balões do Google Tradutor (os botões PT/EN/ES fazem o papel dela) */
.goog-te-banner-frame, iframe.skiptranslate, .goog-te-balloon-frame, #goog-gt-tt, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#busca { scroll-margin-top: 120px; }

/* Busca: onde foi encontrado e trecho com o termo destacado */
.card mark, .match mark { background: #fff3b0; color: inherit; padding: 0 .1em; border-radius: 3px; }
.match { margin: .55rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.match-place { display: inline-flex; align-items: center; gap: .35rem; margin-right: .5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); color: var(--primary); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.match-place i { font-size: .7rem; }

/* Dicas para busca */
.tips-link { margin: .7rem 0 0; text-align: right; }
.tips-link button { background: none; border: 0; padding: .2rem 0; color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; opacity: .9; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.tips-link button:hover { opacity: 1; text-decoration-color: #fff; }
.tips { width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 0; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 60px rgba(5, 20, 50, .35); overflow: hidden; }
.tips[open] { display: flex; flex-direction: column; animation: tips-in .2s ease-out; }
.tips::backdrop { background: rgba(8, 22, 48, .55); backdrop-filter: blur(2px); }
@keyframes tips-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .tips[open] { animation: none; } }
.tips-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.tips-head h2 { margin: 0; font-size: 1.2rem; color: var(--primary); display: flex; gap: .5rem; align-items: center; }
.tips-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; font-size: 1rem; }
.tips-close:hover { color: var(--primary); }
.tips-body { overflow-y: auto; padding: .4rem 1.4rem 1.4rem; }
.tips-list { list-style: none; margin: 0; padding: 0; }
.tips-list li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tips-icon { width: 40px; height: 40px; border-radius: 10px; background: #e8effb; color: var(--primary); display: grid; place-items: center; }
.tips-list h3, .tips-note h3 { margin: 0 0 .25rem; font-size: 1rem; }
.tips-list p, .tips-note p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .93rem; }
.tips-examples { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem !important; }
.tips-examples a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfe; color: var(--ink); text-decoration: none; font-size: .88rem; }
.tips-examples a:hover { border-color: var(--primary); color: var(--primary); }
.tips-examples code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.tips-examples i { font-size: .7rem; opacity: .6; }
.tips-note { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--bg); }
.tips-note h3 + p { margin-bottom: .8rem; }
.tips-note p:last-child { margin-bottom: 0; }

/* Autores com link */
.author-link { color: inherit; text-decoration: none; }
.author-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* Rodapé: reportar problema */
.foot-report { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; color: var(--muted); font-size: .8rem; text-decoration: none; }
.foot-report:hover { color: var(--primary); text-decoration: underline; }
.foot-report + .foot-sign { margin-left: 1.5rem; }
@media (max-width: 700px) { .foot-report { margin-left: 0; } .foot-report + .foot-sign { margin-left: 0; } }

/* Página do autor */
.author { padding: 2rem 0 3rem; }
.author-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.author-head h1 { margin: 0 0 .25rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e8effb; color: var(--primary); font-size: 1.3rem; }
.author-stats { margin: 0; color: var(--muted); }
.author-stats strong { color: var(--ink); }
.author-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.author-papers { padding: 0; }
.author-side { position: sticky; top: 112px; display: grid; gap: 1rem; }
.author-side h2 { margin: 0 0 .6rem; font-size: 1rem; }
.side-hint { margin: -.3rem 0 .6rem; color: var(--muted); font-size: .85rem; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.people li { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.people a { color: var(--ink); text-decoration: none; }
.people a:hover { color: var(--primary); text-decoration: underline; }
.people span { color: var(--muted); font-size: .8rem; background: var(--bg); border-radius: 999px; padding: 0 .5rem; align-self: center; }
.side-report p { margin: 0 0 .7rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
@media (max-width: 900px) { .author-grid { grid-template-columns: 1fr; } .author-side { position: static; } }

/* Página do trabalho: blocos "Outros trabalhos do autor" e "Trabalhos relacionados" */
.more-box { margin-top: 2rem; padding: 1.25rem 1.4rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); }
.more-author { background: #f4f7fc; border-left: 4px solid var(--primary); }
.more-related { background: #fff; border-left: 4px solid #8fb3e8; }
.more-box h2 { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--primary); }
.more-box .rel:first-of-type { border-top: 0; }
.more-box .related-more { margin-top: .8rem; }

.rel .rel-year { display: inline-flex; align-items: center; gap: .35rem; vertical-align: 2px; margin: 0 0 0 .4rem; padding: .1rem .5rem; border-radius: 6px; color: #6b4a00; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.rel:hover .rel-year { text-decoration: none; }

/* Abaixo da busca: sugestão de frase exata e Dicas para busca */
.finder-below { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .7rem; }
.finder-below .tips-link { margin: 0 0 0 auto; }
.phrase-hint { margin: 0; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.phrase-hint a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Aviso no lugar do PDF (edições cujos arquivos são de outra organização) */
.pdf-notice { display: flex; gap: .6rem; margin: 0 0 .6rem; padding: .85rem 1rem; border-radius: 10px; background: #fff8e6; border: 1px solid #f3dca4; color: #5c4400; font-size: .9rem; line-height: 1.5; }
.pdf-notice i { margin-top: .2rem; color: #b07d00; }
.pdf-notice a { color: inherit; font-weight: 700; text-decoration: underline; }
