/* Cabeçalho único, compartilhado por todas as páginas. */
header.topbar .nav-container { gap: 1.25rem; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
header.topbar .logo { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; text-decoration: none; }
header.topbar .logo img { display: block; border: 0; background: transparent; }
header.topbar .header-search { flex: 0 0 210px; gap: .35rem; margin: 0; }
header.topbar .header-search-input { padding: .65rem .85rem; font-size: .9rem; }
header.topbar .header-search-button { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; padding: .5rem; flex-shrink: 0; }
header.topbar .nav-links-wrapper { gap: 1.1rem; flex-shrink: 0; white-space: nowrap; }
header.topbar .nav-link { font-size: .94rem; }
header.topbar .nav-registration { background: #a24713; color: #fff; padding: .65rem .9rem; border: 1px solid #a24713; border-radius: 8px; line-height: 1.25; }
header.topbar .nav-registration:hover { background: #84380d; border-color: #84380d; color: #fff; }
header.topbar .nav-registration::after { display: none; }
.mobile-search-toggle { display: none; }
.mobile-search-toggle:focus-visible, .nav-registration:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
.search-is-open { overflow: hidden; }
.site-search-dialog { box-sizing: border-box; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 2rem); overflow-y: auto; width: min(640px, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-lg); }
.site-search-dialog::backdrop { background: rgb(8 20 30 / .65); }
.site-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.site-search-heading h2 { margin: 0; font-size: 1.4rem; }
.site-search-heading > button { flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-color); color: var(--text-primary); font: inherit; font-size: 1.7rem; cursor: pointer; }
.site-search-dialog form { margin: 0; }
.site-search-dialog label { display: block; margin-bottom: .65rem; color: var(--text-secondary); font-size: .95rem; }
.site-search-controls { display: flex; gap: .6rem; }
.site-search-controls input { box-sizing: border-box; width: 100%; min-width: 0; padding: .85rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-color); color: var(--text-primary); font: inherit; }
.site-search-controls input::placeholder { color: var(--text-secondary); opacity: 1; }
.site-search-controls input:focus { outline: 2px solid var(--accent-color); outline-offset: 1px; }
.site-search-controls > button { padding: .8rem 1rem; border: 1px solid var(--accent-color); border-radius: 8px; background: var(--accent-color); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 768px) {
  header.topbar { padding: .55rem 0; }
  header.topbar .nav-container { gap: .7rem; padding: .15rem .75rem; justify-content: flex-start; scrollbar-width: none; }
  header.topbar .site-brand-name, header.topbar .header-search { display: none; }
  header.topbar .logo { width: 34px; height: 40px; justify-content: center; }
  .mobile-search-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); background: var(--bg-color); }
  header.topbar .nav-links-wrapper { gap: .9rem; }
  header.topbar .nav-link { font-size: .9rem; }
  header.topbar .nav-registration { padding: .6rem .75rem; }
  .site-search-dialog { padding: 1.15rem; }
  .site-search-controls input { font-size: 1rem; }
}
