/*
Theme Name: Vylto Blank Theme
Theme URI: https://vylto.com/
Author: Vylto
Author URI: https://vylto.com/
Description: A lightweight, neutral WordPress foundation designed to work cleanly with the Vylto visual builder while remaining fully usable as a standalone theme.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vylto-blank-theme
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
    --vbt-content-width: 1200px;
    --vbt-reading-width: 760px;
    --vbt-gutter: 24px;
    --vbt-text: #111827;
    --vbt-muted: #6b7280;
    --vbt-border: #e5e7eb;
    --vbt-link: #0c54a0;
    --vbt-bg: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--vbt-bg);
    color: var(--vbt-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--vbt-link);
}

a:hover,
a:focus {
    text-decoration-thickness: 2px;
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    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 {
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.vbt-wrap {
    width: min(100% - (var(--vbt-gutter) * 2), var(--vbt-content-width));
    margin-inline: auto;
}

.vbt-reading-wrap {
    width: min(100% - (var(--vbt-gutter) * 2), var(--vbt-reading-width));
    margin-inline: auto;
}

.site-header,
.site-footer {
    border-color: var(--vbt-border);
}

.site-header {
    border-bottom: 1px solid var(--vbt-border);
}

.site-header__inner,
.site-footer__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.custom-logo-link,
.custom-logo-link img {
    display: block;
}

.custom-logo {
    max-height: 48px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 2px 0 0;
    color: var(--vbt-muted);
    font-size: 13px;
}

.primary-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    color: inherit;
    text-decoration: none;
}

.site-footer {
    border-top: 1px solid var(--vbt-border);
    color: var(--vbt-muted);
    font-size: 14px;
}

.vbt-content {
    padding-block: 48px;
}

.entry-header {
    margin-bottom: 28px;
}

.entry-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.entry-meta {
    margin-top: 10px;
    color: var(--vbt-muted);
    font-size: 14px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content .alignwide {
    width: min(100vw - (var(--vbt-gutter) * 2), var(--vbt-content-width));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.entry-content .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.post-list {
    display: grid;
    gap: 32px;
}

.post-card {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--vbt-border);
}

.post-card__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.post-card__title a {
    color: inherit;
    text-decoration: none;
}

.pagination,
.posts-navigation,
.post-navigation {
    margin-top: 40px;
}

.comment-list {
    padding-left: 20px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--vbt-border);
    background: #fff;
    color: inherit;
}

button,
input[type="submit"] {
    padding: 10px 16px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* Vylto should be free to own the page canvas without theme-imposed spacing. */
body.vylto-active .site-main,
body[class*="vylto-"] .site-main {
    width: 100%;
    max-width: none;
}

@media (max-width: 782px) {
    :root {
        --vbt-gutter: 18px;
    }

    .site-header__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 16px;
    }

    .primary-navigation ul {
        gap: 12px 16px;
    }
}


/* Clean canvas used by the Vylto Blank page template. */
body.vylto-blank-canvas {
    margin: 0;
    padding: 0;
}

.vylto-blank-main {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
