/*News & Releases*/

article.article.thumbnail-layout {
	width: 100% !important;
}

@media all and (max-width: 734px) {
	.legacy-grid {
		width: 87% !important;
		margin-right:auto;
		margin-left:auto;
	}
}

.column.xlarge-gutter,
.column.gutter {
	padding-left: 0.75em;
	padding-right: 0.75em;
}

.news .article-date,
.releases .article-date {
	margin-top: 0.5em;
	font-size: 0.875em;
}

.news .article-date:not(:last-child),
.releases .article-date:not(:last-child) {
	margin-bottom: 0.4em;
}

.news a.article-title,
.releases a.article-title {
	color: #333;
	/* word-break: keep-all; */
	display: block;
}

.rss-link {
	font-size: 12px;
}

.news a.article-title:hover,
.releases a.article-title:hover {
	color: #0088cc;
}

@media all and (max-width: 734px) {
	.news .nowrap,
	.releases .nowrap {
		white-space: normal;
	}

	.news .article-image,
	.releases .article-image {
		margin-bottom: 0em;
		display: block;
	}
}

.news .article-image,
.releases .article-image {
	width: 128px;
	height: auto !important;
}

body[data-color-scheme=dark] .article-image.theme-dark-image, 
body[data-color-scheme=light] .article-image.theme-light-image {
	display: inline;
}

.read-more-brief {
	margin-top: 0.8em;
}

.list li {
	margin-top: 0.8em;
}

ul.list,
ol.list {
	padding-left: 1em;
}

main ul,
main ol {
	padding-bottom: 0.8em !important;
	/* padding-left: 1em; */
	margin-top: 0.8em;
}

p.read-more-link {
	margin-top: 0.8em;
}

/*Shared styles*/

.article-image-container.divider-top {
	border-top: none;
}

.article-content-container.divider-top {
	border-top: 1px solid #d6d6d6;
}

.article h2 {
	font-weight: 500;
}

@font-face {
	font-family: "social-media-font";
	src: url("/news/styles/fonts/social-media-font.woff") format("woff"),
		url("/news/styles/fonts/social-media-font.ttf") format("truetype");
}

.icon:hover:after {
	color: rgb(41, 151, 255);
}

.icon.icon-share::before,
.icon.icon-share::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-facebook::before,
.icon.icon-facebook::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-link::before,
.icon.icon-link::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-mail::before,
.icon.icon-mail::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-instagram::before,
.icon.icon-instagram::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-pinterest::before,
.icon.icon-pinterest::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-tumblr::before,
.icon.icon-tumblr::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-twitter::before,
.icon.icon-twitter::after {
	font-family: "social-media-font" !important;
	content: "";
}

/* .icon.icon-arrowdowncircle::before,
.icon.icon-arrowdowncircle::after {
    font-family: "social-media-font" !important;
    content: ""
} */

.icon.icon-filter::before,
.icon.icon-filter::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-search::before,
.icon.icon-search::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-weibo::before,
.icon.icon-weibo::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-wechat::before,
.icon.icon-wechat::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-vk::before,
.icon.icon-vk::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-kakao::before,
.icon.icon-kakao::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-paginationright::before,
.icon.icon-paginationright::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-paginationleft {
	transform: rotate(180deg);
}

.icon.icon-paginationleft::before,
.icon.icon-paginationleft::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-clock::before,
.icon.icon-clock::after {
	font-family: "social-media-font" !important;
	content: "";
}

.icon.icon-line::before,
.icon.icon-line::after {
	font-family: "social-media-font" !important;
	content: "";
}

.social-share-container {
	position: relative;
}

.social-share-container .sharesheet-options {
	display: inline-block;
	/* visibility: hidden; */
	vertical-align: middle;
	margin: 0;
	/* overflow: hidden; */
	padding: 0.3em 0 0 0;
}

.social-share-container .sharesheet-options .social-option {
	color: #666;
	margin-top: 18px;
	position: relative;
	z-index: 2;
	line-height: 1em;
	list-style: none;
	opacity: 1;
	float: left;
	display: block;
}

