/* Release 1.6.0: responsive application shell. Desktop rules stay untouched. */

@media (max-width: 1180px) {
	body.cs2day-v2 {
		overflow-x: clip;
	}

	body.cs2day-v2 :where(
		.site-main,
		.content-section,
		.cs2-home-layout,
		.cs2-home-main,
		.cs2-home-sidebar,
		.cs2-home-main > *,
		.cs2-home-sidebar > *,
		.cs2-home-feed,
		.cs2-home-news-stage,
		.cs2-home-news-stack,
		.cs2-matchcenter,
		.cs2-matchcenter > *,
		.cs2-matchcenter__group,
		.cs2-archive-tools,
		.cs2-filter-panel,
		.cs2-detail-page,
		.cs2-detail-layout,
		.cs2day-entity-shell,
		.cs2-lfg-shell,
		.cs2-competition-shell
	) {
		max-width: 100%;
		min-width: 0;
	}

	body.cs2day-v2 .content-section {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.cs2day-v2 :where(img, video, iframe) {
		max-width: 100%;
	}

	body.cs2day-v2 :where(.cs2-tabs, .cs2-profile-activity__tabs, .cs2-detail-tabs, .cs2-quick-tabs, .cs2-lfg-type-tabs, .cs2-match-hub__tabs) {
		-webkit-overflow-scrolling: touch;
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}

	body.cs2day-v2 :where(.cs2-tabs, .cs2-profile-activity__tabs, .cs2-detail-tabs, .cs2-quick-tabs, .cs2-lfg-type-tabs, .cs2-match-hub__tabs) > * {
		flex: 0 0 auto;
		scroll-snap-align: start;
		white-space: nowrap;
	}

	body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) {
		width: 100%;
	}

	body.cs2day-v2 :where(.cs2-filter-panel, .cs2-directory-filter-panel, .cs2-match-filters) > summary {
		min-height: 44px;
	}

	body.cs2day-v2 :where(.cs2-table-wrap, .wp-block-table, .cs2-match-scoreboard, .cs2-moderation-table-wrap, .cs2day-table-scroll) {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
	}

	body.cs2day-v2 :where(.cs2-table-wrap, .wp-block-table, .cs2-match-scoreboard, .cs2-moderation-table-wrap, .cs2day-table-scroll) table {
		min-width: 680px;
	}

	body.cs2day-v2 :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
		font-size: 16px;
		max-width: 100%;
	}

	body.cs2day-v2 :where(.cs2-form, .cs2-submission-form, .cs2-account, .cs2-lfg-form, .cs2-quick-form) {
		max-width: 100%;
		min-width: 0;
	}

	body.cs2day-v2 :where(.cs2-quick-dialog, .cs2-content-lightbox, .cs2-news-dialog, .cs2-message-dialog) {
		max-height: calc(100dvh - 32px);
		max-width: calc(100vw - 24px);
	}

	body.cs2day-v2 .mce-toolbar-grp {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
	}
}

