/* Shared tokens and basics. Colours follow Australian safety sign conventions:
   blue = something to do, green = done/safe, yellow = where you are, red = stop. */
:root {
  --ink: #16202a;
  --muted: #5a6672;
  --paper: #ffffff;
  --concrete: #eef1f3;
  --line: #d5dbe0;
  --blue: #0b4a8f;
  --blue-deep: #083768;
  --hivis: #ffd400;
  --green: #0b7a45;
  --red: #c62828;

  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--blue);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-quiet {
  background: transparent;
  color: var(--blue);
}

.btn-quiet:hover {
  background: var(--concrete);
  border-color: var(--blue);
}

.btn:disabled {
  background: var(--concrete);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field input {
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--blue);
  font-weight: 500;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Simple centred pages (home, sign in) */
.plain-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--concrete);
}

.plain-bar {
  background: var(--blue);
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-bottom: 6px solid var(--hivis);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}

.plain-bar a {
  color: inherit;
  text-decoration: none;
}

.plain-main {
  width: min(100% - 2rem, 30rem);
  margin: 3rem auto;
  align-self: start;
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plain-main h1 {
  font-size: 2rem;
}

.note {
  padding: 0.75rem 1rem;
  border-left: 6px solid var(--blue);
  background: var(--concrete);
}

.note.is-error {
  border-left-color: var(--red);
}

.note.is-ok {
  border-left-color: var(--green);
}
