.editorial {
  --paper: #f7f9fc;
  --panel: #ffffff;
  --ink: #142940;
  --muted: #495d72;
  --line: #d4e0eb;
  --header: #0d2740;
  --brand: #176dac;
  --on-brand: #ffffff;
  --link: #135f9a;
  --tint: #eaf3fa;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-primary, Arial, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}

.editorial--trelisa {
  --paper: #0b1220;
  --panel: #111a2d;
  --ink: #edf2f7;
  --muted: #b9c5d7;
  --line: #32445d;
  --header: #111a2d;
  --brand: #23c2db;
  --on-brand: #071722;
  --link: #4ed5e8;
  --tint: #142c3c;
  font-family: var(--font-body, Arial, sans-serif);
}

.editorial a { text-underline-offset: .2em; }
.editorial :focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.editorial img { max-width: 100%; }
.editorial .ed-shell { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.editorial .ed-skip { position: absolute; top: -10rem; left: 1rem; }
.editorial .ed-skip:focus { position: fixed; z-index: 10; top: .5rem; background: var(--panel); padding: .6rem; }
.editorial .ed-header, .editorial .ed-footer { background: var(--header); color: #fff; }
.editorial .ed-header { position: sticky; inset-block-start: 0; z-index: 5; }
.editorial #main, .editorial .ed-body [id] { scroll-margin-block-start: 7.75rem; }

.editorial .ed-bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.editorial .ed-brand, .editorial .ed-nav { display: flex; align-items: center; gap: 1.15rem; }
.editorial .ed-brand { font-size: 1.02rem; font-weight: 750; white-space: nowrap; }
.editorial .ed-brand img { width: 34px; height: 34px; object-fit: contain; }
.editorial .ed-header a, .editorial .ed-footer a { color: inherit; }
.editorial .ed-nav > a:hover { text-decoration: underline; }
.editorial .ed-nav .ed-button { color: var(--on-brand); }
.editorial .ed-button, .editorial .ed-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.12rem;
  border-radius: .55rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}
.editorial .ed-button:hover { filter: brightness(1.08); }
.editorial .ed-crumbs { padding-block: 2rem 1rem; color: var(--muted); font-size: .94rem; }
.editorial .ed-crumbs a, .editorial .ed-body a, .editorial .ed-action a:not(.ed-button) { color: var(--link); text-decoration: underline; }
.editorial .ed-hero { max-width: 62rem; margin-block: .5rem 2rem; }
.editorial .ed-tag { color: var(--link); font-size: .92rem; font-weight: 750; }
.editorial .ed-hero h1 {
  margin: .55rem 0 1rem;
  max-width: 25ch;
  color: var(--ink);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.editorial .ed-hero p { margin: 0; max-width: 55ch; font-size: clamp(1.05rem, 1.65vw, 1.26rem); color: var(--muted); }
.editorial .ed-date { display: block; margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.editorial .ed-cover { margin: 0 0 2.3rem; }
.editorial .ed-cover img { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: 1rem; }
.editorial .ed-cover figcaption { margin-top: .45rem; color: var(--muted); font-size: .81rem; }
.editorial .ed-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem); gap: clamp(1.4rem, 5vw, 4.6rem); align-items: start; }
.editorial .ed-body { min-width: 0; max-width: 72ch; }
.editorial .ed-body p, .editorial .ed-body ul, .editorial .ed-body ol { margin-block: 0 1.05rem; }
.editorial .ed-body li + li { margin-top: .4rem; }
.editorial .ed-body h2 { margin: 2rem 0 .68rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); color: var(--ink); line-height: 1.22; }
.editorial .ed-body h3 { margin: 1.4rem 0 .55rem; font-size: 1.17rem; color: var(--ink); }
.editorial .ed-table { overflow: auto; margin-bottom: 1.15rem; border: 1px solid var(--line); border-radius: .65rem; }
.editorial .ed-table table { width: 100%; min-width: 28rem; border-collapse: collapse; }
.editorial .ed-body th, .editorial .ed-body td { padding: .6rem .75rem; text-align: left; vertical-align: top; }
.editorial .ed-body th { background: var(--tint); }
.editorial .ed-body tr + tr td { border-top: 1px solid var(--line); }
.editorial .ed-action { border: 1px solid var(--line); border-radius: .9rem; background: var(--tint); padding: 1.2rem; }
.editorial .ed-action h2 { margin: 0 0 .53rem; font-size: 1.18rem; line-height: 1.25; }
.editorial .ed-action p { margin: .4rem 0 .85rem; color: var(--muted); }
.editorial .ed-action .ed-button { margin-bottom: .6rem; }
.editorial .ed-related { margin-top: 2.2rem; }
.editorial .ed-related a { color: var(--link); text-decoration: underline; }
.editorial .ed-related h2 { font-size: 1.28rem; margin-bottom: .6rem; }
.editorial .ed-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.3rem; }
.editorial .ed-card { display: flex; flex-direction: column; max-width: 30rem; background: var(--panel); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.editorial .ed-card img { display: block; width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.editorial .ed-card-copy { padding: 1.05rem; }
.editorial .ed-card-copy h2 { margin: .35rem 0 .6rem; font-size: 1.23rem; line-height: 1.3; }
.editorial .ed-card-copy a:hover { text-decoration: underline; }
.editorial .ed-card-copy p { margin: 0; color: var(--muted); }
.editorial .ed-footer { margin-top: 4rem; padding-block: 2rem; }
.editorial .ed-footer .ed-shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.editorial .ed-footer a { text-decoration: underline; }

@media (max-width: 740px) {
  .editorial .ed-bar { min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: .45rem 1rem; padding-block: .5rem; }
  .editorial .ed-nav { gap: .65rem; font-size: .875rem; }
  .editorial .ed-nav .ed-button { padding-inline: .7rem; text-align: center; line-height: 1.2; }
  .editorial .ed-columns { grid-template-columns: 1fr; }
  .editorial .ed-cover img { aspect-ratio: 4/3; }
  .editorial .ed-crumbs { padding-top: 1rem; }
  .editorial .ed-footer { margin-top: 2rem; }
}
