/*
Theme Name: WEBADVERT-THEME
Theme URI: https://webadvert.pl
Author: WebAdvert Team
Author URI: https://webadvert.pl
Description: Minimalistyczny, profesjonalny motyw WordPress dla bloga o reklamie internetowej i sieciach. Układ magazynowy, jasna paleta, czytelna typografia.
Version: 1.0.0
Tested up to: 6.7
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: webadvert-theme
Tags: blog, magazine, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F6F7F9;
    --color-bg-card: #FFFFFF;
    --color-text: #1A1A2E;
    --color-text-secondary: #5A5A72;
    --color-text-light: #8A8A9E;
    --color-accent: #2C5EF0;
    --color-accent-hover: #1E4AD4;
    --color-accent-light: rgba(44, 94, 240, 0.08);
    --color-border: #E8E8EE;
    --color-border-light: #F0F0F5;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --sidebar-width: 320px;
    --gap: 2rem;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.10);
    --transition: 0.25s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p + p {
    margin-top: 1.25em;
}

ul, ol {
    padding-left: 1.5em;
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-accent-light);
    font-style: italic;
    color: var(--color-text-secondary);
}

/* ===== LAYOUT UTILITIES ===== */
.wa-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wa-content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--gap);
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.wa-main {
    min-width: 0;
}

/* ===== SITE HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header .wa-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
}

.site-brand__icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.site-brand__text {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    letter-spacing: -0.01em;
}

.site-brand__text span {
    color: var(--color-accent);
}

/* Primary Navigation */
.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.primary-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a,
.primary-nav .current_page_item a {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
    font-size: 1.5rem;
    line-height: 1;
}

/* ===== SUBMENU — DESKTOP ===== */
.primary-nav > ul > li {
    position: relative;
}

.primary-nav li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.primary-nav li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    transition: transform var(--transition);
    line-height: 1;
}

.primary-nav li.menu-item-has-children:hover > a::after,
.primary-nav li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg);
}

/* Dropdown panel */
.primary-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    min-width: 220px;
    padding: 0.5rem 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.primary-nav ul ul li {
    width: 100%;
}

.primary-nav ul ul a {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 450;
    border-radius: 0;
    white-space: nowrap;
}

.primary-nav ul ul a:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Desktop: show on hover */
@media (min-width: 769px) {
    .primary-nav li.menu-item-has-children:hover > ul {
        display: flex;
    }
}

/* Submenu toggle button (mobile only) */
.submenu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    line-height: 1;
    transition: transform var(--transition);
}

.submenu-toggle.is-active {
    transform: rotate(180deg);
}

/* ===== HERO / FEATURED POST ===== */
.wa-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    margin-bottom: var(--gap);
}

.wa-hero__link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    text-decoration: none;
    color: inherit;
}

.wa-hero__image {
    position: relative;
    overflow: hidden;
}

.wa-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wa-hero__link:hover .wa-hero__image img {
    transform: scale(1.03);
}

.wa-hero__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 3rem;
}

.wa-hero__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.wa-hero__cat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.wa-hero__title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.wa-hero__excerpt {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wa-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.wa-hero__meta i {
    margin-right: 0.3rem;
}

/* ===== ARTICLE GRID ===== */
.wa-section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-text);
    margin-bottom: 1.75rem;
    display: inline-block;
}

.wa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ===== ARTICLE CARD ===== */
.wa-card {
    background: var(--color-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition), transform var(--transition);
}

.wa-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wa-card__image {
    position: relative;
    padding-top: 58%;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.wa-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wa-card:hover .wa-card__image img {
    transform: scale(1.04);
}

.wa-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 2rem;
    background: var(--color-bg-alt);
}

.wa-card__body {
    padding: 1.5rem;
}

.wa-card__cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
    display: inline-block;
}

.wa-card__title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.wa-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.wa-card__title a:hover {
    color: var(--color-accent);
}

