.articles {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 28px 44px;
  overflow: auto;

  .news_header {
    margin-bottom: 22px;

    .page_title {
      margin: 0 0 5px;
      color: #263746;
      font-size: 2.3em;
    }

    p {
      margin: 0;
      color: #647181;
      font-size: 16px;
      line-height: 1.5;
    }
  }

  .article {
    min-width: 0;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 48, 68, 0.06);
    color: #34475a;
    line-height: 1.65;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .article_header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3e9ef;

    h2 {
      margin: 0 0 5px;
      color: #263746;
      font-size: 26px;
      line-height: 1.2;
    }

    .created_at {
      display: inline-flex;
      align-items: center;
      padding: 4px 8px;
      border-radius: 999px;
      background: #eef3f7;
      color: #647181;
      font-size: 12px;
      line-height: 1.3;
    }
  }

  .article_body {
    min-width: 0;
    overflow-wrap: anywhere;
    overflow-x: auto;

    > :first-child {
      margin-top: 0;
    }

    > :last-child {
      margin-bottom: 0;
    }

    h3 {
      margin: 24px 0 8px;
      color: #263746;
      font: 21px 'Acme';
    }

    h4, h5, h6 {
      margin: 20px 0 7px;
      color: #34475a;
      font-weight: 700;
    }

    p {
      margin: 0 0 14px;
      padding: 0;
      color: #34475a;
      text-align: left;
    }

    ul, ol {
      margin: 0 0 16px 24px;
      padding: 0;
      list-style-position: outside;
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }

    li {
      margin-bottom: 6px;
      padding-left: 2px;
    }

    a {
      color: #176b96;
      font-weight: 700;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 2px;

      &:hover, &:focus-visible {
        color: #084f75;
      }

      &:focus-visible {
        outline: 2px solid var(--btn-primary);
        outline-offset: 2px;
      }
    }

    strong {
      color: #263746;
      font-weight: 700;
    }

    em {
      color: #526171;
    }

    blockquote {
      margin: 18px 0;
      padding: 12px 16px;
      border-left: 4px solid #78bddd;
      border-radius: 0 8px 8px 0;
      background: #f3f8fc;
      color: #526171;
    }

    code {
      padding: 2px 5px;
      border-radius: 4px;
      background: #eef3f7;
      font-family: 'Ubuntu Mono', monospace;
    }

    pre {
      overflow-x: auto;
      margin: 16px 0;
      padding: 14px;
      border-radius: 8px;
      background: #263442;
      color: #f3f8fc;

      code {
        padding: 0;
        background: none;
        color: inherit;
      }
    }

    img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
    }

    table {
      width: 100%;
      margin: 16px 0;
      border-collapse: collapse;

      th, td {
        padding: 9px 10px;
        border: 1px solid #d8e0e8;
        text-align: left;
      }

      th {
        background: #eef3f7;
        color: #263746;
        font-weight: 700;
      }
    }
  }
}

@media (max-width: 600px) {
  .articles {
    padding: 20px 12px 32px;

    .news_header {
      margin-bottom: 16px;

      .page_title {
        font-size: 28px;
      }

      p {
        font-size: 14px;
      }
    }

    .article {
      margin-bottom: 12px;
      padding: 18px 16px;
      border-radius: 10px;
    }

    .article_header {
      margin-bottom: 15px;
      padding-bottom: 12px;

      h2 {
        font-size: 22px;
      }
    }

    .article_body {
      font-size: 15px;
      line-height: 1.6;

      ul, ol {
        margin-left: 20px;
      }
    }
  }
}
