/* Rooted Journal frontend. All rules are scoped to .rj-rooted-journal so Elementor/theme styles are not overwritten. */
.rj-rooted-journal{--green:#165938;--green-dark:#0D2818;--green-light:#1B5E3F;--orange:#E07A47;--sage:#D4EDD4;--sage-light:#E8F5E9;--cream:#FFF8F0;--cream-light:#FFFBF5;--text:#1A3A2E;--text-2:#4A5D54;--text-3:#6B7B73;--white:#FFFFFF;--border:#E8EDE8;--font-display:'Quicksand',sans-serif;--font-serif:'Playfair Display',Georgia,serif;--font-body:'Inter',sans-serif;font-family:var(--font-body);color:var(--text);background:var(--white);-webkit-font-smoothing:antialiased;line-height:1.5;width:100%;}
.rj-rooted-journal,.rj-rooted-journal *,.rj-rooted-journal *::before,.rj-rooted-journal *::after{box-sizing:border-box;}
.rj-rooted-journal a{color:inherit;text-decoration:none;}
.rj-rooted-journal img{max-width:100%;display:block;}
.rj-rooted-journal button,.rj-rooted-journal input{font-family:inherit;}
.rj-rooted-journal button{cursor:pointer;}
.rj-empty{padding:30px;background:var(--cream);border:1px solid var(--border);color:var(--text-2);}

/* Featured hero — matches the supplied Rooted Journal handoff. */
.rj-rooted-journal .rj-hero-section{background:var(--green);padding:64px 32px;}
.rj-rooted-journal .rj-hero-inner{max-width:1280px;margin:0 auto;}
.rj-rooted-journal .rj-hero-slide{display:none;grid-template-columns:1fr 380px;gap:48px;align-items:center;}
.rj-rooted-journal .rj-hero-slide.is-active{display:grid;}
.rj-rooted-journal .rj-hero-copy{min-width:0;}
.rj-rooted-journal .rj-hero-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--orange);margin-bottom:16px;display:flex;align-items:center;gap:8px;}
.rj-rooted-journal .rj-hero-label::before{content:'';width:24px;height:2px;background:var(--orange);flex:0 0 24px;}
.rj-rooted-journal .rj-hero-title{font-family:var(--font-serif);font-size:48px;font-weight:700;color:var(--white);line-height:1.15;margin:0 0 20px;}
.rj-rooted-journal .rj-hero-excerpt{font-size:17px;color:rgba(255,255,255,.8);line-height:1.7;margin:0 0 28px;max-width:560px;}
.rj-rooted-journal .rj-hero-meta{display:flex;align-items:center;gap:16px;}
.rj-rooted-journal .rj-hero-author-img{width:40px;height:40px;border-radius:50%;background:var(--sage);border:2px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:var(--green);font-family:var(--font-display);flex:0 0 40px;}
.rj-rooted-journal .rj-hero-author-name{font-weight:600;font-size:14px;color:var(--white);}
.rj-rooted-journal .rj-hero-author-meta{font-size:12px;color:rgba(255,255,255,.55);}
.rj-rooted-journal .rj-hero-cta{display:inline-flex;align-items:center;gap:8px;background:var(--orange);color:var(--white);padding:12px 24px;border-radius:24px;font-weight:700;font-size:14px;margin-top:24px;transition:all .2s;}
.rj-rooted-journal .rj-hero-cta:hover{background:#D97757;color:var(--white);transform:translateY(-2px);}
.rj-rooted-journal .rj-hero-image-area{background:rgba(255,255,255,.07);border-radius:16px;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px solid rgba(255,255,255,.12);overflow:hidden;}
.rj-rooted-journal .rj-hero-image-area img{width:100%;height:100%;object-fit:cover;}
.rj-rooted-journal .rj-hero-image-placeholder{font-size:13px;color:rgba(255,255,255,.4);font-family:monospace;}
.rj-rooted-journal .rj-hero-controls{max-width:1280px;margin:0 auto;background:var(--green);display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 32px 24px;}
.rj-rooted-journal .rj-slider-prev,.rj-rooted-journal .rj-slider-next{width:36px;height:36px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);background:transparent;font-size:18px;line-height:1;}
.rj-rooted-journal .rj-slider-prev:hover,.rj-rooted-journal .rj-slider-next:hover{background:rgba(255,255,255,.1);}
.rj-rooted-journal .rj-slider-dots{display:flex;gap:7px;align-items:center;}
.rj-rooted-journal .rj-slider-dot{width:7px;height:7px;border-radius:50%;padding:0;background:rgba(255,255,255,.35);border:0;}
.rj-rooted-journal .rj-slider-dot.is-active{background:var(--white);}

/* Category strip — exact handoff values. */
.rj-rooted-journal .rj-cat-strip{background:var(--cream);border-bottom:1px solid var(--border);padding:0 32px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;}
.rj-rooted-journal .rj-cat-strip-inner{max-width:1280px;margin:0 auto;display:flex;gap:0;min-width:max-content;}
.rj-rooted-journal .rj-cat-strip-item{appearance:none;-webkit-appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;padding:14px 20px;margin:0;font-size:13px;font-weight:600;color:var(--text-3);cursor:pointer;white-space:nowrap;transition:all .15s;line-height:1.4;box-shadow:none;border-radius:0;}
.rj-rooted-journal .rj-cat-strip-item:hover,.rj-rooted-journal .rj-cat-strip-item.is-active{color:var(--green);border-bottom-color:var(--green);background:transparent;}

