.editorial {
  --ed-bg: #eef2f8;
  --ed-panel: #fff;
  --ed-ink: #132039;
  --ed-muted: #4a5b73;
  --ed-link: #214cba;
  --ed-line: #ccd7e6;
  --ed-accent: #e1ecff;
  --ed-width: 74rem;
  background: var(--ed-bg);
  color: var(--ed-ink);
}
.editorial-halyava {
  --ed-bg: #f5f6ef;
  --ed-panel: #fdfdf9;
  --ed-ink: #192219;
  --ed-muted: #536052;
  --ed-link: #345423;
  --ed-line: #cbd6c4;
  --ed-accent: #e7f0d4;
}
.editorial-oplata {
  --ed-bg: #f4f6fb;
  --ed-ink: #141c33;
  --ed-muted: #52617b;
  --ed-link: #3847be;
  --ed-line: #dce3f0;
  --ed-accent: #edf0ff;
  --ed-hero: linear-gradient(125deg, #11172e, #232f5e);
  --ed-hero-ink: #fff;
  --ed-hero-muted: #d7e0ff;
}
.editorial-monitoring {
  --ed-bg: #f5f5f2;
  --ed-ink: #171a35;
  --ed-muted: #515777;
  --ed-link: #303cce;
  --ed-line: #dbdded;
  --ed-accent: #eef1ff;
  --ed-hero: linear-gradient(130deg, #f6f7ff, #e2e7ff);
  --ed-hero-ink: #171a35;
  --ed-hero-muted: #515777;
}
.editorial a { color: var(--ed-link); text-underline-offset: 0.2em; }
.editorial a:hover { color: var(--ed-link); text-decoration-thickness: 2px; }
.editorial :focus-visible { outline: 2px solid var(--ed-link); outline-offset: 4px; }
.ed-frame { width: min(var(--ed-width), calc(100% - 2rem)); margin-inline: auto; }
.ed-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ed-skip:focus { position: fixed; inset: 0.55rem auto auto 0.55rem; z-index: 3; padding: 0.65rem; background: var(--ed-panel); }
.ed-header { border-bottom: 1px solid var(--ed-line); background: var(--ed-panel); }
.ed-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.3rem 1rem; min-height: 4.2rem; }
.ed-brand { font-size: 1.32rem; letter-spacing: -0.055em; font-weight: 800; text-decoration: none; }
.ed-header nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.ed-header nav a, .ed-footer a { padding-block: 0.65rem; font-size: 0.93rem; }
.ed-crumbs { margin-block: clamp(1rem, 3vw, 1.6rem); color: var(--ed-muted); font-size: 0.9rem; }
.ed-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0; list-style: none; }
.ed-crumbs li { display: inline; }
.ed-crumbs li + li::before { content: '/'; margin-inline: 0.25rem 0.4rem; }
.ed-intro { max-width: 49rem; margin-bottom: 1.25rem; }
.ed-intro h1, .ed-article-heading h1 { font-size: clamp(2rem, 5.3vw, 3.9rem); letter-spacing: -0.055em; line-height: 1.09; text-wrap: balance; }
.ed-intro p { margin-top: 0.55rem; color: var(--ed-muted); font-size: 1.07rem; }
.ed-card-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.75rem; margin: 0 0 3rem; padding-inline-start: 0; }
.ed-card-list li { border: 1px solid var(--ed-line); border-radius: 0.65rem; padding: 0.9rem; background: var(--ed-panel); }
.ed-card-list:is(ul) { list-style: none; }
.ed-card-list:is(ol) { list-style-position: inside; }
.ed-card-list li::marker { color: var(--ed-muted); font-size: 0.9rem; font-weight: 700; }
.ed-card-list h2 { display: inline; font-size: 1.11rem; line-height: 1.23; }
.ed-card-list p { color: var(--ed-muted); font-size: 0.94rem; margin-top: 0.44rem; }
.ed-article { max-width: 54rem; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }
.ed-byline { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; color: var(--ed-muted); font-size: 0.91rem; margin-top: 0.68rem; }
.ed-answer { margin-top: 1.2rem; border-inline-start: 3px solid var(--ed-link); border-radius: 0.33rem; padding: clamp(0.78rem, 2vw, 1.2rem); background: var(--ed-accent); font-size: 1.06rem; }
.ed-article section, .ed-related { margin-top: 1.65rem; }
.ed-article h2 { font-size: clamp(1.4rem, 3.3vw, 2rem); letter-spacing: -0.031em; line-height: 1.18; margin-bottom: 0.62rem; }
.ed-article section p + p { margin-top: 0.65rem; }
.ed-article section p, .ed-answer p { line-height: 1.61; }
.ed-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--ed-line); border-radius: 0.5rem; background: var(--ed-panel); }
.ed-table-scroll table { width: 100%; min-width: 21.5rem; border-collapse: collapse; font-size: 0.94rem; line-height: 1.45; }
.ed-table-scroll :is(th, td) { padding: 0.59rem 0.72rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--ed-line); }
.ed-table-scroll thead th { background: var(--ed-accent); }
.ed-table-scroll tbody tr:last-child > * { border-bottom: 0; }
.ed-table-scroll tbody th { min-width: 7.5rem; font-weight: 670; }
.ed-table-scroll td { min-width: 7.3rem; overflow-wrap: anywhere; }
.ed-faq details { border-block-start: 1px solid var(--ed-line); padding-block: 0.55rem; }
.ed-faq summary { cursor: pointer; padding-block: 0.35rem; font-weight: 700; }
.ed-faq details p { padding-inline-start: 0.85rem; color: var(--ed-muted); }
.ed-sources { padding: 0.9rem; border: 1px solid var(--ed-line); border-radius: 0.6rem; background: var(--ed-panel); }
.ed-sources > div + div { margin-top: 0.8rem; }
.ed-sources h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.ed-sources p { color: var(--ed-muted); font-size: 0.93rem; }
.ed-sources ul, .ed-related ul { margin: 0.35rem 0 0; padding-inline-start: 1.25rem; }
.ed-sources li, .ed-related li { margin-block: 0.36rem; }
.ed-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; min-height: 4.1rem; gap: 0 0.7rem; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font-size: 0.91rem; }
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-intro {
  max-width: none;
  margin-bottom: clamp(1rem, 2.8vw, 2rem);
  padding: clamp(1.4rem, 4vw, 3.4rem);
  border-radius: clamp(1rem, 2vw, 1.6rem);
  background: var(--ed-hero);
  color: var(--ed-hero-ink);
}
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-intro p { max-width: 38rem; color: var(--ed-hero-muted); }
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-header nav a {
  align-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.48rem;
  color: var(--ed-ink);
  text-decoration: none;
}
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-header nav a:is(:hover, [aria-current]) { background: var(--ed-accent); color: var(--ed-link); }
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-card-list { gap: clamp(0.65rem, 1.7vw, 1.15rem); }
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-card-list li {
  padding: clamp(0.9rem, 2vw, 1.4rem);
  border-radius: 0.95rem;
  box-shadow: 0 4px 14px #151c3710;
}
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-card-list li:focus-within { border-color: var(--ed-link); }
.editorial:is(.editorial-oplata, .editorial-monitoring) .ed-article-heading {
  padding-block-end: 1.15rem;
  border-block-end: 1px solid var(--ed-line);
}
@media (max-width: 43rem) {
  .ed-header-inner { padding-top: 0.58rem; }
  .ed-header nav { flex-basis: 100%; gap: 0 0.82rem; }
  .ed-card-list { grid-template-columns: 1fr; }
  .ed-crumbs li[aria-current] { display: none; }
  .ed-header nav a { font-size: 0.88rem; }
}
