/* ==========================================================
   EasyRoutes Help Center – Modernized Layout (Merged)
   Old: nav background, icon sizes, search styling
   New: everything else (cards, articles, typography, etc.)
   ========================================================== */

/* ---------- 0. Web Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- 1. Foundation ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f7f7f4;
  background-repeat: no-repeat, no-repeat;
  background-position: 0 700px, 100% 90%;
  background-size: 350px 350px, 350px 350px;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif !important;
  color: #1e293b;
}

h1, h2, h3, h4, h5, strong {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 600;
  color: #0f172a;
}

strong, b {
  font-weight: 600;
  -webkit-font-smoothing: auto;
}

a {
  color: #0583b3;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #046b91;
}

/* ---------- 2. Layout Container ---------- */
.container-fluid {
  max-width: 1250px;
}

@media screen and (min-width: 500px) and (max-width: 1000px) {
  .container-fluid {
    width: 95%;
  }
}

/* ==========================================================
   3. TOP NAVIGATION (original)
   ========================================================== */
#mainNav {
  position: relative;
  z-index: 2;
}

.navbar .navbar-inner {
  background-color: #f7f7f4;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

#mainNav .container-fluid {
  min-height: 90px;
  line-height: 90px;
}

.navbar .brand {
  background-size: 100%, auto;
  height: 30px;
  width: 174px;
  padding: 0;
  line-height: 90px;
}

.brand > img {
  max-height: 44px;
  min-width: 180px;
  object-fit: contain;
  vertical-align: middle;
}

.navbar .nav > li > a {
  font-size: 16px;
  font-weight: 500;
  line-height: 90px;
  padding: 0 20px;
  color: #3c4858;
  -webkit-font-smoothing: antialiased;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif !important;
}

.navbar .brand,
.navbar .nav li a:hover,
.navbar .nav li a:focus,
.navbar .nav .active a,
.navbar .nav .active a:hover,
.navbar .nav .active a:focus {
  color: #0583b3;
}

.navbar .nav .active a {
  font-weight: 500;
}

.navbar .nav .active .caret {
  display: none;
}

.nav-collapse .nav {
  margin-top: 40px;
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: #3c4858;
  transition: color 0.2s;
}

.navbar .btn-navbar {
  right: 0;
  margin-right: 0;
  padding-right: 0;
}

.navbar .btn-navbar .icon-bar {
  width: 20px;
}

@media screen and (max-width: 768px) {
  .navbar .nav > li > a {
    padding: 15px 20px;
  }

  #contactMobile {
    display: block;
  }

  .navbar .btn-navbar {
    margin-top: 32px;
  }

  .navbar .btn-navbar .icon-bar {
    background: rgb(255, 239, 232);
  }
}

@media screen and (min-width: 769px) and (max-width: 1045px) {
  .navbar .nav {
    position: relative !important;
  }

  .navbar .nav > li > a {
    padding: 10px !important;
  }
}

.navbar .nav #contact a {
  padding-right: 0;
}

/* Private / lock icon */
.nav .icon-private-w:before { display: none; }
.nav .icon-private-w {
  background-image: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock-white.svg");
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.6;
  position: relative;
  top: 5px;
  left: -2px;
}

@media screen and (min-width: 768px) {
  .nav #internal { position: relative; }
}

.nav > li.active .icon-private-w,
.nav > li a:hover .icon-private-w {
  opacity: 1;
}

/* ==========================================================
   4. SEARCH AREA (preserved from old)
   ========================================================== */
#docsSearch {
  background: #f7f7f4;
  border-bottom: none;
  margin-bottom: 3em;
  padding: 1.5em 0;
  color: #253642;
  position: relative;
  border-top: none;
}

#docsSearch::before,
#docsSearch::after {
  pointer-events: none;
}

#docsSearch h1 {
  color: #253642;
  display: block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.35px;
  line-height: 55px;
  margin: 0;
  padding-top: 3.25em;
  position: relative;
  text-align: center;
  z-index: 2;
}

#searchBar {
  z-index: 2;
}

#searchBar .search-query::placeholder {
  color: #a5b2bd;
}

#searchBar .search-query {
  padding: 0 55px 0 12px;
}

@media screen and (max-width: 767px) {
  #searchBar { width: 80%; }
}

@media screen and (min-width: 768px) {
  #searchBar { width: 440px; }
}

@media screen and (min-width: 1440px) {
  #searchBar { width: 712px; }
}

