/* ============================================================
   New look - compliance guides (global, English): /compliance/wcag, ada, section-508,
   european-accessibility-act and aoda. Markup: ejs/partials/compliance-page.ejs.
   Loaded after new-look/base.css and new-look/kit.css. Every rule is scoped under .cp (the page <main>).
   ============================================================ */

.cp {
	--cp-head: 68px; /* the fixed site header */
	--cp-measure: 70ch;
	--cp-accent-soft: #f3edfc;
	--cp-accent-ink: #5b2aa8;
}

/* The frame lines run above every panel, so a white cell never hides one */
.cp .acn-sec::before {
	z-index: 3;
}

.cp .acn-btn--line:hover {
	background: var(--acn-soft);
}

/* ============================================================
   1. Hero: the guide switcher, the title and four facts
   ============================================================ */

.cp .cp-hero {
	padding-top: calc(var(--cp-head) + clamp(36px, 5vw, 72px));
	padding-bottom: 0;
}

.cp-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: clamp(48px, 6vw, 80px);
	text-align: center;
}

/* The five guides as pills; the current one in purple */
.cp-switch {
	margin-bottom: clamp(36px, 4.5vw, 56px);
}

.cp .cp-switch ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 5px;
	border: 1px solid var(--acn-line);
	border-radius: 999px;
	background: #ffffff;
}

.cp .cp-switch a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 18px;
	border-radius: 999px;
	color: var(--acn-muted);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cp .cp-switch a:hover {
	background: var(--acn-soft);
	color: var(--acn-ink);
}

.cp .cp-switch a[aria-current="page"] {
	background: var(--acn-ink);
	color: #ffffff;
}

.cp .cp-hero__kicker {
	margin-bottom: 20px;
	color: var(--acn-accent-hover);
	font-size: 0.9375rem;
	font-weight: 500;
}

.cp .cp-hero__kicker span {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cp .cp-hero__kicker span::before {
	content: "";
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: var(--acn-accent);
}

.cp .cp-hero__title {
	max-width: 20em;
	color: var(--acn-ink);
	font-size: clamp(2.125rem, 1.35rem + 2.5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.cp .cp-hero__title span {
	display: block;
	margin-top: 6px;
	color: var(--acn-muted);
	font-weight: 400;
}

.cp .cp-hero__lead {
	max-width: 40em;
	margin-top: 24px;
	color: var(--acn-muted);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.cp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 34px;
}

/* The video button: a small purple disc with the play mark */
.cp .cp-btn--play {
	padding-inline-start: 8px;
}

.cp-btn__play {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cp-accent-soft);
	color: var(--acn-accent-hover);
}

.cp .acn-btn .cp-btn__play svg {
	width: 14px;
	height: 14px;
	margin-inline-start: 2px;
	transform: none;
}

/* Four facts in ruled cells */
.cp .cp-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-inline: 0;
}

.cp .cp-facts li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 26px clamp(16px, 2.2vw, 32px);
	border-inline-start: 1px solid var(--acn-line);
	text-align: center;
}

.cp .cp-facts li:first-child {
	border-inline-start: 0;
}

