:root{--rifp-navy:#06365a;--rifp-blue:#005aa9;--rifp-green:#65c82d;--rifp-light:#f5f7f8;--rifp-border:#d9dee3;--rifp-text:#252525}
.rifp-home{max-width:1400px;margin:0 auto;padding:18px}.rifp-home a{color:var(--rifp-navy);text-decoration:none}.rifp-home a:hover{color:var(--rifp-blue)}
.rifp-lead-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr) 300px;gap:18px;align-items:start;margin-bottom:22px}.rifp-lead{position:relative}.rifp-lead-img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.rifp-lead h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,52px);line-height:1.02;margin:8px 0}.rifp-lead p{font-size:17px}.rifp-kicker{font:800 12px/1.2 Arial,sans-serif;color:var(--rifp-blue);text-transform:uppercase;margin-top:8px}.rifp-secondary article{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--rifp-border)}.rifp-secondary h3{font:700 19px/1.18 Georgia,serif;margin:4px 0}.rifp-meta{font-size:12px;color:#737b82}.rifp-placeholder{min-height:160px;background:var(--rifp-light);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px}.rifp-placeholder-lead{min-height:420px;gap:10px}.rifp-empty{background:#fafafa;border:1px dashed var(--rifp-border);padding:18px;font-size:14px}
.rifp-ad{min-height:190px;background:#eaf4fb;border:1px solid #c6dfef;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:20px;margin:0 auto 22px;color:var(--rifp-navy)}.rifp-ad-label{font:700 10px Arial,sans-serif;letter-spacing:1px;color:#7c8790;margin-bottom:10px}.rifp-ad strong{font:800 24px Arial,sans-serif}.rifp-ad em{font-style:normal;font-size:18px;margin:8px 0}.rifp-ad small{max-width:240px}
.izadex-feature{display:grid;grid-template-columns:210px 1fr 190px;gap:24px;align-items:center;background:#f4fbef;border:1px solid #b9df9c;padding:24px;margin:22px 0}.izadex-word{font:800 48px/1 Arial,sans-serif;color:var(--rifp-green);letter-spacing:-3px}.izadex-brand small{font:700 10px Arial,sans-serif;color:var(--rifp-navy)}.izadex-main h2{margin:0 0 4px;color:var(--rifp-navy);font:800 24px Arial,sans-serif}.izadex-prompt{font-weight:700;margin:2px 0 10px}.izadex-search-form{display:flex;align-items:center;border:1px solid #cbd2d8;border-radius:28px;background:#fff;overflow:hidden}.izadex-search-input{flex:1;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;padding:13px 18px!important;font-size:15px}.izadex-search-button{border:0;background:var(--rifp-blue);color:#fff;width:44px;height:44px;border-radius:50%;margin:3px;cursor:pointer;font-size:20px;line-height:1}.izadex-search-button:hover{background:var(--rifp-navy)}.izadex-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.izadex-cats a{font-size:12px;background:#fff;border:1px solid #dce8d5;border-radius:20px;padding:6px 10px;text-decoration:none;color:var(--rifp-navy)}.izadex-cats a:hover{border-color:var(--rifp-green);color:var(--rifp-blue)}.izadex-links{display:flex;flex-direction:column;gap:8px}.izadex-links a{font-weight:700}
.rifp-four-col{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:24px 0}.rifp-section-title{font:800 20px/1.2 Arial,sans-serif;color:var(--rifp-navy);border-bottom:3px solid var(--rifp-blue);padding-bottom:8px;margin:0 0 14px}.rifp-story-item{border-bottom:1px solid var(--rifp-border);padding-bottom:12px;margin-bottom:12px}.rifp-story-item h3{font:700 17px/1.2 Georgia,serif;margin:6px 0}.rifp-thumb img{width:100%;aspect-ratio:16/9;object-fit:cover}
.rifp-lower-grid{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:20px;margin:24px 0}.rifp-events,.rifp-weather{border:1px solid var(--rifp-border);padding:18px}.rifp-explore{min-height:280px;background:linear-gradient(135deg,#224b6c,#8297a7);display:flex;align-items:flex-end;padding:30px;color:#fff}.rifp-explore span{display:block;font:italic 38px Georgia,serif}.rifp-explore strong{display:block;font:700 40px Georgia,serif}.rifp-explore small{font-weight:700;letter-spacing:1px}
.rifp-directory-intro{max-width:1400px;margin:20px auto 0;padding:0 18px}.rifp-directory-intro h1{font-family:Georgia,"Times New Roman",serif}.izadex-directory-wrapper{width:100%;max-width:1400px;margin:0 auto;padding:0 18px 30px}.izadex-directory-wrapper iframe{width:100%;min-height:1150px;border:0;display:block;background:#fff}
@media(max-width:1100px){.rifp-lead-grid{grid-template-columns:2fr 1fr}.rifp-sidebar-ad{grid-column:1/-1}.rifp-four-col{grid-template-columns:repeat(2,1fr)}.izadex-feature{grid-template-columns:170px 1fr}.izadex-links{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}.rifp-lower-grid{grid-template-columns:1fr 1fr}.rifp-explore{grid-column:1/-1}}
@media(max-width:760px){.rifp-lead-grid,.rifp-four-col,.rifp-lower-grid,.izadex-feature{grid-template-columns:1fr}.rifp-home{padding:12px}.izadex-word{font-size:42px}.rifp-explore{grid-column:auto}.izadex-directory-wrapper iframe{min-height:1450px}}
.rifp-directory-intro{display:flex;justify-content:space-between;gap:20px;align-items:end;border-bottom:3px solid var(--rifp-blue);padding-bottom:12px;margin-bottom:14px}.rifp-directory-intro h1{margin:0;color:var(--rifp-navy)}.rifp-directory-intro p{margin:4px 0 0;color:#66727c;font-weight:700}.rifp-directory-query{font-size:14px;color:#4d5961;padding-bottom:4px}.izadex-directory-wrapper{box-shadow:0 1px 4px rgba(0,0,0,.08);border:1px solid var(--rifp-border);padding:0!important;background:#fff}.izadex-directory-wrapper iframe{min-height:900px;height:1100px}
@media(max-width:760px){.rifp-directory-intro{display:block}.rifp-directory-query{margin-top:10px}.izadex-directory-wrapper iframe{min-height:1200px}}

/* v1.4 wrapper cleanup */
body.page .izadex-directory-wrapper{margin-top:0!important;padding-top:0!important}

/* =====================================================
   v1.6 STORY PHOTO GALLERY
   ===================================================== */
.rifp-profile-story-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);gap:30px;align-items:start;margin:10px 0 30px}.rifp-story-gallery{min-width:0}.rifp-story-gallery-stage{position:relative;background:#f4f5f6;overflow:hidden}.rifp-gallery-main{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f4f5f6}.rifp-gallery-lightbox{display:block}.rifp-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:52px;border:0;background:rgba(6,54,90,.82);color:#fff;font-size:34px;line-height:1;cursor:pointer}.rifp-gallery-arrow:hover{background:#005aa9}.rifp-gallery-prev{left:8px}.rifp-gallery-next{right:8px}.rifp-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 4px;scrollbar-width:thin}.rifp-gallery-thumb{flex:0 0 88px;width:88px;height:66px;border:2px solid transparent;background:#fff;padding:2px;cursor:pointer}.rifp-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}.rifp-gallery-thumb.is-active{border-color:#65c82d}.rifp-gallery-count{font:700 12px Arial,sans-serif;color:#66727c;text-align:right;margin-top:5px}.rifp-story-copy{min-width:0}.rifp-story-copy>p:first-child{margin-top:0}.single-post.rifp-has-story-gallery .post-thumbnail,.single-post.rifp-has-story-gallery .post-thumbnail-inner{display:none!important}
@media(max-width:900px){.rifp-profile-story-layout{grid-template-columns:1fr}.rifp-story-copy{margin-top:6px}.rifp-gallery-main{aspect-ratio:16/10}}

/* =====================================================
   v1.7 BUSINESS PROFILE STORY TEMPLATE
   ===================================================== */
.rifp-business-profile-card{border:1px solid #d9dee3;border-top:4px solid #005aa9;background:#fff;padding:18px 20px;margin:0 0 22px;box-shadow:0 2px 8px rgba(6,54,90,.06)}
.rifp-business-profile-card h2{margin:0 0 14px;color:#06365a;font-family:Georgia,"Times New Roman",serif;font-size:26px;line-height:1.1}
.rifp-business-contact-list{display:grid;gap:10px}.rifp-business-contact-list>div{display:grid;grid-template-columns:76px 1fr;gap:10px;align-items:start}.rifp-business-contact-list strong{font:800 12px/1.4 Arial,sans-serif;text-transform:uppercase;letter-spacing:.4px;color:#63717c}.rifp-business-contact-list span,.rifp-business-contact-list a{color:#24333d;text-decoration:none;overflow-wrap:anywhere}.rifp-business-contact-list a:hover{color:#005aa9;text-decoration:underline}
.rifp-business-socials{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.rifp-business-socials a{display:inline-block;border:1px solid #cbd6de;border-radius:18px;padding:6px 10px;font:700 12px Arial,sans-serif;color:#06365a;text-decoration:none}.rifp-business-socials a:hover{border-color:#65c82d;color:#005aa9}
.rifp-izadex-card-block{margin-top:18px;padding-top:16px;border-top:1px solid #e2e7eb}.rifp-izadex-card-label{font:800 12px Arial,sans-serif;color:#06365a;text-transform:uppercase;letter-spacing:.6px;margin-bottom:9px}.rifp-izadex-card-image{display:block;width:100%;height:auto;border:1px solid #d9dee3}.rifp-izadex-profile-button{display:inline-block;margin-top:16px;background:#65c82d;color:#fff!important;padding:10px 14px;border-radius:4px;text-decoration:none;font:800 13px Arial,sans-serif}.rifp-izadex-profile-button:hover{background:#005aa9}
.rifp-story-text{font-size:17px;line-height:1.7}.rifp-story-text>p:first-child{margin-top:0}.rifp-business-profile-only{max-width:1000px;margin:0 auto 30px}.rifp-business-profile-only .rifp-business-profile-card{max-width:420px;float:right;margin:0 0 22px 28px}.rifp-business-profile-only:after{content:"";display:block;clear:both}
.rifp-related-business-stories{clear:both;margin:34px 0 10px;padding-top:22px;border-top:3px solid #06365a}.rifp-related-business-stories>h2{font:800 22px Arial,sans-serif;color:#06365a;text-transform:uppercase;margin:0 0 16px}.rifp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.rifp-related-grid article{border:1px solid #e0e5e8;background:#fff}.rifp-related-grid img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.rifp-related-grid h3{font:700 17px/1.25 Georgia,serif;margin:10px 12px 14px}.rifp-related-grid a{color:#06365a;text-decoration:none}.rifp-related-grid a:hover{color:#005aa9}
@media(max-width:900px){.rifp-business-profile-only .rifp-business-profile-card{float:none;max-width:none;margin:0 0 20px}.rifp-related-grid{grid-template-columns:1fr}.rifp-business-contact-list>div{grid-template-columns:68px 1fr}}

/* =====================================================
   v1.8 BUSINESS PROFILE LAYOUT REFINEMENT
   ===================================================== */
.single-post.rifp-business-profile-story .content-area,
.single-post.rifp-business-profile-story .site-main,
.single-post.rifp-business-profile-story article.entry {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.single-post.rifp-business-profile-story .entry-content-wrap {
    width: 100%;
    max-width: none;
    padding-left: 34px;
    padding-right: 34px;
}
.single-post.rifp-business-profile-story .entry-content {
    max-width: none;
}
.rifp-profile-story-layout {
    grid-template-columns: minmax(0,1.35fr) minmax(300px,.8fr);
    gap: 34px;
    margin: 12px 0 24px;
}
.rifp-profile-story-layout.rifp-no-profile {
    grid-template-columns: minmax(0,1fr);
}
.rifp-story-sidebar { min-width: 0; }
.rifp-story-sidebar .rifp-business-profile-card { margin-bottom: 0; }
.rifp-gallery-main {
    aspect-ratio: 16/10;
    object-fit: contain;
}
.rifp-gallery-thumbs { gap: 10px; padding-top: 12px; }
.rifp-gallery-thumb {
    flex-basis: 104px;
    width: 104px;
    height: 78px;
}
.rifp-story-text-full {
    max-width: 980px;
    margin: 0 auto 26px;
    font-size: 18px;
    line-height: 1.72;
}
.single-post.rifp-business-profile-story .comments-area,
.single-post.rifp-business-profile-story #comments {
    display: none !important;
}
.single-post.rifp-business-profile-story .post-navigation {
    margin-top: 30px;
}
@media (max-width: 900px) {
    .single-post.rifp-business-profile-story .entry-content-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
    .rifp-profile-story-layout { grid-template-columns: 1fr; gap: 18px; }
    .rifp-gallery-thumb { flex-basis: 88px; width: 88px; height: 66px; }
    .rifp-story-text-full { max-width: none; font-size: 17px; }
}

/* =====================================================
   v1.9 CLEAN STORY GALLERY
   - no business information/card panel on public story
   - navigation controls below the large photo
   ===================================================== */
.single-post.rifp-business-profile-story .entry-content-wrap {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}
.rifp-story-gallery-clean {
    width: 100%;
    max-width: 900px;
    margin: 12px auto 26px;
}
.rifp-story-gallery-clean .rifp-story-gallery-stage {
    position: relative;
    background: #f4f5f6;
    border: 1px solid #e0e5e8;
}
.rifp-story-gallery-clean .rifp-gallery-main {
    width: 100%;
    height: auto;
    max-height: 620px;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f4f5f6;
}
.rifp-gallery-controls {
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) 46px;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}
.rifp-story-gallery-clean .rifp-gallery-arrow {
    position: static;
    transform: none;
    width: 46px;
    height: 58px;
    border: 0;
    border-radius: 3px;
    background: #06365a;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.rifp-story-gallery-clean .rifp-gallery-arrow:hover {
    background: #005aa9;
}
.rifp-story-gallery-clean .rifp-gallery-thumbs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: thin;
}
.rifp-story-gallery-clean .rifp-gallery-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
}
.rifp-story-gallery-clean .rifp-gallery-count {
    margin-top: 7px;
    text-align: center;
}
.rifp-story-text-full {
    max-width: 900px;
    margin: 0 auto 28px;
}
/* Keep stored business-profile data available in admin, but never render the old public panel. */
.single-post .rifp-business-profile-card,
.single-post .rifp-story-sidebar,
.single-post .rifp-business-profile-only {
    display: none !important;
}
@media (max-width: 760px) {
    .rifp-gallery-controls {
        grid-template-columns: 42px minmax(0,1fr) 42px;
        gap: 6px;
    }
    .rifp-story-gallery-clean .rifp-gallery-arrow {
        width: 42px;
        height: 52px;
    }
    .rifp-story-gallery-clean .rifp-gallery-thumb {
        flex-basis: 78px;
        width: 78px;
        height: 60px;
    }
}

/* =====================================================
   VERSION 2.0 — NEWSPAPER MASTHEAD + TIGHTER HOME FLOW
   ===================================================== */

/* Remove the old promotional block from the masthead. */
.rifp-header-promo,
.site-header .rifp-header-promo {
    display: none !important;
}

/* Make the logo the masthead: centered, larger, with newspaper-style rules. */
.site-main-header-wrap,
.site-main-header-inner-wrap {
    background: #fff !important;
}
.site-main-header-inner-wrap {
    grid-template-columns: 1fr !important;
    min-height: 126px !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
}
.site-header-main-section-left {
    justify-content: center !important;
    width: 100% !important;
}
.site-header-main-section-center,
.site-header-main-section-right {
    display: none !important;
}
.site-branding,
.site-branding a {
    margin: 0 auto !important;
    text-align: center !important;
}
.site-branding img {
    max-height: 118px !important;
    width: auto !important;
    max-width: min(92vw, 470px) !important;
}

/* Newspaper rule treatment around the navigation row. */
.site-bottom-header-wrap {
    border-top: 3px double #20252a !important;
    border-bottom: 1px solid #20252a !important;
    background: #fff !important;
}
.site-bottom-header-inner-wrap {
    min-height: 42px !important;
}
.main-navigation .primary-menu-container > ul {
    justify-content: center !important;
}
.main-navigation .primary-menu-container > ul > li > a {
    font-size: 13px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
}

/* Pull publication content closer to the masthead/navigation. */
body.home .content-area,
body.home .site-main,
body.single-post .content-area,
body.single-post .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.home .content-container,
body.single-post .content-container {
    padding-top: 18px !important;
}
.rifp-home {
    padding-top: 0 !important;
}

/* Homepage flow: news sections first, Izadex search afterward. */
.rifp-four-col {
    margin-top: 22px !important;
    margin-bottom: 18px !important;
}
.izadex-feature {
    margin-top: 8px !important;
    margin-bottom: 24px !important;
}

/* Story layout echoes the original RI Free Press profile pages:
   photo + filmstrip on the left, opening copy on the right,
   remainder of story below both. */
.single-post.rifp-has-story-gallery .entry-content-wrap {
    max-width: 1120px !important;
}
.rifp-story-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
    gap: 30px;
    align-items: start;
    max-width: 1020px;
    margin: 10px auto 28px;
}
.rifp-story-gallery-clean {
    max-width: none !important;
    margin: 0 !important;
}
.rifp-story-intro {
    font-size: 16px;
    line-height: 1.68;
}
.rifp-story-intro > p:first-child {
    margin-top: 0;
}
.rifp-story-text-full {
    max-width: 900px !important;
    margin: 0 auto 30px !important;
    font-size: 16px;
    line-height: 1.72;
}
.rifp-gallery-controls {
    margin-top: 8px !important;
}
.rifp-story-gallery-clean .rifp-gallery-thumbs {
    padding: 0 !important;
}
.rifp-story-gallery-clean .rifp-gallery-thumb {
    flex: 0 0 86px !important;
    width: 86px !important;
    height: 64px !important;
}
.rifp-story-gallery-clean .rifp-gallery-arrow {
    width: 40px !important;
    height: 52px !important;
    font-size: 27px !important;
}

@media (max-width: 900px) {
    .rifp-story-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .rifp-story-intro {
        max-width: 760px;
        margin: 0 auto;
    }
}

/* =====================================================
   ADVANCED ADS PLACEMENT WIRING — v2.1
   ===================================================== */
.rifp-advads-slot {
    width: 100%;
    margin: 22px auto;
    text-align: center;
    overflow: hidden;
}

.rifp-header-ad-wrap {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #d9dee3;
}

.rifp-header-ad-wrap .rifp-advads-slot {
    max-width: 1200px;
    margin: 10px auto 12px;
    padding: 0 18px;
    box-sizing: border-box;
}

.rifp-sidebar-ad .rifp-advads-slot {
    margin: 0;
}

.rifp-advads-homepage-midpage {
    max-width: 1000px;
    margin: 26px auto;
}

.rifp-advads-directory-sponsor {
    max-width: 1000px;
    margin: 0 auto 16px;
}

@media (max-width: 768px) {
    .rifp-header-ad-wrap .rifp-advads-slot,
    .rifp-advads-slot {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* =====================================================
   VERSION 2.2 — STACKED HOMEPAGE RIGHT-RAIL ADS
   ===================================================== */
.rifp-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}
.rifp-sidebar-stack-item .rifp-advads-slot {
    margin: 0;
}
.rifp-sidebar-stack-item img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
@media (max-width: 1100px) {
    .rifp-sidebar-stack {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .rifp-sidebar-stack-item {
        flex: 1 1 280px;
        max-width: 340px;
    }
}
@media (max-width: 760px) {
    .rifp-sidebar-stack {
        flex-direction: column;
        gap: 14px;
    }
    .rifp-sidebar-stack-item {
        max-width: none;
    }
}


/* =====================================================
   VERSION 3.0 — RHODE ISLAND INFORMATION PORTAL
   ===================================================== */
.rifp-ri-dashboard{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.9fr);gap:24px;margin:24px 0 28px;padding:22px;border:1px solid #d9e2e8;background:#fff}
.rifp-dashboard-head{display:flex;align-items:end;justify-content:space-between;border-bottom:3px solid #06365a;margin-bottom:8px;padding-bottom:7px}.rifp-dashboard-head h2{margin:0;font:800 20px Arial,sans-serif;color:#06365a}.rifp-dashboard-head a{font:700 12px Arial,sans-serif;color:#005aa9;text-decoration:none}
.rifp-rss-list{display:grid;gap:0}.rifp-rss-item{padding:13px 0;border-bottom:1px solid #e1e7eb}.rifp-rss-item:last-child{border-bottom:0}.rifp-rss-source{font:800 10px Arial,sans-serif;text-transform:uppercase;letter-spacing:.5px;color:#005aa9}.rifp-rss-item h3{font:700 19px/1.2 Georgia,serif;margin:3px 0 5px}.rifp-rss-item h3 a{color:#18354d;text-decoration:none}.rifp-rss-item h3 a:hover{color:#005aa9}.rifp-rss-item p{margin:5px 0;font-size:14px;line-height:1.45}.rifp-rss-date{font-size:11px;color:#76828b}.rifp-rss-compact .rifp-rss-item{padding:9px 0}.rifp-rss-compact .rifp-rss-item h3{font-size:16px}
.rifp-dashboard-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rifp-dashboard-card{display:flex;flex-direction:column;min-height:150px;padding:17px;border:1px solid #d9e2e8;border-top:4px solid #005aa9;background:#f7fafc;color:#24333d;text-decoration:none}.rifp-dashboard-card strong{font:800 18px Arial,sans-serif;color:#06365a;margin-bottom:8px}.rifp-dashboard-card span{font-size:13px;line-height:1.45;flex:1}.rifp-dashboard-card em{font:700 12px Arial,sans-serif;color:#005aa9;font-style:normal;margin-top:12px}.rifp-dashboard-card:hover{border-top-color:#65c82d;background:#fff}
.rifp-portal-page{max-width:1180px;margin:0 auto;padding:24px}.rifp-portal-page-head{border-bottom:4px solid #06365a;margin-bottom:18px}.rifp-portal-page-head h1{font:700 clamp(30px,4vw,48px) Georgia,serif;margin:0 0 6px;color:#172c3d}.rifp-portal-page-head p{margin:0 0 15px;color:#56636c}
.rifp-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rifp-resource-card{display:flex;flex-direction:column;gap:6px;padding:18px;border:1px solid #d9e2e8;border-left:5px solid #65c82d;background:#fff;text-decoration:none}.rifp-resource-card strong{font:800 17px Arial,sans-serif;color:#06365a}.rifp-resource-card span{font-size:12px;color:#66737c}.rifp-resource-card:hover{border-left-color:#005aa9;box-shadow:0 3px 12px rgba(6,54,90,.08)}
.rifp-resource-viewer{max-width:1320px;margin:0 auto;padding:16px 20px 28px}.rifp-resource-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 14px;background:#06365a;color:#fff}.rifp-resource-toolbar>div{display:flex;flex-direction:column;gap:3px}.rifp-resource-toolbar strong{font:800 17px Arial,sans-serif}.rifp-resource-toolbar span{font-size:11px;color:#d7e5ef}.rifp-resource-toolbar a{display:inline-block;background:#65c82d;color:#06365a!important;text-decoration:none;font:800 12px Arial,sans-serif;padding:10px 13px;border-radius:3px;white-space:nowrap}.rifp-resource-frame{display:block;width:100%;height:1050px;border:1px solid #d7dfe5;border-top:0;background:#fff}.rifp-news-frame{height:1200px}.rifp-frame-fallback{font-size:12px;color:#66737c;margin:8px 0 0}.rifp-lottery-note{padding:9px 12px;background:#fff5df;border:1px solid #f0d49c;font-size:12px;color:#55431e}
.rifp-explore{text-decoration:none!important}
@media(max-width:1000px){.rifp-ri-dashboard{grid-template-columns:1fr}.rifp-dashboard-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.rifp-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.rifp-ri-dashboard{padding:14px}.rifp-dashboard-actions{grid-template-columns:1fr 1fr}.rifp-dashboard-card{min-height:125px}.rifp-resource-grid{grid-template-columns:1fr}.rifp-resource-toolbar{align-items:flex-start;flex-direction:column}.rifp-resource-frame,.rifp-news-frame{height:900px}}


/* =====================================================
   VERSION 3.0.1 — TOP AREA / RIGHT-RAIL LAYOUT FIX
   Keeps stacked ads beside editorial/dashboard content without
   forcing a large blank gap under the lead story.
   ===================================================== */
.rifp-top-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start;margin-bottom:24px}
.rifp-top-main{min-width:0}
.rifp-top-main .rifp-lead-grid-main{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:18px;margin-bottom:20px}
.rifp-top-main .rifp-ri-dashboard{margin-top:0;margin-bottom:0}
.rifp-sidebar-rail{min-width:0}
.rifp-sidebar-rail .rifp-sidebar-stack{position:static}
.rifp-sidebar-rail .rifp-sidebar-stack-item{width:100%;max-width:300px;margin:0 auto}
.rifp-sidebar-rail .rifp-advads-slot{margin:0}
@media(max-width:1100px){
  .rifp-top-shell{grid-template-columns:1fr}
  .rifp-sidebar-rail{order:2}
  .rifp-sidebar-rail .rifp-sidebar-stack{flex-direction:row;flex-wrap:wrap;justify-content:center}
  .rifp-sidebar-rail .rifp-sidebar-stack-item{flex:1 1 280px;max-width:320px}
}
@media(max-width:760px){
  .rifp-top-main .rifp-lead-grid-main{grid-template-columns:1fr}
  .rifp-sidebar-rail .rifp-sidebar-stack{flex-direction:column}
  .rifp-sidebar-rail .rifp-sidebar-stack-item{max-width:none}
}


/* =====================================================
   VERSION 3.1 — CLEAN HOME + SITEWIDE IZADEX SEARCH
   ===================================================== */
/* The RI resource dashboard now lives in the navigation/dropdowns, not on Home. */
.rifp-ri-dashboard { display: none !important; }

/* Persistent Izadex search band immediately above the site footer. */
.rifp-global-izadex-wrap {
    width: 100%;
    background: #f7f9fa;
    border-top: 1px solid #dce3e8;
    padding: 24px 18px;
    box-sizing: border-box;
}
.rifp-global-izadex-wrap .rifp-global-izadex {
    width: min(1180px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
}
.rifp-global-izadex {
    margin-top: 0;
    margin-bottom: 0;
}
.rifp-global-izadex .izadex-main h2 {
    font-size: 22px;
}
.rifp-global-izadex .izadex-prompt {
    margin-bottom: 8px;
}
@media (max-width: 760px) {
    .rifp-global-izadex-wrap { padding: 14px 10px; }
}


/* =====================================================
   VERSION 3.2 — NEW HOME EDITORIAL GRID + CLEAN IZADEX
   ===================================================== */
body.home .content-container,
body.home .site-container,
body.home .site-main {
    max-width: 1540px !important;
}
body.home .content-container {
    padding-left: 8px !important;
    padding-right: 8px !important;
}
.rifp-home.rifp-home-320 {
    max-width: 1520px;
    padding: 6px 10px 22px;
}
.rifp-top-shell-320 {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 20px;
    align-items: start;
    margin-top: 0;
    margin-bottom: 20px;
}
.rifp-lead-horizontal {
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr);
    gap: 22px;
    align-items: stretch;
}
.rifp-lead-horizontal-media,
.rifp-lead-horizontal-copy { min-width: 0; }
.rifp-lead-horizontal-media a { display:block; height:100%; }
.rifp-lead-horizontal .rifp-lead-img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    max-height: 475px;
    aspect-ratio: auto;
    object-fit: cover;
}
.rifp-lead-horizontal-copy {
    display: flex;
    flex-direction: column;
    padding: 2px 4px 4px 0;
}
.rifp-lead-horizontal-copy h1 {
    font: 700 clamp(34px,3.25vw,56px)/1.02 Georgia,"Times New Roman",serif;
    margin: 7px 0 13px;
}
.rifp-lead-horizontal-copy p {
    font-size: 17px;
    line-height: 1.62;
    margin: 0 0 14px;
}
.rifp-read-more {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background: #06365a;
    color: #fff !important;
    padding: 10px 15px;
    font: 800 13px Arial,sans-serif;
    text-decoration: none;
}
.rifp-read-more:hover { background:#005aa9; }
.rifp-six-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px 20px;
    margin: 18px 0 24px;
}
.rifp-home-category-card { min-width:0; }
.rifp-home-category-card .rifp-story-item { margin-bottom:0; }
.rifp-home-category-card .rifp-story-list { min-height:0; }
.rifp-home-category-card .rifp-thumb img { width:100%; aspect-ratio:16/8; object-fit:cover; }
.rifp-home-category-card .rifp-story-item p { display:none; }

/* Four stacked ad positions in the homepage right rail. */
.rifp-top-shell-320 .rifp-sidebar-stack { gap: 14px; }
.rifp-top-shell-320 .rifp-sidebar-stack-item { max-width:300px; }

/* Clean Izadex module: white, logo + search + all top-tier categories. */
.rifp-izadex-clean,
.rifp-global-izadex-wrap .rifp-izadex-clean {
    background:#fff !important;
    border:1px solid #d9dee3 !important;
    padding:20px !important;
    display:grid !important;
    grid-template-columns:220px minmax(0,1fr) !important;
    gap:18px 24px !important;
    align-items:center !important;
}
.rifp-izadex-clean .izadex-brand { align-self:center; }
.rifp-izadex-full-logo {
    display:block;
    width:100%;
    max-width:220px;
    height:auto;
}
.rifp-izadex-clean .izadex-main h2 {
    margin:0 0 10px;
    color:#06365a;
    font:800 22px Arial,sans-serif;
}
.rifp-izadex-clean .izadex-search-form { margin:0; }
.rifp-izadex-clean .izadex-search-input { background:#fff; }
.rifp-izadex-clean .rifp-all-izadex-cats {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
    margin-top:2px;
}
.rifp-izadex-clean .rifp-all-izadex-cats a {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:6px 8px;
    border:1px solid #d7dfe5;
    border-left:3px solid #65c82d;
    border-radius:3px;
    background:#fff;
    color:#06365a;
    font:700 12px/1.2 Arial,sans-serif;
    text-align:center;
}
.rifp-izadex-clean .rifp-all-izadex-cats a:hover {
    border-left-color:#005aa9;
    background:#f6f9fb;
}
.rifp-global-izadex-wrap { background:#f7f9fa; }

@media(max-width:1150px){
    .rifp-top-shell-320 { grid-template-columns:1fr; }
    .rifp-top-shell-320 .rifp-sidebar-stack { flex-direction:row; flex-wrap:wrap; justify-content:center; }
    .rifp-top-shell-320 .rifp-sidebar-stack-item { flex:1 1 260px; max-width:300px; }
    .rifp-lead-horizontal { grid-template-columns:1.05fr .95fr; }
    .rifp-izadex-clean .rifp-all-izadex-cats { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:820px){
    .rifp-lead-horizontal { grid-template-columns:1fr; }
    .rifp-lead-horizontal .rifp-lead-img { min-height:0; max-height:none; aspect-ratio:16/9; }
    .rifp-six-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rifp-izadex-clean { grid-template-columns:1fr !important; }
    .rifp-izadex-clean .izadex-brand { text-align:center; }
    .rifp-izadex-full-logo { margin:0 auto; }
    .rifp-izadex-clean .rifp-all-izadex-cats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px){
    .rifp-six-grid { grid-template-columns:1fr; }
    .rifp-izadex-clean .rifp-all-izadex-cats { grid-template-columns:1fr; }
}


/* =====================================================
   VERSION 3.2.1 — CATEGORY GRID DIRECTLY UNDER LEAD
   ===================================================== */
.rifp-top-main {
    min-width: 0;
}
.rifp-six-grid-under-lead {
    margin-top: 20px;
    margin-bottom: 0;
}
/* The right ad rail no longer forces the six editorial cards downward. */
.rifp-top-shell-320 {
    align-items: start;
}
@media(max-width:1150px){
    .rifp-six-grid-under-lead { margin-bottom: 18px; }
}


/* =====================================================
   VERSION 3.3 — CATEGORY AD RAIL + UPDATED IZADEX LOGO
   ===================================================== */
body.category .content-container.rifp-has-category-ad-rail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}
body.category .content-container.rifp-has-category-ad-rail > .content-area,
body.category .content-container.rifp-has-category-ad-rail > #primary,
body.category .content-container.rifp-has-category-ad-rail > main.site-main {
    min-width: 0;
}
.rifp-category-ad-rail {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
}
.rifp-category-ad-item,
.rifp-category-ad-item .rifp-advads-slot {
    width: 100%;
    margin: 0;
}
.rifp-category-ad-item img {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}
.rifp-category-ad-rail:empty { display:none; }

/* Search panel uses the supplied classic Izadex logo. */
.rifp-izadex-clean .rifp-izadex-full-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1000px) {
    body.category .content-container.rifp-has-category-ad-rail {
        grid-template-columns: 1fr !important;
    }
    .rifp-category-ad-rail {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .rifp-category-ad-item img { max-width: 100%; }
}
@media (max-width: 620px) {
    .rifp-category-ad-rail { grid-template-columns: 1fr; }
}


/* =====================================================
   VERSION 3.3.1 — REMOVE OLD LOWER MODULES + FORCE CLASSIC IZADEX LOGO
   ===================================================== */
.rifp-lower-grid,
.rifp-events,
.rifp-explore,
.rifp-weather {
    display:none !important;
}
.rifp-izadex-clean .izadex-brand {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.rifp-izadex-clean .rifp-izadex-full-logo {
    display:block !important;
    width:190px !important;
    max-width:190px !important;
    height:auto !important;
    opacity:1 !important;
    visibility:visible !important;
}
@media(max-width:820px){
    .rifp-izadex-clean .rifp-izadex-full-logo {
        width:170px !important;
        max-width:170px !important;
    }
}


/* =====================================================
   VERSION 3.4 — MASTHEAD DATE + WEATHER UTILITY
   ===================================================== */
.site-main-header-inner-wrap {
    grid-template-columns: minmax(300px, 470px) minmax(420px, 1fr) !important;
    column-gap: 34px !important;
    align-items: center !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
}
.site-header-main-section-left {
    justify-content: flex-start !important;
}
.site-branding,
.site-branding a {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}
.rifp-masthead-utility {
    grid-column: 2;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
        "date current"
        "forecast forecast"
        "links links";
    align-items: center;
    justify-content: end;
    gap: 5px 18px;
    color: #18324a;
    font-family: Arial, sans-serif;
    line-height: 1.15;
}
.rifp-masthead-date { grid-area: date; text-align: right; }
.rifp-masthead-date strong { display:block; font: 700 14px Georgia, "Times New Roman", serif; color:#20252a; }
.rifp-masthead-date span { display:block; margin-top:3px; font-size:12px; color:#65717b; }
.rifp-current-weather {
    grid-area: current;
    display:flex;
    flex-direction:column;
    padding-left:16px;
    border-left:1px solid #cfd6dc;
    color:#06365a;
    text-decoration:none;
}
.rifp-current-weather strong { font-size:18px; }
.rifp-current-weather span { margin-top:2px; font-size:12px; color:#65717b; }
.rifp-five-day { grid-area: forecast; display:flex; justify-content:flex-end; gap:0; margin-top:4px; border-top:1px solid #d9dee3; border-bottom:1px solid #d9dee3; }
.rifp-five-day a { display:grid; grid-template-columns:auto auto auto; gap:4px; align-items:baseline; min-width:74px; padding:5px 9px; border-left:1px solid #e1e5e8; color:#18324a; text-decoration:none; font-size:11px; }
.rifp-five-day a:first-child { border-left:0; }
.rifp-five-day a span { text-transform:uppercase; color:#60717e; font-weight:700; }
.rifp-five-day a strong { color:#06365a; font-size:13px; }
.rifp-five-day a small { color:#7d8992; font-size:10px; }
.rifp-utility-links { grid-area: links; display:flex; justify-content:flex-end; gap:14px; padding-top:2px; }
.rifp-utility-links a { color:#005aa9; text-decoration:none; text-transform:uppercase; letter-spacing:.35px; font-size:10px; font-weight:800; }
.rifp-utility-links a:hover { text-decoration:underline; }
@media(max-width:900px){
    .site-main-header-inner-wrap { grid-template-columns:1fr !important; row-gap:6px !important; }
    .site-header-main-section-left { justify-content:center !important; }
    .site-branding,.site-branding a { margin-left:auto !important; margin-right:auto !important; text-align:center !important; }
    .rifp-masthead-utility { grid-column:1; justify-content:center; grid-template-columns:auto auto; }
    .rifp-five-day { justify-content:center; }
    .rifp-utility-links { justify-content:center; }
}
@media(max-width:620px){
    .site-main-header-inner-wrap { min-height:auto !important; padding-top:8px !important; padding-bottom:8px !important; }
    .site-branding img { max-height:82px !important; }
    .rifp-masthead-utility { grid-template-columns:1fr auto; width:100%; gap:4px 10px; }
    .rifp-masthead-date { text-align:left; }
    .rifp-five-day { overflow-x:auto; justify-content:flex-start; width:100%; }
    .rifp-five-day a { min-width:66px; padding-left:7px; padding-right:7px; }
    .rifp-utility-links { justify-content:flex-start; }
}


/* =====================================================
   VERSION 3.4.1 — HOME TOP-STORY FILMSTRIP + IZ ADEX HEADING CENTER
   ===================================================== */
.rifp-home-lead-gallery .rifp-home-lead-main-link {
    display:block;
    height:auto;
}
.rifp-home-lead-gallery .rifp-home-lead-main {
    display:block;
    width:100%;
    height:auto;
    min-height:350px;
    max-height:475px;
    object-fit:cover;
}
.rifp-home-filmstrip {
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:9px 0 2px;
    scrollbar-width:thin;
}
.rifp-home-film-thumb {
    flex:0 0 78px;
    width:78px;
    height:58px;
    padding:2px;
    border:2px solid transparent;
    background:#fff;
    cursor:pointer;
}
.rifp-home-film-thumb img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}
.rifp-home-film-thumb.is-active {
    border-color:#65c82d;
}
.rifp-izadex-clean .izadex-main h2 {
    text-align:center !important;
}
@media (max-width:760px) {
    .rifp-home-lead-gallery .rifp-home-lead-main { min-height:0; max-height:none; aspect-ratio:16/9; }
    .rifp-home-film-thumb { flex-basis:68px; width:68px; height:50px; }
}


/* v3.4.2 category ad rail robustness */
body.category .rifp-category-ad-rail { position: relative; z-index: 2; }

/* v3.4.3: category placement ID prefix matching for Advanced Ads duplicate IDs. */


/* =====================================================
   VERSION 3.4.4 — REMOVE THEME PAGE/CATEGORY TITLE HERO
   Keeps story/article headlines intact, but removes the large
   Kadence shaded title band from Pages and category/archive views.
   ===================================================== */
body.page:not(.home) .entry-hero,
body.page:not(.home) .entry-hero-container-inner,
body.page:not(.home) .page-title-wrap,
body.archive .entry-hero,
body.archive .entry-hero-container-inner,
body.archive .page-title-wrap,
body.category .entry-hero,
body.category .entry-hero-container-inner,
body.category .page-title-wrap {
    display: none !important;
}

/* Some Kadence versions render the archive title inside a title container. */
body.archive .archive-title,
body.category .archive-title,
body.archive .page-header,
body.category .page-header {
    display: none !important;
}

/* Remove the leftover vertical gap after the title band is hidden. */
body.page:not(.home) #primary,
body.archive #primary,
body.category #primary,
body.page:not(.home) .content-area,
body.archive .content-area,
body.category .content-area,
body.page:not(.home) .site-main,
body.archive .site-main,
body.category .site-main {
    margin-top: 0 !important;
    padding-top: 18px !important;
}


/* v3.4.5 category ad image safety */
.rifp-category-ad-rail img,
.rifp-category-ad-item img,
.rifp-direct-ad img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}


/* =====================================================
   VERSION 3.4.6 — CONTROLLED CATEGORY ARCHIVE TEMPLATE
   ===================================================== */
.rifp-category-template-wrap {
    width: min(1320px, calc(100% - 40px));
    margin: 22px auto 42px;
}
.rifp-category-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 28px;
    align-items: start;
}
.rifp-category-main { min-width: 0; }
.rifp-category-story-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}
.rifp-category-story-card {
    background: #fff;
    border: 1px solid #dfe5e9;
    box-shadow: 0 2px 8px rgba(6,54,90,.05);
}
.rifp-category-card-image { display:block; }
.rifp-category-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.rifp-category-card-body { padding: 18px 20px 20px; }
.rifp-category-card-body h2 {
    margin: 7px 0 8px;
    font: 700 28px/1.08 Georgia,"Times New Roman",serif;
}
.rifp-category-card-body h2 a { color:#1d2730; text-decoration:none; }
.rifp-category-card-body p { font-size:16px; line-height:1.55; }
.rifp-category-read-more { font-weight:700; color:#06365a; text-decoration:none; }
.rifp-category-sidebar { width:300px; min-width:0; }
.rifp-category-sidebar .rifp-category-ad-rail {
    display:flex;
    flex-direction:column;
    gap:18px;
    width:300px;
}
.rifp-category-sidebar .rifp-category-ad-item,
.rifp-category-sidebar .rifp-advads-slot { margin:0; width:100%; }
.rifp-category-sidebar img { max-width:100% !important; width:auto; height:auto !important; display:block; margin:0 auto; }
.rifp-category-pagination { margin-top:28px; }
@media (max-width:980px) {
  .rifp-category-layout { grid-template-columns:1fr; }
  .rifp-category-sidebar { width:100%; }
  .rifp-category-sidebar .rifp-category-ad-rail { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .rifp-category-template-wrap { width:min(100% - 24px, 1320px); margin-top:14px; }
  .rifp-category-story-grid { grid-template-columns:1fr; }
  .rifp-category-sidebar .rifp-category-ad-rail { grid-template-columns:1fr; }
}


/* =====================================================
   VERSION 3.4.7 — CATEGORY WIDTH + AD DIAGNOSTIC
   ===================================================== */
body.category .rifp-category-template-wrap,
body.archive .rifp-category-template-wrap {
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
    margin: 18px auto 44px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body.category #primary.rifp-category-template-wrap,
body.archive #primary.rifp-category-template-wrap {
    float: none !important;
    left: auto !important;
    right: auto !important;
}
.rifp-category-layout {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 30px !important;
}
.rifp-category-main { width:100% !important; max-width:none !important; }
.rifp-category-sidebar { width:300px !important; }
.rifp-ad-debug {
    border: 2px dashed #c9302c;
    background:#fff7f6;
    color:#7b241c;
    padding:12px;
    font: 13px/1.45 Arial,sans-serif;
}
@media(max-width:980px){
    body.category .rifp-category-template-wrap,
    body.archive .rifp-category-template-wrap { width:calc(100% - 28px) !important; }
    .rifp-category-layout { grid-template-columns:1fr !important; }
    .rifp-category-sidebar { width:100% !important; }
}


/* =====================================================
   VERSION 3.4.8 — KADENCE CATEGORY SIDEBAR FALLBACK
   The live theme was bypassing the plugin archive template, so this
   wraps the actual Kadence category content and injects the ad rail.
   ===================================================== */
body.category .content-container,
body.category .site-content .site-container,
body.category #primary.content-area,
body.category .content-area {
    box-sizing: border-box !important;
}
body.category .site-content > .site-container,
body.category .content-container.site-container,
body.category .content-container {
    width: calc(100% - 48px) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.category .rifp-category-fallback-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 30px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 18px auto 44px !important;
}
body.category .rifp-category-fallback-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rifp-category-fallback-rail {
    width: 300px !important;
    min-width: 0 !important;
}
.rifp-category-fallback-rail .rifp-category-ad-rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 300px !important;
}
.rifp-category-fallback-rail .rifp-category-ad-item,
.rifp-category-fallback-rail .rifp-advads-slot {
    width: 100% !important;
    margin: 0 !important;
}
.rifp-category-fallback-rail img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}
@media (max-width: 980px) {
    body.category .site-content > .site-container,
    body.category .content-container.site-container,
    body.category .content-container { width: calc(100% - 28px) !important; }
    body.category .rifp-category-fallback-layout { grid-template-columns: 1fr !important; }
    .rifp-category-fallback-rail { width: 100% !important; }
    .rifp-category-fallback-rail .rifp-category-ad-rail {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width: 700px) {
    .rifp-category-fallback-rail .rifp-category-ad-rail { grid-template-columns: 1fr !important; }
}


/* =====================================================
   VERSION 3.4.9 — HARD FALLBACK CATEGORY RAIL TEST
   ===================================================== */
.rifp-force-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    width: min(1200px, calc(100% - 36px));
    margin: 18px auto 40px;
    align-items: start;
}
.rifp-force-category-layout > #primary,
.rifp-force-category-layout > .content-area,
.rifp-force-category-layout > main.site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.rifp-force-food-rail {
    width: 300px;
    min-height: 80px;
}
.rifp-force-food-rail .advads-ad,
.rifp-force-food-rail .advads-ad img,
.rifp-force-food-rail img {
    display:block;
    width:100% !important;
    max-width:300px !important;
    height:auto !important;
    margin:0 auto;
}
.rifp-force-debug {
    box-sizing:border-box;
    border:3px dashed #c62828;
    background:#fff3f3;
    color:#7a1111;
    padding:16px;
    font:700 14px/1.45 Arial,sans-serif;
}
.rifp-force-debug-fixed {
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:999999;
    max-width:420px;
}
@media(max-width:900px){
    .rifp-force-category-layout{grid-template-columns:1fr;}
    .rifp-force-food-rail{width:100%;max-width:320px;margin:0 auto;}
}


/* =====================================================
   VERSION 3.5.0 — STABLE CATEGORY ARCHIVES
   Fixes the 3.4.9 class mismatch fatal error and makes category
   pages use the browser viewport width instead of inheriting a
   narrow Kadence content column.
   ===================================================== */
body.category .rifp-category-template-wrap,
body.archive .rifp-category-template-wrap {
    width: min(1200px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin: 24px auto 46px !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}
body.category .rifp-category-layout,
body.archive .rifp-category-layout {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 28px !important;
    align-items: start !important;
}
body.category .rifp-category-main,
body.archive .rifp-category-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
}
body.category .rifp-category-story-grid,
body.archive .rifp-category-story-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}
body.category .rifp-category-sidebar,
body.archive .rifp-category-sidebar {
    width: 300px !important;
    max-width: 300px !important;
    min-width: 0 !important;
}
@media (max-width: 980px) {
    body.category .rifp-category-template-wrap,
    body.archive .rifp-category-template-wrap {
        width: calc(100vw - 28px) !important;
    }
    body.category .rifp-category-layout,
    body.archive .rifp-category-layout {
        grid-template-columns: 1fr !important;
    }
    body.category .rifp-category-sidebar,
    body.archive .rifp-category-sidebar {
        width: 100% !important;
        max-width: none !important;
    }
}
@media (max-width: 700px) {
    body.category .rifp-category-story-grid,
    body.archive .rifp-category-story-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =====================================================
   VERSION 3.5.1 — CATEGORY ARCHIVE BALANCE + SAFE ADS
   ===================================================== */
body.category .rifp-category-template-wrap,
body.archive .rifp-category-template-wrap {
    width: min(1180px, calc(100vw - 48px)) !important;
    margin: 20px auto 44px !important;
}
body.category .rifp-category-layout,
body.archive .rifp-category-layout {
    grid-template-columns: minmax(0, 850px) 300px !important;
    gap: 30px !important;
    justify-content: center !important;
}
body.category .rifp-category-story-grid,
body.archive .rifp-category-story-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}
.rifp-category-story-row {
    display: grid !important;
    grid-template-columns: minmax(260px, 42%) minmax(0, 58%) !important;
    align-items: stretch !important;
}
.rifp-category-story-row .rifp-category-card-image {
    height: 100% !important;
    min-height: 260px !important;
}
.rifp-category-story-row .rifp-category-card-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 260px !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
}
.rifp-category-story-row .rifp-category-card-body {
    padding: 24px 26px !important;
}
.rifp-category-story-row .rifp-category-card-body h2 {
    font-size: clamp(25px, 2.4vw, 34px) !important;
}
.rifp-category-sidebar {
    align-self: start !important;
}
.rifp-category-sidebar .rifp-category-ad-rail {
    position: sticky;
    top: 18px;
}
@media (max-width: 980px) {
    body.category .rifp-category-layout,
    body.archive .rifp-category-layout {
        grid-template-columns: 1fr !important;
    }
    .rifp-category-sidebar .rifp-category-ad-rail {
        position: static;
    }
}
@media (max-width: 720px) {
    .rifp-category-story-row {
        grid-template-columns: 1fr !important;
    }
    .rifp-category-story-row .rifp-category-card-image,
    .rifp-category-story-row .rifp-category-card-image img {
        min-height: 0 !important;
        height: auto !important;
    }
}


/* =====================================================
   VERSION 3.5.2 — WIDER CATEGORY STORY COPY
   ===================================================== */
body.category .rifp-category-layout,
body.archive .rifp-category-layout {
    grid-template-columns: minmax(0, 880px) 300px !important;
    gap: 28px !important;
}
.rifp-category-story-row {
    grid-template-columns: minmax(235px, 34%) minmax(0, 66%) !important;
}
.rifp-category-story-row .rifp-category-card-body {
    padding: 22px 28px !important;
}
.rifp-category-story-row .rifp-category-card-body p {
    max-width: none !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-bottom: 12px !important;
}
@media (max-width: 980px) {
    body.category .rifp-category-layout,
    body.archive .rifp-category-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
    .rifp-category-story-row { grid-template-columns: 1fr !important; }
}


/* =====================================================
   VERSION 3.5.3 — FOOD AD FALLBACK + WIDER STORY COPY
   ===================================================== */
body.category .rifp-category-template-wrap,
body.archive .rifp-category-template-wrap {
    width: min(1240px, calc(100vw - 40px)) !important;
}
body.category .rifp-category-layout,
body.archive .rifp-category-layout {
    grid-template-columns: minmax(0, 912px) 300px !important;
    gap: 28px !important;
}
.rifp-category-story-row {
    grid-template-columns: minmax(220px, 30%) minmax(0, 70%) !important;
}
.rifp-category-story-row .rifp-category-card-body {
    padding: 24px 30px !important;
}
.rifp-category-story-row .rifp-category-card-body p {
    max-width: none !important;
    width: 100% !important;
    font-size: 17px !important;
    line-height: 1.62 !important;
}
@media (max-width: 980px) {
    body.category .rifp-category-layout,
    body.archive .rifp-category-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
    .rifp-category-story-row { grid-template-columns: 1fr !important; }
}


/* =====================================================
   VERSION 3.6.2 — FULLER NAV + CATEGORY AD RELIABILITY
   ===================================================== */
/* Keep the expanded RI Free Press navigation usable while Glen decides what to trim. */
.site-bottom-header-inner-wrap,
.site-bottom-header-inner-wrap .site-header-section { overflow: visible !important; }
.main-navigation .primary-menu-container > ul {
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    row-gap:0 !important;
}
.main-navigation .primary-menu-container > ul > li > a {
    font-size:12px !important;
    padding-left:7px !important;
    padding-right:7px !important;
    min-height:40px !important;
}
/* Never let an empty ad rail squeeze the editorial column. */
.rifp-category-sidebar:empty { display:none !important; }
.rifp-category-layout:has(> .rifp-category-sidebar:empty) {
    grid-template-columns:minmax(0, 1fr) !important;
    max-width:1000px !important;
}


/* =====================================================
   VERSION 3.6.7 — IZADEX GREEN SEARCH ACTION
   ===================================================== */
.rifp-izadex-clean .izadex-search-button,
.rifp-global-izadex-wrap .izadex-search-button {
    background:#65c82d !important;
    color:#fff !important;
}
.rifp-izadex-clean .izadex-search-button:hover,
.rifp-global-izadex-wrap .izadex-search-button:hover {
    background:#52ad25 !important;
}


/* =========================================================
   VERSION 3.6.9 — TOP STORY COPY TIGHTENING
   Keep the kicker, headline, excerpt and read-more naturally stacked.
   This removes the oversized white gap that could appear between the
   category kicker and the lead headline on wide desktop layouts.
   ========================================================= */
.rifp-lead-horizontal-copy {
    display: block !important;
    align-self: start !important;
    padding-top: 0 !important;
}
.rifp-lead-horizontal-copy .rifp-kicker {
    margin: 2px 0 0 !important;
    padding: 0 !important;
}
.rifp-lead-horizontal-copy h1 {
    margin: 8px 0 12px !important;
    padding: 0 !important;
}
.rifp-lead-horizontal-copy p {
    margin: 0 0 14px !important;
}
.rifp-lead-horizontal-copy .rifp-read-more {
    margin-top: 8px !important;
}
/* 3.7.0 admin-only category ad diagnostic. Public visitors never receive this box. */
.rifp-ad-admin-diagnostic{box-sizing:border-box;padding:14px;border:1px dashed #b8c2cc;background:#fffbe8;color:#4a4a4a;font-size:13px;line-height:1.4;min-height:70px}.rifp-ad-admin-diagnostic strong{color:#003f67}.rifp-ad-admin-diagnostic span{opacity:.8}


/* =====================================================
   VERSION 3.7.8 — SITEWIDE ROTATION GROUPS + CATEGORY WIDTH REPAIR
   One four-position ad rail across all editorial categories.
   Also prevent Kadence/legacy boxed rules from shrinking inner pages.
   ===================================================== */
body:not(.home) #page,
body:not(.home) .site,
body:not(.home) #wrapper,
body:not(.home) #inner-wrap {
    width: 100% !important;
    max-width: none !important;
}
body.category .rifp-category-template-wrap,
body.archive .rifp-category-template-wrap {
    width: min(1240px, calc(100vw - 40px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.category .rifp-category-layout,
body.archive .rifp-category-layout {
    width: 100% !important;
    max-width: 1240px !important;
    grid-template-columns: minmax(0, 912px) 300px !important;
    gap: 28px !important;
}
@media (max-width: 980px) {
  body.category .rifp-category-layout,
  body.archive .rifp-category-layout { grid-template-columns: 1fr !important; }
  body.category .rifp-category-sidebar,
  body.archive .rifp-category-sidebar { width:100% !important; max-width:none !important; }
}


/* =====================================================
   VERSION 3.7.8 — CATEGORY WIDTH REPAIR
   Category archives must not inherit Kadence's narrow content width.
   The category shell is viewport-based so it remains the same visual width
   as the working RI Free Press home page even when a parent is constrained.
   ===================================================== */
body.category #primary.rifp-category-template-wrap,
body.archive #primary.rifp-category-template-wrap {
    display:block !important;
    position:relative !important;
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%) !important;
    width:min(1240px, calc(100vw - 40px)) !important;
    max-width:1240px !important;
    min-width:0 !important;
    margin:24px 0 46px !important;
    padding:0 !important;
    float:none !important;
    box-sizing:border-box !important;
}
body.category #primary.rifp-category-template-wrap .rifp-category-layout,
body.archive #primary.rifp-category-template-wrap .rifp-category-layout {
    display:grid !important;
    width:100% !important;
    max-width:none !important;
    grid-template-columns:minmax(0, 912px) 300px !important;
    gap:28px !important;
    justify-content:center !important;
    align-items:start !important;
}
body.category .rifp-category-main,
body.archive .rifp-category-main {
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    overflow:visible !important;
}
body.category .rifp-category-story-row,
body.archive .rifp-category-story-row {
    width:100% !important;
    max-width:none !important;
}
body.category .rifp-category-sidebar,
body.archive .rifp-category-sidebar {
    display:block !important;
    width:300px !important;
    max-width:300px !important;
    min-width:300px !important;
}
body.category .rifp-category-sidebar .rifp-category-ad-rail,
body.archive .rifp-category-sidebar .rifp-category-ad-rail {
    width:300px !important;
    max-width:300px !important;
}
@media (max-width:980px) {
  body.category #primary.rifp-category-template-wrap,
  body.archive #primary.rifp-category-template-wrap {
      width:calc(100vw - 28px) !important;
  }
  body.category #primary.rifp-category-template-wrap .rifp-category-layout,
  body.archive #primary.rifp-category-template-wrap .rifp-category-layout {
      grid-template-columns:1fr !important;
  }
  body.category .rifp-category-sidebar,
  body.archive .rifp-category-sidebar,
  body.category .rifp-category-sidebar .rifp-category-ad-rail,
  body.archive .rifp-category-sidebar .rifp-category-ad-rail {
      width:100% !important;
      max-width:none !important;
      min-width:0 !important;
  }
}

/* =====================================================
   VERSION 3.8.0 — WIDER INDIVIDUAL STORY PAGES
   Use more of the desktop viewport while keeping body copy readable.
   ===================================================== */
body.single-post #primary,
body.single-post .content-area,
body.single-post .site-main {
    width: 100% !important;
    max-width: none !important;
}
body.single-post .content-container {
    width: min(1240px, calc(100vw - 40px)) !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single-post article.entry {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single-post article.entry .entry-content-wrap {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding-left: 42px !important;
    padding-right: 42px !important;
}
body.single-post article.entry .entry-header,
body.single-post article.entry .entry-title-wrap,
body.single-post article.entry .entry-meta-wrap {
    width: 100% !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single-post.rifp-has-story-gallery .entry-content-wrap {
    max-width: none !important;
}
body.single-post .rifp-story-top {
    width: 100% !important;
    max-width: 1080px !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, .9fr) !important;
    gap: 36px !important;
}
body.single-post .rifp-story-intro {
    font-size: 18px !important;
    line-height: 1.72 !important;
}
body.single-post .rifp-story-text-full,
body.single-post .entry-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol,
body.single-post .entry-content > blockquote {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.single-post .rifp-story-text-full {
    font-size: 18px !important;
    line-height: 1.76 !important;
}
body.single-post .post-navigation {
    width: 100% !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 900px) {
    body.single-post .content-container {
        width: calc(100vw - 24px) !important;
    }
    body.single-post article.entry .entry-content-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    body.single-post .rifp-story-top {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    body.single-post .rifp-story-intro,
    body.single-post .rifp-story-text-full {
        font-size: 17px !important;
    }
}

/* =====================================================
   VERSION 3.8.2 — CATEGORY ARCHIVE PROPORTIONS + IMAGE FALLBACK
   Keep category pages full-width and use the first story-gallery image when
   a post has no separately assigned WordPress Featured Image.
   ===================================================== */
body.category #primary.rifp-category-template-wrap,
body.archive #primary.rifp-category-template-wrap {
    width: min(1320px, calc(100vw - 48px)) !important;
    max-width: 1320px !important;
    margin-top: 28px !important;
}
body.category #primary.rifp-category-template-wrap .rifp-category-layout,
body.archive #primary.rifp-category-template-wrap .rifp-category-layout {
    grid-template-columns: minmax(0, 980px) 300px !important;
    gap: 32px !important;
}
body.category .rifp-category-story-row.rifp-has-card-image,
body.archive .rifp-category-story-row.rifp-has-card-image {
    display: grid !important;
    grid-template-columns: minmax(300px, 38%) minmax(0, 62%) !important;
    min-height: 330px !important;
    overflow: hidden !important;
}
body.category .rifp-category-card-image,
body.archive .rifp-category-card-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 330px !important;
}
body.category .rifp-category-card-image img,
body.archive .rifp-category-card-image img,
body.category img.rifp-category-card-photo,
body.archive img.rifp-category-card-photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 330px !important;
    object-fit: cover !important;
}
body.category .rifp-category-story-row.rifp-no-card-image,
body.archive .rifp-category-story-row.rifp-no-card-image {
    display: block !important;
}
body.category .rifp-category-card-body,
body.archive .rifp-category-card-body {
    padding: 30px 34px !important;
}
body.category .rifp-category-card-body h2,
body.archive .rifp-category-card-body h2 {
    font-size: clamp(30px, 2.35vw, 40px) !important;
    line-height: 1.05 !important;
    margin: 8px 0 12px !important;
}
@media (max-width: 1050px) {
    body.category #primary.rifp-category-template-wrap .rifp-category-layout,
    body.archive #primary.rifp-category-template-wrap .rifp-category-layout {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 760px) {
    body.category .rifp-category-story-row.rifp-has-card-image,
    body.archive .rifp-category-story-row.rifp-has-card-image {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }
    body.category .rifp-category-card-image,
    body.archive .rifp-category-card-image,
    body.category .rifp-category-card-image img,
    body.archive .rifp-category-card-image img {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* =====================================================
   VERSION 3.8.3 — COMPACT CATEGORY STORY CARDS
   Prevent tall/portrait source images from determining the archive card height.
   The story card stays horizontal and compact while the image is cropped cleanly.
   ===================================================== */
body.category .rifp-category-story-row.rifp-has-card-image,
body.archive .rifp-category-story-row.rifp-has-card-image {
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch !important;
}
body.category .rifp-category-card-image,
body.archive .rifp-category-card-image {
    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
    overflow: hidden !important;
    align-self: start !important;
}
body.category .rifp-category-card-image img,
body.archive .rifp-category-card-image img,
body.category img.rifp-category-card-photo,
body.archive img.rifp-category-card-photo {
    width: 100% !important;
    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;
    object-fit: cover !important;
    object-position: center center !important;
}
body.category .rifp-category-card-body,
body.archive .rifp-category-card-body {
    align-self: start !important;
}
@media (max-width: 760px) {
    body.category .rifp-category-card-image,
    body.archive .rifp-category-card-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    body.category .rifp-category-card-image img,
    body.archive .rifp-category-card-image img,
    body.category img.rifp-category-card-photo,
    body.archive img.rifp-category-card-photo {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 10 !important;
        object-fit: cover !important;
    }
}


/* =====================================================
   VERSION 3.8.9 — SITEWIDE ADS ON OPENED STORIES
   ===================================================== */
body.single-post article.entry {
    max-width: 1480px !important;
}
body.single-post .content-container {
    max-width: 1540px !important;
}
.rifp-single-story-layout {
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:30px;
    align-items:start;
}
.rifp-single-story-main { min-width:0; }
.rifp-single-story-sidebar {
    width:300px;
    display:flex;
    flex-direction:column;
    gap:16px;
    align-items:stretch;
}
.rifp-single-story-ad,
.rifp-single-story-sidebar .rifp-advads-slot {
    width:100%;
    max-width:300px;
    margin:0 !important;
}
.rifp-single-story-sidebar img {
    display:block;
    max-width:100% !important;
    width:auto;
    height:auto !important;
    margin:0 auto;
}
/* Inside the story grid, use the full reading column rather than the old centered max. */
.rifp-single-story-main .rifp-story-top,
.rifp-single-story-main .rifp-story-text-full,
.rifp-single-story-main > p,
.rifp-single-story-main > ul,
.rifp-single-story-main > ol,
.rifp-single-story-main > blockquote {
    max-width:none !important;
}
@media (max-width:1200px) {
    .rifp-single-story-layout { grid-template-columns:1fr; }
    .rifp-single-story-sidebar {
        width:100%;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:18px;
    }
    .rifp-single-story-ad,
    .rifp-single-story-sidebar .rifp-advads-slot { max-width:320px; margin:0 auto !important; }
}
@media (max-width:680px) {
    .rifp-single-story-sidebar { grid-template-columns:1fr; }
}


/* 3.9.0 — News > TV Stations directory */
.rifp-tv-directory-layout{max-width:1240px;margin:0 auto;padding:26px 20px 44px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}
.rifp-tv-directory{min-width:0}
.rifp-tv-directory-head{margin:0 0 28px;padding:0 0 20px;border-bottom:1px solid #d9dee7}
.rifp-tv-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#315f8c;margin-bottom:8px}
.rifp-tv-directory-head h1{font-size:38px;line-height:1.1;margin:0 0 12px;color:#1d2c3b}
.rifp-tv-directory-head p{font-size:17px;line-height:1.65;margin:0;max-width:820px;color:#4d5864}
.rifp-tv-section{margin:0 0 34px}
.rifp-tv-section h2{font-size:24px;margin:0 0 16px;color:#1d2c3b}
.rifp-tv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rifp-tv-card{display:flex;flex-direction:column;min-width:0;min-height:245px;padding:16px;background:#fff;border:1px solid #dfe4ea;border-radius:4px;box-shadow:0 2px 10px rgba(25,42,58,.06)}
.rifp-tv-logo{height:108px;display:flex;align-items:center;justify-content:center;background:#f6f8fa;border:1px solid #e6eaee;border-radius:4px;padding:10px;margin-bottom:14px;overflow:hidden}
.rifp-tv-logo img{display:block;width:84px;height:84px;max-width:none;max-height:none;object-fit:contain;transform:scale(1.12);transform-origin:center}
.rifp-tv-card-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;min-width:0}
.rifp-tv-card h3{font-size:18px;line-height:1.2;margin:0 0 5px;color:#1e2d3c}
.rifp-tv-network{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#315f8c;margin-bottom:4px}
.rifp-tv-channel{font-size:13px;font-weight:700;color:#555f69;margin-bottom:8px}
.rifp-tv-card p{font-size:14px;line-height:1.45;color:#5a646e;margin:0 0 12px}
.rifp-tv-link{margin-top:auto;font-size:14px;font-weight:800;text-decoration:none}
.rifp-tv-source-note{font-size:13px;line-height:1.5;color:#68727c;margin:14px 0 0}
.rifp-tv-ad-rail{width:300px;max-width:300px}
@media(max-width:1100px){.rifp-tv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.rifp-tv-directory-layout{grid-template-columns:1fr}.rifp-tv-ad-rail{width:100%;max-width:none}.rifp-tv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.rifp-tv-grid{grid-template-columns:1fr}}
@media(max-width:560px){.rifp-tv-directory-layout{padding-left:14px;padding-right:14px}.rifp-tv-directory-head h1{font-size:30px}.rifp-tv-card{min-height:0;padding:14px}.rifp-tv-logo{height:96px}.rifp-tv-logo img{width:76px;height:76px}}

/* 3.9.3 — Condensed TV source cards: descriptions removed; tighter card height. */

/* 3.9.4 — Radio Stations uses the same condensed three-across card system as TV Stations. */
.rifp-radio-card .rifp-tv-channel{line-height:1.35}
.rifp-radio-directory .rifp-tv-section{margin-bottom:30px}

/* 3.9.5 Newspapers + Periodicals directories */
.rifp-publication-card{min-height:235px}
.rifp-publication-card .rifp-tv-channel{line-height:1.35}
.rifp-publication-directory .rifp-tv-section{margin-bottom:30px}


/* =====================================================
   VERSION 4.0.7 — WIDER OPENED STORY PAGES
   Uses substantially more desktop width so long stories are shorter,
   while preserving the four-ad rail on the right.
   ===================================================== */
@media (min-width: 1201px) {
    body.single-post .content-container,
    body.single-post .site-container,
    body.single-post .site-content,
    body.single-post #primary,
    body.single-post .content-area,
    body.single-post .site-main {
        width: min(1760px, calc(100vw - 48px)) !important;
        max-width: 1760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    body.single-post article.entry {
        width: 100% !important;
        max-width: 1700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    body.single-post article.entry .entry-content-wrap {
        width: 100% !important;
        max-width: none !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }
    body.single-post article.entry .entry-header,
    body.single-post article.entry .entry-title-wrap,
    body.single-post article.entry .entry-meta-wrap {
        max-width: 1600px !important;
    }
    body.single-post .rifp-single-story-layout {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        gap: 34px !important;
    }
    body.single-post .rifp-single-story-main,
    body.single-post .rifp-single-story-main .rifp-story-top,
    body.single-post .rifp-single-story-main .rifp-story-text-full,
    body.single-post .rifp-single-story-main > p,
    body.single-post .rifp-single-story-main > ul,
    body.single-post .rifp-single-story-main > ol,
    body.single-post .rifp-single-story-main > blockquote {
        width: 100% !important;
        max-width: none !important;
    }
    body.single-post .rifp-story-top {
        grid-template-columns: minmax(0, 1.6fr) minmax(360px, .8fr) !important;
    }
}

/* 4.0.11: full story wraps beside the gallery, then continues below it.
   Scope to the new wrapper so homepage and category cards keep their layouts. */
body.single-post .rifp-story-top.rifp-story-flow {
    display: flow-root !important;
    margin: 10px 0 20px !important;
}
body.single-post .rifp-story-flow > .rifp-story-gallery-clean {
    float: left;
    width: min(66.6667%, calc(100% - 340px - 36px)) !important;
    margin: 0 36px 16px 0 !important;
}
body.single-post .rifp-story-flow > .rifp-story-intro {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    overflow: visible;
    clear: none;
}
body.single-post .rifp-story-flow .rifp-story-intro p,
body.single-post .rifp-single-story-main > p,
body.single-post .entry-content > p {
    margin-top: 0 !important;
    margin-bottom: .75em !important;
}
body.single-post .rifp-story-flow .rifp-story-intro > p {
    clear: none;
}
@media (max-width: 900px) {
    body.single-post .rifp-story-flow > .rifp-story-gallery-clean {
        float: none;
        width: 100% !important;
        margin: 0 0 18px !important;
    }
}
