/*
Theme Name: MetroPress
Theme URI: https://newsprintlabs.io/metropress
Author: Newsprint Labs
Author URI: https://newsprintlabs.io
Description: A bold news and magazine theme with a grid front page, sticky masthead, signal-red accents and a clean newsroom feel.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metropress
Tags: news, magazine, grid-layout, three-columns, right-sidebar, custom-menu, custom-logo, featured-images, sticky-post
*/

/* -------------------------------------------------------------------------
   MetroPress — base
---------------------------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #ffffff;
    color: #111418;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: #d62828;
    text-decoration: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #111418;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1.2em;
}

hr {
    border: 0;
    border-top: 2px solid #111418;
    margin: 28px 0;
}

/* -------------------------------------------------------------------------
   Layout shell
---------------------------------------------------------------------------*/
.mp-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.mp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #111418;
    color: #ffffff;
    padding: 10px 16px;
    z-index: 1000;
}

.mp-skip:focus {
    left: 12px;
    top: 12px;
}

/* -------------------------------------------------------------------------
   Top bar
---------------------------------------------------------------------------*/
.mp-topbar {
    background: #111418;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mp-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}

.mp-topbar__date {
    font-weight: 700;
}

.mp-topbar__links {
    color: #c7c7c7;
}

.mp-topbar__links a {
    color: #ffffff;
    margin-left: 16px;
}

/* -------------------------------------------------------------------------
   Masthead
---------------------------------------------------------------------------*/
.mp-masthead {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #ffffff;
    border-bottom: 3px solid #111418;
}

.mp-masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.mp-masthead__brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-masthead__title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
}

.mp-masthead__title a {
    color: #d62828;
    text-decoration: none;
}

.mp-masthead__tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b6f76;
    margin: 0;
}

.mp-masthead__logo img {
    max-height: 56px;
    width: auto;
}

.mp-burger {
    display: none;
    background: #111418;
    color: #ffffff;
    border: 0;
    font: inherit;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 14px;
    cursor: pointer;
}

/* -------------------------------------------------------------------------
   Navigation
---------------------------------------------------------------------------*/
.mp-nav {
    background: #ffffff;
}

.mp-nav__list,
.mp-nav__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.mp-nav__list li {
    position: relative;
}

.mp-nav__list a {
    display: block;
    padding: 14px 16px;
    color: #111418;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.mp-nav__list a:hover,
.mp-nav__list a:focus,
.mp-nav__list .current-menu-item > a {
    color: #d62828;
    border-bottom-color: #d62828;
}

/* dropdown submenus */
.mp-nav__list ul {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: #111418;
    border-top: 3px solid #d62828;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 300;
}

.mp-nav__list ul a {
    color: #ffffff;
    border-bottom: 1px solid #2a2e34;
    padding: 12px 16px;
}

.mp-nav__list ul a:hover,
.mp-nav__list ul a:focus {
    color: #ffffff;
    background: #d62828;
    border-bottom-color: #d62828;
}

.mp-nav__list li:hover > ul,
.mp-nav__list li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mp-nav__list ul ul {
    left: 100%;
    top: -3px;
}

/* -------------------------------------------------------------------------
   Main columns
---------------------------------------------------------------------------*/
.mp-body {
    padding: 36px 0 56px;
}

.mp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
}

@media (max-width: 900px) {
    .mp-split {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------
   Section kicker / page heads
---------------------------------------------------------------------------*/
.mp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #d62828;
}

.mp-pagehead {
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid #111418;
}

.mp-pagehead__title {
    font-size: 30px;
    text-transform: uppercase;
}

.mp-pagehead__sub {
    color: #6b6f76;
    margin: 6px 0 0;
}

/* -------------------------------------------------------------------------
   Card grid
---------------------------------------------------------------------------*/
.mp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 980px) {
    .mp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mp-grid {
        grid-template-columns: 1fr;
    }
}

.mp-card {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #e3e3e3;
    padding-bottom: 18px;
}

.mp-card.is-sticky {
    border-bottom-color: #d62828;
}

