/* Gazeta Popular — camada única de coerência visual (2026-09-05). */
:root {
  --ui-ease-out: cubic-bezier(.23,1,.32,1);
  --ui-motion-fast: 160ms;
  --ui-motion-medium: 240ms;
}

/* Publicidade editorial intermediária: proporção estável, sem deformar a arte. */
.ad-home-inline{width:min(100%,1120px);margin:clamp(30px,4vw,54px) auto;border-radius:var(--radius-lg);background:var(--surface-2)}
.ad-home-inline picture{display:block;width:100%;aspect-ratio:4/1;overflow:hidden}
.ad-home-inline img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.article-top-ad{width:100%;margin:0 0 28px}
.article-top-ad picture{display:block;aspect-ratio:4/1;overflow:hidden}
.article-top-ad img{width:100%;height:100%;object-fit:cover}
.author-profile-card{position:relative;grid-template-columns:180px minmax(0,1fr);gap:34px;padding:38px;border-radius:28px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.author-profile-avatar{width:180px;height:180px;border:4px solid var(--surface);box-shadow:0 0 0 2px var(--blue),0 10px 30px rgba(7,31,52,.14)}
.author-profile-name-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.author-profile-name-row .eyebrow{margin:0}
.author-follow{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 16px;border:1px solid var(--blue);border-radius:999px;background:var(--blue);color:#fff;font:800 12px var(--font-ui);cursor:pointer;transition:transform 160ms var(--ui-ease-out),background-color 160ms ease,border-color 160ms ease}
.author-follow.is-following{background:var(--surface);color:var(--blue-2);border-color:var(--line)}
.author-follow:active{transform:scale(.97)}
.author-profile-stats{display:flex;align-items:baseline;gap:28px;margin:16px 0}
.author-profile-stats span{display:inline-flex;align-items:baseline;gap:5px;color:var(--ink)}
.author-profile-stats strong{font:800 18px var(--font-ui)}.author-profile-stats small{font:500 13px var(--font-ui);color:var(--muted)}
.author-profile-bio{max-width:66ch;line-height:1.55}
.author-publications{margin-top:38px}.author-publications .section-heading{border-bottom:1px solid var(--line);padding-bottom:12px}
@media(max-width:760px){
  .ad-home-inline{margin:26px auto;border-radius:16px}
  .ad-home-inline picture,.article-top-ad picture{aspect-ratio:16/5}
  .ad-home-inline img,.article-top-ad img{object-fit:cover}
  .article-top-ad{margin-bottom:22px;border-radius:16px}
  .author-profile-card{grid-template-columns:78px minmax(0,1fr);gap:14px;padding:18px;border-radius:22px;align-items:start}
  .author-profile-avatar{width:78px;height:78px;border-width:3px}
  .author-profile-copy h1{font-size:28px;line-height:1.05;margin:6px 0 0}
  .author-profile-name-row{display:contents}.author-profile-name-row .eyebrow{grid-column:2}.author-follow{grid-column:2;justify-self:start;min-height:36px;padding:7px 13px;font-size:11px}
  .author-profile-stats{grid-column:1/-1;gap:20px;margin:14px 0 4px}.author-profile-stats strong{font-size:16px}.author-profile-stats small{font-size:11px}
  .author-profile-bio,.author-links{grid-column:1/-1}.author-profile-bio{font-size:13px;margin:0}
  .author-publications{margin-top:28px}.author-publications .news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
}

/* Perfil editorial: acabamento final aplicado depois das camadas legadas. */
.columnist-profile .author-profile-card{grid-template-columns:180px minmax(0,1fr);gap:34px;padding:38px;border-radius:28px}
.columnist-profile .author-profile-avatar{width:180px;height:180px}
@media(max-width:760px){.columnist-profile .author-profile-card{grid-template-columns:78px minmax(0,1fr);gap:14px;padding:18px;border-radius:22px}.columnist-profile .author-profile-avatar{width:78px;height:78px}.columnist-profile .author-follow{min-height:36px;padding:7px 13px}}

/* Tipografia: a face editorial fica reservada às manchetes de matérias. */
:where(.page-title,.section-heading h2,.dialog-heading h2,.state-heading h2,
  .global-footer h2,.author-profile-copy h1,.author-publications .section-heading h2,
  .article-body h2,.article-body h3,.side-panel h2,.directory-card h2,
  .columnist-card strong,.columnist-directory-card h2,.not-found h1,.empty-state h2,
  .reels-heading h1) {
  font-family: var(--font-ui) !important;
}
:where(.hero-content h1,.sequence-preview-content h2,.news-card h2,
  .article-header-block h1,.continue-card strong,.related-grid .news-card h2,.reel-copy h1) {
  font-family: var(--font-editorial) !important;
}

/* Cabeçalho: uma superfície contínua, sem segunda placa durante a retração. */
.global-header {
  background: linear-gradient(135deg,rgba(4,31,54,.96),rgba(6,52,84,.94)) !important;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 12px 32px rgba(5,34,56,.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.global-header .network-bar nav { width: min(1730px,calc(100% - 32px)); margin-inline: auto; }
.global-header .masthead-row { background: transparent !important; border-radius: 0 !important; }
.global-header .site-logo img { display:block; width:auto; height:64px; max-width:min(420px,44vw); object-fit:contain; filter:none !important; }
.global-header.is-condensed { background: linear-gradient(135deg,rgba(4,31,54,.93),rgba(6,52,84,.91)) !important; }
.global-header.is-condensed .masthead-row { background:transparent !important; border-radius:0 !important; }
.global-header.is-condensed .site-logo img { transform:scale(.78); }

.primary-nav {
  min-height:50px;
  padding:5px;
  gap:3px;
  border-radius:999px;
  overflow:hidden;
}
.primary-nav a,.primary-nav .primary-share {
  min-height:40px;
  padding:9px 14px;
  border-radius:999px;
  font-size:12px;
  transition:transform var(--ui-motion-fast) var(--ui-ease-out),background-color var(--ui-motion-fast) ease-out,color var(--ui-motion-fast) ease-out;
}
.primary-nav a[aria-current="page"] { background:#fff; color:var(--navy); }
.primary-nav a[aria-current="page"] :where(span,small) { color:inherit; }

/* Ação secundária única em todas as seções. */
.section-heading :where(.section-more-button,a[href]) {
  min-height:auto !important;
  padding:3px 0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--blue-2) !important;
  font:800 12px/1.25 var(--font-ui) !important;
  text-decoration:none !important;
  background-image:linear-gradient(currentColor,currentColor) !important;
  background-repeat:no-repeat !important;
  background-position:left calc(100% - 1px) !important;
  background-size:calc(100% - 24px) 1px !important;
  transform:none;
  transition:color var(--ui-motion-fast) ease-out,transform var(--ui-motion-fast) var(--ui-ease-out);
}
.section-heading :where(.section-more-button,a[href]) .material-symbols-rounded { font-size:16px; }
.section-heading :where(.section-more-button,a[href]):not(:has(.material-symbols-rounded))::after { content:"→"; margin-left:6px; text-decoration:none; }
.section-heading :where(.section-more-button,a[href]):hover { color:var(--blue) !important; transform:translateX(2px); }
.city-home-panel .section-heading :where(.section-more-button,a[href]) { color:#fff !important; }

/* Home: leitura visual em ordem, sem tornar todos os módulos equivalentes. */
.home-page .hero { gap:24px; }
.home-page .hero-main { min-height:470px; }
.home-page .hero-content { width:min(42rem,calc(100% - 40px)); max-width:none; padding:clamp(30px,4vw,56px); }
.home-page .hero-content :where(.category-pill,p,time) { display:none !important; }
.home-page .hero-content h1 { max-width:25ch; margin:0; font-size:clamp(32px,2.8vw,43px); line-height:1.04; }
.home-page .sequence-preview { min-height:470px; }
.home-page .sequence-preview-content h2 { font-size:clamp(21px,1.8vw,27px); line-height:1.08; }
.home-page .section-heading { min-height:36px; margin:42px 0 16px; }
.home-page .section-heading h2 { font-size:clamp(25px,2vw,31px); line-height:1.06; font-weight:850; letter-spacing:-.025em; }
.home-page .subeditoria-rail-section .section-heading h2 { font-size:clamp(21px,1.6vw,25px); }
.home-page .home-latest-grid { gap:18px; }
.home-page .home-latest-grid .news-card h2 { font-size:20px; line-height:1.14; }

/* Trilhos: rolagem real, pista visual nas pontas e nenhum overflow da página. */
.content-rail-section,.city-home-panel { min-width:0; overflow:hidden; position:relative; }
.content-rail {
  max-width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.content-rail::-webkit-scrollbar { display:none; }
.content-rail-one {
  display:grid !important;
  grid-auto-flow:column !important;
  grid-auto-columns:max-content !important;
  grid-template-columns:none !important;
  gap:10px;
  padding:3px 26px 10px !important;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);
  mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);
}
.content-rail-one .editoria-pill { min-height:48px; border-radius:999px; scroll-snap-align:start; }

.home-page .city-home-panel {
  padding:clamp(24px,3.2vw,38px);
  border-radius:34px;
  background:linear-gradient(135deg,#073a61 0%,#0b6595 100%);
}
.city-home-panel .section-heading { width:auto !important; margin:0 0 20px !important; padding:0 !important; }
.city-home-panel::before,.city-home-panel::after { content:none !important; }
.city-home-panel .content-rail-two {
  display:grid !important;
  grid-template-rows:repeat(2,54px) !important;
  grid-auto-flow:column !important;
  grid-auto-columns:clamp(280px,23vw,340px) !important;
  grid-template-columns:none !important;
  align-content:initial !important;
  height:auto !important;
  gap:12px !important;
  padding:3px 28px 12px !important;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent) !important;
  mask-image:linear-gradient(90deg,transparent,#000 30px,#000 calc(100% - 30px),transparent) !important;
}
.city-home-panel .city-pill {
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  height:54px;
  padding:7px 10px 7px 15px;
  grid-template-columns:24px minmax(0,1fr) auto;
  border-radius:999px;
  scroll-snap-align:start;
}
.city-home-panel .city-pill > span:nth-child(2) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.city-home-panel .city-pill small {
  min-width:34px;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  background:#45b4dd !important;
  color:#04233b !important;
  display:grid !important;
  place-items:center;
  font-size:11px;
  font-weight:900;
}
.city-home-panel .city-pill small::after { content:none !important; }

/* Perfil do colunista: identidade, informações e arquivo visual. */
.columnist-profile { width:min(1120px,calc(100% - 40px)); }
.columnist-profile .author-profile-card {
  grid-template-columns:156px minmax(0,1fr);
  gap:34px;
  max-width:980px;
  margin-inline:auto;
  padding:34px;
  border-radius:28px;
  background:var(--surface);
  box-shadow:none;
}
.columnist-profile .author-profile-avatar { width:156px; height:156px; border:1px solid var(--line); box-shadow:none; }
.columnist-profile .author-profile-copy h1 { font-size:clamp(30px,3vw,42px); font-weight:850; }
.columnist-profile .author-profile-stats { gap:22px; margin:13px 0; }
.columnist-profile .author-profile-bio { max-width:62ch; }
.columnist-profile .author-publications { margin-top:36px; }
.columnist-profile .author-publications .news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.columnist-profile .author-publications .news-card { position:relative; min-height:320px; border-radius:4px; overflow:hidden; }
.columnist-profile .author-publications .news-card-image,.columnist-profile .author-publications .news-card-image img { width:100%; height:100%; min-height:320px; }
.columnist-profile .author-publications .news-card-image img { object-fit:cover; }
.columnist-profile .author-publications .news-card-body { position:absolute; inset:auto 0 0; padding:52px 15px 15px; color:#fff; background:linear-gradient(transparent,rgba(3,24,41,.92)); }
.columnist-profile .author-publications .news-card-body :where(h2,p,time,.category-pill) { color:#fff; }
.columnist-profile .author-publications .news-card-body p { display:none; }
.columnist-profile .author-publications .news-card h2 { font-size:18px; line-height:1.12; }

/* Matéria: uma única cápsula lateral monocromática. */
@media (min-width:761px) {
  .article-page-body .share-rail {
    left:14px;
    top:65%;
    width:54px;
    padding:7px 5px;
    gap:0;
    border:1px solid rgba(255,255,255,.18);
    border-radius:27px;
    background:rgba(5,34,56,.94);
    box-shadow:0 14px 34px rgba(5,34,56,.22);
    transform:translateY(-50%);
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
  }
  .article-page-body .share-rail :where(button,a),
  .article-page-body .share-rail :where(button,a):nth-child(n) {
    width:44px;
    height:42px;
    margin:0 !important;
    border:0;
    border-radius:50%;
    background:transparent !important;
    color:#fff !important;
    box-shadow:none !important;
    filter:none !important;
    transition:transform var(--ui-motion-fast) var(--ui-ease-out),background-color var(--ui-motion-fast) ease-out;
  }
  .article-page-body .share-rail svg { width:20px; height:20px; fill:currentColor; }
  .article-page-body .share-rail .material-symbols-rounded { font-size:21px; }
  .article-page-body .share-rail :where(button,a):hover { background:rgba(255,255,255,.14) !important; transform:translateX(2px); }
  .article-page-body .share-rail [data-label]::after { left:55px; border-radius:999px; background:var(--navy); }
}

/* Feed: categoria no centro e controles longe da safe-area. */
.reel-topic { top:max(14px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); max-width:calc(100% - 136px); text-align:center; }
.reel-card > .reel-actions { bottom:max(84px,calc(env(safe-area-inset-bottom) + 72px)); right:12px; }
.reel-card > .reel-bottom-bar { bottom:max(68px,calc(env(safe-area-inset-bottom) + 56px)); }
.reel-bottom-bar .reel-copy { right:76px; }

/* Rodapé: somente navegação e contato remanescentes, bem distribuídos. */
.global-footer .footer-grid { grid-template-columns:minmax(260px,1.4fr) repeat(2,minmax(180px,.65fr)); gap:clamp(26px,5vw,72px); }

@media (max-width:760px) {
  body:not(.reels-body) { padding-bottom:calc(94px + env(safe-area-inset-bottom)); }
  .global-header { border-radius:0 0 30px 30px; }
  .global-header .site-logo img { height:48px; max-width:230px; }
  .home-page .hero { display:block; }
  .home-page .hero-main { min-height:320px; }
  .home-page .hero-content { max-width:100%; padding:21px; }
  .home-page .hero-content h1 { max-width:19ch; font-size:clamp(23px,6.2vw,28px); line-height:1.06; }
  .home-page .sequence-preview { display:none; }
  .home-page .section-heading { margin:30px 0 13px; }
  .home-page .section-heading h2 { font-size:clamp(23px,6.3vw,29px); }
  .home-page .home-latest-grid,.home-page .popular-news-grid {
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:12px;
    max-width:100%;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding:2px 20px 12px 2px;
    -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 24px),transparent);
    mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 24px),transparent);
  }
  .home-page .home-latest-grid::-webkit-scrollbar,.home-page .popular-news-grid::-webkit-scrollbar { display:none; }
  .home-page .home-latest-grid .news-card,.home-page .popular-news-grid .news-card {
    display:flex !important;
    flex:0 0 min(278px,78vw) !important;
    width:min(278px,78vw) !important;
    min-height:0;
    flex-direction:column;
    scroll-snap-align:start;
  }
  .home-page .home-latest-grid .news-card-image img,.home-page .popular-news-grid .news-card-image img { height:154px; }
  .home-page .home-latest-grid .news-card h2,.home-page .popular-news-grid .news-card h2 { font-size:18px; line-height:1.13; }
  .content-rail-one { padding-inline:18px !important; }
  .home-page .city-home-panel { margin-inline:0; padding:23px 18px 25px; border-radius:28px; }
  .city-home-panel .content-rail-two { grid-auto-columns:min(294px,79vw) !important; padding-inline:20px !important; }
  .city-home-panel .city-pill { height:54px; }
  .columnist-profile { width:calc(100% - 24px); }
  .columnist-profile .author-profile-card { grid-template-columns:86px minmax(0,1fr); gap:16px; padding:18px; border-radius:22px; }
  .columnist-profile .author-profile-avatar { width:86px; height:86px; }
  .columnist-profile .author-profile-copy h1 { font-size:27px; }
  .columnist-profile .author-profile-stats,.columnist-profile .author-profile-bio,.columnist-profile .author-links { grid-column:1/-1; }
  .columnist-profile .author-publications .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; }
  .columnist-profile .author-publications .news-card,.columnist-profile .author-publications .news-card-image,.columnist-profile .author-publications .news-card-image img { min-height:210px; }
  .columnist-profile .author-publications .news-card h2 { font-size:14px; }
  .mobile-nav {
    width:min(382px,calc(100% - 18px));
    min-height:72px;
    padding:8px;
    gap:4px;
    border:1px solid rgba(255,255,255,.86) !important;
    border-radius:28px;
    background:rgba(255,255,255,.94) !important;
    box-shadow:0 14px 38px rgba(6,39,67,.2) !important;
    -webkit-backdrop-filter:blur(30px) saturate(170%);
    backdrop-filter:blur(30px) saturate(170%);
  }
  .mobile-nav :where(a,button) { min-height:54px !important; border-radius:21px; color:var(--navy) !important; }
  body:not(.reels-body) .mobile-nav a[aria-current="page"],
  body:not(.reels-body) .mobile-nav button[aria-current="page"] { background:#f0f4f6 !important; color:var(--navy) !important; box-shadow:inset 0 0 0 1px rgba(6,39,67,.08) !important; }
  .mobile-nav .material-symbols-rounded { font-size:23px !important; }
  .mobile-nav small { font-size:10px !important; }
  .global-footer .footer-grid { grid-template-columns:1fr; gap:24px; text-align:left; }
}

@media (hover:hover) and (pointer:fine) {
  :where(.news-card,.columnist-card,.directory-card,.editoria-pill,.city-pill) {
    transition:transform var(--ui-motion-fast) var(--ui-ease-out),border-color var(--ui-motion-fast) ease-out,box-shadow var(--ui-motion-fast) ease-out;
  }
  :where(.news-card,.columnist-card,.directory-card,.editoria-pill,.city-pill):hover { transform:translateY(-2px); }
}

@media (prefers-reduced-motion:reduce) {
  .global-header,.global-header *,
  :where(.news-card,.columnist-card,.directory-card,.editoria-pill,.city-pill),
  .section-heading :where(.section-more-button,a[href]),.share-rail * { transition-duration:1ms !important; animation:none !important; }
  :where(.content-rail,.news-grid,.popular-news-grid) { scroll-behavior:auto !important; }
}

@media (prefers-reduced-transparency:reduce) {
  .global-header { background:var(--navy) !important; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .mobile-nav { background:#fff !important; -webkit-backdrop-filter:none; backdrop-filter:none; }
}
