/* Product guides extend the approved site; homepage showcases stay unchanged. */
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 22px 0 0; font-size: .875rem; color: var(--muted); }
.guide-breadcrumb a, .product-guide a:not(.button), .company-products a, .faq details > p a { text-decoration: underline; text-underline-offset: 4px; }
.guide-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-breadcrumb span { display: inline-flex; align-items: center; min-height: 44px; }
.product-guide { max-width: 1000px; padding-bottom: clamp(64px, 8vw, 104px); }
.guide-hero { padding: clamp(32px, 6vw, 64px) 0 clamp(36px, 6vw, 64px); max-width: 780px; }
.guide-kicker { display: flex; align-items: center; gap: 14px; font-size: .875rem; font-weight: 500; color: var(--green); }
.guide-kicker img { width: 48px; height: 38px; object-fit: contain; }
.guide-hero h1 { margin-block: 20px 24px; font: 400 clamp(2.5rem, 5.6vw, 4.5rem)/1.08 var(--type-serif); letter-spacing: -.035em; text-wrap: balance; }
.guide-hero h1 em { color: #7b5e37; font-style: italic; }
.guide-lead { max-width: 66ch; font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }
.guide-status { width: fit-content; margin-top: 24px; padding: 8px 15px; border: 1px solid #c8d5c3; border-radius: 999px; font-size: .875rem; line-height: 1.5; background: #e8eee0; color: var(--green); }
.guide-figure { margin-bottom: clamp(48px, 7vw, 76px); }
.guide-figure > a { display: block; padding: 12px; overflow: hidden; border: 1px solid #c8d5c3; border-radius: 16px; background: var(--white); }
.guide-figure img { width: 100%; height: auto; border-radius: 8px; }
.guide-figure figcaption { margin: 14px 2px 0; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.guide-section { max-width: 72ch; margin: 0 auto; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.guide-section h2, .guide-invitation h2 { margin-bottom: 22px; font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--type-serif); letter-spacing: -.025em; }
.guide-section h3 { margin: 28px 0 10px; font-size: 1.125rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.guide-section p, .guide-section li, .guide-invitation p { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.guide-section p + p { margin-top: 20px; }
.guide-section ul { padding-left: 22px; margin: 20px 0 0; }
.guide-section li + li { margin-top: 12px; }
.guide-example { margin-top: 28px; padding: clamp(20px, 4vw, 32px); border-radius: 14px; border: 1px solid #dfd0b4; background: #f4eddd; }
.guide-example p + p { margin-top: 20px; }
.guide-example strong { display: block; margin-bottom: 5px; color: var(--ink); }
.lesson-reading-link { display: inline-block; margin-top: 16px; text-decoration: underline; text-underline-offset: 4px; }
.reading-guide { max-width: 810px; }
.reading-guide .guide-hero, .reading-guide .guide-section { max-width: 68ch; margin-inline: auto; }
.reading-guide .guide-example + p { margin-top: 20px; }
.reading-guide details.guide-example { padding-block: 8px; }
.reading-guide .guide-example summary { min-height: 48px; padding-block: 12px; font-size: 1rem; }
.reading-guide details.guide-example p { padding: 0 0 16px; }
.reading-guide:lang(zh-HK) .guide-section p { line-height: 1.95; }
.reading-guide:lang(zh-HK) h1, .reading-guide:lang(zh-HK) h2 { letter-spacing: 0; line-height: 1.35; }
.guide-invitation { max-width: 72ch; margin: 32px auto 0; padding: clamp(24px, 5vw, 40px); border: 1px solid #c8d5c3; border-radius: 20px; background: #edf1e6; }
.guide-invitation .button { margin-top: 26px; }
.company-products { max-width: 780px; margin: 0 auto 64px; padding: 32px; border-top: 1px solid var(--line); }
.company-products h2 { font: 400 clamp(1.625rem, 3vw, 2rem)/1.25 var(--type-serif); letter-spacing: -.025em; margin-bottom: 20px; }
.company-products p { max-width: 65ch; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.company-products p + p { margin-top: 18px; }
@media (max-width: 600px) {
  .guide-breadcrumb { padding-top: 10px; }
  .guide-hero { padding-top: 24px; }
  .guide-lead { font-size: 1rem; }
  .guide-figure > a { padding: 6px; border-radius: 12px; }
  .guide-figure figcaption { margin-top: 16px; }
  .guide-invitation .button { width: 100%; padding-inline: 18px; }
  .company-products { padding: 28px 0; margin-bottom: 48px; }
}

/* Home and both product guides share the same full-resolution screenshot viewer. */
.guide-enlarge { display: block; padding: 6px 4px 0; text-align: right; color: var(--green); font-size: .8125rem; }
.product-sample-viewer {
  width: min(1060px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.product-sample-viewer::backdrop { background: #20352aa6; }
.product-sample-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.product-sample-dialog-heading h2 { font: 400 clamp(1.375rem, 3vw, 2rem)/1.25 var(--type-serif); letter-spacing: -.03em; }
.product-sample-dialog-heading button, .product-sample-zoom {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--type-control);
  cursor: pointer;
}
.product-sample-dialog-heading button:hover, .product-sample-zoom:hover { border-color: var(--green); }
.product-sample-dialog-image {
  max-height: min(65dvh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.product-sample-dialog-image:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.product-sample-dialog-image img { width: auto; max-width: 100%; max-height: min(65dvh - 2px, 718px); margin-inline: auto; }
.product-sample-dialog-image[data-zoomed] img { max-width: none; max-height: none; }
.product-sample-tools { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; }
.product-sample-zoom { margin-top: 8px; background: #e9efe3; color: var(--green); }
