body[data-color-scheme="light"] {
	--theme-blue: #0071e3;
	--theme-green: #4cb64c;
	--theme-black: #1d1d1f;
	--color-primary: #fff;
	--main-bg: #f5f5f7;
	--color-border: #ddd;
}

body[data-color-scheme="dark"] {
	--theme-blue: #0071e3;
	--theme-green: #4cb64c;
	--theme-black: #1d1d1f;
	--color-primary: #000;
	--main-bg: #161616;
	--color-border: #333;
}

:root {
	--theme-blue: #0071e3;
	--theme-green: #4cb64c;
	/* --theme-green: #65c466; apple default light mode green */
	--theme-black: #1d1d1f;
	--color-primary: #fff;
	--main-bg: #f5f5f7;

	--tile-border-radius: 18px;
	--tile-padding: 60px;
	--tile-min-height-full: 470px;
	--tile-min-height-half: 370px;
	--tile-min-height-half-min: 270px;
	--tile-min-height-half-min-med: 450px;
	--tile-min-height-half-min-large: 550px;

	--grid-gutter: 20px;
	--large-spacing: 4em;

	--color-helper-1: lightblue;
	--color-helper-1: lightgreen;
}

@media only screen and (max-width: 1068px) {
	:root {
		--tile-min-height-full: 470px;
		--tile-min-height-half: 470px;
		--tile-min-height-half-min: 270px;
		--tile-min-height-half-min-med: 450px;
		--tile-min-height-half-min-large: 500px;

		--tile-padding-vertical: 48px;
		--tile-padding-horizontal: 30px;
		--tile-padding: var(--tile-padding-vertical) var(--tile-padding-horizontal);
		/* --tile-min-height-full: 0px;
		--tile-min-height-half: 0px; */
	}
}

@media only screen and (max-width: 734px) {
	:root {
		--tile-min-height-full: 420px;
		--tile-min-height-half: 420px;
		--tile-min-height-half-min-large: 450px;
		--tile-min-height-tall-small: 515px;
	}
}

.theme-blue {
	background-color: var(--theme-blue);
	color: #fff;
}

.theme-black {
	background-color: var(--theme-black) !important;
	color: #f5f5f7;
}

.theme-green {
	background-color: var(--theme-green) !important;
	color: #f5f5f7;
}

.font-blue {
	color: var(--theme-blue) !important;
}

.font-green {
	color: var(--theme-green) !important;
}

.ribbon-black {
	color: #fff;
	background-color: black;
}

.callout-basic {
	display: flex;
	background: var(--color-primary);
	gap: 1.5em;
	justify-content: center;
	padding: var(--tile-padding) !important;
	border: none;
}

@media only screen and (max-width: 734px) {
	.callout-basic {
		flex-direction: column;
	}
}

/* ----- video grid ----- */
.resource-grid {
	display: grid;
	grid-template-columns: repeat(2, 2fr);
	/* grid-gap: 20px; */
	column-gap: 3em;
	row-gap: 2em;
	width: 100%;
	box-sizing: border-box;
	margin-top: 1.5em;
}

.resource-grid-item {
	height: auto;
	cursor: pointer !important;
	text-decoration: none !important;
}

.resource-grid h5 {
	margin-top: 0.75em;
}

body[data-color-scheme="light"] .resource-grid a h5 {
	color: #1d1d1f;
}

.resource-grid + h2,
.resource-grid + h3,
.resource-grid + p {
	margin-top: 2em;
}

.resource-grid + .divider-bottom {
	padding-top: 0;
}

@media only screen and (max-width: 1068px) {
	.resource-grid {
		grid-template-columns: repeat(2, 2fr);
		column-gap: 1.5em;
		row-gap: 1em;
	}

	.resource-grid-item {
		grid-column: unset;
	}
}

@media only screen and (max-width: 734px) {
	.resource-grid {
		grid-template-columns: repeat(3, 3fr);
		row-gap: 1.5em;
	}

	.resource-grid-item {
		grid-column: 1/3;
	}
}

/* Prevents content jumping */
.image-wrapper {
	width: 100%;
	height: 226px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
}

.thumbnail-image {
	bottom: 0 !important;
	height: unset !important;
}

@media only screen and (max-width: 1068px) {
	.image-wrapper {
		height: 156px;
	}
}

@media only screen and (max-width: 734px) {
	.image-wrapper {
		height: 125px;
	}
}
/* section */

.section {
	background-color: var(--main-bg);
	/* margin-bottom: 2em;
	margin-top: 24px; */
}

