: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 .mfr-links h2 {
  color: #f1f1f1;
}

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 td a[style*="color: #000"] {
  color: #e5e7eb !important;
}


body.dark .datasheet-header h1 {
  color: #e5e7eb !important;
}

body.dark .datasheet-header h1 span {
  color: #cbd5e1 !important;
}

body.dark .datasheet-header .manufacturer {
  color: #d1d5db !important;
}

body.dark .datasheet-header .manufacturer span {
  color: #8ab4f8 !important;
}

body.dark .top-overview p {
  color: #f0f0f0 !important;
}

body.dark .parent p[style*="color:#666"] { color:#bdbdbd !important; }


body.dark #sf_ad_4u,
body.dark #idAD2 {
  background-color: #121212;
  border-radius: 6px;
}



  table.styled-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #F7F7F7;
  }

  table.styled-table th,
  table.styled-table td {
    border: 1px solid #ddd;
    padding: 8px;
  }

.responsive-table {
  max-width: 1250px;
  margin: 10px auto 30px;
  background-color: #F7F7F7;
  border-radius: 10px;
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.responsive-table thead {
  background-color: #e0e0e0;
  font-weight: bold;
}

.responsive-table th,
.responsive-table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}

@media (max-width: 768px) {
  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table th,
  .responsive-table td,
  .responsive-table tr {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table td {
    position: relative;
    padding: 16px 10px 16px 140px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-top: 1px solid #ccc;
  }

  .responsive-table td::before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    white-space: nowrap;
    font-weight: bold;
    content: attr(data-label);
    color: #555;
  }
}


body {
    font-family: "Arial", sans-serif;
    font-weight: 400;
    line-height: 1.8;
    font-style: normal;
    color: #000000;
    font-size: 1rem;
    padding-top: 110px;
}

.Relatedlink:hover,
.Relatedlink:focus {
  background-color: #e6f0ff;
}
.Relatedlink:active {
  background-color: #cce0ff;
}

a {
  outline: none;
  text-decoration: none;
}
a:link { color: #369; }
a:visited { color: purple; }

    h1 {
        font-size: 25px;
        line-height: 1.4;
    }

	h2 {
        font-size: 20px;
        line-height: 1.3;
    }

	h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    @media screen and (max-width: 768px) {
        h1, h2, h3 {
            font-size: 20px;
        }
    }

    @media screen and (max-width: 480px) {
        h1, h2, h3 {
            font-size: 18px;
        }
    }

.h3-label {
  font-size: 18px;
  color: #0056b3;
  margin: 15px 0 -5px 0;
}

.p-value {
  margin: 0;
  font-size: 16px;
  color: #555;
}


.parent {
  text-align: center;
}
.child {
  display: inline-block;
}







  .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 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;
    }
  }




.logo-img{
  height:66px;
  width:auto;
  max-width:180px;
  object-fit:contain;
  flex:0 0 auto;
}


@media (max-width:600px){
  .logo-img{
    height:40px;
    width:auto;
    max-width:180px;
  }
}



  .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;
}

.w-150 { width: 150px; }
.w-200 { width: 200px; }

.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;
}


ul li {
    line-height: 1.4;
	margin-bottom: 18px;
	}

ul.no-indent {
  padding: 0;
}


  .datasheet-container {
    max-width: 1000px;
    margin: 0 auto;
  }

  .datasheet-header {
    display: flex;
	position: relative;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 12px 12px;
  }

  .datasheet-text {
    flex: 1;
    margin: 0;
    padding: 0;
  }

  .datasheet-text h1,
  .datasheet-text h2 {
    margin: 0;
    padding: 0;
    line-height: 1.5;
  }

  .datasheet-logo {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }

  .datasheet-logo img {
    width: 150px;
    height: 50px;
    object-fit: contain;
    display: block;
  }

  @media (max-width: 600px) {
    .datasheet-header {
      flex-direction: row;
      align-items: flex-start;
      padding: 0px;
	  border-bottom: 1px solid #ccc;
      gap: 2px;
    }

    .datasheet-logo img {
      margin-top: 4px;
      margin-bottom: 5px;
      width: 110px;
      height: 36px;
    }

    .datasheet-text h1 {
      font-size: 20px;
    }

    .datasheet-text h2 {
      font-size: 18px;
      margin-top: 2px;
    }
  }




  #pdfPreviewContainer {
    width: 100%;
    max-width: 340px;
	aspect-ratio: 340 / 480;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
