#ads_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Google Ad card ── */
.gad {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: box-shadow 0.15s;
  max-width: 600px;
}

.gad:hover { box-shadow: var(--shadow-sm); }

/* Header row: site info + Sponsored badge */
.gad__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gad__site {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gad__favicon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gad__brand {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.gad__url {
  display: block;
  font-size: 12px;
  color: #1a7f4b;
  line-height: 1.2;
}

.gad__sponsored {
  font-size: 11px;
  font-weight: 500;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

/* Headline — blue link style */
.gad__headline {
  font-size: 18px;
  font-weight: 400;
  color: #1a0dab;
  line-height: 1.3;
  margin: 4px 0 4px;
}

/* Description */
.gad__description {
  font-size: 13px;
  color: #4d5156;
  line-height: 1.5;
  margin: 0;
}

/* Expand section */
.gad__details {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.gad__summary {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.gad__summary::-webkit-details-marker { display: none; }

.gad__summary::before {
  content: "＋ ";
  font-size: 11px;
}

.gad__details[open] .gad__summary::before { content: "－ "; }

.gad__extra {
  margin-top: 10px;
}

.gad__extra-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.gad__extra-item {
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.gad__extra-item:last-child { border-bottom: none; }

/* Actions */
.gad__actions {
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}

.gad:hover .gad__actions { opacity: 1; }

.gad__edit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
}

.gad__edit:hover {
  background: var(--bg);
  color: var(--text);
}

/* Editing state (used by _edit.html.erb) */
.gad--editing {
  border-color: var(--border-focus);
}

.gad--editing .field {
  margin-bottom: 10px;
}
