:root {
  --brand-primary: #0ab28e;
  --brand-primary-rbga: 10, 178, 142;
  --brand-secondary: #032d23;
  --text-color: #282828;
  --pale-grey: #f6f6f6;
  --approve: #2c9a5d;
  --reject: #e54c4c;
  --featured-job-background: #e8fce8;

  /* interface accent colours */
  --widget-border: #e6e6e6;
  --graph-yellow: #f4c84f;
  --graph-yellow-2: #edc243;
  --graph-light-blue: #5fc0d4;
  --graph-lime: #c1c952;
  --graph-light-green: #6cca7e;
  --green-fg: #32632a;
  --green-bg: #def9db;
  --blue-fg: #2031a2;
  --blue-bg: #d8e5fd;
  --mid-blue-fg: #4e7feb;
  --mid-blue-bg: #d9e4fa;
  --purple-fg: #59189a;
  --purple-bg: #efe4fe;
  --yellow-fg: #c08634;
  --yellow-bg: #fff3c2;
  --orange-fg: #e6a23c;
  --orange-bg: #f9ecd0;
  --gray-fg: #585858;
  --gray-bg: #dcdcdc;

  /* admin dashboard */
  --admin-background: #fcfcfc;
  --admin-text: #585858;
  --bullet-admin: #c49dfb;
  --bullet-draft: #d6d6d6;
  --bullet-expired: #fca5A5;
  --bullet-pending: #ffeb99;
  --bullet-published: #aff0a8;

  --body-font: Roboto,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Change default 16px font size to 10px.
   * The 62.5% trick makes it easier to scale values without
   * worrying about the type of device used to view the content.
   */
  font-size: 62.5%;
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: black;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1 {
  font-size: 3rem; /* font size =30px */
  color: var(--text-color);
}

h2 {
  font-size: 2rem; /* font size = 20px */
}

p {
  font-size: 1.6rem;
  line-height: 2.4rem;
}

.sr-only {
  position: absolute; 
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px; 
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none; }
.inline { display: inline; }

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 99;
  background-color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.profile-dropdown {
  top: 2.8rem;
  right: 1.8rem;
  display: none;
  min-width: 23rem;
  font-size: large;
  padding: 1rem;
  border: 1px solid #eee;
  border-top: 0;
  border-radius: 0.8rem 0 0.8rem 0.8rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  ul {
    li {
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;

      a {
        color: #7c7c7c;
        text-decoration: none;


        svg {
          color: #7c7c7c;
          width: 2rem;
          height: 2rem;
        }
      }
    }
  }
}

/* --- BUTTONS --- */
/* TODO: extract this out later to separate .css */

.btn {
  font-weight: 500;
  padding: 2.4rem 1.2rem;
  cursor: pointer;
  border-radius: 0.4rem;
  /*no-underline;*/
}

.btn-sm {
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  line-height: 2rem;
}

.btn-lg {
  padding: 0.8rem 0.4rem;
  font-weight: 500;
  border-radius: 0.4rem;
  font-size: 2rem;
  line-height: 2.8rem;
}

.btn-primary {
  padding: 1.6rem 1.2rem;
  background-color: var(--brand-primary);
  color: white;
  border: none;
}

.btn-outline {
  padding: 1.6rem 1.2rem;
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  background-color: transparent;
}

.btn-outline-white {
  padding: 1.6rem 1.2rem;
  border: 1px solid white;
  color: white;
  background-color: transparent;
}

.btn-outline-gray {
  padding: 1.6rem 1.2rem;
  border: 1px solid #9ca3af;
  color: #9ca3af;
  background-color: transparent;
}

.btn-approve {
  padding: 0.8rem 1.6rem;
  background-color: var(--approve);
  color: white;
  border: none;
}

.btn-reject {
  padding: 0.8rem 1.6rem;
  background-color: var(--reject);
  color: white;
  border: none;
}

.btn-purchase {
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  line-height: 2rem;
  text-align: no-underline;
  background-color: var(--brand-primary);
  color: white;
  border: none;
}

/* --- FORMS --- */
/* TODO: extract this out later to separate .css */

select,
textarea,
input[type="text"],
input[type="number"],
input[type^="datetime"],
input[type="email"],
input[type="password"] {
  appearance: none;
  display: block;
  width: 100%;
  background-color: white;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  padding: 1.6rem 1.2rem;
  line-height: 1.75rem;
  font-size: 1.6rem;
}

label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-weight: 600;
}

input[type="checkbox"] {
  height: 1.6rem;
  width: 1.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  color: var(--brand-primary);
}

input[type="checkbox"]:focus {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* --- FLASH NOTICES --- */
/* TODO: extract this out later to separate .css */

div.alert {
  background-color: #fee2e2;
  font-size: 1.6rem;
  div {
    margin-left: auto;
    margin-right: auto;
    padding: 1.6rem 0.8rem;
    color: #dc2626;
    text-align: center;
    font-weight: 500;
    font-family: Sans-Serif;
  }
}

div.notice {
  background-color: #bbf7d0;
  font-size: 1.6rem;
  div {
    margin-left: auto;
    margin-right: auto;
    padding: 1.6rem 0.8rem;
    color: #16a34a;
    text-align: center;
    font-weight: 500;
    font-family: Sans-Serif;
  }
}

/* Devise */
#error_explanation {
  background-color: #fef2f2;
  color: #b91c1c;
  padding: 1.6rem;
  border: 1px solid #fca5a5;
  border-radius: 0.4rem;
  margin-bottom: 2.4rem;

  h2 {
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 1.2rem;
  }

  ul {
    list-style: disc;
    padding-left: 2.4rem;
  }
}

.info-note {
  background-color: #f8f8f8;
  border: 1px solid #999;
  border-radius: 0.6rem;
  color: #999;
  text-align: center;
  padding: .75em;
  margin: 1.2em 0;
  a { color: #999; }
}

.login-panel {
  display: grid;
  gap: 2.4rem;
}

.login-form,
.password-login-form {
  display: grid;
  gap: 1.2rem;
}

.login-mode-frame {
  overflow: hidden;
}

.login-mode-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--brand-primary);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  padding: 0.4rem 0;
  text-align: left;
}

.login-links {
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  padding-top: 1.6rem;
}

.role-options {
  border: 0;
  display: grid;
  column-gap: 3.2rem;
  row-gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.8rem 0;
  padding: 0;
}

.role-options legend {
  display: block;
  grid-column: 1 / -1;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
  font-weight: 600;
}