.cp .cp-facts b {
	font-size: 1.1875rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.cp .cp-facts span {
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.45;
}

/* ============================================================
   2. The guide: sticky contents beside the article
   ============================================================ */

.cp-guide__grid {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: clamp(48px, 6vw, 112px);
	align-items: start;
}

/* ---------- Contents ---------- */

.cp-toc {
	position: sticky;
	top: calc(var(--cp-head) + 32px);
}

.cp .cp-toc__title {
	margin-bottom: 14px;
	color: var(--acn-ink);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cp .cp-toc__list {
	border-inline-start: 1px solid var(--acn-line);
}

.cp .cp-toc__list a {
	display: block;
	margin-inline-start: -1px;
	padding: 8px 0 8px 18px;
	border-inline-start: 2px solid transparent;
	color: var(--acn-muted);
	font-size: 0.9375rem;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.cp .cp-toc__list a:hover {
	color: var(--acn-ink);
}

.cp .cp-toc__list a.is-active {
	border-inline-start-color: var(--acn-accent);
	color: var(--acn-ink);
	font-weight: 500;
}

/* ---------- Article ---------- */

.cp-article {
	max-width: 760px;
}

.cp-part {
	scroll-margin-top: calc(var(--cp-head) + 24px);
}

.cp-part + .cp-part {
	margin-top: clamp(56px, 6vw, 80px);
	padding-top: clamp(56px, 6vw, 80px);
	border-top: 1px dashed var(--acn-line);
}

.cp .cp-part__title {
	max-width: 24em;
	margin-bottom: 22px;
	color: var(--acn-ink);
	font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

/* Each block after the first keeps the same rhythm */
.cp-part > * + *:not(.cp-part__title) {
	margin-top: 28px;
}

.cp-part > .cp-part__title + * {
	margin-top: 0;
}

.cp-prose {
	max-width: var(--cp-measure);
}

.cp .cp-prose p {
	color: #45444f;
	font-size: 1.0625rem;
	line-height: 1.75;
	text-wrap: pretty;
}

.cp .cp-prose p + p {
	margin-top: 1em;
}

.cp .cp-article strong,
.cp .cp-article b {
	color: var(--acn-ink);
	font-weight: 500;
}

.cp .cp-article a:not([class]) {
	color: var(--acn-accent-hover);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.cp .cp-article a:not([class]):hover {
	color: var(--cp-accent-ink);
	text-decoration-thickness: 2px;
}

/* ---------- Ruled cells (principles, levels, who it covers) ---------- */

/* The help band runs straight into the scan section */
.cp .cp-help {
	padding-bottom: 0;
}

.cp .cp-cells {
	display: grid;
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--acn-line);
	border-radius: var(--acn-radius);
	background: var(--acn-line);
}

.cp .cp-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp .cp-cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* An odd last cell in two columns takes the full row */
.cp .cp-cells--2 > .cp-cell:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.cp .cp-cell {
	display: flex;
	flex-direction: column;
	padding: clamp(22px, 2.4vw, 30px);
	background: #ffffff;
}

.cp .cp-cell.is-key {
	background: var(--acn-soft);
}

.cp .cp-cell__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
	margin-bottom: 18px;
}

.cp .cp-cell__top:empty {
	display: none;
}

.cp .cp-cell__label {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 10px;
	border-radius: 10px;
	background: var(--cp-accent-soft);
	color: var(--cp-accent-ink);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.cp .cp-cell.is-key .cp-cell__label {
	background: var(--acn-accent);
	color: #ffffff;
}

.cp .cp-cell__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border: 1px solid #d9c6f6;
	border-radius: 999px;
	background: #ffffff;
	color: var(--cp-accent-ink);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	vertical-align: middle;
}

.cp .cp-cell__title {
	color: var(--acn-ink);
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.35;
}

.cp .cp-cell__text {
	margin-top: 8px;
	color: var(--acn-muted);
	line-height: 1.65;
}

/* A link to more (the Academy), pinned to the cell's foot */
.cp .cp-cell__more {
	margin-top: auto;
	padding-top: 18px;
	color: var(--acn-muted);
	font-size: 0.9375rem;
}

.cp .cp-cell__more a {
	font-weight: 500;
}

/* ---------- Timeline (versions, dates) ---------- */

.cp .cp-timeline {
	position: relative;
	display: flex;
	flex-direction: column;
}

.cp .cp-timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 24px;
	padding-bottom: 28px;
}

.cp .cp-timeline__item:last-child {
	padding-bottom: 0;
}

/* The line runs through the dots, from the first item to the last */
.cp .cp-timeline__item::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: -14px;
	left: 95px;
	width: 1px;
	background: var(--acn-line);
}

.cp .cp-timeline__item:last-child::before {
	display: none;
}

.cp .cp-timeline__item::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 91px;
	width: 9px;
	height: 9px;
	border: 2px solid var(--acn-accent);
	border-radius: 50%;
	background: #ffffff;
}

.cp .cp-timeline__item.is-now::after {
	background: var(--acn-accent);
	box-shadow: 0 0 0 4px var(--cp-accent-soft);
}

