/**
 * Base: reset and element defaults (values: design-tokens.json → base).
 */
*, *::before, *::after { box-sizing: border-box; }

/* As the live template: the page scrolls vertically only. Whatever is wider than the page (e.g. the
   contact table on phones) is cut at the body instead of making the page scroll sideways. */
html { overflow-y: scroll; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	position: relative;
	overflow: hidden;
	margin: 0;
	background: var(--c-bg-body) var(--tx-fabric-dark) 0 0 repeat;
	color: var(--c-text);
	font-family: var(--ff-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-link-hover); }

@media (min-device-width: 1025px) {
	a { transition: var(--t-link); }
}

p, ul, ol, dl, blockquote, pre, table, figure, address, fieldset { margin: 0 0 var(--sp-p); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sp-p);
	color: var(--c-heading);
	font-family: var(--ff-heading);
	font-weight: normal;
}
:is(p, ul, ol, dl, blockquote, pre, table, figure, address, fieldset, h1, h2, h3, h4, h5, h6):last-child { margin-bottom: 0; }

h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4, h5, h6 { font-size: var(--fs-h4); line-height: var(--lh-h4); }

ul, ol { padding-left: var(--sp-list-indent); }
address { font-style: normal; }
img { border: 0; max-width: 100%; height: auto; }
iframe { border: 0; }
table { border-collapse: collapse; border-spacing: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Icons: own SVGs as masks, so they take the current text colour. */
.icon {
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: var(--icon) no-repeat 0 0 / contain;
	mask: var(--icon) no-repeat 0 0 / contain;
}
.icon--arrow-down { --icon: url("../img/icons/arrow-down.svg"); }
.icon--bubble { --icon: url("../img/icons/bubble.svg"); }
.icon--arrow-up { --icon: url("../img/icons/arrow-up.svg"); }