.role-option {
  display: block;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.role-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option-content {
  align-items: center;
  border-radius: 0.6rem;
  display: flex;
  gap: 1.4rem;
  min-height: 5.6rem;
  padding: 0.8rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.role-option-control {
  align-items: center;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.4rem;
  justify-content: center;
  margin-top: 0.1rem;
  width: 2.4rem;
}

.role-option-control::after {
  background-color: var(--brand-primary);
  border-radius: 50%;
  content: "";
  display: block;
  height: 1.2rem;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 1.2rem;
}

.role-option-title,
.role-option-note {
  display: block;
}

.role-option-title {
  color: var(--text-color);
  font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 3.6rem;
}

.role-option:hover .role-option-content,
.role-option input[type="radio"]:focus-visible + .role-option-content {
  transform: translateY(-1px);
}

.role-option input[type="radio"]:checked + .role-option-content {
  color: var(--brand-primary);
}

.role-option input[type="radio"]:checked + .role-option-content .role-option-control {
  border-color: var(--brand-primary);
}

.role-option input[type="radio"]:checked + .role-option-content .role-option-title {
  color: var(--brand-primary);
}

.role-option input[type="radio"]:checked + .role-option-content .role-option-control::after {
  opacity: 1;
  transform: scale(1);
}

.check-email-message {
  margin: 1.2rem 0 2.4rem;
}

.check-email-message h2 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 3rem;
  margin-bottom: 1.2rem;
}

.check-email-message p {
  color: #4b5563;
  margin-bottom: 1.2rem;
}

.check-email-message strong {
  color: var(--text-color);
  font-weight: 700;
}

/* === APPLICATION LAYOUT === */

main-container {
  display:grid;
  grid-template-rows:auto 1fr auto;
  grid-template-columns:100%;
  background-color: var(--admin-background);
  font-size: 1.6rem;

  main {
    width: 100%;
    min-height: 50vh;
    margin: auto;
  }
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1160px;
  padding: 0 1.6rem;
}

/* --- HEADER / NAV --- */

header {
  width: 100%;
  margin: 0;
  padding: 1.6rem 0;
  background-color: var(--brand-primary);

  #toggleButton {
    display: none;
  }

  nav {
    width: 100%;
    max-width: 1160px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;

    .logo {
      max-width: 38.5rem;
    }

    svg.chevron-down,
    svg.chevron-right {
      display: inline-flex;
      align-items: center;
      width: 1.6rem;
      height: 1.6rem;
      color: white;
      stroke: currentColor;
    }

    ul#primary-navigation {
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 1.6rem;
      line-height: 2.4rem;
      text-transform: uppercase;
      list-style-type: none;
      margin: 0;
      padding: 0;

      li {
        a {
          display: inline;
          align-items: center;
          padding: 0.8rem 1.2rem;
          color: white;
          text-decoration: none;
        }

        .disabled-nav-link {
          display: inline;
          align-items: center;
          padding: 0.8rem 1.2rem;
          color: rgba(255, 255, 255, 0.5);
          text-decoration: none;
        }

        a.login-btn {
          border: 1px solid white;
          border-radius: 0.4rem;
          font-size: 1.4rem;
          line-height: 2rem;
          color: white;
          display: inline-flex;
          margin: 0 1.1rem 0 2.4rem;
          text-transform: uppercase;
        }

        ul.sub-menu {
          list-style-type: none;
          background-color: var(--brand-primary);
          min-width: 23.5rem;
          border-bottom-right-radius: 0.4rem;
          border-bottom-left-radius: 0.4rem;
          box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

          li {
            border-bottom: 1px solid rgba(245, 245, 245, 0.35);
            padding: 1.2rem 0;

            a {
              display: inline;
              align-items: center;
              padding: -1rem 1.2rem -0.8rem -1.2rem;
              color: white;
              text-decoration: none;
            }

            .disabled-nav-link {
              display: inline;
              align-items: center;
              padding: -1rem 1.2rem -0.8rem -1.2rem;
              color: rgba(255, 255, 255, 0.5);
              text-decoration: none;
            }
          }
        }
      }

      li.profile-nav {
        display: inline-flex;
        align-items: center;

        .profile-avatar {
          display: inline-flex;
          width: 3.4rem;
          height: 3.4rem;
          margin-left: 1.6rem;
          margin-right: 0.8rem;
          border: 1px solid rgba(255, 255, 255, 0.8);
          border-radius: 0.6rem;
          object-fit: cover;
        }
      }
    }


    .profile-dropdown {
      border-radius: 0.6rem;
      font-size: medium;
      margin-top: 0.8rem;

      ul#profile-menu {
        list-style: none;

        .divider {
          border-top: 1px solid var(--widget-border);
          a { margin-top: 0.6rem; }
        }

        li {
          display: flex;
          align-items: center;
          font-size: 1.4rem;
          line-height: 2rem;
          margin: 0.8rem 0;


          a {
            color: #7c7c7c;
            text-decoration: none;
            display: inline-flex;
            align-items: center;

            svg.profile-icon-fill {
              display: inline-flex;
              align-items: center;
              width: 1.8rem;
              height: 1.8rem;
              color: #7c7c7c;
              fill: currentColor;
              margin-right: 0.8rem;
            }
            svg.profile-icon-outline {
              display: inline-flex;
              align-items: center;
              width: 1.8rem;
              height: 1.8rem;
              color: #7c7c7c;
              stroke: currentColor;
              margin-right: 0.8rem;
            }
          }
        }
      }
    }
  }
}

#closeButton {
  display: none;
}

#cardContainer {
  display: none;
}

/* small screens */
@media (max-width: 1159px) {
  header {

  nav {
   .logo { max-width: 30rem; }
     ul#primary-navigation { display: none; }

      #toggleButton {
        display: block;
        color: white;
        background-color: transparent;
        border: none;
        padding: 0.8rem 1.6rem;
        border-radius: 0.4rem;
        cursor: pointer;
      }
    }
  }

  #cardContainer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    overflow: hidden;
    background-color: var(--brand-primary);
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;

    #closeButton {
      display: block;
      color: white;
      background: transparent;
      border: none;
      position: absolute;
      top: 3rem;
      right: 2rem;
      z-index: 80;
      cursor: pointer;
    }

    .card-content {
      position: relative;
      width: 100%;
      height: 100%;
      padding: 6.4rem 3.2rem;

      .inner {
        display: flex;
        flex-direction: column;
        row-gap: 0.4rem;
        width: 100%;
        height: auto;
        margin-top: 2.4rem;

        item:hover {
          background-color: rgba(0, 0, 0, 0.15);
        }

        .item {
          display: flex;
          align-items: center;
          width: 100%;
          height: auto;
          margin-top: -1.4rem;
          padding: 1.6rem;
          column-gap: 1.6rem;
          color: white;
          cursor: pointer;
          border-radius: 0.6rem;
          transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
          transition-duration: 500ms;

          a.home {
            text-transform: uppercase;
          }

          a {
            display: inline-flex;
            align-items: center;
            color: white;
            font-size: 1.8rem;
            line-height: 2.8rem;
            font-weight: 400;
            text-decoration: none;


            svg.fill {
              display: inline-flex;
              align-items: center;
              width: 2rem;
              height: 2rem;
              color: white;
              fill: currentColor;
              margin-right: 1rem;
            }

            svg.outline {
              display: inline-flex;
              align-items: center;
              width: 2rem;
              height: 2rem;
              color: white;
              stroke: currentColor;
              margin-right: 1rem;
            }

            svg.fill-6 {
              display: inline-flex;
              align-items: center;
              width: 2.4rem;
              height: 2.4rem;
              color: white;
              fill: currentColor;
              margin-right: 1rem;
            }
          }
        }

        .hr {
          width: 100%;
          height: auto;
          display: flex;
          align-items: center;
          margin: 1.6rem 0;
          border-bottom: 1px solid rgba(243, 244, 246, 0.35);
        }
      }

      .login-logout {
        position: absolute;
        bottom: 3rem;
        left: 0;
        width: 100%;
        height: auto;
        text-align: center;
        padding: 2.4rem;

        a {
          font-size: 2rem;
          line-height: 2.8rem;
          font-weight: 500;
          padding: 1.2rem 2.4rem;
          border: 2px solid white;
          border-radius: 0.4rem;
          color: white;
          cursor: pointer;
          display: inline;
          text-decoration: none;
          text-transform: uppercase;
        }
      }
    }
  }
}

/* --- FOOTER --- */

footer {
  width: 100%;
  background-color: #18181b;
  color: white;
  margin-top: 4rem;
  padding: 2.4rem 0;

  .footer-flex {
    width: 100%;
    max-width: 1160px;
    margin: 2.4rem auto;
    padding: 0 2.4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    div {
      flex-basis: 100%;

      h3 {
        font-size: 2rem;
        font-weight: 400;
        line-height: 2.8rem;
        padding: 1.2rem 0;
      }

      p {
        display: inline-flex;
        align-items: center;
        font-weight: 300;
        font-size: 1.4rem;
        line-height: 2rem;

        a { text-decoration: none; }
      }

      svg {
        color: white;
        fill: currentColor;
        margin-left: 2px;
        display: inline-flex;
        align-items: center;
      }

      svg.map-pin {
        width: 20px;
        height: 20px;
        margin-right: 1rem;
      }

      svg.envelope {
        width: 20px;
        height: 16px;
        margin-right: 1rem;
      }

      svg.socials {
        width: 45px;
        height: 45px;
      }

      form {
        input[type="submit"] {
          font-weight: 500;
          font-size: 1.2rem;
          padding: 1.2rem 2.4rem;
          border: 1px solid #262626;
          border-radius: 0.4rem;
          background-color: black;
          color: white;
          text-transform: uppercase;
          cursor: pointer;
          margin-top: 0.8rem;
        }
      }
    }
  }
}

@media (min-width: 992px) {
  footer {
    .col-socials {
      text-align: center;
      width: 100%;
      padding: 0 auto;
    }
    .footer-flex {
      div {
        flex-basis: 33.333333%;
        margin-top: 0;
        margin-bottom: 0;
      }
    }
  }
}

@media (max-width: 576px) {
  footer {
    .col-company { margin-top: -2.4rem; }
    .col-socials { text-align: left; }
    .col-socials, .col-subscribe { margin-top: 2.4rem; }
  }
}

/* --- ROADIE BRANDING  --- */

.site-powered-by {
  width: 100%;
  height:55px;
  background-color: black;
  text-align: center;
  font-size: x-small;
  color: #6b7280;
  padding: 2rem;

  a {
    color: #6b7280;
    text-decoration: none;
    line-height: 1.5rem;
  }
}

