/* =========================================================
   EDITORIAL · ROTEIROS (card no estilo app de notas)
   Usa os tokens de styles.css. Cores chapadas, sem degradê.
   ========================================================= */
.editorial {
  position: relative; background: var(--magenta); color: #fff; overflow: hidden;
  border-radius: 56px; margin: 40px 0 0; padding: 150px var(--gutter) 110px;
}
@media (max-width: 600px) { .editorial { border-radius: 36px; padding: 120px var(--gutter) 80px; } }
.editorial__eyebrow { color: var(--pink); }
.editorial h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; }
.editorial__blob {
  position: absolute; right: -180px; top: 8%; width: 520px; height: 620px;
  background: var(--pink); border-radius: 46% 54% 40% 60% / 52% 38% 62% 48%;
  transform: rotate(-18deg); pointer-events: none;
}
@media (max-width: 899px) { .editorial__blob { right: -260px; top: auto; bottom: -140px; width: 420px; height: 460px; } }
.editorial__grid { position: relative; max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .editorial__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.editorial__side { display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .editorial__side { position: sticky; top: 96px; } }
.editorial h2 { color: #fff; }
.editorial__lead { color: #fde3f2; font-size: 1.08rem; max-width: 42ch; }

.ed-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ed-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  min-height: 48px; padding: 8px 18px; border-radius: 20px; cursor: pointer; text-align: left;
  border: 2px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
  font-weight: 800; font-size: .95rem; line-height: 1.25;
  transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease);
}
.ed-tab small { font-weight: 600; font-size: .78rem; opacity: .85; }
.ed-tab:hover { border-color: #fff; transform: translateY(-2px); }
.ed-tab[aria-selected="true"] { background: #fff; color: var(--magenta); border-color: #fff; }
.ed-tab[aria-selected="true"] small { color: var(--muted); opacity: 1; }

.ed-guide { margin-top: 10px; padding: 18px 20px; border-radius: 18px; background: var(--magenta-dark); }
.ed-guide__label { font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.ed-guide__list { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 10px; }
.ed-guide__list li { counter-increment: g; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: .95rem; line-height: 1.45; color: #fde3f2; }
.ed-guide__list li::before { content: counter(g); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--magenta-dark); font-weight: 800; font-size: .8rem; }

.note-wrap { position: relative; }
.note__badge {
  position: absolute; left: -18px; top: 46%; z-index: 2;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--magenta); color: #fff; border: 3px solid #fff;
  box-shadow: 0 10px 20px -10px rgba(20, 40, 60, .5); transform: rotate(-6deg);
}
.note__badge .ico { width: 24px; height: 24px; stroke-width: 2.2; }
@media (max-width: 599px) { .note__badge { display: none; } }
.note {
  position: relative; background: #fff; color: var(--text);
  border-radius: 36px; padding: 22px; min-height: 560px;
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 40px 80px -40px rgba(40, 8, 30, .55);
  touch-action: pan-y;
}
@media (min-width: 600px) { .note { padding: 30px 34px; border-radius: 44px; } }
.note__top, .note__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note__group { display: flex; align-items: center; gap: 4px; }
.note__btn, .note__tool {
  display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0; border-radius: 999px;
  border: 0; background: var(--bg); color: var(--text); cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 14px -6px rgba(20, 40, 60, .35), 0 0 0 1px var(--border) inset;
  transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.note__btn:hover { background: var(--text); color: #fff; transform: translateY(-2px); }
.note__btn .ico, .note__tool .ico { width: 22px; height: 22px; }
.note__pager {
  min-width: 92px; height: 52px; padding: 0 22px; border-radius: 999px; display: grid; place-items: center;
  background: var(--pink); color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; box-shadow: 0 6px 14px -6px rgba(184, 25, 122, .5);
}
.note__group--pill { background: var(--bg); border-radius: 999px; padding: 4px; box-shadow: 0 6px 14px -6px rgba(20, 40, 60, .35), 0 0 0 1px var(--border) inset; }
.note__tool { box-shadow: none; background: transparent; min-width: 48px; height: 48px; }
.note__tool:hover, .note__tool[aria-expanded="true"] { background: var(--pink); }
.note__btn--cta { display: inline-flex; gap: 10px; padding: 0 22px; background: var(--magenta); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 10px 24px -12px rgba(184, 25, 122, .7); }
.note__btn--cta:hover { background: var(--magenta-dark); }
@media (max-width: 420px) { .note__btn--cta span { display: none; } .note__btn--cta { padding: 0; width: 52px; } }
.note .ico-check { display: none; }
.note .is-copied .ico-copy { display: none; }
.note .is-copied .ico-check { display: block; color: var(--magenta); }

.note__body { flex: 1; }
.note__body.is-in { animation: noteIn .5s var(--ease); }
@keyframes noteIn { from { opacity: 0; transform: translateX(var(--dir, 24px)); } }
.note__meta { font-weight: 800; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 8px 0 4px; }
.note__sub { font-family: var(--display); font-weight: 600; color: var(--magenta); font-size: 1.05rem; }
.note__benefit { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: var(--ice); color: var(--blue-dark); font-weight: 800; font-size: .88rem; }
.note__benefit .ico { width: 18px; height: 18px; }
.takes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 18px; }
.take { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.take__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.take__label { font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.take__fala, .note__para { font-family: var(--display); font-weight: 600; font-size: clamp(1.08rem, 1.9vw, 1.28rem); line-height: 1.45; color: var(--text); }
.take__cena { display: flex; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.take__cena .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.note__paras { display: grid; gap: 16px; margin-top: 22px; }
.note__front { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--border) inset; }
.note__front b { font-family: var(--display); color: var(--magenta); font-size: 1.05rem; }
.note__front span { color: var(--text); line-height: 1.5; }
.note mark {
  position: relative; color: inherit; background: rgba(253, 185, 224, .7);
  padding: .05em .12em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* alças de seleção, como no app de notas */
.note mark.is-first::before, .note mark.is-first::after { content: ""; position: absolute; width: 2px; background: var(--magenta); top: -.1em; height: 1.35em; }
.note mark.is-first::before { left: -1px; }
.note mark.is-first::after { right: -1px; top: auto; bottom: -.1em; }

.note__index {
  position: absolute; inset: 92px 18px 96px; z-index: 3; overflow: auto;
  background: #fff; border-radius: 24px; padding: 18px;
  box-shadow: 0 20px 50px -20px rgba(20, 40, 60, .45), 0 0 0 1px var(--border) inset;
}
.note__index[hidden] { display: none; }
.note__index p { font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 6px; }
.note__index ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.note__index button {
  width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left;
  min-height: 48px; padding: 6px 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
}
.note__index button:hover { background: var(--ice); }
.note__index button[aria-current="true"] { background: var(--pink); }
.note__index button b { font-family: var(--display); color: var(--magenta); }
.note__index button span { font-weight: 700; line-height: 1.25; }
.note__index button small { display: block; font-weight: 600; color: var(--muted); }
.note__hint { margin-top: 14px; text-align: center; font-size: .88rem; color: #fde3f2; }
