: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;
}


body.dark .search-results th{
  background:#2a2a2a;
  color:#f1f1f1;
}

body.dark .search-results td{
  background:#1e1e1e;
  color:#e5e5e5;
  border-color:#333;
}

body.dark .search-results tr{
  border-color:#333;
}

body.dark .search-results a.line{
  color:#8ab4f8;
}

body.dark .search-results td::before{
  color:#aaa;
}

#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);
}

@media (prefers-color-scheme: dark) {
  iframe {
    background-color: #020617;
    border-radius: 6px;
  }
}


.results-wrap{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.search-results{
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.search-results th,
.search-results td{
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: middle;
}

.search-results th{
  background: #f5f5f5;
  text-align: left;
}

.search-results a.line{
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px){
  .search-results thead{ display:none; }

  .search-results tr{
    display:block;
    margin-bottom: 12px;
    border: 1px solid #ddd;
  }

  .search-results td{
    display:block;
    border: none;
    padding: 8px 10px;
  }

  .search-results td::before{
    content: attr(data-label);
    display:block;
    font-size: 15px;
    font-weight: 700;
    color:#666;
    margin-bottom: 4px;
  }
}


.search-results td[data-label='Manufacturer'] {
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
  width: auto; 
}

@media (min-width: 641px) {
  .search-results td[data-label='Manufacturer'] {
    width: 150px;
    word-break: break-word;
    hyphens: auto;
  }
}

@media (max-width: 640px){
  .search-results td[data-label='Manufacturer'] .mfr-name{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (min-width: 641px){
  .search-results td[data-label='Part Number'],
  .search-results th:nth-child(2){
    text-align: center;
  }
}

.mfr-name{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 640px){
  .search-results td[data-label='Manufacturer'] .mfr-cell{
    margin-top: 6px;
    gap: 6px;
  }

  .search-results td{
    margin-bottom: 6px;
  }
}


body {
    font-family: "Arial", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    font-style: normal;
    color: #000000;
	font-size: 1rem;
    padding-top: 0px;
}

a:active {
  background-color: #cce0ff;
}

a {
  outline: none;
  text-decoration: none;
}
a:link { color: #369; }
a:visited { color: purple; }
a.line {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

a.line:hover {
  border-bottom-color: #1679C6;
}


    h1 {
        font-size: 25px;
        line-height: 1.4;
    }

    @media screen and (max-width: 768px) {
        h1 {
            font-size: 20px;
        }
    }

    @media screen and (max-width: 480px) {
        h1 {
            font-size: 18px;
        }
    }




.manufacturer {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}




.parent {
  text-align: center;
}
.child {
  display: inline-block;
}

hr.new1 {
  border: 1px dashed #ddd;
}

  .fixed-top-bar {
    width: 100%;
    position: static;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 2px;
    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;
    }
  }


.buy-button {
  display: inline-block;
  width: 200px;
  background-color: #FEE05D;
  color: #000;
  text-align: center;
  padding: 10px 0;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.buy-button:hover {
  background-color: #fcd34d;
}

.no-stock-btn {
  background-color: #ccc;
  color: #666;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: not-allowed;
  font-weight: bold;
  font-size: 14px;
  opacity: 0.7;
}



  .ad-container {
    position: relative;
    overflow: hidden;
    margin: 10px auto;
    width: 750px;
    height: 350px;
    max-width: 100%;
  }
  .ad-inner {
    width: 100%;
    height: 100%;
    transform-origin: top left;
    transition: transform 0.2s ease;
  }


  .responsive-logo {
  width: 150px;
  aspect-ratio: auto 150 / 50;
  height: 50px;
}
@media (max-width: 768px) {
  .responsive-logo {
    width: 80px;
    aspect-ratio: auto 80 / 30;
    height: 30px;
  }
}











@media (max-width: 768px) {
  .fixed-top-bar,
  .fixed-top-bar * {
    box-sizing: border-box;
  }

  .fixed-top-bar {
    position: static !important;
    width: 100%;
    overflow-x: hidden;
    padding: 6px 8px;
  }

  body {
    padding-top: 0 !important;
    overflow-x: hidden;
  }

  .logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .logo-container form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .home-btn {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
  }

  .home-btn::before {
    content: "⌂";
    font-size: 18px;
    color: #fff;
    line-height: 1;
  }

  .logo-container input[type="text"] {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 36px;
    font-size: 16px;
    padding: 4px 8px;
  }

  .logo-container input[type="submit"] {
    flex: 0 0 42px;
    width: 42px;
    height: 36px;
    padding: 0;
    margin-right: 0 !important;
  }

  #darkToggle {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .fixed-top-bar .logo-link,
  .fixed-top-bar .logo-img,
  .fixed-top-bar .logo-text {
    display: none !important;
  }


  .datasheet-header {
    display: block !important;
  }
    .datasheet-logo {
    margin-bottom: 10px !important;
  }

  .datasheet-text h1 {
    font-size: 22px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 768px) {
  .datasheet-header {
    border-bottom: none !important;
  }
}