@media screen and (min-width: 1025px) {
  #searchBar {
    width: 635px;
    display: block;
  }

  #searchBar .search-query {
    border-color: white;
    color: #253642;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
    height: 55px;
    letter-spacing: 0.2px;
    padding: 0 15px;
    width: 460px;
    display: block;
    margin-right: 0;
    transition: all 0.2s ease-in-out;
    border-radius: 16px;
  }

  #searchBar button {
    display: inline-block;
  }
}

#searchBar button .icon-search {
  color: #9ba9b5;
  font-size: 20px;
}

.icon-search::before { display: none; }

@media screen and (max-width: 1024px) {
  #docsSearch {
    height: 240px;
    margin-bottom: 50px;
  }

  #docsSearch h1 {
    max-width: 400px;
    padding-top: 2em;
    padding-left: 10%;
    padding-right: 10%;
    font-size: 30px;
    line-height: 1.3;
    margin: 0 auto;
  }

  #searchBar button .icon-search {
    display: block;
  }

  #searchBar button {
    background: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon-search.svg")
      center center no-repeat;
    border: 0;
    padding: 0 30px;
    position: absolute;
    right: 0;
    text-shadow: none;
    transition: all 0.2s ease-in-out;
  }

  #searchBar button:focus,
  #searchBar button:active {
    background: #f1f3f5
      url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon-search.svg")
      center center no-repeat;
  }

  #searchBar button span { display: none; }
}

@media screen and (min-width: 1025px) {
  #searchBar button {
    background: #26251e;
    border-radius: 16px;
    border: none;
    font-size: 17px;
    font-weight: 500;
    height: 55px;
    text-shadow: none;
    width: 160px;
    transition: all 0.2s ease-in-out;
  }

  #searchBar button:hover,
  #searchBar button:active {
    background: #0583b3;
  }
}

@media screen and (min-width: 1025px) {
  #docsSearch {
    background-colour: #f7f7f4;
  }

  #docsSearch h1 {
    font-size: 36px;
    padding-top: 1.8em;
  }

  #docsSearch::before {
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    content: "";
    height: 100%;
    position: absolute;
    left: 5%;
    top: 0;
    transform: translateX(-50%);
    width: 515px;
    transition: left 0.2s;
  }

  #docsSearch::after {
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    content: "";
    height: 100%;
    position: absolute;
    left: 95%;
    top: 0;
    transform: translateX(-50%);
    width: 515px;
    transition: left 0.2s;
  }

  #contentArea::before {
    content: "";
    left: 50%;
    position: absolute;
    top: -175px;
    height: 200px;
    width: 175px;
    background-size: contain;
    opacity: 0;
    transform: translate(260px, 10px);
    transition: opacity 0.2s;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1399px) {
  #docsSearch::before { left: 5%; }
  #docsSearch::after { left: 90%; }
}

@media screen and (min-width: 1300px) {
  #docsSearch::before { left: 10%; }
  #docsSearch::after { left: 85%; }
}

@media screen and (min-width: 1400px) {
  #contentArea::before {
    opacity: 1;
    transform: translate(260px, 0);
  }
}

@media screen and (min-width: 1900px) {
  #docsSearch {
    height: 400px;
    background-colour: #f7f7f4;
  }

  #docsSearch::before { left: 18%; width: 580px; }
  #docsSearch::after { left: 84%; width: 580px; }

  #contentArea::before {
    top: -175px;
    right: -155px;
    height: 200px;
    width: 175px;
  }
}

@media screen and (min-width: 2300px) {
  #docsSearch::before { left: 20%; }
  #docsSearch::after { left: 80%; }
}

/* ==========================================================
   5. SEARCH RESULTS DROPDOWN (new styling, blends with old search)
   ========================================================== */
#serp-dd {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  top: 85px;
  overflow: hidden;
}

#serp-dd .result a {
  padding: 10px 16px;
  font-size: 14px;
}

#serp-dd .result > li.active {
  background: #f1f5f9;
}

#serp-dd .result > li {
  position: relative;
}

#serp-dd .result > li.active a {
  color: #0583b3 !important;
}

#serp-dd.sb {
  top: 45px;
  width: 375px;
}

#serp-dd .result > li.private a { color: #748494; }
#serp-dd .icon-private-w:before { display: none; }
#serp-dd .icon-private-w {
  background-image: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock.svg");
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  position: absolute;
  top: 9px;
}

/* ==========================================================
   6. CONTENT AREA
   ========================================================== */