.section:not(.section-hero):not(.developer-router-links) {
	padding: var(--large-spacing) 0;
}

.section-hero,
.section-further {
	background-color: var(--color-primary);
}

.section-headline.title {
	padding-top: 1em;
	/* padding-bottom: 1em; */
	padding-bottom: 0em;
}

.section-content + .section-content {
	margin-top: 4em;
}

/* type */
.typography-tiles-headline {
	font-size: 64px;
	line-height: 1.0625;
	font-weight: 600;
	letter-spacing: -0.009em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
}

.typography-headline-super {
	font-size: 80px;
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.015em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
}

.typography-callout {
	/* font-size: 32px; */
	font-size: 28px;
	line-height: 1.125;
	font-weight: 600;
	letter-spacing: 0.004em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
		"Arial", sans-serif;
}

.typography-headline-small {
	font-size: 34px;
}

.typography-headline-medium {
	font-size: 40px;
}

.typography-headline-medium-sizing {
	font-size: 38px;
}

.typography-tiles-headline.title {
	font-size: 50px;
}

@media only screen and (max-width: 1068px) {
	.typography-tiles-headline {
		font-size: 48px;
		line-height: 1.125;
		font-weight: 600;
		letter-spacing: 0.004em;
		font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
			"Arial", sans-serif;
	}

	.typography-headline-super {
		font-size: 48px;
		line-height: 1.08349;
		font-weight: 600;
		letter-spacing: -0.003em;
		font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
			"Arial", sans-serif;
	}

	.typography-callout {
		font-size: 24px;
		line-height: 1.16667;
		font-weight: 600;
		letter-spacing: 0.009em;
		font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
			"Arial", sans-serif;
	}

	.typography-headline-medium {
		font-size: 36px;
	}

	.typography-headline-medium,
	.typography-headline-medium-sizing {
		font-size: 32px;
	}

	.typography-headline-elevated-emoji {
		font-size: 80px;
	}

	.typography-tiles-headline.title {
		font-size: 40px;
	}
}

.accent-large {
	font-size: 21px;
	font-weight: 700;
	margin-top: 0.3em;
}

section.section-events .title {
	color: var(--theme-blue);
}

section.section-support .title {
	color: var(--theme-green);
}

/* grid */

.grid-place-center {
	display: grid;
	place-items: center;
}

.grid-container + .grid-container {
	margin-top: var(--grid-gutter);
}

.grid-container {
	display: grid;
	grid-template-columns: repeat(2, 2fr);
	grid-gap: var(--grid-gutter);
	width: 100%;
	margin: auto;
	box-sizing: border-box;
}

.grid-item.full {
	min-height: var(--tile-min-height-full);
	grid-column: span 2;
}

.grid-item.half {
	min-height: var(--tile-min-height-half);
}

.grid-item.half-tall {
	grid-row: span 2;
}

.grid-item.half-min-height {
	min-height: var(--tile-min-height-half-min);
}

.grid-item.half-min-height-med {
	min-height: var(--tile-min-height-half-min-med);
}

.grid-item.half-min-height-large {
	min-height: var(--tile-min-height-half-min-large);
}

@media only screen and (max-width: 734px) {
	.grid-item.half {
		grid-column: span 2;
	}

	.grid-item.half-tall {
		grid-column: span 2;
		grid-row: unset;
	}

	.grid-item.tall-small {
		min-height: var(--tile-min-height-tall-small);
	}
}

