.site-section__inner {
	padding-top: 10px !important;
}

.t-content {
	/*todo: download noto sans locally and serve out 400+500 weights*/
	/*font-family: 'Noto Sans', 'Noto Sans TC', 'Calluna Sans', sans-serif;*/
	font-family: 'Calluna Sans', 'Noto Sans', 'Noto Sans TC', 'Noto Sans SC', 'Noto Sans JP', sans-serif;

	max-width: 45em;
	margin: 0 auto;
}

form,
input,
select,
textarea,
.t-content label {
	font-family: inherit;
}

.t-content textarea {
	resize: auto;
	transition: none;
	height: 200px;
	width: 100%;
}

.unstyled-list {
	margin: 0 !important;
	padding: 0 !important;
}
.unstyled-list li {
	list-style: none;
	padding: 0 !important;
}

.inline-list {
	display: inline-block;
}
.inline-list li {
	display: inline-block;
}

input[type="radio"],
input[type="checkbox"] {
	margin-right: 0.5em;
	border-radius: revert;
}

select {
	padding: 4px 36px 4px 8px;
	margin: 0 0.25em 0.25em;
	height: auto;
}

.t-content label {
	font-weight: normal;
}

.t-content,
.item--heading,
.item--title {
	counter-reset: question-counter;
}

.item .question--counter::before {
	counter-increment: question-counter;
	content: counter(question-counter, decimal) ".";
	margin-right: 0.5em;
}

.item .question--image {
    margin: 0;
}

.item + .item {
	margin-top: 2em;
}

.item--rank + .item--rank {
	margin-top: 1em;
}

.item .question {
	font-weight: 500;

	display: flex;
	flex-flow: row nowrap;
	align-items: baseline;

	margin-bottom: 1em;
}

.item .question--counter,
.item .question--question p {
	line-height: 1.375; /*from the main website styles*/
}

.item .question--question p,
.item--content p,
p.title__subheading,
p.heading__subheading {
	font-weight: inherit;
	font-size: inherit;
	font-family: inherit;
	margin: 0;
}

.item .question--question p + p,
.item--content p + p {
	margin-top: 1em;
}

p.title__subheading,
p.heading__subheading {
	margin-bottom: 1em;
}

.item p.question--note {
	font-weight: normal;
	font-size: 0.8em;
}

.questions {
	padding-right: 40px;
}

.rank-row {
	display: flex;
	flex-flow: row wrap;
}
.rank-question {
	flex: 1;
}
.rank-options input {
	margin: 0 0.35em 0 0.65em;
}
.rank-options .answer--wrapper {
	margin: 0;
}
.rank-row .rank-options {
	flex: 1;
	margin: 0;
	padding: 0;
}

.t-content .heading {
	font-weight: 600;
}

.item .answer--wrapper {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
}

.item .answer--input {
	flex-shrink: 0;
}

.item .answer--text {
	display: inline-block;
	flex: 1;
	line-height: 1.375;

	font-size: 0.9em;
}

.item .answer--input:checked + .answer--text {
    font-weight: bold;
    background-color: rgba(0,0,0,0.05);
    border-radius: 5px;
}

.answer--correct .answer--wrapper {
    background-color: wheat;
    border-radius: 5px;
    padding-left: 1em;
    margin-left: -1em;
    padding-right: 1em;
    margin-right: -1em;
}

.answer--given .answer--wrapper {
	background-color: #444;
    color: white;
    border-radius: 5px;
    padding-left: 0.1em;
    padding-right: 0.1em;
    display: inline-flex;
}

.choice-slot {
	min-width: 4em;
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 0.15em;
	display: inline-block;
	margin: 0 0.05em;
	height: 1.5em;
	text-align: center;
}
.choice-slot::before {
	/* hack to make the gray areas center vertically with the text */
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
.chosen .choice-slot {
	background-color: rgba(0, 0, 0, 0.1);
	min-width: 0;
	margin: 0;
}

.item--slot .choice-slot {
	padding: 0 0.25em;
	min-width: 0.5em;
}
.item--slot .chosen .choice-slot {
	background-color: rgba(0, 0, 0, 0.1);
}

.page-next-button,
a.page-next-button {
	margin: 3em auto 0;
	display: block;
}

.results-page + .results-page {
	border-top: solid 1px black;
	margin-top: 5em;
	padding-top: 5em;
}

.login-form label {
    margin-bottom: 15px;
    margin-top: 15px;
}
.login-form input:not([type=submit]) {
    width: 20em;
}
.login-form input[type=submit] {
	margin-top: 1em;
	display: block;
}

.btn--red {
	background-color: var(--color-red);
	color: var(--color-contrasting-red);
}

.u-lnum {
	font-variant-numeric: lining-nums;
}

.t-content form {
	margin: 0;
}
