/* Exam Trainer — examtrainer.uk. One stylesheet, no scripts.
   Visual reference: the GOV.UK design system (black masthead, blue rule, blue links, grey insets). */

:root {
  --ink: #0b0c0c;
  --paper: #ffffff;
  --grey-light: #f3f2f1;
  --grey-mid: #b1b4b6;
  --grey-text: #505a5f;
  --blue: #1d70b8;
  --blue-dark: #003078;
  --purple: #4c2c92;
  --focus: #ffdd00;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--grey-light); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 30px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
}

/* Masthead ---------------------------------------------------------- */

.masthead-bar {
  background: var(--ink);
  border-bottom: 10px solid var(--blue);
  color: #fff;
}
.masthead-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 8px;
}
.wordmark {
  display: inline-block;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:visited, .wordmark:hover { color: #fff; }
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.wordmark .exam, .wordmark .trainer { color: #fff; }
.tagline {
  margin: 0;
  color: #fff;
  font-size: 16px;
}
@media (max-width: 640px) {
  .tagline { display: none; }
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  border-bottom: 1px solid var(--grey-mid);
  font-size: 17px;
}
.masthead nav a {
  display: inline-block;
  padding: 12px 0 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  margin-bottom: -1px;
}
.masthead nav a:visited { color: var(--ink); }
.masthead nav a:hover { border-bottom-color: var(--grey-mid); }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--blue); }

/* Breadcrumbs -------------------------------------------------------- */

.crumbs {
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 16px;
}
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 12px 0 10px;
  border-right: 2px solid var(--grey-text);
  border-bottom: 2px solid var(--grey-text);
  transform: rotate(-45deg);
}
.crumbs a, .crumbs a:visited { color: var(--ink); }
.crumbs span { color: var(--grey-text); }

/* Hero (home page) ----------------------------------------------------- */

.hero-band {
  background: var(--blue);
  color: #fff;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero h1 { color: #fff; margin: 0 0 18px; }
.hero .lead { color: #fff; margin: 0; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
}

/* Certificate: the one visual object on the site ----------------------- */

.certificate {
  position: relative;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgba(11, 12, 12, 0.7);
}
.certificate-inner {
  padding: 24px 24px 20px;
  border: 3px double var(--ink);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}
.certificate .cert-mark { font-size: 20px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.certificate .cert-mark .exam, .certificate .cert-mark .trainer { color: var(--ink); }
.certificate .cert-sub {
  margin: 4px 0 16px;
  color: var(--grey-text);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.certificate .cert-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
}
.certificate .cert-line {
  margin: 12px auto 4px;
  width: 80%;
  border-bottom: 1px solid var(--ink);
  height: 18px;
}
.certificate .cert-sig {
  display: flex;
  margin-top: 26px;
  color: var(--grey-text);
  font-size: 10px;
  text-align: left;
}
.certificate .cert-sig span {
  width: 55%;
  padding-top: 4px;
  border-top: 1px solid var(--grey-mid);
}
.certificate .seal {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
}
.certificate .seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--blue);
}

/* Page title (inner pages) ------------------------------------------------ */

.pagehead { padding-top: 24px; }
.pagehead h1 { margin: 0 0 16px; }
.pagehead .lead { margin: 0 0 8px; max-width: 700px; }

/* Columns -------------------------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 60px;
  padding-top: 10px;
  padding-bottom: 60px;
}
.columns > article { max-width: 660px; }
@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; gap: 20px; }
}

aside .panel {
  margin: 30px 0 30px;
  padding-top: 12px;
  border-top: 2px solid var(--blue);
  font-size: 16px;
  line-height: 1.45;
}
aside .panel + .panel { margin-top: 0; }
aside .panel h2 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}
aside .panel ul { margin: 0; padding-left: 0; list-style: none; }
aside .panel li { margin-bottom: 8px; }
aside .panel p { margin: 0 0 10px; }
aside .panel p:last-child { margin-bottom: 0; }
aside .panel.facts { border-top-color: var(--grey-mid); }

dl.glance { margin: 0; }
dl.glance div {
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-mid);
}
dl.glance div:last-child { border-bottom: 0; }
dl.glance dt { margin: 0; font-weight: 700; }
dl.glance dd { margin: 0; }

/* Text ------------------------------------------------------------------ */

h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
h2 {
  margin: 44px 0 14px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
}
article > h2:first-child { margin-top: 24px; }
h3 {
  margin: 28px 0 10px;
  font-size: 19px;
  font-weight: 700;
}
p { margin: 0 0 20px; text-wrap: pretty; }
ul, ol { margin: 0 0 20px; padding-left: 20px; }
li { margin-bottom: 6px; }
li p { margin-bottom: 8px; }

ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 14px;
}
ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: max(1px, 0.06em); }
a:visited { color: var(--purple); }
a:hover { color: var(--blue-dark); text-decoration-thickness: max(3px, 0.15em); }
a:focus-visible {
  outline: 3px solid transparent;
  color: var(--ink);
  background: var(--focus);
  box-shadow: 0 -2px var(--focus), 0 4px var(--ink);
  text-decoration: none;
}

