/* Page-specific styles extracted from style.css. */

.singlePostMain {
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.singlePostSection {
  padding: 32px 0 64px;
}

.singlePostShell {
  width: min(920px, var(--container));
  margin: 0 auto;
}

.singlePostArticle {
  padding: 28px 20px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.06);
}

.singlePostHeader {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.singlePostThumbnail {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 20px;
}

.singlePostTitle {
  margin: 0;
  color: var(--navy);
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.singlePostContent {
  display: flow-root;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;

  > * {
    margin: 0;
  }

  > * + * {
    margin-top: 1.25rem;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 2rem 0 1rem;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.375rem;
    line-height: 1.25;
  }

  h4 {
    font-size: 1.125rem;
    line-height: 1.35;
  }

  h5,
  h6 {
    font-size: 1rem;
    line-height: 1.5;
  }

  p,
  li {
    color: inherit;
  }

  a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }

  strong,
  b {
    color: var(--navy);
    font-weight: 700;
  }

  em {
    font-style: italic;
  }

  ul,
  ol {
    padding-left: 1.35rem;
    margin: 1.5rem 0;
  }

  li::marker {
    color: var(--orange);
  }

  li + li {
    margin-top: 0.55rem;
  }

  blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 4px solid var(--orange);
    border-radius: 20px;
    background: var(--surface);
    color: var(--navy);
  }

  blockquote p {
    margin: 0;
    color: inherit;
    font-size: 1.125rem;
    line-height: 1.75;
  }

  blockquote p + p {
    margin-top: 1rem;
  }

  blockquote cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--muted-soft);
    font-size: 0.9375rem;
    font-style: normal;
  }

  figure {
    margin: 2rem 0;
  }

  img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  figure img,
  .wp-block-image img,
  .wp-caption img {
    border-radius: 20px;
  }

  figcaption,
  .wp-caption-text {
    margin-top: 0.75rem;
    color: var(--muted-soft);
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  hr,
  .wp-block-separator {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  pre {
    overflow-x: auto;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--navy);
    color: #fff;
    font-size: 0.925rem;
    line-height: 1.7;
    white-space: pre;
  }

  code {
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    background: rgba(16, 24, 40, 0.08);
    color: var(--navy);
    font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
  }

  pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
  }

  table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
  }

  thead th {
    background: var(--surface);
    color: var(--navy);
    font-weight: 700;
  }

  th,
  td {
    min-width: 120px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  tbody tr:last-child td {
    border-bottom: 0;
  }

  iframe,
  video,
  audio,
  embed,
  object {
    max-width: 100%;
  }

  .wp-block-image,
  .wp-block-embed,
  .wp-block-table,
  .wp-block-gallery,
  .wp-block-buttons {
    margin: 2rem 0;
  }

  .wp-block-table {
    overflow-x: auto;
  }

  .wp-block-buttons {
    gap: 12px;
  }

  .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 127, 0, 0.22);
  }

  .wp-block-button.is-style-outline .wp-block-button__link {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--navy);
    box-shadow: none;
  }

  .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .alignwide,
  .alignfull {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .alignwide {
    width: 100%;
    max-width: 100%;
  }

  .alignfull {
    width: 100%;
    max-width: 100%;
  }

  .singlePostPages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
  }

  .singlePostPages > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
  }

  .singlePostPages > span {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
  }
}

@media (width >= 721px) {
  .singlePostSection {
    padding: 48px 0 80px;
  }

  .singlePostArticle {
    padding: 40px 32px 56px;
  }

  .singlePostTitle {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.05;
  }

  .singlePostThumbnail {
    margin-bottom: 24px;
  }

  .singlePostContent {
    font-size: 1.0625rem;
    line-height: 1.8;

    h2 {
      font-size: 2rem;
    }

    h3 {
      font-size: 1.5rem;
    }

    blockquote p {
      font-size: 1.1875rem;
      line-height: 1.8;
    }

    .alignleft {
      float: left;
      max-width: 48%;
      margin: 0 1.5rem 1rem 0;
    }

    .alignright {
      float: right;
      max-width: 48%;
      margin: 0 0 1rem 1.5rem;
    }

    .alignwide {
      width: 100%;
      max-width: 100%;
    }

    .alignfull {
      width: 100%;
      max-width: 100%;
    }
  }
}

@media (width >= 1024px) {
  .singlePostSection {
    padding: 56px 0 96px;
  }

  .singlePostArticle {
    padding: 48px 48px 64px;
    border-radius: 28px;
  }

  .singlePostThumbnail {
    border-radius: 24px;
  }
}
