/*
 * ACE Type Scale 1.0.0 -- one set of text sizes for the signed-in pages.
 *
 * Only font-size and line-height are set here: no width, margin, padding, colour or position, so nothing on a
 * page moves except that the words take less room. The selectors begin with :root body to outrank the
 * stylesheets they adjust (some of which use !important); each names a page title or the line under one, as
 * each plugin prints it.
 *
 * Left as designed: the public homepage, All Courses and the sign-in page (their large type is the point of
 * them), big numbers (a place, a percentage), and every other text, which is already the same size page to
 * page (about 13px).
 */

:root {
	--ace-ts-title: 1.625rem;      /* 26px: a page's title */
	--ace-ts-title-board: 1.5rem;  /* 24px: a quiz's board (quiz names run long) */
	--ace-ts-lede: .875rem;        /* 14px: the line under a title */
}
@media (max-width: 600px) {
	:root {
		--ace-ts-title: 1.4375rem;      /* 23px */
		--ace-ts-title-board: 1.3125rem; /* 21px */
	}
}

/* ---- page titles ---- */
:root body h1.apb-title,                 /* the page band: Calendar, Syllabus, Mock, Wrong Answers, Quiz Review, a course */
:root body h1.ace-prac-title,            /* Practice */
:root body h1.ace-page-title,            /* Rankings, Feed, Community Questions */
:root body h1.atp-title,                 /* a lecture (topic) */
:root body h1.alb-h1,                    /* Leaderboard */
:root body h1.sup-title {                /* Help & Support */
	font-size: var(--ace-ts-title) !important;
	line-height: 1.18 !important;
}
/* A lecture's own page and the Syllabus band set theirs more firmly, so they are named more firmly here. */
:root body.ace-player .ace-topic-layout h1.atp-title,
:root body .apb.apb-syllabus .apb-band h1.ace-syl-title,
:root body .apb .apb-band h1.apb-title.apb-title {
	font-size: var(--ace-ts-title) !important;
	line-height: 1.18 !important;
}
:root body .arp-board h1.arp-title {     /* one quiz's board */
	font-size: var(--ace-ts-title-board) !important;
	line-height: 1.2 !important;
}

/* ---- the line under a title ---- */
:root body .apb-lede,
:root body .ace-prac-sub,
:root body .afp-lede,
:root body .acq-lede,
:root body .arp-lede,
:root body .adb-lede,
:root body .alb-lede,
:root body .sup-lede {
	font-size: var(--ace-ts-lede) !important;
	line-height: 1.5 !important;
}

/* ---- Help & Support: its reading text at the size of every other page ---- */
:root body .sup-h2,
:root body h2.sup-part-title { font-size: 1.1875rem !important; line-height: 1.25 !important; }     /* 19px; were 24 and 22-30px */
:root body .sup-part-sum { font-size: .875rem !important; line-height: 1.55 !important; }   /* 14px */
:root body .sup-meta { font-size: .8125rem !important; line-height: 1.5 !important; }       /* 13px */
@media (max-width: 600px) {
	:root body .sup-h2,
	:root body h2.sup-part-title { font-size: 1.125rem !important; }                         /* 18px */
}