.lead { font-size: 24px; line-height: 1.35; }
.note { color: var(--grey-text); }

.inset {
  margin: 0 0 24px;
  padding: 14px 0 14px 18px;
  border-left: 10px solid var(--grey-mid);
}
.inset p { margin: 0; }

/* Tables ---------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 0 0 24px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 17px;
  line-height: 1.4;
}
th, td {
  padding: 10px 20px 10px 0;
  border-bottom: 1px solid var(--grey-mid);
  vertical-align: top;
  text-align: left;
}
th { font-weight: 700; }
td:first-child, th:first-child { white-space: nowrap; font-weight: 700; }
caption {
  text-align: left;
  caption-side: bottom;
  padding-top: 10px;
  color: var(--grey-text);
  font-size: 16px;
}

/* Sample tasks: set as extracts from a paper ---------------------------- */

.paper {
  margin: 14px 0 28px;
  padding: 18px 22px 16px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 17px;
  line-height: 1.45;
}
.paper .paper-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}
.paper .paper-head span:last-child { color: var(--grey-text); font-weight: 400; }
.paper .instruction { font-weight: 700; margin-bottom: 12px; }
.paper .passage { margin: 0 0 14px; }
.paper .wordbox {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid var(--grey-mid);
  background: var(--grey-light);
}
.paper ol.questions { margin: 0; padding-left: 0; list-style: none; }
.paper ol.questions li { display: grid; grid-template-columns: 2em 1fr; gap: 8px; margin-bottom: 10px; }
.paper ol.questions li > span { font-weight: 700; }
.paper ol.options { margin: 4px 0 0; padding-left: 0; list-style: none; }
.paper ol.options li { display: block; margin: 0 0 2px; }
.paper .blank {
  display: inline-block;
  min-width: 7em;
  border-bottom: 1px solid var(--ink);
  vertical-align: baseline;
}

details.answers { margin: -12px 0 32px; font-size: 17px; }
details.answers summary { cursor: pointer; color: var(--blue); text-decoration: underline; }

/* Footer ---------------------------------------------------------------- */

.colophon {
  background: var(--grey-light);
  border-top: 1px solid var(--grey-mid);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.colophon .cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 40px;
}
@media (max-width: 760px) {
  .colophon .cols { grid-template-columns: 1fr; gap: 20px; }
}
.colophon p { margin: 0 0 12px; }
.colophon .foot-mark { font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.colophon ul { list-style: none; margin: 0 0 12px; padding: 0; }
.colophon li { margin: 0 0 6px; }
.colophon a, .colophon a:visited { color: var(--ink); }
.colophon a:hover { color: var(--blue-dark); }
.colophon .small { font-size: 15px; color: var(--grey-text); }

@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 23px; }
  .lead { font-size: 20px; }
  body { font-size: 17px; }
}

/* Logo: img/logo.png (black), img/logo-white.png (for the masthead), img/logo-green.png (original colour);
   if the real logo already contains the words, add class "has-text" to .wordmark. */
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark .logo { width: 52px; height: 52px; display: block; }
.wordmark.has-text .wordmark-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.masthead-inner { align-items: center; }
.cert-mark, .foot-mark { display: flex; align-items: center; justify-content: center; gap: 8px; }
.cert-mark { flex-direction: column; gap: 6px; }
.cert-mark img { width: 48px; height: 48px; }
.foot-mark img { width: 32px; height: 32px; }
.foot-mark { justify-content: flex-start; }

/* Kit and keepsakes ------------------------------------------------------- */

ul.kit {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}
ul.kit li { margin: 0; font-size: 17px; line-height: 1.4; }
ul.kit img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-bottom: 10px;
  border: 1px solid var(--grey-mid);
  background: var(--grey-light);
}
ul.kit strong { display: block; margin-bottom: 2px; }
ul.kit span { display: block; color: var(--grey-text); font-size: 16px; }
@media (max-width: 520px) {
  ul.kit { grid-template-columns: 1fr; }
}

/* Files and documents ------------------------------------------------------ */

table.files td:first-child { font-weight: 700; }
table.files td { white-space: nowrap; }
table.files td:nth-child(2) { white-space: normal; }

ul.doclist { list-style: none; margin: 0 0 24px; padding: 0; }
ul.doclist li {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-mid);
}
ul.doclist li:first-child { border-top: 1px solid var(--grey-mid); }
ul.doclist a { font-weight: 700; }
ul.doclist span { display: block; margin-top: 2px; color: var(--grey-text); font-size: 17px; }
table.levels td:first-child { font-weight: 700; }
table.levels td:nth-child(4) { white-space: nowrap; }