.wa-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wa-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.wa-card__date i,
.wa-card__read-more i {
    margin-right: 0.25rem;
}

.wa-card__read-more {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.wa-card__read-more:hover {
    gap: 0.5rem;
}

/* ===== BLOG ARCHIVE LIST ===== */
.wa-post-list .wa-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    border: 1px solid var(--color-border-light);
}

.wa-post-list .wa-card__image {
    padding-top: 0;
    min-height: 220px;
}

.wa-post-list .wa-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem;
}

.wa-post-list .wa-card + .wa-card {
    margin-top: 1.5rem;
}

/* ===== SINGLE POST ===== */
.wa-single-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.wa-single-header .wa-card__cat {
    margin-bottom: 1rem;
}

.wa-single-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.wa-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.wa-single-meta i {
    margin-right: 0.3rem;
}

.wa-single-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    max-height: 480px;
}

.wa-single-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-single-content {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.8;
}

.wa-single-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.wa-single-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.wa-single-content p {
    margin-bottom: 1.25em;
}

.wa-single-content img {
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.wa-single-content ul,
.wa-single-content ol {
    margin-bottom: 1.25em;
}

.wa-single-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tags */
.wa-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wa-tags a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.wa-tags a:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Post Navigation */
.wa-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.wa-post-nav__item {
    padding: 1.25rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}

.wa-post-nav__item:hover {
    box-shadow: var(--shadow-sm);
}

.wa-post-nav__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}

.wa-post-nav__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-text);
}

.wa-post-nav__item:last-child {
    text-align: right;
}

/* ===== SIDEBAR ===== */
.wa-sidebar {
    position: sticky;
    top: 96px;
}

.wa-widget {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wa-widget__title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-text);
    margin-bottom: 1.25rem;
}

.wa-widget__list {
    list-style: none;
    padding: 0;
}

.wa-widget__list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.wa-widget__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wa-widget__list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    display: block;
    transition: color var(--transition);
    line-height: 1.45;
}

.wa-widget__list a:hover {
    color: var(--color-accent);
}

.wa-widget__list .wa-recent-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.2rem;
}

/* ===== AUTHOR BOX ===== */
.wa-author-box {
    display: flex;
    gap: 1.75rem;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    align-items: center;
}

.wa-author-box__avatar {
    flex-shrink: 0;
}

