/*
Theme Name: Wonyx FlexPress
Author: Ankush
Author URI: https://mywonyx.com
Description: A lightweight, performance-focused classic WordPress theme by Wonyx IT Solutions, built for flexible PHP templates, classic menus, widgets, and block-editor page building.
Version: 2.1.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wonyx-flexpress
Tags: blog, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks

Wonyx FlexPress, Copyright 2026 Ankush / Wonyx IT Solutions.
Wonyx FlexPress is distributed under the terms of the GNU GPL.
*/


:root {
    --wfp-content-width: 1200px;
    --wfp-text: var(--wp--preset--color--body-text, #1f2937);
    --wfp-muted: var(--wp--preset--color--muted, #6b7280);
    --wfp-border: var(--wp--preset--color--border, #e5e7eb);
    --wfp-bg: var(--wp--preset--color--background, #ffffff);
    --wfp-surface: var(--wp--preset--color--surface, #f8fafc);
    --wfp-accent: var(--wp--preset--color--primary, #1d4ed8);
    --wfp-secondary: var(--wp--preset--color--secondary, #0f172a);
    --wfp-highlight: var(--wp--preset--color--accent, #2563eb);
    --wfp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wfp-font-heading: var(--wfp-font-body);
}

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

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

body {
    margin: 0;
    color: var(--wfp-text);
    background: var(--wfp-bg);
    font-family: var(--wfp-font-body);
    font-size: 16px;
    line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--wfp-font-heading);
}

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

img {
    height: auto;
}

a {
    color: var(--wfp-accent);
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}

a:hover,
a:focus {
    text-decoration: none;
}

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

.site-container {
    width: min(calc(100% - 32px), var(--wfp-content-width));
    margin-inline: auto;
}

.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 {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    clip: auto;
    color: #111827;
    background: var(--wfp-bg);
    border: 1px solid var(--wfp-border);
    white-space: normal;
}

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

/* Optional companion-builder wrappers stay neutral so blocks control the design. */
.site-header.wfp-builder-header {
    border: 0;
    background: transparent;
}

.site-header.wfp-builder-header > * {
    margin-top: 0;
    margin-bottom: 0;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-right: auto;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    display: block;
    width: auto;
    max-height: 52px;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
}

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

.site-description {
    margin: 4px 0 0;
    color: var(--wfp-muted);
    font-size: .875rem;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--wfp-accent);
}

.main-navigation .sub-menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    left: 0;
    min-width: 210px;
    display: none;
    padding: 10px;
    background: var(--wfp-bg);
    border: 1px solid var(--wfp-border);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    padding: 8px 10px;
}

.nav-toggle {
    display: none;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 8px 10px;
    border: 1px solid var(--wfp-border);
    border-radius: 6px;
    line-height: 1;
}

.nav-toggle:focus + .nav-toggle-label,
.nav-toggle:focus-visible + .nav-toggle-label {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.site-main {
    min-height: 50vh;
    padding-block: 48px;
}

.wonyx-layout-full-width,
.wonyx-layout-canvas {
    width: 100%;
    padding: 0;
}

.wonyx-layout-full-width .entry-content,
.wonyx-layout-canvas .entry-content {
    width: 100%;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 48px;
}

.entry-header,
.entry-footer {
    margin-bottom: 24px;
}

.entry-title {
    margin: 0 0 12px;
    line-height: 1.2;
}

.entry-meta {
    color: var(--wfp-muted);
    font-size: .9rem;
}

.entry-content::after {
    display: table;
    clear: both;
    content: "";
}

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

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

.post-thumbnail {
    display: block;
    margin-bottom: 24px;
}

.post-thumbnail img {
    display: block;
    width: 100%;
}

.posts-list article {
    padding-block: 28px;
    border-bottom: 1px solid var(--wfp-border);
}

.posts-list article:first-child {
    padding-top: 0;
}

.widget-area {
    min-width: 0;
}

.widget {
    margin-bottom: 32px;
}

.widget-title {
    margin-top: 0;
    font-size: 1.1rem;
}

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

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--wfp-border);
    text-decoration: none;
}

.page-numbers.current {
    color: #ffffff;
    background: var(--wfp-accent);
    border-color: var(--wfp-accent);
}

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--wfp-border);
}

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

.comment-body {
    margin-bottom: 28px;
}

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;
    color: inherit;
    background: var(--wfp-bg);
    border: 1px solid var(--wfp-border);
    border-radius: 4px;
}

button,
input[type="submit"] {
    cursor: pointer;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--wfp-accent);
    border: 1px solid var(--wfp-accent);
    border-radius: 4px;
}

.site-footer {
    margin-top: 48px;
    color: var(--wfp-text);
    background: var(--wfp-surface);
    border-top: 1px solid var(--wfp-border);
}

.site-footer.wfp-builder-footer {
    margin-top: 0;
    color: inherit;
    background: transparent;
    border-top: 0;
}

.site-footer.wfp-builder-footer > * {
    margin-top: 0;
    margin-bottom: 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-block: 48px 24px;
}

.site-info {
    padding-block: 22px;
    color: var(--wfp-muted);
    font-size: .9rem;
    border-top: 1px solid var(--wfp-border);
}

.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.footer-navigation a {
    color: inherit;
}

.alignwide {
    max-width: var(--wfp-content-width);
    margin-left: auto;
    margin-right: auto;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .nav-toggle {
        display: block;
    }

    .header-inner {
        min-height: 64px;
        position: relative;
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .nav-toggle-label {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation {
        width: 100%;
        display: none;
        padding-bottom: 14px;
    }

    .nav-toggle:checked ~ .main-navigation {
        display: block;
    }

    .main-navigation ul,
    .footer-navigation ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: 10px 0;
    }

    .main-navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        box-shadow: none;
    }

    .site-main {
        padding-block: 32px;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(calc(100% - 24px), var(--wfp-content-width));
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }
}
