/* The inside pages: the trails list, the builder with its live preview, the plan's page, my plans, the admin and the
   long texts. */
.lead2 { font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: var(--ink-2); max-width: 42em; }
.narrow { max-width: 460px; margin: 0 auto; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* list */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 22px; }
.filters select { width: auto; min-height: 44px; padding: 8px 36px 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; }

/* the builder */
.bld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.bld-form { display: grid; gap: 18px; }
.bt-trail { display: flex; gap: 14px; align-items: center; }
.bt-art { width: 128px; aspect-ratio: 16 / 10; border: var(--line); border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 3px 0 var(--ink); }
.bt-art svg { width: 100%; height: 100%; }
.bt-meta { display: grid; gap: 4px; min-width: 0; }
.bt-meta b { font: 800 24px/1.05 var(--display); letter-spacing: -0.02em; }
.bt-meta > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--white); font: 800 22px/1 var(--display); cursor: pointer; }
.stepper output { font: 800 26px/1 var(--display); min-width: 34px; text-align: center; }
.bld-prev { position: sticky; top: 84px; transition: opacity .2s; }
.bld-prev.busy { opacity: .62; }
.pv-wait { display: flex; align-items: center; gap: 12px; padding: 40px 24px; font-weight: 700; justify-content: center; }
.pv-err { display: grid; gap: 10px; justify-items: start; }
.pv { overflow: hidden; }
.pv-top { position: relative; aspect-ratio: 16 / 9; border-bottom: var(--line); background: var(--sky); }
.pv-top svg { width: 100%; height: 100%; display: block; }
.pv-stamp, .rd-art .pv-stamp { position: absolute; right: 14px; top: 14px; }
.pv-name { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 2px; background: var(--white); border: var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: 0 4px 0 var(--ink); max-width: calc(100% - 28px); }
.pv-name b { font: 800 clamp(18px, 2vw, 24px)/1.05 var(--display); }
.pv-name span { font: 700 12px/1.3 var(--mono); color: var(--ink-2); }
.pv-body { padding: clamp(14px, 2.4vw, 22px); display: grid; gap: 16px; }
.pv-why { border: var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; }
.pv-why.go { background: #e3f6eb; } .pv-why.care { background: #fff1c2; } .pv-why.no { background: #ffe0ea; }
.pv-why b { font: 800 18px/1 var(--display); }
.pv-why ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.pv-stats .tag { font-family: var(--mono); font-weight: 700; }
.pv-wx h3, .pv-full h3 { font-size: 19px; margin-bottom: 10px; }
.wxt { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.wt { border: var(--line); border-radius: 14px; padding: 10px 12px; background: var(--white); display: grid; gap: 4px; align-content: start; }
.wt span { font: 700 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.wt b { font: 800 26px/1 var(--display); }
.wt b small { font-size: 14px; color: var(--ink-2); }
.wt em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.wt.sky { background: var(--sky); } .wt.coral { background: var(--coral); color: var(--white); } .wt.coral span, .wt.coral em, .wt.coral b small { color: var(--white); }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flags span { font-weight: 800; font-size: 13px; background: #fff1c2; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 10px; }
.pv-wx .small { margin-top: 8px; }
.ticks2 { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ticks2 li { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 15px; }
.ticks2 li::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--leaf); color: var(--white); font-size: 11px; flex: none; margin-top: 1px; }
.locked { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.locked img { width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 6px; filter: blur(2.5px) saturate(1.1); opacity: .9; }
.lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); background: var(--ink); color: var(--white); font: 800 14px/1 var(--display); padding: 10px 14px; border-radius: 999px; border: 2px solid var(--white); white-space: nowrap; }
.pv-buy { display: grid; gap: 8px; }
.btn.big { min-height: 62px; font-size: 20px; }
.to-prev { display: none; }
@media (max-width: 900px) {
  .bld { grid-template-columns: 1fr; }
  .bld-prev { position: static; }
  .to-prev { display: inline-flex; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; transition: opacity .2s; }
  .to-prev.gone { opacity: 0; pointer-events: none; }
}
@media (max-width: 520px) {
  .bt-art { width: 96px; }
  .bt-meta b { font-size: 20px; }
  .pv-stamp .stamp, .rd-art .stamp { width: 96px; }
  .pv-stamp .stamp b, .rd-art .stamp b { font-size: 16px; }
  .pv-stamp .stamp small, .rd-art .stamp small { font-size: 8px; }
  .seg button { padding: 9px 11px; font-size: 13px; }
}

/* the plan's page */
.rd { display: grid; gap: 22px; }
.rd-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rd-head h1 { font-size: clamp(32px, 4.6vw, 54px); display: flex; align-items: center; gap: 12px; }
.rd-head .lead2 { margin-top: 8px; }
.rd-head.ok h1 { color: var(--leaf-2); }
.rd-head.bad h1 { color: #c0102f; }
.rd-art { position: relative; aspect-ratio: 21 / 9; border: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); background: var(--sky); }
.rd-art svg { width: 100%; height: 100%; display: block; }
.rd-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: start; }
.rd-main { display: grid; gap: 16px; }
.rd-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.rd-box { display: grid; gap: 10px; }
.rd-box h3 { font-size: 21px; }
.rd-box.sun { background: #fff1c2; }
.share { margin: 0; background: var(--white); border: 1.5px dashed var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .rd-grid { grid-template-columns: 1fr; } .rd-side { position: static; } .rd-art { aspect-ratio: 16 / 10; } }

/* my plans */
.plist { display: grid; gap: 12px; }
.pitem { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 12px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pitem:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.pitem .mini { border: var(--line); border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; }
.pitem .mini svg { width: 100%; height: 100%; display: block; }
.pitem .meta { display: grid; gap: 4px; min-width: 0; }
.pitem .meta b { font: 800 20px/1.1 var(--display); }
.pitem .meta span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
@media (max-width: 600px) { .pitem { grid-template-columns: 84px 1fr; } .pitem .chip { grid-column: 2; } }

.chip { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); width: fit-content; white-space: nowrap; }
.chip.st-ready { background: #d9f5e6; } .chip.st-paid { background: #e5f6ff; } .chip.st-pending { background: #fff1c2; } .chip.st-failed { background: var(--coral); color: var(--white); } .chip.st-refunded { background: var(--paper-2); }

/* admin */
.money { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.fact { background: var(--white); border: var(--line); border-radius: 16px; padding: 12px 14px; }
.fact b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact span { font: 800 24px/1.2 var(--display); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 10px 12px; border-bottom: 1.5px solid var(--paper-2); vertical-align: top; }
table.t th { background: var(--paper-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.t tr:last-child td { border-bottom: 0; }
.scroll { overflow-x: auto; }

/* long texts */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin: 8px 0; }