.cp .cp-timeline__year {
	color: var(--acn-ink);
	font-size: 1.125rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1.5;
}

.cp .cp-timeline__body {
	padding-inline-start: 20px;
}

.cp .cp-timeline__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--acn-ink);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.5;
}

.cp .cp-timeline__text {
	margin-top: 4px;
	color: var(--acn-muted);
	line-height: 1.65;
}

/* ---------- Check list ---------- */

.cp .cp-checks {
	display: flex;
	flex-direction: column;
	max-width: var(--cp-measure);
	border-top: 1px solid var(--acn-line);
}

.cp .cp-checks li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-block: 14px;
	border-bottom: 1px solid var(--acn-line);
	color: #45444f;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.cp .cp-checks svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	padding: 3px;
	border-radius: 50%;
	background: var(--acn-accent);
	color: #ffffff;
}

/* ---------- Chips (who a law covers) ---------- */

.cp .cp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cp .cp-chips li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border: 1px solid var(--acn-line);
	border-radius: 20px;
	background: #ffffff;
	color: var(--acn-ink);
	font-size: 0.9875rem;
	line-height: 1.35;
}

.cp .cp-chips li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--acn-accent);
}

/* ---------- Numbered steps ---------- */

.cp .cp-steps {
	display: flex;
	flex-direction: column;
	max-width: var(--cp-measure);
	counter-reset: none;
}

.cp .cp-steps li {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 22px;
}

.cp .cp-steps li:last-child {
	padding-bottom: 0;
}

/* A thin line joins the numbers */
.cp .cp-steps li::before {
	content: "";
	position: absolute;
	top: 40px;
	bottom: 4px;
	left: 17.5px;
	width: 1px;
	background: var(--acn-line);
}

.cp .cp-steps li:last-child::before {
	display: none;
}

.cp-steps__num {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--acn-line);
	border-radius: 50%;
	background: #ffffff;
	color: var(--cp-accent-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.cp .cp-steps p {
	padding-top: 5px;
	color: #45444f;
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* ---------- Note ---------- */

.cp .cp-note {
	padding: 20px 24px;
	border-radius: var(--acn-radius);
	background: var(--cp-accent-soft);
	color: #3b2a5c;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.cp .cp-note strong {
	color: var(--cp-accent-ink);
}

/* ---------- Video explainer card ---------- */

.cp-video {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	overflow: hidden;
	border-radius: 16px;
	background: var(--acn-dark);
	color: #ffffff;
}

.cp .cp-video__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #ece2f9; /* the posters' background */
}

/* The whole poster always shows: when the card is taller, the poster's own lavender fills above it */
.cp .cp-video__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	transition: transform 0.6s var(--acn-ease);
}

.cp .cp-video__media:hover img {
	transform: scale(1.03);
}

/* "Play video" in the poster's lower corner, clear of its title */
.cp-video__play {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border-radius: 999px;
	background: #ffffff;
	color: var(--acn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(44, 43, 54, 0.18);
	transition: transform 0.2s var(--acn-ease);
}

.cp-video__disc {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--acn-accent);
	color: #ffffff;
	transition: background-color 0.15s ease;
}

.cp-video__disc svg {
	width: 16px;
	height: 16px;
	margin-inline-start: 2px;
}

.cp .cp-video__media:hover .cp-video__play {
	transform: translateY(-2px);
}

.cp .cp-video__media:hover .cp-video__disc {
	background: var(--acn-accent-hover);
}

.cp .cp-video__media:focus-visible {
	outline: 3px solid var(--acn-accent-light);
	outline-offset: -3px;
}

.cp-video__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 3vw, 36px);
}

.cp .cp-video__tag {
	color: var(--acn-accent-light);
	font-size: 0.875rem;
	font-weight: 500;
}

.cp .cp-video__title {
	margin-top: 10px;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 500;
	line-height: 1.3;
	text-wrap: balance;
}

.cp .cp-video__text {
	margin-top: 10px;
	color: var(--acn-on-dark-muted);
	line-height: 1.6;
}

