/*
 * Shipstore Help Docs - Custom Stylesheet
 * Upload via: Help Docs > Appearance > Custom Code > Stylesheet
 *
 * Brand Colors:
 *   Page Background  : #ffffff
 *   Header Background: #ffffff
 *   Nav Text         : #017C8D
 *   Nav Active Text  : #1E2323
 *   Article Text     : #1E2323
 *   Link Color       : #017C8D
 */

/* -- Google Font Import -- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   GLOBAL
========================================================== */
body {
  font-family: 'DM Sans', sans-serif !important;
  color: #1E2323 !important;
  background-color: #ffffff !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #017C8D !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

a:hover {
  color: #016b7a !important;
  text-decoration: underline !important;
}

/* ==========================================================
   HEADER  ->  .site--header
========================================================== */
.site--header {
  background-color: #ffffff !important;
  border-bottom: 3px solid #017C8D !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 74px !important;
  box-sizing: border-box !important;
}

.site--header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

/* Logo - constrain to fit within header, aligned left */
.site--header .brand-logo {
  display: flex !important;
  align-items: center !important;
  margin-right: auto !important;
}

.site--header .brand-logo img {
  max-height: 50px !important;
  width: auto !important;
  display: block !important;
}

/* Nav - vertically center the Submit a Request button */
.site--header .header--nav {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
}

/* Nav links inside header */
.header--nav ul li a {
  background-color: #017C8D !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  transition: background-color 0.15s ease !important;
}

.header--nav ul li a:hover {
  background-color: #016b7a !important;
  text-decoration: none !important;
}

/* ==========================================================
   SEARCH ROW  ->  .search--row
========================================================== */
.search--row {
  background-color: #f0f5f5 !important;
  border-bottom: 1px solid #e0eceb !important;
  padding: 18px 0 !important;
}

/* Container inside search row - flex layout on article/inner pages only */
.search-inner .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

/* "Knowledge Base" title */
.search--row .row-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.search--row .row-title {
  margin: 0 0 4px 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

.search--row .row-title a {
  color: #1E2323 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.search--row .row-title a:hover {
  color: #017C8D !important;
  text-decoration: none !important;
}

/* Breadcrumb  ->  ul.history-path */
.history-path {
  list-style: none !important;
  padding: 0 !important;
  margin: 2px 0 0 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 !important;
}

.history-path li {
  font-size: 12.5px !important;
  color: #6b7280 !important;
  display: flex !important;
  align-items: center !important;
}

/* Separator uses a CSS unicode escape so it survives any file encoding */
.history-path li + li::before {
  content: '\203A' !important;
  margin: 0 5px !important;
  color: #bbbbbb !important;
  font-size: 13px !important;
}

.history-path li a {
  color: #017C8D !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.history-path li a:hover {
  color: #016b7a !important;
  text-decoration: underline !important;
}

/* Search form  ->  .search-form */
.search-form {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  gap: 6px !important;
  /* Containing block for the autocomplete dropdown - see SEARCH RESULTS below */
  position: relative !important;
}

/* Search input  ->  input.search_input */
.search_input {
  border: 1px solid #d0e3e5 !important;
  border-radius: 6px !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  color: #1E2323 !important;
  outline: none !important;
  min-width: 220px !important;
  transition: border-color 0.15s ease !important;
  box-shadow: none !important;
}

/* Scope left padding for magnifying glass only to article/inner pages */
.search-inner .search_input {
  padding-left: 36px !important;
}

/* Home page search input - icon sits at background-position 20px, needs enough padding to clear it */
.search--row:not(.search-inner) .search_input {
  padding-left: 46px !important;
}

.search_input:focus {
  border-color: #017C8D !important;
  box-shadow: none !important;
  outline: none !important;
}

.search_input:not(:focus) {
  border-color: #d0e3e5 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Search button - hidden, search is triggered via Enter key with magnifying glass icon */
.search_submit {
  display: none !important;
}

/* ==========================================================
   SEARCH RESULTS / AUTOCOMPLETE DROPDOWN  ->  ul.search-results

   ul.search-results is a child of .search-form, which this
   sheet makes a centered flex container. Per the flexbox spec,
   an absolutely positioned child of a flex container resolves
   its static position as if it were the sole flex item, with
   the container's alignment applied - so the panel with
   `top: auto` gets centered ON TOP of the input instead of
   dropping below it. The explicit `top` below overrides that.
   Do not remove. (.search-form keeps position: relative from
   the theme, which also anchors the absolute .search_submit.)
========================================================== */
.search-form .search-results {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: auto !important;
  min-width: 100% !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  background-color: #ffffff !important;
  border: 1px solid #d0e3e5 !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  list-style: none !important;
  text-align: left !important;
}

/* The UL is always present in the DOM and is simply left empty
   when there is nothing to show, so it must not paint a box
   until it actually holds results. :empty covers the plain
   case; :not(:has(li)) also catches whitespace-only markup. */
.search-form .search-results:empty,
.search-form .search-results:not(:has(li)) {
  display: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
}

.search-form .search-results li {
  margin: 0 !important;
  border-bottom: 1px solid #f0f5f5 !important;
}

.search-form .search-results li:last-child {
  border-bottom: none !important;
}

.search-form .search-results li a {
  display: block !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #1E2323 !important;
  text-decoration: none !important;
}

.search-form .search-results li a:hover,
.search-form .search-results li.active a,
.search-form .search-results li:hover > a {
  background-color: #f0f5f5 !important;
  color: #017C8D !important;
  text-decoration: none !important;
}

/* Do not let ancestors clip the dropdown */
.site--header,
.search--row,
.search-inner .container {
  overflow: visible !important;
}

/* ==========================================================
   MAIN CONTENT LAYOUT  ->  .content-main
========================================================== */
.content-main {
  background-color: #ffffff !important;
  padding-top: 28px !important;
  padding-bottom: 48px !important;
}

/* Article structure wrapper  ->  .article--structure */
.article--structure {
  display: flex !important;
  gap: 32px !important;
  align-items: flex-start !important;
}

/* Left content pane  ->  .left-content */
.left-content {
  flex: 1 !important;
  min-width: 0 !important;
}

/* ==========================================================
   ARTICLE CONTROLS  ->  .article-controls
========================================================== */
.article-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  overflow: visible !important;
}

.article-controls .controls {
  order: 1 !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.article-controls iframe {
  order: 2 !important;
  float: none !important;
  margin: 0 !important;
  opacity: 0.5 !important;
  transition: opacity 0.15s ease !important;
  position: static !important;
  display: block !important;
}

.article-controls iframe:hover {
  opacity: 1 !important;
}

.btn-print {
  background: none !important;
  border: 1px solid #d0e3e5 !important;
  border-radius: 5px !important;
  padding: 5px 14px !important;
  font-size: 13px !important;
  font-family: 'DM Sans', sans-serif !important;
  color: #6b7280 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  line-height: 1.5 !important;
  width: auto !important;
  height: auto !important;
  min-width: 60px !important;
  min-height: 30px !important;
  overflow: visible !important;
  display: inline-block !important;
}

.btn-print:hover {
  border-color: #017C8D !important;
  color: #017C8D !important;
}

/* ==========================================================
   ARTICLE HEADER  ->  .article-header
========================================================== */
.article-header {
  border-bottom: 2px solid #e9ecef !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
}

.article-header .header-title {
  font-size: 31px !important;
  font-weight: 700 !important;
  color: #1E2323 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.3 !important;
  margin: 0 0 8px 0 !important;
}

.article-header small {
  font-size: 12px !important;
  color: #6b7280 !important;
}

/* ==========================================================
   ARTICLE BODY  ->  .article-body  /  article
========================================================== */
.article-body article {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #1E2323 !important;
}

.article-body article h1,
.article-body article div h1,
.article--structure .left-content h1,
.article--structure .left-content section h1,
.content-main h1 {
  font-size: 23px !important;
  font-weight: 700 !important;
  color: #1E2323 !important;
  letter-spacing: -0.3px !important;
  line-height: 1.3 !important;
  margin: 32px 0 12px 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e9ecef !important;
}

.article-body article h2,
.article-body article div h2,
.left-content h2,
.left-content section h2 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #1E2323 !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e9ecef !important;
}

.article-body article h3,
.article-body article div h3,
.left-content h3,
.left-content section h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1E2323 !important;
  margin-top: 24px !important;
  margin-bottom: 10px !important;
}

.article-body article h4,
.article-body article div h4,
.left-content h4,
.left-content section h4 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1E2323 !important;
  margin-top: 18px !important;
  margin-bottom: 8px !important;
}

