/* Blog "guide" design (config "design": "guide" in content/blog/posts.config.json, built by scripts/generators/gen-blog.js):
   image hero, reading-progress bar, sticky table of contents with tour cards, quick-answer box, callout, collapsible FAQ, closing box,
   in-text tour cards, related tour cards and a sticky bar on phones. Everything is scoped with .tqg-; the site header and footer are not touched.
   Brand colours: orange #d93b1a, navy #0e1a2b. The page is always shown in the light theme (no dark mode, on purpose). */
.tqg-page { --tqg-bg: #fff; --tqg-ink: #14232e; --tqg-head: #0e1a2b; --tqg-muted: #5b6b76; --tqg-line: #e3e9ec; --tqg-soft: #f4f7f9; --tqg-card: #fff; --tqg-sand: #fff3ed; --tqg-brand: #d93b1a; --tqg-brand-d: #a82c12; --tqg-th: #0e1a2b;
  background: var(--tqg-bg); color: var(--tqg-ink); }

.tqg-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: #d93b1a; z-index: 99999; pointer-events: none; }

.tqg-hero { position: relative; display: flex; align-items: flex-end; min-height: 54vh; color: #fff; background: #0e1a2b; overflow: hidden; }
.tqg-hero picture { position: absolute; inset: 0; display: block; }
.tqg-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tqg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,28,.2) 15%, rgba(8,20,28,.9)); }
.tqg-hero-in { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 24px 52px; }
.tqg-crumbs { margin-bottom: 14px; font-size: 14px; opacity: .9; }
.tqg-crumbs a { color: #fff; text-decoration: none; }
.tqg-crumbs a:hover { text-decoration: underline; }
.tqg-tag { display: inline-block; margin-bottom: 16px; padding: 4px 13px; border-radius: 99px; background: #d93b1a; color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tqg-hero h1 { max-width: 880px; margin: 0 0 18px; color: #fff; font-size: clamp(32px, 5vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.015em; }
.tqg-byline { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; opacity: .94; }

.tqg-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 64px; justify-content: center; max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.tqg-article { font-size: 18px; line-height: 1.75; color: var(--tqg-ink); }
.tqg-article > p:first-of-type { font-size: 21px; line-height: 1.65; }
.tqg-article > p:first-of-type::first-letter { float: left; padding: 6px 10px 0 0; color: var(--tqg-brand); font-size: 72px; line-height: .9; font-weight: 700; }
.tqg-article h2 { margin: 60px 0 16px; color: var(--tqg-head); font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.005em; scroll-margin-top: 96px; }
.tqg-article h3 { margin: 34px 0 8px; color: var(--tqg-head); font-size: 21px; line-height: 1.3; font-weight: 700; scroll-margin-top: 96px; }
.tqg-article p, .tqg-article li { color: var(--tqg-ink); }
.tqg-article p { margin: 0 0 18px; }
.tqg-article a { color: var(--tqg-brand); }
.tqg-article a:hover { color: var(--tqg-brand-d); }
.tqg-article ul, .tqg-article ol { padding-left: 22px; margin: 0 0 18px; }
.tqg-article li { margin: 8px 0; }
.tqg-article li::marker { color: var(--tqg-brand); }

.tqg-quick { margin-top: 44px; padding: 6px 28px 24px; border: 1px solid var(--tqg-line); border-radius: 20px; background: var(--tqg-soft); }
.tqg-quick h2 { margin-top: 24px; }
.tqg-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--tqg-line); border-radius: 14px; background: var(--tqg-card); -webkit-overflow-scrolling: touch; }
.tqg-table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tqg-table-wrap th { padding: 12px 14px; background: var(--tqg-th); color: #fff; text-align: left; font-weight: 600; }
.tqg-table-wrap td { padding: 12px 14px; border-top: 1px solid var(--tqg-line); vertical-align: top; }
.tqg-table-wrap tr td:first-child { font-weight: 600; }

.tqg-fig { margin: 26px 0 10px; }
.tqg-fig picture { display: block; }
.tqg-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.tqg-fig figcaption { margin-top: 10px; color: var(--tqg-muted); font-size: 14px; font-style: italic; line-height: 1.5; }

.tqg-callout { margin: 32px 0; padding: 6px 26px 14px; border-left: 4px solid var(--tqg-brand); border-radius: 0 18px 18px 0; background: var(--tqg-sand); }
.tqg-callout h3 { margin-top: 22px; }

.tqg-article details { margin: 12px 0; border: 1px solid var(--tqg-line); border-radius: 14px; background: var(--tqg-card); }
.tqg-article summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 600; cursor: pointer; list-style: none; color: var(--tqg-head); }
.tqg-article summary::-webkit-details-marker { display: none; }
.tqg-article summary::after { content: "+"; position: absolute; right: 20px; top: 12px; color: var(--tqg-brand); font-size: 26px; transition: transform .2s; }
.tqg-article details[open] summary::after { transform: rotate(45deg); }
.tqg-article details p { margin: 0; padding: 0 20px 18px; color: var(--tqg-muted); }

