/* Gutenberg home: share a faithful magazine layout between preview and editor. */
.jr-editor-home,
.jr-editor-home * {box-sizing:border-box}
.jr-editor-home{width:100%;max-width:none;margin:0 auto;color:var(--jr-muted,#58686a)}
.jr-editor-home > .wp-block-group__inner-container{width:100%;max-width:none}
/* The Twenty Sixteen content styles may constrain individual Gutenberg groups.
   Use the full magazine content area for every homepage section. */
body.jr-magazine.home .site-content .content-area,
body.jr-magazine.home .site-content .jr-home,
body.jr-magazine.home .site-content .jr-editor-home,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container {
  box-sizing:border-box;
  display:block;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0;
}
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-home-heading,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-hero,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-latest,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-topics,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-picks,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-home-note,
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-preferred-source {
  box-sizing:border-box;
  float:none!important;
  clear:both;
  width:100%!important;
  max-width:none!important;
  min-width:0;
}
body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-hero {
  display:grid!important;
}
@media(max-width:600px){
  body.jr-magazine.home .site-content .jr-editor-home > .wp-block-group__inner-container > .jr-hero {
    display:flex!important;
  }
}

.jr-editor-home .jr-home-heading>.wp-block-group__inner-container{display:flex;justify-content:space-between;align-items:end;gap:28px}
.jr-editor-home .jr-home-heading>.wp-block-group__inner-container>.wp-block-paragraph{max-width:350px;font-size:15px;line-height:1.6;margin:0}
.jr-editor-home .jr-home-heading .jr-heading-left{max-width:670px}
.jr-editor-home .jr-home-heading .jr-heading-left>.wp-block-group__inner-container{display:block}
.jr-editor-home .jr-home-heading .jr-kicker{font-size:12px}
.jr-editor-home .jr-home-heading h1{font-family:Georgia,serif!important;font-size:clamp(32px,3.2vw,44px)!important;line-height:1.15!important;letter-spacing:0;margin:0}
.jr-editor-home .jr-hero.wp-block-columns{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:0!important;align-items:stretch;margin:0 0 38px;border:1px solid #ecd7b7;background:#faead5;border-radius:10px;overflow:hidden}
.jr-editor-home .jr-hero.wp-block-columns>.wp-block-column{min-width:0;flex-basis:auto!important;margin:0}
.jr-editor-home .jr-hero .jr-hero-left{display:flex;flex-direction:column;justify-content:center}
.jr-editor-home .jr-hero .jr-hero-copy{display:flex;align-items:center;justify-content:center;height:100%;padding:38px}
.jr-editor-home .jr-hero .jr-hero-copy>.wp-block-group__inner-container{width:100%}
.jr-editor-home .jr-hero .jr-hero-copy h2{font-family:Georgia,serif!important;font-size:clamp(27px,3vw,39px)!important;line-height:1.18;margin:0 0 20px}
.jr-editor-home .jr-hero .jr-hero-copy h2 a{color:var(--jr-ink,#263b3c);text-decoration:none}
.jr-editor-home .jr-hero .jr-hero-copy p{font-size:17px;line-height:1.7;margin:0 0 24px}
.jr-editor-home .jr-hero .jr-hero-copy .jr-kicker{font-size:12px;line-height:1.5;margin:0 0 12px}
.jr-editor-home .jr-hero .jr-hero-copy .jr-text-link{font-size:14px}
.jr-editor-home .jr-hero .jr-hero-right{min-height:340px}
.jr-editor-home .jr-hero .jr-hero-image{display:block;height:100%;min-height:340px;margin:0;width:100%;overflow:hidden;border-radius:0}
.jr-editor-home .jr-hero .jr-hero-image a{display:block;width:100%;height:100%}
.jr-editor-home .jr-hero .jr-hero-image img{display:block;width:100%;height:100%;min-height:340px;object-fit:cover}
.jr-editor-home .jr-section-heading>.wp-block-group__inner-container{display:flex;justify-content:space-between;align-items:center;gap:18px}
.jr-editor-home .jr-section-heading{margin:0 0 24px;padding-bottom:16px;border-bottom:1px solid var(--jr-line,#e4ddd2)}
.jr-editor-home .jr-section-heading h2{font:700 30px/1.2 Georgia,serif!important;color:var(--jr-ink,#263b3c);margin:0}
.jr-editor-home .jr-section-heading p{margin:0}
.jr-editor-home .jr-latest,.jr-editor-home .jr-picks{margin:0}
.jr-editor-home .jr-editor-query{margin:0 0 48px}
.jr-editor-home .jr-editor-query ul.wp-block-post-template{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:32px 26px;margin:0;padding:0;list-style:none}
.jr-editor-home .jr-editor-query li.wp-block-post{list-style:none;margin:0;min-width:0}
.jr-editor-home .jr-editor-card{margin:0}
.jr-editor-home .jr-editor-card .wp-block-post-featured-image{display:block;aspect-ratio:16/10;background:#edf0e7;overflow:hidden;border-radius:7px;margin:0 0 16px}
.jr-editor-home .jr-editor-card .wp-block-post-featured-image a{display:block;height:100%}
.jr-editor-home .jr-editor-card .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover}
.jr-editor-home .jr-editor-card h3.wp-block-post-title{font-family:Georgia,serif!important;font-size:25px!important;line-height:1.24;margin:0 0 12px}
.jr-editor-home .jr-editor-card h3 a{color:var(--jr-ink,#263b3c);text-decoration:none}
.jr-editor-home .jr-editor-card .wp-block-post-excerpt{font-size:15px;line-height:1.7;margin:0 0 12px}
.jr-editor-home .jr-editor-card .wp-block-post-excerpt__excerpt{margin:0}
.jr-editor-home .jr-editor-card .wp-block-post-excerpt__more-text{display:none}
.jr-editor-home .jr-editor-card .wp-block-post-date{font-size:12px;color:var(--jr-muted,#58686a)}
.jr-editor-home .jr-topics{padding:30px;margin:0 0 48px;background:#edf2e9;border:1px solid #d9e3d2;border-radius:8px}
.jr-editor-home .jr-topics h2{font:700 30px/1.2 Georgia,serif!important;margin:0 0 24px}
/* The magazine theme already makes .jr-topic-links and .jr-grid grids.
   Gutenberg adds a group inner-container, so the outer wrappers must not
   ALSO be grids; otherwise columns are divided twice (9 narrow tracks). */
.jr-editor-home .jr-topic-links.wp-block-group,
.jr-editor-home .jr-pick-grid.wp-block-group{display:block!important;width:100%!important;max-width:none!important}
.jr-editor-home .jr-topic-links>.wp-block-group__inner-container{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px;width:100%;max-width:none}
.jr-editor-home .jr-topic-links p{margin:0;padding:12px 0;border-bottom:1px solid #ccd9c6}
.jr-editor-home .jr-topic-links p a{font-size:17px;font-weight:bold;color:var(--jr-green,#286958);text-decoration:none}
.jr-editor-home .jr-pick-grid>.wp-block-group__inner-container{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px;margin:0 0 48px}
.jr-editor-home .jr-edit-pick{min-width:0}
.jr-editor-home .jr-edit-pick .jr-card-image{display:block;aspect-ratio:16/10;background:#edf0e7;overflow:hidden;border-radius:7px;margin:0 0 16px}
.jr-editor-home .jr-edit-pick .jr-card-image a{display:block;width:100%;height:100%}
.jr-editor-home .jr-edit-pick .jr-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.jr-editor-home .jr-edit-pick h3{font-family:Georgia,serif!important;font-size:25px!important;line-height:1.24;margin:0 0 12px}
.jr-editor-home .jr-edit-pick h3 a{color:var(--jr-ink,#263b3c);text-decoration:none}
.jr-editor-home .jr-edit-pick p{font-size:15px;line-height:1.7;margin:0 0 12px}
.jr-editor-home .jr-home-note.wp-block-columns{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:40px!important;margin:45px 0 0;padding-top:30px;border-top:1px solid var(--jr-line,#e4ddd2)}
.jr-editor-home .jr-home-note.wp-block-columns>.wp-block-column{min-width:0;flex-basis:auto!important;margin:0}
.jr-editor-home .jr-home-note h2{font:700 27px/1.3 Georgia,serif!important;margin:0 0 14px;color:var(--jr-ink,#263b3c)}
.jr-editor-home .jr-home-note p{font-size:16px;line-height:1.8;margin:0 0 14px}
.jr-editor-home .jr-home-note p a{font-size:16px}
.jr-editor-home .jr-network>.wp-block-group__inner-container{display:flex;gap:12px 20px;flex-wrap:wrap}
.jr-editor-home .jr-network p{margin:0;font-size:16px}
.jr-editor-home .jr-network p a{color:var(--jr-green,#286958);text-decoration:underline;text-underline-offset:3px}
.jr-editor-home .jr-preferred-source{margin:38px 0 10px}
@media(max-width:909px){
 .jr-editor-home .jr-home-heading>.wp-block-group__inner-container{display:block}
 .jr-editor-home .jr-home-heading>.wp-block-group__inner-container>.wp-block-paragraph{max-width:none;margin-top:14px}
 .jr-editor-home .jr-hero .jr-hero-copy{padding:28px}
 .jr-editor-home .jr-editor-query ul.wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .jr-editor-home .jr-pick-grid>.wp-block-group__inner-container{grid-template-columns:repeat(2,minmax(0,1fr))}
 .jr-editor-home .jr-topic-links>.wp-block-group__inner-container{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .jr-editor-home .jr-hero.wp-block-columns{display:flex!important;flex-direction:column}
 .jr-editor-home .jr-hero .jr-hero-right{order:-1;min-height:0;height:230px}
 .jr-editor-home .jr-hero .jr-hero-image,.jr-editor-home .jr-hero .jr-hero-image img{height:230px;min-height:0}
 .jr-editor-home .jr-hero .jr-hero-copy{padding:25px}
 .jr-editor-home .jr-editor-query ul.wp-block-post-template{grid-template-columns:1fr!important}
 .jr-editor-home .jr-topic-links>.wp-block-group__inner-container,.jr-editor-home .jr-pick-grid>.wp-block-group__inner-container{grid-template-columns:1fr}
 .jr-editor-home .jr-home-note.wp-block-columns{display:grid!important;grid-template-columns:1fr!important;gap:22px!important}
 .jr-editor-home .jr-section-heading h2{font-size:27px!important}
}
/* Editor canvas: match the 1180px full-width homepage even when WordPress
   wraps every block in .block-editor-block-list__block and supplies a narrow
   global contentSize (typically ~600px). Only affects the editor canvas. */
.editor-styles-wrapper {
  background:#fffdf9;
  color:#58686a;
  font-family:"Trebuchet MS",Verdana,sans-serif;
  --wp--style--global--content-size:1180px;
  --wp--style--global--wide-size:1180px;
}
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container,
.editor-styles-wrapper .is-root-container {
  --wp--style--global--content-size:1180px;
  --wp--style--global--wide-size:1180px;
}
.editor-styles-wrapper .is-root-container > .jr-editor-home,
.editor-styles-wrapper .is-root-container > .wp-block-group.jr-editor-home,
.editor-styles-wrapper .is-root-container > .block-editor-block-list__block.jr-editor-home,
.editor-styles-wrapper .is-root-container > .block-editor-block-list__block:has(> .jr-editor-home),
.editor-styles-wrapper .is-root-container > .block-editor-block-list__block:has(.jr-editor-home) {
  box-sizing:border-box!important;
  width:calc(100% - 32px)!important;
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.editor-styles-wrapper .jr-editor-home,
.editor-styles-wrapper .jr-editor-home > .wp-block-group__inner-container,
.editor-styles-wrapper .jr-editor-home > .block-editor-inner-blocks,
.editor-styles-wrapper .jr-editor-home > .block-editor-inner-blocks > .block-editor-block-list__layout {
  max-width:none!important;
  width:100%!important;
  min-width:0;
}
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-group.jr-home-heading,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-group.jr-latest,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-group.jr-topics,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-group.jr-picks,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-columns.jr-hero,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-columns.jr-home-note,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .wp-block-group.jr-preferred-source {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
/* The editor stores content in a nested block list; give it the same
   dimensions as the public page, without altering the front-end rules. */
.editor-styles-wrapper .jr-editor-home .wp-block-group__inner-container,
.editor-styles-wrapper .jr-editor-home .block-editor-inner-blocks,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout {
  max-width:100%!important;
}
.editor-styles-wrapper .jr-editor-home .jr-home-heading{max-width:none}
.editor-styles-wrapper .jr-editor-home h1,.editor-styles-wrapper .jr-editor-home h2,.editor-styles-wrapper .jr-editor-home h3{color:#263b3c;font-family:Georgia,serif}
.editor-styles-wrapper .jr-editor-home .jr-kicker{font-size:12px;color:#b64816;letter-spacing:2px;text-transform:uppercase;font-weight:bold}
.editor-styles-wrapper .jr-editor-home .jr-hero{background:#faead5}
.editor-styles-wrapper .jr-editor-home .jr-hero .jr-hero-right img{display:block;width:100%;height:100%;object-fit:cover}
.editor-styles-wrapper .jr-editor-home .jr-topic-links a{color:#286958}
.editor-styles-wrapper .jr-editor-home .jr-text-link{color:#b64816}
/* Homepage-specific Gutenberg editor canvas fix. WordPress applies its
   narrow .wp-block max-width to every nested block, unlike the frontend.
   This is intentionally scoped to the homepage editor only. */
.editor-styles-wrapper:has(.jr-editor-home) .is-root-container {
  box-sizing:border-box!important;
  width:calc(100% - 40px)!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
.editor-styles-wrapper:has(.jr-editor-home) .is-root-container > .wp-block,
.editor-styles-wrapper .jr-editor-home.wp-block,
.editor-styles-wrapper .jr-editor-home .wp-block,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__block {
  box-sizing:border-box!important;
  max-width:none!important;
}
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout,
.editor-styles-wrapper .jr-editor-home .block-editor-inner-blocks,
.editor-styles-wrapper .jr-editor-home .block-editor-block-list__layout > .block-editor-block-list__block {
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
}
.editor-styles-wrapper .jr-editor-home .jr-hero,
.editor-styles-wrapper .jr-editor-home .jr-latest,
.editor-styles-wrapper .jr-editor-home .jr-topics,
.editor-styles-wrapper .jr-editor-home .jr-picks,
.editor-styles-wrapper .jr-editor-home .jr-home-note,
.editor-styles-wrapper .jr-editor-home .jr-preferred-source {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
.editor-styles-wrapper .jr-editor-home .jr-latest > .block-editor-inner-blocks,
.editor-styles-wrapper .jr-editor-home .jr-picks > .block-editor-inner-blocks,
.editor-styles-wrapper .jr-editor-home .jr-topics > .block-editor-inner-blocks {
  display:block;
  width:100%!important;
}
@media(max-width:768px) {
  .editor-styles-wrapper:has(.jr-editor-home) .is-root-container {
    width:calc(100% - 24px)!important;
  }
}
/* Gutenberg editor only: keep the preferred-source copy readable.
   Earlier full-width rules make the editor's inner flex children compete,
   so the long button can collapse the heading to one-character lines.
   Stack copy above the button inside the editor; leave frontend untouched. */
.editor-styles-wrapper .jr-editor-home .jr-preferred-source > .wp-block-group__inner-container,
.editor-styles-wrapper .jr-editor-home .jr-preferred-source > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display:block!important;
  width:100%!important;
  max-width:none!important;
}
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-copy,
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-copy > .wp-block-group__inner-container,
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-copy > .block-editor-inner-blocks {
  box-sizing:border-box!important;
  display:block!important;
  float:none!important;
  flex:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-copy h3,
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-copy p {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .wp-block-buttons {
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  margin-top:14px!important;
  justify-content:flex-start!important;
}
.editor-styles-wrapper .jr-editor-home .jr-preferred-source .jr-preferred-trigger {
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  flex:0 0 auto!important;
}
/* The preferred-source CTA remains functional, now with editable Gutenberg text. */
.jr-editor-home .jr-preferred-source>.wp-block-group__inner-container{display:flex;justify-content:space-between;align-items:center;gap:22px}
.jr-editor-home .jr-preferred-copy h3{font-family:Georgia,serif!important;font-size:18px!important;font-weight:bold;margin:0 0 4px;line-height:1.4;color:#263b3c}
.jr-editor-home .jr-preferred-copy p{font-size:14px;line-height:1.6;margin:0}
.jr-editor-home .jr-preferred-source .wp-block-buttons{margin:0;flex:0 0 auto}
.jr-editor-home .jr-preferred-source .jr-preferred-trigger{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #c9cdd1;border-radius:24px;min-height:44px;background:#fff}
.jr-editor-home .jr-preferred-source .jr-preferred-trigger .wp-block-button__link{display:inline-flex;align-items:center;gap:9px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#202124!important;font-size:14px!important;line-height:1.2;text-decoration:none;font-weight:700;white-space:nowrap}
.jr-editor-home .jr-preferred-source .jr-preferred-trigger .wp-block-button__link::before{content:"G";display:inline-flex;justify-content:center;align-items:center;width:22px;height:22px;border-radius:50%;font-size:18px;font-weight:800;color:#4285f4}
@media(max-width:600px){
 .jr-editor-home .jr-preferred-source>.wp-block-group__inner-container{display:block}
 .jr-editor-home .jr-preferred-source .wp-block-buttons{margin-top:14px}
 .jr-editor-home .jr-preferred-source .jr-preferred-trigger .wp-block-button__link{white-space:normal}
}
