/* ── Parley, More Herself's skin ─────────────────────────────────────────────────────────
   Structure copied from brands/roster/public/app.css unchanged; only the design tokens are
   re-pointed at this brand's. Roster is not touched. If Parley's markup changes there, diff
   this file against it rather than rewriting.                                              */

.parley, .parley * {
  --body: var(--sans);
  --line-2: #d8d2c6;
  --panel-2: #efeae0;
  --accent-2: #8f4550;
}

/* The takeover hides the page behind it outright — a chat competing with a landing page
   for attention loses. These are THIS brand's wrappers, not roster's. */
body.parley-open { overflow: hidden; }
body.parley-open > header, body.parley-open > .wrap,
body.parley-open > main, body.parley-open > footer,
body.parley-open > div:not(.parley) { visibility: hidden; }
.parley {
  position: fixed; inset: 0; z-index: 90; display: none;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
}
.parley.is-open { display: grid; }
.parley__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.parley__badge {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--oxblood); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 12px; flex: none;
}
.parley__label {
  font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel);
}
.parley__dot { width: 6px; height: 6px; border-radius: 50%; background: #5c6f58; }
.parley__spacer { flex: 1; }
.parley__close {
  font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel); background: transparent; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.parley__close:hover { color: var(--ink); border-color: var(--oxblood); }
.parley__log {
  overflow-y: auto; padding: 20px 18px 8px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.parley__msg {
  max-width: 82%; padding: 11px 14px; border-radius: 14px;
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.parley__msg--them { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.parley__msg--me {
  align-self: flex-end; color: #fff;
  background: linear-gradient(95deg, color-mix(in srgb, var(--accent-2) 70%, #000), color-mix(in srgb, var(--oxblood) 70%, #000));
}
.parley__msg--sys {
  align-self: center; max-width: 100%; background: transparent; border: 0;
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; color: var(--steel);
  display: flex; align-items: center; gap: 10px;
}
.parley__retry {
  font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line-2); color: var(--steel);
  border-radius: 999px; padding: 4px 10px; cursor: pointer;
}
.parley__retry:hover { border-color: var(--oxblood); color: var(--ink); }
.parley__typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.parley__typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--steel);
  animation: parley-blink 1.3s infinite ease-in-out;
}
.parley__typing i:nth-child(2) { animation-delay: .18s; }
.parley__typing i:nth-child(3) { animation-delay: .36s; }
@keyframes parley-blink { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .parley__typing i { animation: none; opacity: .5; } }
.parley__composer {
  display: flex; gap: 9px; padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  max-width: 760px; width: 100%; margin: 0 auto;
}
.parley__input {
  flex: 1; padding: 13px 15px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--ink);
  font-family: var(--body); font-size: 15px; -webkit-appearance: none; appearance: none;
}
.parley__input::-webkit-search-cancel-button { display: none; }
.parley__input:focus { outline: 2px solid var(--oxblood); outline-offset: -1px; }
.parley__input:disabled { opacity: .55; }
.parley__send {
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--oxblood); color: #fff;
  font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.parley__send:disabled { opacity: .5; cursor: default; }

.parley__fineprint {
  margin: 0; padding: 0 18px 14px; text-align: center;
  font-family: var(--sans); font-size: 11px; line-height: 1.5; color: var(--stone);
}
@media (max-width: 650px) { .parley__fineprint { font-size: 10px; padding-bottom: 10px; } }

/* ── link card ──────────────────────────────────────────────────────────────────────────────
   Hard to ignore, on purpose. A bare /articles/… in a message reads like a file path and is a
   tiny tap target; this is the picture, the question and the reading time. */
.parley__card {
  /* flex: none is load-bearing. The log is a flex column, and without it this card shrinks to
     about a third of its content height and then overflow:hidden crops the picture and the
     whole title away — you get a grey rectangle and no clue why. Text bubbles never showed the
     bug because their height IS their content. */
  display: block; flex: none; text-decoration: none; color: inherit;
  max-width: 78%; margin: 4px 0 10px; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #fffdf8;
  transition: border-color .15s ease, transform .15s ease;
}
.parley__card:hover { border-color: var(--stone); transform: translateY(-1px); }
.parley__card-img {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #e8e3d8 center/cover no-repeat;
}
.parley__card-body { padding: 13px 16px 15px; }
.parley__card-kicker {
  display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--oxblood); font-weight: 700; margin-bottom: 5px;
}
.parley__card-title {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: 17px; line-height: 1.28; color: var(--ink);
}
.parley__card-meta {
  display: block; margin-top: 7px; font-family: var(--sans);
  font-size: 12px; color: var(--steel);
}
@media (max-width: 650px) {
  .parley__card { max-width: 90%; }
  .parley__card-title { font-size: 16px; }
}
