@charset "UTF-8";

:root {
  --news-yellow: #FFB000;
  --news-bg: #FAFAFA;
  --news-text: #000;
  --news-muted: #73737e;
  --news-blue: #336BE5;
  --news-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --news-font: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}

.news-feed {
  background: var(--news-bg);
  color: var(--news-text);
  font-family: var(--news-font);
}

.news-feed .container {
  max-width: 1094px;
  margin: 0 auto;
  padding: 0 16px;
}

.news-feed a {
  color: inherit;
  text-decoration: none;
}

.news-feed button,
.news-feed input,
.news-feed select {
  font-family: inherit;
}

.news-feed-hero {
  padding: 64px 0 85px;
}

.news-feed-hero__header {
  margin: 0 auto 70px;
  text-align: center;
}

.news-feed-hero__header h1 {
  margin: 0 0 12px;
  font-size: 64px;
  font-weight: 400;
  line-height: 112.5%;
}

.news-feed-hero__header p {
  margin: 0;
  color: #4D4D4D;
  font-size: 16px;
  line-height: 24px;
}

.news-feed-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(400px, 0.95fr);
  gap: 30px;
  align-items: stretch;
}

.news-feed-hero__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.news-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 213px;
  overflow: hidden;
  border-radius: 16px;
  background: #d8f4f4;
  isolation: isolate;
}

.news-feature-card::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.78) 100%);
}

.news-feature-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.28s ease;
}

.news-feature-card:hover img {
  transform: scale(1.045);
}

.news-feature-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 14px 14px;
}

.news-feature-card__title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.news-feature-card__meta {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 400;
}

.news-top-stories {
  padding: 4px 0;
}

.news-top-stories__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.news-top-stories__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.news-top-stories__head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  color: #333;
}

.news-top-stories__head a span {
  transition: transform 0.18s ease;
}

.news-top-stories__head a:hover span {
  transform: translateX(3px);
}

.news-top-stories__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-top-story {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  gap: 12px;
  align-items: center;
  transition: 0.3s;
}

.news-top-story:hover {
  background: rgba(15, 23, 42, 0.04);
}

.news-top-story__thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
  background: #e6e6ea;
}

.news-top-story__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-top-story__body {
  min-width: 0;
}

.news-top-story__title {
  display: -webkit-box;
  overflow: hidden;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-top-story__meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #4D4D4D;
  font-size: 11px;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-feed-list {
  padding: 0 0 64px;
}

.news-feed-list__empty,
.news-feed-list__no-results {
  margin: 32px 0 0;
  color: var(--news-muted);
  text-align: center;
}

.news-feed-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.news-feed-search {
  position: relative;
  display: block;
}

.news-feed-search::before {
  content: "⌕";
  position: absolute;
  top: 50%;
  left: 22px;
  color: #666;
  font-size: 18px;
  transform: translateY(-50%);
}

.news-feed-search input {
  width: 100%;
  height: 56px;
  padding: 0 46px;
  border: 1px solid #D9D9D9;
  border-radius: 999px;
  background: #fff;
  color: #212129;
  font-size: 16px;
  font-weight: 400;
  outline: 0;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
}

.news-feed-search input:focus {
  border-color: var(--news-yellow);
  box-shadow: 0 0 0 3px rgba(255, 177, 0, 0.18);
}

.news-feed-search input::-moz-placeholder {
  color: #8C8C8C;
}

.news-feed-search input::placeholder {
  color: #8C8C8C;
}

.news-feed-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 193px;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #D9D9D9;
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 14px;
}

.news-feed-sort select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
}

.news-feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 50px;
}

.news-feed-filters button {
  min-height: 33px;
  padding: 0 16px;
  border: 1px solid #D1D1D1;
  border-radius: 999px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.news-feed-filters button.is-active,
.news-feed-filters button:hover {
  border-color: var(--news-yellow);
  background: var(--news-yellow);
  color: #000;
}

.news-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  -moz-column-gap: 16px;
       column-gap: 16px;
  row-gap: 32px;
}

.news-card {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--news-card-shadow);
  cursor: pointer;
  flex-direction: column;
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card[hidden] {
  display: none;
}

.news-card:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.news-card__image-link {
  display: block;
}

.news-card__image {
  position: relative;
  display: block;
  height: 190px;
  overflow: hidden;
  border-radius: 12px;
  background: #e7f2f3;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.28s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.045);
}

.news-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #336BE5;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.news-card__category--ai {
  background: #0FA380;
}

.news-card__category--cloud {
  background: #F90;
}

.news-card__category--devops {
  background: #336BE5;
}

.news-card__category--security {
  background: #C93838;
}

.news-card__category--engineering {
  background: #6B3DAB;
}

.news-card__score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0F8C45;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.news-card__score--critical {
  background: #0e8c45;
}

.news-card__score--solid {
  background: #52b317;
}

.news-card__score--interesting {
  background: #f59e12;
}

.news-card__score--filtered {
  background: #dd2222;
}

.news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.news-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.news-card__top time {
  flex-shrink: 0;
  color: #80808c;
  font-size: 11px;
  line-height: normal;
}

.news-card__source {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.news-card__source img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.news-card__source span {
  overflow: hidden;
  color: #212129;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card h2 {
  margin: 0 0 8px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.news-card h2 a:hover {
  color: var(--news-yellow);
}

.news-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: #4D4D57;
  font-size: 12px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__tags {
  margin: 0 0 36px;
  color: #80808c;
  font-size: 11px;
  line-height: normal;
}

.news-card .news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--news-blue);
  font-size: 12px;
  font-weight: 700;
}