.social-share-container .sharesheet-options .icon {
	display: block;
	font-size: 24px;
}

.social-share-container .sharesheet-options .icon:after {
	padding-left: 1px;
	padding-bottom: 1px;
}

.social-share-container .social-option ~ .social-option {
	margin-left: 19px;
}

.social-tooltip {
	position: absolute;
	top: -8px;
	left: 30px;
	font-size: 0.7em;
	background: #000;
	color: #fff;
	padding: 5px;
	line-height: 1;
	border-radius: 3px;
	letter-spacing: 0em;
}

@keyframes FadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@media all and (max-width: 734px) {
	.article-content-container {
		padding-bottom: 2.8em !important;
	}

	.social-share-container .sharesheet-options {
		visibility: visible !important;
		opacity: 1 !important;
	}

	article:hover .sharesheet-options li {
		animation: none !important;
		-webkit-animation: none !important;
	}

	.article-image-container.divider-top {
		border-top: 1px solid #d6d6d6;
	}

	.article-content-container.divider-top {
		border-top: none;
	}

	.article-image-container.text-right {
		text-align: left;
	}

	[data-modal="wechat"] .mobile-instr {
		display: inline !important;
	}

	[data-modal="wechat"] .wechat-instruction {
		display: none !important;
	}

	[data-modal="wechat"] .wechat-qrcode {
		display: none !important;
	}

	.wechat-instruction,
	[data-modal="wechat"] .mobile-instr {
		font-size: 24px !important;
	}
}

@media all and (max-width: 1068px) and (min-width: 735px) {
	.social-share-container .sharesheet-options {
		visibility: visible !important;
		opacity: 1 !important;
	}

	article:hover .sharesheet-options li {
		animation: none !important;
		-webkit-animation: none !important;
	}

	/* .social-share-container .sharesheet-options li:nth-child(4) {
        display: none;
    } */
}

/* article:hover .social-share-container .sharesheet-options {
	visibility: visible;
} */

/* article:hover .sharesheet-options li {
	animation: FadeIn 0.2s linear;
	-webkit-animation: FadeIn 0.2s linear;
	animation-fill-mode: both;
	-webkit-animation-fill-mode: both;
}

article:hover .sharesheet-options li:nth-child(1) {
	animation-delay: 0.1s;
	-webkit-animation-delay: 0.1s;
}

article:hover .sharesheet-options li:nth-child(2) {
	animation-delay: 0.15s;
	-webkit-animation-delay: 0.15s;
}

article:hover .sharesheet-options li:nth-child(3) {
	animation-delay: 0.2s;
	-webkit-animation-delay: 0.2s;
}

article:hover .sharesheet-options li:nth-child(4) {
	animation-delay: 0.25s;
	-webkit-animation-delay: 0.25s;
} */

a h2:hover {
	text-decoration: underline;
}

.wechat-instruction,
[data-modal="wechat"] .mobile-instr {
	text-align: center;
	font-size: 40px;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0em;
}

.wechat-qrcode {
	display: inline-block;
	vertical-align: top;
	margin-top: 50px;
}

[data-modal="wechat"] .mobile-instr {
	display: none;
}