#contentArea {
  position: relative;
}

/* ==========================================================
   7. CATEGORY CARDS – Homepage (new modern style)
   ========================================================== */
.category-list .category {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
  display: inline-block;
  width: 100%;
  padding: 1.25rem 1.4rem;
  transition: all 0.2s ease;
  text-align: left;
}

.category-list .category:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.category-list .category,
.category-list .category:hover {
  background-repeat: no-repeat;
  background-position: center 36px;
  background-size: 80px 80px;
}

.category-list .category,
.category-list.two-col .category {
  margin-bottom: 0;
}

.category-list h3 {
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.4;
  text-align: left;
}

.category-list .category p {
  color: #64748b;
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.5;
}

.category-list .category .article-count {
  display: none;
}

/* Category description: 2-line clamp */
.category-list .category > p:not(.article-count) {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.category-list .category > p:not(.article-count):first-of-type {
  margin-top: 0;
}

/* Grid: 4 columns on desktop */
@media screen and (min-width: 1024px) {
  .collection-category .category-list,
  .category-list.two-col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
  }

  .collection-category .category-list .category,
  .category-list.two-col .category {
    display: block;
    width: auto;
  }
}

@media screen and (min-width: 760px) and (max-width: 1023px) {
  .collection-category .category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-list .category {
    width: auto;
    margin-right: 0;
  }
}

@media screen and (max-width: 759px) {
  .collection-category .category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-list .category {
    margin-right: 0;
  }
}

/* Collection headings */
.collection-category h2 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #0f172a;
}

.collection-category h2 a {
  color: #0f172a;
}

.collection-category .category-list {
  margin-bottom: 40px;
}

/* Internal category with no icons */
#collection-category-8 .category {
  padding-top: 60px;
  min-height: 190px;
}

/* ==========================================================
   8. MOST POPULAR ARTICLES
   ========================================================== */
.most-pop-articles .popArticles a {
  color: #0f172a;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
  line-height: 1.5;
}

.most-pop-articles .popArticles a:hover,
.most-pop-articles .popArticles a:hover span {
  color: #0583b3;
}

/* ==========================================================
   9. ARTICLE LIST (Category View) – new
   ========================================================== */
.articleList {
  box-sizing: border-box;
  margin-top: 24px;
  padding-top: 20px;
  position: relative;
}

.articleList:before {
  content: "";
  position: absolute;
  top: 0;
  width: 32px;
  height: 3px;
  left: 0;
  background: #0583b3;
  border-radius: 2px;
}

.articleList li {
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.articleList li a {
  display: block;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  color: #1e293b;
  font-weight: 400;
  transition: all 0.15s ease;
}

.articleList li a:hover {
  background: #f1f5f9;
  color: #0583b3;
  text-decoration: none;
}

.articleList li a i { display: none; }
.icon-article-doc { display: none; }

@media screen and (max-width: 768px) {
  .articleList li { font-size: 16px; }
}

/* ==========================================================
   10. SIDEBAR (Article View) – new
   ========================================================== */
#sidebar h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}

#sidebar .nav-list {
  margin: 12px 0;
}

#sidebar .nav-list a {
  font-size: 14px;
  color: #475569;
  padding: 7px 12px 7px 0;
  display: block;
  border-radius: 6px;
  transition: all 0.12s ease;
  line-height: 1.5;
}

#sidebar .nav-list a:hover {
  color: #0583b3;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  font-weight: 600;
  color: #0583b3;
  background: transparent;
}

/* Sidebar search */
#sidebar form .search-query {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: 38px;
  font-size: 13px;
  background: #f8fafc;
}

#sidebar form .search-query:focus {
  background: #fff;
  border-color: #0583b3;
}

#searchBar.sm button {
  width: 36px;
  top: 1px;
  right: 0;
}

.icon-arrow:before { color: #64748b; }

#sbContact {
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

@media screen and (max-width: 768px) {
  #sidebar { margin-top: 32px; }
}

/* Sort dropdown */
#categoryHead .sort select,
#sortBy {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 34px !important;
  line-height: 20px;
  padding: 5px 28px 5px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2394A3B8' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

#sortBy:hover { border-color: #cbd5e1; }
#sortBy:focus { border-color: #0583b3; box-shadow: 0 0 0 2px rgba(5, 131, 179, 0.1); }

#categoryHead .sort { position: relative; top: 0; }

@media screen and (min-width: 1000px) {
  #categoryHead .sort {
    position: absolute;
    right: 0;
    top: 8px;
  }
}

