/* ─── Modern polish + Prises de position publiques ──────────────────── */

/* Photo: subtle ring + tighter radius */
.profile-head .photo {
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(0,0,0,0.18);
}
.app.dark .profile-head .photo { box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 12px 32px -16px rgba(0,0,0,0.6); }
.profile-head .photo .party-stripe { height: 5px; }

/* Inline select used by tabs */
.sel {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 7px 30px 7px 12px; font-size: 13px;
  font-family: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Timeline for prises de position */
.timeline {
  position: relative;
  padding: 6px 0 30px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 23px; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}
.stmt {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 18px; padding: 16px 4px 16px 0;
  position: relative;
  border-radius: 12px;
  transition: background-color .15s;
}
.stmt:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.stmt + .stmt { border-top: 1px solid var(--line); }

.stmt-glyph {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--ff-sans); font-weight: 700;
  font-size: 18px; letter-spacing: -.02em;
  box-shadow: 0 0 0 3px var(--bg);
  position: relative; z-index: 1;
}
.stmt-body { padding-top: 2px; min-width: 0; }
.stmt-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 12px; color: var(--ink-3);
  margin-bottom: 6px; align-items: center;
}
.stmt-date {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .02em;
  color: var(--ink-4); text-transform: uppercase;
}
.stmt-type {
  font-weight: 600; color: var(--ink-2);
}
.stmt-medium {
  font-style: italic; color: var(--ink-3);
}
.stmt-medium::before { content: "·"; margin-right: 8px; color: var(--ink-4); }
.stmt-title {
  font-family: var(--h-font); font-weight: var(--h-weight);
  font-size: 17px; line-height: 1.3;
  letter-spacing: var(--h-tracking);
  margin: 2px 0 6px; color: var(--ink);
  text-wrap: pretty;
}
.app.dir-editorial .stmt-title { font-style: var(--h-italic); }
.stmt-excerpt {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  margin: 0; text-wrap: pretty;
}
.app.dens-compact .stmt { padding: 12px 4px 12px 0; gap: 14px; }
.app.dens-compact .stmt-title { font-size: 15px; }
.app.dens-compact .stmt-excerpt { font-size: 13px; }
.app.dens-aere .stmt { padding: 22px 4px; gap: 22px; }
.app.dens-aere .stmt-title { font-size: 19px; }
.app.dens-aere .stmt-excerpt { font-size: 15px; }

/* Modern polish — refined card hover, subtle motion */
.card {
  transition: transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--line-2);
  box-shadow: 0 8px 32px -12px color-mix(in srgb, var(--ink) 12%, transparent);
}

/* Tab pill — modern shape, animated indicator */
.tab { position: relative; transition: color .15s; }
.tab.active { color: var(--ink); }
.tab .badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 9px; font-size: 11px; font-weight: 600;
  background: var(--surface-3); color: var(--ink-3);
  margin-left: 6px;
  font-family: var(--ff-mono);
}
.tab.active .badge { background: var(--ink); color: var(--surface); }

/* Section-h count */
.section-h .count {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--ink-3); font-weight: 400;
  margin-left: 10px;
}

/* List rows — slightly more breathing room, better dates */
.list-row {
  transition: background-color .12s;
}
.list-row:hover { background: var(--surface-2); }
.list-row .date {
  font-family: var(--ff-mono); font-size: 11px;
  text-transform: uppercase; color: var(--ink-4);
  letter-spacing: .04em;
}

/* Topbar refinement */
.topbar {
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

/* Button refinement */
.btn {
  border-radius: 10px;
  transition: transform .12s, background-color .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--line); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--surface);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }

/* H1 in profile — slightly more confident */
.profile-head h1 {
  text-wrap: balance;
}

/* Stats strip — modernize */
.stats-strip { border-radius: 14px; }
.stat-cell .val { font-feature-settings: "tnum" 1, "ss01" 1; }

/* Alignment summary card */
.align-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* Search input glow on focus */
.search-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}

@media (max-width: 760px) {
  .stmt { grid-template-columns: 36px 1fr; gap: 12px; }
  .stmt-glyph { width: 36px; height: 36px; font-size: 14px; }
  .timeline::before { left: 17px; }
}
