/*
Theme Name: Verdikt
Theme URI: https://verdikt.sk
Author: Michal
Description: Elementor-Pro-ready theme for a Slovak legal blog (právny blog). Deep navy + gold editorial design with Spectral & Libre Franklin typography. Ships coded header, footer, homepage, single-article and archive templates that Elementor Theme Builder overrides automatically when you build your own. Includes category icons and SVG placeholders for posts without a featured image.
Version: 1.0.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
Text Domain: verdikt
Tags: blog, elementor, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* The full design system lives in /assets/css/verdikt.css (enqueued first).
   Everything below is small WordPress-specific glue + safe overrides. */

/* Make content images behave inside the article body */
.entry-content img{max-width:100%;height:auto;border-radius:6px}
.entry-content .alignwide{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:100vw}
.entry-content .aligncenter{margin-left:auto;margin-right:auto;display:block}
.entry-content .alignleft{float:left;margin:6px 24px 12px 0}
.entry-content .alignright{float:right;margin:6px 0 12px 24px}

/* WP core caption + galleries */
.wp-caption{max-width:100%}
.wp-caption-text{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}

/* WordPress pagination (the_posts_pagination) mapped onto the theme's .pager */
.pager .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.pager .page-numbers{width:40px;height:40px;border-radius:6px;border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:var(--ink)}
.pager .page-numbers.current{background:var(--gold);border-color:var(--gold);color:var(--navy-900)}
.pager .page-numbers svg{width:14px;height:14px;fill:var(--ink)}

/* Footer widget/menu lists */
footer.site .foot-grid ul{list-style:none}
footer.site .foot-grid li{margin-bottom:11px;font-size:13.5px}
footer.site .foot-grid li a:hover{color:var(--gold)}

/* Sticky-post + screen-reader helpers */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* Primary nav rendered via wp_nav_menu (ul.menu) + dropdowns */
nav.main ul.menu{display:flex;align-items:center;gap:34px;list-style:none;margin:0;padding:0}
nav.main ul.menu li{position:relative}
nav.main .sub-menu{position:absolute;top:calc(100% + 8px);left:0;background:var(--navy-850);border:1px solid var(--navy-line);border-radius:6px;padding:8px 0;min-width:214px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(4px);transition:.16s;z-index:60;list-style:none;margin:0}
nav.main ul.menu li:hover>.sub-menu{opacity:1;visibility:visible;transform:none}
nav.main .sub-menu li a{display:block;padding:9px 18px;font-size:13.5px;white-space:nowrap;color:#dfe4ee}
nav.main .sub-menu li a:hover{color:var(--gold)}
nav.main .menu-item-has-children>a::after{content:"";display:inline-block;width:6px;height:6px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:rotate(45deg);margin-left:8px;position:relative;top:-2px}
nav.main .current-menu-item>a,nav.main .current_page_item>a,nav.main .current-menu-parent>a{color:#fff}
nav.main .current-menu-item>a::before{content:"";position:absolute;left:0;right:0;bottom:-24px;height:2px;background:var(--gold)}
