@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;700&display=swap");

/* 1 - DESIGN TOKENS ------------- */

:root {
  /* COLORS */
  --primary: #ff5924;
  --black: #000;
  --muted: #a4a4a4;
  --white: #fff;
  --page: #eff0f6;
  --pill-bg: #e3e7ee; /* mymind's --button-color (tag pills) */
  --pill-text: #748297; /* mymind's tag text color */

  /* FONTS */
  --font-ui: "Nunito", sans-serif;
  --font-weight-semibold: 500;

  /* STYLES */
  --card-radius: 24px;
  --ease: 0.2s ease-in-out;
  --drop-shadow: 0 1px 6px rgba(61, 65, 84, 0.15);
  --drop-shadow-hover: 0 20px 40px rgba(61, 65, 84, 0.15);
  --transition-duration: 0.2s;
}

/* 2 - BASE ---------------------- */

body {
  background-color: var(--page);
}

h2,
h3,
h4,
h5,
h6,
p {
  font-family: var(--font-ui);
}

/* 3 - BLOCKS ---------------------*/

/* Images */

/*

#category-100 {
  background-image: url("https://caedonspilman.com/wp-content/uploads/2026/07/organizing.png");
}

#category-4 {
  background-image: url("https://mymind.com/wp-content/uploads/2020/07/mymind_1_settings.svg");
}

#category-9 {
  background-image: url("https://mymind.com/wp-content/uploads/2020/07/mymind_2_mindhacks.svg");
}

#category-7 {
  background-image: url("https://mymind.com/wp-content/uploads/2020/07/mymind_3_workingmind.svg");
}

*/

/* Search bar */

#docsSearch {
  padding: 70px 0 60px;
  margin-bottom: 0;
  background-color: transparent;
  border: none;
  background-image: url(https://static.accelerator.net/134/0.5.21/extension/images/ext-settings-bg.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  h1 {
    font-family: system-ui;
    font-weight: 700;
    font-size: 4em;
  }
  #searchBar {
    .search-query {
      border-color: white;
      color: #253642;
      font-family: var(--font-ui);
      height: 55px;
      letter-spacing: 0.2px;
      padding: 0 15px;
      width: 440px;
      display: block;
      margin-right: 15px;
      border: none;
      transition: all var(--ease);
    }
    button {
      font-family: var(--font-ui);
      background-color: var(--primary);
      border-radius: 4px;
      border: none;
      font-size: 20px;
      font-weight: 500;
      height: 55px;
      text-shadow: none;
      width: 160px;
      transition: all var(--ease);

      &:hover {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transform: translate3d(0, -2px, 0);
      }
    }
  }
}

/* Header / Nav */

.navbar {
  .brand {
    padding: 26px 20px 18px;
    img {
      height: 35px;
      width: auto;
    }
  }
  .navbar-inner {
    height: 80px;
    background: var(--white);
    border: none;
    box-shadow: none;
  }
}

@media (min-width: 769px) {
  .navbar .nav {
    top: 20px;
  }
}

#contentArea .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  .category {
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    align-content: flex-start;
    margin: 0;
    width: calc((100% - 60px) / 3);
    padding: 2rem;
    min-height: 16rem;
    background-color: #fff;
    border: none;
    border-radius: var(--card-radius);
    transition: all 0.25s ease-in-out;
    background-repeat: no-repeat;
    background-position: center 45px;
    background-size: 70px 70px;
    box-shadow: var(--drop-shadow);
    &:hover {
      background-color: #fff;
      box-shadow: var(--drop-shadow-hover);
      background-position: center 40px;
    }
    p {
      font-family: var(--font-ui);
      font-style: normal;
      font-weight: 300;
      color: #a4a4a4;
      font-size: 1rem;
      line-height: 25px;
      margin-bottom: 10px;
    }
  }
}

.category-list h3 {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 500;
  color: #000;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.category-list .category .article-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  margin-bottom: 0;
  height: 33px;
  padding: 0 10px;
  border-radius: 1em;
  background-color: var(--pill-bg);
  color: var(--pill-text);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 100ms linear;
}

.category-list .category .article-count .notranslate {
  padding-right: 5px;
}

#main-content {
  background: none;
}

.contentWrapper {
  border: none;
  border-radius: 7px;
}

#sidebar h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a4a4a4;
}