/* ==========================================================
   11. ARTICLE CONTENT WRAPPER – new
   ========================================================== */
.contentWrapper {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 28px;
  word-break: break-word;
}

@media screen and (min-width: 768px) and (max-width: 1000px) {
  .contentWrapper { padding: 44px 48px; }
}

@media screen and (min-width: 1000px) {
  .contentWrapper { padding: 56px 72px; }
}

.contentWrapper h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.4em;
  color: #0f172a;
}

@media screen and (min-width: 1000px) {
  .contentWrapper h1 { font-size: 32px; }
}

.contentWrapper p.descrip {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 24px;
  margin-top: 0;
  line-height: 1.6;
}

@media screen and (min-width: 1000px) {
  .contentWrapper p.descrip {
    margin-bottom: 0;
    max-width: 34rem;
  }
}

/* Related articles */
.related {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 20px;
  padding: 24px;
  box-shadow: none;
}

.related h3 {
  font-size: 11px;
  padding-left: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.related ul { margin-left: 0; }
.related ul > li a { margin-left: 0; color: #0583b3; font-size: 14px; }

@media screen and (min-width: 1000px) {
  .related { padding: 32px 72px; }
}

/* ==========================================================
   12. ARTICLE TYPOGRAPHY – new
   ========================================================== */
#fullArticle {
  margin: 0 auto;
  max-width: 720px;
}

@media screen and (min-width: 1100px) {
  #fullArticle { max-width: 780px; }
}

#fullArticle img {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 1.5em 0 2em;
  padding: 0;
}

.custom-table-wrapper img {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: #334155;
  font-size: 15.5px;
  line-height: 1.72;
  margin-bottom: 1.3em;
}

#fullArticle li {
  margin-bottom: 0.5em;
}

#fullArticle h1.title {
  margin: 0 1em 1em 0;
}

#fullArticle h3 {
  -webkit-font-smoothing: auto;
  color: #0f172a;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin: 2.4em 0 0.8em;
  letter-spacing: -0.02em;
}

@media screen and (min-width: 768px) {
  #fullArticle h3 { font-size: 24px; }
}

#fullArticle h4 {
  -webkit-font-smoothing: auto;
  color: #0f172a;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 2em 0 0.7em;
}

@media screen and (min-width: 768px) {
  #fullArticle h4 { font-size: 18px; }
}

#fullArticle h5 {
  -webkit-font-smoothing: auto;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin: 1.2em 0 0.4em;
}

/* Links in articles */
#serp-dd .result a:hover,
#serp-dd .result > li.active,
#fullArticle strong a,
#fullArticle a strong,
.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a:hover span,
.category-list .category .article-count,
.category-list .category:hover .article-count {
  color: #0583b3;
}

/* Callouts */
#fullArticle .callout-yellow,
#fullArticle .callout-blue,
#fullArticle .callout-red,
#fullArticle .callout-green,
#fullArticle .callout,
#fullArticle .private-note {
  border-left-width: 3px;
  border-radius: 8px;
  padding: 16px 20px;
}

#fullArticle .callout-yellow,
#fullArticle .private-note {
  background: #fffbeb;
  border-color: #f59e0b;
  margin: 1.5em 0 2em;
}

#fullArticle .callout-yellow.dashed {
  border-left-width: 1px;
}

#fullArticle .callout-blue {
  background: #eff6ff;
  border-color: #3b82f6;
}

#fullArticle .callout-red {
  background: #fef2f2;
  border-color: #ef4444;
}

#fullArticle .callout-green {
  background: #f0fdf4;
  border-color: #22c55e;
}

#fullArticle .private-note {
  background: #fffbeb
    url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock.svg")
    no-repeat top 16px right 16px;
  padding: 16px 20px;
}

#fullArticle .private-note > h4 { margin-top: 0; }

/* Index list / TOC */
#fullArticle .index-list {
  background: #f8fafc;
  border-left: 3px solid #0583b3;
  border-radius: 0 8px 8px 0;
  margin: 2em 0;
  padding: 16px 0;
}

#fullArticle .index-list:before,
#fullArticle .index-list:after {
  display: table;
  content: "";
  line-height: 0;
}

#fullArticle .index-list::after { clear: both; }

#fullArticle .index-list h4 {
  text-transform: uppercase;
  margin: 0;
  padding: 6px 22px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
}

