/* Plugin sheets (single-wpm_plugin_sheet.php, inc/plugin-sheets.php). Tokens: assets/css/site.css. */

.wps-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.wps-kicker .badge { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.wps-kicker .badge .icon { width: 15px; height: 15px; }
.wps-lead { max-width: 820px; }
.wps-tier-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; font-style: normal; letter-spacing: .01em; line-height: 1.5; }
.wps-tier-badge.is-free { background: #e7f7ef; color: var(--green-text); border: 1px solid #bfe8d3; }
.wps-tier-badge.is-pro { background: #f1ecff; color: #5b35c9; border: 1px solid #ddd2fb; }

/* Hero: title on the left, key facts box on the right (above the sidebar) on wide screens, under the lead otherwise */
.wps-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.wps-hero-text { min-width: 0; }
.wps-hero .wps-facts { max-width: var(--prose); padding: 16px 20px 14px; }

/* "The essentials": 3 key points under the H1, lead and date (left of the key facts box on wide screens) */
.wps-essentials { max-width: var(--prose); margin: 22px 0 0; padding: 16px 20px 14px; border: 1px solid #cfe9db; border-left: 4px solid var(--green); border-radius: 14px; background: linear-gradient(180deg, #f3fbf6, #fff 75%); }
.wps-essentials-title { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 1.05rem; letter-spacing: -.01em; }
.wps-essentials-title .icon { width: 18px; height: 18px; color: var(--green-text); flex: none; }
.wps-essentials ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.wps-essentials li { position: relative; padding-left: 28px; font-size: .97rem; line-height: 1.5; }
.wps-essentials li::before { content: counter(list-item); position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; }
.wps-hero .wps-facts-title { margin-bottom: 6px; }
.wps-hero .wps-facts dl { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 14px; }
.wps-hero .wps-facts dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; }
.wps-hero .wps-facts dt { font-size: .7rem; line-height: 1.35; }
.wps-hero .wps-facts dd { margin: 0; font-size: .93rem; line-height: 1.45; }
.wps-hero .wps-pill { display: block; width: fit-content; margin: 1px 0 3px; }
@media (min-width: 1101px) {
	.wps-hero-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; align-items: start; }
	.wps-hero .wps-facts { max-width: none; }
	.wps-hero .wps-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Cover + key facts */
.wps-top { display: grid; gap: 22px; margin: 0 0 34px; max-width: var(--prose); }
.wps-top:empty { display: none; }
.wps-out-form { display: contents; margin: 0; }
.wps-cover { margin: 0; }
.wps-facts { border: 1px solid var(--edge); border-radius: 16px; background: linear-gradient(180deg, #f7faff, #fff); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.wps-facts-title { font-size: 1.05rem; margin: 0 0 12px; letter-spacing: -.01em; }
.wps-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0 0 16px; }
.wps-facts dl > div { min-width: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.wps-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
.wps-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.wps-price { font-weight: 500; }
.wps-muted { color: var(--muted); font-weight: 500; }
.wps-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #e7f7ef; color: var(--green-text); margin-right: 4px; }
.wps-pill.is-freemium { background: #eef4ff; color: var(--blue-dark); }
.wps-pill.is-paid { background: #fff4e5; color: var(--orange); }
.wps-stars { --r: 0%; display: inline-block; width: 82px; height: 15px; vertical-align: -2px; background: linear-gradient(90deg, #f59e0b var(--r), #d8dee9 var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M11 0l3.2 7 7.6.8-5.7 5.1 1.6 7.5L11 16.6 4.3 20.4l1.6-7.5L.2 7.8 7.8 7z'/%3E%3Cuse href='%23s' x='24.5'/%3E%3Cuse href='%23s' x='49'/%3E%3Cuse href='%23s' x='73.5'/%3E%3Cuse href='%23s' x='98'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 22'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M11 0l3.2 7 7.6.8-5.7 5.1 1.6 7.5L11 16.6 4.3 20.4l1.6-7.5L.2 7.8 7.8 7z'/%3E%3Cuse href='%23s' x='24.5'/%3E%3Cuse href='%23s' x='49'/%3E%3Cuse href='%23s' x='73.5'/%3E%3Cuse href='%23s' x='98'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.wps-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wps-actions .btn { display: inline-flex; gap: 8px; align-items: center; }
.wps-actions .btn .icon { width: 18px; height: 18px; }
.wps-disclosure { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.wps-src { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

/* Content blocks written in the sheets */
.wps .entry-content h2 { scroll-margin-top: 96px; }
.wpm-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1.4rem 0 1.8rem; }
.wpm-proscons > .wp-block-group { border: 1px solid var(--edge); border-radius: 14px; padding: 18px 20px; background: #fff; min-width: 0; margin: 0 !important; }
.wpm-proscons .wpm-pros { border-top: 4px solid var(--green); background: linear-gradient(180deg, #f2fbf6, #fff 60%); }
.wpm-proscons .wpm-cons { border-top: 4px solid #d98a00; background: linear-gradient(180deg, #fff8ec, #fff 60%); }
.wpm-proscons h3 { margin: 0 0 10px; font-size: 1.05rem; }
.wpm-proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.wpm-proscons li { position: relative; padding-left: 28px; line-height: 1.5; }
.wpm-proscons li::before { content: ""; position: absolute; left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.wpm-proscons .wpm-cons li::before { background: #d98a00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.wpm-checklist { list-style: none; padding: 0; margin-left: 0 !important; margin-right: 0 !important; display: grid; gap: 8px; }
.wpm-checklist li { position: relative; padding: 10px 14px 10px 44px; border: 1px solid var(--edge); border-radius: 12px; background: #fff; }
.wpm-checklist li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--blue); background: #eef4ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231765f4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.wpm-settings-table td:first-child, .wpm-settings-table th[scope="row"] { min-width: 10em; }
.wps-diagram { margin: 1.4rem 0 1.8rem; border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; background: #f8fafc; }
.wps-diagram img { display: block; width: 100%; height: auto; }

/* What WP Feint hides */
.wps-mask { margin: 2.2rem 0 1.6rem; padding: 24px; border: 1px solid #d7e3fb; border-radius: 18px; background: linear-gradient(160deg, #f4f8ff, #fff 70%); }
.wps-mask.is-pro { border-color: #ddd2fb; background: linear-gradient(160deg, #f7f3ff, #fff 70%); }
.wps-mask > h2 { margin-top: 0; font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.wps-tier { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: .6rem; }
.wps-mask-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1rem 0; }
.wps-mask-col { background: #fff; border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.wps-mask-col h3 { font-size: .95rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.wps-mask-col h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.wps-mask-col.is-pro h3::before { background: #6d4ae0; }
.wps-mask-col.is-left h3::before { background: #94a3b8; }
.wps-mask-col ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.wps-mask-col li { margin: 0 0 4px; overflow-wrap: anywhere; }
.wps-mask-col code { font-size: .78rem; }
.wps-none { margin: 0; color: var(--muted); font-size: .9rem; }
.wps-note { font-size: .88rem; color: var(--muted); }
.wps-mask-cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: .4rem; }
.wps-mask + .wdc { margin-top: 0; }

/* Related sheets */
.wps-related-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wps-related-grid a, .wps-related-grid .o-link { position: relative; display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.wps-related-grid a:hover, .wps-related-grid .o-link:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.wps-related-grid strong { color: var(--blue-dark); padding-right: 46px; }
.wps-related-grid span { font-size: .88rem; color: var(--muted); }
.wps-related-grid em { position: absolute; top: 12px; right: 12px; }
.wps-back { margin-top: 28px; }

@media (max-width: 760px) {
	.wps-facts { padding: 16px; }
	.wps-facts dl, .wpm-proscons, .wps-mask-cols, .wps-related-grid { grid-template-columns: minmax(0, 1fr); }
	.wps-mask { padding: 18px 16px; }
	.wps-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media print {
	.wps-actions, .wps-mask-cta, .wdc { display: none !important; }
}
