.article-page {
  color: #18233a;
  background: #ffffff;
}

.article-hero {
  padding: 140px 24px 42px;
  background:
    linear-gradient(135deg, rgba(0, 124, 255, 0.08), rgba(255, 146, 86, 0.1)),
    #ffffff;
}

.article-hero__inner,
.article-shell,
.article-detail {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.article-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
}

.article-hero__copy {
  display: grid;
  gap: 14px;
}

.article-eyebrow {
  margin: 0;
  color: #007cff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero h1,
.article-detail__title {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.article-hero__text,
.article-detail__excerpt,
.article-state,
.article-card__excerpt {
  margin: 0;
  color: #5b6578;
  font-size: 16px;
  line-height: 1.75;
}

.article-hero__media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #edf4ff;
  box-shadow: 0 18px 44px rgba(21, 37, 68, 0.12);
}

.article-hero__media img,
.article-card__image,
.article-detail__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-shell {
  padding: 42px 24px 72px;
}

.article-featured {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.article-featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.article-featured__copy {
  display: grid;
  gap: 7px;
  max-width: 680px;
}

.article-featured__copy h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-featured__copy p:not(.article-eyebrow) {
  margin: 0;
  color: #5b6578;
  font-size: 14px;
  line-height: 1.65;
}

.article-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-featured .article-card {
  border-color: rgba(0, 124, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 124, 255, 0.1);
}

.article-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.article-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(24, 35, 58, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  color: #18233a;
  background: #ffffff;
  font: inherit;
}

.article-search:focus {
  outline: 3px solid rgba(0, 124, 255, 0.18);
  border-color: rgba(0, 124, 255, 0.5);
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.article-category {
  min-height: 40px;
  border: 1px solid rgba(24, 35, 58, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  color: #304059;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.article-category[aria-pressed="true"] {
  color: #ffffff;
  background: #007cff;
  border-color: #007cff;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(24, 35, 58, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 37, 68, 0.08);
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  background: #edf4ff;
}

.article-card__read-time {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.article-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.article-meta--detail {
  gap: 8px;
}

.article-meta__item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #304059;
  background: rgba(24, 35, 58, 0.07);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.article-meta__item--category {
  color: #0b60c2;
  background: rgba(0, 124, 255, 0.1);
}

.article-meta__item--date {
  color: #7a4a07;
  background: rgba(255, 146, 86, 0.15);
}

.article-meta__item--author {
  color: #15834d;
  background: rgba(21, 131, 77, 0.11);
}

.article-meta__item--read {
  color: #5b3ec7;
  background: rgba(118, 88, 255, 0.12);
}

.article-card__title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.article-card__link,
.article-back {
  width: max-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 13px;
  color: #ffffff;
  background: #007cff;
  font-size: 13px;
  font-weight: 800;
}

.article-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid rgba(24, 35, 58, 0.1);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: #fbfdff;
}

.article-detail {
  padding: 132px 24px 72px;
}

.article-detail__header {
  display: grid;
  gap: 16px;
  width: min(820px, 100%);
  margin: 0 auto 28px;
}

.article-detail__cover-frame {
  width: min(980px, 100%);
  margin: 0 auto 34px;
}

.article-detail__cover {
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  overflow: hidden;
  background: #edf4ff;
}

.article-detail__content {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #263854;
  font-size: 17px;
  line-height: 1.85;
}

.article-detail__content p {
  margin: 0 0 18px;
}

.article-detail__content ul,
.article-detail__content ol {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-detail__content h1,
.article-detail__content h2,
.article-detail__content h3,
.article-detail__content h4,
.article-detail__content h5,
.article-detail__content h6 {
  margin: 30px 0 14px;
  color: #111827;
  line-height: 1.24;
  letter-spacing: 0;
}

.article-detail__content blockquote {
  margin: 0 0 22px;
  border-left: 4px solid rgba(0, 124, 255, 0.28);
  padding: 6px 0 6px 18px;
  color: #304059;
  background: rgba(0, 124, 255, 0.04);
}

.article-detail__content figure {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.article-detail__content figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-detail__caption,
.article-detail__content figcaption {
  color: #65738a;
  font-size: 13px;
  line-height: 1.55;
}

.article-detail__caption {
  margin: 8px 0 0;
}

.article-detail__caption span,
.article-detail__content figcaption span {
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
}

.article-detail__content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
}

.article-detail__content td,
.article-detail__content th {
  border: 1px solid rgba(24, 35, 58, 0.14);
  padding: 10px 12px;
  vertical-align: top;
}

.article-detail__content hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid rgba(24, 35, 58, 0.14);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(760px, 100%);
  margin: 28px auto 0;
}

.article-tag {
  border-radius: 8px;
  padding: 7px 10px;
  color: #0b60c2;
  background: rgba(0, 124, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.article-comments {
  width: min(760px, 100%);
  margin: 48px auto 0;
  display: grid;
  gap: 20px;
}

.article-comments__heading {
  display: grid;
  gap: 8px;
}

.article-comments__heading h2,
.article-comment-form__title h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.article-comments__heading p:not(.article-eyebrow),
.article-comment-form__title p,
.article-comments__empty {
  margin: 0;
  color: #5b6578;
  font-size: 14px;
  line-height: 1.65;
}

.article-comments__list {
  display: grid;
  gap: 10px;
}

.article-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(24, 35, 58, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.article-comment__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #007cff;
  font-size: 13px;
  font-weight: 800;
}

.article-comment__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.article-comment__body strong {
  color: #111827;
  font-size: 14px;
}

.article-comment__body time {
  color: #65738a;
  font-size: 12px;
  font-weight: 700;
}

.article-comment__body p {
  margin: 4px 0 0;
  color: #263854;
  font-size: 14px;
  line-height: 1.65;
}

.article-comment-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(24, 35, 58, 0.11);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 37, 68, 0.06);
}

.article-comment-form__title {
  display: grid;
  gap: 6px;
}

.article-comment-form__field {
  display: grid;
  gap: 7px;
}

.article-comment-form__field span,
.article-comment-form__consent {
  color: #304059;
  font-size: 13px;
  font-weight: 800;
}

.article-comment-form__field input,
.article-comment-form__field textarea {
  width: 100%;
  border: 1px solid rgba(24, 35, 58, 0.14);
  border-radius: 8px;
  padding: 11px 12px;
  color: #18233a;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.article-comment-form__field textarea {
  min-height: 124px;
  resize: vertical;
}

.article-comment-form__field input:focus,
.article-comment-form__field textarea:focus {
  border-color: rgba(0, 124, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 124, 255, 0.14);
}

.article-comment-form__website {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.article-comment-form__consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.45;
}

.article-comment-form__consent input {
  margin-top: 2px;
  accent-color: #007cff;
}

.article-comment-form__status {
  min-height: 20px;
  color: #65738a;
  font-size: 13px;
  font-weight: 700;
}

.article-comment-form__status[data-tone="success"] {
  color: #15834d;
}

.article-comment-form__status[data-tone="error"] {
  color: #c92a3e;
}

.article-comment-form__submit {
  width: max-content;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #ffffff;
  background: #007cff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.article-comment-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 900px) {
  .article-hero__inner,
  .article-toolbar {
    grid-template-columns: 1fr;
  }

  .article-categories {
    justify-content: flex-start;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-featured__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding-top: 112px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card__title {
    text-align: justify;
    text-align-last: left;
  }

  .article-featured__grid {
    grid-template-columns: 1fr;
  }

  .article-detail {
    padding-top: 112px;
  }

  .article-detail__cover {
    aspect-ratio: 4 / 3;
  }

  .article-comment {
    grid-template-columns: 1fr;
  }
}
