/* Links: brand red everywhere; bold + underline only for links inside post and page text */
a {
    color: #cf2e2e;
}

.entry-single a {
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-single .wp-block-button__link,
.entry-single .sharedaddy a {
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Post and page body text: black for readability */
.entry,
.entry p,
.entry li,
.entry td,
.entry blockquote {
    color: #000;
}

/* Keep site title in the code for search engines, hidden visually (logo banner is the visible brand) */
.site-title-link {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Phones: remove the empty band above the menu and keep big post titles readable */
@media (max-width: 600px) {
    .masthead .branding {
        padding: 0;
    }
    .masthead .site-title {
        margin: 0;
        height: 0;
        line-height: 0;
        overflow: hidden;
    }
    h1.entry-title {
        font-size: 32px;
        line-height: 1.15;
    }
}

/* Desktop menu: keep all top-level items on one line (MNN TV added) */
@media (min-width: 801px) {
    header.masthead nav.menu-primary ul.menu-wrap > li > a {
        padding-left: 10px;
    }
    header.masthead nav.menu-primary ul.menu-wrap > li:not(.menu-item-has-children) > a {
        padding-right: 14px;
    }
}
@media (min-width: 801px) and (max-width: 1199px) {
    header.masthead nav.menu-primary ul.menu-wrap > li > a {
        font-size: 16px;
    }
}

/* Phones: swap in the mobile banner (made from the original PSD) so the text stays readable */
@media (max-width: 600px) {
    a.header-image img {
        content: url("https://i0.wp.com/fredrichani.com/wp-content/uploads/2026/11/FredRichani-mobile-banner%402x.png?ssl=1");
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 1;
        object-fit: cover;
        display: block;
    }
}

/* Phones: Menu button and search share one row (frees up space above the banner) */
@media (max-width: 600px) {
    header.masthead .action-wrapper,
    header.masthead .actions {
        position: relative;
    }
    header.masthead .actions {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    header.masthead .actions nav.menu-primary {
        order: 1;
        flex: 0 0 auto;
        width: auto;
        position: static;
    }
    header.masthead .actions nav.menu-primary .menu-toggle {
        width: auto;
        padding-left: 14px;
        padding-right: 14px;
        margin: 0;
        white-space: nowrap;
    }
    header.masthead .actions nav.menu-primary.menu-on .menu-wrap {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 999;
        background: #e6e6e6;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
    }
    header.masthead .actions .secondary {
        order: 2;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 8px 0 4px;
        margin: 0;
    }
    header.masthead .actions .secondary .search-form {
        margin: 0;
        width: 100%;
    }
}