/* ==========================================================================
   TFUCare — guide/article compatibility layer.
   The six existing guides were authored against the previous stylesheet's
   class names. This file re-implements those class names on top of the new
   design tokens in site.css, so the guides inherit the new visual system
   without their content being rewritten.
   ========================================================================== */

.guide-wrap { max-width: 800px; margin: 0 auto; }
.guide-h1 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.22; margin-bottom: 12px; color: var(--ink);
}
.guide-meta {
  font-size: 13.5px; color: var(--muted); margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.guide-body { font-size: 16.5px; color: var(--ink-soft); }
.guide-body > p:first-of-type { font-size: 17.5px; color: var(--ink); }

.guide-body h2 {
  font-size: 23px; font-weight: 800; color: var(--ink);
  margin: 40px 0 13px; padding-top: 4px; letter-spacing: -.02em;
}
.guide-body h3 {
  font-size: 18.5px; font-weight: 800; color: var(--ink); margin: 27px 0 9px;
}
.guide-body p { margin-bottom: 15px; }
.guide-body ul, .guide-body ol { margin: 0 0 17px; padding-left: 22px; }
.guide-body li { margin-bottom: 8px; }
.guide-body b, .guide-body strong { color: var(--ink); font-weight: 700; }
.guide-body a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }
.guide-body a:hover { color: var(--jade-700); }

.guide-photo {
  width: 100%; height: auto; border-radius: var(--radius);
  margin: 22px 0; box-shadow: var(--shadow-sm);
}
.guide-body figure { margin: 24px 0; }
.guide-body figure img { border-radius: var(--radius); }
.guide-body figcaption {
  font-size: 13.5px; color: var(--muted); margin-top: 9px; text-align: center;
}

/* Tables inside guides reuse the .price-table class from the old build */
.guide-body .price-table,
.guide-body table {
  width: 100%; border-collapse: collapse; font-size: 15px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: 20px 0;
}
.guide-body .price-table th,
.guide-body table th {
  background: var(--navy-100); text-align: left; font-weight: 800; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.guide-body .price-table td,
.guide-body table td {
  padding: 12px 14px; border-bottom: 1px solid #eef3f8; vertical-align: top;
}
.guide-body .price-table tr:last-child td,
.guide-body table tr:last-child td { border-bottom: 0; }
.guide-body .price-table td:first-child,
.guide-body table td:first-child { font-weight: 600; color: var(--ink); }

.guide-note {
  font-size: 13px; color: var(--muted); line-height: 1.65;
  background: var(--tint); border-left: 3px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 17px; margin: 20px 0;
}

.guide-cta {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 34px 0;
}
.guide-cta > b { display: block; font-size: 17.5px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.guide-cta > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 15px; }

.guide-related {
  margin: 42px 0 0; padding-top: 24px; border-top: 1px solid var(--line);
}
.guide-related h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 13px; }
.guide-related ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.guide-related a { font-size: 15px; color: var(--jade); }

/* Mobile: turn guide tables into stacked labelled cards (data-label driven) */
@media (max-width: 700px) {
  .guide-body .price-table,
  .guide-body .price-table tbody,
  .guide-body .price-table tr,
  .guide-body .price-table td { display: block; width: 100%; }
  .guide-body .price-table thead { display: none; }
  .guide-body .price-table { border: 0; background: none; }
  .guide-body .price-table tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 10px 0; margin-bottom: 10px; background: #fff;
  }
  .guide-body .price-table tr:last-child { margin-bottom: 0; }
  .guide-body .price-table td { border-bottom: 0; padding: 4px 14px; }
  .guide-body .price-table td::before {
    content: attr(data-label);
    display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 1px;
  }
  .guide-body .price-table td:first-child { font-size: 16px; padding-bottom: 7px; }
  .guide-body .price-table td:first-child::before { content: none; }
}

/* Inline figures used by the Sichuan travel guide */
.guide-img {
  width: 100%; height: auto; border-radius: var(--radius);
  margin: 18px 0 6px; box-shadow: var(--shadow-sm);
}
.guide-cap {
  display: block; font-size: 13.5px; color: var(--muted);
  margin: 0 0 22px; line-height: 1.6;
}
