/* Bytetally — shared styles for SEO landing pages (/en/*, /zh/*).
   Loads after styles.css; reuses its tokens (:root vars) and .nav/.btn/.wrap. */

/* The hidden attribute is only implemented by the UA stylesheet
   ([hidden]{display:none}), and ANY display in an author stylesheet beats it —
   that's cascade origin, not specificity, so no amount of selector weight in
   the rule below would have saved us. .related and .related a both set display,
   so process-search.js setting el.hidden was a no-op: the result count changed
   while every card stayed on screen. Hence !important, and hence global rather
   than patched onto .related — the next rule that sets display would have
   reintroduced the same bug. */
[hidden] { display: none !important; }

.seo { max-width: 860px; margin: 0 auto; padding: 44px 24px 80px; }
.seo .crumbs { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seo .crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.seo .crumbs a:hover { color: var(--brand); }
.seo h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.2px; line-height: 1.12; margin-top: 18px; }
.seo .lede { font-size: 18.5px; line-height: 1.65; color: var(--ink-2); margin-top: 16px; }
.seo .lede strong { color: var(--ink); }
.seo h2 { font-size: 25px; letter-spacing: -0.5px; margin-top: 52px; }
.seo h3 { font-size: 18.5px; margin-top: 30px; }
.seo p, .seo li { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; margin-top: 13px; }
.seo ul, .seo ol { margin-top: 8px; padding-left: 24px; }
.seo li { margin-top: 8px; }
.seo li::marker { color: var(--brand); font-weight: 700; }
.seo a:not(.btn) { color: var(--brand); font-weight: 600; }
.seo strong { color: var(--ink); }
.seo .updated { color: var(--ink-3); font-size: 13.5px; margin-top: 12px; }

/* Product screenshot */
.seo .shot { margin-top: 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.seo .shot img { display: block; width: 100%; height: auto; }
.seo .shot-cap { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* Answer box — the direct, snippet-friendly answer near the top */
.seo .answer { margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--border-2); }
.seo .answer p { margin-top: 0; color: var(--ink); font-size: 16.5px; }
.seo .answer p + p { margin-top: 10px; }

/* Comparison table */
.seo .cmp-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.seo table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.seo table.cmp th, .seo table.cmp td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-2); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.seo table.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink-3); background: var(--bg-soft); }
.seo table.cmp thead th:nth-child(2) { color: var(--brand); }
.seo table.cmp tbody tr:last-child td { border-bottom: none; }
.seo table.cmp td:first-child { color: var(--ink); font-weight: 600; }
.seo .yes { color: var(--brand); font-weight: 700; }
.seo .no { color: var(--ink-3); }
.seo .part { color: var(--ink-2); }

/* Numbered how-to steps */
.seo ol.steps { list-style: none; counter-reset: step; padding-left: 0; margin-top: 18px; }
.seo ol.steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 58px; margin-top: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.seo ol.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.seo ol.steps b, .seo ol.steps strong { color: var(--ink); }

/* Honest "when the other tool wins" note */
.seo .fair { margin-top: 24px; padding: 16px 20px; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.seo .fair p { margin-top: 0; }
.seo .fair p + p { margin-top: 10px; }

/* FAQ */
.seo .faq-item { margin-top: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.seo .faq-item h3 { margin-top: 0; font-size: 16.5px; }
.seo .faq-item p { margin-top: 8px; font-size: 15.5px; }

/* Related pages */
.seo .related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 20px; }
.seo .related a { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14.5px; line-height: 1.45; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease; }
.seo .related a:hover { border-color: var(--brand); transform: translateY(-1px); }
.seo .related a span { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; margin-top: 4px; }

/* Bottom CTA band */
.seo .cta-band { margin-top: 56px; padding: 34px 28px; text-align: center; background: var(--brand-soft); border: 1px solid var(--border-2); border-radius: var(--radius-lg); }
.seo .cta-band h2 { margin-top: 0; font-size: 24px; }
.seo .cta-band p { max-width: 520px; margin: 10px auto 0; }
.seo .cta-band .btn { margin-top: 18px; }
.seo .cta-band .req { font-size: 13px; color: var(--ink-3); margin-top: 12px; }

/* Simple footer for SEO pages */
.seo-foot { border-top: 1px solid var(--border-2); padding: 26px 24px 40px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.seo-foot a { color: var(--ink-2); font-weight: 600; text-decoration: none; margin: 0 10px; }
.seo-foot a:hover { color: var(--brand); }

/* Caveat line under a comparison table. Comparison pages state what each vendor
   documents, and a blank cell means "not documented" rather than "absent" —
   that distinction has to be visible or the table overclaims. */
.seo .note { margin-top: 10px; font-size: .88rem; color: var(--ink-3); line-height: 1.55; }

/* Process index search. Injected by process-search.js — the markup is not in the
   HTML, so a visitor without JS never sees a control that cannot work. */
.seo .proc-search { margin: 26px 0 22px; }
.seo .proc-search-field {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.seo .proc-search-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,163,106,.13); }
.seo .proc-search-field svg { flex: none; color: var(--ink-3); }
.seo .proc-search input {
  flex: 1; min-width: 0; font: inherit; font-size: .98rem;
  color: var(--ink); background: transparent; border: 0; outline: none;
}
.seo .proc-search input::-webkit-search-cancel-button { display: none; }
.seo .proc-search-clear {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); font-size: 1.25rem; line-height: 1; padding: 0 4px; border-radius: 6px;
}
.seo .proc-search-clear:hover { color: var(--ink); }
.seo .proc-search-kbd {
  flex: none; font: inherit; font-size: .76rem; color: var(--ink-3);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 7px; background: var(--bg-soft);
}
.seo .proc-search-field:focus-within .proc-search-kbd { display: none; }
.seo .proc-search-meta { margin: 9px 2px 0; font-size: .85rem; color: var(--ink-3); min-height: 1.2em; }

/* While filtering, drop the extra spacing that assumed full groups. */
body.is-searching .seo .proc-list { margin-bottom: 8px; }
