/* 디자인리터치 — 공통 보조 스타일 (dc.html 인라인 스타일 유지) */
body {
  margin: 0;
  background: #F6F8FA;
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-btn {
  min-width: 32px;
  padding: 4px 7px;
  border: 1px solid #3A5570;
  border-radius: 999px;
  background: transparent;
  color: #8FA6BA;
  font: 700 11px 'Noto Sans KR', sans-serif;
  cursor: pointer;
}

.lang-btn:hover {
  color: #fff;
  border-color: #D9A616;
}

.lang-btn.is-active {
  background: #D9A616;
  border-color: #D9A616;
  color: #0D2438;
}

.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.skiptranslate iframe,
.goog-te-menu-value span:nth-child(2) {
  display: none !important;
}

body {
  top: 0 !important;
}

.google-translate-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.goog-te-gadget {
  font-size: 0 !important;
}

a:hover {
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.rt-brand-chip:hover,
.rt-kind-chip:hover,
.rt-price-chip:hover {
  border-color: #D5DEE7 !important;
  background: #F6F8FA;
}

.rt-price-chip:hover {
  border-color: #1D4E79 !important;
  color: #1D4E79 !important;
}

header nav a:not([style*="background:#1D4E79"]):hover {
  color: #1D4E79 !important;
}

a[style*="background:#1D4E79"]:hover,
button[style*="background:#1D4E79"]:hover {
  background: #17406A !important;
}

a[style*="background:#E3B322"]:hover {
  background: #D9A616 !important;
}

.rt-find-tab.is-active {
  background: #fff !important;
  color: #1D4E79 !important;
  font-weight: 900 !important;
  border-bottom: 3px solid #1D4E79 !important;
}

.rt-find-tab:not(.is-active) {
  background: #F6F8FA !important;
  color: #5A6B7C !important;
  font-weight: 500 !important;
  border-bottom: 3px solid transparent !important;
}

/* inline display:grid 가 hidden 을 덮어쓰는 문제 방지 */
[hidden] {
  display: none !important;
}

#rtFindKind,
#rtFindPrice {
  box-sizing: border-box;
}

#rtFindKind:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 28px;
}

#rtFindPrice:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 28px;
}

@media (max-width: 900px) {
  #rtFindKind:not([hidden]) {
    grid-template-columns: repeat(4, 1fr);
  }

  #rtFindPrice:not([hidden]) {
    grid-template-columns: 1fr;
  }
}

.rt-car-seg.is-active {
  background: #fff !important;
  color: #1D4E79 !important;
  box-shadow: 0 1px 4px rgba(13, 36, 56, 0.15) !important;
}

.rt-car-seg:not(.is-active) {
  background: transparent !important;
  color: #5A6B7C !important;
  box-shadow: none !important;
}

.rt-ctype-btn.is-active {
  background: #fff !important;
  color: #1D4E79 !important;
  box-shadow: 0 1px 4px rgba(13, 36, 56, 0.15) !important;
}

.rt-ctype-btn:not(.is-active) {
  background: transparent !important;
  color: #5A6B7C !important;
  box-shadow: none !important;
}

.rt-car-card:hover {
  box-shadow: 0 10px 28px rgba(13, 36, 56, 0.12) !important;
  border-color: #C3CEDA !important;
}

.rt-car-photo {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #E8EDF3 0 12px, #EFF3F7 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.rt-car-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-car-photo-placeholder {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #8B99A7;
  letter-spacing: 1px;
}

.rt-detail-section {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #E3E9EF;
  border-radius: 12px;
  padding: 28px;
}

.rt-detail-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 13.5px;
  color: #16222E;
}

.rt-detail-table th,
.rt-detail-table td {
  border: 1px solid #E3E9EF;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.rt-detail-table th {
  width: 18%;
  background: #F6F8FA;
  color: #5A6B7C;
  font-weight: 900;
}

.rt-detail-table td {
  background: #fff;
  font-weight: 700;
}

.rt-option-groups {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rt-option-group {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
}

.rt-option-title {
  margin: 0;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 900;
  color: #1D4E79;
}

.rt-option-group ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.rt-option-group li {
  padding: 8px 12px;
  border: 1px solid #E3E9EF;
  border-radius: 99px;
  background: #F6F8FA;
  color: #8B99A7;
  font-size: 12.5px;
  font-weight: 700;
}

.rt-option-group li.active {
  border-color: #1D4E79;
  background: #EDF2F7;
  color: #1D4E79;
}

.rt-option-comment {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #F6F8FA;
  color: #5A6B7C;
  font-size: 13.5px;
  line-height: 1.8;
}

.rt-performance-record {
  margin-top: 18px;
}

.rt-performance-record iframe {
  width: 100%;
  min-height: 720px;
  border: 1px solid #E3E9EF;
  border-radius: 8px;
  background: #fff;
}

.rt-detail-thumb {
  aspect-ratio: 4/3;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #E8EDF3;
  cursor: pointer;
  overflow: hidden;
}

.rt-detail-thumb.is-active {
  border-color: #1D4E79;
}

.rt-detail-thumb img,
.rt-similar-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  [style*="grid-template-columns:minmax(400px,1fr) 300px 370px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(12,1fr)"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}
