/* ---------------------------------------------------------
   Article header
   --------------------------------------------------------- */

.single-post .entry-header {
  margin-bottom: 28px;
}

.single-post .entry-title {
  margin-bottom: 14px;

  color: #172033;

  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.single-post .entry-meta {
  color: #7a8493;
  font-size: 0.86rem;
}

.single-post .entry-meta a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Main article reading rhythm
   --------------------------------------------------------- */

.single-post .entry-body {
  color: #283443;
}

.single-post .entry-body p {
  margin-bottom: 1.35em;
}

/* ---------------------------------------------------------
   Featured / content images
   --------------------------------------------------------- */

.single-post .entry-body > figure.wp-block-image:first-child img {
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 32, 51, 0.08);
}

.single-post .wp-block-image {
  margin-top: 1.8rem;
  margin-bottom: 2rem;
}

/* ---------------------------------------------------------
   H2 — main article sections
   --------------------------------------------------------- */

.single-post .entry-body h2.wp-block-heading {
  margin-top: 3.2rem;
  margin-bottom: 1.25rem;

  padding: 0.7em 0.85em;

  border-left: 4px solid #278c96;
  border-radius: 0 8px 8px 0;

  background:
    linear-gradient(
      90deg,
      rgba(39, 140, 150, 0.10),
      rgba(39, 140, 150, 0.025)
    );

  color: #172033;

  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.5;
}

/* ---------------------------------------------------------
   H3 / FAQ questions
   --------------------------------------------------------- */

.single-post .entry-body h3.wp-block-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;

  padding-bottom: 0.45rem;

  border-bottom: 1px solid #dce5e8;

  color: #21313c;

  font-size: 1.12rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Text links
   --------------------------------------------------------- */

/* Exclude Gutenberg buttons from ordinary text-link styling. */
.single-post .entry-body a:not(.wp-block-button__link):not(.wp-element-button) {
  color: #137f89;

  text-decoration-color: rgba(19, 127, 137, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.single-post .entry-body a:not(.wp-block-button__link):not(.wp-element-button):hover {
  color: #0d646d;
  text-decoration-color: currentColor;
}

/* ---------------------------------------------------------
   Lists
   --------------------------------------------------------- */

.single-post .entry-body ul,
.single-post .entry-body ol {
  margin-top: 0.8rem;
  margin-bottom: 1.5rem;
}

.single-post .entry-body li + li {
  margin-top: 0.45rem;
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.single-post .wp-block-table {
  margin-top: 1.4rem;
  margin-bottom: 2rem;

  overflow-x: auto;

  border: 1px solid #dce5e8;
  border-radius: 10px;

  -webkit-overflow-scrolling: touch;
}

.single-post .wp-block-table table {
  margin: 0;

  border-collapse: collapse;

  background: #fff;
}

.single-post .wp-block-table th {
  background: #eef7f8;

  color: #183b40;
  font-weight: 700;
}

.single-post .wp-block-table th,
.single-post .wp-block-table td {
  padding: 0.8em 0.9em;

  border-color: #dce5e8;

  vertical-align: top;
}

.single-post .wp-block-table tbody tr:nth-child(even) {
  background: #fafcfc;
}

/* ---------------------------------------------------------
   Copyable templates / preformatted text
   --------------------------------------------------------- */

.single-post .wp-block-preformatted {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.4rem;

  border: 1px solid #dce5e8;
  border-left: 4px solid #278c96;
  border-radius: 10px;

  background: #f6f9fa;

  color: #283443;

  font-family:
    "Yu Gothic Medium",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;

  font-size: 0.94rem;
  line-height: 1.8;

  white-space: pre-wrap;
}

/* ---------------------------------------------------------
   Category / tags footer
   --------------------------------------------------------- */

.single-post .entry-footer {
  margin-top: 3.5rem;
  padding-top: 1.4rem;

  border-top: 1px solid #e5eaed;
}

.single-post .entry-meta-data-list {
  color: #77828e;
  font-size: 0.86rem;
}

/* ---------------------------------------------------------
   Previous / next posts
   --------------------------------------------------------- */

.single-post .vk_posts.next-prev {
  margin-top: 3rem;
}

.single-post .vk_posts.next-prev .card {
  overflow: hidden;
  border-radius: 12px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

  .single-post .entry-title {
    font-size: 1.65rem;
    line-height: 1.48;
  }

  .single-post .entry-body h2.wp-block-heading {
    margin-top: 2.6rem;

    padding: 0.65em 0.75em;

    font-size: 1.3rem;
  }

  .single-post .wp-block-table {
    font-size: 0.9rem;
  }

  .single-post .wp-block-table th,
  .single-post .wp-block-table td {
    min-width: 110px;
    padding: 0.7em;
  }

  .single-post .wp-block-preformatted {
    padding: 1rem;

    font-size: 0.9rem;
  }
}
