/*
Theme Name: Northern Frame News
Theme URI: https://example.com/
Author: OpenAI
Description: Lightweight editorial/news theme inspired by a multi-category magazine layout. Does not modify plugins or WordPress core.
Version: 1.4
Text Domain: northern-frame-news
*/
:root{--ink:#111827;--muted:#667085;--line:#e5e7eb;--paper:#fff;--soft:#f6f7f9;--accent:#c62828;--max:1180px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{max-width:var(--max);margin:auto;padding:0 22px}.top-ad{background:#f2f3f5;text-align:center;padding:18px;color:#8a9099;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.site-header{border-bottom:1px solid var(--line);background:#fff}.brand-row{display:flex;align-items:center;justify-content:space-between;padding:28px 0 20px;gap:25px}.brand{font-family:Georgia,serif;font-weight:700;font-size:36px;letter-spacing:-1.2px}.brand span{color:var(--accent)}.tagline{font-size:13px;color:var(--muted)}.nav{border-top:1px solid var(--line)}.nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:14px 0;font-weight:700;font-size:14px}.nav a:hover{color:var(--accent)}.hero{display:grid;grid-template-columns:2fr 1fr;gap:32px;padding:42px 0 28px}.hero-main,.card{border-bottom:1px solid var(--line);padding-bottom:24px}.eyebrow{color:var(--accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.hero h1{font-family:Georgia,serif;font-size:44px;line-height:1.08;margin:10px 0 12px}.excerpt{color:var(--muted)}.meta{font-size:12px;color:#8a9099;margin-top:12px}.side-stack{display:grid;gap:22px}.side-stack h2{font-family:Georgia,serif;font-size:22px;line-height:1.2;margin:7px 0}.content-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:44px;padding:25px 0 60px}.section-title{font-family:Georgia,serif;font-size:28px;border-bottom:3px solid var(--ink);padding-bottom:10px;margin:0 0 22px}.post-list{display:grid;gap:28px}.post-card{display:grid;grid-template-columns:190px 1fr;gap:22px;border-bottom:1px solid var(--line);padding-bottom:26px}.post-card .thumb{background:#e9ebee;aspect-ratio:16/10;overflow:hidden}.post-card .thumb img{width:100%;height:100%;object-fit:cover}.post-card h2{font-family:Georgia,serif;font-size:25px;line-height:1.2;margin:5px 0 8px}.sidebar-box{background:var(--soft);padding:24px;margin-bottom:24px}.sidebar-box h3{font-family:Georgia,serif;margin-top:0}.editors a{display:block;padding:12px 0;border-bottom:1px solid #ddd;font-weight:700}.category-cloud a{display:inline-block;border:1px solid #d9dce1;padding:7px 10px;margin:0 5px 7px 0;font-size:12px}.adbox{border:1px dashed #c9cdd4;min-height:170px;display:grid;place-items:center;color:#9298a1;font-size:12px;text-transform:uppercase;letter-spacing:.1em}.site-footer{background:#101318;color:#e9ebef;padding:45px 0}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:40px}.site-footer p,.site-footer a{color:#aeb4bd;font-size:13px}.single{max-width:820px;margin:48px auto 70px;padding:0 22px}.single h1{font-family:Georgia,serif;font-size:48px;line-height:1.08}.single .entry-content{font-family:Georgia,serif;font-size:19px;line-height:1.8}.archive-title{font-family:Georgia,serif;font-size:42px;margin:45px 0 28px}.pagination{padding:30px 0}.pagination .page-numbers{margin-right:10px}.screen-reader-text{position:absolute;left:-9999px}@media(max-width:780px){.hero,.content-grid,.footer-grid{grid-template-columns:1fr}.hero h1,.single h1{font-size:36px}.post-card{grid-template-columns:1fr}.nav ul{overflow:auto;white-space:nowrap}.tagline{display:none}.brand{font-size:30px}}/* ==================================================
   NORTHERN FRAME — ARTICLE ADVERTISING
   ================================================== */


/* ---------- ARTICLE CONTAINER ---------- */

.single-ad-layout {
    position: relative;

    width: 100%;
    max-width: 820px;

    margin: 48px auto 70px;
}


/*
 * Original .single has its own margin/padding.
 * Inside our advertising layout we reset them.
 */

.single-ad-layout .single {
    width: 100%;
    max-width: 820px;

    margin: 0;
    padding: 0 22px;
}


/* ---------- FEATURED IMAGE ---------- */

.single-featured-image {
    margin: 28px 0;
}

.single-featured-image img {
    display: block;

    width: 100%;
    height: auto;
}


/* ==================================================
   LEFT + RIGHT DESKTOP ADVERTISING
   ================================================== */

.single-ad-layout .side-ad {
    position: absolute;

    top: 0;

    width: 280px;
}


/* LEFT */

.single-ad-layout .side-ad-left {
    right: calc(100% + 32px);
}


/* RIGHT */

.single-ad-layout .side-ad-right {
    left: calc(100% + 32px);
}


/* Actual advertising box */

.single-ad-layout .side-ad-inner {
    position: sticky;

    top: 30px;

    width: 280px;
    min-height: 600px;

    border: 1px dashed #c9cdd4;
    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    color: #9298a1;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}


/* ==================================================
   ADVERTISING INSIDE ARTICLE
   ================================================== */

.single-ad-layout .article-ad {
    width: 100%;

    min-height: 155px;

    margin: 32px 0;

    border: 1px dashed #c9cdd4;
    background: #fafafa;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


.single-ad-layout .article-ad-label {
    padding: 0;

    color: #9298a1;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
}


/* ==================================================
   RESPONSIVE
   ================================================== */


/*
 * There is not enough horizontal space for
 * 820px article + two 280px advertising columns.
 */

@media (max-width: 1460px) {

    .single-ad-layout .side-ad {
        display: none;
    }

}


/* MOBILE */

@media (max-width: 850px) {

    .single-ad-layout {
        width: 100%;

        margin-top: 30px;
        margin-bottom: 50px;
    }

    .single-ad-layout .single {
        width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }

    .single-ad-layout .article-ad {
        min-height: 120px;
    }

}
/* ==================================================
   KEEP SIDE ADS VISIBLE WHILE SCROLLING
   ================================================== */

.single-ad-layout .side-ad {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 280px;
}

.single-ad-layout .side-ad-left {
    right: calc(100% + 32px);
}

.single-ad-layout .side-ad-right {
    left: calc(100% + 32px);
}

.single-ad-layout .side-ad-inner {
    position: sticky;
    top: 30px;

    width: 280px;
    min-height: 600px;
}