/* =========================================================
   RUS+ article blocks
   Lightweight styles for lists and article summary boxes.
   ========================================================= */

/* ---------- List: RUS+ simple ---------- */
ul.wp-block-list.is-style-rusplus-simple,
ol.wp-block-list.is-style-rusplus-simple,
.editor-styles-wrapper ul.wp-block-list.is-style-rusplus-simple,
.editor-styles-wrapper ol.wp-block-list.is-style-rusplus-simple{
  margin:1.45em 0;
  padding-left:0;
  list-style:none;
}

.wp-block-list.is-style-rusplus-simple > li{
  position:relative;
  margin:0 0 .72em;
  padding-left:1.45em;
  line-height:1.85;
}
.wp-block-list.is-style-rusplus-simple > li:last-child{margin-bottom:0}
.wp-block-list.is-style-rusplus-simple > li::before{
  content:"";
  position:absolute;
  top:.82em;
  left:.2em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#637965;
  transform:translateY(-50%);
}

/* ---------- List: RUS+ check ---------- */
ul.wp-block-list.is-style-rusplus-check,
ol.wp-block-list.is-style-rusplus-check,
.editor-styles-wrapper ul.wp-block-list.is-style-rusplus-check,
.editor-styles-wrapper ol.wp-block-list.is-style-rusplus-check{
  margin:1.45em 0;
  padding-left:0;
  list-style:none;
}
.wp-block-list.is-style-rusplus-check > li{
  position:relative;
  margin:0 0 .72em;
  padding-left:1.65em;
  line-height:1.85;
}
.wp-block-list.is-style-rusplus-check > li:last-child{margin-bottom:0}
.wp-block-list.is-style-rusplus-check > li::before{
  content:"✓";
  position:absolute;
  top:0;
  left:.05em;
  color:#526c58;
  font-weight:700;
}

/* ---------- List: RUS+ soft box ---------- */
ul.wp-block-list.is-style-rusplus-soft-box,
ol.wp-block-list.is-style-rusplus-soft-box,
.editor-styles-wrapper ul.wp-block-list.is-style-rusplus-soft-box,
.editor-styles-wrapper ol.wp-block-list.is-style-rusplus-soft-box{
  margin:1.6em 0;
  padding:20px 24px;
  list-style:none;
  border:1px solid #e0e5de;
  border-radius:10px;
  background:#f7f8f5;
}
.wp-block-list.is-style-rusplus-soft-box > li{
  position:relative;
  margin:0 0 .68em;
  padding-left:1.45em;
  line-height:1.8;
}
.wp-block-list.is-style-rusplus-soft-box > li:last-child{margin-bottom:0}
.wp-block-list.is-style-rusplus-soft-box > li::before{
  content:"";
  position:absolute;
  top:.81em;
  left:.18em;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#637965;
  transform:translateY(-50%);
}