/* === END APPLICATION LAYOUT === */

/* === DEVISE === */

.devise-wrapper {
  width: 100%;
  max-width: 50rem;
  margin: 2.4rem auto;
  padding: 0 1.6rem;

  label { margin-top: 2.4rem; }
  input[type="submit"] { width: 100%; margin: 2.4rem auto; }
  select { margin-bottom: 2.4rem; }
  hr { margin: 1.6rem auto; color: var(--pale-grey); }
  h3 { font-weight: 700; margin-bottom: 1.2rem; }
  p {
    margin: 0.8rem auto;
    a { text-decoration: underline; color: var(--brand-primary); font-size: 1.4rem; }
  }
  span {
    font-style: italic;
    color: #4b5563;
    font-size: 1.4rem;
  }
  .callout { color: #ef4444; }

  .pwd-show-hide {
    display: flex;
    button {
      margin-left: -0.8rem;
      background-color: white;
      border: 1px solid #d1d5db;
      border-left: 1px solid white;
      border-radius: 0.4rem;
      border-radius-left: 0;
      padding: 1.2rem 1.6rem;
      svg {
        color: #d1d5db;
        stroke: currentColor;
        width: 2.4rem;
        height: 2.4rem;
      }
    }
  }

  .remember-me {
    display: flex;
    align-items: center;
    margin-top: 2.4rem;
    label {
      margin: auto auto 0 1.2rem;
    }
  }
}

/* === END DEVISE === */

/* === ADMIN CONTENT === */

admin-container {
  display:grid;
  grid-template-rows:auto 1fr auto;
  grid-template-columns:100%;
  background-color: var(--admin-background);

  /* fallback height */
  min-height:100vh;

  /* new small viewport height for modern browsers */
  min-height:100svh;
}

.roadie {
  width: 100%;
  text-align: center;
  font-size: x-small;
  color: #222222;
  padding: 2rem;

  a {
    color: #222222;
    text-decoration: none;
    line-height: 1.5rem;
  }
}

/* --- ADMIN HEADER --- */
admin-header {
  width: 99%;

  div > nav {
    width: 100%;
    margin: auto auto 2rem auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 60px;

    div {
      text-decoration: none;
      display: inline-flex;
      align-items: center;

      a.logo > img {
        border-radius: 0.8rem;
        width: 40px;
        height: 40px;
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      }

      ul#admin-navigation {
        list-style-type: none;
        margin: 0 0 0 2rem;
        padding: 0;
        display: inline-flex;
        align-items: center;

        li {
          display: inline-flex;
          align-items: center;
          padding: 0 1rem;
          font-size: medium;

          a {
            text-decoration: none;
            color: #222222;
          }
        }
      }
    }

    div#action-menus {
      display: inline-flex;
      align-self: flex-end;
      gap: 2rem;

      svg.admin-settings {
        width: 2.4rem;
        height: 2.4rem;
        color: #565656;
        stroke: #565656;
      }

      button#toggleButton {
        color: var(--text-color);
        border: none;
        background-color: white;
        display: none;
      }


      div.dropdown {

        .divider {
          border-top: 1px solid var(--widget-border);
          a { margin-top: 1.2rem; }
        }

        li {
          list-style-type: none;
          display: flex;
          align-items: center;

          svg.chevron-down {
            width: 16px;
            height: 16px;
            margin-left: 2px;
            color: var(--pale-gray);
            display: inline-flex;
            stroke: currentColor;
          }

          img#profile-avatar {
            width: 30px;
            height: 30px;
            border: 1px solid var(--brand-primary);
            border-radius: 0.8rem;
            object-fit: cover;
          }

          a svg {
            width: 16px;
            height: 16px;
            margin-left: 2px;
            color: var(--pale-gray);
            display: inline-flex;

            .filled { fill: currentColor; }
            .outline { stroke: currentColor; }
          }
        }
      }
    }
  }
}

/* --- ADMIN MAIN --- */

admin-main {
  width: 100%;
  max-width: calc(100vw - 10%);
  margin: 0 auto;
  color: var(--admin-text);
  font-weight: 300;

  h1 {
    color: #222222;
  }

  #pagination {
    display: grid;
    justify-items: left;
    margin: 2.5rem;

    span a, span.current {
      color: var(--admin-text);
      font-size: 1.4rem;
      font-weight: 300;
      text-decoration: none;
      padding: 0 0.5rem;
    }

  }
}

/* --- Admin Dialog Modals --- */

dialog {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  margin: auto;
  background: white;
  padding: 0;
  border: 1px solid #e7e7e8;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-radius: 0.8rem;
  width: fit-content;
  max-height: 90vh;
}

#candidate-modal {
  width: 70vw;
  max-width: 1024px;

  #wrapper {
    padding: 4rem 4rem 1rem 4rem;

    #heading {
      display: flex;
      align-items: center;
      margin: 4rem 0;

      img {
        width: 10rem;
        height: 10rem;
        display: inline-flex;
        object-fit: cover;
      }

      h1 {
        font-size: 3.2rem;
        font-weight:600;
        display: inline-flex;
        padding: 0 0.5rem;
      }
    }

    #details {
      margin-bottom: 2rem;
      color: var(--admin-text);
      display: grid;
      grid-template-columns: 1fr 4fr;

      svg.candidate-location {
        width: 20px;
        height: 20px;
        color: var(--admin-text);
        stroke: var(--admin-text);
        margin: auto 0.3rem -0.3rem auto;
        display: inline-flex;
        justify-items: center;

      }
    }

    #resume {
      span {
        width: 100%;
        display: flex;
        justify-content: space-between;

        h2 {
          font-size: 2.8rem;
          font-weight: 500;
        }

        a {
          margin-bottom: 2rem;
          padding: 0 0.5rem;
          color: darkgray;
          font-size: 1.5rem;
          line-height: unset;
          font-weight: 300;
          border: 1px solid darkgrey;
          text-decoration: none;
          border-radius: 0.5rem;
        }
      }

      embed {
        width: 100%;
        height: fit-content;
        min-height: 80vh;
      }
    }
  }

  #action {
    width: 100%;
    border-top: 1px solid var(--widget-border);
    padding: 2rem;
    margin: 0;
    display: flex;
    justify-content: space-between;

    #approve-reject {
      display: inline-flex;

      button.approve {
        padding: 1.2rem 0.8rem;
        color: white;
        background-color: color-mix(in srgb,var(--approve),#fff 20%);
      }

        button.reject {
        padding: 1.2rem 0.8rem;
        color: white;
        background-color: color-mix(in srgb,var(--reject),#fff 20%);
      }
    }
  }
}

#search-wrapper {
  display: flex;

  input[type="text"] {
    font-size: 1.2rem;
    padding: 0.8rem;
    width: 30rem;
    max-width: 35rem;
  }
}

#sort-wrapper {
  display: flex;
  justify-content: end;
  margin-top: -3rem;
  margin-bottom: 2rem;

  label {
    display: inline-flex;
    margin-right: 0.5rem;
    margin-top: 1rem;
  }

  #sort_by {
    display: inline-flex;
    min-width: 15rem;
    width: fit-content;
    padding: 1rem;
  }

  button {
    background: none;
    border: none;
  }

  svg {
    width: 3rem;
    height: 3rem;
    color: white;
    background-color: color-mix(in srgb, var(--brand-primary), #fff 20%);
    margin-top: 0.1rem;
    margin-left: 1rem;
    border-radius: 0.5rem;
    padding: 0.4rem;
  }
}

/* --- Admin Dashboard - Index --- */

admin-dashboard {
  width: 100%;
  margin: auto 2rem;

  dashboard-container {
    width: 100%;
    display: grid;
    grid-gap: 3rem;
    justify-items: stretch;
    grid-template-columns: minmax(72%, 2fr) minmax(28%, 1fr);
    align-items: start;
    color: var(--admin-text);
    margin: 2rem 0;

    dashboard-widgets{
      margin: 2rem 0;
      column-span: 2;

      widget-container {
        display: grid;
        grid-template-columns: minmax(45%, 1fr) minmax(45%, 1fr);
        grid-template-rows: auto;
        gap: 1.5rem;

        .widget {
          background-color: white;
          border: 1px solid var(--widget-border);
          border-radius: 0.8rem;
          padding: 2rem 1rem;

          h2.chart-title {
            font-size: 1.4rem;
            font-weight: 400;
          }
        }
      }
    }

    quick-links {
      margin: 2rem 0;
      column-span: 1;

      quick-links-container {
        display: grid;
        grid-template-rows: 1fr;
        gap: 2rem;

        .links {
          background-color: white;
          border: 1px solid var(--widget-border);
          border-radius: 0.8rem;
          padding: 2rem;
          gap: 1.5rem;

          h2 {
            font-size: 1.6rem;
            font-weight: 600;
            margin-bottom: 2rem;
          }

          a {
            text-decoration: none;
            display: flex;
            font-size: 1.6rem;
            color: var(--admin-text);
            padding: .5rem 0;

            svg {
              display: inline-flex;
              align-items: center;
              width: 2rem;
              height: 2rem;
              margin-right: 0.3rem;
              color: #282828;
            }
          }
        }

        .stats {
          background: var(--brand-primary);
          color: white;
          padding: 1.4rem;
          border-radius: 0.8rem;
          text-align: center;

          h2 {
            font-size: 4.5rem;
            margin: 2rem 0 0.8rem 0;
          }

          p {
            font-size: 1.5rem;
            font-weight: 300;
          }

          p.last {
            margin-bottom: 2rem;
          }
        }
      }
    }
  }
}

