/* Vyntic Hub public pages. Colours follow the Vyntic brand; themes can override the variables. */
.vh-pl, .vh-p-grid {
	--vh-ink: #0f2b2e;
	--vh-accent: #c7431f;
	--vh-accent-deep: #a8361a;
	--vh-coral: #f4a48c;
	--vh-mist: #eef3f1;
	--vh-line: #d5e0dd;
	--vh-muted: #4a6266;
	--vh-radius: 14px;
	--vh-display: var(--font-display, inherit);
}

/* Buttons */
.vh-p-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.25em; border: 1.5px solid var(--vh-accent); border-radius: 999px; background: var(--vh-accent); color: #fff !important; font-weight: 600; line-height: 1.2; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; }
.vh-p-btn:hover { background: var(--vh-accent-deep); border-color: var(--vh-accent-deep); }
.vh-p-btn--ghost { background: transparent; border-color: var(--vh-ink); color: var(--vh-ink) !important; }
.vh-p-btn--ghost:hover { background: var(--vh-ink); border-color: var(--vh-ink); color: #fff !important; }
.vh-p-btn--lg { min-height: 52px; padding: .75em 1.8em; font-size: 1.05em; }
.vh-p-btn--block { display: flex; width: 100%; }
.vh-p-btn:focus-visible { outline: 3px solid var(--vh-coral); outline-offset: 2px; }

/* Icons */
.vh-p-icon, .vh-pl-icon { flex: none; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.vh-pl-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.vh-p-icon-ph { display: grid; place-items: center; background: var(--vh-ink); padding: 14%; }
.vh-p-icon-ph svg { width: 100%; height: 100%; display: block; }

/* Grid */
.vh-p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin: 0; }
.vh-p-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--vh-line); border-radius: 20px; background: #fff; color: var(--vh-ink); transition: transform .2s, box-shadow .2s; min-width: 0; }
.vh-p-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(15,43,46,.45); }
.vh-p-card-head { display: flex; gap: 16px; align-items: center; }
.vh-p-card h3 { margin: 0; font-family: var(--vh-display); font-size: 1.25rem; line-height: 1.2; }
.vh-p-card h3 a { color: inherit; text-decoration: none; }
.vh-p-card h3 a:hover { color: var(--vh-accent); }
.vh-p-card-by { margin: 4px 0 0; color: var(--vh-muted); font-size: .9rem; }
.vh-p-card-desc { margin: 0; flex: 1; color: var(--vh-muted); line-height: 1.55; }
.vh-p-card-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--vh-line); list-style: none; font-size: .9rem; font-weight: 600; }
.vh-p-card-meta li { margin: 0; }
.vh-p-card-meta span { display: block; color: var(--vh-muted); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.vh-p-card-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.vh-p-card-foot .vh-p-btn { flex: 1 1 120px; }
.vh-p-empty { color: var(--vh-muted); }

/* Single plugin page */
.vh-pl { color: var(--vh-ink); }
.vh-pl-head { position: relative; overflow: hidden; border-radius: 22px; background: var(--vh-banner, none) center / cover no-repeat, radial-gradient(70% 90% at 92% 0%, rgba(199,67,31,.45), transparent 60%), var(--vh-ink); color: #fff; }
.vh-pl-head::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(211,226,223,.10) 1.5px, transparent 1.5px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); pointer-events: none; }
.vh-pl-head-in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 28px; padding: clamp(24px, 4vw, 44px); }
.vh-pl-title { flex: 1 1 320px; min-width: 0; }
.vh-pl-name { margin: 0; color: #fff; font-family: var(--vh-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.vh-pl-short { margin: 12px 0 0; color: #d3e2df; font-size: 1.1rem; line-height: 1.5; max-width: 60ch; }
.vh-pl-by { margin: 10px 0 0; color: #9db6b2; font-size: .95rem; }
.vh-pl-by a { color: var(--vh-coral); font-weight: 600; }
.vh-pl-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vh-pl-cta span { color: #9db6b2; font-size: .85rem; }

.vh-pl-tabs { display: flex; gap: 4px; margin: 24px 0 0; border-bottom: 1px solid var(--vh-line); overflow-x: auto; scrollbar-width: none; }
.vh-pl-tabs a { flex: none; padding: 12px 16px; border-bottom: 3px solid transparent; color: var(--vh-muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.vh-pl-tabs a:hover { color: var(--vh-ink); }
.vh-pl-tabs a.is-active { color: var(--vh-ink); border-bottom-color: var(--vh-accent); }
.vh-pl-tabs a span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--vh-mist); font-size: .75rem; }

.vh-pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); margin-top: 32px; align-items: start; }
.vh-pl-main { min-width: 0; }
.vh-pl-panel + .vh-pl-panel { margin-top: 48px; }
.vh-pl-panel > h2 { margin: 0 0 16px; font-family: var(--vh-display); font-size: 1.75rem; line-height: 1.15; }
.vh-pl-panel h3 { font-family: var(--vh-display); font-size: 1.15rem; margin: 1.6em 0 .5em; }
.vh-pl-panel ul, .vh-pl-panel ol { padding-left: 1.25em; }
.vh-pl-panel li { margin: .45em 0; }
.vh-pl-panel code { padding: .1em .35em; border-radius: 4px; background: var(--vh-mist); font-size: .9em; overflow-wrap: anywhere; }
.vh-pl-panel pre { overflow-x: auto; padding: 16px; border-radius: 10px; background: var(--vh-ink); color: #d3e2df; }
.vh-pl-panel pre code { background: none; padding: 0; color: inherit; }
.vh-pl.has-tabs .vh-pl-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vh-pl.has-tabs .vh-pl-panel + .vh-pl-panel { margin-top: 0; }

.vh-faq { display: grid; gap: 10px; }
.vh-faq-item { border: 1px solid var(--vh-line); border-radius: var(--vh-radius); background: #fff; }
.vh-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.vh-faq-item summary::-webkit-details-marker { display: none; }
.vh-faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vh-mist); font-weight: 700; }
.vh-faq-item[open] summary::after { content: "\2212"; background: var(--vh-accent); color: #fff; }
.vh-faq-item summary h3 { margin: 0; font-size: 1.05rem; }
.vh-faq-a { padding: 0 20px 16px; color: var(--vh-muted); }
.vh-faq-a > :first-child { margin-top: 0; }

.vh-cl { padding: 18px 0; border-bottom: 1px solid var(--vh-line); }
.vh-cl:first-child { padding-top: 0; }
.vh-cl h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px !important; }
.vh-cl h3 span { color: var(--vh-muted); font-family: inherit; font-size: .85rem; font-weight: 500; }
.vh-cl:first-child h3::after { content: "Latest"; padding: 2px 8px; border-radius: 999px; background: #e5f8ef; color: #0b6e49; font-family: inherit; font-size: .72rem; font-weight: 700; }
.vh-cl ul { margin: 0; }

.vh-pl-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.vh-pl-box { padding: 20px; border: 1px solid var(--vh-line); border-radius: 18px; background: #fff; }
.vh-pl-box h3 { margin: 0 0 8px; font-family: var(--vh-display); font-size: 1.05rem; }
.vh-pl-box p { margin: 0 0 14px; color: var(--vh-muted); font-size: .92rem; line-height: 1.5; }
.vh-pl-help h3 + p + h3 { margin-top: 0; }
.vh-pl-meta { margin: 0 0 16px; }
.vh-pl-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--vh-line); font-size: .92rem; }
.vh-pl-meta dt { color: var(--vh-muted); }
.vh-pl-meta dd { margin: 0; font-weight: 600; text-align: right; }
.vh-pl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vh-pl-tags li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--vh-mist); font-size: .85rem; }

@media (max-width: 900px) {
	.vh-pl-layout { grid-template-columns: minmax(0, 1fr); }
	.vh-pl-side { position: static; }
}
@media (max-width: 560px) {
	.vh-pl-icon { width: 84px; height: 84px; border-radius: 20px; }
	.vh-pl-cta { align-items: stretch; width: 100%; }
	.vh-pl-cta .vh-p-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vh-p-card, .vh-p-btn { transition: none; } }
