/* Dekor Ideas v3.8 — accessible editorial formatting for standard WordPress lists and tables. */
.entry-content > :is(ul,ol),
.entry-content > .wp-block-list,
.entry-content > .wp-block-group :is(ul.wp-block-list,ol.wp-block-list),
.editor-styles-wrapper .is-root-container > :is(ul,ol),
.editor-styles-wrapper .block-editor-block-list__layout > :is(ul.wp-block-list,ol.wp-block-list){
  margin:1.45em 0 1.9em;
  padding:clamp(14px,2.5vw,26px) clamp(16px,3vw,30px) clamp(14px,2.5vw,26px) clamp(42px,5vw,59px);
  border:1px solid #e5e7dd;
  border-left:4px solid #85927b;
  border-radius:0 12px 12px 0;
  background:#f6f7f2;
  color:#292c27;
  list-style-position:outside;
}
.entry-content > ol,.entry-content > ol.wp-block-list,.editor-styles-wrapper .is-root-container > ol{border-left-color:#be944b;background:#faf8f1;}
.entry-content :is(ul,ol) > li,.editor-styles-wrapper :is(ul.wp-block-list,ol.wp-block-list) > li{padding-left:.24em;margin-bottom:.65em;line-height:1.72;}
.entry-content :is(ul,ol) > li:last-child,.editor-styles-wrapper :is(ul.wp-block-list,ol.wp-block-list) > li:last-child{margin-bottom:0;}
.entry-content :is(ul,ol) > li::marker,.editor-styles-wrapper :is(ul.wp-block-list,ol.wp-block-list) > li::marker{color:#44634c;font-weight:700;}
.entry-content ol > li::marker,.editor-styles-wrapper ol.wp-block-list > li::marker{color:#9b7030;}
.entry-content li > :is(ul,ol){border:0;background:transparent;margin:.6em 0 0;padding:0 0 0 1.6em;}
/* Tables remain true semantic tables; avoid forcing columns to stack on small displays. */
.entry-content > table,
.entry-content .wp-block-table table,
.entry-content .comparison-scroll table,
.editor-styles-wrapper .wp-block-table table{
  width:100%;border:1px solid #dce2d9;border-collapse:separate;border-spacing:0;
  font-size:clamp(14px,1.3vw,16px);line-height:1.62;background:#fff;
}
.entry-content .wp-block-table,
.entry-content .comparison-scroll{
  max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
  margin:1.6em 0 2em;border:1px solid #dce2d9;border-radius:12px;
  box-shadow:0 8px 22px rgba(34,52,40,.045);
}
.entry-content :is(table,.wp-block-table table) th,
.entry-content :is(table,.wp-block-table table) td,
.editor-styles-wrapper .wp-block-table :is(th,td){padding:15px 17px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #e3e8e0;border-right:1px solid #e3e8e0;overflow-wrap:break-word;}
.entry-content :is(table,.wp-block-table table) tr > :last-child,
.editor-styles-wrapper .wp-block-table tr > :last-child{border-right:0;}
.entry-content :is(table,.wp-block-table table) tr:last-child > *,
.editor-styles-wrapper .wp-block-table tr:last-child > *{border-bottom:0;}
.entry-content :is(table,.wp-block-table table) thead th,
.editor-styles-wrapper .wp-block-table thead th{
  color:#fff;background:#304035;border-color:#4a5e4b;font-weight:700;font-family:inherit;
}
.entry-content :is(table,.wp-block-table table) tbody tr:nth-child(even),
.editor-styles-wrapper .wp-block-table tbody tr:nth-child(even){background:#f4f6f0;}
.entry-content :is(table,.wp-block-table table) tbody tr:nth-child(odd),
.editor-styles-wrapper .wp-block-table tbody tr:nth-child(odd){background:#fff;}
.entry-content :is(table,.wp-block-table table) tbody tr:hover{background:#ecf0e7;}
.entry-content .wp-block-table figcaption,.entry-content table caption{font-size:13px;color:#5d655d;line-height:1.5;margin:11px 5px;text-align:left;}
@media(max-width:600px){
  .entry-content > :is(ul,ol),.entry-content > .wp-block-list{padding:16px 16px 16px 39px;border-radius:0 9px 9px 0;}
  .entry-content .wp-block-table table,.entry-content .comparison-scroll table{min-width:560px;}
  .entry-content :is(table,.wp-block-table table) :is(th,td){padding:11px 12px;}
}
@media(prefers-reduced-motion:reduce){.entry-content :is(table,.wp-block-table table) tbody tr{transition:none;}}

/* v3.9: Gutenberg list/table containers should stay inside their block bounds. */
.editor-styles-wrapper .block-editor-block-list__block:is(.wp-block-list,.wp-block-table),
.editor-styles-wrapper .wp-block-table,
.editor-styles-wrapper .wp-block-list{box-sizing:border-box;max-width:100%;min-width:0;margin-left:auto;margin-right:auto}
.editor-styles-wrapper .wp-block-table{overflow-x:auto}
.editor-styles-wrapper .wp-block-table table{max-width:100%}

/* v4.1: keep native Gutenberg List blocks aligned with the normal writing column.
   Styles are editor-only; front-end list design remains unchanged. */
.editor-styles-wrapper .is-root-container > .block-editor-block-list__block[data-type="core/list"],
.editor-styles-wrapper .block-editor-block-list__layout > .block-editor-block-list__block[data-type="core/list"],
.editor-styles-wrapper .is-root-container > .wp-block-list,
.editor-styles-wrapper .block-editor-block-list__layout > .wp-block-list {
  box-sizing:border-box !important;
  width:calc(100% - 32px) !important;
  max-width:760px !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.editor-styles-wrapper .block-editor-block-list__block[data-type="core/list"] > :is(ul,ol),
.editor-styles-wrapper .block-editor-block-list__block[data-type="core/list"] > .wp-block-list {
  box-sizing:border-box;
  width:100%;max-width:100%;min-width:0;
}
/* Avoid applying the decorative outer panel to nested sublists in Gutenberg. */
.editor-styles-wrapper .wp-block-list .wp-block-list {
  background:transparent;border:0;border-radius:0;
  margin:8px 0 0;padding:0 0 0 1.5em;
  box-shadow:none;
}
@media(max-width:600px){
 .editor-styles-wrapper .is-root-container > .block-editor-block-list__block[data-type="core/list"],
 .editor-styles-wrapper .block-editor-block-list__layout > .block-editor-block-list__block[data-type="core/list"] {
   width:calc(100% - 24px) !important;
 }
}

/* v4.3: constrain Gutenberg tables to the article text column, including wide/full aligned figures. */
.single-main .article-body .entry-content > :is(figure.wp-block-table, .wp-block-table),
.single-main .article-body .entry-content figure.wp-block-table:is(.alignwide,.alignfull),
.single-main .article-body .entry-content > .comparison-scroll,
.static-page .entry-content > figure.wp-block-table {
  box-sizing:border-box!important;
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:1.6em auto 2em!important;
  position:relative;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.single-main .article-body .entry-content .wp-block-table table,
.static-page .entry-content .wp-block-table table {
  box-sizing:border-box;
  width:100%!important;
  max-width:100%;
  min-width:0;
  margin:0;
  table-layout:auto;
}
.single-main .article-body .entry-content .wp-block-table :is(th,td){
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
/* Editor: match standard paragraph/list width, but only for root-level table blocks. */
.editor-styles-wrapper .is-root-container > .block-editor-block-list__block[data-type="core/table"],
.editor-styles-wrapper .block-editor-block-list__layout > .block-editor-block-list__block[data-type="core/table"] {
  box-sizing:border-box!important;
  width:calc(100% - 32px)!important;
  max-width:760px!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.editor-styles-wrapper .block-editor-block-list__block[data-type="core/table"] > figure.wp-block-table,
.editor-styles-wrapper figure.wp-block-table {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.editor-styles-wrapper figure.wp-block-table:is(.alignwide,.alignfull){left:auto!important;right:auto!important;transform:none!important;}
.editor-styles-wrapper figure.wp-block-table table{width:100%!important;max-width:100%;margin:0;}
@media(max-width:640px){
  .single-main .article-body .entry-content .wp-block-table table{min-width:560px;}
  .editor-styles-wrapper .is-root-container > .block-editor-block-list__block[data-type="core/table"],
  .editor-styles-wrapper .block-editor-block-list__layout > .block-editor-block-list__block[data-type="core/table"]{width:calc(100% - 24px)!important;}
}