#fullArticle .index-list ul {
  list-style: none;
  margin: 0.5em 20px 0 0;
  float: left;
  width: 100%;
}

#fullArticle .index-list li { padding-left: 22px; }

@media screen and (min-width: 1000px) {
  #fullArticle .index-list li {
    float: left;
    width: 45%;
  }
}

/* Tables */
#fullArticle table {
  display: table;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

/* Scroll wide tables via the article container instead */
#fullArticle {
  overflow-x: auto;
}

#fullArticle table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-top: none;
}

#fullArticle table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid #f1f5f9;
  font-size: 14px;
}

#fullArticle table tr:first-child td { border-top: none; }

@media (min-width: 600px) {
  #fullArticle table td:first-child,
  #fullArticle table th:first-child,
  #fullArticle table td:nth-child(2),
  #fullArticle table th:nth-child(2) {
    min-width: 120px;
  }

  #fullArticle table td:first-child code,
  #fullArticle table th:first-child code,
  #fullArticle table td:nth-child(2) code,
  #fullArticle table th:nth-child(2) code {
    white-space: nowrap;
  }
}

/* Definition lists */
#fullArticle dt {
  padding: 0;
  width: 24px;
  background: #0583b3;
  height: 24px;
  line-height: 24px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  border-radius: 6px;
  text-align: center;
}

#fullArticle dd { margin-left: 36px; }

/* Admin edit button */
#fullArticle .admin-edit {
  background-color: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  color: #0583b3;
  font-size: 12px;
  height: 24px;
  line-height: 24px;
  margin-bottom: 24px;
  margin-top: -16px;
  width: auto;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

#fullArticle .admin-edit:hover {
  border-color: #0583b3;
  background: #f0f9ff;
}

/* Article ratings */
.articleRatings {
  margin: 2.5em 0 3em;
  color: #64748b;
  border: 0;
  background: #f8fafc;
  box-shadow: none;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

/* Article footer */
.articleFoot {
  padding: 20px 0;
  margin-top: 24px;
}

.articleFoot p,
.articleFoot time {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-style: normal;
  color: #94a3b8;
  font-size: 13px;
}

.articleFoot .lu {
  display: block;
  padding: 8px 0;
  line-height: 1.8;
}

.articleFoot i { color: #cbd5e1; }

/* ==========================================================
   13. SEARCH RESULTS PAGE – new
   ========================================================== */
#serp { box-sizing: border-box; }

#serp h1 strong { color: #0583b3; }

#serp .articleList > li {
  padding: 0.75em 0 1.25em;
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

#serp .articleList > li a {
  font-weight: 600;
  margin-bottom: 4px;
}

#serp .articleList > li p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #64748b;
}

#serp .articlesFound,
#serp .nada {
  color: #94a3b8;
}

/* ==========================================================
   14. MAIN CONTENT AREA
   ========================================================== */
#main-content {
  box-sizing: border-box;
  background: none;
}

@media screen and (max-width: 768px) {
  #main-content { margin: 16px 0 0; }
}

/* ==========================================================
   15. FOOTER – new
   ========================================================== */
footer p {
  font-size: 12px;
  color: #94a3b8;
}

footer p a {
  color: #94a3b8;
  transition: color 0.15s ease;
}

footer p a:hover { color: #64748b; }

/* ==========================================================
   16. INPUTS & BUTTONS – new
   ========================================================== */
input[type="text"],
input[type="email"],
textarea {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 14px;
  box-shadow: none;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder { color: #94a3b8; }

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 131, 179, 0.1) !important;
  border-color: #0583b3 !important;
  outline: none;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.btn,
input[type="submit"] {
  border: none;
  text-shadow: none;
  background: #0f172a;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  color: white;
  height: 40px;
  width: auto;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.btn:hover,
input[type="submit"]:hover {
  background: #1e293b;
}

/* ==========================================================
   17. CONTACT MODAL – new
   ========================================================== */
#contactModal {
  border: 0;
  border-radius: 16px;
  width: 540px;
  margin-left: -270px;
  top: 10%;
  overflow: hidden;
}

#contactModal h2 {
  color: #0f172a;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  border: 0;
  padding: 32px 0 8px 40px;
}

#contactModal .control-label {
  float: none;
  display: block;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 6px;
  padding: 0;
  text-align: left;
  width: 100%;
}

#contactModal .controls { margin: 0; }

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

#contactModal .modal-body { padding: 16px 40px 32px; }

#contactModal #md-message {
  padding: 12px;
  height: 80px;
  width: 100%;
}

