/* ============================================================
   "What's Your Difficult Conversation Style?" (conversation-style.html)
   Quiet, editorial layout on the shared paper page. Colors come only
   from the site tokens (global.css / theme-botanical.css), so light and
   dark follow; paper.css adds the sheet in light mode.
   ============================================================ */
.cq { --cq-measure: 36rem; --cq-serif: "Playfair Display", Georgia, serif; position: relative; }
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq [hidden] { display: none !important; }

/* ---------- header: subtle brand ---------- */
.cq-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 6px; }
.cq-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none;
  font-family: var(--cq-serif); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.cq-brand img { height: 30px; width: auto; display: block; }
[data-theme="light"] .cq-brand .brand-dark, [data-theme="dark"] .cq-brand .brand-light { display: none; }
.cq-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.cq-screen { max-width: var(--cq-measure); margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0 12px; }
.cq-screen.cq-enter { animation: cqIn .32s ease both; }
@keyframes cqIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cq-screen.cq-enter { animation: none; } }

/* ---------- intro ---------- */
.cq-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cq-title { margin: 0; font-family: var(--cq-serif); font-weight: 600; font-size: clamp(34px, 7.4vw, 50px); line-height: 1.08; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.cq-lede { margin: 18px 0 0; font-family: var(--cq-serif); font-style: italic; font-weight: 500; font-size: clamp(19px, 3.6vw, 22px); line-height: 1.4; color: var(--text-2); }
.cq-body { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 34rem; }
.cq-facts { list-style: none; margin: 26px 0 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2); }
.cq-facts li { display: inline-flex; align-items: center; }
.cq-facts li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin: 0 12px; opacity: .7; }
@media (max-width: 520px) {
  .cq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .cq-facts li::before, .cq-facts li + li::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 9px 0 0; opacity: .8; }
}

.cq-primary { appearance: none; margin-top: 30px; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--bg); font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 10px 24px -14px rgba(28, 21, 12, .55); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; text-decoration: none; }
.cq-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(28, 21, 12, .6); }
.cq-primary:disabled { opacity: .5; cursor: default; transform: none; }
.cq-primary:focus-visible, .cq-link:focus-visible, .cq-ghost:focus-visible, .cq-answer:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cq-note { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }

/* ---------- question ---------- */
.cq-progress { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 4vh, 36px); }
.cq-count { margin: 0; flex: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cq-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.cq-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.cq-qtext { margin: 0 0 24px; font-family: var(--cq-serif); font-weight: 600; font-size: clamp(23px, 4.6vw, 29px); line-height: 1.28; letter-spacing: -0.01em; color: var(--text); text-wrap: pretty; }
.cq-qtext:focus { outline: none; }
.cq-answers { display: flex; flex-direction: column; gap: 10px; }
.cq-answer { appearance: none; position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; min-height: 58px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.45;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.cq-answer:hover { border-color: var(--accent-line, var(--line)); transform: translateY(-1px); box-shadow: 0 6px 16px -12px rgba(28, 21, 12, .5); }
.cq-answer .cq-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.cq-answer[aria-pressed="true"] { border-color: var(--text); background: var(--bg-panel-2, var(--bg-panel)); }
.cq-answer[aria-pressed="true"] .cq-mark { border-color: var(--text); background: var(--text);
  box-shadow: inset 0 0 0 4px var(--bg-panel-2, var(--bg-panel)); }
.cq-answers.cq-locked .cq-answer { pointer-events: none; }
.cq-qnav { margin-top: 22px; min-height: 24px; }
.cq-link { appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--text-3); }
.cq-link:hover { color: var(--text); }

/* ---------- result ---------- */
.cq-result .cq-eyebrow { margin-bottom: 10px; }
.cq-rname { margin: 0; font-family: var(--cq-serif); font-weight: 600; font-size: clamp(38px, 8.4vw, 56px); line-height: 1.04; letter-spacing: -0.02em; color: var(--text); }
.cq-rtag { margin: 16px 0 0; font-family: var(--cq-serif); font-style: italic; font-weight: 500; font-size: clamp(20px, 3.8vw, 24px); line-height: 1.4; color: var(--text-2); }
.cq-rsec { margin-top: 34px; }
.cq-rsec + .cq-rsec { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.cq-rsec h3 { margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cq-rsec p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--text); }
.cq-rsec.cq-example p { font-family: var(--cq-serif); font-style: italic; font-size: 18.5px; color: var(--text-2); }
.cq-try { margin-top: 30px; padding: 20px 22px; border-radius: 14px; background: var(--bg-panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); }
.cq-try h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cq-try p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--text); }
.cq-second { margin-top: 26px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.cq-second strong { color: var(--text); font-weight: 600; }

.cq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cq-ghost { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  transition: background-color .15s ease, border-color .15s ease; }
.cq-ghost:hover { background: var(--bg-panel); border-color: var(--text-3); }
.cq-ghost svg { width: 16px; height: 16px; }

.cq-cta { margin-top: 44px; padding: clamp(24px, 4vw, 34px); border-radius: 18px; background: var(--bg-panel); border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px -30px rgba(28, 21, 12, .55); }
.cq-cta h2 { margin: 0; font-family: var(--cq-serif); font-weight: 600; font-size: clamp(23px, 4.4vw, 28px); line-height: 1.22; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.cq-cta p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.cq-cta .cq-start-here { margin-top: 20px; font-size: 15px; color: var(--text-2); }
.cq-alt-link { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cq-alt-link:hover { text-decoration-thickness: 2px; }
.cq-alt-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.cq-cta .cq-primary { margin-top: 22px; }

/* ---------- footer ---------- */
.cq-foot { max-width: var(--cq-measure); margin: clamp(40px, 7vh, 72px) auto 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.cq-disclaimer { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.cq-sign { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
.cq-sign a { color: var(--text-2); }

.cq-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; transition: opacity .2s ease, transform .2s ease; z-index: 50; }
.cq-toast.cq-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .cq-screen { padding-top: 22px; }
  .cq-primary { width: 100%; padding: 0 18px; text-align: center; line-height: 1.25; }
  .cq-answer { padding: 15px 16px; font-size: 15.5px; }
  .cq-actions .cq-ghost { flex: 1 1 auto; justify-content: center; }
}
