/*
Theme Name: CodePaks
Theme URI: https://codepaks.com
Author: CodePaks Core Team
Author URI: https://codepaks.com
Description: High-performance, GEO/AEO/SEO optimized digital source code & tech asset marketplace theme built for WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codepaks
Tags: e-commerce, dark, custom-colors, full-width-template, translation-ready

CodePaks WordPress Theme, (C) 2026 CodePaks Team.
CodePaks is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   WordPress Core Accessibility & Layout Standards (A11y & Base Helpers)
   这些是 WordPress 官方标准强制要求的底层无障碍类与对齐类，
   确保屏幕阅读器无障碍（A11y）以及 Google 蜘蛛对隐藏文本的合规解析。
   ========================================================================== */

/* 屏幕阅读器专用文本（隐藏在可视区外，但保留给爬虫与残障读屏软件） */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #0f172a;
    border-radius: 6px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #38bdf8;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 1rem;
    line-height: normal;
    padding: 1rem 1.5rem;
    text-decoration: none;
    top: 1rem;
    width: auto;
    z-index: 100000;
}

/* 官方核心对齐类（备用兼容） */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* 清除浮动辅助 */
.clear::before,
.clear::after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear::after {
    clear: both;
}