/* ============================================================
   ProfiloPolitics — /blog MODERN DESKTOP layer, v4
   Approved by the owner 2026-10-31 (target picture:
   mockup-blog-modern.png). v4 rebuilds the page furniture to
   the picture, after a section-by-section comparison showed
   v1–v3 had only restyled the story cards:
     - red BREAKING band across the very top (the app ticker,
       moved above the header and recoloured)
     - masthead: big logo + ProfiloPolitics wordmark + tagline,
       red "Join on Telegram" pill at the right
     - navy nav bar, white capital links
     - LATEST NEWS heading with the red bar
     - hero: photo, red category tab on the photo, big headline,
       summary line, chips BELOW the hero
     - rail: TOP STORIES (3 stories with photos), then the grey
       MOST READ box with red numbers; the chat-room trending
       box and the ad slots are hidden on this page
     - video bands: navy panel, playable player left as a
       rectangle, red label + headline right; a band extends
       across the full page width where the rail has ended
     - navy footer with the brand and links
     - the fixed red BREAKING bar at the bottom is hidden
   HOW IT WORKS: this file loads after the app bundle. Rules
   scoped to .blog-page restyle the blog view; rules scoped to
   body.pp-blog-on (a class the companion script sets only
   while the blog view is on screen) restyle the page shell.
   Everything sits inside the min-width:1024px query — the
   phone version and every other page are untouched.
   To remove the new look, delete this file's <link> and the
   script tag in index.html.
   ============================================================ */