.cp .cp-video__meta {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--acn-dark-line);
	color: var(--acn-on-dark-muted);
	font-size: 0.875rem;
}

/* ---------- Keep learning ---------- */

.cp .cp-reading__list {
	border-top: 1px solid var(--acn-line);
}

.cp .cp-reading__link {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--acn-line);
	color: var(--acn-ink);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.cp .cp-reading__link:hover {
	background: var(--acn-soft);
}

.cp .cp-reading__tag {
	color: var(--acn-muted);
	font-size: 0.875rem;
}

.cp .cp-reading__title {
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.4;
}

.cp .cp-reading__list svg {
	color: var(--acn-accent);
	transition: transform 0.2s var(--acn-ease);
}

.cp .cp-reading__link:hover svg {
	transform: translateX(3px);
}

/* ============================================================
   3. How tabnav helps: the products as linked cells
   ============================================================ */

.cp .cp-help__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	padding-inline: 0;
	background: var(--acn-line);
}

.cp .cp-product {
	display: flex;
	background: #ffffff;
}

.cp .cp-product__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: clamp(24px, 2.4vw, 32px);
	color: var(--acn-ink);
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.cp .cp-product__link:hover {
	background: var(--acn-soft);
}

.cp .cp-product__link:focus-visible {
	outline-offset: -3px;
}

.cp-product__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 24px;
	border-radius: 12px;
	background: var(--cp-accent-soft);
	color: var(--acn-accent-hover);
}

.cp-product__tag {
	color: var(--acn-muted);
	font-size: 0.875rem;
}

.cp-product__title {
	margin-top: 4px;
	font-size: 1.1875rem;
	font-weight: 500;
	line-height: 1.35;
}

.cp-product__text {
	margin-top: 10px;
	margin-bottom: 22px;
	color: var(--acn-muted);
	font-size: 0.9875rem;
	line-height: 1.6;
}

.cp-product__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--acn-accent-hover);
	font-size: 0.9375rem;
	font-weight: 500;
}

.cp-product__more svg {
	transition: transform 0.2s var(--acn-ease);
}

.cp .cp-product__link:hover .cp-product__more svg {
	transform: translateX(3px);
}

/* ============================================================
   4. Free scan: the dark card
   ============================================================ */

.cp-scan__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
	border-radius: clamp(20px, 3vw, 32px);
	background: var(--acn-dark);
	color: #ffffff;
	text-align: center;
}

/* A faint purple glow behind the title */
.cp-scan__card::before {
	content: "";
	position: absolute;
	inset: -40% 10% auto;
	z-index: -1;
	height: 90%;
	background: radial-gradient(closest-side, rgba(142, 86, 220, 0.28), transparent);
	pointer-events: none;
}

.cp .cp-scan__card .acn-kicker {
	color: var(--acn-accent-light);
}