/* Main layout — exact handoff values. */
.rj-rooted-journal .rj-main-layout{max-width:1280px;margin:0 auto;padding:48px 32px;display:grid;grid-template-columns:1fr 340px;gap:64px;}
.rj-rooted-journal .rj-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;padding-bottom:14px;border-bottom:2px solid var(--border);}
.rj-rooted-journal .rj-section-title{font-family:var(--font-display);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--text-3);display:flex;align-items:center;gap:8px;}
.rj-rooted-journal .rj-section-title::before{content:'';width:16px;height:2px;background:var(--green);flex:0 0 16px;}
.rj-rooted-journal .rj-section-more{font-size:12px;font-weight:600;color:var(--orange);cursor:pointer;white-space:nowrap;}
.rj-rooted-journal .rj-section-more:hover{text-decoration:underline;color:var(--orange);}

.rj-rooted-journal .rj-ranked-list{display:flex;flex-direction:column;}
.rj-rooted-journal .rj-ranked-item{display:grid;grid-template-columns:48px 1fr auto;gap:20px;align-items:start;padding:24px 0;border-bottom:1px solid var(--border);cursor:pointer;transition:all .15s;}
.rj-rooted-journal .rj-ranked-item:last-child{border-bottom:none;}
.rj-rooted-journal .rj-ranked-item:hover .rj-ranked-title{color:var(--green);}
.rj-rooted-journal .rj-ranked-num{font-family:var(--font-serif);font-size:36px;font-weight:700;color:var(--border);line-height:1;padding-top:4px;transition:color .15s;}
.rj-rooted-journal .rj-ranked-item:hover .rj-ranked-num{color:var(--sage);}
.rj-rooted-journal .rj-ranked-category{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--orange);margin-bottom:6px;}
.rj-rooted-journal .rj-ranked-title{font-family:var(--font-display);font-size:17px;font-weight:700;color:var(--text);line-height:1.4;margin:0 0 8px;transition:color .15s;display:block;}
.rj-rooted-journal .rj-ranked-excerpt{font-size:13px;color:var(--text-3);line-height:1.6;margin-bottom:10px;}
.rj-rooted-journal .rj-ranked-meta{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--text-3);flex-wrap:wrap;}
.rj-rooted-journal .rj-ranked-thumb{width:100px;height:80px;background:var(--cream);border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;}
.rj-rooted-journal .rj-ranked-thumb img{width:100%;height:100%;object-fit:cover;}

.rj-rooted-journal .rj-latest-wrap{margin-top:48px;}
.rj-rooted-journal .rj-article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:48px;}
.rj-rooted-journal .rj-article-card{background:var(--white);border-radius:14px;overflow:hidden;border:1px solid var(--border);cursor:pointer;transition:all .2s;}
.rj-rooted-journal .rj-article-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(22,89,56,.1);}
.rj-rooted-journal .rj-article-card-img{aspect-ratio:16/9;background:var(--cream);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.rj-rooted-journal .rj-article-card-img img{width:100%;height:100%;object-fit:cover;}
.rj-rooted-journal .rj-image-placeholder{font-family:monospace;font-size:11px;color:var(--text-3);}
.rj-rooted-journal .rj-article-card-body{padding:20px;}
.rj-rooted-journal .rj-article-card-cat{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--orange);margin-bottom:8px;}
.rj-rooted-journal .rj-article-card-title{font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--text);line-height:1.45;margin:0 0 10px;display:block;}
.rj-rooted-journal .rj-article-card-title:hover{color:var(--green);}
.rj-rooted-journal .rj-article-card-meta{font-size:11px;color:var(--text-3);display:flex;gap:8px;}