.grid-item.fact {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.grid-item.fact-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.grid-item.fact-space-between {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.flex-space-between {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
	align-items: center;
}

.grid-item.theme-blue {
	background-color: #0071e3;
}

.grid-item {
	position: relative;
	box-sizing: border-box;
	border-radius: var(--tile-border-radius);
	background-color: var(--color-primary);
	overflow: hidden;
	padding: var(--tile-padding);
}

.text-item {
	padding: var(--tile-padding);
}

.order-1 {
	order: 1;
}
.order-2 {
	order: 2;
}
.order-3 {
	order: 3;
}
.order-4 {
	order: 4;
}
.order-5 {
	order: 4;
}

/* flex */
.grid-item.full .flex-content {
	display: flex;
	height: 100%;
}

@media only screen and (max-width: 734px) {
	.grid-item.full .flex-content {
		flex-direction: column;
	}

	.grid-item.full .flex-content.fc-custom {
		justify-content: flex-start;
	}
}

.flex-nowrap {
	flex-wrap: nowrap;
}

.flex-100 {
	flex-basis: 100%;
}
.flex-95 {
	flex-basis: 95%;
}
.flex-90 {
	flex-basis: 90%;
}
.flex-85 {
	flex-basis: 85%;
}
.flex-80 {
	flex-basis: 80%;
}
.flex-75 {
	flex-basis: 75%;
}
.flex-70 {
	flex-basis: 70%;
}
.flex-65 {
	flex-basis: 65%;
}
.flex-60 {
	flex-basis: 60%;
}
.flex-55 {
	flex-basis: 55%;
}
.flex-50 {
	flex-basis: 50%;
}
.flex-45 {
	flex-basis: 45%;
}
.flex-40 {
	flex-basis: 40%;
}
.flex-35 {
	flex-basis: 35%;
}
.flex-30 {
	flex-basis: 30%;
}
.flex-25 {
	flex-basis: 25%;
}
.flex-20 {
	flex-basis: 20%;
}
.flex-15 {
	flex-basis: 15%;
}
.flex-10 {
	flex-basis: 10%;
}
.flex-5 {
	flex-basis: 5%;
}
.flex-no-overflow {
	overflow: hidden;
}

@media only screen and (max-width: 734px) {
	.flex-100 {
		flex-basis: 100%;
	}
	.flex-95 {
		flex-basis: 100%;
	}
	.flex-90 {
		flex-basis: 100%;
	}
	.flex-85 {
		flex-basis: 100%;
	}
	.flex-80 {
		flex-basis: 100%;
	}
	.flex-75 {
		flex-basis: 100%;
	}
	.flex-70 {
		flex-basis: 100%;
	}
	.flex-65 {
		flex-basis: 100%;
	}
	.flex-60 {
		flex-basis: 100%;
	}
	.flex-55 {
		flex-basis: 100%;
	}
	.flex-50 {
		flex-basis: 100%;
	}
	.flex-45 {
		flex-basis: 100%;
	}
	.flex-40 {
		flex-basis: 100%;
	}
	.flex-35 {
		flex-basis: 100%;
	}
	.flex-30 {
		flex-basis: 100%;
	}
	.flex-25 {
		flex-basis: 100%;
	}
	.flex-20 {
		flex-basis: 100%;
	}
	.flex-15 {
		flex-basis: 100%;
	}
	.flex-10 {
		flex-basis: 100%;
	}
	.flex-5 {
		flex-basis: 10%;
	}
	.flex-no-overflow {
		overflow: initial;
	}
}

.no-background {
	background-color: unset !important;
	border-radius: unset !important;
	overflow: auto !important;
}

.no-min-height {
	min-height: unset !important;
}

/* layout */
#main section.section.section-hero {
	padding-top: var(--large-spacing);
	padding-bottom: var(--large-spacing);
}

@media only screen and (max-width: 1068px) {
	#main section.section.section-hero,
	#main section.section.section-further {
		padding-top: calc(var(--large-spacing) / 2);
		padding-bottom: calc(var(--large-spacing) / 2);
	}
}

/* images */

picture img {
	width: 100%;
	height: auto;
	-webkit-touch-callout: none;
}

img {
	-webkit-touch-callout: none;
}

@media only screen and (max-width: 734px) {
	.image-iae {
		scale: 1.25;
	}
}

.image-ipad-crop {
	position: absolute;
	top: 2em;
	left: calc(100% - 515px);
}

html[lang="ja-JP"] .image-ipad-crop,
html[lang="ko-KR"] .image-ipad-crop,
html[lang="zh-CN"] .image-ipad-crop {
	top: 5em;
	left: calc(100% - 465px);
}

@media only screen and (max-width: 1068px) {
	.image-ipad-crop {
		top: unset;
		bottom: -7px;
		left: calc(100% - 420px);
	}

	html[lang="ja-JP"] .image-ipad-crop,
	html[lang="ko-KR"] .image-ipad-crop,
	html[lang="zh-CN"] .image-ipad-crop {
		top: unset;
		bottom: -7px;
		left: calc(100% - 420px);
	}

	html[lang="ja-JP"] .image-ipad-crop img,
	html[lang="ko-KR"] .image-ipad-crop img,
	html[lang="zh-CN"] .image-ipad-crop img {
		left: 70px;
		bottom: -10px;
		position: relative;
	}
}

