/*
Theme Name: Autopulsar Astra
Template: astra
Version: 1.9.0
Text Domain: autopulsar
*/
:root{--green:#102b48;--orange:#0876df;--cream:#edf5fc}*{box-sizing:border-box}body{margin:0;background:#fff;color:#15283d;font-family:Arial,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:var(--orange)}.rm-wrap{max-width:1320px;margin:auto;padding:0 20px}.rm-header{background:var(--green);color:white}.rm-brand{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:110px;background:linear-gradient(90deg,#102b48 40%,transparent),url(assets/header.webp) right center/auto 100% no-repeat}.rm-logo{font-size:36px;font-weight:800;line-height:1.1}.rm-logo b{color:#ef943d}.rm-logo small{display:block;font-size:15px;font-weight:400;margin-top:8px}.rm-nav{border-bottom:1px solid #ddd;background:white}.rm-nav .rm-wrap{display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:54px}.rm-nav a{font-size:14px;font-weight:700;white-space:nowrap}.rm-nav b{color:var(--orange);margin-right:5px}.rm-toggle{display:none}.rm-search{display:flex;max-width:340px;width:100%;margin:0}.rm-search input{min-width:0;flex:1;background:white;border:1px solid #ddd;border-radius:20px 0 0 20px;padding:10px 15px;color:#222}.rm-search button,.rm-button{background:var(--orange);color:white;border:0;border-radius:0 20px 20px 0;padding:10px 16px}.rm-button{display:inline-block;border-radius:8px;font-weight:bold}.rm-main{padding-top:24px;padding-bottom:35px}.rm-hero{display:grid;grid-template-columns:1.75fr 1fr;grid-template-rows:repeat(2,200px);gap:16px}.rm-feature{position:relative;overflow:hidden;border-radius:12px;display:flex;align-items:end;color:white;background:var(--green);isolation:isolate}.rm-feature:first-child{grid-row:span 2}.rm-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.rm-feature:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 10%,#000b);z-index:-1}.rm-feature>div{padding:22px;width:100%}.rm-feature h2{color:white;font-size:21px;line-height:1.2;margin:10px 0}.rm-feature:first-child h2{font-size:34px}.rm-feature p{color:white;margin:8px 0 16px}.rm-tag{display:inline-block;background:var(--orange);color:white;padding:5px 10px;border-radius:7px;font-size:12px;font-weight:bold}.rm-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:24px;margin-top:28px}.rm-heading{font-size:26px;margin:0 0 18px}.rm-heading:after{content:'';display:block;width:45px;height:3px;background:var(--orange);margin-top:8px}.rm-tiles,.rm-posts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}.rm-posts{grid-template-columns:repeat(3,minmax(0,1fr))}.rm-tile,.rm-card{overflow:hidden;border-radius:10px;background:var(--cream);border:1px solid #e8e4df}.rm-tile img,.rm-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.rm-tile div,.rm-card div{padding:12px}.rm-tile h3,.rm-card h3{font-size:17px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}.rm-tile p{font-size:14px;line-height:1.4;margin:0}.rm-card{background:white}.rm-card time,.rm-feature time{font-size:13px}.rm-side section{background:var(--cream);padding:16px;border-radius:10px;margin-bottom:20px}.rm-side h2{font-size:21px;margin:0 0 14px}.rm-side a.rm-mini{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid #ddd;font-weight:600;font-size:14px}.rm-mini img{width:85px;height:60px;object-fit:cover;border-radius:6px}.rm-footer{background:var(--green);color:white;padding:28px 0}.rm-footer .rm-wrap{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}.rm-footer a{display:block;margin:6px 0}.rm-footer small{display:block;margin-top:15px}.rm-article{max-width:850px;min-width:0}.rm-article h1{font-size:36px;line-height:1.2}.rm-content{font-size:18px;line-height:1.7;overflow-wrap:anywhere}.rm-content img{max-width:100%;height:auto}.rm-cover{width:100%;height:auto;border-radius:10px}.rm-pagination{margin:20px 0}.rm-pagination a,.rm-pagination span{padding:8px}.rm-bread{font-size:14px;margin-bottom:18px}.rm-archive-title{background:var(--green);color:white;padding:24px;border-radius:10px;margin-bottom:24px}.rm-archive-title h1{color:white;margin:0}.rm-archive-title p{margin:8px 0 0}.rm-feature a:hover{color:white}@media(max-width:900px){.rm-layout{grid-template-columns:1fr}.rm-nav .rm-wrap{flex-wrap:wrap;justify-content:start}.rm-toggle{display:block;background:var(--green);color:white;border:0;width:100%;text-align:left;padding:12px}.rm-nav .rm-wrap{display:none;padding:12px 20px}.rm-nav.open .rm-wrap{display:flex}.rm-brand{background:#102b48}.rm-brand .rm-search{display:none}.rm-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.rm-wrap{padding-left:12px;padding-right:12px}.rm-brand{min-height:85px}.rm-logo{font-size:29px}.rm-logo small{font-size:12px}.rm-hero{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:10px}.rm-feature:first-child{grid-column:span 2;grid-row:auto;min-height:340px}.rm-feature:first-child h2{font-size:26px}.rm-feature:not(:first-child){min-height:190px}.rm-feature>div{padding:12px}.rm-feature h2{font-size:16px}.rm-feature p{font-size:15px}.rm-tiles,.rm-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rm-heading{font-size:23px}.rm-footer .rm-wrap{grid-template-columns:1fr 1fr}.rm-article h1{font-size:27px}.rm-content{font-size:17px}.rm-tile h3,.rm-card h3{font-size:16px}}

/* v1.1 visual refinements */
body,body.ast-separate-container{background:#f6f9fc;color:#15283d}.rm-header{background:#102b48}.rm-brand{background:linear-gradient(90deg,#102b48 35%,rgba(32,61,48,.85) 48%,transparent 72%),url(assets/header-wide.webp) right center/auto 100% no-repeat;min-height:110px}.rm-logo{display:flex;align-items:center;gap:12px;color:#fff}.rm-logo:hover{color:#fff}.rm-icon{width:22px;height:22px;flex:none;color:#0876df;vertical-align:middle}.rm-logo>.rm-icon{width:60px;height:60px;color:#0876df}.rm-nav a{display:flex;align-items:center;gap:5px}.rm-nav a:first-child{background:#0876df;padding:10px;border-radius:5px}.rm-nav a:first-child .rm-icon{color:white}.rm-nav .rm-wrap{gap:10px}.rm-nav a{font-size:13px}.rm-heading{color:#102b48}.rm-tile,.rm-side section{background:#edf5fc}.rm-tile div{position:relative;padding-bottom:24px}.rm-tile div:after{content:'→';position:absolute;right:10px;bottom:4px;color:#0876df;font-weight:bold}.rm-side a.rm-mini{align-items:flex-start}.rm-side .rm-mini img{flex:0 0 78px;width:78px!important;height:60px!important;max-width:78px;object-fit:cover}.rm-mini span{min-width:0;flex:1}.rm-footer .rm-wrap{grid-template-columns:1fr 1.5fr .8fr;gap:30px}.rm-footer .rm-wrap>div:nth-child(2){display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;align-content:start}.rm-footer .rm-wrap>div:nth-child(2)>strong{grid-column:1/-1}.rm-footer a{font-size:14px;margin:2px 0}.rm-footer p{font-size:14px;margin:8px 0}.rm-footer-logo{display:flex;align-items:center;gap:8px;font-size:23px}.rm-footer-logo .rm-icon{width:35px;height:35px}.rm-footer li{list-style:none}#ast-scroll-top{background:#0876df!important;color:#fff!important}.rm-card h3:first-letter{text-transform:uppercase}@media(max-width:1100px){.rm-nav .rm-wrap{flex-wrap:wrap;justify-content:center}}@media(max-width:900px){.rm-brand{background:#102b48}.rm-nav .rm-wrap{justify-content:start}.rm-footer .rm-wrap{grid-template-columns:1fr 1fr}}@media(max-width:600px){.rm-logo>.rm-icon{width:42px;height:42px}.rm-logo{gap:8px}.rm-footer .rm-wrap{grid-template-columns:1fr}.rm-brand{min-height:85px}}

/* v1.2: independent photo and headline panels */
.rm-hero{grid-template-rows:repeat(2,minmax(180px,auto));align-items:stretch}.rm-feature{display:grid;grid-template-columns: minmax(0,1fr) minmax(0,1fr);align-items:stretch;background:#102b48;min-width:0}.rm-feature:after{display:none}.rm-feature-photo{grid-column:2;grid-row:1;display:block;position:relative;min-width:0;min-height:180px;overflow:hidden}.rm-feature img{position:absolute;inset:0;z-index:auto;width:100%;height:100%;object-fit:cover;object-position:center}.rm-feature>div{grid-column:1;grid-row:1;align-self:center;padding:18px;min-width:0}.rm-feature h2{font-size:clamp(16px,1.5vw,21px);line-height:1.28;overflow-wrap:break-word;margin:12px 0 0}.rm-feature:first-child h2{font-size:clamp(23px,2.4vw,32px);margin-bottom:18px}.rm-feature:first-child .rm-feature-photo{min-height:380px}.rm-feature .rm-tag{font-size:11px;line-height:1.3}.rm-feature .rm-button{font-size:14px}.rm-feature a:hover{color:#fff}.rm-feature h2 a:hover{text-decoration:underline}.rm-feature:first-child{grid-template-columns:minmax(0, .9fr) minmax(0,1.1fr)}
@media(max-width:900px){.rm-hero{grid-template-columns:1fr 1fr;grid-template-rows:auto auto}.rm-feature:first-child{grid-column:1/-1;grid-row:auto}.rm-feature:first-child .rm-feature-photo{min-height:280px}.rm-feature:not(:first-child){grid-template-columns:1fr}.rm-feature:not(:first-child) .rm-feature-photo{grid-column:1;grid-row:1;aspect-ratio:16/9;min-height:0}.rm-feature:not(:first-child)>div{grid-column:1;grid-row:2;align-self:start}}
@media(max-width:600px){.rm-feature:first-child{grid-template-columns:1fr;min-height:0}.rm-feature:first-child .rm-feature-photo{grid-column:1;grid-row:1;aspect-ratio:16/9;min-height:0}.rm-feature:first-child>div{grid-column:1;grid-row:2}.rm-feature>div{padding:12px}.rm-feature:first-child h2{font-size:23px}.rm-feature:not(:first-child) h2{font-size:15px}.rm-feature:not(:first-child){min-height:0}.rm-feature .rm-tag{font-size:10px}}

/* v1.3: warm feature panels, soft photo edges, illustrated sidebar */
.rm-brand{position:relative;isolation:isolate;background:none}.rm-brand:before{content:'';position:absolute;inset:0 0 0 38%;z-index:-1;background:url(assets/header-wide.webp) center right/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 24%,#000 85%,transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 24%,#000 85%,transparent)}
.rm-feature{background:#f5eadb;color:#102b48;border:1px solid #e8dfd2;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.rm-feature:first-child{grid-template-columns:minmax(0, .95fr) minmax(0,1.05fr)}.rm-feature h2,.rm-feature h2 a,.rm-feature h2 a:hover{color:#102b48;text-decoration:none!important}.rm-feature h2 a:focus-visible{outline:2px solid #0876df;outline-offset:3px}.rm-feature h2{font-size:clamp(16px,1.25vw,19px);line-height:1.28}.rm-feature:first-child h2{font-size:clamp(22px,1.9vw,28px)}.rm-feature>div{padding:16px}.rm-feature-photo{min-height:165px}.rm-feature:first-child .rm-feature-photo{min-height:350px}.rm-feature-photo:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#f5eadb 0%,rgba(245,234,219,.65) 7%,transparent 23%)}.rm-feature .rm-button,.rm-feature .rm-button:hover{color:white;text-decoration:none}.rm-hero{grid-template-rows:repeat(2,minmax(165px,auto))}.rm-side a.rm-section-link{align-items:center;gap:12px}.rm-section-link .rm-icon{width:25px;height:25px}.rm-section-link:after{content:'›';color:var(--orange);font-size:20px;line-height:1}.rm-section-link:hover{text-decoration:none;color:var(--orange)}
@media(max-width:900px){.rm-brand:before{display:none}.rm-feature:not(:first-child){grid-template-columns:1fr}.rm-feature:not(:first-child) .rm-feature-photo:after{display:none}.rm-feature:first-child .rm-feature-photo{min-height:260px}}
@media(max-width:600px){.rm-feature:first-child{grid-template-columns:1fr}.rm-feature:first-child .rm-feature-photo{min-height:0}.rm-feature-photo:after{display:none}.rm-feature>div{padding:12px}.rm-feature:first-child h2{font-size:23px}.rm-feature:not(:first-child) h2{font-size:15px}}

/* v1.4: high-resolution banner and photo-first feature composition */
.rm-brand:before{inset:0 0 0 38%;background:url(assets/header-wide.webp) right 47%/100% auto no-repeat;mask-image:linear-gradient(90deg,transparent,#000 22%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%)}
.rm-feature{background:#f8eddf;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.rm-feature:first-child{grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr)}
.rm-feature:first-child .rm-feature-photo{min-height:320px;overflow:visible}
.rm-feature:first-child .rm-feature-photo img{object-position:center center}
.rm-feature:first-child .rm-feature-photo:after{inset:0 auto 0 -1px;width:9%;background:#f8eddf;clip-path:ellipse(100% 65% at 0% 50%)}
.rm-feature:not(:first-child) .rm-feature-photo:after{background:linear-gradient(90deg,#f8eddf,transparent 12%)}
.rm-feature:first-child h2{font-size:clamp(21px,1.65vw,27px);line-height:1.24}
.rm-feature h2{font-size:clamp(15px,1.15vw,18px);line-height:1.25}
.rm-feature>div{padding:18px;position:relative;z-index:1}
.rm-hero{grid-template-rows:repeat(2,minmax(155px,auto))}
@media(max-width:900px){.rm-feature:not(:first-child){grid-template-columns:1fr}.rm-feature:not(:first-child) .rm-feature-photo:after{display:none}.rm-feature:first-child .rm-feature-photo{min-height:250px}}
@media(max-width:600px){.rm-feature:first-child{grid-template-columns:1fr;min-height:0}.rm-feature:first-child .rm-feature-photo{grid-column:1;grid-row:1;aspect-ratio:16/9;min-height:0;overflow:hidden}.rm-feature:first-child>div{grid-column:1;grid-row:2}.rm-feature:first-child .rm-feature-photo:after{display:none}.rm-feature>div{padding:12px}.rm-feature:first-child h2{font-size:23px}.rm-feature:not(:first-child) h2{font-size:15px}}

/* v1.5: blend banner edges and remove curved photo crop */
@media(min-width:901px){
.rm-brand:before{mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 calc(100% - 85px),transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 calc(100% - 85px),transparent 100%)}
}
@media(min-width:601px){
.rm-feature:first-child .rm-feature-photo{overflow:hidden}
.rm-feature:first-child .rm-feature-photo:after{inset:0 auto 0 0;width:48px;clip-path:none;background:linear-gradient(90deg,#f8eddf 0%,rgba(248,237,223,.72) 24%,rgba(248,237,223,.22) 65%,transparent 100%)}
.rm-feature:first-child .rm-feature-photo img{object-position:35% center}
}

/* v1.6: complete publication feed */
.rm-feed-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px;margin:12px 0 30px}.rm-feed-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid #e1d7c9;border-radius:7px;background:#fff;color:#102b48;text-decoration:none}.rm-feed-pagination .current,.rm-feed-pagination a:hover{background:#102b48;color:#fff;border-color:#102b48}.rm-feed-pagination .dots{background:transparent;border:0}#rm-publications{scroll-margin-top:24px}

/* v1.9 topic archives only */
.rm-topic .rm-layout{margin-top:22px}.rm-topic-banner{display:grid;grid-template-columns:1.3fr 1fr;background:#102b48;border-radius:12px;overflow:hidden;color:white;min-height:180px}.rm-topic-banner>div{padding:28px;align-self:center}.rm-topic-banner h1{color:white;font-size:clamp(25px,3vw,38px);margin:8px 0}.rm-topic-banner p{margin:0;color:#f5eadb}.rm-topic-banner .rm-icon{width:36px;height:36px}.rm-topic-banner img{width:100%;height:100%;max-height:230px;object-fit:cover;display:block}.rm-topic .rm-posts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.rm-topic .rm-card h3{font-size:19px}.rm-topic .rm-side .rm-section-link[aria-current=page]{background:#e5d7c3;border-radius:6px;padding:10px 8px;color:#102b48}.rm-topic .rm-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.rm-topic .rm-pagination .page-numbers{background:white;border:1px solid #e1d7c9;border-radius:6px;padding:8px 12px}.rm-topic .rm-pagination .current{background:#102b48;color:white}.rm-topic .rm-layout>div{min-width:0}@media(max-width:600px){.rm-topic-banner{grid-template-columns:1fr}.rm-topic-banner>div{padding:20px}.rm-topic-banner img{height:150px}.rm-topic .rm-posts{gap:10px}.rm-topic .rm-card h3{font-size:15px}}

/* v1.11: preserve the entire illustration, blend the banner edges. */
.rm-topic-banner{grid-template-columns:1.3fr 1fr;min-height:180px}
.rm-topic-art{position:relative;margin:0;min-width:0;height:230px;overflow:hidden;background:#e8c39b;display:flex;justify-content:center;align-items:center}
.rm-topic-banner .rm-topic-art img{width:100%;height:100%;max-height:none;object-fit:contain;display:block}
.rm-topic-art:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#102b48 0%,rgba(32,61,48,0) 24%)}
.rm-topic-art-legacy img{object-fit:cover!important}
.rm-tiles .rm-tile img{height:auto;aspect-ratio:4/3;object-fit:contain;background:#e8c39b}
@media(max-width:600px){.rm-topic-banner{grid-template-columns:1fr}.rm-topic-art{height:180px}.rm-topic-art:after{background:linear-gradient(180deg,#102b48 0%,rgba(32,61,48,0) 20%)}}

/* v1.12: seamless right-aligned topic artwork, equal card footers */
.rm-topic-banner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#102b48}
.rm-topic-art{background:#102b48;justify-content:flex-end;isolation:isolate}
.rm-topic-banner .rm-topic-art img{width:auto;height:100%;max-width:100%;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent 0%,#000 24%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 24%)}
.rm-topic-art:after{display:none}
.rm-tiles .rm-tile{display:flex;flex-direction:column}
.rm-tiles .rm-tile>div{flex:1;padding-bottom:30px}
.rm-tiles .rm-tile img{object-fit:cover}
@media(max-width:600px){.rm-topic-banner{grid-template-columns:1fr}.rm-topic-art{height:auto;justify-content:center}.rm-topic-banner .rm-topic-art img{width:100%;height:auto;max-height:230px;object-position:center;mask-image:linear-gradient(180deg,transparent,#000 20%);-webkit-mask-image:linear-gradient(180deg,transparent,#000 20%)}}

/* Search results v1.14 */
.rm-search-banner{background:#102b48;color:#fff;border-radius:12px;padding:32px}.rm-search-banner h1{color:#fff;margin:0 0 8px;font-size:clamp(26px,3vw,38px)}.rm-search-banner p{color:#f5eadb;margin:0 0 20px}.rm-search-banner form{display:flex;max-width:760px;gap:8px;background:#fff;padding:6px;border-radius:9px}.rm-search-banner input{flex:1;min-width:0;border:0;background:#fff;color:#102b48;padding:10px 12px}.rm-search-banner button{background:#0876df;color:white;border:0;border-radius:6px;padding:10px 24px;font-weight:700}.rm-search-page .rm-layout>div{min-width:0}.rm-search-results{display:grid;gap:16px}.rm-search-result{display:grid;grid-template-columns:minmax(0, 34%) minmax(0,1fr);gap:18px;background:white;border:1px solid #e8e4df;border-radius:10px;padding:14px;align-items:start}.rm-search-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:7px;display:block}.rm-search-result h3{font-size:21px;line-height:1.3;margin:5px 0 8px;color:#102b48;overflow-wrap:anywhere}.rm-search-result p{font-size:15px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}.rm-search-category,.rm-search-more{color:#a6500b;font-size:14px}.rm-search-result mark{background:#ffe0ac;color:inherit;padding:0}.rm-search-empty{background:#fff;border-radius:10px;padding:24px;margin-bottom:24px}.rm-search-empty h3{color:#102b48}.rm-search-page .rm-heading{overflow-wrap:anywhere}@media(max-width:600px){.rm-search-banner{padding:20px}.rm-search-banner button{padding:10px 14px}.rm-search-result{grid-template-columns:1fr;gap:12px}.rm-search-photo img{aspect-ratio:16/9}.rm-search-result h3{font-size:19px}}

/* v1.15 footer and service pages */
.rm-footer.rm-footer-new .rm-footer-grid{grid-template-columns:1.2fr 1fr 1fr 1fr;gap:26px}.rm-footer-new h2{color:#efa04c;font-size:17px;margin:0 0 12px}.rm-footer-new a{color:#f0eee6;margin:0 0 9px;line-height:1.4}.rm-footer-new a:hover{color:#efa04c}.rm-footer-new a.rm-footer-topic{display:flex;align-items:center;gap:8px}.rm-footer-new .rm-footer-topic .rm-icon{width:19px;height:19px;color:#efa04c}.rm-footer-new .rm-footer-bottom{grid-column:1/-1;border-top:1px solid #53685b;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:15px}.rm-footer-new .rm-footer-bottom small{margin-top:5px}.rm-footer-new .rm-footer-top{background:transparent;color:#efa04c;border:1px solid #efa04c;border-radius:8px;min-width:44px;min-height:44px;font-size:23px;cursor:pointer}.rm-service-page{background:white;border-radius:12px;padding:clamp(16px,3vw,32px);max-width:none}.rm-service-page h1,.rm-service-page h2{color:#102b48}.rm-service-page .rm-content{font-family:'Segoe UI',Arial,sans-serif}.rm-service-page .rm-content a{color:#a94d09;text-decoration:underline}@media(max-width:900px){.rm-footer.rm-footer-new .rm-footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.rm-footer.rm-footer-new .rm-footer-grid{grid-template-columns:1fr;gap:20px}}

/* v1.17: mobile-only layout and touch targets */
@media(max-width:900px){
.rm-layout,.rm-single-layout{grid-template-columns:minmax(0,1fr)}
.rm-layout>* ,.rm-hero>* ,.rm-footer-grid>*{min-width:0}
.rm-nav.open .rm-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.rm-nav a{white-space:normal;min-height:44px;overflow-wrap:anywhere;padding:8px 4px}
.rm-nav a:first-child{justify-self:start;min-width:44px;justify-content:center}
.rm-toggle{min-height:48px}
.rm-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.rm-feed-pagination,.rm-pagination{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.rm-feed-pagination a,.rm-feed-pagination span,.rm-pagination a,.rm-pagination span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.rm-side .rm-search{max-width:none}.rm-search input,.rm-search button,.rm-search-banner input,.rm-search-banner button{min-height:44px;font-size:16px}
.rm-side .rm-section-link{min-height:44px;align-items:center}
.rm-content iframe,.rm-content video,.rm-content figure{max-width:100%}
.rm-content pre,.rm-content table{display:block;max-width:100%;overflow-x:auto}
.rm-bread,.rm-footer a,.rm-footer p{overflow-wrap:anywhere}
}
@media(max-width:600px){
.rm-brand{min-height:80px;background:#102b48}.rm-logo{font-size:clamp(23px,6.5vw,29px);min-width:0}.rm-logo small{line-height:1.35}.rm-logo>.rm-icon{width:38px;height:38px}
.rm-main{padding-top:16px}.rm-layout{gap:20px;margin-top:20px}
.rm-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto}
.rm-hero .rm-feature,.rm-hero .rm-feature:first-child{grid-column:1;grid-template-columns:minmax(0,1fr);min-height:0;grid-template-rows:auto auto}
.rm-hero .rm-feature .rm-feature-photo{grid-column:1;grid-row:1;min-height:0;height:auto;aspect-ratio:16/9}
.rm-hero .rm-feature>div{grid-column:1;grid-row:2;padding:14px}
.rm-hero .rm-feature h2{font-size:20px}.rm-hero .rm-feature:first-child h2{font-size:24px}
.rm-feature .rm-button{min-height:44px;display:inline-flex;align-items:center}
.rm-tiles{gap:10px}.rm-tile div{padding:10px 9px 26px}.rm-tile h3{font-size:15px}.rm-tile p{font-size:13px;overflow-wrap:anywhere}
.rm-posts,.rm-topic .rm-posts,.rm-related .rm-posts{grid-template-columns:minmax(0,1fr)}
.rm-card h3,.rm-topic .rm-card h3{font-size:18px}.rm-card div{padding:14px}
.rm-topic-banner{grid-template-columns:minmax(0,1fr)}.rm-topic-banner h1{font-size:clamp(24px,7vw,32px);overflow-wrap:anywhere}
.rm-topic-banner .rm-topic-art{min-width:0;height:auto}.rm-topic-banner .rm-topic-art img{width:100%;height:auto;max-height:230px;object-fit:contain}
.rm-search-banner{padding:16px}.rm-search-banner form{gap:4px}.rm-search-banner input{padding:8px}.rm-search-banner button{padding:8px 12px}
.rm-footer-new .rm-footer-bottom{flex-wrap:wrap}.rm-footer-new a{padding:5px 0}
}
@media(max-width:360px){.rm-nav.open .rm-wrap{grid-template-columns:minmax(0,1fr)}.rm-tile h3{font-size:14px}.rm-tile p{font-size:12px}}
/* Autopulsar approved light design */
body,body.ast-separate-container{background:#f6f9fc;color:#14263b}.rm-header{background:#e5f2fd;color:#102b48}.rm-brand{min-height:145px;background:none}.rm-brand:before{inset:0 0 0 40%;background:url(assets/header-wide.webp) right center/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent,#000 22%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 22%)}.rm-logo,.rm-logo:hover{color:#102b48;font-style:italic}.rm-logo small{color:#102b48;font-style:normal}.rm-logo>.rm-icon{color:#0876df}.rm-nav{border-bottom:5px solid #0876df}.rm-nav a:first-child{background:#0876df}.rm-icon{color:#0876df}.rm-hero{grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,180px)}.rm-feature,.rm-feature:first-child{display:block;position:relative;background:#102b48;min-height:0}.rm-feature .rm-feature-photo,.rm-feature:first-child .rm-feature-photo{position:absolute;inset:0;min-height:0;width:100%;height:100%;mask-image:none;-webkit-mask-image:none}.rm-feature:after{display:block;position:absolute;inset:0;background:linear-gradient(0deg,#071421dd,transparent 90%);z-index:0;pointer-events:none}.rm-feature:first-child:after{background:linear-gradient(90deg,#071421ed,transparent)}.rm-feature>div,.rm-feature:first-child>div{position:absolute;bottom:0;left:0;z-index:1;padding:20px;max-width:100%;background:none}.rm-feature:first-child>div{max-width:72%;bottom:12%}.rm-feature h2,.rm-feature h2 a,.rm-feature:first-child h2{color:white}.rm-feature .rm-tag,.rm-button{background:#0876df;color:white}.rm-feature:not(:first-child) .rm-tag{display:none}.ap-sections{margin-top:28px}.rm-tiles{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}.rm-tile{background:white;text-align:center;border-color:#dbe5ef;box-shadow:0 2px 5px #102b4810}.rm-tile img{aspect-ratio:1.15;object-fit:cover}.rm-tile div{display:flex;flex-direction:column-reverse;align-items:center;gap:8px;padding:12px 5px}.rm-tile div:after{display:none}.rm-tile h3{font-size:14px;margin:0}.rm-side section{background:#edf5fc}.rm-posts{grid-template-columns:repeat(2,minmax(0,1fr))}.rm-heading{color:#102b48;border-left:5px solid #0876df;padding-left:12px}.rm-heading:after{display:none}.rm-footer{background:#102b48}.rm-topic-banner{background:#102b48}.rm-search button{background:#0876df}.rm-card{border-color:#dbe5ef}.rm-card h3{color:#102b48}@media(max-width:900px){.rm-brand{min-height:100px}.rm-brand:before{display:none}.rm-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.rm-hero{grid-template-columns:1fr 1fr;grid-template-rows:320px 180px}.rm-feature:first-child{grid-column:1/-1;grid-row:auto}.rm-feature:first-child>div{max-width:95%}}@media(max-width:600px){.rm-logo{font-size:26px}.rm-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.rm-hero{grid-template-rows:300px 180px}.rm-feature>div{padding:10px}.rm-feature:first-child>div{bottom:0}.rm-feature:first-child h2{font-size:25px}.rm-feature:not(:first-child) h2{font-size:15px}}
.rm-logo b{color:#0876df}

/* Autopulsar 1.1 */
.rm-brand:before{mask-image:linear-gradient(90deg,transparent 0%,#000 24%,#000 84%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 24%,#000 84%,transparent 100%)}
.rm-logo>.rm-icon{width:84px;height:58px;flex-shrink:0}.rm-tiles .rm-tile>div{padding:10px 5px 12px;gap:5px;min-height:0}.rm-feature:first-child:after{background:linear-gradient(90deg,rgba(7,20,33,.78),rgba(7,20,33,.12) 85%)}.rm-feature:not(:first-child):after{background:linear-gradient(0deg,rgba(7,20,33,.82),transparent 75%)}
@media(min-width:901px){.home .rm-layout .rm-posts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rm-nav .ap-nav-item{display:flex;align-items:center;position:relative;min-width:0}.rm-nav .ap-nav-item>a:first-child,.rm-nav .ap-submenu>a:first-child{background:transparent;color:inherit;padding:0;min-width:0}.ap-dropdown summary{cursor:pointer;list-style:none;padding:8px;color:#0876df}.ap-dropdown summary::-webkit-details-marker{display:none}.ap-submenu{position:absolute;right:0;top:100%;min-width:220px;background:white;border:1px solid #dbe5ef;border-radius:8px;padding:10px;z-index:20;box-shadow:0 6px 18px #102b4820}.rm-nav .ap-submenu a{display:block;padding:8px!important;white-space:normal}.rm-nav .ap-submenu a:hover{background:#edf5fc}.rm-nav{position:relative;z-index:10}@media(max-width:900px){.ap-submenu{position:static;min-width:0;box-shadow:none}.rm-nav .ap-nav-item{flex-wrap:wrap}.rm-logo>.rm-icon{width:60px;height:45px}}@media(max-width:600px){.rm-logo>.rm-icon{width:48px;height:36px}}

/* Autopulsar 1.2: visual refinements */
@media(min-width:901px){.rm-brand:before{inset:0 0 0 40%;background-size:cover;background-position:right center;mask-image:linear-gradient(90deg,transparent 0%,#000 27%,#000 80%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 27%,#000 80%,transparent 100%)}}
.rm-nav .ap-nav-item>a:first-child .rm-icon{color:#0876df;display:inline-block;width:22px;height:22px;flex:0 0 22px}.rm-nav .ap-nav-item>a:first-child{display:flex;align-items:center;gap:6px;justify-content:flex-start}.rm-nav>.rm-wrap>a:first-child .rm-icon{color:white}
.rm-tiles .rm-tile>div{display:grid;grid-template-rows:24px minmax(36px,auto);justify-items:center;align-content:start;align-items:start;gap:5px;padding:12px 5px}.rm-tiles .rm-tile>div>.rm-icon{grid-row:1;width:24px;height:24px}.rm-tiles .rm-tile h3{grid-row:2;align-self:start;line-height:1.25}
.rm-hero .rm-feature .rm-feature-photo:after{display:none}.rm-hero .rm-feature:first-child:after{background:linear-gradient(0deg,rgba(7,20,33,.83) 0%,rgba(7,20,33,.48) 34%,rgba(7,20,33,.08) 65%,transparent 85%)}.rm-hero .rm-feature:not(:first-child):after{background:linear-gradient(0deg,rgba(7,20,33,.82),transparent 72%)}.rm-hero .rm-feature h2{text-shadow:0 1px 5px #07142199}
@media(max-width:600px){.rm-hero .rm-feature .rm-feature-photo{height:100%;aspect-ratio:auto}.rm-hero .rm-feature>div{padding:12px}.rm-hero .rm-feature:first-child>div{bottom:0}}

/* 1.3: consistent navigation icons and disclosure arrow */
.rm-nav .ap-nav-item>a:first-child .rm-icon,.rm-side .rm-section-link .rm-icon{width:24px;height:24px;flex:0 0 24px;color:#0877bd}.rm-tiles .rm-tile>div>.rm-icon{color:#0877bd}.rm-footer-new .rm-footer-topic .rm-icon{flex-shrink:0}.ap-dropdown summary{display:flex;align-items:center;justify-content:center;padding:0;width:24px;height:32px;line-height:1;color:#0877bd;list-style:none}.ap-dropdown summary::marker{content:""}.ap-chevron{display:block;width:17px;height:17px;flex-shrink:0}.ap-dropdown[open] .ap-chevron{transform:rotate(180deg)}.ap-dropdown summary:focus-visible{outline:2px solid #0877bd;outline-offset:2px;border-radius:4px}

/* v1.5: light category hero, centered icon and full-width photographic blend */
.rm-topic-banner{position:relative;display:grid;grid-template-columns:minmax(0,40%) minmax(0,60%);min-height:180px;background:#e5f2fd;color:#102b48;isolation:isolate}
.rm-topic-banner>.ap-topic-copy{position:relative;z-index:1;display:flex;align-items:center;gap:20px;margin:24px 0 24px 24px;padding:12px 0 12px 20px;border-left:4px solid #0876df;align-self:center;min-width:0}
.rm-topic-banner .ap-topic-copy>.rm-icon{display:block;width:52px;height:52px;flex:0 0 52px;align-self:center;color:#0876df}
.rm-topic-banner .ap-topic-text{min-width:0}.rm-topic-banner h1{color:#102b48;font-size:clamp(25px,3vw,42px);line-height:1.15;margin:0 0 10px;overflow-wrap:anywhere}.rm-topic-banner p{color:#102b48;margin:0;line-height:1.4}
.rm-topic-banner .rm-topic-art{position:absolute;inset:0 0 0 35%;height:100%;margin:0;background:#e5f2fd;z-index:-1;display:block}
.rm-topic-banner .rm-topic-art img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;mask-image:none;-webkit-mask-image:none}
.rm-topic-banner .rm-topic-art:after{display:block;background:linear-gradient(90deg,#e5f2fd 0%,rgba(229,242,253,.85) 12%,rgba(229,242,253,0) 38%)}
.rm-topic .rm-side .rm-section-link[aria-current=page]{background:#c9e8fb;color:#102b48}
@media(max-width:900px){.rm-topic-banner{grid-template-columns:minmax(0,55%) minmax(0,45%)}.rm-topic-banner .rm-topic-art{left:40%}.rm-topic-banner>.ap-topic-copy{gap:12px;margin-left:16px;padding-left:14px}.rm-topic-banner .ap-topic-copy>.rm-icon{width:40px;height:40px;flex-basis:40px}}
@media(max-width:600px){.rm-topic-banner{grid-template-columns:minmax(0,1fr);min-height:0}.rm-topic-banner>.ap-topic-copy{margin:20px 16px 10px;padding:8px 0 8px 12px}.rm-topic-banner .rm-topic-art{position:relative;inset:auto;height:150px;z-index:0}.rm-topic-banner .rm-topic-art:after{background:linear-gradient(180deg,#e5f2fd,rgba(229,242,253,0) 35%)}.rm-topic-banner h1{font-size:clamp(24px,7vw,32px)}}

/* v1.8: mobile homepage hero; content determines card height. */
@media (max-width:600px){
.rm-main > .rm-hero{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:12px;width:100%;}
.rm-main > .rm-hero > .rm-feature,.rm-main > .rm-hero > .rm-feature:first-child{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;grid-column:1/-1;grid-row:auto;width:100%;min-width:0;min-height:180px;height:auto;}
.rm-main > .rm-hero > .rm-feature:first-child{min-height:280px;}
.rm-main > .rm-hero > .rm-feature .rm-feature-photo{position:absolute;inset:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;}
.rm-main > .rm-hero > .rm-feature > div,.rm-main > .rm-hero > .rm-feature:first-child > div{position:relative;inset:auto;align-self:stretch;width:100%;max-width:none;padding:16px;z-index:1;}
.rm-main > .rm-hero > .rm-feature h2{font-size:clamp(17px,4.6vw,21px);line-height:1.25;margin:0;overflow-wrap:break-word;}
.rm-main > .rm-hero > .rm-feature:first-child h2{font-size:clamp(21px,5.7vw,26px);margin:10px 0 14px;}
.rm-main > .rm-hero .rm-button{display:inline-flex;align-items:center;min-height:44px;width:auto;max-width:100%;white-space:nowrap;font-size:14px;padding:10px 14px;}
.rm-main > .rm-hero > .rm-feature:after{background:linear-gradient(0deg,#071421ed,rgba(7,20,33,.55) 50%,transparent 100%);}
}
