/**
 * Article shell v1.
 *
 * Scoped to standard single posts. The approved homepage and ordinary pages
 * do not match any selector in this file.
 */

.ed-article-shell {
  --ed-article-prose: 840px;
  --ed-article-wide: 1000px;
  --ed-radius-surface: 24px;
  --ed-radius-control: 12px;
  --ed-radius-label: 8px;
  --ed-color-navy: #071a52;
  --ed-color-blue: #0878ff;
  --ed-color-blue-soft: #eaf3ff;
  --ed-color-yellow: #ffd43b;
  --ed-color-yellow-soft: #fff7df;
  --ed-color-mint: #e2fbf2;
  --ed-color-pink: #fdebf2;
  --ed-color-border: #d7e6f7;
  --ed-color-article-text: #18264d;
  --ed-color-muted: #5b6d96;
  --ed-article-text-muted-small: #5f718d;
  --ed-article-link-accessible: #0668d5;
  --ed-article-link-soft-bg: #0966cf;
  --ed-article-positive-text: #057653;
  --ed-space-component: clamp(2rem, 5vw, 3.5rem);
  color: var(--ed-color-text, #111820);
  font-family: var(--ed-font-sans, "Golos Text", Arial, sans-serif);
}

.ed-article-hero {
  position: relative;
  padding: clamp(14px, 2vw, 26px) 16px clamp(48px, 6vw, 78px);
  background:
    linear-gradient(180deg, #fdfcf9 0%, #f7fbff 52%, #fff 100%);
}

.ed-article-hero__inner {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(24px, 3vw, 38px) 0 0;
  overflow: visible;
}

.ed-article-hero__grid {
  position: relative;
  display: grid;
  grid-template-areas:
    "copy media"
    "specialist media";
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 620px;
  border: 1px solid #e5ecf5;
  border-radius: 32px;
  background: #f8fafc;
  box-shadow: 0 22px 60px rgb(36 59 92 / 10%);
  isolation: isolate;
}

.ed-article-shell .ed-article-hero__grid--text-only {
  --ed-article-hero-title-width: 28ch;
  --ed-article-hero-lead-width: 65ch;
  grid-template-areas: "copy" "specialist";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 0;
}

.ed-article-hero__copy {
  position: relative;
  z-index: 3;
  grid-area: copy;
  min-width: 0;
  padding: clamp(42px, 5vw, 62px) 0 28px clamp(32px, 4vw, 54px);
}

.ed-article-hero__category {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid rgb(255 193 7 / 22%);
  border-radius: var(--ed-radius-pill, 999px);
  background: linear-gradient(135deg, #ffe16e, var(--ed-color-accent, #ffdc42));
  color: var(--ed-color-text-strong, #050607);
  box-shadow: 0 8px 24px rgb(255 193 7 / 17%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.ed-article-hero h1 {
  width: calc(100% + clamp(140px, 14vw, 190px));
  max-width: 700px;
  margin: 0;
  color: #071553;
  font-size: clamp(2.5rem, 7.5vw, 3.59375rem);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.ed-article-hero__lead {
  width: calc(100% + clamp(80px, 8vw, 112px));
  max-width: 55ch;
  margin: 26px 0 0;
  color: #53698c;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.5;
}

.ed-article-specialist {
  position: relative;
  z-index: 5;
  grid-area: specialist;
  display: grid;

  align-items: center;

  min-width: 0;

}

.ed-article-specialist__photo {

  overflow: hidden;

  border-radius: 50%;
  background: #eaf3ff;

}

.ed-article-specialist__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ed-article-specialist__identity {
  min-width: 0;
}

.ed-article-specialist__name,
.ed-article-specialist__role {
  margin: 0;
}

.ed-article-specialist__name {
  color: #111820;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.ed-article-specialist__role {
  margin-top: 4px;
  color: #64779a;
  font-size: 13px;
  line-height: 1.35;
}

.ed-article-specialist__telegram {

  align-items: center;
  justify-content: center;

  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;

}

.ed-article-specialist__telegram svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.ed-article-hero__media {
  position: relative;
  z-index: 1;
  grid-area: media;
  min-width: 0;
  height: 100%;
  margin: 0;
  border-radius: 0 31px 31px 0;
  isolation: isolate;
}

.ed-article-hero__media::before {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 58%;
  background: linear-gradient(
    90deg,
    #f8fafc 0%,
    rgb(248 250 252 / 96%) 20%,
    rgb(248 250 252 / 72%) 50%,
    rgb(248 250 252 / 22%) 78%,
    transparent 100%
  );
  pointer-events: none;
  content: "";
}

.ed-article-hero__media::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 37%;
  border-radius: 0 0 31px 0;
  background: linear-gradient(180deg, transparent 0%, rgb(248 250 252 / 10%) 38%, rgb(238 247 255 / 68%) 100%);
  pointer-events: none;
  content: "";
}

.ed-article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  border-radius: 0 31px 31px 0;
  object-fit: cover;
  object-position: 56% center;
}

.ed-article-hero__media figcaption {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 18px;
  max-width: 38ch;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 86%);
  color: #53698c;
  font-size: 12px;
  line-height: 1.35;
}

.ed-article-content > * {
  width: min(calc(100% - 32px), var(--ed-article-prose));
  margin-right: auto;
  margin-left: auto;
}

.ed-article-content > .alignwide,
.ed-article-content > .wp-block-table.alignwide,
.ed-article-content > .wp-block-group.alignwide,
.ed-article-content > .wp-block-image.alignwide,
.ed-article-content > .ed-cta {
  width: min(calc(100% - 32px), var(--ed-article-wide));
}

.ed-article-content > :first-child {
  margin-top: 0;
}

.ed-article-content > p {
  margin-top: 0;
  overflow-wrap: anywhere;

}

.ed-article-content > h2,
.ed-article-content > h3 {
  color: var(--ed-color-text-strong, #050607);
  font-family: var(--ed-font-sans, "Golos Text", Arial, sans-serif);
  font-weight: 820;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.ed-article-content > ul,
.ed-article-content > ol {
  margin-top: 0;
  margin-bottom: 1.8em;
  padding-left: 1.45em;
}

.ed-article-content > ul li + li,
.ed-article-content > ol li + li {
  margin-top: .55em;
}

.ed-article-content .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(480px, 60svh);
  align-self: flex-start;
  object-fit: contain;
  border-radius: clamp(16px, 3vw, 28px);
}

/* Keep the native zoom control and caption with the image, including tall screenshots. */
main.ed-article-shell .ed-article-content > figure.wp-block-image:not(.alignleft, .alignright) {
  display: table;
  width: auto;
  max-width: min(calc(100% - 32px), var(--ed-article-prose));
  margin-inline: auto;
}

main.ed-article-shell .ed-article-content > figure.wp-block-image:is(.alignwide, .alignfull) {
  max-width: min(calc(100% - 32px), var(--ed-article-wide));
}

main.ed-article-shell .ed-article-content .wp-block-image img {
  margin-inline: auto;
  align-self: center;
}

main.ed-article-shell .ed-article-content .wp-block-image figcaption {
  margin-inline: auto;
  text-align: center;
}

main.ed-article-shell .ed-article-content > figure.wp-block-image:not(.alignleft, .alignright) > figcaption {
  display: table-caption;
  caption-side: bottom;
}

@media (max-width: 767px) {
  main.ed-article-shell .ed-article-content > figure.wp-block-image:not(.alignleft, .alignright) {
    max-width: calc(100% - 24px);
  }
}

.ed-article-content figcaption {
  margin-top: 10px;
  color: var(--ed-color-muted, #58709a);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}

.ed-article-content .wp-block-quote {
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  border: 0;
  border-left: 6px solid var(--ed-color-primary, #0875ed);
  border-radius: 0 var(--ed-radius-card, 18px) var(--ed-radius-card, 18px) 0;
  background: var(--ed-color-primary-soft, #eaf3ff);
}

.ed-article-content .wp-block-quote p {
  margin: 0;
  color: var(--ed-color-text, #111820);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.5;
}

.ed-article-content .wp-block-table {
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: clamp(36px, 5vw, 56px);
  overflow-x: auto;
  border: 1px solid var(--ed-color-line, #dce4ef);
  border-radius: var(--ed-radius-card, 18px);
  background: var(--ed-color-surface, #fff);
}

.ed-article-content .wp-block-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.ed-article-content .wp-block-table th,
.ed-article-content .wp-block-table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--ed-color-line, #dce4ef);
  text-align: left;
  vertical-align: top;
}

.ed-article-content .wp-block-table th {
  background: var(--ed-color-primary-soft, #eaf3ff);
  color: var(--ed-color-text-strong, #050607);
  font-weight: 750;
}

.ed-article-content .wp-block-table tr:last-child td {
  border-bottom: 0;
}

.ed-article-content > .ed-cta {
  margin-top: clamp(64px, 10vw, 120px);
  margin-bottom: 0;
}

.ed-article-comments {
  width: min(calc(100% - 32px), var(--ed-article-prose));
  margin-inline: auto;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.ed-article-shell a:focus-visible {
  outline-color: var(--ed-color-primary, #0875ed);
}

@media (max-width: 900px) {
  .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {

    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .ed-article-hero__copy {
    padding: 42px 40px 18px;
  }

  .ed-article-hero h1,
  .ed-article-hero__lead {
    width: 100%;
    max-width: 700px;
  }

  .ed-article-hero__media {
    height: auto;
    border-radius: 0 0 31px 31px;
  }

  .ed-article-hero__media::before {
    inset: 0 0 auto;
    width: auto;
    height: 34%;
    background: linear-gradient(
      180deg,
      #f8fafc 0%,
      rgb(248 250 252 / 82%) 32%,
      rgb(248 250 252 / 22%) 74%,
      transparent 100%
    );
  }

  .ed-article-hero__media::after {
    border-radius: 0 0 31px 31px;
  }

  .ed-article-hero__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 0 0 31px 31px;
  }
}

@media (max-width: 600px) {
  .ed-article-hero {
    padding: 10px 12px 52px;
  }

  .ed-article-hero__inner {
    padding-top: 18px;
  }

  .ed-article-hero__grid {
    border-radius: 24px;
  }

  .ed-article-hero__copy {
    padding: 30px 20px 12px;
  }

  .ed-article-hero__category {
    min-height: 34px;
    margin-bottom: 18px;
    padding: 7px 13px;
    font-size: 13px;
  }

  .ed-article-hero h1 {
    font-size: clamp(26.5px, calc(11.0714286vw - 8.928571px), 45px);
  }

  .ed-article-hero__lead {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.48;
  }

  .ed-article-specialist__photo {

    margin-top: 0;

  }

  .ed-article-specialist__telegram {
    grid-column: 1 / -1;
    width: 100%;

  }

  .ed-article-hero__media,
  .ed-article-hero__image {
    border-radius: 0 0 23px 23px;
  }

  .ed-article-hero__image {
    aspect-ratio: 4 / 3;
    object-position: 57% center;
  }

  .ed-article-hero__media::after {
    border-radius: 0 0 23px 23px;
  }

  .ed-article-hero__media figcaption {
    right: 12px;
    bottom: 10px;
    left: 12px;
    max-width: none;
  }

  .ed-article-content > *,
  .ed-article-content > .alignwide,
  .ed-article-content > .wp-block-table.alignwide,
  .ed-article-content > .wp-block-group.alignwide,
  .ed-article-content > .wp-block-image.alignwide,
  .ed-article-content > .ed-cta,
  .ed-article-comments {
    width: min(calc(100% - 24px), var(--ed-article-wide));
  }

  .ed-article-content .wp-block-table th,
  .ed-article-content .wp-block-table td {
    padding: 12px;
  }
}

@media (max-width: 359px) {

  .ed-article-specialist__photo {
    width: 58px;
    height: 58px;
  }
}

/* Specialist panel V2: integrated identity strip with a distinct Telegram segment. */
.ed-article-specialist {

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.ed-article-specialist__photo {

  margin-top: 0;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgb(35 65 103 / 16%);
}

.ed-article-specialist__telegram {
  display: grid;

  gap: 10px;

  border: 1px solid #d3e9ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef8ff 0%, #e5f3ff 100%);
  color: #071553;
  box-shadow: none;
  white-space: normal;
}

.ed-article-specialist__telegram > svg {
  width: 28px;
  height: 28px;
  color: #159cdf;
}

.ed-article-specialist__telegram-label {
  min-width: 0;

}

.ed-article-specialist__telegram-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 0 13px;
  border: 1px solid rgb(8 117 237 / 14%);
  border-radius: 12px;
  background: #fff;
  color: #0875ed;

  font-weight: 800;
  line-height: 1;
}

@media (max-width: 900px) {
  .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {
    grid-template-areas:
      "copy"
      "media"
      "specialist";
  }

  .ed-article-specialist {

    border-radius: 20px;
    background: linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, #fff 42%);
  }

  .ed-article-specialist__telegram {

    width: 100%;
  }
}

@media (max-width: 600px) {
  .ed-article-specialist {

    border-radius: 18px;
  }

  .ed-article-specialist__photo {

    border-width: 3px;
  }

  .ed-article-specialist__name {
    font-size: 16px;
  }

  .ed-article-specialist__role {
    font-size: 12.5px;
  }

  .ed-article-specialist__telegram {

    border-radius: 15px;
  }
}

/* Specialist panel V3: homepage facts and reference-matched author module. */
.ed-article-specialist {
  grid-template-columns: 68px minmax(190px, 1fr) auto minmax(300px, 320px);
  gap: 14px;
  width: min(960px, calc(100vw - 64px), calc(100% + 480px));
  margin: 0 0 20px clamp(28px, 3vw, 40px);
}

.ed-article-specialist__photo {
  width: 68px;
  height: 68px;
}

.ed-article-specialist__proofs {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ed-article-specialist__proof {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 82px;
}

.ed-article-specialist__proof-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid #ffc400;
  border-radius: 9px;
  color: #d99f00;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.ed-article-specialist__proof:nth-child(2) .ed-article-specialist__proof-icon {
  border: 0;
  font-size: 28px;
}

.ed-article-specialist__proof-copy {
  display: grid;
  min-width: 0;
  line-height: 1.08;
}

.ed-article-specialist__proof-copy strong {
  color: #071553;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.ed-article-specialist__proof-copy small {
  margin-top: 2px;
  color: #64779a;
  font-size: 11px;
  white-space: nowrap;
}

.ed-article-specialist__telegram {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 7px 8px 7px 11px;
}

.ed-article-specialist__telegram-label {
  max-width: 150px;
  color: #53698c;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.22;
}

.ed-article-specialist__telegram-action {
  min-height: 36px;
  padding-inline: 11px;
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .ed-article-specialist {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 7px 14px;
    width: auto;
    margin: -22px 30px 26px;
    padding: 14px;
  }

  .ed-article-specialist__photo {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
  }

  .ed-article-specialist__identity {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .ed-article-specialist__proofs {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    gap: 16px;
  }

  .ed-article-specialist__telegram {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 5px;
  }
}

@media (max-width: 600px) {
  .ed-article-specialist {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px 12px;
    margin: -20px 14px 20px;
    padding: 12px 10px 10px;
  }

  .ed-article-specialist__photo {
    width: 62px;
    height: 62px;
  }

  .ed-article-specialist__proofs {
    gap: 12px;
  }

  .ed-article-specialist__proof {
    gap: 6px;
    min-width: 76px;
  }

  .ed-article-specialist__proof-icon {
    width: 27px;
    height: 27px;
    font-size: 12.5px;
  }

  .ed-article-specialist__proof:nth-child(2) .ed-article-specialist__proof-icon {
    font-size: 25px;
  }

  .ed-article-specialist__proof-copy strong {
    font-size: 12px;
  }

  .ed-article-specialist__proof-copy small {
    font-size: 10.5px;
  }

  .ed-article-specialist__telegram {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    gap: 7px;
    min-height: 56px;
    padding: 7px 7px 7px 9px;
  }

  .ed-article-specialist__telegram > svg {
    width: 27px;
    height: 27px;
  }

  .ed-article-specialist__telegram-label {
    max-width: 120px;
    font-size: 10.75px;
    line-height: 1.18;
  }

  .ed-article-specialist__telegram-action {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 10.75px;
  }
}

@media (max-width: 359px) {
  .ed-article-specialist {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 6px 9px;
    margin-inline: 10px;
  }

  .ed-article-specialist__proofs {
    gap: 8px;
  }

  .ed-article-specialist__proof {
    gap: 4px;
    min-width: 68px;
  }

  .ed-article-specialist__proof-icon {
    width: 25px;
    height: 25px;
  }

  .ed-article-specialist__proof-copy strong {
    font-size: 11.5px;
  }

  .ed-article-specialist__proof-copy small {
    font-size: 10px;
  }

  .ed-article-specialist__telegram {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 5px;
    padding-inline: 7px;
  }

  .ed-article-specialist__telegram > svg {
    width: 25px;
    height: 25px;
  }

  .ed-article-specialist__telegram-label {
    font-size: 10px;
  }

  .ed-article-specialist__telegram-action {
    padding-inline: 7px;
    font-size: 10px;
  }
}

/* Article text system and automatic table of contents — checklist 9–15. */
.ed-article-toc-shell {
  position: relative;
  z-index: 6;
  width: min(calc(100% - 32px), var(--ed-article-wide));
  margin: clamp(-30px, -2vw, -20px) auto clamp(44px, 6vw, 70px);
}

.ed-article-toc {
  overflow: hidden;
  border: 1px solid #dce8f6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(32 65 105 / 9%);
}

.ed-article-toc summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px 18px;
  color: #071553;
  cursor: pointer;
  list-style: none;
}

.ed-article-toc summary::-webkit-details-marker {
  display: none;
}

.ed-article-toc summary::marker {
  content: "";
}

.ed-article-toc__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff2b6, #ffdd42);
  color: #071553;
  box-shadow: 0 8px 20px rgb(255 196 0 / 18%);
}

.ed-article-toc__icon svg,
.ed-article-toc__chevron svg {
  width: 24px;
  height: 24px;
}

.ed-article-toc__heading {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ed-article-toc__heading strong {
  color: #071553;
  font-size: 20px;
  font-weight: 830;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.ed-article-toc__heading small {
  color: #65799c;
  font-size: 13px;
  line-height: 1.35;
}

.ed-article-toc__chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe7f5;
  border-radius: 11px;
  color: #0875ed;
  transition: transform .2s ease, background-color .2s ease;
}

.ed-article-toc[open] .ed-article-toc__chevron {
  transform: rotate(180deg);
}

.ed-article-toc nav {
  padding: 4px 18px 20px;
  border-top: 1px solid #edf2f8;
}

.ed-article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}

.ed-article-toc__item {
  min-width: 0;
}

.ed-article-toc__item a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 12px;
  color: #263b5f;
  font-size: 15px;
  font-weight: 670;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.ed-article-toc__item--h3 a {
  margin-left: 18px;
  color: #546b91;
  font-size: 14px;
  font-weight: 600;
}

.ed-article-toc__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f1f6ff;
  color: #0875ed;
  font-size: 12px;
  font-weight: 820;
}

.ed-article-toc__item a:hover {
  background: #f5f9ff;
  color: #0875ed;
  transform: translateX(2px);
}

.ed-article-toc summary:focus-visible,
.ed-article-toc__item a:focus-visible {
  outline: 3px solid #0875ed;
  outline-offset: -2px;
}

.ed-article-content {
  padding-bottom: clamp(40px, 6vw, 84px);
}

.ed-article-content > p,
.ed-article-content > ul li,
.ed-article-content > ol li {
  color: #304568;

}

.ed-article-content > p {
  margin-bottom: 1.45em;
}

.ed-article-content strong {
  color: #0a1748;
  font-weight: 790;
}

.ed-article-content em {
  color: #496086;
}

.ed-article-content > p a,
.ed-article-content > ul a,
.ed-article-content > ol a,
.ed-article-content > .wp-block-quote a,
.ed-article-content > .wp-block-table a {
  color: #0875ed;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgb(8 117 237 / 34%);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.ed-article-content > p a:hover,
.ed-article-content > ul a:hover,
.ed-article-content > ol a:hover,
.ed-article-content > .wp-block-quote a:hover,
.ed-article-content > .wp-block-table a:hover {
  color: #005ec8;
  text-decoration-color: currentColor;
}

.ed-article-content > h2,
.ed-article-content > h3,
.ed-article-content > h4 {
  color: #071553;
  font-family: var(--ed-font-sans, "Golos Text", Arial, sans-serif);
  font-weight: 830;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  scroll-margin-top: 28px;
}

.ed-article-content > h3 {

  margin-bottom: 15px;

  line-height: 1.12;
}

.ed-article-content > h4 {
  margin-top: clamp(30px, 4vw, 42px);
  margin-bottom: 12px;
  font-size: clamp(1.22rem, 1.85vw, 1.5rem);
  line-height: 1.2;
}

.ed-article-content > ul.wp-block-list,
.ed-article-content > ol.wp-block-list {
  display: grid;
  gap: 12px;
  margin: 8px auto 34px;
  padding: 0;
  list-style: none !important;
}

.ed-article-content > ul.wp-block-list > li,
.ed-article-content > ol.wp-block-list > li {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
  padding-left: 48px;
  list-style: none !important;
}

.ed-article-content > ul.wp-block-list > li::marker,
.ed-article-content > ol.wp-block-list > li::marker {
  content: "";
}

.ed-article-content > ul.wp-block-list > li::before {
  position: absolute;
  top: .72em;
  left: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0875ed;
  box-shadow: 0 0 0 7px #eaf3ff;
  content: "";
  transform: translateY(-50%);
}

.ed-article-content > ol.wp-block-list {
  counter-reset: ed-article-step;
}

.ed-article-content > ol.wp-block-list > li {
  min-height: 38px;
  counter-increment: ed-article-step;
}

.ed-article-content > ol.wp-block-list > li::before {
  position: absolute;
  top: .06em;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 193 7 / 42%);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff3b3, #ffdc42);
  color: #071553;
  box-shadow: 0 7px 18px rgb(255 193 7 / 15%);
  content: counter(ed-article-step) / "";
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.ed-article-content > .wp-block-image {
  margin-top: clamp(38px, 5vw, 62px);
  margin-bottom: clamp(38px, 5vw, 62px);
}

.ed-article-content > .wp-block-image img {
  border: 1px solid #e2eaf4;
  border-radius: clamp(18px, 3vw, 28px);
  box-shadow: 0 20px 50px rgb(31 55 88 / 12%);
}

.ed-article-content > .wp-block-image figcaption {
  max-width: 72ch;
  margin: 12px 4px 0;
  color: #667b9e;
  font-size: 13.5px;
  line-height: 1.45;
}

@media (min-width: 900px) {
  .ed-article-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
}

@media (max-width: 767px) {
  .ed-article-toc-shell {
    width: min(calc(100% - 24px), var(--ed-article-prose));
    margin-top: -24px;
    margin-bottom: 42px;
  }

  .ed-article-toc {
    border-radius: 18px;
  }

  .ed-article-toc summary {
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 11px;
    min-height: 72px;
    padding: 13px 14px;
  }

  .ed-article-toc__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .ed-article-toc__heading strong {
    font-size: 17px;
  }

  .ed-article-toc__heading small {
    display: none;
  }

  .ed-article-toc__chevron {
    width: 34px;
    height: 34px;
  }

  .ed-article-toc nav {
    padding: 2px 11px 14px;
  }

  .ed-article-toc ol {
    gap: 5px;
    padding-top: 10px;
  }

  .ed-article-toc__item a {
    min-height: 42px;
    padding: 6px;
    font-size: 14px;
  }

  .ed-article-toc__item--h3 a {
    margin-left: 12px;
    font-size: 13.5px;
  }

  .ed-article-content > p,
  .ed-article-content > ul li,
  .ed-article-content > ol li {
    font-size: 1.0625rem;
    line-height: 1.62;
  }

  .ed-article-content > h2 {
    margin-top: 52px;
    margin-bottom: 15px;
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .ed-article-content > h3 {
    margin-top: 38px;
    font-size: clamp(1.35rem, 6vw, 1.65rem);
  }

  .ed-article-content > h4 {
    margin-top: 30px;
    font-size: 1.22rem;
  }

  .ed-article-content > ul.wp-block-list,
  .ed-article-content > ol.wp-block-list {
    gap: 11px;
    margin-bottom: 30px;
  }

  .ed-article-content > ul.wp-block-list > li,
  .ed-article-content > ol.wp-block-list > li {
    padding-left: 43px;
  }

  .ed-article-content > ul.wp-block-list > li::before {
    left: 13px;
  }

  .ed-article-content > ol.wp-block-list > li::before {
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  .ed-article-content > .wp-block-image {
    width: calc(100% - 24px);
  }

  .ed-article-content > .wp-block-image figcaption {
    margin-inline: 2px;
    font-size: 12.5px;
  }
}

@media (max-width: 359px) {
  .ed-article-toc summary {
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 9px;
    padding-inline: 11px;
  }

  .ed-article-toc__heading strong {
    font-size: 16px;
  }

  .ed-article-toc__item--h3 a {
    margin-left: 6px;
  }
}

/* C01 — semantic article callout. */
.ed-article-content > .wp-block-easy-direct-callout {
  width: min(var(--ed-article-prose), calc(100% - 40px));
  max-width: none;
  margin: 30px auto 34px;
}

.ed-article-callout {
  --ed-callout-bg: #eaf3ff;
  --ed-callout-accent: #0875ed;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  padding: 28px 30px;
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--ed-callout-accent) 11%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 12%, color-mix(in srgb, var(--ed-callout-accent) 8%, transparent) 0 48px, transparent 49px),
    var(--ed-callout-bg);
  box-shadow: 0 13px 34px rgba(17, 24, 32, 0.045);
  color: #111820;
}

.ed-article-callout--important {
  --ed-callout-bg: #fff7df;
  --ed-callout-accent: #e9a900;
}

.ed-article-callout--success {
  --ed-callout-bg: #e2fbf2;
  --ed-callout-accent: #00a985;
}

.ed-article-callout--warning {
  --ed-callout-bg: #fdebf2;
  --ed-callout-accent: #e93f68;
}

.ed-article-callout__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ed-callout-accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ed-callout-accent) 22%, transparent);
  color: #fff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.ed-article-callout--important .ed-article-callout__icon {
  color: #5a4300;
}

.ed-article-callout__content {
  min-width: 0;
}

.ed-article-callout__title,
.ed-article-callout__text {
  max-width: none;
  margin: 0;
  color: #111820;
}

.ed-article-callout__title {
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: -0.018em;
}

.ed-article-callout__text {
  font-size: 16px;
  line-height: 1.57;
}

.ed-article-callout__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 11px;
  padding: 5px 2px;
  color: color-mix(in srgb, var(--ed-callout-accent) 88%, #071553);
  font-size: 15px;
  font-weight: 740;
  line-height: 1.35;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.ed-article-callout__link:hover {
  color: #071553;
}

.ed-article-callout__link:focus-visible {
  border-radius: 8px;
  outline: 3px solid color-mix(in srgb, var(--ed-callout-accent) 34%, transparent);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .ed-article-content > .wp-block-easy-direct-callout {
    width: calc(100% - 28px);
    margin-block: 24px 28px;
  }

  .ed-article-callout {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px 12px;
    padding: 19px 18px 20px;
    border-radius: 20px;
    background:
      radial-gradient(circle at 96% 8%, color-mix(in srgb, var(--ed-callout-accent) 8%, transparent) 0 38px, transparent 39px),
      var(--ed-callout-bg);
  }

  .ed-article-callout__icon {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
    margin-top: 0;
    font-size: 20px;
  }

  .ed-article-callout__content {
    display: contents;
  }

  .ed-article-callout__title {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
    font-size: 16px;
    line-height: 1.32;
  }

  .ed-article-callout__text {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .ed-article-callout.has-no-title .ed-article-callout__text {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .ed-article-callout__link {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    min-height: 40px;
    margin-top: -2px;
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  .ed-article-callout {
    padding-inline: 16px;
  }

  .ed-article-callout.has-no-title .ed-article-callout__text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-article-shell {
    scroll-behavior: auto;
  }
}

/* Owner feedback pass 03 — unified editorial canvas, compact Hero and flat H2 TOC. */
.ed-article-shell {
  background: var(--ed-color-page, #fdfcf9);
  padding: 0 16px 72px;
}

.ed-article-shell .ed-article {
  width: min(100%, 1320px);
  margin: 0 auto;

}

.ed-article-shell .ed-article-hero {
  padding: 18px 22px 0;
}

.ed-article-shell .ed-article-hero__inner {
  width: 100%;
  padding-top: 18px;
}

.ed-article-shell .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {
  grid-template-areas:
    "copy media"
    "specialist specialist";

  grid-template-rows: minmax(410px, auto) auto;
  min-height: 0;

}

.ed-article-shell .ed-article-hero__copy {
  align-self: center;
  padding: 42px 28px 38px 42px;
}

.ed-article-shell .ed-article-hero h1 {
  width: 100%;

}

.ed-article-shell .ed-article-hero__lead {
  width: 100%;
  max-width: var(--ed-article-hero-lead-width, 38ch);
  margin-top: 22px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.ed-article-shell .ed-article-hero__category {
  min-height: 32px;
  margin-bottom: 18px;
  padding: 7px 14px;
  font-size: 13px;
}

.ed-article-shell .ed-article-hero__media {
  height: 100%;
  min-height: 410px;
  border-radius: 0 23px 0 0;
}

.ed-article-shell .ed-article-hero__image {
  min-height: 410px;
  border-radius: 0 23px 0 0;

}

.ed-article-shell .ed-article-hero__media::before {
  width: 36%;
}

.ed-article-shell .ed-article-toc-shell {
  width: min(calc(100% - 40px), var(--ed-article-prose));
  margin: 34px auto 46px;
}

.ed-article-shell .ed-article-toc {
  border-color: #dce7f4;

}

.ed-article-shell .ed-article-toc ol {
  grid-template-columns: 1fr !important;
  gap: 0;
  padding-top: 0;

}

.ed-article-shell .ed-article-toc__item + .ed-article-toc__item {
  border-top: 1px solid #edf2f8;
}

.ed-article-shell .ed-article-toc__item a {
  grid-template-columns: 34px minmax(0, 1fr) 18px;

  font-size: 15px;
  font-weight: 640;
}

.ed-article-shell .ed-article-toc__item a::after {
  color: #7f9dc4;
  content: "›";
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.ed-article-shell .ed-article-toc__number {
  width: 32px;
  height: 32px;
}

.ed-article-shell .ed-article-content {
  padding-bottom: 0;
  background: #fff;
}

.ed-article-shell .ed-article-content > h2 {
  margin-top: clamp(48px, 5.5vw, 72px);
}

@media (max-width: 900px) {
  .ed-article-shell .ed-article-hero__grid {
    border-radius: 22px;
  }

  .ed-article-shell .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {

    grid-template-rows: auto auto auto;
}

  .ed-article-shell .ed-article-hero__media {
    min-height: 0;
    border-radius: 21px 21px 0 0;
  }

  .ed-article-shell .ed-article-hero__image {
    min-height: 0;

    border-radius: 21px 21px 0 0;
  }

  .ed-article-shell .ed-article-hero__media::before {
    inset: auto 0 0;
    width: auto;
    height: 24%;
    background: linear-gradient(180deg, transparent, #f7faff);
  }

  .ed-article-shell .ed-article-specialist {

    width: auto;
    margin: 0 16px 16px;

    border: 0;
    border-top: 1px solid #dce7f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .ed-article-shell {
    padding: 0;
  }

  .ed-article-shell .ed-article {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ed-article-shell .ed-article-hero {
    padding: 8px 12px 0;
  }

  .ed-article-shell .ed-article-hero__inner {
    padding-top: 10px;
  }

  .ed-article-shell .ed-article-hero__image {
    aspect-ratio: 4 / 3;
  }

  .ed-article-shell .ed-article-hero__category {
    margin-bottom: 14px;
  }

  .ed-article-shell .ed-article-hero__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .ed-article-shell .ed-article-specialist {

    padding-top: 12px;
  }

  .ed-article-shell .ed-article-toc-shell {
    width: calc(100% - 24px);
    margin: 26px auto 34px;
  }

  .ed-article-shell .ed-article-toc__heading small {
    display: block;
    font-size: 11.5px;
  }

  .ed-article-shell .ed-article-toc__item a {
    min-height: 50px;
    font-size: 13.5px;
  }
}

/* Owner feedback pass 06 — Editorial Product refinement from the independent UX/UI audit. */
.ed-article-shell {
  position: relative;
  --ed-reading-progress: 0%;
}

.ed-article-shell::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: var(--ed-reading-progress);
  height: 3px;
  background: linear-gradient(90deg, #0875ed 0 82%, #ffcf22 82% 100%);
  box-shadow: 0 1px 4px rgb(8 117 237 / 22%);
  content: "";
  pointer-events: none;
  transition: width .08s linear;
}

.ed-article-shell .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
}

.ed-article-shell .ed-article-hero h1 {
  max-width: var(--ed-article-hero-title-width, 14ch);
  font-size: clamp(2.45rem, 3.65vw, 3.05rem);
  line-height: 1.01;
  letter-spacing: -.048em;
}

.ed-article-content > p,
.ed-article-content > ul li,
.ed-article-content > ol li {
  font-size: clamp(1.05rem, .98rem + .28vw, 1.1875rem);
  line-height: 1.63;
}

.ed-article-content > h2 {
  margin-top: clamp(56px, 6vw, 76px);
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 2.85vw, 2.5rem);
  line-height: 1.08;
}

.ed-article-content > h3 {
  margin-top: clamp(38px, 4.5vw, 54px);
  font-size: clamp(1.45rem, 2vw, 1.875rem);
}

.ed-article-shell .ed-article-toc {
  overflow: visible;
  border: 0;
  border-top: 1px solid #dce7f3;
  border-bottom: 1px solid #dce7f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ed-article-shell .ed-article-toc summary {
  min-height: 66px;
  padding: 10px 4px;
}

.ed-article-shell .ed-article-toc__icon {
  border-radius: 12px;
  box-shadow: none;
}

.ed-article-shell .ed-article-toc nav {
  padding: 0 0 10px;
  border-top: 1px solid #edf2f8;
}

.ed-article-shell .ed-article-toc ol {
  border-top: 0;
}

.ed-article-shell .ed-article-toc__item a {
  position: relative;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 0;
}

.ed-article-shell .ed-article-toc__item a::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.ed-article-shell .ed-article-toc__item a.is-current,
.ed-article-shell .ed-article-toc__item a[aria-current="location"] {

  color: #0875ed;
}

.ed-article-shell .ed-article-toc__item a.is-current::before,
.ed-article-shell .ed-article-toc__item a[aria-current="location"]::before {
  background: #0875ed;
}

@media (max-width: 900px) {
  .ed-article-shell .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "specialist";
  }
}

@media (max-width: 600px) {

  .ed-article-shell .ed-article-hero h1 {

    font-size: clamp(2rem, 8.4vw, 2.3rem);
    line-height: 1.01;
  }

  .ed-article-shell .ed-article-toc summary {
    min-height: 60px;
    padding: 9px 2px;
  }
}

@media (max-width: 767px) and (max-height: 650px) {
  .ed-article-shell .ed-article-hero__copy {
    padding-top: 14px;
  }

  .ed-article-shell .ed-article-hero__lead {
    margin-top: 12px;
  }

  .ed-article-shell .ed-article-hero__image {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 901px) {
  .ed-article-shell .ed-article-hero__grid:not(.ed-article-hero__grid--text-only) {
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  }

  .ed-article-shell .ed-article-hero h1 {
    max-width: var(--ed-article-hero-title-width, 16.5ch);
    font-size: clamp(2.35rem, 3.25vw, 2.9rem);
    line-height: 1.015;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-article-shell::before {
    transition: none;
  }
}

/* Pass 08 — approved 10/10 UX/UI audit. */
.ed-article-shell .ed-article {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.ed-article-shell .ed-article-hero__grid {
  overflow: hidden;
  border: 1px solid #e1eaf5;

  background: #f6f9fd;
  box-shadow: 0 18px 46px rgb(28 53 88 / 8%);
}

.ed-article-shell .ed-article-specialist {
  grid-template-columns: 58px minmax(150px, 1fr) auto minmax(230px, 290px);
  width: auto;
  min-height: 88px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.ed-article-shell .ed-article-specialist__photo {
  width: 56px;
  height: 56px;
  margin: 0;
  border-width: 3px;
  box-shadow: 0 7px 18px rgb(35 65 103 / 12%);
}

.ed-article-shell .ed-article-specialist__proofs {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ed-article-shell .ed-article-specialist__proof {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ed-article-shell .ed-article-specialist__proof-icon {
  display: none;
}

.ed-article-shell .ed-article-specialist__proof-copy {
  display: grid;
  gap: 1px;
}

.ed-article-shell .ed-article-specialist__proof-copy strong {
  color: #071553;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.1;
}

.ed-article-shell .ed-article-specialist__proof-copy small {
  color: #687b99;
  font-size: 12px;
  line-height: 1.25;
}

.ed-article-shell .ed-article-specialist__telegram {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #b9d8fb;
  border-radius: 13px;
  background: #f3f8ff;
  color: #075fbd;
  box-shadow: none;
  font-size: 13px;
}

.ed-article-shell .ed-article-specialist__telegram-action {
  white-space: nowrap;
}

.ed-article-shell .ed-article-hero__media,
.ed-article-shell .ed-article-hero__image {
  border-radius: 0 23px 0 0;
}

.ed-article-shell .ed-article-hero__media::after {
  display: block;
  height: 44px;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 96%));
}

.ed-article-shell .ed-article-toc__item a {
  transform: none;
}

.ed-article-shell .ed-article-toc__item a:hover {
  background: #f7faff;
  color: #075fbd;
  transform: none;
}

.ed-article-shell .ed-article-toc summary:focus-visible,
.ed-article-shell .ed-article-toc__item a:focus-visible {
  outline: 2px solid #0875ed;
  outline-offset: 2px;
}

.ed-article-shell .ed-article-toc__item a.is-current,
.ed-article-shell .ed-article-toc__item a[aria-current="location"] {
  background: linear-gradient(90deg, #edf6ff, rgb(237 246 255 / 10%));
}

@media (max-width: 900px) {
  .ed-article-shell .ed-article-hero__copy {
    width: 100%;
    max-width: 620px;
    padding: 28px 28px 22px;
  }

  .ed-article-shell .ed-article-hero h1 {
    max-width: none;
  }

  .ed-article-shell .ed-article-specialist {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 16px 20px 18px;
  }

  .ed-article-shell .ed-article-specialist__proofs {
    grid-column: 2 / -1;
    justify-content: flex-start;
    gap: 24px;
  }

  .ed-article-shell .ed-article-specialist__telegram {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .ed-article-shell .ed-article-hero__media,
  .ed-article-shell .ed-article-hero__image {
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  .ed-article-shell .ed-article-hero {
    padding-inline: 12px;
  }

  .ed-article-shell .ed-article-hero__grid {
    overflow: hidden;
    border: 1px solid #e1eaf5;

    background: #f6f9fd;
  }

  .ed-article-shell .ed-article-hero__copy {
    max-width: none;
    padding: 18px 16px 16px;
  }

  .ed-article-shell .ed-article-hero h1 {
    max-width: none;
  }

  .ed-article-shell .ed-article-hero__media,
  .ed-article-shell .ed-article-hero__image {
    border-radius: 0;
  }

  .ed-article-shell .ed-article-hero__media::after {
    display: block;
  }

  .ed-article-shell .ed-article-specialist {
    grid-template-columns: 48px minmax(0, 1fr);
    margin: 0;
    padding: 14px 16px 16px;
  }

  .ed-article-shell .ed-article-specialist__photo {
    width: 48px;
    height: 48px;
  }

  .ed-article-shell .ed-article-specialist__proofs {
    grid-column: 2;
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .ed-article-shell .ed-article-specialist__telegram {
    grid-column: 1 / -1;
    min-height: 44px;
    margin-top: 2px;
  }
}

/* Independent recheck: Telegram remains a readable secondary action on compact screens. */
.ed-article-shell .ed-article-specialist__telegram-label {
  min-width: 0;
  font-size: 13px !important;
  line-height: 1.3;
  white-space: normal;
}

/* Preserve article stacking after removal of the superseded cool canvas decoration. */
@media (min-width: 681px) {

  .ed-article-shell {
    isolation: isolate;
  }

  .ed-article-shell .ed-article {
    position: relative;
    z-index: 1;
  }
}

.ed-article-shell .ed-article-toc__icon {
  border: 1px solid #cfe1f5;
  background: #eef6ff;
  color: #0875ed;
}

@media (min-width: 901px) {
  .ed-article-shell .ed-article-specialist {
    grid-template-columns: 58px minmax(150px, 1fr) auto minmax(340px, 360px);
  }

  .ed-article-shell .ed-article-specialist__telegram {
    min-height: 54px;
  }

  .ed-article-shell .ed-article-specialist__telegram-label {
    max-width: 170px;
    font-size: 13px !important;
    line-height: 1.25;
  }

  .ed-article-shell .ed-article-specialist__telegram-action {
    min-height: 44px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .ed-article-shell .ed-article-specialist__telegram {
    grid-template-columns: 27px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .ed-article-shell .ed-article-specialist__telegram > svg {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .ed-article-shell .ed-article-specialist__telegram-label {
    grid-column: 2;
    grid-row: 1;
    max-width: none;
    font-size: 13px !important;
    line-height: 1.25;
  }

  .ed-article-shell .ed-article-specialist__telegram-action {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

/* Stage 8.1 final polish — one white article canvas and intentional hero spacing. */

.ed-article-shell .ed-article,
.ed-article-shell .ed-article-content {
  background: #fff;
}

.ed-article-shell .ed-article-hero {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.ed-article-shell .ed-article-hero__grid {
  border-radius: var(--ed-radius-surface);
}

.ed-article-shell .ed-article-hero__media {
  background: #f8fbff;
}

.ed-article-shell .ed-article-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ed-article-shell .ed-article-toc-shell {
  position: relative;
  background: #fff;
}

@media (max-width: 900px) {
  .ed-article-shell .ed-article-hero__image {
    aspect-ratio: 16 / 9;
    height: auto;
    object-position: center center;
  }
}

@media (max-width: 600px) {

  .ed-article-shell .ed-article-hero {
    padding-bottom: 42px;
  }

  .ed-article-shell .ed-article-hero__grid {
    border-radius: 18px;
  }
}

/* Stage 8.1 finalization — align the article with shared site rhythm. */

.ed-article-shell .ed-article-hero {
  padding-top: 8px;
}

.ed-article-shell .ed-article-hero__inner {
  padding-top: 8px;
}

.ed-article-shell .ed-article-specialist__photo img {
  object-position: center 12%;
}

.ed-article-shell .ed-article-specialist__telegram-action {
  border-color: #e3b900;
  background: #ffd43b;
  color: #071a52;
}

@media (max-width: 600px) {
  .ed-article-shell .ed-article-hero {
    padding-top: 4px;
  }

  .ed-article-shell .ed-article-hero__inner {
    padding-top: 6px;
  }

  .ed-article-shell .ed-article-specialist__telegram {
    align-items: center;
  }

  .ed-article-shell .ed-article-specialist__telegram-label {
    align-self: center;
    padding-left: 2px;
  }
}

/* Stabilization: scoped text colors meet WCAG AA without recoloring decoration. */
.ed-article-shell .ed-article-specialist__proof-copy small,
.ed-article-shell .ed-article-toc__heading small,
.ed-article-shell .ed-article-content > .wp-block-image figcaption {
  color: var(--ed-article-text-muted-small);
}

.ed-article-shell .ed-article-content > :is(p, ul, ol, blockquote) a,
.ed-article-shell .ed-article-content > .wp-block-table a {
  color: var(--ed-article-link-accessible);
}

/* Accessibility micro-fix: readable muted identity text. */
.ed-article-shell .ed-article-specialist__role {
  color: var(--ed-article-text-muted-strong, #52698e);
}

.ed-article-shell .ed-article-toc__number {
  color: #075fbf;
}

