/* Mana Maths — "continue the journey" strip on every learning-objective page.
   Reuses the site palette tokens defined in styles.css (--bg, --surface,
   --surface-strong, --text, --muted, --line, --accent, --accent-deep,
   --accent-soft, --shadow) rather than redefining them here, since
   styles.css is always loaded on the same page before this file and this
   file must not duplicate or fork that palette (SITE/styles.css is owned by
   another builder). Visual language matches the approved search-proto.html
   sequence strip (thumbnail cards, grey "Statement (caret)" ribbon,
   Know/Do pills) using a native <details> disclosure instead of JS. */

.lo-journey-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.lo-journey-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}

.lo-journey-col.lo-journey-here {
  background: var(--surface-strong);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft) inset;
}

.lo-journey-col-h {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.lo-journey-here .lo-journey-col-h {
  color: var(--accent-deep);
}

.lo-journey-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.lo-journey-card {
  display: block;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 0 0 10px;
  color: var(--text);
  text-decoration: none;
}

.lo-journey-card:last-child {
  margin-bottom: 0;
}

.lo-journey-card:hover {
  border-color: var(--accent);
}

.lo-journey-thumb {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 8px;
}

.lo-journey-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.lo-journey-card h3,
.lo-journey-here-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
}

.lo-journey-here-card {
  background: transparent;
}

.lo-journey-stmt {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.lo-journey-stmt:first-of-type {
  margin-top: 12px;
}

.kp-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 6px 4px 0;
  vertical-align: middle;
}

.kp-pill.kp-know {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.kp-pill.kp-do {
  background: #eef1ec;
  color: #5b6a5c;
}

.lo-journey-stmt-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Grey "Statement (caret)" disclosure ribbon — native <details>, no JS. */
.lo-ribbon {
  margin-top: 8px;
}

.lo-ribbon summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  background: #eef1ec;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 11px;
  min-height: 44px;
  box-sizing: border-box;
}

.lo-ribbon summary::-webkit-details-marker {
  display: none;
}

.lo-ribbon .lo-ribbon-car {
  flex: none;
  opacity: 0.7;
  transition: transform 0.15s;
}

.lo-ribbon[open] .lo-ribbon-car {
  transform: rotate(90deg);
}

.lo-ribbon-body {
  padding: 8px 11px 2px;
  font-size: 0.78rem;
  color: var(--muted);
}

.lo-ribbon-body .lo-ribbon-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  word-break: break-all;
}

.lo-journey-ao {
  margin-top: 14px;
}

.lo-journey-ao-line {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.lo-journey-ao-line strong {
  color: var(--text);
}

.lo-journey-ao .chip-list {
  margin-bottom: 12px;
}

.lo-journey-ao .chip-list:last-child {
  margin-bottom: 0;
}

.lo-journey-ao .chip-list a {
  color: inherit;
  text-decoration: none;
}

.lo-journey-explore {
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.lo-journey-explore a {
  font-weight: 700;
}

.lo-journey-honest {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 820px) {
  .lo-journey-cols {
    grid-template-columns: 1fr;
  }
}