[data-modal="in-wechat"] .pin {
	display: block;
	right: 32px;
	height: 96px;
	padding-bottom: 0;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.42861;
	font-weight: 400;
	letter-spacing: -0.016em;
	font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

[data-modal="in-wechat"].in-wechat {
	background: rgba(0, 0, 0, 0.7) !important;
}

[data-modal="in-wechat"] .pin .pin-caption {
	left: unset;
	right: 15px;
	margin-left: 0;
	color: #fff;
	width: 104px;
}

/*End Share styles*/

/* popup */

.modal {
	width: 100%;
	height: 100%;
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	background: rgba(0, 0, 0, 0.4);
	z-index: 99999;
	-webkit-overflow-scrolling: touch;
}

/* Inner */
.modal-inner {
	max-width: 700px;
	width: 90%;
	padding: 80px 0;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	background: #fff;
}

/* Close Button */
.modal-close {
	position: absolute;
	z-index: 9999;
	overflow: hidden;
	top: 28px;
	left: 28px;
	margin: 0;
	padding: 0;
	font-size: 40px;
	line-height: 1;
	width: 0.75em;
	height: 0.75em;
	cursor: pointer;
	background: none;
	border: 0;
	color: #888;
}

.modal-close::before,
.modal-close::after {
	font-family: "SF Pro Icons";
	color: inherit;
	display: inline-block;
	font-style: normal;
	font-weight: inherit;
	font-size: inherit;
	line-height: 1;
	text-decoration: underline;
	position: relative;
	z-index: 1;
	alt: "";
}

.modal-close::before,
.modal-close::after {
	text-decoration: none;
}

.modal-close::before {
	display: none;
}

.modal-close::before,
.modal-close::after {
	content: "";
}

.modal-close::after {
	position: absolute;
	top: -0.025em;
	left: -0.1em;
	padding: 0;
}

@media only screen and (max-width: 1068px) {
	.modal-close {
		top: 22px;
		left: 22px;
		font-size: 32px;
		width: 0.75em;
		height: 0.75em;
	}

	.modal-close::after {
		left: -0.09375em;
	}
}

.article-text > .inline-article-image img {
	width: 100% !important;
	border-radius: 18px;
}

/* end popup */

.article-text img {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.5em auto 1.5em 0;
}

.article-image-wrapper {
	margin-bottom: 1em;
}

.article-text ul li {
	margin-bottom: 6px;
}

p + ul,
ul + ul {
	margin-bottom: 0;
	padding-bottom: 0 !important;
}

/*card styles*/

.card-element-title {
	font-weight: 600;
	font-size: 1.2em;
}

.card-element-body {
	margin-top: 5px;
}

/* end card styles */

/*ultrahero start*/

@media all and (min-width: 1069px) {
	.ultrahero-element-container {
		display: flex;
		flex-direction: row-reverse;
	}
	.ultrahero-element-container .ultrahero-image {
		flex: 1;
	}
	.ultrahero-element-container div.ultrahero-content {
		width: 250px;
		flex: 0 0 250px;
	}

	.ultrahero-element-container .ultrahero-image img {
		border-radius: 0 20px 20px 0 !important;
		margin-bottom: 0;
		margin-top: 0;
	}

	.ultrahero-element-container div.ultrahero-content {
		border-radius: 20px 0 0 20px !important;
		padding: 1em;
	}
}

.ultrahero-element-container {
	margin-bottom: 1.5em;
}

.ultrahero-element-container .ultrahero-image img {
	border-radius: 20px 20px 0 0;
	margin-bottom: 0;
	height: 100%;
}

.ultrahero-element-container div.ultrahero-content {
	border-radius: 0 0 20px 20px;
	padding: 1em 1.5em 1em 1.5em;
}
body[data-color-scheme="light"] .ultrahero-element-container div.ultrahero-content {
	background-color: #e4e2e2;
}
body[data-color-scheme="dark"] .ultrahero-element-container div.ultrahero-content {
	background-color: #202020;
}

.ultrahero-element-container div.ultrahero-content .ultrahero-eyebrow {
	font-weight: 700;
	margin: 0 0 0 0;
	padding: 0;
}

/* .ultrahero-element-container div.ultrahero-content .ultrahero-title {
}

.ultrahero-element-container div.ultrahero-content .ultrahero-description {
} */

/*ultrahero end*/
ul + h3 {
	margin-top: 1em;
}

/*TILE*/
.featured-articles .tile {
	height: auto;
	background-color: rgba(207, 207, 207, 0.1);
}

/* featured list */
.featured-releases-list {
	margin-left: 0;
}
.featured-releases-list li {
	padding-top: 0.5em;
}

.featured-releases-list figure {
	display: inline-block;
	vertical-align: middle;
	padding-right: 0.3em;
}

/* Testing Light/Dark mode images */
/* Default: Light mode */
.theme-light-image {
	background-image: url("/assets/elements/icons/testflight-s/testflight-s-256x256.png");
	background-repeat: no-repeat;
	background-size: contain;
	display: inline-block;
	width: 128px;
	height: 128px;
}

.theme-dark-image {
	display: none;
}

/* Automatically switches when user prefers dark mode */
@media (prefers-color-scheme: dark) {
	.theme-light-image {
		display: none;
	}

	.theme-dark-image {
		background-image: url("/assets/elements/icons/testflight-s-dark/testflight-s-dark-256x256.png");
		background-repeat: no-repeat;
		background-size: contain;
		display: inline-block;
		width: 128px;
		height: 128px;
	}
}
/* .featured-releases-title {
} */

/* The dateline on a feed-rendered news article.
 *
 * Named for this file rather than borrowed from the newsroom set: the newsroom
 * rules are all ancestor-scoped - the News home section below scopes both the rule
 * and the --newsroom-* tokens to .newsroom-home, and the reference (newsroom.css)
 * to :is(.newsroom-article, .newsroom-home) - and an article page has neither
 * wrapper. These are the same declarations that set resolves to, so the
 * dateline matches it, but the name says where it lives.
 *
 * Applied by the renderer via the news app's content_page.date_classes config,
 * alongside typography-body-reduced for size and face. */
.news-dateline {
	font-weight: 600;
	color: #6e6e73;
}

body[data-color-scheme="dark"] .news-dateline {
	color: #a1a1a6;
}


/* ========== News home ==========
   Tile grid + "More from Apple Developer" list for the /news/ home page.
   Ported from the style-guide/devtest/newsroom proof of concept
   (newsroom.css + newsroom-home.css), keeping only what this page actually
   uses. The original newsroom.css also carried a separate article-view
   demo's rules (headers, share icons, body copy typography) - the news app's
   article pages are the real thing already, styled by content-page.css, so
   none of that is ported here.

   Type comes from ac-sasskit typography classes in the markup:
   typography-headline (page title), typography-eyebrow (section head),
   typography-tout (tile/row headlines), typography-caption (eyebrow badge),
   typography-body-reduced (dates). The hero headline and section head are the
   two sizes the token set has no entry for, styled directly below.

   The releases list (.news-releases) shares the tokens, RSS pill, eyebrow and
   Load More pill defined here, so each is scoped to both wrappers.

   Tiles are ported from /design/styles/design-alt.css and the bottom list
   from /learn/styles/article-tiles.css, renamed .nr-* so nothing collides
   with the global .tile. Three things collapsed those ~460 lines into this
   file:

     - One 6-column grid. Hero spans 6, 2-up spans 3, 3-up spans 2, so every
       hard-coded tile width falls out of the container instead of being
       redeclared per breakpoint.
     - <img> with aspect-ratio instead of background-image divs, which drops
       the whole height / min-height / flex-basis / padding-top stack and
       every per-card background rule, light and dark.
     - The bottom list reuses the row rhythm, hairlines and hover below
       instead of a second copy of them.
*/

/* ========== Surfaces ========== */

.newsroom-home,
.news-releases {
	--newsroom-secondary: #6e6e73;
	--newsroom-hairline: #d2d2d7;
	--newsroom-surface: #f5f5f7;
	--newsroom-surface-alt: #fff;
	--newsroom-tile-bg: #fff;
	--newsroom-pill-bg: rgb(0 0 0 / 0.06);
	--newsroom-pill-hover: rgb(0 0 0 / 0.12);
}

/* color-theme.js (loaded first thing by global-header.inc) always sets
   data-color-scheme on <body>, and dark-mode.css gates all of its own rules
   on that attribute rather than on prefers-color-scheme - matching it here
   means the manual toggle works and this never flips to dark grays on a
   still-light page. the news app's own template pins data-color-scheme to light
   sitewide, but the home page doesn't inherit that pin from anywhere, so
   these still need to hold up if it's ever removed or overridden. */
body[data-color-scheme="dark"] :is(.newsroom-home, .news-releases) {
	--newsroom-secondary: #a1a1a6;
	--newsroom-hairline: #424245;
	--newsroom-surface: #1d1d1f;
	--newsroom-surface-alt: #000;
	--newsroom-tile-bg: #000;
	--newsroom-pill-bg: rgb(255 255 255 / 0.12);
	--newsroom-pill-hover: rgb(255 255 255 / 0.22);
}

.newsroom-home > .section {
	padding-block: 4rem;
	background-color: var(--newsroom-surface);
}

.newsroom-home > .section-alt {
	background-color: var(--newsroom-surface-alt);
}

/* ========== Section head ========== */

.nr-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1.5rem;
}