.article-body article p {
  color: #1E2323 !important;
  margin-bottom: 14px !important;
}

.article-body article ul,
.article-body article ol {
  color: #1E2323 !important;
  padding-left: 22px !important;
  margin-bottom: 16px !important;
}

.article-body article li {
  margin-bottom: 6px !important;
  line-height: 1.7 !important;
}

.article-body article a {
  color: #017C8D !important;
  font-weight: 500 !important;
}

.article-body article a:hover {
  color: #016b7a !important;
}

/* Images in article */
.article-body article img {
  max-width: 100% !important;
  border-radius: 6px !important;
  border: 1px solid #e0eceb !important;
  margin: 12px 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Inline code */
.article-body article code {
  font-size: 13px !important;
  background-color: #f0f5f5 !important;
  border: 1px solid #d0e3e5 !important;
  color: #016b7a !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Code blocks */
.article-body article pre {
  background-color: #e6f4f5 !important;
  color: #0d4a52 !important;
  border-radius: 8px !important;
  border: 1px solid #b0d8db !important;
  padding: 16px 20px !important;
  font-size: 13px !important;
  overflow-x: auto !important;
  line-height: 1.65 !important;
}

.article-body article pre code {
  background: none !important;
  border: none !important;
  color: inherit !important;
  padding: 0 !important;
}

/* ==========================================================
   ARTICLE FOOTER  ->  .article-footer
========================================================== */
.article-footer {
  margin-top: 36px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e9ecef !important;
  font-size: 14px !important;
}

.article-footer-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.article-footer-row p {
  margin: 0 !important;
}

.article-footer .help {
  color: #6b7280 !important;
}

.article-footer .help a {
  color: #017C8D !important;
  font-weight: 600 !important;
}

.article-footer .help a:hover {
  color: #016b7a !important;
}

/* ==========================================================
   RIGHT SIDEBAR  ->  .right-sidebar / .related-articles
========================================================== */
.right-sidebar {
  width: 220px !important;
  flex-shrink: 0 !important;
  font-size: 13.5px !important;
}

/* "Recently Viewed Articles" label */
.right-sidebar h3,
.right-sidebar h4,
.related-articles h3,
.related-articles h4 {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.7px !important;
  color: #6b7280 !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid #e9ecef !important;
  padding-bottom: 6px !important;
}

.right-sidebar ul,
.related-articles ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.right-sidebar ul li,
.related-articles ul li {
  margin-bottom: 8px !important;
}

.right-sidebar ul li a,
.related-articles ul li a {
  color: #017C8D !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.right-sidebar ul li a:hover,
.related-articles ul li a:hover {
  color: #016b7a !important;
}

/* ==========================================================
   SITE FOOTER  ->  .site--footer
========================================================== */
.site--footer {
  border-top: 1px solid #e9ecef !important;
  background-color: #ffffff !important;
  padding: 16px 0 !important;
}

.site--footer .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.site--footer .copyrights {
  color: #6b7280 !important;
  font-size: 12.5px !important;
  margin: 0 !important;
}

.site--footer a {
  color: #017C8D !important;
}

/* LinkedIn icon - used in article footer */
.footer-linkedin {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  opacity: 0.75 !important;
  transition: opacity 0.15s ease !important;
  text-decoration: none !important;
}

.footer-linkedin:hover {
  opacity: 1 !important;
  text-decoration: none !important;
}

.footer-linkedin-text {
  color: #017C8D !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* ==========================================================
   CONTACT MODAL  ->  #contact-form
========================================================== */
.modal-header {
  border-bottom: 2px solid #017C8D !important;
}

.modal-title {
  color: #1E2323 !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
}

.modal-body .form-control {
  border: 1px solid #d0e3e5 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  color: #1E2323 !important;
}

.modal-body .form-control:focus {
  border-color: #017C8D !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(1, 124, 141, 0.12) !important;
}

.modal-body .in_label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1E2323 !important;
}

/* Send Inquiry button  ->  .btn-primary */
.modal-footer .btn-primary {
  background-color: #017C8D !important;
  border-color: #017C8D !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  transition: background-color 0.15s ease !important;
}

.modal-footer .btn-primary:hover {
  background-color: #016b7a !important;
  border-color: #016b7a !important;
}

/* Close button */
.modal-footer .btn-default {
  font-family: 'DM Sans', sans-serif !important;
  color: #1E2323 !important;
  border-color: #d0e3e5 !important;
  border-radius: 6px !important;
}

.modal-footer .btn-default:hover {
  color: #1E2323 !important;
  border-color: #1E2323 !important;
}