/* Sidebar — no Categories block. */
.rj-rooted-journal .rj-sidebar{min-width:0;}
.rj-rooted-journal .rj-sidebar-block{margin-bottom:36px;}
.rj-rooted-journal .rj-sidebar-newsletter{background:var(--green);border-radius:16px;padding:28px;margin-bottom:36px;}
.rj-rooted-journal .rj-sidebar-nl-title{font-family:var(--font-display);font-size:18px;font-weight:700;color:var(--white);margin-bottom:8px;}
.rj-rooted-journal .rj-sidebar-nl-desc{font-size:13px;color:rgba(255,255,255,.75);line-height:1.6;margin-bottom:20px;}
.rj-rooted-journal .rj-sidebar-nl-count{font-size:12px;color:var(--sage);font-weight:600;margin-bottom:16px;}
.rj-rooted-journal .rj-newsletter-form{margin:0;padding:0;}
.rj-rooted-journal .rj-sidebar-nl-input{width:100%;padding:11px 16px;border-radius:8px;border:0;font-size:13px;margin:0 0 10px;outline:none;background:var(--white);color:var(--text);}
.rj-rooted-journal .rj-sidebar-nl-btn{width:100%;padding:11px;background:var(--orange);color:var(--white);border:0;border-radius:8px;font-weight:700;font-size:13px;transition:background .15s;}
.rj-rooted-journal .rj-sidebar-nl-btn:hover{background:#D97757;color:var(--white);}
.rj-rooted-journal .rj-sidebar-nl-note{font-size:11px;color:rgba(255,255,255,.45);margin-top:8px;text-align:center;}
.rj-rooted-journal .rj-sidebar-top-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);cursor:pointer;}
.rj-rooted-journal .rj-sidebar-top-item:last-child{border-bottom:none;}
.rj-rooted-journal .rj-sidebar-top-item:hover .rj-sidebar-top-title{color:var(--green);}
.rj-rooted-journal .rj-sidebar-top-num{font-family:var(--font-serif);font-size:24px;font-weight:700;color:var(--border);min-width:28px;}
.rj-rooted-journal .rj-sidebar-top-title{font-family:var(--font-display);font-size:13px;font-weight:600;color:var(--text);line-height:1.4;transition:color .15s;}
.rj-rooted-journal .rj-sidebar-top-meta{font-size:11px;color:var(--text-3);margin-top:4px;}
.rj-rooted-journal .rj-tags-cloud{display:flex;flex-wrap:wrap;gap:8px;}
.rj-rooted-journal .rj-tag{padding:6px 14px;background:var(--cream);color:var(--text-2);border-radius:20px;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s;border:1px solid var(--border);}
.rj-rooted-journal .rj-tag:hover{background:var(--green);color:var(--white);border-color:var(--green);}

/* Responsive values from the handoff. */
@media (max-width:1000px){
 .rj-rooted-journal .rj-main-layout{grid-template-columns:1fr;gap:40px;}
 .rj-rooted-journal .rj-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;}
 .rj-rooted-journal .rj-sidebar-newsletter{margin-bottom:0;}
}
@media (max-width:760px){
 .rj-rooted-journal .rj-hero-section{padding:40px 20px;}
 .rj-rooted-journal .rj-hero-slide{grid-template-columns:1fr;gap:28px;}
 .rj-rooted-journal .rj-hero-title{font-size:36px;}
 .rj-rooted-journal .rj-hero-excerpt{font-size:15px;}
 .rj-rooted-journal .rj-hero-image-area{width:100%;}
 .rj-rooted-journal .rj-cat-strip{padding:0 12px;}
 .rj-rooted-journal .rj-cat-strip-item{padding:14px 14px;}
 .rj-rooted-journal .rj-main-layout{padding:36px 20px;}
 .rj-rooted-journal .rj-ranked-item{grid-template-columns:36px 1fr;gap:14px;}
 .rj-rooted-journal .rj-ranked-thumb{grid-column:2;width:100%;height:auto;aspect-ratio:16/9;}
 .rj-rooted-journal .rj-article-grid{grid-template-columns:1fr;}
 .rj-rooted-journal .rj-sidebar{grid-template-columns:1fr;}
}
@media (max-width:480px){
 .rj-rooted-journal .rj-hero-title{font-size:31px;}
 .rj-rooted-journal .rj-section-header{align-items:flex-end;gap:12px;}
 .rj-rooted-journal .rj-ranked-num{font-size:30px;}
 .rj-rooted-journal .rj-ranked-title{font-size:16px;}
}

/* Pagination — used by category tabs and Latest from the Journal. */
.rj-rooted-journal .rj-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin:24px 0 8px;min-height:38px;}
.rj-rooted-journal .rj-pagination:empty{display:none;}
.rj-rooted-journal .rj-pagination button{appearance:none;-webkit-appearance:none;min-width:36px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:4px;background:var(--white);color:var(--text-2);font-family:var(--font-body);font-size:12px;font-weight:600;line-height:34px;cursor:pointer;transition:all .15s;}
.rj-rooted-journal .rj-pagination button:hover:not(:disabled){border-color:var(--green);color:var(--green);background:var(--cream-light);}
.rj-rooted-journal .rj-pagination button.is-current{background:var(--green);border-color:var(--green);color:var(--white);}
.rj-rooted-journal .rj-pagination button:disabled{opacity:.4;cursor:not-allowed;}
.rj-rooted-journal .rj-pagination .rj-pagination-prev,.rj-rooted-journal .rj-pagination .rj-pagination-next{padding:0 12px;}
.rj-rooted-journal .rj-pagination .rj-pagination-gap{display:inline-flex;align-items:center;justify-content:center;width:28px;height:36px;color:var(--text-3);font-size:12px;}
@media(max-width:782px){
  .rj-rooted-journal .rj-pagination{gap:4px;overflow-x:auto;justify-content:flex-start;padding:0 2px;}
  .rj-rooted-journal .rj-pagination button{min-width:34px;height:34px;line-height:32px;padding:0 8px;}
}

/* Pagination visibility must win over theme/Elementor layout rules. */
.rj-rooted-journal .rj-pagination-hidden{display:none !important;}
.rj-rooted-journal .rj-pagination-visible{display:grid !important;}
