/* The portal's own look: the sign-in, set-password, account, dashboard list and "being prepared" pages (body.pp),
   and the header above each dashboard (body.pp-dash). Every class here starts pp-, so nothing in it can restyle the
   dashboard's own stylesheets, which are linked before this one. Lato when the content app has sent it. */

.pp {
  --pp-navy: #1b2a4a;
  --pp-navy-2: #2c3f66;
  --pp-ink: #1d2330;
  --pp-ink-2: #4a5263;
  --pp-plane: #f4f5f7;
  --pp-card: #ffffff;
  --pp-line: #dde1e8;
  --pp-focus: #3b5b9a;
  --pp-bad: #a61b1b;
  --pp-bad-wash: #fdeeee;
  --pp-good: #1e6b45;
  --pp-good-wash: #eaf6ef;
  margin: 0;
  min-height: 100vh;
  background: var(--pp-plane);
  color: var(--pp-ink);
  font: 400 16px/1.55 "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.pp a {
  color: var(--pp-navy-2);
  text-underline-offset: 2px;
}

.pp a:focus-visible,
.pp button:focus-visible,
.pp input:focus-visible {
  outline: 3px solid var(--pp-focus);
  outline-offset: 2px;
}

.pp-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--pp-navy);
  color: #fff;
}

.pp .pp-mark {
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.pp .pp-bar .pp-nav a {
  color: #fff;
}

.pp-main {
  padding: 48px 16px 64px;
}

.pp-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  background: var(--pp-card);
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(27, 42, 74, 0.05), 0 12px 30px -16px rgba(27, 42, 74, 0.18);
}

.pp-card.pp-wide {
  max-width: 620px;
}

.pp h1 {
  margin: 0 0 12px;
  color: var(--pp-navy);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}

.pp h2 {
  margin: 28px 0 10px;
  color: var(--pp-navy);
  font-size: 17px;
  font-weight: 700;
}

.pp p {
  margin: 0 0 12px;
}

.pp-form {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
}

.pp-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--pp-ink);
}

.pp-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9c1ce;
  border-radius: 8px;
  background: #fff;
  color: var(--pp-ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
}

.pp-field input:focus {
  border-color: var(--pp-focus);
}

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

.pp-btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--pp-navy);
  border-radius: 8px;
  background: var(--pp-navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.pp-btn:hover {
  background: var(--pp-navy-2);
}

.pp-btn.pp-quiet {
  justify-self: start;
  background: #fff;
  color: var(--pp-navy);
}

.pp-btn.pp-quiet:hover {
  background: var(--pp-plane);
}

.pp-hint {
  color: var(--pp-ink-2);
  font-size: 14px;
}

.pp-error,
.pp-ok {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.pp-error {
  background: var(--pp-bad-wash);
  color: var(--pp-bad);
  border: 1px solid #f2c9c9;
}

.pp-ok {
  background: var(--pp-good-wash);
  color: var(--pp-good);
  border: 1px solid #c6e6d3;
}

.pp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pp-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.pp-list a:hover {
  background: var(--pp-plane);
}

/* The header above a dashboard. The engine's .topbar gives it its place; these give it its contents. */
.pp-dash {
  margin: 0;
}

.pp-top {
  flex-wrap: wrap;
  justify-content: space-between;
}

.pp-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pp-logo {
  display: block;
  max-height: 40px;
  max-width: 220px;
  width: auto;
  height: auto;
}

.pp-name {
  font-weight: 900;
  font-size: 18px;
  color: #1b2a4a;
}

.pp-asof {
  margin: 0;
  color: #4a5263;
  font-size: 14px;
}

.pp-nav a {
  color: #1b2a4a;
  font-weight: 700;
}

.pp-top .pp-nav a {
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .pp-main {
    padding: 24px 12px 48px;
  }
  .pp-card {
    padding: 22px 18px 18px;
  }
  .pp-asof {
    order: 3;
    width: 100%;
  }
}