.mp-card__media {
    display: block;
    margin: 0 0 14px;
    overflow: hidden;
    background: #f1f1f1;
}

.mp-card__media img {
    width: 100%;
    transition: transform 0.3s ease;
}

.mp-card__media:hover img {
    transform: scale(1.04);
}

.mp-card__kicker {
    margin-bottom: 6px;
}

.mp-card__title {
    font-size: 21px;
    margin: 0 0 8px;
    text-transform: none;
}

.mp-card__title a {
    color: #111418;
}

.mp-card__title a:hover,
.mp-card__title a:focus {
    color: #d62828;
    text-decoration: none;
}

.mp-card__byline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6f76;
    margin: 0 0 10px;
}

.mp-card__byline a {
    color: #111418;
}

.mp-card__excerpt {
    font-size: 15px;
    color: #2a2e34;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Single / page article
---------------------------------------------------------------------------*/
.mp-article {
    margin: 0 0 40px;
}

.mp-article__head {
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 3px solid #111418;
}

.mp-article__title {
    font-size: 38px;
    text-transform: none;
    margin: 8px 0 12px;
}

.mp-article__meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6f76;
}

.mp-article__meta a {
    color: #111418;
}

.mp-article__media {
    margin: 0 0 24px;
}

.mp-article__content {
    font-size: 18px;
}

.mp-article__content img {
    height: auto;
}

.mp-article__content a {
    text-decoration: underline;
}

.mp-article__footer {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 2px solid #e3e3e3;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6f76;
}

.mp-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 9px;
    background: #f1f1f1;
    color: #111418;
    font-weight: 700;
}

