/*
Theme Name: Gazeteport
Theme URI: https://gazeteport.com
Author: SA Codex
Description: Fast editorial news theme rebuilt for Gazeteport.
Version: 1.0.2
Text Domain: gazeteport
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
*/

:root {
    --gp-ink: #151515;
    --gp-muted: #62666d;
    --gp-soft: #f4f5f7;
    --gp-line: #d9dde4;
    --gp-red: #c81e1e;
    --gp-blue: #184f8f;
    --gp-green: #21755c;
    --gp-gold: #b47b19;
    --gp-white: #ffffff;
    --gp-wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gp-ink);
    background: var(--gp-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

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

a:hover {
    color: var(--gp-red);
}

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

.site-wrap {
    width: min(var(--gp-wrap), calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--gp-white);
    background: var(--gp-ink);
}

.skip-link:focus {
    top: 12px;
}

.top-line {
    border-bottom: 1px solid var(--gp-line);
    color: var(--gp-muted);
    background: #fbfbfc;
    font-size: 13px;
}

.top-line .site-wrap,
.brand-row,
.main-nav .site-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-line .site-wrap {
    min-height: 36px;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-row {
    min-height: 104px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gp-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.site-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--gp-white);
    background: var(--gp-red);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 23px;
    font-weight: 800;
}

.site-description {
    margin: 8px 0 0;
    color: var(--gp-muted);
    font-size: 14px;
}

.header-search {
    width: min(360px, 100%);
}

.search-form {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gp-line);
    background: var(--gp-white);
}

.search-field {
    min-width: 0;
    width: 100%;
    border: 0;
    padding: 11px 12px;
    color: var(--gp-ink);
    font: inherit;
}

.search-submit,
.menu-toggle {
    border: 0;
    color: var(--gp-white);
    background: var(--gp-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.search-submit {
    min-width: 46px;
}

.main-nav {
    border-top: 2px solid var(--gp-ink);
    border-bottom: 1px solid var(--gp-line);
    background: var(--gp-white);
}

.menu-toggle {
    display: none;
    padding: 12px 14px;
}

.primary-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    display: block;
    padding: 15px 16px;
    color: var(--gp-ink);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--gp-white);
    background: var(--gp-red);
}

.breaking-strip {
    border-bottom: 1px solid var(--gp-line);
    background: var(--gp-soft);
}

.breaking-strip .site-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    overflow: hidden;
}

.breaking-label,
.section-label,
.entry-kicker,
.card-kicker {
    color: var(--gp-red);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.breaking-list {
    display: flex;
    gap: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow: hidden;
}

.breaking-list a {
    font-size: 14px;
    font-weight: 700;
}

.site-main {
    padding: 30px 0 48px;
}

.lead-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.lead-story {
    border-bottom: 3px solid var(--gp-ink);
}

.lead-story .media-frame {
    aspect-ratio: 16 / 9;
}

.lead-story h1 {
    margin: 14px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1.08;
}

.lead-story p {
    margin: 0 0 16px;
    color: var(--gp-muted);
    font-size: 18px;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.side-stack .news-card {
    border-bottom: 1px solid var(--gp-line);
    padding-bottom: 16px;
}

.media-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--gp-soft);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: var(--gp-muted);
    background:
        linear-gradient(135deg, rgba(200, 30, 30, 0.12), rgba(24, 79, 143, 0.1)),
        var(--gp-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 800;
}

.section-block {
    margin-top: 42px;
    border-top: 3px solid var(--gp-ink);
    padding-top: 18px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2,
.archive-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.15;
}

.section-head a {
    color: var(--gp-blue);
    font-size: 14px;
    font-weight: 800;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    min-width: 0;
}

.news-card .media-frame {
    aspect-ratio: 16 / 10;
    margin-bottom: 10px;
}

.news-card h2,
.news-card h3 {
    margin: 6px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.18;
}

.news-card p {
    margin: 0;
    color: var(--gp-muted);
    font-size: 14px;
}

.meta-row,
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--gp-muted);
    font-size: 13px;
}

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.archive-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gp-line);
    padding-bottom: 18px;
}

.archive-list {
    display: grid;
    gap: 20px;
}

.archive-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--gp-line);
    padding-bottom: 20px;
}

.archive-item .media-frame {
    aspect-ratio: 16 / 10;
}

.archive-item h2 {
    margin: 5px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.18;
}

.sidebar-panel {
    border-top: 3px solid var(--gp-ink);
    padding-top: 14px;
}

.sidebar-panel + .sidebar-panel {
    margin-top: 28px;
}

.sidebar-panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
    text-transform: uppercase;
}

.compact-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compact-list li {
    border-bottom: 1px solid var(--gp-line);
    padding-bottom: 12px;
}

.compact-list a {
    font-weight: 800;
    line-height: 1.3;
}

.entry-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 320px;
    gap: 42px;
    align-items: start;
}

.entry-title {
    margin: 8px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1.06;
}

.entry-spot {
    margin: 0 0 18px;
    color: #3f444b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.entry-media {
    margin: 24px 0;
}

.entry-media .media-frame {
    aspect-ratio: 16 / 9;
}

.entry-content {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.75;
}

.entry-content a {
    color: var(--gp-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content blockquote {
    margin: 26px 0;
    border-left: 4px solid var(--gp-red);
    padding-left: 18px;
    color: #343941;
    font-size: 21px;
}

.entry-content iframe {
    max-width: 100%;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tag-list a {
    border: 1px solid var(--gp-line);
    padding: 6px 9px;
    color: var(--gp-muted);
    font-size: 13px;
}

.pagination,
.post-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.pagination .page-numbers,
.pagination a,
.pagination span,
.post-navigation a {
    border: 1px solid var(--gp-line);
    padding: 9px 12px;
    font-weight: 800;
}

.pagination .current {
    color: var(--gp-white);
    background: var(--gp-ink);
}

.site-footer {
    border-top: 4px solid var(--gp-ink);
    padding: 30px 0;
    color: var(--gp-white);
    background: #1f2227;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
}

.footer-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 800;
}

.footer-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.footer-menu a,
.site-footer a {
    color: var(--gp-white);
}

.site-footer p {
    margin: 8px 0 0;
    color: #c9cdd5;
    font-size: 14px;
}

@media (max-width: 900px) {
    .brand-row,
    .top-line .site-wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .site-logo-text {
        font-size: 36px;
    }

    .header-search {
        width: 100%;
    }

    .main-nav .site-wrap {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

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

    .primary-menu a {
        border-top: 1px solid var(--gp-line);
    }

    .lead-layout,
    .archive-layout,
    .entry-layout {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .site-wrap {
        width: min(100% - 24px, var(--gp-wrap));
    }

    .lead-story h1,
    .entry-title {
        font-size: 32px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-grid,
    .archive-item,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-menu {
        justify-content: flex-start;
    }
}
