/* people.uk website. Same look as the app: plain, accessible, green, black and white.
   No government logo, crown or typeface is used. */

:root {
  --green: #00703c;
  --green-dark: #004e2a;
  --green-tint: #e6f1eb;
  --ink: #0b0c0c;
  --grey: #505a5f;
  --line: #b1b4b6;
  --soft: #f3f2f1;
  --white: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem; /* 19px, as in the app */
  line-height: 1.42;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Skip link */
.skip {
  position: absolute; left: -999rem; top: 0;
  background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Header and "not government" banner */
.header { background: var(--green); padding: 0.75rem 0; }
.wordmark {
  color: var(--white); font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; display: inline-block; min-height: 2.75rem; line-height: 2.75rem;
}
.banner { border-bottom: 1px solid var(--line); padding: 0.5rem 0; font-size: 0.9375rem; }
.banner p { margin: 0; }

main { padding: 2rem 0 3rem; }

h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1875rem; line-height: 1.3; font-weight: 800; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 0.9rem; }
.lede { font-size: 1.5rem; line-height: 1.35; margin-bottom: 1.25rem; }
.hint { color: var(--grey); font-size: 1.0625rem; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 3px; }
a:focus-visible, .button:focus-visible {
  outline: 4px solid var(--ink); outline-offset: 3px;
}

/* The big green button, as in the app */
.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 1.5rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center;
  padding: 1.1rem 1.5rem;
  min-height: 4rem;
  border: 0; border-bottom: 3px solid var(--green-dark);
  margin: 0.75rem 0 0.5rem;
}
.button:hover { background: var(--green-dark); color: var(--white); }
.button[aria-disabled="true"] {
  background: var(--soft); color: var(--ink); border-bottom-color: var(--line);
}

/* Show one download block or the other. Set data-app on <html> to "live" or "soon". */
html[data-app="soon"] .when-live { display: none; }
html[data-app="live"] .when-soon { display: none; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0.9rem 0 0.9rem 3.5rem; border-top: 1px solid var(--line); min-height: 3.5rem;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.75rem;
  width: 2.5rem; height: 2.5rem; line-height: 2.5rem;
  background: var(--ink); color: var(--white);
  font-weight: 800; text-align: center; border-radius: 50%;
}

.inset { border-left: 8px solid var(--line); padding: 0.4rem 0 0.4rem 0.9rem; margin: 0 0 1.1rem; }
.callout { background: var(--green-tint); border-left: 8px solid var(--green); padding: 1rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }

ul.plain { padding-left: 1.3rem; margin: 0 0 0.9rem; }
ul.plain li { margin-bottom: 0.6rem; }

/* Footer */
.footer { background: var(--soft); border-top: 4px solid var(--green); padding: 1.5rem 0 2.5rem; font-size: 1.0625rem; }
.footer ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.footer li { display: inline-block; margin: 0 1.25rem 0.5rem 0; }
.footer a { color: var(--ink); display: inline-block; min-height: 2.75rem; line-height: 2.75rem; }
.footer p { margin: 0; color: var(--grey); }

@media (min-width: 40em) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.75rem; }
}

@media print {
  .header { background: none; }
  .wordmark { color: var(--ink); }
  .button { border: 2px solid var(--ink); background: none; color: var(--ink); }
}