.mp-tags a:hover {
    background: #d62828;
    color: #ffffff;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   Pagination
---------------------------------------------------------------------------*/
.mp-pager {
    margin: 40px 0 0;
}

.mp-pager .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mp-pager .page-numbers {
    display: inline-block;
    padding: 9px 14px;
    border: 2px solid #111418;
    font-weight: 700;
    color: #111418;
}

.mp-pager .page-numbers.current,
.mp-pager .page-numbers:hover {
    background: #d62828;
    border-color: #d62828;
    color: #ffffff;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   Full stories on the feed
   Posts flagged "show full on feed pages" are pulled out of the excerpt grid
   and rendered here in full, below the grid + its pager. A heavy double rule
   sets them apart; a second pager repeats below them (only printed when this
   feed page actually has a flagged post).
   ------------------------------------------------------------------------- */
.mp-fulls {
    margin: 48px 0 0;
    padding: 36px 0 0;
    border-top: 6px double #111418;
    display: grid;
    gap: 44px;
}

.mp-full {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.mp-full__head {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #d62828;
}

.mp-full__title {
    font-size: 30px;
    line-height: 1.1;
    margin: 6px 0 8px;
    text-transform: none;
}

.mp-full__title a {
    color: #111418;
}

.mp-full__title a:hover {
    color: #d62828;
    text-decoration: none;
}

.mp-full__media {
    display: block;
    margin: 0 0 22px;
}

.mp-full__media img {
    display: block;
    width: 100%;
    height: auto;
}

.mp-full__body {
    font-size: 17px;
    line-height: 1.7;
}

.mp-full__body > * + * {
    margin-top: 1.1em;
}

.mp-full__body h2,
.mp-full__body h3 {
    margin-top: 1.4em;
}

.mp-full__body a {
    color: #d62828;
}

.mp-full__pagelinks {
    margin-top: 1.4em;
    font-weight: 700;
}

.mp-pager--fulls {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------
   Sidebar rail
---------------------------------------------------------------------------*/
.mp-rail {
    min-width: 0;
}

.mp-rail__block {
    margin: 0 0 32px;
}

.mp-rail__heading {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d62828;
}

.mp-rail__block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-rail__block li {
    padding: 9px 0;
    border-bottom: 1px solid #e3e3e3;
    font-size: 15px;
}

.mp-rail__block a {
    color: #111418;
}

.mp-rail__block a:hover {
    color: #d62828;
}

/* -------------------------------------------------------------------------
   Fossil / empty states
---------------------------------------------------------------------------*/
.mp-fossil {
    font-size: 17px;
    line-height: 1.7;
}

.mp-fossil > * + * {
    margin-top: 1.1em;
}

/* Top fossil sits above "The Desk / Latest Stories" — separated by a rule below it. */
.mp-fossil--top {
    margin: 0 0 30px;
    padding-bottom: 26px;
    border-bottom: 3px solid #e3e3e3;
}

/* Below-feed fossil sits under the post list, before the footer — heavy rule above it. */
.mp-fossil--below {
    margin: 48px 0 0;
    padding-top: 34px;
    border-top: 6px double #111418;
}

.mp-empty {
    padding: 40px 0;
    border-top: 3px solid #111418;
    border-bottom: 3px solid #111418;
}

.mp-empty__title {
    font-size: 26px;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   Search form
---------------------------------------------------------------------------*/
.mp-search {
    display: flex;
    gap: 8px;
    max-width: 520px;
}

.mp-search .search-field {
    flex: 1;
    padding: 11px 12px;
    border: 2px solid #111418;
    font: inherit;
}

.mp-search .search-submit {
    padding: 11px 18px;
    border: 0;
    background: #d62828;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* -------------------------------------------------------------------------
   Comments
---------------------------------------------------------------------------*/
.mp-comments {
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 3px solid #111418;
}

.mp-comments__title {
    font-size: 22px;
    text-transform: uppercase;
    margin: 0 0 22px;
}

.mp-comments__list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.mp-comments__list ul.children {
    list-style: none;
    margin: 0 0 0 28px;
    padding: 0;
}

.mp-comments__list li {
    margin: 0 0 20px;
}

.mp-comments__list .comment-body {
    border: 1px solid #e3e3e3;
    border-left: 4px solid #d62828;
    padding: 16px 18px;
}

.mp-comments__list .comment-author {
    font-weight: 700;
}

.mp-comments__list .comment-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b6f76;
    margin-bottom: 10px;
}

.mp-commentnav {
    display: flex;
    justify-content: space-between;
    margin: 0 0 24px;
    font-weight: 700;
}

.mp-formwrap input[type="text"],
.mp-formwrap input[type="email"],
.mp-formwrap input[type="url"],
.mp-formwrap textarea {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid #111418;
    font: inherit;
    margin-bottom: 14px;
}

.mp-formwrap .submit {
    padding: 12px 22px;
    border: 0;
    background: #111418;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.mp-formwrap .submit:hover {
    background: #d62828;
}

/* -------------------------------------------------------------------------
   Footer / colophon
---------------------------------------------------------------------------*/
.mp-footer {
    background: #111418;
    color: #c7c7c7;
    border-top: 4px solid #d62828;
    margin-top: 60px;
}

.mp-footer__widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    padding: 46px 0;
}

@media (max-width: 860px) {
    .mp-footer__widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .mp-footer__widgets {
        grid-template-columns: 1fr;
    }
}

.mp-footer__widgets h2,
.mp-footer__widgets h3 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d62828;
}

.mp-footer__widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-footer__widgets li {
    padding: 6px 0;
    border-bottom: 1px solid #2a2e34;
}

.mp-footer__widgets a {
    color: #c7c7c7;
}

.mp-footer__widgets a:hover {
    color: #ffffff;
}

.mp-colophon {
    border-top: 1px solid #2a2e34;
    padding: 20px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.mp-colophon a {
    color: #ffffff;
}

/* -------------------------------------------------------------------------
   Responsive nav
---------------------------------------------------------------------------*/
@media (max-width: 768px) {
    .mp-burger {
        display: inline-block;
    }

    .mp-nav {
        display: none;
        border-top: 2px solid #e3e3e3;
    }

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

    .mp-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .mp-nav__list a {
        border-bottom: 1px solid #e3e3e3;
    }

    .mp-nav__list ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-top: 0;
    }
}

/* WP utility */
.alignleft { float: left; margin: 0 20px 14px 0; }
.alignright { float: right; margin: 0 0 14px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 13px; color: #6b6f76; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
