/*
 * Alert LAC 911 / Tablet Command — Help Scout Docs Stylesheet
 * Matches the dark command-center UI from alertlac911.com
 *
 * Brand tokens:
 *   Navy bg:       #0d1117
 *   Surface:       #111827
 *   Surface alt:   #1a2332
 *   Border:        #1e293b
 *   Border light:  #374151
 *   Red primary:   #dc2626
 *   Red hover:     #b91c1c
 *   Blue accent:   #3b82f6
 *   Text:          #f1f5f9
 *   Text muted:    #94a3b8
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   BASE / BODY
   ═══════════════════════════════════════════ */

body {
  background: #0d1117;
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════
   NAVBAR / HEADER
   ═══════════════════════════════════════════ */

.navbar .navbar-inner {
  background: #111827;
  border-bottom: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  height: 56px;
  position: relative;
}

.navbar .navbar-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #dc2626;
}

.navbar .navbar-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(220, 38, 38, 0.6), #374151, transparent);
}

.navbar .navbar-inner .container-fluid {
  padding: 0 16px;
  height: 56px;
}

a.brand > img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
  height: 40px;
  width: auto;
  margin-left: 8px;
}

.navbar .brand {
  padding: 8px 0;
  margin-left: 0;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.025em;
}

.navbar .nav li {
  display: inline-block;
  float: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.navbar .nav li a:hover {
  color: #f1f5f9;
  background: #1a2332;
  border-radius: 6px;
}


/* ═══════════════════════════════════════════
   SEARCH AREA (#docsSearch)
   ═══════════════════════════════════════════ */

#docsSearch {
  background: #111827;
  border-top: none;
  border-bottom: 1px solid #1e293b;
  padding: 2.5em 0 2em;
  margin-bottom: 0;
  position: relative;
}

#docsSearch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#docsSearch h1 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  letter-spacing: -0.025em;
  margin-top: 0.4em;
  padding: 10px;
}

#searchBar .search-query {
  background: #1a2332;
  border: 1px solid #374151;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 12px 16px;
  transition: border-color 0.15s ease;
}

#searchBar .search-query:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

#searchBar .search-query::placeholder {
  color: #94a3b8;
}

#searchBar button {
  background: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 0 1.5em;
  height: 48px;
  position: absolute;
  transition: background 0.15s ease;
  text-shadow: none;
}

#searchBar button:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}


/* ═══════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════ */

.contentWrapper,
.content-wrapper,
#main-content {
  background: none;
  color: #f1f5f9;
}

#main-content {
  padding: 32px 0 0 28px;
}


/* ═══════════════════════════════════════════
   CATEGORIES (Home Page)
   ═══════════════════════════════════════════ */

.category-list {
  text-align: center;
}

.category-list .category {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  min-height: 160px;
  padding: 24px 20px 20px;
  position: relative;
  width: 31.5%;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.category-list .category:hover {
  background: #1a2332;
  border-color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transform: translateY(-1px);
}

.category-list .category::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  background: #dc2626;
  border-radius: 0 2px 2px 0;
}

.category-list h3 {
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.category-list .category p {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

.category-list .category .article-count {
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}


/* ═══════════════════════════════════════════
   COLLECTIONS
   ═══════════════════════════════════════════ */

.collection-category h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #f1f5f9;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.collection-category h2 a {
  color: #f1f5f9;
}

.collection-category h2 a:hover {
  color: #dc2626;
}

.twoCol .collection,
.threeCol .collection {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
}


/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */

#sidebar .nav-list a {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 15px 6px 0;
  line-height: 1.5;
  transition: color 0.15s ease;
}

#sidebar .nav-list a:hover {
  color: #f1f5f9;
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  color: #dc2626;
  font-weight: 600;
  background: none;
  text-shadow: none;
  text-decoration: none;
  border-left: 2px solid #dc2626;
  padding-left: 12px;
  margin-left: -14px;
}

#sidebar h3 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════
   ARTICLES
   ═══════════════════════════════════════════ */