@media (min-width: 1024px) {

  /* ================= page frame ================= */
  .blog-page {
    background: #ffffff;
  }
  .blog-page .wrap {
    max-width: 1400px;
    gap: 30px;
    padding: 26px 32px 84px;
  }
  .blog-page .feedcol {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .blog-page .rail {
    flex: 0 0 330px;
    width: 330px;
  }

  /* the fixed red bar at the bottom of the screen: gone */
  body.pp-blog-on .breaking {
    display: none !important;
  }

  /* ================= BREAKING band (the app ticker) ======== */
  body.pp-blog-on .pp-news-ticker-bar {
    order: -1;
    background-color: #c8102e;
    border-bottom: none;
    color: #ffffff;
    height: 38px;
    font-size: .88rem;
  }
  body.pp-blog-on .pp-ticker-badge {
    background: #101c30;
    color: #ffffff;
    font-size: .78rem;
    padding: 0 18px;
  }
  body.pp-blog-on .pp-ticker-dot {
    background: #ffffff;
  }
  body.pp-blog-on .pp-ticker-link,
  body.pp-blog-on .pp-ticker-story-item {
    color: #ffffff;
  }
  body.pp-blog-on .pp-ticker-close {
    color: #ffffff;
  }

  /* the ticker moves above the header: the page column is a
     flex column already, so order alone does it — no DOM move */
  body.pp-blog-on .ed-page-container {
    display: flex;
    flex-direction: column;
  }
  body.pp-blog-on .site-header {
    order: 0;
  }
  body.pp-blog-on .blog-page {
    order: 1;
  }

  /* ================= masthead ================= */
  body.pp-blog-on .site-header {
    background: #ffffff;
  }
  body.pp-blog-on .utility {
    min-height: 92px;
    border-bottom: none;
  }
  body.pp-blog-on .site-header-logo {
    height: 58px;
    max-height: 58px;
  }
  body.pp-blog-on .site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
  }
  /* wordmark injected by the script */
  .ppd-wordmark {
    display: inline-block;
    line-height: 1.05;
  }
  .ppd-wordmark .ppd-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 700;
    color: #0d2138;
    letter-spacing: .2px;
  }
  .ppd-wordmark .ppd-tag {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2.6px;
    color: #c8102e;
    margin-top: 3px;
  }
  body.pp-blog-on .social-list {
    display: none;
  }
  body.pp-blog-on .header-edition-desktop {
    justify-content: flex-end;
    color: #7c8798;
    font-size: 12.5px;
  }
  /* Telegram pill injected by the script */
  .ppd-tg {
    display: inline-flex;
    align-items: center;
    background: #c8102e;
    color: #ffffff !important;
    font-family: Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 22px;
    white-space: nowrap;
  }
  .ppd-tg:hover {
    background: #a50d26;
  }

  /* ================= navy nav bar ================= */
  body.pp-blog-on .nav-row {
    background: #0c1b33;
    border-bottom: none;
    min-height: 54px;
  }
  body.pp-blog-on .primary-nav a,
  body.pp-blog-on .desktop-nav a,
  body.pp-blog-on .nav-anchor {
    color: #dbe4f0 !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .7px;
    text-decoration: none;
  }
  body.pp-blog-on .primary-nav a:hover,
  body.pp-blog-on .desktop-nav a:hover {
    color: #ffffff !important;
  }
  /* Blog and Company in this nav are <button>s, not links —
     they need the same treatment or they stay dark on navy */
  body.pp-blog-on .nav-row button {
    color: #dbe4f0 !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .7px;
    background: transparent;
  }
  /* the picture's masthead right side is date + Telegram only */
  body.pp-blog-on .utility-right button[aria-label='Select reading language'] {
    display: none !important;
  }

  /* ================= LATEST NEWS heading (injected) ======== */
  .ppd-latest {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #101828;
    margin: 2px 0 20px;
  }
  .ppd-latest::before {
    content: '';
    width: 7px;
    height: 26px;
    background: #c8102e;
    flex: 0 0 7px;
  }
  .ppd-latest::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d9dee6;
  }

  /* ================= category chips =================
     the app's own chip row is hidden on desktop; the script
     clones it below the hero, as in the picture */
  body.pp-blog-on .blog-page .chips {
    display: none;
  }
  .ppd-chips {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 2px;
  }
  .ppd-chip {
    background: #ffffff;
    border: 1.5px solid #c3cad4;
    border-radius: 999px;
    color: #16233c;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
  }
  .ppd-chip.on {
    background: #1a2842;
    border-color: #1a2842;
    color: #ffffff;
  }

  /* ================= story grid: flat, three across ======== */
  .blog-page .feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .blog-page .card {
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #e7eaee;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .blog-page .card:hover {
    box-shadow: none;
  }
  .blog-page .card > a {
    display: block;
    overflow: hidden;
    border-radius: 0;
  }
  .blog-page .card img {
    height: 204px;
  }
  .blog-page .card .band {
    background: #ffffff;
    min-height: 0;
    padding: 12px 2px 0;
  }
  .blog-page .card .cat {
    color: #c8102e;
    font-size: 11.5px;
    letter-spacing: 1.2px;
    margin-bottom: 7px;
  }
  .blog-page .card .hl {
    color: #101828;
    font-size: 19px;
    line-height: 1.35;
  }
  .blog-page .card .hl a {
    color: #101828;
  }
  .blog-page .card .hl a:hover {
    color: #c8102e;
  }
  .blog-page .card .meta {
    background: #ffffff;
    color: #8a94a6;
    font-size: 12px;
    padding: 6px 2px 16px;
  }

  /* ================= hero ================= */
  .blog-page .feed .card:first-of-type {
    grid-column: 1 / -1;
    position: relative;
  }
  .blog-page .feed .card:first-of-type img {
    height: 452px;
  }
  .blog-page .feed .card:first-of-type .cat {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    background: #c8102e;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1.4px;
    padding: 8px 16px;
    margin: 0;
  }
  .blog-page .feed .card:first-of-type .band {
    padding: 18px 2px 0;
  }
  .blog-page .feed .card:first-of-type .hl {
    font-size: 34px;
    line-height: 1.25;
  }
  /* summary line under the hero headline (injected) */
  .ppd-deck {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16.5px;
    line-height: 1.5;
    color: #5b6a80;
    margin: 10px 0 2px;
    max-width: 860px;
  }

  /* ================= video bands ================= */
  .blog-page .videorect {
    background: #121e33;
    border-radius: 0;
    height: 320px;
  }
  .blog-page .videorect video,
  .blog-page .videorect iframe {
    left: 26px !important;
    top: 26px !important;
    bottom: 26px !important;
    width: 46% !important;
    height: auto !important;
  }
  .blog-page .videorect .vlabel {
    background: transparent;
    border-radius: 0;
    color: #ff5a4e;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 0;
    left: calc(46% + 52px);
    top: 40px;
  }
  .blog-page .videorect .vtitle {
    left: calc(46% + 52px);
    right: 28px;
    top: 74px;
    bottom: auto;
    font-size: 25px;
    line-height: 1.35;
  }
  .blog-page .videorect .vplay-btn {
    left: calc(26px + 23%);
    width: 74px;
    height: 74px;
  }
  /* a band whose row has no rail beside it runs the full
     page width, as in the picture (script adds .ppd-wide) */
  .blog-page .videorect.ppd-wide {
    width: calc(100% + 360px);
    height: 360px;
    position: relative;
    z-index: 2;
  }
  /* the player must keep its absolute geometry against the
     site's global iframe rules (script also sets it inline) */
  .blog-page .videorect iframe {
    position: absolute !important;
  }

  /* ================= right rail =================
     picture order: TOP STORIES (injected), then MOST READ.
     The chat-room trending box and the ad slots are hidden. */
  .blog-page .rail .adspace {
    display: none;
  }
  .blog-page .rail .railbox.ppd-trending {
    display: none;
  }
  /* TOP STORIES box (injected) */
  .ppd-topstories {
    margin-bottom: 26px;
  }
  .ppd-topstories h3 {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .4px;
    color: #0d2138;
    margin: 0 0 6px;
    padding-bottom: 9px;
    border-bottom: 3px solid #0d2138;
  }
  .ppd-ts-item {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #e7eaee;
    text-decoration: none;
  }
  .ppd-ts-item img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    flex: 0 0 86px;
  }
  .ppd-ts-item span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #101828;
  }
  .ppd-ts-item:hover span {
    color: #c8102e;
  }
  /* MOST READ: the picture's light-grey box */
  .blog-page .rail .railbox.ppd-mostread {
    background: #f2f4f7;
    box-shadow: none;
    padding: 16px 18px 10px;
  }
  .blog-page .rail .railbox.ppd-mostread .railhead {
    background: transparent;
    color: #c8102e;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .6px;
    padding: 0 0 8px;
  }
  .blog-page .rail .railbox.ppd-mostread .railhead span {
    color: #c8102e;
  }
  .blog-page .rail .railbox.ppd-mostread .ritem {
    border-bottom: 1px solid #e2e6ec;
    padding: 9px 0;
    font-size: 14px;
  }
  .blog-page .rail .railbox.ppd-mostread .rnum {
    color: #c8102e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    margin-right: 9px;
  }

  /* ================= pagination ================= */
  .blog-page .pager {
    padding: 30px 0 6px;
  }
  .blog-page .pager .pnext {
    color: #c8102e;
    border: 1.5px solid #c8102e;
    border-radius: 999px;
    background: #ffffff;
    padding: 9px 20px;
    font-weight: 700;
    cursor: pointer;
  }

  /* ================= footer (injected) ================= */
  .ppd-footer {
    background: #0c1b33;
    color: #c7d2e2;
    margin-top: 10px;
  }
  .ppd-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 38px 32px 42px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }
  .ppd-footer .ppd-fbrand {
    display: flex;
    align-items: center;
    gap: 13px;
  }
  .ppd-footer .ppd-fpp {
    background: #ffffff;
    color: #0c1b33;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 700;
    padding: 9px 10px;
  }
  .ppd-footer .ppd-fname {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
  }
  .ppd-footer .ppd-ftag {
    font-size: 12px;
    color: #93a5bd;
    margin-top: 3px;
  }
  .ppd-footer nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .ppd-footer nav a {
    color: #c7d2e2;
    font-family: Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
  }
  .ppd-footer nav a:hover {
    color: #ffffff;
  }
}
