/* Local overrides */

.banner-card-ctas a {
	color: rgb(41, 151, 255);
}

/* Ribbon */

.imac-product-page-ribbon.ribbon-bts-2024,
.ac-ls-visible .imac-product-page-ribbon.ribbon-bts-2024 {
	position: relative;
	top: calc(-1 * var(--r-globalnav-height, 0px));
	z-index: 10;
}

#ac-localnav {
	z-index: 5;
}

/* Hero */
.marquee.marquee-milestone-cta
	.viewport-content
	.marquee-detail.typography-detail {
	margin-top: var(--sk-paragraph-plus-element-margin, 0.8em);
}

/* welcome */

.section-welcome .apple-intelligence-marquee {
	translate: 0.3em 0;
}

.section-welcome
	.marquee-milestone-cta
	.milestone-secondary
	+ .milestone-secondary {
	margin-top: 0;
}

.section-welcome .media-container .overview-welcome-headline {
	position: absolute;
	z-index: 3;
	opacity: 0;
	animation: appearElement 3s ease 3s 1 forwards;
	transform: scale(var(--scale-media-modifier));
	transform-origin: top;
}

html.no-enhanced .section-welcome .media-container .overview-welcome-headline,
html.no-js .section-welcome .media-container .overview-welcome-headline {
	opacity: 1;
	animation: none;
}

@keyframes appearElement {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Dynamic Pricing */
.sosumi-link-follows,
.sosumi-link-follows ~ .footnote {
	display: none;
}

.sosumi-link-follows[data-pricing-loaded],
.sosumi-link-follows[data-pricing-loaded] ~ .footnote {
	display: inline;
}

/* Highlights */

@media only screen and (min-width: 1069px) {
	.section-highlights .media-gallery-item-design .caption {
		--caption-width: 450px;
	}

	.section-highlights
		.media-gallery-item-center-stage
		.caption
		span:first-child {
		--caption-span-width: 360px;
	}
}

@media only screen and (max-width: 734px) and (min-width: 481px) {
	.section-highlights
		.media-gallery-item-center-stage
		.caption
		span:first-child {
		--caption-span-width: 270px;
	}
}

@media only screen and (max-width: 481px) {
	.section-apps .section-container .content-text-wrapper .content-copy {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media only screen and (min-width: 1069px) {
	.section-apple-intelligence
		.subsection-privacy
		.subsection-header-headline {
		max-width: 485px;
	}
}

@media only screen and (max-width: 480px) {
	.section-apple-intelligence
		.apple-intelligence-bentos
		.grid-item-playground {
		background-color: #ffedf1;
	}

	.section-apple-intelligence
		.apple-intelligence-bentos
		.grid-item-playground
		.card-contents
		.card-copy {
		margin-bottom: -100px;
	}

	.upgraders-content .upgraders-gallery .bento-item:last-child {
		padding: 24px 30px;
	}

	.upgraders-content .upgraders-gallery .bento-item:last-child.performance {
		padding: 12px 26px;
	}
}

/* Apple Intelligence */
.section-apple-intelligence .subsection-privacy .subsection-header-headline {
	margin-inline-start: 30px;
	margin-inline-end: 30px;
	max-width: 100%;
}

@media only screen and (max-width: 734px) {
	.section-apple-intelligence
		.subsection-privacy
		.subsection-header-headline {
		margin-inline-start: 0;
	}
}

/* Product stories section */
.section-apple-intelligence .apple-intelligence-bentos .grid-item .card-copy {
	padding-bottom: 7px;
}

.banner-card .banner-card-headline {
	color: #f5f5f7 !important;
}

/* announcement-banner */
.film-announcement-banner {
	background-color: #000000 !important;
}

/* announcement-banner -image */

/*XL*/
@media only screen and (min-width: 1441px) {
	.film-announcement-banner .banner-card-image {
		width: 632px;
		height: 320px;
	}
}

/*L*/
@media only screen and (max-width: 1440px) and (min-width: 1069px) {
	.film-announcement-banner .banner-card-image {
		width: 468px;
		height: 320px;
	}
}

/*M*/
@media only screen and (max-width: 1068px) and (min-width: 735px) {
	.film-announcement-banner .banner-card-image {
		width: 412px;
		height: 286px;
	}
}

/*S*/
@media only screen and (max-width: 734px) and (min-width: 481px) {
	.film-announcement-banner .banner-card-image {
		width: 267px;
		height: 192px;
	}
}

/*XS*/
@media only screen and (max-width: 480px) {
	.film-announcement-banner .banner-card-image {
		width: 267px;
		height: 192px;
	}
}