/* ---------- Group: RUS+ article summary ---------- */
.wp-block-group.is-style-rusplus-summary,
.editor-styles-wrapper .wp-block-group.is-style-rusplus-summary{
  position:relative;
  margin:2.1em 0 2.5em;
  padding:28px 30px 26px 34px;
  overflow:hidden;
  border:1px solid #e2e6df;
  border-radius:10px;
  background:#f8f9f6;
  box-shadow:none;
}
.wp-block-group.is-style-rusplus-summary::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:5px;
  background:#607863;
}
.wp-block-group.is-style-rusplus-summary > :first-child{
  margin-top:0;
}
.wp-block-group.is-style-rusplus-summary > :last-child{
  margin-bottom:0;
}
.wp-block-group.is-style-rusplus-summary h2,
.wp-block-group.is-style-rusplus-summary h3,
.wp-block-group.is-style-rusplus-summary .wp-block-heading{
  position:relative;
  margin:0 0 18px;
  padding:0 0 15px 38px;
  border-bottom:1px solid #dce2da;
  font-size:clamp(1.08rem,2.3vw,1.35rem);
  font-weight:600;
  line-height:1.55;
  color:#223027;
  letter-spacing:.01em;
}
.wp-block-group.is-style-rusplus-summary h2::before,
.wp-block-group.is-style-rusplus-summary h3::before,
.wp-block-group.is-style-rusplus-summary .wp-block-heading::before{
  content:"";
  position:absolute;
  top:.14em;
  left:0;
  width:24px;
  height:27px;
  border:2px solid #648069;
  border-radius:3px;
  box-sizing:border-box;
}
.wp-block-group.is-style-rusplus-summary h2::after,
.wp-block-group.is-style-rusplus-summary h3::after,
.wp-block-group.is-style-rusplus-summary .wp-block-heading::after{
  content:"";
  position:absolute;
  top:calc(.14em + 7px);
  left:6px;
  width:12px;
  height:2px;
  background:#648069;
  box-shadow:0 5px 0 #648069,0 10px 0 #648069;
}
.wp-block-group.is-style-rusplus-summary .wp-block-list{
  margin-top:0;
  margin-bottom:0;
}

@media(max-width:700px){
  ul.wp-block-list.is-style-rusplus-soft-box,
  ol.wp-block-list.is-style-rusplus-soft-box,
  .editor-styles-wrapper ul.wp-block-list.is-style-rusplus-soft-box,
  .editor-styles-wrapper ol.wp-block-list.is-style-rusplus-soft-box{
    padding:17px 18px;
  }
  .wp-block-group.is-style-rusplus-summary,
  .editor-styles-wrapper .wp-block-group.is-style-rusplus-summary{
    margin:1.7em 0 2em;
    padding:23px 20px 22px 24px;
  }
  .wp-block-group.is-style-rusplus-summary h2,
  .wp-block-group.is-style-rusplus-summary h3,
  .wp-block-group.is-style-rusplus-summary .wp-block-heading{
    padding-left:35px;
    margin-bottom:15px;
    padding-bottom:13px;
  }
}

/* =========================================================
   RUS+ Editorial article-part collection v3.9.3
   Neutral paper, charcoal ink, subtle evergreen accent.
   All rules scoped to article patterns; existing theme stays intact.
   ========================================================= */
