/* ToDO Board — Google AdSense 스타일 하단 배너 (얇은 가로형) */
:root {
  --todo-adsense-dock-height: 58px;
}

.guest-board-page:has(.todo-adsense-bottom-dock) {
  padding-bottom: calc(20px + var(--todo-adsense-dock-height));
}

body.todo-board-page:has(.todo-adsense-bottom-dock) #todoLiveGuestBoard {
  padding-bottom: calc(20px + var(--todo-adsense-dock-height));
}

body.todo-board-page .todo-adsense-bottom-dock {
  z-index: 700;
}

.todo-adsense-bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 6px 12px;
  border-top: 1px solid #dadce0;
  background: rgba(248, 249, 250, 0.97);
  box-shadow: 0 -2px 8px rgba(60, 64, 67, 0.08);
}

.todo-adsense-slot {
  width: min(728px, 100%);
  pointer-events: auto;
  user-select: none;
}

.todo-adsense-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.todo-adsense-thumb-image {
  overflow: hidden;
  background: #fff;
}

.todo-adsense-thumb-image img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
}

.todo-adsense-unit {
  position: relative;
  overflow: hidden;
  height: 44px;
  border: 1px solid #dadce0;
  border-radius: 2px;
  background: #fff;
  font-family: Arial, sans-serif;
  color: #202124;
}

.todo-adsense-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 1px 4px 2px;
  border-radius: 0 0 2px 0;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

.todo-adsense-body {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 6px 10px 6px 28px;
}

.todo-adsense-thumb {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  background: linear-gradient(135deg, #e8eaed 0%, #f8f9fa 45%, #dfe1e5 100%);
}

.todo-adsense-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.todo-adsense-site {
  color: #006621;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-adsense-headline {
  display: block;
  color: #1a0dab;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.todo-light-mode .todo-adsense-bottom-dock {
  border-top-color: #dadce0;
  background: rgba(255, 255, 255, 0.97);
}

body.todo-light-mode .todo-adsense-unit {
  border-color: #dadce0;
  background: #fff;
}

@media (max-width: 520px) {
  :root {
    --todo-adsense-dock-height: 54px;
  }

  .todo-adsense-bottom-dock {
    padding: 5px 8px;
  }

  .todo-adsense-unit {
    height: 40px;
  }

  .todo-adsense-site {
    display: none;
  }

  .todo-adsense-headline {
    font-size: 12px;
  }
}
