/*
 * Responsive layer for the legacy fixed-width theme.
 *
 * The legacy stylesheets (assets/css/legacy/*) were built for a 1200px desktop
 * layout; the old site served phones a separate site under /m/. This file makes
 * the same templates responsive, reproducing the /m/ look below 1024px.
 * It is enqueued last (functions.php, priority 100) so equal-specificity
 * selectors here override the legacy files without !important.
 *
 * Breakpoints: 1199 (fluid desktop) · 1023 (single column / mobile look) · 767 · 600 · 480.
 * Sections are named after the legacy file that holds the overridden rule.
 */

/* Elements added for the mobile layout stay hidden on desktop. */
.news-card__date-short,
.news-card__title-full,
.news-mobile-date,
.news-mobile-back,
.home-sidebar-games__abbr,
.home-sidebar-games__mobile-info,
.footer-mobile,
.home-roster__title-mobile,
#pageJogador .voltar { display: none; }

/* === 1024–1199: fluid desktop (sidebar fixed at 370px) === */
@media (max-width: 1199px) {
	/* Base (icons.css): no forced 1200px width. Only below 1200px, because nested
	   .maxRow blocks (e.g. the footer menu) rely on it at desktop widths. */
	.maxRow { min-width: 0; }

	.contentNews,
	.pageWitSidebar { width: calc(100% - 370px); }
	#sidebar { width: 370px; }
	#pagination { max-width: 100%; }
}

/* === 1024–1199: header in one row (icons.css nav) ===
   The legacy blocks need 405 + 365 + 300px plus the 100px absolute search, so below 1200px
   the social block dropped to a second row over the banner. Widths below always add up to
   the container minus the search; "body > nav" leaves the footer copy (#menuRodape) alone. */
@media (min-width: 1024px) and (max-width: 1199px) {
	body > nav .firstMenu { width: 37%; }
	body > nav .firstMenu > li { margin-right: 20px; white-space: nowrap; }
	body > nav .firstMenu > li:last-of-type { margin-right: 0; }
	body > nav .brandLogo { width: calc(63% - 400px); }
}

