/* debug  */
/* * {
  outline: 1px solid #f00 !important;
} */

/* global colours, spacing, fonts and utitlity classes */

:root {
	--color-primary-text: #333333;
	--color-supplementary-text: #666666;
	--color-primary-background: #ffffff;
	--color-dark-background: #333333;
	--color-light-background: #ffffff;
	--color-light-text: #fffaf0;
	--color-link: #4c9fd5;
	--color-trace-grey: #eeeeee;
	--color-pale-grey: #dddddd;

	/* UI theme colors */
	--ui-theme-background: #4c9fd5;
	--ui-theme-text: #ffffff;
	--ui-theme-dark: #0b4572;

	/* primary chart colors */
	--color-dark-blue: #0b4572;
	--color-yellow: #efc530;
	--color-light-blue: #2f8fce;
	--color-red: #c7432b;
	--color-light-grey: #999999;
	--color-lilac: #a14a7b;
	--color-orange: #df9239;
	/* secondary chart colors*/
	--color-indigo: #673b9b;
	--color-pale-pink: #ffada9;
	--color-pale-blue: #ade2ea;
	--color-brown: #7c5641;

	/* Carbon Offsets colors */
	
	--color-co-white: #f9f8ed;
	--color-co-darkwhite: #faebd7;
	--color-co-grey: #e2e2e2;
	--color-co-purple: #534cdc;
	--color-co-darkpurple: #191740;
	--color-co-green: #00F59B;
	--color-co-pink: #FBC4FF;


	/* measurements */
	--page-max-width: 1350px;
	/* down from 780 */
	--readable-max-width: 750px;

	--border-thin: 1px;
	--border-thick: 4px;
	
	--ratio: 1.5;
	--s-5: calc(var(--s-4) / var(--ratio));
	--s-4: calc(var(--s-3) / var(--ratio));
	--s-3: calc(var(--s-2) / var(--ratio));
	--s-2: calc(var(--s-1) / var(--ratio));
	--s-1: calc(var(--s0) / var(--ratio));
	--s0: 1rem;
	--s1: calc(var(--s0) * var(--ratio));
	--s2: calc(var(--s1) * var(--ratio));
	--s3: calc(var(--s2) * var(--ratio));
	--s4: calc(var(--s3) * var(--ratio));
	--s5: calc(var(--s4) * var(--ratio));
	--s6: calc(var(--s5) * var(--ratio));
	--measure: 40rem;

	--serif: "Pt serif", "Times New Roman", Times, serif;
	--sans-serif: "PT Sans", Helvetica, sans-serif;
	--sans-serif-narrow: "PT Sans Narrow" , Helvetica, sans-serif;
}

/*CSS Reset*/
/* Box sizing rules */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
	list-style: none;
}

/* Set core root defaults */
/* * {
	scroll-behavior: smooth;
}
html:focus-within {
	scroll-behavior: smooth;
} */

/* Set core body defaults */
body {
	min-height: 100vh;
	text-rendering: optimizeSpeed;
	line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
	max-width: 100%;
	display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
	font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
/* end CSS reset */

body {
	color: var(--color-primary-text);
	background-color: var(--color-co-white);
	font-family: var(--sans-serif);
	font-size: 12px;
}

a {
	/* color: var(--color-link); */
	color: #0C2635;
	text-decoration: underline;
}

a:hover{
	color: var(--color-co-purple);
}

.screenreader-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* "every layout" based stuff */
.stack {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.stack > * {
	margin-block: 0;
}

.stack > * + * {
	margin-block-start: var(--s1, 1.5rem);
}

.center {
	box-sizing: content-box;
	margin-inline: auto;
	max-inline-size: var(--page-max-width);
}

figcaption{
	font-family: var(--sans-serif);
	font-size: var(--s0);
	color: var(--color-supplementary-text);
	/* line-height: var(--s1); */
    width: 100%;
    max-width: var(--readable-max-width);
    margin: auto;
	margin-top:0;
	margin-block-start:0
}

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s0);
	justify-content: flex-start;
	align-items: center;
}

.box {
	padding: var(--s0);
	outline: 0.125rem solid transparent;
	outline-offset: -0.125rem;
}

.cluster,
.cluster-end {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space, 1rem);
	align-items: center;
}

.cluster-end {
	justify-content: flex-end;
}

.cluster {
	justify-content: flex-start;
}

/* typography */

h1 {
	font-family: var(--serif);
	font-size: 3.25rem;
	line-height: 4.25rem;
}

h2 {
	font-size: 1.6rem;
	font-family: var(--sans-serif-narrow);
	font-weight: 700;
	margin-top:3em;
}

h3 {
	font-size: 1.4rem;
	font-family: var(--sans-serif-narrow);
	font-weight: 700;
}

h4 {
	/* font-size: 1.875rem; */
	font-family: var(--sans-serif-narrow);
	font-weight: 700;
}

code {
	background-color: var(--color-pale-blue);
}

p,li {
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 2.25rem;
	box-sizing: content-box;
	width: 100%;
	max-width: var(--readable-max-width);
}

article h2,
article h3,
article .subtitle,
article p,
article li{
	box-sizing: content-box;
	width: 100%;
	max-width: var(--readable-max-width);
	margin: auto;
}

