/* Menu do portal. */
body.omni-news-ui #xnSiteDrawer[open] {
  position: fixed;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(335px, calc(100vw - 20px));
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-inline-start: 1px solid #e5e3df;
  border-radius: 0;
  background: #fff;
  color: #20242d;
  box-shadow: -14px 0 52px #171b2424;
  font-family: var(--news-sans, system-ui, sans-serif);
}
body.omni-news-ui #xnSiteDrawer::backdrop {
  background: #14192266;
  backdrop-filter: none;
}
#xnSiteDrawer .xn-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(9px, env(safe-area-inset-top)) 16px 8px;
  border-bottom: 1px solid #eeece9;
  gap: 12px;
}
#xnSiteDrawer .xn-drawer-heading strong { font-size: 18px; font-weight: 780; }
#xnSiteDrawer .xn-drawer-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f4f3f1;
  color: #323844;
  box-shadow: none;
}
#xnSiteDrawer :is(.xn-drawer-close, .xn-drawer-row, .xn-drawer-avatar) > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#xnSiteDrawer .xn-drawer-scroll {
  display: block;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 11px 13px max(13px, env(safe-area-inset-bottom));
}
#xnSiteDrawer .xn-drawer-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  margin-bottom: 8px;
  border: 1px solid #ece9e6;
  border-radius: 9px;
  background: #f8f7f5;
  box-shadow: none;
}
#xnSiteDrawer .xn-drawer-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: #f4e8e8;
  color: #a92035;
  box-shadow: none;
}
#xnSiteDrawer .xn-drawer-identity { min-width: 0; gap: 2px; }
#xnSiteDrawer .xn-drawer-identity small { color: #5e6572; font-size: 10px; }
#xnSiteDrawer .xn-drawer-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
#xnSiteDrawer .xn-drawer-profile-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #931d35;
  font-size: 12px;
  border-radius: 6px;
}
#xnSiteDrawer .xn-drawer-group {
  display: grid;
  gap: 1px;
  padding: 7px 0;
  margin: 0;
}
#xnSiteDrawer .xn-drawer-group + .xn-drawer-group { border-top: 1px solid #eeece9; }
#xnSiteDrawer .xn-drawer-group h2 {
  margin: 0 0 3px;
  padding: 2px 8px;
  color: #5a626f;
  font: 650 11px/1.4 var(--news-sans, system-ui, sans-serif);
}
#xnSiteDrawer .xn-drawer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #242934;
  font: 600 13px/1.3 var(--news-sans, system-ui, sans-serif);
  text-align: start;
  text-decoration: none;
}
#xnSiteDrawer .xn-drawer-row[hidden] { display: none !important; }
#xnSiteDrawer .xn-drawer-row > svg { flex: 0 0 18px; color: #555f6f; }
#xnSiteDrawer .xn-drawer-row[aria-current="page"] { background: #fceef0; color: #901d33; }
#xnSiteDrawer .xn-drawer-row[aria-current="page"] > svg,
#xnSiteDrawer .xn-drawer-download,
#xnSiteDrawer .xn-drawer-download > svg { color: #9b1d36; }
#xnSiteDrawer :is(.xn-drawer-row, .xn-drawer-profile-link, .xn-drawer-close):hover { background: #f1efec; }
#xnSiteDrawer :is(.xn-drawer-row, .xn-drawer-profile-link, .xn-drawer-close):focus-visible {
  outline: 2px solid #a52239;
  outline-offset: -2px;
}

/* Navegação e leitura em telas estreitas, inclusive no app instalado. */
@media (max-width: 760px) {
  body.omni-news-ui #xnSiteDrawer[open] { width: min(360px, calc(100vw - 22px)); }
  #xnSiteDrawer .xn-drawer-row,
  #xnSiteDrawer .xn-drawer-profile-link { min-height: 44px; }
  #xnSiteDrawer .xn-drawer-close { flex-basis: 44px; width: 44px; height: 44px; }
  body.omni-news-ui .header-row,
  body.omni-news-ui :is(.main, #siteNav, .xn-market, .search-panel) {
    width: calc(100% - 24px) !important;
    min-width: 0;
  }
  body.omni-news-ui .header-row { gap: 5px !important; padding-block: 7px 5px !important; }
  body.omni-news-ui .header-row .masthead { flex: 1 1 0 !important; min-width: 0 !important; }
  body.omni-news-ui .header-row .brand-logo.brand-logo-wide { width: min(155px, 100%) !important; height: auto; }
  body.omni-news-ui .header-row .head-actions { gap: 2px !important; }
  body.omni-news-ui .header-row .head-actions :is(#searchToggle, #navBtn, #xnHubBell, .xn-google-signin, .xn-google-account > summary) {
    display: grid;
    place-items: center;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 8px;
  }
  body.omni-news-ui .header-row .head-actions :is(.xn-google-name, .xn-google-signin-label, .xn-google-signin-short) { display: none !important; }
  body.omni-news-ui .header-row .xn-product-switch {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px !important;
    padding: 2px;
  }
  body.omni-news-ui .header-row .xn-product-switch > a {
    flex-direction: column;
    min-height: 44px !important;
    padding: 4px 1px !important;
    gap: 3px !important;
    font-size: 10px !important;
    line-height: 1.15;
    white-space: nowrap;
  }
  body.omni-news-ui .header-row .xn-product-switch .xn-product-icon { width: 15px; height: 15px; flex: 0 0 15px; }
  body.omni-news-ui .main .welcome { margin-bottom: 14px; padding-bottom: 12px; }
  body.omni-news-ui .main .welcome h1 { text-wrap: balance; }
  body.omni-news-ui .main .welcome #readerGreeting { color: #566173; }
  body.omni-news-ui .main :is(.article-body, .article-content, .xn-radio-detail-information) { overflow-wrap: anywhere; }
}
@media (min-width: 761px) and (pointer: coarse) {
  #xnSiteDrawer .xn-drawer-row, #xnSiteDrawer .xn-drawer-profile-link { min-height: 44px; }
}

@media (max-width: 760px) {
  body.omni-news-ui #siteNav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  body.omni-news-ui #siteNav > a { flex: 0 0 auto; white-space: nowrap; }
}
