/* Content Page - flexible layout rendering (cp- class prefix) */

.view-content-page .main {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	margin: 0;
}

.cp-root-column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.cp-root-column--center {
	align-items: center;
}

/* Row */
.cp-row {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.cp-row--has-bg {
	max-width: none;
	background: var(--cp-bg-light);
}

@media (prefers-color-scheme: dark) {
	.cp-row--has-bg {
		background: var(--cp-bg-dark, var(--cp-bg-light));
	}
}

body[data-color-scheme="light"] .cp-row--has-bg {
	background: var(--cp-bg-light);
}

body[data-color-scheme="dark"] .cp-row--has-bg {
	background: var(--cp-bg-dark, var(--cp-bg-light));
}

.cp-root-column--center > .cp-row {
	justify-content: center;
}

.cp-row--align-top { align-items: flex-start; }
.cp-row--align-center { align-items: center; }
.cp-row--align-bottom { align-items: flex-end; }

/* Column */
.cp-column {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cp-column--page-margins {
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 734px) {
	.cp-column--page-margins {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.cp-column--align-leading { align-items: flex-start; }
.cp-column--align-center { align-items: center; text-align: center; }
.cp-column--align-center > .cp-row { justify-content: center; }
.cp-column--align-trailing { align-items: flex-end; }

/* 12-unit grid */
.cp-span-1 { width: 8.333%; }
.cp-span-2 { width: 16.666%; }
.cp-span-3 { width: 25%; }
.cp-span-4 { width: 33.333%; }
.cp-span-5 { width: 41.666%; }
.cp-span-6 { width: 50%; }
.cp-span-7 { width: 58.333%; }
.cp-span-8 { width: 66.666%; }
.cp-span-9 { width: 75%; }
.cp-span-10 { width: 83.333%; }
.cp-span-11 { width: 91.666%; }
.cp-span-12 { width: 100%; }

.cp-width-fixed { flex-shrink: 0; }

.cp-width-fixed.cp-column--page-margins {
	width: 75% !important;
	max-width: 980px !important;
}

@media (max-width: 734px) {
	.cp-width-fixed.cp-column--page-margins {
		width: 100% !important;
		max-width: none !important;
	}
}
.cp-width-flexible { flex: 1 1 0; min-width: 0; }

/* Background */
.cp-bg-secondary {
	background-color: var(--fill-tertiary, #f5f5f7);
}

/* Corner radius */
.cp-rounded {
	overflow: hidden;
}

/* Text */
.cp-text {
	margin: 0;
	width: 100%;
}

.cp-text p {
	margin: 0;
}

.cp-text p + *,
.cp-text ul + *,
.cp-text ol + *,
.cp-text h1 + *,
.cp-text h2 + *,
.cp-text h3 + *,
.cp-text h4 + *,
.cp-text h5 + *,
.cp-text h6 + * {
	margin-top: 0.8em;
}

.cp-text--title,
.cp-text--title p {
	font-size: 32px;
	line-height: 1.125;
	font-weight: 700;
	letter-spacing: .004em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

@media (max-width: 734px) {
	.cp-text--title,
	.cp-text--title p {
		font-size: 24px;
		line-height: 1.16;
	}
}

.cp-text--headline {
	font-size: 17px;
	line-height: 1.23;
	font-weight: 600;
	letter-spacing: -0.022em;
}

.cp-text--semibold,
.cp-text--semibold p {
	font-weight: 600;
}

.cp-text--bold,
.cp-text--bold p {
	font-weight: 700;
}

.cp-text--light,
.cp-text--light p {
	font-weight: 300;
}

.cp-text--largeTitle,
.cp-text--largeTitle p {
	font-size: 48px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.003em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

@media (max-width: 734px) {
	.cp-text--largeTitle,
	.cp-text--largeTitle p {
		font-size: 32px;
		line-height: 1.125;
	}
}

.cp-text--body,
.cp-text--body p {
	font-size: 21px;
	line-height: 1.38;
	font-weight: 400;
	letter-spacing: 0.011em;
}

@media (max-width: 734px) {
	.cp-text--body,
	.cp-text--body p {
		font-size: 17px;
		line-height: 1.47;
	}
}

.cp-text--footnote,
.cp-text--footnote p {
	font-size: 14px;
	line-height: 1.38;
	letter-spacing: -0.008em;
}

.cp-text--color-secondary,
.cp-text--color-secondary p {
	color: var(--glyph-gray-secondary, #6e6e73);
}

.cp-text--color-blue,
.cp-text--color-blue p {
	color: var(--color-figure-blue, #007aff);
}

/* Resource link styling */
.cp-bg-secondary.cp-rounded {
	padding: 12px 20px !important;
}

.cp-bg-secondary.cp-rounded ul.links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-bg-secondary.cp-rounded ul.links li {
	margin: 0;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 2;
	background-position: left center;
}

.cp-bg-secondary.cp-rounded ul.links li a {
	font-size: 17px;
}

/* Resource Grid - matches /ios/whats-new/ implementation */
.resource-grid {
	display: grid;
	grid-template-columns: repeat(2, 2fr);
	column-gap: 2em;
	row-gap: 2em;
	width: 100%;
	box-sizing: border-box;
	margin-top: 1em;
}

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

a.resource-grid-item {
	color: unset;
}

a.resource-grid-item:hover {
	text-decoration: none !important;
}

.image-wrapper {
	width: 350px;
	height: 186px;
	border-radius: 8px;
}

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

@media only screen and (max-width: 390px) {
	.image-wrapper {
		width: 280px;
		height: 159px;
	}
}

.resource-grid-item img {
	border-radius: 8px;
	position: absolute;
	top: 0;
	left: 0;
	max-width: 100%;
	height: auto;
}

.resource-grid-item h4 {
	color: #666666;
	font-size: 15px;
	margin-top: 1em;
	cursor: pointer !important;
}

body[data-color-scheme="dark"] .resource-grid-item h4 {
	color: #D2D2D7;
}

.resource-grid-item h4:hover {
	text-decoration: none;
}

@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;
	}

	.resource-grid-item h4 {
		margin-top: 0.5em;
	}
}

/* Separator */
.cp-separator {
	height: 1px;
	background-color: var(--fill-gray-quaternary, #d2d2d7);
	border: none;
	margin: 0 auto;
	width: 75%;
	max-width: 980px;
}

.cp-column .cp-separator {
	width: 100%;
}

@media (max-width: 734px) {
	.cp-separator {
		width: 100%;
	}
}

/* Ultrahero */
.cp-ultrahero {
	text-align: center;
	width: 100%;
}

.cp-ultrahero__image {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 24px;
}

.cp-ultrahero__content {
	padding: 0 20px;
}

.cp-ultrahero__eyebrow {
	font-size: 14px;
	line-height: 1.28;
	font-weight: 600;
	letter-spacing: 0.007em;
	text-transform: uppercase;
	color: var(--glyph-gray-secondary, #6e6e73);
	margin: 0 0 8px;
}

.cp-ultrahero__title {
	font-size: 48px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.003em;
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	margin: 0 0 12px;
}

.cp-ultrahero__body {
	font-size: 21px;
	line-height: 1.38;
	font-weight: 400;
	letter-spacing: 0.011em;
	color: var(--glyph-gray-secondary, #6e6e73);
	margin: 0;
}

@media (max-width: 734px) {
	.cp-ultrahero__title {
		font-size: 32px;
		line-height: 1.125;
	}

	.cp-ultrahero__body {
		font-size: 17px;
		line-height: 1.47;
	}
}

/* Header */
.cp-header {
	font-size: 22px;
	line-height: 1.27;
	font-weight: 700;
	letter-spacing: .004em;
	margin: 0;
}

/* Image */
.cp-image {
	width: 100%;
}

.cp-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.cp-image__caption {
	font-size: 12px;
	line-height: 1.33;
	color: var(--glyph-gray-secondary, #6e6e73);
	margin: 8px 0 0;
}

/* Item List */
.cp-item-list {
	width: 100%;
}

.cp-item-list__title {
	font-size: 22px;
	line-height: 1.27;
	font-weight: 700;
	margin: 0 0 12px;
}

.cp-item-list__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 1068px) {
	.cp-item-list__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 734px) {
	.cp-item-list__grid {
		grid-template-columns: 1fr;
	}
}

.cp-item-list__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--fill-gray-quaternary, #d2d2d7);
}

.cp-item-list__card .vc-card__image {
	width: 100%;
}

/* Button (link row) */
.cp-button {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

.cp-button:hover {
	text-decoration: none;
}

.cp-button__row {
	display: flex;
	align-items: center;
}

.cp-button__col {
	display: flex;
	flex-direction: column;
}

.cp-button__icon {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.cp-button__text {
	font-size: 17px;
	line-height: 1.47;
	color: var(--color-figure-blue, #007aff);
}

/* URL Button */
.cp-url-button {
	display: inline-block;
	padding: 8px 20px;
	background-color: var(--color-figure-blue, #007aff);
	color: #fff;
	border-radius: 980px;
	font-size: 17px;
	font-weight: 400;
	text-decoration: none;
	text-align: center;
}

.cp-url-button:hover {
	text-decoration: none;
	opacity: 0.9;
}

/* Banner */
.cp-banner {
	padding: 20px;
	background-color: var(--fill-tertiary, #f5f5f7);
	border-radius: 12px;
	width: 100%;
}

.cp-banner__header {
	font-size: 22px;
	line-height: 1.27;
	font-weight: 700;
	margin: 0 0 8px;
}

.cp-banner__body {
	font-size: 14px;
	line-height: 1.42;
	color: var(--glyph-gray-secondary, #6e6e73);
	margin: 0;
}

/* Card */
.cp-card {
	padding: 20px;
	background-color: var(--fill-tertiary, #f5f5f7);
	border-radius: 12px;
	width: 100%;
}

.cp-card__title {
	font-size: 22px;
	line-height: 1.27;
	font-weight: 700;
	margin: 0 0 8px;
}

.cp-card__body {
	font-size: 14px;
	line-height: 1.42;
	color: var(--glyph-gray-secondary, #6e6e73);
	margin: 0 0 12px;
}

.cp-card__button {
	display: inline-block;
	font-size: 17px;
	color: var(--color-figure-blue, #007aff);
	text-decoration: none;
}

.cp-card__button:hover {
	text-decoration: underline;
}

/* Pull Quote */
.cp-pull-quote {
	border-top: 1px solid var(--fill-gray-quaternary, #d2d2d7);
	border-bottom: 1px solid var(--fill-gray-quaternary, #d2d2d7);
	padding: 24px 0;
	margin: 0;
	width: 100%;
}

.cp-pull-quote__text {
	font-size: 24px;
	line-height: 1.33;
	font-weight: 700;
	margin: 0 0 8px;
}

.cp-pull-quote__author {
	font-size: 14px;
	line-height: 1.42;
	color: var(--glyph-gray-secondary, #6e6e73);
	font-style: normal;
}
