/* Rooted Journal v3.2 — frontend CSS. All rules are scoped to .rj-rooted-journal. */
.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;}
.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{display:block;max-width:none;}
.rj-rooted-journal button{cursor:pointer;border:0;background:none;font-family:inherit;}
.rj-rooted-journal .rj-hero-slide{display:none!important;}
.rj-rooted-journal .rj-hero-slide.is-active{display:grid!important;}
.rj-rooted-journal .rj-hero-image-area{overflow:hidden;}
.rj-rooted-journal .rj-hero-image-area img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:16px;}
.rj-rooted-journal .rj-ranked-thumb{overflow:hidden;}
.rj-rooted-journal .rj-ranked-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:10px;}
.rj-rooted-journal .rj-article-card-img{overflow:hidden;}
.rj-rooted-journal .rj-article-card-img img{width:100%!important;height:100%!important;object-fit:cover!important;}
.rj-rooted-journal .rj-image-placeholder{color:var(--text-3);font-family:monospace;font-size:11px;}
.rj-rooted-journal .rj-no-results{padding:24px 0;color:var(--text-3);font-size:13px;}
.rj-rooted-journal .rj-empty{padding:32px;background:var(--cream);border:1px solid var(--border);border-radius:14px;}
.rj-rooted-journal .rj-latest-wrap{margin-top:48px;}
.rj-rooted-journal .rj-sidebar{min-width:0;}
.rj-rooted-journal .rj-newsletter-form{margin:0;}
.rj-rooted-journal .rj-pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin:28px 0 8px;flex-wrap:wrap;}
.rj-rooted-journal .rj-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border:1px solid var(--border);border-radius:18px;color:var(--text-2);background:var(--white);font-size:12px;font-weight:700;text-decoration:none;}
.rj-rooted-journal .rj-pagination .page-numbers:hover{border-color:var(--green);color:var(--green);background:var(--sage-light);}
.rj-rooted-journal .rj-pagination .page-numbers.current{background:var(--green);border-color:var(--green);color:var(--white);}
.rj-rooted-journal .rj-pagination .page-numbers.dots{border-color:transparent;background:transparent;}
.rj-rooted-journal .rj-pagination .page-numbers.prev,.rj-rooted-journal .rj-pagination .page-numbers.next{padding:0 14px;}

/* Hero — mirrors the supplied Rooted Journal handoff. */
.rj-rooted-journal .rj-hero-section{background:var(--green);padding:64px 32px;}
.rj-rooted-journal .rj-hero-inner{width:100%!important;max-width:1280px!important;margin:0 auto!important;display:block!important;}
.rj-rooted-journal .rj-hero-slide{width:100%;max-width:1280px;margin:0 auto;grid-template-columns:minmax(0,1fr) 380px!important;gap:48px!important;align-items:center!important;}
.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:0 0 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)!important;font-size:48px!important;font-weight:700!important;color:var(--white)!important;line-height:1.15!important;margin:0 0 20px!important;padding:0!important;}
.rj-rooted-journal .rj-hero-title em{font-style:italic;color:var(--sage);}
.rj-rooted-journal .rj-hero-excerpt{font-family:var(--font-body);font-size:17px;line-height:1.7;color:rgba(255,255,255,.8);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;min-width: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);}
.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)!important;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)!important;transform:translateY(-2px);}
.rj-rooted-journal .rj-hero-image-area{width:380px!important;max-width:380px!important;height:285px!important;min-height:285px!important;aspect-ratio:4/3;background:rgba(255,255,255,.07);border-radius:16px;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px solid rgba(255,255,255,.12);}
.rj-rooted-journal .rj-hero-image-icon{font-size:48px;opacity:.6;}
.rj-rooted-journal .rj-hero-image-label{font-size:13px;color:rgba(255,255,255,.4);font-family:monospace;}

/* Stats */
.rj-rooted-journal .rj-stats-bar{background:var(--green-dark);padding:0 32px;}
.rj-rooted-journal .rj-stats-inner{max-width:1280px;margin:0 auto;display:flex;align-items:stretch;}
.rj-rooted-journal .rj-stat-item{padding:16px 32px;border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:2px;}
.rj-rooted-journal .rj-stat-item:first-child{padding-left:0;}
.rj-rooted-journal .rj-stat-num{font-family:var(--font-display);font-size:20px;font-weight:700;color:var(--white);}
.rj-rooted-journal .rj-stat-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.45);font-weight:600;}