@media only screen and (max-width: 734px) {
	.image-ipad-crop,
	html[lang="ja-JP"] .image-ipad-crop,
	html[lang="ko-KR"] .image-ipad-crop,
	html[lang="zh-CN"] .image-ipad-crop {
		left: calc(100% - 330px);
		bottom: -8px;
	}

	html[lang="ja-JP"] .image-ipad-crop img,
	html[lang="ko-KR"] .image-ipad-crop img,
	html[lang="zh-CN"] .image-ipad-crop img {
		left: unset;
		bottom: unset;
		position: unset;
	}
}

.image-dual {
	position: absolute;
	bottom: -10px;
	left: calc(100% - 585px);
	padding-right: 20px;
}

@media only screen and (max-width: 1068px) {
	.image-dual {
		left: calc(100% - 545px);
		padding-right: 0;
	}

	.image-dual img {
		margin-left: 120px;
	}
}

@media only screen and (max-width: 734px) {
	.image-dual {
		left: 6%;
	}

	.image-dual img {
		margin-left: unset;
	}
}

.image-list {
	position: absolute;
	bottom: -10px;
	left: calc(100% - 515px);
}

.image-list img {
	width: 50%;
	margin-left: 5em;
}

@media only screen and (max-width: 1068px) {
	.image-list img {
		margin-left: 11em;
	}
}

@media only screen and (max-width: 734px) {
	.image-list {
		left: calc(100% - 415px);
		bottom: -50px;
	}

	.image-list img {
		margin-left: 8em;
	}
}

.image-pre-order,
.image-games {
	max-width: 290px;
	margin-bottom: -10px;
}

@media only screen and (max-width: 1068px) {
	.image-pre-order,
	.image-games {
		max-width: 220px;
	}
}

.image-share-screen {
	width: 200px;
	border-radius: 5px;
}

.image-share-screen-container {
	display: flex;
	justify-content: center;
}

@media only screen and (max-width: 734px) {
	.image-share-screen-container {
		justify-content: flex-start;
	}
}

.fill-editor {
	background-image: url("/app-store/getting-featured/images/fill-editors-choice-large_2x.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 1px solid #ddd;
}

@media only screen and (max-width: 1068px) {
	.fill-editor {
		background-image: url("/app-store/getting-featured/images/fill-editors-choice-medium_2x.jpg");
	}
}

@media only screen and (max-width: 734px) {
	.fill-editor {
		background-image: url("/app-store/getting-featured/images/fill-editors-choice-small_2x.jpg");
	}
}

body[data-color-scheme="dark"] .fill-editor {
	border: 1px solid #333;
}

html body .fill-editor h3 {
	color: #1d1d1f !important;
}

.fill-ada {
	background-image: url("/app-store/getting-featured/images/fill-ada-large_2x.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 1068px) {
	.fill-ada {
		background-image: url("/app-store/getting-featured/images/fill-ada-medium_2x.jpg");
	}
}

@media only screen and (max-width: 734px) {
	.fill-ada {
		background-image: url("/app-store/getting-featured/images/fill-ada-small_2x.jpg");
	}
}

.fill-asa {
	background-image: url("/app-store/getting-featured/images/fill-asa-large_2x.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

@media only screen and (max-width: 1068px) {
	.fill-asa {
		background-image: url("/app-store/getting-featured/images/fill-asa-medium_2x.jpg");
	}
}

@media only screen and (max-width: 734px) {
	.fill-asa {
		background-image: url("/app-store/getting-featured/images/fill-asa-small_2x.jpg");
	}
}

@media only screen and (max-width: 734px) {
	.fill-asa,
	.fill-ada {
		min-height: 500px !important;
	}
}

/* utilities */

@media only screen and (min-width: 1068px) {
	.no-padding-right-large {
		padding-right: 0 !important;
	}
	.no-padding-left-large {
		padding-left: 0 !important;
	}
	.no-padding-top-large {
		padding-top: 0 !important;
	}
	.no-padding-bottom-large {
		padding-bottom: 0 !important;
	}
}

.helperbg {
	background-color: var(--color-helper-1) !important;
}

.helperbg2 {
	background-color: var(--color-helper-2) !important;
}

.lighter-bright {
	color: #999;
}

.lighter-opacity {
	opacity: 0.7;
}

.lighter-opacity-2 {
	opacity: 0.3;
}

.white-link {
	text-decoration: underline;
	color: #fff !important;
}

@media only screen and (max-width: 734px) {
	.padding-mobile {
		padding: 3em !important;
	}
	.no-padding-left-mobile {
		padding-left: 0 !important;
	}
}

.ul-spacing-small li {
	margin-bottom: 0.5em;
}

@media only screen and (max-width: 734px) {
	.small-no-horizontal-margin {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
