.tribune-app {
	--app-stage: #0b0d10;
	--app-line-dark: #262a31;
	--app-soft-dark: #b8bcc4;
	--app-paper: #f7f5f0;
	--app-ink: #111;
	--app-soft: #4a4a4a;
	--app-line: #d8d3c8;
	--app-blue: #0b4f8a;
	--app-red: #d9151d;
	--app-gold: #ffc83d;
	--app-gutter: 16px;
	--app-focus: var(--app-blue);
	margin: 0;
	background: var(--app-paper);
	color: var(--app-ink);
	font-family: var(--tribune-font-sans, "Radio Canada", Arial, Helvetica, sans-serif);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
	.tribune-app {
		--app-gutter: 32px;
	}
}

.tribune-app *,
.tribune-app *::before,
.tribune-app *::after {
	box-sizing: border-box;
}

.tribune-app main :is(h1, h2, h3, p, ul, ol) {
	margin: 0;
}

.tribune-app main :is(ul, ol) {
	padding: 0;
	list-style: none;
}

.tribune-app main :is(h1, h2, h3) {
	font-family: var(--tribune-font-display, Cullman, "Radio Canada", Arial, Helvetica, sans-serif);
	font-weight: 600;
	font-synthesis: none;
	line-height: 1.1;
}

.tribune-app img {
	display: block;
	max-width: 100%;
	height: auto;
}

.tribune-app main a {
	color: inherit;
}

.tribune-app :focus-visible {
	outline: 3px solid var(--app-focus);
	outline-offset: 3px;
}

.tribune-app__hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.tribune-app__skip {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 20;
	padding: 10px 14px;
	background: #fff;
	color: var(--app-ink);
	font-weight: 700;
	transform: translateY(-200%);
}

.tribune-app__skip:focus {
	transform: none;
}

/* Top bar */
.tribune-app__bar {
	--app-focus: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	padding: 8px var(--app-gutter);
	background: var(--app-stage);
	border-bottom: 1px solid var(--app-line-dark);
}

.tribune-app__tribune {
	display: flex;
	align-items: center;
	min-height: 36px;
}

.tribune-app__tribune img {
	width: 176px;
}

.tribune-app__home {
	display: flex;
	align-items: center;
	min-height: 36px;
	color: #fff;
	font-family: var(--tribune-font-display, Cullman, Arial, sans-serif);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.tribune-app__home:hover {
	text-decoration: underline;
}

@media (max-width: 380px) {
	.tribune-app__tribune img {
		width: 150px;
	}

	.tribune-app__home {
		font-size: 14px;
	}
}

/* Hero */
.tribune-app__hero {
	--app-focus: #fff;
	position: relative;
	display: grid;
	gap: 40px;
	padding: 40px var(--app-gutter) 0;
	overflow: hidden;
	background:
		radial-gradient(ellipse 70% 60% at 78% 55%, rgba(30, 110, 190, 0.45), transparent 70%),
		radial-gradient(ellipse 50% 40% at 10% 0%, rgba(217, 21, 29, 0.16), transparent 70%),
		var(--app-stage);
	color: #fff;
}

@media (min-width: 900px) {
	.tribune-app__hero {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		align-items: center;
		gap: 48px;
		padding: 72px max(var(--app-gutter), calc((100% - 1160px) / 2)) 72px;
	}
}

.tribune-app__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--app-soft-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tribune-app__eyebrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ed1c24;
	box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.25);
}

.tribune-app__hero h1 {
	margin-top: 14px;
	max-width: 12ch;
	font-size: clamp(40px, 9.5vw, 68px);
	line-height: 1;
	letter-spacing: -0.01em;
}

.tribune-app__lede {
	margin-top: 18px;
	max-width: 34em;
	color: #d6d9de;
	font-size: clamp(17px, 2.2vw, 20px);
	line-height: 1.5;
}

