/*
Theme Name: Flavor Core
Theme URI:
Description: Uniwersalny FSE block theme dla sieci portali informacyjnych. Metro kafelki z gradientami per kategoria, dark/light mode, sloty reklamowe z CLS=0.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Author: S
Text Domain: flavor-core
Tags: full-site-editing, block-patterns, news, portal
License: Proprietary
*/

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Brand — override per portal via Global Styles / theme.json */
    --fc-brand-primary: #1a1a2e;
    --fc-brand-accent: #e94560;

    /* Light mode (default) */
    --fc-bg: #f5f5f5;
    --fc-bg-alt: #ffffff;
    --fc-text: #1a1a1a;
    --fc-text-secondary: #555555;
    --fc-text-muted: #888888;
    --fc-border: #e0e0e0;
    --fc-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    /* Tile text — light mode */
    --fc-tile-text: #1a1a1a;
    --fc-tile-meta: #555555;
    --fc-tile-cat: #333333;

    /* Ad slots */
    --fc-ad-bg: rgba(0, 0, 0, 0.03);
    --fc-ad-border: #e0e0e0;
    --fc-ad-text: #cccccc;

    /* Label colors */
    --fc-label-pilne: #dc2626;
    --fc-label-spon: #7c3aed;
    --fc-label-ekskl: #d97706;
    --fc-label-custom: #6b7280;

    /* Typography */
    --fc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --fc-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing & shape */
    --fc-gap: 12px;
    --fc-radius: 8px;
    --fc-content-width: 1200px;
    --fc-article-width: 740px;

    /* Tile uses light bg by default */
    --fc-tile-bg: var(--fc-tile-light-bg, #f0f0f0);

    /* Toggle button */
    --fc-toggle-bg: #e0e0e0;
    --fc-toggle-icon: "☀️";
}

/* ==========================================================================
   2. Dark Mode — auto (prefers-color-scheme)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --fc-bg: #121212;
        --fc-bg-alt: #1e1e1e;
        --fc-text: #e8e8e8;
        --fc-text-secondary: #b0b0b0;
        --fc-text-muted: #666666;
        --fc-border: #333333;
        --fc-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

        --fc-tile-text: #f0f0f0;
        --fc-tile-meta: #b0b0b0;
        --fc-tile-cat: #d0d0d0;

        --fc-ad-bg: rgba(255, 255, 255, 0.03);
        --fc-ad-border: #333333;
        --fc-ad-text: #444444;

        --fc-toggle-bg: #333333;
        --fc-toggle-icon: "🌙";
    }

    /* Dark tiles use gradient instead of pastel bg */
    :root:not([data-theme="light"]) .fc-tile {
        --fc-tile-bg: linear-gradient(135deg, var(--fc-tile-grad-start, #333), var(--fc-tile-grad-end, #1a1a1a));
    }
}

/* ==========================================================================
   3. Dark Mode — manual override [data-theme="dark"]
   ========================================================================== */

[data-theme="dark"] {
    --fc-bg: #121212;
    --fc-bg-alt: #1e1e1e;
    --fc-text: #e8e8e8;
    --fc-text-secondary: #b0b0b0;
    --fc-text-muted: #666666;
    --fc-border: #333333;
    --fc-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);

    --fc-tile-text: #f0f0f0;
    --fc-tile-meta: #b0b0b0;
    --fc-tile-cat: #d0d0d0;

    --fc-ad-bg: rgba(255, 255, 255, 0.03);
    --fc-ad-border: #333333;
    --fc-ad-text: #444444;

    --fc-toggle-bg: #333333;
    --fc-toggle-icon: "🌙";
}

[data-theme="dark"] .fc-tile {
    --fc-tile-bg: linear-gradient(135deg, var(--fc-tile-grad-start, #333), var(--fc-tile-grad-end, #1a1a1a));
}

/* ==========================================================================
   4. Base / Reset
   ========================================================================== */

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

body {
    background-color: var(--fc-bg);
    color: var(--fc-text);
    font-family: var(--fc-font-body);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ==========================================================================
   5. Header
   ========================================================================== */

.fc-header {
    background: var(--fc-bg-alt);
    border-bottom: 1px solid var(--fc-border);
    padding: 0 16px;
}

.fc-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    max-width: var(--fc-content-width);
    margin: 0 auto;
    gap: 16px;
}

.fc-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fc-header__brand .wp-block-site-title {
    margin: 0;
}

.fc-header__brand .wp-block-site-title a {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fc-text);
}

.fc-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fc-text-muted);
    font-size: 0.85rem;
}

