/* Post content / main post editor only. Legacy, unselected decorations stay intact. */
:is(.ll-post-body, body#tinymce.ll-post-editor) {
  --ll-decor-ink: #2d2926;
  --ll-decor-muted: #706a65;
  --ll-decor-line: #ddd6ce;
  --ll-decor-gold: #92734b;
  --ll-decor-cream: #faf7f2;
}
/* Match the existing public article's base type inside the editor iframe. */
body#tinymce.ll-post-editor {
  font: 15px/1.8 "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: #000;
}
body#tinymce.ll-post-editor p { line-height: 1.8; margin: 0 0 1em; }
body#tinymce.ll-post-editor a { color: #333; font-weight: bold; text-decoration: none; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-lead {
  font-size: 18px; line-height: 2; color: #37322e; font-weight: 500;
  margin: 1.25em 0 1.6em; overflow-wrap: anywhere;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(h2.ll-decor-h2, h3.ll-decor-h3, h4.ll-decor-h4) {
  display: block; position: relative; top: auto; width: auto; max-width: 100%;
  box-sizing: border-box; text-align: left; color: var(--ll-decor-ink);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600; line-height: 1.6; background: transparent; box-shadow: none;
  overflow-wrap: anywhere;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) h2.ll-decor-h2 {
  font-size: 28px; letter-spacing: .075em; border: 0;
  border-bottom: 1px solid var(--ll-decor-line); margin: 2.35em 0 1em; padding: 0 0 .58em;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) h2.ll-decor-h2::after {
  content: ""; display: block; position: absolute; left: 0; bottom: -1px; top: auto; right: auto;
  width: 56px; height: 2px; border: 0; background: var(--ll-decor-gold);
}
:is(.ll-post-body, body#tinymce.ll-post-editor) h3.ll-decor-h3 {
  font-size: 22px; font-weight: 700; letter-spacing: .04em; border: 0;
  border-left: 3px solid var(--ll-decor-gold); background: var(--ll-decor-cream);
  padding: .54em .75em .54em .85em; margin: 1.95em 0 .95em;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) h4.ll-decor-h4 {
  font-size: 18px; font-weight: 700; letter-spacing: .025em; border: 0;
  border-bottom: 1px dashed var(--ll-decor-line); padding: 0 0 .35em; margin: 1.5em 0 .7em;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(h2.ll-decor-h2, h3.ll-decor-h3, h4.ll-decor-h4)::before,
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(h3.ll-decor-h3, h4.ll-decor-h4)::after {
  content: none; display: none;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(h2.ll-decor-h2, h3.ll-decor-h3, h4.ll-decor-h4) span {
  padding: 0; letter-spacing: inherit;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(h2.ll-decor-h2, h3.ll-decor-h3, h4.ll-decor-h4) span:not(.ll-decor-marker):not(.ll-decor-marker--rose) {
  background: transparent;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box {
  box-sizing: border-box; max-width: 100%; margin: 1.5em 0; padding: 1.15em 1.4em;
  border: 1px solid var(--ll-decor-line); border-radius: 10px; background: #fff;
  color: var(--ll-decor-ink); font-size: 15px; line-height: 1.9; overflow-wrap: anywhere;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box--info { background: #f7f8f9; border-left: 4px solid #73818a; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box--champagne { background: var(--ll-decor-cream); border-left: 4px solid var(--ll-decor-gold); }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box--notice { background: #fff8ec; border-left: 4px solid #c99645; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box--warning { background: #fff5f4; border-left: 4px solid #ae6b66; }
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(.ll-decor-box, .ll-decor-quote) > :first-child { margin-top: 0; }
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(.ll-decor-box, .ll-decor-quote) > :last-child { margin-bottom: 0; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-marker { background: linear-gradient(transparent 57%, #efe2bf 57%); font-weight: 700; color: inherit; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-marker--rose { background: linear-gradient(transparent 57%, #f1d9dd 57%); }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-emphasis { color: #804b51; font-weight: 700; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-note { font-size: 13px; color: var(--ll-decor-muted); line-height: 1.75; }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-kicker { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ll-decor-gold); letter-spacing: .13em; text-transform: uppercase; }
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(a.ll-decor-button, a.ll-decor-button-outline) {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 44px; max-width: 100%; padding: .78em 1.6em; border: 1px solid var(--ll-decor-ink);
  border-radius: 5px; text-align: center; text-decoration: none; font-size: 15px; line-height: 1.8;
  font-weight: 600; letter-spacing: .04em; overflow-wrap: anywhere;
  transition: background .2s ease, color .2s ease;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) a.ll-decor-button { background: var(--ll-decor-ink); color: #fff; }
:is(.ll-post-body, body#tinymce.ll-post-editor) a.ll-decor-button-outline { background: #fff; color: var(--ll-decor-ink); }
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(a.ll-decor-button, a.ll-decor-button-outline):focus-visible { outline: 2px solid var(--ll-decor-gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  :is(.ll-post-body, body#tinymce.ll-post-editor) a.ll-decor-button:hover { background: var(--ll-decor-gold); border-color: var(--ll-decor-gold); }
  :is(.ll-post-body, body#tinymce.ll-post-editor) a.ll-decor-button-outline:hover { background: var(--ll-decor-cream); }
}
:is(.ll-post-body, body#tinymce.ll-post-editor) :is(img.ll-decor-image, img.ll-decor-image-shadow) {
  display: block; box-sizing: border-box; max-width: 100%; height: auto;
  margin: 0 auto; padding: 0; border: 0; border-radius: 10px; background: transparent;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) img.ll-decor-image-shadow { box-shadow: 0 8px 28px rgb(42 34 28 / 12%); }
:is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-quote {
  border: 0; border-left: 3px solid var(--ll-decor-gold); margin: 1.5em 0; padding: .85em 1.2em;
  color: #49423b; font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: 16px; line-height: 1.9;
  background: var(--ll-decor-cream); overflow-wrap: anywhere;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) hr.ll-decor-divider { height: 0; border: 0; border-top: 1px solid var(--ll-decor-line); margin: 2.3em 0; }
:is(.ll-post-body, body#tinymce.ll-post-editor) table.ll-decor-table {
  box-sizing: border-box; border-collapse: collapse; border: 1px solid var(--ll-decor-line); table-layout: fixed; width: 100%; max-width: 100%;
  margin: 1.35em 0; background: #fff; color: var(--ll-decor-ink); font-size: 15px; line-height: 1.8;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) table.ll-decor-table :is(th, td) {
  border: 1px solid var(--ll-decor-line); padding: .72em .85em; text-align: left;
  vertical-align: top; white-space: normal; overflow-wrap: anywhere;
}
:is(.ll-post-body, body#tinymce.ll-post-editor) table.ll-decor-table th { background: var(--ll-decor-cream); font-weight: 700; }
/* Only exact YouTube embed origins. Maps and other iframes keep their own sizes. */
:is(.ll-post-body, body.ll-post-editor) iframe:is(
  [src^="https://www.youtube.com/embed/"], [src^="https://youtube.com/embed/"],
  [src^="https://www.youtube-nocookie.com/embed/"], [src^="https://youtube-nocookie.com/embed/"],
  [src^="http://www.youtube.com/embed/"], [src^="http://youtube.com/embed/"],
  [src^="http://www.youtube-nocookie.com/embed/"], [src^="http://youtube-nocookie.com/embed/"],
  [src^="//www.youtube.com/embed/"], [src^="//youtube.com/embed/"],
  [src^="//www.youtube-nocookie.com/embed/"], [src^="//youtube-nocookie.com/embed/"]
) {
  display: block; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 10px; margin-inline: auto;
}
@media (max-width: 600px) {
  :is(.ll-post-body, body#tinymce.ll-post-editor) .ll-decor-box { padding: 1em; }
  :is(.ll-post-body, body#tinymce.ll-post-editor) h2.ll-decor-h2 { font-size: 24px; letter-spacing: .025em; }
  :is(.ll-post-body, body#tinymce.ll-post-editor) h3.ll-decor-h3 { font-size: 20px; }
  :is(.ll-post-body, body#tinymce.ll-post-editor) :is(a.ll-decor-button, a.ll-decor-button-outline) { width: 100%; }
  :is(.ll-post-body, body#tinymce.ll-post-editor) table.ll-decor-table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.ll-post-body, body#tinymce.ll-post-editor) :is(a.ll-decor-button, a.ll-decor-button-outline) { transition: none; }
}