admin-jobs,
admin-candidates,
admin-employers,
admin-settings {

  table {
    width: 100%;
    padding: 1rem;
    font-weight: 300;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    /* FIXME: in order to have a border radius and border collapse we need 2 tables - an inner and an outer */
    border-radius: 0.8rem;
    /* for bottom border to show */
    border-collapse: collapse;
    border: 1px solid #e7e7e8;

    tr {
      font-size: 1.6rem;
      border-bottom: 1px solid #e7e7e8;
      line-height: 4rem;

      td {
        padding: 1.2rem 1rem;
        vertical-align: middle;
      }
    }

    thead tr {
      font-size: 1.5rem;

      a {
        color: var(--brand-primary);
      }
    }
  }
}

admin-jobs {

  .page-heading {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 2rem;
    background-color: transparent;

    h1 {
      margin-right: 1rem;
    }

    .paid-jobs-count {
      background-color: var(--green-bg);
      color: var(--green-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin: 0 0.5rem;
      font-size: small;
    }

    .pending-jobs-count {
      background-color: var(--yellow-bg);
      color: var(--yellow-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin: 0 0.5rem;
      font-size: small;
    }

    .admin-jobs-count {
      background-color: var(--purple-bg);
      color: var(--purple-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin: 0 0.5rem;
      font-size: small;
    }

    .admin-draft-jobs-count {
      background-color: var(--gray-bg);
      color: var(--gray-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin: 0 0.5rem;
      font-size: small;
    }
  }

  .add-job {
    display: flex;
    align-items: center;
    margin-top: -0.5rem;
    color: var(--brand-primary);
    font-size: 1.5rem;

    svg {
      width: 2rem;
      height: 2rem;
      color: var(--brand-primary);
      stroke: var(--brand-primary);
    }
  }

  .inline-bullet {
    width: 1rem;
    height: 3rem;
    margin-right: 1rem;
  }

  .admin {
    border: 2px solid var(--bullet-admin);
  }

  .published {
    border: 2px solid var(--bullet-published);
  }

  .pending {
    border: 2px solid var(--bullet-pending);
  }

  .draft {
    border: 2px solid var(--bullet-draft);
  }

  .expired {
    border: 2px solid var(--bullet-expired);
  }

  a {
    text-decoration: none;
    color: var(--brand-primary);
  }

  svg.job-filled {
    width: 3.2rem;
    height: 3.2rem;
    color: var(--brand-primary);
    stroke: var(--brand-primary);
    margin: auto auto;
  }

  td {

    div.actions {
      padding-left: 1.8rem;
      margin-top: -1rem;
      display: flex;
      align-items: center;

      svg.check, svg.delete {
        display: flex;
        width: 3.2rem;
        height: 3.2rem;
        color: #9ca3af;
        stroke: #9ca3af;
        margin: auto 0.8rem auto auto;
      }

      svg.edit {
        display: flex;
        align-self: flex-end;
        width: 2rem;
        height: 2rem;
        color: #9ca3af;
        stroke: #9ca3af;
        margin: auto 0.8rem auto auto;
      }
    }
  }
}

admin-candidates,
admin-employers {

  .page-heading {
    display: inline-flex;
    align-items: center;
    background-color: transparent;

    .candidate-count {
      background-color: var(--green-bg);
      color: var(--green-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin-left: 1rem;
      font-size: small;
    }

    .pending-count {
      background-color: var(--yellow-bg);
      color: var(--yellow-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin-left: 1rem;
      font-size: small;
    }

    .employers-count {
      background-color: var(--gray-bg);
      color: var(--gray-fg);
      border-radius: 1.8rem;
      padding: 0.8rem 1.5rem;
      margin: 0 1rem;
      font-size: small;
    }
  }

  tr {
    padding: 1.2rem 1rem;

    td.name_or_email {
      display: inline-flex;
      align-items: center;
      line-height: 2.2rem;

      img {
        width: 4rem;
        height: 4rem;
        border-radius: 10rem;
        margin-right: 0.5rem;
        display: inline-flex;
      }

      button {
        color: var(--brand-primary);
        font-weight: 300;
        display: inline-flex;
        align-items: center;
        border: none;
        background: none;
        margin-left: 0.5rem;
        cursor: pointer;
      }

      span {
        display: inline-flex;
      }
    }

    td.status {

      .status {
        font-size: small;
        font-style: italic;
        border-radius: 10rem;
        padding: 0.5rem 1.2rem;
        background-color: var(--yellow-bg);
        color: var(--yellow-fg);
      }

      .approved {
        background-color: var(--green-bg);
        color: var(--green-fg);
      }
    }

    td.company_logo {
      align-self: center;
      text-align: center;
    }
  }

  svg.created-at,
  svg.activity-hourglass {
    width: 20px;
    height: 20px;
    color: var(--admin-text);
    stroke: var(--admin-text);
    margin: auto 0.3rem -0.4rem auto;
    display: inline-flex;
    justify-items: center;
  }
}

/* --- Admin Dashboard - Settings --- */

admin-settings {

  h2 {
    margin: 1.8rem auto 1.5rem auto;
  }
}

#job-categories {
  details {
    font-size: 1.5rem;
    margin: 1.5rem 0;

    form {
      margin: 1.5rem 0;
      padding: 1.5rem;
      border: 1px solid var(--widget-border);
      background-color: white;
      border-radius: 0.6rem;

      [type="submit"] {
        margin-top: 1.2rem;
      }
    }
  }

  thead tr td {
    font-weight: 600;
    font-size: 1.8rem;
  }

  td.job-category-actions {
    display: flex;
    justify-content: flex-end;
    font-weight: 500;
    font-size: 1.6rem;

    svg.edit {
      width: 2rem;
      height: 2rem;
      color: #9ca3af;
      stroke: #9ca3af;
      margin: 0;
      margin-right: 1rem;
    }

    svg.delete {
      width: 3.4rem;
      height: 3.4rem;
      color: #9ca3af;
      stroke: #9ca3af;
    }
  }
}

/* --- Admin Dashboard - Analytics --- */

admin-analytics {
  width: 100%;
  margin: auto 2rem;

  .page-heading {
    background-color: transparent;
  }

  by-day, by-source {
    display: grid;
    grid-template-columns: minmax(100%, 1fr);
    grid-template-rows: 1fr;
    gap: 1.5rem;
    margin: 3.5rem 0;

    h2 {
      margin-bottom: 1.5rem;
    }
  }

  by-device-os-browser {
    display: grid;
    grid-template-columns: minmax(33%, 1fr) minmax(33%, 1fr) minmax(33%, 1fr);
    grid-template-rows: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;

    h2 {
      text-align: center;
      margin-bottom: 2rem;
    }
  }
}

/* === END ADMIN CONTENT === */

/* === BEGIN STATIC PAGES === */

.page-heading {
  background-color: var(--pale-grey);
  margin-top: 0;
  padding: 3.2rem 0;
  text-align: center;

  h1 {
    font-size: 3rem;
    line-height: 3.6rem;
    font-weight: 600;
  }
}

.cols-1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 100%;
  max-width: 1160px;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem 3.2rem;
  gap: 3.2rem;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 1160px;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem 3.2rem;
  gap: 3.2rem;
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 1160px;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem 3.2rem;
  gap: 3.2rem;
}

.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 1160px;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem 3.2rem;
  gap: 3.2rem;
}

.cols-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: 1160px;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem 3.2rem;
  gap: 3.2rem;
}

@media (max-width: 768px) {
  .cols-2, .cols-3, .cols-4, .cols-5 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.6rem;
  }
}

/* --- Home Page --- */

.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 80vh;
  max-height: 80vh;
  padding: 2rem;

  background: url("/assets/cover-photo-f9bc221c.jpg");
  background-size: cover;
  background-position: 100% 0;
  background-attachment: scroll;
  background-repeat: no-repeat;


  div {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));

    h1 {
      font-size: 4.8rem;
      line-height: 1;
      font-weight: 700;
      color: white;
    }

    h2 {
      font-size: 2.4rem;
      line-height: 3.2rem;
      font-weight: 700;
      color: white;
    }

    a {
      color: white;
      background-color: var(--brand-primary);
      margin-top: 2.4rem;
      margin-bottom: 2.4rem;
      padding: 1.6rem 3.2rem;
      width: fit-content;
      font-size: 1.8rem;
      text-decoration: none;
      border-radius: 0.4rem;
    }

    a:hover {
      background-color: black;
      color: #fde047;
    }
  }
}

