/* Transition 광고 (볼트노트용, 2026-11-19). 모든 이름은 tr-ad 로 시작해 볼트노트의 스타일과 섞이지 않는다.
   색: Transition 밤색 #0A1420, 호박색 #F7A823. 볼트노트의 주황 단추(견적 문의)와 헷갈리지 않게 주황을 쓰지 않는다. */
.tr-ad { margin: 40px 0; font-family: inherit; }
.tr-ad:empty { display: none; }
.tr-ad *, .tr-ad *::before, .tr-ad *::after { box-sizing: border-box; }
.tr-ad a { text-decoration: none; color: inherit; }

.tr-ad-label {
  display: inline-block; padding: 2px 6px; border: 1px solid currentColor; border-radius: 2px;
  font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; opacity: .75;
}

/* ---------- 카드 (inline, side) ---------- */
.tr-ad-card {
  display: grid; grid-template-columns: 220px 1fr; overflow: hidden;
  border-radius: 6px; background: #0A1420; color: #E8EDF2;
  box-shadow: 0 0 0 1px rgba(10, 20, 32, .12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tr-ad-card:hover, .tr-ad-card:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 20, 32, .25); }
.tr-ad-card:focus-visible { outline: 2px solid #F7A823; outline-offset: 3px; }
.tr-ad-media { position: relative; display: block; min-height: 180px; background: #0A1420; overflow: hidden; }
.tr-ad-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tr-ad-card.is-cover .tr-ad-media { display: grid; place-items: center; padding: 18px 0; background: radial-gradient(circle at 50% 60%, #1B2A3C, #0A1420 70%); }
.tr-ad-card.is-cover .tr-ad-media img { position: static; width: 112px; height: auto; border-radius: 2px; box-shadow: 0 12px 26px rgba(0, 0, 0, .55); transform: rotate(-3deg); }
.tr-ad-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.tr-ad-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #F7A823; }
.tr-ad-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.tr-ad-title { font-size: 19px; line-height: 1.4; font-weight: 700; color: #fff; word-break: keep-all; letter-spacing: -.01em; }
.tr-ad-text { font-size: 14px; line-height: 1.65; color: #B9C3CE; word-break: keep-all; }
.tr-ad-go {
  align-self: flex-start; margin-top: 4px; padding: 9px 16px; border-radius: 3px;
  background: #F7A823; color: #0A1420; font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* 옆 칸(side): 세로 카드. 넓은 화면의 오른쪽 칸에서만 */
.tr-ad[data-slot="side"] { margin: 20px 0 0; }
.tr-ad[data-slot="side"] .tr-ad-card { grid-template-columns: 1fr; }
.tr-ad[data-slot="side"] .tr-ad-media { min-height: 0; aspect-ratio: 4 / 3; }
.tr-ad[data-slot="side"] .tr-ad-card.is-cover .tr-ad-media { aspect-ratio: auto; }
.tr-ad[data-slot="side"] .tr-ad-body { padding: 18px 18px 20px; }
.tr-ad[data-slot="side"] .tr-ad-title { font-size: 17px; }
.tr-ad[data-slot="side"] .tr-ad-text { font-size: 13.5px; }
@media (max-width: 1023px) { .tr-ad[data-slot="side"] { display: none; } }

/* ---------- 띠 (foot): 바닥글 바로 위의 한 줄 ---------- */
.tr-ad[data-slot="foot"] { margin: 0; }
.tr-ad-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px max(20px, calc((100% - 1200px) / 2)); background: #0A1420; color: #E8EDF2;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.tr-ad-strip .tr-ad-label { color: #8B97A4; }
.tr-ad-mark { font-size: 14px; letter-spacing: .12em; color: #fff; }
.tr-ad-strip-text { font-size: 14px; color: #B9C3CE; word-break: keep-all; }
.tr-ad-strip-go { margin-left: auto; font-size: 14px; font-weight: 700; color: #F7A823; white-space: nowrap; }
.tr-ad-strip:hover .tr-ad-strip-go, .tr-ad-strip:focus-visible .tr-ad-strip-go { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 640px) {
  .tr-ad { margin: 28px 0; }
  .tr-ad-card { grid-template-columns: 1fr; }
  .tr-ad-media { min-height: 0; aspect-ratio: 16 / 9; }
  .tr-ad-card.is-cover .tr-ad-media { aspect-ratio: auto; padding: 16px 0; }
  .tr-ad-card.is-cover .tr-ad-media img { width: 92px; }
  .tr-ad-body { padding: 16px 16px 18px; }
  .tr-ad-title { font-size: 17px; }
  .tr-ad-go { align-self: stretch; text-align: center; padding: 11px 16px; }
  .tr-ad-strip { gap: 6px 10px; padding: 12px 16px; }
  .tr-ad-strip-go { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tr-ad-card { transition: none; } .tr-ad-card:hover { transform: none; } }
@media print { .tr-ad { display: none; } }
