/* Identidade editorial para as páginas do aplicativo. */
:root {
  --xn-launch-paper: #f8f7f4;
  --xn-launch-ink: #20232d;
  --xn-launch-muted: #555e6d;
  --xn-launch-line: #e3dfd9;
  --xn-launch-red: #a61335;
  --xn-launch-serif: Georgia, 'Times New Roman', serif;
}
body.omni-news-ui .main :is(.welcome, .xn-magazine-head, .xn-video-page-heading) {
  border-color: var(--xn-launch-line);
}
body.omni-news-ui .main :is(.welcome h1, .xn-magazine-head h1, .xn-video-page-heading h1) {
  color: var(--xn-launch-ink);
  font-family: var(--xn-launch-serif);
  font-weight: 650;
  letter-spacing: -.048em;
  text-wrap: balance;
}
body.omni-news-ui .main :is(.xn-magazine-head h1, .xn-video-page-heading h1) {
  font-size: clamp(37px, 5vw, 62px);
  line-height: 1.02;
  margin-block: 5px 8px;
}
body.omni-news-ui .main :is(.xn-welcome-deck, .xn-magazine-head p, .xn-video-page-heading p) {
  color: var(--xn-launch-muted);
  line-height: 1.48;
}
body.omni-news-ui .main .xn-magazine-head .xn-magazine-edition {
  color: var(--xn-launch-red);
  font-size: 12px;
}
body.omni-news-ui .main :is(.xn-video-search, .xn-fm-discovery) {
  border: 1px solid var(--xn-launch-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px #29232206;
}
body.omni-news-ui .main .xn-radio-hub-intro {
  background: radial-gradient(ellipse at 94% 92%, #472333 0, #262533 44%, #1d222c 75%);
  border: 1px solid #242532;
  border-radius: 14px;
  color: #fff;
}
body.omni-news-ui .main .xn-radio-hub-intro h1 { color: #fff; }
body.omni-news-ui .main .xn-radio-hub-intro h1 span { color: #ffafb9; }
body.omni-news-ui .main .xn-radio-hub-intro p { color: #e1e2e9; }
body.omni-news-ui .main .xn-radio-hub-intro .xn-radio-intro-kicker { color: #ffc7d0; }

/* Entrada de leitores. */
html:has(body.ex-unified-auth) { background: var(--xn-launch-paper) !important; }
body.ex-unified-auth.ex-unified-auth {
  background: radial-gradient(ellipse at 50% 0%, #eee1e3 0, transparent 52%), var(--xn-launch-paper) !important;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) !important;
}
body.ex-unified-auth.ex-unified-auth .ex-auth-glass {
  width: min(100%, 424px) !important;
  padding: clamp(20px, 5vw, 32px) !important;
  border: 1px solid var(--xn-launch-line) !important;
  border-radius: 15px !important;
  box-shadow: 0 14px 44px #291e2412 !important;
}
body.ex-unified-auth.ex-unified-auth .ex-auth-brand {
  width: min(228px, 100%);
  align-self: flex-start;
  min-height: 49px;
  margin-bottom: 23px !important;
  padding: 8px 12px;
  border-radius: 8px;
}
body.ex-unified-auth.ex-unified-auth .ex-auth-glass h1 {
  font: 680 clamp(29px, 8vw, 39px)/1.05 var(--xn-launch-serif) !important;
  color: var(--xn-launch-ink) !important;
}
body.ex-unified-auth.ex-unified-auth .ex-auth-glass .ex-auth-subtitle { color: var(--xn-launch-muted) !important; }
body.ex-unified-auth.ex-unified-auth .ex-auth-google {
  min-height: 49px !important;
  background: #fff !important;
  border-color: #bdc1ca !important;
}
body.ex-unified-auth.ex-unified-auth .ex-auth-glass footer > a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) {
  body.ex-unified-auth.ex-unified-auth { justify-content: center !important; }
}
@media (max-height: 480px) {
  body.ex-unified-auth.ex-unified-auth { justify-content: flex-start !important; }
}

/* Extreme Hub mantém a navegação social e compartilha o acabamento do portal. */
body.xn-launch-hub { background: var(--xn-launch-paper); }
body.xn-launch-hub .hub-top, body.xn-launch-hub .hub-bottom { border-color: var(--xn-launch-line); }
body.xn-launch-hub #hubContent, body.xn-launch-hub .hub-welcome { min-width: 0; }
body.xn-launch-hub .hub-welcome {
  position: relative;
  background: linear-gradient(137deg, #fff 55%, #f8edf0) !important;
  padding: clamp(17px, 4vw, 26px);
  border: 1px solid var(--xn-launch-line);
  border-inline-start: 3px solid var(--xn-launch-red);
  border-radius: 12px;
  box-shadow: 0 5px 18px #25222e09;
}
body.xn-launch-hub .hub-welcome :is(h1,h2) {
  font: 680 clamp(27px, 6vw, 39px)/1.12 var(--xn-launch-serif);
  letter-spacing: -.035em;
  text-wrap: balance;
  color: var(--xn-launch-ink);
  margin-block: 4px 9px;
}
body.xn-launch-hub .hub-welcome p { color: var(--xn-launch-muted); line-height: 1.55; }
body.xn-launch-hub .hub-welcome .hub-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #bcc1ca;
  color: var(--xn-launch-ink);
  text-decoration: none;
}
body.xn-launch-hub .hub-mobile-drawer { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 760px) {
  body.omni-news-ui .header #siteNav.nav[aria-label] {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    gap: 4px !important;
    padding-block: 4px !important;
  }
  body.omni-news-ui .header #siteNav.nav[aria-label] > a {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    padding: 7px 10px !important;
    min-height: 36px !important;
  }
  body.omni-news-ui .main :is(.welcome, .xn-magazine-head, .xn-video-page-heading) {
    padding-block: 10px 12px;
    margin-block: 0 13px;
  }
  body.omni-news-ui .main :is(.xn-welcome-deck, .xn-magazine-head p, .xn-video-page-heading p) {
    margin-block: 5px 0;
    font-size: 13px;
  }
  body.omni-news-ui .main .xn-video-page-heading { gap: 9px; align-items: flex-start; }
  body.omni-news-ui .main .xn-video-page-heading .xn-video-library-open { min-height: 44px; border-radius: 8px; }
  body.omni-news-ui .main .xn-video-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 7px; }
  body.omni-news-ui .main .xn-video-search :is(input[type=search], button) { min-width: 0; min-height: 44px; }
  body.omni-news-ui .main .xn-video-search input[type=search] { width: 100%; padding-inline: 8px; font-size: 16px; }
  body.omni-news-ui .main .xn-video-search button { width: auto; padding-inline: 9px; }
  body.omni-news-ui .main .xn-video-filter-row { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  body.omni-news-ui .main .xn-video-filter-row a { flex: 0 0 auto; min-height: 42px; }
  body.omni-news-ui .main :is(.xn-fm-discovery, .xn-radio-hub-intro) { padding: 13px; }
  body.omni-news-ui .main .xn-fm-search-form :is(input,select) { min-width: 0; min-height: 44px; font-size: 16px; }
  body.omni-news-ui .main .xn-fm-find-button { min-height: 44px; }
  body.xn-launch-hub #hubContent { padding-inline: 12px; }
  body.xn-launch-hub #hubContent .hub-welcome { width: auto; max-width: 100%; box-sizing: border-box; margin-inline: 12px; }
  body.xn-launch-hub .hub-top-actions > :is(a, button) { min-height: 42px; }
  body.xn-launch-hub .hub-bottom > button { min-height: 46px; }
}

html.xn-installed :is([data-xn-install-offer], #xnInstallInvite, #installBtn, #navInstallBtn) {
  display: none !important;
}

.xn-permission-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #e3dfd9;
  border-radius: 14px;
  background: #fff;
  color: #20232d;
  box-shadow: 0 18px 66px #15192333;
  font: 14px/1.55 system-ui,sans-serif;
}
.xn-permission-dialog::backdrop { background: #15192278; }
.xn-permission-inner { padding: clamp(14px,4vw,22px); }
.xn-permission-inner header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.xn-permission-inner h2 { margin:0 0 5px; font: 700 25px/1.1 Georgia,serif; }
.xn-permission-inner h3 { margin:0 0 3px; font-size:15px; }
.xn-permission-inner p { margin:0; color:#505968; }
.xn-permission-inner section { margin-top:13px; padding-top:11px; border-top:1px solid #eeece8; }
.xn-permission-inner button,.xn-permission-actions a { min-height:44px; border-radius:8px; border:1px solid #e2d9d9; padding:7px 11px; background:#fff; color:#901c35; font:650 13px system-ui,sans-serif; }
.xn-permission-inner header button { min-width:44px; color:#20232d; font-size:21px; }
.xn-permission-actions { display:flex; flex-wrap:wrap; gap:7px; margin:8px 0 4px; }
.xn-permission-actions a:not([hidden]) { display:inline-flex; align-items:center; }
.xn-permission-inner button:disabled { opacity:.58; }
.xn-permission-inner .xn-permission-status { font-size:12px; margin-top:4px; }
.xn-permission-inner footer { margin-top:15px; }
.xn-permission-inner footer button { width:100%; border-color:#a61335; background:#a61335; color:#fff; }
