/* Ask Solomon: launcher, panel, home band and contact cards (solomon-portico). Classes only, no inline styles.
   Brand v3 tokens come from site.css (--ds-*). Ink panel, Parchment text, Gold action. */

.sol { position: fixed; right: 16px; bottom: 16px; z-index: 92; font-family: var(--ds-font-body); }
.sol__launch {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 44px; padding: 10px 21px; border-radius: 999px; border: 1px solid var(--ds-gold);
  background: var(--ds-gold); color: var(--ds-ink); cursor: pointer; font: 600 16px/1.2 var(--ds-font-body);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease, background 0.2s ease;
}
.sol__launch:hover { background: var(--ds-parchment); border-color: var(--ds-parchment); transform: translateY(-2px); }
.sol__launch:focus-visible, .sol__tab:focus-visible, .sol__close:focus-visible, .sol__chip:focus-visible, .solcard:focus-visible { outline: 3px solid var(--ds-parchment); outline-offset: 2px; }
.sol__status { font: 500 12px/1.2 var(--ds-font-mono); letter-spacing: 0.02em; }
.sol__panel {
  position: absolute; right: 0; bottom: 64px; width: 380px; max-height: min(640px, calc(100vh - 100px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ds-ink-2); color: var(--ds-parchment);
  border: 1px solid color-mix(in srgb, var(--ds-stone) 35%, transparent); border-radius: var(--s3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.sol__panel[hidden], .sol__pane[hidden], .sol__chips[hidden] { display: none; }
.sol__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s2); padding: var(--s3) var(--s3) var(--s2); border-bottom: 1px solid color-mix(in srgb, var(--ds-stone) 20%, transparent); }
.sol__title { font: 600 21px/1.2 var(--ds-font-head); margin: 0; }
.sol__sub { margin: 4px 0 0; font-size: 14px; color: var(--ds-stone); }
.sol__close { width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; background: transparent; color: var(--ds-parchment); font-size: 28px; line-height: 1; cursor: pointer; border-radius: 50%; }
.sol__close:hover { color: var(--ds-gold); }
.sol__tabs { display: flex; gap: 4px; padding: var(--s1) var(--s3) 0; border-bottom: 1px solid color-mix(in srgb, var(--ds-stone) 20%, transparent); }
.sol__tab { min-height: 44px; padding: 8px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ds-stone); font: 500 15px/1 var(--ds-font-body); cursor: pointer; }
.sol__tab[aria-selected="true"] { color: var(--ds-parchment); border-bottom-color: var(--ds-gold); }
.sol__pane { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); min-height: 0; overflow-y: auto; font-size: 15px; line-height: 1.5; }
.sol__pane .btn { align-self: flex-start; }
.sol__h { font: 600 18px/1.3 var(--ds-font-head); margin: 0; }
.sol__log { display: flex; flex-direction: column; gap: var(--s2); flex: 1 1 auto; min-height: 140px; max-height: 320px; overflow-y: auto; }
.sol__msg { margin: 0; padding: 10px 14px; border-radius: 16px; max-width: 90%; white-space: pre-wrap; overflow-wrap: anywhere; }
.sol__msg--bot { background: color-mix(in srgb, var(--ds-stone) 16%, transparent); align-self: flex-start; }
.sol__msg--you { background: var(--ds-gold); color: var(--ds-ink); align-self: flex-end; }
.sol__msg a { color: inherit; text-decoration: underline; }
.sol__msg--pending { opacity: 0.7; }
.sol__chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.sol__chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-line); background: transparent; color: var(--ds-parchment); font: 500 14px/1.2 var(--ds-font-body); cursor: pointer; text-align: left; }
.sol__chip:hover { border-color: var(--ds-gold); }
.sol__note { margin: 0; font-size: 13px; color: var(--ds-stone); }
.sol__note a { color: var(--ds-parchment); }
.sol__form { display: flex; gap: var(--s1); align-items: center; }
.sol__input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--field-line); background: var(--ds-ink); color: var(--ds-parchment); font: 400 16px/1.2 var(--ds-font-body); }
.sol__input:focus-visible { outline: 3px solid var(--ds-gold); outline-offset: 1px; }
.sol__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* home band and contact page cards */
.solcards { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.solcard {
  display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; text-align: left; box-sizing: border-box;
  padding: var(--s3); border-radius: var(--s3); border: 1px solid var(--line); background: var(--ds-ink-2); color: var(--ds-parchment);
  font: 400 16px/1.45 var(--ds-font-body); text-decoration: none; cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease;
}
.solcard:hover { border-color: var(--ds-gold); transform: translateY(-2px); }
.solcard strong { font: 600 21px/1.2 var(--ds-font-head); color: var(--ds-gold); }
.solcard span { color: var(--ds-stone); }

@media (max-width: 640px) {
  .sol { right: 12px; bottom: 12px; }
  .sol__panel { position: fixed; left: 0; right: 0; bottom: 0; top: 0; width: auto; max-height: none; border-radius: 0; border: 0; }
  .sol__log { max-height: none; }
  .sol__pane { flex: 1 1 auto; }
  body:has(#dsConsent:not([hidden])) .sol__launch { margin-bottom: 178px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol__launch, .solcard { transition: none; }
  .sol__launch:hover, .solcard:hover { transform: none; }
}