/* Store buttons */
.tribune-app__stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.tribune-app__store {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 8px 22px 8px 12px;
	border: 1px solid #a6a6a6;
	border-radius: 14px;
	background: #000;
	color: #fff !important;
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.tribune-app__store:hover {
	border-color: #fff;
	background: #16181c;
	transform: translateY(-2px);
}

.tribune-app__store svg {
	flex: none;
	width: 34px;
	height: 34px;
}

.tribune-app__store span {
	display: flex;
	flex-direction: column;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.05;
	white-space: nowrap;
}

.tribune-app__store small {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	opacity: 0.85;
}

/* The reader's own store first, once the script knows it. */
.tribune-app--ios .tribune-app__store--ios,
.tribune-app--android .tribune-app__store--android {
	order: -1;
	border-color: #fff;
}

@media (max-width: 420px) {
	.tribune-app__stores--hero .tribune-app__store {
		flex: 1 1 100%;
		justify-content: center;
	}
}

.tribune-app__rating {
	margin-top: 18px !important;
	color: var(--app-soft-dark);
	font-size: 15px;
}

.tribune-app__rating strong {
	color: #fff;
}

/* The gold fills as far as the rating goes; the rest of the stars stay grey. */
.tribune-app__stars {
	margin-right: 4px;
	background: linear-gradient(90deg, var(--app-gold) var(--tribune-app-stars, 100%), #4a4e56 var(--tribune-app-stars, 100%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	letter-spacing: 0.08em;
}

.tribune-app__qr {
	display: none;
}

@media (min-width: 900px) {
	.tribune-app__qr {
		display: flex;
		align-items: center;
		gap: 16px;
		width: fit-content;
		margin-top: 32px;
		padding: 12px 20px 12px 12px;
		border: 1px solid var(--app-line-dark);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.04);
	}

	.tribune-app__qr img {
		width: 104px;
		height: 104px;
		border-radius: 8px;
	}

	.tribune-app__qr p {
		max-width: 190px;
		color: var(--app-soft-dark);
		font-size: 14px;
		line-height: 1.4;
	}

	.tribune-app__qr strong {
		display: block;
		color: #fff;
		font-size: 16px;
	}
}

/* The drawn phone */
.tribune-app__device {
	position: relative;
	display: flex;
	justify-content: center;
}

@media (max-width: 899px) {
	.tribune-app__device {
		max-height: 440px;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(#000 70%, transparent);
		mask-image: linear-gradient(#000 70%, transparent);
	}
}

.tribune-app__phone {
	width: min(300px, 80vw);
	aspect-ratio: 300 / 620;
	padding: 11px;
	border-radius: 50px;
	background: linear-gradient(145deg, #4a4e56, #1b1d21 40%, #2c2f35);
	box-shadow:
		inset 0 0 0 1.5px #5d626b,
		0 40px 80px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.04);
	transform: rotate(-2deg);
}

@media (min-width: 900px) {
	.tribune-app__phone {
		width: 320px;
	}
}

.tribune-app__screen {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: 40px;
	background: #fff;
	color: var(--app-ink);
}

.tribune-app__screen::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 80px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.tribune-app__island {
	position: absolute;
	top: 11px;
	left: 50%;
	z-index: 3;
	width: 92px;
	height: 27px;
	border-radius: 20px;
	background: #000;
	transform: translateX(-50%);
}

.tribune-app__appbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 48px 12px 9px;
	border-bottom: 1px solid #ccc;
}

.tribune-app__appbar img {
	width: 150px;
}

.tribune-app__appbar svg {
	flex: none;
	width: 24px;
	height: 24px;
	color: var(--app-ink);
}

/* The homepage, as the app opens on it */
.tribune-app__subscribe {
	display: flex;
	justify-content: flex-end;
	padding: 8px 10px 0;
}

.tribune-app__subscribe span {
	padding: 5px 10px;
	border-radius: 3px;
	background: var(--app-ink);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tribune-app__pills {
	display: flex;
	gap: 6px;
	padding: 10px 10px 10px;
	overflow: hidden;
	border-bottom: 1px solid #ddd;
	white-space: nowrap;
}

.tribune-app__pills span {
	flex: none;
	padding: 5px 10px;
	border: 1px solid #ccc;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
}

.tribune-app__pills b {
	color: var(--app-red);
	font-size: 9px;
}

.tribune-app__lead {
	padding: 12px 14px 0;
}

.tribune-app__lead img {
	width: 100%;
	aspect-ratio: 485 / 360;
	object-fit: cover;
}

.tribune-app__lead-title {
	margin-top: 10px !important;
	font-family: var(--tribune-font-display, Cullman, Arial, sans-serif);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.1;
}

.tribune-app__lead-dek {
	display: -webkit-box;
	margin-top: 6px !important;
	overflow: hidden;
	color: #555;
	font-family: var(--tribune-font-serif, Georgia, serif);
	font-size: 13px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.tribune-app__rows {
	margin: 12px 14px 0 !important;
	border-top: 2px solid var(--app-ink);
}

.tribune-app__rows li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e3e3e3;
}

.tribune-app__rows li > div {
	flex: 1;
	min-width: 0;
}

.tribune-app .tribune-app__rows img {
	flex: none;
	width: 42%;
	height: auto;
	aspect-ratio: 218 / 150;
	object-fit: cover;
}

.tribune-app__row-title {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--tribune-font-display, Cullman, Arial, sans-serif);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.tribune-app__row-when {
	display: block;
	margin-top: 4px !important;
	color: #6b6b6b;
	font-size: 10.5px;
}

/* The notification over the app */
.tribune-app__alert {
	position: absolute;
	top: 46px;
	right: 8px;
	left: 8px;
	z-index: 4;
	display: flex;
	gap: 10px;
	padding: 11px 13px;
	border-radius: 22px;
	background: rgba(242, 242, 245, 0.88);
	-webkit-backdrop-filter: blur(18px) saturate(1.6);
	backdrop-filter: blur(18px) saturate(1.6);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	animation: tribune-app-alert 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.tribune-app__alert > div {
	flex: 1;
	min-width: 0;
}

/* A flex row stretches its items, so the icon keeps its square here. */
.tribune-app .tribune-app__alert-icon {
	flex: none;
	align-self: flex-start;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	object-fit: cover;
}

.tribune-app__alert-from {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: #555;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.tribune-app__alert-from span + span {
	font-weight: 400;
	text-transform: none;
}

.tribune-app__alert-kind {
	margin-top: 2px !important;
	color: var(--app-red);
	font-size: 13px;
	font-weight: 700;
}

.tribune-app__alert-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

@keyframes tribune-app-alert {
	from {
		opacity: 0;
		transform: translateY(-28px) scale(0.96);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tribune-app__alert {
		animation: none;
	}

	.tribune-app__store {
		transition: none;
	}

	.tribune-app__store:hover {
		transform: none;
	}
}

/* A look inside: pictures of the app's screens */
.tribune-app__inside {
	padding-bottom: 8px !important;
}

.tribune-app__inside ul {
	display: grid;
	grid-auto-columns: min(62vw, 240px);
	grid-auto-flow: column;
	gap: 20px;
	margin: 28px calc(var(--app-gutter) * -1) 0 !important;
	padding: 4px var(--app-gutter) 24px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

@media (min-width: 1024px) {
	.tribune-app__inside ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-flow: row;
		margin: 28px 0 0 !important;
		padding: 4px 0 24px !important;
		overflow: visible;
	}
}

.tribune-app__inside li {
	scroll-snap-align: start;
}

.tribune-app__inside ul:focus-visible {
	outline-offset: -3px;
}

.tribune-app__inside figure {
	margin: 0;
}

.tribune-app__mini {
	display: block;
	padding: 7px;
	border-radius: 34px;
	background: linear-gradient(145deg, #4a4e56, #1b1d21 40%, #2c2f35);
	box-shadow: inset 0 0 0 1px #5d626b, 0 18px 36px rgba(0, 0, 0, 0.18);
}

.tribune-app .tribune-app__mini img {
	width: 100%;
	aspect-ratio: 390 / 844;
	border-radius: 27px;
	object-fit: cover;
	object-position: top;
}

.tribune-app__inside figcaption {
	margin-top: 14px;
	font-family: var(--tribune-font-display, Cullman, Arial, sans-serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

/* What's in the app */
.tribune-app__inside,
.tribune-app__features,
.tribune-app__steps {
	padding: 56px max(var(--app-gutter), calc((100% - 1160px) / 2));
}

.tribune-app__inside h2,
.tribune-app__features h2,
.tribune-app__steps h2 {
	font-size: clamp(28px, 5vw, 40px);
}

.tribune-app__features ul {
	display: grid;
	gap: 16px;
	margin-top: 28px !important;
}

@media (min-width: 600px) {
	.tribune-app__features ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1180px) {
	.tribune-app__features ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tribune-app__feature {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--app-line);
	border-radius: 18px;
	background: #fff;
}

.tribune-app__feature svg {
	width: 48px;
	height: 48px;
	padding: 11px;
	border-radius: 50%;
	background: #e8f0f8;
	color: var(--app-blue);
}

.tribune-app__feature:first-child svg,
.tribune-app__feature--live svg {
	background: #fde8e9;
	color: var(--app-red);
}

.tribune-app__feature h3 {
	margin-top: 16px !important;
	font-size: 22px;
}

.tribune-app__feature p {
	margin-top: 8px !important;
	color: var(--app-soft);
}

.tribune-app__feature > a {
	margin-top: auto;
	padding-top: 16px;
	color: var(--app-blue) !important;
	font-weight: 600;
}

/* Turn on alerts */
.tribune-app__steps {
	border-top: 1px solid var(--app-line);
	background: #fff;
}

.tribune-app__steps ol {
	display: grid;
	gap: 24px;
	margin-top: 28px !important;
	counter-reset: tribune-app-step;
}

@media (min-width: 768px) {
	.tribune-app__steps ol {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 32px;
	}
}

.tribune-app__steps li {
	position: relative;
	padding-left: 56px;
	color: var(--app-soft);
	counter-increment: tribune-app-step;
}

.tribune-app__steps li::before {
	content: counter(tribune-app-step);
	position: absolute;
	top: -4px;
	left: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--app-ink);
	color: #fff;
	font-family: var(--tribune-font-display, Cullman, Arial, sans-serif);
	font-size: 20px;
	font-weight: 600;
}

.tribune-app__steps strong {
	display: block;
	color: var(--app-ink);
	font-size: 18px;
}

/* Closing band */
.tribune-app__close {
	--app-focus: #fff;
	padding: 56px var(--app-gutter) 64px;
	background:
		radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 70%),
		var(--app-blue);
	color: #fff;
	text-align: center;
}

.tribune-app__close h2 {
	font-size: clamp(32px, 6vw, 52px);
}

.tribune-app__close p {
	margin-top: 10px !important;
	color: #dbe6f2;
	font-size: 18px;
}

.tribune-app__stores--close {
	justify-content: center;
}