.job-seekers {
  width: 100%;
  background-color: var(--brand-secondary);
  padding: 2.4rem 0;

  div {
    margin: 2.4rem auto;
    color: white;
    padding: 2rem;

    & h2 {
      font-size: 2.4rem;
      line-height: 3.2rem;
      font-weight: 700;
      margin-bottom: 2.4rem;
    }

    & h3 {
      font-size: 1.6rem;
      font-weight: 600;
    }

    & p {
      font-style: italic;
      font-weight: 300;
      font-size: 1.6rem;
    }
  }
}

.homepage-jobs {

  h2 {
    text-align: center;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin-top: 4rem;
  }

  hr {
    width: 12.8rem;
    height: 0.4rem;
    margin: 1.6rem auto 0.8rem;
    background-color: var(--brand-primary);
    border: 0;
    border-radius: 0.4rem;
  }

  a.more-jobs {
    display: flex;
    align-content: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 4rem;
    text-decoration: none;
    font-size: 1.6rem;
  }
}

.home-cta {
  width: 100%;
  background-color: var(--brand-secondary);
  margin: -0.4rem;
  padding: 2.4rem 2rem;
  color: white;

  .cta-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;

    h2 {
      font-size: 2rem;
      line-height: 2.8rem;
      font-weight: 700;
    }

    .cta-buttons {
      display: inline-flex;
      justify-content: center;
      gap: 2rem;

      a {
        font-size: 1.6rem;
        text-transform: uppercase;
        border: 1px solid white;
        text-decoration: none;
      }
    }
  }
}

.home-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin: 0;
  padding: 2rem;
  background-size: cover;
  background-attachment: scroll;
  background-position: center center;
  background: url("/assets/block-background-58169a1f.png");

  .benefits-cols {

    div {
      background-color: white;
      margin: 0 auto;
      padding: 2.5rem;
      border-radius: 0.8rem;

      h2 {
        margin-top: 2.4rem;
        font-size: 2.4rem;
        line-height: 3.2rem;
        font-weight: 700;
        text-align: center;
      }

      ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
          font-size: 2rem;
          line-height: 3.2rem;
          margin-bottom: 2.4rem;
          margin-top: 2.4rem;
          padding-left: .8rem;
          padding-right: .8rem;

          svg.chevron-right {
            display: inline;
            width: 2.4rem;
            min-width: 2.4rem;
            height: 2.4rem;
            min-height: 2.4rem;
            color: var(--brand-primary);
            stroke: currentColor;
            stroke-width: 4;
            margin-bottom: -0.5rem;
          }
        }
      }
    }
  }
}

.partners {
  text-align: center;
  margin: 2.4rem;

  h2 {
    text-align: center;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin-top: 4rem;
  }

  hr {
    width: 12.8rem;
    height: 0.4rem;
    margin: 1.6rem auto 0.8rem;
    background-color: var(--brand-primary);
    border: 0;
    border-radius: 0.4rem;
  }

  .client-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    div {
      padding-top: 1.6rem;
      padding-bottom: 1.6rem;

      img {
        display: inline;
        max-height: 80px;;
      }
    }
  }

}

.remember {
  width: 100%;
  background-color: var(--brand-primary);
  color: white;

  & div {
    margin-bottom: -4rem;
    padding: 0 2rem;

    & h2 {
      padding-top: 2.4rem;
      font-weight: 500;
      font-size: 2rem;
      line-height: 2.8rem;
      color: white;
    }

    & p {
      padding-bottom: 2.4rem;
      font-size: 1.8rem;
      line-height: 2.8rem;
      color: white;
    }
  }
}

@media (max-width: 512px) {
  .home-hero {
    background-position: 60% 60%;
    max-height: 48rem;
  }
}

@media (max-width: 768px) {
  .home-cta {
    .cta-cols {
      grid-template-columns: repeat(1, minmax(0, 1fr));

      .cta-buttons {
        margin-top: 2.4rem;
      }
    }
  }
  .benefits-cols.cols-2 {
    padding: 0;
    gap: 1.5rem;
    div { margin: 0; }
  }
  .partners {
    .client-cols {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
}

@media (min-width: 769px) {
  .home-hero {
    background-position: center top;
  }
}

/* --- About Page --- */

.cols-2.about {
  div {
    margin-top: 3.2rem;
    margin-bottom: 3.2rem;

    h2 {
      font-size: 2.4rem;
      line-height: 3.2rem;
      font-weight: 700;
      text-align: center;
    }

    h3 {
      font-size: 2rem;
      line-height: 2.8rem;
      font-weight: 400;
      margin-top: 1.6rem;
      margin-bottom: 1.6rem;
    }

    p {
      color: #52525b;
      font-size: 1.6rem;
      line-height: 2.4rem;
    }
  }
}

.about-cta {
  width: 100%;
  background-color: var(--pale-grey);
  padding: 3.2rem 2rem;

  div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 2rem;

    h2 {
      font-size: 2.4rem;
      line-height: 3.2rem;
      font-weight: 700;
      text-align: center;
    }

    .actions {
      display: inline-flex;
      flex-wrap: wrap;

      a {
        font-size: 1.6rem;
        line-height: 2.4rem;
        font-weight: 500;
        text-decoration: none;
        text-transform: uppercase;
        padding: 1.2rem 1.6rem;
      }
    }
  }
}

@media (max-width: 640px) {
  .cols-2.about {
    div {
      margin-top: 1.6rem;
      margin-bottom: 1.6rem;
    }
  }
}

@media (max-width: 1024px) {
  .about-cta {
    div {
      .actions {
        margin: 2.4rem 0 1.2rem;
      }
    }
  }
}

/* --- Contact Page --- */

.contact-header {
  text-align: center;
  font-weight: 700;
  font-size: 3rem;
  line-height: 3.6rem;
  margin: 3rem auto 0;

  hr {
    width: 12.8rem;
    height: 0.4rem;
    margin: 1.6rem auto;
    background-color: var(--brand-primary);
    border: 0;
  }
}

.contact-form {
  width: 100%;
  max-width: 90rem;
  margin: 2.4rem auto;
  padding: 2.4rem 3.2rem;

  div {
    margin-bottom: 2.4rem;
  }

  input[type="submit"] {
    padding: 1.5rem;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    font-size: medium;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0.4rem;
    font-weight: 500;
  }
}

/* --- Terms & Conditions Page --- */

.tos-wrapper {
  margin: 3.2rem auto;
  h2 {
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 3.2rem;
    padding: 1.6rem auto;
  }
  p { padding-bottom: 1.6rem; }
  ol {
    list-style-type:lower-latin;
    li { margin-left: 2.4rem; padding: 0.8rem; }
  }
}

/* --- Maintenance Page --- */

.maintenance {
  margin: 4rem auto;
}

/* === END STATIC PAGES === */

/* === BEGIN SITE CONTENT === */

/* --- Bookmarks --- */

.bookmark-this {
  display: inline-block;
  -webkit-mask: url("/assets/icons/bookmark-d6fdb7bd.svg") no-repeat 100% 100%;
  mask: url("/assets/icons/bookmark-d6fdb7bd.svg") no-repeat 100% 100%;
  -webkit-mask-size: cover;
  mask-size: cover;
  background-color: var(--brand-primary);
  width: 20px;
  height: 20px;
}

.bookmarks {
  margin: 3.2rem auto;
  border-top: 1px solid #e5e7eb;

  .empty {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.6rem 0;
    color: #6b7280;
  }

  .bookmark {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    place-items: start;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    font-size: 1.4rem;
    line-height: 2.0rem;
    border-bottom: 1px solid #e5e7eb;

    .actions {
      display: inline-flex;
      align-items: center;
      margin-top: -0.4rem;
      font-size: 1.4rem;
      line-height: 2rem;

      svg {
        display: inline;
        width: 20px;
        height: 20px;
        color: rgba(107, 114, 128, 0.5);
        fill: currentColor;
      }

      svg.delete {
        width: 28px;
        height: 28px;
        margin-bottom: -0.6rem;
      }
    }

    .bookmarkable {
      grid-column: span 2 / span 2;

      a {
        text-decoration: none;
        color: var(--brand-primary);
      }
    }

    .note {
      grid-column: span 2 / span 2;

      span {
        color: rgba(107, 114, 128, 0.5);
      }
    }
  }
}

.edit-bookmark {
  form {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 75%;
    margin: 3.2rem auto;

    .note {
      padding-bottom: 1.6rem;
    }

    .btn {
      margin-top: 1.6rem;
      font-size: 1.4rem;
      text-decoration: none;
      border: 1px solid var(--brand-primary);
    }

    .btn-outline {
      border: 1px solid var(--brand-primary);
      margin-left: 1.2rem;
    }

    .errors {
      width: fit-content;
      background-color: #fef2f2;
      color: #b91c1c;
      border: 1px solid #fca5a5;
      border-radius: 0.6rem;
      margin-bottom: 2.4rem;

      ul {
        list-style-type: disc;
        padding-left: 2.4rem;
      }
    }
  }
}

@media (max-width: 768px) {
  .bookmarks {
    .bookmark {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      .actions {
        svg.edit { width: 30px; height: 30px; }
        svg.delete { width: 40px; height: 40px; }
      }
      .bookmarkable {
        font-size: 2.4rem;
        line-height: 3.2rem;
        font-weight: 500;
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
      }
    }
  }
  .edit-bookmark {
    form {
      width: 100%;

      .errors {
        width: 100%;
      }
    }
  }
}

/* --- Job Alerts --- */

.add-alert {
  form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding: 4rem 0 1.5rem;
    select { margin: 1.2rem auto; max-width: 100%; }
    input[type="submit"] { margin: 2rem auto 0.8rem 2rem; padding: 1rem 0.8rem; }
  }
}

