/*
Theme Name: GridNews Pro
Theme URI: https://www.o11labs.dev/gridnews
Author: O11Labs
Author URI: https://www.o11labs.dev/
Description: The ultimate sports magazine theme for WordPress.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Copyright: 2025 O11Labs
Text Domain: gridnews-pro
Tags: news, sports, magazine, right-sidebar, two-columns, custom-colors, rtl-language-support
*/

/* Critical Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin-top: 0 !important;
}

body {
    margin: 0 !important;
    padding: 0;
    background: #fafafa;
    font-size: 13px;
}

/* Fix WordPress Admin Bar */
body.admin-bar {
    margin-top: 0 !important;
}

/* Screen Reader Text */
.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Core WordPress classes */

/* Image alignment */
.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

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

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
    text-align: center;
}

.wp-caption img {
    display: inline-block;
}

.wp-caption-text,
.gallery-caption {
    font-size: 0.875em;
    color: #777;
    margin-top: 0.3em;
}

/* Sticky posts */
.sticky {
    position: relative;
}

.sticky::before {
    content: "";
    /* You can style a subtle indicator here if you want */
}

/* Author comments */
.bypostauthor {
    /* Highlight comments by post author if desired */
    /* Example: border-left: 3px solid var(--gn-primary); */
}