.custom-pill {
	border: 1px solid #1d1d1fe6;
	border-radius: 23px;
	color: #1d1d1f;
	vertical-align: middle;
	padding: 6px 16px;
	font-size: 14px;
	line-height: 1.42859;
	font-weight: 400;
	letter-spacing: -0.016em;
	font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	color: inherit;
	text-decoration: none;
	margin-top: 10px;
}

body[data-color-scheme="dark"] .custom-pill {
	border-color: #e2e2e0e6;
	color: #e2e2e0;
}

.custom-pill:hover {
	text-decoration: none;
	border-width: 2px;
	padding: 5px 15px;
}

/* ========== Grid ========== */
#main section.section {
	padding-top: 4em;
	padding-bottom: 4em;
}

@media only screen and (max-width: 734px) {
	#main section.section {
		padding-top: 3em;
		padding-bottom: 3em;
	}
}

.tile-content {
	min-width: 100%;
}

/* Developer Center Card Style */
.dc-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bg-light-override, #f5f5f7);
	margin-bottom: 24px;
}
body[data-color-scheme="dark"] .dc-card,
.theme-dark .dc-card {
	background: var(--bg-light-override, #1d1d1f);
}

/* Match the sibling .tile surface instead of the dc-card grey, so the card
   doesn't read as a different shade next to them. --sk-tile-background is
   scoped to .tile itself, so the values are set directly here. */
.dc-card.dc-card-tile-bg {
	background: #fff;
}

body[data-color-scheme="dark"] .dc-card.dc-card-tile-bg,
.theme-dark .dc-card.dc-card-tile-bg {
	background: #000;
}
.dc-card-pin {
	width: 58px;
	height: auto;
	margin-bottom: 1.5em;
}

/* The symbol SVGs ship with a hardcoded blue fill and no currentColor hook,
   so flip them by scheme the way the Developer Centers pages do. */
body[data-color-scheme="light"] .icon-bw {
	filter: brightness(0) saturate(100%);
}

body[data-color-scheme="dark"] .icon-bw {
	filter: brightness(0) saturate(100%) invert(100%);
}
.dc-card-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 3em;
}
.dc-card-headline {
	font-size: 32px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 12px;
}
.dc-card-p {
	margin-bottom: 0.8em;
}
.dc-card-link {
	margin-top: 1.5em;
}
.dc-card-media {
	margin: 0;
}
.dc-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dc-card-image-right {
	object-position: 57% center;
}
.dc-card-links {
	list-style: none;
	margin: 1em 0 0;
}
.dc-card-links li:not(:last-child) {
	margin-bottom: 0.4em;
}
/* Secondary feature inside a dc-card, split from the main one by a divider */
.dc-card-section {
	margin-top: 2em;
	padding-top: 2em;
	border-top: 1px solid #d2d2d7;
}
body[data-color-scheme="dark"] .dc-card-section,
.theme-dark .dc-card-section {
	border-top-color: #424245;
}
/* The SVG ships with a black fill, so use it as a mask and paint it the
   same #007AFF as .dc-card-pin. Bottom spacing matches the pin. */
.dc-card-touch-icon {
	display: block;
	width: 80px;
	height: 45px;
	margin-top: 12px;
	margin-bottom: 1.5em;
	background-color: #007AFF;
	-webkit-mask: url("/assets/elements/icons/touch-on-mac/touch-on-mac.svg") no-repeat left center / contain;
	mask: url("/assets/elements/icons/touch-on-mac/touch-on-mac.svg") no-repeat left center / contain;
}
@media only screen and (max-width: 1068px) {
	.dc-card-copy {
		padding: 2.5em;
	}
	.dc-card-headline {
		font-size: 28px;
	}
}
@media only screen and (max-width: 734px) {
	.dc-card {
		grid-template-columns: 1fr;
		border-radius: 12px;
	}
	.dc-card-copy {
		padding: 2em;
	}
	.dc-card-image {
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* ========== Bullet Lists ========== */
.tile-content.padding-top-small ul.bullet {
	margin-top: 1em;
}
.tile-content.padding-top-small ul.bullet li:not(:last-child) {
	margin-bottom: 0.8em;
}
.tile-content.padding-top-small ul.links:has(+ .group-labs-qa) {
	margin-bottom: 0;
}
.tile-content.padding-top-small .group-labs-qa {
	margin-top: 1.5em;
}
.tile-content.padding-top-small ul.group-labs-upcoming {
	list-style: none;
	margin: 2em 0 0;
}
.tile-content.padding-top-small ul.group-labs-upcoming li:not(:last-child) {
	margin-bottom: 0.8em;
}

/* ========== Design Campaign ========== */

/* -- Option A: Full-width background image --
.tile-a11y-campaign {
	position: relative;
	background-image: url("/events/images/dc-tile-bg-a11y_2x.jpg");
	background-size: cover;
	background-position: center;
	min-height: 300px;
	border: 1px solid var(--card-border-color);
	overflow: hidden;
}
-- End Option A -- */

/* -- Option B: Split image / copy layout -- */
.tile-a11y-campaign {
	display: flex;
	flex-direction: row;
	min-height: 340px;
	/* border: 1px solid var(--card-border-color); */
	overflow: hidden;
}

.tile-a11y-image {
	flex: 0 0 58%;
	background-image: url("/events/images/dc-tile-bg-a11y_2x.jpg");
	background-size: cover;
	background-position: center;
}

.tile-a11y-copy {
	flex: 1;
	padding: 2.5em 2.5em 2.5em 2em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5em;
}

.tile-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sk-body-text-color);
	margin: 0 0 0.25em;
}

.tile-a11y-copy h2 {
	margin-top: 0;
	margin-bottom: 0.4em;
}