#fullArticle .title,
.contentWrapper h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #f1f5f9;
  letter-spacing: -0.025em;
  margin: 0 30px 0.5em 0;
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: #c8d1db;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

#fullArticle strong {
  color: #f1f5f9;
  font-weight: 600;
}

#fullArticle h2 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #1e293b;
  letter-spacing: -0.01em;
}

#fullArticle h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-top: 1.5em;
}

#fullArticle h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 1.2em;
}

#fullArticle img {
  display: block;
  margin: 1.5em 0;
  padding: 4px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-sizing: border-box;
}

#fullArticle blockquote {
  border-left: 3px solid #dc2626;
  padding: 0.5em 1em;
  margin: 1em 0;
  background: #1a2332;
  border-radius: 0 6px 6px 0;
  color: #94a3b8;
}

#fullArticle code {
  background: #1a2332;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: #e2e8f0;
}

#fullArticle pre {
  background: #1a2332;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

#fullArticle pre code {
  background: none;
  border: none;
  padding: 0;
}

#fullArticle a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

#fullArticle a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

#fullArticle table {
  border-collapse: collapse;
  width: 100%;
}

#fullArticle table th {
  background: #1a2332;
  color: #f1f5f9;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #1e293b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#fullArticle table td {
  padding: 10px 12px;
  border: 1px solid #1e293b;
  color: #c8d1db;
}

#fullArticle table tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.5);
}


/* ═══════════════════════════════════════════
   LINKS (global)
   ═══════════════════════════════════════════ */

#serp-dd .result a,
.collection a,
.contentWrapper a,
.most-pop-articles .popArticles a,
.most-pop-articles .popArticles a span {
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

#serp-dd .result a:hover,
.collection a:hover,
.contentWrapper a:hover,
.most-pop-articles .popArticles a:hover {
  color: #60a5fa;
  text-decoration: underline;
}


/* ═══════════════════════════════════════════
   ARTICLE FOOTER
   ═══════════════════════════════════════════ */

.articleFoot p,
.articleFoot time {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  font-style: normal;
}


/* ═══════════════════════════════════════════
   PAGE FOOTER
   ═══════════════════════════════════════════ */

footer {
  background: #0d1117;
  border-top: 1px solid #1e293b;
}

footer p,
footer p a {
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
}

footer p a:hover {
  color: #f1f5f9;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  background: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 6px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  text-shadow: none;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn.active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  text-shadow: none;
}

.btn.disabled,
.btn[disabled] {
  background: #374151;
  border-color: #374151;
  color: #94a3b8;
}


/* ═══════════════════════════════════════════
   CONTACT MODAL
   ═══════════════════════════════════════════ */

#contactModal h2,
.abuse h2 {
  background: #111827;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  border-bottom: 1px solid #1e293b;
  border-radius: 8px 8px 0 0;
  padding: 16px 20px;
  margin: 0;
}

#contactModal .control-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
}

#contactModal .modal-body {
  background: #0d1117;
}

#contactModal .modal-footer {
  background: #111827;
  border-top: 1px solid #1e293b;
}


/* ═══════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════ */

input,
button,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

input[type="text"],
input[type="email"],
textarea,
select {
  background: #1a2332;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #f1f5f9;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}


/* ═══════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════ */

#serp-dd {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

#serp-dd .result > li {
  border-bottom: 1px solid #1e293b;
}

#serp-dd .result > li:hover,
#serp-dd .result > li.active {
  background: #1a2332;
}


/* ═══════════════════════════════════════════
   SCROLLBARS (WebKit)
   ═══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media screen and (max-width: 1105px) {
  section.category-list .category {
    width: 48.2%;
  }
}

@media screen and (max-width: 760px) {
  section.category-list .category {
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 20px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar .btn-navbar {
    margin-top: 12px;
  }

  #docsSearch h1 {
    font-size: 22px;
  }

  #fullArticle .title,
  .contentWrapper h1 {
    font-size: 22px;
  }

  #fullArticle h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  #searchBar button {
    padding: 0 1em;
  }
}
