/* ---------- The spine: one journey picture for every question (js/spine.js) ---------- */
.sp-band { position: relative; z-index: 2; margin-top: -34px; }
.sp { display: grid; gap: 22px; padding: 30px 34px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(20, 40, 59, 0.04), 0 24px 60px rgba(20, 40, 59, 0.1); }
.sp[hidden] { display: none; }
.sp-load { margin: 0; color: var(--sub); font-size: 0.92rem; }

.sp-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; }
.sp-where { display: grid; gap: 6px; min-width: 0; }
.sp-count { margin: 0; font: 600 0.9rem/1.3 var(--sans); color: var(--pine); }
.sp-title { margin: 0; font: 600 clamp(1.7rem, 2.8vw, 2.25rem)/1.12 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.sp-say { margin: 4px 0 0; max-width: 62ch; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
.sp-act { white-space: nowrap; min-height: 50px; padding: 13px 24px; border-radius: 14px; }

/* the track: eight stops on one line, the path filled in pine up to where the question is */
.sp-track { position: relative; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); --dot: 46px; }
.sp-track::before, .sp-track::after { content: ""; position: absolute; top: calc(var(--dot) / 2 - 2px); left: 6.25%; height: 4px; border-radius: 4px; }
.sp-track::before { right: 6.25%; background: var(--line-2); }
.sp-track::after { width: calc(87.5% * var(--k, 0)); background: var(--pine); transition: width 1.2s var(--ease); }
.sp-stop { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; padding: 0 4px; }
.sp-dot { position: relative; display: grid; place-items: center; width: var(--dot); height: var(--dot); box-sizing: border-box; border-radius: 50%; color: var(--faint); background: #fff; border: 2px solid var(--line-strong); transition: transform 0.3s var(--ease); }
.sp-stop.done .sp-dot { color: #fff; background: var(--pine); border-color: var(--pine); }
.sp-stop.now .sp-dot { color: #fff; background: var(--brass); border-color: #e6cd8f; border-width: 3px; transform: scale(1.12); box-shadow: 0 6px 18px rgba(169, 123, 31, 0.35); }
.sp-stop.now .sp-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--brass); opacity: 0.5; animation: sp-ring 2.2s ease-out infinite; }
.sp-name { font: 600 0.8rem/1.3 var(--sans); color: var(--ink-2); max-width: 11ch; }
.sp-stop.now .sp-name { color: var(--brass-ink); font-size: 0.84rem; }
.sp-stop.next .sp-name { color: var(--faint); font-weight: 500; }

.sp-next { margin: 0; padding: 13px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-2); font-size: 0.95rem; line-height: 1.55; color: var(--ink-2); }
.sp-next b { color: var(--ink); }

.sp-more { border-top: 1px solid var(--line-2); padding-top: 14px; }
.sp-more summary { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; font: 600 0.9rem/1.3 var(--sans); color: var(--pine); }
.sp-more summary:hover { text-decoration: underline; }
.sp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.sp-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.sp-item-dot { display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box; border-radius: 50%; color: var(--faint); border: 1.5px solid var(--line-strong); background: #fff; }
.sp-item.done .sp-item-dot { color: #fff; background: var(--pine); border-color: var(--pine); }
.sp-item.now .sp-item-dot { color: #fff; background: var(--brass); border-color: var(--brass); }
.sp-item b { font: 600 0.98rem/1.3 var(--serif); color: var(--ink); }
.sp-item p { margin: 2px 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--sub); }
.sp-item.next b { color: var(--sub); }

/* when this question has a discovery, it leads */
.sp-disc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--brass-soft); border: 1px solid #e3cf9d; color: var(--ink); text-decoration: none; }
.sp-disc:hover { text-decoration: none; border-color: var(--brass); }
.sp-disc b { display: block; font: 600 1.06rem/1.3 var(--serif); }
.sp-disc small { display: block; font-size: 0.84rem; color: var(--brass-ink); }
.sp-disc-seal { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; color: #fff; background: var(--brass); border: 3px solid #e6cd8f; }

@keyframes sp-ring { 0% { transform: scale(0.85); opacity: 0.6; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Discoveries (views/discoveries.js, views/discovery.js, the home band) ---------- */
.dc-cond { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 0.76rem/1.2 var(--sans); color: var(--pine-deep); background: var(--pine-soft); }
.dc-rare { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 0.76rem/1.2 var(--sans); color: var(--brass-ink); background: var(--brass-soft); }
.dc-seal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; color: #fff; background: var(--brass); border: 3px solid #e6cd8f; flex: none; }
.dc-seal.big { width: 60px; height: 60px; font-size: 1.6rem; border-width: 4px; box-shadow: 0 0 0 8px rgba(230, 205, 143, 0.18); }
.dc-go { margin-top: auto; font: 600 0.9rem/1.3 var(--sans); color: var(--pine); }

/* the list page's hero: warm, with a sun at its heart */
.dc-hero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid #ece3cd; }
.dc-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 60px; align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.dc-hero-words { display: grid; gap: 18px; justify-items: start; max-width: 680px; }
.dc-hero h1 { margin: 0; font: 600 clamp(2.2rem, 4.6vw, 3.5rem)/1.06 var(--serif); color: var(--ink); letter-spacing: -0.015em; }
.dc-lede { margin: 0; font: 400 1.14rem/1.65 var(--serif-text); color: var(--ink-2); }
.dc-emblem { position: relative; display: grid; place-items: center; width: 150px; height: 150px; margin-right: 40px; border-radius: 50%; color: #fff; background: var(--brass); box-shadow: 0 0 0 20px rgba(169, 123, 31, 0.1), 0 0 0 46px rgba(169, 123, 31, 0.06), 0 0 0 78px rgba(169, 123, 31, 0.035); }
.dc-emblem span { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); }

.dc-sec-head { display: grid; gap: 6px; margin-bottom: 22px; max-width: 70ch; }
.dc-sec-head h2 { margin: 0; font: 600 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--serif); }
.dc-sec-head p { margin: 0; color: var(--sub); line-height: 1.55; }

/* questions closest to a discovery */
.dc-close-grid, .dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dc-close { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.dc-close-photo { position: relative; display: block; height: 132px; margin: -20px -22px 2px; border-radius: 19px 19px 0 0; overflow: hidden; background: var(--line-2); }
.dc-close-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dc-close:hover .dc-close-photo img { transform: scale(1.04); }
.dc-close:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.dc-close-top { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-close-q { font: 600 1.14rem/1.35 var(--serif); color: var(--ink); }
.dc-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.dc-progress small { font: 600 0.78rem/1 var(--sans); color: var(--sub); white-space: nowrap; }
.dc-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.dc-mini li { height: 8px; border-radius: 999px; background: var(--line-2); }
.dc-mini li.done { background: var(--pine); }
.dc-mini li.now { background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.dc-close-now { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-close-now b { color: var(--ink); }

/* a discovery as a card */
.dc-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid #ead9b0; border-top: 4px solid var(--brass); box-shadow: 0 1px 2px rgba(20, 40, 59, 0.04); color: var(--ink); text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.dc-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); }
.dc-card-top { display: flex; align-items: center; gap: 10px; }
.dc-head { margin: 0; font: 600 1.24rem/1.35 var(--serif); color: var(--ink); }
.dc-q { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--sub); }
.dc-meta { margin: 0; font-size: 0.8rem; color: var(--brass-ink); font-weight: 600; }

/* how a discovery happens: five steps as one path */
.dc-how { padding-block: clamp(48px, 6vw, 80px); }
.dc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dc-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.dc-step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--pine); background: var(--pine-soft); margin-bottom: 6px; }
.dc-steps li:last-child .dc-step-ic { color: var(--brass-ink); background: var(--brass-soft); }
.dc-step-n { position: absolute; top: 18px; right: 20px; font: 600 1.6rem/1 var(--serif); color: var(--line-strong); }
.dc-steps b { font: 600 1.02rem/1.35 var(--serif); color: var(--ink); }
.dc-steps p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: var(--sub); }
.dc-how-go { margin-top: 26px; }

/* one discovery: a celebration with integrity */
.dc-one { background: var(--pine-deep); border-bottom: 0; color: #fff; }
.dc-one::before, .dc-one::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.dc-one::before { right: -120px; top: -160px; width: 520px; height: 520px; border: 1px solid rgba(230, 205, 143, 0.18); box-shadow: 0 0 0 60px rgba(230, 205, 143, 0.04), 0 0 0 130px rgba(230, 205, 143, 0.03); }
.dc-one::after { right: 140px; top: 90px; width: 10px; height: 10px; background: #e6cd8f; box-shadow: -220px 160px 0 -2px rgba(230, 205, 143, 0.7), -80px 260px 0 -3px rgba(230, 205, 143, 0.5), 60px 220px 0 -1px rgba(230, 205, 143, 0.6), -300px 40px 0 -3px rgba(230, 205, 143, 0.45); }
.dc-one-in { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; max-width: 940px; padding-block: clamp(40px, 6vw, 84px); }
.dc-back { font: 600 0.88rem/1.3 var(--sans); color: rgba(255, 255, 255, 0.75); }
.dc-back:hover { color: #fff; }
.dc-one-top { display: flex; align-items: center; gap: 16px; font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
.dc-one-top b { font: 600 1.15rem/1.2 var(--serif); color: #f3dfae; }
.dc-one-top small { display: block; margin-top: 2px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
.dc-one h1 { margin: 0; font: 600 clamp(2rem, 4.2vw, 3.2rem)/1.14 var(--serif); color: #fff; letter-spacing: -0.012em; }
.dc-one .dc-lede { color: rgba(255, 255, 255, 0.82); }
.dc-one .dc-lede a { color: #f3dfae; font-family: var(--serif); font-weight: 600; }
.dc-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.dc-badge { display: grid; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.dc-badge small { font-size: 0.74rem; color: rgba(255, 255, 255, 0.65); }
.dc-badge b { font: 600 1rem/1.3 var(--serif); color: #fff; }

.dc-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dc-main, .dc-side { display: grid; gap: 20px; min-width: 0; }
.dc-block { display: grid; gap: 14px; padding: 26px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.dc-block h2 { margin: 0; font: 600 1.35rem/1.25 var(--serif); color: var(--ink); }
.dc-sub { margin: -6px 0 0; font-size: 0.9rem; color: var(--sub); }
.dc-mean { grid-template-columns: auto minmax(0, 1fr); gap: 18px; background: var(--cream); border-color: #ece3cd; }
.dc-mean-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--brass); background: #fff; border: 2px solid #ead9b0; }
.dc-mean > div { display: grid; gap: 8px; }
.dc-mean p { margin: 0; font: 400 1.06rem/1.65 var(--serif-text); color: var(--ink-2); }

.dc-chain, .dc-next { list-style: none; margin: 0; padding: 0; display: grid; }
.dc-chain li, .dc-next li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 20px; }
.dc-chain li:last-child, .dc-next li:last-child { padding-bottom: 0; }
.dc-chain li:not(:last-child)::before, .dc-next li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--pine-soft); }
.dc-chain-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--pine); }
.dc-chain li > div, .dc-next li > div { display: grid; gap: 4px; padding-top: 4px; min-width: 0; }
.dc-chain b, .dc-next b { font: 600 1.02rem/1.3 var(--serif); color: var(--ink); }
.dc-chain p, .dc-next p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.dc-chain a { font-weight: 600; color: var(--pine); overflow-wrap: anywhere; }
.dc-held { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.dc-held li { display: grid !important; grid-template-columns: none !important; gap: 2px !important; padding: 8px 12px !important; border-radius: 10px; background: var(--pine-wash); }
.dc-held li::before { display: none; }
.dc-held code { font: 600 0.76rem/1.3 var(--mono); color: var(--sub); background: none; }
.dc-held span { font-size: 0.88rem; color: var(--pine-deep); }
.dc-next li .dc-chain-dot { color: var(--faint); background: #fff; border: 1.5px solid var(--line-strong); box-sizing: border-box; }
.dc-next li.now .dc-chain-dot { color: #fff; background: var(--brass); border-color: var(--brass); }
.dc-next li.done .dc-chain-dot { color: #fff; background: var(--pine); border-color: var(--pine); }
.dc-next li:not(:last-child)::before { background: var(--line); }

.dc-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc-people li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.dc-people li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.dc-people b { font: 600 1rem/1.3 var(--serif); color: var(--ink); }
.dc-people a:hover b { color: var(--pine); }
.dc-people small { font-size: 0.82rem; color: var(--sub); }
.dc-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 700 1rem/1 var(--serif); color: var(--pine-deep); background: var(--pine-soft); }
.dc-people li.lead .dc-ava { color: #fff; background: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.dc-actions { display: grid; gap: 10px; }
.dc-actions .btn { width: 100%; justify-content: center; min-height: 50px; }
.dc-share { background: var(--brass); border-color: var(--brass); box-shadow: 0 1px 2px rgba(80, 55, 10, 0.3), 0 8px 20px rgba(169, 123, 31, 0.25); }
.dc-share:hover { background: #8f6716; border-color: #8f6716; }

/* the home page band */
.dcb { padding-block: clamp(48px, 6vw, 84px); background: var(--cream); border-block: 1px solid #ece3cd; }
.dcb[hidden] { display: none; }
.dcb-in { display: grid; gap: 26px; }
.dcb-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; max-width: 880px; }
.dcb-head h2 { margin: 0 0 6px; font: 600 clamp(1.6rem, 2.8vw, 2.2rem)/1.15 var(--serif); }
.dcb-head p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
.dcb-sun { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--brass); box-shadow: 0 0 0 10px rgba(169, 123, 31, 0.1), 0 0 0 22px rgba(169, 123, 31, 0.05); margin: 0 14px; }
.dcb-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.dcb-foot span { color: var(--brass-ink); font: 600 0.92rem/1.3 var(--serif); }

@media (max-width: 1100px) { .dc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dc-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .sp-band { margin-top: -22px; }
  .sp-band > .wrap { padding-inline: 10px; }
  .sp { padding: 22px 18px 18px; gap: 18px; border-radius: 20px; }
  .sp-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sp-title { font-size: 1.6rem; }
  .sp-say { font-size: 0.98rem; }
  .sp-act { width: 100%; justify-content: center; }
  .sp-track { --dot: 32px; margin-top: 0; }
  .sp-track::before, .sp-track::after { height: 3px; top: calc(var(--dot) / 2 - 1.5px); }
  .sp-stop { padding: 0; gap: 0; }
  .sp-dot svg { width: 14px; height: 14px; }
  .sp-stop.now .sp-dot::after { inset: -7px; }
  .sp-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sp-next { font-size: 0.92rem; padding: 12px 14px; }
  .sp-list { grid-template-columns: minmax(0, 1fr); }
  .dc-hero-in { grid-template-columns: minmax(0, 1fr); }
  .dc-emblem { order: -1; width: 84px; height: 84px; margin: 6px 0 0 6px; box-shadow: 0 0 0 12px rgba(169, 123, 31, 0.1), 0 0 0 26px rgba(169, 123, 31, 0.05); }
  .dc-emblem span { width: 66px; height: 66px; }
  .dc-emblem svg { width: 34px; height: 34px; }
  .dc-hero-words .btn { width: 100%; justify-content: center; }
  .dc-close-grid, .dc-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dc-steps li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .dc-step-ic { grid-row: span 2; margin: 0; }
  .dc-step-n { display: none; }
  .dc-how-go .btn { width: 100%; justify-content: center; }
  .dc-block { padding: 20px 18px; }
  .dc-one::before { width: 320px; height: 320px; right: -140px; top: -120px; }
  .dc-one::after { display: none; }
  .dc-mean { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dc-mean-ic { width: 40px; height: 40px; }
  .dc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
  .dc-badge { padding: 8px 12px; }
  .dcb-head { grid-template-columns: minmax(0, 1fr); }
  .dcb-sun { width: 52px; height: 52px; margin: 8px 0 4px 10px; }
  .dcb-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sp-stop.now .sp-dot::after { animation: none; } .sp-track::after { transition: none; } .dc-close, .dc-card { transition: none; } }