.tile-a11y-campaign:hover .more {
	text-decoration: underline;
}

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

	.tile-a11y-image {
		flex: 0 0 auto;
		height: 240px;
		width: 100%;
	}

	.tile-a11y-copy {
		padding: 1.5em;
	}
}
/* -- End Option B -- */

.tile-iwm-campaign {
	position: relative;
	background-image: url("/events/images/dc-light-tile-bg-iwm_2x.jpg");
	min-height: 300px;
	border: 1px solid var(--card-border-color);
	overflow: hidden;
}

body[data-color-scheme="dark"] .tile-iwm-campaign {
	background-image: url("/events/images/dc-light-tile-bg-iwm_2x.jpg");
}

.grid-justify-self-end {
	justify-self: end;
}

@media only screen and (max-width: 1068px) {
	.tile-design-campaign {
		min-height: 300px;
	}
}

@media only screen and (max-width: 734px) {
	.tile-design-campaign {
		min-height: 400px;
	}
}

.tile-design-campaign .tile-content,
.tile-campaign .tile-content {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tile-design-campaign .tile-design-campaign-p,
.tile-campaign .tile-campaign-p {
	max-width: 500px;
}

.tile-campaign .tile-campaign-p {
	max-width: 720px;
}

.tile-design-campaign .place-self-center,
.tile-campaign .place-self-center {
	place-self: center;
}

.tile-design-campaign .tile-content .grid,
.tile-campaign .tile-content .grid {
	place-content: center;
}

@media only screen and (max-width: 734px) {
	.tile-design-campaign .tile-content .grid,
	.tile-campaign .tile-content .grid {
		place-content: flex-start;
		text-align: center;
	}
}

/* ========== WWDC26 Campaign ========== */
.tile-wwdc26-campaign {
	display: flex;
	flex-direction: row;
	min-height: 340px;
	overflow: hidden;
}

.tile-wwdc26-image {
	flex: 0 0 58%;
	background-image: url("/events/images/dc-tile-bg-wwdc26_2x.jpg");
	background-size: cover;
	background-position: center;
}

.tile-wwdc26-copy {
	flex: 1;
	padding: 2.5em 2.5em 2.5em 2em;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5em;
}

.tile-wwdc26-copy h4 {
	margin-top: 0;
	margin-bottom: 0.4em;
}

.tile-wwdc26-campaign:hover .more {
	text-decoration: underline;
}

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

	.tile-wwdc26-image {
		flex: 0 0 auto;
		height: 240px;
		width: 100%;
	}

	.tile-wwdc26-copy {
		padding: 1.5em;
	}
}

/* ========== Dynamic Events ========== */

:root {
	--sc-gallery-card-width: 310px !important;
	/* --sk-tile-padding: 1.5em; */
	/* --tile-custom-gap: 1em; */
}

body[data-color-scheme="light"] {
	--event-icon-color: #000;
}

body[data-color-scheme="dark"] {
	--event-icon-color: #fff;
}

.section-events h5:lang(ko) {
	word-break: break-word;
}

.section-events .tile .event-icon {
	color: var(--sk-glyph-red) !important;
	font-size: 40px;
	margin-bottom: 0.5em;
	margin-left: -0.2em;
}

.section-events .tile .event-icon.event-icon-bw {
	color: var(--sk-body-text-color) !important;
}

/* The Meet with Apple card (/assets/styles/meet-with-apple-card.css) is excluded here and below —
   it's a flex column with its own text colours. */
.section-events a:not(.mwa-card) {
	/* Allows bg colors to show up */
	display: block !important;
}

/* ========== Where Events Take Place ========== */

/* Fill the stretched tile and drop the link to the bottom edge, so the two
   tiles' links stay on a shared baseline when their copy runs to different
   lengths. */
.section-events a.tile-link-bottom {
	display: flex !important;
	flex-direction: column;
}

.tile-link-bottom .tile-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tile-link-bottom .tile-content .link {
	margin-top: auto;
	padding-top: 0.8em;
}

.section-events .tile:not(.mwa-card) h4,
.section-events .tile:not(.mwa-card) h5,
.section-events .tile:not(.mwa-card) p:not(.link),
.section-events a.tile:not(.mwa-card):hover {
	/* Allows bg colors to show up */
	text-decoration: none !important;
	color: var(--sk-body-text-color) !important;
}

.section-events .tile:hover .link {
	/* Allows bg colors to show up */
	text-decoration: underline;
}

.topic-icon {
	font-size: 28px;
	color: var(--event-icon-color) !important;
	margin-bottom: 0.5em;
}

.topic-icon.topic-icon-large {
	font-size: 40px;
}

/* ========== Dynamic Events - Skeleton Loading Styles ========== */
.skeleton-card {
	pointer-events: none;
	cursor: default;
}

.skeleton-shimmer {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.1) 0%,
		rgba(255, 255, 255, 0.2) 50%,
		rgba(255, 255, 255, 0.1) 100%
	);
	background-size: 200% 100%;
	animation: shimmer 2s infinite;
	border-radius: 4px;
	margin-bottom: 0.5em;
}

body[data-color-scheme="dark"] .skeleton-shimmer {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.05) 0%,
		rgba(255, 255, 255, 0.15) 50%,
		rgba(255, 255, 255, 0.05) 100%
	);
	background-size: 200% 100%;
}

.skeleton-title {
	height: 20px;
	width: 90%;
	margin-bottom: 0.75em;
}

.skeleton-date {
	height: 14px;
	width: 50%;
	margin-bottom: 0.75em;
}

.skeleton-detail {
	height: 12px;
	width: 100%;
	margin-bottom: 0.3em;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

/* Hide skeleton when loading is complete */
[data-loading="false"] .skeleton-card {
	display: none;
}
