/* ProfVictor, announce + header sticky + nav + brand + actions */

.announce {
  background: var(--primary-700);
  color: #fff;
  font-size: var(--fs-xs);
  text-align: center;
}
.announce .wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding-block: 9px;
}
.announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.announce a:hover { color: var(--primary-100); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
body.is-scrolled .header { box-shadow: 0 4px 12px rgba(20,24,29,0.04); }

.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; gap: 24px;
}

.header-left { display: flex; align-items: center; gap: 28px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-lg); font-weight: 800; color: var(--ink);
  letter-spacing: -0.025em; white-space: nowrap;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  border-radius: 12px; display: grid; place-items: center;
  color: #fff; box-shadow: 0 2px 6px rgba(18,137,139,0.3);
  flex-shrink: 0;
}

/* Nav principal: saída do wp_nav_menu com class="nav-list" */
.nav { display: none; align-items: center; }
@media (min-width: 980px) { .nav { display: flex; } }

.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 4px; align-items: center;
}
.nav-list li { list-style: none; }
.nav-list a {
  padding: 8px 14px;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2); border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-700);
}
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a { color: var(--primary-700); background: var(--primary-50); }

.header-right { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 4px rgba(18,137,139,0.2);
}
.btn-primary:hover {
  background: var(--primary-700); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18,137,139,0.3);
}
.btn-icon {
  background: transparent; padding: 0;
  width: 40px; height: 40px;
  color: var(--ink-2); border-color: var(--rule);
  display: grid; place-items: center;
}
.btn-icon:hover { background: var(--bg-soft); color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; }

/* === Alinhar header.wrap com article-header/article-layout (1380px) === */
.header .wrap,
.announce .wrap {
  max-width: 1380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* === Padding lateral igual ao .wrap global (--gut: clamp 16-32px) === */
.header .wrap,
.announce .wrap {
  padding-left: var(--gut) !important;
  padding-right: var(--gut) !important;
}

/* === Mobile shell, v1 (sera expandido na proxima sessao) === */
.hamb {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  place-items: center;
  flex-shrink: 0;
}
.hamb:hover { background: var(--bg-soft); color: var(--ink); }
.hamb-ico { display: grid; place-items: center; line-height: 0; }
.hamb-ico-close { display: none; }
.hamb[aria-expanded="true"] .hamb-ico-open { display: none; }
.hamb[aria-expanded="true"] .hamb-ico-close { display: grid; }

.brand-text-short { display: none; }
.brand-text-full  { display: inline; }

@media (max-width: 979px) {
  .hamb { display: grid; }
  .brand-text-full  { display: none; }
  .brand-text-short { display: inline; }
}

.mobile-menu[hidden] { display: none !important; }

/* === Mobile shell, v2 (layout completo abaixo de 980px) === */
@media (max-width: 979px) {
  .header .wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding-block: 10px;
  }
  .header-left,
  .header-right { display: contents; }

  .brand {
    justify-self: center;
    font-size: var(--fs-sm);
    gap: 8px;
  }
  .brand .logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .brand .logo svg {
    width: 16px;
    height: 16px;
  }
  .brand-text-short {
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
}

/* === Mobile menu fullscreen overlay === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg);
}

.mobile-menu-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px var(--gut);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}

.mobile-menu-close,
.mobile-menu-search {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.mobile-menu-close:hover,
.mobile-menu-search:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-menu-brand .logo {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-list li {
  border-bottom: 1px solid var(--rule);
  list-style: none;
}
.mobile-nav-list li:last-child { border-bottom: 0; }

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  background: var(--bg-soft);
  color: var(--primary);
  outline: none;
}
.mobile-nav-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid var(--ink-3);
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  flex-shrink: 0;
  transition: border-color 0.15s;
  margin-right: 2px;
}
.mobile-nav-list a:hover::after,
.mobile-nav-list a:focus-visible::after {
  border-color: var(--primary);
}
.mobile-nav-list .current-menu-item > a,
.mobile-nav-list .current_page_item > a {
  color: var(--primary);
}

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu {
    animation: mobileMenuSlide 0.22s ease-out;
  }
  @keyframes mobileMenuSlide {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* === Screen reader only (utilidade) === */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* === Search overlay === */
.search-overlay[hidden] { display: none !important; }
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 29, 0.5);
  cursor: pointer;
}

.search-overlay-modal {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: calc(100vh - 120px);
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(20, 24, 29, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-overlay-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}

.search-overlay-icon {
  display: grid;
  place-items: center;
  color: var(--ink-3);
  flex-shrink: 0;
}

.search-overlay-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  min-width: 0;
}
.search-overlay-input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}
.search-overlay-input::-webkit-search-cancel-button { display: none; }
.search-overlay-input::-webkit-search-decoration { display: none; }