#contactModal .form-actions { padding: 0; }

#contactModal input[type="submit"].btn {
  width: 100%;
  background: #0f172a;
  height: 44px;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.15s ease;
}

#contactModal input[type="submit"].btn:hover { background: #1e293b; }

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

#contactModal #closeBtn { right: 16px; }
#contactModal .icon-close:hover { opacity: 0.8; }

#contactModal .control-group,
.abuse .control-group {
  margin-bottom: 16px;
}

.modal-backdrop { background: #0f172a; }
.modal-backdrop.in { opacity: 0.6; }

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

/* ==========================================================
   18. FLASH MESSAGES – new
   ========================================================== */
#contentArea > .appMessage {
  border-radius: 10px;
  color: #16a34a;
  top: -20px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  font-size: 14px !important;
  width: auto;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 24px;
  position: relative;
}

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

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

.appMessage {
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px !important;
  padding: 10px 24px;
  border-radius: 10px;
}

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

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

.appMessage em {
  background: #2563eb;
  font-weight: 500;
  line-height: 1.1;
  border-radius: 4px;
}

/* ==========================================================
   19. CONTACT FORM (page) – new
   ========================================================== */
#contactForm input,
#contactForm textarea {
  min-height: 40px;
  box-sizing: border-box;
  width: 100%;
}

#contactForm textarea { padding: 12px; }

#contactForm input.btn {
  width: auto;
  height: 44px;
  min-width: 140px;
  background: #0f172a;
  transition: background 0.15s ease;
}

#contactForm input.btn:hover { background: #1e293b; }

/* ==========================================================
   20. ERRORS
   ========================================================== */
#errorContainer .icon-error {
  color: #f59e0b;
  font-size: 32px;
}

#errorContainer p { color: #64748b; }

/* ==========================================================
   21. HIDE / SHOW COLLECTION NAV ITEMS
   ========================================================== */
#supertime:not(.active) { display: none; }
#tipgenius:not(.active) { display: none; }
#collection-category-1 { display: none; }   /* Supertime */
#collection-category-121 { display: none; }  /* TipGenius */

/* Hide article counts for certain categories */
#category-54 > .article-count,
#category-13 > .article-count,
#category-19 > .article-count,
#category-124 > .article-count {
  display: none;
}

/* ==========================================================
   22. CARDS (custom HTML component)
   ========================================================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  width: 280px;
  text-align: center;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card h3 { margin-bottom: 8px; }

.card a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: #0583b3;
  font-weight: 600;
  font-size: 14px;
}

/* ==========================================================
   CATEGORY ICONS (Font Awesome 4.7)
   Preserved from old – 24px circular badges
   ========================================================== */

/* Base icon badge */
.category-list .category::before,
#contentArea h3 + ul li a[href*="/category/"]::before {
  font-family: "FontAwesome";
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 13px;
  border-radius: 999px;
  color: #ffffff;
  background-color: #304ddb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f07b";
}

/* On homepage tiles */
.category-list .category::before {
  margin: 0 0 0.75rem;
  display: block;
}

/* On article/category pages: icon to the left */
#contentArea h3 + ul li a[href*="/category/"]::before {
  margin: 0 0.45rem 0 0;
  vertical-align: middle;
}

/* --- Per-category icons --- */

/* Getting Started (283) */
#category-283::before,
#contentArea h3 + ul li a[href*="/category/283-"]::before {
  content: "\f135";
  background: radial-gradient(circle at 30% 30%, #6ee7b7, #10b981);
}

/* Navigating EasyRoutes (693) */
#category-693::before,
#contentArea h3 + ul li a[href*="/category/693-"]::before {
  content: "\f14e";
  background: radial-gradient(circle at 30% 30%, #e879f9, #a21caf);
}

/* Creating Routes (357) */
#category-357::before,
#contentArea h3 + ul li a[href*="/category/357-"]::before {
  content: "\f277";
  background: radial-gradient(circle at 30% 30%, #38bdf8, #0ea5e9);
}

/* Editing Routes (356) */
#category-356::before,
#contentArea h3 + ul li a[href*="/category/356-"]::before {
  content: "\f044";
  background: radial-gradient(circle at 30% 30%, #fb923c, #ea580c);
}

/* Managing Deliveries (359) */
#category-359::before,
#contentArea h3 + ul li a[href*="/category/359-"]::before {
  content: "\f0d1";
  background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb);
}