.wa-author-box__avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.wa-author-box__name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.wa-author-box__bio {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.wa-author-box__count {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* ===== ARCHIVE HEADER ===== */
.wa-archive-header {
    padding: 2.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.wa-archive-header__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 0.35rem;
}

.wa-archive-header h1 {
    font-size: 2rem;
}

.wa-archive-header__desc {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* ===== PAGINATION ===== */
.wa-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.wa-pagination a,
.wa-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.wa-pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.wa-pagination .current {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ===== PAGE TEMPLATE ===== */
.wa-page-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.wa-page-header h1 {
    font-size: 2.5rem;
}

.wa-page-content {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 4rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0;
    margin-top: 3rem;
}

.site-footer .wa-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy {
    font-size: 0.85rem;
}

.site-footer__copy a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer__copy a:hover {
    color: #fff;
}

.site-footer__social {
    display: flex;
    gap: 0.75rem;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.site-footer__social a:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ===== NO RESULTS ===== */
.wa-no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.wa-no-results__icon {
    font-size: 3rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.wa-no-results h2 {
    margin-bottom: 0.75rem;
}

.wa-no-results p {
    color: var(--color-text-secondary);
}

/* ===== COMMENTS ===== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.comments-area .comments-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Comment list */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    padding-left: 2.5rem;
    margin: 0;
    border-left: 2px solid var(--color-border-light);
}

/* Single comment */
.comment-body {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-list > li:last-child > .comment-body {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.comment-author img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author .fn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
}

.comment-author .fn a {
    color: var(--color-text);
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--color-accent);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.comment-metadata a {
    color: var(--color-text-light);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--color-accent);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.comment-content p {
    margin-bottom: 0.75em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply link */
.reply {
    margin-top: 0.6rem;
}

.reply a,
a.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    transition: all var(--transition);
}

.reply a:hover,
a.comment-reply-link:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Pingback / Trackback */
.comment-list .pingback .comment-body,
.comment-list .trackback .comment-body {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Bypostauthor highlight */
.comment-list .bypostauthor > .comment-body {
    background: var(--color-accent-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-bottom: none;
    margin-bottom: 0.5rem;
}

/* Awaiting moderation */
.comment-awaiting-moderation {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* Comment navigation */
.comment-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.85rem;
}

.comment-navigation a {
    color: var(--color-accent);
    font-weight: 500;
}

/* ===== COMMENT FORM ===== */
.comment-respond {
    margin-top: 2.5rem;
}

.comment-respond .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.comment-respond .comment-reply-title small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.35rem;
}

.comment-respond .comment-reply-title small a {
    color: var(--color-accent);
}

.comment-respond .logged-in-as {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.comment-respond .logged-in-as a {
    color: var(--color-accent);
}

.comment-form {
    display: grid;
    gap: 0;
}

.comment-form p {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.35rem;
}

.comment-form .required {
    color: var(--color-accent);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--color-accent);
}

.comment-form .comment-form-cookies-consent label {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 0;
}

.comment-form .form-submit {
    margin-top: 0.25rem;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2.25rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.comment-form .submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Comments closed notice */
.no-comments {
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
    padding: 1.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wa-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wa-content-area {
        grid-template-columns: 1fr;
    }

    .wa-sidebar {
        position: static;
    }

    .wa-hero__title {
        font-size: 1.75rem;
    }

    .wa-hero__body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    .site-header .wa-container {
        height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 0.75rem 0;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .primary-nav a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobile parent item row */
    .primary-nav li.menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
    }

    .primary-nav li.menu-item-has-children > a {
        flex: 1;
    }

    .primary-nav li.menu-item-has-children > a::after {
        display: none;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
    }

    /* Mobile submenu */
    .primary-nav ul ul {
        position: static;
        width: 100%;
        min-width: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        background: var(--color-bg-alt);
        border-top: 1px solid var(--color-border-light);
    }

    .primary-nav ul ul.is-open {
        display: flex;
    }

    .primary-nav ul ul a {
        padding: 0.65rem 1.5rem 0.65rem 2.5rem;
        font-size: 0.92rem;
    }

    .wa-hero__link {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wa-hero__image {
        min-height: 220px;
    }

    .wa-hero__body {
        padding: 1.5rem;
    }

    .wa-hero__title {
        font-size: 1.5rem;
    }

    .wa-grid {
        grid-template-columns: 1fr;
    }

    .wa-post-list .wa-card {
        grid-template-columns: 1fr;
    }

    .wa-post-list .wa-card__image {
        min-height: 200px;
        padding-top: 55%;
    }

    .wa-post-list .wa-card__image img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .wa-post-nav {
        grid-template-columns: 1fr;
    }

    .wa-single-header h1 {
        font-size: 1.875rem;
    }

    .wa-author-box {
        flex-direction: column;
        text-align: center;
    }

    .site-footer .wa-container {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile comments */
    .comment-list .children {
        padding-left: 1.25rem;
    }

    .comment-author img.avatar {
        width: 32px;
        height: 32px;
    }

    .comment-meta {
        gap: 0.5rem;
    }

    .comment-list .bypostauthor > .comment-body {
        padding: 1rem;
    }
}

/* ===== SCREEN READER ===== */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ===== WP DEFAULTS ===== */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

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

.aligncenter {
    display: block;
    margin: 1.5rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 1.5rem 0;
}

/* AOS override — no delays */
[data-aos] {
    transition-delay: 0s !important;
}
