/* Shared styles for the SEO tools (previews, length bars, small tables). Loaded only on those tool pages. */
.seo-prev-h { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.seo-prev { background: #fff; color: #202124; margin-bottom: 16px; }
.seo-actions { margin: 0 0 16px; }
.seo-h { font-size: 1rem; margin: 18px 0 8px; }
.seo-tips { margin: 0 0 12px; padding-left: 20px; }
.seo-tips li { margin: 4px 0; }

/* Google-style result */
.seo-serp { font-family: Arial, Helvetica, sans-serif; max-width: 600px; text-align: left; }
.seo-serp-desktop { width: 600px; } /* real desktop width; the .preview panel scrolls sideways on phones */
.seo-serp-mobile { max-width: 360px; }
.seo-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; min-width: 0; }
.seo-serp-ico { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; color: #5f6368;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.seo-serp-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.seo-serp-name { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-serp-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 3px; overflow-wrap: anywhere; }
.seo-serp-desktop .seo-serp-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.seo-serp-desc b { color: #202124; font-weight: 700; }

/* Length bars */
.seo-bar { margin: 0 0 14px; }
.seo-bar-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .9rem; margin-bottom: 6px; }
.seo-bar-h span { font-weight: 600; }
.seo-bar-h b { font-weight: 500; color: var(--muted); }
.seo-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.seo-meter i { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .15s; }
.seo-meter i.seo-warn { background: var(--warn); }
.seo-meter i.seo-err { background: var(--err); }
.seo-bar small { display: block; margin-top: 5px; font-size: .84rem; color: var(--muted); }
.seo-bar small.seo-err-t { color: var(--err); }

/* Link preview card (Open Graph, X cards) */
.seo-card { max-width: 500px; border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; background: #fff; text-align: left;
  font-family: Helvetica, Arial, sans-serif; }
.seo-card-img { position: relative; aspect-ratio: 1200 / 630; background: #e4e6eb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.seo-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.seo-card-img span { display: none; color: #65676b; font-size: 13px; }
.seo-card-img.seo-noimg span { display: block; }
.seo-card-body { padding: 10px 12px 12px; background: #f0f2f5; border-top: 1px solid #dadde1; min-width: 0; }
.seo-card-host { font-size: 12px; text-transform: uppercase; color: #65676b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-card-title { font-size: 16px; font-weight: 600; line-height: 1.25; color: #050505; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.seo-card-desc { font-size: 14px; line-height: 1.35; color: #65676b; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.seo-card-desc:empty { display: none; }
.seo-card-sm { display: flex; max-width: 520px; }
.seo-card-sm .seo-card-img { flex: 0 0 120px; aspect-ratio: 1 / 1; }
.seo-card-sm .seo-card-body { flex: 1 1 auto; border-top: 0; border-left: 1px solid #dadde1; display: flex; flex-direction: column; justify-content: center; }

/* Email signature preview: emails are read on white, so keep the panel white in every theme */
.seo-sig { padding: 18px; overflow-x: auto; }
.seo-sig img { max-width: none; }

@media (max-width: 480px) {
  .seo-card-sm .seo-card-img { flex-basis: 92px; }
  .seo-serp-title { font-size: 18px; }
}
