:root {
  --bg: #ffffff;
  --text: #000000;
}

body.dark {
  background:#121212;
  color:#e5e5e5;
}

body.dark table { background:#1e1e1e; }
body.dark thead th { background:#2a2a2a; color:#f1f1f1; }
body.dark td { color:#e5e5e5; }

body.dark .similar-links h2 {
  color: #f1f1f1;
}

body.dark .datasheet-content h2 {
  color: #f1f1f1;
}

body.dark .extracted-box {
  background-color: #1a1a1a;
  color: #e5e5e5;
  border-color: #333;
}

body.dark .extracted-box p,
body.dark .extracted-box li {
  color: #e5e5e5;
}

body.dark .extracted-box ul {
  padding-left: 20px;
}
body.dark figcaption {
  color: #aaa !important;
}

body.dark .responsive-article {
  background-color: #1a1a1a;
  border-color: #333;
  color: #e5e5e5;
}

body.dark .responsive-article h2 {
  color: #f1f1f1;
}

body.dark .responsive-article h2 {
  border-left-color: #4da3ff;
}

body.dark .responsive-article table {
  background-color: #1e1e1e !important;
}

body.dark .responsive-article th,
body.dark .responsive-article td {
  background-color: #1e1e1e;
  color: #e5e5e5;
  border-bottom-color: #333 !important;
}

body.dark .responsive-article strong {
  color: #ffffff;
}

body.dark .responsive-article a {
  color: #9ecbff;
}

body.dark .responsive-article img {
  border-color: #444 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
body.dark p[style*="color:#666"] {
  color: #999 !important;
}

#darkToggle {
  height: 36px;
  width: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  line-height: 36px;
  cursor: pointer;
  flex-shrink: 0;
}

#darkToggle:hover {
  background: rgba(255,255,255,0.25);
}

body.dark a {
  color: #93c5fd;
}
body.dark a:visited {
  color: #a5b4fc;
}

body.dark span[style*="color: #666"] {
  color: #cbd5e1 !important;
}

body.dark .text-gray-800 {
  color: #d1d5db !important;
}

body.dark .text-gray-800 strong {
  color: #f1f5f9;
}

body.dark details {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

body.dark details summary {
  color: #9ecbff !important;
}

body.dark details span {
  color: #e5e7eb;
}

body.dark details a {
  color: #cbd5e1;
}

body.dark details a:hover {
  color: #ffffff;
  border-bottom-color: #9ecbff;
}

body.dark input[type="text"] {
  background-color: #ffffff;
  color: #000000;
}

body.dark input[type="text"]::placeholder {
  color: #666;
}






body {
    font-family: "Arial", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    font-style: normal;
    color: #000000;
    font-size: 1rem;
    padding-top: 100px;
}

a:focus { outline: 2px solid #369; }

a {
  outline: none;
  text-decoration: none;
}
a:link { color: #369; }
a:visited { color: purple; }
a:focus { outline: 2px solid #369; }
a.line:hover {
  border-bottom: 2px solid #1679C6;
}
    h1 {
        font-size: 25px;
        line-height: 1.4;
    }
	h2 {
        font-size: 20px;
        line-height: 1.3;
    }
    @media screen and (max-width: 768px) {
        h1, h2 {
            font-size: 20px;
        }
    }

    @media screen and (max-width: 480px) {
        h1, h2 {
            font-size: 18px;
        }
    }

  @media (max-width: 768px) {
    #welcome-box {
      font-size: 17px;
    }
  }

  .fixed-top-bar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 10px;
    margin: 0 auto;
    background-image: linear-gradient(#1679C6, #409BDF);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 10px;
  }

 .logo-link {
   display: flex;
   align-items: center;
   gap: 8px;
   text-decoration: none;
  }

 .logo-img {
    height: 66px;
    display: block;
    margin-bottom: 0;
  }

.logo-text {
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

  .logo-container form {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .logo-container input[type="text"] {
    height: 32px;
    font-size: 16px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    min-width: 280px;
  }

  .logo-container input[type="submit"] {
    height: 32px;
    font-size: 18px;
    border: none;
    background: #fff;
    color: #1679C6;
    border-radius: 4px;
    cursor: pointer;
    padding: 0 12px;
  margin-right: 18px;

  }

  .logo-container input[type="text"],
  .logo-container input[type="submit"] {
  height: 36px;
  font-size: 16px;
  line-height: 1;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
}


#darkToggle {
  margin-left: auto;
  margin-right: 18px;
}

  @media (max-width: 600px) {
    .logo-container {
      flex-direction: column;
      align-items: center;
    }

	.logo-container img {
	  height: 40px;
	  display: block;
	  margin-bottom: 0;
	}

	.logo-container form {
      width: 70%;
      justify-content: center;
    }

    .logo-container input[type="text"] {
    flex: 1;
    min-width: 230px;
    max-width: 260px;
	font-size: 18px;
    }

    .logo-container input[type="submit"] {
      font-size: 18px;
      padding: 0 16px;
    }
  }




  .parentend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 24px;
    background-color: #333;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 14px;
  }

  .childend.logo {
    flex-shrink: 0;
  }

  .childend.logo img {
    max-height: 40px;
    height: auto;
    width: auto;
  }

  .childend.text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .childend.text span {
    margin-right: 10px;
    white-space: nowrap;
  }

  .childend.text a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 6px;
    white-space: nowrap;
  }

  .childend.text a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .parentend {
      flex-direction: column;
      align-items: flex-start;
    }

    .childend.text {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

    .childend.text span {
      margin: 0 0 6px 0;
    }

    .childend.text a {
      margin: 0;
    }
  }
