/* UNEB UACE 2026 Candidate Support Portal */

/* Colours used on the whole website */
:root {
  --navy: #0f2a47;
  --navy-dark: #0a1c31;
  --blue: #1b5e96;
  --gold: #f2a900;
  --red: #a4262c;
  --green: #1e6b3a;
  --paper: #f3f6fa;
  --ink: #1d2733;
  --line: #8fa3b8;
  --row-alt: #e3ebf5;
}

/* Basic page styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}
h1, h2 { color: var(--navy); }
h3, h4, h5, h6 { color: var(--blue); }

h2 { margin: 0 0 0.75rem; font-size: 1.5rem; }
h3 { margin: 1.5rem 0 0.5rem; font-size: 1.2rem; }

p { margin: 0 0 1rem; max-width: 70ch; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Top part of the page */
.site-header {
  background: var(--navy);
  border-bottom: 5px solid var(--gold);
}

.brand {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 0.9rem;
}

.site-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
}

.tagline {
  margin: 0.35rem 0 0;
  color: #cfdbea;
  font-size: 0.98rem;
}

/* Navigation menu */
.site-nav { background: var(--navy-dark); }

.site-nav ul {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.8rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 4px solid transparent;
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--gold);
  color: var(--navy-dark);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Main content */
main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

main > section,
main > article {
  background: #fff;
  border: 1px solid #d3dce8;
  border-left: 6px solid var(--navy);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

main > article.alert {
  border-left-color: var(--red);
  background: #fff7f7;
}
main > article.alert h2 { color: var(--red); }

.note {
  font-size: 0.95rem;
  color: #46576b;
}

/* The exam day steps */
ol.steps { margin: 0 0 1rem; padding-left: 1.5rem; }
ol.steps li { margin-bottom: 0.5rem; padding-left: 0.25rem; }

/* Things to carry */
ul.items {
  list-style-type: square;
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
ul.items li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
ul.items li::marker { color: var(--navy); }

.carry { color: var(--green); }
.no-carry { color: var(--red); }

/* Terms on the malpractice page */
dl.terms dt { font-weight: 700; color: var(--navy); margin-top: 0.9rem; }
dl.terms dd { margin: 0.15rem 0 0 0; max-width: 70ch; }

/* Timetable */
.table-wrap { overflow-x: auto; }

table.timetable {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid var(--navy);
  background: #fff;
}

.timetable caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.timetable th,
.timetable td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: middle;
}

/* Keep dates on one line */
.timetable td:first-child { white-space: nowrap; }

/* Table heading */
.timetable thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

/* Make alternate rows easier to read */
.timetable tbody tr:nth-child(odd)  { background: #fff; }
.timetable tbody tr:nth-child(even) { background: var(--row-alt); }

/* Date which appears over two rows */
.timetable td[rowspan] {
  background: #fff1c7;
  font-weight: 600;
}

/* Practical session */
.timetable td[colspan] {
  text-align: center;
  font-style: italic;
  background: #fde8ea;
}

/* Help Desk form */
form fieldset {
  border: 1px solid var(--line);
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem 0.5rem;
}

form legend {
  padding: 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--navy);
}

.field { margin-bottom: 1rem; }

.field label,
.field .label-text {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.req { color: var(--red); }

.hint {
  display: block;
  font-size: 0.88rem;
  color: #46576b;
  margin-top: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  max-width: 34rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--red);
}

.choices { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  margin: 0;
}

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

button {
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--navy);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

button[type="submit"] { background: var(--navy); color: #fff; }
button[type="submit"]:hover { background: var(--blue); border-color: var(--blue); }

button[type="reset"] { background: #fff; color: var(--navy); }
button[type="reset"]:hover { background: var(--row-alt); }

button.uneb-site { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
button.uneb-site:hover { background: #ffc233; border-color: #ffc233; }

/* Bottom of the page */
.site-footer {
  background: var(--navy);
  color: #e3ebf5;
  border-top: 5px solid var(--gold);
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.site-footer h2 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #fff; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }

.site-footer .copyright {
  max-width: 62rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
}

/* Keep the page still if reduced motion is chosen */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}