@media (max-width: 600px) {
  #pdfPreviewContainer {
    height: 370px;
  }
}

  #pdfPreviewContainer img {
	width: 100%;
	height: 100%;
	display: block;
    object-fit: cover;
    display: block;
  }


.container {
  display: flex;
  flex-direction: column;
}

.item {
  margin: 0;
}




  .responsive-article {
	width: 90%;
    background-color: #ffffff;
    padding: 5px 15px 20px 15px;
    margin: 10px auto 30px;
    font-family: Arial, sans-serif;
    text-align: left;
  }

  @media (min-width: 768px) {
    .responsive-article {
      width: 520px;
    }
  }



.similar-links {
  max-width: 1000px;
  margin: 50px auto 0;
}

.similar-links h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-align: left;
}

.mfr-links {
  max-width: 1000px;
  margin: 50px auto 0;
}

.mfr-links h2 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  text-align: left;
}

.similar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;

}

.similar-table th,
.similar-table td {
  border: 1px solid #ddd;
}
.similar-table th {
  background: #f5f5f5;
  text-align: left;
}
.similar-table a {
  text-decoration: none;
  font-weight: 600;
}


@media (max-width: 640px) {
  .similar-table thead {
    display: none;
  }
  .similar-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ddd;
  }
  .similar-table td {
    display: block;
    border: none;
    padding: 8px 10px;
  }
  .similar-table td::before {
    content: attr(data-label);
    font-size: 14px;
    font-weight: 600;
    color: #888;
    display: block;
    margin-bottom: 4px;
  }
}




.other-img {
  object-fit: contain;
  border: 1px solid black;
  vertical-align: bottom;
  max-width: 150px;   /* PC 기본 */
  height: auto;       /* 비율 유지 */
  display: block;
}

@media (max-width: 600px) {
  .other-img {
    max-width: 110px; /* 모바일에서 축소 */
  }
}





  .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;
  }



table.mobile-padding td, table th {
    padding: 10px 8px;
}

@media screen and (max-width: 600px) {
    table.mobile-padding td, table th {
        padding: 10px 4px;
    }
}


#adListT {
    opacity: 0;
    transition: opacity 0.6s ease;
}
#adListT.visible {
    opacity: 1;
}


.lightbox{
  width:min(1000px,94vw);
  border:0;
  border-radius:14px;
  background:#0b1220;
}
.lightbox::backdrop{background:rgba(0,0,0,.7);}
.lightbox__img{width:100%;height:auto;}
.lightbox__close{
  position:absolute;top:10px;right:10px;
  width:40px;height:40px;border:0;
  border-radius:50%;background:rgba(255,255,255,.15);
  color:#fff;font-size:22px;cursor:pointer;
}
.lightbox__meta{padding:10px;text-align:right;}
.lightbox__open{color:#fff;font-size:13px;text-decoration:none;}

.lightbox__img{
  width:100%;
  height:auto;
  max-width: 900px;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.lightbox[open]::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox[open] {
  animation: modal-show 0.25s ease-out forwards;
}

@keyframes modal-show {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.entity-summary{
  font-size:16px;
  margin:0;
  line-height:1.25;
}

@media (max-width:768px){
  .entity-summary{
    font-size:15px;
	display:block;
    line-height:1.5;
  }
}

.dist-title1{
  font-size:20px; line-height:1.3; text-align:left; font-weight:bold;
  margin-bottom:10px;
}

@media (max-width: 700px){
  .preview-side{ flex: 1 1 100% !important; }
  .preview-side figure{ width:160px; }
}