/* === ≤1023: single column === */
@media (max-width: 1023px) {
	.contentNews,
	.pageWitSidebar,
	#sidebar { width: 100%; float: none; }
	.pageWitSidebar,
	#page-uniformes .pageWitSidebar,
	#page-ficha-do-jogo .pageWitSidebar,
	#page-escudo .pageWitSidebar,
	#page-vantagens .pageWitSidebar { padding-right: 0; }
	main { padding-top: 30px; padding-bottom: 30px; }

	/* Media never wider than the screen. */
	.post img,
	.pageWitSidebar img,
	#pageJogador img { max-width: 100%; height: auto; }
	iframe { max-width: 100%; }
	.post iframe[src*="youtube"],
	.pageWitSidebar iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.pageWitSidebar table,
	.post table { display: block; max-width: 100%; overflow-x: auto; }

	/* Fixed backgrounds are not supported on iOS and are costly on Android. Without
	   "fixed", the legacy background-size:100% image is too short on narrow screens,
	   so it covers the block instead, over the brand dark colour. */
	.spacerNav,
	#internas-head,
	#proximos-jogos-head,
	nav > .maxRow { background-color: #150b07; background-attachment: scroll; background-size: cover; background-position: center top; }
	/* "nav > .maxRow" only: the open menu panel (.subMaster) is also a .maxRow inside nav. */
	#pageJogador { background-attachment: scroll; }
}

/* === ≤1023: compact header bar, as on /m/ (.navMobile .navbar) ===
   Black 79px bar, 55px logo on the left, only the hamburger icon on the right. Shop, social
   and search stay reachable inside the menu. "body > nav.site-navigation" keeps the footer
   copy (#menuRodape) untouched and outranks the .navScroll rules, so the bar keeps its size. */
@media (max-width: 1023px) {
	body > nav.site-navigation > .maxRow { background: #000; }
	body > nav.site-navigation::after { content: ''; position: absolute; left: 0; bottom: -8px; z-index: 2; display: block; width: 100%; height: 10px; background: url(../images/common/grunge-3.png) center center; pointer-events: none; }
	body > nav.site-navigation .brandLogo { float: left; width: auto; margin: 16px 0; }
	body > nav.site-navigation .brandLogo a { width: 55px; margin: 0; }
	body > nav.site-navigation .firstMenu { float: right; width: auto; margin: 20px 0 0 15px; }
	body > nav.site-navigation .firstMenu > li:not(:first-of-type),
	body > nav.site-navigation .social,
	body > nav.site-navigation .search { display: none; }
	body > nav.site-navigation .hamburguer .iconeNav { top: 0; width: 25px; margin-right: 0; }
	body > nav.site-navigation .hamburguer .iconeNav .bar { height: 3px; }
	body > nav.site-navigation .hamburguer .iconeNav .bar:not(:last-of-type) { margin-bottom: 4px; }
	/* "menu" label kept for screen readers only. */
	body > nav.site-navigation .hamburguer > span:not(.iconeNav) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.spacerNav { height: 79px; }
	body > nav.site-navigation .subMaster { top: 79px; }
}

/* === Menu (icons.css): full-width panel instead of the 250px column === */
@media (max-width: 780px) {
	nav .subMaster { width: 100%; max-height: calc(100vh - 79px); overflow-y: auto; }
	nav .subMaster .thirdMenu .ItemThirdMenu,
	nav .subMaster .thirdMenu a { min-height: 44px; }
}

/* === Interior page heading (icons.css #internas-head) ===
   /m/ has no heading band: interior pages open with a dark 24px title over white
   (estilos.css .title-sections) and no section dropdown. The match sheet keeps its dark band,
   where the score sits (see "Match sheet" below). */
@media (max-width: 1023px) {
	#internas-head { float: none; padding: 30px 0 20px; }
	#internas-head:not(:has(.placarFicha)) { padding: 30px 0 0; background: #fff; }
	#internas-head:not(:has(.placarFicha))::after { display: none; }
	#internas-head h1 { float: none; font-size: 24px; line-height: 1.2; margin-bottom: 30px; }
	#internas-head:not(:has(.placarFicha)) h1 { color: #150b07; font-weight: 600; }
	#internas-head:not(:has(.placarFicha)) h1::after { bottom: -7px; height: 4px; background: #150b07; }
	#internas-head h1 small { display: none; }
	#internas-head .menu-pgi { display: none; }
	/* /m/ .title-sections: title 15px below the bar and content 30px below the title. The negative
	   margin cancels the 30px top padding of the block that follows. Roster/staff pages and Clube
	   Carvoeiro already match /m/ with the default spacing. */
	body:not(:has(#pageElenco)):not(:has(#pageClubeCarvoeiro)) #internas-head:not(:has(.placarFicha)) { padding-top: 15px; margin-bottom: -30px; }
	/* Wallpapers: light textured background behind title and wallpaper, as /m/ section.contentNews. */
	body:has(#page-wallpaper) #internas-head { background: #f5f5f5; }
	body:has(#page-wallpaper) #internas-head h1 { font-weight: 700; }
	#page-wallpaper { background: #f5f5f5 url(../images/football/competitions/bg-torneio.png) center / cover no-repeat; }
	/* The page heading already says "Wallpapers"; /m/ shows the title once. */
	#page-wallpaper .contentNews > h2:first-child { display: none; }
	/* Wallpapers: only the phone wallpaper, sized as /m/ (1, 2 or 3 columns, 240px at most). */
	#page-wallpaper .contentNews { width: 100%; padding-right: 0; float: none; }
	#page-wallpaper .contentNews ul { width: 100%; margin-left: 0; }
	#page-wallpaper .contentNews ul li { width: 100%; margin: 0 0 30px; opacity: 1; }
	#page-wallpaper .contentNews ul li:not(.page-wallpaper__phone) { display: none; }
	#page-wallpaper .contentNews ul li.page-wallpaper__phone { width: calc(33.3% - 10px); max-width: 240px; }
}
@media (max-width: 540px) {
	#page-wallpaper .contentNews ul li.page-wallpaper__phone { width: calc(50% - 5px); }
}
@media (max-width: 400px) {
	#page-wallpaper .contentNews ul li.page-wallpaper__phone { width: 100%; max-width: none; }
}
@media (min-width: 1024px) {
	#page-wallpaper .contentNews ul li.page-wallpaper__phone { display: none; }
}

/* === Sidebar on interior pages: hidden, as on /m/ (news pages included) === */
@media (max-width: 1023px) {
	/* Hidden by default; body classes are unreliable here (the match sheet gets "home"). */
	#sidebar { display: none; }
	#page-home #sidebar { display: block; }

	/* Press room: /m/ opens with "Pesquisar na sala de imprensa" above the list, so only the
	   search block of the sidebar is kept, moved before the content. */
	#sala-imprensa main.container { display: flex; flex-direction: column; }
	#sala-imprensa #sidebar { display: block; order: -1; width: 100%; margin-bottom: 30px; }
	#sala-imprensa #sidebar > :not(#side_SearchImprensa) { display: none; }
}

/* === Home (site.css, home-*.css), scoped to #page-home === */
@media (max-width: 1023px) {
	/* Next match, stacked (values from /m/ estilos.css). */
	#page-home #proximos-jogos-head { padding: 30px 15px 45px; }
	#page-home #proximos-jogos-head .infosJogo { float: none; max-width: none; width: 100%; }
	#page-home #proximos-jogos-head .infosJogo h2 { font-size: 24px; line-height: 28px; text-align: left; }
	#page-home #proximos-jogos-head .infosJogo h2 br { display: none; }
	/* /m/ caps the title at 160px, so the claw (h2::after) sits right after "Próximo jogo". */
	#page-home #proximos-jogos-head .infosJogo h2 { max-width: 160px; }
	#page-home #proximos-jogos-head .infosJogo span { text-align: center; }
	#page-home #proximos-jogos-head .sobreConfronto { float: none; width: 100%; padding-left: 0; }
	#page-home #proximos-jogos-head .sobreConfronto .marcadagua { display: none; }
	#page-home #proximos-jogos-head .confrontoAndData .thumbs { float: none; padding: 20px 0; text-align: center; }
	#page-home #proximos-jogos-head .confrontoAndData .thumbs img,
	#page-home #proximos-jogos-head .confrontoAndData .thumbs span { float: none; display: inline-block; vertical-align: middle; }
	#page-home #proximos-jogos-head .confrontoAndData .cronometro { float: none; width: 100%; text-align: center; }
	#page-home #proximos-jogos-head .confrontoAndData .cronometro div { float: none; display: inline-block; margin-right: 30px; }
	#page-home #proximos-jogos-head .confrontoAndData .cronometro div::after { right: -20px; }
	#page-home #proximos-jogos-head .confrontoAndData .cronometro div:last-of-type { margin-right: 0; }
	/* The published phone countdown renders in regular weight (odometer default), not bold. */
	#page-home #proximos-jogos-head .confrontoAndData .cronometro .odometer { font-size: 40px; font-weight: 400; }
	#page-home #proximos-jogos-head .sobreConfronto .ctasJogo { float: none; margin: 0 auto; }
	#page-home #proximos-jogos-head .sobreConfronto .ctasJogo a { display: block; width: 100%; margin: 15px 0 0; padding: 5px; font-size: 14px; font-weight: 400; }

	/* Last/next games band above the news; other sidebar blocks hidden, as on /m/. */
	/* No gap between the next-match block and the yellow games band. */
	#page-home main.container { display: flex; flex-direction: column; padding-top: 0; }
	#page-home #sidebar { order: -1; margin-bottom: 30px; }
	#page-home #side_ProximosJogos { margin-bottom: 0; }
	/* Last/next games as the yellow /m/ band (.px-jogos): black titles, then one line per game,
	   "CRI [crest] 2 x 0 [crest] PON" in 24px, competition and date in 13px caps, "ficha" in grey. */
	#page-home #side_ProximosJogos { position: relative; max-height: none; margin: 0 -15px; padding: 30px 0 0; background: #f8d100 url(../images/structure/stadium/bg-comochegar.png) center / cover no-repeat; }
	#page-home #side_ProximosJogos::after { content: ''; position: absolute; left: 0; bottom: -2px; z-index: 9; display: block; width: 100%; height: 8px; background: url(../images/common/grunge-2.png) center center; }
	#page-home #side_ProximosJogos .home-sidebar-games__headings { padding: 0 15px; }
	#page-home #side_ProximosJogos .home-sidebar-games__headings h2 { color: #150b07; font-size: 20px; }
	#page-home #side_ProximosJogos .home-sidebar-games__headings h2::after { background: #150b07; }
	#page-home #side_ProximosJogos .home-sidebar-games__headings h2:last-child { text-align: right; }
	#page-home #side_ProximosJogos .home-sidebar-games__headings h2:last-child::after { right: 0; left: auto; }
	#page-home #side_ProximosJogos .sideSlide_ProximosJogos { max-width: calc(100% - 40px); margin: 0 auto; padding: 5px 0 15px; background: none; border-radius: 0; }
	#page-home #side_ProximosJogos .slick-slide > .infosJogo,
	#page-home #side_ProximosJogos .slick-slide > .nomeTorneio,
	#page-home #side_ProximosJogos .todosJogos { display: none; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams { margin: 0; padding: 12px 0 0; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 8px; color: #000; }
	#page-home #side_ProximosJogos .home-sidebar-games__abbr { display: block; color: #000; font-size: 24px; font-weight: 400; line-height: 46px; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams .timeCasa,
	#page-home #side_ProximosJogos .home-sidebar-games__teams .timeFora { float: none; width: auto; margin: 0; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams .timeCasa img,
	#page-home #side_ProximosJogos .home-sidebar-games__teams .timeFora img { display: block; max-width: 40px; max-height: 40px; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams .gols { float: none; width: auto; min-width: 14px; color: #000; font-size: 24px; font-weight: 400; line-height: 46px; text-align: center; }
	#page-home #side_ProximosJogos .home-sidebar-games__teams .versus { float: none; width: auto; margin: 0; color: #000; font-size: 18px; line-height: 46px; }
	#page-home #side_ProximosJogos .home-sidebar-games__mobile-info { display: block; flex-basis: 100%; color: #150b07; font-size: 13px; font-weight: 600; line-height: 14px; text-align: center; text-transform: uppercase; }
	#page-home #side_ProximosJogos .home-sidebar-games__mobile-info > span { display: block; padding: 5px 0 0; }
	#page-home #side_ProximosJogos .home-sidebar-games__sheet-label { position: static; flex-basis: 100%; padding: 10px 0 0; color: #888; font-size: 14px; }
	#page-home #side_ProximosJogos .slick-prev,
	#page-home #side_ProximosJogos .slick-next { top: 45px; width: 30px; height: 60px; background: none; }
	#page-home #side_ProximosJogos .slick-prev { left: 5px; }
	#page-home #side_ProximosJogos .slick-next { right: 5px; }
	#page-home #side_ProximosJogos .slick-prev::before,
	#page-home #side_ProximosJogos .slick-next::before { content: ''; display: block; width: 12px; height: 12px; margin: 0 auto; border: solid #150b07; border-width: 0 3px 3px 0; opacity: 1; }
	#page-home #side_ProximosJogos .slick-prev::before { transform: rotate(135deg); }
	#page-home #side_ProximosJogos .slick-next::before { transform: rotate(-45deg); }
	#page-home #side_Destaques,
	#page-home #side_tabelaClassificao,
	#page-home #publicidade,
	#page-home #titulos { display: none; }

	/* Team carousel (site.css #sectionElenco): no position column. */
	#sectionElenco .sliderBox .posicoesControl { display: none; }
	#sectionElenco .sliderBox .sliderElenco { float: none; width: 100%; padding: 0; }

	/* "Equipe" band as on /m/ (.equipe-home): dark photo background with grunge edges,
	   white title, black cards with name and position over the photo. */
	#sectionElenco { padding: 30px 0; background: url(../images/footer/bg.png) center bottom / cover no-repeat; }
	#sectionElenco::after { content: ''; position: absolute; left: 0; bottom: -2px; z-index: 9; display: block; width: 100%; height: 8px; background: url(../images/common/grunge-2.png) center center; }
	#sectionElenco h2 { color: #fff; font-weight: 600; }
	#sectionElenco h2::after { height: 4px; background: #fff; }
	.home-roster__title-desktop { display: none; }
	.home-roster__title-mobile { display: inline; }
	.home-roster__carousel .slick-slide { flex-basis: 33.333%; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador { padding: 5px; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure { position: relative; background: #000; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure .home-roster__photo { height: auto; background: #000; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure .home-roster__photo img { position: static; display: block; width: 100%; max-width: 260px; height: auto; max-height: none; margin: 0 auto; border-radius: 0; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure figcaption { position: absolute; left: 0; bottom: 0; top: auto; z-index: 5; width: 100%; height: 50px; padding: 0; background: rgba(0, 0, 0, .1); border-radius: 0; text-align: center; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure figcaption .nomeJogador { margin-top: 2px; padding-right: 0; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 1px #151515; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure figcaption .posicaoJogador { margin-top: 0; padding-right: 0; color: #c5c5c5; font-size: 12px; font-weight: 300; line-height: 12px; text-shadow: 0 1px 1px #151515; }
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador figure figcaption .numeroJogador,
	#sectionElenco .sliderBox .sliderElenco .elencoSectionSlider .cardJogador .shadowCard { display: none; }
	/* The arrow PNGs are dark; inverted over white they become the light-on-black /m/ arrows. */
	.home-roster__carousel .home-roster__arrow { background-color: #fff; background-position: center; background-repeat: no-repeat; filter: invert(1); }
}
/* Phones only: from 601px the 180% crop cut the artwork itself (text and app badges at 768px). */
@media (max-width: 600px) {
	/* Banners (home-banners.css): enlarged and cropped at the sides, as on /m/. */
	.home-banner-slide { overflow: hidden; }
	.home-banner-slide img { width: 180%; max-width: none; margin-left: -40%; }
}
/* Players per view as on /m/ (slick: 3, 2 below 660px, 1 below 360px). */
@media (max-width: 660px) {
	.home-roster__carousel .slick-slide { flex-basis: 50%; }
}
@media (max-width: 360px) {
	.home-roster__carousel .slick-slide { flex-basis: 100%; }
}

/* === News listing heading, as /m/ .blog-home: 15px top padding and a 1.2 line-height title === */
@media (max-width: 1023px) {
	#page-blog > main { padding-top: 15px; }
	#page-blog #noticias > h2 { line-height: 1.2; }
}

/* === News cards as a list (news.css / site.css #noticias), values from /m/ .listapost ===
   Photo in the left 5/12 (col-5), date "03.11" and the full title in light weight on the right. */
@media (max-width: 1023px) {
	/* Salvattore reads the column count from this rule (same selector as news.css/site.css). */
	#noticias #grid[data-columns]::before { content: '1 .column.size-1of1'; }

	/* Selectors below repeat the full legacy paths (news.css/site.css) so they win by order. */
	#noticias .posts li { display: grid; grid-template-columns: 41.667% 1fr; gap: 0 12px; align-items: start; float: none; padding: 0 0 12px; }
	#noticias .posts li > a { grid-row: 1 / span 2; }
	#noticias .posts li figure { height: auto; aspect-ratio: 1 / 1; border-radius: 5px; }
	#noticias .posts li figure img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: none; object-fit: cover; transform: none; margin-left: 0; border-radius: 5px; }
	#noticias .posts li .contentPost { padding: 0; background: transparent; border-radius: 0; }
	#noticias .posts li .contentPost .resumoPost,
	#noticias .posts li .contentPost .postEnd,
	#noticias .posts li .contentPost .dataAndComentarios .comentarios { display: none; }
	#noticias .posts li .contentPost .dataAndComentarios { margin: 5px 0 0; overflow: hidden; }
	#noticias .posts li .contentPost .dataAndComentarios .data { float: none; font-size: 18px; font-weight: 300; color: #939598; }
	#noticias .posts li .contentPost h1,
	#noticias .posts li .contentPost h1 a { font-size: 20px; font-weight: 400; line-height: 21px; margin-bottom: 0; text-transform: uppercase; color: #150b07; }
	.news-card__date-full,
	.news-card__title-short { display: none; }
	.news-card__date-short,
	.news-card__title-full { display: inline; }

	/* Home: col-4 photo (the news page uses col-5), four items and no "see more" button. */
	#page-home #noticias .posts li { grid-template-columns: 33.333% 1fr; }
	#page-home #grid .column li:nth-child(n+5),
	#page-home #noticias .cta { display: none; }
	#page-home #noticias > h2,
	#page-blog #noticias > h2 { color: #150b07; font-size: 24px; font-weight: 600; }

	/* News list background as /m/ #blog-page .blog-home; the list title ("Últimas notícias") replaces the page heading. */
	#page-blog:has(#noticias > h2) #internas-head { display: none; }
	#page-blog { background: url(../images/club/diretoria/bg-presidencia.jpg) center center / cover no-repeat; }

	/* Pagination: only previous / next, with the /m/ arrows. */
	#pagination { padding-top: 30px; }
	#pagination ul li.nPage,
	#pagination ul li.nDots { display: none; }
	#pagination ul li.prev,
	#pagination ul li.next { margin: 0; padding: 20px 0; background-repeat: no-repeat; }
	#pagination ul li.prev { float: left; padding-left: 30px; background-image: url(../images/news/mobile/left-arrow.png); background-position: center left; }
	#pagination ul li.next { float: right; padding-right: 30px; background-image: url(../images/news/mobile/right-arrow.png); background-position: center right; }
	#pagination ul li.prev::after,
	#pagination ul li.next::after { display: none; }
	#pagination ul li.prev a,
	#pagination ul li.next a,
	#pagination ul li.prev span,
	#pagination ul li.next span { display: block; color: #150b07; font-size: 12px; font-weight: 700; line-height: 25px; text-transform: uppercase; }
	#pagination ul li.prev.disabled,
	#pagination ul li.next.disabled { opacity: .2; }
}
/* /m/ (.blog-home .listapost): two columns down to 451px, one below.
   Salvattore only re-lays out when a media query starts matching, so every column range
   has its own query; otherwise rotating a tablet or resizing kept the previous count. */
@media (max-width: 450px) {
	#noticias #grid[data-columns]::before { content: '1 .column.size-1of1'; }
}
@media (min-width: 1024px) {
	#noticias #grid[data-columns]::before { content: '2 .column.size-1of2'; }
}
@media (min-width: 451px) and (max-width: 1023px) {
	#noticias #grid[data-columns]::before { content: '2 .column.size-1of2'; }
	#noticias #grid .column.size-1of2:first-child { padding-right: 8px; }
	#noticias #grid .column.size-1of2:last-child { padding-left: 8px; }
	/* Salvattore alternates items between columns, so two per column = the first four. */
	#page-home #grid .column li:nth-child(n+3) { display: none; }
}
/* /m/ shrinks the title only between 451 and 600px; one-column phones keep 20px. */
@media (min-width: 451px) and (max-width: 600px) {
	#noticias .posts li .contentPost h1,
	#noticias .posts li .contentPost h1 a { font-size: 14px; line-height: 18px; }
}

/* === Single news (single.php), as /m/ #blog-page: photo on top, then a white card with the
   yellow date ("30OUT2026"), title, text and a "Voltar" button; no metadata, sharing or comments.
   .post uses display:contents so its photo can move above the date and title. === */
@media (max-width: 1023px) {
	#postagem-noticia { background: url(../images/club/diretoria/bg-presidencia.jpg) center center / cover no-repeat; }
	#postagem-noticia main.container { padding: 15px; }
	#postagem-noticia .contentNews { padding-right: 0; }
	#postagem-noticia .contentNews article { display: flex; flex-direction: column; padding-bottom: 20px; background: #fff; border-radius: 5px; overflow: hidden; }
	#postagem-noticia .contentNews article .post { display: contents; }
	#postagem-noticia .contentNews article .post > figure { order: -1; margin: 0 0 20px; }
	#postagem-noticia .contentNews article .post > figure img { display: block; width: 100%; height: auto; }
	#postagem-noticia .contentNews article > *,
	#postagem-noticia .contentNews article .post > *:not(figure) { margin-left: 20px; margin-right: 20px; }
	#postagem-noticia #internas-head,
	#postagem-noticia .infoPost,
	#postagem-noticia .post > .tags,
	#postagem-noticia .compartilhamento,
	#postagem-noticia #comentarios,
	#postagem-noticia .comentariosList,
	#postagem-noticia .Formcomentario { display: none; }
	#postagem-noticia .contentNews article > .news-mobile-date { display: block; margin-bottom: 10px; color: #f8d100; font-size: 24px; font-weight: 500; line-height: 36px; text-transform: uppercase; }
	#postagem-noticia .contentNews article > .news-mobile-date small { color: #f8d100; font-size: 18px; }
	#postagem-noticia .contentNews article > h2 { margin-bottom: 20px; color: #000; font-size: 23px; font-weight: 500; line-height: 25px; text-transform: uppercase; }
	#postagem-noticia .contentNews article > h2::after { display: none; }
	/* Text is spaced by the "<div>&nbsp;</div>" lines of the imported content, as on /m/. */
	#postagem-noticia .contentNews article .post > p,
	#postagem-noticia .contentNews article .post > div:not(.galeriaPost) { margin-top: 0; margin-bottom: 0; color: #555; font-size: 18px; font-weight: 400; line-height: 27px; }
	#postagem-noticia .contentNews article .post > p { width: auto; margin-bottom: 15px; }
	#postagem-noticia .contentNews article .post a { color: #111; text-decoration: underline; }
	#postagem-noticia .contentNews article .post img { width: 100% !important; height: auto !important; }
	#postagem-noticia .contentNews article > .news-mobile-back { display: block; width: 80px; height: 22px; margin: 40px auto 0; background: #ffd600; }
	.news-mobile-back a { display: block; height: 100%; color: #000; font-size: 14px; line-height: 22px; text-align: center; }
}
/* The published desktop article has no cover photo; only /m/ shows it, above the date. */
@media (min-width: 1024px) {
	#postagem-noticia .contentNews article .post > figure { display: none; }
}

/* === Roster and staff pages (equipes-roster.css #pageElenco), as /m/ #equipe-page ===
   Dark photo background behind the white title and a swipeable row of cards (3 per view, 2 below
   660px, 1 below 360px, as the /m/ slick); name and position over the photo. The position menu,
   position headings and the staff intro title are not on /m/. */
@media (max-width: 1023px) {
	body:has(#pageElenco) { background: #150b07 url(../images/navigation/bg-menu-mobile.png) center top / 100% auto no-repeat; }
	body:has(#pageElenco) #internas-head { background: transparent; }
	body:has(#pageElenco) #internas-head h1 { color: #fff; }
	body:has(#pageElenco) #internas-head h1::after { background: #fff; }
	body:has(#pageElenco) .footer-sponsors { background: #fff; }
	#pageElenco { padding: 0 0 45px; background: transparent; }
	#pageElenco .Box { position: relative; }
	#pageElenco #posicoesControl,
	#pageElenco .Box > h2,
	#pageElenco .contentElenco > h2 { display: none; }
	#pageElenco .contentElenco { display: flex; width: 100%; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
	#pageElenco .contentElenco::-webkit-scrollbar { display: none; }
	#pageElenco .contentElenco .cardJogador { display: block; flex: 0 0 33.333%; width: auto; min-width: 0; padding: 5px; scroll-snap-align: start; }
	#pageElenco .contentElenco .cardJogador figure { position: relative; background: rgba(0, 0, 0, .3); border-radius: 8px; }
	#pageElenco .contentElenco .cardJogador figure > div { height: auto; background: transparent; }
	#pageElenco .contentElenco .cardJogador figure img { position: static; width: 100%; height: auto; max-height: none; transform: none; }
	#pageElenco .contentElenco .cardJogador figcaption { position: absolute; top: auto; bottom: 0; left: 0; z-index: 5; height: 50px; padding: 0; background: rgba(0, 0, 0, .1); text-align: center; }
	#pageElenco .contentElenco .cardJogador .nomeJogador { margin-top: 2px; padding-right: 0; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.5; text-shadow: 0 1px 1px #151515; }
	#pageElenco .contentElenco .cardJogador .posicaoJogador { margin-top: 0; padding-right: 0; color: #c5c5c5; font-size: 12px; font-weight: 300; line-height: 12px; text-shadow: 0 1px 1px #151515; }
	#pageElenco .contentElenco .cardJogador .numeroJogador,
	#pageElenco .contentElenco .cardJogador .shadowCard { display: none; }
	/* Arrows added by legacy-roster-filter.js. */
	.roster-carousel__arrow { position: absolute; top: 50%; z-index: 6; width: 22px; height: 34px; margin-top: -17px; padding: 0; border: 0; background: rgba(0, 0, 0, .85); cursor: pointer; }
	.roster-carousel__arrow::before { content: ''; display: block; width: 8px; height: 8px; margin: 0 auto; border: solid #fff; border-width: 0 2px 2px 0; }
	.roster-carousel__arrow--prev { left: 0; }
	.roster-carousel__arrow--prev::before { transform: translateX(2px) rotate(135deg); }
	.roster-carousel__arrow--next { right: 0; }
	.roster-carousel__arrow--next::before { transform: translateX(-2px) rotate(-45deg); }
}
@media (min-width: 1024px) {
	.roster-carousel__arrow { display: none; }
}
@media (max-width: 659px) {
	#pageElenco .contentElenco .cardJogador { flex-basis: 50%; }
}
@media (max-width: 359px) {
	#pageElenco .contentElenco .cardJogador { flex-basis: 100%; }
}

/* === Structure pages (structure.css: stadium, training centre, gym, shop) ===
   Not on /m/ (the published phone site has no such routes). The desktop text column (370px plus
   a 590–690px overlapping box) overflowed phones; everything stacks, and the numbers band wraps. */
@media (max-width: 1023px) {
	#estrutura .sobreHH .contLeft,
	#estruturaGCMS .sobreHH .contLeft,
	#estruturaTM .sobreHH .contLeft,
	#estruturact .sobreHH .contLeft,
	#quemFoiHH .sobreHH .contLeft,
	#quemFoiGCMS .sobreHH .contLeft,
	#estrutura .sobreHH .contRight,
	#estruturaGCMS .sobreHH .contRight,
	#estruturaTM .sobreHH .contRight,
	#estruturact .sobreHH .contRight,
	#quemFoiHH .sobreHH .contRight,
	#quemFoiGCMS .sobreHH .contRight { float: none; width: 100%; height: auto; }
	#estrutura .sobreHH .contLeft .contBox .contAbs,
	#estruturaGCMS .sobreHH .contLeft .contBox .contAbs,
	#estruturaTM .sobreHH .contLeft .contBox .contAbs,
	#estruturact .sobreHH .contLeft .contBox .contAbs,
	#quemFoiHH .sobreHH .contLeft .contBox .contAbs,
	#quemFoiGCMS .sobreHH .contLeft .contBox .contAbs { float: none; width: 100%; margin: 0 0 30px; padding: 0; }
	#estrutura .sobreHH .contRight img,
	#quemFoiHH .sobreHH .contRight img,
	#quemFoiGCMS .sobreHH .contRight img { float: none; width: 100%; height: auto; }
	/* width: the legacy ".contRight .hhBt" rule (width: auto) outranked the 100% above. */
	#quemFoiHH .sobreHH .contRight .hhBt,
	#quemFoiGCMS .sobreHH .contRight .hhBt { position: static; width: 100%; margin-top: 10px; border: 0; }
	#comoChegarCT .contLeft,
	#comoChegarGCMS .contLeft,
	#comoChegarHH .contLeft,
	#comoChegarTM .contLeft,
	#comoChegarCT .contRight,
	#comoChegarGCMS .contRight,
	#comoChegarHH .contRight,
	#comoChegarTM .contRight { float: none; width: 100%; padding: 0; }
	#comoChegarCT .contRight,
	#comoChegarGCMS .contRight,
	#comoChegarHH .contRight,
	#comoChegarTM .contRight { padding-top: 20px; }
	#hhNumeros { padding: 50px 0; background-attachment: scroll; }
	/* Loja Oficial: the legacy 500px "acessar a loja" banner widened the whole page on phones. */
	#hhNumeros .ctaImg { width: 100%; max-width: 500px; }
	#hhNumeros ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px 0; }
	#hhNumeros ul li { float: none; flex: 0 0 50%; padding-right: 0; }
	#hhNumeros ul .infoPrincipal { font-size: 30px; }
	/* Centred under its number and narrow enough for the right-hand column (hidden tooltips still take layout space). */
	#hhNumeros ul .moreInfo .modalHH,
	#hhNumeros ul .moreInfo .modalHH.modalHH-vestiario,
	#hhNumeros ul .moreInfo .modalHH.modalHH-refeicoes { left: 50%; width: 180px; margin-left: -90px; }
}

/* === Contact "Como chegar" (contact.css), as /m/ #page-contato #como-chegar: small place name with
   the "Abrir no Google Maps" button on the same line, map below, plain address and phone. === */
@media (max-width: 1023px) {
	#como-chegar > h2 { font-weight: 600; line-height: 1.2; }
	#como-chegar .mapa-hh { position: relative; margin-bottom: 30px; }
	#como-chegar .mapa-hh h3 { margin-bottom: 5px; font-size: 14px; font-weight: 400; line-height: 22px; }
	#como-chegar .mapa-hh h3 span { font-weight: 400; }
	#como-chegar .mapa-hh iframe { display: block; width: 100%; height: 300px; margin-top: 10px; }
	#como-chegar .mapa-hh .l_google { position: absolute; top: -2px; right: 0; left: auto; padding: 5px; background: #150b07; color: #fff; font-size: 12px; line-height: 17px; }
	#como-chegar .mapa-hh .l_google svg { float: left; width: 17px; height: 17px; margin-right: 5px; }
	#como-chegar .mapa-hh address { padding-top: 15px; font-size: 14px; font-style: normal; }
	/* Message box as on /m/ (230px). Inputs stay at 16px/44px: below 16px iOS zooms on focus. */
	#contato .formsContent textarea { height: 230px; }
}

/* === Match sheet (service-of-game.css) === */
@media (max-width: 1023px) {
	#internas-head .placarFicha { float: none; width: 100%; padding-top: 10px; text-align: center; }
	#internas-head .placarFicha span { float: none; display: inline-block; vertical-align: middle; }
	#internas-head .placarFicha img { width: 60px; height: auto; }
	#internas-head .placarFicha .placarCasa,
	#internas-head .placarFicha .placarFora { font-size: 40px; }
	#internas-head .placarFicha .versus { font-size: 48px; }
	#page-ficha-do-jogo .pageWitSidebar .primaryList li { width: 100%; float: none; }
	#page-ficha-do-jogo .btnRegras { width: 100%; }
}

/* === Service of game › General information (service-of-game.css), as /m/ #page-informacoes-gerais:
   one row of 40px cells (crest, abbreviation, penalties, score, x, score, penalties, abbreviation,
   crest). The desktop abbreviation width (50% - 155px) collapsed to nothing and the crests wrapped. */
@media (max-width: 1023px) {
	#page-informacoes-gerais .confrontoFicha { display: flex; align-items: center; justify-content: center; }
	#page-informacoes-gerais .confrontoFicha div,
	#page-informacoes-gerais .confrontoFicha div.nome,
	#page-informacoes-gerais .confrontoFicha div.versus,
	#page-informacoes-gerais .confrontoFicha div.emblema { float: none; flex: 0 1 40px; width: 40px; min-width: 0; height: 40px; line-height: 40px; text-align: center; }
	#page-informacoes-gerais .confrontoFicha div.emblema img { max-width: 100%; max-height: 40px; vertical-align: middle; }
}

/* === Competitions (equipes-competicoes.css #pageCompeticoes), close to /m/ #campeonato-page ===
   Competition name on the 40px yellow bar, "Último jogo" before "Próximo jogo" with centred
   uppercase titles and compact centred cards; the table and all games stay below. */
@media (max-width: 1023px) {
	#pageCompeticoes .torneio { padding: 0 0 40px; }
	#pageCompeticoes .torneio > .container > h2 { margin: 0 -15px 20px; padding: 9px 15px 0 7px; height: 40px; background: #f3ce00; color: #000; font-size: 16px; font-weight: 400; letter-spacing: -1px; }
	#pageCompeticoes .torneio > .container > h2::after { display: none; }
	#pageCompeticoes .torneio .primaryCont .contLeft,
	#pageCompeticoes .torneio .primaryCont .contRight { float: none; width: 100%; padding-right: 0; }
	#pageCompeticoes .torneio .primaryCont .contLeft { display: flex; flex-direction: column; }
	#pageCompeticoes .torneio .primaryCont .contLeft > h3:has(+ .ultimoJogo) { order: 1; }
	#pageCompeticoes .torneio .primaryCont .contLeft > .ultimoJogo { order: 2; }
	#pageCompeticoes .torneio .primaryCont .contLeft > h3:has(+ .proximoJogo) { order: 3; }
	#pageCompeticoes .torneio .primaryCont .contLeft > .proximoJogo { order: 4; }
	#pageCompeticoes .torneio .primaryCont .contLeft > h3 { color: #150b07; font-size: 16px; font-weight: 500; letter-spacing: -1px; text-align: center; }
	#pageCompeticoes .torneio .primaryCont .cardJogo { margin-bottom: 20px; padding: 15px 10px; text-align: center; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto,
	#pageCompeticoes .torneio .primaryCont .cardJogo .infosJogo { float: none; width: 100%; padding-right: 0; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto { display: flex; justify-content: center; align-items: center; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto::after { display: none; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto .sigla1 { padding-right: 8px; font-size: 23px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto .sigla2 { padding-left: 8px; font-size: 23px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto .valor1,
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto .valor2 { padding: 0 6px; font-size: 20px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .confronto .versus { font-size: 20px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .infosJogo { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .infosJogo > span { float: none; color: #150b07; font-size: 14px; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .infosJogo .fichaLink { float: none; flex-basis: 100%; display: flex; justify-content: center; color: #888; }
	#pageCompeticoes .torneio .primaryCont .contRight { margin: 10px 0 30px; }
	#pageCompeticoes .torneio .todosOsJogos { width: 100%; left: 0; }
	#pageCompeticoes .torneio .todosOsJogos h3 { padding-left: 5px; }
	#pageCompeticoes .torneio .todosOsJogos .jogosSlick { margin-top: 10px; }
	/* The legacy flex-basis only discounts the desktop 15px margins; these keep the card centred. */
	#pageCompeticoes .torneio .todosOsJogos .cardSlide { flex-basis: calc(33.333333% - 50px); margin: 0 25px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto { display: flex; justify-content: center; align-items: center; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto .sigla1 { padding-right: 6px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto .sigla2 { padding-left: 6px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto .valor1,
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto .valor2 { padding: 0 6px; font-size: 28px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto .versus { font-size: 28px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto span a { width: 40px; }
	#pageCompeticoes .torneio .todosOsJogos .cardSlide .confronto span img { max-width: 40px; max-height: 40px; }
	/* /m/ opens straight on the yellow competition bar. */
	body:has(#pageCompeticoes) #internas-head { display: none; }
}
@media (max-width: 991px) {
	#pageCompeticoes .torneio .todosOsJogos .cardSlide { flex-basis: calc(50% - 50px); }
}
@media (max-width: 575px) {
	#pageCompeticoes .torneio .todosOsJogos .cardSlide { flex-basis: calc(100% - 50px); padding-right: 12px; padding-left: 12px; }
}

/* === Clube Carvoeiro (clube-carvoeiro.css), as /m/ #pageClubeCarvoeiro ===
   The desktop three-column layout squeezed the text on phones: blocks stack at full width
   (two columns from 768px), and the search and segment filter stack too. The feature image is
   positioned for the desktop layout and is not on /m/. */
@media (max-width: 1023px) {
	#pageClubeCarvoeiro .featuresClube { padding: 40px 0 10px; }
	#pageClubeCarvoeiro .featuresClube ul { display: flex; flex-wrap: wrap; }
	#pageClubeCarvoeiro .featuresClube ul li,
	#pageClubeCarvoeiro .featuresClube ul li.liRight { float: none; width: 50%; margin-bottom: 30px; }
	#pageClubeCarvoeiro .featuresClube ul li h2 { margin-bottom: 5px; }
	#pageClubeCarvoeiro .featuresClube ul li h2::after { display: none; }
	#pageClubeCarvoeiro .featuresClube .contLeft,
	#pageClubeCarvoeiro .featuresClube .contRight { display: none; }
	#pageClubeCarvoeiro .parceirosClube { padding: 40px 0; }
	#pageClubeCarvoeiro .parceirosClube .formSearch { flex-direction: column; align-items: stretch; }
	#pageClubeCarvoeiro .parceirosClube .formSearch h2 { align-self: center; }
	#pageClubeCarvoeiro .parceirosClube .formSearch form { flex-direction: column; margin-bottom: 15px; }
	#pageClubeCarvoeiro .parceirosClube .formSearch form input,
	#pageClubeCarvoeiro .parceirosClube .formSearch form select { width: 100%; height: 45px; padding: 0 10px; }
	#pageClubeCarvoeiro .parceirosClube ul li { width: 49.6%; }
}
@media (max-width: 767px) {
	#pageClubeCarvoeiro .featuresClube ul li,
	#pageClubeCarvoeiro .featuresClube ul li.liRight { width: 100%; }
	#pageClubeCarvoeiro .parceirosClube ul li { width: 100%; }
}

/* === Player profile (equipes-player.css) === */
@media (max-width: 1023px) {
	#pageJogador { padding: 30px 0; }
	#pageJogador .contentBox .fotoJogador { float: none; width: 100%; max-width: 300px; margin: 0 auto 30px; }
	#pageJogador .contentBox .infosJogador { float: none; width: 100%; padding-left: 0; }
	#pageJogador .contentBox .infosJogador ul li { width: 100%; margin-right: 0; margin-bottom: 20px; }
	#pageJogador .voltar { display: block; width: 80px; margin: 30px auto 0; background: #ffd600; color: #000; font-size: 14px; line-height: 22px; text-align: center; }
	#newsJogador { padding: 30px 0 40px; }
	#newsJogador .posts li { width: 100%; }
}

/* === Forms: full width, no iOS zoom (16px), 44px tap targets === */
@media (max-width: 1023px) {
	.pageWitSidebar .formsContent input[type="text"],
	.pageWitSidebar .formsContent input[type="email"],
	.pageWitSidebar .formsContent input[type="tel"],
	.pageWitSidebar .formsContent select,
	.pageWitSidebar .formsContent textarea,
	.Formcomentario .formsContent input,
	.Formcomentario .formsContent textarea { width: 100%; float: none; font-size: 16px; }
	.pageWitSidebar .formsContent button,
	.Formcomentario .formsContent button { min-height: 44px; }
}
@media (max-width: 600px) {
	/* Contact: e-mail / phone / member number were 50% / 25% / 25% (icons.css). */
	.formsContent form .row label.w25,
	.formsContent form .row label.w50 { width: 100%; }
}

/* === Symbols › Shield timeline (symbols.css): year above the text === */
@media (max-width: 1023px) {
	#page-escudo .pageWitSidebar .primaryList li h2 { float: none; width: 100%; margin-bottom: 20px; }
	#page-escudo .pageWitSidebar .primaryList li h2:before { display: none; }
	#page-escudo .pageWitSidebar .primaryList li .contentLi { float: none; width: 100%; }
}
@media (max-width: 600px) {
	#page-escudo .pageWitSidebar .primaryList li .contentLi figure { float: none; width: 100%; }
	#page-escudo .pageWitSidebar .primaryList li .contentLi small { float: none; display: block; width: auto; padding: 10px 0; }
}

/* === Footer (icons.css, footer-sponsors.css) === */
@media (max-width: 1023px) {
	#newsletter,
	#tigresNoMundo,
	#menuRodape,
	#itensFlutuantes,
	body > footer { display: none; }

	/* Sponsors as on /m/ (.patrocinadores): items are 20% wide but at least 150px (estilos.css
	   `.patrocinadores ul li`), so phones show two per row; 90px tall, in colour. The logo
	   PNGs already carry their own frame, so the item has no border of its own. */
	/* Flex instead of inline-block: whitespace between inline items pushed items to a new row. */
	.footer-sponsors { padding: 15px 0; }
	.footer-sponsors ul.footer-sponsors__list { display: flex; flex-wrap: wrap; justify-content: center; max-width: 830px; margin: 0 auto; }
	.footer-sponsors ul.footer-sponsors__list li.footer-sponsors__item {
		display: flex;
		align-items: center;
		justify-content: center;
		width: calc(20% - 4px);
		min-width: 150px;
		height: 90px;
		margin: 0 2px;
		padding: 5px 0;
		line-height: normal;
		opacity: 1;
		filter: none;
	}
	.footer-sponsors h2 { position: relative; margin-bottom: 30px; color: #150b07; font-size: 24px; font-weight: 600; line-height: 1.2; text-align: left; }
	.footer-sponsors h2::after { content: ''; position: absolute; bottom: -7px; left: 0; display: block; width: 40px; height: 4px; background: #150b07; }

	/* Compact footer: social icons + yellow bar (footer.php .footer-mobile). */
	.footer-mobile { display: block; }
	/* Sizes from /m/ (.social: 65px band, 46px icons; .by-neuro: 40px uppercase bar). */
	.footer-mobile__social { display: flex; align-items: center; justify-content: center; gap: 10px; height: 65px; padding: 0; background: #150b07; }
	.footer-mobile__social li { display: block; margin: 0; }
	.footer-mobile__social a { display: block; }
	.footer-mobile__social svg { display: block; width: 46px; height: 46px; fill: #f8d100; }
	.footer-mobile__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; padding: 0 15px; background: #ffcb05; color: #181a19; font-size: 12px; font-weight: 600; text-transform: uppercase; }
	.footer-mobile__bar a { color: #181a19; }
	/* Keeps "2018 © Neurodigital" clear of the fixed UserWay button (about 64px, 20px from the edge). */
	.footer-mobile__bar { padding-right: 90px; }
}

/* === 1024–1289: floating shortcuts (icons.css #itensFlutuantes, fixed 15–55px from the right)
   sat over the content, whose edge is only 15px from the viewport there. From 1290px the
   container margin clears them. === */
@media (min-width: 1024px) and (max-width: 1289px) {
	#itensFlutuantes { display: none; }
}

/* === ≤1023: participatory galleries photo form (participatory-galleries.css) ===
   Form and terms stack; the "Mande sua foto" button leaves the absolute corner of the title. */
@media (max-width: 1023px) {
	#page-tigres-no-mundo .FormContainer .formsContent,
	#page-tigres-no-mundo .FormContainer #termos-privacidade { width: 100%; float: none; }
	#page-tigres-no-mundo .FormContainer #termos-privacidade { padding: 20px 0 0; max-height: 300px; }
	#page-tigres-no-mundo .FormContainer { background-attachment: scroll; }
	#page-tigres-no-mundo #mandeFoto { position: static; display: inline-block; margin-bottom: 20px; }
	#page-tigres-no-mundo .formsContent form .row label.w50 { width: 100%; }
}

/* === ≤1023: phone menu (template-parts/mobile-menu.php), values from /m/ (.navMobile #menuMobile) ===
   Full-screen panel; each entry is 1/8 of the screen tall. A group opens its links in a yellow
   half panel on the right while the entry keeps the left half, as tall as the list it opened. */
#menuMobile[hidden] { display: none; }
@media (min-width: 1024px) {
	#menuMobile { display: none; }
}
@media (max-width: 1023px) {
	body.mobile-menu-open { overflow: hidden; }
	#menuMobile { position: fixed; top: 0; left: 0; z-index: 20; width: 100vw; height: 100vh; padding-top: 20px; overflow-x: hidden; overflow-y: auto; background: #514b4b url(../images/navigation/bg-menu-mobile.png) center bottom / cover no-repeat; }
	/* The hamburger (now an X) stays above the panel, as /m/ .menuOpen. */
	body > nav.site-navigation .firstMenu { position: relative; z-index: 21; }
	#menuMobile > ul > li { position: relative; overflow: hidden; }
	#menuMobile > ul > li > a,
	#menuMobile .btnSubmenu { display: block; width: 100%; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 20px; font-weight: 500; line-height: calc(100vh / 8); text-align: center; text-transform: uppercase; cursor: pointer; transition: all .3s ease-in-out; }
	#menuMobile > ul > li > a:hover,
	#menuMobile .btnSubmenu:hover { background: rgba(0, 0, 0, .8); color: #f8d100; }
	#menuMobile .links > ul { position: absolute; top: 0; right: -50%; width: 50%; background: #f8d100; transition: all .3s ease-in-out; }
	#menuMobile .links > ul a { display: block; width: 100%; border-bottom: 1px solid #e0be07; color: #150b07; font-size: 16px; font-weight: 700; line-height: 39px; text-align: center; text-transform: uppercase; }
	#menuMobile .links.active { background: rgba(0, 0, 0, .75); }
	#menuMobile .links.active > ul { right: 0; }
	#menuMobile .links.active .btnSubmenu { width: 50%; line-height: 199px; }
	#menuMobile .mobile-menu__group--3.active .btnSubmenu { line-height: 119px; }
	#menuMobile .mobile-menu__group--6.active .btnSubmenu { line-height: 240px; }
}

/* === Mobile: um único título por página, como no /m/ ===
   Onde o título da faixa (#internas-head) repete o primeiro título do conteúdo,
   a faixa sai e fica só o título do conteúdo. */
@media (max-width: 1023px) {
	body:has(#page-historia) #internas-head,
	body:has(#page-bandeira-mascote) #internas-head,
	body:has(#estrutura) #internas-head,
	body:has(#estruturact) #internas-head,
	body:has(#estruturaGCMS) #internas-head,
	body:has(#page-escolinha) #internas-head,
	body:has(#page-tigrinhos) #internas-head,
	body:has(#page-licenciamento) #internas-head,
	body:has(#page-empresas-licenciadas) #internas-head,
	body:has(#pageJogador) #internas-head,
	body:has(#page-tigres-no-mundo) #internas-head { display: none; }

	/* Faixa do topo já começa com o conteúdo: dá o respiro que o título dava. */
	#page-historia,
	#page-bandeira-mascote,
	#page-escolinha,
	#page-tigrinhos,
	#page-licenciamento,
	#page-empresas-licenciadas,
	#page-tigres-no-mundo { padding-top: 30px; }

	/* Tigres pelo Mundo / Carvoeiros de Berço: botão "Mande sua foto" à direita, como no /m/. */
	#page-tigres-no-mundo #mandeFoto { display: table; margin-left: auto; }

	/* Clube Carvoeiro: o título fica dentro da área amarela, como no /m/. */
	body:has(#pageClubeCarvoeiro) #internas-head { padding-bottom: 20px; background: url(../images/business/carvoeiro/bgClube.png); }
	body:has(#pageClubeCarvoeiro) #internas-head h1 { margin-bottom: 0; }
	body:has(#pageClubeCarvoeiro) #pageClubeCarvoeiro .featuresClube { padding-top: 10px; }

	/* Avaliações: só o título "Avaliações" e o aviso em texto simples, como no /m/. */
	#page-captacao-e-selecao .formsContent.avaliacoes-content > h2 { display: none; }
	.avaliacoes-content .avisoDestaque { background: none; border: 0; padding: 0; margin-bottom: 15px; }
	.avaliacoes-content .avisoDestaque h4 { font-size: 15px; font-weight: 400; }
}

/* === Competições no celular, como /m/ #campeonato-page ===
   Barra amarela com o link "TABELA" (abre a classificação), Último/Próximo jogo em faixas
   de largura total e botão "Voltar". O /m/ não tem o carrossel "Todos os jogos". */
.competicao-tabela-link,
.competicoes-voltar { display: none; }
@media (max-width: 1023px) {
	#pageCompeticoes .torneio > .container > h2 { display: flex; align-items: stretch; justify-content: space-between; padding-right: 0; }
	#pageCompeticoes .competicao-tabela-link { position: relative; display: flex; align-items: center; justify-content: center; width: 138px; margin-top: -9px; padding: 0; border-left: 40px solid #150b07; background: #f3ce00; color: #000; font-size: 16px; font-weight: 300; letter-spacing: 0; text-transform: uppercase; }
	/* /m/ .nome-campeonato .block: yellow arrow on the black square (the border above). */
	#pageCompeticoes .competicao-tabela-link::before { content: ''; position: absolute; top: 0; left: -40px; width: 40px; height: 100%; background: url(../images/football/competitions/arrow-down.png) 10px 15px / 18px auto no-repeat; }
	/* rounded-edges.css sets the corners with !important; /m/ cards are square. */
	#pageCompeticoes .torneio .primaryCont .cardJogo.rounded { border-radius: 0 !important; }
	#pageCompeticoes .torneio .primaryCont .cardJogo .infosJogo .fichaLink { text-transform: uppercase; }
	#pageCompeticoes .torneio .primaryCont .contRight { display: none; }
	#pageCompeticoes .torneio .primaryCont .contRight:target { display: block; }
	#pageCompeticoes .torneio .todosOsJogos { display: none; }
	#pageCompeticoes .torneio .primaryCont .cardJogo { margin: 0 -15px 20px; border-radius: 0; }
	#pageCompeticoes .torneio .primaryCont .cardJogo.ultimoJogo { background: #fff; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
	#pageCompeticoes .torneio .primaryCont .cardJogo.proximoJogo { background: #f2f2f2; }
	#pageCompeticoes .competicoes-voltar { display: block; width: 80px; margin: 0 auto 30px; background: #ffd600; color: #000; font-size: 14px; font-weight: 300; line-height: 22px; text-align: center; text-transform: uppercase; }
}

/* === Ficha do Jogo no celular: faixa clara só com o placar, como /m/ .placarFicha === */
@media (max-width: 1023px) {
	#internas-head:has(.placarFicha) { padding: 35px 0; background: #fff url(../images/home/titles/bg.png) no-repeat right center; background-size: cover; }
	#internas-head:has(.placarFicha) h1 { display: none; }
	#internas-head .placarFicha { padding-top: 0; }
	#internas-head .placarFicha span { height: 60px; }
	#internas-head .placarFicha .placarCasa,
	#internas-head .placarFicha .placarFora { padding: 0 15px; color: #150b07; font-size: 36px; font-weight: 700; line-height: 70px; vertical-align: top; }
	#internas-head .placarFicha .versus { color: #150b07; font-size: 70px; font-weight: 300; line-height: 70px; vertical-align: top; }
}

/* Rodapé do celular: ícones PNG do /m/. */
@media (max-width: 1023px) {
	.footer-mobile__social img { display: block; width: 46px; height: 46px; }
}