.rusplus-article-part,
.editor-styles-wrapper .rusplus-article-part {
  --rus-part-ink:#202824;
  --rus-part-muted:#647068;
  --rus-part-line:#dce2dc;
  --rus-part-accent:#476b58;
  box-sizing:border-box;
  max-width:100%;
  margin:2rem 0;
  padding:26px 30px;
  border:1px solid var(--rus-part-line);
  border-radius:10px;
  background:#f7f8f5;
  color:var(--rus-part-ink);
  box-shadow:none;
}
.rusplus-article-part > :first-child {margin-top:0}
.rusplus-article-part > :last-child {margin-bottom:0}
.rusplus-article-part > .wp-block-heading,
.editor-styles-wrapper .rusplus-article-part > .wp-block-heading {
  margin:0 0 15px;
  padding:0 0 12px;
  border:0;
  border-bottom:1px solid var(--rus-part-line);
  color:var(--rus-part-ink);
  font-size:clamp(1.02rem,2vw,1.25rem);
  font-weight:650;
  letter-spacing:.015em;
  line-height:1.65;
}
.rusplus-article-part p {line-height:1.88}
.rusplus-article-part--point {border-left:4px solid #426c55;background:#f5f8f5}
.rusplus-article-part--notice {border-left:4px solid #9b8773;background:#f9f7f3}
.rusplus-article-part--notice > .wp-block-heading {border-bottom-color:#e8e1d8}
.rusplus-article-part--checklist {background:#fbfbf9}
.rusplus-article-part--steps {background:#fff}
.rusplus-article-part--table {background:#fff;padding:23px 24px}
.rusplus-article-part .rusplus-part-note {margin:.75em 0 0;font-size:.79rem;color:#687269;line-height:1.8}

/* Editorial table; remains scrollable on narrow screens. */
.rusplus-article-part .wp-block-table.rusplus-part-table {
  max-width:100%;
  margin:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.rusplus-article-part .rusplus-part-table table {
  min-width:450px;
  width:100%;
  border-collapse:collapse;
  border:0;
  font-size:.91rem;
  line-height:1.65;
}
.rusplus-article-part .rusplus-part-table td,
.rusplus-article-part .rusplus-part-table th {
  border:1px solid #dfe4dd;
  padding:12px 13px;
  color:#303832;
  overflow-wrap:anywhere;
  vertical-align:top;
}
.rusplus-article-part .rusplus-part-table tr:first-child td {background:#ebefeb;color:#17251e}
.rusplus-article-part .rusplus-part-table tr:nth-child(odd):not(:first-child) td {background:#fbfcfa}

/* Benefits and caveats - side by side on desktop, stacked on phones. */
.rusplus-article-procons,
.editor-styles-wrapper .rusplus-article-procons {max-width:100%;gap:16px;margin:2rem 0}
.rusplus-article-procons .wp-block-column {min-width:0}
.rusplus-article-procons__card,
.editor-styles-wrapper .rusplus-article-procons__card {
  box-sizing:border-box;
  height:100%;
  min-height:190px;
  padding:24px 25px;
  border:1px solid #dfe5dd;
  border-top:3px solid #547461;
  border-radius:9px;
  background:#f6f8f5;
  color:#263029;
}
.rusplus-article-procons__card--care {border-color:#e5e1d9;border-top-color:#9a8873;background:#faf8f4}
.rusplus-article-procons__card > .wp-block-heading {color:#222e27;font-size:1.12rem;line-height:1.6;margin:0 0 15px;padding:0 0 9px;border:0;border-bottom:1px solid #dce2dc}
.rusplus-article-procons__card--care > .wp-block-heading {border-bottom-color:#e7e0d8}
.rusplus-article-procons .wp-block-list {margin:0}

/* Step list with automatic numbering even after moving/removing an item. */
.rusplus-article-part ol.rusplus-article-steps,
.editor-styles-wrapper .rusplus-article-part ol.rusplus-article-steps {
  counter-reset:rusplus-step;
  margin:0;
  padding:0;
  list-style:none;
}
.rusplus-article-part ol.rusplus-article-steps > li {
  counter-increment:rusplus-step;
  position:relative;
  padding:16px 0 16px 52px;
  margin:0;
  min-height:42px;
  border-bottom:1px solid #e5e9e3;
  line-height:1.9;
}
.rusplus-article-part ol.rusplus-article-steps > li:last-child {border-bottom:0;padding-bottom:4px}
.rusplus-article-part ol.rusplus-article-steps > li:first-child {padding-top:2px}
.rusplus-article-part ol.rusplus-article-steps > li::before {
  content:counter(rusplus-step, decimal-leading-zero);
  position:absolute;
  top:16px;
  left:0;
  color:#41624e;
  font-family:Manrope,Arial,sans-serif;
  font-size:1.03rem;
  font-weight:650;
  letter-spacing:.02em;
}
.rusplus-article-part ol.rusplus-article-steps > li:first-child::before {top:2px}

@media (max-width: 700px) {
  .rusplus-article-part,.editor-styles-wrapper .rusplus-article-part {padding:20px 19px;margin:1.6rem 0;border-radius:8px}
  .rusplus-article-part--table {padding:18px 14px}
  .rusplus-article-procons,.editor-styles-wrapper .rusplus-article-procons {gap:13px;margin:1.6rem 0}
  .rusplus-article-procons__card {min-height:0;padding:19px 20px}
  .rusplus-article-part .rusplus-part-table table {min-width:440px;font-size:.86rem}
  .rusplus-article-part ol.rusplus-article-steps > li {padding-left:43px}
}