@media (max-width: 1100px) {
	body.cs2day-v2 .cs2-home-layout {
		grid-template-columns: minmax(0, 1fr);
		width: min(100% - 24px, 1440px);
	}

	body.cs2day-v2 .cs2-home-news-stage {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	body.cs2day-v2 .cs2-home-news-card,
	body.cs2day-v2 .cs2-home-news-card__media,
	body.cs2day-v2 .cs2-home-news-card__body {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	body.cs2day-v2 .cs2-home-news-stack {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: auto;
	}

	body.cs2day-v2 .cs2-home-news-card--compact {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	body.cs2day-v2 .cs2-home-news-card--compact .cs2-home-news-card__media {
		aspect-ratio: 16 / 9;
		border-radius: 4px 4px 0 0;
		height: auto;
		margin: 0;
		width: 100%;
	}

	body.cs2day-v2 .cs2-home-news-card--compact .cs2-home-news-card__body {
		padding: 10px;
	}

	body.cs2day-v2 .cs2-home-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-sidebar-module--match-hub {
		grid-column: 1 / -1;
	}

	body.cs2day-v2 .cs2-transfer-groups--standard,
	body.cs2day-v2 .cs2-team-directory,
	body.cs2day-v2 .cs2-profile-directory,
	body.cs2day-v2 .cs2-streamer-directory {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.cs2day-v2 .site-header__inner {
		min-height: 64px;
		padding-inline: 12px;
	}

	body.cs2day-v2 .site-brand__logo {
		height: auto;
		max-width: 126px;
	}

	body.cs2day-v2 .primary-navigation {
		max-height: calc(100dvh - 64px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	body.cs2day-v2 .primary-navigation__submenu {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-home-main,
	body.cs2day-v2 .cs2-home-sidebar {
		display: contents;
	}

	body.cs2day-v2 .cs2-home-feed--news { order: 1; }
	body.cs2day-v2 .cs2-sidebar-module--match-hub { order: 2; }
	body.cs2day-v2 .cs2-home-community-grid { order: 3; }
	body.cs2day-v2 .cs2-home-feed--media { order: 4; }
	body.cs2day-v2 .cs2-sidebar-module--streams { order: 5; }
	body.cs2day-v2 .cs2-home-lfg { order: 6; }
	body.cs2day-v2 .cs2-sidebar-module--transfers { order: 7; }

	body.cs2day-v2 .cs2-home-community-grid,
	body.cs2day-v2 .cs2-home-sidebar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-home-media-grid,
	body.cs2day-v2 .cs2-home-media-grid.cs2-home-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .content-section--matchcenter .cs2-matchcenter-hero,
	body.cs2day-v2 .cs2-matchcenter-hero,
	body.cs2day-v2 .cs2-page-heading,
	body.cs2day-v2 .cs2-transfer-center__header {
		grid-template-columns: minmax(0, 1fr);
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	body.cs2day-v2 .cs2-archive-tools,
	body.cs2day-v2 .cs2-archive-tools > *,
	body.cs2day-v2 .cs2-archive-tools form {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	body.cs2day-v2 :where(.cs2-competition-filters, .cs2-lfg-filters, .cs2-directory-filters, .cs2-filter-grid, .cs2-form-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.cs2day-v2 .cs2-matchcenter__fixtures {
		overflow: hidden;
		padding-inline: 8px;
	}

	body.cs2day-v2 .cs2-match-row,
	body.cs2day-v2 .cs2-match-row__main,
	body.cs2day-v2 .cs2-match-row__teams {
		max-width: 100%;
		min-width: 0;
	}

	body.cs2day-v2 .cs2-detail-layout,
	body.cs2day-v2 .cs2day-entity-layout,
	body.cs2day-v2 .cs2-player-profile__body {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-detail-panel--sticky,
	body.cs2day-v2 .cs2day-entity-facts {
		position: static;
	}
}

@media (max-width: 700px) {
	body.cs2day-v2 .site-main {
		padding-block-start: 8px;
	}

	body.cs2day-v2 .cs2-home-layout {
		gap: 12px;
		width: calc(100% - 16px);
	}

	body.cs2day-v2 .cs2-home-feed.content-section,
	body.cs2day-v2 .cs2-home-community-panel,
	body.cs2day-v2 .cs2-sidebar-module {
		border-radius: 5px;
		padding: 10px;
	}

	body.cs2day-v2 .cs2-home-heading,
	body.cs2day-v2 .cs2-home-community-panel__header,
	body.cs2day-v2 .cs2-sidebar-module__header {
		gap: 8px;
		min-height: 42px;
	}

	body.cs2day-v2 .cs2-home-heading h1,
	body.cs2day-v2 .cs2-home-heading h2 {
		font-size: 1.15rem;
	}

	body.cs2day-v2 .cs2-home-heading__link,
	body.cs2day-v2 .cs2-home-community-panel__header > a,
	body.cs2day-v2 .cs2-sidebar-module__header > a {
		min-height: 36px;
		padding-inline: 10px;
	}

	body.cs2day-v2 .cs2-home-news-stack,
	body.cs2day-v2 .cs2-home-community-grid,
	body.cs2day-v2 .cs2-home-media-grid,
	body.cs2day-v2 .cs2-home-media-grid.cs2-home-card-grid,
	body.cs2day-v2 .cs2-home-sidebar,
	body.cs2day-v2 .cs2-transfer-groups--standard,
	body.cs2day-v2 .cs2-team-directory,
	body.cs2day-v2 .cs2-profile-directory,
	body.cs2day-v2 .cs2-streamer-directory,
	body.cs2day-v2 :where(.cs2-competition-filters, .cs2-lfg-filters, .cs2-directory-filters, .cs2-filter-grid, .cs2-form-grid) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-home-news-card--featured {
		grid-template-rows: auto auto;
	}

	body.cs2day-v2 .cs2-home-news-card--featured .cs2-home-news-card__media {
		aspect-ratio: 16 / 9;
		height: auto;
	}

	body.cs2day-v2 .cs2-home-news-card--compact {
		grid-template-columns: 118px minmax(0, 1fr);
		grid-template-rows: minmax(132px, auto);
	}

	body.cs2day-v2 .cs2-home-news-card--compact .cs2-home-news-card__media {
		aspect-ratio: auto;
		border-radius: 4px 0 0 4px;
		height: 100%;
	}

	body.cs2day-v2 .cs2-home-news-card--compact .cs2-home-news-card__body {
		padding: 9px 9px 9px 0;
	}

	body.cs2day-v2 .cs2-home-news-card--compact p,
	body.cs2day-v2 .cs2-home-news-card--compact .cs2-mentioned-profiles {
		display: none;
	}

	body.cs2day-v2 .cs2-home-news-card--compact h2 {
		font-size: .86rem;
	}

	body.cs2day-v2 .cs2-engagement-bar {
		gap: 4px;
	}

	body.cs2day-v2 .cs2-match-row__main {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-match-row__competition {
		display: flex;
		min-width: 0;
	}

	body.cs2day-v2 .cs2-match-row__schedule {
		border: 0;
		padding-bottom: 2px;
	}

	body.cs2day-v2 .cs2-match-row__teams {
		grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-match-row__team,
	body.cs2day-v2 .cs2-match-row__team--away {
		gap: 5px;
	}

	body.cs2day-v2 .cs2-match-row__aside {
		align-items: center;
		justify-content: space-between;
	}

	body.cs2day-v2 .cs2-transfer-row {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	body.cs2day-v2 .cs2-transfer-row__date {
		grid-column: 1;
	}

	body.cs2day-v2 .cs2-transfer-row__subject {
		grid-column: 1;
	}

	body.cs2day-v2 .cs2-transfer-row__route {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	body.cs2day-v2 .cs2-page-heading,
	body.cs2day-v2 .cs2-transfer-center__header,
	body.cs2day-v2 .content-section--matchcenter .cs2-matchcenter-hero {
		padding: 14px;
	}

	body.cs2day-v2 .cs2-page-heading h1,
	body.cs2day-v2 .cs2-transfer-center__header h1,
	body.cs2day-v2 .cs2-matchcenter-hero h1 {
		font-size: 1.65rem;
		overflow-wrap: anywhere;
	}

	body.cs2day-v2 .cs2-page-heading__actions,
	body.cs2day-v2 .cs2-page-heading__actions .cs2-button {
		width: 100%;
	}

	body.cs2day-v2 :where(.cs2-form-grid, .cs2-transfer-form__basics, .cs2-quick-form, .cs2-lfg-field-group > .cs2-form-grid) {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.cs2day-v2 :where(.cs2-form__actions, .cs2day-action-row) {
		align-items: stretch;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 :where(.cs2-form__actions, .cs2day-action-row) :where(.cs2-button, button) {
		min-height: 46px;
		width: 100%;
	}

	body.cs2day-v2 .cs2-editor-field :where(.wp-editor-tabs, .wp-media-buttons) {
		float: none;
	}

	body.cs2day-v2 .cs2-editor-field .wp-editor-tabs {
		display: flex;
		justify-content: flex-end;
	}

	body.cs2day-v2 .cs2-detail-hero--entity,
	body.cs2day-v2 .cs2-detail-hero--person {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		padding: 18px 14px;
		text-align: center;
	}

	body.cs2day-v2 .cs2-detail-actions {
		grid-column: 1;
		justify-content: center;
		width: 100%;
	}

	body.cs2day-v2 .cs2-detail-hero__identity h1 {
		font-size: 1.8rem;
		overflow-wrap: anywhere;
	}

	body.cs2day-v2 .cs2-match-hero {
		grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
		padding: 16px 8px 12px;
	}

	body.cs2day-v2 .cs2-match-hero__team {
		grid-template-rows: 68px auto;
	}

	body.cs2day-v2 .cs2-match-hero__logo {
		height: 68px;
		width: 68px;
	}

	body.cs2day-v2 .cs2-match-hero__team strong {
		font-size: .78rem;
		overflow-wrap: anywhere;
	}

	body.cs2day-v2 .cs2-match-hero__actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	body.cs2day-v2 .cs2-match-hero__footer {
		-webkit-overflow-scrolling: touch;
		overflow-x: auto;
	}

	body.cs2day-v2 .cs2-profile-activity__intro,
	body.cs2day-v2 .cs2-profile-activity__highlights,
	body.cs2day-v2 .cs2-profile-activity__grid,
	body.cs2day-v2 .cs2-profile-activity__grid--media,
	body.cs2day-v2 .cs2-person-intro,
	body.cs2day-v2 .cs2-person-story-grid,
	body.cs2day-v2 .cs2-org-story__grid,
	body.cs2day-v2 .cs2-detail-people--showcase {
		grid-template-columns: minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-profile-native-card.is-highlight,
	body.cs2day-v2 .cs2-profile-event-card.is-highlight,
	body.cs2day-v2 .cs2-profile-activity-card.is-featured {
		grid-column: auto;
		grid-row: auto;
	}

	body.cs2day-v2 :where(.cs2-quick-dialog, .cs2-content-lightbox, .cs2-news-dialog, .cs2-message-dialog) {
		border-radius: 6px;
		max-height: calc(100dvh - 16px);
		max-width: calc(100vw - 12px);
		width: calc(100vw - 12px);
	}

	body.cs2day-v2 .site-footer__inner {
		gap: 22px;
		padding-inline: 16px;
	}
}

@media (max-width: 430px) {
	body.cs2day-v2 .site-brand__logo {
		display: none;
	}

	body.cs2day-v2 .site-brand__icon {
		display: block;
		height: 38px;
		width: 38px;
	}

	body.cs2day-v2 .site-header__tools {
		gap: 2px;
	}

	body.cs2day-v2 .site-header__tools :where(.cs2-icon-button, .theme-toggle),
	body.cs2day-v2 .nav-toggle {
		height: 40px;
		min-height: 40px;
		min-width: 40px;
		width: 40px;
	}

	body.cs2day-v2 .cs2-home-news-card--compact {
		grid-template-columns: 104px minmax(0, 1fr);
		grid-template-rows: minmax(120px, auto);
	}

	body.cs2day-v2 .cs2-home-news-card__meta {
		font-size: .52rem;
		gap: 4px;
	}

	body.cs2day-v2 .cs2-home-news-card--compact .cs2-engagement-bar {
		display: none;
	}

	body.cs2day-v2 .cs2-sidebar-match__side,
	body.cs2day-v2 .cs2-sidebar-match__side--away {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	body.cs2day-v2 .cs2-sidebar-match__side .cs2-sidebar-match__logo {
		grid-row: 1;
		height: 48px;
		width: 48px;
	}

	body.cs2day-v2 .cs2-sidebar-upcoming__versus {
		grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-match-row__teams {
		grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
	}

	body.cs2day-v2 .cs2-match-row__team,
	body.cs2day-v2 .cs2-match-row__team--away {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	body.cs2day-v2 .cs2-match-row__team--away .cs2-match-row__logo {
		grid-row: 1;
	}

	body.cs2day-v2 .cs2-transfer-row__route {
		gap: 3px;
	}

	body.cs2day-v2 .cs2-transfer-row__route :where(img, .cs2-transfer-route__logo) {
		height: 34px;
		width: 34px;
	}

	body.cs2day-v2 .cs2-detail-panel,
	body.cs2day-v2 .cs2day-public-entity .cs2day-entity-section,
	body.cs2day-v2 .cs2day-entity-facts,
	body.cs2day-v2 .cs2-player-profile__body > section {
		padding: 12px;
	}

	body.cs2day-v2 .cs2-detail-stats,
	body.cs2day-v2 .cs2-player-profile__stats,
	body.cs2day-v2 .cs2-player-snapshot {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