.nr-section-head > :is(h1, h2) {
	margin-block: 0;
}

.nr-section-head > h1 {
	font-weight: 700;
}

/* Same badge treatment as the UPDATE eyebrow, on a pill. The grays are alpha
   so one pair of values works on both section surfaces, light and dark. */
.nr-rss {
	padding: 0.25rem 0.625rem;
	border-radius: 100px;
	background-color: var(--newsroom-pill-bg);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s;
}

.nr-rss:hover {
	background-color: var(--newsroom-pill-hover);
	text-decoration: none;
}

/* ========== Eyebrow + date ========== */

:is(.newsroom-home, .news-releases) .newsroom-eyebrow {
	text-transform: uppercase;
}

:is(.newsroom-home, .news-releases) :is(.newsroom-eyebrow, .newsroom-date) {
	font-weight: 600;
	color: var(--newsroom-secondary);
}

/* ========== Load more ========== */

/* The same pill as .nr-rss at body size, centered under the list. */
.nr-load-more {
	display: flex;
	justify-content: center;
	margin-block-start: 2.5rem;
}

.nr-pill {
	padding: 0.75rem 1.375rem;
	border: 0;
	border-radius: 100px;
	background-color: var(--newsroom-pill-bg);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s;
}

.nr-pill:hover {
	background-color: var(--newsroom-pill-hover);
}