#sidebar .nav-list a {
  font-size: 14px;
  color: #000;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  color: #ff5924;
  font-weight: normal;
}

footer {
  margin-top: 70px;
  margin-top: 40px;
}

#oldCarbon {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  color: #ff5924;
}

/* Contact Modal */

#contactModal {
  border: 0;
  width: 600px;
  margin-left: -300px;
  top: 8%;
  h2 {
    color: #1d2b36;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: -0.35px;
    border: 0;
    padding: 40px 0 10px 60px;
  }
  .control-label {
    float: none;
    display: block;
    color: #556575;
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 5px;
    padding: 0;
    text-align: left;
    width: 100%;
  }
  .controls {
    margin: 0;
  }
  .modal-body {
    padding: 15px 60px 40px;
  }
  #md-message {
    padding: 14px;
    height: 70px;
    width: 100%;
  }
  .form-actions {
    padding: 0;
  }
}

#contactModal input[type="text"],
#contactModal input[type="email"],
#contactModal textarea {
  box-sizing: border-box;
  min-height: 42px;
  width: 100%;
}

#contactModal input[type="submit"].btn {
  width: 100%;
  background: #ff5924;
  height: 52px;
  transition: all 0.2s ease-in-out;
  color: white;
  text-shadow: none !important;
  border: none !important;
}

#contactModal input[type="submit"].btn:hover {
  background: #ff5924 !important;
  opacity: 0.75 !important;
}

#contactModal input[type="submit"].btn:hover,
#contactModal input[type="submit"].btn:focus,
#contactModal input[type="submit"].btn:active {
  background: #232a5c;
  color: #fff;
}

#contactModal .icon-close:before {
  display: none;
}

#contactModal .icon-close {
  background-image: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--cross.svg");
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#contactModal #closeBtn {
  right: 14px;
}

#contactModal .icon-close:hover {
  opacity: 1;
}

#file-upload:focus {
  border: none !important;
  box-shadow: none !important;
}

#contentArea > .appMessage {
  border-radius: 4px;
  color: #268c55;
  top: -25px;
  background: #e3fbee;
  border: 1px solid #56c288;
  font-size: 15px !important;
  width: 390px;
  margin: 0 auto;
  padding: 12px 30px;
  position: relative;
}

#contentArea > .appMessage em {
  background: none;
  color: #268c55;
  font-size: 16px;
  text-transform: none;
  font-weight: 500;
  margin-right: 0;
  padding-left: 22px;
  position: relative;
}

#contentArea > .appMessage em:before {
  content: "";
  background-image: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--check.svg");
  width: 24px;
  height: 24px;
  position: absolute;
  left: -4px;
  top: -2px;
}

.appMessage {
  background: #d6edff;
  color: #005ca4;
  font-size: 14px !important;
  padding: 12px 30px;
}

@media screen and (min-width: 768px) and (max-width: 999px) {
  .appMessage {
    padding: 12px 55px;
  }
}

@media screen and (min-width: 1000px) {
  .appMessage {
    padding: 12px 90px;
  }
}

.appMessage em {
  background: #1292ee;
  font-weight: 500;
  line-height: 1.1;
}

.modal-backdrop {
  background: #232a5c; /* purple 800 */
}

.modal-backdrop.in {
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  #docsSearch #searchBar .search-query {
    width: 100%;
  }
  #docsSearch #searchBar button {
    width: 70px;
  }
  #contentArea .category-list .category {
    width: 100%; /* 1-up on mobile; gap handles the spacing */
  }
  .navbar .btn-navbar {
    margin-top: 30px;
  }
}

/* Articles */

#fullArticle {
  p {
    font-size: 1rem;
  }
  a {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline
      color-mix(in srgb, var(--primary) 30%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    &:hover {
      text-decoration-color: var(--primary);
    }
  }
}

/* Contact button — mymind outline pill */

.navbar .nav li#contact a {
  display: inline-block;
  box-sizing: border-box;
  height: 46px;
  line-height: 44px;
  padding: 0 38px;
  border: 1px solid var(--primary);
  border-radius: 44px;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  -webkit-font-smoothing: antialiased;
}

.navbar .nav li#contact {
  a:hover,
  a:focus-visible {
    background-color: var(--primary);
    color: #fff;
    animation: contactPop 0.2s ease-in-out both;
  }
}

@keyframes contactPop {
  0% {
    transform: scale(1);
  }
  65% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