.job-alerts {
  margin: 3.2rem auto;
  border-top: 1px solid #e5e7eb;

  .empty {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.6rem 0;
    color: #6b7280;
  }

  .job-alert {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    place-items: start;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    font-size: 1.4rem;
    line-height: 2.0rem;
    border-bottom: 1px solid #e5e7eb;

    .start { justify-self: start; display: inline-flex; align-items: center; }
    .center { justify-self: center; }
    .end { justify-self: end; }

    svg {
      display: inline;
      width: 20px;
      height: 20px;
      color: rgba(107, 114, 128, 0.5);
      fill: currentColor;
    }

    svg.delete {
      width: 28px;
      height: 28px;
      margin-bottom: -0.6rem;
    }

    .btn { padding: 1rem 0.8rem; text-decoration: none; }
  }
}

@media (max-width: 992px) {
  .add-alert {
    max-width: 90%;
    margin: auto;

    form {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      /*input[type="submit"] { margin: 2rem auto 0.8rem 2rem; }*/

      input[type="submit"] {
        margin: 1rem auto;
      }
    }
  }
}

@media (max-width: 768px) {
  .job-alerts {
    max-width: 90%;
    margin: auto;

    .job-alert {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      line-height: 4rem;
      align-items: center;

      .start { justify-self: start; margin-top: -1.5rem; }
      .center { justify-self: start; }
      .end { justify-self: start; }

      svg.delete {
        width: 30px;
        height: 30px;
        margin: 1.4rem 0 0 -1.5rem;
      }
    }
  }
}

/* --- Candidates --- */

.candidate {
  display: flex;
  width: 75%;
  max-width: 1160px;
  margin: 2.4rem auto;
  gap: 3rem;

  .info, .resume {
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    background-color: #f9fafb;
    padding: 2.4rem;
  }

  .info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    width: 100%;
    max-width: 400px;
    color: #6b7280;

    .photo {
      img {
        aspect-ratio: 1 / 1;
        width: 20rem;
        object-fit: cover;
        border-radius: 0.6rem;
        margin-bottom: 2.4rem;
      }
      .name {
        font-size: 2.4rem;
        line-height: 4rem;
        font-weight: 600;
        text-align: center;
        color: var(--brand-primary);
        color: ;

        form {
          display: inline-flex;
        }
      }

      .title {
        text-align: center;
        margin-bottom: 3.2rem;
      }
    }

    .details {
      width: fit-content;
      padding-left: 2rem;
      padding-right: 2rem;
      justify-items: start;

      .pitch {
        /*TODO: unhide once we have a candidate pitch field*/
        display: none;
        text-align: center;
        margin-bottom: 2.4rem;
        font-size: 1.6rem;
        line-height: 2.2rem;
      }

      .skills {
        /*TODO: unhide when skills code is better developed*/
        display: none;
        /*display: grid;*/
        grid-template-columns: repeat(1, minmax(0, 1fr));
        margin-top: 2.4rem;
        gap: 1rem;

        div {
          width: fit-content;
          flex-wrap: wrap;
          gap: 1rem;

          h2 {
            display: block;
            margin-bottom: -1rem;
            color: var(--text-color);
          }
          span {
            display: flex;
            flex-wrap: wrap;
            color: #7c7c7c;
            background-color: var(--pale-grey);
            border: 1px solid #7c7c7c;
            border-radius: 1.2rem;
            min-width: fit-content;
            padding: 0.6rem 0.8rem;
            font-size: x-small;
            text-transform: uppercase;
          }
        }
      }

      div {
        display: flex;
        align-items: flex-start;
        font-size: 1.6rem;
        padding-bottom: 1rem;


        svg.email,
        svg.location {
          width: 20px;
          height: 20px;
          color: rgba(107, 114, 128, 0.5);
          stroke: currentColor;
          stroke-width: 2;
          margin-right: 0.6rem;
        }
      }
    }

    .download { display: none; }
  }

  .resume {
    width: 100%;

    .download {
      display: flex;
      justify-content: end;
      width: 100%;
      margin-top: 2.4rem;

      a {
        text-decoration: none;
        align-self: flex-end;
        margin: -0.6rem 0.2rem;
      }
    }

    .file {
      iframe {
        aspect-ratio: 2 / 2.813;
        width: 100%;
      }
    }
  }
}

@media (max-width: 1159px) {
  .candidate {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2.4rem;
    min-width: 100%;
    padding: 0.8rem;

    .info {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      justify-items: center;
      width: fit-content;
      min-width: 75%;
      margin: 2rem auto;
      padding: 2.4rem 0.8rem;

      .download {
        display: inline-flex;
        margin-top: 2.4rem;

        a { text-decoration: none; }
      }
    }

    .resume {
      display: none;
    }
  }
}

@media (max-width: 768px) {
  .candidate {
    .info {
      margin: 0 auto;
      min-width: 95%;
    }
  }
}

/* --- Dashboard --- */

