/*
Theme Name: Vylto 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.11
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-page-width: 1200px;
    --vbt-archive-width: 1200px;
    --vbt-single-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;
}

/* 1.0.3: Preserve separate paragraphs for imported Joomla document links.
   Scope to individual WordPress posts; do not change Vylto builder layouts. */
body.single-post .entry-content p {
    display: block !important;
    margin-top: 0;
    margin-bottom: 12px;
}
body.single-post .entry-content p > a[href*=".pdf"],
body.single-post .entry-content p > a[href*=".doc"],
body.single-post .entry-content p > a[href*=".xls"] {
    color: var(--vbt-link);
    text-decoration: underline;
}

/* Linked document lists in archive, index and search cards. */
.entry-summary .vbt-document-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
.entry-summary .vbt-document-list li {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 7px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.entry-summary .vbt-document-list a {
    min-width: 0;
    overflow-wrap: anywhere;
}
.entry-summary .vbt-document-icon { flex: none; font-size: 14px; }
.entry-summary .vbt-document-ext {
    flex: none;
    font-size: 10px;
    font-weight: 700;
    color: var(--vbt-muted);
}
.entry-summary .vbt-document-intro { margin: 0 0 10px; }

/* Vylto Theme 1.0.5: independent native WordPress template widths.
   Do not impose these constraints on Vylto's blank canvas. */
.vbt-page-wrap { width: min(calc(100% - var(--vbt-gutter) * 2), var(--vbt-page-width)); margin-inline: auto; }
.vbt-archive-wrap { width: min(calc(100% - var(--vbt-gutter) * 2), var(--vbt-archive-width)); margin-inline: auto; }
.vbt-single-wrap { width: min(calc(100% - var(--vbt-gutter) * 2), var(--vbt-single-width)); margin-inline: auto; }
.vbt-page-wrap, .vbt-archive-wrap, .vbt-single-wrap { min-width: 0; }
.vbt-page-wrap .entry-content, .vbt-single-wrap .entry-content,
.vbt-archive-wrap .entry-summary { overflow-wrap: anywhere; }
.vbt-page-wrap .entry-content img, .vbt-single-wrap .entry-content img { max-width: 100%; height: auto; }
/* Wide/full blocks are limited to their available layout box rather than
   using 100vw, which can include the browser scrollbar width. */
.vbt-page-wrap .entry-content .alignfull,
.vbt-single-wrap .entry-content .alignfull { width: 100%; max-width: 100%; margin-inline: 0; transform: none; }

/* Native WP typography, scoped to native templates only. */
.vbt-page-wrap, .vbt-archive-wrap, .vbt-single-wrap { font-family: var(--vbt-native-font); font-size: var(--vbt-native-body); line-height: var(--vbt-native-line); color: var(--vbt-native-text); }
.vbt-page-wrap .entry-title, .vbt-archive-wrap .entry-title, .vbt-single-wrap .entry-title, .vbt-archive-wrap .post-card__title { color: var(--vbt-native-heading); font-weight: var(--vbt-native-weight); line-height: 1.2; }
.vbt-page-wrap .entry-title { font-size: var(--vbt-native-page); }
.vbt-archive-wrap .entry-title { font-size: var(--vbt-native-category); }
.vbt-single-wrap .entry-title { font-size: var(--vbt-native-single); }
.vbt-archive-wrap .post-card__title { font-size: var(--vbt-native-list); }
.vbt-page-wrap a, .vbt-archive-wrap a, .vbt-single-wrap a { color: var(--vbt-native-link); }
.vbt-archive-wrap .post-card__title a { color: inherit; }
.vbt-page-wrap .entry-meta, .vbt-archive-wrap .entry-meta, .vbt-single-wrap .entry-meta, .vbt-archive-wrap .vbt-document-ext { color: var(--vbt-native-muted); }
.vbt-archive-wrap .post-list { gap: var(--vbt-native-gap); }
.vbt-archive-wrap .post-card { padding-bottom: var(--vbt-native-gap); }
.vbt-archive-wrap .entry-summary, .vbt-single-wrap .entry-content, .vbt-page-wrap .entry-content { font-size: var(--vbt-native-body); }

/* Vylto 1.0.7 — native layout, opt-in; builder templates remain untouched. */
.vbt-native-layout { width: min(calc(100% - 32px), var(--vbt-archive-width, 1500px)); max-width: 1500px; margin: 28px auto; display: grid; grid-template-columns: minmax(0,var(--vbt-sidebar-left)) minmax(0,1fr) minmax(0,var(--vbt-sidebar-right)); gap: 18px; align-items: start; }
.vbt-native-layout > * { min-width: 0; }
.vbt-native-layout .vbt-content, .vbt-native-layout .vbt-page-wrap, .vbt-native-layout .vbt-single-wrap, .vbt-native-layout .vbt-archive-wrap { width: 100%; max-width: 100%; margin: 0; }
.vbt-native-layout .vbt-sidebar-widget { margin-bottom: 18px; }
.vbt-native-layout .vbt-sidebar-heading { margin: 0 0 6px; background: #075bad; color: #fff; padding: 8px 10px; font: 600 14px/1.25 Roboto,Arial,sans-serif; }
.vbt-native-layout .vbt-sidebar-menu, .vbt-native-layout .vbt-sidebar-widget ul { list-style: none; padding: 0 4px; margin: 0; }
.vbt-native-layout .vbt-sidebar-menu li, .vbt-native-layout .vbt-sidebar-widget li { margin: 0; padding: 4px 0 4px 13px; position: relative; }
.vbt-native-layout .vbt-sidebar-menu li:before { content: '›'; color: #075bad; position: absolute; left: 2px; }
.vbt-native-layout .vbt-sidebar-menu a { font: 600 13px/1.35 Roboto,Arial,sans-serif; color: #17202b; text-decoration: none; overflow-wrap: anywhere; }
.vbt-native-layout .vbt-sidebar-menu a:hover { color: #075bad; }
@media (max-width: 900px) { .vbt-native-layout { grid-template-columns: minmax(0,1fr); } .vbt-native-main { order: 0; } .vbt-native-sidebar--left { order: 1; } .vbt-native-sidebar--right { order: 2; } .vbt-native-layout.vbt-mobile-hide .vbt-native-sidebar { display:none; } }

/* Vylto Core sidebar documents: use their own widget/global styles, not WP widget defaults. */
.vbt-native-sidebar .vxb-sidebar-document { min-width:0; width:100%; }
.vbt-native-sidebar .vxb-sidebar-document .vxb-container { max-width:100%; min-width:0; }
.vbt-native-sidebar .vxb-sidebar-document .vxb-container-inner { max-width:100%; min-width:0; }

/* 1.0.10: File-type icons replace the gray glyph and trailing extension in archive lists. */
.entry-summary .vbt-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 31px;
    height: 22px;
    padding: 0 4px;
    border-radius: 4px;
    background: #b42318;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .1px;
    vertical-align: middle;
}
.entry-summary .vbt-document-icon--doc,
.entry-summary .vbt-document-icon--docx { background: #2456a6; }
.entry-summary .vbt-document-icon--xls,
.entry-summary .vbt-document-icon--xlsx { background: #237a49; }
.entry-summary .vbt-document-icon--ppt,
.entry-summary .vbt-document-icon--pptx { background: #b64e26; }

/* 1.0.11 — Compact native WordPress archive cards, responsive defaults.
   Only archive/index/search post cards; builder widgets and single posts are untouched. */
.vbt-archive-wrap .post-card, .vbt-content.vbt-archive-wrap .post-card {
  padding: 14px 15px 16px;
  border: 1px solid #e2e8f0;
  background: #f7f9fc;
  margin: 0;
  min-width: 0;
}
.vbt-archive-wrap .post-list { gap: 12px; }
.vbt-archive-wrap .post-card__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.vbt-archive-wrap .post-card .entry-meta {
  display: block;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-left: 3px solid #2872ac;
  background: #eaf2fa;
  color: #53657a;
  font-size: 12px;
  line-height: 1.4;
}
.vbt-archive-wrap .post-card .entry-meta:empty { display: none; }
.vbt-archive-wrap .post-card .entry-summary { line-height: 1.48; overflow-wrap: anywhere; }
.vbt-archive-wrap .post-card .entry-summary p { margin: 0 0 8px; }
.vbt-archive-wrap .post-card .entry-summary .more-link,
.vbt-archive-wrap .post-card .entry-summary a[href*="read-more"] {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.vbt-archive-wrap .post-card .vbt-document-list { margin-top: 6px; }
.vbt-archive-wrap .post-card .vbt-document-list li { margin-bottom: 5px; }
@media (max-width: 767px) {
  .vbt-archive-wrap .post-list { gap: 10px; }
  .vbt-archive-wrap .post-card { padding: 12px 12px 14px; }
  .vbt-archive-wrap .post-card__title { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
  .vbt-archive-wrap .post-card .entry-meta { font-size: 12px; padding: 4px 7px; margin-bottom: 8px; }
  .vbt-archive-wrap .post-card .entry-summary .more-link { font-size: 13px; }
  .vbt-archive-wrap .post-card .entry-summary { font-size: 13px; }
}