/* Managing Drivers (358) */
#category-358::before,
#contentArea h3 + ul li a[href*="/category/358-"]::before {
  content: "\f2c1";
  background: radial-gradient(circle at 30% 30%, #a855f7, #7c3aed);
}

/* Tracking & Notifications (354) */
#category-354::before,
#contentArea h3 + ul li a[href*="/category/354-"]::before {
  content: "\f0f3";
  background: radial-gradient(circle at 30% 30%, #facc15, #eab308);
}

/* Importing Data (687) */
#category-687::before,
#contentArea h3 + ul li a[href*="/category/687-"]::before {
  content: "\f0ed";
  background: radial-gradient(circle at 30% 30%, #fb7185, #e11d48);
}

/* Automations (689) */
#category-689::before,
#contentArea h3 + ul li a[href*="/category/689-"]::before {
  content: "\f0d0";
  background: radial-gradient(circle at 30% 30%, #a3e635, #65a30d);
}

/* Printing & Exporting (688) */
#category-688::before,
#contentArea h3 + ul li a[href*="/category/688-"]::before {
  content: "\f02f";
  background: radial-gradient(circle at 30% 30%, #94a3b8, #475569);
}

/* Apps & Integrations (360) */
#category-360::before,
#contentArea h3 + ul li a[href*="/category/360-"]::before {
  content: "\f1e6";
  background: radial-gradient(circle at 30% 30%, #22d3ee, #0891b2);
}

/* Developers (605) */
#category-605::before,
#contentArea h3 + ul li a[href*="/category/605-"]::before {
  content: "\f121";
  background: radial-gradient(circle at 30% 30%, #818cf8, #4f46e5);
}

/* Plans & Pricing (48) */
#category-48::before,
#contentArea h3 + ul li a[href*="/category/48-"]::before {
  content: "\f09d";
  background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309);
}

/* Troubleshooting (41) */
#category-41::before,
#contentArea h3 + ul li a[href*="/category/41-"]::before {
  content: "\f0ad";
  background: radial-gradient(circle at 30% 30%, #f97373, #dc2626);
}

/* About EasyRoutes (696) */
#category-696::before,
#contentArea h3 + ul li a[href*="/category/696-"]::before {
  content: "\f05a";
  background: radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5);
}

/* --- Driver App categories --- */

/* Getting Started – Driver (364) */
#category-364::before,
#contentArea h3 + ul li a[href*="/category/364-"]::before {
  content: "\f018";
  background: radial-gradient(circle at 30% 30%, #e5e7eb, #6b7280);
}

/* Delivering Routes (366) */
#category-366::before,
#contentArea h3 + ul li a[href*="/category/366-"]::before {
  content: "\f124";
  background: radial-gradient(circle at 30% 30%, #22c55e, #16a34a);
}

/* Troubleshooting – Driver (365) */
#category-365::before,
#contentArea h3 + ul li a[href*="/category/365-"]::before {
  content: "\f071";
  background: radial-gradient(circle at 30% 30%, #f97316, #c2410c);
}

/* ==========================================================
   CODE BLOCKS & API DOCS – new
   ========================================================== */

/* Prism-aware block code */
pre[class*="language-"],
.rt-code-block pre,
.docs-article pre,
.article-body pre,
article pre,
#fullArticle pre {
  background: #0f172a !important;
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 13px !important;
  line-height: 1.6 !important;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #1e293b;
  max-height: 420px;
  overflow-y: auto;
}

/* Inside rt-code-block wrapper, flatten top radius */
.rt-code-block pre {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin: 0;
  margin-bottom: 0 !important;
}

/* Code wrapper */
.rt-code-block {
  position: relative;
  margin: 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.rt-code-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(transparent, #0f172a);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

/* Code header bar */
.rt-code-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0 !important;
}

.rt-code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
}

