/*
Theme Name: CSEOBSERVER Canadian News
Theme URI: https://example.org/
Author: CSEOBSERVER
Description: Responsive Canadian financial news theme with image galleries for Research and Technical Analysis.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cseobserver
*/
:root{--red:#d9000d;--dark:#850008;--ink:#151515}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.site-header{width:100%;background:#fff}.banner{display:block;width:100%;height:auto}.nav{background:linear-gradient(#f7000a,#9a0007 68%,#e0000a);border-bottom:3px solid #a40000;box-shadow:0 3px 7px #bbb}.nav-inner{max-width:1536px;margin:auto;display:flex;align-items:stretch;justify-content:space-around}.nav a{color:#fff;font-weight:900;text-transform:uppercase;text-align:center;font-size:clamp(13px,1.65vw,25px);padding:19px 10px;flex:1;border-right:1px solid #ffffff50}.nav a.current{color:#b00000;background:linear-gradient(125deg,#eee,#fff 70%,#ccc);transform:skew(-10deg)}.nav a:hover{background:#750006}.container{max-width:1536px;margin:16px auto 30px;padding:0 14px;display:grid;grid-template-columns:minmax(0, 2.35fr) minmax(290px,1fr);gap:14px}.section-title{display:flex;align-items:center;gap:12px;margin:0 0 16px;min-height:52px}.section-title strong{font-size:clamp(20px,2.2vw,35px);font-weight:900;font-style:italic;text-transform:uppercase;background:linear-gradient(#f3000d,#8e0008);color:#fff;padding:9px 27px 9px 18px;clip-path:polygon(5% 0,100% 0,96% 100%,0 100%);white-space:nowrap}.section-title small{font-weight:bold;font-size:clamp(11px,1.1vw,16px);color:#252525}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 14px}.article-card{background:#fff;border:1px solid #ddd;border-radius:15px;box-shadow:0 3px 5px #0003;overflow:hidden;display:flex;flex-direction:column;min-width:0}.thumb{height:auto;aspect-ratio:2.45;position:relative;background:#091b34;overflow:hidden}.thumb img{display:block;width:100%;height:100%;object-fit:cover}.ribbon{position:absolute;top:0;left:0;background:linear-gradient(#f4000a,#9a0000);color:white;padding:5px 14px;font-size:clamp(10px,1.25vw,18px);font-weight:900;font-style:italic;clip-path:polygon(0 0,100% 0,90% 100%,0 100%)}.ticker{position:absolute;bottom:5px;left:8px;background:linear-gradient(#ec0000,#940000);color:white;border:2px solid white;border-radius:25px;padding:2px 11px;font-size:clamp(14px,2vw,30px);font-weight:900;box-shadow:0 2px 3px #0008}.article-body{padding:6px 11px 9px;display:flex;flex:1;flex-direction:column}.article-body h2{font-size:clamp(13px,1.45vw,21px);line-height:1.12;margin:0 0 10px;font-weight:900;letter-spacing:-.4px}.article-footer{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:6px}.date{font-size:clamp(10px,1.1vw,16px);font-weight:700;white-space:nowrap}.date:before{content:'▦';color:#d9000d;margin-right:5px;font-size:1.4em}.read{font-size:clamp(9px,1vw,14px);font-weight:900;color:white;background:linear-gradient(#f0000c,#b40000);padding:8px 10px;border-radius:8px;white-space:nowrap}.panel{border:2px solid #db0011;border-radius:16px;overflow:hidden;margin-bottom:15px;background:#fff}.panel-title{background:linear-gradient(#f90013,#98000b);color:#fff;padding:12px 14px;font-size:clamp(17px,1.7vw,26px);font-weight:900;font-style:italic}.newsletter{padding:12px 15px 14px;text-align:center}.newsletter p{font-size:clamp(15px,1.45vw,21px);font-weight:800;line-height:1.2;margin:0 0 14px}.newsletter input{width:100%;height:49px;border:1px solid #bbb;border-radius:8px;padding:10px 14px;font-size:17px}.newsletter button{width:100%;border:0;border-radius:8px;background:linear-gradient(#f30009,#a60000);color:#fff;font-size:clamp(19px,2vw,29px);font-weight:900;padding:12px;margin-top:13px;cursor:pointer}.newsletter .note{font-size:12px;color:#555;font-weight:normal;margin:8px 0 0}.side-item{display:grid;grid-template-columns:41% 1fr;gap:12px;padding:11px 12px;border-bottom:1px solid #ddd}.side-item:last-child{border:0}.side-item img{width:100%;aspect-ratio:2/1;object-fit:cover;border-radius:9px}.side-item b{font-size:clamp(13px,1.35vw,20px);line-height:1.12;display:block}.side-item span{font-size:13px;margin-top:8px;display:block}.single-article{padding:22px;border:1px solid #ddd;border-radius:12px}.single-article h1{font-size:clamp(25px,3vw,44px);margin:10px 0}.single-article img{max-width:100%;height:auto;border-radius:10px}.single-article p{line-height:1.5;margin:0 0 12px}.gallery .thumb{aspect-ratio:1.55}.gallery .article-body h2{font-size:16px}.gallery .article-card{cursor:pointer}.footer{background:#a60000;color:white;text-align:center;padding:25px;font-weight:bold}@media(max-width:900px){.container{grid-template-columns:minmax(0,1fr)}.nav-inner{flex-wrap:wrap}.nav a{flex:1 1 32%;font-size:14px;padding:13px 4px}.cards{gap:12px}.section-title small{display:none}}@media(max-width:580px){.container{padding:0 10px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.article-body h2{font-size:14px}.article-footer{flex-wrap:wrap}.read{font-size:10px}.ticker{font-size:15px}.ribbon{font-size:10px}.section-title strong{font-size:21px}.side-item b{font-size:15px}}@media(max-width:360px){.cards{grid-template-columns:1fr}}
/* Sidebar article links populated dynamically from Featured category */
a.side-item { display:flex; color:inherit; text-decoration:none; }
a.side-item:hover b { color:#c90000; }
/* Restored large homepage featured story */
.home-main{min-width:0}.home-hero{min-height:310px;display:grid;grid-template-columns:57% 43%;background:linear-gradient(120deg,#07172c,#020c1b);border-radius:17px;overflow:hidden;box-shadow:0 3px 9px #0004;margin-bottom:17px;color:#fff}.hero-photo{position:relative;min-width:0;overflow:hidden}.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}.hero-ribbon{position:absolute;top:0;left:12px;background:linear-gradient(#ff1b21,#a90000);padding:9px 30px;font-weight:900;font-style:italic;font-size:clamp(20px,2.3vw,32px);clip-path:polygon(9% 0,100% 0,92% 100%,0 100%)}.hero-copy{padding:16px 22px 15px 12px;display:flex;flex-direction:column;justify-content:center;min-width:0}.hero-copy h1{font-size:clamp(24px,2.8vw,42px);line-height:1.02;margin:0 0 10px;font-weight:900}.hero-copy p{font-size:clamp(15px,1.45vw,21px);line-height:1.2;margin:0 0 13px}.hero-button{align-self:flex-end;margin-top:auto;background:linear-gradient(#f4161b,#9d0000);border:1px solid #fff;color:white;border-radius:8px;padding:9px 20px;font-size:16px;font-weight:900}.home-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-cards .article-body h2{font-size:clamp(12px,1.3vw,18px)}.home-cards .thumb{aspect-ratio:2.1}.home-cards .read{padding:7px 8px;font-size:clamp(9px,.9vw,12px)}@media(max-width:900px){.home-hero{min-height:270px}.home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.home-hero{grid-template-columns:1fr}.hero-photo{height:215px}.hero-copy{padding:16px}.hero-copy h1{font-size:27px}.hero-copy p{font-size:16px}.hero-button{align-self:flex-start}.home-cards .article-body h2{font-size:14px}}

/* CSEOBSERVER compact homepage featured banner — Nov 2026 */
@media (min-width:901px){
 .home-hero{height:300px;min-height:0;grid-template-columns:55% 45%;}
 .hero-copy{padding:14px 18px 13px 16px;justify-content:flex-start;overflow:hidden;}
 .hero-copy h1{font-size:clamp(19px,1.75vw,28px);line-height:1.12;margin:0 0 9px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;overflow-wrap:anywhere;}
 .hero-copy p{font-size:clamp(12px,1.03vw,15px);line-height:1.3;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;}
 .hero-button{padding:7px 15px;font-size:13px;}
}
@media (min-width:581px) and (max-width:900px){
 .home-hero{height:270px;min-height:0;}
 .hero-copy{overflow:hidden;padding:12px;justify-content:flex-start;}
 .hero-copy h1{font-size:clamp(18px,2.6vw,25px);line-height:1.12;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;overflow-wrap:anywhere;}
 .hero-copy p{font-size:13px;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;}
 .hero-button{padding:6px 12px;font-size:12px;}
}
@media(max-width:580px){
 .hero-photo{height:190px;}
 .hero-copy h1{font-size:23px;line-height:1.12;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;overflow-wrap:anywhere;}
 .hero-copy p{font-size:14px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;}
 .hero-copy{padding:13px 15px;}
}


/* CSEOBSERVER desktop and mobile layout refinement */
.nav-inner{align-items:stretch;justify-content:center}
.nav a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:9px 10px;font-size:clamp(12px,1.25vw,18px);line-height:1.05;white-space:nowrap;transform:none}
.nav a.current{transform:none;clip-path:polygon(8% 0,100% 0,92% 100%,0 100%)}
.container{grid-template-columns:minmax(0,2.3fr) minmax(305px,1fr);gap:15px;align-items:start}
.container>aside{min-width:0}
.panel{margin-bottom:14px;border-radius:13px;border-width:2px}
.panel-title{font-size:clamp(15px,1.35vw,20px);line-height:1.1;padding:12px 13px;letter-spacing:-.35px}
.newsletter{padding:13px 15px 14px}
.newsletter p{font-size:clamp(14px,1.15vw,17px);line-height:1.28;margin:0 0 12px}
.newsletter input{height:44px;font-size:15px;border:1px solid #b7b7b7;box-shadow:inset 0 1px 3px #00000012}
.newsletter button{height:47px;padding:7px;font-size:clamp(17px,1.6vw,23px);margin-top:10px}
.newsletter .note{display:none}
a.side-item,.side-item{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);align-items:start;gap:10px;padding:10px 11px;min-width:0}
.side-item img,a.side-item img{width:100%;height:auto;aspect-ratio:1.85;object-fit:cover;border-radius:7px;min-width:0}
.side-item>div{min-width:0}
.side-item b{font-size:clamp(13px,1.1vw,17px);line-height:1.18;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.side-item span{font-size:12px;margin-top:6px;font-weight:700;color:#444}
.home-cards{gap:12px}
.home-cards .article-card{border-radius:11px;min-height:0}
.home-cards .thumb{aspect-ratio:2.0}
.home-cards .article-body{padding:7px 9px 9px;min-height:110px}
.home-cards .article-body h2{font-size:clamp(13px,1.05vw,17px);line-height:1.18;letter-spacing:-.15px;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.home-cards .article-footer{align-items:center;gap:5px}
.home-cards .date{font-size:clamp(10px,.82vw,13px)}
.home-cards .read{font-size:clamp(9px,.78vw,12px);padding:7px 8px;border-radius:6px}
.section-title{margin-bottom:12px;min-height:43px;gap:8px}
.section-title strong{font-size:clamp(18px,1.8vw,28px);padding:8px 17px}
.section-title small{font-size:clamp(11px,.9vw,14px)}
@media(max-width:1050px) and (min-width:901px){.container{grid-template-columns:minmax(0,2fr) minmax(275px,1fr)}.nav a{font-size:13px}.home-cards .article-footer{flex-wrap:wrap}.home-cards .read{margin-left:auto}}
@media(max-width:900px){.container{grid-template-columns:minmax(0,1fr)}.nav-inner{flex-wrap:wrap}.nav a{flex:1 1 32%;min-height:43px;padding:9px 6px;font-size:13px;white-space:normal}.home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.home-cards .article-body{min-height:105px}.side-item b{font-size:15px}.panel-title{font-size:19px}}
@media(max-width:580px){.nav a{font-size:12px;min-height:42px}.home-cards{gap:10px}.home-cards .article-body h2{font-size:14px}.home-cards .date{font-size:11px}.home-cards .read{font-size:10px}.section-title strong{font-size:19px;white-space:normal}.newsletter p{font-size:16px}}

/* Homepage sidebar: latest dashboard-uploaded Research and Technical Analysis images */
.cse-latest-gallery .panel-title{font-size:clamp(15px,1.4vw,21px);padding:11px 13px}
.cse-latest-gallery .cse-gallery-item{display:grid;grid-template-columns:minmax(0,37%) minmax(0,1fr);gap:10px;padding:9px 11px;align-items:center}
.cse-latest-gallery .cse-gallery-item img{width:100%;aspect-ratio:1.55;object-fit:cover;border-radius:7px}
.cse-latest-gallery .cse-gallery-item b{font-size:clamp(12px,1.05vw,16px);line-height:1.18;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.cse-latest-gallery .cse-gallery-item span{font-size:12px;margin-top:5px}
.cse-gallery-all{display:block;text-align:center;color:#ad0008;font-weight:900;font-style:italic;font-size:clamp(12px,1.15vw,16px);padding:12px 6px;border-top:1px solid #ddd}
.cse-gallery-all:hover{text-decoration:underline}
.cse-gallery-empty{padding:12px;font-size:14px;line-height:1.4;margin:0}

/* CSEOBSERVER: tighter typography on individual article pages */
.single-article > div:last-child { font-size: 17px; line-height: 1.35; }
.single-article > div:last-child p,
.single-article > div:last-child li { line-height: 1.35 !important; margin-top: 0 !important; margin-bottom: 8px !important; }
.single-article > div:last-child h2,
.single-article > div:last-child h3,
.single-article > div:last-child h4 { line-height: 1.2 !important; margin-top: 14px !important; margin-bottom: 6px !important; }
.single-article > div:last-child ul,
.single-article > div:last-child ol { margin-top: 6px; margin-bottom: 10px; }
@media (max-width: 767px) {
  .single-article { padding: 16px; }
  .single-article > div:last-child { font-size: 16px; line-height: 1.35; }
  .single-article > div:last-child p,
  .single-article > div:last-child li { line-height: 1.35 !important; margin-bottom: 8px !important; }
}


/* CSEOBSERVER: clear article paragraph separation without loose line spacing */
.single-article > div:last-child { font-size:17px; line-height:1.45; overflow-wrap:break-word; }
.single-article > div:last-child p,
.single-article > div:last-child .wp-block-paragraph { font-size:inherit; line-height:1.45 !important; margin:0 0 15px !important; }
.single-article > div:last-child p + p { margin-top:0 !important; }
.single-article > div:last-child h2,
.single-article > div:last-child h3,
.single-article > div:last-child h4,
.single-article > div:last-child .wp-block-heading { font-weight:800 !important; line-height:1.25 !important; margin:24px 0 10px !important; }
.single-article > div:last-child li { line-height:1.45 !important; margin-bottom:6px !important; }
.single-article > div:last-child ul,
.single-article > div:last-child ol { margin:8px 0 16px; padding-left:24px; }
@media(max-width:767px){
 .single-article > div:last-child{font-size:16px;line-height:1.45}
 .single-article > div:last-child p,.single-article > div:last-child .wp-block-paragraph{margin-bottom:14px !important;line-height:1.45 !important}
}
