/* SERP Snippet Preview + Open Graph & Social Preview (Phase 5 finish). Builds on schema-tool.css / crawler-tool.css. */
.snp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 14px; }
.snp-fields .sch-field:nth-child(-n+2) { grid-column: 1 / -1; }
.snp-meter { height: 6px; background: #eef1f5; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.snp-meter > span { display: block; height: 100%; width: 0; border-radius: 99px; background: #9aa4b2; transition: width .2s; }
.snp-meter.is-good > span { background: var(--sch-good); } .snp-meter.is-ok > span { background: #e0a100; } .snp-meter.is-bad > span { background: var(--sch-bad); }
.snp-switch { margin-bottom: 12px; }
.snp-serp { font-family: Arial, sans-serif; max-width: 652px; padding: 16px; border: 1px solid var(--sch-line); border-radius: 12px; background: #fff; }
.snp-serp[data-view="mobile"] { max-width: 400px; }
.snp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.snp-fav { width: 26px; height: 26px; border-radius: 50%; background: #e8f0fe; color: #1a0dab; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; }
.snp-sname { display: block; font-size: 14px; color: #202124; line-height: 1.3; }
.snp-crumb { display: block; font-size: 12px; color: #4d5156; line-height: 1.3; word-break: break-all; }
.snp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 2px 0 4px; }
.snp-serp[data-view="mobile"] .snp-title { font-size: 18px; }
.snp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.snp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.snp-card { margin: 0; }
.snp-card figcaption { font-weight: 700; font-size: 13px; color: var(--sch-ink-2); margin-bottom: 6px; }
.snp-card-body { border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; background: #fff; }
.snp-img { aspect-ratio: 1.91 / 1; background: #f0f2f5; }
.snp-img img, .snp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snp-img.is-empty, .snp-thumb.is-empty { background: repeating-linear-gradient(45deg, #f0f2f5, #f0f2f5 10px, #e4e6eb 10px, #e4e6eb 20px); }
.snp-text { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: #f0f2f5; }
.snp-text strong { font-size: 15px; line-height: 1.3; color: #050505; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snp-text p { margin: 0; font-size: 13px; color: #65676b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snp-dom { font-size: 12px; color: #65676b; }
.is-li .snp-text, .is-x .snp-text { background: #fff; }
.is-x .snp-card-body, .is-x .snp-img { border-radius: 16px; }
.snp-card .snp-card-body:has(.snp-thumb) { display: flex; }
.snp-thumb { width: 96px; min-height: 96px; flex: none; background: #f0f2f5; }
.is-wa .snp-card-body { background: #d9fdd3; border-color: #c4ecbd; }
.is-wa .snp-text { background: #d9fdd3; }
@media (max-width: 640px) { .snp-fields, .snp-cards { grid-template-columns: 1fr; } }
/* right-to-left pages: the user's own text follows its own direction (rtl.css forces .form-control to rtl) */
.snp-fields .form-control[dir="auto"] { unicode-bidi: plaintext; text-align: start; }
.snp-serp[dir="rtl"] .snp-crumb { text-align: right; }
.snp-fav img { width: 18px; height: 18px; object-fit: contain; display: block; }
