/* Lanka Ideas - idea page (mockup 02-idea-page.png) */

.idea-head {
	padding-top: 40px;
	padding-bottom: 64px;
}

.idea-head__crumb {
	margin-bottom: 40px;
}

.idea-head__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 22px;
}

.idea-head__type {
	font-size: 13px;
	color: var(--muted);
}

.idea-head__title {
	font-size: var(--fs-title);
	line-height: 1.08;
	letter-spacing: var(--ls-title);
	max-width: 1000px;
}

.idea-head__sub {
	margin-top: 14px;
	max-width: 900px;
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 300;
	line-height: 1.35;
	color: var(--text-sub);
}

/* Header image with lime cover-line box */
.idea-cover {
	position: relative;
}

.idea-cover__img {
	display: block;
	width: 100%;
	height: 560px;
	object-fit: cover;
}

.cover-line {
	position: absolute;
	right: var(--edge);
	bottom: -60px;
	width: 400px;
	margin: 0;
	padding: 40px 40px 44px;
	background: var(--idea-accent, var(--lime));
	color: var(--idea-on-accent, var(--text));
}

.cover-line blockquote {
	margin: 22px 0 0;
}

.cover-line p {
	font-family: var(--font-head);
	font-size: 24px;
	line-height: 1.3;
	color: inherit;
}

/* Topic tag in the idea's own accent colour */
.tag--idea {
	background: var(--idea-accent, var(--lime));
	color: var(--idea-on-accent, var(--text));
}

/* Summary, author and actions */
.idea-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 96px;
	padding-top: 64px;
}

.idea-intro.has-line {
	padding-top: 110px;
}

.idea-intro__text {
	font-family: var(--font-head);
	font-size: 22px;
	line-height: 1.45;
	max-width: 560px;
}

.author {
	display: flex;
	gap: 14px;
	align-items: center;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
}

.author__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--soft);
	font-size: 12px;
	font-weight: 600;
}

.author__name {
	font-size: 14px;
	font-weight: 600;
}

.author__date {
	font-size: 12.5px;
	color: var(--muted);
}

.idea-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

/* Body: contents list + article */
.idea-body {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 96px;
	align-items: start;
	padding-top: 80px;
}

.idea-aside {
	position: sticky;
	top: 24px;
}

.toc ul {
	list-style: none;
}

.toc a {
	display: block;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	line-height: 1.4;
	color: var(--muted);
}

.toc a:hover {
	color: var(--text);
}

.toc a.is-active {
	color: var(--text);
	font-weight: 600;
	border-bottom: 1.5px solid var(--text);
}

.aside-card {
	margin-top: 24px;
	padding: 22px;
	background: var(--soft);
}

.ic--sm {
	width: 26px;
	height: 26px;
}

.aside-card__title {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
}

.aside-card__text {
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--muted);
}

.aside-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 6px 0;
	font-size: 12.5px;
	font-weight: 600;
}

.aside-card__link:hover {
	text-decoration: underline;
}

.toc-mobile {
	display: none;
}

.idea-main {
	min-width: 0;
	max-width: 720px;
}

/* Video */
.idea-video {
	position: relative;
	margin: 32px 0 36px !important;
	background: var(--dark);
}

.idea-video__play {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
}

.idea-video__play img,
.idea-video video,
.idea-video__frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	border: 0;
}

.idea-video__btn {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: #fff;
	color: var(--text);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	transition: transform 0.15s ease;
}

.idea-video__play:hover .idea-video__btn {
	transform: scale(1.06);
}

.idea-video__tag {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 8px 14px;
	background: var(--lime);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

/* Version note */
.version-note {
	margin-top: 40px;
	padding: 22px 24px;
	background: var(--soft);
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-body);
}

.version-note__title {
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}

/* PDF card */
.pdf-card {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-top: 40px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--idea-accent, var(--lime-strong));
}

.pdf-card__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	background: var(--idea-accent, var(--lime));
	color: var(--idea-on-accent, var(--text));
	font-size: 11px;
	font-weight: 600;
}

.pdf-card__text {
	flex: 1;
	min-width: 0;
}

.pdf-card__title {
	font-size: 14px;
	font-weight: 600;
}

