/*
 * VYBE SiteKit — the few things Elementor's controls cannot say.
 * Everything else on the pages is set in Elementor and can be changed there.
 */

/* Title bands: breadcrumbs sit quietly above the title. */
.vsk-crumbs .elementor-icon-list-item:first-child .elementor-icon-list-icon svg { width: 14px; }
.vsk-crumbs .elementor-icon-list-items { flex-wrap: wrap; row-gap: 4px; }
.vsk-crumbs .elementor-icon-list-item:last-child .elementor-icon-list-text { opacity: .85; }

/* Grid children never overflow their track (long DOIs, e-mail addresses). */
.vsk-body, .vsk-card, .vsk-tool { min-width: 0; }
.vsk-body .elementor-widget-text-editor a,
.vsk-card .elementor-widget-text-editor a { overflow-wrap: anywhere; }

/* Reading text: lists breathe, tables scroll on phones. */
.vsk-body .elementor-widget-text-editor ul,
.vsk-body .elementor-widget-text-editor ol { margin: 0 0 1em; padding-inline-start: 1.25em; }
.vsk-body .elementor-widget-text-editor li { margin: .35em 0; }
.vsk-body .elementor-widget-text-editor li::marker { color: var(--e-global-color-vskhigh, #A65A22); }
.vsk-body .elementor-widget-text-editor table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; }
.vsk-body .elementor-widget-text-editor th,
.vsk-body .elementor-widget-text-editor td { border: 1px solid var(--e-global-color-vskline, #D2DCE7); padding: .55em .8em; text-align: start; }
.vsk-body h2.elementor-heading-title { scroll-margin-top: 120px; }

/* Cards: equal heights in a row, buttons at the foot. */
.vsk-card--article, .vsk-card--issue { height: 100%; align-content: start; }
.vsk-card--article > .elementor-element:last-child,
.vsk-card--issue > .elementor-element:last-child { align-self: end; }
.vsk-card--issue .elementor-widget-image img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }

/* Icons drawn as SVG take the widget's colour (Phosphor duotone). */
.elementor-icon-list-icon svg, .elementor-icon svg, .elementor-button-icon svg { fill: currentColor; }

/* The tool pages: VYBE OJS Publish's forms fill their card. */
.vsk-tool .elementor-shortcode > * { max-width: 100%; }

/* The hero's issue card sits to the right, not stretched. */
.vsk-hero .vsk-hero-issue { justify-self: end; max-width: 380px; width: 100%; }

/* Keyboard focus is always visible. */
.vsk-band a:focus-visible, .vsk-card a:focus-visible, .vsk-band .elementor-button:focus-visible {
	outline: 3px solid var(--e-global-color-vskglow, #E3A36B);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.vsk-card, .vsk-card * { transition: none !important; transform: none !important; }
}
