/*
Theme Name: SOVEL
Theme URI: https://sovel.pro/
Author: P. Adhil Khan
Author URI: https://sovel.pro/author/
Description: The SOVEL theme — an evidence-aware product platform. Light-first design system, accessible by default, zero runtime dependencies. Built to present systems, engines, software, research and library products truthfully.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sovel
Tags: accessibility-ready, custom-colors, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

/*
 * ---------------------------------------------------------------------------
 * The SOVEL design system lives in assets/css/sovel.css and is enqueued
 * separately. This file carries the theme header WordPress requires plus a
 * small number of WordPress-specific rules that must not leak into the
 * portable design system.
 * ---------------------------------------------------------------------------
 */

/* WordPress core alignment classes ---------------------------------------- */
.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	margin-inline: calc(50% - 50vw + 1.5rem);
	max-width: 100vw;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

/* WordPress caption + gallery --------------------------------------------- */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 0.75rem;
	color: var(--ink-subtle);
	font-size: var(--fs-sm);
}

.gallery {
	display: grid;
	gap: var(--s-4);
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Screen-reader text used by WordPress core -------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/* WordPress admin bar offset ----------------------------------------------- */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* Sticky header must not fight the admin bar on small screens -------------- */
@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		position: static;
	}
}

/* Block editor content inside a page --------------------------------------- */
.entry-content > * + * {
	margin-top: var(--s-4);
}

.entry-content h2 {
	margin-top: var(--s-9);
}

.entry-content h3 {
	margin-top: var(--s-7);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

/* Hide the theme's own notice when a page supplies its own content ---------- */
.entry-content:empty {
	display: none;
}