.pdf-card__meta {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

.pdf-card__actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

/* Earlier versions */
.versions {
	margin-top: 16px;
	border: 1px solid var(--line);
	padding: 18px 24px 6px;
}

.versions__title {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.versions ul {
	list-style: none;
}

.versions__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.versions__row:first-child {
	border-top: 0;
}

.versions__name {
	font-size: 13.5px;
}

.versions__note {
	font-size: 12.5px;
	color: var(--muted);
}

.versions__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	min-height: 44px;
	font-size: 13px;
	font-weight: 600;
}

.versions__link:hover {
	text-decoration: underline;
}

.versions__page {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Older version that has a newer idea page */
.idea-newer {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 900px;
	margin-top: 22px;
	padding: 14px 18px;
	background: var(--soft);
	border-left: 3px solid var(--idea-accent, var(--lime-strong));
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--text-body);
}

.idea-newer__icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--text);
}

.idea-newer a {
	font-weight: 600;
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Feedback */
.feedback {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.feedback__title {
	font-size: 14px;
	font-weight: 600;
}

.feedback__text {
	margin-top: 2px;
	font-size: 13px;
	color: var(--muted);
}

/* More ideas */
.more-ideas {
	padding-top: 110px;
	padding-bottom: 110px;
}

.more-ideas__grid {
	margin-top: 28px;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.idea-body {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 56px;
	}
	.idea-intro {
		gap: 56px;
	}
}

/* ---------- Phone and small tablet ---------- */
@media (max-width: 900px) {
	.idea-head {
		padding-top: 20px;
		padding-bottom: 32px;
	}
	.idea-head__crumb {
		margin-bottom: 24px;
	}
	.idea-head__tags {
		margin-bottom: 16px;
	}
	.idea-head__title {
		letter-spacing: var(--ls-title);
	}
	.idea-head__sub {
		font-size: 19px;
	}
	.idea-cover__img {
		height: 280px;
	}
	.cover-line {
		position: static;
		width: auto;
		padding: 26px var(--pad) 30px;
	}
	.cover-line p {
		font-size: 20px;
	}
	.cover-line blockquote {
		margin-top: 16px;
	}
	.idea-intro,
	.idea-intro.has-line {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding-top: 36px;
	}
	.idea-intro__text {
		font-size: 19px;
	}
	.idea-body {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding-top: 40px;
	}
	.idea-aside {
		display: none;
	}
	.toc-mobile {
		display: block;
		margin-bottom: 32px;
		border: 1px solid var(--line);
		background: var(--soft);
	}
	.toc-mobile summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 0 18px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		list-style: none;
	}
	.toc-mobile summary::-webkit-details-marker {
		display: none;
	}
	.toc-mobile[open] summary svg {
		transform: rotate(180deg);
	}
	.toc-mobile ul {
		list-style: none;
		padding: 0 18px 10px;
	}
	.toc-mobile a {
		display: flex;
		align-items: center;
		min-height: 44px;
		border-top: 1px solid var(--line);
		font-size: 14px;
		color: var(--text-sub);
	}
	.pdf-card {
		flex-wrap: wrap;
		gap: 16px;
		padding: 18px;
	}
	.pdf-card__text {
		flex-basis: calc(100% - 70px);
	}
	.pdf-card__actions {
		width: 100%;
	}
	.pdf-card__actions .bx {
		flex: 1;
		justify-content: space-between;
	}
	.versions {
		padding: 14px 18px 4px;
	}
	.versions__row {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}
	.feedback {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.more-ideas {
		padding-top: 72px;
		padding-bottom: 72px;
	}
}

/* ---------- Full document: PDF viewer ---------- */
.doc {
	margin-top: 96px;
	scroll-margin-top: 16px;
}

.doc__head {
	margin-top: 0;
}

.doc__title {
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.pdfv {
	position: relative;
	margin-top: 12px;
	border: 1px solid var(--line);
	background: #EFEEEA;
}

.pdfv__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.pdfv__group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pdfv__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: var(--btn-h);
	height: var(--btn-h);
	padding: 0 10px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--text);
	font-size: 13px;
	font-weight: 500;
}

.pdfv__btn:hover {
	border-color: var(--text);
}

.pdfv__btn svg {
	flex-shrink: 0;
}

.pdfv__full-off,
.pdfv.is-full .pdfv__full-on {
	display: none;
}

.pdfv.is-full .pdfv__full-off,
.pdfv__full-on {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pdfv__pageno {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
}

.pdfv__pageno input {
	width: 56px;
	height: var(--btn-h);
	padding: 0 6px;
	border: 1px solid var(--line);
	text-align: center;
	font-size: 13px;
	color: var(--text);
	-moz-appearance: textfield;
}

.pdfv__pageno input::-webkit-inner-spin-button,
.pdfv__pageno input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pdfv__zoom {
	min-width: 48px;
	text-align: center;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.pdfv__stage {
	position: relative;
	height: min(82vh, 980px);
	min-height: 420px;
	overflow: auto;
	padding: 16px;
	text-align: center;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.pdfv:not(.is-ready) .pdfv__stage {
	height: auto;
	min-height: 0;
	overflow: visible;
}

.pdfv__page {
	display: block;
}

.pdfv__stage > .pdfv__page {
	margin: 0 auto 16px;
	background: #fff;
	border: 1px solid #DCDAD3;
}

.pdfv__stage canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.pdfv__start {
	position: relative;
	display: block;
	width: 100%;
	max-width: 520px;
	margin: 8px auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.pdfv__poster {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: contain;
	border: 1px solid #DCDAD3;
	background: #fff;
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

.pdfv__start:hover .pdfv__poster {
	opacity: 1;
}

.pdfv__start-label {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.pdfv.is-loading .pdfv__start-label .bx__label::after {
	content: " ...";
}

.pdfv__error {
	padding: 40px 20px;
	font-size: 14px;
	color: var(--text-sub);
}

/* Full screen (real full screen, or the fallback used on iPhone) */
.pdfv.is-full {
	position: fixed;
	inset: 0;
	z-index: 1000;
	margin: 0;
	border: 0;
	display: flex;
	flex-direction: column;
}

.pdfv:fullscreen {
	display: flex;
	flex-direction: column;
	background: #EFEEEA;
}

.pdfv.is-full .pdfv__stage,
.pdfv:fullscreen .pdfv__stage {
	flex: 1;
	height: auto;
	max-height: none;
}

html.pdfv-open,
html.pdfv-open body {
	overflow: hidden;
}

.doc .versions {
	margin-top: 12px;
}

@media (max-width: 900px) {
	.doc {
		margin-top: 56px;
	}
	.pdfv__stage {
		height: 75vh;
		padding: 10px;
	}
	.pdfv__bar {
		justify-content: center;
		padding: 8px;
	}
	.pdfv__btn--text span {
		display: none;
	}
	.pdfv.is-full .pdfv__btn--text .pdfv__full-off span {
		display: inline;
	}
	.pdfv__start-label {
		white-space: normal;
		width: max-content;
		max-width: 86%;
	}
}

/* ---------- Discussion ---------- */
.discussion {
	padding-top: 96px;
	scroll-margin-top: 16px;
}

.discussion__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 96px;
	align-items: start;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.discussion__note {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--muted);
}

.discussion__main {
	max-width: 720px;
}

.cmt-guest {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--lime-strong);
}

.cmt-guest__title {
	font-size: 15px;
	font-weight: 600;
}

.cmt-guest__text {
	margin-top: 2px;
	font-size: 13px;
	color: var(--muted);
}

.cmt-form {
	padding: 22px 24px 20px;
	border: 1px solid var(--line);
	background: var(--bg);
}

.cmt .cmt-form {
	margin: 16px 0 4px;
}

.cmt-form textarea.inp {
	min-height: 120px;
}

.cmt-form__replying {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--text-sub);
}

.cmt-form__replying a {
	margin-left: 8px;
	text-decoration: underline;
}

.cmt-form__files {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 12px;
}

.cmt-form__file {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--btn-h);
	padding: 0 14px;
	border: 1px solid var(--line);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.cmt-form__file:hover,
.cmt-form__file:focus-within {
	border-color: var(--text);
}

.cmt-form__file input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.cmt-form__hint {
	font-size: 12.5px;
	color: var(--muted);
}

.cmt-form__hint.is-error {
	color: var(--error);
}

.cmt-form__rules {
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--muted);
}

.cmt-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.cmt-form__who {
	font-size: 12.5px;
	color: var(--muted);
}

.cmt-form__who a {
	text-decoration: underline;
}

.cmt-list {
	margin-top: 28px;
}

.cmt-empty {
	font-size: 14px;
	color: var(--muted);
}

.cmt {
	padding: 22px 0;
	border-top: 1px solid var(--line);
	scroll-margin-top: 24px;
}

.cmt__replies {
	margin-top: 14px;
	padding-left: 24px;
	border-left: 2px solid var(--line);
}

.cmt__replies .cmt {
	padding: 14px 0 6px;
}

.cmt__replies .cmt:first-child {
	border-top: 0;
	padding-top: 4px;
}

.cmt--pending {
	opacity: 0.85;
}

.cmt__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cmt__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--soft);
	font-size: 12px;
	font-weight: 600;
}

.cmt__name {
	font-size: 14px;
	font-weight: 600;
}

.cmt__date {
	font-size: 12px;
	color: var(--muted);
}

.cmt__badge {
	margin-left: auto;
	padding: 4px 10px;
	background: var(--warn-bg);
	color: var(--warn);
	font-size: 12px;
	font-weight: 500;
}

.cmt__text {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text-body);
	overflow-wrap: anywhere;
}

