/* The travel app's own site (lib/travel-site.mjs): its cover, the plans, the guide for agencies and the notes. On top of
   site.css, whose tokens and components (hero, section, cards, card, btn, prose) it uses. */

.site-nav .ts-open { color: var(--on-accent); background: var(--accent); font-weight: 600; }
.site-nav .ts-open:hover { color: var(--on-accent); background: var(--accent-hover); }

.ts-hero h1 { max-width: 16ch; }
/* the example trip on a phone, beside the cover's words on a wide screen and under them on a narrow one */
.ts-phone { display: block; width: min(100%, 17rem); margin-inline: auto; padding: 8px; background: var(--text); border-radius: 30px; box-shadow: var(--shadow); }
.ts-phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
@media (min-width: 900px) { .ts-hero .hero-inner { grid-template-columns: minmax(0, 1fr) 17rem; gap: 48px; } }
.ts-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 24px 0 0; }
.ts-quiet { color: var(--muted); font-size: 0.9375rem; }
.ts-muted, .ts-date { color: var(--muted); }
.ts-date { margin: 0 0 8px; font-size: 0.875rem; }
.ts-end { background: var(--surface); }

/* three steps in a row, numbered */
.ts-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.ts-steps li { counter-increment: step; padding: 20px 20px 20px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.ts-steps li::before { content: counter(step); display: block; margin-bottom: 6px; color: var(--accent); font-size: 1.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ts-steps h3, .ts-features h3 { margin: 0 0 4px; font-size: 1.0625rem; line-height: 1.35; }
.ts-steps p, .ts-features p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.ts-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 24px 28px; margin: 0; padding: 0; list-style: none; }
.ts-features li { padding-top: 14px; border-top: 1px solid var(--border-strong); }

/* the plans */
.ts-plans { justify-content: stretch; }
.ts-price { margin: 12px 0 0; }
.ts-price b { font-size: 1.875rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ts-price span, .ts-year { color: var(--muted); font-size: 0.9375rem; }
.ts-year { margin: 2px 0 0; }
.ts-points { margin: 16px 0 0; padding: 0; list-style: none; }
.ts-points li { position: relative; margin: 8px 0; padding-left: 1.5rem; font-size: 0.9375rem; }
.ts-points li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.ts-custom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 4px; }
.ts-custom .ts-points { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.ts-custom .card-actions { margin-top: 0; padding-top: 0; }

.ts-faq { max-width: 46rem; margin: 0; }
.ts-faq dt { margin: 20px 0 4px; font-weight: 600; }
.ts-faq dt:first-child { margin-top: 0; }
.ts-faq dd { margin: 0; color: var(--muted); }

/* the guide: its contents beside it on a wide screen */
.ts-guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; padding-block: 40px 56px; }
.ts-toc { align-self: start; padding: 16px 20px; background: var(--surface); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.ts-toc-title { margin: 0 0 8px; font-weight: 600; }
.ts-toc ol { margin: 0; padding-left: 1.25rem; }
.ts-toc li { margin: 4px 0; }
@media (min-width: 900px) {
  .ts-guide { grid-template-columns: 16rem minmax(0, 1fr); }
  .ts-toc { position: sticky; top: 16px; }
}

.ts-article { padding-block: 32px 56px; }
.ts-back { margin: 0 0 20px; font-size: 0.9375rem; }
.ts-article .ts-actions { padding-top: 24px; border-top: 1px solid var(--border); margin-top: 40px; }
