/* RSPBA News Studio: editable, separate Elementor article components */
/* v1.2.2: The plugin owns the single-article wrapper when its template router
 * is enabled. Do not inherit theme #primary sidebar widths or floats. */
main#primary.rns-elementor-article-template {
    display: block !important;
    float: none !important;
    clear: both;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    flex: 1 1 100%;
    margin-inline: auto !important;
    padding-inline: 0;
}
/* Elementor saved templates render within an extra .elementor wrapper. Keep
 * that wrapper full width; the article container itself is a narrow centred column. */
.rns-elementor-article-template > .elementor,
.rns-elementor-article-template > .elementor > .elementor-element,
.rns-elementor-article-template > .elementor > .e-con {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}
/* The six article templates, including already-installed Elementor templates,
 * share a centred single reading column. Title, image, body, and supporting
 * sections all occupy the same column (portrait's two panes stay inside it).
 * Set --rns-news-column-width to customise the maximum outer width. */
.rns-art-template.e-con {
    --rns-news-column-width: 880px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: min(100%, var(--rns-news-column-width)) !important;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center;
}
.rns-art-template.e-con-boxed > .e-con-inner {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-inline: auto;
}
/* Elementor's design wrappers must not reintroduce a wider inner article. */
.rns-art-template .elementor-widget-rns_article_element,
.rns-art-template .elementor-widget-container,
.rns-art-template .rns-art-part {
    max-width: 100%;
}
.rns-art-template .rns-art-part .rns-article-body {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
}
.rns-elementor-article-template{min-width:0}
.rns-art-template{--rns-template-navy:#133b67;--rns-template-accent:#17538a;max-width:100%;color:#26384c;}
.rns-art-template .e-con{min-width:0}
.rns-art-template .elementor-widget-rns_article_element{width:100%;min-width:0}
.rns-art-part.rns-article{background:transparent;overflow:visible;line-height:var(--rns-article-line,1.7);font-size:var(--rns-article-size,18px);max-width:100%;}
.rns-art-part .rns-article-headline{margin:0;color:var(--rns-article-heading,#133b67);font-size:clamp(30px,4vw,var(--rns-article-hsize,42px));}
.rns-art-part .rns-article-intro{margin:0;max-width:none;font-size:1.15em;}
.rns-art-part .rns-article-categories{justify-content:inherit;margin:0}
.rns-art-part .rns-article-meta{justify-content:flex-start;margin:0}
.rns-art-part .rns-article-hero{max-width:none;margin:0}
.rns-art-part .rns-article-hero-image{border-radius:10px;width:100%;height:auto;max-height:610px}
.rns-art-part .rns-article-body{max-width:var(--rns-article-width,760px);margin:0 auto}
.rns-art-part .rns-article-share{margin:10px 0}
.rns-art-part .rns-article-related,.rns-art-part .rns-article-neighbours{margin:10px 0 0;max-width:none}
.rns-art-part .rns-article-gallery,.rns-art-part .rns-article-documents{margin:18px 0}
.rns-art-template-feature{--rns-template-accent:#124477}
.rns-art-template-feature .rns-art-part-title h1{font-size:clamp(38px,5vw,68px);max-width:100%;letter-spacing:-.045em}
.rns-art-template-feature .rns-art-part-hero img{border-radius:3px;max-height:670px}
.rns-art-template-notice .rns-art-part-notice{margin-bottom:8px}
.rns-art-template-notice .rns-art-part-title{background:#eef4f9;border-left:5px solid #174f86;padding:20px 26px}
.rns-art-template-notice .rns-art-part-title h1{font-size:clamp(32px,4vw,54px)}
.rns-art-template-portrait-split{align-items:center;gap:36px}
.rns-art-template-portrait-image img{aspect-ratio:4 / 5;object-fit:var(--rns-hero-fit,cover);object-position:var(--rns-hero-x,50%) var(--rns-hero-y,20%);max-height:none}
.rns-art-template-portrait-copy .rns-article-headline{font-size:clamp(34px,4.4vw,57px)}
.rns-art-template-photo .rns-art-part-hero img{max-height:720px}
.rns-art-template-photo .rns-article-gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.rns-art-template-longform{--rns-news-column-width:820px;margin-inline:auto}
.rns-art-template-longform .rns-article-body{max-width:760px}
.rns-art-template-longform .rns-art-part-title h1{font-size:clamp(34px,4.6vw,61px)}
.rns-art-template a:focus-visible,.rns-art-template button:focus-visible{outline:3px solid #a35a00;outline-offset:3px}
@media(max-width:767px){
 .rns-art-template{padding:18px 16px 42px!important}
 .rns-art-template .rns-art-part-title h1{font-size:clamp(30px,8vw,42px)}
 .rns-art-template-portrait-split{display:flex!important;flex-direction:column!important;gap:12px}
 .rns-art-template-portrait-split>.e-con,.rns-art-template-portrait-split>.elementor-element{width:100%!important}
 .rns-art-template-portrait-image img{aspect-ratio:4 / 5;max-height:570px;object-position:var(--rns-hero-x,50%) var(--rns-hero-y,20%)}
 .rns-art-template .rns-art-part .rns-article-meta{gap:6px 10px}
 .rns-art-template-photo .rns-article-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rns-art-part .rns-article-hero-image{max-height:none}
}
@media print{
 .rns-art-template{max-width:none!important;padding:0!important}
 .rns-art-template .rns-art-part-share,.rns-art-template .rns-art-part-navigation,.rns-art-template .rns-art-part-related,.rns-art-template .rns-art-part-back{display:none!important}
 .rns-art-template .rns-art-part{color:#000!important;background:transparent!important}
 .rns-art-template .rns-art-part-title h1{color:#000!important;font-size:24pt!important}
}