.rt-code-copy:hover { background: #f1f5f9; border-color: #cbd5e1; }
.rt-code-copy--success { border-color: #16a34a; }
.rt-code-copy svg { display: block; }

/* Code element inside pre */
pre code,
.rt-code-block pre code,
code.hljs {
  white-space: pre !important;
  display: block;
  overflow-x: visible;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* Inline code */
code:not(pre code) {
  background: #f1f5f9;
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  border-radius: 4px;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Scrollbar styling – pre */
pre::-webkit-scrollbar { height: 6px; background-color: #0f172a; }
pre::-webkit-scrollbar-track { background-color: #0f172a; border-radius: 3px; }
pre::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 3px; }
pre::-webkit-scrollbar-thumb:hover { background-color: #475569; }
pre { scrollbar-width: thin; scrollbar-color: #334155 #0f172a; }

/* Language labels */
.code-block { position: relative; padding-top: 28px; }
.code-block::before {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
  color: #e2e8f0;
}

.code-block--bash::before { content: "bash"; }
.code-block--js::before { content: "javascript"; }
.code-block--py::before { content: "python"; }

/* Scrollable tables */
.rt-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5em;
}

.rt-table-scroll table {
  min-width: 680px;
  border-collapse: collapse;
}

/* Responsive table wrapper */
.docs-article table,
.article-body table,
article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.docs-article table th,
.docs-article table td,
.article-body table th,
.article-body table td,
article table th,
article table td {
  min-width: 110px;
}

.docs-article table td:first-child,
.article-body table td:first-child,
article table td:first-child {
  white-space: normal;
  min-width: 130px;
  max-width: 240px;
}

.docs-article table td:last-child,
.article-body table td:last-child,
article table td:last-child {
  white-space: normal;
  min-width: 180px;
}

.docs-article table code,
.article-body table code,
article table code {
  white-space: normal;
  word-break: break-word;
}

/* Table scrollbar */
.docs-article table::-webkit-scrollbar,
.article-body table::-webkit-scrollbar,
article table::-webkit-scrollbar { height: 6px; }

.docs-article table::-webkit-scrollbar-track,
.article-body table::-webkit-scrollbar-track,
article table::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.docs-article table::-webkit-scrollbar-thumb,
.article-body table::-webkit-scrollbar-thumb,
article table::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.docs-article table,
.article-body table,
article table {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* API documentation styles */
.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.endpoint-table td {
  padding: 10px 14px;
  vertical-align: middle;
  border: none;
}

.http-method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  min-width: 56px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.http-method-get { background: #dbeafe; color: #1d4ed8; }
.http-method-post { background: #dcfce7; color: #16a34a; }
.http-method-put { background: #fef3c7; color: #d97706; }
.http-method-delete { background: #fee2e2; color: #dc2626; }
.http-method-patch { background: #f3e8ff; color: #7c3aed; }

.endpoint-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}

.response-example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
  overflow-x: auto;
}

.response-example pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
}

.endpoints-list {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.endpoints-list-item { margin: 8px 0; }
.endpoint-method-name { margin-left: 8px; font-weight: 600; }
.endpoint-url-code { margin-left: 8px; font-size: 12px; }

/* ==========================================================
   PRINT STYLES
   ========================================================== */
@media print {
  #mainNav,
  #docsSearch,
  #sidebar,
  .related,
  .articleRatings,
  footer {
    display: none !important;
  }

  .contentWrapper {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  body { background: #fff; }
}

/* ==========================================================
   DEMO STYLES (Docs Style Guide reset)
   ========================================================== */
#fullArticle .demo-styles * {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#fullArticle .demo-styles pre {
  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}
#fullArticle .demo-styles p,
#fullArticle .demo-styles ul,
#fullArticle .demo-styles ol,
#fullArticle .demo-styles li,
#fullArticle .demo-styles div,
#fullArticle .demo-styles blockquote,
#fullArticle .demo-styles dd,
#fullArticle .demo-styles table {
  font-size: 14px;
  color: #585858;
  line-height: 1.55em;
  margin-bottom: 1.5em;
}
#fullArticle .demo-styles blockquote {
  padding: 0 0 0 15px;
  margin: 0 0 18px;
  border-left: 5px solid #eee;
}
#fullArticle .demo-styles pre {
  padding: 8.5px;
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 18px;
}
#fullArticle .demo-styles h1,
#fullArticle .demo-styles h2,
#fullArticle .demo-styles h3,
#fullArticle .demo-styles h4,
#fullArticle .demo-styles h5 {
  margin: 9px 0;
  font-family: inherit;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  font-weight: 500;
  color: #1d2b36;
}
#fullArticle .demo-styles h1,
#fullArticle .demo-styles h2,
#fullArticle .demo-styles h3 {
  line-height: 36px;
}
#fullArticle .demo-styles h1 { font-size: 33px; }
#fullArticle .demo-styles h2 { font-size: 27px; }
#fullArticle .demo-styles h3 { font-size: 21px; }
#fullArticle .demo-styles h4 { font-size: 15px; }
#fullArticle .demo-styles h5 { font-size: 12px; }