/* Blog (home.php, single.php, parts/post-card.php, inc/blog.php) and the "Show more" block under every list.
   Loaded after desktop.css and mobile.css. The blog pages are built from the site's own parts: hero, chips, list-head,
   tour-card, tour-page, gallery, side-card, mini-card, price-table, note-bar, faq, mobile-book-bar. Only the rules
   below are the blog's own; they live in this file so that edits of desktop.css and mobile.css never touch them. */

/* Blog home and rubric: the island-page hero without the search form */
.hero--low .hero__inner { padding: 104px 48px 40px; }
.hero--low .hero__lead { max-width: 720px; margin-bottom: 0; }

/* Article card = tour card: excerpt instead of the facts, date instead of the price */
.tour-card__text { margin-top: 0; margin-bottom: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tour-card--post .tour-card__foot { align-items: center; }
.tour-card__date { font-size: 14px; color: var(--muted); }

/* "Show more" under a list: load_more() in inc/tours.php, the script in site.js (tour lists and the blog) */
.more { display: flex; flex-direction: column; align-items: center; margin-top: 36px; text-align: center; }
.more__count { margin: 0; color: var(--muted); font-size: 14px; }
.more__bar { width: 100%; max-width: 380px; height: 4px; margin: 12px 0 20px; border-radius: 4px; background: var(--line); overflow: hidden; }
.more__bar span { display: block; height: 100%; border-radius: 4px; background: var(--black); transition: width .3s ease; }
.more.is-done .more__bar { margin-bottom: 0; }
.more__btn { width: 100%; max-width: 380px; }
.more__btn.is-busy { opacity: .6; cursor: progress; }
.more__top { margin-top: 18px; color: var(--black); font-size: 14px; text-decoration: none; border-bottom: 1px dashed currentColor; }
.more__top:hover { color: var(--muted); }

/* Article: tour-page layout. The photos are not zoomable */
.gallery--static .gallery__item { cursor: default; }
.gallery--static .gallery__item:hover img { transform: none; }

/* "In short": the orange-dot list in one column; the same list style for lists in the text */
.prose--dots.prose--col ul { grid-template-columns: 1fr; gap: 8px; }
.box .prose--col { color: var(--black); }

/* Contents under the intro */
.toc { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.toc__title { display: block; margin-bottom: 12px; font-weight: 700; color: var(--black); }
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 22px; }
.toc li { counter-increment: toc; display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.4; }
.toc li::before { content: counter(toc); flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--orange-text); font-size: 12px; font-weight: 700; }
.toc a { color: var(--black); font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--orange-text); }

/* Text of a section */
.tour-section[id] { scroll-margin-top: 16px; }
.tour-section .prose h3 { margin: 24px 0 8px; font-size: 18px; font-weight: 700; }
.prose .table-wrap, .prose .note-bar, .prose .tour-row { margin: 18px 0; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose .price-table { color: var(--black); }
.prose .price-table td.txt { color: var(--text-2); }
/* Tables of the text (post_table() in inc/blog.php) hold words, not prices: they wrap at spaces, never inside a word
   (.prose breaks anywhere, which squeezed the first column to a letter a line), and a value column of sentences
   (td.val) is plain text, not bold */
.prose .price-table { overflow-wrap: break-word; }
.prose .price-table th, .prose .price-table td { vertical-align: top; }
.prose .price-table tbody th { min-width: 160px; }
.prose .price-table td.num { white-space: normal; }
.prose .price-table td.val { font-weight: 400; }
.prose .note-bar { flex-wrap: nowrap; align-items: flex-start; color: var(--black); }
.prose .note-bar > svg { flex: none; margin-top: 2px; }
.prose .note-bar > span { flex: 1 1 auto; }

/* A tour inside the text: [tour x] */
.tour-row { display: flex; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-20); background: #fff; color: var(--black); text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.tour-row:hover { color: var(--black); border-color: transparent; box-shadow: 0 10px 26px rgba(21, 18, 58, .10); }
.tour-row__img { flex: none; width: 168px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.tour-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tour-row__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.tour-row:hover .tour-row__title { color: var(--orange-text); }
.tour-row__meta { font-size: 14px; line-height: 1.4; color: var(--muted); }
.tour-row__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-right: 8px; text-align: right; }
.tour-row .price__value, .tour-row .price__note { white-space: nowrap; }

/* A category inside the text ([cat x]) and the article blocks on other pages: head with a link, then the cards */
.tour-section .section-head { align-items: center; margin-bottom: 16px; }
.tour-section .section-head h2 { margin: 0; }
.reads { margin-top: 40px; }

/* An article with no tours and no island: one column */
.tour-page__layout--solo .tour-page__main { max-width: 860px; }

/* Side card: the tours of the article */
.side-card__title { margin: 0; font-size: 20px; }
.side-tours { list-style: none; margin: -6px 0; padding: 0; }
.side-tour { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--black); text-decoration: none; }
.side-tours li:last-child .side-tour { border-bottom: 0; }
.side-tour img { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.side-tour strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.side-tour small { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.side-tour b { color: var(--black); font-weight: 600; }
.side-tour:hover { color: var(--black); }
.side-tour:hover strong { color: var(--orange-text); }

@media (max-width: 1000px) {
  .hero--low .hero__inner { padding: 80px 32px 32px; }
}

@media (max-width: 760px) {
  .hero--low .hero__inner { padding: 34px 18px 34px; }
  .more { margin-top: 26px; }
  .toc ol { grid-template-columns: 1fr; }
  .price-table td.txt { flex: 0 0 100%; font-size: 14px; }
  .prose .price-table td.val { flex: 0 0 100%; }
  .prose .price-table td.val[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 13px; }
  .tour-row { flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 10px 10px 12px; }
  .tour-row__img { width: 96px; }
  .tour-row__body { flex: 1 1 0; }
  .tour-row__title { font-size: 16px; }
  .tour-row__meta { display: none; }
  .tour-row__side { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 4px; text-align: left; }
  .tour-row .chip-s:nth-child(n+2) { display: none; }
  .tour-row .price__value { font-size: 20px; }
  .tour-row .btn { min-height: 48px; padding: 8px 20px; }
  .reads { margin-top: 32px; }
  /* Small cards inside the text: compact rows instead of three large photos */
  .mini-grid--rows { grid-template-columns: 1fr; gap: 0; }
  .mini-grid--rows .mini-card { display: grid; grid-template-columns: 96px 1fr; column-gap: 12px; row-gap: 4px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .mini-grid--rows .mini-card:first-child { padding-top: 0; }
  .mini-grid--rows .mini-card:last-child { padding-bottom: 0; border-bottom: 0; }
  .mini-grid--rows .mini-card img { grid-row: 1 / 3; border-radius: 14px; }
  .mini-grid--rows .mini-card strong { align-self: end; line-height: 1.3; }
  .mini-grid--rows .mini-card span { align-self: start; }
  /* The side card is hidden on a phone (mobile.css): a bar at the bottom leads to the tours instead */
  body.single-post { padding-bottom: 92px; }
  .mobile-book-bar--post > div { min-width: 0; }
  /* The category name may be long: up to two lines, then cut */
  .mobile-book-bar--post strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; font-size: 16px; line-height: 1.15; margin-bottom: 4px; }
  .mobile-book-bar--post small { overflow: hidden; text-overflow: ellipsis; }
}