.nr-pill[disabled] {
	cursor: default;
	opacity: 0.4;
}

/* ========== Tiles ========== */

.nr-tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 40px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 3-up is the base; the two wider tiles are the exceptions. */
.nr-tiles > li      { grid-column: span 2; }
.nr-tiles > .nr-2up { grid-column: span 3; }
.nr-tiles > .nr-hero { grid-column: span 6; }

.nr-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--newsroom-tile-bg);
	color: inherit;
	text-decoration: none;
}

/* The whole card is the link, so hovering it must not underline the copy -
   global's a:hover outspecifies the .nr-tile declaration above. */
.nr-tile:hover {
	text-decoration: none;
}

.nr-tile-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.4s;
}

.nr-tile-description {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
}

.nr-tile-description > :where(p, h3) {
	margin-block: 0;
}

/* The date sits on the baseline of the card, not under the headline: the li
   stretches to the row's tallest tile, .nr-tile takes that height, and the
   description flexes into it, so the auto margin absorbs whatever the
   headline left over. Headlines of different lengths still line their dates
   up. */
.nr-tile-description > .newsroom-date {
	margin-block-start: auto;
	padding-block-start: 0.25rem;
}

.nr-tile-headline {
	font-weight: 700;
}

/* ========== More from Apple Developer ========== */

.newsroom-article-list {
	margin-block: 2.5rem 0;
	padding: 0;
	list-style: none;
}

.newsroom-article-list > li {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding-block: 2rem;
}

.newsroom-article-list > li:first-child { padding-top: 0; }
.newsroom-article-list > li:last-child  { padding-bottom: 0; }

.newsroom-article-list > li + li {
	border-top: 1px solid var(--newsroom-hairline);
}

.newsroom-article-list img {
	flex: none;
	width: 170px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 12px;
}