/* Category navigation bar */
.fc-header__nav {
    max-width: var(--fc-content-width);
    margin: 0 auto;
    padding: 0 0 2px;
}

.fc-header__nav .wp-block-navigation__container {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fc-header__nav .wp-block-navigation__container::-webkit-scrollbar {
    display: none;
}

.fc-header__nav .wp-block-navigation-item__content {
    display: block;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fc-text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.fc-header__nav .wp-block-navigation-item__content:hover {
    color: var(--fc-brand-accent);
    border-bottom-color: var(--fc-brand-accent);
}

/* ==========================================================================
   6. Metro Grid
   ========================================================================== */

.fc-metro {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fc-gap);
    max-width: var(--fc-content-width);
    margin: 20px auto;
    padding: 0 16px;
}

.fc-metro--empty {
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: var(--fc-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   7. Tiles
   ========================================================================== */

.fc-tile {
    position: relative;
    border-radius: var(--fc-radius);
    overflow: hidden;
    background: var(--fc-tile-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 160px;
}

.fc-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.fc-tile--large {
    grid-column: span 2;
    min-height: 200px;
}

.fc-tile__link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 20px 24px;
    color: var(--fc-tile-text);
    text-decoration: none;
}

.fc-tile__link:hover {
    color: var(--fc-tile-text);
}

.fc-tile--large .fc-tile__link {
    padding: 28px 32px;
}

.fc-tile__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fc-tile__category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fc-tile-cat);
    opacity: 0.85;
}

.fc-tile__title {
    margin: 0;
    font-family: var(--fc-font-heading);
    font-weight: 700;
    line-height: 1.3;
    font-size: 1rem;
}

.fc-tile--large .fc-tile__title {
    font-size: 1.35rem;
}

.fc-tile__time {
    font-size: 0.75rem;
    color: var(--fc-tile-meta);
    opacity: 0.7;
}

/* ==========================================================================
   8. Tile Labels (Pilne, Art. spon., etc.)
   ========================================================================== */

.fc-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #ffffff;
}

.fc-tile__label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.fc-label--pilne {
    background: var(--fc-label-pilne);
}

.fc-label--spon {
    background: var(--fc-label-spon);
}

.fc-label--ekskl {
    background: var(--fc-label-ekskl);
}

.fc-label--custom {
    background: var(--fc-label-custom);
}

/* ==========================================================================
   9. Ad Slots (CLS = 0)
   ========================================================================== */

.fc-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fc-ad-bg);
    border: 1px dashed var(--fc-ad-border);
    border-radius: var(--fc-radius);
    overflow: hidden;
    width: 100%;
}

.fc-ad-slot--leaderboard {
    min-height: 90px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.fc-ad-slot--rectangle {
    min-height: 250px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.fc-ad-slot--mobile {
    min-height: 100px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.fc-ad-slot--inline {
    min-height: 250px;
    margin: 24px auto;
}

/* Fallback text when no ad loaded */
.fc-ad-slot:empty::after {
    content: "";
    display: block;
}

/* Ad in metro grid — span full width */
.fc-metro__ad {
    grid-column: 1 / -1;
    padding: 8px 0;
}

/* Ad loaded — remove dashed border */
.fc-ad-slot:not(:empty) {
    border: none;
    background: transparent;
}

/* ==========================================================================
   10. Single Post
   ========================================================================== */

.fc-single-header {
    max-width: var(--fc-article-width);
    margin: 0 auto;
    padding: 24px 16px 0;
}

.fc-single-category a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--fc-brand-accent);
    color: #ffffff;
}

.fc-single-title {
    font-family: var(--fc-font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0 0;
    letter-spacing: -0.02em;
}

.fc-single-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-text-muted);
    font-size: 0.85rem;
}

.fc-single-info .fc-reading-time::before {
    content: "·";
    margin-right: 16px;
}

/* Post content */
.fc-single-content {
    max-width: var(--fc-article-width);
    margin: 0 auto;
    padding: 24px 16px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.fc-single-content p {
    margin-bottom: 1.2em;
}

.fc-single-content h2,
.fc-single-content h3,
.fc-single-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-family: var(--fc-font-heading);
    font-weight: 700;
    line-height: 1.3;
}

