body.emdd-page {
  --emdd-ink: #15233d;
  --emdd-muted: #506078;
  --emdd-line: #dce3ea;
  --emdd-cream: #fbf6ee;
  --emdd-accent: #126347;
  --emdd-soft: #e4f3ea;
  --emdd-width: 1120px;
  --emdd-sticky: 64px;
  background: #f4f7fa;
}
body.emdd-blue { --emdd-accent: #2459a7; --emdd-soft: #e5efff; }
body.emdd-orange { --emdd-accent: #963c11; --emdd-soft: #ffe9d7; }
body.emdd-purple { --emdd-accent: #6240a7; --emdd-soft: #efe7ff; }
body.emdd-pink { --emdd-accent: #9b3262; --emdd-soft: #ffe6f0; }
body.emdd-teal { --emdd-accent: #006565; --emdd-soft: #dff4f2; }

.emdd-page .emdd-hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--emdd-sticky);
  overflow: hidden;
  color: var(--emdd-ink);
  background: radial-gradient(ellipse at 72% 36%, var(--emdd-soft), transparent 47%), var(--emdd-cream);
  border-bottom: 1px solid #eadfce;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.emdd-hero-inner {
  position: relative;
  max-width: var(--emdd-width);
  margin: auto;
  padding: clamp(28px, 5vw, 62px) 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}
.emdd-hero-copy { min-width: 0; }
.emdd-hero .emd-top {
  margin: 0 0 20px;
  color: var(--emdd-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.emdd-hero .emd-top a { color: var(--emdd-accent); text-decoration: underline; text-underline-offset: 3px; }
.emdd-hero .emd-sep { padding-inline: 6px; }
.emdd-hero .emdd-topic {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--emdd-soft);
  color: var(--emdd-accent);
  font-size: 13px;
  font-weight: 750;
}
.emdd-page .emdd-hero h1 {
  margin: 0;
  color: var(--emdd-ink);
  font: 750 clamp(2.35rem, 5vw, 4.25rem)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.emdd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.emdd-page .emdd-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 17px;
  border: 1px solid var(--emdd-accent);
  border-radius: 999px;
  color: #fff;
  background: var(--emdd-accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.emdd-page .emdd-button-quiet { color: var(--emdd-accent); background: #fff; }
.emdd-button:hover { filter: brightness(.91); }
.emdd-cover {
  margin: 0;
  padding: 7px;
  background: #fff;
  border: 1px solid #ded6c9;
  border-radius: 24px;
  box-shadow: 0 18px 45px #15233d24;
  transform: rotate(2deg);
}
.emdd-cover img { display: block; width: 100%; height: auto; border-radius: 17px; }
.emdd-topic-art {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 300px);
  aspect-ratio: 1.45;
  border: 1px solid #fff;
  border-radius: 28px;
  background: repeating-linear-gradient(0deg, #fff8 0 1px, transparent 1px 19px),
              repeating-linear-gradient(90deg, #fff8 0 1px, transparent 1px 19px), var(--emdd-soft);
  box-shadow: 0 14px 35px #15233d1a;
  transform: rotate(3deg);
  color: var(--emdd-accent);
}
.emdd-topic-art span { font: italic 700 clamp(68px, 11vw, 135px)/1 Georgia, serif; }
.emdd-topic-art i, .emdd-topic-art b { position: absolute; font: 700 24px/1 Roboto, sans-serif; }
.emdd-topic-art i { top: 18%; right: 13%; }
.emdd-topic-art b { bottom: 16%; left: 13%; }
.emdd-float { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.emdd-float span {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(36px, 5vw, 68px);
  aspect-ratio: 1;
  border-radius: 17px;
  box-shadow: 0 6px 0 #15233d10;
  font: italic 700 clamp(20px, 3vw, 32px)/1 Georgia, serif;
  animation: emdd-bob 8s ease-in-out infinite alternate;
}
.emdd-float span:nth-child(1) { left: 2%; top: 19%; color: #116344; background: #cfefdb; --angle: -14deg; }
.emdd-float span:nth-child(2) { left: 9%; bottom: 8%; color: #224e9b; background: #d9e9ff; --angle: 13deg; animation-delay: -2s; }
.emdd-float span:nth-child(3) { left: 52%; top: 7%; color: #6531a0; background: #eee2fc; --angle: -16deg; animation-delay: -3s; }
.emdd-float span:nth-child(4) { right: 3%; top: 12%; color: #98395f; background: #ffdeeb; --angle: 16deg; animation-delay: -1s; }
.emdd-float span:nth-child(5) { right: 4%; bottom: 9%; color: #96510c; background: #ffe6b6; --angle: -10deg; animation-delay: -4s; }
.emdd-float span:nth-child(6) { right: 39%; bottom: 7%; color: #006660; background: #d4efeb; --angle: 12deg; animation-delay: -5s; }
@keyframes emdd-bob {
  from { transform: translateY(-5px) rotate(var(--angle)); }
  to { transform: translateY(7px) rotate(calc(var(--angle) + 4deg)); }
}

.emdd-jump-slot { min-height: 57px; }
.emdd-jump {
  position: relative;
  z-index: 25;
  background: #fff;
  border-bottom: 1px solid var(--emdd-line);
  box-shadow: 0 5px 18px #15233d0c;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.emdd-jump.emdd-fixed { position: fixed; inset: var(--emdd-sticky) 0 auto; }
.emdd-jump-inner {
  display: flex;
  gap: 4px;
  margin: auto;
  max-width: var(--emdd-width);
  padding: 6px 18px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.emdd-page .emdd-jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 11px;
  border-radius: 10px;
  color: var(--emdd-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.emdd-page .emdd-jump a:hover,
.emdd-page .emdd-jump a[aria-current] { background: var(--emdd-soft); color: var(--emdd-accent); }
.emdd-page .emdd-jump .emdd-jump-home { font-size: 20px; color: var(--emdd-accent); }
.emdd-page .emdd-jump a:focus-visible, .emdd-hero a:focus-visible {
  outline: 2px solid var(--emdd-accent);
  outline-offset: -2px;
}
body.emdd-page #content.post-page { background: transparent; margin: 0; padding-block: 24px 40px; }
body.emdd-page #content > .container { max-width: var(--emdd-width); width: 100%; }
body.emdd-page #content .post-wrapper { padding-inline: 0; }
body.emdd-page #emd.emd {
  max-width: 940px;
  margin-inline: auto;
  color: var(--emdd-ink);
  --emd-green: var(--emdd-accent);
}
body.emdd-page #emd .emd-sec {
  scroll-margin-top: calc(var(--emdd-sticky) + 69px);
  margin: 0 0 16px;
  padding: clamp(16px, 3.5vw, 30px);
  border: 1px solid var(--emdd-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 15px #15233d06;
  min-width: 0;
}
body.emdd-page #emd .emd-sec > h2 {
  margin: 0 0 15px;
  color: var(--emdd-ink);
  font: 700 clamp(1.45rem, 2.7vw, 2rem)/1.18 Georgia, serif;
  letter-spacing: -.024em;
}
body.emdd-page #emd #emd-def { border-top: 4px solid var(--emdd-accent); }
body.emdd-page #emd .emd-def::before { content: none; }
body.emdd-page #emd .emd-sec > h2::before { background: var(--emdd-accent); }
body.emdd-page #emd .emd-def { border: 0; background: transparent; padding: 0; box-shadow: none; }
body.emdd-page #emd .emd-sd { color: var(--emdd-ink); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
body.emdd-page #emd .emd-kick { color: var(--emdd-accent); }
body.emdd-page #emd .emd-ex { border-radius: 12px; }
body.emdd-page #emd #emd-examples .emd-ex {
  border-inline-start: 3px solid var(--emdd-accent);
  background: color-mix(in srgb, var(--emdd-soft) 45%, white);
}
body.emdd-page #emd #emd-check { border-top: 4px solid var(--emdd-accent); }
body.emdd-page #emd #emd-picture figure {
  margin: 0;
  padding: clamp(8px, 2vw, 18px);
  border-radius: 14px;
  background: color-mix(in srgb, var(--emdd-soft) 32%, white);
}
body.emdd-page #emd #emd-related li + li { margin-top: 8px; }
@media (max-width: 1080px) {
  .emdd-float span:nth-child(1), .emdd-float span:nth-child(2) { opacity: .3; }
  .emdd-float span:nth-child(3) { opacity: .6; }
}
@media (max-width: 620px) {
  body.emdd-page { --emdd-sticky: 44px; }
  .emdd-hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px 26px; }
  .emdd-hero .emd-top { margin-bottom: 12px; }
  .emdd-actions { margin-top: 16px; }
  .emdd-cover { width: min(68%, 255px); justify-self: center; transform: rotate(1.5deg); }
  .emdd-topic-art { display: none; }
  .emdd-float span { opacity: .26; }
  .emdd-float span:nth-child(4) { top: 9%; right: 5%; opacity: .65; }
  .emdd-jump-inner { padding-inline: 8px; scrollbar-color: var(--emdd-accent) var(--emdd-soft); }
  body.emdd-page #content.post-page { padding-block: 12px 30px; }
  body.emdd-page #content > .container { padding-inline: 10px; }
  body.emdd-page #emd.emd { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .emdd-float span { animation: none; transform: rotate(var(--angle)); }
}