.newsroom-article-list > li > div {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.newsroom-article-list :is(p, h3) {
	margin-block: 0;
}

.newsroom-article-list a {
	color: inherit;
	text-decoration: none;
}

.newsroom-article-list a:hover {
	text-decoration: underline;
}

/* ========== Large ==========
   Everything that only applies once there's room for two columns. */

@media only screen and (min-width: 735px) {
	.nr-hero .nr-tile {
		flex-direction: row;
	}

	/* 643/980 at L and 453/692 at M are both 65.5%, so one basis covers both.
	   min-width: 0 is required - a flex item's auto minimum is its intrinsic
	   size, so the 2048px source would otherwise ignore the basis and squeeze
	   the description to nothing. */
	.nr-hero .nr-tile-image {
		flex: 0 0 65.5%;
		min-width: 0;
	}

	.nr-hero .nr-tile-description {
		padding: 2rem;
	}

	.nr-hero .nr-tile-headline {
		font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
		font-size: 32px;
		line-height: 1.125;
		letter-spacing: 0.004em;
	}

	/* More from Apple Developer - .newsroom-article-list supplies the row,
	   thumbnail, rhythm, hairline and hover; this is only the second column.
	   No column gap, so the row hairlines meet in the middle and read as one
	   line; the inset comes from the row's own padding. */
	.nr-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.nr-list > li {
		padding-inline-end: 2.5rem;
	}

	/* Second row-mate of the first row: the base rules treat it as a new row. */
	.nr-list > li:nth-child(2) {
		padding-top: 0;
		border-top: 0;
	}

	.nr-list > li:nth-last-child(2) {
		padding-bottom: 0;
	}

	.nr-list img {
		width: 132px;
		aspect-ratio: 1;
	}
}

@media only screen and (min-width: 1069px) {
	.nr-tile:hover .nr-tile-image {
		transform: scale(1.02);
	}
}

/* ========== Medium ========== */

@media only screen and (max-width: 1068px) {
	.nr-hero .nr-tile-headline {
		font-size: 24px;
		line-height: 1.16667;
		letter-spacing: 0.009em;
	}

	.nr-tile-description {
		padding: 1.25rem;
	}
}

/* ========== Small ========== */

@media only screen and (max-width: 734px) {
	.newsroom-home > .section {
		padding-block: 3rem;
	}

	/* Everything stacks; the list falls back to the shared single-column rows. */
	.nr-tiles > li,
	.nr-tiles > .nr-2up,
	.nr-tiles > .nr-hero {
		grid-column: span 6;
	}

	/* Square thumbnails at S; the 16 / 9 crop is used at M and up. */
	.newsroom-article-list img {
		width: 120px;
		aspect-ratio: 1;
	}
}


/* ========== Releases ==========
   The /news/releases/ list. Its tokens, RSS pill, eyebrow and Load More pill
   are the News home section's, scoped there to .news-releases as well. */

/* Releases past the first page wait here for Load More. Any sitewide display
   rule on article would outrank the browser's own [hidden], so it's pinned. */
.news-releases .article[hidden] {
	display: none;
}


/* ========== News content pages ==========
   Overrides for news content pages, layered over content-page.css. This is the
   last section of news.css, which the news app loads after content-page.css and
   sc-gallery.css, so it wins ties with the shared rules. */

/* News body copy follows the newsroom reference at
   /style-guide/devtest/newsroom/ - see its newsroom.css:157, which pins the
   S-size values of .typography-intro at every width:
   19px / 1.4211026316 / 0.012em.

   SF Pro Display is the part that is easy to miss. The reference gets it from
   .typography-intro; an unstyled content page paragraph inherits from body
   instead, which is SF Pro Text. Text has wider glyphs, so the same copy at the
   same size wraps a line earlier and reads noticeably heavier.

   Applied to the layout container rather than .cp-text on purpose: it becomes the
   inherited default for text components that author no text style, while a
   component that does author one still sets its own size, leading and tracking on
   itself and wins without any specificity contest. */
.cp-root-column,
.cp-section-stack {
	font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
	font-size: 19px;
	line-height: 1.4211026316;
	letter-spacing: 0.012em;
}

/* Paragraph separation inside one text component. The shared rule is 0.8em,
   which is ~15px at this size; the newsroom reference uses 1.5rem
   (newsroom.css:166), which is what gives the copy its editorial rhythm. */
.cp-text p + *,
.cp-text ul + *,
.cp-text ol + * {
	margin-top: 1.5rem;
}

/* A heading and the content under it belong together, so that gap is tight -
   the reference sets margin-block: 3rem 0.5rem on an article h2
   (newsroom.css:174), i.e. 8px below rather than the 24px between paragraphs.
   The space *above* a heading comes from the rule before this one, since a
   heading almost always follows a paragraph or a list.

   Without this, headings fall through to content-page.css's shared 0.8em, which
   at 19px is ~15px - neither the paragraph rhythm nor the reference's. */
.cp-text h1 + *,
.cp-text h2 + *,
.cp-text h3 + *,
.cp-text h4 + *,
.cp-text h5 + *,
.cp-text h6 + * {
	margin-top: 0.5rem;
}

/* news.css styles the DB-rendered article markup, where a bare `ul, ol` rule
   sets padding-bottom: 0.8em !important and margin-top: 0.8em on every list.
   Both reach cp- markup too, and the cancelling rule there (`p + ul, ul + ul`)
   only covers a list that follows a paragraph or another list - so a list after
   a heading kept ~15px of bottom padding that nothing balanced.
   The sibling rules above own spacing in a text component; these stop news.css
   contributing to it. !important is needed to reach the !important above. */
.cp-text ul,
.cp-text ol {
	padding-bottom: 0 !important;
}

/* A list that opens a text component has no preceding sibling to take its gap
   from, so news.css's margin-top would stand alone. Component spacing already
   separates it from whatever is above. */
.cp-text > :is(ul, ol):first-child {
	margin-top: 0;
}

/* Readable measure for news articles, narrower than the shared 653px default.
   Governs section layouts via the custom property that .cp-section reads. */
:root {
	--cp-readable-width: 650px;
}

/* News keeps the full 24px page margin at narrow widths, where content-page.css
   drops the shared value to 20px. Editorial copy at 19px wants the wider gutter;
   the shared default is tuned for 17px. Same declaration as the base token, so
   news pages simply never step down. */
@media (max-width: 734px) {
	:root {
		--cp-page-margin: 24px;
	}
}

/* rootColumn layouts don't use that property - they carry the authored column
   width instead, which content-page.css forces to 75%/980px for fixed-width
   columns that propagate page margins. Cap those to the same measure here, so a
   news article's text column matches whichever layout produced it. Only the
   authored "Readable Content" columns are fixed-width with page margins; image
   columns are span-12 and stay full width.

   Scoped above the breakpoint on purpose: content-page.css releases these to
   full width at 734px and below, and an unscoped rule here would win on source
   order and cap mobile text too. */
@media (min-width: 735px) {
	.cp-width-fixed.cp-column--page-margins {
		width: 100% !important;
		max-width: 650px !important;
	}
}

/* News article titles default to heavier than the site's 600.

   This is only a default: the exact-attribute match deliberately fails once the
   renderer appends a cp-text--{weight} class, so an authored weight wins instead.
   A plain rule here would beat it on load order, since this section comes after
   content-page.css at equal specificity. .cp-title covers the section `title`
   component, which never carries a weight of its own. */
[class="typography-headline"],
.cp-title {
	font-weight: 700;
}

/* News pages append the social share links after the section stack, so the
   stack's own bottom padding would stack up with the space before them and
   leave the links floating. The article starts lower down instead. */
.cp-section-stack {
	padding-top: 48px;
	padding-bottom: 0;
}

/* Balances that 48px at the other end. Less than 48 on purpose: news.css puts
   ~25px inside the block above the icons (0.3em on the list plus an 18px margin
   on each item), and the 24px icon glyphs carry line-box space below them, so a
   matching 48 here reads as a bigger gap than the top. Scoped to the appended
   wrapper, so the copy a rootColumn layout carries inline after its title is
   unaffected. */
.news-share {
	padding-bottom: 32px;
}

/* Breathing room above and below a feed-rendered article's layout. On <main>
   rather than on the layout container, so it sits outside whatever vertical
   padding the layout carries itself - a rootColumn's is authored inline and a
   section stack's is set above, and adding to either would mean this value
   changing meaning depending on which layout produced the page.

   Scoped by the class news_app_default.tpl adds only for a content page:
   the app's index renders through the same template and does not want it. */
.news-content-page {
	padding-top: 16px;
	padding-bottom: 16px;
}
