/* ── Journeys (review build) ─────────────────────────────────────────────────
   Parchment design system: transparent cards, warm borders, glass on hover, no all-caps. */

.page-journeys .jr-review {
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--border-radius-md, 10px);
  background: rgba(184, 134, 11, 0.06);
  color: #7a6530;
  font-size: 13px;
  line-height: 1.5;
}

.jr-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  color: #6b5a3e;
  margin: 0 0 14px;
}

.jr-crumbs { font-size: 13px; margin: 0 0 16px; color: rgba(61, 50, 37, 0.7); }
.jr-crumbs a { color: #8b7355; text-decoration: none; }
.jr-crumbs a:hover { color: #6b5a3e; text-decoration: underline; }

/* ── Library ── */
.jr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.jr-card {
  display: block;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid rgba(160, 140, 110, 0.2);
  border-radius: var(--border-radius-lg, 14px);
  color: var(--color-text-primary, #1a1d23);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font: inherit;
}
.jr-card:hover {
  background: rgba(255, 250, 240, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(160, 140, 110, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(120, 100, 70, 0.08);
}
.jr-card-title { font-family: var(--font-serif, Georgia, serif); font-size: 17px; font-weight: 600; margin: 0 0 4px; color: #3d3225; }
.jr-card-meta { font-size: 13px; color: var(--color-text-secondary, #5e6470); }
.jr-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  color: #8b6914;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ── Library cards ── */
.jr-group-title { font-family: var(--font-serif, Georgia, serif); font-size: 15px; font-weight: 600; color: #8b7355; margin: 26px 0 10px; }
.jr-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.jr-card { display: flex; flex-direction: column; padding: 18px 20px 16px; background: rgba(255, 250, 240, 0.28); }
.jr-card-top { display: flex; gap: 14px; align-items: center; }
.jr-card-face {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(184, 134, 11, 0.55); box-shadow: 0 2px 10px rgba(120, 100, 70, 0.16);
}
.jr-card-mono { display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-serif, Georgia, serif); font-weight: 700; }
.jr-card-text { min-width: 0; }
.jr-card-text .jr-badge { margin-bottom: 5px; }
.jr-card-with { font-size: 12.5px; color: #8b7355; margin-top: 2px; font-style: italic; font-family: var(--font-serif, Georgia, serif); }
.jr-card-promise { font-size: 14px; line-height: 1.55; color: #3d3225; margin: 14px 0 14px; flex: 1 1 auto; }
.jr-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--color-text-secondary, #5e6470); border-top: 1px solid rgba(160, 140, 110, 0.18); padding-top: 10px; }
.jr-card-go { color: #8b6914; font-weight: 600; }
.jr-card-lock { color: #8b7355; font-weight: 600; white-space: nowrap; }
.jr-card-go { white-space: nowrap; }
.jr-card-locked { cursor: default; opacity: 0.62; filter: grayscale(0.5); }
.jr-card-locked:hover { transform: none; box-shadow: none; background: rgba(255, 250, 240, 0.28); }

/* ── Journey spine ── */
.jr-spine { list-style: none; margin: 0; padding: 0 0 0 6px; position: relative; }
.jr-spine::before {
  content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px;
  width: 2px; background: rgba(160, 140, 110, 0.3);
}
.jr-bead-row { position: relative; margin: 0 0 10px; }
.jr-bead-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 44px; padding: 10px 14px 10px 4px;
  background: transparent; border: 1px solid transparent; border-radius: var(--border-radius-md, 10px);
  font: inherit; text-align: left; cursor: pointer; transition: all 0.25s ease;
}
.jr-bead-btn:hover { background: rgba(255, 250, 240, 0.45); border-color: rgba(160, 140, 110, 0.35); }
.jr-bead {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #b8860b; background: #f5ecd9; color: #8b6914;
  font-family: var(--font-serif, Georgia, serif); font-weight: 700; font-size: 14px;
}
.jr-bead.done { background: #b8860b; color: #fff; }
.jr-bead-title { font-family: var(--font-serif, Georgia, serif); font-size: 16px; color: #3d3225; }
.jr-bead-sub { font-size: 12px; color: var(--color-text-tertiary, #98a0ad); }

/* ── Frame ── */
.jr-frame { max-width: 680px; }
.jr-frame p { font-size: 15px; line-height: 1.7; color: var(--color-text-primary, #1a1d23); margin: 0 0 14px; }
.jr-frame-label { font-family: var(--font-serif, Georgia, serif); font-size: 15px; font-weight: 700; color: #6b5a3e; margin: 22px 0 8px; }
.jr-frame blockquote {
  margin: 8px 0 18px; padding: 4px 0 4px 18px;
  border-left: 3px solid #b8860b;
  font-family: var(--font-serif, Georgia, serif); font-style: italic; font-size: 16px; line-height: 1.6; color: #3d3225;
}
.jr-frame blockquote cite { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--color-text-secondary, #5e6470); }

/* ── Buttons ── */
.jr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.jr-btn {
  min-height: 44px; padding: 10px 18px; border-radius: var(--border-radius-md, 10px);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.25s ease;
  border: 1px solid rgba(160, 140, 110, 0.35); background: transparent; color: #6b5a3e;
}
.jr-btn:hover { background: rgba(255, 250, 240, 0.6); }
a.jr-btn { display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
a.jr-btn:hover { text-decoration: none; }
.jr-btn-primary { background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%); border-color: transparent; color: #fff; }
.jr-btn-primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, #b8860b 0%, #8b6914 100%); }
.jr-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Reflect ── */
.jr-chat { max-width: 680px; display: flex; flex-direction: column; gap: 14px; margin: 0 0 16px; }
.jr-msg { max-width: 88%; line-height: 1.6; font-size: 15px; }
.jr-msg-ai {
  align-self: flex-start;
  font-family: var(--font-serif, Georgia, serif); color: #3d3225;
  padding: 2px 0 2px 14px; border-left: 2px solid rgba(184, 134, 11, 0.5);
}
.jr-msg-you {
  align-self: flex-end;
  padding: 10px 14px; border-radius: 14px 14px 4px 14px;
  background: rgba(255, 250, 240, 0.6); border: 1px solid rgba(200, 190, 170, 0.4);
  color: var(--color-text-primary, #1a1d23); white-space: pre-wrap;
}
.jr-typing { align-self: flex-start; color: var(--color-text-tertiary, #98a0ad); font-style: italic; font-size: 14px; }
.jr-compose { max-width: 680px; }
.jr-compose textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; resize: vertical; box-sizing: border-box;
  font: inherit; font-size: 15px; line-height: 1.5;
  background: rgba(255, 250, 240, 0.6); border: 1px solid rgba(200, 190, 170, 0.4); border-radius: var(--border-radius-md, 10px);
}
.jr-compose textarea:focus { outline: none; border-color: #667eea; }
.jr-meta { font-size: 12px; color: var(--color-text-tertiary, #98a0ad); margin-top: 8px; }
.jr-error { color: #a33; font-size: 14px; margin: 10px 0 0; }

/* ── Takeaway card ── */
.jr-takeaway {
  max-width: 680px; margin: 6px 0 0; padding: 20px 22px;
  border: 1px solid rgba(184, 134, 11, 0.3); border-radius: var(--border-radius-lg, 14px);
  background: rgba(255, 250, 240, 0.35);
}
.jr-row { padding: 12px 0; border-bottom: 1px solid rgba(160, 140, 110, 0.12); }
.jr-row:last-child { border-bottom: none; }
.jr-row-label { font-size: 12px; font-weight: 700; color: #8b7355; margin: 0 0 4px; letter-spacing: 0.2px; }
.jr-row-value { font-size: 15px; line-height: 1.6; color: var(--color-text-primary, #1a1d23); }
.jr-row-idea .jr-row-value { font-family: var(--font-serif, Georgia, serif); font-style: italic; color: #3d3225; }

.jr-micro { max-width: 680px; margin: 22px 0 0; }
.jr-micro-item { margin: 0 0 16px; }
.jr-micro-q { font-size: 14px; margin: 0 0 8px; color: var(--color-text-primary, #1a1d23); }
.jr-scale { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.jr-scale button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font: inherit; font-weight: 600;
  border: 1px solid rgba(160, 140, 110, 0.35); background: transparent; color: #6b5a3e; transition: all 0.2s ease;
}
.jr-scale button.on { background: #b8860b; border-color: #b8860b; color: #fff; }
.jr-scale-ends { display: flex; justify-content: space-between; width: 244px; margin-top: 4px; font-size: 11.5px; color: var(--color-text-tertiary, #98a0ad); }

/* ── One-page pass flow ── */
.jr-narrow { max-width: 700px; margin: 0 auto; }
.jr-narrow .jr-step, .jr-narrow .jr-frame, .jr-narrow .jr-chat, .jr-narrow .jr-compose, .jr-narrow .jr-takeaway, .jr-narrow .jr-micro { max-width: none; }
.jr-kicker { font-size: 12.5px; color: #8b7355; margin: 0 0 2px; letter-spacing: 0.2px; }
.jr-pass-title { font-family: var(--font-serif, Georgia, serif); font-size: 26px; font-weight: 600; color: #3d3225; margin: 0 0 18px; line-height: 1.25; }
.jr-lead { font-size: 14px; color: var(--color-text-secondary, #5e6470); margin: -6px 0 18px; }
.jr-step { max-width: 680px; margin: 0 0 8px; padding: 22px 0 6px; border-top: 1px solid rgba(160, 140, 110, 0.22); scroll-margin-top: 16px; }
#jrFlow > .jr-step:first-child { border-top: none; padding-top: 4px; }
.jr-step-title { font-family: var(--font-serif, Georgia, serif); font-size: 17px; font-weight: 600; color: #6b5a3e; margin: 0 0 6px; }
.jr-step-lead { font-size: 14px; color: var(--color-text-secondary, #5e6470); margin: 0 0 16px; }
.jr-collapsed { padding: 10px 0; }
.jr-step-done { font-size: 13px; color: var(--color-text-tertiary, #98a0ad); margin: 0; }
.jr-btn-quiet { border-color: transparent; color: #8b7355; font-weight: 500; }
.jr-bring {
  margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid #b8860b;
  background: rgba(184, 134, 11, 0.06); border-radius: 0 10px 10px 0;
  font-size: 14px; line-height: 1.6; color: #3d3225;
}
.jr-hint { font-size: 12.5px; line-height: 1.55; color: var(--color-text-secondary, #5e6470); margin: 8px 0 0; }
.jr-nudge {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(184, 134, 11, 0.3); background: rgba(184, 134, 11, 0.07);
  font-size: 13.5px; line-height: 1.55; color: #6b5a3e;
}
.jr-was { font-size: 12px; color: #8b7355; margin: 6px 0 0; min-height: 0; }
.jr-was:empty { display: none; }

/* ── Card with portraits ── */
.jr-takeaway-head { font-size: 12px; color: #8b7355; margin: 0 0 4px; }
.jr-idea { display: flex; gap: 16px; align-items: flex-start; }
.jr-portraits { display: flex; gap: 10px; flex: 0 0 auto; }
.jr-portraits:empty { display: none; }
.jr-portrait { margin: 0; width: 72px; text-align: center; }
.jr-portrait img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(184, 134, 11, 0.55); box-shadow: 0 2px 10px rgba(120, 100, 70, 0.18);
}
.jr-portrait figcaption { font-size: 11px; line-height: 1.3; color: #8b7355; margin-top: 5px; }
.jr-row-idea .jr-row-value { font-family: var(--font-serif, Georgia, serif); font-style: italic; color: #3d3225; font-size: 16px; }

/* ── Journey links (/j/<token>): a visitor without an account sees only the journey ── */
.jr-link-mode .nav-strip, .jr-link-mode .back-link { display: none; }
.jr-link-note { max-width: 680px; margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: #6b5a3e; }

@media (max-width: 640px) {
  .jr-msg { max-width: 100%; }
  .jr-takeaway { padding: 16px; }
  .jr-grid { grid-template-columns: 1fr; }
  .jr-card-face { width: 56px; height: 56px; }
  .jr-pass-title { font-size: 22px; }
  .jr-idea { flex-direction: column; gap: 10px; }
  .jr-portrait, .jr-portrait img { width: 60px; }
  .jr-portrait img { height: 60px; }
  .jr-scale button { width: 46px; height: 46px; }
  .jr-scale-ends { width: 254px; }
}

/* ── Tiers, meter, sign-up gate and cap wall (migration 016) ── */
.jr-meter { font-size: 12.5px; color: #8b7355; margin: -8px 0 18px; }
.jr-card-until { color: #8b7355; font-size: 12px; white-space: nowrap; }
.jr-gate, .jr-wall {
  max-width: 680px; margin: 18px 0 0; padding: 14px 18px;
  border: 1px solid rgba(184, 134, 11, 0.3); border-radius: var(--border-radius-md, 10px);
  background: rgba(184, 134, 11, 0.06);
  font-size: 14px; line-height: 1.6; color: #3d3225;
}
.jr-gate p, .jr-wall p { margin: 0 0 8px; }
.jr-gate p:last-child, .jr-wall p:last-child { margin-bottom: 0; }
.jr-gate .jr-actions { margin-top: 12px; }
.jr-wall a, .jr-saved-note a { color: #8b7355; }
.jr-wall a:hover, .jr-saved-note a:hover { color: #6b5a3e; }
.jr-wall-upsell { padding-top: 8px; border-top: 1px solid rgba(160, 140, 110, 0.12); }
.jr-saved-note { max-width: 680px; margin: 10px 0 0; font-size: 13px; color: #8b7355; }

/* ── Library views: tabs, field chips, compact "More topics" list ── */
.jr-tabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid rgba(160, 140, 110, 0.22); }
.jr-tab {
  font: inherit; font-size: 14.5px; padding: 9px 14px; min-height: 44px; margin-bottom: -1px; cursor: pointer;
  background: transparent; color: #8b7355; border: 1px solid transparent; border-radius: 10px 10px 0 0;
  transition: all 0.25s ease;
}
.jr-tab:hover { color: #6b5a3e; background: rgba(255, 250, 240, 0.35); }
.jr-tab.on {
  color: #3d3225; font-weight: 600; background: rgba(255, 250, 240, 0.45);
  border-color: rgba(160, 140, 110, 0.28); border-bottom-color: transparent;
}
.jr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.jr-chip {
  font: inherit; font-size: 13px; padding: 7px 13px; min-height: 36px; cursor: pointer; border-radius: 20px;
  background: transparent; color: #6b5a3e; border: 1px solid rgba(160, 140, 110, 0.35); transition: all 0.25s ease;
}
.jr-chip:hover { background: rgba(255, 250, 240, 0.5); border-color: rgba(184, 134, 11, 0.45); }
.jr-chip.on { background: rgba(184, 134, 11, 0.14); border-color: rgba(184, 134, 11, 0.55); color: #6b4f0e; font-weight: 600; }
.jr-note { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary, #5e6470); margin: 4px 0 10px; }
.jr-nudge {
  margin: 18px 0 0; padding: 12px 14px; font-size: 14px; color: #6b5a3e; line-height: 1.5;
  border: 1px dashed rgba(184, 134, 11, 0.4); border-radius: var(--border-radius-md, 10px); background: rgba(184, 134, 11, 0.05);
}
.jr-linkbtn {
  font: inherit; font-weight: 600; color: #8b6914; background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.jr-linkbtn:hover { color: #6b4f0e; }
.jr-more { margin-top: 8px; }
.jr-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin: 0 0 12px; border-radius: var(--border-radius-md, 10px);
  background: rgba(184, 134, 11, 0.07); border: 1px solid rgba(184, 134, 11, 0.28);
}
.jr-upsell p { margin: 0; font-size: 14px; color: #6b5a3e; }
.jr-upsell .jr-btn { min-height: 40px; padding: 8px 16px; }
.jr-more-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(160, 140, 110, 0.18); }
.jr-more-item[hidden] { display: none; }
.jr-more-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 4px; border-bottom: 1px solid rgba(160, 140, 110, 0.14); }
.jr-more-lock { font-size: 13px; opacity: 0.6; margin-top: 2px; }
.jr-more-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jr-more-title { font-family: var(--font-serif, Georgia, serif); font-size: 15px; font-weight: 600; color: #3d3225; }
.jr-more-promise { font-size: 13px; color: var(--color-text-secondary, #5e6470); line-height: 1.45; }
.jr-more-toggle {
  font: inherit; font-size: 13.5px; font-weight: 600; color: #8b6914; background: transparent; cursor: pointer;
  border: 1px solid rgba(184, 134, 11, 0.35); border-radius: 20px; padding: 8px 16px; margin: 12px 0 0; min-height: 40px;
}
.jr-more-toggle:hover { background: rgba(255, 250, 240, 0.5); }
@media (max-width: 640px) {
  .jr-tabs { gap: 2px; }
  .jr-tab { flex: 1 1 0; padding: 9px 8px; font-size: 14px; }
  .jr-upsell { flex-direction: column; align-items: flex-start; }
}
.jr-lead-top { margin-top: 0; }

/* Field tags on topics that only have field versions */
.jr-more-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--color-text-tertiary, #98a0ad); }
.jr-tag {
  font: inherit; font-size: 12px; padding: 3px 10px; min-height: 28px; cursor: pointer; border-radius: 14px;
  background: transparent; color: #8b6914; border: 1px solid rgba(184, 134, 11, 0.4); transition: all 0.2s ease;
}
.jr-tag:hover { background: rgba(184, 134, 11, 0.1); }

/* Grayed "Available with Pro" cards and field-only topic cards */
.jr-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 12px; font-size: 12px; color: var(--color-text-tertiary, #98a0ad); }
.jr-card-fieldonly { cursor: default; }
.jr-card-fieldonly:hover { transform: none; }
.jr-card-locked .jr-tag { cursor: pointer; }
.jr-card-locked { opacity: 0.7; filter: grayscale(0.6); }
.jr-card-locked:hover { opacity: 0.85; }
.jr-more .jr-upsell { margin-bottom: 16px; }