.fc-single-content a {
    color: var(--fc-brand-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.fc-single-content blockquote {
    border-left: 3px solid var(--fc-brand-accent);
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.5em;
    color: var(--fc-text-secondary);
    font-style: italic;
}

.fc-single-content figure {
    margin: 1.5em 0;
}

.fc-single-content figcaption {
    font-size: 0.85rem;
    color: var(--fc-text-muted);
    margin-top: 8px;
}

/* ==========================================================================
   11. Breadcrumbs
   ========================================================================== */

.fc-breadcrumbs {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
    margin-bottom: 16px;
}

.fc-breadcrumbs a {
    color: var(--fc-text-secondary);
}

.fc-breadcrumbs a:hover {
    color: var(--fc-brand-accent);
}

.fc-breadcrumbs .fc-breadcrumbs__sep {
    margin: 0 6px;
    opacity: 0.5;
}

/* ==========================================================================
   12. Reading Time
   ========================================================================== */

.fc-reading-time {
    color: var(--fc-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   13. Related Posts
   ========================================================================== */

.fc-single-footer {
    max-width: var(--fc-article-width);
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.fc-related {
    max-width: var(--fc-article-width);
    margin: 0 auto;
    padding: 32px 16px 48px;
    border-top: 1px solid var(--fc-border);
}

.fc-related__heading {
    font-family: var(--fc-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--fc-text);
}

.fc-related__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-related__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fc-border);
}

.fc-related__item:last-child {
    border-bottom: none;
}

.fc-related__item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--fc-text);
    flex: 1;
}

.fc-related__item-title:hover {
    color: var(--fc-brand-accent);
}

.fc-related__item-date {
    font-size: 0.75rem;
    color: var(--fc-text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   14. Archive / Category
   ========================================================================== */

.fc-archive-header {
    max-width: var(--fc-content-width);
    margin: 0 auto;
    padding: 32px 16px 0;
}

.fc-archive-header__title {
    font-family: var(--fc-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.fc-archive-header__desc {
    color: var(--fc-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   15. 404 / Search
   ========================================================================== */

.fc-404,
.fc-search-none {
    text-align: center;
    padding: 80px 20px;
    max-width: var(--fc-article-width);
    margin: 0 auto;
}

.fc-404__code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--fc-text-muted);
    line-height: 1;
    margin-bottom: 12px;
}

.fc-404__text,
.fc-search-none__text {
    font-size: 1.1rem;
    color: var(--fc-text-secondary);
}

.fc-search-header {
    max-width: var(--fc-content-width);
    margin: 0 auto;
    padding: 32px 16px 0;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.fc-footer {
    background: var(--fc-bg-alt);
    border-top: 1px solid var(--fc-border);
    padding: 24px 16px;
    margin-top: 48px;
}

.fc-footer__inner {
    max-width: var(--fc-content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fc-footer__copy {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
    margin: 0;
}

.fc-footer__links {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
}

.fc-footer__links a {
    color: var(--fc-text-secondary);
}

.fc-footer__links a:hover {
    color: var(--fc-brand-accent);
}

/* ==========================================================================
   17. Dark Mode Toggle
   ========================================================================== */

.fc-theme-toggle {
    background: var(--fc-toggle-bg);
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--fc-text-secondary);
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.fc-theme-toggle:hover {
    opacity: 0.8;
}

.fc-theme-toggle__icon {
    font-size: 0.9rem;
}

/* ==========================================================================
   18. Pagination
   ========================================================================== */

.fc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
    max-width: var(--fc-content-width);
    margin: 0 auto;
}

.fc-pagination a,
.fc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fc-text-secondary);
    background: var(--fc-bg-alt);
    border: 1px solid var(--fc-border);
    transition: background 0.2s, color 0.2s;
}

.fc-pagination a:hover {
    background: var(--fc-brand-accent);
    color: #ffffff;
    border-color: var(--fc-brand-accent);
}

.fc-pagination .current {
    background: var(--fc-brand-accent);
    color: #ffffff;
    border-color: var(--fc-brand-accent);
}

/* ==========================================================================
   18b. Infinite Scroll
   ========================================================================== */

.fc-infinite-container {
    max-width: var(--fc-article-width);
    margin: 0 auto;
}

.fc-infinite-separator {
    height: 1px;
    background: var(--fc-border);
    margin: 48px 16px 32px;
}

.fc-infinite-post .fc-single-header {
    padding: 0 16px;
}

.fc-infinite-post .fc-single-title a {
    color: var(--fc-text);
}

.fc-infinite-post .fc-single-title a:hover {
    color: var(--fc-brand-accent);
}

.fc-infinite-loader {
    text-align: center;
    padding: 24px;
    color: var(--fc-text-muted);
    font-size: 0.9rem;
}

.fc-infinite-sentinel {
    height: 1px;
}

/* ==========================================================================
   18c. Events
   ========================================================================== */

.fc-events-list {
    max-width: var(--fc-content-width);
    margin: 20px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-events-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--fc-text-muted);
}

.fc-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--fc-bg-alt);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    transition: box-shadow 0.2s;
}

.fc-event-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fc-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    text-align: center;
}

.fc-event-card__day {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--fc-brand-accent);
}