.employer-dashboard {
  margin-top: 3.2rem;
  margin-bottom: 3.2rem;
  color: #6b7280;

  svg {
    display: inline;
    width: 20px;
    height: 20px;
    color: rgba(107, 114, 128, 0.5);
  }

  .job-add {
    display: flex;
    align-items: center;
    margin-top: 1.6rem;
    color: var(--brand-primary);

    a {
      color: var(--brand-primary);
      text-decoration: none;
    }

    svg.add {
      width: 16px;
      height: 16px;
      color: var(--brand-primary);
      stroke-width: 2.5;
    }
  }

  .empty {
    margin: 3.2rem auto;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .jobs {
    margin: 3.2rem auto;
    border-top: 1px solid #e5e7eb;

    .job {
      display: grid;
      grid-template-rows: repeat(2, minmax(0, 1fr));
      place-items: start;
      padding-top: 1.6rem;
      padding-bottom: 1.6rem;
      line-height: 2.0rem;
      border-bottom: 1px solid #e5e7eb;

      svg.fill { fill: currentColor; }
      svg.outline { stroke: currentColor; }

      .title {
        display: inline-flex;
        align-items: center;
        padding-top: 0.8rem;
        padding-bottom: 1rem;

        svg.filled { margin-right: 0.4rem; }

        a {
          color: #6b7280;
          text-decoration: none;
        }
      }

      .details {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(max-content, 1fr));
        column-gap: 2rem;
        padding-top: 0.8rem;

        svg { margin-right: 0.8rem; }
        span {
          font-style: italic;
          margin-left: 0.8rem;
          display: flex;
        }
        span.pending { color: #fbbf24 }
        span.rejected { color: #ef4444; }

        .dates span {
          display: inline-flex;
          margin-left: 0;
          margin-right: 2rem;
          svg.created { color: var(--bullet-published); }
          svg.expires { color: var(--bullet-expired); }
          svg.draft { color: rgba(107, 114, 128, 0.5); }
        }
        form.button_to { display: inline; }

        .applicants {
          display: flex;
          justify-content: flex-end;
          align-items: center;
        }

        .actions {
          place-self: end;
          a {
            text-decoration: none;
            svg.edit { width: 22px; height: 24px; }
            svg.delete, svg.check { width: 24px; height: 24px; }
          }
        }
      }
    }
  }
}

.candidate-dashboard {
  margin-top: 3.2rem;
  margin-bottom: 3.2rem;
  color: #6b7280;

  svg {
    display: inline;
    width: 20px;
    height: 20px;
    color: rgba(107, 114, 128, 0.5);
  }

  .resume-add {
    display: flex;
    align-items: center;
    margin-top: 1.6rem;
    color: var(--brand-primary);

    a {
      color: var(--brand-primary);
      text-decoration: none;
    }

    svg.add {
      width: 16px;
      height: 16px;
      color: var(--brand-primary);
      stroke-width: 2.5;
    }
  }

  .resumes {
    margin: 3.2rem auto;
    border-top: 1px solid #e5e7eb;

    .resume {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      place-items: start;
      padding-top: 1.6rem;
      padding-bottom: 1.6rem;
      font-size: 1.5rem;
      line-height: 2.0rem;
      border-bottom: 1px solid #e5e7eb;


      svg.fill { fill: currentColor; }
      svg.outline { stroke: currentColor; }

      .file, .title, .location, .created-at, .actions {
        display: inline-flex;
        align-items: center;
        padding: 0.8rem;

        svg { margin-right: 0.8rem; }
        a { color: #6b7280; text-decoration: none; }
        span {
          font-style: italic;
          margin-left: 0.8rem;
        }
        span.pending { color: #fbbf24 }
        span.rejected { color: #ef4444; }
      }

      .actions {
        justify-self: flex-end;
        button {
          padding: 0;
          border: none;
          background-color: transparent;
          svg.edit { width: 24px; height: 20px; }
          svg.delete { width: 28px; height: 28px; }
        }
      }
    }
  }
}

@media (max-width: 1159px) {
  .employer-dashboard {
    grid-template-rows: repeat(1, minmax(0, 1fr));
    .jobs {
      display: grid;
      .job {
        display: grid;
        grid-template-rows: auto;
        .title {
          display: flex;
          font-size: larger;
          a { color: var(--brand-primary); }
        }
        .details {
          grid-template-columns: repeat(1, minmax(max-content, 1fr));
          justify-items: start;
          gap: 2rem;

          .applicants { margin-left: -1rem; }

          .actions {
            place-self: start;
            a {
              margin-right: 1.4rem;
              svg.edit { width: 22px; height: 24px; }
              svg.delete, svg.check { width: 24px; height: 24px; }
            }
          }
        }
      }
    }
  }
  .candidate-dashboard {
    .resumes {
      .resume {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        .actions { justify-self: flex-start; }
      }
    }
  }
}

/* --- Job Postings --- */

.list-price {
  .callout {
    background-color: var(--brand-primary);
    padding: 2.8rem;
    margin: 2.4rem 0;
    h3 { font-size: 1.6rem; font-weight: 400; padding-bottom: 0.5rem; padding-top: 0.5rem; }
    .line-item { text-transform: uppercase; }
    .cost { color: white; }
  }
}

.job-listing-form {
  padding: 4rem 0 2.4rem;
  trix-toolbar .trix-button-group--file-tools { display: none; }
  div[class^="cols-"] { padding: 0; }
  .remote-hybrid {
    display: inline-flex;
    justify-content: flex-end;
    margin-top: 1rem;
    width: 100%;
    input[type="checkbox"] { margin-right: 0.8rem; }
    label { margin-right: 2rem; }
  }
  .renumeration { margin-top: 4.8rem; }
  .salary-ranges {
    .doe {
      display: inline-flex;
      align-items: center;
      justify-content: start;
      width: 100%;
      input[type="checkbox"] {margin-top: 2rem;  margin-right: 0.8rem; }
      label { margin-top: 2.8rem; margin-right: 2rem; }
    }
  }
  .logo {
    display: inline-flex;
    img { width: 100%; max-width: 10rem; }
    input[id='job_posting_company_logo'] {
      margin: 2.4rem auto 0;
      padding: 1rem;
      background-color: var(--pale-grey);
      border: 1px solid var(--widget-border);
      border-radius: 0.6rem;
      width: 100%;
    }
  }
  .admin-publish {
    justify-content: start;
    width: fit-content;
  }
  .tos {
    margin: 2.4rem 0;
    a { color: var(--brand-primary); margin-left: 0.8rem; }
  }
  .actions {
    margin-top: 2.4rem;
    a { margin-left: 2rem; }
  }
}

.job-postings {
  margin: 0 2rem 2.4rem 2rem;
  border-bottom: 1px solid #e5e7eb;

  .job-rows {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .featured-job {
      border-radius: 0.5rem;
      background-color: var(--featured-job-background);
  }

  .job-col-1 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.4rem;
    margin-bottom: -1.2rem;

    .job-title {
      h4 a {
        display: inline-flex;
        margin: 0 0.8rem 0;
        font-weight: 700;
        font-size: 2rem;
        line-height: 2.8rem;
        color: #18181b;
        text-decoration: none;
      }

      a svg.edit {
        display: inline-flex;
        width: 20px;
        height: 20px;
        color: var(--brand-primary);
        fill: currentColor;
      }
    }

    .company-logo {
      width: 100%;
      display: flex;
      justify-content: flex-end;

      img {
        max-height: 50px;
        max-width: 150px;
        object-fit: cover;
      }
    }
  }

  .job-col-2 {
    display: flex;
    justify-content: space-between;
    padding: 1.6rem 0;
    width: 100%;

    div {
      display: flex;
      align-items: center;
      width: 100%;
      font-weight: 400;
      font-size: 1.6rem;
      line-height: 2.4rem;
      margin: auto;

      svg.job-icon {
        display: inline-flex;
        width: 20px;
        height: 20px;
        margin-right: 0.4rem;
        color: var(--brand-primary);
        fill: currentColor;
      }
    }

    .posted-at {
      justify-content: flex-end;
    }
  }
}

div[id^="job-posting-"] {
  .job-heading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    .title {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      justify-items: start;
      .category { color: var(--brand-primary); }
      h1 {
        font-weight: 700;
        margin: 1.2rem auto;
        letter-spacing: 0.05em;
      }
      .type {
        background-color: #84cc16;
        color: white;
        border-radius: 0.4rem;
        text-transform: uppercase;
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
        width: fit-content;
      }
    }
    .bookmark {
      display: flex;
      justify-self: end;
    }
  }
  .job-details {
    margin: 2.4rem auto;
    a.edit {
      color: var(--brand-primary);
      text-decoration: none;
      svg {
        display: inline-flex;
        width: 1.6rem;
        height: 1.6rem;
     }
    }
    .job-metrics {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 1.2rem;
      margin: 2.4rem 0;

      .metric {
        border: 1px solid #e5e7eb;
        border-radius: 0.4rem;
        padding: 1.6rem;
        background-color: #f9fafb;

        .value {
          display: block;
          font-family: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
          font-size: 2.4rem;
          line-height: 3.2rem;
          font-weight: 700;
          color: var(--brand-secondary);
        }

        .label {
          display: block;
          margin-top: 0.4rem;
          font-size: 1.2rem;
          line-height: 1.6rem;
          font-weight: 600;
          text-transform: uppercase;
          color: var(--gray-fg);
        }
      }
    }
    .job-summary {
      margin: 2.4rem auto;
      white-space: pre-line;
      div { margin-bottom: 2.4rem; }
      ul, ol { margin: -2.4rem auto auto 2.4rem }
      blockquote {
        font-style: italic;
        font-weight: 500;
        margin-bottom: 1.2em;
        margin-top: 1.2em;
        padding-left: 1.2em;
        border-left: 4px solid var(--gray-bg);
      }
    }
  }
  @media (min-width: 768px) {
    .job-details {
      .job-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
  }
  .actions { margin: 4rem 0; }
  .candidates {
    h3 {
      margin-bottom: -1.6rem;
      font-size: 2.4rem;
      line-height: 3.2rem;
      font-weight: 600;
    }
    .job-applicants {
      margin-top: 2.4rem;
      border-top: 1px solid #e5e7eb;
      border-bottom: 1px solid #e5e7eb;

      .row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: space-evenly;
        align-items: center;
        border-bottom: 1px solid #e5e7eb;

        img {
          width: 50px;
          height: 50px;
          object-fit: cover;
          border-radius: 0.6rem;
          margin: 1rem 1rem 1rem 0;
          display: inline-flex;
        }

        .name {
          display: inline-flex;
          align-items: center;
          font-size: 1.8rem;
          font-weight: 600;
          a { text-decoration: none; }
        }

        .resume {
          display: inline-flex;
          width: 100%;
          justify-content: end;
          a {
            text-decoration: underline;
            color: var(--text-color);
          }
          svg.icon {
            display: inline;
            width: 20px;
            height: 20px;
            fill: currentColor;
          }
        }

      }
      .row:last-child { border-bottom: none; }
    }
  }
}

.job-index {
  .add-job {
    display: inline-flex;
    align-items: center;
    margin: 1rem;
    a { color: var(--brand-primary); text-decoration: none; }

    svg {
      width: 2rem;
      height: 2rem;
      color: var(--brand-primary);
      stroke-width: 2;
      margin-right: 0.8rem;
    }
  }
}

.job-search-form {
  margin-top: 3.2rem;
  .keyword-location-category {
    margin-bottom: -0.2rem;
    background-color: #f1f5f9;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
    padding: 2rem;
  }

  .job-types {
    margin-top: -0.2rem;
    align-items: center;
    background-color: #e2e8f0;
    border-bottom-right-radius: 0.6rem;
    border-bottom-left-radius: 0.6rem;
    padding: 2rem;

    .filters {
      display: inline-flex;
      flex-wrap: wrap;
      justify-content: center;
      input[type="checkbox"] { margin-right: 0.8rem; }
      label { margin-right: 2rem; }
      .filter { display: inline-flex; }
    }
    .actions {
      display: inline-flex;
      justify-content: center;
      a { margin-right: 2rem; text-decoration: none; }
    }
  }
}

@media (max-width: 1024px) {
  div[id^="job-posting-"] {
    .job-heading {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      .bookmark { justify-self: start; margin-top: 2rem; }
    }
    .candidates {
      .job-applicants {
        .row {
          display: grid;
          grid-template-columns: repeat(1, minmax(0, 1fr));
          .resume { justify-content: start; margin: 1.6rem auto; }
        }
      }
    }
  }
  .job-listing-form {
    .salary-ranges {
      margin-top: 2.4rem;
      align-items: end;
    }
  }
}

@media (max-width: 990px) and (min-width: 769px) {
  div[id^="job-posting-"] {
    .job-heading {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      .bookmark { justify-self: start; margin-top: 2rem; }
    }
    .candidates {
      .job-applicants {
        .row {
          display: grid;
          grid-template-columns: repeat(1, minmax(0, 1fr));
          .resume { justify-content: start; margin: 1.6rem auto; }
        }
      }
    }
    .salary-ranges {
      margin-top: 2.4rem;
      align-items: end;
    }
  }
}

@media (max-width: 768px) {
  .job-postings {
    .job-col-1 {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 0.5rem;
      .company-logo {
        margin-top: -2rem;
        justify-content: flex-start;
      }
    }
    .job-col-2 {
      flex-wrap: wrap;
      .posted-at {
        justify-content: flex-start;
      }
    }
  }
  .job-listing-form {
    max-width: 90vw;
    .remote-hybrid { justify-content: flex-start; }
    .renumeration { margin-top: 2.4rem; }
    .salary-ranges { margin-top: 2.4rem; }
    .admin-publish { width: 100%; }
  }
}

@media (min-width: 1024px) {
  .job-postings {
    .job-col-1 {
      justify-content: space-between;
      .company {
        width: fit-content;
      }
    }
  }
  .job-listing-form {
    .type-category { margin-top: -2rem; }
  }
}

/* --- Orders --- */
.orders {
  margin: 3.2rem auto;
  border-top: 1px solid #e5e7eb;

  .empty {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.6rem 0;
    color: #6b7280;
  }

  .order {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    font-size: 1.4rem;
    line-height: 2.0rem;
    border-bottom: 1px solid #e5e7eb;

    h2 { font-size: 1.6rem; }

    .view {
      display: flex;
      justify-content: flex-end;
      width: 100%;
      a { text-decoration: none; }

      span.disabled {
        font-weight: 500;
        padding: 0.4rem 0.8rem;
        border-radius: 0.4rem;
        font-size: 1.4rem;
        line-height: 2rem;
        text-align: no-underline;
        background-color: #e5e7eb;
        color: white;
        border: none;
      }
    }
  }
}

@media (max-width: 768px) {
  .orders {
    .order {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
}

/* --- Profile --- */

.profile-wrapper {
  margin: 3.2rem 0;
  width: 100%;
  max-width: 98vw;

  svg {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
  }

  svg.filled { fill: currentColor; }
  svg.outline { stroke: currentColor; }

  h3 { font-weight: 300; font-size: 1.8rem; font-family: var(--body-font); }
  p { margin-bottom: 2.4rem; }
  img { width: 100%; }
  input[id^='profile_'] { margin-bottom: 2.4rem; }
  input[type='submit'] { margin-top: 2.4rem; }
  .btn { border: none; }
  .optional { font-size: smaller; font-style: italic; }
  label { display: inline-flex; }
  span.optional { margin-top: -1.8rem; display: inline-flex; }

  input[id='profile_photo'] {
    margin: 2.4rem auto 0;
    padding: 1rem;
    background-color: var(--pale-grey);
    border: 1px solid var(--widget-border);
    border-radius: 0.6rem;
    width: 100%;
  }

  .with-icon {
    display: flex;
    svg { margin-right: 0.4rem; }
  }

  .actions {
    padding-top: 3.2rem;
    a { text-decoration: none; }
  }

  .skills {
    span {
      display: inline-flex;
      flex-wrap: wrap;
      margin: 1rem 1rem 0 0;
      color: #7c7c7c;
      background-color: var(--pale-grey);
      border: 1px solid #7c7c7c;
      border-radius: 1.2rem;
      min-width: fit-content;
      padding: 0.6rem 0.8rem;
      font-size: x-small;
      text-transform: uppercase;
    }
  }
}

/* --- Purchases --- */

.purchase {
  padding: 3.2rem;
  text-align: center;
  .details {
    background-color: var(--brand-primary);
    padding: 2.4rem;
    h3 { color: white; padding: 0.4rem 0; }
    h3.uppercase { color: var(--text-color); text-transform: uppercase; }
  }
}

/* --- Resumes --- */

.resume-form {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  width: 75%;
  margin: 2.4rem auto;
  padding: 2.4rem 0 3.2rem 0;
  .why {
    h2 { padding-bottom: 1.6rem; }
    p { padding-bottom: 2.4rem; }
    span { font-weight: 600; color: var(--brand-primary); }
  }
  input { margin-bottom: 2.4rem; }
  input[id='resume_file'] {
    padding: 1rem;
    background-color: var(--pale-grey);
    border: 1px solid var(--widget-border);
    border-radius: 0.6rem;
    max-width: 50%;
  }
  .terms {
    display: flex;
    align-items: center;
    input[type="checkbox"] { }
    a {
      margin-left: 0.8rem;
      text-decoration: underline;
      color: var(--brand-primary);
    }
    label { margin-top: -1.5rem;}
  }
  .actions {
    a { margin-left: 1.5rem;}
  }
}

div[id^='status_'] {
  align-self: flex-start;
  justify-self: start;
  padding: 0.8rem 0;
  .approved {
    background-color: #bbf7d0;
    width: 100%;
    text-align: center;
    color: #16a34a;
    margin: 0.8rem 0;
  }
  .rejected {
    background-color: #fecaca;
    width: 100%;
    text-align: center;
    color: #dc2626;
    margin: 0.8rem 0;
  }
  .pending {
    background-color: #fef08a;
    width: 100%;
    text-align: center;
    color: #ca8a04;
    margin: 0.8rem 0;
  }
  .actions {
    display: flex;
    button { margin: 0.8rem; }
  }
}

@media (max-width: 1024px) {
  .resume-form {
    input[id='resume_file'] { max-width: 100%; }
  }
}

@media (max-width: 768px) {
  .resume-form {
    width: 100%;
    input[id='resume_file'] { max-width: 100%; }
  }
  div[id^='status_'] {
    justify-self: end;
  }
}

/* === END SITE CONTENT === */
