/* Individual news-post pages */

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 670px) 220px;
  column-gap: 29px;
  width: 980px;
  margin: 0 auto;
  padding: 30px 31px 48px 30px;
}

.post-article {
  min-width: 0;
}

.post-header {
  margin-bottom: 22px;
}

.post-header h1 {
  margin: 0 0 10px;
  color: #8b0000;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.post-meta {
  display: flex;
  gap: 8px;
  margin: 0;
  color: #5d5d5d;
  font-size: 13px;
  line-height: 1.4;
}

.post-meta span + span::before {
  content: "·";
  margin-right: 8px;
}

.post-hero {
  width: 100%;
  max-height: 440px;
  margin: 0 0 25px;
  object-fit: cover;
}

.post-content {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.post-content p {
  margin: 0 0 19px;
}

.post-content h2 {
  margin: 29px 0 12px;
  color: #8b0000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.post-content ul,
.post-content ol {
  margin: 0 0 22px;
  padding-left: 25px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-note {
  color: #555;
  font-size: 15px;
}

.post-video {
  position: relative;
  width: 100%;
  margin: 25px 0 27px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.post-back {
  display: inline-block;
  margin-top: 15px;
  color: #8b0000;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.post-back:hover,
.post-back:focus-visible {
  color: #d12300;
  outline: none;
}

/* Sidebar */

.post-sidebar {
  min-width: 0;
  padding-top: 4px;
}

.sidebar-section {
  margin: 0 0 43px;
}

.sidebar-section h2 {
  margin: 0 0 3px;
  color: #8d1700;
  font-size: 22px;
  font-weight: 700;
  line-height: 31px;
}

.sidebar-rule {
  width: 100%;
  height: 1px;
  margin-bottom: 12px;
  background: #cfcfcf;
}

.featured-post {
  display: block;
  color: #000;
  text-decoration: none;
}

.featured-post img {
  width: 220px;
  height: 124px;
  object-fit: cover;
  transition: filter 180ms ease;
}

.featured-post span {
  display: block;
  margin-top: 14px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.featured-post:hover img,
.featured-post:focus-visible img {
  filter: brightness(1.06);
}

.featured-post:focus-visible {
  outline: 2px solid #8b0000;
  outline-offset: 3px;
}

.recent-post-list {
  display: grid;
  gap: 27px;
  padding: 7px 12px 0;
}

.recent-post {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: start;
  color: #000;
  text-decoration: none;
}

.recent-post img {
  width: 38px;
  height: 24px;
  margin-top: 3px;
  object-fit: cover;
}

.recent-post span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.recent-post:hover span,
.recent-post:focus-visible span {
  color: #8b0000;
}

.recent-post:focus-visible {
  outline: 2px solid #8b0000;
  outline-offset: 3px;
}

.sidebar-social-links {
  display: flex;
  gap: 10px;
}

.sidebar-social-links a {
  width: 23px;
  height: 23px;
  color: #000;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-social-links a:hover,
.sidebar-social-links a:focus-visible {
  opacity: 0.65;
  transform: translateY(-1px);
  outline: none;
}

.sidebar-social-links svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .post-layout {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) 220px;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  .post-layout {
    grid-template-columns: 1fr;
    row-gap: 46px;
  }

  .post-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .sidebar-section {
    margin: 0;
  }

  .featured-post img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .post-header h1 {
    font-size: 29px;
  }

  .post-content {
    font-size: 16px;
  }

  .post-sidebar {
    grid-template-columns: 1fr;
  }
}
