:root {
  --cw-text: #1a1d21;
  --cw-text-muted: #5c6570;
  --cw-border: #e2e6ea;
  --cw-surface: #ffffff;
  --cw-page: transparent;
  --cw-accent: #1a3a5c;
  --cw-radius: 12px;
  --cw-shadow: 0 1px 2px rgba(26, 29, 33, 0.06), 0 4px 12px rgba(26, 29, 33, 0.04);
  --cw-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --cw-img-ratio: 16 / 10;
  --cw-img-max: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--cw-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--cw-text);
  background: var(--cw-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--cw-accent);
}

a:focus-visible {
  outline: 2px solid var(--cw-accent);
  outline-offset: 2px;
}

.banner-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.875rem 1rem;
  background: var(--cw-surface);
  border-bottom: 1px solid var(--cw-border);
}

.logo-wrapper {
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.logo-wrapper img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.banner-wrapper > div:last-child {
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.banner-wrapper > div:last-child a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-card-embed-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  container-type: inline-size;
  container-name: feed;
}

.container.even,
.container.odd {
  margin: 0;
  padding: 0;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  overflow: hidden;
}

.container.even:first-child {
  padding-top: 0;
}

.news-single-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.img-wrapper {
  width: 100%;
  max-height: var(--cw-img-max);
  overflow: hidden;
  background: #dce1e6;
}

.img-wrapper a {
  display: block;
  height: 100%;
}

.img-wrapper img,
.news-card-embed-items img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: var(--cw-img-max);
  aspect-ratio: var(--cw-img-ratio);
  object-fit: cover;
  object-position: center center;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.875rem 1rem 1rem;
  margin: 0 !important;
}

.single-news-title {
  order: 2;
}

.single-news-title h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.single-news-title a {
  color: var(--cw-text);
}

.single-news-title a:hover {
  color: var(--cw-accent);
}

.content-type-badge {
  order: 1;
  display: inline-flex;
  align-self: flex-start;
  float: none;
  margin: 0 0 0.125rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cw-accent);
  background: #eef2f6;
  border: none;
  border-radius: 999px;
}

.single-news-date {
  order: 3;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cw-text-muted);
}

.single-news-subtitle {
  order: 4;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--cw-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: none;
}

.pinned-wrapper {
  display: none;
}

@container feed (min-width: 420px) {
  .news-single-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 148px;
  }

  .img-wrapper {
    flex: 0 0 38%;
    max-width: 220px;
    max-height: none;
    align-self: stretch;
  }

  .img-wrapper img,
  .news-card-embed-items img {
    max-height: none;
    height: 100%;
    min-height: 148px;
    aspect-ratio: auto;
  }

  .content-wrapper {
    flex: 1 1 auto;
    justify-content: center;
    padding: 1rem 1.125rem;
  }

  .single-news-subtitle {
    -webkit-line-clamp: 2;
  }
}

@container feed (min-width: 640px) {
  .news-card-embed-items {
    padding: 1rem;
    gap: 1rem;
  }

  .img-wrapper {
    flex-basis: 240px;
    max-width: 260px;
  }

  .single-news-title h3 {
    font-size: 1.125rem;
  }

  .single-news-subtitle {
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 768px) {
  :root {
    --cw-img-max: 320px;
  }
}
