/**
 * Rich text content (inc/zotek/editor.php) – loaded on the front end, in the block editor and in
 * TinyMCE (classic editor / pa editor fields).
 *  - [data-editor]: block printed around editor output on the front end (news article body).
 *  - Styles offered by the editors (block styles / TinyMCE "Formats"), same look as
 *    template_html/news-detail.html:
 *      .is-style-zk-section  Section heading: heading with the blue left bar
 *      .is-style-zk-callout  Callout: dark quote box with the orange quote mark
 */

[data-editor] > * + * {
  margin-top: 16px;
}

/* Same 33px rhythm as the article column around the section heading and the callout. */
[data-editor] > .is-style-zk-section,
[data-editor] > .is-style-zk-callout,
[data-editor] > .is-style-zk-section + *,
[data-editor] > .is-style-zk-callout + * {
  margin-top: 33px;
}

[data-editor] h2:not(.zk-case-component *) {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

[data-editor] h3:not(.zk-case-component *) {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

[data-editor] h4:not(.zk-case-component *) {
  font-size: 17px;
  font-weight: 700;
  line-height: 26px;
}

[data-editor] ul:not(.zk-case-component *),
[data-editor] ol:not(.zk-case-component *) {
  padding-left: 24px;
}

[data-editor] ul:not(.zk-case-component *) {
  list-style: disc;
}

[data-editor] ol:not(.zk-case-component *) {
  list-style: decimal;
}

[data-editor] a:not(.zk-case-component *) {
  color: #0b75d5;
  text-decoration: underline;
}

[data-editor] img:not(.zk-case-component *) {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Section heading */
.is-style-zk-section {
  min-height: 36px;
  margin-left: 0;
  border-left: 3.2px solid #0b75d5;
  padding-left: 16px;
  color: #232a3d;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

/* Callout */
.is-style-zk-callout {
  position: relative;
  min-height: 88.4px;
  margin-left: 0;
  margin-right: 0;
  border: 0;
  border-radius: 14px;
  padding: 27.26px 24px 27.26px 76px;
  background: #0f2a52;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 32.4px;
}

.is-style-zk-callout::before {
  content: "\201C";
  position: absolute;
  left: 24px;
  top: 8px;
  color: #f39c12;
  font-family: "Shippori Mincho", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 72px;
}

.is-style-zk-callout p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.is-style-zk-callout p + p {
  margin-top: 8px;
}

.is-style-zk-callout cite {
  display: block;
  margin-top: 8px;
  color: #dce3ee;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

@media (min-width: 1024px) {
  .is-style-zk-callout p {
    max-width: 608px;
  }
}

/* Text pages (privacy policy, components/zotek/privacy/content.php): plain reading text, numbered
   headings with a thin rule, more room before each heading. */
[data-editor="page"] > * {
  margin-top: 0;
  margin-bottom: 0;
}

[data-editor="page"] > * + * {
  margin-top: 16px;
}

[data-editor="page"] > * + h2 {
  margin-top: 44px;
}

[data-editor="page"] > h2 + * {
  margin-top: 18px;
}

[data-editor="page"] h2 {
  border-bottom: 1px solid #dce3ee;
  padding-bottom: 10px;
  color: #232a3d;
  font-size: 20px;
  line-height: 30px;
}

[data-editor="page"] li + li {
  margin-top: 6px;
}

/* Paragraph aligned right in the editor (e.g. the enactment date at the end). */
[data-editor] .has-text-align-right {
  text-align: right;
}

[data-editor="page"] > .has-text-align-right {
  margin-top: 48px;
}

@media (min-width: 768px) {
  [data-editor="page"] h2 {
    font-size: 22px;
    line-height: 32px;
  }
}

/* Case Study & Rich Article typography */
.zk-prose {
  font-family: 'Noto Sans JP', sans-serif;
  color: #5b6478;
  font-size: 16px;
  line-height: 1.8;
}

.zk-prose h2:not(.zk-case-component *) {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #232a3d;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.38px;
}

.zk-prose .not-prose + h2 {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .zk-prose h2:not(.zk-case-component *) {
    font-size: 34px;
    line-height: 44px;
  }
}

.zk-prose h3:not(.zk-case-component *) {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #232a3d;
  margin-top: 36px;
  margin-bottom: 14px;
}

.zk-prose p:not(.zk-case-component *) {
  margin-top: 0;
  margin-bottom: 20px;
}

.zk-prose blockquote:not(.is-style-zk-callout):not(.zk-case-component *) {
  border-left: 3.2px solid #f39c12;
  background: #eff4f8;
  padding: 24px 30px;
  border-radius: 0 14px 14px 0;
  color: #232a3d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  margin: 32px 0;
}

.zk-prose ul:not(.zk-case-component *) {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.zk-prose ol:not(.zk-case-component *) {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 24px;
}

.zk-prose li:not(.zk-case-component *) {
  margin-bottom: 8px;
}

.zk-prose img:not(.zk-case-component *) {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 36, 71, 0.08);
  margin: 28px 0;
}

