/* Content only: shared by the public article and Gutenberg's canvas. */
@font-face {
  font-family: "Dainote Content Icons";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/icons/fa5-solid.woff2") format("woff2");
}

.editor-styles-wrapper {
  color: #444;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.editor-styles-wrapper,
.editor-styles-wrapper * { box-sizing: border-box; }
.editor-styles-wrapper .is-root-container,
.editor-styles-wrapper .editor-post-title {
  max-width: 710px;
  margin-inline: auto;
}

:is(.post-content__text, .editor-styles-wrapper) p {
  margin: 3rem 0;
  font-size: 18px;
  line-height: 2rem;
  color: #444;
}
.editor-styles-wrapper .is-root-container > :first-child { margin-top: 0; }

/* Keep Gutenberg’s post title centered independently of article headings. */
:is(.post-content__text, .editor-styles-wrapper) :is(h1, h2, h3, h4):not(.wp-block-heading, .editor-post-title) {
  margin: 36px 0 !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  color: inherit !important;
}
/* Block controls and inline styles take precedence over theme defaults. */
:is(.post-content__text, .editor-styles-wrapper) .wp-block-heading {
  margin: 36px 0;
  font-weight: bold;
  line-height: 1.2;
  color: inherit;
}
:is(.post-content__text, .editor-styles-wrapper) h2 {
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #2cb696;
}
:is(.post-content__text, .editor-styles-wrapper) h3 {
  font-size: 1.2rem;
  padding: .25em .5em;
  border-left: 5px solid #2cb696;
}
:is(.post-content__text, .editor-styles-wrapper) h4 {
  position: relative;
  font-size: 1.1rem;
  padding-left: 1.2em;
}
:is(.post-content__text, .editor-styles-wrapper) h4::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Dainote Content Icons";
  content: "\f00c";
  font-weight: 900;
  color: #2cb696;
}

:is(.post-content__text, .editor-styles-wrapper) table {
  width: 100%;
  margin: 3rem 0;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) {
  padding: 1rem;
  border: 1px solid #eee;
  vertical-align: top;
}
:is(.post-content__text, .editor-styles-wrapper) th { font-weight: bold; text-align: inherit; }
.post-content__text .wp-block-dainote-preserved-table .table-wrap { overflow-x: auto; }
/* Keep multi-column comparisons readable inside their horizontal scroll area. */
@media (max-width: 767px) {
  :is(.post-content__text, .editor-styles-wrapper) table:has(> :is(thead, tbody, tfoot) > tr > :nth-child(4)) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    min-width: 8rem;
  }
}
/* A cell is a component, not a full article: keep multiple paragraphs compact. */
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) p { margin: .5rem 0; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) p:first-child { margin-top: 0; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) p:last-child { margin-bottom: 0; }
:is(.post-content__text, .editor-styles-wrapper) caption {
  padding: .75rem 0;
  caption-side: bottom;
  text-align: left;
  color: #6c757d;
}

:is(.post-content__text, .editor-styles-wrapper) :is(ul, ol) {
  margin: 1rem 0;
  padding-block: 16px;
  background: #f7f9f9;
  font-size: 16px;
}
.editor-styles-wrapper ul { padding-inline: 0; }
.editor-styles-wrapper ol { padding-inline: 40px 0; }
:is(.post-content__text, .editor-styles-wrapper) ul li {
  padding-left: 16px;
  list-style: none;
}
:is(.post-content__text, .editor-styles-wrapper) ul li::before {
  content: url("../assets/images/list-check.svg");
  margin-right: 8px;
}
:is(.post-content__text, .editor-styles-wrapper) strong {
  background-color: yellow;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Table cells use compact, native lists instead of the article's callout style. */
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) :is(ul, ol) {
  margin: .5rem 0;
  padding: 0 0 0 1.5em;
  background: transparent;
  font-size: inherit;
}
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) ul { list-style-type: disc; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) ul ul { list-style-type: circle; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) ol { list-style-type: decimal; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) :is(ul, ol) > li {
  padding-left: 0;
  list-style-type: inherit;
}
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) :is(ul, ol) > li::before { content: none; margin: 0; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) :is(ul, ol):first-child { margin-top: 0; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) :is(ul, ol):last-child { margin-bottom: 0; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) strong { background-color: transparent; }
:is(.post-content__text, .editor-styles-wrapper) :is(td, th) table { margin: 0; }
:is(.post-content__text, .editor-styles-wrapper) blockquote {
  margin: 0;
  padding: 1rem;
  background: #f7f9f9;
  font-size: 1rem;
}
:is(.post-content__text, .editor-styles-wrapper) blockquote p { margin: 0; }
.editor-styles-wrapper a { color: #007bff; text-decoration: underline; }
:is(div.post-content__text, .editor-styles-wrapper) .wp-block-button a.wp-block-button__link {
  text-decoration: none;
}
.editor-styles-wrapper img { max-width: 100%; height: auto; }
.editor-styles-wrapper img:not([width]) { width: 100%; }
.editor-styles-wrapper table img:not([width]) { width: auto; }

/* Legacy HTML and block embeds both need to fit the article column. */
:is(.post-content__text, .editor-styles-wrapper) iframe { max-width: 100%; }
:is(.post-content__text, .editor-styles-wrapper) :is(
  iframe[src*="youtube.com/embed/"], iframe[data-lazy-src*="youtube.com/embed/"],
  iframe[src*="youtube-nocookie.com/embed/"], iframe[data-lazy-src*="youtube-nocookie.com/embed/"],
  iframe[src*="player.vimeo.com/video/"], iframe[data-lazy-src*="player.vimeo.com/video/"],
  .wp-block-embed.is-type-video iframe
) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
  :is(.post-content__text, .editor-styles-wrapper) p { font-size: 1rem; line-height: 1.5rem; }
  :is(.post-content__text, .editor-styles-wrapper) h2 { font-size: 1.2rem; }
  :is(.post-content__text, .editor-styles-wrapper) h3 { font-size: 1rem; }
  :is(.post-content__text, .editor-styles-wrapper) table tbody { font-size: .75rem; }
  :is(.post-content__text, .editor-styles-wrapper) blockquote p { font-size: 1rem; }
}