.fc-event-card__time {
    font-size: 0.75rem;
    color: var(--fc-text-muted);
}

.fc-event-card__body {
    flex: 1;
}

.fc-event-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.fc-event-card__title a {
    color: var(--fc-text);
}

.fc-event-card__title a:hover {
    color: var(--fc-brand-accent);
}

.fc-event-card__location {
    font-size: 0.8rem;
    color: var(--fc-text-muted);
    margin-top: 2px;
    display: block;
}

.fc-event-card__btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--fc-brand-accent);
    color: #ffffff;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.fc-event-card__btn:hover {
    opacity: 0.85;
    color: #ffffff;
}

/* Single event meta */
.fc-event-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 0;
    padding: 16px 20px;
    background: var(--fc-bg-alt);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    font-size: 0.9rem;
    color: var(--fc-text-secondary);
}

.fc-event-meta strong {
    color: var(--fc-text);
}

.fc-event-ticket {
    text-align: center;
    margin: 32px 0;
}

.fc-event-ticket__btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--fc-radius);
    font-size: 1rem;
    font-weight: 700;
    background: var(--fc-brand-accent);
    color: #ffffff;
    transition: opacity 0.2s, transform 0.2s;
}

.fc-event-ticket__btn:hover {
    opacity: 0.9;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   19. Utility
   ========================================================================== */

.fc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   20. Responsive — Tablet (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .fc-metro {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-tile--large {
        grid-column: span 2;
    }

    .fc-tile {
        min-height: 140px;
    }

    .fc-tile--large {
        min-height: 170px;
    }

    .fc-tile--large .fc-tile__title {
        font-size: 1.15rem;
    }

    .fc-single-title {
        font-size: 1.6rem;
    }

    .fc-header__top {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   21. Responsive — Mobile (≤ 480px)
   ========================================================================== */

@media (max-width: 480px) {
    :root {
        --fc-gap: 8px;
    }

    .fc-metro {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .fc-tile--large {
        grid-column: span 1;
        min-height: 140px;
    }

    .fc-tile--large .fc-tile__title {
        font-size: 1.05rem;
    }

    .fc-tile__title {
        font-size: 0.95rem;
    }

    .fc-tile__link {
        padding: 16px;
    }

    .fc-tile--large .fc-tile__link {
        padding: 20px;
    }

    .fc-single-title {
        font-size: 1.35rem;
    }

    .fc-single-content {
        font-size: 1rem;
        padding: 16px 10px;
    }

    .fc-header__brand .wp-block-site-title a {
        font-size: 1.15rem;
    }

    .fc-header__nav .wp-block-navigation-item__content {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .fc-ad-slot--leaderboard {
        min-height: 100px;
        max-width: 320px;
    }

    .fc-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   22. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .fc-tile {
        transition: none;
    }

    .fc-tile:hover {
        transform: none;
    }
}

/* ==========================================================================
   23. WordPress Block Overrides (FSE compatibility)
   ========================================================================== */

/* Remove default padding from wp-site-blocks */
.wp-site-blocks {
    padding: 0;
}

/* Query loop in archive — reuse metro tile styles */
.fc-archive-grid .wp-block-post {
    margin-bottom: 0;
}

/* Navigation block — remove default styles */
.fc-header__nav .wp-block-navigation {
    gap: 0;
}

.fc-header__nav .wp-block-navigation,
.fc-header__nav .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
    background: transparent;
}

/* Hamburger menu styling */
.fc-header__nav .wp-block-navigation__responsive-container-open {
    color: var(--fc-text);
}

.fc-header__nav .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--fc-bg-alt);
    color: var(--fc-text);
}