.search-overlay-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.search-overlay-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--rule);
}

.search-overlay-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-overlay-empty,
.search-overlay-loading,
.search-overlay-no-results,
.search-overlay-error {
  padding: 24px 18px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}
.search-overlay-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.search-overlay-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--rule);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: searchSpin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes searchSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay-loading::before { animation: none; }
}

.search-result-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.search-result-list li { list-style: none; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
}
.search-result-item:hover,
.search-result-item:focus-visible {
  background: var(--bg-soft);
  outline: none;
}
.search-result-item:focus-visible {
  box-shadow: inset 3px 0 0 var(--primary);
}

.search-result-cat {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--primary-50);
  color: var(--primary-700);
  letter-spacing: 0;
}
.search-result-cat-cardio  { background: #fde8ea; color: #b91c1c; }
.search-result-cat-neuro   { background: #ede4ff; color: #5b3aab; }
.search-result-cat-endo    { background: #fef3d7; color: #854f0b; }
.search-result-cat-infecto { background: #d1fae5; color: #065f46; }
.search-result-cat-mulher  { background: #fbe1ed; color: #9d2860; }
.search-result-cat-edu     { background: #dbeafe; color: #1e3a8a; }

.search-result-meta {
  flex: 1;
  min-width: 0;
}
.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.search-result-sub {
  font-size: 12px;
  color: var(--ink-3);
}

/* Mobile: modal full-screen */
@media (max-width: 979px) {
  .search-overlay-modal {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  .search-overlay-input-row {
    padding: 12px 14px;
  }
  .search-overlay-input {
    font-size: 16px;
  }
  .search-result-item {
    padding: 12px 14px;
  }
}

/* Body lock enquanto overlay aberto */
body.search-open {
  overflow: hidden;
}

/* Fade-in respeitando prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .search-overlay-backdrop,
  .search-overlay-modal {
    animation: searchOverlayFade 0.18s ease-out;
  }
  @keyframes searchOverlayFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

/* === reading-progress === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 90;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.05s linear;
  will-change: width;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress-bar { transition: none; }
}
/* === /reading-progress === */

/* === header-autohide === */
.header {
  transition: transform 0.25s ease, box-shadow 0.2s ease;
  will-change: transform;
}

@media (max-width: 980px) {
  .header.is-hidden {
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header { transition: box-shadow 0.2s ease; }
  .header.is-hidden { transform: none; }
}
/* === /header-autohide === */

/* === tap-feedback === */
/* Cards e superficies grandes: scale 0.98 sutil */
.post-card,
.search-result-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:active,
.search-result-item:active {
  transform: scale(0.98);
  transition-duration: 0.05s;
}

/* Botoes e links do toc-actions: scale 0.97 */
.toc-actions button,
.toc-actions a {
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.toc-actions button:active,
.toc-actions a:active {
  transform: scale(0.97);
  transition-duration: 0.05s;
}

/* Botoes pequenos do header e overlays: scale 0.92 (mais visivel) */
.brand,
.search-trigger,
.hamb,
.mobile-menu-close,
.search-overlay-close,
.text-size-option,
.cat-tag {
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.brand:active,
.search-trigger:active,
.hamburger:active,
.mobile-menu-close:active,
.search-overlay-close:active,
.text-size-option:active,
.cat-tag:active {
  transform: scale(0.92);
  transition-duration: 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .search-result-item,
  .toc-actions button,
  .toc-actions a,
  .brand,
  .search-trigger,
  .hamb,
  .mobile-menu-close,
  .search-overlay-close,
  .text-size-option,
  .cat-tag {
    transition: color 0.15s ease, background 0.15s ease;
  }
  .post-card:active,
  .search-result-item:active,
  .toc-actions button:active,
  .toc-actions a:active,
  .brand:active,
  .search-trigger:active,
  .hamburger:active,
  .mobile-menu-close:active,
  .search-overlay-close:active,
  .text-size-option:active,
  .cat-tag:active {
    transform: none;
  }
}
/* === /tap-feedback === */

/* === skeleton-search === */
.search-overlay-skeleton {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-skeleton-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
}
.search-skeleton-cat {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.search-skeleton-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.search-skeleton-line {
  height: 12px;
  border-radius: 4px;
}
.skel-w-50 { width: 50%; }
.skel-w-55 { width: 55%; }
.skel-w-60 { width: 60%; }
.skel-w-75 { width: 75%; }
.skel-w-80 { width: 80%; }
.skel-w-90 { width: 90%; }

.skel-shimmer {
  background: linear-gradient(90deg,
    var(--rule-2) 0%,
    var(--rule) 50%,
    var(--rule-2) 100%
  );
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
}

@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel-shimmer {
    animation: none;
    background: var(--rule-2);
  }
}
/* === /skeleton-search === */

/* === bottom-nav === */
.bottom-nav { display: none; }

@media (max-width: 980px) {
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(1.5) blur(12px);
    -webkit-backdrop-filter: saturate(1.5) blur(12px);
    border-top: 1px solid var(--rule);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.25s ease;
    will-change: transform;
  }

  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }

  .bottom-nav.is-hidden {
    transform: translateY(100%);
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: inherit;
  font-size: var(--fs-2xs);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav-item.is-active {
  color: var(--primary);
}

.bottom-nav-item:active {
  transform: scale(0.92);
  transition-duration: 0.05s;
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav { transition: none; }
  .bottom-nav-item { transition: color 0.15s ease; }
  .bottom-nav-item:active { transform: none; }
}
/* === /bottom-nav === */

/* === header-buttons-hide-mobile === */
/* Em mobile, .hamb e .search-trigger do header sao redundantes (bottom-nav cobre).
   Em desktop, .hamb ja estava oculto e .search-trigger continua visivel. */
@media (max-width: 980px) {
  .header .hamb,
  .header .search-trigger {
    display: none !important;
  }
}
/* === /header-buttons-hide-mobile === */

/* === brand-mobile-icon (Opção C) === */
.brand .logo { display: none; }

@media (max-width: 980px) {
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .brand .logo {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
  }
  .brand .logo svg {
    width: 22px;
    height: 22px;
  }
  .brand-text-short {
    font-size: 19px !important;
    font-weight: 800;
  }
  .header .wrap {
    padding-block: 16px !important;
  }
}
/* === /brand-mobile-icon === */

/* === brand-mobile-icon-fix === */
@media (max-width: 980px) {
  .brand {
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent !important;
    padding: 0 !important;
  }
  .brand .logo {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--primary) !important;
  }
  .brand .logo svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: var(--primary);
  }
  .brand-text-short {
    font-size: 19px !important;
    font-weight: 800;
    color: var(--ink);
  }
  .header .wrap {
    padding-block: 16px !important;
  }
}
/* === /brand-mobile-icon-fix === */

/* === brand-mobile-grid-fullspan === */
@media (max-width: 980px) {
  .brand {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }
}
/* === /brand-mobile-grid-fullspan === */

/* === bottom-sheet === */
.bottom-sheet[hidden] { display: none; }
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
}
.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.bottom-sheet.is-open .bottom-sheet-backdrop { opacity: 1; }

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 12px 0 calc(20px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}
.bottom-sheet.is-open .bottom-sheet-content { transform: translateY(0); }

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  margin: 0 auto 14px;
}
.bottom-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  padding: 0 20px 14px;
  margin: 0;
  letter-spacing: -0.012em;
}
.bottom-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bottom-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.05s ease;
}
.bottom-sheet-item:active {
  background: var(--bg-soft);
  transform: scale(0.98);
}
.bottom-sheet-item.is-active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 700;
}
.bottom-sheet-cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.bottom-sheet-item-name { flex: 1; }
.bottom-sheet-item-count {
  font-size: 13px;
  color: var(--ink-3);
}
.bottom-sheet-item.is-active .bottom-sheet-item-count { color: var(--primary); }

body.bottom-sheet-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .bottom-sheet-content,
  .bottom-sheet-backdrop {
    transition: none;
  }
}
/* === /bottom-sheet === */

/* === skip-to-content === */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: 8px;
  z-index: 999;
  transition: top 0.18s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.skip-to-content:hover,
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 12px;
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--ink), 0 4px 16px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .skip-to-content { transition: none; }
}
/* === /skip-to-content === */

/* === PV_BS_FILTERS_BEGIN === */
/* Chips de filtro e labels de secao no bottom-sheet, usados em is_category(). */
.bottom-sheet-section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 20px 6px;
  margin: 0;
}
.bottom-sheet-filters { margin: 0 0 4px; }
.bottom-sheet-filters-row {
  display: flex;
  gap: 6px;
  padding: 4px 20px 14px;
}
.bottom-sheet-filter-chip {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bottom-sheet-filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.bottom-sheet-filter-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.bottom-sheet-filter-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.bottom-sheet-filters + .bottom-sheet-section-label {
  border-top: 1px solid var(--rule);
  margin-top: 6px;
  padding-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .bottom-sheet-filter-chip { transition: none; }
}
/* === PV_BS_FILTERS_END === */

/* === UNIFIED_HOVER_TOPNAV_BEGIN === */
.nav .nav-list a {
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav .nav-list .current-menu-item > a,
.nav .nav-list .current_page_item > a,
.nav .nav-list .current-menu-ancestor > a {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-700);
}
/* === UNIFIED_HOVER_TOPNAV_END === */