.cmt__text a {
	text-decoration: underline;
}

.cmt__images {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 12px;
	max-width: 520px;
}

.cmt__images img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	border: 1px solid var(--line);
}

.cmt__actions {
	display: flex;
	gap: 18px;
	margin-top: 8px;
}

.cmt__report {
	margin: 0;
}

.cmt__act {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
}

.cmt__act:hover {
	color: var(--text);
	text-decoration: underline;
}

@media (max-width: 1100px) {
	.discussion__grid {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 56px;
	}
}

@media (max-width: 900px) {
	.discussion {
		padding-top: 64px;
	}
	.discussion__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 28px;
	}
	.cmt-guest {
		flex-direction: column;
		align-items: flex-start;
	}
	.cmt-form {
		padding: 18px;
	}
	.cmt__images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cmt__replies {
		padding-left: 14px;
	}
}

/* =====================================================================
   Article content in each idea's own PDF colours.
   1. A palette-driven base (any idea with a palette gets it).
   2. Touches taken from each of the five PDFs.
   The page layout, header and footer never change. Small text never sits
   on a mid-tone colour; every pair below is checked at 4.5:1 or more.
   ===================================================================== */
.idea.has-palette .idea-article {
	--th-bg: var(--idea-base);
	--th-fg: var(--idea-on-base);
	--zebra: color-mix(in srgb, var(--idea-accent) 7%, #fff);
	--kp-bg: var(--idea-base);
	--kp-fg: var(--idea-on-base);
	--kp-sub: color-mix(in srgb, var(--idea-on-base) 78%, var(--idea-base));
	--kp-num-bg: var(--idea-accent);
	--kp-num-fg: var(--idea-on-accent);
	--stat-bg: var(--idea-base);
	--stat-value: var(--idea-accent);
	--stat-fg: color-mix(in srgb, var(--idea-on-base) 80%, var(--idea-base));
	--callout-bg: color-mix(in srgb, var(--idea-accent) 10%, #fff);
	--callout-bar: var(--idea-accent);
	--callout-title: var(--text);
	--quote-bg: var(--idea-base);
	--quote-fg: var(--idea-on-base);
	--quote-bar: var(--idea-accent);
	--cap-mark: var(--idea-accent);
	--h2-bar: var(--idea-accent);
}

.idea.has-palette .idea-article h2::before {
	content: "";
	display: block;
	width: 28px;
	height: 4px;
	margin-bottom: 14px;
	background: var(--h2-bar);
}

/* Tables */
.idea.has-palette .idea-article th {
	background: var(--th-bg);
	color: var(--th-fg);
	border-bottom: 0;
}

.idea.has-palette .idea-article tbody tr:nth-child(even) td {
	background: var(--zebra);
}

/* Key points */
.idea.has-palette .idea-article .li-keypoint {
	background: var(--kp-bg);
	border-color: var(--kp-bg);
}

.idea.has-palette .idea-article .li-keypoint::before {
	background: var(--kp-num-bg);
	color: var(--kp-num-fg);
}

.idea.has-palette .idea-article .li-keypoint p {
	color: var(--kp-sub);
}

.idea.has-palette .idea-article .li-keypoint p.li-keypoint__title {
	color: var(--kp-fg);
}

/* Number highlights */
.idea.has-palette .idea-article .li-stat {
	background: var(--stat-bg);
	border-color: var(--stat-bg);
}

.idea.has-palette .idea-article .li-stat p {
	color: var(--stat-fg);
}

.idea.has-palette .idea-article .li-stat p.li-stat__value {
	color: var(--stat-value);
	font-weight: 600;
}

/* Callouts */
.idea.has-palette .idea-article .li-callout {
	position: relative;
	background: var(--callout-bg);
	border-left-color: var(--callout-bar);
	border-left-width: 4px;
}

.idea.has-palette .idea-article .li-callout p.li-callout__title {
	color: var(--callout-title);
}

/* Quotes */
.idea.has-palette .idea-article blockquote {
	background: var(--quote-bg);
	border-left: 4px solid var(--quote-bar);
}

.idea.has-palette .idea-article blockquote p {
	color: var(--quote-fg);
}

/* Captions */
.idea.has-palette .idea-article .wp-element-caption::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	background: var(--cap-mark);
	vertical-align: 1px;
}

/* ---------- The Heat Beneath: orange on black, halftone dots ---------- */
.idea.idea--the-heat-beneath .idea-article {
	--callout-bg: #F6F4EC;
	--zebra: #F6F4EC;
}

.idea.idea--the-heat-beneath .idea-article .li-callout {
	padding-right: 84px;
}

.idea.idea--the-heat-beneath .idea-article .li-callout::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 14px;
	width: 56px;
	height: 40px;
	background-image: radial-gradient(circle, #F1601C 2px, transparent 2.4px);
	background-size: 8px 8px;
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
	mask-image: linear-gradient(to left, #000 20%, transparent);
	pointer-events: none;
}

.idea.idea--the-heat-beneath .idea-article .li-stat p.li-stat__value {
	font-size: 28px;
}

/* ---------- Stop the Race: pink, cyan and purple number boxes ---------- */
.idea.idea--stop-the-race .idea-article {
	--kp-bg: #ECE7FF;
	--kp-fg: #261254;
	--kp-sub: #3E2C6E;
	--kp-num-bg: #261254;
	--kp-num-fg: #FFFFFF;
	--callout-bg: #ECE7FF;
	--callout-title: #261254;
	--zebra: #F5F2FF;
}

.idea.idea--stop-the-race .idea-article .li-stat:nth-child(3n + 1) {
	--stat-bg: #FF4E8B;
	--stat-value: #261254;
	--stat-fg: #261254;
}

.idea.idea--stop-the-race .idea-article .li-stat:nth-child(3n + 2) {
	--stat-bg: #26C3D5;
	--stat-value: #261254;
	--stat-fg: #261254;
}

.idea.idea--stop-the-race .idea-article .li-stat {
	background: var(--stat-bg, #261254);
	border-color: var(--stat-bg, #261254);
}

/* ---------- The Front Door: violet, pink and gold tiles on navy ---------- */
.idea.idea--the-front-door .idea-article {
	--kp-bg: #FAF6F1;
	--kp-fg: #1F1645;
	--kp-sub: #3D3460;
	--kp-num-bg: #3B0FDF;
	--kp-num-fg: #FFFFFF;
	--callout-bg: #FAF6F1;
	--callout-bar: #3B0FDF;
	--callout-title: #3B0FDF;
	--quote-bg: #FFB8C8;
	--quote-fg: #1F1645;
	--quote-bar: #1F1645;
	--zebra: #FAF6F1;
	--cap-mark: #3B0FDF;
	--h2-bar: #3B0FDF;
}

.idea.idea--the-front-door .idea-article .li-keypoint {
	border-color: #E8E0D6;
}

.idea.idea--the-front-door .idea-article .li-stat:nth-child(3n + 1) {
	--stat-bg: #3B0FDF;
	--stat-value: #FFFFFF;
	--stat-fg: #E6E0FF;
}

.idea.idea--the-front-door .idea-article .li-stat:nth-child(3n + 2) {
	--stat-bg: #FFB8C8;
	--stat-value: #1F1645;
	--stat-fg: #1F1645;
}

.idea.idea--the-front-door .idea-article .li-stat:nth-child(3n) {
	--stat-bg: #FFC757;
	--stat-value: #1F1645;
	--stat-fg: #1F1645;
}

.idea.idea--the-front-door .idea-article .li-stat {
	background: var(--stat-bg);
	border-color: var(--stat-bg);
}

/* ---------- The Living Lotus: a quiet green document ---------- */
.idea.idea--the-living-lotus .idea-article {
	--th-bg: #B7E6C6;
	--th-fg: #141206;
	--zebra: #F1F8EE;
	--kp-bg: #E3F1DD;
	--kp-fg: #141206;
	--kp-sub: #33402E;
	--kp-num-bg: #141206;
	--kp-num-fg: #B7E6C6;
	--callout-bg: #E3F1DD;
	--callout-bar: #141206;
	--cap-mark: #3F7A55;
	--h2-bar: #3F7A55;
}

.idea.idea--the-living-lotus .idea-article .li-keypoint {
	border-color: #E3F1DD;
}

/* ---------- Safer Sidewalks: cream, greens and annotation lines ---------- */
.idea.idea--safer-sidewalks-and-better-town-streets .idea-article {
	--kp-bg: #F1F1E1;
	--kp-fg: #17281F;
	--kp-sub: #2F4237;
	--kp-num-bg: #17281F;
	--kp-num-fg: #DEECCB;
	--callout-bg: #F1F1E1;
	--callout-bar: #17281F;
	--callout-title: #17281F;
	--zebra: #F6F6EC;
	--h2-bar: #599954;
	--cap-mark: #17281F;
}

.idea.idea--safer-sidewalks-and-better-town-streets .idea-article .li-keypoint {
	border-color: #E6DFC8;
}

.idea.idea--safer-sidewalks-and-better-town-streets .idea-article .wp-element-caption::before {
	width: 22px;
	height: 0;
	border-top: 1.5px solid #17281F;
	background: none;
	vertical-align: 4px;
	box-shadow: 22px 0 0 -0.5px transparent;
}

.idea.idea--safer-sidewalks-and-better-town-streets .idea-article .wp-element-caption {
	position: relative;
}

/* ---------- Author details (profile) ---------- */
.author {
	align-items: flex-start;
}

.author__avatar--img {
	width: 44px;
	height: 44px;
	border: 0;
	object-fit: cover;
}

.author__bio {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-body);
}

.author__web {
	margin-top: 4px;
	font-size: 12.5px;
}

.author__web a {
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--text);
}

/* ---------- Files (Word and Excel) under the article ---------- */
.idea-files {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.idea-files__title {
	margin: 0 0 12px;
	font-size: 20px;
	letter-spacing: -0.3px;
}

.idea-files ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.idea-files li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.idea-files__name {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.idea-files__name span {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
}

.idea-files__get {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.idea-files__get:hover {
	text-decoration: underline;
}

/* ---------- Blocks from the contributor editor ---------- */
.idea-article .wp-block-image.alignleft {
	float: left;
	width: 46%;
	margin: 6px 28px 16px 0;
}

.idea-article .wp-block-image.alignfull {
	width: calc(100% + 120px);
	max-width: calc(100vw - 2 * var(--pad));
	margin-left: -60px;
	margin-right: -60px;
}

.idea-article .wp-block-image img {
	width: 100%;
	height: auto;
}

.idea-article h2,
.idea-article h3,
.idea-article .wp-block-table,
.idea-article .li-keypoints,
.idea-article .wp-block-separator {
	clear: both;
}

.idea-article .wp-block-media-text {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin: 32px 0;
}

.idea-article .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
}

.idea-article .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
	order: 2;
}

.idea-article .wp-block-media-text__media {
	margin: 0;
}

.idea-article .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: auto;
}

.idea-article .wp-block-media-text__content > *:first-child {
	margin-top: 0;
}

.idea-article .wp-block-embed {
	margin: 32px 0;
}

.idea-article .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--dark);
}

.idea-article .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.idea-article .wp-block-video {
	margin: 32px 0;
}

.idea-article .wp-block-video video {
	display: block;
	width: 100%;
	background: var(--dark);
}

.idea-article .wp-block-separator {
	height: 0;
	margin: 40px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.idea-article .wp-block-quote cite {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-style: normal;
	color: var(--muted);
}

@media (max-width: 900px) {
	.idea-article .wp-block-image.alignleft {
		float: none;
		width: auto;
		margin: 24px 0;
	}
	.idea-article .wp-block-image.alignfull {
		width: auto;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
	}
	.idea-article .wp-block-media-text,
	.idea-article .wp-block-media-text.has-media-on-the-right {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.idea-article .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
		order: 0;
	}
}

/* YouTube block in an article: plain box until Play is pressed. */
.idea-video--inline {
	margin: 32px 0;
}

.idea-video__play--plain {
	aspect-ratio: 16 / 9;
	background: var(--dark);
	color: #fff;
}

.idea-video__note {
	position: absolute;
	left: 16px;
	bottom: 14px;
	right: 16px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.86);
	text-align: left;
}