/* tour card inside the text: image on the left, after the end of the section it belongs to */
.tqg-article .tqg-inline { display: flex; gap: 0; align-items: stretch; margin: 30px 0 4px; overflow: hidden; border: 1px solid var(--tqg-line); border-radius: 18px; background: var(--tqg-card); color: var(--tqg-ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tqg-article .tqg-inline:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,26,43,.14); color: var(--tqg-ink); }
.tqg-inline-img { flex: 0 0 38%; max-width: 260px; min-height: 130px; background: #0e1a2b; }
.tqg-inline-img picture, .tqg-inline-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tqg-inline-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px 20px; min-width: 0; }
.tqg-inline-body b { color: var(--tqg-head); font-size: 17px; line-height: 1.3; }
.tqg-inline-btn { align-self: flex-start; padding: 7px 14px; border-radius: 99px; background: #d93b1a; color: #fff; font-size: 14px; font-weight: 600; }

.tqg-cta { margin: 56px 0 0; padding: 36px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #d93b1a, #0e1a2b 85%); }
.tqg-article .tqg-cta h2 { margin: 0 0 8px; color: #fff; font-size: 28px; }
.tqg-cta p { margin: 0 0 22px; color: #fff; opacity: .94; }
.tqg-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tqg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 99px; font-size: 16px; font-weight: 600; text-decoration: none; }
.tqg-article .tqg-btn-1, .tqg-btn-1 { background: #fff; color: #0e1a2b; }
.tqg-article .tqg-btn-2, .tqg-btn-2 { background: #25d366; color: #08301a; }
.tqg-btn:hover { filter: brightness(.96); }

.tqg-side { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }
.tqg-toc { padding: 20px 22px; border: 1px solid var(--tqg-line); border-radius: 18px; font-size: 15px; line-height: 1.45; background: var(--tqg-card); }
.tqg-toc b { display: block; margin-bottom: 10px; color: var(--tqg-muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.tqg-toc ol { margin: 0; padding-left: 18px; }
.tqg-toc li { margin: 7px 0; }
.tqg-toc a { color: var(--tqg-ink); text-decoration: none; }
.tqg-toc a:hover, .tqg-toc a.on { color: var(--tqg-brand); }
.tqg-sidecards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.tqg-sidecard { display: block; overflow: hidden; border: 1px solid var(--tqg-line); border-radius: 16px; background: var(--tqg-card); color: var(--tqg-ink); text-decoration: none; transition: box-shadow .2s; }
.tqg-sidecard:hover { box-shadow: 0 10px 24px rgba(14,26,43,.14); color: var(--tqg-ink); }
.tqg-sidecard-img { display: block; aspect-ratio: 16 / 9; background: #0e1a2b; }
.tqg-sidecard-img picture, .tqg-sidecard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tqg-sidecard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.tqg-sidecard-body b { color: var(--tqg-head); font-size: 15px; line-height: 1.3; }
.tqg-sidecard-btn { align-self: flex-start; padding: 6px 12px; border-radius: 99px; background: #d93b1a; color: #fff; font-size: 13px; font-weight: 600; }
.tqg-side-cta { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--tqg-soft); font-size: 15px; }
.tqg-side-cta p { margin: 0 0 12px; }

.tqg-related { padding: 60px 24px; background: var(--tqg-soft); }
.tqg-related-in { max-width: 1180px; margin: 0 auto; }
.tqg-related h2 { margin: 0 0 24px; color: var(--tqg-head); font-size: 30px; font-weight: 700; }
.tqg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.tqg-card { display: block; overflow: hidden; border: 1px solid var(--tqg-line); border-radius: 20px; background: var(--tqg-card); color: var(--tqg-ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tqg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(14,26,43,.14); color: var(--tqg-ink); }
.tqg-card-img { aspect-ratio: 16 / 10; background: #0e1a2b; }
.tqg-card-img picture, .tqg-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tqg-card-body { padding: 18px 20px 20px; }
.tqg-card h3 { margin: 0 0 12px; color: var(--tqg-head); font-size: 18px; line-height: 1.35; font-weight: 700; }
.tqg-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--tqg-muted); font-size: 14px; }
.tqg-price b { color: var(--tqg-brand); font-size: 17px; }

/* sticky bar on phones: appears after 30 % of the page, closes with the cross, hides while the closing box or the footer is on screen */
.tqg-mbar { display: none; }
@media (max-width: 980px) {
  .tqg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 36px 16px; }
  .tqg-side { display: none; }
  .tqg-hero { min-height: 46vh; }
  .tqg-hero-in { padding: 40px 16px 36px; }
  .tqg-article { font-size: 17px; }
  .tqg-article h2 { font-size: 27px; margin-top: 48px; }
  .tqg-quick { padding: 4px 18px 18px; }
  .tqg-cta { padding: 26px; }
  .tqg-related { padding: 44px 16px; }
  .tqg-article .tqg-inline { flex-direction: column; }
  .tqg-inline-img { flex: none; max-width: none; aspect-ratio: 16 / 8; min-height: 0; }
  .tqg-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #0e1a2b; color: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .25s ease; }
  .tqg-mbar[hidden] { display: flex; visibility: hidden; }
  .tqg-mbar.is-on { transform: none; visibility: visible; }
  .tqg-mbar-main { flex: 1 1 auto; min-width: 0; color: #fff; text-decoration: none; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
  .tqg-mbar-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .tqg-mbar-main .price-tag { font-weight: 700; color: #ffb4a2; }
  .tqg-mbar-wa { flex: 0 0 auto; padding: 9px 14px; border-radius: 99px; background: #25d366; color: #08301a; font-size: 14px; font-weight: 700; text-decoration: none; }
  .tqg-mbar-x { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { .tqg-card, .tqg-article .tqg-inline, .tqg-sidecard, .tqg-article summary::after, .tqg-mbar { transition: none; } .tqg-card:hover, .tqg-article .tqg-inline:hover { transform: none; } }
