/* Styles for the contacts screens (keep shared components in components.css). */

/* Contact page: history in the wide column, the person beside it. */
.notice + .contact { margin-top: 16px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 20px; align-items: start; }
.contact .cside .card:first-child { margin-top: 0; }
@media (max-width: 960px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
}

/* The side column is narrow: each datum is a label over its value. */
.cside .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cside .kv dt { margin-top: 10px; font-size: .8rem; }
.cside .kv dt:first-child { margin-top: 0; }

/* Consent rows. */
.consent + .consent { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.consent .top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.consent p { margin: 4px 0 10px; color: var(--ink-2); font-size: .9rem; }

/* History: a campaign is one line with its path, the links clicked, and the raw events folded away. */
.contact .feed .item { align-items: start; }
.feed .what a { color: var(--ink); }
.feed .path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 5px; }
.feed .hop { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.feed .hop svg { color: var(--ink-3); flex: none; }
.feed .links { list-style: none; margin: 10px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--line); display: grid; gap: 3px; font-size: .88rem; }
.feed .links li { overflow-wrap: anywhere; }
.feed .links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.feed .links a:hover { color: var(--ink); }
.feed .tech { margin-top: 8px; }
.feed .tech .links { margin-top: 6px; }
.feed .tech pre { max-height: 14rem; overflow: auto; padding: 8px 10px; background: var(--surface-2); border-radius: var(--radius-sm); font-family: var(--mono); }
.hmore { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.hmore:empty { display: none; }
@media (max-width: 700px) {
  .contact .feed .item { grid-template-columns: 34px minmax(0, 1fr); }
  .contact .feed .when { grid-column: 2; }
}

/* Lists card. */
.mylists { list-style: none; margin: 0; padding: 0; }
.mylists li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0 3px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.mylists li:first-child { border-top: 0; }
.mylists a { color: var(--ink); font-weight: 560; padding: 4px 0; }
.addlist { margin-top: 12px; }

/* Suppressions toolbar: search takes the slack, the origin picker keeps its own width. */
.suppbar select { width: auto; min-width: 12rem; }
.suppbar .search { flex: 1 1 12rem; }
/* Bounce diagnostics run to several lines; two are enough, the rest is in the tooltip. */
td .sub.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 34rem; }
@media (min-width: 701px) { td.addr { min-width: 15rem; } }

/* Custom fields panel. */
.fieldshead { margin-bottom: 12px; }
.fieldshead p { margin: 0; }
.ph { display: inline-flex; align-items: center; gap: 4px; }
