/* Affiliate & monetisation components — extracted from per-partial inline
   <style> blocks (which were being dropped by a Store-dedup guard, causing
   covers to render unconstrained). One stylesheet = reliable, cacheable,
   consistent sizing. Tuned so monetisation is visible but content stays primary
   (conversion + engagement balance). */

/* ── Recommended-books shelf ───────────────────────────────────────── */
.book-shelf { margin: 2rem 0; padding: 1.1rem 1.2rem .9rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 14px; background: var(--bg-secondary, #fafafa); }
.book-shelf--compact { background: linear-gradient(180deg, #fff7ed, var(--bg-secondary, #fafafa)); border-color: #fed7aa; }
.book-shelf__title { margin: 0 0 .85rem; font-size: 1rem; font-weight: 700; }
.book-shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .65rem; }
.book-shelf__card { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .65rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg, #fff); text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.book-shelf__card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); border-color: #f59e0b; }
.book-shelf__cover { width: 48px; height: 72px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; background: #f1f5f9; }
.book-shelf__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.book-shelf__type { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b45309; }
.book-shelf__name { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.book-shelf__author { font-size: .75rem; color: var(--text-muted, #6b7280); }
.book-shelf__cta { margin-top: .35rem; display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: #f59e0b; padding: .3rem .55rem; border-radius: 6px; align-self: flex-start; }
.book-shelf__card:hover .book-shelf__cta { background: #d97706; }
.book-shelf__notice { margin: .8rem 0 0; font-size: .7rem; color: var(--text-muted, #6b7280); }

/* ── Native in-feed card (inside city grid / module list) ──────────── */
.infeed-card { position: relative; display: flex; gap: .65rem; align-items: center; padding: .7rem .75rem; border: 1px solid #f59e0b; border-radius: 12px; background: linear-gradient(180deg, #fff7ed, #fff); text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.infeed-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.infeed-card__badge { position: absolute; top: .45rem; right: .5rem; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #b45309; background: #fde68a; padding: .12rem .35rem; border-radius: 4px; }
.infeed-card__cover { width: 46px; height: 68px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; }
.infeed-card__name { font-size: .85rem; font-weight: 700; line-height: 1.25; }
.infeed-card__cta { font-size: .72rem; font-weight: 700; color: #fff; background: #f59e0b; padding: .28rem .5rem; border-radius: 6px; }
.infeed-card:hover .infeed-card__cta { background: #d97706; }
.infeed-card__body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }

/* ── eBay souvenir shelf ───────────────────────────────────────────── */
.souvenir-shelf { margin: 2rem 0; padding: 1.1rem 1.2rem .9rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 14px; background: var(--bg-secondary, #fafafa); }
.souvenir-shelf__title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 700; }
.souvenir-shelf__sub { margin: 0 0 .9rem; font-size: .82rem; color: var(--text-muted, #6b7280); }
.souvenir-shelf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.souvenir-shelf__card { display: flex; align-items: center; gap: .5rem; padding: .55rem .65rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg, #fff); text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.souvenir-shelf__card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); border-color: #0064d2; }
.souvenir-shelf__icon { font-size: 1.25rem; flex: 0 0 auto; }
.souvenir-shelf__label { font-size: .82rem; font-weight: 600; line-height: 1.2; flex: 1 1 auto; }
.souvenir-shelf__cta { font-size: .7rem; font-weight: 700; color: #0064d2; flex: 0 0 auto; }
.souvenir-shelf__notice { margin: .8rem 0 0; font-size: .7rem; color: var(--text-muted, #6b7280); }

/* ── "You might also like" rail ────────────────────────────────────── */
.rel-rail { margin: 2rem 0; }
.rel-rail__title { margin: 0 0 .7rem; font-size: 1rem; font-weight: 700; }
.rel-rail__track { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; -webkit-overflow-scrolling: touch; }
.rel-rail__card { scroll-snap-align: start; flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; gap: .25rem; padding: .7rem .8rem; border: 1px solid var(--border-color, #e5e7eb); border-radius: 10px; background: var(--bg, #fff); text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.rel-rail__card:hover { border-color: #6366f1; transform: translateY(-2px); }
.rel-rail__flag { font-size: 1.3rem; }
.rel-rail__name { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.rel-rail__meta { font-size: .75rem; color: var(--text-muted, #6b7280); }

/* ── 2-column hub layout (content + sticky monetisation sidebar) ─────
   Site-wide (loaded on travel AND course pages). Collapses to one column
   under 1024px (sidebar drops below content). */
.hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.hub-main { min-width: 0; }
.hub-main .travel-intro { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.hub-aside { display: flex; flex-direction: column; gap: 1.1rem; position: sticky; top: 84px; }
.hub-aside > * { margin: 0 !important; }
/* course-home opts into a wider container so the 2 columns fit
   (double class to outrank course.css's .course-index { max-width: 860px }) */
.course-index.course-index--hub { max-width: 1180px; }
@media (max-width: 1024px) {
  .hub-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hub-aside { position: static; }
}

/* ── Sidebar density: collapse multi-col shelf grids to one column ─── */
.hub-aside .book-shelf__grid,
.hub-aside .souvenir-shelf__grid,
.hub-aside .amazon-shelf__grid { grid-template-columns: 1fr; }

/* ── Mobile sticky bottom bar (desktop uses the in-page sidebar) ───── */
.aff-stickybar { position: fixed; z-index: 900; left: 50%; bottom: 0; transform: translateX(-50%) translateY(120%); display: flex; align-items: center; gap: .75rem; max-width: 680px; width: calc(100% - 1.5rem); margin: 0 .75rem .75rem; padding: .6rem .8rem; border-radius: 12px; font-size: .9rem; background: var(--bg, #fff); border: 1px solid var(--border-color, #e5e7eb); box-shadow: 0 8px 30px rgba(0,0,0,.18); transition: transform .35s ease; }
.aff-stickybar.is-visible { transform: translateX(-50%) translateY(0); }
.aff-stickybar__img { width: 34px; height: 50px; object-fit: contain; flex: 0 0 auto; border-radius: 3px; }
.aff-stickybar__txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-stickybar__cta { flex: 0 0 auto; font-weight: 700; font-size: .8rem; color: #fff; background: #f59e0b; border-radius: 7px; padding: .45rem .7rem; text-decoration: none; }
.aff-stickybar__cta:hover { background: #d97706; }
.aff-stickybar__close { flex: 0 0 auto; border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-muted, #6b7280); padding: 0 .2rem; }
@media (min-width: 1100px) { .aff-stickybar { display: none !important; } }
