/* The public pages (tour reports and FAQ, pre-rendered by seo/build.mjs). Tokens match src/index.css. */
:root {
  color-scheme: light dark;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1e2329;
  --text-muted: #6b7280;
  --note-bg: #fef3c7;
  --note-text: #78350f;
  --green: #2f7d4f;
  --green-soft: #e8f5ed;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .12);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #60a5fa;
    --primary-dark: #93c5fd;
    --primary-soft: #16233b;
    --bg: #0f131a;
    --surface: #171c26;
    --border: #2a3140;
    --text: #e8eaee;
    --text-muted: #a2a8b3;
    --note-bg: #3a2c0d;
    --note-text: #fde9b0;
    --green: #4ade80;
    --green-soft: #12291c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
}
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 800; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.site-header nav a:not(.button) { color: var(--text-muted); text-decoration: none; }
.site-header nav a:not(.button):hover, .site-header nav a[aria-current] { color: var(--text); }

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.button:hover { background: #1d4ed8; transform: translateY(-1px); }
.button-small { padding: 7px 14px; border-radius: 10px; font-size: 14px; }
.button-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.button-ghost:hover { background: var(--surface); }

/* Chips and meta line */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text-muted); font-size: 14px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.chip-guide { background: var(--primary-soft); color: var(--primary); }

/* Overview (tour reports) */
.hub { max-width: 1160px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 32px) 64px; }
.hub-header { max-width: 720px; margin-bottom: 32px; }
.hub-header h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -.03em; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 24px 0 40px; }
.post-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card-image { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--border); }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.post-card strong { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.post-card-text { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* Article */
.post { padding: clamp(28px, 6vw, 56px) clamp(16px, 4vw, 32px) 64px; }
.post-header, .post-body { max-width: 720px; margin: 0 auto; }
.crumbs { margin-bottom: 18px; color: var(--text-muted); font-size: 14px; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.post-header h1 { margin: 14px 0 16px; font-size: clamp(32px, 5.5vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
.lead { color: var(--text-muted); font-size: 20px; line-height: 1.55; }
.post-cover { max-width: 1040px; margin: 36px auto 44px; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 500; object-fit: cover; }

.post-body h2 { margin: 44px 0 12px; font-size: 26px; line-height: 1.25; letter-spacing: -.015em; }
.post-body h3 { margin: 24px 0 4px; font-size: 19px; }
.post-body p { margin: 0 0 16px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin-bottom: 6px; }
.post-body li::marker { color: var(--primary); }
.post-body ul.checks { padding: 0; list-style: none; }
.post-body ul.checks li { position: relative; padding-left: 32px; }
.post-body ul.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .42em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.5 7' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.screenshot { margin: 36px 0; }
.screenshot img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.screenshot figcaption { margin-top: 10px; color: var(--text-muted); font-size: 14px; text-align: center; }


.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin: 44px 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff;
}
.cta h2 { margin: 0 0 6px; color: #fff; font-size: 23px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .button { background: #fff; color: #1d4ed8; }
.cta .button:hover { background: #eff6ff; }
.cta .button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.cta .button-ghost:hover { background: rgba(255, 255, 255, .12); }

.related { max-width: 1040px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
.related h2 { margin: 0 0 4px; font-size: 26px; }

/* Card figures (tour reports) */
.post-card-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.post-card-facts b { display: block; color: var(--text); font-size: 16px; font-weight: 700; }

/* Tour report */
.report-cover img { aspect-ratio: 16 / 9; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  max-width: 1040px;
  margin: -16px auto 40px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.facts div { padding: 16px 18px; background: var(--surface); }
.facts dt { color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 750; letter-spacing: -.01em; }
.report-photo { margin: 32px 0; }
.report-photo img { display: block; width: auto; max-width: 100%; max-height: min(78vh, 720px); margin: 0 auto; border-radius: 14px; }
.report-photo figcaption { margin-top: 8px; color: var(--text-muted); font-size: 14px; text-align: center; }
.report-map { height: clamp(280px, 50vh, 460px); margin: 16px 0 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--border); }
.track-symbol { background: none; border: 0; }
.track-symbol svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .35)); }
.profile { display: block; width: 100%; height: auto; margin: 8px 0 16px; padding: 8px 4px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.profile text { fill: var(--text-muted); font-size: 16px; font-family: inherit; }
.profile .grid { stroke: var(--border); stroke-width: 1; }
.profile .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.report-download { margin: 0 0 8px; }
.info { display: grid; gap: 0; margin: 0 0 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.info div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.info div:last-child { border-bottom: 0; }
.info dt { color: var(--text-muted); font-weight: 600; }
.info dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 8px 0 28px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* Empty overview */
.empty { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; margin: 8px 0 40px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty img { display: block; width: 100%; height: 100%; object-fit: cover; }
.empty > div { padding: clamp(24px, 4vw, 44px); }
.empty h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.empty p { color: var(--text-muted); }

/* FAQ page: one plain list, each question opens its answer right below */
.faq-page { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) clamp(16px, 4vw, 32px) 56px; }
.faq-page h1 { margin: 0 0 24px; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.faq-contact { margin: 28px 0 0; color: var(--text-muted); font-size: 16px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { position: relative; padding: 14px 36px 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; color: var(--primary); font-size: 22px; font-weight: 400; line-height: 1; transform: translateY(-50%); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { margin: -4px 0 0; padding: 0 36px 16px 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.55; }

.note { padding: 14px 16px; background: var(--note-bg); color: var(--note-text); border-radius: 12px; font-size: 15px; }

/* Slim footer, identical to the landing page (.gb-footer in src/index.css) */
.gb-footer { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--border); }
.gb-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; max-width: 1160px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px); }
.gb-footer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gb-footer-brand img { flex-shrink: 0; }
.gb-footer-brand div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; line-height: 1.3; }
.gb-footer-brand strong { color: var(--text); font-size: 15px; font-weight: 800; }
.gb-footer-brand span { color: var(--text-muted); font-size: 13px; }
.gb-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 20px; font-size: 13px; }
.gb-footer-legal a { color: var(--text-muted); text-decoration: none; }
.gb-footer-legal a:hover { color: var(--text); }
.gb-footer-social { display: flex; gap: 6px; }
.gb-social-link { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); transition: color .15s, border-color .15s, transform .15s; }
.gb-social-link:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.gb-social-link.is-soon { opacity: .45; cursor: default; }
.gb-social-link.is-soon:hover { color: var(--text-muted); border-color: var(--border); transform: none; }
@media (max-width: 760px) {
  .gb-footer-inner { flex-direction: column; justify-content: center; padding-block: 16px; }
  .gb-footer-brand div { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .site-header nav { gap: 6px 16px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-cover { margin: 24px -16px 32px; border-radius: 0; }
  .post-cover img { aspect-ratio: 1200 / 630; }
  .facts { margin: -8px 0 32px; }
  .facts dd { font-size: 19px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .profile text { font-size: 22px; }
  .empty { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .gb-footer, .cta, .related, .post-cover, .report-map, .report-download { display: none; }
}