.cp .cp-scan__title {
	max-width: 18em;
	font-size: clamp(2rem, 1.4rem + 1.8vw, 2.875rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.cp .cp-scan__lead {
	max-width: 36em;
	margin-top: 16px;
	color: var(--acn-on-dark-muted);
	font-size: 1.0625rem;
}

.cp-scan__card .acn-scan {
	margin-top: 36px;
}

.cp-scan__card :focus-visible {
	outline-color: var(--acn-accent-light);
}

/* ============================================================
   6. Closing card
   ============================================================ */

.cp .cp-final {
	padding-top: 0;
	padding-bottom: clamp(56px, 6vw, 88px);
}

.cp-final__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-block: clamp(20px, 3vw, 32px);
	padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
	border: 1px solid var(--acn-line);
	border-radius: 14px;
	background: var(--acn-soft);
	text-align: center;
}

.cp .cp-final__title {
	max-width: 16em;
	font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.cp .cp-final__lead {
	max-width: 34em;
	margin-top: 16px;
	color: var(--acn-muted);
	font-size: 1.0625rem;
}

.cp-final__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

/* The FAQ section follows the soft help band's rhythm; the final card sits on white */
.cp .cp-faq + .cp-final {
	padding-top: clamp(56px, 6vw, 88px);
}

/* ============================================================
   Video dialog
   ============================================================ */

.cp-dialog {
	width: min(960px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: var(--acn-dark);
	color: #ffffff;
	overflow: hidden;
}

.cp-dialog::backdrop {
	background: rgba(20, 19, 28, 0.78);
	backdrop-filter: blur(4px);
}

.cp-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 12px 12px 20px;
}

.cp .cp-dialog__title {
	min-width: 0;
	overflow: hidden;
	font-size: 1rem;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cp-dialog__close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.cp-dialog__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.cp-dialog :focus-visible {
	outline: 3px solid var(--acn-accent-light);
	outline-offset: 2px;
}

.cp-dialog__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000000;
}

.cp-dialog__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1199px) {
	.cp .cp-help__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Below desktop the contents sit above the article, as a ruled card */
@media (max-width: 1099px) {
	.cp-guide__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.cp-toc {
		position: static;
		padding: 22px 24px;
		border: 1px solid var(--acn-line);
		border-radius: var(--acn-radius);
		background: var(--acn-soft);
	}

	.cp .cp-toc__list {
		columns: 2;
		column-gap: 32px;
		border: 0;
	}

	.cp .cp-toc__list li {
		break-inside: avoid;
	}

	.cp .cp-toc__list a {
		margin: 0;
		padding: 7px 0;
		border: 0;
	}

	.cp .cp-toc__list a.is-active {
		color: var(--acn-muted);
		font-weight: 400;
	}

	.cp-article {
		max-width: none;
	}

}

/* Tablet portrait and phone: the four facts in two rows */
@media (max-width: 899px) {
	.cp .cp-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cp .cp-facts li:nth-child(3) {
		border-inline-start: 0;
	}

	.cp .cp-facts li:nth-child(n + 3) {
		border-top: 1px solid var(--acn-line);
	}
}

@media (max-width: 767px) {
	/* Phone: the guides as separate pills that wrap, not one bar */
	.cp .cp-switch ul {
		gap: 8px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.cp .cp-switch a {
		padding: 8px 16px;
		border: 1px solid var(--acn-line);
	}

	.cp .cp-switch a[aria-current="page"] {
		border-color: var(--acn-ink);
	}

	/* Phone: compact product rows, the icon beside the text */
	.cp .cp-product__link {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 16px;
		padding: 22px 20px;
	}

	.cp-product__icon {
		grid-row: 1 / span 4;
		margin-bottom: 0;
	}

	.cp-product__tag {
		margin-top: 2px;
	}

	.cp-product__text {
		margin-top: 6px;
		margin-bottom: 12px;
	}

	.cp-hero__actions,
	.cp-final__actions {
		align-self: stretch;
	}

	.cp-hero__actions .acn-btn,
	.cp-final__actions .acn-btn {
		flex: 1 1 100%;
	}

	.cp .cp-facts li {
		padding: 20px 12px;
	}

	.cp .cp-facts b {
		font-size: 1.0625rem;
	}

	.cp .cp-facts span {
		font-size: 0.875rem;
	}

	.cp .cp-toc__list {
		columns: 1;
	}

	.cp .cp-cells--2,
	.cp .cp-cells--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.cp-video {
		grid-template-columns: minmax(0, 1fr);
	}

	.cp .cp-video__media {
		aspect-ratio: 776 / 524;
	}

	.cp .cp-timeline__item {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 14px;
	}

	.cp .cp-timeline__item::before {
		left: 63px;
	}

	.cp .cp-timeline__item::after {
		left: 59px;
	}

	.cp .cp-timeline__year {
		font-size: 1rem;
	}

	.cp .cp-reading__link {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 16px;
	}

	.cp .cp-reading__tag {
		grid-column: 1;
	}

	.cp .cp-reading__title {
		grid-column: 1;
	}

	.cp .cp-reading__list svg {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.cp .cp-help__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cp-dialog__bar {
		padding-inline-start: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cp .cp-video__media img,
	.cp-video__play,
	.cp .cp-reading__list svg,
	.cp-product__more svg {
		transition: none;
	}
}
