/* Guide pages.
   Same rhythm as the landing page: dark masthead, paper article, dark footer.
   This matters beyond looks — .nav is cream-on-dark and .nav-cta is
   white-on-transparent, so a guide page with a light header would render an
   invisible navigation bar. */

.guide-head {
  position: relative;
  background: var(--ink);
  color: #f7f4ee;
  padding: 122px clamp(24px, 6vw, 96px) clamp(54px, 7vw, 86px);
}
/* Masthead text sits on the same 720px spine as the article below it, so the
   left edge of the headline lines up with the left edge of the body copy. */
.guide-head > .guide-crumb,
.guide-head > .eyebrow,
.guide-head > h1,
.guide-head > .guide-lede { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }

.guide-head .eyebrow { color: #e8703a; margin-bottom: 18px; }
.guide-head h1 {
  font: 600 clamp(34px, 5.2vw, 62px)/1.05 Newsreader, serif;
  letter-spacing: -.04em;
  margin: 0 auto;
}
.guide-lede {
  color: #c7c1b5;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
  margin: 26px auto 0;
}
.guide-crumb { font-size: 13px; color: #8c867a; margin: 0 auto 20px; }
.guide-crumb a { color: #c7c1b5; text-decoration: none; border-bottom: 1px solid #ffffff2e; }
.guide-crumb a:hover { border-bottom-color: #f7f4ee; }

.guide-body {
  background: var(--paper);
  padding: clamp(54px, 7vw, 92px) clamp(24px, 6vw, 96px) clamp(70px, 9vw, 118px);
}
.guide-body-inner { max-width: 720px; margin: 0 auto; }

.guide-body h2 {
  font: 600 clamp(25px, 3.1vw, 38px)/1.12 Newsreader, serif;
  letter-spacing: -.03em;
  margin: 62px 0 14px;
}
.guide-body > .guide-body-inner > h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 19px; font-weight: 700; margin: 34px 0 8px; }
.guide-body p, .guide-body li { color: #3f3d38; font-size: 17px; line-height: 1.72; }
.guide-body ul, .guide-body ol { padding-left: 20px; margin: 16px 0; }
.guide-body li { margin: 9px 0; }
.guide-body li::marker { color: var(--accent); font-weight: 700; }
.guide-body a { color: var(--ink); text-decoration: none; border-bottom: 1px solid #1c1b1840; }
.guide-body a:hover { border-bottom-color: var(--ink); }

.guide-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15.5px;
  background: var(--white);
  border: 1px solid var(--line);
}
.guide-body th, .guide-body td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.guide-body th {
  background: var(--ink);
  color: #f7f4ee;
  font-weight: 650;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.guide-body tr:last-child td { border-bottom: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 18px 22px;
  margin: 26px 0;
  border-radius: 0 12px 12px 0;
}
.note p { margin: 0; color: var(--muted); }

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 22px;
  margin: 16px 0;
}
.quote p { margin: 0; font-size: 16px; }

.cta-box {
  background: var(--ink);
  color: #f7f4ee;
  border-radius: 20px;
  padding: clamp(26px, 3.4vw, 40px);
  margin: 54px 0;
  box-shadow: 0 24px 60px #1c1b1826;
}
.cta-box strong {
  display: block;
  font: 600 clamp(22px, 2.4vw, 30px)/1.15 Newsreader, serif;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.cta-box p { margin: 0; color: #c7c1b5; font-size: 16px; line-height: 1.62; max-width: 52ch; }
.cta-box .button { margin-top: 22px; }

.read-next {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.read-next a { margin-right: 16px; }

.guide-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  margin: 22px 0 8px;
}
.guide-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px #1c1b181f; border-color: #cfc8b8; }
.guide-card strong { display: block; font: 600 21px/1.25 Newsreader, serif; color: var(--ink); margin-bottom: 8px; }
.guide-card span { display: block; color: var(--muted); font-size: 15px; line-height: 1.6; }
.guide-card em {
  display: inline-block;
  margin-top: 14px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Newsreader carries no CJK glyphs, so Chinese headings fall back to a system
   serif. Tight negative tracking looks wrong there. */
[lang^="zh"] .guide-head h1,
[lang^="zh"] .guide-body h2,
[lang^="zh"] .cta-box strong,
[lang^="zh"] .guide-card strong {
  font-family: Newsreader, "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  letter-spacing: 0;
}
[lang^="zh"] .guide-body p, [lang^="zh"] .guide-body li { line-height: 1.85; }
[lang^="zh"] .guide-head h1 { max-width: 20ch; }

@media (max-width: 720px) {
  .guide-head { padding-top: 98px; }
  .guide-body p, .guide-body li { font-size: 16.5px; }
  .guide-body table { font-size: 14.5px; }
  .guide-body th, .guide-body td { padding: 11px 12px; }
  .cta-box { margin: 42px 0; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p { text-align: center; }
  footer div:last-child { justify-content: center; }
}

@media (max-width: 560px) {
  /* Reference strings such as INV-2026-0001 and SST W10-2309-321845 cannot
     wrap on their own and would otherwise push a table wider than the phone. */
  .guide-body table { font-size: 13.5px; table-layout: fixed; }
  .guide-body th, .guide-body td { padding: 9px 9px; overflow-wrap: anywhere; }
  .guide-head h1 { letter-spacing: -.03em; }
  .guide-body h2 { margin-top: 48px; }
  .read-next a { display: inline-block; margin: 0 14px 8px 0; }
}
