﻿body {
  --main-gap: 16px;
  --md-width: 600px;
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.25rem;

  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;

  background-color: #f2f2f2;

  @media (max-width: 600px) {
    --main-gap: 8px;
  }
}
main {
  padding: var(--main-gap);
  display: flex;
  flex-direction: column;
  gap: var(--main-gap);

  @media (min-width: 600px) {
    width: 100vw;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

header {
  background-color: #fff;
  .content {
    .logo {
      height: 36px;
    }
    img {
      height: 36px;
    }
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--main-gap);

    @media (min-width: 600px) {
      max-width: var(--md-width);
      margin-left: auto;
      margin-right: auto;
    }
  }
}

footer {
  background-color: #b90835;
  margin-top: var(--main-gap);
  padding: var(--main-gap);
  padding-bottom: calc((var(--main-gap) * 2));

  .content {
    padding: var(--main-gap);
    display: flex;
    flex-direction: column;
    gap: calc(var(--main-gap) / 2);
    color: #fff;
    a {
      width: fit-content;
      color: #fff;
    }
    @media (min-width: 600px) {
      max-width: var(--md-width);
      margin-left: auto;
      margin-right: auto;
    }
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--main-gap);
  background-color: #fff;
  margin-bottom: var(--main-gap);

  nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  &:last-child {
    margin-bottom: 0px;
  }
  .idp-link {
    color: #ffffff;
    border: solid #143c50 1px;
    background-color: #143c50;
    text-align: center;
    text-decoration: none;
    display: flex;
    gap: 8px;
    align-items: center;
    height: 52px;
    padding: 8px;
    font-size: 16px;
    img {
      max-height: 36px;
      max-width: 36px;
      margin: 4px 12px 4px 4px;
      &:last-child {
        margin-left: auto;
      }
    }

    &:hover {
      background-color: #25607f;
    }
    &:focus-visible {
      outline: 0.125rem solid black;
      outline-offset: 0.125rem;
    }
  }
}

h1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 400;
  margin-top: 0px;
  margin-bottom: 0px;
}

h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 100;
  margin-top: 0px;
  margin-bottom: 0px;
}

h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 0px;
}

.skip-to-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  &:focus {
    position: static;
    display: block;
    text-align: center;
    padding: 4px;
    margin-bottom: 4px;
    background-color: #143c50;
    color: #fff;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

#language-globe {
  background-color: #fff;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  cursor: pointer;
  .language-name {
    display: none;
  }
  @media (min-width: 600px) {
    .language-name {
      display: block;
    }
  }
}

.info-banner {
  display: flex;
  font-size: 1rem;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem;
  line-height: 1.3;
  border-left: 3px solid #0066cc;
  background-color: #eaf2f6;

  &.error {
    border-left: 3px solid #e62323;
    background-color: #ffdfdf;
    margin: auto var(--main-gap) auto var(--main-gap);
    .error-content {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  }
  margin: 8px 0 var(--main-gap) 0;
  p {
    margin-block-end: 0px;
  }

  & > .icon {
    align-self: baseline;
  }
}

.account-links {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  gap: 12px;
  margin: 4px 8px 8px 8px;
  padding: 4px;
}