/* Main */
.rj-rooted-journal .rj-main-layout{width:100%;max-width:1280px;margin:0 auto;padding:48px 32px;display:grid;grid-template-columns:minmax(0,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);}
.rj-rooted-journal .rj-section-more{font-size:12px;font-weight:600;color:var(--orange);cursor:pointer;}
.rj-rooted-journal .rj-section-more:hover{text-decoration:underline;}
.rj-rooted-journal .rj-ranked-list{display:flex;flex-direction:column;}
.rj-rooted-journal .rj-ranked-item{display:grid;grid-template-columns:48px minmax(0,1fr) 100px;gap:20px;align-items:start;padding:24px 0;border-bottom:1px solid var(--border);}
.rj-rooted-journal .rj-ranked-item:last-child{border-bottom:none;}
.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-bottom:8px;display:block;transition:color .15s;}
.rj-rooted-journal .rj-ranked-title:hover{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;}
.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-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;font-size:28px;flex-shrink:0;}

/* Latest grid */
.rj-rooted-journal .rj-article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,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);transition:all .2s;min-width:0;}
.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{width:100%;aspect-ratio:16/9;background:var(--cream);display:flex;align-items:center;justify-content:center;font-size:36px;position:relative;}
.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-bottom:10px;display:block;}
.rj-rooted-journal .rj-article-card-meta{font-size:11px;color:var(--text-3);display:flex;gap:8px;}

/* Sidebar */
.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-sidebar-nl-input{width:100%;padding:11px 16px;border-radius:8px;border:none;font-size:13px;margin-bottom:10px;outline:none;}
.rj-rooted-journal .rj-sidebar-nl-btn{width:100%;padding:11px;background:var(--orange);color:var(--white);border-radius:8px;font-weight:700;font-size:13px;}
.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);}
.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;}
.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;border:1px solid var(--border);}

/* Category strip */
.rj-rooted-journal .rj-cat-strip{background:var(--cream);border-bottom:1px solid var(--border);padding:0 32px;overflow-x:auto;}
.rj-rooted-journal .rj-cat-strip-inner{width:100%;max-width:1280px;margin:0 auto;display:flex;gap:0;}
.rj-rooted-journal .rj-cat-strip-item{padding:14px 20px;font-size:13px;font-weight:600;color:var(--text-3);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;transition:all .15s;display:block;}
.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);}

/* Slider controls: only emitted for 2+ selected featured posts. */
.rj-rooted-journal .rj-hero-controls{max-width:1280px;margin:0 auto;background:var(--green-dark);padding:14px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;}
.rj-rooted-journal .rj-slider-prev,.rj-rooted-journal .rj-slider-next{width:36px;height:36px;border:1px solid rgba(255,255,255,.18);border-radius:50%;color:var(--white);display:flex;align-items:center;justify-content:center;font-size:18px;}
.rj-rooted-journal .rj-slider-dots{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;}
.rj-rooted-journal .rj-slider-dot{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.35);padding:0;}
.rj-rooted-journal .rj-slider-dot.is-active{width:22px;border-radius:5px;background:var(--orange);}

@media (max-width:1100px){
  .rj-rooted-journal .rj-hero-slide{grid-template-columns:minmax(0,1fr) 320px!important;gap:32px!important;}
  .rj-rooted-journal .rj-hero-image-area{width:320px!important;max-width:320px!important;height:240px!important;min-height:240px!important;}
  .rj-rooted-journal .rj-hero-title{font-size:42px!important;}
  .rj-rooted-journal .rj-main-layout{grid-template-columns:minmax(0,1fr) 300px;gap:40px;}
}
@media (max-width:900px){
  .rj-rooted-journal .rj-hero-slide{grid-template-columns:1fr!important;gap:28px!important;}
  .rj-rooted-journal .rj-hero-image-area{width:100%!important;max-width:none!important;height:auto!important;min-height:280px!important;}
  .rj-rooted-journal .rj-main-layout{grid-template-columns:1fr;}
  .rj-rooted-journal .rj-sidebar{order:2;}
}
@media (max-width:640px){
  .rj-rooted-journal .rj-hero-section{padding:40px 20px;}
  .rj-rooted-journal .rj-hero-title{font-size:34px!important;}
  .rj-rooted-journal .rj-main-layout{padding:36px 20px;}
  .rj-rooted-journal .rj-cat-strip{padding:0 12px;}
  .rj-rooted-journal .rj-ranked-item{grid-template-columns:36px minmax(0,1fr);gap:12px;}
  .rj-rooted-journal .rj-ranked-thumb{grid-column:2;width:100px;height:80px;}
  .rj-rooted-journal .rj-article-grid{grid-template-columns:1fr;}
  .rj-rooted-journal .rj-hero-controls{padding:12px 20px;}
}
