/* Fixed magazine brand bar + section hero + hide tools — all sections */
.lc-tools,
nav.lc-tools,
[data-lc-tools-nav] {
  display: none !important;
}

.lc {
  --lc-appbar-h: 4.6rem;
  scroll-padding-top: var(--lc-appbar-h);
}

.lc-top {
  padding-top: var(--lc-appbar-h) !important;
}

.lc-appbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 60 !important;
}

.lc-appbar .lc-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.lc-appbar .lc-brand img {
  height: 3.35rem !important;
  width: auto;
  display: block;
}

.lc-appbar .lc-brand__tag {
  display: block !important;
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  white-space: normal;
}

/* Legacy: hide title/search/auth if still inside brand bar */
.lc-appbar .lc-appbar__title,
.lc-appbar .lc-appbar__search,
.lc-appbar .lc-appbar__actions {
  display: none !important;
}

/* Section hero / search: respect hidden (Fórum skips magazine second hero) */
.lc-section-hero[hidden],
.lc-section-hero__search[hidden],
[data-lc-section-search][hidden] {
  display: none !important;
}

/* Second hero — same pantone as forum #top_section (computed #1e3d73) */
.lc-section-hero {
  background: #1e3d73 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.lc-section-hero__row {
  display: flex !important;
  align-items: stretch !important;
  gap: 0.85rem;
  min-height: 73px !important;
  padding: 0 !important;
}

.lc-section-hero__title {
  flex: 0 0 auto;
  align-self: center;
  min-width: 6.5rem;
  max-width: 14rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-family: 'Sansation', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.lc-section-hero__title:hover {
  color: #fff !important;
  opacity: 0.92;
}

.lc-section-hero__search {
  flex: 1 1 auto;
  align-self: center;
  min-width: 0;
  max-width: 28rem;
  margin: 0;
}

.lc-section-hero__search-field {
  position: relative;
  display: block;
  width: 100%;
}

.lc-section-hero__search-icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  display: inline-flex;
}

.lc-section-hero__search input[type='search'] {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.9rem 0.45rem 2.65rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'Sansation', system-ui, sans-serif;
  font-size: 0.88rem;
  outline: none;
  box-shadow: none;
}

.lc-section-hero__search input[type='search']::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.lc-section-hero__search input[type='search']:focus {
  background: rgba(255, 255, 255, 0.16);
}

.lc-section-hero__actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: stretch !important;
  flex-shrink: 0;
  padding-left: 0 !important;
  border-left: 0 !important;
  min-height: 0 !important;
  gap: 0 !important;
}

.lc-section-hero__actions .as-auth--appbar,
.lc-section-hero__actions .as-auth__session {
  display: flex !important;
  align-items: stretch;
  height: 100%;
  gap: 0 !important;
}

/* Forum-style icon cells: envelope | gear | avatar (padding = SMF top-icon) */
.lc-section-hero .as-auth__icon-cell,
.lc-section-hero .as-auth__avatar-cell {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 18px 10px !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  line-height: 0;
  min-height: 73px;
  box-sizing: border-box;
}

.lc-section-hero .as-auth__icon-cell:hover,
.lc-section-hero .as-auth__avatar-cell:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.lc-section-hero .as-auth__icon-cell[hidden] {
  display: none !important;
}

.lc-section-hero .as-auth__fa-icon {
  display: block;
  width: 17px;
  height: 17px;
}

.lc-section-hero .as-auth__avatar-cell {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Same avatar size as forum #profile_menu_top > img.avatar */
.lc-section-hero .as-auth--appbar .as-auth__avatar,
.lc-section-hero .as-auth__avatar-cell .as-auth__avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border: 3px solid #192e52 !important;
  border-radius: 100% !important;
  object-fit: cover !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Hide legacy gear-after-avatar markup if still present */
.lc-section-hero .as-auth__logout--icon,
.lc-section-hero a.as-auth__logout {
  display: none !important;
}

@media (max-width: 720px) {
  .lc {
    --lc-appbar-h: 5.5rem;
  }

  .lc-appbar .lc-brand img {
    height: 2.75rem !important;
  }

  .lc-section-hero__row {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .lc-section-hero__title {
    max-width: calc(100% - 5.5rem);
    border-right: 0;
    padding-right: 0;
  }

  .lc-section-hero__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
}

/* Sidebar Live footer countdown uses existing .lc-sidebar-live__foot */
.lc-sidebar-live__foot [data-lc-sidebar-live-meta] {
  font-variant-numeric: tabular-nums;
}

/* Shell width modes — painel /mapa → GET /api/shell-layout */
.lc-wrap {
  width: min(100% - var(--lc-shell-inset, 0.75rem), var(--lc-shell-max, var(--lc-max, 1920px))) !important;
  margin-inline: auto;
}
html[data-lc-shell='padded'] {
  --lc-shell-max: 72rem;
  --lc-shell-inset: 2rem;
}
html[data-lc-shell='reduced'] {
  --lc-shell-max: 1920px;
  --lc-shell-inset: 0.75rem;
}
html[data-lc-shell='full'] {
  --lc-shell-max: 100%;
  --lc-shell-inset: 0px;
}
html[data-lc-shell='full'] .lc-wrap {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 0 !important;
}

@import url("/css/lc-shell-layout.css?v=20261113d");