.news-card .news-card__cta span {
  transition: transform 0.18s ease;
}

.news-card .news-card__cta:hover span {
  transform: translateX(3px);
}

.news-feed-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.news-feed-more button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--news-yellow);
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.news-feed-more button[hidden] {
  display: none;
}

.news-feed-more button:hover {
  background: var(--news-yellow);
}

.news-drawer-is-open {
  overflow: hidden;
}

.news-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.news-drawer[hidden] {
  display: none;
}

.news-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.32s ease;
}

.news-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #FFF;
  box-shadow: -12px 0 48px 0 rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.news-drawer.is-open {
  pointer-events: auto;
}

.news-drawer.is-open .news-drawer__backdrop {
  opacity: 1;
}

.news-drawer.is-open .news-drawer__panel {
  transform: translateX(0);
}

.news-drawer__topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid #ececf0;
  background: rgba(255, 255, 255, 0.96);
}

.news-drawer__topbar p {
  overflow: hidden;
  margin: 0;
  color: #80808C;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-drawer__topbar button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #F2F2F5;
  color: #666673;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
}

.news-drawer__topbar button span {
  color: #333338;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-1px);
}

.news-drawer__body {
  padding-bottom: 56px;
}

.news-drawer__hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #e7f2f3;
}

.news-drawer__hero img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.news-drawer__hero .news-card__category {
  top: 24px;
  left: 24px;
}

.news-drawer__hero .news-card__score {
  top: 24px;
  right: 24px;
}

.news-drawer__header {
  padding: 24px 32px 0;
}

.news-drawer__header h2 {
  margin: 12px 0 0;
  color: #000;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.news-drawer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.news-drawer__actions button {
  position: relative;
  border: 0;
  background: transparent;
  color: #666673;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.18s ease, transform 0.18s ease;
  text-align: left;
}

.news-drawer__actions button[data-news-copy] {
  min-width: 70px;
}

.news-drawer__actions button::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 10px;
  border-right: 2px solid #0e8c45;
  border-bottom: 2px solid #0e8c45;
  opacity: 0;
  transform: translateY(-65%) rotate(45deg) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
  content: "";
}

.news-drawer__actions button.is-copied {
  color: #0e8c45;
}

.news-drawer__actions button.is-copied::after {
  opacity: 1;
  transform: translateY(-75%) rotate(45deg) scale(1);
}

.news-drawer__source {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-drawer__source img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.news-drawer__source strong,
.news-drawer__source span {
  display: block;
}

.news-drawer__source strong {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
}

.news-drawer__source span {
  color: #80808c;
  font-size: 11px;
  line-height: normal;
}

.news-drawer__tags {
  margin: 12px 0 0;
  color: #1A66D9;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}

.news-drawer__section {
  padding: 24px 32px 0;
}

.news-drawer__section h3 {
  margin: 0 0 8px;
  color: #8C8C99;
  font-size: 11px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-drawer__section p {
  margin: 0;
  color: #212129;
  font-size: 15px;
  line-height: 24px;
}

.news-drawer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-drawer__chips span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #F2F2F5;
  border: 1px solid #E0E0E5;
  color: #333338;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.news-drawer__why {
  margin: 44px 32px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #FFD980;
  background: #FFF7EB;
}

.news-drawer__why h3 {
  margin: 0 0 10px;
  color: #8C5900;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: normal;
  text-transform: uppercase;
}

.news-drawer__why ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.news-drawer__why li {
  color: #212129;
  font-size: 14px;
  line-height: 20px;
  position: relative;
  padding: 0 0 0 14px;
}

.news-drawer__why li:before {
  content: "•";
  display: inline;
  position: absolute;
  left: 0;
  top: 0;
  color: #C93838;
  font-size: 14px;
  font-weight: 700;
}

.news-drawer__cta-wrap {
  padding: 52px 32px 0;
}

.news-drawer__cta {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffb100;
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

.news-drawer__cta-icon {
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.news-drawer__cta:hover {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .news-feed-hero__content {
    grid-template-columns: 1fr;
  }

  .news-top-stories {
    padding-top: 6px;
  }

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

@media (max-width: 640px) {
  .news-feed-hero {
    padding: 34px 0;
  }

  .news-feed-hero__header {
    margin-bottom: 26px;
  }

  .news-feed-hero__header h1 {
    font-size: 38px;
    line-height: 44px;
  }

  .news-feed-hero__tiles {
    grid-template-columns: 1fr;
  }

  .news-feed-filters {
    margin-bottom: 30px;
  }

  .news-feed-controls {
    grid-template-columns: 1fr;
  }

  .news-feed-sort {
    width: 100%;
    justify-content: space-between;
  }

  .news-feed-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .news-drawer__panel {
    width: 100%;
  }

  .news-drawer__topbar {
    padding: 0 16px;
  }

  .news-drawer__hero {
    height: 240px;
  }

  .news-drawer__header,
  .news-drawer__section,
  .news-drawer__cta-wrap {
    padding-right: 18px;
    padding-left: 18px;
  }

  .news-drawer__header h2 {
    font-size: 26px;
    line-height: 32px;
  }

  .news-drawer__why {
    margin-right: 18px;
    margin-left: 18px;
  }
}