article h2{
	/* reduced from s2 */
	font-size: 2rem;
	font-family: var(--sans-serif-narrow);
	font-weight: 700;
	padding-top: 0.8em;
}

article h3 {
	font-size: 1.75rem;
	padding-top: 0.8em;
}

article{
	max-width:var(--page-max-width,1350px);
	margin: 0 auto;
	margin-top:var(--s1);
}

/* @media (max-width:1199px){
	article{
		margin:auto 0;
	}
} */

/* article p, article h2{
	margin-left:0;
} */

blockquote {
	width: 100%;
	max-width: var(--readable-max-width);
	margin: auto;
}

blockquote p{
	padding-left: var(--s1);
	padding-right: var(--s2);
	border-left: var(--border-thick) solid var(--color-co-purple);	
	width: auto;
}

p.caption{
	font-family: var(--sans-serif);
	font-size: var(--s0);
	color: var(--color-supplementary-text);
	line-height: var(--s1);
	margin-top: var(--s-5);
}

/* CUSTOM */

table{
	border-collapse: collapse;
	max-width: var(--readable-max-width);
	width: 100%;
    margin: 0 auto;
	border:solid #333333 1px;
}
th{
	border-left:solid 1px;
	border-right:solid 1px;
	padding:0.5em;
	background: var(--color-co-purple);
	color:#f4f4f4;
	font-size:1.25em;
}
td{
	border: 1px solid;
	padding:0.5em;
	font-size:1.25em;
}

.inset{
	max-width:600px; 
	float:right; 
	padding-left:2em; 
	padding-bottom:2em
}

.inset > figcaption{
	padding-left:0.5em;
	font-size:1.2em;
}

.break-margin{
	max-width:1080px;
	margin: 2em auto;
}

.inline{
    width: 100%;
    max-width: var(--readable-max-width);
    margin:1.5em auto 0 auto;
}
.inline>img{
	margin-left:-0.85em;
}
.inline>img.map{
	margin-left:0em;
}
table.section10{
	border:solid #333333 1px;
}

@media (max-width:625px){
	table.section10, td, th{
		font-size: 9px;
	}
}

th.section10{
	font-size:1.6em;
}

td.section10-impacts{
	font-size:1.25em;
	text-align: center;
	padding:0.2em;
}

tr.section10-values{
	vertical-align: top;
}

tr.section10-values td{
	border: 1px solid;
    padding: 0.2em 1em;
}

tr.section10-values li{
	font-size: 1.25em;
    line-height: 1.5;
    text-align: left;
	/* padding: 0 0.75em; */

}
/* .section10-list li{
	margin:0;
} */
@media (max-width:699px){
	.inline{
		max-width:100%;
	}
}

@media (max-width:1020px){
	.inset{
		max-width: 750px;
		float: none;
		padding-left: 0;
		padding-bottom: 2em;
		margin: auto;
	}
}
@media (min-width:650px) and (max-width:1020px){
	img.tree-map{
		max-width:75%;
	}
	figcaption.tree-map{
		max-width:75%;
		margin: 0;
	}
}

#introduction{
	padding-top:3em;
    padding-bottom: 2em;
}

span.glossary-signpost{
	font-size: 0.85em;
	font-family: var(--sans-serif);
	/* font-weight: 700; */
	vertical-align: super;
}
.two-col{
	width:100%;
	max-width: var(--page-max-width);
	/* margin:auto; */
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.two-thirds{
	grid-template-columns: 1fr 2fr;
}

.two-col.wide{
	max-width: var(--graphic-max-width);
	column-gap: 2em;
}

.two-col .source{
	margin-top:var(--s-5);
}

img.asset{
	margin: 2em auto 0 auto;
	width: 100%;
	max-width: 30px;
}

@media (max-width: 1020px) {
	.two-col{
		grid-template-columns: 1fr;
		/* max-width: 550px; */
	}
	.two-col.wide{
		row-gap:2em;
	}
}

/* .series-box{
	border: solid 1px black;
    width: 100%;
    max-width: 750px;
    padding: 1em 2em 2.5em 2em;
    margin-bottom: 1.5em;
    background-color: #fcfcfc;
    margin: 2em auto;
} */

.series-box.timeline, .series-box.glossary{
	border:solid 1px black;
	background-color: #fcfcfc;
	max-width: var(--readable-max-width);
	padding:1.5em;
	display: flex;
	justify-content: space-between;
	margin: 2em auto;
}

.timeline-text{
	padding:0 1em 0 0.5em;
}

.timeline-text h3{
	font-size:1.75em;
	font-family: var(--serif);
	color:#333333;
}

.timeline-text p{
	font-size:1.35em;
	line-height: 1.75;
	margin-top:0.5em;
}

.series-box img{
	max-width:400px
}

@media (max-width:659px){
	.series-box{
		display: flex;
		flex-direction: column;
	}
	.series-box img{
		max-width:100%;
		margin-top:0.5em;
	}
}

.gloss-note{
	height: 8px;
    width: 8px;
    border-top: 3px solid var(--color-co-purple);
    border-right: 3px solid var(--color-co-purple);
    display: inline-block;
    margin-bottom:0.25em;
	padding:0 0.15em;
}

.sub-section{
	background-color: var(--color-co-darkwhite);
	padding-bottom:4em;
}

hr{
	max-width: 700px;
	margin: auto;
	
}